]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* docs/grub.texi (configfile): Explain environment variable
[grub2.git] / ChangeLog
1 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
2
3 * docs/grub.texi (configfile): Explain environment variable
4 handling.
5 (source): New section.
6 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
7
8 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
9
10 Remove several trivially-unnecessary uses of nested functions.
11
12 * grub-core/commands/i386/pc/sendkey.c
13 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
14 instead of nested.
15 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
16 Rename to ...
17 (legacy_file_getline): ... this.
18 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
19 Likewise.
20 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
21 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
22 to ...
23 (probe_dummy_iter): ... this.
24 * grub-core/kern/i386/coreboot/mmap.c
25 (grub_linuxbios_table_iterate: check_signature): Likewise.
26 * grub-core/kern/parser.c (grub_parser_split_cmdline:
27 check_varstate): Likewise. Mark inline.
28 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
29 an additional parameter.
30 (find_long: fnd_long): Likewise. Pass two additional parameters.
31 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
32 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
33 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
34 Likewise. Rename to ...
35 (grub_cmos_find_port_iter): ... this.
36 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
37 Rename to ...
38 (find_rtc_iter): ... this.
39
40 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
41 function directly into the function body, since it is only called
42 once.
43
44 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
45
46 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
47 __attribute__ ((unused)).
48 * grub-core/video/bochs.c (find_card): Likewise.
49 * grub-core/video/cirrus.c (find_card): Likewise.
50 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
51 * grub-core/video/sis315pro.c (find_card): Likewise.
52 * grub-core/video/sm712.c (find_card): Likewise.
53
54 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
55
56 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
57 Fixes Savannah bug #37821.
58
59 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
60
61 Apply program name transformations at build-time rather than at
62 run-time. Fixes Debian bug #696465.
63
64 * acinclude.m4 (grub_TRANSFORM): New macro.
65 * configure.ac: Create output variables with transformed names for
66 most programs.
67 * util/bash-completion.d/grub-completion.bash.in: Use
68 pre-transformed variables for program names.
69 * util/grub-install.in: Likewise.
70 * util/grub-kbdcomp.in: Likewise.
71 * util/grub-mkconfig.in: Likewise.
72 * util/grub-mkconfig_lib.in: Likewise.
73 * util/grub-mknetdir.in: Likewise.
74 * util/grub-mkrescue.in: Likewise.
75 * util/grub-mkstandalone.in: Likewise.
76 * util/grub-reboot.in: Likewise.
77 * util/grub-set-default.in: Likewise.
78 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
79 * tests/util/grub-shell-tester.in: Remove unused assignment.
80 * tests/util/grub-shell.in: Likewise.
81 * util/grub.d/00_header.in: Likewise.
82
83 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
84
85 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
86
87 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
88 HAVE_RAW_DECL_GETS.
89 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
90
91 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
92
93 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
94 Reported by: Eriks Latosheks <foresterlv>.
95
96 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * docs/grub.texi (Network): Update instructions on generating netboot
99 image.
100
101 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
104 around device name if necessarry.
105
106 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
107
108 * util/grub-install.in: Follow the symbolic link parameter added
109 to the file command.
110
111 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
112
113 * util/grub-install.in: Remove stale TODO.
114
115 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
116
117 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
118 dynamic allocation for the bootpath buffer.
119
120 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
121
122 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
123 window too small.
124
125 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
128 argument rather than font name. All users updated.
129 (grub_gfxterm_set_window): Likewise.
130
131 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
132
133 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
134 from working.
135
136 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * util/getroot.c (convert_system_partition_to_system_disk): Support
139 nbd disks.
140
141 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
144 infinite loop on corrupted FS.
145
146 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
147
148 Fix big-endian mtime.
149
150 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
151 together sec and usec.
152 (grub_ufs_dir): Use correct byteswapping for UFS time.
153
154 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
155
156 Support big-endian UFS1.
157
158 * Makefile.util.def (libgrubmods): Add ufs_be.c
159 * grub-core/Makefile.core.def (ufs1_be): New module.
160 * grub-core/fs/ufs_be.c: New file.
161 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
162 the file.
163
164 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
165
166 * include/grub/types.h: Fix functionality unaffecting typo in
167 GRUB_TARGET_WORDSIZE conditional macro.
168
169 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
170
171 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
172
173 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
174
175 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
176 that /netbsd appears first (when it exists).
177
178 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
179
180 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
181 Fixes Savannah bug #37558.
182
183 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
184
185 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
186 description of extract_entries_configfile.
187
188 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
189
190 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
191 preferred_address.
192 (grub_cmd_linux): Likewise.
193 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
194 preferred_lifetime. Update all users.
195
196 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
197
198 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
199 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
200
201 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
202
203 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
204 errors from grub-probe to /dev/null, not stdout.
205
206 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
209 sector 1.
210
211 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
212
213 * util/grub-install.in: Make the error message if $source_dir
214 doesn't exist more useful.
215
216 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
217
218 Fix grub-emu build on FreeBSD.
219
220 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
221 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
222 headers on Linux.
223 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
224 implementation is currently Linux-specific.
225 * util/getroot.c (exec_pipe): Define only on Linux or when either
226 libzfs or libnvpair is unavailable.
227 (find_root_devices_from_poolname): Remove unused path variable.
228
229 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
230
231 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
232 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
233 should fit before end == 63.
234
235 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
236
237 * util/grub-setup.c (write_rootdev): Remove unused core_img
238 parameter. Update all callers.
239 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
240 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
241 GRUB_SETUP_BIOS.
242
243 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
244
245 * util/grub-mkconfig_lib.in (grub_tab): New variable.
246 (grub_add_tab): New function.
247 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
248 * util/grub.d/10_illumos.in: Likewise.
249 * util/grub.d/10_kfreebsd.in: Likewise.
250 * util/grub.d/10_linux.in: Likewise.
251 * util/grub.d/10_netbsd.in: Likewise.
252 * util/grub.d/10_windows.in: Likewise.
253 * util/grub.d/10_xnu.in: Likewise.
254 * util/grub.d/20_linux_xen.in: Likewise.
255 * util/grub.d/30_os-prober.in: Likewise.
256
257 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
260 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
261 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
262 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
263 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
264 ieee1275-nocursor.
265 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
266 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
267
268 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
269
270 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
271 le-conversion.
272 Reported by: BURETTE, Bernard.
273
274 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
275
276 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
277 from comment.
278
279 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
280
281 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
282 IEEE1275 machines. Fixes powerpc-emu compilation.
283 * include/grub/terminfo.h: Likewise.
284
285 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
288 a const pointer.
289 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
290 const pointer.
291 (efiemu_set_variable): Make vendor_guid a const pointer.
292
293 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
294
295 Don't require grub-mkconfig_lib to generate manpages for programs.
296
297 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
298 dependencies, don't add grub-mkconfig_lib.
299 (program): Pass empty adddeps.
300 (script): Pass grub-mkconfig_lib as adddeps.
301
302 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
305 * util/getroot.c (grub_find_device): Likewise.
306 (get_mdadm_uuid): Likewise.
307 (grub_util_is_imsm): Likewise.
308 (grub_util_pull_device): Likewise.
309 * util/grub-probe.c (probe): Likewise.
310
311 2012-09-10 Benoit Gschwind <gschwind>
312
313 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
314 (devs): Add devpath_8.
315
316 2012-09-08 Peter Jones <pjones@redhat.com>
317
318 * grub-core/Makefile.core.def (efifwsetup): New module.
319 * grub-core/commands/efi/efifwsetup.c: New file.
320 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
321 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
322 New define.
323 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
324
325 2012-09-05 Jiri Slaby <jslaby@suse.cz>
326
327 * configure.ac: Add SuSe path.
328
329 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
330
331 * NEWS: Fix typo.
332
333 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
334
335 * util/import_gcry.py: Sort cipher_files, to make build system
336 generation more deterministic.
337
338 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
341 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
342 (grub_set_datetime): Likewise.
343
344 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
347 warnings.
348
349 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
352
353 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
356
357 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
358
359 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
360 required for checkouts from bzr, but it may be useful for users or
361 distributors wishing to update translations against a tarball
362 distribution, and it can be helpful for the tarball to be a superset
363 of what's in bzr.
364
365 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
366
367 * Makefile.am (EXTRA_DIST): Add
368 grub-core/tests/boot/linux.init-mips.S,
369 grub-core/tests/boot/linux.init-ppc.S, and
370 grub-core/tests/boot/linux-ppc.cfg.
371
372 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
373
374 * grub-core/mmap/mips/loongson: Remove empty directory.
375
376 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
377
378 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
379 gone.
380
381 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
382
383 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
384 grub-sparc64-setup.
385
386 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
387
388 * configure.ac: Strengthen the test for working -nostdinc -isystem.
389
390 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
391
392 * po/POTFILES.in: Regenerated.
393
394 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
395
396 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
397 (NetBSD): New subsection.
398
399 2012-07-22 Ales Nesrsta <starous@volny.cz>
400
401 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
402 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
403
404 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
407 * util/grub.d/10_hurd.in: Add missing quoting.
408 * util/grub.d/10_illumos.in: Likewise.
409 * util/grub.d/10_kfreebsd.in: Likewise.
410 * util/grub.d/10_linux.in: Likewise.
411 * util/grub.d/20_linux_xen.in: Likewise.
412
413 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
414
415 New command `lsefi'.
416
417 * grub-core/Makefile.core.def (lsefi): New module.
418 * grub-core/commands/efi/lsefi.c: New file.
419 * include/grub/efi/api.h: Add more GUIDs.
420
421 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
424 (grub_bsd_elf32_hook): Likewise.
425 (grub_bsd_elf64_size_hook): Likewise.
426 (grub_bsd_elf64_hook): Likewise.
427 (grub_bsd_load_elf): Likewise.
428
429 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
432 if hash function is unavailable.
433 (dec_stream_header): Likewise.
434
435 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
438 filter state.
439
440 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
441
442 Fix coreboot compilation.
443
444 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
445 (grub_vga_text_init_real): ... this.
446 (grub_vga_text_fini): Rename to ...
447 (grub_vga_text_fini_real): ... this.
448
449 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
452
453 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
454
455 * grub-core/lib/legacy_parse.c: Support clear and testload.
456
457 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
460
461 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/fs/ext2.c: Experimental support for 64-bit.
464
465 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * grub-core/net/tftp.c (ack): Fix endianness problem.
468 (tftp_receive): Likewise.
469 Reported by: Michael Davidsaver.
470
471 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * gentpl.py: Make mans depend on grub-mkconfig_lib.
474
475 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
478 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
479 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
480
481 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
484 efi_mmap_size.
485 Reported by: Stuart Hayes.
486
487 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
488
489 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
490
491 * grub-core/Makefile.core.def (mda_text): New module.
492 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
493 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
494 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
495 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
496 here.
497 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
498 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
499 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
500 here.
501 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
502 to ..
503 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
504 ... here
505 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
506 here.
507 * grub-core/term/i386/vga_common.c: Removed.
508 * include/grub/i386/vga_common.h: Likewise.
509 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
510 (grub_vga_cr_bw_read): Likewise.
511 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
512 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
513 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
514 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
515 grub_vga_cr_read/grub_vga_cr_write.
516 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
517
518 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * configure.ac: Bump version to 2.00.
521 * grub-core/normal/main.c (features): Add feature_200_final.
522
523 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
524 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
525
526 * NEWS: Fix unclarity and language mistakes.
527
528 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
531 additional size to 3 pages.
532 Reported by: Stuart Hayes.
533
534 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * NEWS: Add 2.00 entry.
537
538 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
541 put explicit "/" for empty path.
542 (wildcard_expand): Improve dprintf.
543
544 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
547 it's equal to currnode. This can happen with "" symlink.
548
549 2012-06-27 Yves Blusseau <blusseau@zetam.org>
550
551 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
552 echo shell command by printf command.
553
554 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
557 the value returned by firmware is the maximal position, not diumension.
558 (grub_terminfo_output_state): Use a more sane fallback.
559
560 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
563
564 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
567 frequency to 150 MHz.
568
569 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
570
571 Apple fixes.
572
573 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
574 __APPLE_
575 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
576 definition.
577 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
578
579 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
580
581 Handle slash in HFS label.
582
583 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
584 (grub_hfs_dir): Tanslate slash.
585 (grub_hfs_label): Don't translate slash.
586
587 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
590 network protocol listing since it introduces problematic dependency on
591 net module.
592
593 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
594
595 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
596
597 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
598
599 Init video early on yeeloong to avoid being rebooted by watchdog.
600
601 * grub-core/Makefile.am (gensm712): New target.
602 (sm712_start.S): Likewise.
603 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
604 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
605 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
606 description.
607 * include/grub/vga.h: Move registry definitions to...
608 * include/grub/vgaregs.h: ... here.
609
610 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
613 signedness.
614
615 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
618 platforms with firmware disk drivers in the core.
619
620 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
623 informative verbose message.
624 (read_lv): Handle 64-bit segment size.
625
626 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
629
630 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
633 character but still remove trainling spaces.
634 (grub_fat_label): Ignore archive flag.
635
636 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
639 cast between linux_kernel_header and linux_kernel_params.
640
641 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
644 type for size.
645 (grub_raid6_recover_func_t): Likewise.
646 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
647 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
648
649 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
652
653 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
654
655 Fix overflow.
656
657 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
658 [__NetBSD__]: Add explicit cast before bitshift.
659
660 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * configure.ac: Bump to 2.00~rc1.
663
664 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
665
666 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
667 half of $a0.
668
669 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
670 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
671
672 * docs/grub.texi: Fix search syntax.
673 (Multi-boot manual config): Put msdos rather than GPT example.
674 Grammar corrections.
675
676 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
679
680 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
683
684 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
685
686 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
687 message on double free. Put the value of magic in case of mismatch.
688
689 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
690
691 Speed-up video on yeeloong.
692
693 * grub-core/video/sm712.c (framebuffer): Remove render_target and
694 add cached_ptr.
695 (grub_video_sm712_video_fini): Unmap cached_ptr.
696 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
697 (grub_video_sm712_set_active_render_target): Removed.
698 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
699 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
700 sync caches.
701
702 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
703
704 Avoid flushing the same line multiple times on loongson.
705
706 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
707 Step in 32 bytes and not 1 byte.
708 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
709 Likewise.
710
711 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
712
713 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
714 subvolumes.
715
716 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
717
718 Implement flow control for http.
719
720 * grub-core/net/http.c (parse_line): Handle response 206.
721 (http_receive): Stall if too many packets are in the queue.
722 (http_establish): Fix range header.
723 (http_seek): Fix double free.
724 (http_close): Likewise.
725 (http_packets_pulled): New function.
726 (grub_http_protocol): Set http_seek
727 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
728 (ack_real): Set window depending on i_stall.
729 (grub_net_send_tcp_packet): Likewise.
730 (grub_net_tcp_stall): New function.
731 (grub_net_tcp_unstall): Likewise.
732 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
733 (grub_net_tcp_unstall): Likewise.
734
735 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/net/tftp.c: Decrease stall to 50 packets.
738
739 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
742
743 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * tests/util/grub-shell.in: Fix a typo.
746
747 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
748
749 Implement flow control for tftp.
750
751 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
752 packets but stop only if stop condition is satisfied.
753 (grub_net_fs_read_real): Call packets_pulled after real read. Use
754 `stall' instead of `eof' as stop condition.
755 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
756 (http_err): Likewise.
757 * grub-core/net/tftp.c (ack): Replace the first argument with data
758 instead of socket.
759 (tftp_receive): Stall if too many packets are in wait queue.
760 (tftp_packets_pulled): New function.
761 (grub_tftp_protocol): Set packets_pulled.
762 * include/grub/net.h (grub_net_packets): New field count.
763 (grub_net_put_packet): Increment count.
764 (grub_net_remove_packet): Likewise.
765 (grub_net_app_protocol): New field `packets_pulled'.
766 (grub_net): New field `stall'.
767
768 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
769
770 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
771 sync part to handle them.
772
773 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
776 * grub-core/net/drivers/ieee1275/ofnet.c
777 (grub_ieee1275_net_config_real): Likewise.
778
779 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
782 the direct route for server/gateway.
783
784 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
787 IP address to server name since we may not hame the DNS.
788
789 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
792 freeing random buffer on failure.
793 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
794
795 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
798
799 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
800
801 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
802 reserved bytes.
803 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
804 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
805 Handle malloc error correctly.
806
807 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
810 blocks.
811
812 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
815 increment.
816
817 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
820 none is explicitly specified.
821
822 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
825 while reallocating.
826
827 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Respect netmask from bootp/dhcp.
830
831 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
832 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
833 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
834 into ...
835 (grub_net_add_ipv4_local): ... this.
836 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
837 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
838 (grub_net_add_ipv4_local): New proto.
839
840 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
843 determining EFI memory map size.
844
845 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
848
849 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
852 when looking for partition separator.
853
854 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
857 Escape commas.
858
859 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Restructure FAT driver to avoid hook in label reading as it hits a
862 GCC bug.
863
864 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
865 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
866 (grub_fat_iterate_dir): Split into ...
867 (grub_fat_iterate_init): ... this, ...
868 (grub_fat_iterate_fini): ... this, ...
869 (grub_fat_iterate_dir_next): ... and this. All users updated.
870
871 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
874 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
875 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
876 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
877 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
878 New fields last_key and last_key_time.
879 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
880 extended key-esc into extended key-extended key.
881
882 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
883
884 Avoid unnecessary memcpy of whole video buffer.
885
886 * grub-core/video/fb/video_fb.c (dirty): New struct.
887 (framebuffer): Add members current_dirty and previous_dirty.
888 (dirty): New function.
889 (grub_video_fb_fill_rect): Update dirty.
890 (common_blitter): Likewise.
891 (grub_video_fb_scroll): Likewise.
892 (doublebuf_blit_update_screen): Copy only dirty part.
893 (doublebuf_pageflipping_update_screen): Likewise.
894 (grub_video_fb_doublebuf_blit_init): Init dirty.
895 (doublebuf_pageflipping_init): Likewise.
896 (grub_video_fb_setup): Likewise.
897
898 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
901 poll rate.
902
903 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
904
905 Fix wildcard regexp dot and other special characters handling.
906 Reported by: Robert Mabee.
907
908 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
909 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
910 (split_path): Trigger expansion on '?'.
911 (unescape): New function.
912 (wildcard_expand): Unescape parts copied without globbing.
913 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
914 (grub_script_arglist_to_argv): Don't unescape expansions.
915
916 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * include/grub/net.h (grub_net_card): New member txbufsize.
919 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
920 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
921 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
922 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
923 txbufsize.
924 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
925 compatible property to check for macs. Set
926 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
927 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
928 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
929 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
930 (send_card_buffer): Use txbuf.
931 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
932 nested function out of the parent while on it.
933
934 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
937 presence check.
938 (grub_ieee1275_net_config_real): Fix config pointer.
939
940 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
943 filename parsing to non-block devices.
944
945 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * grub-core/kern/device.c (grub_device_open): Remove dead code.
948
949 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
952 All users updated.
953
954 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
957 UUID search command even if hints probing failed.
958
959 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * po/POTFILES.in: Regenerated.
962
963 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Speed-up video on fuloong.
966
967 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
968 New function.
969 (grub_pci_device_unmap_range): Handle non-cached address.
970 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
971 add direct_ptr.
972 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
973 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
974 (grub_video_sis315pro_set_active_render_target): Removed.
975 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
976 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
977 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
978 sync caches.
979 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
980 New proto.
981
982 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * docs/grub.texi (Multi-boot manual config): New section.
985
986 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
987
988 Avoid slow read-back from VRAM.
989
990 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
991 Move from here ...
992 * grub-core/video/fb/video_fb.c
993 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
994 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
995 (front_target): Remove front_target. Add pages.
996 (grub_video_fb_init): Skip setting front_pages.
997 (grub_video_fb_fini): Likewise.
998 (doublebuf_blit_update_screen): Use pages.
999 (grub_video_fb_doublebuf_blit_init): Likewise.
1000 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1001 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1002 (grub_video_fb_setup): Prefer doublebuffing.
1003
1004 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1007 gzio.
1008
1009 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 Add loongson tests.
1012
1013 * tests/util/grub-shell.in: Handle loongson.
1014 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1015 drivers.
1016 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1017 Reboot instead of shutdown if REBOOT is defined.
1018
1019 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1022 sized ports since unlike on real hardware qemu supports only 32-bit
1023 regs.
1024
1025 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1028 * util/grub-mkrescue.in: Handle loongson.
1029
1030 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1031
1032 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1033 Set is_part appropriately.
1034 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1035 names. Canonicalize partition without full disk.
1036
1037 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Revert usb-quiesce since it's wrong.
1040
1041 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1042 (grub_ofdisk_init): Don't do quiesce.
1043
1044 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1047 PowerMac workaround to Xserves as well.
1048 Information supplied by: Benjamin Herrenschmidt.
1049
1050 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 Don't assume that beginning address is also the entry point on ppc.
1053
1054 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1055 (grub_linux_boot): Use linux_entry.
1056 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1057 (grub_linux_load64): Likewise.
1058
1059 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1062
1063 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1066 needlessly lose the console.
1067
1068 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1069
1070 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1071 space.
1072
1073 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1076 than current grub_get_rtc() not implemented when booted with
1077 coreboot without TSC.
1078
1079 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1080 Add machine/time.h to kernel headers on loongson.
1081 * grub-core/Makefile.core.def (kernel): Remove
1082 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1083 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1084 (grub_get_rtc): Likewise.
1085 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1086 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1087 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1088 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1089 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1090 rather than installing known non-working time source.
1091 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1092 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1093 * include/grub/time.h: Don't include machine/time.h.
1094 * include/grub/efi/time.h: Removed.
1095 * include/grub/i386/efi/time.h: Likewise.
1096 * include/grub/i386/ieee1275/time.h: Likewise.
1097 * include/grub/powerpc/ieee1275/time.h: Likewise.
1098 * include/grub/sparc64/ieee1275/time.h: Likewise.
1099 * include/grub/x86_64/efi/time.h: Likewise.
1100
1101 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 Remove dot on i and j when combining with above diacritics.
1104
1105 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1106 value.
1107 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1108 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1109 with dotless variants when any combining above is present.
1110
1111 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1114 text and not binary.
1115
1116 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 Stop polling as soon as we have the packet we were waiting for.
1119
1120 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1121 All users updated.
1122 * grub-core/net/arp.c (have_pending): New var.
1123 (pending_req): Likewise.
1124 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1125 stop indicator.
1126 (grub_net_arp_receive): Set have_pending.
1127 * grub-core/net/dns.c (recv_data): New field stop.
1128 (recv_hook): Set stop.
1129 (grub_net_dns_lookup): Init stop and use as stop condition.
1130 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1131 condition.
1132 * grub-core/net/net.c (grub_net_poll_cards): New argument
1133 stop_condition. Stop when it goes true.
1134 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1135 indicator.
1136 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1137
1138 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Keep TX and RX buffers on EFI rather than always allocate new ones.
1141
1142 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1143 card. All users updated.
1144 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1145 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1146 (get_card_packet): Likewise.
1147 (grub_efinet_findcards): Init new fields.
1148
1149 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1152 compilation error on sparc64.
1153
1154 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 Use ITC on IA64 rather than broken routine based on daytime.
1157
1158 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1159 ia64.
1160 (grub_get_rtc) [__ia64__]: Likewise.
1161 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1162 (get_itc): New function.
1163 (grub_rtc_get_time_ms): Likewise.
1164 (grub_machine_init): Calibrate ITC.
1165 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1166 Keep only on non-ia64. Don't export since it's broken and used only
1167 if TSC is unavailable.
1168
1169 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1172 even if it's used.
1173 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1174 Skip if parent is unused.
1175
1176 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1179
1180 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Fix wildcard escaping.
1183
1184 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1185 * grub-core/script/execute.c (wildcard_escape): .. to here.
1186 Don't escape dot.
1187 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1188 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1189 Don't escape dot.
1190 * grub-core/script/execute.c (gettext_append): Always escape.
1191 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1192 * grub-core/script/yylex.l: Don't cut away the escaping.
1193 * tests/grub_script_echo1.in: Add tests with wildcard.
1194
1195 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1198 (ftdi_hw_configure): Likewise.
1199 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1200 define.
1201 (real_config): Handle 1.5 stop bits.
1202 (pl2303_hw_configure): Likewise.
1203
1204 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * Makefile.am: Add ppc linux bootcheck.
1207 * grub-core/tests/boot/linux-ppc.cfg: New file.
1208 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1209
1210 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * tests/grub_script_expansion.in: Skip network protocols.
1213
1214 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1217
1218 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1221 --rom-directory.
1222 Add -graft-points.
1223
1224 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 ESCC serial driver for conducting sautomated tests in qemu.
1227 Not tested on real hardware.
1228
1229 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1230 * grub-core/term/ieee1275/escc.c: New file.
1231 * grub-core/Makefile.core.def (escc): New module.
1232
1233 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1236 invalid on error.
1237 (serial_hw_fetch): Don't read invalid handle.
1238 (serial_hw_put): Don't write into invalid handle.
1239
1240 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 Add a 1.5 stop bits value.
1243
1244 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1245 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1246 GRUB_SERIAL_STOP_BITS_1_5.
1247
1248 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1251 value rather than let it uninited.
1252
1253 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * grub-core/commands/wildcard.c (+check_file): New function.
1256 (wildcard_expand): Don't expand to non-existing files, expand with
1257 suffix and not attempt to expand if not needed.
1258
1259 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1262 out of partitions containing other partitions.
1263
1264 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1267 on some qemu versions with GRUB.
1268
1269 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1270 define.
1271 (grub_openbsd_bootarg_pcibios): New struct.
1272 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1273 Add PCIINFO.
1274
1275 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * tests/util/grub-shell.in: Trim firmware output on EFI.
1278
1279 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1282 and coreboot since it's already in kernel.
1283
1284 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1287 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1288 to here. New return value start. All users updated.
1289 Recursively scan linear mappings.
1290 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1291 proto.
1292 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1293 Use grub_util_get_dm_node_linear_info.
1294 * util/getroot.c (convert_system_partition_to_system_disk): Use
1295 grub_util_info rather than grub_dprintf.
1296 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1297
1298 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1301
1302 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1303 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1304
1305 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * include/grub/types.h (grub_set_unaligned64): New function.
1308 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1309 (setup): Likewise.
1310
1311 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1314 (grub_ofdisk_fini): Quiesce USB devices.
1315
1316 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1319 caches.
1320
1321 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1324
1325 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/disk/pata.c (grub_pata_pio_read)
1328 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1329 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1330
1331 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 Extend automated tests to qemu-mips.
1334
1335 * Makefile.am: reorganise tests and enable qemu-mips.
1336 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1337 * grub-core/tests/boot/linux.init-mips.S: New file.
1338 * tests/partmap_test.in: Handle ata0 disks.
1339 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1340 non-pc i386.
1341
1342 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1345 ia64.
1346 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1347 quotes while on it.
1348
1349 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1352 (grub_halt): Likewise.
1353 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1354
1355 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/term/serial.c (grub_serial_register)
1358 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1359 the behaviour in line with x86 platforms.
1360
1361 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1364 (grub_ata_strncpy): Likewise.
1365 (grub_ata_identify): Add missing byteswaps.
1366
1367 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1370 byte-swap.
1371 (screen_read_char): Likewise.
1372 (grub_vga_text_cls): Likewise.
1373
1374 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1377 filenames.
1378 (make_file_path): Likewise.
1379
1380 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1383 machines.
1384 Tested by: Paulo Flabiano Smorigo.
1385 Crucial information about API supplied by: Coleen <Last name unknown>.
1386 Reviewed by: Coleen <Last name unknown>.
1387
1388 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 * util/grub-mkimage.c: Disable -Wcast-align.
1391
1392 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1395 as they are fatal.
1396
1397 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1400
1401 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * util/grub-probe.c (escape_of_path): Fix double free.
1404
1405 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * grub-core/commands/videoinfo.c (hook): Show pitch.
1408
1409 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1412
1413 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1416 (probe): Add ieee1275 to OFW devices.
1417
1418 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1421
1422 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 Handle IBM OFW path.
1425
1426 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1427 available.
1428 (of_path_of_scsi): Handle vdevice.
1429
1430 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1433 Allocate in multiples of 16 to avoid adding a few bytes free region the
1434 windows bugs upon.
1435
1436 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1439 Allocate in multiples of 16 to avoid adding a few bytes free region the
1440 windows bugs upon.
1441 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1442
1443 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1446 resolutions.
1447 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1448 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1449
1450 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1451
1452 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1453
1454 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1457 resulted in \\ at the end of the line.
1458
1459 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1462 (grub_parser_cmdline_state): Likewise.
1463 (grub_parser_split_cmdline): Likewise.
1464
1465 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1468 /dev/root and /dev/dm-*.
1469
1470 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1473 fix partially stale display.
1474
1475 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1478 substraction.
1479
1480 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1483 Fix MBR remapping workaround.
1484 (grub_util_biosdisk_read) [__linux__]: Likewise.
1485
1486 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1489
1490 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * configure.ac: Bump to beta6.
1493
1494 2012-05-31 Christer Weinigel <christer@weinigel.se>
1495
1496 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1497
1498 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1501 (grub_cmd_linux): Likewise.
1502
1503 2012-05-31 Christer Weinigel <christer@weinigel.se>
1504
1505 Fix EHCI low-speed.
1506
1507 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1508 (GRUB_EHCI_MULT_TWO): Likewise.
1509 (GRUB_EHCI_MULT_THREE): Likewise.
1510 (GRUB_EHCI_CMASK_MASK): New enum value.
1511 (GRUB_EHCI_SMASK_MASK): Likewise.
1512 (GRUB_EHCI_CMASK_OFF): Likewise.
1513 (GRUB_EHCI_SMASK_OFF): Likewise.
1514 (grub_ehci_pci_iter): Enable periodic schedule.
1515 (grub_ehci_parse_notrun): Likewise.
1516 (grub_ehci_restore_hw): Likewise.
1517 (grub_ehci_setup_qh): Set flags for low speed transfers.
1518 (grub_ehci_find_qh): Use periodic list for low speed.
1519 (grub_ehci_setup_transfer): Check periodic queue as well.
1520 (grub_ehci_check_transfer): Likewise.
1521 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1522
1523 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1524
1525 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1526 parameter is used.
1527
1528 2012-05-31 Peter Jones <pjones@redhat.com>
1529
1530 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1531 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1532 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1533
1534 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1537 uninited variable. Allocate at least setup_sects.
1538
1539 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 Fix handling of EFI with big memory maps.
1542
1543 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1544 (real_mode_mem): Likewise.
1545 (real_mode_target): Likewise.
1546 (real_mode_pages): Likewise.
1547 (prot_mode_pages): Likewise.
1548 (linux_params): New var.
1549 (linux_cmdline): Likewise.
1550 (free_pages): Don't set real mode variables.
1551 (allocate_pages): Don't allocate real mode memory.
1552 (grub_e820_add_region): Remove the limit.
1553 (grub_linux_boot): Allocate and copy real mode memory.
1554 (grub_linux_unload): Free linux_cmdline.
1555 (grub_cmd_linux): Use temporary storage for parameters.
1556 (grub_cmd_initrd): Likewise.
1557 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
1558 (linux_kernel_params): Make it 1K big.
1559
1560 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * Makefile.util.def: Remove -Wno-format.
1563 * grub-core/Makefile.core.def: Likewise.
1564
1565 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * tests/cmp_unit_test.c: Add missing failure message.
1568 * tests/example_unit_test.c: Likewise.
1569 * tests/printf_unit_test.c: Likewise.
1570
1571 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
1574 relaxation of protective MBR requirements.
1575
1576 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * configure.ac: Add condition for COND_HOST_XNU.
1579 * Makefile.util.def (10_xnu): New script.
1580 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
1581
1582 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
1585 objconv bug.
1586
1587 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
1590 Binary on other platforms stays identical.
1591
1592 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
1595 Apple.
1596
1597 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
1600
1601 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
1604 rather than defining size_t ourselves to avoid conflict.
1605
1606 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
1609 initialisation to avoid __bzero reference.
1610
1611 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
1614 version.
1615 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
1616 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
1617 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
1618 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
1619 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
1620
1621 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
1624 * grub-core/kern/misc.c: Likewise.
1625 * grub-core/loader/i386/xnu.c: Likewise.
1626 * include/grub/i386/tsc.h: Likewise.
1627 * include/grub/symbol.h: Likewise.
1628
1629 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
1632 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
1633 on older compiler.
1634
1635 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1638 Implement Apple flavour.
1639 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
1640
1641 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
1644 (memmove) [__APPLE__]: Likewise.
1645 (memcpy) [__APPLE__]: Likewise.
1646 (memset) [__APPLE__]: Likewise.
1647 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
1648 (memmove) [__APPLE__]: Likewise.
1649 (memcpy) [__APPLE__]: Likewise.
1650 (memset) [__APPLE__]: Likewise.
1651
1652 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
1655 dependency discard.
1656
1657 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * grub-core/normal/main.c (read_config_file): Provide config_file and
1660 config_directory.
1661 * util/grub.d/41_custom.in: Use config_directoy when available.
1662
1663 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
1666 (grub_bfs_dir): Likewise.
1667
1668 2012-05-27 Peter Jones <pjones@redhat.com>
1669
1670 The old code gives arguments to a printf function which can't work
1671 correctly, and the compiler complains.
1672
1673 * grub-core/tests/example_functional_test.c (example_test): Add
1674 missing text.
1675 * grub-core/tests/lib/test.c (add_failure): Rewrite.
1676 * include/grub/test.h (grub_test_assert_helper): New declaration.
1677 (grub_test_assert): Use grub_test_assert_helper.
1678
1679 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
1682 (exfctest): ... this to avoid overlong filenames.
1683 All users updated.
1684
1685 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1686
1687 Handle "." and ".." on squashfs.
1688
1689 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
1690 Make inode numbers into stack.
1691 (grub_squash_read_symlink): Use stack.
1692 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
1693 (make_root_node): Fill stack.
1694 (grub_squash_open): Use stack.
1695
1696 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
1699 freeing.
1700
1701 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
1704 stderr on test calls.
1705
1706 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
1709
1710 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
1713
1714 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
1717 "..".
1718
1719 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
1722 (grub_hfsplus_iterate_dir): Add "." and "..".
1723
1724 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * grub-core/fs/cpio.c (canonicalize): Handle "..".
1727 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
1728
1729 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
1732 (find_path): Handle "." and "..".
1733
1734 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
1737 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
1738 (grub_affs_iterate_dir): Handle hardlinks.
1739
1740 2012-05-26 Matthew Garrett <mjg@redhat.com>
1741
1742 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
1743 (grub_efi_console_fini): Likewise.
1744 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
1745 (grub_video_gop_fill_mode_info): Rename to ...
1746 (grub_video_gop_fill_real_mode_info): ... this.
1747 (grub_video_gop_fill_mode_info): New function.
1748 (grub_video_gop_setup): Setup double framebuffer.
1749 (grub_video_gop_get_info_and_fini): Use original framebuffer.
1750 Free offscreen.
1751 (grub_video_gop_swap_buffers): Copy framebuffer.
1752 (grub_video_gop_fini): Free offscreen buffer.
1753 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
1754 New enum.
1755 (grub_efi_gop_blt_pixel): New struct.
1756
1757 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1758
1759 * gentpl.py: Remove error disabling for objconv.
1760
1761 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 * configure.ac: Remove -Wunitialized as it's not available on older
1764 compilers.
1765
1766 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 Fix extent overflow comparator.
1769
1770 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
1771 (grub_hfsplus_read_block): Set type.
1772 (grub_hfsplus_cmp_extkey): Compare type.
1773
1774 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
1777
1778 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
1781 than 0.
1782
1783 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1784
1785 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
1786 (dejavu_bold_14.pf2): New target.
1787
1788 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1789
1790 * configure.ac: Fix djvu font detection.
1791
1792 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
1795 ext* instead of ext2.
1796
1797 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
1800 name with \0.
1801
1802 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
1803
1804 * docs/grub-dev.texi: Remove dot from .png.
1805
1806 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
1809 protective entry in any slot.
1810 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
1811 if protective entry is found in any slot.
1812
1813 Protective entry in non-first slot make no sense but is a widespread
1814 brain damage.
1815
1816 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
1819
1820 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
1823 with old reiserfs.
1824 (grub_reiserfs_open): Don't free root.
1825
1826 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
1829 after freeing for safety.
1830
1831 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
1834 Reported by: Jordan Uggla.
1835
1836 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
1837
1838 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
1839 actual implementation. Specifically, clarify that the grub menu will
1840 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
1841 passed.
1842
1843 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
1844
1845 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
1846 of r0.
1847
1848 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 Remove unjustified hard dependency of normal.mod on gfxterm.
1851
1852 * include/grub/term.h (grub_term_output): New member fullscreen.
1853 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
1854 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
1855 (grub_gfxterm): Set .fullscreen.
1856 * grub-core/normal/menu.c (menu_init): Use fullscreen.
1857 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
1858
1859 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1860
1861 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
1862 mentioning possible problems with non-ASCII (non-compliant) ISOs.
1863 Mention case-insensitive AFFS, SFS and JFS.
1864
1865 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
1868
1869 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1872 a bad FS.
1873
1874 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
1877 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
1878
1879 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
1882 (grub_jfs_mount): Fill caseins.
1883 (grub_jfs_find_file): Respect caseins.
1884
1885 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
1888 through UTF-16.
1889
1890 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
1893 New argument origpath. All users updated.
1894
1895 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
1898 (read_attr): Ensure that we read start of possibly compressed block.
1899
1900 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
1903 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
1904 All users updated.
1905
1906 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
1909 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
1910 (dejavu.pf2): Replace with ...
1911 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
1912 this.
1913
1914 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * util/grub.d/20_linux_xen.in: Add missing line.
1917
1918 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
1921 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
1922 (grub_utf16_to_utf8): Likewise.
1923
1924 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
1927 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
1928 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1929 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
1930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1931 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
1932
1933 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1936 a bad FS.
1937
1938 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/fs/udf.c (read_string): Bail out on size=0.
1941 (grub_udf_read_symlink): Handle read_string failure.
1942
1943 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
1946 comment.
1947
1948 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 Fix handling of UDF symlinks.
1951
1952 * grub-core/fs/udf.c (read_string): New argument outbuf.
1953 All users updated.
1954 (grub_ufs_read_symlink): Rename to ...
1955 (grub_udf_read_symlink): ... this. All users updated.
1956 Handle symlinks with more than one component.
1957
1958 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
1961 symlinks. Replace leading colon with a slash.
1962
1963 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
1966 filename.
1967
1968 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
1971 match in inner node.
1972
1973 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1974
1975 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
1976 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
1977 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
1978 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
1979 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
1980 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
1981 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
1982 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
1983 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
1984
1985 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Use grub-probe and not cmp to check that disk is empty.
1988
1989 * util/grub-install.in: Use grub-probe for zero-check.
1990 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
1991 (probe): Handle PRINT_ZERO_CHECK.
1992 (argp_parser): Handle -t zero_check.
1993
1994 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 Flush block cache on adding disk to device map.
1997
1998 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
1999 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2000 adding.
2001 (read_device_map): Likewise.
2002 (open_device): Flush on opening.
2003
2004 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2007 (handle_symlink): Fix off-by-one error.
2008 Canonicalize the target.
2009 (grub_cpio_dir): Canonicalize the name.
2010 Fix memory leak.
2011 Set directory.
2012 (grub_cpio_open): Canonicalize the name.
2013
2014 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2015
2016 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2017 handling.
2018
2019 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2022 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2023
2024 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2027 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2028 All users updated.
2029
2030 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2033 counterpart.
2034
2035 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 Fix UFS1 big file support.
2038
2039 * grub-core/fs/ufs.c (INODE): Removed.
2040 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2041 64-bit.
2042 (INODE_MODE): Simplify.
2043 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2044 (grub_ufs_lookup_symlink): Don't use INODE.
2045
2046 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2049
2050 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2051 (grub_minix_data): Replace log_block_size with block_size.
2052 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2053 (grub_minix_mount): Fill block_size.
2054
2055 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * configure.ac: Bump to beta5.
2058
2059 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 Fix wrapped HFS+ handling.
2062
2063 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2064 blocks_start. All users updated.
2065 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2066 wrapping offset.
2067 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2068
2069 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 Fix long symlinks on reiserfs.
2072
2073 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2074 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2075 (grub_reiserfs_iterate_dir): Save size for non-directories.
2076 (grub_reiserfs_open): Don't reread stat block as we already know the
2077 size.
2078 (grub_reiserfs_read): Split into...
2079 (grub_reiserfs_read_real): ... and ...
2080 (grub_reiserfs_read): ...this.
2081
2082 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 Fix non-indexed JFS.
2085
2086 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2087 (grub_jfs_data): New field namecomponentlen.
2088 (grub_jfs_mount): Fill namecomponentlen.
2089 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2090
2091 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2094 * tests/grub_script_echo1.in: Add tests.
2095
2096 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * util/grub-install.in: Ignore empty devicetree directory.
2099
2100 2012-05-08 Bean <bean123ch@gmail.com>
2101
2102 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2103 All users updated.
2104 (free_rsm): Free header as well.
2105 (free_old_fragments): Fix memory leak.
2106 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2107 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2108 (destroy_pq): Likewise.
2109 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2110
2111 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2114 resulting hash as a precaution.
2115
2116 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2119 '_' in variable names.
2120 * grub-core/net/net.c (grub_net_network_level_interface_register):
2121 Likewise.
2122
2123 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 Fix AFFS with non-512B blocks.
2126
2127 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2128 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2129 (grub_affs_data): Replace blocksize with log_blocksize.
2130 (grub_affs_read_block): Fix non-512B blocks.
2131 (grub_affs_read_symlink): Likewise.
2132 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2133 (grub_affs_read): Fix non-512B blocks.
2134 (grub_affs_label): Likewise.
2135 (grub_affs_mtime): Likewise.
2136 (grub_affs_mount): Fix block detection routine.
2137
2138 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 Add filesystem mtime to AFFS.
2141
2142 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2143 (aftime2ctime): New function.
2144 (grub_affs_dir): Use aftime2ctime.
2145 (grub_affs_label): Fix return value.
2146 (grub_affs_mtime): New function.
2147 (grub_affs_fs): Add mtime.
2148
2149 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2152 UTF-8.
2153
2154 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2157 UTF-8.
2158
2159 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2162
2163 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2166 flags.
2167 (FLAGS_CASE_SENSITIVE): New enum value.
2168 (cache_entry): New struct.
2169 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2170 cache_size and cache.
2171 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2172 Add log_blocksize and fshelp_flags.
2173 (grub_sfs_read_extent): Handle non-512 blocks.
2174 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2175 (grub_sfs_read_file): Handle non-512 blocks.
2176 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2177 fshelp_flags.
2178 (grub_sfs_read_symlink): Handle non-512 blocks.
2179 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2180 (grub_sfs_dir): Free cache.
2181 (grub_sfs_close): Likewise.
2182
2183 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2186 filesystems.
2187
2188 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2191
2192 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2195
2196 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2199 (grub_sfs_read_extent): Likewise.
2200 (grub_sfs_read_block): Likewise.
2201 (grub_sfs_mount): Likewise.
2202 (grub_sfs_iterate_dir): Likewise.
2203 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2204 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2205
2206 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 Fix errors on compressed NTFS with 512B clusters.
2209
2210 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2211 types.
2212 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2213 not 0.
2214 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2215 Relax check for inline extents.
2216 (ntfscomp): Return correct -1 on error and not 0.
2217
2218 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * util/grub-install.in: Fix handling of prefix containing spaces.
2221
2222 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2225 (grub_squash_read_data): Fix offset byte-swapping.
2226
2227 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2230 per common usage and preffered in several parts of code.
2231 (grub_memcmp): Likewise.
2232 (grub_strncmp): Likewise.
2233 * include/grub/misc.h (grub_strcasecmp): Likewise.
2234 (grub_strncasecmp): Likewise.
2235 * Makefile.util.def (cmp_test): New test.
2236 (grub_script_strcmp): Likewise.
2237 * tests/cmp_unit_test.c: New file.
2238 * tests/grub_script_strcmp.in: Likewise.
2239 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2240
2241 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * include/grub/pci.h: Move enums into no-asm part.
2244
2245 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2248
2249 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2250
2251 * util/getroot.c (find_hurd_root_device): Try to make error message
2252 and comments to translators clearer.
2253
2254 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2257
2258 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2261 btrfs.
2262
2263 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * docs/grub.cfg: Update.
2266
2267 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * docs/grub.texi (PXE): Remove not present variables.
2270
2271 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/net/net.c (defserver_set_env): New function.
2274 (defserver_get_env): Likewise.
2275 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2276
2277 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2280 entries.
2281
2282 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2285 * grub-core/kern/emu/hostdisk.c: Likewise.
2286
2287 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2288
2289 Handle hurd userspace partitions.
2290
2291 * util/getroot.c (find_hurd_root_device): New function.
2292 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2293
2294 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2297 names.
2298 Reported by: Bastian Blank.
2299
2300 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2303 crossing page boundary.
2304
2305 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 Fix B-tree search in BFS, especially in presence of non-ASCII
2308 characters.
2309
2310 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2311 (find_in_b_tree): Use standard bsearch + btree algorithm.
2312
2313 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2316 and so on.
2317
2318 2012-05-03 Matthew Garrett <mjg@redhat.com>
2319 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 Suspend broadcom cards in order to stop their DMA.
2322
2323 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2324 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2325 (pci): Don't build on x86 EFI.
2326 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2327 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2328 New function.
2329 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2330 stop_broadcom if running on EFI.
2331 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2332 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2333 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2334 (grub_pci_find_capability): New proto.
2335
2336 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * docs/grub.texi: Remove dot from the extension as it apparently
2339 doesn't work with some makeinfo versions.
2340
2341 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2344 with GRUB expectance.
2345
2346 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2349
2350 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2353 zero after directory block since last entry may be not 0-terminated if
2354 it ends on block boundary. Use continue instead of if spanning whole
2355 loop.
2356
2357 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 Support 4K sectors UDF inline files.
2360
2361 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2362 (grub_udf_extended_file_entry): Likewise.
2363 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2364 All users updated.
2365 (get_fshelp_size): New function.
2366 (grub_udf_read_icb): Read whole block.
2367 (grub_udf_iterate_dir): Likewise.
2368 (grub_udf_dir): Likewise.
2369 (grub_udf_open): Likewise.
2370
2371 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2374
2375 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2378 inline symlinks in addition to workaround.
2379
2380 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2383
2384 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2385
2386 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2387
2388 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2391
2392 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 Fix reiserfs big seek times.
2395
2396 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2397 exact. All users updated.
2398 (grub_reiserfs_read): Use nearest btree search for seeking.
2399 Fix return value on error.
2400
2401 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2404 entries.
2405 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2406 * docs/grub.texi: Update menuentry description.
2407
2408 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2411 crash when embedding onto filesystem.
2412
2413 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2416 name.
2417
2418 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2421
2422 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2423
2424 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2425 commit.
2426
2427 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2428 2012-05-01 Bean <bean123ch@gmail.com>
2429
2430 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2431
2432 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2435 Special behaviour for len = 0 to read whole file isn't used anywhere and
2436 can cause buffer ovewrflows in several places.
2437
2438 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2441
2442 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 Handle RAIDZ on non-512B sectors.
2445
2446 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2447 max_children_ashift.
2448 (fill_vdev_info_real): Fill max_children_ashift.
2449 (read_device): Use max_children_ashift.
2450
2451 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2454
2455 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2458 disk names.
2459 * docs/grub.texi: Update device.map parts.
2460
2461 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 Don't scan into non-diskfilter devices having diskfilter names.
2464
2465 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2466 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2467 handling.
2468 (scan_disk_hook): New function.
2469
2470 2012-04-29 Bean <bean123ch@gmail.com>
2471
2472 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2473 allocation.
2474
2475 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2476
2477 * configure.ac: Detect starfield theme font path
2478 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2479
2480 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2483 geometry on serial consoles.
2484
2485 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2488 because of network consoles.
2489
2490 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2493 handling.
2494
2495 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2498 falls on Q syndrom.
2499
2500 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2503 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2504
2505 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2508 Allocate at lest 8192 for temporary buffer as required for lzo.
2509
2510 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2513 to cluster_bits, since it's already added in.
2514 (grub_fat_read_data): Likewise.
2515
2516 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2519 as long as cluster size is multiple of 512 bytes.
2520
2521 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * util/grub-mkrescue.in: Fix locale directory.
2524
2525 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 * grub-core/kern/emu/hostdisk.c (map): Make static.
2528
2529 2012-04-23 Bean <bean123ch@gmail.com>
2530
2531 * util/grub-fstest.c (fstest): Add missing break.
2532
2533 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2534
2535 Fix hurd build.
2536
2537 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2538 not define nr variable.
2539 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2540 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2541 grub_find_device): Do not define.
2542
2543 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 Fix kfreebsd compile and behaviour.
2546
2547 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2548 format-security.
2549 * util/getroot.c: Fix wait.h include.
2550 (grub_guess_root_devices): Error if grub_find_device fails.
2551 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
2552 (grub_util_get_dev_abstraction): Likewise.
2553 (grub_util_pull_device): Likewise.
2554 (grub_util_get_grub_dev): Likewise.
2555 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
2556
2557 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 Fix and unify wholedisk detection.
2560
2561 * util/getroot.c (convert_system_partition_to_system_disk): New argument
2562 is_part. All users updated.
2563 (device_is_wholedisk): Removed.
2564 (grub_util_biosdisk_get_grub_dev): Use is_part.
2565
2566 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
2569 mode.
2570
2571 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * configure.ac: Bump to beta4.
2574
2575 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
2578 --fs-uuid --set UUID syntax.
2579
2580 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
2583 disunification.
2584
2585 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
2588
2589 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
2590
2591 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2592
2593 2012-04-18 Mike Gilbert <floppym@gentoo.org>
2594
2595 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
2596
2597 2012-04-18 Bean <bean123ch@gmail.com>
2598
2599 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
2600 place.
2601
2602 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
2605 users updated.
2606 (grub_util_biosdisk_read): Handle Linux partitions not exactly
2607 corresponding to GRUB partitions.
2608 (grub_util_biosdisk_write): Likewise.
2609
2610 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 Scan mdraid before LVM.
2613
2614 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
2615 (grub_diskfilter_register_front): ... this.
2616 (grub_diskfilter_register_back): New function.
2617 All users of grub_diskfilter_register updated.
2618
2619 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * util/grub-install.in: Fix an automatic target detection bug.
2622
2623 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * util/grub-install.in: New option --efi-directory.
2626
2627 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
2630 boot services if we have no other choice.
2631
2632 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * util/grub-mknetdir.in: Rename --override-directory to --directory and
2635 document it.
2636 * tests/util/grub-shell.in: Update to --directory.
2637
2638 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
2641
2642 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
2645 (grub_minix_read_file): Likewise.
2646 (grub_minix_read_inode): Likewise.
2647 (grub_minix_find_file): Likewise.
2648 (grub_minix_dir): Likewise.
2649
2650 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * util/grub-setup.c (setup): Fix partition handling and blocklist
2653 check.
2654
2655 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
2658 redundant buggy overlap check.
2659
2660 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
2663 and grub-mknetdir.
2664
2665 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
2668 kh.loadflags on pre-2.00 kernels.
2669
2670 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 Terminate UNDI and PXE before launching the payload to avoid problems
2673 with DMA.
2674
2675 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
2676 (grub_loader_flags): ... this. All users updated.
2677 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
2678 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
2679 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
2680 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
2681 function.
2682 (grub_pxe_restore): Likewise.
2683 (fini_hnd): New var.
2684 (GRUB_MOD_INIT): Register shutdown hook.
2685 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
2686 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
2687 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
2688 (grub_loader_set): Rename second argument to flags.
2689
2690 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
2693 written bytes.
2694 (grub_get_num_of_utf8_bytes): New function.
2695 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
2696 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
2697 executing it.
2698 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
2699 (grub_ucs4_to_utf8): Change return type.
2700
2701 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
2704 warning.
2705 * grub-core/fs/bfs.c (hop_level): Likewise.
2706 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
2707
2708 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * grub-core/lib/adler32.c: Recode due to license unclearness.
2711
2712 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
2715 (test_header): Likewise.
2716
2717 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 Fix --help formatting.
2720
2721 * util/grub-mkconfig_lib.in (print_option_help): New function.
2722 (grub_fmt): Likewise.
2723 * util/grub-install.in: Use print_option_help and grub_fmt.
2724 * util/grub-kbdcomp.in: Likewise.
2725 * util/grub-mkconfig.in: Likewise.
2726 * util/grub-mknetdir.in: Likewise.
2727 * util/grub-mkrescue.in: Likewise.
2728 * util/grub-mkstandalone.in: Likewise.
2729 * util/grub-reboot.in: Likewise.
2730 * util/grub-set-default.in: Likewise.
2731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2732
2733 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * linguas.sh: Remove autogenerated *.po.
2736
2737 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * po/README: Move language fetcing to ...
2740 * linguas.sh: ... here.
2741 * po/README: Point to linguas.sh.
2742
2743 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * po/README: Exclude ko.po due to disclaimer problems.
2746
2747 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
2750 len = 0.
2751 (grub_gettext_translate_real): Handle 0th string.
2752 (grub_gettext_translate): Ensure that "" isn't translated.
2753
2754 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
2757 TRANSLATORS comment.
2758 (grub_diskfilter_print_partmap): Propagate changing of error into
2759 warning.
2760
2761 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
2764 to uint64_t to prevent overflow.
2765 (grub_diskfilter_lv): Increase start_extent and extent_count
2766 to uint64_t to prevent overflow.
2767
2768 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * configure.ac: Increase version.
2771
2772 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
2775
2776 * po/Rules-translit: New file.
2777 * po/arabic.sed: Likewise.
2778 * po/cyrillic.sed: Likewise.
2779 * po/greek.sed: Likewise.
2780 * po/hebrew.sed: Likewise.
2781 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
2782 * po/Makefile.in.in: Add extra_dist4.
2783
2784 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 Handle big-endian minixfs (fixes minixfs tests on bigendian).
2787
2788 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
2789 modify names. Introduce MODE_BIGENDIAN.
2790 * grub-core/fs/minix_be.c: New file.
2791 * grub-core/fs/minix2_be.c: Likewise
2792 * grub-core/fs/minix3_be.c: Likewise.
2793 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
2794 minix3_be.
2795 * grub-core/Makefile.core.def (minix_be): New module.
2796 (minix2_be): Likewise.
2797 (minix3_be): Likewise.
2798
2799 2012-04-01 Felix <email@hamburg.de>
2800
2801 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
2802 (devs): Add MBP 2011.
2803
2804 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
2807
2808 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 * grub-core/normal/cmdline.c (print_completion): New field
2811 prompt_len.
2812 (grub_cmdline_get): Handle width properly.
2813
2814 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * grub-core/commands/lsacpi.c (options): Add missing terminator.
2817
2818 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
2821 after 29th of February.
2822
2823 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 Fix exfat endianness handling.
2826
2827 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
2828 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
2829 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
2830 Byte-swap utf16 when necessary.
2831 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
2832
2833 2012-03-31 Anton Blanchard <anton@samba.org>
2834 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 Fix btrfs endianness handling.
2837
2838 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
2839 (lower_bound): Make root uint64_t. Use root in le.
2840 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
2841 (find_path): Fix template key init.
2842 (grub_btrfs_dir): Fix mtime byteswap.
2843 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
2844
2845 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
2848 recursion_depth. Break infinite resursions. All users updated.
2849
2850 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
2853 after free.
2854 Reported by: Peter Jones.
2855
2856 2012-03-31 Anton Blanchard <anton@samba.org>
2857
2858 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
2859 8 bit values.
2860
2861 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * util/grub-install.in: Fix nvram call for PreP.
2864
2865 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
2868 the error when some elements are missing into a warning.
2869
2870 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2873
2874 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
2875
2876 * docs/grub.texi (Invoking grub-probe): New section.
2877 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
2878
2879 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2880
2881 Fix tab and wide character handling in editor and menu.
2882
2883 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
2884 agglomerate control characters with combining marks.
2885 (bidi_line_wrap): Allow break on tab.
2886 (grub_unicode_get_comb_start): New function.
2887 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
2888 and tab correctly.
2889 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
2890 with a space.
2891 * grub-core/normal/term.c (print_ucs4_terminal): New argument
2892 fixed_tab_size. All users updated.
2893 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
2894 (grub_term_getcharwidth): Handle \t.
2895 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
2896 and copy.
2897
2898 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 Handle big-endian mdraid.
2901
2902 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
2903 * grub-core/Makefile.core.def (mdraid09_be): New module.
2904 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
2905 rather than grub_le_to_cpu* and grub_cpu_to_le*.
2906 * grub-core/disk/mdraid_linux_be.c: New file.
2907
2908 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
2911
2912 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
2915 missing quotes which caused confusion among translators.
2916
2917 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * util/grub-mkconfig_lib.in: Fix typo.
2920
2921 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
2924 spaces.
2925 * tests/grub_script_leading_whitespace.in: New file.
2926 * Makefile.util.def (grub_script_leading_whitespace): New test.
2927
2928 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
2931 to work.
2932
2933 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
2936 starts with control character.
2937
2938 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
2941 overflow.
2942 (grub_gdb_outbuf): Likewise.
2943
2944 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2945
2946 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
2947 zero terminator. Fixes a crash.
2948
2949 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
2952 beyond 4 GiB.
2953 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
2954 images independently of preffered adderss field.
2955
2956 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
2959 * grub-core/commands/regexp.c: Likewise.
2960 * grub-core/loader/i386/linux.c: Likewise.
2961 * grub-core/partmap/msdos.c: Likewise.
2962 * grub-core/script/execute.c: Likewise.
2963 * grub-core/term/gfxterm.c: Likewise.
2964
2965 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 Add variable parsing in $"..." and fix several mismatches with bash.
2968
2969 * Makefile.util.def (grub_script_gettext): New test.
2970 * grub-core/script/execute.c (parse_string): New function.
2971 (gettext_append): Likewise.
2972 (grub_script_arglist_to_argv): Use gettext_append.
2973 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
2974 * tests/grub_script_gettext.in: New file.
2975
2976 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 Fix handling of leading spaces in scripts.
2979
2980 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
2981 spaces.
2982 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
2983 other than skipping \r. All users updated.
2984 * tests/grub_script_echo1.in: Add space-related tests.
2985 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
2986
2987 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2990
2991 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * configure.ac: Bump up the version to beta2.
2994
2995 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 Fix gettext reload bugs (e.g. inability to disable gettext
2998 once enabled).
2999
3000 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3001 main_context and secondary_context. All functions updated.
3002 (grub_gettext_translate): Rename to ...
3003 (grub_gettext_translate_real): ... this. Return NULL on failed
3004 translate.
3005 (grub_gettext_translate): Handle secondary context.
3006 (grub_gettext_delete_list): Close file and zero-out the context.
3007 (grub_mofile_open): Don't call grub_gettext_delete_list.
3008 Don't close file.
3009 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3010 if locale="" to avoid pointless error message.
3011 (grub_gettext_env_write_lang): Update lang even if load fails.
3012 Handle secondary context.
3013 (grub_gettext_reread_prefix): New function.
3014 (read_main): Likewise.
3015 (read_secondary): Likewise.
3016 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3017 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3018 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3019 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3020
3021 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * configure.ac: Decrease warning level to avoid spurious warnings and
3024 to be able to compile with GCC 4.2.
3025 * Makefile.util.def: Remove -Wno-error=logical-op.
3026
3027 2012-03-10 William Bittner <william.bittner@gmail.com>
3028
3029 * util/import_unicode.py: Add missing brackets around string for
3030 python 3 support.
3031
3032 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 Fix efi chainloader on network root.
3035
3036 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3037 network devices.
3038 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3039 New function.
3040
3041 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3044 unused show_text member.
3045 * docs/grub.texi: Document "text" property.
3046
3047 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3050 in dprintf.
3051
3052 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 Fix IMSM handling on Fedora.
3055
3056 * util/getroot.c (grub_util_is_imsm): New function.
3057 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3058
3059 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * Makefile.am: Strip gold section.
3062 * conf/Makefile.common: Likewise.
3063 * gentpl.py: Likewise.
3064 * grub-core/Makefile.core.def: Likewise.
3065 * grub-core/genmod.sh.in: Likewise.
3066
3067 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3070 * util/grub.d/20_linux_xen.in: Likewise.
3071 Based on Debian patch.
3072
3073 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * util/grub.d/10_linux.in: Fix syntax error resulting in
3076 Richard Laager's patch.
3077 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3078
3079 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3082 dependencies.
3083
3084 2012-03-10 Richard Laager <rlaager@wiktel.com>
3085
3086 * util/grub.d/10_linux.in: Fix ZFS root passing.
3087
3088 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3091 * grub-core/commands/xnu_uuid.c: Likewise.
3092 * grub-core/loader/efi/appleloader.c: Likewise.
3093 * grub-core/script/execute.c: Likewise.
3094 * grub-core/script/main.c: Likewise.
3095 * util/grub-mkfont.c: Likewise.
3096
3097 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * util/grub-mkfont.c (options): Use more appropriate "select" that
3100 "set" for face index.
3101
3102 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * util/grub-editenv.c (options): Gettextize command summaries.
3105
3106 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3109 "out of memory" error messagge.
3110
3111 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3114 of diskfilter for diskfilter on diskfilter support.
3115
3116 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3119
3120 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3123 themes/starfield.
3124
3125 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3128
3129 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3132
3133 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3136 of error message.
3137
3138 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3141
3142 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3145 message.
3146 * util/grub-install.in: Fix and gettextize error message.
3147
3148 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3151 Gettextize.
3152 * util/grub-mount.c (options): Likewise.
3153
3154 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3157 gettextize.
3158 * grub-core/commands/search_wrap.c (options): Likewise.
3159
3160 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3163
3164 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3167 size calculation.
3168 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3169 none is known.
3170
3171 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3174 "temporary" since it's used in identifier and is limited in space.
3175
3176 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * po/POTFILES.in: Regenerate. Include *.h since they contain
3179 translatable strings as well.
3180
3181 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3184 byte-swap on big-endian.
3185 Reported by: Lennart Sorensen
3186
3187 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3190 (allocate_pages): Improve dprintf.
3191 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3192 code32_start. Fill code32_start and kernel_alignment in params.
3193 (grub_cmd_initrd): Use prot_init_space.
3194
3195 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3198
3199 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * util/grub-install.in: Add missing dot at the end of sentence.
3202
3203 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3206 * grub-core/commands/videotest.c: Likewise.
3207 * grub-core/loader/i386/linux.c: Likewise.
3208
3209 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3212 sentence.
3213 Reported by: Milo Casagrande.
3214
3215 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3218 * grub-core/commands/gptsync.c: Likewise.
3219 * grub-core/commands/hashsum.c: Likewise.
3220 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3221 * grub-core/commands/legacycfg.c: Likewise.
3222 * grub-core/io/gzio.c: Likewise.
3223 * grub-core/net/net.c: Likewise.
3224 * grub-core/term/gfxterm.c: Likewise.
3225 * grub-core/term/terminfo.c: Likewise.
3226 * grub-core/tests/test_blockarg.c: Likewise.
3227 * grub-core/video/video.c: Likewise.
3228 * util/grub-install.in: Likewise.
3229 * util/grub-mkfont.c: Likewise.
3230
3231 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3232
3233 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3234
3235 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * grub-core/commands/search_wrap.c (options): Fix a typo.
3238 Reported by: David Prévot.
3239
3240 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3243 description.
3244
3245 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * util/grub-script-check.c (main): Fix a syntax error message which was
3248 unclear.
3249
3250 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3251
3252 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3253
3254 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3257 messages.
3258
3259 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3262 without argument.
3263 * util/grub-mount.c (options): Likewise.
3264
3265 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3268
3269 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/net/http.c: Add TRANSLATORS comments.
3272 * grub-core/normal/cmdline.c: Likewise.
3273 * grub-core/normal/misc.c: Likewise.
3274 * grub-core/partmap/msdos.c: Likewise.
3275 * grub-core/parttool/msdospart.c: Likewise.
3276 * grub-core/script/execute.c: Likewise.
3277 * grub-core/script/main.c: Likewise.
3278 * grub-core/term/terminfo.c: Likewise.
3279 * grub-core/video/bitmap.c: Likewise.
3280 * util/grub-install.in: Likewise.
3281 * util/grub-mkimage.c: Likewise.
3282 * util/grub-mklayout.c: Likewise.
3283 * util/grub-setup.c: Likewise.
3284
3285 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3288 with similar messages in grub-fstest.
3289
3290 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * util/grub-install.in: Unify "option requires an argument" message
3293 with similar messages in other files.
3294 * util/grub-mkconfig.in: Likewise.
3295
3296 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * util/grub-set-default.in: Replace printf with gettext_printf (the
3299 string in in question is already translated from grub-reboot)
3300
3301 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * configure.ac: Bump up the version to beta1.
3304
3305 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3308 case when min_align = 0.
3309
3310 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3313 and fix a case when line_start overflows.
3314
3315 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 * util/grub-reboot.in (usage): Mention id posibility.
3318 * util/grub-set-default.in (usage): Likewise.
3319
3320 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3323 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3324 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3325 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3326 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3327 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3328 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3329
3330 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * grub-core/commands/menuentry.c (options): Remove
3333 GRUB_ARG_OPTION_REPEATABLE.
3334 Reported by: Andreas Vogel
3335
3336 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3337
3338 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3339
3340 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3341
3342 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3343 error.
3344
3345 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 Use sort -V by the idea of Georgi Georgiev.
3348
3349 * util/grub-mkconfig_lib.in (version_sort): New function.
3350 (version_test_numeric): Use version_sort.
3351
3352 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 Use submenus in grub-mkconfig.
3355
3356 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3357 * util/grub-mkconfig_lib.in (grub_quote): New function.
3358 (gettext_printf): Use gettext and not gettext_quoted to fix several
3359 messages.
3360 * util/grub.d/10_hurd.in: Use submenus.
3361 * util/grub.d/10_kfreebsd.in: Likewise.
3362 * util/grub.d/10_linux.in: Likewise.
3363 * util/grub.d/10_netbsd.in: Likewise.
3364 * util/grub.d/20_linux_xen.in: Likewise.
3365 * util/grub.d/30_os-prober.in: Likewise.
3366 * util/grub.d/10_illumos.in: Add missing quoting.
3367 * util/grub.d/10_windows.in: Likewise.
3368
3369 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 Fix menu title instability bug.
3372
3373 * grub-core/commands/menuentry.c (options): New option --id.
3374 (grub_normal_add_menu_entry): New argument id. All users updated.
3375 (grub_cmd_menuentry): Handle --id.
3376 (grub_menu_init): Accept unknown arguments.
3377 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3378 feature_menuentry_options.
3379 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3380 saved_entry.
3381 (get_entry_number): Match with id as well.
3382 * include/grub/menu.h (grub_menu_entry): New member id.
3383 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3384 * util/grub.d/00_header.in: Define menuentry_id_option.
3385 * util/grub.d/10_hurd.in: Define id.
3386 * util/grub.d/10_illumos.in: Likewise.
3387 * util/grub.d/10_kfreebsd.in: Likewise.
3388 * util/grub.d/10_linux.in: Likewise.
3389 * util/grub.d/10_netbsd.in: Likewise.
3390 * util/grub.d/10_windows.in: Likewise.
3391 * util/grub.d/20_linux_xen.in: Likewise.
3392 * util/grub.d/30_os-prober.in: Likewise.
3393
3394 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3397 "scope" with "body".
3398
3399 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3402 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3403 prot_size and prot_file_size.
3404
3405 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3408 All users updated. If easily=1 require raid-5/-6 to be full.
3409 (is_node_readable): Likewise.
3410 (scan_devices): Scan incomplete but readable LVs at the end.
3411 (grub_diskfilter_memberlist): Pull missing devices.
3412 (insert_array): Skip scanning until device is complete or scan is
3413 done otherwise.
3414 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3415 check.
3416 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3417 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3418
3419 2012-03-03 Matthew Garrett <mjg@redhat.com>
3420 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 Avoid EFI boot services when loading Linux.
3423
3424 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3425 avoid_efi_bootservices. All users updated.
3426 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3427 argument avoid_efi_bootservices. All users updated.
3428 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3429 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3430 align, min_align, relocatable, prefered_address. All users updated.
3431 Allocate avoiding boot services if kernel is relocatable.
3432 (grub_cmd_linux): Check if kernel is relocatable.
3433 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3434 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3435 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3436 avoid_efi_boot_services.
3437 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3438 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3439 (linux_kernel_params): Likewise.
3440
3441 2012-03-03 Matthew Garrett <mjg@redhat.com>
3442 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3443
3444 Use EDID on EFI.
3445
3446 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3447 datasize_out.
3448 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3449 modes. Set gop_handle.
3450 (grub_video_gop_get_edid): New function.
3451 (grub_gop_get_preferred_mode): Likewise.
3452 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3453 (grub_video_efi_gop_adapter): Set .get_edid.
3454 * include/grub/efi/edid.h: New file.
3455 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3456
3457 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * util/grub-install.in: Load efivars unconditionally.
3460
3461 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * po/Rules-piglatin: Change suffix from .po-update-en to
3464 .po-update-en-piglatin.
3465
3466 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 Add a pig farm.
3469
3470 * po/piglatin.sed: New file.
3471 * po/en@piglatin.header: Likewise.
3472 * po/Rules-piglatin: Likewise.
3473 * po/README: Add en@piglatin to autogenerated languages.
3474
3475 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3478 "Command for ...".
3479 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3480 "Check" since we don't check anything.
3481 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3482 is 64-bit one.
3483 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3484 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3485 (grub_md_sha512_real): Likewise.
3486
3487 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/commands/gptsync.c: Fix typographic quoting.
3490 * grub-core/commands/ieee1275/suspend.c: Likewise.
3491 * grub-core/commands/parttool.c: Likewise.
3492 * grub-core/commands/search_wrap.c: Likewise.
3493 * grub-core/commands/videoinfo.c: Likewise.
3494 * grub-core/gfxmenu/gui_label.c: Likewise.
3495 * grub-core/hello/hello.c: Likewise.
3496 * grub-core/kern/emu/main.c: Likewise.
3497 * grub-core/net/net.c: Likewise.
3498 * grub-core/normal/menu.c: Likewise.
3499 * grub-core/normal/menu_text.c: Likewise.
3500 * grub-core/normal/misc.c: Likewise.
3501 * util/grub-editenv.c: Likewise.
3502 * util/grub-install.in: Likewise.
3503 * util/grub-kbdcomp.in: Likewise.
3504 * util/grub-mkconfig.in: Likewise.
3505 * util/grub-mknetdir.in: Likewise.
3506 * util/grub-mkrescue.in: Likewise.
3507 * util/grub-mkstandalone.in: Likewise.
3508 * util/grub-reboot.in: Likewise.
3509 * util/grub-set-default.in: Likewise.
3510 * util/grub-setup.c: Likewise.
3511 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3512
3513 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3516 * grub-core/commands/keystatus.c: Likewise.
3517 * grub-core/commands/loadenv.c: Likewise.
3518 * grub-core/commands/probe.c: Likewise.
3519 * grub-core/commands/regexp.c: Likewise.
3520 * grub-core/commands/true.c: Likewise.
3521 * grub-core/commands/videoinfo.c: Likewise.
3522 * grub-core/disk/cryptodisk.c: Likewise.
3523 * grub-core/disk/ldm.c: Likewise.
3524 * grub-core/disk/loopback.c: Likewise.
3525 * grub-core/disk/luks.c: Likewise.
3526 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3527 * grub-core/kern/disk.c: Likewise.
3528 * grub-core/kern/emu/hostdisk.c: Likewise.
3529
3530 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3533 * util/grub-install.in: Add missing quote in the comment.
3534
3535 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3538 * grub-core/commands/lsmmap.c: Likewise.
3539 * grub-core/commands/minicmd.c: Likewise.
3540 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3541 * grub-core/commands/regexp.c: Likewise.
3542 * grub-core/gdb/gdb.c: Likewise.
3543 * grub-core/term/gfxterm.c: Likewise.
3544 * util/grub-mkconfig.in: Likewise.
3545 * util/grub-mkfont.c: Likewise.
3546 * util/grub-mklayout.c: Likewise.
3547 * util/grub-mknetdir.in: Likewise.
3548 * util/grub-mkrescue.in: Likewise.
3549 * util/grub.d/30_os-prober.in: Likewise.
3550
3551 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
3554 with "Direct color" and "Packed" with "Packed pixel".
3555 (grub_cmd_videoinfo): Simplify legend.
3556
3557 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3560 absolutely unclear error message.
3561
3562 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * util/grub-mkstandalone.in: Remove confusing leftover print.
3565
3566 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
3569 comments.
3570 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
3571 (GRUB_MOD_INIT): Likewise.
3572 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
3573 VGA mode.
3574 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
3575 comments.
3576 * util/grub-install.in (usage): Likewise.
3577 Spell ID in whole letters.
3578 Add missing ending dot.
3579 Quote variables.
3580 * util/grub-reboot.in: Fix capitalisation.
3581 * util/grub-set-default.in: Likewise.
3582
3583 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
3586 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
3587 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
3588 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
3589 Disable -Werror for -Wdeprecated-declarations.
3590 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
3591 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
3592 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
3593 (grub_util_get_grub_dev): Make luks handling dependent on
3594 HAVE_DEVICE_MAPPER and not __linux__.
3595 (get_win32_path): Fix format security.
3596 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
3597 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
3598 Don't try grub_find_zpool_from_dir.
3599 (grub_make_system_path_relative_to_its_root) [!__linux__]:
3600 #ifdef-out paresdir.
3601
3602 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * util/grub-pe2elf.c (usage): Add missing noreturn.
3605 (write_section_data): Rename name to shname to avoid shadowing.
3606 (write_symbol_table): Rename name to symname to avoid shadowing.
3607 Fix write_reloc_section call.
3608
3609 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
3612 to ensure that it's after the last byte of .text.
3613
3614 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * util/ieee1275/ofpath.c (my_isdigit): New function.
3617 (trailing_digits): Use my_isdigit.
3618 (strip_trailing_digits): Likewise.
3619
3620 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
3623 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
3624
3625 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/kern/i386/pc/startup.S: Define __start.
3628
3629 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
3632 strip already transforms he format.
3633
3634 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
3637
3638 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * util/grub-install.in: Add missing gettext init.
3641 * util/grub-kbdcomp.in: Likewise.
3642 * util/grub-mkconfig.in: Likewise.
3643 * util/grub-mknetdir.in: Likewise.
3644 * util/grub-mkrescue.in: Likewise.
3645 * util/grub-mkstandalone.in: Likewise.
3646 * util/grub-reboot.in: Likewise.
3647 * util/grub-set-default.in: Likewise.
3648 * util/grub.d/00_header.in: Likewise.
3649 * util/grub.d/10_hurd.in: Likewise.
3650 * util/grub.d/10_windows.in: Likewise.
3651 * util/grub.d/30_os-prober.in: Likewise.
3652 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3653
3654 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * po/Rules-swiss: Fix header comment.
3657
3658 2012-02-29 Andreas Vogel <anvoit>
3659
3660 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
3661 resulted in leak of arguments.
3662
3663 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/boot/i386/pc/startup_raw.S: Use separate
3666 reed_solomon_size const definition instead of computing it since
3667 Apple assembler doesn't support the later.
3668
3669 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * gentpl.py (kernel): Rewrite Apple part.
3672
3673 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * include/grub/kernel.h (FOR_MODULES): Check module magic.
3676
3677 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * util/grub-mkimagexx.c (locate_sections): Support non-standard
3680 ELF section gap.
3681 (load_image): Likewise.
3682
3683 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * configure.ac: Fix a typo in previous commit.
3686
3687 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 Don't add -Wl,-N on Apple platform.
3690
3691 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
3692 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
3693
3694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/Makefile.core.def (lzma_decompress): Use
3697 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
3698
3699 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * grub-core/genmod.sh.in: Rewrite the Apple part.
3702
3703 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
3706 comparison.
3707
3708 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * acinclude.m4 (grub_CHECK_PIC): New test.
3711 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
3712
3713 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
3716 to avoid the warning.
3717
3718 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
3721 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
3722 after. All users updated.
3723
3724 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 Use the common size routine in hostfs so we can read disks as well.
3727
3728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
3729 (grub_util_get_fd_size): ... this. Return size in bytes.
3730 All users updated.
3731 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
3732 grub_util_get_fd_size.
3733
3734 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
3737 Add blocksize retrieval.
3738
3739 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 * configure.ac: Restore CFLAGS after efiemu check.
3742
3743 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
3746 Apple bug.
3747
3748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
3751
3752 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
3755 (grub_cmd_halt): Likewise.
3756
3757 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
3760 for local arithmetics.
3761 Break %sp init into 2 instructions.
3762 Add 0 byte at the end.
3763
3764 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * grub-core/disk/diskfilter.c (read_segment): Initialise err
3767 before loops.
3768
3769 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
3772 for context.
3773
3774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/disk/ldm.c (make_vg): Init part.name.
3777 (grub_ldm_detect): Silence spurious warning.
3778 (grub_util_is_ldm): Likewise.
3779
3780 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
3783 sane value to avoid a spurious warning.
3784
3785 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
3788 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
3789
3790 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
3793 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
3794
3795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
3798 hardcoding the relevant info.
3799
3800 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
3803 missing const qualifiers.
3804 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
3805
3806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * util/getroot.c [__APPLE__]: Add missing includes.
3809 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
3810
3811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * util/grub-mkimage.c (generate_image): Silence spurious warning.
3814
3815 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
3818 avoid conflicts.
3819
3820 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
3823
3824 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
3827 and grub_file_close call.
3828
3829 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 Add LZSS Mach-O support (needed for new xnu kernelcache).
3832
3833 * grub-core/Makefile.core.def (xnu): Add file lzss.c
3834 * grub-core/loader/lzss.c: New file.
3835 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
3836 on Mach-O open failure.
3837 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
3838 Don't free cmdsXX in uncompressedXX is set.
3839 (grub_macho_file): Init new fields.
3840 New argument is_64bit. All users updated.
3841 Handle compressed. Error out if no suitable architecture is found.
3842 Don't close file.
3843 (grub_macho_open): New argument is_64bit. All users updated.
3844 * grub-core/loader/macho32.c: Add defines for new fields.
3845 * grub-core/loader/macho64.c: Likewise.
3846 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
3847 (grub_macho_parse): Handle compressed.
3848 Defer actual processing if compressed.
3849 (grub_macho_cmds_iterate): Decompress if compressed. New argument
3850 "filename". All users updated.
3851 (grub_macho_size): New argument "filename". All users updated.
3852 (grub_macho_get_entry_point): Likewise.
3853 (grub_macho_load): Handle compressed.
3854 * include/grub/macho.h (grub_macho_lzss_header): New struct.
3855 (GRUB_MACHO_LZSS_OFFSET): New define.
3856 (grub_decompress_lzss): New proto.
3857 * include/grub/machoload.h (grub_macho_file): New fields to handle
3858 compressed.
3859 (grub_macho_contains_macho64): Remove proto.
3860 (grub_macho_contains_macho32): Likewise.
3861 * util/grub.d/30_os-prober.in: Use kernel cache if available.
3862
3863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
3866
3867 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 Fix make dist.
3870
3871 * Makefile.am (starfield_theme_files): New var.
3872 (starfield_DATA): Use starfield_theme_files.
3873 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
3874 Add bootcheck-related files.
3875 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
3876 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
3877 and font_char_metrics.txt.
3878 * grub-core/Makefile.core.def (kernel): Update extra_dist.
3879 (setjmp): Add lib/ia64/longjmp.S.
3880 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
3881 * po/POTFILES.in: Regenerate.
3882 * po/Rules-swiss: use DISTFILES.common.extra2 and not
3883 DISTFILES.common.extra1.
3884 * util/devicemap.c: Removed.
3885 * grub-core/lib/i386/relocator_backward.S: Likewise.
3886 * util/import_gcry.py: Remove unused files. Add extra_dist for
3887 ChangeLog.
3888
3889 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * grub-core/gettext/gettext.c (grub_mofile_open): Call
3892 grub_gettext_delete_list before changing grub_gettext_max to avoid
3893 running out of array bounds.
3894
3895 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
3898 grub_vga_text_init/grub_vga_text_fini.
3899
3900 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
3903
3904 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * configure.ac: Bump to 2.00~beta0.
3907
3908 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
3911 missing initialisation.
3912
3913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
3916
3917 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 Support v2 xnu boot arguments.
3920
3921 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
3922 New argument fsbfreq_out.
3923 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
3924 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
3925 be used.
3926 * grub-core/loader/machoXX.c (grub_macho_load): New argument
3927 darwin_version.
3928 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
3929 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
3930 (grub_xnu_boot_params): Rename to ...
3931 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
3932 (grub_xnu_boot_params_v2): New struct.
3933
3934 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
3937 zeroing of CRC field before computing CRC.
3938
3939 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
3942 Change order of allocations to decrease fragmentation.
3943
3944 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
3947
3948 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3949
3950 Use write-combining MTRR to speed up video with buggy BIOSes.
3951
3952 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
3953 (cpuid): New define.
3954 (rdmsr): Likewise.
3955 (wrmsr): Likewise.
3956 (mtrr_base): Likewise.
3957 (mtrr_mask): Likewise.
3958 (grub_vbe_enable_mtrr_entry): New function.
3959 (grub_vbe_enable_mtrr): Likewise.
3960 (grub_vbe_disable_mtrr): Likewise.
3961 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
3962 control off to BIOS.
3963 (grub_video_vbe_init): Fill mtrr.
3964 (grub_video_vbe_fini): Disable mtrr.
3965 (grub_video_vbe_get_info_and_fini): Likewise.
3966 (grub_video_vbe_setup): Enable mtrr.
3967
3968 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3969
3970 * include/grub/partition.h (grub_partition_map): Change prototype of
3971 embed to take a maximum value for nsectors.
3972 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
3973 * include/grub/fs.h (grub_fs): Likewise.
3974 * grub-core/partmap/msdos.c (embed_signatures): New array.
3975 (pc_partition_map_embed): Check for and avoid sectors matching any
3976 of the signatures in embed_signatures, up to max_nsectors.
3977 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
3978 returned sector map to max_nsectors.
3979 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
3980 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
3981 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
3982 * util/grub-setup.c (setup): Allow for the embedding area being
3983 split into multiple blocklists. Tell dest_partmap->embed the
3984 maximum number of sectors we care about.
3985
3986 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
3989 Specify blocklist_install and reserver_first_sector for all fs.
3990 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
3991 blocklists.
3992
3993 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * util/grub-install.in: Clarify strings.
3996 Fix source dir check.
3997
3998 2012-02-27 Richard Laager <rlaager@wiktel.com>
3999
4000 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4001 "zfs" and "fuse.zfs" as synonyms.
4002
4003 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * configure.ac: Put platform and target_cpu substitutions back since
4006 they are used for directories.
4007
4008 2012-02-27 Richard Laager <rlaager@wiktel.com>
4009 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4012 * util/grub.d/20_linux_xen.in: Likewise.
4013
4014 2012-02-27 Richard Laager <rlaager@wiktel.com>
4015
4016 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4017 with full paths.
4018
4019 2012-02-27 Richard Laager <rlaager@wiktel.com>
4020
4021 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4022 unescape.
4023
4024 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4025
4026 Don't use insecure popen in getroot.
4027
4028 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4029 (exec_pipe): ... here.
4030 (find_root_devices_from_poolname): Use exec_pipe.
4031
4032 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 Remove platform and target_cpu replacement.
4035
4036 * configure.ac: Remove platform and target_cpu substitutions.
4037 * tests/util/grub-shell.in: Use modinfo.
4038 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4039 explicitly.
4040
4041 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 Autodetect platform in grub-install but allow override.
4044
4045 * util/grub-install.in: Autodetect platform. Support --target and
4046 --directory. Read platform from modinfo.sh.
4047
4048 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 Support btrfs multi-volume probe.
4051
4052 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4053 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4054 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4055 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4056 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4057 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4058 grub_find_root_devices_from_btrfs if on btrfs.
4059
4060 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 Remove any awareness of *.c util files about target.
4063
4064 * Makefile.util.def (grub-setup): Split to ...
4065 (grub-bios-setup): ... and this.
4066 (grub-sparc64-setup): ... and this.
4067 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4068 * docs/man/grub-setup.h2m: Split into ...
4069 * docs/man/grub-sparc64-setup.h2m: ... this.
4070 * docs/man/grub-bios-setup.h2m: ... and this.
4071 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4072 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4073 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4074 (grub_target_addr_t): Remove.
4075 (grub_target_size_t): Remove.
4076 (grub_target_ssize_t): Remove.
4077 * util/grub-install.in: Use new grub-*-setup.
4078 * util/grub-mkimagexx.c (Elf_Word): New define.
4079 (Elf_Half): Likewise.
4080 (Elf_Section): Likewise.
4081 (ELF_ST_TYPE): Likewise.
4082 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4083 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4084
4085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 Replace grub_target_addr with more appropriate types.
4088
4089 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4090 grub_target_addr with grub_addr.
4091 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4092 grub_target_addr with grub_port.
4093 (grub_cmd_write): Likewise.
4094 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4095 grub_target_addr with grub_addr.
4096 (grub_cmd_write): Likewise.
4097 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4098
4099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4102 const qualifier for vendor_guid.
4103
4104 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4107 const qualifier.
4108 (efiemu_memequal): Likewise.
4109 (find_variable): Likewise.
4110
4111 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 Fix missing console prototype on qemu-mips.
4114
4115 * include/grub/mips/qemu_mips/console.h: New file.
4116
4117 2012-02-27 Matthew Garrett <mjg@redhat.com>
4118 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4121 * include/grub/efi/efi.h: Likewise.
4122 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4123 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4124 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4125 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4126 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4127 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4128
4129 2012-02-27 Matthew Garrett <mjg@redhat.com>
4130
4131 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4132
4133 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4136 error.
4137
4138 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * configure.ac: Remove inappropriate use of program_transform_name
4141 on grubdir and bootdir but allow explicit specification of those
4142 variables.
4143
4144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * util/grub-mknetdir.in (grub_prefix): Removed.
4147 (subdir): Use @bootdirname@ and @grubdirname@.
4148
4149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4152
4153 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * po/POTFILES.in: Regenerated.
4156
4157 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 Remove improper use of program_transform_name on pkglibrootdir.
4160
4161 * configure.ac (pkglibrootdir): Removed.
4162 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4163 * util/grub-mkimage.c: Likewise.
4164
4165 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4168 warning.
4169
4170 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * util/grub-install.in: Use file identifier if no UUID is available
4173 or user explicitly prompted for it.
4174
4175 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4176
4177 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4178 (freebsd_get_zfs): New function.
4179 (grub_freebsd_boot): Pass zfs UUID.
4180 (grub_cmd_freebsd): Set zfs UUID.
4181
4182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4185 pkglibrootdir.
4186
4187 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4188
4189 Add configure flag to control libzfs integration.
4190
4191 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4192
4193 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4196 device.
4197 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4198 small devices.
4199
4200 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4203 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4204 be used on non-modules.
4205
4206 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4207 Rename to grub_boot_init.
4208 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4209 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4210 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4211 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4212 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4213 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4214 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4215 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4216 includes.
4217 (grub_machine_init): Remove empty inits.
4218 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4219 includes.
4220 (grub_machine_init): Remove empty inits.
4221 * grub-core/term/arc/console.c: Remove explicit proto.
4222 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4223 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4224 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4225 grub_at_keyboard_fini.
4226 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4227 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4228 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4229 grub_gfxterm_fini.
4230 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4231 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4232 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4233 grub_vgatext_fini.
4234 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4235 * grub-core/term/serial.c (GRUB_MOD_INIT)
4236 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4237 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4238 grub_serial_fini.
4239 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4240 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4241 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4242 grub_terminfo_fini.
4243 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4244 (GRUB_MOD_FINI): Likewise.
4245 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4246 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4247 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4248 grub_video_radeon_fuloong2e_fini.
4249 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4250 [LOONGSON]: Rename to grub_video_sis315pro_init.
4251 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4252 grub_video_sis315pro_fini.
4253 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4254 [LOONGSON]: Rename to grub_video_sm712_init.
4255 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4256 grub_video_sm712_fini.
4257 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4258 (grub_at_keyboard_fini): Likewise.
4259 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4260 Don't declare grub_{modname}_init.
4261 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4262 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4263 New proto.
4264 (grub_keylayouts_fini) [!EMU]: Likewise.
4265 * include/grub/serial.h (grub_serial_init) [!EMU]:
4266 New proto.
4267 (grub_serial_fini) [!EMU]: Likewise.
4268 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4269 New proto.
4270 (grub_terminfo_fini) [!EMU]: Likewise.
4271 * include/grub/video.h (grub_font_init) [!EMU]:
4272 New proto.
4273 (grub_font_fini) [!EMU]: Likewise.
4274 (grub_gfxterm_init) [!EMU]: Likewise.
4275 (grub_gfxterm_fini) [!EMU]: Likewise.
4276 (grub_video_sm712_init) [!EMU]: Likewise.
4277 (grub_video_sm712_fini) [!EMU]: Likewise.
4278 (grub_video_sis315pro_init) [!EMU]: Likewise.
4279 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4280 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4281 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4282
4283 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 Make nand a prefix for nand devices.
4286
4287 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4288
4289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4292 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4293
4294 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * include/grub/env.h (grub_env_find): Remove prototype.
4297 * grub-core/kern/env.c (grub_env_find): Make static.
4298 (grub_env_set): Remove useless set.
4299
4300 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/kern/i386/realmode.S: Remove useless align.
4303
4304 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * include/grub/dl.h (grub_dl_load_file): Don't export.
4307
4308 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4311 grub_dprintf.
4312
4313 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4316 grub_errors.
4317 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4318 not reloading whole superblock but only the part which is really needed.
4319 Remove useless grub_errors.
4320 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4321 grub_errors.
4322
4323 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 Don't export grub_get_rtc.
4326
4327 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4328 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4329
4330 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4333
4334 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4337 argument since it can be deduced from diskfilter. All users updated.
4338
4339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 Remove prio_list.
4342
4343 * include/grub/list.h (grub_prio_list): Removed.
4344 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4345 GRUB_COMMAND_PRIO_MASK.
4346 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4347 GRUB_COMMAND_FLAG_ACTIVE.
4348 (grub_prio_list_insert): Removed.
4349 (grub_prio_list_remove): Likewise.
4350 (GRUB_AS_PRIO_LIST): Likewise.
4351 (GRUB_AS_PRIO_LIST_P): Likewise.
4352 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4353 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4354 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4355 * grub-core/kern/command.c (grub_register_command_prio): Inline
4356 the prio_list code.
4357 (grub_unregister_command): Likewise.
4358
4359 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 Fix interrupt mixup from previous commit.
4362
4363 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4364 (grub_realidt): New var.
4365 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4366 Load idt.
4367 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4368 New declaration.
4369 (grub_relocator16_boot): Set grub_relocator16_idt.
4370 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4371 (LOCAL(realidt)): ... this.
4372 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4373 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4374 (grub_realidt): New variable.
4375
4376 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4377
4378 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4379 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4380 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4381 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4382 Gettextize.
4383 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4384 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4385 * po/POTFILES.in: Regenerate.
4386
4387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4390 errors.
4391
4392 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4395 \0.
4396 (add_length): Likewise.
4397
4398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4399 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4400
4401 GDB serial and backtrace support.
4402
4403 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4404 (prot_to_real): Likewise.
4405 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4406 * grub-core/Makefile.core.def (backtrace): New module.
4407 (gdb): Likewise.
4408 * grub-core/gdb/cstub.c: New file.
4409 * grub-core/gdb/gdb.c: Likewise.
4410 * grub-core/gdb/i386/idt.c: Likewise.
4411 * grub-core/gdb/i386/machdep.S: Likewise.
4412 * grub-core/gdb/i386/signal.c: Likewise.
4413 * grub-core/lib/i386/backtrace.c: Likewise.
4414 * grub-core/lib/backtrace.c: Likewise.
4415 * include/grub/backtrace.h: Likewise.
4416 * include/grub/gdb.h: Likewise.
4417 * include/grub/i386/gdb.h: Likewise.
4418
4419 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4422 New function.
4423 (add_length): Likewise.
4424 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4425 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4426 proto.
4427 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4428 __argp_get_display_len.
4429
4430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 $"..." support in scripts.
4433
4434 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4435 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4436 * grub-core/script/yylex.l: Likewise.
4437 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4438 value.
4439
4440 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 * gentpl.py: Remove obsolete pkglib_DATA handling.
4443
4444 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4447 mailing list.
4448
4449 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4450 * util/grub-kbdcomp.in: Likewise.
4451 * util/grub-mkconfig.in: Likewise.
4452 * util/grub-mkconfig_lib.in: Likewise.
4453 * util/grub-mknetdir.in: Likewise.
4454 * util/grub-mkrescue.in: Likewise.
4455 * util/grub-mkstandalone.in: Likewise.
4456 * util/grub-reboot.in: Likewise.
4457 * util/grub-set-default.in: Likewise.
4458 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4459
4460 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 Remove GRUB_PREFIX.
4463
4464 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4465 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4466 used for backward compatibility.
4467
4468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 Add new all_video module.
4471
4472 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4473 * grub-core/Makefile.core.def (all_video): New module.
4474 * grub-core/genmoddep.awk: Generate dependency of all_video from
4475 video.lst.
4476 * grub-core/lib/fake_module.c: New file.
4477 * grub-core/normal/main.c (features): Add feature_all_video_module.
4478 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4479 don't do explicit search again.
4480 insmod all_video in load_video if available.
4481
4482 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 Another round of string clarification and adding TRANSLATORS comments.
4485
4486 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4489
4490 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4493 to grub_ssize_t.
4494 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4495 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4496
4497 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4500 trailing newline implicitly. All users updated.
4501
4502 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 Implement serial on IEEE1275 and EFI.
4505
4506 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4507 on emu. Mention arc and emu as the only platforms without serial
4508 support.
4509 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4510 ieee1275 platforms.
4511 * grub-core/term/efi/serial.c: New file.
4512 * grub-core/term/ieee1275/serial.c: Likewise.
4513 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4514 specification if no ns8250 driver is available.
4515 (grub_cmd_serial): Likewise.
4516 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4517 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4518 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4519 (grub_efi_parity_type_t): New type.
4520 (grub_efi_stop_bits_t): Likewise.
4521 (grub_efi_serial_io_interface): New struct.
4522 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4523 available for all interfaces.
4524 Add EFI and IEEE1275 fields.
4525 (grub_ofserial_init): New proto.
4526 (grub_efiserial_init): Likeiwse.
4527 * util/grub.d/00_header.in: Don't check for the presence of serial
4528 module.
4529
4530 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4533 name as if it was an alias.
4534
4535 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/commands/lsacpi.c (options): Fix typo.
4538
4539 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 Convert grub-emu to argp.
4542
4543 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4544 emu.
4545 * util/argp_common.c: Rename to ...
4546 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4547 Add missing includes.
4548 * grub-core/kern/emu/main.c: Convert to argp.
4549 * po/POTFILES.in: Regenerate.
4550 * util/grub-install.in (usage): Make first letter lowcase in messages
4551 for uniformity.
4552 * util/grub-setup.c (options): Likewise.
4553
4554 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
4557 Put back accidently commented-out code.
4558
4559 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
4562 loop check using Brent algorithm.
4563 (grub_hfsplus_btree_search): Likewise.
4564
4565 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * util/grub-install.in: Fix usage of wrong device for PreP install.
4568
4569 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * conf/Makefile.common (CFLAGS_GNULIB): Add
4572 -Wno-unsafe-loop-optimizations.
4573 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
4574 on tools.
4575 * grub-core/commands/legacycfg.c: Add pragma to skip
4576 -Wunsafe-loop-optimizations.
4577 (check_password_md5_real): Fix loop counter type.
4578 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
4579 reading.
4580 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
4581 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
4582 loop condition.
4583 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
4584 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
4585 * grub-core/net/net.c (grub_net_route_address): Add safety loop
4586 condition.
4587 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
4588 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
4589 avoid possible infinite loops.
4590 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
4591 and -Wunsafe-loop-optimizations.
4592 * grub-core/script/yylex.l: Likewise.
4593 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
4594 (print_glyphs): Avoid infinite loops.
4595 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
4596
4597 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
4598
4599 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
4600 to avoid infinite loop.
4601 (disp_acpi_rsdt_table): Likewise.
4602
4603 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * grub-core/font/font.c (grub_font_load): Add support for default
4606 path for fonts ($prefix/fonts).
4607 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
4608 for checking if string is a path.
4609 * grub-core/normal/main.c (features): Add feature_default_font_path.
4610 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
4611 * util/grub.d/00_header.in: Use default directory if possible.
4612 * util/grub-install.in: Install unicode.pf2.
4613
4614 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
4617 * po/Rules-swiss: New file.
4618 * po/swiss.sed: Likewise.
4619
4620 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4621
4622 * grub-core/fs/btrfs.c (find_device): Fix typos.
4623 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
4624 * util/grub-mkrelpath.c (argp_parser): Likewise.
4625 Reported by: Yuri Chornoivan.
4626
4627 2012-02-23 Dalet Omega <daletomega@gmail.com>
4628
4629 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
4630 for usual informative messages.
4631
4632 2012-02-23 Dalet Omega <daletomega@gmail.com>
4633
4634 Starfield theme.
4635
4636 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
4637 * conf/Makefile.common: Define starfielddir.
4638 * configure.ac: Configure starfield.
4639 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
4640 * themes/starfield/README: Likewise.
4641 * themes/starfield/blob_w.png: Likewise.
4642 * themes/starfield/boot_menu_c.png: Likewise.
4643 * themes/starfield/boot_menu_e.png: Likewise.
4644 * themes/starfield/boot_menu_n.png: Likewise.
4645 * themes/starfield/boot_menu_ne.png: Likewise.
4646 * themes/starfield/boot_menu_nw.png: Likewise.
4647 * themes/starfield/boot_menu_s.png: Likewise.
4648 * themes/starfield/boot_menu_se.png: Likewise.
4649 * themes/starfield/boot_menu_sw.png: Likewise.
4650 * themes/starfield/boot_menu_w.png: Likewise.
4651 * themes/starfield/slider_c.png: Likewise.
4652 * themes/starfield/slider_n.png: Likewise.
4653 * themes/starfield/slider_s.png: Likewise.
4654 * themes/starfield/src/blob_nw.xcf: Likewise.
4655 * themes/starfield/src/bootmenu/: Likewise.
4656 * themes/starfield/src/bootmenu/center.xcf: Likewise.
4657 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
4658 * themes/starfield/src/bootmenu/side.xcf: Likewise.
4659 * themes/starfield/src/slider_c.xcf: Likewise.
4660 * themes/starfield/src/slider_n.xcf: Likewise.
4661 * themes/starfield/src/slider_s.xcf: Likewise.
4662 * themes/starfield/src/terminalbox/: Likewise.
4663 * themes/starfield/src/terminalbox/center.xcf: Likewise.
4664 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
4665 * themes/starfield/src/terminalbox/side.xcf: Likewise.
4666 * themes/starfield/starfield.png: Likewise.
4667 * themes/starfield/terminal_box_c.png: Likewise.
4668 * themes/starfield/terminal_box_e.png: Likewise.
4669 * themes/starfield/terminal_box_n.png: Likewise.
4670 * themes/starfield/terminal_box_ne.png: Likewise.
4671 * themes/starfield/terminal_box_nw.png: Likewise.
4672 * themes/starfield/terminal_box_s.png: Likewise.
4673 * themes/starfield/terminal_box_se.png: Likewise.
4674 * themes/starfield/terminal_box_sw.png: Likewise.
4675 * themes/starfield/terminal_box_w.png: Likewise.
4676 * themes/starfield/theme.txt: Likewise.
4677
4678 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * util/grub.d/00_header.in: Add missing export theme.
4681
4682 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
4685 already included.
4686 Reported by: Eren D.
4687
4688 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * conf/Makefile.common (grubdatadir): Removed.
4691 (Makefile.am): Move eveything grubdata to pkgdata.
4692
4693 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 * grub-core/commands/acpihalt.c (get_sleep_type):
4696 Remove unused variable.
4697
4698 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
4701 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
4702 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
4703 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
4704 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
4705 i18n with gettext no-op.
4706 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
4707 GRUB_ACPI_OPCODE_STRING_CONST.
4708 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
4709 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
4710
4711 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * po/POTFILES.in: Regenerate.
4714
4715 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
4718 -Wno-error=missing-noreturn.
4719
4720 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
4723 condition to avoid possibly infinite loops.
4724 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
4725 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
4726
4727 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
4730 condition to avoid possibly infinite loops.
4731
4732 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
4735 on show_error.
4736
4737 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
4740
4741 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
4744
4745 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * util/bin2h.c (usage): Add missing attribute noreturn.
4748
4749 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
4752 if the size isn't divisible by 512.
4753
4754 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 Make list_push and list_remove functions rather than inline functions
4757 to decrease size and avoid aliasing violations.
4758
4759 * include/grub/list.h (grub_list_push): Move to ...
4760 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
4761 * include/grub/list.h (grub_list_remove): Move to ...
4762 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
4763
4764 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
4767 and -Wunused-result.
4768
4769 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
4772 Reported by: Seth Goldberg
4773
4774 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
4777
4778 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4779
4780 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
4781 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
4782 command line.
4783 * docs/grub.texi (Simple configuration): Document
4784 GRUB_CMDLINE_GNUMACH.
4785
4786 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * conf/Makefile.common (platform_SCRIPTS): New variable.
4789 (platform_PROGRAMS): Likewise.
4790 * gentpl.py: Mark *,module and *.image for install.
4791 * grub-core/gdb_grub.in: Add a notice of expected environment.
4792 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
4793 (gmodule.pl): Likewise.
4794
4795 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 Replace grub_checkkey with grub_getkey_noblock.
4798
4799 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
4800 (grub_getkey_noblock): ... this. All users updated.
4801
4802 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 * grub-core/kern/emu/console.c: Move to ...
4805 * grub-core/term/emu/console.c: ...here.
4806 (grub_ncurses_getkey): Fix return value if no key is detected.
4807
4808 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
4811 (grub_unit_test_fini): Likewise.
4812 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
4813
4814 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * include/grub/test.h (GRUB_UNIT_TEST)
4817
4818 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * grub-core/script/execute.c (grub_script_break): Clarify logic.
4821 Better error handling.
4822 (grub_script_return): Likewise.
4823 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4824
4825 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
4828 rimplicit redifinition.
4829
4830 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
4833 GRUB.
4834
4835 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
4838 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
4839 prompt here.
4840
4841 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
4844 as GRUB_ERR_BUG. Don't malloc if no device is available.
4845
4846 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
4849 Mark calling with invalid term as GRUB_ERR_BUG.
4850
4851 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
4854 packets rather than raising an error.
4855
4856 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
4859 in if.
4860
4861 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
4864 diagnostic to dprintf.
4865 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4866
4867 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
4870 device name.
4871
4872 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4873
4874 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
4875 (grub_ntfs_iterate_dir): Likewise.
4876
4877 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 Efiemu stylistic fixes and gettext.
4880
4881 * grub-core/efiemu/i386/loadcore32.c
4882 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
4883 * grub-core/efiemu/i386/loadcore64.c
4884 (grub_arch_efiemu_relocate_symbols64): Likewise.
4885 * grub-core/efiemu/i386/pc/cfgtables.c
4886 (grub_machine_efiemu_init_tables): Likewise.
4887 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
4888 (grub_efiemu_loadcore_initXX): Add a filename argument.
4889 All users updated.
4890 Improved error message.
4891 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
4892 Add a filename argument.
4893 All users updated.
4894 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
4895 Reclassify double relocation as GRUB_ERR_BUG.
4896
4897 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
4900 handling.
4901
4902 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
4905 on partition.
4906
4907 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
4910
4911 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 Improve string. Gettextize.
4914
4915 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4916
4917 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
4918 utils.
4919 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
4920
4921 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4922
4923 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
4924 [GRUB_UTIL]: New function.
4925 (insert_array) [GRUB_UTIL]: Store partmaps.
4926 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
4927 partmaps.
4928 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
4929 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
4930 (probe_abstraction): Print diskfilter and not raid.
4931 Reported by: Lennart Sorensen
4932
4933 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
4936 * util/grub-mkimagexx.c (MASK3): New define.
4937 (add_value_to_slot_20b): Use MASK3.
4938 (add_value_to_slot_21): Likewise.
4939 (relocate_addresses): Fix format specification.
4940 (load_image): Explicitly init symtab_section.
4941
4942 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
4945 (grub_util_biosdisk_get_grub_dev): Fix format specification.
4946
4947 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
4950 on powerpc.
4951 Reported by: Lennart Sorensen
4952
4953 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 * gentpl.py: Add missing license header.
4956 * docs/grub.texi: Update copyright year.
4957
4958 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
4959
4960 Source grub-mkconfig_lib from the build directory at build time.
4961 Suggested by: Vladimir Serbinenko.
4962
4963 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
4964 * util/grub-install.in: Define pkgdatadir if not already set, and source
4965 grub-mkconfig_lib from there.
4966 * util/grub-kbdcomp.in: Likewise.
4967 * util/grub-mkconfig.in: Likewise.
4968 * util/grub-mknetdir.in: Likewise.
4969 * util/grub-mkrescue.in: Likewise.
4970 * util/grub-mkstandalone.in: Likewise.
4971 * util/grub-reboot.in: Likewise.
4972 * util/grub-set-default.in: Likewise.
4973 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4974
4975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 Increase warning level.
4978
4979 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
4980 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
4981 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
4982 (TARGET_CFLAGS): Likewise.
4983 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
4984 * grub-core/Makefile.core.def (decompressor_xz): Add
4985 -Wno-unreachable-code.
4986 (normal): Add -Wno-redundant-decls.
4987 (xzio): Add -Wno-unreachable-code.
4988 (lzopio): Add -Wno-redundant-decls -Wno-error.
4989 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
4990 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
4991 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
4992 * grub-core/kern/dl.c: Add exception to -Wcast-align.
4993 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
4994 * grub-core/kern/i386/coreboot/init.c: Add exception to
4995 -Wsuggest-attribute=noreturn.
4996 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
4997 * grub-core/kern/ia64/dl_helper.c: Likewise.
4998 * grub-core/kern/mips/dl.c: Likewise.
4999 * grub-core/kern/sparc64/dl.c: Likewise.
5000 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5001 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5002 (memcmp): Likewise.
5003 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5004 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5005 * grub-core/loader/mips/linux.c: Likewise.
5006 * grub-core/loader/multiboot_elfxx.c: Likewise.
5007 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5008 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5009 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5010 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5011 fixme.
5012 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5013 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5014 Fix prototype.
5015
5016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5019 address.
5020
5021 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5024 Avoid improper use of strings.
5025 (grub_cmd_legacy_initrdnounzip): Likewise.
5026
5027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5030 attribute.
5031 (grub_util_info): Likewise.
5032 (grub_util_error): Likewise.
5033
5034 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5035
5036 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5037 * util/grub-fstest.c (fstest): Likewise.
5038
5039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5042 (grub_md_sha512_real): Likewise.
5043 (grub_util_get_geli_uuid): Likewise.
5044 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5045 (grub_util_biosdisk_open): Fix format specification.
5046 Respect format security.
5047 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5048 (xrealloc): Likewise.
5049 (xasprintf): Likewise.
5050
5051 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * util/import_gcry.py: Include grub/crypto.h in init.c.
5054
5055 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5058 (generate_image): Make prefix a const char *.
5059 Fix format specifications. Respect format security.
5060 Avoid void * arithmetics.
5061 Avoid shadowing.
5062 (argp_parser): Remove unused variable. Respect format security.
5063 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5064 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5065 (count_funcs): Remove unused variable.
5066 (relocate_addresses): Fix format specification.
5067 Disable x86-64 with elf32. Remove unused variables.
5068 (add_fixup_entry): Avoid shadowing.
5069 (make_reloc_section): Fix format specification.
5070 Use assert.
5071 (locate_sections): Fix format specifications.
5072 (load_image): Avoid shadowing.
5073
5074 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5077 Fix format specifications. Respect format security.
5078 Don't translate already translated grub_errmsg.
5079 (argp_parser): Remove unused variable
5080
5081 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5084
5085 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5088 (main): Likewise. Use xmalloc. Respect format security.
5089
5090 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5093 a const char *.
5094 (argp_parser): Remove unused variable.
5095
5096 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5099 (add_pixel): Make static.
5100 (add_font): Likewise.
5101 (write_string_section): Make name and str a const char *.
5102 (write_be16_section): Make name a const char *.
5103 (print_glyphs): Make static.
5104 (write_font_ascii_bitmap): Likewise.
5105 (write_font_width_spec): Likewise.
5106 (write_font_pf2): Likewise.
5107 (argp_parser): Remove unused variable.
5108 Respect format security.
5109 (main): Avoid shadowing. Respect format security.
5110
5111 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * util/grub-editenv.c (argp_parser): Make static.
5114 (create_envblk_file): Use xmalloc.
5115 (open_envblk_file): Likewise.
5116 Resepect format security.
5117 (set_variables): Respect format security.
5118
5119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * util/getroot.c (grub_find_device): Respect format security.
5122 (get_mdadm_uuid): Remove unused variable.
5123 (grub_util_pull_device): Dont call gettext on already translated
5124 grub_errmsg.
5125 (find_system_device): Remove unused variable.
5126 (grub_util_get_grub_dev): Likewise.
5127 (grub_make_system_path_relative_to_its_root): Respect format security.
5128
5129 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * util/grub-fstest.c (execute_command): Make first argument
5132 a const char *.
5133 (read_file): Avoid shadowing.
5134 Reuse underlying error message if device open fails.
5135 (cmd_cmp): Respect format security.
5136 (root): Make const char *.
5137 (fstest): Remove args argument and use global copy.
5138 Respect format security.
5139 (argp_parser): Make static.
5140 (main): Make default_root const char *.
5141
5142 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * util/grub-mount.c (root): Make const char *.
5145 (execute_command): Make first argument a const char *.
5146 (fuse_init): Respect format security.
5147 (argp_parser): Make static. Remove unused variable.
5148 (main): Make default_root a const char *.
5149 Respect format security.
5150
5151 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * util/grub-probe.c (probe): Don't call gettext on already translated
5154 grub_errmsg.
5155 Remove unused variables.
5156 (argp_parser): Remove unused variable.
5157
5158 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5159
5160 * util/grub-script-check.c (argp_parser): Remove unused variable.
5161 (main): Rename read to curread to avoid shadowing.
5162
5163 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * util/misc.c (grub_util_write_image_at): Fix format specification.
5166 (grub_util_write_image): Likewise.
5167 (grub_script_execute_argument_to_string): Removed (unused).
5168 (grub_script_execute_menuentry): Likewise.
5169 (grub_putchar): Likewise.
5170
5171 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5174 (FUNCTION) [GRUB_UTIL]: Likewise.
5175 (VARIABLE) [GRUB_UTIL]: Likewise.
5176
5177 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5180 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5181
5182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5185 buffer.
5186
5187 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5190 (LzmaEnc_SaveState): Removed (unused).
5191 (LzmaEnc_RestoreState): Likewise.
5192 (LzmaEnc_InitPriceTables): Made static.
5193 (LzmaEnc_Construct): Likewise.
5194 (LzmaEnc_FreeLits): Likewise.
5195 (LzmaEnc_Destruct): Likewise.
5196 (LzmaEnc_Init): Likewise.
5197 (LzmaEnc_InitPrices): Likewise.
5198 (LzmaEnc_Finish): Likewise.
5199 (LzmaEnc_PrepareForLzma2): Removed (unused).
5200 (LzmaEnc_MemPrepare): Likewise.
5201 (LzmaEnc_GetNumAvailableBytes): Likewise.
5202 (LzmaEnc_GetCurBuf): Likewise.
5203 (LzmaEnc_CodeOneMemBlock): Likewise.
5204
5205 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5208 (grub_util_ldm_embed): Likewise.
5209
5210 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * util/grub-editenv.c (print_var): Rename name to varname to
5213 avoid shadowing.
5214 (main): Rename index to curindex to avoid shadowing.
5215 Make filename a const char *.
5216
5217 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5220 to arg_getline to avoid shadowing.
5221
5222 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5225 disk_ to avoid shadowing.
5226
5227 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5230 curindex to avoid shadowing.
5231 Make static.
5232 (MatchFinder_GetNumAvailableBytes): Make static.
5233
5234 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5237 avoid shadowing.
5238
5239 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5242 argument from encrypt to do_encrypt to avoid shadowing.
5243
5244 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5247 incorrect nesting of #if's.
5248
5249 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5252 checks which are always false on some platforms.
5253 (grub_cmd_lsacpi): Likewise.
5254 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5255 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5256 Likewise.
5257
5258 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5261 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5262
5263 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5266 re_dfa_t to avoid breaking alignment invariants.
5267 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5268 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5269
5270 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5273 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5274
5275 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5278 Fix declaration.
5279
5280 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5283 conserve alignment invariants.
5284 (grub_ehci_ehcc_read16): Likewise.
5285 (grub_ehci_oper_read32): Likewise.
5286 (grub_ehci_oper_write32): Likewise.
5287 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5288 Conserve alignment invariants.
5289
5290 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5293 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5294 declarations.
5295
5296 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5299 Remove unused variable.
5300
5301 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5304 Remove set in if.
5305
5306 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * include/grub/net.h: Remove double declarations.
5309
5310 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 Remove "payload" command in ia64 Linux loader since I couldn't
5313 find any evidence of it being used for anything.
5314 Replace "relocate" command with an environment variable
5315
5316 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5317 fields.
5318 (ia64_boot_payload): Removed.
5319 (last_payload): Likewise.
5320 (RELOCATE_OFF): Likewise.
5321 (RELOCATE_ON): Likewise.
5322 (RELOCATE_FORCE): Likewise.
5323 (relocate): Likewise.
5324 (free_pages): Don't free payloads.
5325 (grub_load_elf64): Use common error messages.
5326 Use "linux_relocate" variable.
5327 Increase the space after boot_params.
5328 (grub_cmd_payload): Removed.
5329 (grub_cmd_relocate): Likewise.
5330 (grub_cmd_fpswa): Improve messages.
5331 (cmd_payload): Removed.
5332 (cmd_relocate): Likewise.
5333 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5334 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5335
5336 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 Convert UHCI to DMA framework.
5339
5340 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5341 (grub_uhci_pci_iter): Fill new members
5342 (grub_alloc_td): Use P2V and V2P functions.
5343 (grub_free_queue): Likewise.
5344 (grub_alloc_qh): Likewise.
5345 (grub_uhci_setup_transfer): Likewise.
5346 (grub_uhci_check_transfer): Likewise.
5347
5348 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5351 Remove assignment in if while on it.
5352
5353 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * util/grub-mkstandalone.in: Fix modules directory.
5356
5357 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5360 on i386-pc target.
5361 (argp_parser): Accept "auto" as compression specification.
5362
5363 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 Fix `help' with unloaded modules.
5366
5367 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5368 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5369 (grub_dyncmd_dispatcher): Small stylistic fix.
5370 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5371 explicit help is requested.
5372
5373 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5376 Explicitly init restart while on it.
5377
5378 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5381 uninited variable.
5382
5383 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * util/grub-mknetdir.in: Use . rather than source for POSIX
5386 compatibility.
5387
5388 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5391
5392 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5395 variable.
5396
5397 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5400 without quotes.
5401
5402 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5405
5406 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5409 iteration of partitions.
5410
5411 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 Improve gettext support. Stylistic fixes and error handling fixes while
5414 on it.
5415
5416 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5419 part. Instead setup the correct stack in RM.
5420 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5421 for stack.
5422 * include/grub/i386/relocator_private.h: New file.
5423
5424 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5427 argument.
5428 * util/grub-fstest.c (options): Add missing DEVICE part.
5429
5430 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 Clarify and unify messages.
5433
5434 * grub-core/commands/hashsum.c (options): Unify messages.
5435 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5436 literal-only message as translatable.
5437 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5438 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5439 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5440 commands.
5441 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5442 key, not the key used to unlock. Clarify what it's used for.
5443 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5444 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5445 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5446 * util/grub-editenv.c (options): Unify "verbose" message.
5447 * util/grub-fstest.c (read_file): Unify error message.
5448 (fstest): Add quotes around commands.
5449 (options): Unify "verbose" message.
5450 * util/grub-install.in: Add quotes around variable name.
5451 * util/grub-kbdcomp.in: Unify error message.
5452 * util/grub-mkfont.c (main): Likewise.
5453 * util/grub-mkrescue.in: Likewise.
5454 * util/grub-mklayout.c (options): Unify "verbose" message.
5455 * util/grub-mkstandalone.in: Unify help and verbose messages.
5456 * util/grub-mount.c (options): Unify "verbose" message.
5457 * util/grub-probe.c (options): Likewise.
5458 * util/grub-script-check.c (options): Likewise.
5459 * util/grub-setup.c (setup): Unify no-terminator message.
5460 (options): Use DEVICE and not DEV.
5461 Unify "verbose" message.
5462 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5463
5464 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 Improve and unify messages.
5467
5468 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5469 name. All users updated.
5470 Print filename in error.
5471 (read_device_map): Print filename in error.
5472 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5473 (grub_util_get_os_disk): Likewise.
5474 (grub_util_biosdisk_get_grub_dev): Likewise.
5475 (grub_util_check_block_device): Likewise.
5476 (grub_util_check_char_device): Likewise.
5477 (grub_make_system_path_relative_to_its_root): Likewise.
5478 * util/grub-editenv.c (create_envblk_file): Likewise.
5479 (open_envblk_file): Likewise.
5480 (write_envblk): Likewise.
5481 * util/grub-fstest.c (cmd_cp): Likewise.
5482 (cmd_cat): Likewise.
5483 (cmd_cmp): Likewise.
5484 * util/grub-menulst2cfg.c (main): Likewise.
5485 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5486 (write_font_width_spec): Likewise.
5487 (write_font_pf2): Likewise.
5488 * util/grub-mkimage.c (generate_image): New argument outname.
5489 All users updated.
5490 Remove unreacheable message.
5491 (options): Unify messages.
5492 (help_filter): Likewise.
5493 * util/grub-mklayout.c (usage): Removed (unused).
5494 (main): Print filename in error.
5495 * util/grub-mkrescue.in: Fix wrong quoting.
5496 * util/grub-setup.c (setup): Print filename in error.
5497 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5498 (check_sas): Likewise.
5499 * util/misc.c (grub_util_get_fp_size): Removed.
5500 (grub_util_get_image_size): Print filename in error.
5501 (grub_util_read_at): Removed.
5502 (grub_util_read_image): Print filename in error.
5503 (grub_util_load_image): Likewise.
5504 (grub_util_write_image_at): New argument filename. All users updated.
5505 Print filename in error.
5506 (grub_util_write_image): New argument filename. All users updated.
5507 Print filename in error.
5508 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5509 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5510
5511 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * grub-core/Makefile.core.def (pxechain): New module.
5514 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5515 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5516 function.
5517 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5518 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5519
5520 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5523 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5524 * include/grub/err.h (grub_error_saved): New struct.
5525 (grub_errmsg): Make array size explicit.
5526 * include/grub/misc.h (grub_error_save): New function.
5527 (grub_error_load): Likewise.
5528 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5529 (grub_error_push): Update `errno' member name.
5530 (grub_error_pop): Likewise
5531 * grub-core/net/tftp.c (tftp_data): New member save_err.
5532 (tftp_receive): Save error.
5533 (tftp_open): Restore error.
5534
5535 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5538 to real mode down to execute A20-related code in protected mode as
5539 intended.
5540
5541 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5542
5543 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5544 NULL when the argument `level' has an unexpected value.
5545
5546 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 Move platform-dependent files from $prefix to $prefix/$platform.
5549
5550 * config.h.in (GRUB_TARGET_CPU): New definition.
5551 (GRUB_PLATFORM): Likewise.
5552 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
5553 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
5554 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
5555 * grub-core/kern/dl.c (grub_dl_load): Likewise.
5556 * grub-core/normal/autofs.c (read_fs_list): Likewise.
5557 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
5558 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
5559 * grub-core/normal/term.c (read_terminal_list): Likewise.
5560 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
5561 $prefix/locale.
5562 (grub_gettext_init_ext): Likewise.
5563 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
5564 grub_platform.
5565 * util/grub-install.in: Update directories.
5566 * util/grub-mknetdir.in: Likewise.
5567 * util/grub-mkrescue.in: Likewise.
5568
5569 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5570
5571 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
5572 grub_error framework. All users updated.
5573
5574 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
5577 lists (by always binsearching), improve caching (cache strings
5578 used for binsearch, not only results), improve
5579 maintainability (by using more structured binary search) and correct
5580 error handling.
5581
5582 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * grub-core/script/execute.c (grub_script_return): Fix warning.
5585
5586 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5587
5588 * grub-core/script/execute.c (grub_script_return): Fix potential
5589 NULL-dereference.
5590 Reported by: Jim Meyering.
5591
5592 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * po/POTFILES.in: Regenerate.
5595 * util/grub-install.in: Gettextize the strings missed in first pass.
5596
5597 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * Makefile.util.def (grub-mkdevicemap): Removed.
5600 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
5601 * include/grub/util/deviceiter.h: Removed.
5602 * util/deviceiter.c: Likewise.
5603 * util/getroot.c (grub_util_get_os_disk): New function.
5604 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
5605 replacement for EFI.
5606 * util/grub-mkdevicemap.c: Removed.
5607 * util/grub-probe.c (probe): Handle PRINT_DISK.
5608 (argp_parser): Handle -t disk.
5609
5610 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * util/grub-mkfont.c: Migrate to argp.
5613 * util/grub-mklayout.c: Likewise.
5614 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5615 * util/grub-mkrelpath.c: Likewise.
5616 * util/grub-probe.c: Likewise.
5617 * util/grub-script-check.c: Likewise.
5618
5619 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * util/grub-reboot.in: Add missing datarootdir.
5622 Add missing newline.
5623 * util/grub-set-default.in: Add missing datarootdir.
5624 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
5625 * util/grub-mkrescue.in: Likewise.
5626
5627 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
5630
5631 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * util/grub-kbdcomp.in: Add decent help and gettextize.
5634 * docs/man/grub-kbdcomp.h2m: New file.
5635
5636 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 Migrate grub-mkimage.c to argp.
5639
5640 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
5641 (grub-setup): Likewise.
5642 * util/grub-setup.c (print_version): Move to ...
5643 * util/argp_common.c (print_version): ... here.
5644 * util/grub-setup.c (argp_program_version_hook): Move to ...
5645 * util/argp_common.c (argp_program_version_hook): ... here.
5646 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
5647 safety.
5648 * util/grub-mkimage.c (main): Migrate to argp.
5649
5650 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 * util/grub-mkrescue.in: Use same message as
5653 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
5654 for better translations.
5655
5656 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
5659 options with generic grub-mkrescue.in with the goal of future
5660 merge.
5661
5662 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * grub-core/kern/mm.c: Add missing include of i18n.h
5665 * grub-core/lib/relocator.c: Likewise.
5666
5667 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
5670 error.
5671 (allocate_pages): Check return value.
5672 Replace fatal with error.
5673 (grub_linux_boot): Replace printf with dprintf.
5674 Check find_mmap_size return value.
5675 Replace fatal with error.
5676 Don't call grub_machine_fini.
5677 (grub_load_elf64): Replace printf with dprintf.
5678 (grub_cmd_linux): Likewise.
5679 (grub_cmd_initrd): Likewise.
5680 (grub_cmd_payload): Likewise.
5681
5682 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
5685 message.
5686 * grub-core/video/radeon_fuloong2e.c
5687 (grub_video_radeon_fuloong2e_setup): Likewise.
5688 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
5689 * grub-core/video/video.c (grub_video_set_mode): Don't override
5690 standard out of memory message.
5691
5692 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5693
5694 NetBSD disk wedge support.
5695
5696 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
5697 [__NetBSD__]: Handle NetBSD disk wedges.
5698 * util/getroot.c (convert_system_partition_to_system_disk)
5699 [__NetBSD__]: Likewise.
5700
5701 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
5702
5703 * util/grub-mkconfig.in: Use umask rather than chmod to create
5704 grub.cfg.new to avoid insecure grub.cfg.
5705
5706 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/commands/ls.c: Gettextize.
5709 * grub-core/commands/setpci.c: Likewise.
5710 * grub-core/commands/videotest.c: Likewise.
5711 * grub-core/disk/geli.c: Likewise.
5712 * grub-core/kern/mm.c: Likewise.
5713 * grub-core/lib/relocator.c: Likewise.
5714 * grub-core/loader/efi/appleloader.c: Likewise.
5715 * grub-core/loader/i386/xnu.c: Likewise.
5716 * grub-core/loader/ia64/efi/linux.c: Likewise.
5717 * grub-core/loader/xnu.c: Likewise.
5718 * grub-core/net/dns.c: Likewise.
5719 * grub-core/net/net.c: Likewise.
5720 * grub-core/script/lexer.c: Likewise.
5721 * grub-core/script/parser.y: Likewise.
5722 * grub-core/script/yylex.l: Likewise.
5723 * util/getroot.c: Likewise.
5724 * util/grub-setup.c: Likewise.
5725
5726 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
5729 number.
5730
5731 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5732
5733 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
5734
5735 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
5738 macro.
5739 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
5740 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
5741
5742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
5745 * util/grub-install.in: Gettextize.
5746 * util/grub-mkconfig.in: Likewise.
5747 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
5748 if not available.
5749 (grub_warn): Gettextize.
5750 * util/grub-mknetdir.in: Gettextize.
5751 * util/grub-mkrescue.in: Likewise.
5752 * util/grub-mkstandalone.in: Likewise.
5753 * util/grub-reboot.in: Likewise.
5754 * util/grub-set-default.in: Likewise.
5755 * util/grub.d/00_header.in: Likewise.
5756 * util/grub.d/10_hurd.in: Likewise.
5757 * util/grub.d/10_kfreebsd.in: Likewise.
5758 * util/grub.d/10_linux.in: Likewise.
5759 * util/grub.d/10_netbsd.in: Likewise.
5760 * util/grub.d/10_windows.in: Likewise.
5761 * util/grub.d/20_linux_xen.in: Likewise.
5762 * util/grub.d/30_os-prober.in: Likewise.
5763 * po/POTFILES-shell.in: Regenerate.
5764
5765 2012-02-03 Richard Laager <rlaager@wiktel.com>
5766
5767 * util/grub-mkimage.c (main): Fix format-security warning.
5768 * util/grub-mkrelpath.c (main): Likewise.
5769 * util/grub-probe.c (main): Likewise.
5770
5771 2012-02-03 Richard Laager <rlaager@wiktel.com>
5772
5773 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
5774 failure.
5775 Put back lost PRINT_DRIVE.
5776
5777 2012-02-03 Richard Laager <rlaager@wiktel.com>
5778
5779 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
5780 (grub_guess_root_devices): Replace strlen with sizeof.
5781 Avoid crash.
5782 (find_root_devices_from_poolname): Remove unused variable.
5783 Handle raidzN.
5784
5785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 Support install on multi-device filesystems.
5788
5789 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
5790 (grub_guess_root_devices): ...this. Return char **. All users updated.
5791 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
5792 Removed.
5793 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
5794 (find_root_devices_from_poolname): ... here.
5795 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
5796 Support zfs-fuse.
5797 (grub_guess_root_device): Rename to ...
5798 (grub_guess_root_devices): ... this. Return char **. All users updated.
5799 * util/grub-install.in: Handle multi-device filesystems.
5800 * util/grub-probe.c (probe). Make device_names a char **. Add delim
5801 argument. All users updated.
5802 Handle multi-device filesystems.
5803 Use 'delim' as separator.
5804 Remove device check to allow filesystems on file.
5805 (main): Support -0 argument. Handle multi-device.
5806 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
5807 Fix a cross-device check while on it.
5808 (arguments): Remove root_dev.
5809 (argp_parser): Remove -r.
5810 (main): Remove root_dev.
5811
5812 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
5815
5816 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
5819 symbol.
5820 Reported by: NODA, Kai <nodakai>.
5821
5822 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 Fix ehci on amd64.
5825
5826 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
5827 pointers.
5828 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
5829 (grub_ehci_setup_qh): Likewise.
5830 (grub_ehci_find_qh): Likewise.
5831 (grub_ehci_transaction): Likewise.
5832 (grub_ehci_setup_transfer): Likewise.
5833 (grub_ehci_check_transfer): Likewise.
5834 (grub_ehci_portstatus): Likewise.
5835 (grub_ehci_detect_dev): Likewise.
5836 (grub_ehci_transfer_controller_data): New field td_last_phys.
5837 (grub_ehci_setup_transfer): Fill td_last_phys.
5838 (grub_ehci_check_transfer): Use td_last_phys.
5839
5840 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
5841
5842 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
5843 if no submenu is present.
5844
5845 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5846
5847 CBI support.
5848
5849 * include/grub/usb.h (grub_usbms_protocol_t): New values
5850 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
5851 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
5852 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
5853 (grub_usbms_dev): Add subclass, protocol and intrpt.
5854 Remove in_maxsz and out_maxsz.
5855 (grub_usbms_reset): Rename to ...
5856 (grub_usbms_bo_reset): .. this.
5857 (grub_usbms_cbi_cmd): New function.
5858 (grub_usbms_cbi_reset): Likewise.
5859 (grub_usbms_reset): Likewise.
5860 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
5861 (grub_usbms_transfer): Rename to ...
5862 (grub_usbms_transfer_bo): ... this.
5863 (grub_usbms_transfer_cbi): Likewise.
5864 (grub_usbms_transfer): Likewise.
5865
5866 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5867 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
5870 the support for the CS5536 modification thereos and few bugfixes.
5871
5872 * grub-core/Makefile.core.def (ehci): New module.
5873 * grub-core/bus/usb/ehci.c: New file.
5874 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
5875 port and hubaddr. All users updated.
5876 Save port and hubaddr into dev structure.
5877 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
5878 define.
5879 * include/grub/pci.h (grub_dma_phys2virt): New function.
5880 (grub_dma_virt2phys): Likewise.
5881 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
5882
5883 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
5886 check as some mkfs implementations omit it.
5887
5888 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * docs/grub.texi (Unicode): Mention identifier and space limitations.
5891
5892 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
5895 Add new member volname2.
5896 (grub_jfs_label): Use volname2 if available.
5897
5898 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
5901 over last_mounted as seen in image generated by mkfs.nilfs2.
5902 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
5903
5904 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5905
5906 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
5907 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
5908 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
5909
5910 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
5913 over the sector.
5914
5915 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
5918 subvolume name (by removing a bogus and useless check).
5919
5920 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
5923 sizeof while on it.
5924
5925 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
5928 (grub_scsi_read_capacity10): ... this.
5929 (grub_scsi_read_capacity16): New function.
5930 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
5931 0xffffffff.
5932 Fix off-by-one error.
5933 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
5934 64-bit unsigned.
5935 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
5936 (grub_scsi_read_capacity10): ... this.
5937 (grub_scsi_read_capacity_data): Rename to ...
5938 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
5939 (grub_scsi_read_capacity16): New struct.
5940 (grub_scsi_read_capacity16_data): Likewise.
5941 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
5942 grub_scsi_cmd_read_capacity10.
5943 New command grub_scsi_cmd_read_capacity16.
5944
5945 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 SCSI >2TiB support.
5948
5949 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
5950 (grub_scsi_write16): Likewise.
5951 (grub_scsi_read): Use read16 when necessary.
5952 (grub_scsi_write): Likewise.
5953 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
5954 (grub_scsi_write16): Likewise.
5955 (grub_scsi_cmd_t): Add READ16 and WRITE16.
5956
5957 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 SCSI write support (for usbms mainly).
5960
5961 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
5962 a const pointer.
5963 (grub_scsi_write): Implement.
5964 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
5965
5966 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
5969 variable.
5970
5971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * grub-core/lib/posix_wrap/string.h (memchr): New function.
5974
5975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * po/POTFILES.in: Regenerate.
5978
5979 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
5982 with grub_printf to avoid unnecessary fatal failure.
5983
5984 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
5987 (INT_MAX): Likewise.
5988 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
5989 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
5990 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
5991 (strcpy): Likewise.
5992 (strstr): Likewise.
5993 (strchr): Likewise.
5994 (strncpy): Likewise.
5995 (strcat): Likewise.
5996 (strncat): Likewise.
5997 (strcoll): Likewise.
5998 * include/grub/types.h (GRUB_SHRT_MAX): New define.
5999 (GRUB_INT_MAX): Likewise.
6000
6001 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6004 unexpected error.
6005 (optimize_utf8): Likewise.
6006 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6007
6008 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/boot/i386/pc/lnxboot.S: Use
6011 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6012 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6013 location.
6014 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6015 definition.
6016 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6017
6018 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6019
6020 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6021 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6022 now to avoid double free.
6023 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6024 hostdisk.
6025 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6026 * util/grub-probe.c (escape_of_path): Always return a new copy.
6027 (print_full_name): Escape path.
6028 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6029 Fix hints on abstractions.
6030
6031 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6034 Don't add "root" line if no compatibility hont is available.
6035 Suggested by: Seth Goldberg.
6036
6037 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6040 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6041 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6042 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6043
6044 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6047
6048 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * util/grub-pe2elf.c (ehdr): Make static.
6051 (shdr): Likewise.
6052 (num_sections): Likewise.
6053 (offset): Likewise.
6054
6055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 Eliminate ofpath limits and possible overflows.
6058
6059 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6060 (OF_PATH_MAX): Removed.
6061 (MAX_DISK_CAT): New const.
6062 (find_obppath): Use allocated rather than preallocated buffer.
6063 Return result. Argument of_path removed. All users updated.
6064 Add missing fdstat.
6065 (xrealpath): New function.
6066 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6067 Allocate rather than use preallocated buffer. All users updated.
6068 (__of_path_common): Use allocated rather than preallocatecd buffer.
6069 Return result. Argument of_path removed. All users updated.
6070 (vendor_is_ATA): Read only needed part form the file.
6071 (check_sas): Allocate depending on contents rather than fixed.
6072 (main) [STANDALONE]: Handle NULL result.
6073
6074 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6077
6078 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 Cryptodisk write support.
6081
6082 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6083 (grub_cryptodisk_decrypt): Moved logic to ...
6084 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6085 (grub_cryptodisk_write): Implement.
6086 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6087 (grub_util_fd_write): ... this. Make global.
6088 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6089
6090 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 * include/grub/list.h (grub_list_remove): Don't crash if element is
6093 removed twice.
6094
6095 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 Rename ofconsole to console.
6098
6099 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6100 as sysnonym to console.
6101 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6102 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6103 Rename grub_ofconsole_ to grub_console_. All users updated
6104 (grub_console_term_output): Rename "ofconsole" to "console".
6105 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6106 as "console".
6107
6108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6111 handling.
6112 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6113 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6114 GRUB_DISK_DEVICE_FILE_ID.
6115
6116 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6119 and improve performance.
6120
6121 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6124 missing ieee1275/ prefix on whole disk.
6125
6126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6129 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6130
6131 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6134
6135 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 Merge common RAID and LVM logic to an abstract diskfilter.
6138 Add LDM support using the same framework.
6139
6140 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6141 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6142 (libgrubmods): Remove grub-core/disk/raid.c and
6143 grub-core/partmap/gpt.c.
6144 * grub-core/Makefile.core.def (ldm): New module.
6145 (raid): Renamed to diskfilter. All users updated.
6146 * grub-core/disk/raid.c: Moved to ...
6147 * grub-core/disk/diskfilter.c: ... here.
6148 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6149 (lv_num): New var.
6150 (find_array): Renamed to ...
6151 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6152 (grub_is_array_readable): Renamed to ...
6153 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6154 (insert_array): New argument id.
6155 (is_node_readable): New function.
6156 (scan_device): Rename to ...
6157 (scan_disk): .. this. Restrict to one disk.
6158 (scan_devices): New function.
6159 (grub_diskfilter_iterate): Support multi-LV.
6160 Skip invisible and nameless LVs.
6161 (grub_diskfilter_memberlist): Support multi-LV.
6162 (grub_diskfilter_read_node): New function.
6163 (grub_raid_read): Most of logic moved to ...
6164 (read_segment): ... here
6165 (read_lv): New function.
6166 (grub_diskfilter_get_vg_by_uuid): New function.
6167 (grub_diskfilter_make_raid): Likewise.
6168 * grub-core/disk/ldm.c: New file.
6169 * grub-core/disk/lvm.c (vg_list): Removed.
6170 (lv_count): Likewise.
6171 (scan_depth): Likewise.
6172 (is_lv_readable): Likewise.
6173 (grub_lvm_getvalue): Advance pointer past the number.
6174 (find_lv): Removed.
6175 (do_lvm_scan): Refactored into ...
6176 (grub_lvm_detect): ... this. Support raid.
6177 (grub_lvm_iterate): Removed.
6178 (grub_lvm_memberlist): Likewise.
6179 (grub_lvm_open): Likewise.
6180 (grub_lvm_close): Likewise.
6181 (read_lv): Likewise.
6182 (read_node): Likewise.
6183 (is_node_readable): Likewise.
6184 (is_lv_readable): Likewise.
6185 (grub_lvm_read): Likewise.
6186 (grub_lvm_write): Likewise.
6187 (grub_lvm_dev): Use diskfilter
6188 (GRUB_MOD_INIT): Likewise.
6189 (GRUB_MOD_FINI): Likewise.
6190 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6191 new interface.
6192 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6193 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6194 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6195 grub_diskfilter_read_node.
6196 Fix a bug with xor.
6197 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6198 grub_diskfilter_read_node.
6199 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6200 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6201 (grub_disk_dev_iterate): Move from here...
6202 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6203 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6204 Make global.
6205 (grub_hostdisk_find_partition_start): Likewise.
6206 (grub_hostdisk_os_dev_to_grub_drive): New function.
6207 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6208 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6209 * util/getroot.c (make_device_name): ... here.
6210 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6211 Move to ...
6212 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6213 * grub-core/kern/emu/hostdisk.c
6214 (convert_system_partition_to_system_disk): Move to ...
6215 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6216 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6217 * util/getroot.c (device_is_wholedisk): ... here.
6218 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6219 * util/getroot.c (find_system_device): ... here.
6220 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6221 Move to ...
6222 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6223 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6224 Move to ...
6225 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6226 Handle LDM.
6227 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6228 Move to ...
6229 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6230 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6231 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6232 DISKFILTER.
6233 * include/grub/raid.h: Renamed to ...
6234 * include/grub/diskfilter.h: ... this.
6235 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6236 (GRUB_RAID_LAYOUT_*): Make into array.
6237 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6238 (grub_diskfilter_vg): New struct.
6239 (grub_diskfilter_pv_id): Likewise.
6240 (grub_raid_member): Removed.
6241 (grub_raid_array): Likewise.
6242 (grub_diskfilter_pv): New struct.
6243 (grub_diskfilter_lv): Likewise.
6244 (grub_diskfilter_segment): Likewise.
6245 (grub_diskfilter_node): Likewise.
6246 (grub_diskfilter_get_vg_by_uuid): New proto.
6247 (grub_raid_register): Inline.
6248 (grub_diskfilter_unregister): Likewise.
6249 (grub_diskfilter_make_raid): New proto.
6250 (grub_diskfilter_vg_register): Likewise.
6251 (grub_diskfilter_read_node): Likewise.
6252 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6253 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6254 (grub_util_is_ldm): Likewise.
6255 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6256 (grub_hostdisk_find_partition_start): Likewise.
6257 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6258 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6259 New definition.
6260 (grub_gpt_partition_map_iterate): New proto.
6261 * include/grub/lvm.h (grub_lvm_vg): Removed.
6262 (grub_lvm_pv): Likewise.
6263 (grub_lvm_lv): Likewise.
6264 (grub_lvm_segment): Likewise.
6265 (grub_lvm_node): Likewise.
6266 * util/getroot.c [...]
6267 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6268 (probe_abstraction): Likewise.
6269 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6270 (main): Remove dead logic.
6271
6272 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 Simplify root device discover and don't fail when trying to open
6275 incorrect devices.
6276
6277 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6278 function.
6279 (get_diskname_from_path): Likewise.
6280 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6281 of iterating.
6282
6283 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6286
6287 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6290 pastthe end.
6291
6292 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * util/grub-install.in: Add missing \.
6295 Reported by: gentoofan
6296
6297 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6300 (direct_read): Use correct compressed size.
6301 (grub_squash_read_data): Likewise.
6302
6303 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * docs/grub.texi (Platform limitations): New section.
6306 (Platform-specific operations): Likewise.
6307 * docs/grub-dev.texi (Porting): Likewise.
6308
6309 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6310
6311 IEEE1275 disk write support.
6312
6313 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6314 const void *.
6315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6316 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6317 and seek loginc to ...
6318 (grub_ofdisk_prepare): ... here.
6319 (grub_ofdisk_write): Implement.
6320
6321 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 ARC disk write support.
6324
6325 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6326 (reopen): New argument writable. All users updated.
6327 Handle required access mode.
6328 (grub_arcdisk_write): Implement.
6329 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6330 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6331
6332 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6335 (read_sblock): Don't attempt to read superblocks outside the disk size.
6336
6337 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6340 first superblock to find the second one when possible.
6341
6342 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * util/grub-install.in: Fix an ARC bug.
6345 Print a warning if no platform-specific setup is available.
6346
6347 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 Use static allocation rather than scratch pointer in reed_solomon.
6350 It decreases its size significantly and avoids a variable in .text.
6351
6352 * grub-core/lib/reed_solomon.c (scratch): Removed.
6353 (chosenstat): New const or static array.
6354 (sigma): Likewise.
6355 (errpot): Likewise.
6356 (errpos): Likewise.
6357 (sy): Likewise.
6358 (mstat): Likewise.
6359 (errvals): Likewise.
6360 (eqstat): Likewise.
6361 (pol_evaluate): Replace x with log_x argument. All users updated.
6362 (syndroms): Removed.
6363 (gauss_solve): Use statically allocated arrays.
6364 (rs_recover): Likewise.
6365 Calculate syndroms directly.
6366 (decode_block): Use statically allocated arrays.
6367 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6368 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6369
6370 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 Eliminate fixed limit on reed solomon decoder length.
6373
6374 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6375 rather than hardcoding the address.
6376 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6377 no_reed_solomon_length.
6378 Move gate_a20 to no-reed-solomon part.
6379 Don't force a particular size of no reed-solomon part.
6380 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6381 Removed.
6382 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6383 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6384
6385 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/commands/wildcard.c (match_files): Handle filenames
6388 without explicit device.
6389 (wildcard_expand): Don't add explicit device if not already present.
6390 * tests/grub_script_echo1.in: Add a new expansion test.
6391
6392 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 Replace single-linked with double-linked lists. It results in more
6395 compact and more efficient code.
6396
6397 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6398 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6399 (grub_list_remove): Moved from here ...
6400 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6401 (grub_prio_list_insert): Set prev.
6402 * include/grub/list.h (grub_list): Add prev. All users updated.
6403
6404 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 Handle newer autotools. Add some missing quotes while on it.
6407
6408 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6409 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6410 (pkgdata_DATA): ... here.
6411 * Makefile.util.def (update-grub_lib): Removed.
6412 * conf/Makefile.common (pkglib_DATA): Removed.
6413 (pkglib_SCRIPTS): Likewise.
6414 (pkgdata_DATA): New variable.
6415 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6416 needed.
6417 Add missing quotes.
6418 Remove unused variable while on it.
6419 * tests/util/grub-shell.in: Likewise.
6420 * util/grub-install.in: Likewise.
6421 * util/grub-mkconfig.in: Likewise.
6422 * util/grub-mknetdir.in: Likewise.
6423 * util/grub-mkrescue.in: Likewise.
6424 * util/grub-mkstandalone.in: Likewise.
6425 * util/grub.d/00_header.in: Likewise.
6426 * util/grub.d/10_hurd.in: Likewise.
6427 * util/grub.d/10_illumos.in: Likewise.
6428 * util/grub.d/10_kfreebsd.in: Likewise.
6429 * util/grub.d/10_linux.in: Likewise.
6430 * util/grub.d/10_netbsd.in: Likewise.
6431 * util/grub.d/10_windows.in: Likewise.
6432 * util/grub.d/20_linux_xen.in: Likewise.
6433 * util/grub.d/30_os-prober.in: Likewise.
6434 * util/update-grub_lib.in: Removed.
6435
6436 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6437
6438 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6439 a workaround for intel problem.
6440
6441 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6442 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6443 2012-01-23 pfsmorigo
6444
6445 * util/grub-install.in: Support dd'in into PreP partition.
6446 * util/grub-probe.c (probe): Support discovering partition type.
6447 (main): Support -t msdos_parttype.
6448
6449 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6452 infinite recursion using counter.
6453 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6454 init to skip it if the magic check fails.
6455 (dec_stream_header): Init s->crc32.
6456
6457 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6458 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6459 2012-01-22 Richard Laager <rlaager@wiktel.com>
6460
6461 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6462 All users updated.
6463 (find_bestub): Determine correct size.
6464 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6465 (scan_disk): Align the size down.
6466 Call check pool before find_bestub to have ashift.
6467
6468 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6471 dprintf in no-malloc zone.
6472
6473 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6474
6475 * configure.ac: Add back in test for limits.h.
6476
6477 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 Support 4K-sector NTFS.
6480
6481 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6482 (grub_ntfs_data): Remove blocksize.
6483 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6484 Remove data argument. All users updated.
6485
6486 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6489 being in .text to avoid dprel references.
6490 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6491 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6492 (grub_arch_highmemsize): Likewise.
6493 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6494 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6495 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6496
6497 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6500
6501 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6502 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6503
6504 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6507 GRUB_UTIL.
6508 (grub_set_datetime_cmos): Likewise.
6509
6510 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 Make XZ compression parameters dependent on target and not host CPU.
6513
6514 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6515 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6516
6517 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6520 set but not used variable.
6521
6522 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6525 created when no uuid support is compiled into mkfs.reiser.
6526
6527 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6530 (utf8_to_macroman): Do the opposite.
6531 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6532
6533 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * configure.ac: Refise build qemu_mips w/o unifont.
6536
6537 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 Eliminate grub_min/grub_max prone to overflow usage.
6540
6541 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6542 (poll_nonroot_hub): Likewise.
6543 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6544 (grub_affs_label): Likewise.
6545 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6546 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6547 (grub_hfs_label): Likewise.
6548 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6549 * grub-core/fs/zfs/zfs.c (MIN): Remove.
6550 (zap_leaf_array_equal): Use grub_size. Remove MIN.
6551 (zap_leaf_array_get): Likewise.
6552 (dnode_get_path): Likewise.
6553 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
6554 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
6555 * grub-core/script/execute.c (grub_script_break): Likewise.
6556 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
6557 grub_max.
6558 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
6559 * include/grub/misc.h (grub_min): Removed.
6560 (grub_max): Likewise.
6561
6562 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6563
6564 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
6565 direct.inode = 0.
6566
6567 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
6570
6571 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
6574
6575 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
6578 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
6579
6580 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6581
6582 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
6583 rather than a hack for grub_strncasemap.
6584
6585 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 Support multiple initrds
6588 Note: part of this was accidently committed in r3739.
6589
6590 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
6591 initrd.
6592 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6593 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6594 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6595 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6596 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6597
6598 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
6601 disks with unknown size.
6602 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
6603
6604 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 Remove defines pertaining to arbitrary limits not affecting GRUB
6607 anymore.
6608
6609 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
6610 (EXT2_MAX_SYMLINKCNT): Likewise.
6611 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
6612 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
6613 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
6614 (GRUB_PXE_MAX_BLKSIZE): Likewise.
6615 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
6616 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
6617 (DN_MAX_OBJECT_SHIFT): Likewise.
6618 (DN_MAX_OFFSET_SHIFT): Likewise.
6619 (DN_MAX_OBJECT): Likewise.
6620 (DNODES_PER_LEVEL_SHIFT): Likewise.
6621 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
6622 (SPA_MAXBLOCKSIZE): Likewise.
6623 (SPA_BLOCKSIZES): Likewise.
6624 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
6625 (MZAP_MAX_BLKSZ): Likewise.
6626
6627 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
6630 handle NULL appropriately.
6631 Remove MIN.
6632
6633 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 Fix efiemu.
6636
6637 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
6638 cpu/types.h.
6639 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
6640 * configure.ac: Fix efiemu check.
6641
6642 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
6645 grub_probe.
6646 Reported by: adamwill
6647
6648 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
6649
6650 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
6651
6652 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Fix handling of wide characters in gfxterm.
6655
6656 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
6657 (clear_char): Likewise.
6658 (paint_char): Skip code == NULL chars.
6659 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
6660
6661 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * grub-core/normal/charset.c: Move comment to right place.
6664
6665 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
6668 (GRUB_AFFS_FLAG_FFS): Put back where it was.
6669 (grub_affs_mount): Revert the correct version checking.
6670
6671 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * docs/grub.texi (Unicode): Mention several other unsupported features.
6674
6675 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
6678 case statements as compile-time one.
6679 (direct_read): Prevent spurious warnings.
6680 (grub_squash_read_data): Likewise.
6681
6682 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 Various squash4 fixes and LZO and XZ support.
6685
6686 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
6687 Add xzembed source files.
6688 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
6689 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
6690 (grub_squash_inode): New subtype long_dir.
6691 (SQUASH_TYPE_LONG_DIR): New inode type.
6692 (COMPRESSION): New enum.
6693 (XZBUFSIZ): New const.
6694 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
6695 (read_chunk): Use data->decompress.
6696 (zlib_decompress): New function.
6697 (lzo_decompress): Likewise.
6698 (xz_decompress): Likewise.
6699 (squash_mount): Set new data fields.
6700 (grub_squash_iterate_dir): Handle long dir.
6701 (squash_unmount): Free xzdec and xzbuf.
6702 (grub_squash_open): Check ino type.
6703 (direct_read): Stylistic fixes. Use data->decompress.
6704 (grub_squash_read_data): Likewise.
6705 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
6706 (get_byte): Likewise.
6707 (grub_zlib_disk_read): Removed.
6708 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
6709 (GRUB_POSIX_BOOL_DEFINED): New define.
6710 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
6711 * grub-core/lib/xzembed/xz.h: Addmissing includes.
6712 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
6713 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
6714
6715 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 Don't override more informative errors.
6718
6719 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
6720 * grub-core/font/font.c (open_section): Likewise.
6721 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
6722 filename. Don't override errors.
6723 (grub_cmd_openbsd_ramdisk): Don't override errors.
6724 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
6725 (grub_cmd_initrd): Likewise.
6726 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6727 (grub_cmd_initrd): Likewise.
6728 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
6729 (grub_cmd_linux): Likewise.
6730 (grub_cmd_initrd): Likewise.
6731 (grub_cmd_payload): Likewise.
6732 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6733 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
6734 (grub_cmd_module): Likewise.
6735 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6736 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6737 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
6738 (grub_cmd_xnu_mkext): Likewise.
6739 (grub_cmd_xnu_ramdisk): Likewise.
6740 (grub_xnu_check_os_bundle_required): Likewise.
6741 (grub_xnu_load_kext_from_dir): Likewise.
6742 (grub_cmd_xnu_kextdir): Likewise.
6743 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
6744
6745 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
6748 as 1024 in block size field. Found on one of my test images.
6749 Small optimisation while on it.
6750
6751 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
6754 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
6755 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
6756 performance fixes while on it.
6757 (grub_sfs_close): Fix memory leak while on it.
6758 (grub_sfs_label): Convert Latin1 to UTF-8.
6759
6760 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
6763 space to avoid overflows.
6764 (grub_hfs_label): Convert from macroman to UTF-8.
6765
6766 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
6769
6770 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
6773
6774 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * unicode: Import Unicode 6.0 data.
6777
6778 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
6781 outside of range.
6782
6783 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 Avoid cutting in the middle of UTF-8 character.
6786
6787 * include/grub/charset.h (grub_getend): New function.
6788 * grub-core/script/function.c (grub_script_function_find): Use
6789 grub_getend.
6790 * grub-core/normal/completion.c (add_completion): Likewise.
6791
6792 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
6795 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
6796 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
6797 (GRUB_UNICODE_TAG_END): Likewise.
6798 (GRUB_UNICODE_LAST_VALID): Likewise.
6799
6800 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
6803 len and make it smaller. All users updated.
6804 * util/import_unicode.py: Put length and not end character.
6805 Check length.
6806
6807 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 Make better Unicode-compliant and unify some UTF-8 code pathes.
6810
6811 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
6812 valid character.
6813 (grub_is_valid_utf8): Use grub_utf8_process.
6814 Check resulting code range.
6815 (grub_utf8_to_ucs4): Use grub_utf8_process.
6816 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
6817 valid character.
6818
6819 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
6822
6823 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 * docs/grub.texi (Filesystems): Mention AFS.
6826
6827 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * docs/grub.texi (Filesystems): Clarify restrictions.
6830 (Regexp): Mention non-Unicode regexp behaviour.
6831 (Other): Mention non-Unicode matching behaviour.
6832
6833 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 Make HFS implementation use MacRoman.
6836
6837 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
6838 (macroman): New const array.
6839 (macroman_to_utf8): New function.
6840 (utf8_to_macroman): Likewise.
6841 (grub_hfs_find_dir): Use utf8_to_macroman.
6842 (grub_hfs_dir): Use macroman_to_utf8.
6843 Set case_insensitive.
6844
6845 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
6848
6849 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 Integrate hints into autogeneration scripts.
6852
6853 * docs/grub.texi (Filesystems): Add a hostdisk example.
6854 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
6855 (grub-probe): Add ofpath.
6856 * gentpl.py: Remove group nosparc64.
6857 * grub-core/commands/search.c (cache_entry): New struct.
6858 (cache): New var.
6859 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
6860 * grub-core/commands/search_wrap.c (options): Add platform-specific
6861 hint options.
6862 (grub_cmd_search): Handle platform-specific hints.
6863 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
6864 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
6865 (grub_util_biosdisk_data): Likewise.
6866 (grub_util_biosdisk_open): Set device_map.
6867 (read_device_map): Handle "" as indication of no map.
6868 Set device_map.
6869 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
6870 (grub_util_biosdisk_get_compatibility_hint): New function.
6871 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
6872 * include/grub/emu/hostdisk.h
6873 (grub_util_biosdisk_get_compatibility_hint): New proto.
6874 * util/grub-install.in: Don't call grub-mkdevicemap.
6875 Add platform-specific hint to load.cfg.
6876 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
6877 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6878 hints. Set root preliminary to compatibility hint, not to OS name.
6879 * util/grub-probe.c (PRINT_*): Add hints.
6880 (print): Make static.
6881 (escape_of_path): New function.
6882 (guess_bios_drive): Likewise.
6883 (guess_efi_drive): Likewise.
6884 (guess_baremetal_drive): Likewise.
6885 (print_full_name): Likewise.
6886 (probe): Handle hints.
6887 (main): Likewise.
6888 * util/ieee1275/devicemap.c: Removed.
6889 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
6890 updated.
6891 (grub_util_devname_to_ofpath): Return NULL on failure.
6892
6893 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
6894 resource leak.
6895 * util/getroot.c (grub_util_pull_device): Fix memory leak.
6896
6897 * po/POTFILES.in: Regenerated.
6898
6899 Allow purely long options
6900
6901 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
6902 (SHORT_ARG_USAGE): Likewise.
6903 (grub_arg_show_help): Compare opt with help_options.
6904 (parse_option): Receive opt as argument. If makes big simplificatons.
6905 All users updated
6906
6907 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
6910 Restructure to avoid warning.
6911
6912 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * util/grub-install.in: Account for possible escaped comma in device
6915 name.
6916
6917 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
6920 channel.
6921
6922 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
6925 allocation and zero-setting.
6926 (grub_ieee1275_get_devname): Check that alias is complete.
6927
6928 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
6931 unaligned segments.
6932
6933 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
6936 prefix.
6937 (grub_ofdisk_open): Check and discard ieee1275 prefix.
6938 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6939 Add ieee1275 prefix.
6940
6941 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * docs/grub.texi (Filesystems): Update.
6944
6945 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6946
6947 Support odc, newc and bigendian cpio formats.
6948
6949 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
6950 * grub-core/Makefile.core.def (newc): New module.
6951 (odc): Likewise.
6952 (cpio_be): Likewise.
6953 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
6954 (MAGIC): Likewise.
6955 (MAGIC2): Likewise.
6956 (head) [MODE_ODC]: Adapt for the format.
6957 (head) [MODE_NEWC]: Likewise.
6958 (head) [!MODE_*]: Write fields of interest as arrays.
6959 (MAGIC_USTAR): Removed.
6960 (read_number) [MODE_NEWC]: Change to hex.
6961 (read_number) [!MODE_*]: Parse binary arrays.
6962 (grub_cpio_find_file): Factor out the code for better structure and
6963 always use read_number.
6964 (grub_cpio_mount): Use MAGIC and MAGIC2.
6965 (grub_cpio_dir): Exit on first hook non-0 return.
6966 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
6967 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
6968 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
6969 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
6970 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
6971 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
6972 * grub-core/fs/newc.c: New file.
6973 * grub-core/fs/odc.c: Likewise.
6974 * grub-core/fs/cpio_be.c: Likewise.
6975
6976 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 Fix handling of tar numbers occupying the whole field.
6979
6980 * grub-core/fs/cpio.c (read_number): New function.
6981 (grub_cpio_find_file): Use read_number instead of strtoull.
6982
6983 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
6986 occupying the whole field size.
6987
6988 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
6989
6990 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
6991
6992 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
6995
6996 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
6997
6998 * grub-core/Makefile.core.def (lzma_decompress): Add missing
6999 TARGET_IMG_LDFLAGS.
7000
7001 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7004 (mountinfo_entry): Increase the field size to take escaping into
7005 account.
7006 (find_root_device_from_libzfs): Add one byte to size of strings for
7007 security.
7008
7009 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7012 an assert.
7013 * util/grub-setup.c (setup): Likewise.
7014
7015 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7018 _LzmaDecodeA.
7019
7020 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 * docs/grub.texi (Internationalisation): New section.
7023
7024 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * docs/grub.texi (Loopback booting): New section.
7027
7028 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7029
7030 * util/grub-mkstandalone.in: Fix minor typo errors.
7031
7032 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7035
7036 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7037 net/icmp.c and net/icmp6.c.
7038 (http): New module.
7039 (priority_queue): Likewise.
7040 * grub-core/io/bufio.c: Rewritten.
7041 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7042 TYPE_WITH_CONFIGFILE_OPTION.
7043 (legacy_commands): Add bootp and dhcp.
7044 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7045 (grub_legacy_parse): Likewise.
7046 * grub-core/lib/priority_queue.c: New file.
7047 * grub-core/net/arp.c: Add missing license header.
7048 (arp_find_entry): Removed.
7049 (arp_find_entry): Likewise.
7050 (grub_net_arp_resolve): Rename to ...
7051 (grub_net_arp_send_request): ...this.
7052 (grub_net_arp_receive): New card argument.
7053 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7054 Set router and DNS server.
7055 (grub_net_configure_by_dhcp_ack): Handle routing information.
7056 (grub_cmd_bootp): Set checksum.
7057 (grub_bootp_init): Remove net_dhcp.
7058 * grub-core/net/dns.c: New file.
7059 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7060 completion.
7061 (get_card_packet): Handle allocation.
7062 (grub_efinet_findcards): Set mtu.
7063 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7064 (get_card_packet): Handle allocation.
7065 (emucard): Set mtu.
7066 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7067 (GRUB_MOD_INIT): Set mtu.
7068 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7069 mtu.
7070 (get_card_packet): Handle allocation.
7071 (grub_ofnet_findcards): Set mtu.
7072 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7073 assert.
7074 (grub_net_recv_ethernet_packet): Handle IPv6.
7075 * grub-core/net/http.c: New file.
7076 * grub-core/net/icmp.c: Likewise.
7077 * grub-core/net/icmp6.c: Likewise.
7078 * grub-core/net/ip.c (ip6addr): New type.
7079 (ip6hdr): Likewise.
7080 (reassemble): Likewise.
7081 (cmp): New function.
7082 (reassembles): New variable.
7083 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7084 (id): New variable.
7085 (send_fragmented): New function.
7086 (grub_net_send_ip_packet): Rename to ...
7087 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7088 Handle non-UDP.
7089 (grub_net_recv_ip_packets): Rename to ...
7090 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7091 (free_rsm): New function.
7092 (free_old_fragments): Likewise.
7093 (grub_net_recv_ip4_packets): New function.
7094 (grub_net_send_ip6_packet): Likewise.
7095 (grub_net_send_ip_packet): Likewise.
7096 (grub_net_recv_ip6_packets): Likewise.
7097 (grub_net_recv_ip_packets): Likewise.
7098 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7099 (LINK_LAYER_CACHE_SIZE): New const.
7100 (link_layer_find_entry): New function.
7101 (grub_net_link_layer_add_address): Likewise.
7102 (grub_net_link_layer_resolve_check): Likewise.
7103 (grub_net_link_layer_resolve): Likewise.
7104 (grub_net_ipv6_get_slaac): Likewise.
7105 (grub_net_ipv6_get_link_local): Likewise.
7106 (grub_cmd_ipv6_autoconf): Likewise.
7107 (parse_ip): Handle one number representation.
7108 (parse_ip6): New functoion.
7109 (match_net): Handle IPv6.
7110 (grub_net_resolve_address): Handle IPv6 and DNS.
7111 (grub_net_resolve_net_address): Handle IPv6.
7112 (route_cmp): New function.
7113 (grub_net_route_address): Find best route.
7114 (grub_net_addr_to_str): Handle IPv6.
7115 (grub_net_addr_cmp): New function.
7116 (grub_net_add_addr): Register local route.
7117 (print_net_address): Handle net address.
7118 (grub_net_poll_cards): Retransmit TCP.
7119 (grub_net_poll_cards_idle_real): Likewise.
7120 (have_ahead): New function.
7121 (grub_net_seek_real): Use underlying seek.
7122 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7123 * grub-core/net/tcp.c: New file.
7124 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7125 (cmp): New function.
7126 (ack): Likewise.
7127 (tftp_receive): Handle unordered input.
7128 (destroy_pq): New function.
7129 (tftp_close): Close pq.
7130 * grub-core/net/udp.c: Put missing license header.
7131 (grub_net_udp_socket): New function.
7132 (udp_socket_register): Likewise.
7133 (grub_net_udp_close): Likewise.
7134 (grub_net_recv_udp_packet): Check checksum.
7135 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7136 * include/grub/misc.h (grub_memchr): New function.
7137 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7138 (grub_net_card_driver): Return buf in recv.
7139 (grub_net_slaac_mac_list): New struct.
7140 (grub_network_level_protocol_id): Add ipv6.
7141 (grub_net_network_level_addr): Likewise.
7142 (grub_net_network_level_net_addr): Likewise.
7143 (grub_net_app_protocol): Add seek.
7144 (grub_net_socket): Removed.
7145 (grub_net_sockets): Likewise.
7146 (grub_net_socket_register): Likewise.
7147 (grub_net_socket_unregister): Likewise.
7148 (FOR_NET_SOCKETS): Likewise.
7149 (grub_net_add_addr): Add const.
7150 (GRUB_NET_BOOTP_*): New enum.
7151 (grub_net_addr_cmp): New proto.
7152 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7153 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7154 (grub_net_hwaddr_to_str): NEw proto.
7155 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7156 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7157 (grub_dns_init): New proto.
7158 (grub_dns_fini): Likewise.
7159 (grub_net_tcp_retransmit): Likewise.
7160 (grub_net_link_layer_add_address): Likewise.
7161 (grub_net_link_layer_resolve_check): Likewise.
7162 (grub_net_link_layer_resolve): Likewise.
7163 (grub_net_dns_lookup): Likewise.
7164 (grub_net_add_dns_server): Likewise.
7165 (grub_net_remove_dns_server): Likewise.
7166 (GRUB_NET_TRIES): New const.
7167 (GRUB_NET_INTERVAL): Likewise.
7168 * include/grub/net/arp.h: Mostly rewritten.
7169 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7170 * include/grub/net/ip.h: Mostly rewritten.
7171 * include/grub/net/netbuff.h: Indent.
7172 * include/grub/net/tcp.h: New file.
7173 * include/grub/net/udp.h: Mostly rewritten.
7174 * include/grub/priority_queue.h: New file.
7175 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7176 (grub_swap_bytes64_compile_time): Likewise.
7177 (grub_cpu_to_be16_compile_time): Likewise.
7178 (grub_cpu_to_be32_compile_time): Likewise.
7179 (grub_cpu_to_be64_compile_time): Likewise.
7180 (grub_be_to_cpu64_compile_time): Likewise.
7181
7182 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7185 UINT_TO_PTR with cast.
7186
7187 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7190 don't use them.
7191
7192 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7195 already there.
7196
7197 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7198
7199 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7200 confusing ipxe.
7201
7202 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7205 Add missing const attribute.
7206 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7207 Likewise.
7208 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7209 Likewise.
7210
7211 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7214 misaligned access.
7215 (serpent_setkey): Likewise.
7216 (serpent_encrypt_internal): Likewise.
7217 (serpent_decrypt_internal): Likewise.
7218 (serpent_encrypt): Don't put an alignment-increasing cast.
7219 (serpent_decrypt): Likewise.
7220 (serpent_test): Likewise.
7221
7222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7225
7226 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7229
7230 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7231 grub_addr_t casts.
7232 (PTR_TO_UINT64): Likewise.
7233 (PTR_TO_UINT32): Likewise.
7234
7235 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7238 because of stack.
7239 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7240 limit.
7241
7242 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7245 text_width > available width a bit more gracefully.
7246
7247 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7250 current address calculation.
7251
7252 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7255 stack.
7256 (encode_block): Likewise.
7257
7258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7261 certainety.
7262
7263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7266 non-RS part to avoid RS messing with GDT.
7267 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7268 Increase to suit in realmode routines.
7269
7270 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/kern/i386/realmode.S: Increase alignment.
7273 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7274
7275 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7278 be deterministic.
7279 (syndroms): Compute 0 syndrom.
7280 (rs_recover): Use 0 syndrom.
7281
7282 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7285
7286 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7289 brackets.
7290
7291 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7294 account.
7295 (get_top_pad): Likewise.
7296 (get_right_pad): Likewise.
7297 (get_bottom_pad): Likewise.
7298
7299 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7302
7303 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7306 attribute as the structure isn't guaranteed to be properly aligned.
7307 (grub_efi_pci_device_path): Likewise.
7308 (grub_efi_pccard_device_path): Likewise.
7309 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7310 specify the size of `memory_type'.
7311 (grub_efi_vendor_device_path): Likewise.
7312 (grub_efi_controller_device_path): Likewise.
7313 (grub_efi_acpi_device_path): Likewise.
7314 (grub_efi_expanded_acpi_device_path): Likewise.
7315 (grub_efi_atapi_device_path): Likewise.
7316 (grub_efi_scsi_device_path): Likewise.
7317 (grub_efi_fibre_channel_device_path): Likewise.
7318 (grub_efi_1394_device_path): Likewise.
7319 (grub_efi_usb_device_path): Likewise.
7320 (grub_efi_usb_class_device_path): Likewise.
7321 (grub_efi_i2o_device_path): Likewise.
7322 (grub_efi_mac_address_device_path): Likewise.
7323 (grub_efi_ipv4_device_path): Likewise.
7324 (grub_efi_ipv6_device_path): Likewise.
7325 (grub_efi_infiniband_device_path): Likewise.
7326 (grub_efi_uart_device_path): Likewise.
7327 (grub_efi_vendor_messaging_device_path): Likewise.
7328 (grub_efi_hard_drive_device_path): Likewise.
7329 (grub_efi_cdrom_device_path): Likewise.
7330 (grub_efi_vendor_media_device_path): Likewise.
7331 (grub_efi_file_path_device_path): Likewise.
7332 (grub_efi_protocol_device_path): Likewise.
7333 (grub_efi_piwg_device_path): Likewise.
7334 (grub_efi_bios_device_path): Likewise.
7335
7336 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7339 (grub_ucs4_to_utf8_alloc): Likewise.
7340 (grub_ucs4_to_utf8): Likewise.
7341 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7342 (grub_ucs4_to_utf8_alloc): Likewise.
7343
7344 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 AFFS never uses unicode.
7347
7348 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7349 (grub_latin1_to_utf8): New inline function.
7350 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7351
7352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7355 overflow.
7356
7357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7360 (grub_squash_dirent_header): Likewise.
7361 (read_chunk): Don't double swap.
7362 (grub_squash_iterate_dir): Fix swap sizes.
7363
7364 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7367
7368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7371 (grub_hfs_iterate_dir): Likewise.
7372
7373 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 Fix video on platforms where unaligned access is forbidden.
7376 Make several optimisations while on it.
7377
7378 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7379 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7380 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7381 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7382 Disable.
7383 (grub_video_fbblit_replace_16bit_1bit):
7384 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7385 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7386 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7387 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7388 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7389 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7390 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7391 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7392 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7393 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7394 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7395 (grub_video_fbblit_replace_index_RGB888): Likewise.
7396 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7397 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7398 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7399 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7400 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7401 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7402 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7403 Disable.
7404 (grub_video_fbblit_blend_XXX565_1bit):
7405 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7406 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7407 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7408 void *.
7409 * grub-core/video/fb/video_fb.c (common_blitter)
7410 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7411 (grub_video_fb_create_render_target_from_pointer)
7412 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7413 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7414 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7415 definition.
7416 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7417
7418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7421 HH22 and HM10 relocations.
7422
7423 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7426
7427 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7430 allocation succeeded.
7431
7432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7435 argument a u8 pointer. All users updated.
7436 Handle unaligned buffers.
7437
7438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7441 add_part to workaround compiler bug.
7442
7443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7446
7447 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7450 Reserve alignment invariants.
7451 (grub_multiboot_load): Likewise.
7452 (retrieve_video_parameters): Likewise.
7453 (grub_multiboot_make_mbi): Likewise.
7454
7455 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7458 incorrect pointer.
7459
7460 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7463 (grub_pata_pio_write): Likewise.
7464
7465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 Add noreturn attributes and remove unreachable code.
7468
7469 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7470 code.
7471 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7472 code. Mark as noreturn.
7473 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7474 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7475 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7476 unreachable code.
7477 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7478 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7479 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7480 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7481 * include/grub/kernel.h (grub_main): Mark as noreturn.
7482 * include/grub/reader.h (grub_rescue_run): Likewise.
7483
7484 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7487 redundant declaration.
7488
7489 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7492 redundant declaration.
7493 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7494
7495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7498 to ensure alignment.
7499 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7500 alignment. Ensure tmp alignment.
7501 (grub_cmd_hdparm): Ensure buf alignment.
7502 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7503 to ensure alignment.
7504 (grub_ata_dumpinfo): Ensure text alignment.
7505 (grub_atapi_identify): Preserve alignment invariant.
7506 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7507
7508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7511 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7512 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7513 * include/grub/misc.h (grub_reboot)
7514 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7515 (grub_halt) [__mips__]: Likewise.
7516
7517 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7520 Remove redundant declaration.
7521 (grub_mmap_get_post64): Likewise.
7522 (grub_mmap_get_upper): Likewise.
7523 (grub_mmap_get_lower): Likewise.
7524
7525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7528 uint32_t * to ensure alignment.
7529 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7530
7531 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7534 uint16_t * to ensure alignment.
7535 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7536 alignment.
7537
7538 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7541 to ensure alignment.
7542 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7543
7544 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7547 Handle unaligned pointers.
7548 (u32at): Likewise.
7549 (u64at): Likewise.
7550 (fixup): Use byte access instead of v16at.
7551 (find_attr): Fix imporper usage of v32at.
7552 (read_data): Likewise.
7553 (list_file): Handle byte-swapping and unaligned strings.
7554 (grub_ntfs_label): Likewise.
7555
7556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
7559 as it's not necessarily aligned.
7560
7561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
7564 redundant declaration.
7565 (grub_serial_init): Likewise.
7566 (grub_terminfo_init): Likewise.
7567
7568 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
7571 function.
7572 (ZAP_HASH_IDX): Likewise.
7573 (ZAP_LEAF_HASH_SHIFT): Likewise.
7574 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
7575 (LEAF_HASH): Likewise.
7576 (ZAP_LEAF_NUMCHUNKS): Likewise.
7577 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
7578 alignment invariants. Return pointer. All users updated.
7579 (ZAP_LEAF_ENTRY): Make into inline function.
7580 (NBBY): Removed.
7581 (xor): LIkewise.
7582 (xor_out): Use grub_crypto_xor.
7583 (dnode_get_path): Use grub_get_unaligned.
7584 (nvlist_find_value): Likewise.
7585 (grub_zfs_nvlist_lookup_uint64): Likewise.
7586 (grub_zfs_nvlist_lookup_string): Likewise.
7587 (get_nvlist_size): Likewise.
7588 (grub_zfs_open): Likewise.
7589 (fill_fs_info): Likewise.
7590 (grub_zfs_dir): Likewise.
7591 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
7592 alignment invariants.
7593 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
7594 necessarily aligned.
7595
7596 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
7599
7600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
7603 arithmetic to conserve alignment invariants.
7604
7605 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7606
7607 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
7608 redundant declaration.
7609 (grub_efiemu_mm_obtain_request): Likewise.
7610 (grub_efiemu_prepare): Likewise.
7611
7612 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
7615 to match types.
7616
7617 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
7620 case of aunaligned recptr.
7621 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
7622 alignment.
7623 (grub_hfsplus_btree_search): Handle unaligned index.
7624
7625 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
7628 to get freetag and skip.
7629
7630 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
7633 array.
7634 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
7635 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
7636
7637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
7640 name for checksum and fix allocation algorithm.
7641
7642 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * include/grub/types.h (grub_properly_aligned_t): New type.
7645 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
7646 (grub_get_unaligned16): Add explicit casts.
7647 (grub_get_unaligned32): Likewise.
7648 (grub_get_unaligned64): Likewise.
7649 (grub_set_unaligned16): New function.
7650 (grub_set_unaligned32): Likewise.
7651
7652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7655
7656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
7659 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
7660 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
7661
7662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7663
7664 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
7665 conditionals.
7666
7667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7668
7669 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
7670 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
7671
7672 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 Unify and improve RAID and crypto xor.
7675
7676 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
7677 changed to grub_crypto_xor
7678 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
7679 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
7680 Use bigger types when possible.
7681
7682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7683
7684 * grub-core/disk/raid.c (scan_devices): Fix condition.
7685
7686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
7689 Make name a const ptr.
7690
7691 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
7694 first argument a const pointer.
7695 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
7696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
7697 proto.
7698 (grub_children_iterate): Likewise.
7699 (grub_machine_mmap_iterate): Remove redundant declaration.
7700
7701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
7704 (grub_cmd_acpi) [!x86]: Disable EBDA.
7705
7706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 Enable UTF8 in gnulib regexp.
7709
7710 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
7711 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
7712 (isupper): Use grub_isupper.
7713 (isascii): New inline function.
7714 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
7715 * grub-core/lib/posix_wrap/wctype.h: Likewise.
7716 * grub-core/normal/charset.c (grub_utf8_process): New function.
7717 (grub_utf8_to_utf16): Use grub_utf8_process.
7718 (grub_encode_utf8_character): New function.
7719 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
7720 * include/grub/charset.h (grub_utf8_process): New declaration.
7721 (grub_encode_utf8_character): Likewise.
7722 * include/grub/misc.h (grub_islower): New inline function.
7723 (grub_isupper): Likewise.
7724 (grub_strchrsub): Moved down to fix the definitions.
7725
7726 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
7729 specification.
7730
7731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 * include/grub/loader.h (grub_loader_register_preboot_hook):
7734 Use struct preboot * and not void * for handle. All users updated.
7735 (grub_loader_unregister_preboot_hook): Likewise.
7736
7737 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
7740 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
7741 UTF-16-BE. All users updated.
7742 (grub_hfsplus_cmp_catkey): Fix unicode handling.
7743 (grub_hfsplus_iterate_dir): Likewise.
7744 (grub_hfsplus_label): Likewise.
7745
7746 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7747
7748 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
7749
7750 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
7751
7752 Add missing const qualifiers.
7753
7754 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
7755 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
7756 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
7757 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
7758 (grub_lvm_check_flag): Likewise.
7759 * grub-core/efiemu/i386/coredetect.c
7760 (grub_efiemu_get_default_core_name): Likewise
7761 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7762 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
7763 * grub-core/fs/ntfs.c (fixup): Likewise.
7764 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
7765 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
7766 (fzap_lookup): Likewise.
7767 (zap_lookup): Likewise.
7768 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
7769 * grub-core/lib/legacy_parse.c (check_option): Likewise.
7770 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
7771 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
7772 (grub_freebsd_add_meta_module): Likewise.
7773 (grub_cmd_freebsd_module): Likewise.
7774 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
7775 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
7776 (grub_xnu_writetree_get_size): Likewise.
7777 (grub_xnu_writetree_toheap_real): Likewise.
7778 (grub_xnu_find_key): Likewise.
7779 (grub_xnu_create_key): Likewise.
7780 (grub_xnu_create_value): Likewise.
7781 (grub_xnu_register_memory): Likewise.
7782 (grub_xnu_check_os_bundle_required): Likewise.
7783 (grub_xnu_scan_dir_for_kexts): Likewise.
7784 (grub_xnu_load_kext_from_dir): Likewise.
7785 * grub-core/normal/color.c (color_list): Likewise.
7786 * grub-core/normal/completion.c (current_word): Likewise.
7787 * grub-core/normal/menu_entry.c (insert_string): Likewise.
7788 * grub-core/term/serial.c (grub_serial_find): Likewise.
7789 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
7790 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
7791 Likewise.
7792 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
7793 (grub_freebsd_add_meta_module): Likewise.
7794 * include/grub/lib/arg.h (grub_arg_option): Likewise.
7795 * include/grub/net.h (grub_net_card_driver): Likewise.
7796 (grub_net_card): Likewise.
7797 (grub_net_app_protocol): Likewise.
7798 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
7799 * include/grub/serial.h (grub_serial_find): Likewise.
7800 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
7801 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
7802 (grub_xnu_create_value): Likewise.
7803 (grub_xnu_find_key): Likewise.
7804 (grub_xnu_scan_dir_for_kexts): Likewise.
7805 (grub_xnu_load_kext_from_dir): Likewise.
7806
7807 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
7808 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
7809 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
7810 Moved from here ...
7811 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
7812
7813 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
7814
7815 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
7816
7817 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
7820 (read_device): Fix size calculation.
7821
7822 2011-11-25 Robert Millan <rmh@gnu.org>
7823
7824 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
7825 (find_root_device_from_libzfs): Add zpool output parser to be used
7826 as fallback when libzfs isn't available.
7827
7828 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
7829
7830 * po/Makefile.in.in: Add missing escape-continuation.
7831
7832 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
7835
7836 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7837
7838 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
7839
7840 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
7843
7844 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
7847
7848 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * grub-core/lib/adler32.c: Add missing license specification.
7851 * grub-core/lib/crc64.c: Likewise.
7852 * grub-core/loader/i386/pc/plan9.c: Likewise.
7853 * grub-core/partmap/plan.c: Likewise.
7854
7855 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
7856
7857 Add facility to debug GRUB with gdb under qemu.
7858
7859 * grub-core/gdb_grub.in: New file.
7860 * grub-core/gmodule.pl.in: Likewise.
7861 * grub-core/Makefile.core.def (gmodule.pl): New script.
7862 (gdb_grub): Likewise.
7863
7864 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 * util/grub-mount.c (argp_parser): Accept relative pathes.
7867 * util/grub-fstest.c (argp_parser): Likewise.
7868
7869 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 Plan9 support.
7872
7873 * Makefile.util.def (libgrubmods): Add
7874 grub-core/partmap/plan.c.
7875 * docs/grub.texi: Notice Plan9 support.
7876 * grub-core/Makefile.core.def (plan9): New module.
7877 (part_plan): Likewise.
7878 * grub-core/loader/i386/pc/plan9.c: New file.
7879 * grub-core/partmap/plan.c: Likewise.
7880 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
7881 define.
7882 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
7883 * include/grub/mm.h (grub_extend_alloc): New inline function.
7884
7885 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7886
7887 Make Reed-Solomon faster by using power of generator representation of
7888 GF(256)*.
7889
7890 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
7891 (gf_double_t): Likewise.
7892 (gf_invert): Removed.
7893 (gf_powx): New array.
7894 (gf_powx_inv): Likewise.
7895 (scratch): Move higher.
7896 (gf_reduce): Removed.
7897 (gf_mul): Use powx.
7898 (gf_invert): Likewise.
7899 (init_inverts): Replaced with ...
7900 (init_powx): ...this. All users updated.
7901 (pol_evaluate): Replace multiplications with additions.
7902 (rs_encode): Likewise.
7903 (gauss_eliminate): Call gf_invert.
7904 (grub_reed_solomon_add_redundancy): Call init_powx.
7905 (grub_reed_solomon_recover): Call init_powx unconditionally.
7906
7907 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
7910
7911 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
7914 disk->partiton for safety.
7915
7916 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7919 Fix a memory leak.
7920 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
7921
7922 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
7925
7926 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7927
7928 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
7929
7930 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 Fix spaces handling in proc/self/mountinfo.
7933
7934 * util/getroot.c (unescape): New function.
7935 (grub_find_root_device_from_mountinfo): Use unescape.
7936
7937 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 Support ZFS embedding.
7940
7941 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
7942 (grub_zfs_fs): Register grub_zfs_embed.
7943
7944 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 Fix MIPS compilation.
7947
7948 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
7949 * include/grub/offsets.h: Rename decompressor fields from
7950 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
7951 * util/grub-mkimage.c (image_targets): Use new names.
7952
7953 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 Defer multiboot device parsing until we're in compressed part.
7956
7957 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
7958 bsd_part. setdevice has fallen into disuse.
7959 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
7960 (bsd_part): Likewise.
7961 (boot_dev): New variable.
7962 (multiboot_trampoline): Don't parse multiboot device.
7963 Pass multiboot device in %edx.
7964 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
7965 grub_boot_device.
7966 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
7967 Likewise.
7968 * grub-core/kern/i386/pc/startup.S: Save edx.
7969 (grub_boot_drive): Removed.
7970 (grub_install_dos_part): Likewise.
7971 (grub_install_bsd_part): Likewise.
7972 (grub_boot_device): New variable.
7973 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
7974 (grub_install_bsd_part): Likewise.
7975 (grub_boot_drive): Likewise.
7976 (grub_boot_device): New variable.
7977 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
7978 Removed.
7979 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
7980 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
7981 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
7982 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
7983 * util/grub-install.in: Remove redundant condition.
7984
7985 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Fix bug introduced by previous commit.
7988
7989 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
7990
7991 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 Use decompressors framework on i386-pc. It increases core size
7994 by 46 bytes but improves compatibility and maintainability.
7995
7996 * grub-core/Makefile.core.def (lzma_decompress): New image.
7997 (kernel): Add i386_pc_ldflags.
7998 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
7999 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8000 to real_to_prot, prot_to_real and device info.
8001 * include/grub/offsets.h: Renamed decompressor offsets.
8002 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8003 (image_target_desc): Remove raw_size and rename decompressor fields.
8004 (compress_kernel): Handle lzma.
8005 (generate_image): Handle decompressors on i386-pc.
8006
8007 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * configure.ac: Add -fno-asynchronous-unwind-tables.
8010
8011 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 Move assembly code to C by using intwrap. It increases core size
8014 by 88 bytes but improves compatibility and maintainability.
8015
8016 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8017 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8018 ... here. Translated to C.
8019 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8020 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8021 ... here. Translated to C.
8022 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8023 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8024 ... here. Translated to C.
8025 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8026 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8027 ... here. Translated to C.
8028 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8029 * grub-core/term/i386/pc/console.c (grub_console_cls):
8030 ... here. Translated to C.
8031 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8032 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8033 ... here. Translated to C.
8034 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8035 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8036 Translated to C.
8037 * grub-core/term/i386/pc/console.c (int10_9): New function.
8038 (grub_console_putchar): Likewise.
8039 * include/grub/i386/pc/console.h: Removed the not anymore shared
8040 functions.
8041
8042 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 Move grub_chainloader_real_boot out of the kernel.
8045
8046 * grub-core/Makefile.am: Remove machine/loader.h.
8047 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8048 Removed.
8049 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8050 variable.
8051 (grub_relocator16_keep_a20_enabled): Likewise.
8052 (grub_relocator16_boot): Fill new variables.
8053 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8054 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8055 relocator.
8056 (grub_chainloader_unload): Likewise.
8057 (grub_chainloader_cmd): Likewise.
8058 * include/grub/i386/pc/loader.h: Removed.
8059 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8060 and esi. All initialisers updated.
8061
8062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8063 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8064
8065 * Makefile.util.def (grub-mount): New util.
8066 * .bzrignore: Add grub-mount.
8067 * configure.ac: Check for fuse and enable grub-mount if available.
8068 * docs/man/grub-mount.h2m: New file.
8069 * util/grub-mount.c: Likewise.
8070
8071 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8072
8073 * grub-core/commands/efi/fixvideo.c: Gettextize.
8074 * grub-core/commands/hashsum.c: Likewise.
8075 * grub-core/commands/i386/cmostest.c: Likewise.
8076 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8077 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8078 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8079 * grub-core/commands/lsmmap.c: Likewise.
8080 * grub-core/commands/menuentry.c: Likewise.
8081 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8082 * grub-core/commands/setpci.c: Likewise.
8083 * grub-core/loader/i386/bsd.c: Likewise.
8084 * grub-core/loader/i386/linux.c: Likewise.
8085 * util/getroot.c: Likewise.
8086 * util/grub-editenv.c: Likewise.
8087 * util/grub-fstest.c: Likewise.
8088 * util/grub-mkfont.c: Likewise.
8089 * util/grub-mkimage.c: Likewise.
8090 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8091 * util/grub-pe2elf.c: Likewise.
8092 * util/grub-probe.c: Likewise.
8093 * util/grub-setup.c: Likewise.
8094 * util/ieee1275/ofpath.c: Likewise.
8095 * util/misc.c: Likewise.
8096 * util/raid.c: Likewise.
8097
8098 2011-11-11 Robert Millan <rmh@gnu.org>
8099
8100 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8101 __attribute__((unused)) from `os_dev', which *is* being used.
8102
8103 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8106 forgotten define.
8107 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8108 GRUB_IA64_DL_GOT_ALIGN.
8109 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8110 GRUB_IA64_DL_TRAMP_ALIGN.
8111
8112 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 Replace grub_fatal with normal errors in i386 linux loader.
8115
8116 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8117 (allocate_pages): Check find_efi_mmap_size return value.
8118 (grub_e820_add_region): Return error.
8119 (grub_linux_boot): Check mmap return value.
8120
8121 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * grub-core/commands/acpihalt.c: Gettextized.
8124 * grub-core/commands/cacheinfo.c: Likewise.
8125 * grub-core/commands/cmp.c: Likewise.
8126 * grub-core/commands/efi/loadbios.c: Likewise.
8127 * grub-core/commands/gptsync.c: Likewise.
8128 * grub-core/commands/ieee1275/suspend.c: Likewise.
8129 * grub-core/commands/legacycfg.c: Likewise.
8130 * grub-core/commands/memrw.c: Likewise.
8131 * grub-core/commands/minicmd.c: Likewise.
8132 * grub-core/commands/parttool.c: Likewise.
8133 * grub-core/commands/time.c: Likewise.
8134 * grub-core/commands/videoinfo.c: Likewise.
8135 * grub-core/disk/geli.c: Likewise.
8136 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8137 * grub-core/disk/luks.c: Likewise.
8138 * grub-core/disk/lvm.c: Likewise.
8139 * grub-core/font/font_cmd.c: Likewise.
8140 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8141 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8142 * grub-core/gfxmenu/view.c: Likewise.
8143 * grub-core/kern/emu/hostdisk.c: Likewise.
8144 * grub-core/kern/emu/main.c: Likewise.
8145 * grub-core/kern/emu/misc.c: Likewise.
8146 * grub-core/kern/emu/mm.c: Likewise.
8147 * grub-core/kern/mips/arc/init.c: Likewise.
8148 * grub-core/kern/mips/loongson/init.c: Likewise.
8149 * grub-core/kern/partition.c: Likewise.
8150 * grub-core/lib/i386/halt.c: Likewise.
8151 * grub-core/lib/mips/arc/reboot.c: Likewise.
8152 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8153 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8154 * grub-core/loader/i386/xnu.c: Likewise.
8155 * grub-core/loader/multiboot.c: Likewise.
8156 * grub-core/net/bootp.c: Likewise.
8157 * grub-core/net/net.c: Likewise.
8158 * grub-core/normal/term.c: Likewise.
8159 * grub-core/partmap/bsdlabel.c: Likewise.
8160 * grub-core/parttool/msdospart.c: Likewise.
8161 * grub-core/term/gfxterm.c: Likewise.
8162 * grub-core/term/terminfo.c: Likewise.
8163 * grub-core/video/i386/pc/vbe.c: Likewise.
8164 * util/grub-menulst2cfg.c: Likewise.
8165 * util/grub-mkdevicemap.c: Likewise.
8166 * util/grub-mklayout.c: Likewise.
8167 * util/grub-mkrelpath.c: Likewise.
8168 * util/grub-script-check.c: Likewise.
8169 * util/ieee1275/grub-ofpathname.c: Likewise.
8170 * util/resolve.c: Likewise.
8171
8172 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8173
8174 Support %1$d syntax.
8175
8176 * tests/printf_unit_test.c: New file.
8177 * Makefile.util.def (printf_test): New test.
8178 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8179
8180 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8183 fix.
8184
8185 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8188 dprintf.
8189 * grub-core/font/font.c (grub_font_load): Likewise.
8190
8191 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8192
8193 * util/grub-macho2img.c: Add comment concerning gettext.
8194 * grub-core/lib/legacy_parse.c: Likewise.
8195
8196 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8199 (grub_xvasprintf): Likewise.
8200
8201 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 Add const keyword to grub_env_get and gettextize week days.
8204
8205 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8206 (grub_read_hook_datetime): Return const char *.
8207 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8208 updated.
8209 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8210 Mark for gettext.
8211 (grub_get_weekday_name): Return const char *. Call gettext.
8212 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8213 char * and len as the argument. All users updated.
8214 (grub_script_argv_split_append): Receive const char *.
8215 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8216 * include/grub/env.h (grub_env_get): Likewise.
8217 (grub_env_read_hook_t): Return const char *.
8218 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8219 (grub_script_argv_split_append): Likewise.
8220
8221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8222
8223 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8224
8225 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8228 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8229
8230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8233 Fix prototype.
8234
8235 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 Fix mips compilation.
8238
8239 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8240 normal decoder.
8241 (hashes): Use in embed decoder as well (for sizes).
8242 (dec_stream_header): Fix embed decompressor logic.
8243 (dec_stream_footer): Likewise.
8244
8245 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8248 an error and not a fatal on unrecognised relocation types.
8249
8250 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8253 Issue error rather than printf on unknown arguments.
8254
8255 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8258 Make buf a const.
8259
8260 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8263 Fix module name.
8264
8265 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8268 leftover debug printf.
8269
8270 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8273
8274 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8277 A stylistic fix.
8278
8279 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8282
8283 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8284
8285 Allow all modules to perform serial IO
8286
8287 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8288 * include/grub/serial.h (grub_serial_port_configure): New inline
8289 function.
8290 (grub_serial_port_fetch): Likewise.
8291 (grub_serial_port_put): Likewise.
8292 (grub_serial_port_fini): Likewise.
8293 (grub_serial_find): New proto.
8294
8295 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 Put symlink at the end of the node and fix a potential
8298 memory corruption.
8299
8300 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8301 Make symlink into an array.
8302 (set_rockridge): Set have_symlink and alloc_dirents.
8303 (grub_iso9660_read_symlink): Use new layout.
8304 (grub_iso9660_iterate_dir): Fix memory corruption.
8305 Use new layout.
8306 (grub_iso9660_dir): Set have_symlink.
8307 (grub_iso9660_open): Likewise.
8308
8309 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8310
8311 Remove local keyword.
8312
8313 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8314 (version_test_gt): Likewise.
8315 (version_find_latest): Likewise.
8316 (gettext_printf): Likewise.
8317 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8318
8319 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8320
8321 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8322
8323 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 Fix ZFS memory and resource leaks.
8326
8327 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8328 All users updated.
8329 Free type on exit.
8330 (fill_vdev_info): New parameter inserted. All users updated.
8331 (check_pool_label): Likewise.
8332 (scan_disk): Likewise.
8333 (scan_devices): Close non-inserted disks.
8334 (fzap_iterate): Free l.
8335 (unmount_device): Free children descripto memory.
8336
8337 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8338
8339 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8340 argument (access out of bounds).
8341
8342 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8345 >= 6 drives.
8346
8347 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8350 Fix declaration.
8351
8352 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 Fix several memory leaks.
8355
8356 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8357 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8358 (grub_cpio_dir): Likewise.
8359 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8360 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8361 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8362 (grub_romfs_label): Likewise.
8363 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8364 (squash_unmount): New function.
8365 (grub_squash_dir): Fix memory leak.
8366 (grub_squash_open): Likewise.
8367 (grub_squash_read): Likewise.
8368 (grub_squash_mtime): Likewise.
8369 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8370 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8371 * util/grub-fstest.c (fstest): Likewise.
8372
8373 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8376 avoid accessing beyond the array.
8377
8378 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8381
8382 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 Several AFFS fixes.
8385
8386 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8387 (GRUB_AFFS_FLAG_FFS): Removed.
8388 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8389 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8390 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8391 (grub_fshelp_node): Make block 32-bit.
8392 Add block_cache and last_block_cache.
8393 (grub_affs_read_block): Fill and use block cache.
8394 (grub_affs_read_file): Removed.
8395 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8396 boot block.
8397 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8398 safety.
8399 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8400 space.
8401 (grub_affs_close): Free block cache.
8402 (grub_affs_read): Use grub_fshelp_read_file directly.
8403
8404 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8407 with no error set.
8408
8409 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8412 used variable.
8413 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8414 Likewise.
8415
8416 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8419
8420 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8421 byteswap when needed.
8422
8423 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 Fix FreeBSD compilation.
8426
8427 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8428 to avoid circular dependency.
8429 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8430 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8431 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8432
8433 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 Fix ZFS crypto error types.
8436
8437 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8438 (grub_gcm_decrypt): Likewise.
8439 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8440 from PBKDF2.
8441
8442 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 Illumos support.
8445
8446 * Makefile.util.def (10_illumos): New script.
8447 * configure.ac: Set COND_HOST_ILLUMOS.
8448 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8449 Support Illumos calls.
8450 (find_partition_start) [__sun__]: Likewise.
8451 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8452 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8453 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8454 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8455 device.
8456 * util/grub-probe.c (probe) [__sun__]: Do character check.
8457 * util/grub.d/10_illumos.in: New file.
8458
8459 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 Support escaped commas in hostdisk.
8462
8463 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8464 (find_grub_drive): Use unescape_cmp.
8465 (make_device_name): Escape commas.
8466
8467 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8470
8471 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8474 variable.
8475
8476 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8477
8478 Support trampoline jumps on powerpc.
8479
8480 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8481 __ia64__ path.
8482 (grub_dl_load_segments): Set mod->sz.
8483 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8484 segments.
8485 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8486 (jump): Likewise.
8487 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8488 function.
8489 (trampoline): New struct.
8490 (trampoline_template): New const.
8491 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8492 * include/grub/dl.h (grub_dl): Add sz element.
8493 [__powerpc__]: Follow __ia64__.
8494 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8495 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8496 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8497 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8498
8499 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 ZFS crypto support.
8502
8503 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8504 * grub-core/Makefile.core.def (zfscrypt): New module.
8505 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8506 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8507 it. All users updated.
8508 (grub_zfs_decrypt): New var.
8509 (grub_zfs_load_key): Likewise.
8510 (zio_checksum_functions): Add SHA256+MAC.
8511 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8512 (zio_read): Handle encrypted blocks.
8513 (zap_verify): Remove incorrect check.
8514 (fzap_iterate): Handle non-standard fzap.
8515 (zap_iterate): Likewise.
8516 (zap_iterate_u64): New function.
8517 (dnode_get_fullpath): Load keys.
8518 * grub-core/fs/zfs/zfscrypt.c: New file.
8519 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8520 (grub_crypto_ecb_encrypt): Make input const.
8521 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8522 (grub_crypto_ecb_encrypt): Make input const.
8523 (GRUB_CIPHER_AES): New macro.
8524 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8525 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8526 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8527 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8528 prefix. All users updated.
8529 (grub_zfs_add_key): New proto.
8530 (grub_zfs_decrypt): Likewise.
8531 (grub_zfs_load_key): Likewise.
8532 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8533 * util/grub-fstest.c (options): Add -K option.
8534 (argp_parser): Likewise.
8535
8536 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 Support zle compression on ZFS.
8539
8540 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8541 (decomp_table): Add zle.
8542 * include/grub/zfs/zio.h (zio_compress): Add zle.
8543
8544 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8545
8546 Support BtrFS embedding.
8547
8548 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8549 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
8550 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
8551 * util/grub-setup.c (setup): Use fs embedding if available.
8552 Add additional sanity check.
8553
8554 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * util/grub-install.in: Fix condition for config_opt.
8557
8558 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 Support third redundancy strip on raidz3.
8561
8562 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
8563 Return error on singularity. All users updated.
8564 (read_device): Don't stop on 3rd failure on raidz3.
8565
8566 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 Support case-insensitive ZFS subvolumes.
8569
8570 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
8571 All users updated.
8572 (zap_hash): Likewise.
8573 (name_cmp): New function.
8574 (zap_leaf_array_equal): New parameter case_insensitive.
8575 All users updated.
8576 (zap_leaf_lookup): Likewise.
8577 (fzap_lookup): Likewise.
8578 (zap_lookup): Likewise.
8579 (dnode_get_path): New parameter case_insensitive. Retrieve case
8580 sensitiviness of a volume. All users updated.
8581 (dnode_get_fullpath): New parameter case_insensitive.
8582 All users updated.
8583 (grub_zfs_dir): Set info.case_insensitiveness.
8584
8585 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 Support second redundancy strip on raidz(2,3).
8588
8589 * grub-core/fs/zfs/zfs.c (powx): New array.
8590 (powx_inv): Likewise.
8591 (poly): New const.
8592 (xor_out): New function.
8593 (gf_mul): Likewise.
8594 (recovery): Likewise.
8595 (read_device): Use second redundancy strip.
8596
8597 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 Use a power of generator representation of GF(256) multiplication group
8600 to save space time and complexity.
8601
8602 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
8603 (raid6_table2): Likewise.
8604 (powx): New array.
8605 (powx_inv): Likewise.
8606 (poly): New const.
8607 (grub_raid_block_mul): Replace with ...
8608 (grub_raid_block_mulx): ...this.
8609 (grub_raid6_init_table): Rewritten.
8610 (grub_raid6_recover): Use power of generator representation.
8611
8612 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
8615 for the right device.
8616
8617 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8618
8619 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
8620 expected by grub-mkimage and it's more clear since there is no implicit
8621 padding.
8622
8623 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8624
8625 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
8626 disk.
8627 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8628
8629 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
8630
8631 * util/grub-mkrescue.in: Fix handling xorriso option.
8632
8633 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
8636 NULL.
8637
8638 2011-11-03 crocket <crockabiscuit@gmail.com>
8639
8640 * util/grub.d/10_linux.in: Add Slackware initrd naming.
8641
8642 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 XZ CRC64 and SHA256 support.
8645
8646 * Makefile.util.def (libgrubmods): Add crc64.c.
8647 * grub-core/Makefile.core.def (crc64): New module.
8648 * grub-core/lib/crc64.c: New file.
8649 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
8650 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
8651 Fix the type.
8652 (MAX_HASH_SIZE): New define.
8653 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
8654 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
8655 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8656 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8657 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
8658 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
8659 Handle non-crc32 hashes.
8660 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
8661 (dec_stream_header): Handle non-crc32 hashes.
8662 (dec_stream_footer): Likewise.
8663 (dec_block_header): Likewise.
8664 (dec_main): Likewise.
8665 (xz_dec_init): Likewise.
8666 (xz_dec_reset): Likewise.
8667 (xz_dec_end): Likewise.
8668 * util/import_gcry.py: Add CRC64 line.
8669
8670 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
8673 as well.
8674
8675 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 Make reiserfs label retrieval similar to other *_label functions.
8678
8679 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
8680 (REISERFS_MAX_LABEL_LENGTH): Removed.
8681 (REISERFS_LABEL_OFFSET): Likewise.
8682 (grub_reiserfs_label): Rewritten.
8683
8684 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
8687 field.
8688
8689 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
8692
8693 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8696 drive failure on both raidz and raidz2.
8697
8698 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 Fix RAIDZ(2) for >= 5 devices.
8701
8702 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
8703 asize argument. All users updated.
8704
8705 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8706
8707 Fix RAIDZ(2).
8708
8709 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
8710 (fill_vdev_info_real): Set ashift.
8711 (read_device): Rewrite RAIDZ part based on reverse engineering.
8712
8713 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8714
8715 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
8716 don't report potentially unavialiable fields in debug output.
8717 (find_path): Fix double-free and memory leak.
8718
8719 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 Read label on UFS1.
8722
8723 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
8724 (grub_ufs_fs): Always set .label.
8725
8726 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8727
8728 Use shifts in UFS.
8729
8730 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
8731 (grub_ufs_data): New field log2_blksz.
8732 (grub_ufs_read_file): Use shifts.
8733 (grub_ufs_mount): Check block size and logarithm it.
8734
8735 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
8738 long symlinks.
8739
8740 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 Handle symlinks and long names on tar and cpio.
8743
8744 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
8745 (ATTR_FILE): Likewise.
8746 (ATTR_DIR): Likewise.
8747 (ATTR_LNK): Likewise.
8748 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
8749 (grub_cpio_find_file): Fill mode, handle linkname field as well as
8750 L and K entries.
8751 (grub_cpio_mount): Zero-fill data.
8752 (handle_symlink): New function.
8753 (grub_cpio_dir): Handle symlinks.
8754 (grub_cpio_open): Likewise.
8755 (grub_cpio_close) [MODE_USTAR]: Free linkname.
8756
8757 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8758
8759 Fix iso9660 filename limitations and fix memory leaks.
8760
8761 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
8762 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
8763
8764 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 Fix JFS file name length limitations.
8767
8768 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
8769 (grub_jfs_diropen): Fix maximum filename length.
8770 (grub_jfs_getent): Fix filename length.
8771 (grub_jfs_lookup_symlink): Fix size checks.
8772
8773 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
8776 string.
8777
8778 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 Leverage BFS implementation to read AFS.
8781
8782 * Makefile.util.def (libgrubmods): Add afs.c.
8783 * grub-core/Makefile.core.def (afs): New module
8784 * grub-core/fs/afs.c: New file.
8785 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
8786
8787 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
8790
8791 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * grub-core/fs/bfs.c: Run indent.
8794
8795 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 BFS implementation based on the specification.
8798
8799 * grub-core/fs/bfs.c: New file.
8800 * Makefile.util.def (libgrubmods): Add bfs.c.
8801 * grub-core/Makefile.core.def (bfs): New module.
8802
8803 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * util/grub-fstest.c (cmd_cp): Clarify error message.
8806 (cmd_cmp): Likewise.
8807
8808 2011-10-30 Yves Blusseau <blusseau@zetam.org>
8809
8810 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
8811 and befs_be.
8812
8813 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 Remove afs and befs because of copyright problem.
8816
8817 * grub-core/fs/afs.c: Removed.
8818 * grub-core/fs/afs_be.c: Removed.
8819 * grub-core/fs/befs.c: Removed.
8820 * grub-core/fs/befs_be.c: Removed.
8821 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
8822 * grub-core/Makefile.core.def (afs): Removed.
8823 (afs_be): Likewise.
8824 (befs): Likewise.
8825 (befs_be): Likewise.
8826
8827 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 Prefer rockridge over Joliet.
8830
8831 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
8832 to ...
8833 (set_rockridge): ... here.
8834 (grub_iso9660_mount): Check rockridge on the primary label when
8835 discovering. Ignore Joliet if Rockridge is present.
8836
8837 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 Use shifts in nilfs2.
8840
8841 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
8842 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
8843 (grub_nilfs2_palloc_entries_per_group): Replace with ...
8844 (grub_nilfs2_log_palloc_entries_per_group): ... this.
8845 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
8846 (grub_nilfs2_entries_per_block): Replaced with ...
8847 (grub_nilfs2_log_entries_per_block_log): ... this.
8848 (grub_nilfs2_blocks_per_group): Replaced with ...
8849 (grub_nilfs2_blocks_per_group_log): ... this.
8850 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
8851 (grub_nilfs2_blocks_per_desc_block_log): ... this.
8852 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
8853 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
8854 (grub_nilfs2_palloc_entry_offset): Replaced ...
8855 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
8856 (grub_nilfs2_dat_translate): Use shifts.
8857 (grub_nilfs2_read_inode): Likewise.
8858 (GRUB_MOD_INIT): Ensure that logs are correct.
8859
8860 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 Use shifts in minix filesystem.
8863
8864 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
8865 (GRUB_MINIX_ZONE2SECT): Likewise.
8866 (grub_minix_data): Replace block_size with log_block_size.
8867 (grub_minix_read_file): Use shifts.
8868 (grub_minix_mount): Check block size and take a logarithm.
8869
8870 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 Use shifts in squash4.
8873
8874 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
8875 (squash_mount): Check block size and take logarithm.
8876 (direct_read): Use shifts.
8877
8878 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 Correct befs block counting logic.
8881
8882 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
8883 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
8884 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
8885 (grub_afs_read_inode): Use block_shift.
8886 (RANGE_SHIFT): New definition.
8887 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
8888 unexpected conditions, use shifts and appropriate types.
8889 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
8890
8891 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * grub-core/disk/raid.c (scan_devices): Check partition.
8894 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8895
8896 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 Support BFS (befs) UUID.
8899
8900 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
8901 (grub_afs_small_data_element_header): New struct.
8902 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
8903 (grub_afs_read_attribute) [MODE_BFS]: New function.
8904 (grub_afs_iterate_dir): Allocate for complete inode.
8905 (grub_afs_mount): Likewise.
8906 (grub_afs_uuid) [MODE_BFS]: New function.
8907 (grub_afs_fs) [MODE_BFS]: Add .uuid.
8908
8909 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
8912 (zfs_unmount): Fix memory leak.
8913
8914 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 Support NTFS reparse points.
8917
8918 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
8919 (symlink_descriptor): New struct.
8920 (grub_ntfs_read_symlink): New function.
8921 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
8922 (grub_ntfs_open): Likewise.
8923
8924 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
8927
8928 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 fstest xnu_uuid subcommand.
8931
8932 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
8933 grub-core/commands/xnu_uuid.c.
8934 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
8935 (fstest): Handle xnu_uuid.
8936 (options): Document xnu_uuid.
8937 (argp_parser): Parse xnu_uuid.
8938
8939 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
8942 -l argument. Add newline at the end if printing.
8943 (GRUB_MOD_INIT): Document -l.
8944
8945 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
8948
8949 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 ZFS multi-device and version 33 support.
8952
8953 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
8954 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
8955 (grub_zfs_data): Add multidev-ice-related fields.
8956 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
8957 (dva_get_offset): Make dva const.
8958 (zfs_fetch_nvlist): New function.
8959 (fill_vdev_info_real): Likewise.
8960 (fill_vdev_info): Likewise.
8961 (check_pool_label): Likewise.
8962 (scan_disk): Likewise.
8963 (scan_devices): Likewise.
8964 (read_device): Likewise.
8965 (read_dva): Likewise.
8966 (zio_read_gang): Use read_dva.
8967 (zio_read_data): Likewise.
8968 (zap_leaf_lookup): Add missing endian conversion.
8969 (zap_verify): Add missing endian conversion. All users updated.
8970 (fzap_lookup): Likewise.
8971 (fzap_iterate): Likewise.
8972 (dnode_get_path): Handle SA bonus.
8973 (nvlist_find_value): Make input const. All users updated.
8974 (unmount_device): New function.
8975 (zfs_unmount): Use unmount_device.
8976 (zfs_mount): Use scan_disk.
8977 (zfs_mtime): New function.
8978 (grub_zfs_open): Handle system attributes.
8979 (fill_fs_info): Likewise.
8980 (grub_zfs_dir): Likewise.
8981 (grub_zfs_fs): Add mtime.
8982 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
8983 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
8984 (SA_MTIME_OFFSET): Likewise.
8985 (SA_SYMLINK_OFFSET): Likewise.
8986 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
8987 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
8988 (fstest): Support zfsinfo.
8989 (argp_parser): Likewise.
8990
8991 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
8994 error.
8995
8996 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8997
8998 ZFS fixes.
8999
9000 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9001 sharing the same block. Iterate over correct number of indices.
9002 (dnode_get_path): Handle symlinks correctly.
9003
9004 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9007
9008 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 Read label on HFS+.
9011
9012 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9013 (grub_hfsplus_btree_search): Fix types.
9014 (grub_hfsplus_label): Implement.
9015
9016 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9019
9020 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9023
9024 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 Fix symlink handling on iso9660.
9027
9028 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9029 All users updated.
9030 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9031 (grub_iso9660_read_symlink): Moved most of code ...
9032 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9033
9034 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9037 Use union to avoid breaking strict-aliasing rules.
9038
9039 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 Support multi-extent iso files.
9042
9043 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9044 Add node.
9045 (grub_fshelp_node): Revamp. All users updated.
9046 (FLAG_*): New enum.
9047 (read_node): New function.
9048 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9049 All users updated.
9050 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9051 (get_node_size): New function.
9052 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9053 entries.
9054 Fix memory leak on . and ..
9055 (grub_iso9660_read): Use read_node.
9056 (grub_iso9660_close): Free node.
9057
9058 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 Fix tar 4G limit and handle paths containing dot.
9061
9062 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9063 (canonicalize): New function.
9064 (grub_cpio_find_file): Use canonicalize. Store offs in
9065 grub_disk_addr_t.
9066 (grub_cpio_dir): Use grub_disk_addr_t.
9067 (grub_cpio_open): Likewise.
9068
9069 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9070
9071 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9072
9073 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9074 unused flags.
9075 (grub_squash_inode): Add long_file and block_size.
9076 (grub_squash_cache_inode): New struct.
9077 (grub_squash_dirent): Make types into enum.
9078 (SQUASH_TYPE_LONG_REGULAR): New type.
9079 (grub_squash_frag_desc): Add field size.
9080 (SQUASH_BLOCK_FLAGS): New enum.
9081 (grub_squash_data): Use grub_squash_cache_inode.
9082 (grub_fshelp_node): Make ino_chunk 64-bit.
9083 (read_chunk): Minor argument change. All users updated.
9084 (squash_mount): Use correct le_to_cpu.
9085 (grub_squash_open): Handle LONG_REGULAR.
9086 (direct_read): New function.
9087 (grub_squash_read_data): Handle blocks correctly.
9088
9089 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9092
9093 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9096
9097 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 Fix 2G limit on ZFS.
9100
9101 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9102 types.
9103 (uberblock_verify): Likewise.
9104 (dmu_read): Likewise.
9105 (grub_zfs_read): Likewise. Remove invalid cast.
9106
9107 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9110 (grub_jfs_blkno): Fix incorrect shift.
9111 (grub_jfs_read_file): Use more appropriate types.
9112
9113 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 Support triple indirect on minix2 and minix3.
9116
9117 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9118 Declare triple_indir_zone.
9119 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9120 indirect.
9121
9122 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 Minix FS fixes.
9125
9126 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9127 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9128 Rename ctime to mtime. All users updated.
9129 (grub_minix_get_file_block): Fix types and double indirect computations.
9130
9131 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9134 if no label is found.
9135 (grub_fat_iterate_dir): Fix file size type.
9136 (grub_fat_iterate_dir): Likewise.
9137
9138 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9141 save some space.
9142 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9143 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9144
9145 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9148
9149 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * util/import_gcry.py: Accept space between # and include.
9152
9153 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9156
9157 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9160
9161 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9162 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9163 yylex_strncpy.
9164 * grub-core/script/yylex.l: Add fine-grained #pragma.
9165
9166 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9169 New inline function.
9170 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9171 Likewise.
9172 (memset) [GRUB_UTIL]: Likewise.
9173 (memcmp) [GRUB_UTIL]: Likewise.
9174
9175 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9178 inline function rather than a define.
9179
9180 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * util/grub-setup.c: Add missing include.
9183
9184 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 * util/ieee1275/grub-ofpathname.c: Add missing include.
9187
9188 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9191 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9192 Likewise.
9193
9194 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9197 grub_memcmp usage.
9198
9199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * util/grub-install.in: Add datarootdir as per automake manual
9202 suggestion.
9203 * util/grub-mknetdir.in: Likewise.
9204
9205 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9208 suggestion.
9209 * util/grub.d/10_kfreebsd.in: Likewise.
9210 * util/grub.d/10_linux.in: Likewise.
9211 * util/grub.d/10_netbsd.in: Likewise.
9212 * util/grub.d/10_windows.in: Likewise.
9213 * util/grub.d/20_linux_xen.in: Likewise.
9214
9215 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Remove redundant grub_kernel_image_size.
9218
9219 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9220 _edata and _start.
9221 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9222 the small code. It moves it only by few bytes but simplifies the code.
9223 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9224 _start.
9225 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9226 (grub_kernel_image_size): Removed.
9227 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9228 (grub_kernel_image_size): Removed.
9229 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9230 compiled with Apple toolchain.
9231 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9232 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9233 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9234 (grub_total_module_size): Likewise.
9235 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9236 Removed.
9237 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9238 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9239 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9240 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9241 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9242 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9243 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9244 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9245 Removed.
9246 (grub_total_module_size): Removed.
9247 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9248 (image_targets): Likewise.
9249 Set .compressed_size to no field on sparc.
9250 (generate_image): Remove kernel_image_size handling.
9251
9252 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9253
9254 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9255 NULL pointer dereference.
9256
9257 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9260 done with a dedicated section.
9261
9262 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9263 Ensure the correct position of boot_path.
9264 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9265 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9266 other fields.
9267 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9268 * include/grub/boot.h: Removed. All references removed.
9269 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9270 Removed.
9271 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9272
9273 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9276 name.
9277
9278 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9281
9282 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9283
9284 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9285 Don't add the bogus brackets.
9286
9287 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 ExFAT support.
9290
9291 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9292 * grub-core/Makefile.core.def (exfat): New module.
9293 * grub-core/fs/exfat.c: New file.
9294 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9295 (GRUB_FAT_ATTR_*): Make into an enum.
9296 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9297 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9298 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9299 (GRUB_FAT_MAXFILE): Removed.
9300 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9301 (grub_current_fat_bpb_t): New type.
9302 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9303 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9304 (grub_fat_dir_node_t): New type.
9305 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9306 (fat_log2) [MODE_EXFAT]: Removed.
9307 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9308 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9309 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9310 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9311 (grub_fat_label) [MODE_EXFAT]: New function.
9312 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9313 reserved_first_sector to 0.
9314
9315 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 Move grub_reboot out of the kernel.
9318
9319 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9320 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9321 * grub-core/lib/efi/reboot.c: ... here.
9322 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9323 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9324 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9325 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9326 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9327 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9328 * grub-core/lib/ieee1275/reboot.c: ... here.
9329 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9330 * grub-core/lib/mips/arc/reboot.c: ... here.
9331 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9332 * grub-core/lib/mips/loongson/reboot.c: ...here.
9333 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9334 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9335 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9336 * include/grub/i386/reboot.h: New file.
9337 * include/grub/mips/loongson/ec.h: Fix includes.
9338 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9339 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9340 * grub-core/lib/i386/reboot.c: New file.
9341
9342 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 Make grub_prefix into module to fix the arbitrary limit and save
9345 some space.
9346
9347 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9348 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9349 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9350 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9351 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9352 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9353 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9354 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9355 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9356 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9357 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9358 * include/grub/ia64/efi/kernel.h: Removed.
9359 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9360 (grub_prefix): Removed.
9361 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9362 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9363 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9364 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9365 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9366 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9367 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9368 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9369 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9370 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9371 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9372 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9373 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9374 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9375 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9376 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9377 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9378 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9379 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9380 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9381 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9382 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9383 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9384 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9385 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9386 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9387 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9388 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9389 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9390 from module.
9391 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9392 prefix_end.
9393 (image_targets): Likewise.
9394 (generate_image): Put prefix as a module.
9395
9396 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 Replace grub_module_iterate with FOR_MODULES.
9399
9400 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9401 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9402 (grub_efi_modules_addr): ...this.
9403 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9404 (grub_efi_init): Set grub_modbase.
9405 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9406 (grub_modbase): New variable.
9407 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9408 (grub_modbase): New variable.
9409 (grub_machine_init): Set grub_modbase.
9410 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9411 (grub_modbase): New variable.
9412 (grub_machine_init): Set grub_modbase.
9413 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9414 (grub_modbase): New variable.
9415 (grub_machine_init): Set grub_modbase.
9416 * grub-core/kern/main.c (grub_module_iterate): Remove.
9417 (grub_modules_get_end): Use grub_modbase.
9418 (grub_load_modules): Use FOR_MODULES.
9419 (grub_load_config): Likewise.
9420 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9421 (grub_modbase): New variable.
9422 (grub_machine_init): Set grub_modbase.
9423 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9424 (grub_modbase): New variable.
9425 (grub_machine_init): Set grub_modbase.
9426 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9427 Removed.
9428 (grub_modbase): New variable.
9429 (grub_machine_init): Set grub_modbase.
9430 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9431 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9432 (grub_module_iterate): Likewise.
9433 (grub_modbase): New variable declaration.
9434 (FOR_MODULES): New macro.
9435
9436 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9439 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9440
9441 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 Fix few obvious type discrepancies.
9444
9445 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9446 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9447 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9448 variable.
9449 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9450 and connected types.
9451 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9452 offset.
9453 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9454 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9455 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9456 and connected types.
9457
9458 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 Fix python 3.x incompatibilities.
9461
9462 * gentpl.py: Put brackets around print strings.
9463 * util/import_gcry.py: Open explicitly as utf-8.
9464 Use in instead of has_key.
9465
9466 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9469 (GRUB_XFS_INO_AGBITS): Make into inline function.
9470 (GRUB_XFS_INO_INOINAG): Likewise.
9471 (GRUB_XFS_INO_AG): Likewise.
9472 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9473 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9474 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9475 (GRUB_XFS_EXTENT_SIZE): Likewise.
9476 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9477 (GRUB_XFS_NEXT_DIRENT): Likewise.
9478 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9479 (grub_xfs_read_file): Fix offset type.
9480
9481 2011-10-15 Robert Millan <rmh@gnu.org>
9482
9483 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9484
9485 2011-10-15 Robert Millan <rmh@gnu.org>
9486
9487 Fix build problem on FreeBSD and GNU/kFreeBSD.
9488
9489 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9490
9491 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9494
9495 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9496 types.
9497 (grub_hfsplus_btree_recoffset): Likewise.
9498 (grub_hfsplus_btree_recptr): Likewise.
9499 (grub_hfsplus_find_block): Likewise.
9500 (grub_hfsplus_btree_search): Likewise.
9501 (grub_hfsplus_read_block): Likewise.
9502 (grub_hfsplus_read_file): Likewise.
9503 (grub_hfsplus_mount): Likewise.
9504 (grub_hfsplus_btree_iterate_node): Likewise.
9505 (grub_hfsplus_btree_search): Likewise.
9506 (grub_hfsplus_iterate_dir): Likewise.
9507 (grub_hfsplus_read): A small code simplification.
9508
9509 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/kern/emu/hostdisk.c
9512 (convert_system_partition_to_system_disk): Don't assume that children
9513 of mapper nodes are mapper nodes.
9514
9515 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9518 * include/grub/misc.h (grub_isxdigit): New function.
9519 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9520 switched to grub_isxdigit.
9521 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9522 number starting with a letter.
9523
9524 2011-10-09 Robert Millan <rmh@gnu.org>
9525
9526 LVM support for FreeBSD and GNU/kFreeBSD.
9527
9528 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9529 GNU/kFreeBSD.
9530 (LVM_DEV_MAPPER_STRING): Move from here ...
9531 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9532 * util/getroot.c: Include `<grub/util/lvm.h>'.
9533 (grub_util_get_dev_abstraction): Enable
9534 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9535 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9536 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9537 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9538 support it.
9539 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9540 GNU/kFreeBSD.
9541 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9542 when LVM abstraction is required for ${GRUB_DEVICE}.
9543
9544 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9545
9546 Add support for LZO compression in GRUB:
9547 - import of minilzo library,
9548 - LZO decompression for btrfs,
9549 - lzop files decompression.
9550
9551 * grub-core/io/lzopio.c: New file.
9552 * grub-core/lib/adler32.c: Likewise.
9553 * grub-core/lib/minilzo/lzoconf.h: Likewise.
9554 * grub-core/lib/minilzo/lzodefs.h: Likewise.
9555 * grub-core/lib/minilzo/minilzo.c: Likewise.
9556 * grub-core/lib/minilzo/minilzo.h: Likewise.
9557 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
9558 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
9559 grub-core/lib/minilzo/minilzo.c to common.
9560 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
9561 cflags in cppflags.
9562 * grub-core/Makefile.core.def (btrfs): Likewise.
9563 * grub-core/Makefile.core.def (lzopio): New module.
9564 (adler32): Likewise.
9565 * grub-core/fs/btrfs.c: Include minilzo.h.
9566 (GRUB_BTRFS_COMPRESSION_LZO): New define.
9567 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
9568 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
9569 (grub_btrfs_lzo_decompress): New function.
9570 (grub_btrfs_extent_read): Add support for LZO compression type.
9571 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
9572 (GRUB_USHRT_MAX): Likewise.
9573 (GRUB_UINT_MAX): Likewise.
9574 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
9575 (UINT_MAX): Likewise.
9576 (CHAR_BIT): Likewise.
9577 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
9578 grub-core/lib/posix_wrap/limits.h
9579 (UCHAR_MAX): Likewise.
9580 * include/grub/file.h (grub_file_filter_id): New compression filter
9581 GRUB_FILE_FILTER_LZOPIO.
9582 * include/grub/file.h (grub_file_filter_id): Set
9583 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
9584 * include/grub/types.h (grub_get_unaligned16): New function.
9585 (grub_get_unaligned32): Likewise.
9586 (grub_get_unaligned64): Likewise.
9587 * util/import_gcry.py (cryptolist): Add adler32.
9588
9589 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
9592 in perspective decreases the complexity of build system and fixes
9593 compilation right now.
9594
9595 2011-10-01 Ales Nesrsta <starous@volny.cz>
9596
9597 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
9598 (fixed problem related to using UHCI with coreboot).
9599
9600 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9601
9602 * gentpl.py: Use Autogen macros so that the output template file
9603 (Makefile.tpl) size is reduced.
9604
9605 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
9606
9607 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
9608 extra_dist.
9609
9610 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9611
9612 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
9613 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
9614
9615 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9616
9617 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
9618 _fullpath.
9619
9620 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9621
9622 Remove extra declaration of sleep for mingw32.
9623
9624 * util/misc.c (sleep) [__MINGW32__]: Removed.
9625 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
9626
9627 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
9628
9629 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
9630 type and packname.
9631 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
9632 Resurrected.
9633 (NETBSD_BTINFO_BOOTWEDGE): New definition.
9634 (grub_netbsd_btinfo_bootwedge): New struct.
9635 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9636 New function.
9637 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
9638
9639 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
9640
9641 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
9642 loader.
9643
9644 2011-09-28 Andreas Born <futur.andy@googlemail.com>
9645
9646 Fix incorrect identifiers in bash-completion.
9647
9648 * util/bash-completion.d/grub-completion.bash.in
9649 (_grub_mkpasswd-pbkdf2): Rename to ...
9650 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
9651 (_grub_script-check): Rename to ...
9652 (_grub_script_check): ... this. All users updated.
9653
9654 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9657 Return 0 if disk isn't biosdisk.
9658
9659 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9660
9661 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
9662 on NetBSD.
9663 * Makefile.util.def (grub-fstest): Likewise.
9664
9665 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9666
9667 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
9668 Get sector size from disk label.
9669
9670 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
9671
9672 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
9673 */README* as well as README*.
9674 Reported by: Axel Beckert.
9675
9676 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
9679 case of less than 256 MiB of RAM.
9680
9681 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * grub-core/commands/wildcard.c (make_regex): Handle @.
9684
9685 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * util/grub-install.in: Move cryptodisk logic to appropriate place.
9688
9689 2011-08-21 Szymon Janc <szymon@janc.net.pl>
9690
9691 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
9692 AC_LANG_CONFTEST macros.
9693
9694 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9695
9696 Add grub-fstest option to uncompress data for commands.
9697
9698 * util/grub-fstest.c (uncompress): New var.
9699 (options): New option -u.
9700
9701 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9702
9703 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
9704 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
9705
9706 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9707
9708 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
9709 file type was not recognized correctly (not gzip or corrupted).
9710
9711 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
9714 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
9715
9716 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
9719 loongson.
9720 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
9721 video_radeon_fuloong2e.
9722 * grub-core/video/radeon_fuloong2e.c: New file.
9723 * include/grub/video.h (grub_video_id_t): Add new ID
9724 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
9725
9726 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
9729 define.
9730 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
9731 that PRID matches the detected subplatform and reset the subplatform
9732 if it doesn't.
9733
9734 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
9737
9738 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 Fix PCI iterating on functions >= 4.
9741
9742 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
9743 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
9744 Removed.
9745 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
9746 (grub_pci_read): Fix bitmask.
9747 (grub_pci_read_word): Likewise.
9748 (grub_pci_read_byte): Likewise.
9749 (grub_pci_write): Likewise.
9750 (grub_pci_write_word): Likewise.
9751 (grub_pci_write_byte): Likewise.
9752
9753 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
9756 can still be specified in TARGET_CFLAGS)
9757
9758 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
9761
9762 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
9763 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
9764 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
9765 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
9766 (FULOONG): Rename to ...
9767 (FULOONG2F): ... this. All users updated.
9768 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
9769 (machtype_fuloong2f_str): ... this.
9770 (machtype_fuloong2e_str): New string.
9771 Check for machtype_fuloong2e_str.
9772 * grub-core/loader/mips/linux.c (loongson_machtypes)
9773 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
9774 * grub-core/term/serial.c (loongson_defserial)
9775 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
9776 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
9777 loongson_defserial.
9778 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
9779 Rename to ...
9780 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
9781 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
9782 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
9783 to IMAGE_FULOONG2F_FLASH. All users updated.
9784 (image_targets): Rename images.
9785 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
9786
9787 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9788
9789 Make enable of disk cache statistics code configurable.
9790
9791 * configure.ac: --enable-cache-stats added.
9792 * config.h.in (DISK_CACHE_STATS): New define.
9793 * grub-core/Makefile.core.def (cacheinfo): New command.
9794 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
9795 * grub-core/commands/cacheinfo.c: New file.
9796 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
9797 moved to cacheinfo.c.
9798 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
9799 debug code.
9800 * include/grub/disk.h: Likewise.
9801
9802 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9803
9804 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
9805 * grub-core/Makefile.am: Likewise.
9806
9807 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
9810 non-zero pull.
9811
9812 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
9815 All users updated.
9816 (grub_jfs_lookup_symlink): Use correct starting inode.
9817
9818 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * util/grub-setup.c (main): Add missing gcry initialisation.
9821
9822 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 Don't accept text modes on EFI when booting Linux.
9825
9826 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
9827 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
9828
9829 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
9830 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9831
9832 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
9833 use of "/path/.." as in grub-install for EFI as well as handling
9834 symlinks correctly.
9835 Fixes Debian bug #637768.
9836
9837 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9838
9839 * util/grub-probe.c: Remove duplicate #include.
9840
9841 2011-08-10 Robert Millan <rmh@gnu.org>
9842
9843 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
9844
9845 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
9846 function.
9847 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
9848 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
9849
9850 2011-08-03 Robert Millan <rmh@gnu.org>
9851
9852 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
9853 la_array as packed.
9854 Reported by: Zachary Bedell
9855
9856 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9857
9858 * configure.ac: The Loongson port requires grub-mkfont due to its
9859 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
9860 be built.
9861
9862 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9863
9864 * util/grub-install.in: Don't source grub-mkconfig_lib until after
9865 processing arguments (otherwise help2man fails when GRUB has not yet
9866 been installed).
9867
9868 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 New script grub-mkstandalone.
9871
9872 * Makefile.util.def (grub-mkstandalone): New script.
9873 * docs/man/grub-mkstandalone.h2m: New file.
9874 * util/grub-mkstandalone.in: Likewise.
9875
9876 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 Support ATA disks with 4K sectors.
9879
9880 * include/grub/ata.h (grub_ata): New member log_sector_size.
9881 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
9882 (grub_ata_identify): Read sector size.
9883 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
9884
9885 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * util/grub-install.in: Don't use uhci outside of x86.
9888
9889 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * util/grub-mkrescue.in: Add missing quotes.
9892
9893 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
9896 dereference.
9897
9898 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
9901
9902 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * include/grub/video.h: add missing EXPORT_FUND on
9905 grub_video_edid_checksum and grub_video_edid_preferred_mode.
9906
9907 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * include/grub/mips/kernel.h: Fix define conflict.
9910
9911 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
9914 all four ways.
9915
9916 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
9917
9918 Preferred resolution detection for VBE.
9919
9920 * grub-core/video/video.c (grub_video_edid_checksum): New function.
9921 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
9922 the Flat Panel extension, in line with the X.org VESA driver.
9923 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
9924 New function.
9925 (grub_vbe_bios_get_ddc_capabilities): Likewise.
9926 (grub_vbe_bios_read_edid): Likewise.
9927 (grub_vbe_get_preferred_mode): Likewise.
9928 (grub_video_vbe_setup): When the mode is "auto", try to get the
9929 preferred mode from VBE, and use the largest mode that is no larger
9930 than the preferred mode (some BIOSes expose a preferred mode that is
9931 not in their mode list!). If this fails, fall back to 640x480 as a
9932 safe conservative choice.
9933 (grub_video_vbe_get_edid): New function.
9934 (grub_video_vbe_adapter): Add get_edid.
9935 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
9936 (struct grub_video_adapter): Add get_edid.
9937 (grub_video_edid_checksum): Add prototype.
9938 (grub_video_edid_preferred_mode): Likewise.
9939 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
9940 structure.
9941
9942 * grub-core/commands/videoinfo.c (print_edid): New function.
9943 (grub_cmd_videoinfo): Print EDID if available.
9944
9945 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
9946 is more appropriate on a wider range of platforms than 640x480.
9947 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
9948 documentation.
9949
9950 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
9953
9954 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * po/POTFILES.in: Regenerate.
9957
9958 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
9961 incorrect memory usage.
9962
9963 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 * util/grub-install.in: Source grub-mkconfig_lib.
9966
9967 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 Remove getroot.c from core on emu platform.
9970
9971 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
9972 kern/emu/raid.c.
9973 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
9974 useless.
9975 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
9976 * util/getroot.c (get_win32_path): ... here.
9977 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
9978 * util/getroot.c (fini_libzfs): ... here.
9979 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
9980 * util/getroot.c (grub_get_libzfs_handle): ... here.
9981 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
9982 Moved from here...
9983 * util/getroot.c (grub_find_zpool_from_dir): ... here.
9984 * grub-core/kern/emu/misc.c
9985 (grub_make_system_path_relative_to_its_root): Moved from here...
9986 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
9987 * grub-core/kern/emu/getroot.c: Moved from here ...
9988 * util/getroot.c: ... here. All users updated.
9989 * grub-core/kern/emu/raid.c: Moved from here ...
9990 * util/raid.c: ... here. All users updated.
9991
9992 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * po/POTFILES.in: Regenerate.
9995
9996 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 Fix compilation on GNU/Linux.
9999
10000 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10001 Disable geli.
10002 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10003 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10004 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10005
10006 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10007 2011-07-07 Michael Gorven <michael@gorven.za.net>
10008 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10009
10010 LUKS and GELI support.
10011
10012 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10013 grub-core/disk/luks.c, grub-core/disk/geli.c,
10014 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10015 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10016 grub-core/lib/arg.c.
10017 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10018 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10019 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10020 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10021 (grub-bin2h): Add libgcry.a.
10022 (grub-mkimage): Likewise.
10023 (grub-mkrelpath): Likewise.
10024 (grub-script-check): Likewise.
10025 (grub-editenv): Likewise.
10026 (grub-mkpasswd-pbkdf2): Likewise.
10027 (grub-pe2elf): Likewise.
10028 (grub-fstest): Likewise.
10029 (grub-mkfont): Likewise.
10030 (grub-mkdevicemap): Likewise.
10031 (grub-probe): Likewise.
10032 (grub-ofpath): Likewise.
10033 (grub-mklayout): Likewise.
10034 (example_unit_test): Likewise.
10035 (grub-menulst2cfg): Likewise.
10036 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10037 * grub-core/Makefile.core.def (cryptodisk): New module.
10038 (luks): Likewise.
10039 (geli): Likewise.
10040 * grub-core/disk/AFSplitter.c: New file.
10041 * grub-core/disk/cryptodisk.c: Likewise.
10042 * grub-core/disk/geli.c: Likewise.
10043 * grub-core/disk/luks.c: Likewise.
10044 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10045 grub_util_is_lvm.
10046 (grub_util_get_dm_abstraction): New function.
10047 (grub_util_follow_gpart_up): Likewise.
10048 (grub_util_get_geom_abstraction): Likewise.
10049 (grub_util_get_dev_abstraction): Use new functions.
10050 (grub_util_pull_device): Pull GELI and LUKS.
10051 (grub_util_get_grub_dev): Handle LUKS and GELI.
10052 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10053 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10054 (follow_geom_up): Removed.
10055 (grub_util_fd_seek): New function.
10056 (open_device): Use grub_util_fd_seek.
10057 (nread): Rename to ..
10058 (grub_util_fd_read): ... this. All users updated.
10059 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10060 (grub_crypto_cbc_decrypt): Likewise.
10061 (grub_crypto_hmac_write): Likewise.
10062 (grub_crypto_hmac_buffer): Likewise.
10063 (grub_password_get): Extend to util.
10064 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10065 New member modname.
10066 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10067 * include/grub/cryptodisk.h: New file.
10068 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10069 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10070 LUKS and GELI.
10071 (grub_util_follow_gpart_up): New proto.
10072 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10073 (grub_util_fd_read): Likewise.
10074 (grub_cryptodisk_cheat_mount): Likewise.
10075 (grub_util_cryptodisk_print_uuid): Likewise.
10076 (grub_util_get_fd_sectors): Likewise.
10077 * util/grub-fstest.c (mount_crypt): New var.
10078 (fstest): Mount crypto if requested.
10079 (options): New option -C.
10080 (argp_parser): Parse -C.
10081 (main): Init and fini gcry.
10082 * util/grub-install.in: Support cryptodisk install.
10083 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10084 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10085 cryptodisk.
10086 (prepare_grub_to_access_device): Likewise.
10087 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10088 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10089 (probe_cryptodisk_uuid): New function.
10090 (probe_abstraction): Likewise.
10091 (probe): Use new functions.
10092 * util/import_gcry.py: Create Makefile.utilgcry.def.
10093 Add modname member.
10094
10095 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 Lazy device scanning.
10098
10099 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10100 (grub-setup): Remove util/raid.c.
10101 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10102 * grub-core/disk/lvm.c (scan_depth): New variable.
10103 (grub_lvm_iterate): Rescan if necessary.
10104 (find_lv): New function based on grub_lvm_open.
10105 (grub_lvm_open): Use find_lv. Rescan on error.
10106 (is_node_readable): New function.
10107 (is_lv_readable): Likewise.
10108 (grub_lvm_scan_device): Skip already found disks.
10109 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10110 Stop if searched device is found and readable.
10111 * grub-core/disk/raid.c (inscnt): New variable.
10112 (scan_depth): Likewise.
10113 (scan_devices): New function based on grub_raid_register. Abort if
10114 looked for device is found.
10115 (grub_raid_iterate): Rescan if needed.
10116 (find_array): NEw function based on -grub_raid_open.
10117 (grub_raid_open): Use find_array and rescan.
10118 (insert_array): Set became_readable_at.
10119 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10120 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10121 New function.
10122 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10123 (grub_util_pull_device): New function.
10124 (grub_util_get_grub_dev): Call grub_util_pull_device.
10125 * util/raid.c: Moved to ..
10126 * grub-core/kern/emu/raid.c: ... here.
10127 (grub_util_raid_getmembers): New parameter "bootable".
10128 All users updated. Support 1.x.
10129 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10130 All users updated.
10131 * include/grub/disk.h (grub_disk_pull_t): New enum.
10132 (grub_disk_dev): Change iterate prototype.
10133 All users updated.
10134 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10135 New proto.
10136 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10137 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10138 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10139 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10140 All users updated.
10141 * include/grub/util/raid.h: Removed.
10142
10143 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 * po/POTFILES.in: Regenerate.
10146
10147 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 Unify sparc init with other ieee1275.
10150
10151 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10152 instead of kern/sparc64/ieee1275/init.c.
10153 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10154 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10155 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10156 grub/machine/kernel.h.
10157 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10158 (grub_claim_heap) [__sparc__]: Use sparc version.
10159 (grub_machine_init): Moved args parsing to
10160 (grub_parse_cmdline): ...this.
10161 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10162 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10163 New definition.
10164 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10165
10166 Move BOOTP to separate file.
10167
10168 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10169 * grub-core/net/net.c: Move all BOOTP functions to
10170 * grub-core/net/bootp.c: ... here.
10171
10172 Use frame interface on PXE.
10173
10174 * grub-core/Makefile.core.def (pxecmd): Removed.
10175 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10176 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10177 * grub-core/i386/pc/pxe.c: Moved from here ...
10178 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10179 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10180 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10181
10182 EFI network support.
10183
10184 * grub-core/Makefile.core.def (efinet): New module.
10185 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10186 here...
10187 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10188 All users updated.
10189 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10190 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10191 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10192 * grub-core/net/drivers/efi/efinet.c: New file.
10193 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10194 (grub_efi_net_config): New extern var.
10195
10196 Various cleanups and bugfixes.
10197
10198 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10199 error.
10200 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10201 disk declared as partition.
10202 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10203 leak on failure.
10204 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10205 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10206 (grub_debug_zalloc): Likewise.
10207 (grub_debug_realloc): Likewise.
10208 (grub_debug_memalign): Likewise.
10209 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10210 Check that target is IPv4.
10211 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10212 local-mac-address as fallback.
10213 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10214 memory leak.
10215 * grub-core/net/ip.c (ipchksum): Rename to ...
10216 (grub_net_ip_chksum): ... this. All users updated.
10217 (grub_net_recv_ip_packets): Special handling for DHCP.
10218 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10219
10220 Unify prefix handling
10221
10222 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10223 (grub_machine_get_bootlocation): ... this.
10224 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10225 (grub_machine_get_bootlocation): ... this.
10226 (grub_prefix): New variable.
10227 (prefix): Removed.
10228 (root_dev): New variable.
10229 (dir): Likewise.
10230 (main): Use new variables.
10231 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10232 Revamped into ...
10233 (grub_machine_get_bootlocation): ... this.
10234 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10235 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10236 (grub_machine_get_bootlocation): ... this.
10237 (grub_machine_set_prefix): Removed.
10238 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10239 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10240 Revamped into ...
10241 (grub_machine_get_bootlocation): ... this.
10242 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10243 (grub_set_prefix_and_root): ... this. All users updated.
10244 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10245 Revamped into ...
10246 (grub_machine_get_bootlocation): ... this.
10247 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10248 (grub_machine_get_bootlocation): New proto.
10249 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10250
10251 Less intrusive and more reliable seek on network implementation.
10252
10253 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10254 (grub_file_seek): Don't call grub_file_net_seek.
10255 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10256 (grub_net_fs_read_real): .. this.
10257 (grub_net_seek_real): Use net->offset.
10258 (grub_net_fs_read): Seek if necessary.
10259
10260 Unify IEEE1275 netwotk config with the other platforms.
10261
10262 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10263 New variable.
10264 (grub_machine_get_bootlocation): Support network.
10265 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10266 Support type and device parsing.
10267 (grub_ieee1275_get_device_type): New function.
10268 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10269 into ...
10270 (grub_ieee1275_net_config_real): ... this.
10271 (grub_ofnet_probecards): Removed.
10272 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10273 * include/grub/ieee1275/ofnet.h: Removed.
10274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10275 extern var.
10276 (grub_ieee1275_get_device_type): New function.
10277
10278 Unify network device closing across platforms and make more robust.
10279
10280 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10281 grub_grubnet_fini.
10282 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10283 already.
10284 * grub-core/net/net.c (grub_net_network_level_interface_register):
10285 Update num_ifaces.
10286 (grub_net_card_unregister): Close all interfaces.
10287 (receive_packets): Don't poll if no iterfaces are registered.
10288 Open if necessary.
10289 (grub_net_fini_hw): New function.
10290 (grub_net_restore_hw): Likewise.
10291 (fini_hnd): New variable.
10292 (GRUB_MOD_INIT): Register preboot hook.
10293 (GRUB_MOD_FINI): Run and unregister preboot hook.
10294
10295 Poll network cards when idle.
10296
10297 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10298 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10299 * grub-core/net/net.c (receive_packets): Save last poll time.
10300 (grub_net_poll_cards_idle_real): New function.
10301 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10302 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10303 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10304
10305 Rename ofnet interfaces.
10306
10307 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10308 (grub_ofnet_findcards): Use ofnet_%s names.
10309
10310 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10311
10312 Cleanup socket opening.
10313
10314 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10315 (grub_net_fs_close): Likewise.
10316 (grub_net_fs_read_real): Use eof member.
10317 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10318 (+grub_net_udp_close): New inline function.
10319
10320 * include/grub/net/tftp.h: Moved to the top of ...
10321 * grub-core/net/tftp.c: ... here.
10322 * include/grub/net/ip.h: Moved mostly to the top of ...
10323 * grub-core/net/ip.c: ... here.
10324 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10325 * grub-core/net/ethernet.c: ... here.
10326
10327 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10328
10329 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10330 FS name.
10331
10332 * include/grub/net/ip.h (ipv4_ini): Removed.
10333 (ipv4_fini): Likewise.
10334
10335 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10336 (grub_net_send_ip_packets): Likewise.
10337
10338 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10339
10340 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10341 grub_read_cmos prototype.
10342
10343 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 VGA text support in qemu-mips
10346
10347 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10348 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10349 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10350 text.
10351 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10352 * grub-core/kern/vga_init.c: ... this.
10353 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10354 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10355 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10356 Adjust.
10357 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10358 GRUB_MACHINE_PCI_IO_BASE.
10359
10360 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 MIPS qemu flash support.
10363
10364 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10365 magic.
10366 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10367 (grub_machine_init): Probe memory if its size isn't known.
10368 * util/grub-mkimage.c (image_targets): Add flash targets.
10369 (generate_image): Handle flash targets.
10370
10371 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 MIPS qemu at_keyboard support.
10374
10375 * gentpl.py (videoinkernel): Add qemu-mips.
10376 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10377 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10378 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10379 modules.
10380 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10381 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10382 * grub-core/term/serial.c (grub_serial_register)
10383 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10384
10385 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 CMOS support on sparc.
10388
10389 * gentpl.py (cmos): Add powerpc and sparc.
10390 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10391 powerpc and sparc.
10392 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10393 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10394 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10395 grub_set_datetime_cmos.
10396 * grub-core/lib/ieee1275/cmos.c: New file.
10397 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10398 (find_rtc): Set no_ieee1275_rtc on error.
10399 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10400 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10401 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10402 fail. Move value to argument. All users updated
10403 (grub_cmos_write): Likewise.
10404 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10405 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10406 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10407 grub_get_datetime_cmos and grub_set_datetime_cmos.
10408
10409 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10410
10411 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10412 sourcing grub-mkconfig_lib.
10413 * util/update-grub_lib.in: Likewise.
10414 * util/grub.d/00_header.in: Likewise.
10415 * util/grub.d/10_hurd.in: Likewise.
10416 * util/grub.d/10_kfreebsd.in: Likewise.
10417 * util/grub.d/10_linux.in: Likewise.
10418 * util/grub.d/10_netbsd.in: Likewise.
10419 * util/grub.d/10_windows.in: Likewise.
10420 * util/grub.d/20_linux_xen.in: Likewise.
10421 * util/grub.d/30_os-prober.in: Likewise.
10422
10423 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10424
10425 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10426 default_bg_color rather than black.
10427 (grub_gfxterm_fullscreen): Likewise.
10428 (grub_gfxterm_background_color_cmd): Save new background color in
10429 default_bg_color.
10430
10431 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10434
10435 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10438 mismerge.
10439
10440 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 Chainloading on coreboot support.
10443
10444 * grub-core/Makefile.core.def (chain): Add coreboot.
10445 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10446
10447 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10450 if it happens.
10451
10452 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 Implement time command.
10455
10456 * grub-core/Makefile.core.def (time): New module.
10457 * grub-core/commands/time.c: New file.
10458 * grub-core/script/parser.y: Remove "time" keyword.
10459 * grub-core/script/yylex.l: Likewise.
10460
10461 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10464
10465 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10468 when handling leftovers.
10469
10470 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10473 so that help2man doesn't fail.
10474
10475 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10478 type in pointers on sparc64.
10479 (get_card_packet): Likewise.
10480
10481 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10482
10483 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10484 with `*'.
10485 (grub_cmd_videoinfo): Fetch current video mode.
10486
10487 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10490 because of underlying system restrictions.
10491
10492 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10495 necessary.
10496
10497 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 Coreboot video support.
10500
10501 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10502 (vbe): Likewise.
10503 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10504 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10505 here ...
10506 * grub-core/kern/i386/int.S: ... here.
10507 * grub-core/video/i386/pc/vbe.c: Updated includes.
10508 * grub-core/video/i386/pc/vga.c: Likewise.
10509 * include/grub/i386/coreboot/memory.h
10510 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10511 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10512 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10513 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10514 Disable interrupts.
10515 * include/grub/i386/pc/vga.h: Removed. All users updated.
10516
10517 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10520 definitions for dprintf.
10521 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10522
10523 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10526 prototype.
10527 (get_card_packet): Likewise.
10528
10529 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10530
10531 Display the path of the file when file is not found
10532
10533 * grub-core/fs/fat.c: Display the filename when file is not found.
10534 * grub-core/fs/fshelp.c: Likewise.
10535 * grub-core/fs/hfs.c: Likewise.
10536 * grub-core/fs/jfs.c: Likewise.
10537 * grub-core/fs/minix.c: Likewise.
10538 * grub-core/fs/ufs.c: Likewise.
10539 * grub-core/fs/btrfs.c: Likewise.
10540 * grub-core/commands/i386/pc/play.c: Likewise.
10541
10542 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10543
10544 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10545 pointer checks before calling grub_free().
10546 * grub-core/commands/wildcard.c (match_devices): Likewise.
10547 * grub-core/commands/wildcard.c (match_files): Likewise.
10548 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10549 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
10550 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
10551 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
10552 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
10553 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
10554 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
10555 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10556 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
10557
10558 2011-06-25 Patrick <p55@mailinator.com>
10559
10560 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
10561
10562 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
10565 (grub_pxe_send): Likewise.
10566 (GRUB_MOD_INIT): Fix types.
10567
10568 2011-06-24 Szymon Janc <szymon@janc.net.pl>
10569
10570 * grub-core/io/xzio.c: Fix code style issues
10571
10572 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10573 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
10574
10575 Network infrastructure.
10576 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
10577
10578 * include/grub/net/arp.h: New file.
10579 * include/grub/net/device.h: Likewise.
10580 * include/grub/net/ethernet.h: Likewise.
10581 * include/grub/net/ip.h: Likewise.
10582 * include/grub/net/netbuff.h: Likewise.
10583 * include/grub/net/tftp.h: Likewise.
10584 * include/grub/net/udp.h: Likewise.
10585 * include/grub/ieee1275/ofnet.h: Likewise.
10586 * include/grub/emu/export.h: Likewise.
10587 * include/grub/net.h: Likewise.
10588 * grub-core/net/arp.c: Likewise.
10589 * grub-core/net/ethernet.c: Likewise.
10590 * grub-core/net/ip.c: Likewise.
10591 * grub-core/net/udp.c: Likewise.
10592 * grub-core/net/tftp.c: Likewise.
10593 * grub-core/net/netbuff.c: Likewise.
10594 * grub-core/net/net.c: Likewise.
10595 * grub-core/net/drivers/emu/emunet.c: Likewise.
10596 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
10597 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
10598 export.h.
10599 * grub-core/Makefile.core.def (net): New module.
10600 (tftp): Likewise.
10601 (ofnet): Likewise.
10602 (emunet): Likewise.
10603 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
10604 network protocols.
10605 * grub-core/kern/device.c (grub_net_open) : New variable.
10606 (grub_device_open): Handle network device.
10607 (grub_device_close): Likewise.
10608 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
10609 (grub_grubnet_fini): Likewise.
10610 (grub_file_seek): Seek in network device.
10611 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
10612 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
10613 network root.
10614 (grub_machine_fini): Call grub_grubnet_fini.
10615 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
10616 network.
10617 (grub_ieee1275_get_aliasdevname): New function.
10618 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10619 Add unofficial Solaris network info.
10620 (grub_multiboot_make_mbi): Likewise.
10621 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
10622 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
10623 * include/grub/device.h (grub_fs): Removed.
10624 * include/grub/err.h (grub_err_t): Add network-related values.
10625 * include/grub/i386/pc/pxe.h: Removed bootp parts.
10626 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
10627 (grub_ieee1275_get_aliasdevname): New proto.
10628 * include/grub/net.h: Rewritten.
10629
10630 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
10633 names.
10634
10635 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
10638 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
10639 it truncates the output.
10640 Reported by: Ximin Luo.
10641
10642 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
10645
10646 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10647
10648 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
10649 partmap before abstraction.
10650
10651 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
10652
10653 * util/grub-mkconfig_lib.in: Add missing quotes.
10654
10655 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
10658 old method if mountinfo would return /dev/root and /dev/root doesn't
10659 exist.
10660
10661 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 ZFS zlib support
10664
10665 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
10666 (decomp_table): Add zlib entries.
10667 (zio_read): USe 8 bits for compression function rather than 3.
10668 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
10669
10670 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * grub-core/disk/ahci.c: Add missing license statements.
10673 * grub-core/fs/romfs.c: Likewise.
10674 * grub-core/lib/ia64/setjmp.S: Likewise.
10675 * grub-core/loader/i386/pc/freedos.c: Likewise.
10676 * grub-core/loader/ia64/efi/linux.c: Likewise.
10677 * grub-core/video/colors.c: Likewise.
10678 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
10679
10680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10681
10682 AHCI support.
10683
10684 * grub-core/Makefile.core.def (ata_pthru): Removed.
10685 (ahci): New module.
10686 (pata): Likewise.
10687 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
10688 on unload.
10689 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
10690 readwrite.
10691 (grub_hdparm_do_check_powermode_cmd): Likewise.
10692 (grub_hdparm_do_smart_cmd): Likewise.
10693 (grub_hdparm_set_val_cmd): Likewise.
10694 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
10695 * grub-core/disk/ahci.c: New file.
10696 * grub-core/disk/ata.c: Factor out the low-level part into ...
10697 * grub-core/disk/pata.c: ... here.
10698 * grub-core/disk/ata_pthru.c: Contents moved to ...
10699 * grub-core/disk/pata.c: ... here.
10700 * grub-core/disk/scsi.c (grub_scsi_names): New array.
10701 (grub_scsi_iterate): Use grub_scsi_names.
10702 (grub_scsi_open): Likewise.
10703 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
10704 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
10705 (grub_ata_regs_t): New struct.
10706 (grub_disk_ata_pass_through_parms): Likewise.
10707 (grub_ata_device): Renamed to ...
10708 (grub_ata): ... this.
10709 (grub_ata_dev): New struct.
10710 Removed all low-level inline functions.
10711 * include/grub/scsi.h: Add PATA and AHCI subsystems.
10712 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
10713 iterate hooks and open. All users updated.
10714 * util/grub-install.in: Handle AHCI disk module.
10715
10716 2011-06-23 Szymon Janc <szymon@janc.net.pl>
10717
10718 Add support for DRI and RSTn markers in JPEG files.
10719
10720 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
10721 (JPEG_MARKER_RST0): Likewise.
10722 (JPEG_MARKER_RST1): Likewise.
10723 (JPEG_MARKER_RST2): Likewise.
10724 (JPEG_MARKER_RST3): Likewise.
10725 (JPEG_MARKER_RST4): Likewise.
10726 (JPEG_MARKER_RST5): Likewise.
10727 (JPEG_MARKER_RST6): Likewise.
10728 (JPEG_MARKER_RST7): Likewise.
10729 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
10730 (grub_jpeg_decode_dri): New function.
10731 (grub_jpeg_decode_sos): Move image data related part into
10732 grub_jpeg_decode_data function.
10733 (grub_jpeg_decode_data): New function.
10734 (grub_jpeg_reset): New function.
10735 (grub_jpeg_decode_jpeg): Handle new markers.
10736
10737 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * util/ieee1275/ofpath.c (check_sas): Close fd.
10740 (main): Free of_path.
10741 Reported by: David Volgyes <dvolgyes>.
10742
10743 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10744
10745 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
10746 Reported by: David Volgyes <dvolgyes>.
10747
10748 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
10751 file after stat.
10752 Reported by: David Volgyes <dvolgyes>.
10753
10754 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
10757
10758 Reported by: David Volgyes <dvolgyes>.
10759
10760 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
10763 Prevent memory leak.
10764
10765 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10766
10767 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
10768 (main): Close file.
10769 Reported by: David Volgyes <dvolgyes>.
10770
10771 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
10774 to continue if allocation is failed.
10775
10776 Reported by: David Volgyes <dvolgyes>.
10777
10778 2011-06-23 David Volgyes <dvolgyes>
10779
10780 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
10781 dereference.
10782
10783 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 Fix spurious warning.
10786
10787 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
10788 (acorn_partition_map_find): Use .bin member.
10789
10790 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
10793 /dev/root as a valid device.
10794
10795 2011-06-23 Jim Meyering <meyering@redhat.com>
10796
10797 Avoid NULL deref in grub_device_open.
10798
10799 * grub-core/kern/device.c (grub_device_open): Don't dereference
10800 a NULL pointer upon failed grub_env_get.
10801
10802 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 Support non-512B sectors and agglomerate reads.
10805
10806 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
10807 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
10808 (disk_io_guid): Removed.
10809 (make_devices): Locate solely by BlockIO.
10810 (grub_efidisk_open): Fill log_sector_size and total_sectors.
10811 (grub_efidisk_read): Use read_blocks.
10812 (grub_efidisk_write): Use write_blocks.
10813 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
10814 log_sector_size.
10815 (get_safe_sectors): Handle non-512B sectors.
10816 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
10817 sectors.
10818 (grub_biosdisk_write): Handle non-512B sectors.
10819 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
10820 (grub_scsi_read): Remove special non-512B block handling (now handled
10821 one level up).
10822 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
10823 and do sanity checks.
10824 (grub_disk_adjust_range): Handle non-512B sectors.
10825 (transform_sector): New function.
10826 (grub_disk_read_small): Likewise.
10827 (grub_disk_read): Rewritten.
10828 (grub_disk_write): Handle non-512B sectors.
10829 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
10830 log_sector_size.
10831 (open_device): Use log_sector_size.
10832 (grub_util_biosdisk_read): Likewise.
10833 (grub_util_biosdisk_write): Likewise.
10834 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
10835 non-512B sectors.
10836 (pc_partition_map_embed): Likewise.
10837 * include/grub/disk.h (grub_disk): New field log_sector_size.
10838 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
10839 (GRUB_DISK_CACHE_BITS): Increased to 6.
10840 * util/grub-fstest.c (fstest): New command testload.
10841 (argp_parser): Likewise.
10842
10843 2011-06-16 Robert Millan <rmh@gnu.org>
10844
10845 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
10846 `ata' driver on kernel of FreeBSD 9.
10847
10848 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
10849 (get_ataraid_disk_name): New functions.
10850 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
10851 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
10852 get_ataraid_disk_name() and get_ada_disk_name().
10853
10854 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
10855
10856 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
10857 input format.
10858
10859 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
10860
10861 * docs/grub.texi (Obtaining and Building GRUB): Substitute
10862 `ftp.gnu.org' for `alpha.gnu.org'.
10863
10864 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10865
10866 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
10867 partitions under /dev/disk/by-id/.
10868
10869 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10870
10871 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
10872 after ten consecutive open failures. Scanning all the way up to
10873 10000 is excessive and can cause serious performance problems in
10874 some configurations.
10875 Fixes Ubuntu bug #787461.
10876
10877 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
10880 opening new one.
10881
10882 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
10883 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 Don't stat devices unless we have to.
10886
10887 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
10888 dir == /dev/mapper.
10889 (grub_guess_root_device): Use already known os_dev if possible.
10890 * grub-core/kern/emu/hostdisk.c
10891 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
10892 if device is known to be a dm one.
10893
10894 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
10895
10896 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
10897 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
10898 Reported by: Pawel Tecza.
10899
10900 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
10903 (lsefisystab): Likewise.
10904 (lssal): Likewise.
10905 (lsefimmap): Likewise.
10906 (hdparm): Enable on qemu-mips.
10907 (setjmp): Add ia64 nodist.
10908 (serial): Simplify tags.
10909
10910 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10911
10912 * Makefile.util.def (grub-ofpathname): Install manual page.
10913
10914 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10915
10916 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
10917
10918 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10919
10920 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
10921
10922 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
10925 into dprintf.
10926
10927 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 Use full 64-bit division.
10930
10931 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
10932 (grub_divmod64): ... this.
10933 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
10934 version.
10935
10936 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10937
10938 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
10939 `source'.
10940
10941 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10942
10943 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
10944 to avoid accidents when debugging with 'sh -x'.
10945 * grub-core/gensyminfo.sh.in: Likewise.
10946 * tests/example_scripted_test.in: Likewise.
10947 * tests/grub_cmd_regexp.in: Likewise.
10948 * tests/grub_script_blanklines.in: Likewise.
10949 * tests/grub_script_dollar.in: Likewise.
10950 * tests/grub_script_expansion.in: Likewise.
10951 * tests/grub_script_final_semicolon.in: Likewise.
10952 * tests/partmap_test.in: Likewise.
10953 * tests/util/grub-shell-tester.in: Likewise.
10954 * tests/util/grub-shell.in: Likewise.
10955
10956 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10957
10958 Move gfxmenu color handling to video, so that gfxterm can use it
10959 too.
10960
10961 * grub-core/gfxmenu/named_colors.c: Move to ...
10962 * grub-core/video/colors.c: ... here. Rename
10963 grub_gui_get_named_color to grub_video_get_named_color.
10964 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
10965 * grub-core/video/colors.c (my_isxdigit): ... here.
10966 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
10967 Move to ...
10968 * grub-core/video/colors.c (parse_hex_color_component): ... here.
10969 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
10970 to ...
10971 * grub-core/video/colors.c (grub_video_parse_color): ... here.
10972
10973 * include/grub/gui.h (grub_gui_color_t): Move to ...
10974 * include/grub/video.h (grub_video_rgba_color_t): ... here.
10975 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
10976 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
10977 * include/grub/gui.h (grub_gui_map_color): Move to ...
10978 * include/grub/video.h (grub_video_map_rgba_color): ... here.
10979 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
10980 to ...
10981 * include/grub/video.h (grub_video_get_named_color): ... here.
10982 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
10983 * include/grub/video.h (grub_video_parse_color): ... here.
10984
10985 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
10986 video/colors.c.
10987 (gfxmenu): Remove gfxmenu/named_colors.c.
10988 (video) [videomodules]: Add video/colors.c.
10989
10990 Add a background_color command.
10991
10992 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
10993 function.
10994 (GRUB_MOD_INIT): Register background_color command.
10995 (GRUB_MOD_FINI): Unregister background_color command.
10996 (redraw_screen_rect): Allow blend/replace of text layer to be
10997 controlled independently from whether there is a background bitmap.
10998 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
10999 changing bitmap.
11000
11001 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11002
11003 Patch BPB in ntldr and chainloader --bpb.
11004
11005 * grub-core/fs/fat.c: Include grub/fat.h.
11006 (grub_fat_bpb): Moved to ...
11007 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11008 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11009 grub/ntfs.h.
11010 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11011 Moved from here...
11012 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11013 here.
11014 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11015 New function.
11016 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11017 (GRUB_MOD_INIT): Show --bpb.
11018 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11019 * grub-core/normal/main.c (features): New variable.
11020 (GRUB_MOD_INIT): Set feature_* variables.
11021 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11022 proto.
11023 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11024
11025 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11028 for cleanness.
11029
11030 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 FreeDOS direct loading support.
11033
11034 * docs/grub.texi (Supported OS): Add FreeDOS.
11035 * grub-core/Makefile.core.def (freedos): New module.
11036 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11037 variable.
11038 (grub_relocator16_boot): Handle %ebx.
11039 * grub-core/lib/i386/relocator16.S: Likewise.
11040 * grub-core/loader/i386/pc/freedos.c: New file.
11041
11042 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 Long Linux command line support.
11045
11046 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11047 (maximal_cmdline_size): New variable.
11048 (allocate_pages): Use maximal_cmdline_size.
11049 (grub_cmd_linux): Set and use maximal_cmdline_size.
11050 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11051 (allocate_pages): Use maximal_cmdline_size.
11052 (grub_cmd_linux): Set and use maximal_cmdline_size.
11053 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11054 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11055 and cmdline_size.
11056
11057 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11058 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11059
11060 Improve devmapper support
11061
11062 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11063 (grub_util_is_lvm): New function.
11064 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11065 than lvm if not dmraid.
11066 Handle mapped md nodes.
11067 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11068 (grub_util_device_is_mapped): ... this. Make always available. All users
11069 updated.
11070 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11071 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11072 dmraid nodes.
11073 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11074
11075 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11078
11079 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11080 * grub-core/modinfo.sh.in: New file.
11081 * grub-core/Makefile.core.def (modinfo.sh): New script.
11082 * util/grub-mknetdir.in: Use modinfo.sh.
11083 * util/grub-mkrescue.in: Likewise.
11084
11085 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11088 Fix potential usage of Elf32 instead of Elf64 when compiling on
11089 32-bit architecture. Add endianness macros while on it.
11090
11091 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11092
11093 Use mipsel- rather than mips- in directories involving mipsel ports to
11094 allow both endiannesses coexist.
11095
11096 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11097 mips. All conditions adjusted.
11098 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11099 variable.
11100 * util/grub-install.in: Adjust conditions to take renaming into account.
11101 * util/grub-mkimage.c (image_targets): Likewise. New target
11102 mips-qemu_mips-elf for bigendian mips.
11103
11104 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 Avoid unnecessary copying on MIPS.
11107
11108 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11109 early if src == dest.
11110 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11111 compression is none.
11112
11113 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Reduce memory footprint on SGI by putting modules before the kernel
11116 as opposed to after.
11117
11118 * grub-core/Makefile.core.def (kernel): Increase linking address.
11119 (none_decompress): Likewise.
11120 (xz_decompress): Likewise.
11121 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11122 address.
11123 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11124 layout change.
11125 (grub_arch_modules_addr): New function.
11126 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11127 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11128 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11129 here.
11130 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11131 (grub_total_modules_size): ... this. Make global.
11132 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11133 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11134 New definition.
11135 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11136 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11137 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11138 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11139 * util/grub-mkimage.c (image_target_desc): New flag
11140 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11141 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11142 (generate_image): Handle images with modules before kernel.
11143
11144 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 Prevent potential loss of memory map by overwrite on qemu-mips.
11147
11148 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11149 Save ram size in $s4.
11150 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11151 All users changed to grub_arch_memsize.
11152 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11153 Loongson.
11154 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11155 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11156 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11157 external variable.
11158
11159 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11160
11161 * .bzrignore: Remove grub-dumpbios.
11162
11163 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11164
11165 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11166 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11167 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11168 existing options which append).
11169 * docs/grub.texi (Simple configuration): Document new options.
11170 Reported by: Ian Jackson. Fixes Debian bug #617538.
11171
11172 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11173
11174 * util/grub-fstest.c (cmd_cat): New function.
11175 (fstest): Handle CMD_CAT.
11176 (options): Add cat.
11177 (argp_parser): Handle cat.
11178
11179 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11180
11181 * Makefile.util.def (grub-bin2h): Don't install.
11182 * docs/man/grub-bin2h.h2m: Remove.
11183
11184 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11187 place.
11188
11189 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 Reenable qemu-mips port.
11192
11193 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11194 Fix small arc bug while on it.
11195 * gentpl.py: Handle qemu_mips.
11196 * grub-core/Makefile.am: Likewise.
11197 * grub-core/Makefile.core.def: Likewise.
11198 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11199 inappropriate includes.
11200 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11201 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11202 * grub-core/kern/main.c (grub_modules_get_end)
11203 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11204 * grub-core/kern/mips/qemu-mips: Moved to ..
11205 * grub-core/kern/mips/qemu_mips: ... this.
11206 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11207 (grub_machine_init): Call terminfo_init and serial_init.
11208 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11209 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11210 New variable.
11211 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11212 parameter passing.
11213 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11214 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11215 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11216 * include/grub/mips/qemu_mips/cmos.h: New file.
11217 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11218 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11219 Removed.
11220 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11221 Use correct mips-style address.
11222 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11223 (GRUB_TICKS_PER_SECOND): Removed.
11224 (grub_get_rtc): Likewise.
11225 (grub_cpu_idle): Likewise.
11226 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11227 New definition.
11228 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11229 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11230 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11231 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11232 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11233 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11234 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11235 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11236
11237 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 SGI ARCS port.
11240
11241 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11242 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11243 platforms.
11244 * configure.ac: New target mips-arc.
11245 * gentpl.py: Likewise.
11246 * grub-core/Makefile.am: Likewise.
11247 * grub-core/Makefile.core.def: Likewise.
11248 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11249 (none_decompress): Likewise.
11250 (lsdev): New module.
11251 (datetime): Use lib/arc/datetime.c on ARC.
11252 (part_dvh): New module.
11253 * grub-core/commands/arc/lsdev.c: New file.
11254 * grub-core/disk/arc/arcdisk.c: Likewise.
11255 * grub-core/kern/mips/arc/init.c: Likewise.
11256 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11257 aligned addresses.
11258 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11259 support.
11260 (grub_arch_dl_relocate_symbols): Likewise.
11261 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11262 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11263 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11264 platforms.
11265 * grub-core/lib/arc/datetime.c: New file.
11266 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11267 pci.h on non-loongson.
11268 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11269 (grub_linux_boot): Set unused registers to 0.
11270 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11271 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11272 * grub-core/mmap/mips/uppermem.c: ...here.
11273 * grub-core/partmap/dvh.c: New file.
11274 * grub-core/term/arc/console.c: Likewise.
11275 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11276 (grub_terminfo_set_current): Add terminal "arc".
11277 (grub_terminfo_readkey): Support ARC sequences.
11278 * include/grub/arc/arc.h: New file.
11279 * include/grub/arc/console.h: Likewise.
11280 * include/grub/disk.h (grub_disk_dev_id): Add
11281 GRUB_DISK_DEVICE_ARCDISK_ID.
11282 * include/grub/mips/arc/kernel.h: New file.
11283 * include/grub/mips/arc/memory.h: Likewise.
11284 * include/grub/mips/arc/time.h: Likewise.
11285 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11286 * include/grub/mips/kernel.h (grub_halt): ... here.
11287 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11288 here...
11289 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11290 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11291 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11292 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11293 proto.
11294 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11295 from here ...
11296 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11297 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11298 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11299 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11300 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11301 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11302 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11303 (grub_phys_addr_t): Moved from here ...
11304 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11305 (grub_vtop): Moved from here ...
11306 * include/grub/mips/memory.h (grub_vtop): ... here.
11307 (grub_map_memory): Moved from here ...
11308 * include/grub/mips/memory.h (grub_map_memory): ... here.
11309 (grub_unmap_memory): Moved from here ...
11310 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11311 (grub_machine_mmap_iterate): Moved from here ...
11312 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11313 (grub_mmap_get_lower): Moved from here ...
11314 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11315 (grub_mmap_get_upper): Moved from here ...
11316 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11317 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11318 here ...
11319 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11320 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11321 here ...
11322 * include/grub/mips/time.h (grub_get_rtc): ... here.
11323 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11324 here ...
11325 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11326 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11327 here ...
11328 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11329 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11330 definition.
11331 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11332 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11333 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11334 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11335 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11336 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11337 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11338 (GRUB_MACHINE_LINK_ADDR): Likewise.
11339 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11340 to 6.
11341 * util/grub-install.in: Run dvhtool on ARC.
11342 * util/grub-mkimage.c (image_targets): Add mips-arc.
11343 (generate_image): Handle ECOFF output for mips-arc.
11344
11345 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11348 blocks.
11349
11350 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11353 after enabling port.
11354
11355 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 Skip incorrect USB devices.
11358
11359 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11360 configcnt == 0.
11361 * include/grub/usb.h (grub_usb_err_t): New enum value
11362 GRUB_USB_ERR_BADDEVICE.
11363
11364 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 Fuloong video init support.
11367
11368 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11369 well.
11370 (grub_vga_read_arx): New function.
11371 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11372 definition.
11373 (framebuffer): New members io, mmioptr and mmiobase.
11374 (read_sis_cmd): New function.
11375 (write_sis_cmd): Likewise.
11376 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11377 rather than 640x400.
11378 * grub-core/video/sis315_init.c: New file.
11379
11380 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11383 non-loongson.
11384 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11385 to grub_dl_register_symbol.
11386
11387 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11388
11389 Fix compilation errors.
11390
11391 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11392 potentially unused.
11393 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11394 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11395 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11396 to loongson machines.
11397
11398 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11399
11400 Several FS mtime support.
11401
11402 * grub-core/fs/affs.c (grub_affs_time): New struct.
11403 (grub_affs_file): New field mtime.
11404 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11405 type. Removed 'size'. New field 'di'. All users updated.
11406 (grub_affs_mount): Simplify checsum checking.
11407 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11408 (grub_affs_dir): Handle mtime.
11409 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11410 (grub_cpio_dir): Likewise.
11411 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11412 (grub_hfs_filerec): New field mtime.
11413 (grub_hfs_dir): Handle mtime.
11414 (grub_hfs_mtime): New function.
11415 (grub_hfs_fs): Register grub_hfs_mtime.
11416 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11417 (grub_iso9660_dir): New field mtime.
11418 (grub_fshelp_node): New field dirent.
11419 (iso9660_to_unixtime): New function.
11420 (iso9660_to_unixtime2): Likewise.
11421 (grub_iso9660_read_symlink): Use node->dirent.
11422 (grub_iso9660_iterate_dir): Likewise.
11423 (grub_iso9660_dir): Set mtime.
11424 (grub_iso9660_mtime): New function.
11425 (grub_iso9660_fs): Register grub_iso9660_mtime.
11426 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11427 (grub_jfs_inode): New fields atime, ctime and mtime.
11428 (grub_jfs_dir): Set mtime.
11429 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11430 * grub-core/fs/ntfs.c (list_file): Set mtime.
11431 (grub_ntfs_dir): Likewise.
11432 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11433 (grub_reiserfs_iterate_dir): Set mtime.
11434 (grub_reiserfs_dir): Likewise.
11435 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11436 (grub_fshelp_node): Likewise.
11437 (grub_sfs_iterate_dir): Set mtime.
11438 (grub_sfs_dir): Likewise.
11439 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11440 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11441 (grub_xfs_inode): New fields atime, mtime, ctime.
11442 (grub_xfs_dir): Set mtime.
11443 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11444 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11445 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11446
11447 Support UDF symlinks.
11448
11449 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11450 (grub_ufs_read_symlink): New function. All users updated.
11451
11452 Check amiga partmap checksum.
11453
11454 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11455 (grub_amiga_partition): Likewise.
11456 (amiga_partition_map_checksum): New function.
11457 (amiga_partition_map_iterate): Check checksum.
11458
11459 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 ROMFS support.
11462
11463 * Makefile.util.def (libgrubmods.a): Add romfs.
11464 * grub-core/Makefile.core.def (romfs): New module.
11465 * grub-core/fs/romfs.c: New file.
11466
11467 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 Squashfs v4 support.
11470
11471 * Makefile.util.def (libgrubmods.a): Add squash4.
11472 * grub-core/Makefile.core.def (squash4): New module.
11473 * grub-core/fs/squash4.c: New file.
11474 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11475 disk_input_start, disk_input.
11476 (get_byte): Handle disk_input.
11477 (grub_zlib_disk_read): New function.
11478 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11479
11480 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11481 2011-05-15 Feiran Zheng <famcool@gmail.com>
11482
11483 * Makefile.util.def (libgrubmods.a): Add minix3.
11484 * grub-core/Makefile.core.def (minix3): New module.
11485 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11486 (GRUB_MINIX_BSIZE): Removed.
11487 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11488 (grub_minix_ino_t): New type.
11489 (grub_minix_le_to_cpu_ino): New macro.
11490 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11491 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11492 (grub_minix_data): New field block_size.
11493 (grub_minix_read_file): Handle 64-bit correctly.
11494 * grub-core/fs/minix3.c: New file.
11495
11496 2011-05-15 Tristan Gingold <gingold@free.fr>
11497 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11498 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 IA64 support.
11501
11502 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11503 * configure.ac: Add ia64-efi target.
11504 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11505 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11506 * gentpl.py: Add ia64_efi platform.
11507 Rename x86_efi to efi and Add ia64-efi. All users updated.
11508 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11509 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11510 Remove kern/generic/rtc_get_time_ms.c on EFI.
11511 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11512 kern/ia64/dl_helper.c on ia64-efi.
11513 Add kern/emu/cache.c on emu.
11514 (linux): Use on loader/ia64/efi/linux.c on ia64.
11515 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11516 whether symbol is a function.
11517 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11518 (grub_symbol): New field 'isfunc'.
11519 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11520 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11521 (grub_dl_load_segments): Place all sections into the same region.
11522 [__ia64__]: Create trampolines and got.
11523 [GRUB_MACHINE_EMU]: Call mprotect.
11524 (grub_dl_resolve_symbols): Resolve symbol type as well.
11525 [__ia64__]: Create function descriptors.
11526 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11527 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11528 (grub_get_rtc): New function.
11529 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11530 * grub-core/kern/emu/cache.S: Renamed to ...
11531 * grub-core/kern/emu/cache_s.S: ... this.
11532 [__ia64__]: Add a nop.
11533 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11534 [__ia64__]: New function.
11535 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11536 * grub-core/kern/ia64/dl.c: New file.
11537 * grub-core/kern/ia64/dl_helper.c: Likewise.
11538 * grub-core/kern/ia64/efi/init.c: New file.
11539 * grub-core/kern/ia64/efi/startup.S: Likewise.
11540 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11541 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11542 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11543 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11544 * grub-core/loader/ia64/efi/linux.c: New file.
11545 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11546 (GRUB_MOD_DEP): Likewise.
11547 (grub_dl) [__ia64__]: New fields got and tramp.
11548 (grub_dl): New field 'base'.
11549 (grub_dl_register_symbol): New argument isfunc. All users updated.
11550 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
11551 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
11552 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
11553 (grub_ia64_dl_get_tramp_got_size): New proto.
11554 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
11555 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
11556 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
11557 * include/grub/efi/api.h: Skip call wrappers on ia64.
11558 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
11559 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
11560 * include/grub/elf.h (ELF_ST_INFO): New definition.
11561 * include/grub/ia64/efi/kernel.h: New file.
11562 * include/grub/ia64/efi/memory.h: Likewise.
11563 * include/grub/ia64/efi/time.h: Likewise.
11564 * include/grub/ia64/kernel.h: Likewise.
11565 * include/grub/ia64/setjmp.h: Likewise (from glibc).
11566 * include/grub/ia64/time.h: New file.
11567 * include/grub/ia64/types.h: Likewise.
11568 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
11569 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
11570 New protos.
11571 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
11572 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11573 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
11574 * util/grub-mkimage.c (image_target_desc): New field pe_target.
11575 All users updated.
11576 (EFI64_HEADER_SIZE): New definition. All users updated.
11577 (image_targets): Add ia64-efi.
11578 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
11579 jumpers_addr. All users updated.
11580 Create function descriptors.
11581 (count_funcs): New function.
11582 (unaligned_uint32): New struct.
11583 (MASK20): New definition.
11584 (MASK19): Likewise.
11585 (MASKF21): Likewise.
11586 (add_value_to_slot_20b): New function.
11587 (add_value_to_slot_21_real): Likewise.
11588 (add_value_to_slot_21): Likewise.
11589 (ia64_kernel_trampoline): New struct.
11590 (nopm): New variable.
11591 (jump): Likewise.
11592 (make_trampoline): New function.
11593 (relocate_addresses): Handle ia64.
11594 (make_reloc_section): Likewise.
11595 (load_image): Likewise.
11596
11597 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11598
11599 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
11600 warning. Move variables before code while on it.
11601
11602 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 Fuloong support.
11605
11606 * configure.ac: Rename yeeloong platform to loongson. All users updated.
11607 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
11608 * grub-core/boot/mips/loongson/fuloong.S: New file.
11609 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
11610 Explicitly init CS5536.
11611 [FULOONG]: Don't use serial until CS5536 is available.
11612 Set GPIO based on dumps.
11613 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
11614 [FULOONG]: Handle GPIO and memory controller differences.
11615 Parse machine type in $a2.
11616 * grub-core/boot/mips/startup_raw.S: Determine and save the
11617 architecture.
11618 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
11619 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
11620 init on architecture type.
11621 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11622 SIS315E. Don't init at_keyboard on fuloong.
11623 (grub_halt): Support Fuloong.
11624 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
11625 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
11626 (loongson_machtypes): New array.
11627 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
11628 type.
11629 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
11630 config. All users updated. Handle CS5536 serial.
11631 * grub-core/term/serial.c (grub_serial_register): Conditionalise
11632 default port on machine type. Register serial as inactive.
11633 * grub-core/video/sis315pro.c: New file.
11634 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
11635 definition.
11636 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
11637 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
11638 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
11639 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
11640 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
11641 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
11642 to ...
11643 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
11644 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
11645 definition.
11646 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
11647 (grub_arch_machine): New extern var.
11648 * include/grub/mips/loongson/serial.h
11649 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
11650 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
11651 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
11652 (GRUB_MACHINE_SERIAL_PORT0): ... this.
11653 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
11654 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
11655 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
11656 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
11657 * include/grub/term.h (grub_term_register_input_inactive): New inline
11658 function.
11659 (grub_term_register_output_inactive): Likewise.
11660 * include/grub/video.h (grub_video_driver_id): New value
11661 GRUB_VIDEO_DRIVER_SIS315PRO.
11662 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
11663 New field "names". All users updated.
11664 New field value IMAGE_FULOONG_FLASH.
11665 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
11666
11667 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
11668
11669 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
11670 and add some clarification.
11671
11672 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11673
11674 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
11675 platforms if kernel is compressed.
11676
11677 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
11680 unused modules since currently referrence counter isn't reliable and
11681 there isn't much memory to recover there anyway.
11682
11683 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11684
11685 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
11686 rather than resetting it to allow modules to reference themselves
11687 in init.
11688
11689 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
11692 counter on dependencies since grub_dl_unref already handles this.
11693
11694 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
11697 on error if not already done.
11698
11699 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 Fix few potential memory misusage.
11702
11703 * grub-core/font/font.c (load_font_index): Don't free char_index to
11704 avoid double free.
11705 (grub_font_load): Zero-fill font at alloc for safety.
11706 Close file on error.
11707 (free_font): Free bmp_idx.
11708
11709 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 * docs/grub.texi (Installation): Fix several outdated claims.
11712
11713 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11714
11715 Handle module_license on windows.
11716
11717 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
11718 sections shifted.
11719 (insert_string): Make argument const char * instead of char *.
11720 (write_section_data): Handle long section names.
11721 Handle module_license.
11722
11723 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11724
11725 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
11726 handle class-free menuentries.
11727 (grub_normal_add_menu_entry): Add a check to be sure.
11728
11729 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
11732 PgUp and PgDown.
11733
11734 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 * configure.ac: Bump version to 1.99.
11737
11738 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 Give ATA device a bit more time on first try in order to allow disks
11741 to spin up.
11742
11743 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
11744 if dev->present is 1. Reset dev->present on failure.
11745 (grub_ata_device_initialize): Set dev->present to 1.
11746 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
11747 (grub_ata_device): New member 'present'.
11748
11749 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 * util/grub-mkimage.c (generate_image): Update hash.
11752
11753 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 Flush caches on DMA memory.
11756
11757 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
11758 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
11759 (grub_dma_free): Likewise.
11760 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
11761
11762 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11763
11764 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
11765 to avoid asm treating ld and sd as macros.
11766
11767 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
11770 decompressor.
11771
11772 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11773
11774 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
11775 grub_decompress_core since later would fail if grub_decompress_core
11776 is too far.
11777
11778 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11779
11780 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
11781 R_MIPS_JALR since it's used by newer compiler.
11782
11783 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
11784
11785 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
11786
11787 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
11790 file_path to 0 for surety.
11791 (grub_chainloader_boot): Set exit_data to NULL.
11792 Unset the loader once done.
11793 (grub_cmd_chainloader): Fix confusing error message if file is empty.
11794
11795 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
11798 unknown key into a dprintf.
11799
11800 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11801
11802 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
11803 on first non-existant partition.
11804
11805 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
11808 openning fails.
11809 Reported by: Mark Korenberg.
11810
11811 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
11814 overflow.
11815
11816 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * util/grub-mkimage.c (main): Explicitely flush and sync the output
11819 before closing to ensure that it will be readable by grub-setup.
11820
11821 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11822
11823 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
11824 (devpath_1): Use MAKE_PIWG_PATH.
11825 (devpath_2): Likewise.
11826 (devpath_3): Likewise.
11827 (devpath_4): Likewise.
11828 (devpath_5): Likewise.
11829 (devpath_6): Likewise.
11830
11831 The appleldr.mod was checked that to be binary identical to previous
11832 version.
11833
11834 2011-05-05 Zach <mikezackles>
11835
11836 Support 2010 Macbooks.
11837
11838 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
11839 (devs): Add devpath_6.
11840
11841 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
11844 /dev/random. /dev/urandom is good enough for our purposes (salting).
11845
11846 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11847
11848 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
11849
11850 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11851
11852 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
11853 hexadecimal.
11854
11855 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
11858 and not 0 on failure.
11859
11860 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11861
11862 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
11863 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
11864 disk; otherwise grub_fs_probe will not fall back to the next
11865 filesystem.
11866 (grub_pxefs_open): Likewise, for consistency.
11867 Reported and tested by: Ezekiel Grave.
11868
11869 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11870
11871 * tests/partmap_test.in: Don't hardcode path to parted.
11872 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
11873
11874 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
11875
11876 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
11877 of `ls' to find out which devices are available.
11878
11879 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11880
11881 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
11882 than source address for efi mmap buffer.
11883
11884 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
11887 wrong action on non-detecting the magic.
11888
11889 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11890
11891 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
11892 already supplied by another part of the module (fixes compilation on
11893 FreeBSD).
11894
11895 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11896
11897 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
11898 match the one used by mdadm.
11899
11900 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11901
11902 * po/README: Add instructions for creating po/LINGUAS.
11903
11904 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11905
11906 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
11907 #551428.
11908
11909 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
11910 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
11911 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
11912 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
11913 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
11914 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
11915 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
11916 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
11917 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
11918 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
11919 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
11920 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
11921 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
11922 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
11923 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
11924 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
11925 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
11926 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
11927 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
11928 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
11929 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
11930 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
11931
11932 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11933
11934 * grub-core/kern/emu/getroot.c
11935 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
11936 test that was incorrectly reintroduced in r3214.
11937 Reported by: Ian Dall. Fixes Savannah bug #33133.
11938
11939 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11940
11941 Fix stack pointer handling in 16-bit relocator.
11942
11943 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
11944 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
11945 Fixes Ubuntu bug #683904.
11946
11947 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * configure.ac: Bump version to 1.99~rc2.
11950
11951 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
11954 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
11955 * grub-core/lib/x86_64/setjmp.S: Likewise.
11956 * grub-core/lib/mips/setjmp.S: Likewise.
11957 * grub-core/lib/powerpc/setjmp.S: Likewise.
11958 * grub-core/lib/sparc64/setjmp.S: Likewise.
11959
11960 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
11963 * grub-core/lib/efi/datetime.c: Likewise.
11964
11965 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11966
11967 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
11968 New function.
11969 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
11970 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
11971 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
11972
11973 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
11976 bitmap.
11977 (grub_gfxterm_term_init): Likewise.
11978
11979 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 Take into account the decorations the computing menu entry width.
11982
11983 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
11984 (grub_gfxmenu_create_box): Register get_border_width.
11985 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
11986 if available.
11987 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
11988 get_border_width.
11989
11990 2011-04-18 Endres Puschner <code@e7p.de>
11991
11992 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
11993 Don't skip first class.
11994
11995 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
11998 chunks.
11999 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12000
12001 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12002
12003 Complete 64-bit division support.
12004
12005 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12006 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12007 * include/grub/misc.h (grub_divmod64): Rename to ...
12008 (grub_divmod64_full): ... this.
12009 (grub_divmod64): New inline function.
12010
12011 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12014
12015 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12018 performing the necessary test.
12019
12020 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12023 (kfreebsd.elf): Likewise.
12024 (pc-chainloader.elf): Likewise.
12025 (ntldr.elf): Likewise.
12026
12027 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 Identify RAID by its UUID rather than (guessed) name.
12030
12031 * grub-core/disk/raid.c (ascii2hex): New function.
12032 (grub_raid_open): Accept mduuid/%s specification.
12033 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12034 (get_mdadm_uuid): ... this.
12035 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12036
12037 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12040 to negative size.
12041
12042 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12043
12044 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12045 btrfs subvolume.
12046 * util/grub.d/20_linux_xen.in: Likewise.
12047
12048 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12049
12050 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12051 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12052
12053 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12054 Build a list of relevant visible mounts using the mnt_id and
12055 parent_mnt_id fields, and then scan that list at the end.
12056
12057 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12058
12059 * docs/grub.texi (normal): New section.
12060 (normal_exit): New section.
12061 (Embedded configuration): Add reference to normal.
12062 (GRUB only offers a rescue shell): Likewise.
12063 * docs/grub-dev.texi (Error Handling): Fix typo.
12064
12065 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12066
12067 * NEWS: Drop obsolete entry about probe-only btrfs support.
12068
12069 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12070
12071 * util/import_gcry.py: Fix typo.
12072
12073 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12074
12075 * NEWS: Add btrfs support.
12076
12077 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12078 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12079
12080 BtrFS support. Written by me (Vladimir) with important bugfixes and
12081 even more important testing by Colin.
12082
12083 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12084 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12085 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12086 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12087 mem_input_off and mem_input. All users updated to accept in-RAM input.
12088 (gzio_seek): New function.
12089 (test_zlib_header): Likewise.
12090 (grub_gzio_read): Likewise.
12091 (grub_zlib_decompress): Likewise.
12092 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12093 Accept partial and non-virtual mounts.
12094 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12095 avoid receiving /dev/dm-X as device.
12096 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12097 Handle bind and partial mounts.
12098 * grub-core/lib/crc.c: New file.
12099 * include/grub/deflate.h: Likewise.
12100 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12101 proto.
12102 * include/grub/lib/crc.h: New file.
12103
12104 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 Implement automatic module license checking according to new GNU
12107 guidelines.
12108
12109 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12110 (grub_dl_load_core): Use grub_dl_check_license.
12111 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12112 (GRUB_MOD_LICENSE): Likewise.
12113 (GRUB_MOD_DUAL_LICENSE): Likewise.
12114 All modules updated.
12115
12116 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12117
12118 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12119 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12120 loaders.
12121 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12122
12123 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12126
12127 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12128
12129 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12130 failed.
12131
12132 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12135 parenthesis in the middle of the filename.
12136
12137 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12138
12139 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12140 rather than trying to put initrd way too high.
12141 Reported by: Ryan Lortie <desrt@desrt.ca>
12142
12143 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12146 improperly removed string.
12147
12148 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12151 is_disk.
12152 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12153 (open_device) Likewise.
12154 (grub_util_biosdisk_close): Likewise.
12155 Reported by: Mark Korenberg.
12156
12157 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12158
12159 * util/grub-mkconfig_lib.in: Add missing quotes.
12160
12161 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12162
12163 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12164 is NULL.
12165
12166 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 Dynamically count the number of lines for the lower banner.
12169
12170 * grub-core/normal/menu_entry.c (per_term_screen): New member
12171 num_entries.
12172 (print_down): Use num_entries.
12173 (update_screen): Likewise.
12174 (grub_menu_entry_run): Set num_entries.
12175 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12176 num_entries.
12177 (grub_print_message_indented): Move real part to ...
12178 (grub_print_message_indented_real): ... here. Additional argument
12179 dry_run.
12180 (draw_border): Additional argument num_entries.
12181 (print_message): Additional argument dry_run.
12182 (print_entries): Receive menu viewer data.
12183 (grub_menu_init_page): New argment num_entries.
12184 (menu_text_set_chosen_entry): Use num_entries.
12185 (grub_menu_try_text): Likewise.
12186 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12187 All users updated.
12188 (grub_ucs4_count_lines): New function.
12189 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12190 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12191 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12192 (grub_term_border_height): Likewise.
12193 (grub_term_num_entries): Likewise.
12194
12195 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12198 Remove now unused string.
12199
12200 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12201
12202 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12203 build system.
12204 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12205
12206 (Comment): Fix typo.
12207 (Getting started): General copy-editing.
12208 (Typical Development Experience): Likewise.
12209 (Error Handling): Likewise.
12210 (Video API): Likewise.
12211
12212 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12213
12214 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12215 throughout.
12216
12217 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12220 directory.
12221
12222 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12223
12224 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12225 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12226 "development".
12227
12228 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12229
12230 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12231 grub_strcpy since the lines aren't necessarily 0-terminated.
12232
12233 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12236 root on legacy.
12237
12238 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12241 (GRUB_MOD_INIT): DEVICE isn't optional.
12242
12243 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12246 word on new line if it's too long anyway. Fixes a hang.
12247
12248 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12251 const.
12252 * util/grub-setup.c (main): Reuse md device name if available.
12253 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12254 not GRUB name as argument.
12255 Based on patch by: Florian Wagner <fwagner>.
12256
12257 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12260 Place mbi on low memory for better compatibility.
12261
12262 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12265
12266 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12267 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12268
12269 * autogen.sh: Ensure that collate and ctype locale is C.
12270 * conf/Makefile.common: Likewise.
12271
12272 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * grub-core/normal/menu.c: Add missing include.
12275
12276 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12277
12278 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12279
12280 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12281
12282 * util/grub-mkconfig.in: Ignore emacsen backup.
12283
12284 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12287 on open.
12288 (grub_util_biosdisk_close): Likewise.
12289
12290 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12293 const attribute and use grub_isdigit.
12294
12295 2011-04-06 Andrey <dev_null@ukr.net>
12296
12297 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12298 gcc warning.
12299
12300 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12303 useful grub_dprintf's.
12304
12305 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12308
12309 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12312
12313 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 Output errors if theme loading failed.
12316
12317 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12318 grub_gfxterm_fullscreen on error paths to ...
12319 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12320 theme loading error.
12321
12322 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12325 space for older compilers.
12326 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12327
12328 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12331 and report them as not RAID members since they are useless for GRUB.
12332 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12333
12334 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12335
12336 Increase LVM implementation robustness in order not to crash on
12337 configurations like pvmove. Previously code assumed that in some places
12338 only lvs or only pvs are used whereas it seems that they are used
12339 interchangeably.
12340
12341 * grub-core/disk/lvm.c (read_node): New function.
12342 (read_lv): Use read_node.
12343 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12344 Match volumes only at the end when all lvs are found. Take both
12345 pvs (first) and lvs (second) into account.
12346 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12347 mirror_* into node_*. All users updated.
12348 (grub_lvm_stripe): Merge this ...
12349 (grub_lvm_mirror): ... and this ...
12350 (grub_lvm_node): ... into this. All users updated.
12351
12352 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12355 of function to allow further scanning for LVMs.
12356
12357 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12358
12359 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12360 on failed seek as it breaks open fd reusage.
12361
12362 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12363
12364 * util/grub-install.in: Add a recommendation to use --recheck before
12365 reporting bugs.
12366
12367 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12368
12369 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12370 are obtained.
12371
12372 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 GRUB developper manual based on existing Internals section and
12375 contributions by the various authors with active copyright assignment.
12376
12377 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12378 * docs/font_char_metrics.png: New file.
12379 * docs/font_char_metrics.txt: Likewise.
12380 * docs/grub-dev.texi: Likewise.
12381 * docs/grub.texi (Internals): Move from here ...
12382 * docs/grub-dev.texi: ... here.
12383
12384 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12385
12386 Store the loopback device as data on loopback grub_disk structures,
12387 rather than the file it points to. This fixes use of freed memory
12388 if an existing loopback device is replaced.
12389
12390 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12391 disk->data, not dev->file.
12392 (grub_loopback_read): Adjust file assignment to match.
12393 Fixes Ubuntu bug #742967.
12394
12395 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12396
12397 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12398 when replacing an existing device.
12399
12400 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12401
12402 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12403 memory corruptions.
12404
12405 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12406 unsigned.
12407 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12408 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12409 (grub_jfs_read_inode): Likewise.
12410 (grub_jfs_opendir): Likewise. Remove now useless casts.
12411 (grub_jfs_getent): Likewise.
12412 Make ino a grub_uint32_t rather than int.
12413 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12414 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12415 division and module with bit operations.
12416 (grub_jfs_find_file): Make ino a grub_uint32_t.
12417 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12418
12419 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12420
12421 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12422 warning. (This was in fact always initialised before use, but GCC
12423 wasn't smart enough to prove that.)
12424 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12425
12426 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12429 stack alignment.
12430 (efi_wrap_1): Likewise.
12431 (efi_wrap_2): Likewise.
12432 (efi_wrap_3): Likewise.
12433 (efi_wrap_4): Likewise.
12434 (efi_wrap_5): Likewise.
12435 (efi_wrap_6): Likewise.
12436 (efi_wrap_10): Likewise.
12437 Based on information by: Red Hat/Peter Jones.
12438
12439 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12440
12441 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12442 set-but-not-used variable.
12443
12444 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12445
12446 * docs/grub.texi (Simple configuration): Be more explicit about
12447 GRUB_DEFAULT, and add an example.
12448 Reported by: Leslie Rhorer.
12449
12450 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12451
12452 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12453 shell".
12454
12455 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12456
12457 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12458 * util/grub.d/20_linux_xen.in: Likewise.
12459
12460 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12461
12462 * util/grub.d/10_linux.in: Try alternative config filenames where
12463 we parse config file.
12464 * util/grub.d/20_linux_xen.in: Likewise.
12465
12466 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12467
12468 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12469 * util/grub.d/20_linux_xen.in: Likewise.
12470
12471 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12472
12473 * grub-core/disk/raid.c (insert_array): Add few potentially
12474 useful grub_util_info.
12475 (grub_raid_register): Likewise.
12476
12477 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12478
12479 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12480 Preserve partition number in mdadm code path.
12481
12482 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12483
12484 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12485 few potentially useful grub_util_info.
12486
12487 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12488
12489 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12490
12491 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12492
12493 * docs/grub.texi (default): Use @example rather than nested
12494 itemized lists to avoid breaking gendocs.
12495
12496 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12497
12498 * docs/grub.texi (Future): Update.
12499
12500 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12501
12502 * docs/grub.texi (Environment): New chapter.
12503 (Changes from GRUB Legacy): Link to "Environment block" section for
12504 details of limitations.
12505 (Simple configuration): Likewise. Link to documentation of gfxmode
12506 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12507 respectively.
12508 (Shell-like scripting): Note that normal variables are stored in the
12509 environment.
12510 (gettext): Link to documentation of lang and locale_dir.
12511 (list_env): New section.
12512 (load_env): New section.
12513 (save_env): New section.
12514
12515 (Reporting bugs): Fix typo.
12516
12517 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12518
12519 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12520 the example.
12521
12522 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12523
12524 * grub-core/term/at_keyboard.c (set_scancodes)
12525 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12526
12527 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12528
12529 * docs/grub.texi (Menu-specific commands): Remove some semantics
12530 that were true in GRUB Legacy but not in GRUB 2.
12531 (submenu): New section.
12532 (false): New section.
12533 (read): New section.
12534 (true): New section.
12535
12536 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12537
12538 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12539
12540 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12541
12542 * docs/grub.texi (Simple configuration): Explain some of the
12543 current limitations of grub-mkconfig.
12544 Reported by: Leslie Rhorer.
12545
12546 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 Old macs search for boot.efi rather than for bootia32.efi.
12549
12550 * util/grub-install.in: Copy bootia32.efi to boot.efi.
12551 * util/grub-mkrescue.in: Likewise.
12552 Suggested by: Peter Jones.
12553
12554 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
12557
12558 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
12561 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
12562 (grub_lvm_mirror): New struct.
12563 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
12564 (grub_lvm_iterate): Iterate only visible volumes.
12565 (grub_lvm_read): Factor out to ..
12566 (read_lv): ... this. Support mirrors.
12567 (grub_lvm_read): New wrapper function.
12568 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
12569 stripped or mirrored.
12570
12571 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12572
12573 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
12574
12575 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12576
12577 * docs/grub.texi (loopback): New section.
12578
12579 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12580
12581 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
12582 removed -p option.
12583
12584 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12585
12586 * docs/grub.texi (BIOS installation): New section, partly based on
12587 previous text in other sections.
12588 (Installing GRUB using grub-install): Replace BIOS discussion with a
12589 cross-reference.
12590 (Images): Likewise.
12591
12592 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 * grub-core/kern/emu/hostdisk.c (find_partition_start)
12595 [HAVE_DIOCGDINFO]: Add safety checks.
12596
12597 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
12600 per default compiled in kernel and prior to 8.0 isn't shipped at all.
12601
12602 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12603
12604 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
12605 real_sb->size is zero (e.g. RAID-0), get the disk size from
12606 real_sb->data_size instead.
12607 Fixes Ubuntu bug #743136.
12608
12609 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
12612 printf clauses for printing size and start.
12613
12614 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
12617 Reported and tested by: Timothy Nikkel.
12618
12619 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
12622 (dirty_region_add_real): ... this.
12623 (dirty_region_add): Don't discard margin refresh when performing
12624 scheduled repaint.
12625
12626 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 * grub-core/lib/relocator.c (allocate_regstart)
12629 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
12630 terminals are capabple of malloc-free operation.
12631 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12632 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12633
12634 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
12635
12636 * util/grub-setup.c: Copy the partition table zone if floppy support
12637 is disabled, even if no partition table is found.
12638
12639 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
12640 during POST if an invalid partition table is contained in the PBR
12641 of the active partition when GRUB is installed to a partition.
12642
12643 2011-03-28 Colin Watson <cjwatson@debian.org>
12644
12645 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
12646 comment.
12647
12648 2011-03-28 Colin Watson <cjwatson@debian.org>
12649
12650 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
12651 to be specific about what kind of RAID device we're scanning for.
12652
12653 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
12654
12655 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
12656 return freed string.
12657
12658 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
12661
12662 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 Use libgeom on FreeBSD to detect partitions.
12665
12666 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
12667 (grub-mkrelpath): Likewise.
12668 (grub-script-check): Likewise.
12669 (grub-editenv): Likewise.
12670 (grub-mkpasswd-pbkdf2): Likewise.
12671 (grub-fstest): Likewise.
12672 (grub-mkfont): Likewise.
12673 (grub-mkdevicemap): Likewise.
12674 (grub-probe): Likewise.
12675 (grub-setup): Likewise.
12676 (grub-ofpathname): Likewise.
12677 (grub-mklayout): Likewise.
12678 (example_unit_test): Likewise.
12679 (grub-menulst2cfg): Likewise.
12680 * grub-core/Makefile.core.def (grub-emu): Likewise.
12681 (grub-emu-lite): Likewise.
12682 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
12683 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
12684 define HAVE_DIOCGDINFO.
12685 (follow_geom_up) [FreeBSD]: New function.
12686 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
12687 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
12688 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
12689 unconditionally of HAVE_DIOCGDINFO.
12690
12691 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 Fix FreeBSD compilation problem.
12694
12695 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
12696 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
12697
12698 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
12699
12700 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
12701 Switch back to page zero before loading a kernel, since some kernel
12702 drivers expect that.
12703 Thanks to: Felix Kuehling.
12704
12705 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
12708 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
12709 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
12710
12711 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12712
12713 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
12714 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
12715
12716 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12717
12718 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
12719 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
12720 malloc is disabled.
12721
12722 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
12725 for modules headers when counting the needed allocation size.
12726
12727 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
12730 if no ASCII character is found to prevent crash.
12731
12732 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
12733
12734 * grub-core/video/bitmap.c (match_extension): Ignore case.
12735
12736 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12737
12738 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
12739
12740 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 * grub-core/script/parser.y: Declare "time" as valid argument.
12743
12744 2011-03-23 Peter Jones <pjones@redhat.com>
12745
12746 Fix incorrect assert failure reporting.
12747
12748 * grub-core/tests/example_functional_test.c (example_test): Add
12749 a failure comment.
12750 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
12751 (failure_start): ...this. Check that malloc succeeded.
12752 Don't call xvasprintf. Return failure struct.
12753 (failure_append_vtext): New function.
12754 (failure_append_text): Likewise.
12755 (add_failure): Likewise.
12756 (grub_test_assert_helper): Likewise.
12757 * include/grub/test.h (grub_test_assert_helper): New declaration.
12758 (grub_test_assert): Macro rewritten.
12759
12760 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12761
12762 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
12763
12764 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
12767
12768 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12769
12770 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
12771 into GRUB-style one.
12772
12773 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12774
12775 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
12776 error and not grub_errno.
12777 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
12778
12779 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
12782 GRUB_USB_SPEED_NONE in case of failure and not the error code.
12783
12784 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * grub-core/efiemu/i386/pc/cfgtables.c
12787 (grub_machine_efiemu_init_tables): Make declaration a prototype.
12788 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
12789 (grub_xnu_unlock): Likewise.
12790 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
12791
12792 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12793
12794 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
12795 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
12796 * grub-core/commands/hashsum.c (aliases): Likewise.
12797 * grub-core/commands/setpci.c (pci_registers): Likewise.
12798 * grub-core/disk/usbms.c (attach_hook): Likewise.
12799 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
12800 (zio_checksum_table): Likewise.
12801 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
12802 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
12803 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
12804 * grub-core/lib/relocator.c (leftovers): Likewise.
12805 (extra_blocks): Likewise.
12806 * grub-core/loader/i386/bsd.c (relocator): Likewise.
12807 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
12808 (modules_last): Likewise.
12809 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
12810 (devices): Likewise.
12811 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
12812 (modules_last): Likewise.
12813 * grub-core/normal/auth.c (users): Likewise.
12814 * grub-core/normal/context.c (initial_menu): Likewise.
12815 (current_menu): Likewise.
12816 * grub-core/normal/crypto.c (crypto_specs): Likewise.
12817 * grub-core/term/serial.c (grub_serial_ports): Likewise.
12818 (grub_serial_terminfo_input_template): Likewise.
12819 (grub_serial_terminfo_output_template): Likewise.
12820 (grub_serial_terminfo_input): Likewise.
12821 (grub_serial_terminfo_output): Likewise.
12822 (registered): Likewise.
12823 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
12824
12825 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
12828 grub_video_mode_type_t.
12829 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
12830 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
12831 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
12832
12833 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 * util/grub-install.in: Correct the x86-64 name as x86_64.
12836
12837 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
12838
12839 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
12840 initial chunk read from the kernel always includes GRUB's multiboot
12841 header, which is now outside the first sector.
12842
12843 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12844
12845 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
12846 cached mmap_size, so that this works correctly when called multiple
12847 times.
12848 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
12849
12850 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12851
12852 * docs/grub.texi (Simple configuration): Tidy up formatting.
12853
12854 2011-03-07 Szymon Janc <szymon@janc.net.pl>
12855
12856 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
12857 Set-but-not-used variable removed.
12858
12859 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 Workaround yet another IEEE1275 bug.
12862
12863 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
12864 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
12865 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
12866 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
12867 is set.
12868 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12869 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
12870
12871 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12872
12873 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
12874 error.
12875
12876 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
12877
12878 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
12879 empty, since in that case we can only generate either nothing or a
12880 syntactically invalid configuration file.
12881 Reported by: Michal Suchanek. Fixes Debian bug #612898.
12882
12883 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12884
12885 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
12886 (Making a GRUB bootable CD-ROM): Likewise.
12887 (Invoking grub-mkrescue): New section.
12888 Reported by: Yann Dirson. Fixes Debian bug #612585.
12889
12890 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12891
12892 * util/grub-install.in: Remove unnecessary brackets from tr
12893 arguments.
12894 * util/grub.d/10_hurd.in: Likewise.
12895 * util/grub.d/10_kfreebsd.in: Likewise.
12896 * util/grub.d/10_linux.in: Likewise.
12897 * util/grub.d/20_linux_xen.in: Likewise.
12898 Reported by: Jamie Heilman. Fixes Debian bug #612564.
12899
12900 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
12901
12902 * include/grub/file.h (not_easly_seekable): Rename to ...
12903 (not_easily_seekable): ... this. Update all users.
12904
12905 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
12906
12907 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
12908 grub-mkrescue.
12909
12910 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
12911
12912 * util/grub-mkimage.c (generate_image): Refuse to create the images
12913 bigger than the actual flash (512K) in Loongson machines. 512K is also
12914 the biggest chip supported by them.
12915
12916 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12917
12918 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
12919
12920 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
12921
12922 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
12923 super_offset field.
12924
12925 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * util/grub-install.in: Ignore install device on platforms
12928 where it doesn't make sense. Always use UUIDs except on pc, efi and
12929 sparc64.
12930 Reported by: Daniel Kahn Gillmor.
12931
12932 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
12935
12936 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
12939 (iterate_real): Don't rely on partition being non-NULL.
12940
12941 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12942
12943 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
12944 supported platforms. Put a compile time assert for this rather than
12945 generate a warning with 32-bit shift.
12946
12947 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
12950 logical expression more readable.
12951
12952 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
12955 even if some elements have a name.
12956 Reported by: Alexander GQ Gerasiov.
12957
12958 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12959
12960 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
12961 path unreadable if `grub-probe -t abstraction' fails, for example if
12962 memberlist fails on an LVM volume group.
12963 Reported by: Darius Jahandarie.
12964
12965 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12966
12967 * docs/grub.texi (Simple configuration): Document
12968 GRUB_PRELOAD_MODULES.
12969
12970 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
12971
12972 * .bzrignore: Remove nonexistent grub-pbkdf2.
12973
12974 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * configure.ac: Bump version to 1.99~rc1.
12977
12978 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
12981 for safety.
12982
12983 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12984
12985 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
12986 module.
12987
12988 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12989
12990 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
12991
12992 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12993
12994 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
12995 diskdevid.
12996
12997 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12998
12999 Fix compilation on cygwin.
13000
13001 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13002 -R .drectve on cygwin.
13003 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13004 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13005 (COND_CYGWIN): New condition.
13006 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13007 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13008 not @TARGET_OBJ2ELF@.
13009 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13010 type to determine whether aux is to be used.
13011
13012 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13013
13014 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13015 realpath'ed device string.
13016 Handle floppy (somewhat).
13017 Issue error in unknown case rather than garbage.
13018 Reported by: Axel Beckert.
13019
13020 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13021
13022 * util/grub.d/00_header.in (load_video): Handle the case when no video
13023 drivers available.
13024 Thanks to: Axel Beckert.
13025
13026 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13027
13028 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13029 variable. Fixes problem on big endian platforms.
13030
13031 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13034 It doesn't work well there.
13035
13036 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13039 warning.
13040 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13041 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13042 counter.
13043
13044 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 Use alias->path rather than buggy "canon".
13047
13048 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13049 (ofdisk_hash_add): New argument curcan. All users updated.
13050
13051 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13052
13053 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13054
13055 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13056
13057 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13058 loadmask before doing any calculations. Use correct type for offset.
13059 (grub_linux_load64): Likewise.
13060
13061 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13062
13063 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13064 with NULL.
13065 (console_grub_equivalences_unshift): Likewise.
13066 Reported by: Daniel Dehennin.
13067
13068 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13071 (set_env_limn_ro): Likewise.
13072 (GRUB_MOD_INIT): Likewise.
13073 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13074 ARRAY_SIZE while on it.
13075 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13076 * grub-core/normal/context.c (grub_env_export): Move from here ...
13077 * grub-core/kern/env.c (grub_env_export): ... here.
13078 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13079 prefix.
13080 * grub-core/kern/main.c (grub_main): Export root and prefix.
13081 * include/grub/env.h (grub_env_export): Export.
13082 Reported by: Seth Goldberg.
13083
13084 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13087 Take into account space used by ELF sections and multiboot palette.
13088 Reported by: Grégoire Sutre.
13089
13090 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * BUGS: New file.
13093
13094 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 Pass more appropriate video id to Linux.
13097
13098 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13099 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13100 fill have_vga.
13101 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13102 shift params->lfb_size.
13103 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13104
13105 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13108
13109 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13112 separator and pass bootpath/devid even if only one of them is available.
13113 Reported by: Seth Goldberg.
13114
13115 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13118 implementations bug on them.
13119
13120 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13121 memory.
13122 (filter_memory_map): Likewise.
13123
13124 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13127 Reported by: nebuchadnezzar.
13128
13129 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13130
13131 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13132 Reported by: nebuchadnezzar.
13133
13134 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13135
13136 Submenu default support.
13137
13138 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13139 auto_boot. All users updated.
13140 Declared static.
13141 Handle chosen and default with submenus.
13142 (grub_menu_execute_with_fallback): Declared static.
13143 Don't notify failure if autobooted. Upper level does it.
13144 (menuentry_eq): New function.
13145 (get_entry_number): Use menuentry_eq.
13146 (show_menu): New parameter "autobooted". All users updated.
13147 (grub_show_menu): Likewise.
13148 * include/grub/normal.h (grub_show_menu): Likewise.
13149 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13150 (grub_menu_execute_with_fallback): Likewise.
13151
13152 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * util/grub-mklayout.c (usage): Update help text.
13155
13156 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13159
13160 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 * util/grub-menulst2cfg.c (main): Trim the line.
13163
13164 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13167 (grub_machine_init): Don't check amount of low memory as reportedly
13168 INT 12h can be broken and if low memory is too low we wouldn't have
13169 gotten into grub_machine_init anyway.
13170
13171 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13174 (grub_machine_mmap_iterate): Take low memory into account
13175
13176 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13177
13178 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13179 badfs.
13180 Reported by: TiCPU.
13181
13182 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13183
13184 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13185 members errors.
13186
13187 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13188
13189 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13190 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13191
13192 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13193
13194 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13195 openbsd and netbsd types being in part_bsd module.
13196
13197 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13200 (_FILE_OFFSET_BITS): Likewise.
13201 Reported by: Seth Goldberg.
13202
13203 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13204
13205 * configure.ac: Check for libdevmapper header.
13206
13207 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13210 avoid aliasing.
13211 (fzap_lookup): Likewise.
13212 (dnode_get): Likewise.
13213 (make_mdn): Likewise.
13214 (zfs_mount): Likewise.
13215 (fzap_iterate): Use temporary pointer to avoid aliasing.
13216 (grub_zfs_read): Likewise.
13217 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13218 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13219 pointers to avoid aliasing.
13220 (grub_cmd_xnu_kernel64): Likewise.
13221 (grub_xnu_load_driver): Likewise.
13222
13223 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13226 aliasing warning.
13227 (grub_cmd_terminal_output): Likewise.
13228 Reported and tested by: Grégoire Sutre.
13229
13230 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13233 warning.
13234 Reported and tested by: Grégoire Sutre.
13235
13236 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * configure.ac: Do CPU substitution even if it's specified explicitly.
13239 Reported and tested by: Alain Greppin.
13240
13241 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13244 Reported and tested by: Alain Greppin.
13245
13246 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 Satisfy some bison versions need for inttypes.h.
13249
13250 * grub-core/lib/posix_wrap/inttypes.h: New file.
13251 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13252 (int16_t): Likewise.
13253 (int32_t): Likewise.
13254 (int64_t): Likewise.
13255 Reported and tested by: Alain Greppin.
13256
13257 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13260 Silence spurious warning.
13261 Reported and tested by: Alain Greppin.
13262
13263 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13264
13265 * docs/grub.texi (Support automatic decompression): Update with xz
13266 decompression support.
13267
13268 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13269
13270 Improve loaders' kernel command line handling.
13271
13272 * grub-core/lib/cmdline.c: New file.
13273 * include/grub/lib/cmdline.h: Likewise.
13274 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13275 grub_create_loader_cmdline to create kernel command line.
13276 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13277 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13278 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13279 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13280 (linux): Add lib/cmdline.c on common.
13281
13282 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13285 inopos might be unaligned.
13286
13287 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13290 endian transformations.
13291 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13292 Based on report by: Doug Nazar.
13293
13294 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13295
13296 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13297 array->members[i].start_sector.
13298 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13299
13300 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13301
13302 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13303 Reported and tested by: Grégoire Sutre.
13304
13305 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13306
13307 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13308 avoid causing test failures by clearing the screen.
13309
13310 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13313 Fix prefix check to handle the case where dir ends with a slash
13314 (most significantly, "/" itself).
13315 Reported by: Michael Vogt.
13316
13317 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13318
13319 Run terminfo_cls on initing terminfo output to clear the screen and
13320 move the cursor to (0,0).
13321
13322 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13323 Call grub_terminfo_output_init.
13324 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13325 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13326 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13327
13328 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13331 only when needed.
13332
13333 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13336 CTRL.
13337
13338 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 The E820 type 5 is BADRAM, not EXEC_CODE.
13341
13342 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13343 (GRUB_E820_BADRAM): New define.
13344 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13345 into reserved. Propagate BADRAM.
13346 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13347 (GRUB_E820_BADRAM): New define.
13348
13349 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13350
13351 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13352 Ignore the memory post-4G.
13353 (grub_relocator_firmware_alloc_region): Additional debug statement.
13354
13355 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13358 names.
13359 Reported by: David Pravec.
13360
13361 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13364 BIOSes.
13365
13366 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13369 Prevent overflow.
13370 (grub_reed_solomon_recover): Likewise.
13371
13372 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13375
13376 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13377
13378 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13379 variable.
13380
13381 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13382
13383 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13384 descriptions of extract_legacy_entries_source and
13385 extract_legacy_entries_configfile.
13386 Reported by: Seung Soo, Ha.
13387
13388 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13389
13390 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13391 on devices that do not implement function 0.
13392
13393 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13394
13395 * grub-core/fs/hfsplus.c: Make parent unsigned.
13396 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13397 overflows.
13398 (grub_hfsplus_cmp_extkey): Likewise
13399
13400 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 * util/grub-install.in: Correctly use bootloader_id and not
13403 GRUB_DISTRIBUTOR on efibootmgr line.
13404
13405 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13408
13409 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13410
13411 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13412 Xen and reorder menu item wording to make it clearer that this entry
13413 will launch Xen. Print separate messages when loading Xen and
13414 Linux.
13415
13416 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13419 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13420 loop in case of incorrect amiga partmap.
13421
13422 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13423
13424 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13425 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13426 Reported by:EHeM.
13427
13428 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13431 spurious warning.
13432 Reported by: crocket
13433
13434 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13437 Preload EFIemu.
13438 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13439
13440 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13443 is loaded
13444 (grub_cmd_xnu_kextdir): Likewise.
13445 (grub_cmd_xnu_splash): Likewise.
13446
13447 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 Avoid using Reed-Solomon with 0 redundancy.
13450
13451 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13452 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13453 or 0 redundancy.
13454 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13455 (grub_reed_solomon_recover): Likewise.
13456
13457 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13458
13459 Don't use disk subsystem in freebsd_boot.
13460
13461 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13462 (freebsd_biosdev): Likewise.
13463 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13464 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13465
13466 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13467
13468 Handling of files of unknown size is currently limited. They can't be
13469 used e.g. for initrd or modules. Moreover gzip handling of not
13470 easily seekable files is buggy. Disable unknown file size for now. May
13471 be inefficient but works.
13472
13473 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13474 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13475
13476 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13477
13478 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13479 floppy probe.
13480
13481 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13482
13483 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13484
13485 2010-12-25 Shea Levy <shlevy>
13486
13487 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13488
13489 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13490
13491 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13492 Windows Server 2008.
13493 Reported by: Devin Giddings.
13494
13495 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13498 writing an error message because of async power management.
13499 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13500 (grub_reboot): Likewise.
13501
13502 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13503
13504 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13505 keep unit tests from failing when they shouldn't.
13506
13507 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13508
13509 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13510 previous patch increased the size of the RS code by 20 bytes (at
13511 least with gcc-4.4), so increase this by 20 bytes to match.
13512 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13513
13514 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13515
13516 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13517 scratch area. Make sure to initialise chosen in standalone mode as
13518 well as non-standalone.
13519 Reported by: Robert Hooker and Andy Whitcroft.
13520 Tested by: Andy Whitcroft.
13521
13522 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13523
13524 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13525 constructing a new unescaped string and passing it to grub_xputs in
13526 one go, rather than passing characters to grub_printf one at a time.
13527
13528 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13529
13530 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13531 initialising utf16.
13532
13533 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13534
13535 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13536 comment. Add an extra layer of quotation, requiring the output of
13537 this function to be used in a printf format string.
13538 (gettext_printf): New function.
13539 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13540 Extract translatable strings from here-documents and use a temporary
13541 variable instead, so that xgettext can find them.
13542 * util/grub.d/10_kfreebsd.in: Likewise.
13543 * util/grub.d/10_linux.in: Likewise.
13544 * util/grub.d/20_linux_xen.in: Likewise.
13545
13546 * po/grub.d.sed: New file.
13547 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13548 arguments. Set c-format flags on all strings extracted from
13549 util/grub.d/ (xgettext refuses to include these itself for strings
13550 it extracted from a shell file, but these really are c-format).
13551
13552 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
13555 Avoid next pointing to nowhere.
13556
13557 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
13560 rather than assuming than rootblock is exactly in the middle.
13561 (grub_affs_label): Likewise.
13562
13563 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
13566 reserved_first_sector to 0.
13567 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
13568 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
13569 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
13570
13571 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13572
13573 Fix handling of UTF-16 UDF labels.
13574
13575 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
13576 (read_string): .. here.
13577 (grub_udf_label): Use read_string.
13578
13579 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
13580
13581 * grub-core/normal/menu_entry.c (run): Execute commands from menu
13582 editor under argument scope.
13583 Reported by: Jordan Uggla
13584
13585 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
13588
13589 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
13590
13591 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
13592 line, and other keys scroll an entire page (previous handling was
13593 for \r and \n to scroll a page and other keys to scroll two lines).
13594
13595 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13598 Set ptrdest to correct get_physical_target_address rather than
13599 incorrect get_virtual_current_address.
13600
13601 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
13602
13603 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
13604 correct cat to grub_uint8_t * rather than grub_uint32_t *.
13605
13606 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13607
13608 * .bzrignore: Ignore grub-core/rs_decoder.S.
13609
13610 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13611
13612 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
13613 .mo/.mo.gz opening sequence to ...
13614 (grub_mofile_open_lang): ... here.
13615 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
13616 * util/grub.d/00_header.in (grub_lang): Include country part of
13617 locale.
13618 Reported by: Mario Limonciello.
13619
13620 2010-12-09 Robert Millan <rmh@gnu.org>
13621
13622 * NEWS: Document addition of ZFS support.
13623
13624 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
13625
13626 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
13627 rather than `/ 2', as the latter requires -Wa,--divide which would
13628 require bumping our minimum binutils version.
13629
13630 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
13631
13632 * util/grub-script-check.c (main): Print script line number on
13633 error.
13634
13635 2010-12-01 Robert Millan <rmh@gnu.org>
13636
13637 * grub-core/fs/zfs/zfs.c: New file.
13638 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
13639 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
13640 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
13641 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13642
13643 * include/grub/zfs/dmu.h: Likewise.
13644 * include/grub/zfs/dmu_objset.h: Likewise.
13645 * include/grub/zfs/dnode.h: Likewise.
13646 * include/grub/zfs/dsl_dataset.h: Likewise.
13647 * include/grub/zfs/dsl_dir.h: Likewise.
13648 * include/grub/zfs/sa_impl.h: Likewise.
13649 * include/grub/zfs/spa.h: Likewise.
13650 * include/grub/zfs/uberblock_impl.h: Likewise.
13651 * include/grub/zfs/vdev_impl.h: Likewise.
13652 * include/grub/zfs/zap_impl.h: Likewise.
13653 * include/grub/zfs/zap_leaf.h: Likewise.
13654 * include/grub/zfs/zfs.h: Likewise.
13655 * include/grub/zfs/zfs_acl.h: Likewise.
13656 * include/grub/zfs/zfs_znode.h: Likewise.
13657 * include/grub/zfs/zil.h: Likewise.
13658 * include/grub/zfs/zio.h: Likewise.
13659 * include/grub/zfs/zio_checksum.h: Likewise.
13660
13661 * Makefile.util.def: Build ZFS into libgrubmods.
13662 * grub-core/Makefile.core.def: Build zfs.mod.
13663
13664 2010-11-30 Szymon Janc <szymon@janc.net.pl>
13665
13666 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
13667 variable.
13668 * grub-core/commands/wildcard.c (match_files): Likewise.
13669
13670 2010-11-30 Robert Millan <rmh@gnu.org>
13671
13672 * grub-core/loader/i386/bsd.c
13673 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
13674 whether kernel is loaded using grub_loader_is_loaded(), rather
13675 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
13676 certain error conditions.
13677
13678 2010-11-30 Robert Millan <rmh@gnu.org>
13679
13680 * grub-core/commands/echo.c: Include `<grub/term.h>'.
13681 (grub_cmd_echo): Call grub_refresh() after printing a message.
13682
13683 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 Avoid using tricks for initialising endian variables.
13686
13687 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
13688 Make const.
13689 (GRUB_MOD_INIT): Don't byte-swap.
13690 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13691 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
13692 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
13693 (grub_swap_bytes32_compile_time): Likewise.
13694 (grub_cpu_to_le32_compile_time): Likewise.
13695 (grub_cpu_to_le16_compile_time): Likewise.
13696
13697 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * util/grub-setup.c (setup): Stop recommending --force. People who
13700 understand the dangers of blocklists are able to find this option
13701 anyway and the ones who don't shouldn't use it anyway.
13702
13703 2010-11-26 Robert Millan <rmh@gnu.org>
13704
13705 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
13706 Update all users.
13707
13708 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
13709
13710 Fix LVM-on-RAID probing.
13711
13712 * util/grub-probe.c (probe): Remember which disk was detected as
13713 RAID (perhaps an LVM physical volume). Use that disk's raidname
13714 rather than that of the top-level disk.
13715
13716 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
13717
13718 Fix cmdline argument quotes for setparams command of menuentry
13719 definitions.
13720
13721 * grub-core/commands/menuentry.c (setparams_prefix): Use single
13722 quotes for arguments.
13723 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
13724 grub_strchrsub function instead.
13725
13726 * include/grub/misc.h (grub_strchrsub): New function.
13727
13728 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13729
13730 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
13731 effort by skipping "." and ".." entries up-front.
13732 Suggested by: Michael Lazarev.
13733
13734 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13735
13736 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
13737 ldflags to ldadd, to fix link line ordering.
13738 (none_decompress): Likewise.
13739
13740 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13741
13742 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
13743 platforms.
13744 (grub-emu-lite): Remove kern/emu/cache.S.
13745
13746 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13747
13748 * util/deviceiter.c (compare_devices): If the by-id link for a
13749 device couldn't be resolved, fall back to sorting by the by-id link
13750 rather than segfaulting.
13751 Reported and tested by: Daniel Mierswa.
13752
13753 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13754
13755 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
13756 ldflags, to fix link line ordering.
13757
13758 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13759
13760 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
13761 linkers are picky about this.
13762
13763 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13764
13765 * grub-core/Makefile.am (command.lst): Adjust sed expression
13766 ordering so that extended and priority commands aren't treated as
13767 ordinary commands.
13768
13769 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13770
13771 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13772 Remove byte-swapping function calls, which are not valid in
13773 structure initialisers.
13774 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
13775 non-const.
13776 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
13777 grub_gpt_partition_type_bios_boot.
13778
13779 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13780
13781 Fix test program build on GNU/kFreeBSD.
13782
13783 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
13784 $(LIBNVPAIR)' library dependencies.
13785
13786 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13787
13788 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
13789
13790 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13791
13792 * util/grub-install.in: Remove excessive quoting that broke
13793 installations to RAID devices.
13794
13795 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13796
13797 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
13798 bootloader version instead of 0.
13799
13800 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
13803 warning.
13804
13805 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13806
13807 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
13808 retrieve the metadat sector if size isn't known.
13809 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13810
13811 2010-11-18 Robert Millan <rmh@gnu.org>
13812
13813 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
13814 with grub_memcmp().
13815
13816 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
13819 arrow.
13820 Reported by: Jordan Uggla.
13821
13822 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 Make better UTF compliant.
13825
13826 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
13827 sequences as incorrect.
13828 (grub_is_valid_utf8): Likewise.
13829 (grub_utf8_to_ucs4): Likewise.
13830 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
13831 (grub_ucs4_to_utf8_alloc): Likewise.
13832 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
13833
13834 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13835
13836 Make legacy_source behave like source.
13837
13838 * grub-core/commands/legacycfg.c (legacy_file): Don't call
13839 grub_show_menu.
13840 (grub_cmd_legacy_source): Call grub_show_menu if needed.
13841
13842 2010-11-16 Colin Watson <cjwatson@debian.org>
13843
13844 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
13845 (-Wunused implies -Wunused-parameter, but not vice versa).
13846
13847 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
13848
13849 * configure.ac: Make error messages less confusing by testing for
13850 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
13851 accepted, but produces a diagnostic if something else is wrong).
13852
13853 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
13856 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
13857 (now unused).
13858 (grub_keyboard_controller_init)
13859 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
13860 read the initial state since controller isn't inited yet.
13861
13862 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13863
13864 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
13865 allocate_regbeg may need to create new chunk header.
13866
13867 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 Fix quoting in legacy parser.
13870
13871 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
13872 single quotes.
13873 (grub_legacy_parse): Likewise.
13874 Reported by: Jordan Uggla.
13875 Tested by: Jordan Uggla.
13876
13877 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 Don't add -lgcc on i386 and x86_64.
13880
13881 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
13882 * conf/Makefile.common (LDADD_KERNEL): Likewise.
13883 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
13884
13885 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 * configure.ac: Add -Wno-trampolines when supported.
13888
13889 2010-11-14 Modestas Vainius <modax@debian.org>
13890
13891 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
13892 fakeraid.
13893
13894 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13895
13896 Add generic logical block size support for UDF.
13897
13898 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
13899 (GRUB_UDF_BLKSZ): Removed.
13900 (struct grub_udf_data): New field "lbshift" to hold the logical block
13901 size of the file system in log2 format. All users updated.
13902 (sblocklist): Change type to unsigned.
13903 (grub_udf_mount): Change type of "sblklist" to unsigned.
13904 Move AVDP search before VRS recognition, because the latter requires
13905 knowledge of the logical block size, which is detected during the
13906 former.
13907 Detect and validate logical block size during AVDP search, adding
13908 support for block sizes 512, 1024 and 4096.
13909 Make VRS recognition independent of block size.
13910
13911 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13912
13913 Properly handle deleted files on UDF.
13914
13915 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
13916 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
13917 set.
13918
13919 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13920
13921 Support reading files larger than 2 GiB.
13922
13923 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
13924 "offset" to grub_off_t.
13925 (grub_udf_read_file): Likewise for parameter "pos".
13926
13927 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
13930 unavailable.
13931 (Simple configuration): Refer to Changes from GRUB Legacy about
13932 save_env availability.
13933
13934 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13935
13936 * util/grub-install.in: Ignore empty partition table detection
13937 instead of trying to include part_ module.
13938
13939 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13940
13941 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
13942 LVM on RAID support.
13943
13944 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13945
13946 Properly define WORDS_BIGENDIAN in wrapped environments.
13947
13948 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
13949 definition.
13950 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
13951
13952 Reported by: Manoel Rebelo Abranches.
13953 Tested by: Manoel Rebelo Abranches.
13954
13955 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13956
13957 * util/grub-mkconfig.in: Fix quoting.
13958
13959 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 Support big ext2 files.
13962
13963 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
13964 (grub_ext2_read_block): Support triple indirect blocks.
13965 (grub_ext2_read_file): Use 64-bit types and read size_high.
13966 (grub_ext2_open): Read size_high.
13967 Reported by: Ximin Luo.
13968 Tested by: Manoel Rebelo Abranches.
13969
13970 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * util/grub-install.in: Handle filenames containing spaces.
13973 Reported by: Jordan Uggla.
13974 Tested by: Jordan Uggla.
13975
13976 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * util/grub-mkconfig.in (grub_script_check): New variable.
13979 Use grub_script_check instead of grub-script-check.
13980 Reported by: Barry Jackson.
13981
13982 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * docs/grub.texi (menu): Correct the order.
13985 Reported by: D. Hugh Redelmeier.
13986
13987 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13988
13989 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
13990 jump.
13991
13992 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13993
13994 * include/grub/elfload.h (grub_elf32_size): New parameter.
13995 All users updated.
13996 Return maximum segments alignment.
13997 (grub_elf64_size): Likewise.
13998 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
13999 Return maximum segments alignment.
14000 (grub_elf64_size): Likewise.
14001 * grub-core/loader/powerpc/ieee1275/linux.c:
14002 (grub_linux_claimmap_iterate): New function. Uses the
14003 "available" property in the "memory" node for memory allocation
14004 for kernel in the PowerPC loader.
14005 (grub_linux_load32): Correctly find linux entry point offset.
14006 (grub_linux_load64): Likewise.
14007
14008 2010-11-07 Robert Millan <rmh@gnu.org>
14009
14010 On mips-yeeloong, build with -march=loongson2f when this flag is
14011 available (GCC >= 4.4).
14012 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14013 `-march=mips3'.
14014 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14015 or otherwise add -march=mips3.
14016
14017 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14018
14019 Suppress shell expansion on echo '*' and echo "*" like cases.
14020 Reported by: Jordan Uggla.
14021
14022 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14023 string arguments before shell expansion.
14024 * tests/grub_cmd_echo.in: New testcases.
14025
14026 2010-11-07 Robert Millan <rmh@gnu.org>
14027
14028 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14029 transition.
14030
14031 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14032
14033 * grub-core/kern/emu/hostdisk.c
14034 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14035
14036 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14037
14038 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14039 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14040 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14041
14042 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14045
14046 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-install.in: Replace useless recomendation to pass
14049 --modules with a recomendation to report a bug.
14050
14051 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 Properly register serial terminfo.
14054 Reported by: Jordan Uggla
14055
14056 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14057 const.
14058 (grub_serial_terminfo_output_template): Likewise.
14059 (grub_cmd_serial): Register "serial" with terminfo.
14060 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14061 grub_serial_terminfo_output.
14062
14063 2010-11-05 Robert Millan <rmh@gnu.org>
14064
14065 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14066 needed).
14067
14068 2010-11-05 Robert Millan <rmh@gnu.org>
14069
14070 On Yeeloong, pass machine type information to Linux.
14071
14072 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14073 (LOONGSON_MACHTYPE): New macro, set to
14074 "machtype=lemote-yeeloong-2f-8.9inches".
14075 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14076 additional argument to Linux.
14077
14078 2010-11-04 Robert Millan <rmh@gnu.org>
14079
14080 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14081 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14082 (its SATA disks are detected as slaveless IDE master drives on
14083 kFreeBSD).
14084 Reported by Carsten Aulbert.
14085
14086 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14087
14088 * util/bin2h.c (main): Fix spelling error in generated output.
14089
14090 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14091
14092 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14093
14094 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14097 vga= option is supplied.
14098
14099 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14102 * util/grub.d/10_kfreebsd.in: Likewise.
14103 * util/grub.d/10_linux.in: Likewise.
14104 * util/grub.d/20_linux_xen.in: Likewise.
14105
14106 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14107
14108 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14109 argument as an argument to no-argument option.
14110
14111 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14112
14113 * util/grub.d/10_linux.in: Add missing load_video with explicit
14114 GRUB_GFXPAYLOAD_LINUX.
14115
14116 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14119
14120 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14123 elements with invlid index.
14124 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14125 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14126 members.
14127 * include/grub/raid.h (grub_raid_member): New struct.
14128 (grub_raid_array): Transform devices and start_sector into usage of
14129 grub_raid_member. All users updated
14130 (allocated_devs): New member.
14131
14132 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14135 is modified
14136
14137 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14138
14139 NetBSD build fix for getline function conflict from gnulib.
14140
14141 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14142 components that depend on gnulib headers.
14143 (libgrubmods.a): Renamed from earlier libgrub.a.
14144 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14145
14146 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14149 install rather than creating a broken install.
14150
14151 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * util/grub-setup.c (argp): Remove misleading example of installing to
14154 a partition.
14155
14156 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * util/grub-setup.c (setup): Clarify the error message.
14159
14160 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14163
14164 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14165
14166 * grub-core/kern/emu/misc.c
14167 (grub_make_system_path_relative_to_its_root)
14168 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14169
14170 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14171
14172 * grub-core/kern/emu/misc.c
14173 (grub_make_system_path_relative_to_its_root): Revert r2882.
14174
14175 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14176
14177 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14178 useless field head. All users updated.
14179 (free_subchunk): Correct handling of IN_REGION subchunk.
14180
14181 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14182
14183 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14184 (Supported kernels): Likewise.
14185
14186 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14187
14188 Make mktemp invocations portable.
14189
14190 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14191 exit if mktemp fails.
14192 * tests/grub_script_blockarg.in: Likewise.
14193 * tests/partmap_test.in: Likewise.
14194 * tests/util/grub-shell-tester.in: Likewise.
14195 * tests/util/grub-shell.in: Likewise.
14196 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14197 * Makefile.am: Likewise, and chain shell commands with `&&'
14198 instead of ';'.
14199 * util/grub-mkrescue.in: Use the same explicit template as above, and
14200 exit if mktemp fails.
14201
14202 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14203
14204 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14205 Linux kernel, reported by Dennis Schridde.
14206
14207 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14208
14209 * grub-core/normal/auth.c (grub_auth_check_authentication):
14210 Set-but-not-used variable removed.
14211
14212 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14215 32-bit linux protocol.
14216
14217 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14220 cursor shape for sanity.
14221
14222 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14223
14224 * docs/grub.texi (Installation): Document buggy BIOS install.
14225
14226 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 * docs/grub.texi (Installation): Indent.
14229
14230 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14231
14232 * util/grub-setup.c (setup): New parameter allow_floppy.
14233 (arguments): New member allow_floppy.
14234 (argp_parser): Handle --allow-floppy.
14235 (main): Pass allow_floppy.
14236 * util/grub-install.in: New option --allow-floppy passed though to
14237 grub-setup.
14238
14239 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 * util/grub-install.in: Handle partitionless disks.
14242
14243 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 * util/grub-setup.c (setup): Don't clean blocklists before readability
14246 verfification.
14247
14248 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * docs/grub.texi (Installation): Document embedding zone. Remove
14251 obsolete grub-install example.
14252
14253 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14254
14255 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14256 Set-but-not-used variable ifdef'ed.
14257 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14258 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14259 variable removed.
14260 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14261 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14262 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14263 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14264 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14265 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14266 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14267 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14268 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14269 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14270 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14271 Likewise.
14272
14273 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14276 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14277 enum value.
14278
14279 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14282 synonym to _S5_. Needed for some DSDTs.
14283
14284 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14285
14286 Userspace ACPI parser debugging.
14287
14288 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14289 headers and add relevant defines. Don't include standard headers.
14290 (main) [GRUB_DSDT_TEST]: New function.
14291 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14292 Don't declare functions.
14293
14294 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 Remove dead grub_efi_mm_fini.
14297
14298 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14299 (ALLOCATED_PAGES_SIZE): Likewise.
14300 (MAX_ALLOCATED_PAGES): Likewise.
14301 (allocated_pages): Likewise.
14302 (grub_efi_allocate_pages): Don't record allocated pages.
14303 (grub_efi_free_pages): Likewise.
14304 (grub_efi_mm_init): Likewise.
14305 (grub_efi_mm_fini): Removed.
14306
14307 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14310 (grub_efi_mm_init): Take into account the memory map size increase.
14311
14312 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14315 (serial_hw_put): Wait based on real time rather than port reads. Don't
14316 roken ports.
14317 * include/grub/serial.h (grub_serial_port): New field broken.
14318
14319 2010-10-16 Robert Millan <rmh@gnu.org>
14320
14321 * grub-core/kern/emu/misc.c
14322 (grub_make_system_path_relative_to_its_root): Fix premature return
14323 when processing non-root ZFS filesystems.
14324 Reported by Sergio Talens-Oliag.
14325
14326 2010-10-15 Robert Millan <rmh@gnu.org>
14327
14328 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14329 guarantee compressed ones are processed first.
14330
14331 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14334 grub_efiemu_autocore.
14335
14336 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14339 rather than 0x1b.
14340 (grub_console_getkey): Use correct jae opcode rather than ja.
14341
14342 2010-10-12 Robert Millan <rmh@gnu.org>
14343
14344 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14345 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14346 variable. All references updated.
14347
14348 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14349
14350 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 Correctly distinguish mdraid flavours.
14353
14354 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14355 (insert_array): New argument raid.
14356 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14357 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14358 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14359
14360 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14363 handling of special keys.
14364
14365 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14366
14367 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14368 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14369
14370 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14371
14372 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14373 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14374 users updated.
14375 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14376 Use right endpoint when querying descriptor.
14377
14378 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 Clear out 0x80 color bit on EFI.
14381 Tested by: decoder
14382 Reported by: decoder and meta tech.
14383
14384 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14385 (grub_console_setcolorstate): Clear out 0x80 bit.
14386 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14387 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14388 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14389
14390 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14393 Set to "auto".
14394
14395 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14396
14397 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14398 mo_file after freeing.
14399
14400 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14403
14404 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14407 flags.
14408
14409 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14412 usage.
14413
14414 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14417
14418 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14419 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14420 and terminfo.h when needed.
14421 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14422 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14423 (terminfo): Enable only on terminfokernel.
14424 (extcmd): Likewise.
14425 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14426 * include/grub/lib/arg.h: Likewise.
14427 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14428 incorrect usage of ->.
14429
14430 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14431
14432 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14433 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14434
14435 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 Fix coreboot compilation.
14438
14439 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14440 Take VBE info into account even if only text is supported.
14441 (fill_vbe_info): Take into account the case when only VGA text
14442 is supported.
14443 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14444 on coreboot, multiboot and qemu.
14445
14446 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14447
14448 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14449 debug messages.
14450 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14451
14452 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14453
14454 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14455 parameters.
14456
14457 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14458
14459 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14460 if they were BSD-style.
14461
14462 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * grub-core/boot/i386/pc/lnxboot.S: Replace
14465 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14466 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14467
14468 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14469
14470 Write embedding zone using Reed-Solomon.
14471
14472 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14473 * grub-core/Makefile.am (rs_decoder.S): New target.
14474 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14475 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14476 (multiboot): Move to RS part.
14477 (post_reed_solomon): New label.
14478 (grub_boot_drive): Move to non-RS part since it's modified in memory
14479 on boot.
14480 Include rs_decoder.S.
14481 * grub-core/lib/reed_solomon.c: New file.
14482 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14483 New definition.
14484 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14485 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14486 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14487 * include/grub/partition.h (grub_partition_map): Change prototype of
14488 embed to allow returning additional sectors.
14489 * include/grub/reed_solomon.h: New file.
14490 * util/grub-setup.c (setup): Handle Reed-Solomon.
14491
14492 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14493
14494 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14495 i386 and x86-64 definedness tests.
14496
14497 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14498
14499 Fix generation of kernel_syms.lst
14500
14501 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14502 ASM_PREFIX
14503
14504 2010-09-26 Robert Millan <rmh@gnu.org>
14505
14506 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14507
14508 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14509 the pool is an array of devices, iterate through it and return the
14510 first device that passes a stat() test (instead of blindly returning
14511 the first one).
14512
14513 2010-09-26 Robert Millan <rmh@gnu.org>
14514
14515 Build fixes for GNU/kFreeBSD.
14516
14517 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14518 to programs that require ZFS conversion.
14519 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14520 kernels that don't have FLOPPY_MAJOR.
14521
14522 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14523
14524 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14525
14526 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14527
14528 Fix grub-emu build.
14529
14530 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14531 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14532 mdraid09 and mdraid1x.
14533
14534 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14535
14536 Re-enable grub-extras.
14537
14538 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14539 avoid confusing Automake. Run autogen only twice, once for the top
14540 level and once for grub-core. Add Makefile.util.def and
14541 Makefile.core.def from extra modules to the appropriate autogen
14542 invocations. If Makefile.common exists in an extra module, include
14543 it in both Makefile.util.am and grub-core/Makefile.core.am;
14544 similarly, include any Makefile.util.common file in Makefile.util.am
14545 and any Makefile.core.common file in grub-core/Makefile.core.am.
14546 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14547 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14548 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14549 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
14550
14551 * gentpl.py (gvar_add): Turn GVARS into a set.
14552 (global_variable_initializers): Sort global variables on output.
14553 (vars_init): New function.
14554 (first_time): Likewise.
14555 (library): Ensure that non-global variable initialisations are
14556 emitted before the first time we emit code for a library block.
14557 Append to variables rather than setting them. Only emit
14558 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
14559 each conditional path.
14560 (program): installdir() emits an Autogen macro, so must be passed to
14561 var_add rather than gvar_add.
14562 (data): Likewise.
14563 (script): Likewise.
14564 (rules): New function, centralising handling for different target
14565 types. Set up Guile association lists for first_time and vars_init,
14566 and send most output to a diversion so that variable initialisations
14567 can be emitted first.
14568 (module_rules): Use new rules function.
14569 (kernel_rules): Likewise.
14570 (image_rules): Likewise.
14571 (library_rules): Likewise.
14572 (program_rules): Likewise.
14573 (script_rules): Likewise.
14574 (data_rules): Likewise.
14575
14576 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
14577
14578 * .bzrignore: Add contrib and grub-core/contrib. Remove
14579 grub-core/Makefile.gcry.am.
14580
14581 2010-09-24 Yves Blusseau <blusseau@zetam.org>
14582
14583 * grub-core/lib/LzFind.c: Add missing include.
14584 * grub-core/lib/LzmaEnc.c: Likewise.
14585 * grub-core/script/lexer.c: Likewise.
14586 * grub-core/script/yylex.l: Likewise.
14587 * util/grub-macho2img.c: Likewise.
14588 * util/grub-menulst2cfg.c: Likewise.
14589 * util/grub-mklayout.c: Likewise.
14590 * util/grub-mkpasswd-pbkdf2.c
14591 * util/grub-mkrelpath.c: Likewise.
14592 * util/resolve.c: Likewise.
14593
14594 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
14595
14596 * Makefile.util.def (example_unit_test): Add
14597 grub-core/gnulib/libgnu.a.
14598
14599 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
14600
14601 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
14602
14603 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 Support xz compression on yeeloong.
14606
14607 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
14608 * configure.ac: Check for LZMA.
14609 * grub-core/Makefile.core.def (xz_decompress): New target.
14610 (none_decompress): Likewise.
14611 * grub-core/boot/decompressor/minilib.c: New file.
14612 * grub-core/boot/decompressor/none.c: Likewise.
14613 * grub-core/boot/decompressor/xz.c: Likewise.
14614 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
14615 * grub-core/kern/mips/cache_flush.S: Likewise.
14616 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
14617 * grub-core/kern/mips/startup.S: Move first stage to ...
14618 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
14619 nomacro.
14620 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
14621 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
14622 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
14623 Allocate statically.
14624 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
14625 Allocate statically or use scratch. Don't check CRC32.
14626 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
14627 Allocate statically. Don't check CRC32.
14628 * include/grub/decompressor.h: New file.
14629 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
14630 Removed.
14631 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
14632 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
14633 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
14634 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
14635 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
14636 * util/grub-mkimage.c (grub_compression_t): New type.
14637 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
14638 (image_target_desc): New field default_compression.
14639 (image_targets): Adjust yeeloong targets.
14640 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
14641 (compress_kernel): New parameter comp.
14642 (generate_image): Likewise. Handle new compression case.
14643 (options): New option --compression
14644 (help): Likewise.
14645 (main): Handle new option.
14646
14647 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
14648
14649 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
14650
14651 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
14652
14653 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14654 typo in __i386__ conditional.
14655
14656 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14657
14658 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
14659 include.
14660
14661 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 Implement EFI and ACPI multiboot2 extensions.
14664
14665 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
14666 new tags as supported.
14667 (acpiv2_size): New function.
14668 (grub_multiboot_get_mbi_size): Take new tags into account.
14669 (grub_multiboot_make_mbi): Add new tags.
14670 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
14671
14672 2010-09-21 Aleš Nesrsta <starous@volny.cz>
14673
14674 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
14675 Added missing configuration of USB device.
14676
14677 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14678
14679 * grub-core/normal/menu_entry.c (run): Make sure we always return
14680 a value.
14681
14682 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14683
14684 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
14685 NumberOfPages is UINT64 according to the UEFI specification, not
14686 UINTN. Fix printf format.
14687
14688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14689
14690 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
14691 `err' to grub_usb_err_t.
14692 Reported and tested by: KESHAV P.R.
14693
14694 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14695
14696 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
14697 tpart non-const, so that we can assign to it. (Since this is a
14698 typedef, the constness refers to the pointer rather than what it
14699 points to.)
14700
14701 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14702
14703 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
14704 $(top_srcdir)/grub-core/gnulib as well as
14705 $(top_builddir)/grub-core/gnulib.
14706 Reported by: KESHAV P.R.
14707
14708 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14709
14710 * util/grub-install.in: Fix the bootloader ID option to be
14711 consistently --bootloader-id, not --bootloader_id.
14712 Reported by: KESHAV P.R.
14713
14714 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14715
14716 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
14717 check hash checksum." consistently translatable.
14718
14719 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14720
14721 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
14722 $(top_builddir).
14723
14724 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14725
14726 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
14727 (GRUB_MOD_INIT): Register sha1sum command.
14728 (GRUB_MOD_FINI): Unregister sha1sum command.
14729
14730 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14731
14732 Keep boot and grub directory names in sync with utils scripts
14733
14734 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
14735 * config.h.in: Add previous macros.
14736 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
14737 * util/grub-install.in: Use $bootdir and $grubdir variables.
14738
14739 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14740
14741 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
14742 convert partition names to disk names if the new `convert' parameter
14743 is set.
14744 (grub_util_biosdisk_get_grub_dev): If opening the disk device
14745 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
14746 disk in its own right. This can happen with Xen disk images.
14747
14748 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14749
14750 * util/grub-editenv.c: Update strings to avoid warnings when generating
14751 grub.pot file.
14752 * util/grub-setup.c: Likewise.
14753
14754 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 * configure.ac: Change version to 1.99~beta0.
14757
14758 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14761 Add BADRAM.
14762 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
14763 Likewise.
14764 * include/multiboot.h: Resynced with specification.
14765 * include/multiboot2.h: Likewise.
14766
14767 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14768
14769 Fix po directory handling.
14770
14771 * configure.ac: Create po/Makefile.in rather than po/Makefile.
14772 * grub-core/gnulib/Makefile.am: Import gettext module.
14773 * m4/gnulib-cache.m4: Likewise.
14774 * m4/gnulib-comp.m4: Likewise.
14775 * m4/gettext.m4: New file, from gnulib.
14776 * m4/glibc2.m4: Likewise.
14777 * m4/iconv.m4: Likewise.
14778 * m4/intdiv0.m4: Likewise.
14779 * m4/intl.m4: Likewise.
14780 * m4/intldir.m4: Likewise.
14781 * m4/intlmacosx.m4: Likewise.
14782 * m4/intmax.m4: Likewise.
14783 * m4/inttypes-pri.m4: Likewise.
14784 * m4/lcmessage.m4: Likewise.
14785 * m4/lib-ld.m4: Likewise.
14786 * m4/lib-link.m4: Likewise.
14787 * m4/lib-prefix.m4: Likewise.
14788 * m4/lock.m4: Likewise.
14789 * m4/nls.m4: Likewise.
14790 * m4/po.m4: Likewise.
14791 * m4/printf-posix.m4: Likewise.
14792 * m4/progtest.m4: Likewise.
14793 * m4/threadlib.m4: Likewise.
14794 * m4/uintmax_t.m4: Likewise.
14795 * m4/visibility.m4: Likewise.
14796 * po/Makefile.am: Remove.
14797 * po/Makefile.in.in: New file, from gettext.
14798 ($(DOMAIN).pot-update): Support POTFILES-shell.
14799 * po/Makevars: New file.
14800 * po/POTFILES-shell: Rename to ...
14801 * po/POTFILES-shell.in: ... this. Update.
14802 * po/POTFILES: Rename to ...
14803 * po/POTFILES.in: ... this. Update.
14804 * po/Rules-quot: New file, from gettext.
14805 * po/boldquot.sed: Likewise.
14806 * po/en@boldquot.header: Likewise.
14807 * po/en@quot.header: Likewise.
14808 * po/insert-header.sin: Likewise.
14809 * po/quot.sed: Likewise.
14810 * po/remove-potcdate.sin: Likewise.
14811
14812 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14813
14814 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
14815
14816 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14817
14818 * util/grub.d/20_linux_xen.in: Use submenus.
14819
14820 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14821
14822 Support submenus.
14823
14824 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
14825 parameter submenu. All users updated.
14826 * grub-core/normal/main.c (free_menu): Rename to ...
14827 (grub_normal_free_menu): ... this. Made global.
14828 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
14829 if requested.
14830 * grub-core/normal/menu_entry.c (screen): New field submenu.
14831 (make_screen): Set submenu.
14832 (run): Open new context if requested.
14833 * include/grub/menu.h (grub_menu_entry): New field submenu.
14834 * include/grub/normal.h (grub_normal_free_menu): New proto.
14835
14836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14837
14838 Menu entries extractor.
14839
14840 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
14841 variants.
14842 (GRUB_MOD_INIT): Register new variants.
14843 (GRUB_MOD_FINI): Unregister new variants.
14844 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
14845 into grub_cmd_legacy_source.
14846 (grub_cmd_legacy_source): Implement extractor variants.
14847 (GRUB_MOD_INIT): Register new variants.
14848 (GRUB_MOD_FINI): Unregister new variants.
14849 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
14850 as an extractor.
14851 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
14852 search as an extractor.
14853 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
14854 test as an extractor.
14855 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
14856 as an extractor.
14857 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
14858 (grub_env_new_context): New function.
14859 (grub_env_context_open): Likewise.
14860 (grub_env_extractor_open): Likewise.
14861 (grub_env_extractor_close): Likewise.
14862 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
14863 grub_extractor_level.
14864 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
14865 * include/grub/env.h (grub_env_extractor_open): New proto.
14866 (grub_env_extractor_close): Likewise.
14867 * include/grub/normal.h (grub_extractor_level): New external variable.
14868
14869 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 Make cutmem accept a region specification.
14872 Suggested by: Samuel Thibault
14873
14874 * grub-core/mmap/mmap.c (parsemem): New function.
14875 (grub_cmd_cutmem): Handle new arguments.
14876
14877 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 New command cutmem.
14880
14881 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
14882 (GRUB_MOD_INIT): Register new command.
14883 (GRUB_MOD_FINI): Unregister new command.
14884
14885 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 Support some annoying BSD and Minix subpartitions.
14888
14889 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
14890 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
14891 Properly handle concatenation.
14892 * grub-core/kern/device.c (grub_device_iterate): Likewise.
14893 * grub-core/normal/completion.c (iterate_partition): Likewise.
14894 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
14895 contain partition. All users updated.
14896 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
14897 struct.
14898 (grub_openbsdlabel_partition_map): Likewise.
14899 (bsdlabel_partition_map_iterate): Rename to ..
14900 (iterate_real): ... this. New arguments sector, freebsd and pmap.
14901 (bsdlabel_partition_map_iterate): New function.
14902 (netopenbsdlabel_partition_map_iterate): Likewise.
14903 (netbsdlabel_partition_map_iterate): Likewise.
14904 (openbsdlabel_partition_map_iterate): Likewise.
14905 (GRUB_MOD_INIT): Register new partmaps.
14906 (GRUB_MOD_FINI): Unregister new partmaps.
14907 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
14908 (grub_partition_msdos_iterate): ... this. All users updated.
14909 Don't support embedding other than in a minix partition.
14910 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
14911 proto.
14912 * include/grub/partition.h (grub_partition): New field msdostype.
14913 * util/grub-install.in: Handle openbsd and netbsd types being in
14914 part_bsd module.
14915
14916 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
14919
14920 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
14921 * grub-core/Makefile.core.def (mdraid): Renamed to ...
14922 (mdraid09): ... this.
14923 (mdraid1x): New module.
14924 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
14925 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
14926
14927 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14928
14929 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
14930 vsprintf.
14931
14932 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14933
14934 * grub-core/commands/efi/lsefimmap.c: Correct header.
14935 * NEWS: Update.
14936
14937 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14938
14939 * util/grub-editenv.c (argp_parser): Don't pass translated strings
14940 as printf format strings; the translations might contain '%' which
14941 could cause a crash.
14942 (main): Likewise.
14943 * util/grub-fstest.c (argp_parser): Likewise.
14944 * util/grub-setup.c (argp_parser): Likewise.
14945 (main): Likewise.
14946
14947 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14948
14949 Use argp in grub-fstest.
14950
14951 * util/grub-fstest.c: Don't include getopt.h.
14952 Include argp.h.
14953 (root): New variable.
14954 (args_count): Likewise.
14955 (nparm): Likewise.
14956 (num_disks): Likewise.
14957 (images): Likewise.
14958 (cmd): Likewise.
14959 (debug_str): Likewise.
14960 (args): Likewise.
14961 (options): Transformed to argp.
14962 (usage): Removed.
14963 (main): Split argument parsing into ...
14964 (argp_parser): ... this. Changed to argp format.
14965 (argp): New variable.
14966 (main): Use argp_parse.
14967
14968 2010-09-20 Tristan Gingold <gingold@free.fr>
14969 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
14970 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14971
14972 * grub-core/commands/efi/lsefimmap.c: New file.
14973 * grub-core/Makefile.core.def (lsefimmap): New module.
14974 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
14975
14976 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 Pause the execution (10s max) if any errors are displayed so the user
14979 has a chance to see them.
14980
14981 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
14982 (grub_print_error): Increment grub_err_printed_errors.
14983 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
14984 execution if any errors were displayed.
14985 (show_menu): Remove old code for pause.
14986 * grub-core/normal/menu_entry.c (run): Likewise.
14987 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
14988 users updated.
14989 (grub_normal_get_char_counter): Likewise.
14990 * include/grub/err.h (grub_err_printed_errors): New external variable.
14991 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
14992
14993 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 Support multiboot VBE info.
14996
14997 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14998 Take VBE info into account.
14999 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15000 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15001 Call fill_vbe_info when appropriate.
15002 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15003 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15004 as supported.
15005 (grub_multiboot_get_mbi_size): Take new tags into account.
15006 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15007 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15008 Call fill_vbe_tag when appropriate.
15009 (grub_multiboot_make_mbi): Properly align tags.
15010 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15011 function.
15012 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15013 proto.
15014 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15015
15016 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 Suport manual terminal geometry specification.
15019
15020 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15021 Save state in grub_ofconsole_terminfo_output.
15022 (grub_ofconsole_term): Use grub_terminfo_getwh.
15023 (grub_ofconsole_getwh): Removed.
15024 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15025 (grub_serial_term): Use grub_terminfo_getwh.
15026 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15027 (options): New struct.
15028 (OPTION_*): New enum.
15029 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15030 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15031 width and height.
15032 (grub_terminfo_getwh): New proto.
15033 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15034
15035 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 Handle legacy "terminal" command.
15038
15039 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15040 and FLAG_TERMINAL.
15041 (legacy_commands): Add terminal and title.
15042 (grub_legacy_parse): Handle terminal. Simplify title handling.
15043
15044 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15045
15046 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15047 parameters overflow.
15048
15049 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15050
15051 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15052 widthspec.h.
15053
15054 * docs/grub.texi (Shell-like scripting): Document `!'.
15055 (Network): Simplify using new i386-pc-pxe format. Mention
15056 grub-mknetdir.
15057
15058 * NEWS: Update.
15059
15060 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15061
15062 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15063 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15064 when needed.
15065
15066 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15067
15068 * grub-core/commands/efi/lsefisystab.c: Correct header.
15069 * grub-core/commands/efi/lssal.c: Likewise.
15070 * grub-core/commands/testload.c: Likewise.
15071
15072 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15073
15074 * util/grub-mkrescue.in: Add explicit root argument to --set to
15075 prevent the UUID being interpreted as an argument to --set (matches
15076 previous change to prepare_grub_to_access_device).
15077
15078 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15079
15080 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15081 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15082 the verbosity of later #ifs.
15083 (find_partition_start): Define this function on FreeBSD too.
15084 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15085 function.
15086 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15087 on FreeBSD.
15088
15089 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15090
15091 * util/grub-editenv.c: Use argp instead of getopt.
15092
15093 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15094
15095 * util/grub-setup.c: Use argp instead of getopt.
15096
15097 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15098
15099 Use gnulib-tool to create gnulib source files.
15100
15101 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15102 grub-core/gnulib directories
15103 * .bzignore: Add **/.deps and autogenerated gnulib files
15104 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15105 of gnulib macros, add grub-core/gnulib/Makefile
15106 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15107 include m4 directory to aclocal.
15108 * Makefile.util.def: Remove direct compilation of gnulib source files
15109 and use the new grub-core/gnulib/libgnu.a.
15110 * build-aux/config.rpath: move config.rpath from top directory to
15111 build-aux
15112 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15113 in gnulib headers
15114 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15115 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15116 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15117 header.
15118 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15119 string.
15120
15121 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15122
15123 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15124 grub-core/genmod.sh and grub-core/gensyminfo.sh
15125
15126 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15127
15128 Add a test for echo command options.
15129
15130 * tests/grub_cmd_echo.in: New test.
15131 * Makefile.util.def: Rules for new test.
15132
15133 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15134
15135 Remove crc.mod and move crc command to hashsum.mod.
15136 Remove lib/crc.c - users updated to use gcrypt implementation.
15137
15138 * grub-core/commands/crc.c: Removed.
15139 * grub-core/Makefile.core.def (crc): Module removed.
15140 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15141 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15142 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15143 * grub-core/lib/crc.c: Removed.
15144 * include/grub/lib/crc.h: Removed.
15145 * Makefile.util.def (crc): Remove lib/crc.c
15146 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15147 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15148 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15149 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15150 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15151 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15152
15153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15156
15157 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 Split config.h for util and core.
15160
15161 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15162 (ADDR32): Likewise.
15163 (DATA32): Likewise.
15164 (BSS_START_SYMBOL): Likewise.
15165 (END_SYMBOL): Likewise.
15166 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15167 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15168 * config.h.in: New file.
15169 * configure.ac: Use config-util.h as config define file.
15170 Rename MACHINE into GRUB_MACHINE. All users updated.
15171 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15172 updated.
15173 (NESTED_FUNC_ATTR): Likewise.
15174 Substitue new variables.
15175 (COND_HAVE_ASM_USCORE): New conditional.
15176 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15177 (kernel_syms.lst): Use ASM_PREFIX.
15178 * grub-core/kern/emu/console.c: Include config-util.h.
15179 * grub-core/kern/emu/misc.c: Likewise.
15180 * grub-core/kern/emu/mm.c: Likewise.
15181 * include/grub/emu/misc.h: Likewise.
15182 * include/grub/libgcc.h: Likewise.
15183
15184 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15185
15186 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15187 constants usage.
15188 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15189 Fix GRUB_TERM_KEY_* constants usage.
15190 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15191
15192 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15193
15194 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15195 print pointer.
15196 * grub-core/bus/usb/uhci.c: Remove empty define.
15197 (grub_uhci_check_transfer): Add missing cast.
15198 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15199 print pointer.
15200 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15201 PRIuGRUB_SIZE.
15202 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15203
15204 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15205
15206 * grub-core/Makefile.core.def (legacycfg): Add
15207 lib/i386/pc/vesa_modes_table.c on emu.
15208
15209 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15210
15211 Reduce number of temporary files generated by build system.
15212
15213 * grub-core/gencmdlist.sh: Removed.
15214 * grub-core/genfslist.sh: Removed.
15215 * grub-core/genhandlerlist.sh: Removed.
15216 * grub-core/genmodsrc.sh: Removed.
15217 * grub-core/genpartmaplist.sh: Removed.
15218 * grub-core/genparttoollist.sh: Removed.
15219 * grub-core/gentermiinallist.sh: Removed.
15220 * grub-core/genvideolist.sh: Removed.
15221
15222 * grub-core/genmod.sh.in: New file.
15223 * grub-core/gensyminfo.sh.in: New file.
15224
15225 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15226 * conf/Makefile.extra-dist: Update with new files.
15227 * gentpl.py: Remove rules related to unnecessary temporary files.
15228 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15229 and und-* files.
15230 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15231 genmod.sh scripts.
15232 * grub-core/bus/usb/uhci.c: Remove empty #define.
15233 * grub-core/genmoddep.awk: Updated with new syminfo format.
15234 * util/bash-completion.d/Makefile.am: Add config.log to
15235 CLEANFILES.
15236
15237 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15238
15239 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15240
15241 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15242
15243 * util/grub-mkconfig.in: Check the config script for syntax errors
15244 before saving.
15245
15246 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15247 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15248
15249 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15250 platforms.
15251 * util/grub-install.in: Add EFI and IEEE1275 support.
15252 * util/i386/efi/grub-install.in: Removed.
15253 * util/ieee1275/grub-install.in: Likewise.
15254
15255 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15256
15257 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15258 (grub_cmd_cmosclean): Likewise.
15259 (GRUB_MOD_INIT): Register command cmosclean.
15260 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15261 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15262
15263 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15264 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15265 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 Add keyboard layouts support.
15268
15269 * Makefile.util.def (grub-mklayout): New file.
15270 (grub-kbdcomp): New script.
15271 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15272 Add keyboard_layouts.h.
15273 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15274 commands/boot.c on yeeloong.
15275 (keylayouts): New module.
15276 * grub-core/bus/usb/ohci.c
15277 * grub-core/bus/usb/uhci.c
15278 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15279 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15280 (attach_root_port): Likewise.
15281 (poll_nonroot_hub): Likewise.
15282 (grub_usb_poll_devices): Likewise.
15283 (detach_device): Close transfer.
15284 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15285 function.
15286 (grub_usb_bulk_setup_readwrite): Likewise.
15287 (grub_usb_bulk_finish_readwrite): Likewise.
15288 * grub-core/commands/keylayouts.c: New file.
15289 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15290 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15291 aliases.
15292 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15293 support scancode 2.
15294 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15295 * include/grub/keyboard_layouts.h: New file.
15296 * util/grub-mklayout.c: New file.
15297 * util/grub-kbdcomp.in: Likewise.
15298
15299 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15300
15301 Unify memory types.
15302
15303 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15304 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15305 types.
15306 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15307 (grub_upper_mem): Likewise.
15308 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15309 * include/grub/memory.h (grub_memory_type_t): New enum.
15310 All users updated.
15311
15312 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15313
15314 * grub-core/Makefile.core.def (lsapm): New module.
15315 * grub-core/commands/i386/pc/lsapm.c: New file.
15316 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15317 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15318 Likewise.
15319 * include/grub/i386/pc/apm.h: New file.
15320 * include/multiboot.h (multiboot_apm_info): New struct.
15321
15322 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15323
15324 GRUB-legacy configuration file support.
15325
15326 * Makefile.util.def (grub-menulst2cfg): New util.
15327 * docs/man/grub-menulst2cfg.h2m: New file.
15328 * grub-core/Makefile.core.def (legacycfg): New module.
15329 * grub-core/commands/legacycfg.c: New file.
15330 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15331 (grub_normal_add_menu_entry): ... this.
15332 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15333 (grub_normal_set_password): ...this.
15334 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15335 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15336 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15337 * grub-core/lib/legacy_parse.c: New file.
15338 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15339 * include/grub/i386/pc/vesa_modes_table.h: New file.
15340 * include/grub/legacy_parse.h: Likewise.
15341 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15342 * util/grub-menulst2cfg.c: New file.
15343
15344 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15345
15346 * grub-core/kern/emu/hostdisk.c
15347 (convert_system_partition_to_system_disk): Initialise node.
15348
15349 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15350
15351 * grub-core/kern/emu/hostdisk.c
15352 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15353 leak.
15354 Reported and based on patch by: Modestas Vainius.
15355
15356 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15357
15358 Fix DM-RAID probing with recent versions of device-mapper udev
15359 rules.
15360
15361 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15362 canonicalise device paths under /dev/mapper/.
15363 (convert_system_partition_to_system_disk): Compare the
15364 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15365 path, since device nodes under /dev/mapper/ are often symlinks.
15366
15367 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15368
15369 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15370
15371 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15372
15373 * configure.ac: Avoid some annoying error messages if freetype-config
15374 program is not found.
15375
15376 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15377
15378 Support RAID on virtio devices, and others.
15379
15380 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15381 Rename to ...
15382 [__MINGW32__] (grub_find_device): ... this.
15383 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15384 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15385 reasonable default if dir is NULL.
15386 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15387 ...
15388 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15389 (grub_guess_root_device): Update callers.
15390 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15391
15392 * util/raid.c (grub_util_getdiskname): Remove.
15393 (grub_util_raid_getmembers): Use grub_find_device rather than
15394 grub_util_getdiskname.
15395
15396 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15397
15398 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15399 needing to be compiled with serial support.
15400 (ls): Indicate that multiple files are accepted.
15401 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15402 indicate that multiple files are accepted.
15403
15404 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15405
15406 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15407 libgrub_a_init.c, and util/bash-completion.d/grub.
15408
15409 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 * util/grub-setup.c (setup): Fix incorrect container semantics.
15412
15413 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15416 misusage.
15417 Reported by: J. Nick Terry
15418
15419 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15420
15421 Move embedding routines to partmap sources files.
15422
15423 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15424 [GRUB_UTIL]: New variable.
15425 (gpt_partition_map_iterate): Set part.parent.
15426 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15427 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15428 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15429 New function.
15430 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15431 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15432 (grub_partition_map) [GRUB_UTIL]: New field embed.
15433 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15434 (setup): Use ->embed.
15435
15436 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15439 function.
15440 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15441 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15442
15443 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15444
15445 Add function to get completions from usage.
15446
15447 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15448 completions from usage. Use LC_ALL=C to get options properly.
15449
15450 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15451
15452 * grub-core/gnulib/basename-lgpl.c: Imported.
15453 * grub-core/gnulib/basename.c: Likewise.
15454 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15455 * grub-core/gnulib/dirname.c: Likewise.
15456 * grub-core/gnulib/dirname.h: Likewise.
15457 * grub-core/gnulib/stripslash.c: Likewise.
15458
15459 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 * grub-core/gnulib/error.c: Resynced.
15462 * grub-core/gnulib/getopt.c: Likewise.
15463 * grub-core/gnulib/getopt_int.h: Likewise.
15464 * grub-core/gnulib/regex.h: Likewise.
15465 * grub-core/gnulib/regex_internal.c: Likewise.
15466 * grub-core/gnulib/regex_internal.h: Likewise.
15467
15468 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15469
15470 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15471 CRC calculations and validity checks.
15472 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15473 calculations.
15474
15475 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15476
15477 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15478
15479 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15480
15481 Fix incorrect echo options handling.
15482 Reported by: Yves Blusseau.
15483
15484 * include/grub/command.h (grub_command_flags_t): New flags
15485 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15486 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15487 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15488
15489 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15490
15491 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15492 users updated.
15493 (GRUB_COMMAND_FLAG_MENU): Likewise.
15494 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15495 (GRUB_COMMAND_FLAG_TITLE): Removed.
15496 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15497 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15498 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15499 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15500 (grub_command_flags_t): New enum. All users updated.
15501
15502 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15503
15504 Fix solaris compilation.
15505
15506 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15507 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15508 (grub-emu-list): Likewise.
15509
15510 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15511
15512 Remove deprecated root command.
15513
15514 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15515 updated.
15516
15517 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 * util/i386/pc/grub-setup.c: Merge this ...
15520 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15521 * util/grub-setup.c: ... into this.
15522 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15523 New struct.
15524
15525 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15528 possible.
15529
15530 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15533 allocate p.
15534
15535 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15536
15537 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15538 explicit root argument to set to prevent UUID to be interpreted as
15539 argument to set.
15540
15541 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15544
15545 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15546
15547 Don't export grub_gate_a20.
15548
15549 * grub-core/kern/i386/pc/init.c: Remove leftovers.
15550 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
15551 to ...
15552 (grub_gate_a20): ... this. All users updated.
15553 * include/grub/i386/pc/init.h: Removed. All users updated.
15554
15555 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 Create euro.pf2 which supports most European languages.
15558
15559 * Makefile.am (grubdata_DATA): Add euro.pf2.
15560 (euro.pf2): New target.
15561 (CLEANFILES): Add euro.pf2.
15562
15563 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15564
15565 * configure.ac: Disable emu-usb by default to prevent inadvertent
15566 device takeover.
15567
15568 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15569
15570 Disable usbserial on grub-emu since our libusb code isn't good enough
15571 yet.
15572
15573 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
15574 (usbserial_pl2303): Likewise.
15575 (usbserial_ftdi): Likewise.
15576
15577 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15578
15579 * include/grub/disk.h (grub_disk): Remove has_partitions.
15580 All users updated.
15581 * disk/loopback.c (grub_loopback): Remove has_partitions.
15582 All users updated.
15583 (options): Remove partitions. All users updated.
15584 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
15585 * util/i386/pc/grub-setup.c (setup): copy partition table only when
15586 actual partition table is found.
15587
15588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 Remove readability checks (too many false negatives).
15591
15592 * util/grub-install.in: Remove readability checks.
15593 * util/grub-mkconfig.in: Likewise.
15594 * util/grub.d/10_hurd.in: Likewise.
15595 * util/grub.d/10_kfreebsd.in: Likewise.
15596 * util/grub.d/10_linux.in: Likewise.
15597 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
15598 way.
15599
15600 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 Enable acpi shutdown on all ACPI platforms.
15603
15604 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
15605 on coreboo, multiboot and EFI.
15606 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
15607 (grub_acpi_halt): Likewise.
15608 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
15609 (grub_cmd_halt): Don't call grub_acpi_halt directly.
15610 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
15611 * grub-core/lib/i386/halt.c (grub_halt)
15612 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
15613
15614 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
15617 context.
15618
15619 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15620
15621 * grub-core/video/efi_gop.c: Fix over-80-chars line.
15622 * grub-core/video/efi_uga.c: Likewise.
15623
15624 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15625
15626 Filter devaliases and never open same device twice.
15627
15628 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
15629 (last_ihandle): Likewise.
15630 (ofdisk_hash_ent): New member shortest.
15631 (ofdisk_hash_add): Add canonical path too.
15632 (scan): New function.
15633 (grub_ofdisk_iterate): Iterate over hashed entries.
15634 (compute_dev_path): Don't add :0.
15635 (grub_ofdisk_open): Don't really open the disk.
15636 (grub_ofdisk_close): Avoid closing unrelated disk.
15637 (grub_ofdisk_read): Implement reopen logic.
15638 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
15639 New function.
15640 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
15641 New proto.
15642
15643 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 Fix sparc64.
15646
15647 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
15648 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
15649 right address. Add sparc64_ieee1275_ldflags.
15650 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
15651 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
15652 to grub_host_to_target_addr
15653 (load_image): Likewise.
15654
15655 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15656
15657 * grub-core/normal/completion.c (complete_file): Handle device
15658 containing slash.
15659 Fix based on patch by Doug Nazar.
15660
15661 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 grub-mknetdir script.
15664
15665 * Makefile.util.def (grub-mknetdir): New module.
15666 * tests/util/grub-shell.in: Support boot=net
15667 * util/grub-mknetdir.in: New file.
15668
15669 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 videoinfo on non-vbe.
15672
15673 * grub-core/Makefile.core.def (vbeinfo): Removed.
15674 (vbetest): Removed.
15675 (videoinfo): New module.
15676 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
15677 * grub-core/commands/i386/pc/vbetest.c: Removed.
15678 * grub-core/commands/videoinfo.c: New file.
15679 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
15680 specification.
15681 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
15682 as vbetest.
15683 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
15684 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
15685 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
15686 mode_number. New parameter mode. All users updated.
15687 (grub_video_gop_iterate): New function.
15688 (grub_video_efi_gop): New member iterate.
15689 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
15690 (grub_vbe_set_video_mode): Remove setting useless fields.
15691 (vbe2videoinfo): New function.
15692 (grub_video_vbe_iterate): Likewise.
15693 (grub_video_vbe_setup): Use vbe2videoinfo.
15694 (grub_video_vbe_print_adapter_specific_info): New function.
15695 (grub_video_vbe_adapter): New fields iterate and
15696 print_adapter_specific_info.
15697 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
15698 All users updated.
15699 (grub_video_mode_info): New field mode_number.
15700 (grub_video_adapter): New fields iterate and
15701 print_adapter_specific_info.
15702
15703 2010-09-13 Tristan Gingold <gingold@free.fr>
15704 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
15705 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15706
15707 * grub-core/commands/efi/lsefisystab.c: New file.
15708 * grub-core/commands/efi/lssal.c: Likewise.
15709 * grub-core/Makefile.core.def (lsacpi): New module.
15710 (lsefisystab): Likewise.
15711 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
15712 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
15713 (grub_efi_sal_system_table): New struct.
15714 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
15715 (grub_efi_sal_system_table_memory_descriptor): Likewise.
15716 (grub_efi_sal_system_table_platform_features): Likewise.
15717 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
15718 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
15719 (grub_efi_sal_system_table_ap_wakeup): Likewise.
15720 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
15721
15722 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 Support explicit user claim that a device is BIOS-visible.
15725
15726 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
15727 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
15728 * grub-core/kern/emu/hostdisk.c
15729 (convert_system_partition_to_system_disk): Support mdX.
15730 (find_system_device): New parameter add. All users updated.
15731 (grub_util_biosdisk_is_present): New function.
15732 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
15733 proto.
15734
15735 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15736
15737 Search hints support.
15738
15739 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
15740 All users updated.
15741
15742 2010-09-13 Yves Blusseau <blusseau@zetam.org>
15743
15744 Bash completion script for util commands
15745
15746 * Makefile.am: Add util/bash-completion.d directory
15747 * configure.ac: Likewise.
15748 * util/bash-completion.d/Makefile.am: New file.
15749 * util/bash-completion.d/grub-completion.bash.in: Likewise.
15750
15751 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
15754 (print_backlog): set backlog_ucs4 and backlog_glyphs.
15755 Reported by: Yves Blusseau.
15756
15757 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15758
15759 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
15760 partition size and offset.
15761
15762 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15763
15764 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
15765
15766 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15767
15768 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
15769
15770 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
15773 (grub_xvasprintf): Likewise.
15774
15775 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
15778
15779 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
15782 args ending with NULL.
15783
15784 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
15787 pointer.
15788
15789 2010-09-11 Szymon Janc <szymon@janc.net.pl>
15790
15791 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
15792
15793 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 Shutdown using ACPI.
15796
15797 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
15798 * grub-core/commands/acpihalt.c: New file.
15799 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
15800 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
15801 (grub_acpi_halt): New proto.
15802 (GRUB_ACPI_SLP_EN): New const.
15803 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
15804 (GRUB_ACPI_OPCODE_*): New enum.
15805 (GRUB_ACPI_EXTOPCODE_*): Likewise.
15806
15807 2010-09-11 Tristan Gingold <gingold@free.fr>
15808 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
15809 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15810
15811 * commands/lsacpi.c: New file.
15812 * grub-core/Makefile.core.def (lsacpi): New module.
15813 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
15814 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
15815 (grub_acpi_madt_entry_header): New struct.
15816 (grub_acpi_madt): Likewise.
15817 (grub_acpi_madt_entry_interrupt_override): Likewise.
15818 (grub_acpi_madt_entry_sapic): Likewise.
15819 (grub_acpi_madt_entry_lsapic): Likewise.
15820 (grub_acpi_madt_entry_platform_int_source): Likewise.
15821 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
15822 (PRIuGRUB_UINT32_T): Likewise.
15823 (PRIxGRUB_UINT64_T): Likewise.
15824
15825 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15826
15827 Implement loading palette on ieee1275_fb.
15828
15829 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
15830 (have_setcolors): Likewise.
15831 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
15832 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
15833 (grub_video_ieee1275_set_palette): Implement.
15834
15835 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15836 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
15837
15838 * util/grub-install.in (grub_partition): New variable.
15839 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
15840 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
15841 Fixes a bug reported by Yves Blusseau.
15842
15843 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15844
15845 Fix emu on mipsel.
15846
15847 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
15848 =grub_cpu_flush_cache on all mips and not only yeeloong.
15849 * configure.ac (COND_mips): New conditional.
15850 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
15851 platforms.
15852 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
15853 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
15854 [GRUB_LINKER_HAVE_INIT]: New function.
15855 (grub_emu_post_init): Likewise.
15856 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
15857 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
15858 * include/grub/cache.h (_mips): Include mips/cache.h.
15859 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
15860 LVM and RAID prototypes.
15861 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
15862 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
15863 function.
15864
15865 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15866
15867 * util/grub-install.in: Don't try to verify core.img until after
15868 running grub-mkimage to create it.
15869
15870 2010-09-10 Robert Millan <rmh@gnu.org>
15871
15872 * util/grub.d/10_hurd.in: Add misc readability checks.
15873 * util/grub.d/10_kfreebsd.in: Likewise.
15874 * util/grub.d/10_linux.in: Likewise.
15875
15876 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15877
15878 * util/grub-install.in: ${imgext} won't be defined here until the
15879 install branch is merged. For the meantime, only verify core.img on
15880 i386-pc and sparc64-ieee1275 platforms.
15881
15882 2010-09-10 Robert Millan <rmh@gnu.org>
15883
15884 Solaris support in grub_find_zpool_from_dir(). Thanks
15885 Seth Goldberg for referring to getextmntent() facility.
15886
15887 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
15888 `sys/mkdev.h'.
15889 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
15890 `<sys/mnttab.h>'.
15891 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
15892 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
15893 method for finding zpool name.
15894
15895 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15896
15897 grub-fstest needs the host and hostfs modules while other utilities
15898 actively require those modules to be absent, so grub-fstest needs
15899 its own initialisation and finalisation code.
15900
15901 * Makefile.am (grub_fstest.pp): New target.
15902 (grub_fstest_init.lst): Likewise.
15903 (grub_fstest_init.c): Likewise.
15904 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
15905
15906 2010-09-10 Robert Millan <rmh@gnu.org>
15907
15908 * configure.ac: Check for `struct statfs.f_fstypename' and
15909 `struct statfs.f_mntfromname'.
15910
15911 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
15912 kFreeBSD-specific code.
15913
15914 2010-09-10 Robert Millan <rmh@gnu.org>
15915
15916 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
15917 on ZFS. Now non-main filesystems are supported as / too.
15918
15919 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
15920
15921 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
15922 and grub-core/disk/host.c to ...
15923 (grub-fstest): ... here. Having the host disk implementation
15924 present confuses grub-probe and other utility programs.
15925
15926 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
15927 when writing to a file, not when writing to stdout.
15928
15929 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
15930
15931 * tests/partmap_test.in: New test for partitions.
15932 * Makefile.util.def: Rules for new test.
15933
15934 2010-09-09 Robert Millan <rmh@gnu.org>
15935
15936 * util/grub-probe.c (probe): Fix a pair of unhandled error
15937 conditions.
15938
15939 2010-09-09 Robert Millan <rmh@gnu.org>
15940
15941 Basic Btrfs support (detection and UUID).
15942
15943 * grub-core/fs/btrfs.c: New file.
15944 * Makefile.util.def (library): Register btrfs.c.
15945 * grub-core/Makefile.core.def: Likewise.
15946
15947 2010-09-08 Robert Millan <rmh@gnu.org>
15948
15949 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
15950 with (optional) parameters to specify device and relative path.
15951 * util/grub-install.in: Use is_path_readable_by_grub() to
15952 verify readability of a few critical files.
15953 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
15954 verify readability of grub.cfg.new.
15955
15956 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 Split minix.mod into minix.mod and minix2.mod.
15959
15960 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
15961 * grub-core/Makefile.core.def (minix2): New module.
15962 * grub-core/fs/minix.c: Use definitions instead of runtime version
15963 checking.
15964 * grub-core/fs/minix2.c: New file.
15965
15966 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15967
15968 Add new --boot-directory option to replace --root-directory
15969
15970 * util/grub-install.in: Add new --boot-directory option
15971 * util/grub-reboot.in: Likewise.
15972 * util/grub-set-default.in: Likewise.
15973
15974 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15975
15976 * util/grub-mkconfig.in: Use new variable.
15977
15978 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15979
15980 * configure.ac: Define some useful variables.
15981
15982 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15985 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
15986 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
15987 Use terminfo and don't use cursor-on/cursor-off unless it's known
15988 to work.
15989 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
15990 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
15991
15992 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
15993
15994 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
15995 starts with "(,", fill the drive containing the loaded image in
15996 between those two characters, but expect that a full partition
15997 specification including partition map names will follow.
15998
15999 2010-09-08 Robert Millan <rmh@gnu.org>
16000
16001 * configure.ac: Remove `--enable-grub-fstest' option.
16002 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16003
16004 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16005 `grub-fstest' instead of `grub-probe' for readability verification.
16006 * util/grub-probe.c (probe): Remove readability verification kludge.
16007
16008 2010-09-08 Robert Millan <rmh@gnu.org>
16009
16010 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16011 initializing `GRUB_FS'.
16012
16013 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16014
16015 Not command (!) support to GRUB script.
16016
16017 * tests/grub_script_not.in: New test.
16018 * Makefile.util.def: Rules for new test.
16019
16020 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16021 ! command as a special case.
16022 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16023
16024 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16025
16026 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16027 grub_free.
16028
16029 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16030
16031 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16032
16033 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16034
16035 * docs/grub.texi (Shell-like scripting): Documentation for break,
16036 continue, shift and return commands.
16037
16038 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16039
16040 Rename CD-ROM to cd on BIOS.
16041
16042 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16043 "cd".
16044 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16045
16046 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16049 * util/grub-probe.c (main): Likewise.
16050 * util/i386/pc/grub-setup.c (main): Likewise.
16051 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16052 Reported and debugged by: alexxy
16053
16054 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16057 diagnostic info.
16058
16059 2010-09-05 Jo Shields <directhex@apebox.org>
16060
16061 * util/grub.d/30_os-prober.in: Add missing classes.
16062
16063 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * docs/grub.texi (Theme file format): Document new position format.
16066
16067 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16070 a table. Use @code instead of @verbatim.
16071
16072 2010-09-05 Colin D Bennett <colin@gibibit.com>
16073
16074 Gfxmenu documentation.
16075
16076 * docs/grub.texi (Theme file format): New chapter.
16077
16078 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16079
16080 * grub-core/Makefile.core.def (xzio): New module.
16081 * grub-core/io/xzio.c: New file.
16082 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16083 * grub-core/lib/xzembed/xz_config.h: Likewise.
16084 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16085 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16086 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16087 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16088 * grub-core/lib/xzembed/xz_private.h: Likewise.
16089 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16090 * include/grub/file.h (grub_file_filter_id): New compression filter
16091 GRUB_FILE_FILTER_XZIO.
16092
16093 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16094
16095 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16096 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16097 size.
16098
16099 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16102 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16103
16104 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16105
16106 Uncompressed checksum support.
16107
16108 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16109 (check_list): New parameter uncompress.
16110 (grub_cmd_hashsum): Handle --uncompress.
16111
16112 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 Reintroduce testload.
16115
16116 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16117 from here ...
16118 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16119 (GRUB_MOD_INIT): New function.
16120 (GRUB_MOD_FINI): Likewise.
16121 * grub-core/Makefile.core.def (testload): New module.
16122
16123 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16124
16125 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16126 (uint8_t): New type.
16127 (uint16_t): Likewise.
16128 (uint32_t): Likewise.
16129 (uint64_t): Likewise.
16130
16131 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16132
16133 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16134
16135 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16138 Made static.
16139 (grub_gzfile_open): Removed. All users updated.
16140 (GRUB_MOD_INIT): New function.
16141 (GRUB_MOD_FINI): Likewise.
16142 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16143 (grub_file_filters_enabled): Likewise.
16144 (grub_file_open): Handle filters.
16145 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16146 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16147 * include/grub/file.h (grub_file_filter_id_t): New type.
16148 (grub_file_filter_t): Likewise.
16149 (grub_file_filters_all): New extern variable.
16150 (grub_file_filters_enabled): Likewise.
16151 (grub_file_filter_register): New inline function.
16152 (grub_file_filter_unregister): Likewise.
16153 (grub_file_filter_disable): Likewise.
16154 (grub_file_filter_disable_compression): Likewise.
16155 * include/grub/gzio.h: Removed.
16156
16157 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16158
16159 Filename expansion support for wildcards in GRUB script.
16160
16161 * tests/grub_script_expansion.in: New test.
16162 * Makefile.util.def: Rule for new test.
16163
16164 * grub-core/commands/wildcard.c: New file, implements filename
16165 expansion support for GRUB script.
16166 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16167 * grub-core/script/argv.c: Cosmetic changes.
16168 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16169 Refactored to perform wildcard expansion on arguments.
16170 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16171 struct.
16172
16173 * tests/util/grub-shell.in: Fix quoting for read input.
16174
16175 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16176
16177 Support for updating environment variables with matched substrings
16178 of regexp.
16179
16180 * tests/grub_cmd_regexp.in: New test.
16181 * Makefile.util.def: Rule for new test.
16182
16183 * grub-core/commands/regexp.c: New option -s to update environment
16184 variables with regexp matches.
16185
16186 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16187
16188 * include/grub/file.h (grub_file): New member not_easly_seekable.
16189 (grub_file_seekable): New inline function.
16190 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16191 easily seekable.
16192 (grub_gzio_open): Set not_easly_seekable.
16193 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16194 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16195
16196 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16197
16198 Support for options to appear multiple times on cmdline.
16199
16200 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16201 * grub-core/commands/extcmd.c: Support for repeatable option.
16202 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16203 repeatable option support.
16204
16205 Refactor menuentry into a regular command.
16206
16207 * grub-core/commands/menuentry.c: New file, menuentry command
16208 implementation.
16209 * grub-core/Makefile.core.def: Rule update for normal.mod.
16210 * grub-core/normal/main.c: Moved menuentry creation to
16211 grub-core/commands/menuentry.c.
16212 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16213 (grub_menu_execute_entry_real): Removed.
16214 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16215 function.
16216 (grub_script_execute_menuentry): Removed.
16217 * grub-core/script/parser.y (menuentry): Removed.
16218 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16219 * grub-core/script/yylex.l (menuentry): Removed.
16220 * include/grub/menu.h (grub_menu_init): New prototype.
16221 (grub_menu_fini): New prototype.
16222 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16223 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16224 (grub_script_execute_sourcecode): New prototype.
16225
16226 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16227
16228 "return" command for GRUB script functions.
16229
16230 * tests/grub_script_return.in: New test.
16231 * Makefile.util.def: Rules for new test.
16232
16233 * grub-core/script/execute.c (grub_script_return): New function.
16234 * grub-core/script/main.c: Register/unregister return commaond.
16235 * include/grub/script_sh.h (grub_script_return): New prototype.
16236
16237 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16238
16239 "setparams" command to update positional parameters.
16240
16241 * tests/grub_script_setparams.in: New test.
16242 * Makefile.util.def: Rules for new test.
16243
16244 * grub-core/script/argv.c (grub_script_argv_make): New function.
16245 * grub-core/script/execute.c (replace_scope): New function.
16246 (grub_script_setparams): New function.
16247 * grub-core/script/lexer.c: Remove unused variables.
16248 * grub-core/script/main.c: Register/unregister setparams command.
16249 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16250 (grub_script_setparams): New prototype.
16251
16252 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16253
16254 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16255 grub_free order.
16256
16257 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16258
16259 Support for passing block of commands as an argument to extcmds.
16260
16261 * Makefile.util.def: Rules for new test.
16262 * tests/grub_script_blockarg.in: New test.
16263 * grub-core/tests/test_blockarg.c: New file, block argument
16264 command used in the test.
16265
16266 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16267 (grub_register_extcmd_prio): New function prototype.
16268 (grub_extcmd_dispatcher): New function prototype.
16269 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16270 type.
16271 * include/grub/script_sh.h (struct grub_script): New members
16272 `children', `next_siblings' and `refcnt' for block arguments and
16273 reference counting.
16274 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16275 (grub_script_arg): New member `script' for block argument.
16276 (grub_script_argv): New member `script' for block argument.
16277 (grub_parser_param): New member `scripts' for block argument.
16278 (grub_script_mem_free): New extern function prototype.
16279 (grub_script_ref): New function prototype.
16280 (grub_script_unref): New function prototype.
16281
16282 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16283 extcmd form to support block arguments.
16284 * grub-core/script/argv.c: Block arguments support.
16285 * grub-core/script/execute.c: Likewise.
16286 * grub-core/script/lexer.c: Likewise.
16287 * grub-core/script/main.c: Likewise.
16288 * grub-core/script/script.c: Likewise.
16289 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16290 non-terminals.
16291
16292 * grub-core/commands/acpi.c: Update extcmd implementations with
16293 grub_extcmd_context_t.
16294 * grub-core/commands/cat.c: Likewise.
16295 * grub-core/commands/echo.c: Likewise.
16296 * grub-core/commands/extcmd.c: Likewise.
16297 * grub-core/commands/hashsum.c: Likewise.
16298 * grub-core/commands/hdparm.c: Likewise.
16299 * grub-core/commands/help.c: Likewise.
16300 * grub-core/commands/hexdump.c: Likewise.
16301 * grub-core/commands/i386/cpuid.c: Likewise.
16302 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16303 * grub-core/commands/i386/pc/halt.c: Likewise.
16304 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16305 * grub-core/commands/iorw.c: Likewise.
16306 * grub-core/commands/keystatus.c: Likewise.
16307 * grub-core/commands/loadenv.c: Likewise.
16308 * grub-core/commands/ls.c: Likewise.
16309 * grub-core/commands/lspci.c: Likewise.
16310 * grub-core/commands/memrw.c: Likewise.
16311 * grub-core/commands/probe.c: Likewise.
16312 * grub-core/commands/search_wrap.c: Likewise.
16313 * grub-core/commands/setpci.c: Likewise.
16314 * grub-core/commands/sleep.c: Likewise.
16315 * grub-core/disk/loopback.c: Likewise.
16316 * grub-core/hello/hello.c: Likewise.
16317 * grub-core/loader/i386/bsd.c: Likewise.
16318 * grub-core/loader/xnu.c: Likewise.
16319 * grub-core/term/gfxterm.c: Likewise.
16320 * grub-core/term/serial.c: Likewise.
16321 * grub-core/tests/lib/functional_test.c: Likewise.
16322
16323 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16324
16325 Multi-line quoted strings support.
16326
16327 * grub-core/script/lexer.c (append_newline): Removed.
16328 (grub_script_lexer_yywrap): Refactored.
16329 (grub_script_lexer_init): Refactored.
16330 * grub-core/script/yylex.l (yywrap): New function.
16331 (grub_lexer_resplit): New function.
16332 (grub_lexer_unput): New function.
16333 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16334 and resplit.
16335 * tests/grub_script_echo1.in: Added few more testcases.
16336
16337 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16338
16339 * grub-core/kern/misc.c: Don't add abort alias in utils.
16340 Reported by: echoline.
16341
16342 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16343
16344 Add missing files into "make dist" tarball for other platforms.
16345
16346 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16347 * conf/Makefile.common (dist_noinst_DATA): New variable.
16348 * conf/Makefile.extra-dist: Added missing make dist files.
16349 * grub-core/Makefile.core.def: Likewise.
16350
16351 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16352
16353 Compress grub_prefix.
16354
16355 * grub-core/boot/i386/pc/lnxboot.S: Use
16356 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16357 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16358 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16359 GRUB_MACHINE_PREFIX_END. All users updated.
16360 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16361 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16362 + 0x40.
16363 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16364 * util/grub-mkimage.c (image_target_desc): Change data_end to
16365 prefix_end. All users updated.
16366
16367 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16368
16369 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16370 value.
16371 (grub_openbsd_boot): Likewise.
16372 (grub_netbsd_boot): Likewise.
16373 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16374 (grub_xnu_boot): Likewise.
16375
16376 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16377
16378 * configure.ac: Clean LIBS variable after tests.
16379
16380 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16381
16382 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16383
16384 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16387 echo if libdevmapper will be used.
16388
16389 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16390
16391 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16392 constant for the same file.
16393
16394 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16395
16396 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16397
16398 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16399
16400 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16401 grub-core/*.pp.
16402
16403 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16404
16405 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16406 required by the boot protocol.
16407
16408 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16409 ebp and edi members.
16410 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16411 state.ebp and state.edi.
16412 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16413 %ebp and %edi according to grub_relocator32_ebp and
16414 grub_relocator32_edi respectively.
16415 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16416 and state.edi.
16417
16418 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 Add i386-pc-pxe image target.
16421
16422 * util/grub-mkimage.c (image_target_desc): New enum value
16423 IMAGE_I386_PC_PXE.
16424 (image_targets): New target i386-pc-pxe.
16425 (generate_image): Handle i386-pc-pxe image.
16426
16427 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 Fix grub_pxe_scan.
16430
16431 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16432 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16433 All users updated.
16434 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16435 (grub_pxe_pxenv): Correct type.
16436
16437 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16438
16439 * NEWS: Document most of the important changes since 1.98.
16440
16441 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16442
16443 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16444 generated manual page) a little.
16445
16446 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16447
16448 * docs/grub.texi: Add myself as an author.
16449
16450 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 * Makefile.util.def (libgrub.a): Add missing sunpc.
16453 Reported by: Seth Goldberg.
16454
16455 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16456
16457 Interrupt wrapping and code simplifications.
16458
16459 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16460 x86_noieee1275 which are functionaly equivalent in this case.
16461 (grub-install): Make source on each platform explicit. Enable on
16462 all noemu.
16463 * gentpl.py (x86_efi_pc): Removed group.
16464 (x86_noefi): Likewise.
16465 (i386_noefi): Likewise.
16466 (x86_noieee1275): Likewise.
16467 (i386_noieee1275): Likewise.
16468 (i386_noefi_noieee1275): Likewise.
16469 (i386_pc_qemu_coreboot): Likewise.
16470 (i386_coreboot_multiboot): Likewise.
16471 (i386_pc_coreboot_multiboot_qemu): Likewise.
16472 (x86_noefi_mips): Likewise.
16473 (noieee1275): Likewise.
16474 (ieee1275_mips): Likewise.
16475 (noemu_noieee1275): Likewise.
16476 (cmos): New group.
16477 (usb): Likewise.
16478 (videoinkernel): Likewise.
16479 (videomodules): Likewise.
16480 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16481 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16482 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16483 include/grub/loader.h, include/grub/msdos_partition.h,
16484 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16485 include/grub/machine/console.h, include/grub/machine/vga.h,
16486 include/grub/machine/vbe.h, include/grub/machine/init.h,
16487 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16488 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16489 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16490 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16491 * grub-core/Makefile.core.def (kernel): Explicit the source for
16492 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16493 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16494 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16495 Use videoinkernel tag.
16496 (usb): Enable on all usb.
16497 (usbserial_common): Likewise.
16498 (usbserial_pl2303): Likewise.
16499 (usbserial_ftdi): Likewise.
16500 (uhci): Enable on all x86.
16501 (ohci): Enable on all pci.
16502 (cmostest): Enable on all CMOS.
16503 (acpi): Include commands/acpi.c on all platforms.
16504 (halt): Add relevant lib/*/halt.c.
16505 (hdparm): Enable on all pci.
16506 (lspci): Likewise.
16507 (usbtest): Enable on all usb.
16508 (ata): Enable on all pci.
16509 (ata_pthru): Likewise.
16510 (usbms): Enable on all usb.
16511 (usb_keyboard): Likewise.
16512 (font): Use tag videomodules.
16513 (bufio): Likewise.
16514 (datetime): Use tag cmos. Enable on all noemu.
16515 (mmap): Use tags common and x86.
16516 (gfxterm): Use tag videomodules.
16517 (bitmap): Likewise.
16518 (bitmap_scale): Likewise.
16519 (video_fb): Likewise.
16520 (video): Likewise.
16521 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16522 adjust padding accordingly. All users updated.
16523 (grub_ohci_transaction): Fix bad format specification.
16524 (GRUB_MOD_INIT): Add asserts for struct size.
16525 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16526 (grub_alloc_td): Likewise.
16527 (grub_free_queue): Likewise.
16528 (grub_uhci_transfer): Likewise.
16529 (grub_uhci_transaction): Fix bad format specification.
16530 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16531 (grub_usb_bulk_readwrite): Likewise.
16532 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16533 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16534 Made static.
16535 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16536 Made static.
16537 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16538 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16539 Transformed into C.
16540 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16541 Moved from here ...
16542 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16543 ... here. Transformed into C. Made static.
16544 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16545 Moved from here ...
16546 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16547 ... here. Transformed into C. Made static.
16548 * grub-core/kern/i386/pc/startup.S
16549 (grub_biosdisk_check_int13_extensions): Moved from here ...
16550 * grub-core/disk/i386/pc/biosdisk.c
16551 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
16552 Made static.
16553 * grub-core/kern/i386/pc/startup.S
16554 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
16555 * grub-core/disk/i386/pc/biosdisk.c
16556 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
16557 Transformed into C. Made static.
16558 * grub-core/kern/i386/pc/startup.S
16559 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
16560 * grub-core/disk/i386/pc/biosdisk.c
16561 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
16562 Transformed into C. Made static.
16563 * grub-core/kern/i386/pc/startup.S
16564 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
16565 * grub-core/disk/i386/pc/biosdisk.c
16566 (grub_biosdisk_get_diskinfo_standard): ... here.
16567 Transformed into C. Made static.
16568 * grub-core/kern/i386/pc/startup.S
16569 (grub_biosdisk_get_num_floppies): Moved from here ...
16570 * grub-core/disk/i386/pc/biosdisk.c
16571 (grub_biosdisk_get_num_floppies): ... here.
16572 Transformed into C. Made static.
16573 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
16574 New function.
16575 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
16576 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
16577 Transformed into C. Made static.
16578 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
16579 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
16580 Transformed into C. Made static.
16581 * grub-core/kern/i386/ieee1275/init.c: Removed.
16582 * grub-core/kern/i386/misc.S: Likewise.
16583 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
16584 Splitted from here ...
16585 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
16586 Transformed into C. Made static. All users updated.
16587 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
16588 Transformed into C. Made static. All users updated.
16589 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
16590 Moved from here...
16591 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
16592 Transformed into C. Made static. All users updated.
16593 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
16594 Moved from here...
16595 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
16596 Transformed into C. Made static. All users updated.
16597 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
16598 Removed (replaced by C version).
16599 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
16600 Moved from here...
16601 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
16602 Transformed into C. Made static.
16603 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
16604 Moved from here...
16605 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
16606 ... here. Transformed into C.
16607 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
16608 Moved from here...
16609 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
16610 ... here. Transformed into C.
16611 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
16612 Moved from here...
16613 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
16614 ... here. Transformed into C. Made static.
16615 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
16616 Moved from here...
16617 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
16618 ... here. Transformed into C.
16619 * grub-core/kern/i386/pc/startup.S
16620 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
16621 * grub-core/video/i386/pc/vbe.c
16622 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
16623 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
16624 Moved from here...
16625 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
16626 ... here. Transformed into C.
16627 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
16628 Moved from here...
16629 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
16630 ... here. Transformed into C.
16631 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
16632 Moved from here...
16633 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
16634 ... here. Transformed into C.
16635 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
16636 Moved from here...
16637 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
16638 ... here. Transformed into C.
16639 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
16640 Moved from here...
16641 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
16642 ... here. Transformed into C. Made static.
16643 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
16644 Moved from here...
16645 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
16646 ... here. Transformed into C. Made static.
16647 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
16648 Moved from here...
16649 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
16650 ... here. Transformed into C. Made static.
16651 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
16652 pxe_rm_entry as third argument.
16653 (grub_bios_interrupt): New function.
16654 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
16655 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
16656 of calling grub_stop.
16657 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
16658 * grub-core/lib/efi/halt.c (grub_halt): ...here.
16659 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
16660 * grub-core/lib/emu/halt.c (grub_halt): ... here.
16661 * grub-core/lib/i386/halt.c: Moved from here ...
16662 * grub-core/lib/i386/halt.c: ... here.
16663 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
16664 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
16665 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
16666 grub_stop_floppy.
16667 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
16668 * include/grub/i386/coreboot/init.h: Removed.
16669 * include/grub/i386/multiboot/init.h: Likewise.
16670 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
16671 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
16672 * include/grub/i386/pc/int.h: New file.
16673 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
16674 (grub_pxe_scan): Removed.
16675 (grub_pxe_call): Update prototype.
16676 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
16677 prototypes.
16678 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
16679 * include/grub/i386/qemu/init.h: Removed.
16680 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
16681 noreturn.
16682 (grub_halt): Likewise.
16683 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
16684 (grub_reboot): Likewise.
16685 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
16686 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
16687 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
16688
16689 2010-08-30 Robert Millan <rmh@gnu.org>
16690
16691 * NEWS: Document addition of ZFS support in `grub-install' and
16692 `grub-mkconfig'.
16693
16694 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
16695
16696 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
16697 dprintf output.
16698
16699 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 Remove leftover embedding of font objects.
16702
16703 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16704 * util/grub-install.in (font): Removed.
16705 * util/grub-mkimage.c (generate_image): Remove font support. All users
16706 updated.
16707
16708 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 Remove leftover embedding of font objects.
16711
16712 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16713 * util/grub-install.in (font): Removed.
16714 * util/grub-mkimage.c (generate_image): Remove font support. All users
16715 updated.
16716
16717 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16718
16719 * docs/grub.texi (Network): Fix reference to pxe_blksize.
16720 Reported by: Ian Turner
16721
16722 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16723
16724 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
16725 timeout to avoid indefinite boot stalling.
16726
16727 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
16730 (grub_env_write_color_highlight): Likewise.
16731
16732 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 * grub-core/normal/term.c (print_more): Return to normal and not
16735 to standard state after printing "---MORE---".
16736
16737 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
16740 Mask out the bit 0x80 since it has other meaning that specifiing color.
16741
16742 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16743
16744 New relocator. Allows for more kernel support and more straightforward
16745 loader writing.
16746
16747 * Makefile.am (BOOTTARGET): New variable.
16748 (QEMU32): Likewise.
16749 (linux.init.x86_64): New target.
16750 (linux.init.i386): Likewise.
16751 (multiboot.elf): Likewise.
16752 (kfreebsd.elf): Likewise.
16753 (kfreebsd.aout): Likewise.
16754 (pc-chainloader.elf): Likewise.
16755 (pc-chainloader.bin): Likewise.
16756 (ntldr.elf): Likewise.
16757 (ntldr.bin): Likewise.
16758 (multiboot2.elf): Likewise.
16759 (kfreebsd.init.x86_64): Likewise.
16760 (kfreebsd.init.i386): Likewise.
16761 (knetbsd.init.i386): Likewise.
16762 (kopenbsd.init.i386): Likewise.
16763 (knetbsd.init.x86_64): Likewise.
16764 (kopenbsd.init.x86_64): Likewise.
16765 (linux-initramfs.i386): Likewise.
16766 (linux-initramfs.x86_64): Likewise.
16767 (kfreebsd-mfsroot.i386.img): Likewise.
16768 (knetbsd.image.i386): Likewise.
16769 (kopenbsd.image.i386): Likewise.
16770 (kopenbsd.image.x86_64): Likewise.
16771 (knetbsd.miniroot-image.i386.img): Likewise.
16772 (kfreebsd-mfsroot.x86_64.img): Likewise.
16773 (knetbsd.image.x86_64): Likewise.
16774 (knetbsd.miniroot-image.x86_64.img): Likewise.
16775 (kfreebsd-mfsroot.i386.gz): Likewise.
16776 (bootcheck-kfreebsd-i386): Likewise.
16777 (kfreebsd-mfsroot.x86_64.gz): Likewise.
16778 (bootcheck-kfreebsd-x86_64): Likewise.
16779 (knetbsd.miniroot-image.i386.gz): Likewise.
16780 (bootcheck-knetbsd-i386): Likewise.
16781 (bootcheck-kopenbsd-i386): Likewise.
16782 (bootcheck-kopenbsd-x86_64): Likewise.
16783 (knetbsd.miniroot-image.x86_64.gz): Likewise.
16784 (bootcheck-knetbsd-x86_64): Likewise.
16785 (bootcheck-linux-i386): Likewise.
16786 (bootcheck-linux-x86_64): Likewise.
16787 (bootcheck-linux16-i386): Likewise.
16788 (bootcheck-linux16-x86_64): Likewise.
16789 (bootcheck-multiboot): Likewise.
16790 (bootcheck-multiboot2): Likewise.
16791 (bootcheck-kfreebsd-aout): Likewise.
16792 (bootcheck-pc-chainloader): Likewise.
16793 (bootcheck-ntldr): Likewise.
16794 (CLEANFILES): Add new targets.
16795 (BOOTCHECKS): New variable.
16796 (.PHONY): Add bootchecks.
16797 (SUCCESSFUL_BOOT_STRING): New variable.
16798 (BOOTCHECK_TIMEOUT): Likewise.
16799 (bootcheck): New target
16800 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
16801 * configure.ac: Correct efiemu excuse.
16802 * docs/grub.texi (Supported kernels): New chapter.
16803 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
16804 include/grub/mm_private.h. Simplify inclusion of
16805 include/grub/boot.h, include/grub/loader.h
16806 and include/grub/msdos_partition.h
16807 (KERNEL_HEADER_FILES) [i386_coreboot]:
16808 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
16809 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
16810 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
16811 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
16812 include/grub/machine/loader.h.
16813 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
16814 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
16815 extra_dist.
16816 (pci.mod): Enable on i386-multiboot.
16817 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
16818 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
16819 i386-qemu.
16820 (relocator.mod): Rewritten.
16821 (aout.mod): Enable on all x86.
16822 (bsd.mod): Likewise.
16823 (ntldr.mod): New module.
16824 (linux.mod): Use loader/i386/linux.c on all x86.
16825 (xnu.mod): Enable on all x86.
16826 (vga_text.mod): disable on EFI and QEMU.
16827 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
16828 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
16829 * grub-core/efiemu/loadcore.c: Likewise.
16830 * grub-core/efiemu/main.c: Likewise.
16831 (grub_efiemu_exit_boot_services): Removed.
16832 (grub_efiemu_finish_boot_services): Likewise.
16833 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
16834 function.
16835 * grub-core/efiemu/i386/nocfgtables.c: New file.
16836 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
16837 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
16838 (grub_efi_finish_boot_services): Moved from here ...
16839 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
16840 Fille finish memory map and related data.
16841 (finish_mmap_buf): New variable.
16842 (grub_efi_uintn_t finish_mmap_size): Likewise.
16843 (grub_efi_uintn_t finish_key): Likewise.
16844 (grub_efi_uintn_t finish_desc_size): Likewise.
16845 (grub_efi_uint32_t finish_desc_version): Likewise.
16846 (grub_efi_is_finished): Likewise.
16847 (grub_efi_get_memory_map): Use saved memory map if EFI is already
16848 finished.
16849 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
16850 (grub_elf64_phdr_iterate): Likewise.
16851 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
16852 (grub_os_area_size): Likewise.
16853 (grub_machine_init): Don't reserve os area.
16854 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
16855 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16856 * grub-core/kern/i386/loader.S: Removed.
16857 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
16858 (grub_os_area_size): Likewise.
16859 (grub_machine_init): Don't reserve os area.
16860 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16861 Don't call grub_dl_unload_all.
16862 Don't include loader.S.
16863 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
16864 Declare the memory after _end as available.
16865 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
16866 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
16867 (GRUB_MM_ALLOC_MAGIC): Moved from here...
16868 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
16869 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
16870 * include/grub/mm_private.h (grub_mm_header): ... here.
16871 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
16872 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
16873 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
16874 (grub_mm_region): ..here. Removed addr. Added pre_size.
16875 All users updated.
16876 * grub-core/kern/mm.c (base): Renamed to ...
16877 (grub_mm_base): ... this. Made global.
16878 (grub_real_malloc): Alloc from end of region.
16879 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
16880 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
16881 * grub-core/kern/powerpc/cache_flush.S: ... here.
16882 * grub-core/lib/efi/relocator.c: New file.
16883 * grub-core/lib/i386/relocator.c: Rewritten.
16884 * grub-core/lib/i386/relocator16.S: New file.
16885 * grub-core/lib/i386/relocator32.S: Likewise.
16886 * grub-core/lib/i386/relocator64.S: Likewise.
16887 * grub-core/lib/i386/relocator_asm.S: Rewritten.
16888 * grub-core/lib/i386/relocator_common.S: New file.
16889 * grub-core/lib/ieee1275/relocator.c: Likewise.
16890 * grub-core/lib/mips/relocator.c: Rewritten.
16891 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
16892 stylistic adjustments.
16893 * grub-core/lib/powerpc/relocator.c: New file.
16894 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
16895 * grub-core/lib/relocator.c: Rewritten.
16896 * grub-core/lib/x86_64/relocator_asm.S: New file.
16897 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
16898 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
16899 (bsd_tag): New struct.
16900 (tags): New variable.
16901 (tags_last): Likewise.
16902 (netbsd_module): New struct.
16903 (netbsd_mods): New variable.
16904 (netbsd_mods_last): Likewise.
16905 (openbsd_opts): New parameter "serial".
16906 (OPENBSD_SERIAL_ARG): New definition.
16907 (netbsd_opts): New parameter "serial".
16908 (NETBSD_SERIAL_ARG): New definition.
16909 (grub_freebsd_add_meta): Reorganised into ...
16910 (grub_bsd_add_meta): ...this. All users updated.
16911 (grub_freebsd_add_mmap): Reorganised into ...
16912 (generate_e820_mmap): ...this...
16913 (grub_bsd_add_mmap): ...and this. All users updated.
16914 (grub_freebsd_list_modules): Use tags.
16915 (grub_netbsd_add_meta_module): New function.
16916 (grub_netbsd_list_modules): Likewise.
16917 (grub_freebsd_boot): Use relocator and finish EFI.
16918 (grub_openbsd_boot): Likewise.
16919 (grub_netbsd_setup_video): New function.
16920 (grub_netbsd_add_modules): Likewise.
16921 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
16922 and finish EFI.
16923 (grub_bsd_unload): Unload tags.
16924 (grub_bsd_load_aout): Use relocator.
16925 (grub_bsd_elf32_size_hook): New function.
16926 (grub_bsd_elf32_hook): Use relocator.
16927 (grub_bsd_elf64_size_hook): New function.
16928 (grub_bsd_elf64_hook): Use relocator.
16929 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
16930 (grub_bsd_load): Zero-out openbsd_ramdisk.
16931 (grub_bsd_load): Use relocator.
16932 (grub_cmd_openbsd): Support serial.
16933 (grub_cmd_netbsd): Support modules.
16934 (grub_cmd_freebsd_module): Use relocator.
16935 (grub_netbsd_module_load): New function.
16936 (grub_cmd_netbsd_module): Likewise.
16937 (grub_cmd_openbsd_ramdisk): Likewise.
16938 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
16939 kopenbsd_ramdisk.
16940 (GRUB_MOD_FINI): Unregister new commands.
16941 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
16942 (grub_freebsd_load_elfmodule_obj): Use relocator.
16943 (grub_freebsd_load_elfmodule): Likewise.
16944 (grub_freebsd_load_elf_meta): Likewise.
16945 (grub_netbsd_load_elf_meta): New function.
16946 (grub_openbsd_find_ramdisk): Likewise.
16947 * grub-core/loader/i386/bsd_helper.S: Removed.
16948 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
16949 * grub-core/loader/i386/bsd_trampoline.S: Removed.
16950 * grub-core/loader/i386/efi/linux.c: Likewise.
16951 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
16952 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
16953 (DEFAULT_VIDEO_MODE): Likewise.
16954 (real_mode_target): New variable.
16955 (prot_mode_target): Likewise.
16956 (initrd_mem_target): Likewise.
16957 (relocator): Likewise.
16958 (efi_mmap_buf): Likewise.
16959 (efi_mmap_size): Likewise.
16960 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
16961 (free_pages): Use relocator.
16962 (allocate_pages): Account for efi_mmap and use relocator. Return error.
16963 (grub_linux_setup_video): Return error.
16964 (grub_linux_trampoline_start): Removed.
16965 (grub_linux_trampoline_end): Likewise.
16966 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
16967 andd video parameters depending on firmware.
16968 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
16969 [GRUB_MACHINE_EFI]: Pass EFI parameters.
16970 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
16971 (grub_cmd_initrd): Use relocator.
16972 * grub-core/loader/i386/linux_trampoline.S: Removed.
16973 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
16974 (elf_sec_entsize): Likewise.
16975 (elf_sec_shstrndx): Likewise.
16976 (elf_sections): Likewise.
16977 (grub_multiboot_load): Use relocator.
16978 (grub_multiboot_get_mbi_size): Account for sections.
16979 (grub_multiboot_make_mbi): Use relocator and support sections.
16980 (grub_multiboot_add_elfsyms): New function.
16981 (grub_multiboot_free_mbi): Free sections.
16982 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
16983 (grub_linux_real_target): Likewise.
16984 (grub_linux_real_chunk): Likewise.
16985 (grub_linux16_prot_size): Likewise.
16986 (grub_linux16_boot): Use relocator.
16987 (grub_linux_unload): Unload relocator.
16988 (grub_cmd_linux): Use relocator.
16989 (grub_cmd_initrd): Likewise.
16990 * grub-core/loader/i386/pc/ntldr.c: New file.
16991 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
16992 Don't try to guess CPU frequency.
16993 (grub_xnu_set_video): Stretch bitmap.
16994 (grub_xnu_boot): Use relocator.
16995 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
16996 (grub_linux_unload): Free relocator.
16997 (grub_linux_load32): Use relocator.
16998 (grub_linux_load64): Likewise.
16999 (grub_cmd_initrd): Likewise.
17000 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17001 (grub_multiboot_unload): Unload relocator.
17002 (grub_cmd_multiboot): Use relocator.
17003 (grub_cmd_module): Likewise.
17004 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17005 Use relocator and support sections.
17006 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17007 (elf_sec_entsize): Likewise.
17008 (elf_sec_shstrndx): Likewise.
17009 (elf_sections): Likewise.
17010 (grub_multiboot_load): Use relocator.
17011 (grub_multiboot_get_mbi_size): Account for sections.
17012 (grub_multiboot_make_mbi): Use relocator and support sections.
17013 (grub_multiboot_add_elfsyms): New function.
17014 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17015 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17016 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17017 Prototype changed. All users updated.
17018 (grub_xnu_align_heap): Simplified.
17019 (grub_xnu_writetree_toheap): Likewise.
17020 (grub_xnu_unload): Unload relocator.
17021 (grub_cmd_xnu_kernel): Use relocator.
17022 (grub_cmd_xnu_kernel64): Likewise.
17023 (grub_xnu_register_memory): Simplified.
17024 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17025 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17026 EFI is finished.
17027 (grub_console_checkkey): Likewise.
17028 (grub_console_getkey): Likewise.
17029 (grub_console_getwh): Likewise.
17030 (grub_console_getxy): Likewise.
17031 (grub_console_gotoxy): Likewise.
17032 (grub_console_cls): Likewise.
17033 (grub_console_setcolorstate): Likewise.
17034 (grub_console_setcursor): Likewise.
17035 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17036 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17037 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17038 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17039 * grub-core/tests/boot/kernel-8086.S: Likewise.
17040 * grub-core/tests/boot/kernel-i386.S: Likewise.
17041 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17042 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17043 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17044 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17045 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17046 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17047 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17048 * grub-core/tests/boot/linux.cfg: Likewise.
17049 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17050 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17051 * grub-core/tests/boot/linux16.cfg: Likewise.
17052 * grub-core/tests/boot/multiboot.cfg: Likewise.
17053 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17054 * grub-core/tests/boot/ntldr.cfg: Likewise.
17055 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17056 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17057 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17058 New definition.
17059 * include/grub/dl.h (grub_dl_unload_all): Removed.
17060 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17061 (grub_efi_finish_boot_services): Change prototype.
17062 (grub_efi_is_finished): New variable.
17063 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17064 Changed prototype.
17065 (grub_efiemu_finish_boot_services): Removed.
17066 (grub_machine_efiemu_init_tables): New prototype.
17067 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17068 (grub_elf64_phdr_iterate): Likewise.
17069 * include/grub/i386/bsd.h: Include relocator.h.
17070 (freebsd_tag_header): New struct.
17071 (grub_openbsd_bios_mmap): Removed.
17072 (grub_unix_real_boot): Removed.
17073 (grub_freebsd_load_elfmodule32): Changed prototype.
17074 (grub_freebsd_load_elfmodule_obj64): Likewise.
17075 (grub_freebsd_load_elf_meta32): Likewise.
17076 (grub_freebsd_load_elf_meta64): Likewise.
17077 (grub_freebsd_add_meta): Removed.
17078 (grub_netbsd_load_elf_meta32): New prototype.
17079 (grub_netbsd_load_elf_meta64): Likewise.
17080 (grub_bsd_add_meta): Likewise.
17081 (grub_openbsd_ramdisk_descriptor): New struct.
17082 (grub_openbsd_find_ramdisk32): New prototype.
17083 (grub_openbsd_find_ramdisk64): Likewise.
17084 * include/grub/i386/coreboot/loader.h: Removed.
17085 * include/grub/i386/efi/loader.h: Likewise.
17086 * include/grub/i386/ieee1275/loader.h: Likewise.
17087 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17088 to grub_uint32_t.
17089 * include/grub/i386/loader.h: Removed.
17090 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17091 value.
17092 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17093 (grub_phys_addr_t): New type.
17094 (grub_vtop): New inline function.
17095 (grub_map_memory): Likewise.
17096 (grub_unmap_memory): Likewise.
17097 * include/grub/i386/multiboot/loader.h: Removed.
17098 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17099 (NETBSD_BTINFO_CONSOLE): New definition.
17100 (NETBSD_BTINFO_SYMTAB): Likewise.
17101 (NETBSD_BTINFO_MODULES): Likewise.
17102 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17103 (grub_netbsd_bootinfo): New struct.
17104 (grub_netbsd_btinfo_common): Use explicit bitsize.
17105 (grub_netbsd_btinfo_mmap_entry): Removed.
17106 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17107 (grub_netbsd_btinfo_bootdisk): New struct.
17108 (grub_netbsd_btinfo_symtab): Likewise.
17109 (grub_netbsd_btinfo_serial): Likewise.
17110 (grub_netbsd_btinfo_modules): Likewise.
17111 (grub_netbsd_btinfo_framebuf): Likewise.
17112 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17113 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17114 Likewise.
17115 (grub_openbsd_bootargs): Use explicit bitsize.
17116 (grub_openbsd_bootarg_console): New struct.
17117 (GRUB_OPENBSD_COM_MAJOR): New definition.
17118 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17119 * include/grub/i386/pc/efiemu.h: Removed.
17120 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17121 * include/grub/i386/qemu/loader.h: Removed.
17122 * include/grub/i386/relocator.h: Rewritten.
17123 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17124 * include/grub/mips/memory.h: New file.
17125 * include/grub/mips/multiboot.h: Rewritten.
17126 * include/grub/mips/relocator.h: Rewritten.
17127 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17128 (grub_vtop): New function.
17129 (grub_map_memory): Likewise.
17130 (grub_unmap_memory): Likewise.
17131 * include/grub/misc.h (ALIGN_DOWN): New definition.
17132 * include/grub/mm.h (grub_mm_check_real): New proto.
17133 (GRUB_MM_CHECK): New definition.
17134 * include/grub/mm_private.h: New file.
17135 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17136 (grub_multiboot_get_mbi_size): Removed.
17137 (grub_multiboot_make_mbi): Change prottype.
17138 (grub_multiboot_set_accepts_video): New proto.
17139 (grub_multiboot_add_elfsyms): Likewise.
17140 (grub_multiboot_payload_eip): New variable.
17141 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17142 New prototype.
17143 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17144 New definition.
17145 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17146 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17147 * include/grub/powerpc/ieee1275/loader.h: Removed.
17148 * include/grub/powerpc/memory.h: New file.
17149 * include/grub/powerpc/relocator.h: Likewise.
17150 * include/grub/relocator.h: Likewise.
17151 * include/grub/relocator_private.h: Likewise.
17152 * include/grub/sparc64/ieee1275/loader.h: Removed.
17153 * include/grub/x86_64/memory.h: New file.
17154 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17155 (grub_xnu_heap_malloc): Likewise.
17156 (grub_xnu_heap_real_start): Removed.
17157 (grub_xnu_heap_start): Likewise.
17158 (grub_xnu_relocator): New variable.
17159 (grub_xnu_heap_target_start): Likewise.
17160 * tests/util/grub-shell.in: Support non-pc.
17161 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17162
17163 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17166 on malloc error.
17167 (grub_bidi_logical_to_visual): Check that malloc succeded.
17168 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17169 puts.
17170 (grub_xputs_normal): Likewise.
17171
17172 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17173
17174 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17175 extra_dist.
17176
17177 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17178
17179 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17180
17181 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17182
17183 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17184
17185 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17186
17187 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17188 dprintf.
17189
17190 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17191
17192 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17193
17194 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17195
17196 * grub-core/normal/term.c (print_more): Fix a memory leak.
17197 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17198 (grub_xputs_normal): Likewise.
17199
17200 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17203 the begining of the string
17204
17205 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17206
17207 * grub-core/script/script.c (grub_script_parse): Free parsed on
17208 failure.
17209
17210 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17211
17212 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17213 on failure.
17214
17215 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17218 return.
17219
17220 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17221
17222 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17223 (scroll_up): Fix a memory leak.
17224
17225 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17228 errors.
17229
17230 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17231
17232 Handle USB pendrives exposed as floppies.
17233
17234 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17235 floppy.
17236 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17237 Check for partitions on all devices.
17238
17239 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17242 (readkey): Likewise.
17243
17244 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17245
17246 Multiple variable names support to "export" command.
17247
17248 * normal/context.c (grub_cmd_export): "export" command supports
17249 multiple variable names.
17250
17251 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17252
17253 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17254 --target=drive output to Mach device name.
17255
17256 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17257
17258 New Automake based build system for GRUB.
17259
17260 * ABOUT-NLS: New file.
17261 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17262 in Makefile.util.def file.
17263 * Makefile.util.def: New file. Autogen build definitions file for
17264 GRUB host utils.
17265 * conf/Makefile.common: New file. Common variables for GRUB host
17266 utils and target modules.
17267 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17268 * docs/Makefile.am: New file. Automake file for docs.
17269 * gentpl.py: New file. Python script to generate Autogen
17270 template.
17271 * grub-core/Makefile.am: New file. GRUB target modules' rules
17272 that doesn't fit in Makefile.core.def file.
17273 * grub-core/Makefile.core.def: New file. Autogen build
17274 definitions file for GRUB target modules.
17275 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17276 specific setjmp.S file.
17277 * po/Makefile.am: New file.
17278
17279 * .bzrignore: New ignores.
17280 * INSTALL: New requirements, without Ruby.
17281 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17282 * autogen.sh: Updated to invoke autogen as necessary.
17283 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17284 and defines for Automake conditionals.
17285 * geninit.sh: Refactoring.
17286
17287 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17288 necessary.
17289 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17290 New prototype.
17291
17292 * include/grub/test.h: Fix functional test modules' naming.
17293 * grub-core/tests/example_functional_test.c: Fix test module name.
17294
17295 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17296 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17297 * util/grub-editenv.c: Likewise.
17298 * util/grub-fstest.c: Likewise.
17299 * util/grub-mkdevicemap.c: Likewise.
17300 * util/grub-mkfont.c: Likewise.
17301 * util/grub-mkimage.c: Likewise.
17302 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17303 * util/grub-probe.c: Likewise.
17304 * util/grub-script-check.c: Likewise.
17305 * util/i386/pc/grub-setup.c: Likewise.
17306 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17307
17308 * tests/util/grub-shell.in: Fix override directory path.
17309 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17310 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17311
17312 * util/lvm.c: Update #includes.
17313 * util/raid.c: Likewise.
17314 * util/resolve.c: Likewise.
17315 * grub-core/bus/emu/pci.c: Likewise.
17316 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17317 * grub-core/lib/posix_wrap/string.h: Likewise.
17318 * grub-core/kern/emu/main.c: Likewise.
17319
17320 * grub-core/gensymlist.sh: New file. Script for generating kernel
17321 symbols file.
17322 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17323
17324 * grub-core/gentrigtables.c: Fix unused variable warnings.
17325
17326 * Makefile.in: Removed.
17327 * conf/any-emu.rmk: Removed.
17328 * conf/common.rmk: Removed.
17329 * conf/i386-coreboot.rmk: Removed.
17330 * conf/i386-efi.rmk: Removed.
17331 * conf/i386-ieee1275.rmk: Removed.
17332 * conf/i386-multiboot.rmk: Removed.
17333 * conf/i386-pc.rmk: Removed.
17334 * conf/i386-qemu.rmk: Removed.
17335 * conf/i386.rmk: Removed.
17336 * conf/mips-yeeloong.rmk: Removed.
17337 * conf/mips.rmk: Removed.
17338 * conf/powerpc-ieee1275.rmk: Removed.
17339 * conf/sparc64-ieee1275.rmk: Removed.
17340 * conf/tests.rmk: Removed.
17341 * conf/x86-efi.rmk: Removed.
17342 * conf/x86_64-efi.rmk: Removed.
17343 * gendistlist.sh: Removed.
17344 * geninitheader.sh: Removed.
17345 * genkernsyms.sh.in: Removed.
17346 * genmk.rb: Removed.
17347 * gensymlist.sh.in: Removed.
17348 * mkinstalldirs: Removed.
17349 * boot: Moved ...
17350 * grub-core/boot: ... to here.
17351 * bus: Moved ...
17352 * grub-core/bus: ... to here.
17353 * commands: Moved ...
17354 * grub-core/commands: ... to here.
17355 * disk: Moved ...
17356 * grub-core/disk: ... to here.
17357 * efiemu: Moved ...
17358 * grub-core/efiemu: ... to here.
17359 * font: Moved ...
17360 * grub-core/font: ... to here.
17361 * fs: Moved ...
17362 * grub-core/fs: ... to here.
17363 * gencmdlist.sh: Moved ...
17364 * grub-core/gencmdlist.sh: ... to here.
17365 * genemuinit.sh: Moved ...
17366 * grub-core/genemuinit.sh: ... to here.
17367 * genemuinitheader.sh: Moved ...
17368 * grub-core/genemuinitheader.sh: ... to here.
17369 * genfslist.sh: Moved ...
17370 * grub-core/genfslist.sh: ... to here.
17371 * genhandlerlist.sh: Moved ...
17372 * grub-core/genhandlerlist.sh: ... to here.
17373 * genmoddep.awk: Moved ...
17374 * grub-core/genmoddep.awk: ... to here.
17375 * genmodsrc.sh: Moved ...
17376 * grub-core/genmodsrc.sh: ... to here.
17377 * genpartmaplist.sh: Moved ...
17378 * grub-core/genpartmaplist.sh: ... to here.
17379 * genparttoollist.sh: Moved ...
17380 * grub-core/genparttoollist.sh: ... to here.
17381 * genterminallist.sh: Moved ...
17382 * grub-core/genterminallist.sh: ... to here.
17383 * gentrigtables.c: Moved ...
17384 * grub-core/gentrigtables.c: ... to here.
17385 * genvideolist.sh: Moved ...
17386 * grub-core/genvideolist.sh: ... to here.
17387 * gettext: Moved ...
17388 * grub-core/gettext: ... to here.
17389 * gfxmenu: Moved ...
17390 * grub-core/gfxmenu: ... to here.
17391 * gnulib: Moved ...
17392 * grub-core/gnulib: ... to here.
17393 * hello: Moved ...
17394 * grub-core/hello: ... to here.
17395 * hook: Moved ...
17396 * grub-core/hook: ... to here.
17397 * io: Moved ...
17398 * grub-core/io: ... to here.
17399 * kern: Moved ...
17400 * grub-core/kern: ... to here.
17401 * lib: Moved ...
17402 * grub-core/lib: ... to here.
17403 * loader: Moved ...
17404 * grub-core/loader: ... to here.
17405 * mmap: Moved ...
17406 * grub-core/mmap: ... to here.
17407 * normal: Moved ...
17408 * grub-core/normal: ... to here.
17409 * partmap: Moved ...
17410 * grub-core/partmap: ... to here.
17411 * parttool: Moved ...
17412 * grub-core/parttool: ... to here.
17413 * script: Moved ...
17414 * grub-core/script: ... to here.
17415 * term: Moved ...
17416 * grub-core/term: ... to here
17417 * tests/example_functional_test.c: Moved ...
17418 * grub-core/tests/example_functional_test.c: ... to here.
17419 * tests/lib/functional_test.c: Moved ...
17420 * grub-core/tests/lib/functional_test.c: ... to here.
17421 * tests/lib/test.c: Moved ...
17422 * grub-core/tests/lib/test.c: ... to here.
17423 * video: Moved ...
17424 * grub-core/video: ... to here.
17425
17426 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17427
17428 Replace --enable-grub-emu-modules with grub-emu-lite.
17429
17430 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17431 cache.S.
17432
17433 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17434 * kern/emu/full.c: New file. For grub-emu specific initialization.
17435 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17436 * kern/emu/main.c: Call initialization function grub_emu_init.
17437
17438 * Makefile.in: Include grub-emu-lite in install.
17439 * commands/parttool.c: Use grub_no_autoload to differentiate
17440 between grub-emu and grub-emu-lite.
17441 * include/grub/misc.h: New variable grub_no_autoload.
17442
17443 * conf/any-emu.rmk: New rules for grub-emu-lite.
17444 * configure.ac: Remove --enable-grub-emu-modules.
17445 * genmk.rb: Cleanup unnecessary rules.
17446 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17447
17448 * normal/main.c: Don't load list files on grub-emu-lite.
17449 * util/misc.c (grub_arch_sync_caches): Removed.
17450
17451 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17452
17453 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17454 grub-mkimage rather than grub-mkelfimage.
17455 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17456
17457 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17460 a key after CapsLock or NumLock. It's just a qemu bug.
17461
17462 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17463
17464 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17465 needed by libusb wrapper.
17466
17467 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17468
17469 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17470
17471 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17474 --nounzip is passed.
17475
17476 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17477
17478 USB hotunplugging and USB serial support.
17479
17480 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17481 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17482 (grub_uhci_transfer): Respect timeout and set *actual.
17483 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17484 non-standard length.
17485 (grub_usb_device_attach): Autoload modules.
17486 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17487 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17488 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17489 users updated.
17490 (grub_usb_add_hub): Fill nports and children.
17491 (attach_root_port): Receive hub instead of controller.
17492 All users updated. Fill hub->devices.
17493 (grub_usb_root_hub): Allocate hub->devices.
17494 (detach_device): New function.
17495 (poll_nonroot_hub): Fill children and detach devices.
17496 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17497 actual arguments. All users updated.
17498 (grub_usb_bulk_read_extended): New function.
17499 * bus/usb/serial/common.c: New file.
17500 * bus/usb/serial/ftdi.c: Likewise.
17501 * bus/usb/serial/pl2303.c: Likewise.
17502 * commands/terminal.c (handle_command): Support wildcard.
17503 * commands/usbtest.c: Output "Unknown" instead of empty string.
17504 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17505 (usbserial_common_mod_SOURCES): New variable.
17506 (usbserial_common_mod_CFLAGS): Likewise.
17507 (usbserial_common_mod_LDFLAGS): Likewise.
17508 (pkglib_MODULES): Add usbserial_pl2303.mod.
17509 (usbserial_pl2303_mod_SOURCES): New variable.
17510 (usbserial_pl2303_mod_CFLAGS): Likewise.
17511 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17512 (pkglib_MODULES): Add usbserial_ftdi.mod.
17513 (usbserial_ftdi_mod_SOURCES): New variable.
17514 (usbserial_ftdi_mod_CFLAGS): Likewise.
17515 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17516 (pkglib_MODULES): Add serial.mod.
17517 (serial_mod_SOURCES): New variable.
17518 (serial_mod_CFLAGS): Likewise.
17519 (serial_mod_LDFLAGS): Likewise.
17520 * conf/i386-pc.rmk: Likewise.
17521 * conf/mips-yeeloong.rmk: Likewise.
17522 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17523 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17524 * disk/usbms.c (first_available_slot): New variable.
17525 (grub_usbms_attach): Don't reuse free slots due to potential cache
17526 problems.
17527 * include/grub/serial.h: Moved to ..
17528 * include/grub/ns8250.h: ...this.
17529 * include/grub/serial.h: New file.
17530 * include/grub/term.h (grub_term_poll_usb): New variable.
17531 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17532 readkey. All users updated.
17533 (grub_terminfo_output_state): Pass term to put.
17534 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17535 (grub_usb_controller_dev): Add timeout and actual arguments to
17536 transfer. All users updated.
17537 (grub_usb_interface): New field detach_data.
17538 (grub_usb_device): New fields children and nports.
17539 (grub_usb_ep_type_t): New type.
17540 (grub_usb_get_ep_type): New function.
17541 (grub_usb_bulk_read_extended): Likewise.
17542 * include/grub/usbdesc.h (grub_usb_desc): New type.
17543 * include/grub/usbserial.h: New file.
17544 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17545 * kern/term.c (grub_term_poll_usb): New variable.
17546 (grub_getkey): Call grub_term_poll_usb if set.
17547 (grub_checkkey): Likewise.
17548 (grub_getkeystatus): Likewise.
17549 * term/serial.c: Moved controller-specific parts to ...
17550 * term/ns8250.c: ... here.
17551 * term/serial.c: Mostly rewritten.
17552 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
17553 according to spec.
17554
17555 2010-08-20 Robert Millan <rmh@gnu.org>
17556
17557 Make kFreeBSD code more generic to support ext2fs as root, ufs as
17558 a separate module and maybe other interesting combinations.
17559
17560 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
17561 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
17562 (kfreebsd_entry): Add generic filesystem module load routine.
17563 Map GRUB `ext2' to kFreeBSD `ext2fs'.
17564
17565 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17566
17567 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
17568 "numcenter" (I misunderstood the purpose of this entry).
17569 * docs/grub.texi (sendkey): Likewise.
17570
17571 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17572
17573 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
17574 status flag options; simply omitting the option is equivalent and
17575 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
17576 (keysym_table): Rename "num5numlock" to "numlock".
17577 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
17578 can uniformly say that only the last of multiple `sendkey'
17579 invocations has any effect.
17580 * docs/grub.texi (sendkey): New section.
17581
17582 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
17583
17584 * commands/i386/pc/sendkey.c (options): Fix three typos.
17585
17586 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 Implement sendkey support.
17589
17590 * commands/i386/pc/sendkey.c: New file.
17591 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
17592 (sendkey_mod_SOURCES): New variable.
17593 (sendkey_mod_CFLAGS): Likewise.
17594 (sendkey_mod_LDFLAGS): Likewise.
17595
17596 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17597
17598 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
17599 fix warnings from Autoconf.
17600
17601 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17602
17603 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
17604 to avoid false positives with some assemblers that output things
17605 like "someprefix_func" as part of their output.
17606
17607 2010-08-15 Robert Millan <rmh@gnu.org>
17608
17609 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
17610 errors.
17611 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
17612 grub_get_libzfs_handle() errors.
17613
17614 2010-08-14 Robert Millan <rmh@gnu.org>
17615
17616 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
17617 filesystem is not ZFS.
17618
17619 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17620
17621 Fix for misspelled color names defaulting to black/black (bug
17622 reported by Doug Nazar)
17623
17624 * include/grub/normal.h (grub_parse_color_name_pair): Add return
17625 status to prototype.
17626 * normal/color.c (grub_parse_color_name_pair): Return failure
17627 status.
17628 (grub_env_write_color_normal): Ignore bad color names.
17629 (grub_env_write_color_highlight): Likewise.
17630 * normal/main.c (GRUB_MOD_INIT): Set default color names.
17631
17632 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17633
17634 "shift" command support to GRUB script.
17635
17636 * include/grub/script_sh.h (grub_script_shift): New prototype.
17637 * script/execute.c (grub_script_shift): New function.
17638 * script/main.c (grub_script_init): Register shift command.
17639 (grub_script_fini): Unregister shift command.
17640 * util/grub-script-check.c (grub_script_cmd_shift): New function.
17641
17642 * tests/grub_script_shift.in: New testcase.
17643 * conf/tests.rmk: Rules for new testcase.
17644
17645 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17646
17647 "continue" command support to GRUB script.
17648
17649 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
17650 (grub_script_break): Continue support.
17651 * script/main.c (grub_script_init): Register continue command.
17652 (grub_script_fini): Unregister continue command.
17653
17654 * tests/grub_script_continue.in: New testcase.
17655 * conf/tests.rmk: Rules for new testcase.
17656
17657 2010-08-12 BVK Chaitanya <bvk@dbook>
17658
17659 "break" command support to GRUB script.
17660
17661 * conf/common.rmk: Rule updates to grub-script-check.
17662 * include/grub/misc.h (grub_min): New function.
17663 * include/grub/script_sh.h (grub_script_init): New prototype.
17664 (grub_script_fini): New prototype.
17665 (grub_script_break): New prototype.
17666 * script/main.c (grub_script_init): New function.
17667 (grub_script_fini): New function.
17668 * script/execute.c (grub_script_break): New function.
17669 * normal/main.c: Calls to grub_script_{init,fini}.
17670 * util/grub-script-check.c (grub_script_break): New function.
17671
17672 * tests/grub_script_break.in: New testcase.
17673 * conf/tests.rmk: Rules for new test case.
17674
17675 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17676
17677 Function parameters support to GRUB script.
17678
17679 * script/yylex.l (VARIABLE): Regular expression update.
17680 * script/function.c (grub_script_function_call): Moved ...
17681 * script/execute.c (grub_script_function_call): ... to here.
17682 (grub_script_execute_arglist_to_argv): Removed.
17683 (grub_script_arglist_to_argv): New function.
17684 * script/argv.c: New file.
17685 (grub_script_argv_free): New function.
17686 (grub_script_argv_next): Likewise.
17687 (grub_script_argv_append): Likewise.
17688 (grub_script_argv_split_append): Likewise.
17689 * include/grub/script_sh.h (grub_script_argv): New struct.
17690 (grub_script_argv_free): New function.
17691 (grub_script_argv_next): Likewise.
17692 (grub_script_argv_append): Likewise.
17693 (grub_script_argv_split_append): Likewise.
17694
17695 * conf/common.rmk (normal.mod): New source script/argv.c.
17696
17697 * tests/grub_script_echo1.in: More tests.
17698 * tests/grub_script_vars1.in: Likewise.
17699 * tests/grub_script_functions.in: New test case.
17700 * conf/tests.rmk: Rules for new testcase.
17701
17702 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17703
17704 Remove grub_script_cmdblock struct.
17705
17706 * include/grub/script_sh.h: Remove grub_script_cmdblock.
17707 * script/parser.y: Likewise.
17708 * script/execute.c: Rename cmdblock suffix to cmdlist.
17709 * script/script.c: Likewise.
17710 * util/grub-script-check.c: Likewise.
17711
17712 2010-08-11 Yves Blusseau <blusseau@zetam.org>
17713
17714 * .bzrignore: add grub-macho2img
17715
17716 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
17719
17720 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 Remove the dump of sm712 initialisation sequence.
17723
17724 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
17725 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
17726 (GRUB_VGA_IO_MISC_WRITE): Likewise.
17727 (GRUB_VGA_CR_*): Added many registers.
17728 (GRUB_VGA_SR_*): Likewise.
17729 (GRUB_VGA_GR_*): Likewise.
17730 (grub_vga_write_arx): New function.
17731 (grub_video_hw_config): New struct.
17732 (grub_vga_set_geometry): New function.
17733 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
17734 GRUB_PCI_CLASS_SUBCLASS_VGA.
17735 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
17736 * video/sm712.c (grub_sm712_write_reg): New function
17737 (grub_sm712_read_reg): Likewise.
17738 (grub_sm712_sr_write): Likewise.
17739 (grub_sm712_gr_write): Likewise.
17740 (grub_sm712_cr_write): Likewise.
17741 (grub_sm712_write_arx): Likewise.
17742 (grub_sm712_cr_shadow_write): Likewise.
17743 (grub_sm712_write_dda_lookup): Likewise.
17744 (grub_video_sm712_setup): Initialise the video rather then
17745 blindly replay the dump.
17746 (main) [TEST]: Add a routine to be able to compile as standalone for
17747 tests.
17748 * video/sm712_init.c (sm712_init): Removed.
17749 (sm712_sr_seq1): New array.
17750 (sm712_sr_seq2): Likewise.
17751
17752 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17753
17754 * include/grub/vga.h: Add missing grub/pci.h include.
17755
17756 2010-08-10 Yves Blusseau <blusseau@zetam.org>
17757
17758 * util/grub-macho2img.c (main): fix typo
17759
17760 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17761
17762 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
17763 (grub_vga_gr_read): Likewise.
17764 (grub_vga_cr_write): Likewise.
17765 (grub_vga_cr_read): Likewise.
17766 (grub_vga_sr_write): Likewise.
17767 (grub_vga_sr_read): Likewise.
17768 (grub_vga_palette_read): Likewise.
17769 (grub_vga_palette_write): Likewise.
17770 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
17771 (grub_sm712_sr_read): New function.
17772 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
17773 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
17774
17775 2010-08-09 Robert Millan <rmh@gnu.org>
17776
17777 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
17778 out unused variables on non-ZFS build.
17779
17780 2010-08-08 Robert Millan <rmh@gnu.org>
17781
17782 Fix path generation for sub-filesystems in ZFS.
17783
17784 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
17785 missing slash.
17786
17787 2010-08-08 Robert Millan <rmh@gnu.org>
17788
17789 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
17790
17791 2010-08-08 Robert Millan <rmh@gnu.org>
17792
17793 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
17794 exist, issue a proper error message (rely on `ls' for translated
17795 strings).
17796
17797 2010-08-08 Robert Millan <rmh@gnu.org>
17798
17799 Fix grub-probe invocation.
17800
17801 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
17802
17803 2010-08-04 Robert Millan <rmh@gnu.org>
17804
17805 * configure.ac: Remove checks for getfsstat() and getmntany().
17806 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
17807 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
17808 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
17809 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
17810 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
17811 function.
17812 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
17813 via find_mount_point_from_dir() and getfsstat() / getmntany().
17814
17815 2010-08-04 Robert Millan <rmh@gnu.org>
17816
17817 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17818 (grub_find_zpool_from_mount_point): Merge into ...
17819 (grub_find_zpool_from_dir): ... this.
17820 * kern/emu/misc.c: Likewise.
17821
17822 * kern/emu/misc.c
17823 (grub_make_system_path_relative_to_its_root): Replace
17824 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
17825 with grub_find_zpool_from_dir().
17826 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
17827
17828 2010-08-04 Robert Millan <rmh@gnu.org>
17829
17830 Support OpenSolaris in ZFS device resolution.
17831
17832 * configure.ac: Check for getmntany().
17833 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
17834 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
17835 support.
17836
17837 2010-08-03 Robert Millan <rmh@gnu.org>
17838
17839 Fix grub-emu build.
17840
17841 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
17842 * include/grub/emu/misc.h: ... here.
17843
17844 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
17845 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
17846
17847 * util/misc.c: Remove `<grub/util/libzfs.h>'.
17848 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
17849 (grub_get_libzfs_handle): Move to ...
17850 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
17851 (grub_get_libzfs_handle): ... here.
17852
17853 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
17854
17855 * script/execute.c (grub_script_execute_cmdline): Check for NULL
17856 as command name case.
17857
17858 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
17859
17860 * disk/raid.c (insert_array): Select unique numbers for named arrays
17861 as well, for use as keys in the disk cache.
17862
17863 2010-08-01 Robert Millan <rmh@gnu.org>
17864
17865 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
17866 kFreeBSD device name, except on ZFS where the filesystem label is
17867 used.
17868 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
17869 `/boot/zfs/zpool.cache'.
17870 Set mountfrom kernel variable using ${kfreebsd_device}.
17871
17872 2010-08-01 Robert Millan <rmh@gnu.org>
17873
17874 Make it even harder to use uninitialized `libzfs_handle' (and
17875 make the interface a bit simpler).
17876
17877 * include/grub/util/misc.h (grub_util_init_libzfs)
17878 (libzfs_handle): Remove.
17879 (grub_get_libzfs_handle): New prototype.
17880
17881 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
17882 attribute.
17883 (grub_util_init_libzfs): Remove.
17884 (grub_get_libzfs_handle): New function.
17885
17886 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
17887 grub_get_libzfs_handle() to obtain a libzfs handle instead of
17888 accessing `libzfs_handle' directly.
17889
17890 2010-08-01 Robert Millan <rmh@gnu.org>
17891
17892 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17893 (grub_find_zpool_from_mount_point): New function prototypes.
17894
17895 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17896 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17897
17898 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17899 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17900 `static' attribute.
17901
17902 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17903 finding zpool from mount point into ...
17904 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17905
17906 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17907 requested path is part of a ZFS pool, use
17908 grub_find_zpool_from_mount_point() to detect its filesystem name,
17909 and generate a path with `/fsname@path' syntax.
17910
17911 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17912
17913 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
17914 (void) rather than () so that this is a proper prototype.
17915
17916 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
17919
17920 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17921
17922 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
17923 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
17924
17925 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17926
17927 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
17928
17929 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17930
17931 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
17932
17933 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17934
17935 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
17936 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
17937 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
17938 disable gfxpayload.
17939 (Shell-like scripting): Add real content.
17940 (Serial terminal): Suggest `terminal_input serial; terminal_output
17941 serial' rather than putting the two commands on separate lines,
17942 since console input will be inoperative after the first command.
17943 (menuentry): Document --class, --users, and --hotkey options.
17944 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
17945 Vladimir Serbinenko).
17946
17947 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17948 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17949
17950 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
17951
17952 2010-08-01 Robert Millan <rmh@gnu.org>
17953
17954 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17955 (grub_find_zpool_from_mount_point): New function prototypes.
17956
17957 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17958 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17959
17960 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17961 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17962 `static' attribute.
17963
17964 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17965 finding zpool from mount point into ...
17966 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17967
17968 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17969 requested path is part of a ZFS pool, use
17970 grub_find_zpool_from_mount_point() to detect its filesystem name,
17971 and generate a path with `/fsname@path' syntax.
17972
17973 2010-08-01 Robert Millan <rmh@gnu.org>
17974
17975 Prevent accidental use of uninitialized libzfs_handle.
17976
17977 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
17978 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
17979 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
17980
17981 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17982
17983 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
17984 util/grub.d/10_linux.in). Fixes Debian bug #591093.
17985
17986 2010-08-01 Robert Millan <rmh@gnu.org>
17987
17988 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
17989
17990 2010-07-31 Robert Millan <rmh@gnu.org>
17991
17992 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
17993
17994 2010-07-31 Robert Millan <rmh@gnu.org>
17995
17996 * kern/emu/misc.c: Add missing license header.
17997
17998 2010-07-31 Robert Millan <rmh@gnu.org>
17999
18000 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18001
18002 * include/grub/util/libnvpair.h: Include `<config.h>'.
18003 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18004 declaring libnvpair prototypes ourselves.
18005 * include/grub/util/libzfs.h: Include `<config.h>'.
18006 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18007 declaring libzfs prototypes ourselves.
18008
18009 (libzfs_handle): Moved to ...
18010 * include/grub/util/misc.h (libzfs_handle): ... here.
18011 Include `<grub/util/libzfs.h>'.
18012
18013 2010-07-30 Robert Millan <rmh@gnu.org>
18014
18015 * include/grub/emu/misc.h: Add missing license header.
18016
18017 2010-07-30 Robert Millan <rmh@gnu.org>
18018
18019 Enable `grub-probe -t device' resolution on ZFS.
18020
18021 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18022 * include/grub/util/libnvpair.h: New file.
18023 * include/grub/util/libzfs.h: New file.
18024
18025 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18026 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18027 `<grub/util/libnvpair.h>'.
18028 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18029
18030 (find_mount_point_from_dir): New static function.
18031 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18032 function.
18033 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18034 find_root_device_from_libzfs() before ressorting to find_root_device().
18035
18036 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18037 prototype.
18038 * util/misc.c: Include `<grub/util/libzfs.h>'.
18039 (grub_util_init_libzfs): New function.
18040 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18041 [HAVE_LIBZFS] (fini_libzfs): New static function.
18042 (grub_util_init_libzfs): New function.
18043 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18044
18045 2010-07-30 Robert Millan <rmh@gnu.org>
18046
18047 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18048 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18049 `warn_unused_result' attribute.
18050 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18051 (grub_xasprintf, grub_xvasprintf): Likewise.
18052 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18053
18054 2010-07-29 Robert Millan <rmh@gnu.org>
18055
18056 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18057 (probe): Handle `PRINT_FS_LABEL'.
18058 (main): Handle `-t fs_label'.
18059
18060 2010-07-29 Robert Millan <rmh@gnu.org>
18061
18062 * configure.ac: Remove grub-mkisofs checks.
18063
18064 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18065
18066 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18067 Reported by: Lennart Sorensen.
18068
18069 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18070
18071 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18072 prior to terminal_input/terminal_output separation. It's been over 1.5
18073 years and those versions weren't widely deployed.
18074
18075 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18076
18077 * disk/raid.c (insert_array): Don't count named arrays when looking
18078 for unused array numbers.
18079 Reported and tested by: Michael Guntsche.
18080
18081 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18082
18083 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18084 implementation of this so that grub-emu links again, with a note
18085 that this should support hotplugging in the future.
18086
18087 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18088
18089 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18090
18091 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18092
18093 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18094 handle on failure.
18095 (grub_loopback_close): Remove empty function.
18096 (grub_loopback_dev): Remove close method.
18097
18098 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18099
18100 Disable EFI cursor when the EFI console becomes inactive.
18101
18102 * term/efi/console.c (grub_efi_console_init): New function.
18103 (grub_efi_console_fini): New function.
18104 (grub_console_term_output): Register init and fini methods.
18105
18106 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18109 sh script.
18110
18111 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18112
18113 * disk/loopback.c (grub_loopback): Replace filename with file.
18114 (delete_loopback): Handle new semantics.
18115 (grub_cmd_loopback): Likewise.
18116 (grub_loopback_iterate): Likewise.
18117 (grub_loopback_close): Likewise.
18118
18119 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18120
18121 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18122 with -p "".
18123 Reported by: Tito Keitel.
18124
18125 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18126
18127 * docs/grub.texi (Naming convention): Document new naming convention.
18128
18129 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18130 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18131
18132 Generate device.map in something closer to the old ordering.
18133
18134 * util/deviceiter.c (struct device): New declaration.
18135 (compare_file_names): Rename to ...
18136 (compare_devices): ... this. Sort by kernel name in preference to
18137 the stable by-id name, but keep the latter as a fallback comparison.
18138 Update header comment.
18139 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18140 of `struct device' rather than of plain file names.
18141
18142 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18143
18144 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18145 on i386.
18146
18147 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18150 hardcoding size.
18151 (setv1table): Likewise.
18152
18153 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18154
18155 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18156 removing the homehost if present.
18157 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18158 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18159 removing the homehost if present.
18160 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18161 if possible.
18162 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18163
18164 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18165 parameter. Set its pointer target to 0.
18166 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18167 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18168 `data_offset' value from the superblock for 1.x metadata.
18169 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18170 data on the device.
18171 (insert_array): Record the start sector of data on the device.
18172 (grub_raid_register): Pass start_sector parameters to
18173 grub_raid_list->detect and insert_array.
18174 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18175 member.
18176 (struct grub_raid): Add start_sector parameter to `detect'.
18177
18178 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18179 __attribute__ ((packed)), leaving a comment.
18180 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18181 (grub_mdraid_detect_09): ... here and ...
18182 (grub_mdraid_detect_1x): ... here.
18183
18184 2010-07-20 Peter Henn <peter.henn@web.de>
18185
18186 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18187 chunk size and disk size, which are already given as sector counts
18188 as distinct from the 0.90 units. Fetch the correct device number
18189 from the role table instead of using the table index.
18190
18191 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18192
18193 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18194 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18195 (WriteMostly1): New macro.
18196 Set array->name to NULL for metadata format 0.90. Add support for
18197 metadata 1.x. Fix some comments.
18198 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18199 few comments.
18200 * util/getroot.c (grub_util_get_grub_dev): Add support for
18201 /dev/md/name style devices.
18202
18203 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18204
18205 * .bzrignore: Ignore 20_linux_xen.
18206
18207 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18208
18209 * util/import_unicode.py: Remove unnecessary imports.
18210
18211 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18212
18213 Hotplugging and USB hub support.
18214
18215 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18216 (grub_ohci): Likewise.
18217 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18218 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18219 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18220 (GRUB_OHCI_CTRL_EDS): Likewise.
18221 (GRUB_OHCI_BULK_EDS): Likewise.
18222 (GRUB_OHCI_TDS): Likewise.
18223 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18224 (grub_ohci_ed_phys2virt): New function.
18225 (grub_ohci_virt_to_phys): Likewise.
18226 (grub_ohci_td_phys2virt): Likewise.
18227 (grub_ohci_td_virt2phys): Likewise.
18228 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18229 attachment.
18230 (grub_ohci_find_ed): New function.
18231 (grub_ohci_alloc_td): Likewise.
18232 (grub_ohci_free_td): Likewise.
18233 (grub_ohci_free_tds): Likewise.
18234 (grub_ohci_transfer): Use previously allocated memory.
18235 (grub_ohci_portstatus): Reset status changed bit.
18236 (grub_ohci_detect_dev): Supply status changed.
18237 (grub_ohci_fini_hw): Free memory.
18238 (grub_ohci_restore_hw): Reallocate memory.
18239 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18240 Reset status change.
18241 (grub_uhci_detect_dev): Supply status_change.
18242 * bus/usb/usb.c (attach_hooks): New var.
18243 (grub_usb_device_attach): New function.
18244 (grub_usb_register_attach_hook_class): Likewise.
18245 (grub_usb_unregister_attach_hook_class): Likewise.
18246 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18247 (grub_usb_add_hub): Reset connection changed bit.
18248 (attach_root_port): New function.
18249 (grub_usb_root_hub): Likewise.
18250 (poll_nonroot_hub): Likewise.
18251 (grub_usb_poll_devices): Likewise.
18252 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18253 * disk/usbms.c (grub_usbms_open): Use device hooks.
18254 (grub_usbms_iterate) :Poll devices.
18255 (grub_usbms_finddevs): Split into ...
18256 (grub_usbms_attach): ... this ...
18257 (grub_usbms_attach): ... and this.
18258 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18259 in detect_dev.
18260 (grub_usb_interface): New fields attached and detach_hook.
18261 (grub_usb_attach_hook_class): New type.
18262 (grub_usb_attach_desc): New struct.
18263 (grub_usb_register_attach_hook_class): New function.
18264 (grub_usb_unregister_attach_hook_class): Likewise.
18265 (grub_usb_poll_devices): Likewise.
18266 (grub_usb_device_attach): Likewise.
18267 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18268 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18269
18270 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18271
18272 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18273 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18274 delta determination style. Works with most NetBSD partitions too.
18275
18276 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18279 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18280
18281 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18284
18285 2010-07-14 Anton Blanchard <anton@samba.org>
18286
18287 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18288 ET_DYN files.
18289
18290 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18291
18292 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18293
18294 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18295
18296 * kern/partition.c (grub_partition_check_containment): New function to
18297 check that a partition is physically contained in a parent. Since
18298 offsets are relative (and non-negative), this reduces to checking that
18299 the partition ends before its parent.
18300 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18301 (grub_partition_iterate): Likewise.
18302 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18303 comments.
18304 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18305 partitions that start before their parent, and add debug printfs.
18306
18307 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18308
18309 * Makefile.in (.SUFFIX): Spell correctly, as ...
18310 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18311 bare module name without `.mod', e.g. `test') tried to invoke a
18312 Modula-2 compiler.
18313
18314 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18315
18316 * README: Point to the Info manual.
18317
18318 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18319
18320 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18321 2nd superblock position from partition size.
18322
18323 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18324
18325 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18326 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18327 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18328 outputs.
18329
18330 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18331
18332 Restructure SCSI .id handling.
18333 Reported and tested by: Aleš Nesrsta.
18334
18335 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18336 (grub_atapi_dev): Changed .name to "ata". New field .id.
18337 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18338 (grub_usbms_dev): New field .id.
18339 * disk/scsi.c (grub_scsi_iterate): Generate name.
18340 (grub_scsi_open): Parse name.
18341 * include/grub/scsi.h (grub_make_scsi_id): New function.
18342 (grub_scsi_dev): Change iterate and open to number instead of naming
18343 busses. All users updated.
18344 (grub_scsi): Remove name. Add .bus.
18345
18346 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 * commands/help.c (grub_cmd_help): Fix a typo.
18349
18350 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18353 Reported and tested by: Colin Watson.
18354
18355 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18356
18357 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18358 in this context.
18359
18360 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18363
18364 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18365
18366 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18367 indentation.
18368
18369 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18370
18371 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18372 and disk/raid6_recover.c.
18373 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18374 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18375
18376 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18377
18378 * term/gfxterm.c (repaint_schedulded): Rename to ...
18379 (repaint_scheduled): ... this. Update all callers.
18380 (repaint_was_schedulded): Rename to ...
18381 (repaint_was_scheduled): ... this. Update all callers.
18382
18383 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18384
18385 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18386 which we expect to be handled by upper layers.
18387
18388 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18389
18390 * bus/usb/usbhub.c: #include time.h header.
18391
18392 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18393
18394 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18395 entry_name also for entries without stat blocks (e.g. ".."); fixes
18396 corruption of the first entry in a directory.
18397
18398 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18399
18400 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18401 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18402 doesn't work otherwise.
18403
18404 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18405
18406 * docs/grub.texi (Features): Update list of supported file systems.
18407 (GNU/Linux): Update for GRUB 2.
18408 (Serial terminal): Remove mention of --disable-serial, which was a
18409 GRUB Legacy configure option. Update instructions to use
18410 `terminal_input' and `terminal_output' rather than `terminal'.
18411 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18412 configuration' and `Installing GRUB using grub-install'.
18413 (Menu entry editor): Update for GRUB 2.
18414 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18415 Document new -a, -u, and -v options.
18416 (initrd): New section.
18417 (initrd16): New section.
18418 (linux): New section.
18419 (linux16): New section.
18420 (search): The `var' argument to `--set' is optional.
18421 (GRUB only offers a rescue shell): Go into a little more detail on
18422 drive ordering.
18423
18424 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18425
18426 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18427
18428 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18429
18430 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18431 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18432
18433 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18434
18435 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18436 install_prefix, in line with install_dos_part and install_bsd_part.
18437 Add new prefix variable, which is copied to install_prefix after
18438 comparing core.img in memory with the one read from disk in the
18439 no-embedding case, and use that rather than overwriting
18440 install_prefix immediately when installing to a partition.
18441 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18442 Bicakci.
18443
18444 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18445
18446 * configure.ac: Avoid == in test command, it's not portable.
18447 * util/grub.d/30_os-prober.in: Likewise.
18448
18449 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18450
18451 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18452
18453 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18454
18455 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18456 multiple (top-level) partmaps.
18457
18458 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18459
18460 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18461 Reported by: Tino Keitel.
18462
18463 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18464
18465 Bidi and diacritics support.
18466
18467 * Makefile.in (widthspec.bin): New target.
18468 (widthspec.h): Likewise.
18469 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18470 * autogen.sh: Generate unidata.c.
18471 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18472 * commands/ls.c (grub_ls_list_devices): Likewise.
18473 (grub_ls_list_files): Likewise.
18474 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18475 (grub_mini_cmd_lsmod): Likewise.
18476 * commands/read.c: Likewise.
18477 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18478 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18479 * lib/arg.c (grub_arg_show_help): Likewise.
18480 * lib/crypto.c (grub_password_get): Likewise.
18481 * normal/auth.c (grub_username_get): Likewise.
18482 * normal/misc.c (grub_normal_print_device_info): Likewise.
18483 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18484 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18485 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18486 (normal/charset.c_DEPENDENCIES): New variable.
18487 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18488 (pkglib_MODULES): Remove charset.mod.
18489 (charset_mod_SOURCES): Removed.
18490 (charset_mod_CFLAGS): Likewise.
18491 (charset_mod_LDFLAGS): Likewise.
18492 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18493 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18494 and term/tparm.c.
18495 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18496 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18497 (kernel_img_HEADERS): Add terminfo.h.
18498 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18499 Fill ->font. Reverse ascii bitmaps.
18500 (grub_font_get_xheight): New function.
18501 * font/font.c (grub_font_get_string_width): Moved from here ...
18502 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18503 * font/font.c (grub_font_draw_string): Moved from here ...
18504 * gfxmenu/font.c (grub_font_draw_string): ... here.
18505 * font/font.c (grub_font_dup_glyph): New function.
18506 (grub_font_blit_glyph): Likewise.
18507 (grub_font_blit_glyph_mirror): Likewise.
18508 (blit_comb): Likewise.
18509 (grub_font_construct_dry_run): Likewise.
18510 (grub_font_get_constructed_device_width): Likewise.
18511 (grub_font_construct_glyph): Likewise.
18512 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18513 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18514 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18515 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18516 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18517 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18518 (grub_font_get_xheight): New proto.
18519 (grub_font_get_constructed_device_width): Likewise.
18520 (grub_font_construct_glyph): Likewise.
18521 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18522 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18523 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18524 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18525 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18526 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18527 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18528 (grub_console_getcharwidth): Likewise.
18529 * include/grub/misc.h (grub_xputs): New proto.
18530 (grub_puts): Inlined.
18531 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18532 (grub_normal_get_line_counter): Removed.
18533 (grub_install_newline_hook): Likewise.
18534 (grub_normal_get_char_counter): New proto.
18535 (grub_normal_reset_more): Likewise.
18536 (grub_xputs_normal): Likewise.
18537 * include/grub/powerpc/ieee1275/console.h: Removed.
18538 * include/grub/sparc64/ieee1275/console.h: Likewise.
18539 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18540 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18541 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18542 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18543 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18544 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18545 (grub_term_input): Pass reference to self. All users updated.
18546 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18547 Pass reference to self. New fields normal_color, highlight_color and
18548 data. All users updated.
18549 (grub_putchar): Removed.
18550 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
18551 (grub_unicode_estimate_width): New function.
18552 (grub_term_getcharwidth): Add defaults.
18553 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
18554 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
18555 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
18556 (grub_cls): Remove EXPORT_FUNC.
18557 (grub_setcolorstate): Inline.
18558 (grub_newline_hook): Removed.
18559 * include/grub/terminfo.h: Rewritten. All users updated.
18560 * include/grub/unicode.h: New file.
18561 * include/grub/video.h (grub_video_signed_rect): New type.
18562 * kern/emu/console.c (grub_console_highlight_color): Removed.
18563 (grub_console_normal_color): Likewise.
18564 (grub_console_standard_color): Made static.
18565 (grub_ncurses_putchar): Remove mapping.
18566 (grub_ncurses_getcharwidth): Removed.
18567 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18568 (grub_ncurses_setcolor): Removed.
18569 (grub_ncurses_getcolor): Likewise.
18570 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
18571 (grub_console_putchar): ... this.
18572 (grub_console_putchar): Handle argument difference.
18573 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
18574 console_init_early and console_init_lately.
18575 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
18576 * kern/misc.c (grub_puts): Removed.
18577 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
18578 (grub_vsnprintf_real): Remove str = NULL support.
18579 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
18580 * normal/charset.c (grub_utf8_to_ucs4): ... here.
18581 * kern/term.c (grub_putcode): Renamed to ...
18582 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
18583 (grub_putchar): Removed.
18584 (grub_xputs_dumb): New function.
18585 (grub_xputs): New variable.
18586 * lib/charset.c: Move from here ...
18587 * normal/charset.c: ... to here.
18588 (grub_ucs4_to_utf8): New function.
18589 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
18590 (join_types): New variable.
18591 (unpack_join): New function.
18592 (bidi_types): New variable.
18593 (unpack_bidi): New function.
18594 (get_bidi_type): Likewise.
18595 (get_join_type): Likewise.
18596 (is_mirrored): Likewise.
18597 (grub_unicode_get_comb_type): Likewise.
18598 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
18599 (is_type_after): Likewise.
18600 (grub_unicode_aglomerate_comb): Likewise.
18601 (bidi_line_wrap): Likewise.
18602 (grub_bidi_line_logical_to_visual): Likewise.
18603 (grub_bidi_logical_to_visual): Likewise.
18604 (grub_unicode_mirror_code): Likewise.
18605 (grub_unicode_shape_code): Likewise.
18606 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
18607 Don't use grub_putchar.
18608 * normal/main.c (grub_normal_init_page): Use grub_putcode.
18609 (grub_normal_reader_init): Likewise.
18610 (grub_xputs_saved): New variable.
18611 (GRUB_MOD_INIT): Set grub_xputs.
18612 (GRUB_MOD_FINI): Restore grub_xputs.
18613 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
18614 (menu_init): Avoid printing gfxmenu error.
18615 (show_menu): Use grub_normal_get_char_counter.
18616 * normal/menu_entry.c (update_screen): Fix out-of-array.
18617 (complete): Avoid NULL dereferencing.
18618 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
18619 * normal/menu_text.c (print_spaces): Removed.
18620 (grub_print_ucs4): Likewise.
18621 (grub_print_message_indented): Use grub_print_ucs4.
18622 (print_message): Use grub_putcode.
18623 (print_entry): Hanlde diacritics.
18624 * normal/term.c (term_state): New type.
18625 (grub_more_lines): Removed.
18626 (term_states): New variable.
18627 (grub_normal_line_counter): Renamed to ..
18628 (grub_normal_char_counter): ...this. All users updated.
18629 (grub_normal_get_line_counter): Renamed to ...
18630 (grub_normal_get_char_counter): ... this.
18631 (grub_normal_reset_more): New function.
18632 (process_newline): Removed.
18633 (print_more): New function.
18634 (grub_install_newline_hook): Removed.
18635 (map_code): New function.
18636 (grub_puts_terminal): Use grub_print_ucs4.
18637 (putglyph): New function.
18638 (putcode_real): Likewise.
18639 (grub_putcode): Use putcode_real.
18640 (get_maxwidth): New function.
18641 (get_startwidth): Likewise.
18642 (print_ucs4_terminal): Likewise.
18643 (find_term_state): Likewise.
18644 (put_glyphs_terminal): Likewise.
18645 (print_backlog): Likewise.
18646 (print_ucs4_real): Likewise.
18647 (grub_print_ucs4): Likewise.
18648 (grub_xputs_normal): Likewise.
18649 * term/efi/console.c (grub_console_putchar): Output diacritics.
18650 (grub_console_getcharwidth): Removed.
18651 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18652 * term/gfxterm.c (clear_char): Free chars.
18653 (scroll_up): Avoid leaking memory.
18654 (grub_gfxterm_putchar): Support diacritics.
18655 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18656 * term/i386/pc/console.c (grub_console_term_output): Declare as
18657 GRUB_TERM_CODE_TYPE_VGA.
18658 * term/i386/pc/vga.c (grub_vga_term): Declare as
18659 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
18660 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
18661 GRUB_TERM_CODE_TYPE_VGA.
18662 * term/i386/vga_common.c (map_char): Removed.
18663 (grub_console_putchar): Likewise.
18664 (grub_console_getcharwidth): Likewise.
18665 * term/ieee1275/ofconsole.c: Simplify using terminfo.
18666 (colors): Reordered to match terminfo.
18667 (grub_ofconsole_normal_color): Removed.
18668 (grub_ofconsole_writeesc): Likewise.
18669 (grub_ofconsole_highlight_color): Likewise.
18670 (grub_ofconsole_getcharwidth): Likewise.
18671 (grub_ofconsole_setcolorstate): Likewise.
18672 (grub_ofconsole_setcolor): Likewise.
18673 (grub_ofconsole_getcolor): Likewise.
18674 (grub_ofconsole_readkey): Renamed to ...
18675 (readkey): ... this. Remove escape sequence handling. Return -1 on no
18676 key.
18677 (grub_ofconsole_checkkey): Removed.
18678 (grub_ofconsole_getkey): Likewise.
18679 (grub_ofconsole_getxy): Likewise.
18680 (grub_ofconsole_gotoxy): Likewise.
18681 (grub_ofconsole_cls): Likewise.
18682 (grub_ofconsole_refresh): Likewise.
18683 (grub_ofconsole_terminfo_input): New struct.
18684 (grub_ofconsole_terminfo_output): Likewise.
18685 (grub_ofconsole_term_input): Use terminfo.
18686 (grub_ofconsole_term_output): Likewise.
18687 (grub_console_init): Split into ...
18688 (grub_console_init_early): ...this and ...
18689 (grub_console_init_lately): ...this. Use terminfo.
18690 (grub_ofconsole_putchar): Renamed to ...
18691 (put): ... this. Remove mapping.
18692 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18693 * term/serial.c: Simplify using terminfo.
18694 (xpos): Removed.
18695 (ypos): Likewise.
18696 (keep_track): Likewise.
18697 (registered): Likewise.
18698 (input_buf): Likewise.
18699 (npending): Likewise.
18700 (serial_translate_key_sequence): Likewise.
18701 (fill_input_buf): Likewise.
18702 (grub_serial_checkkey): Likewise.
18703 (grub_serial_getkey): Likewise.
18704 (grub_serial_getxy): Likewise.
18705 (grub_serial_gotoxy): Likewise.
18706 (grub_serial_putchar): Likewise.
18707 (grub_serial_cls): Likewise.
18708 (grub_serial_setcolorstate): Likewise.
18709 (grub_serial_setcursor): Likewise.
18710 (serial_hw_init): Use serial_hw_fetch.
18711 (grub_serial_terminfo_input): New variable.
18712 (grub_serial_terminfo_output): Likewise.
18713 (grub_serial_term_input): Use terminfo.
18714 (grub_serial_term_output): Likewise.
18715 * term/terminfo.c (putstr): Use put.
18716 (grub_terminfo_all_free): New function
18717 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
18718 (grub_terminfo_output_register): New function.
18719 (grub_terminfo_output_unregister): Likewise.
18720 (grub_terminfo_getxy): Likewise.
18721 (grub_terminfo_readkey): Likewise.
18722 (grub_terminfo_checkkey): Likewise.
18723 (grub_terminfo_getkey): Likewise.
18724 (grub_terminfo_input_init): Likewise.
18725 (print_terminfo): Likewise.
18726 (grub_cmd_terminfo): Handle encoding.
18727 (grub_terminfo_gotoxy): Track position.
18728 (grub_terminfo_cls): Likewise.
18729 (grub_terminfo_putchar): Likewise.
18730 (grub_terminfo_setcolorstate): Handle colors
18731 (grub_terminfo_cursor_on): This ...
18732 (grub_terminfo_cursor_off): ... and this merged into ...
18733 (grub_terminfo_setcursor): ... this.
18734 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
18735 * unicode/ArabicShaping.txt: New file (imported from Unicode).
18736 * unicode/BidiMirroring.txt: Likewise.
18737 * unicode/UnicodeData.txt: Likewise.
18738 * unicode/COPYING: Likewise.
18739 * util/grub-editenv.c (grub_putchar): Removed.
18740 (grub_xputs_real): New function.
18741 (grub_xputs): New variable.
18742 * util/grub-fstest.c (grub_putchar): Removed.
18743 (grub_xputs_real): New function.
18744 (grub_xputs): New variable.
18745 * util/grub-mkdevicemap.c (grub_putchar): Removed.
18746 (grub_xputs_real): New function.
18747 (grub_xputs): New variable.
18748 * util/grub-probe.c (grub_putchar): Removed.
18749 (grub_xputs_real): New function.
18750 (grub_xputs): New variable.
18751 * util/grub-script-check.c (grub_putchar): Removed.
18752 (grub_xputs_real): New function.
18753 (grub_xputs): New variable.
18754 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
18755 (grub_xputs_real): New function.
18756 (grub_xputs): New variable.
18757 * util/import_unicode.py: New file.
18758 * util/grub-mkfont.c (ft_errmsgs): New array.
18759 (grub_glyph_info): Make bitmap a pointer.
18760 (file_formats): New type WIDTH_SPEC.
18761 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
18762 (options): Add width-spec.
18763 (help): Likewise.
18764 (add_char): Renamed to ...
18765 (add_glyph): ... this.
18766 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
18767 (glyph_replace): New type.
18768 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
18769 (add_char): New function.
18770 (add_subst): Likewise.
18771 (process_cursive): Likewise.
18772 (add_font): Handle GSUB.
18773 (write_font_width_spec): New function.
18774 (main): Sort glyphs.
18775 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
18776 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
18777 * kern/term.c (grub_cls): Moved from here...
18778 * normal/term.c (grub_cls): ... here.
18779
18780 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18781
18782 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
18783 suitable for using within the format argument of printf when
18784 converting grub_size_t.
18785 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
18786 "x" to convert grub_size_t arguments.
18787
18788 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
18791 too long captions.
18792 (list_get_minimal_size): Take selection box into account.
18793
18794 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18795
18796 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
18797 NULL font.
18798
18799 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18800
18801 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
18802 devices when iterating over /dev/disk/by-id; they will be handled
18803 later if appropriate, which they aren't always (e.g. LVM).
18804
18805 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18806
18807 * include/grub/misc.h (grub_reboot): Declare as noreturn.
18808 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
18809 fails.
18810 (grub_halt): Likewise.
18811 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
18812 reset-all fails.
18813 (grub_halt): Don't return, even if all of shut-down, power-off, and
18814 poweroff fail.
18815
18816 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18817
18818 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
18819 arguments, not three.
18820
18821 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18822
18823 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
18824 * util/grub.d/10_linux.in: Use it to check for LVM, so that
18825 LVM-on-RAID is handled correctly.
18826
18827 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18828
18829 * docs/grub.texi (Changes from GRUB Legacy): New section.
18830 (Future): Fix typo.
18831
18832 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18833
18834 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
18835 grub.d/README accidentally ends up executable for one reason or
18836 another. Ignore it.
18837
18838 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18839
18840 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
18841 (gpt_partition_map_iterate): Support non-512B sectors.
18842
18843 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18844
18845 * kern/efi/init.c (grub_efi_init): Disable watchdog.
18846 Tested by: Seth Goldberg.
18847
18848 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
18851 Properly align mbi.
18852 Reported by: Seth Goldberg.
18853
18854 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * util/grub-mkrescue.in: Avoid module duplication.
18857
18858 2010-07-01 Sean Finney <seanius@seanius.net>
18859
18860 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
18861
18862 2010-07-01 Sean Finney <seanius@seanius.net>
18863
18864 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
18865
18866 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * disk/lvm.c (grub_lvm_checkvalue): New function.
18869 (grub_lvm_check_flag): Likewise.
18870
18871 2010-07-01 Robert Millan <rmh@gnu.org>
18872
18873 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
18874 Support 'p' as partition separator on kernel of FreeBSD (used
18875 with GPT labels).
18876 (grub_util_biosdisk_get_grub_dev): Likewise.
18877
18878 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18879
18880 Yeeloong firmware port.
18881
18882 * boot/mips/yeeloong/fwstart.S: New file.
18883 * bus/cs5536.c (gpiodump): New const.
18884 (set_io_space): New function.
18885 (set_iod): Likewise.
18886 (set_p2d): Likewise.
18887 (grub_cs5536_init_geode): Likewise.
18888 * commands/mips/yeeloong/lsspd.c: New file.
18889 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
18890 (serial_mod_SOURCES): New variable.
18891 (serial_mod_CFLAGS): Likewise.
18892 (serial_mod_LDFLAGS): Likewise.
18893 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
18894 term/terminfo.c and term/tparm.c.
18895 (pkglib_IMAGES): Add fwstart.img.
18896 (fwstart_img_SOURCES): New variable.
18897 (fwstart_img_CFLAGS): Likewise.
18898 (fwstart_img_ASFLAGS): Likewise.
18899 (fwstart_img_LDFLAGS): Likewise.
18900 (fwstart_img_FORMAT): Likewise.
18901 (pkglib_MODULES): Add lsspd.mod.
18902 (lsspd_mod_SOURCES): New variable.
18903 (lsspd_mod_CFLAGS): Likewise.
18904 (lsspd_mod_LDFLAGS): Likewise.
18905 (pkglib_MODULES): Add halt.mod.
18906 (halt_mod_SOURCES): New variable.
18907 (halt_mod_CFLAGS): Likewise.
18908 (halt_mod_LDFLAGS): Likewise.
18909 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
18910 (serial_mod_SOURCES): Removed.
18911 (serial_mod_CFLAGS): Likewise.
18912 (serial_mod_LDFLAGS): Likewise.
18913 * disk/ata.c (check_device): New function.
18914 (grub_ata_device_initialize): Use check_device.
18915 (grub_ata_iterate): Recheck devices.
18916 (grub_ata_open): Likewise.
18917 (grub_atapi_iterate): Likewise.
18918 (grub_atapi_open): Likewise.
18919 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
18920 (GRUB_ATA_CH1_PORT1): Likewise.
18921 (GRUB_ATA_CH0_PORT2): Likewise.
18922 (GRUB_ATA_CH1_PORT2): Likewise.
18923 * include/grub/mips/loongson.h: New file.
18924 * include/grub/mips/yeeloong/ec.h: Likewise.
18925 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
18926 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
18927 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
18928 * include/grub/misc.h (grub_halt): Declare as noreturn.
18929 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
18930 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
18931 (UART_ENABLE_FIFO_TRIGGER1): New definition.
18932 (UART_ENABLE_DTRRTS): Likewise.
18933 (UART_ENABLE_MODEM): Removed.
18934 (UART_ENABLE_OUT2): New const.
18935 * include/grub/term.h (grub_term_register_input_active): New function.
18936 (grub_term_register_output_active): Likewise.
18937 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
18938 argument.
18939 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
18940 (init_pci): New function.
18941 (grub_machine_init): Execute platform init when firmware. Init serial.
18942 (grub_halt): Implement.
18943 (grub_exit): Likewise.
18944 (grub_reboot): Likewise.
18945 * term/serial.c (serial_hw_init): Update macros.
18946 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
18947 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
18948 (image_targets): New target mipsel-yeeloong-flash.
18949 (generate_image): Support IMAGE_YEELOONG_FLASH.
18950 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
18951 (grub_video_sm712_setup): Init card.
18952 (grub_video_sm712_set_palette): Removed.
18953 * video/sm712_init.c: New file.
18954
18955 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
18956
18957 * Makefile.in (install-local): Temporarily prepend $(builddir) to
18958 PATH when running help2man and then run it on the unadorned
18959 executable names, rather than passing $(builddir)/* paths to
18960 help2man. This avoids the build directory ending up in generated
18961 manual pages.
18962
18963 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18964
18965 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
18966 to avoid accidents when debugging with 'sh -x'.
18967 * util/grub-mkrescue.in: Likewise.
18968 * util/grub.d/00_header.in: Likewise.
18969 * util/grub.d/10_hurd.in: Likewise.
18970 * util/grub.d/10_kfreebsd.in: Likewise.
18971 * util/grub.d/10_linux.in: Likewise.
18972 * util/grub.d/10_netbsd.in: Likewise.
18973 * util/grub.d/10_windows.in: Likewise.
18974 * util/grub.d/20_linux_xen.in: Likewise.
18975 * util/grub.d/30_os-prober.in: Likewise.
18976 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18977
18978 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18979
18980 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
18981 last character in the buffer.
18982 Reported by: Vladimir Serbinenko.
18983
18984 2010-06-29 Robert Millan <rmh@gnu.org>
18985
18986 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
18987 (Command-line and menu entry commands): Document `badram' command.
18988
18989 2010-06-28 Robert Millan <rmh@gnu.org>
18990
18991 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
18992 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
18993 command using ${GRUB_BADRAM} as parameter.
18994
18995 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18996
18997 * docs/grub.texi (Device map): New section.
18998 (Themes): New section (stub).
18999 * Makefile.in (docs/grub.info): The info documentation now builds
19000 without errors. Make sure it stays that way.
19001
19002 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19003
19004 Use normal parser for menu entries.
19005 Reported by: Thomas Frauendorfer
19006
19007 * include/grub/parser.h (grub_parser_execute): Don't export.
19008 * normal/menu.c (grub_menu_execute_entry_real): New function.
19009 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19010
19011 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19012
19013 * docs/grub.texi (Embedded configuration): New section (replacing
19014 old "Preset Menu" stub).
19015 (Images): New section.
19016 (configfile): Note that any menu entries defined in `file' are shown
19017 immediately.
19018
19019 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19020
19021 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19022
19023 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19024
19025 * util/grub-install.in: Add --debug-image= option.
19026
19027 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19028
19029 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19030 possible on Linux.
19031
19032 * util/deviceiter.c (check_device): Rename to ...
19033 (check_device_readable_unique): ... this. Update all callers.
19034 Maintain and check a list of which devices (by canonicalized name)
19035 have already been seen.
19036 (clear_seen_devices): New function.
19037 (compare_file_names) [__linux__]: New function.
19038 (grub_util_iterate_devices): Clear the list of seen devices on exit
19039 and (just in case) on entry.
19040 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19041 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19042 seen-devices list, superseded by general code in check_device.
19043
19044 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19045
19046 * commands/cat.c (options): New variable.
19047 (grub_cmd_cat): Parse options. If the --dos option is given, print
19048 DOS-style "\r\n" line endings as simple newlines (Debian bug
19049 #586358).
19050 (GRUB_MOD_INIT): Use extcmd.
19051 (GRUB_MOD_FINI): Likewise.
19052 * docs/grub.texi (cat): Document --dos.
19053
19054 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19055
19056 XEN with Linux grub-mkconfig support.
19057
19058 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19059 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19060 GRUB_CMDLINE_XEN_DEFAULT.
19061 * util/grub.d/20_linux_xen.in: New file.
19062
19063 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19064
19065 Initialise VGA video on qemu ourselves.
19066
19067 * boot/i386/qemu/boot.S: Don't call 0xc000.
19068 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19069 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19070 (kernel_img_HEADERS): Add pci.h.
19071 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19072 * configure.ac: Force unifont on qemu and yeeloong.
19073 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19074 (grub_vga_palette_write): Use correct register.
19075 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19076 Call grub_qemu_init_cirrus.
19077 * kern/i386/qemu/init.c: New file.
19078 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19079
19080 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19081
19082 2010-06-26 Pavel Roskin <proski@gnu.org>
19083
19084 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19085 13.
19086
19087 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19088
19089 * docs/grub.texi (Simple configuration): Explain that
19090 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19091 set to `true' to disable their respective recovery entries, not
19092 merely set.
19093
19094 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19095
19096 Make the `source' command slightly faster.
19097
19098 * normal/main.c (grub_normal_execute): Don't re-read list files when
19099 nested.
19100
19101 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19102
19103 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19104 field position and mask size to red fields from mode_info, not
19105 green.
19106 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19107 Remove redundant tag->common.framebuffer_type assignment.
19108 Reported by: Seth Goldberg.
19109
19110 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19111
19112 Sync up other versions of the Linux loader with Robert Millan's
19113 change of 2010-01-09, "Make loader output a bit more user-friendly".
19114
19115 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19116 grub_dprintf().
19117 (grub_cmd_linux): Likewise.
19118 (grub_cmd_initrd): Likewise.
19119 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19120 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19121
19122 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19123
19124 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19125 larger than MEMORY_MAP_SIZE.
19126
19127 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19128
19129 Fix parallel build.
19130
19131 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19132 dependency.
19133 * script/parser.y: #include grub_script.tab.h header.
19134
19135 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19136
19137 Support >3GiB and <16MiB RAM in i386-qemu.
19138
19139 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19140 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19141 (grub_lower_mem): Removed.
19142 (grub_upper_mem): Likewise.
19143 (mem_size): Made static.
19144 (above_4g): New variable.
19145 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19146 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19147 support.
19148
19149 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19150
19151 Cirrus 5446 and Bochs video cards support.
19152
19153 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19154 video_bochs.mod
19155 (video_cirrus_mod_SOURCES): New variable.
19156 (video_cirrus_mod_CFLAGS): Likewise.
19157 (video_cirrus_mod_LDFLAGS): Likewise.
19158 (video_bochs_mod_SOURCES): Likewise.
19159 (video_bochs_mod_CFLAGS): Likewise.
19160 (video_bochs_mod_LDFLAGS): Likewise.
19161 * include/grub/vga.h: New file.
19162 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19163 (grub_video_fb_set_page_t): New type.
19164 (grub_video_fb_setup): New prototype.
19165 (grub_video_fb_swap_buffers): Likewise.
19166 (grub_video_fb_get_info_and_fini): Likewise.
19167 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19168 (CRTC_DATA_PORT): Likewise.
19169 (CRTC_CURSOR): Likewise.
19170 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19171 (CRTC_CURSOR_ADDR_LOW): Likewise.
19172 (CRTC_CURSOR_DISABLE): Likewise.
19173 (update_cursor): Use grub_vga_cr_write.
19174 (grub_vga_text_setcursor): Likewise.
19175 * video/bochs.c: New file.
19176 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19177 (palette): Likewise.
19178 (palette_size): Likewise.
19179 (framebuffer): New variable.
19180 (grub_video_fb_init): Use 'framebuffer'.
19181 (grub_video_fb_fini): Likewise.
19182 (grub_video_fb_get_info): Likewise.
19183 (grub_video_fb_get_palette): Likewise.
19184 (grub_video_fb_set_palette): Likewise.
19185 (grub_video_fb_set_viewport): Likewise.
19186 (grub_video_fb_get_viewport): Likewise.
19187 (grub_video_fb_map_color): Likewise.
19188 (grub_video_fb_map_rgb): Likewise.
19189 (grub_video_fb_map_rgba): Likewise.
19190 (grub_video_fb_unmap_color): Likewise.
19191 (grub_video_fb_unmap_color_int): Likewise.
19192 (grub_video_fb_fill_rect): Likewise.
19193 (grub_video_fb_blit_bitmap): Likewise.
19194 (grub_video_fb_blit_render_target): Likewise.
19195 (grub_video_fb_scroll): Likewise.
19196 (grub_video_fb_create_render_target): Likewise.
19197 (grub_video_fb_doublebuf_blit_init): Likewise.
19198 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19199 (doublebuf_pageflipping_update_screen): New function.
19200 (doublebuf_pageflipping_init): Likewise.
19201 (grub_video_fb_setup): Likewise.
19202 (grub_video_fb_swap_buffers): Likewise.
19203 (grub_video_fb_get_info_and_fini): Likewise.
19204 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19205 All users updated.
19206 (doublebuf_pageflipping_commit): Restructured into ...
19207 (doublebuf_pageflipping_set_page): ... this.
19208 (doublebuf_pageflipping_update_screen): Removed.
19209 (doublebuf_pageflipping_init): Likewise.
19210 (double_buffering_init): Likewise.
19211 (grub_video_vbe_setup): Use grub_video_fb_setup.
19212 (grub_video_vbe_swap_buffers): Removed.
19213 (grub_video_vbe_set_active_render_target): Likewise.
19214 (grub_video_vbe_get_active_render_target): Likewise.
19215 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19216 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19217 grub_video_fb_set_active_render_target and
19218 grub_video_fb_get_active_render_target.
19219 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19220 (SEQUENCER_DATA_PORT): Likewise.
19221 (MAP_MASK_REGISTER): Likewise.
19222 (CRTC_ADDR_PORT): Likewise.
19223 (CRTC_DATA_PORT): Likewise.
19224 (START_ADDR_HIGH_REGISTER): Likewise.
19225 (START_ADDR_LOW_REGISTER): Likewise.
19226 (GRAPHICS_ADDR_PORT): Likewise.
19227 (GRAPHICS_DATA_PORT): Likewise.
19228 (READ_MAP_REGISTER): Likewise.
19229 (INPUT_STATUS1_REGISTER): Likewise.
19230 (INPUT_STATUS1_VERTR_BIT): Likewise.
19231 (get_map_mask): Use grub_vga_sr_read.
19232 (set_map_mask): Use grub_vga_sr_write.
19233 (set_read_map): Use grub_vga_gr_write.
19234 (set_start_address): Use grub_vga_cr_write.
19235 * video/sm712.c (framebuffer): Remove leftover fields.
19236
19237 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19238
19239 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19240 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19241 instead. Replace the gfxterm backend check with a check that
19242 ${GRUB_PREFIX}/video.lst is non-empty.
19243 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19244 again.
19245 (load_video): New generated function. Call it before loading
19246 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19247 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19248 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19249 * docs/grub.texi (Simple configuration): Document
19250 GRUB_VIDEO_BACKEND.
19251
19252 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19253
19254 Use video functions in linux and xnu loaders.
19255
19256 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19257 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19258 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19259 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19260 loader/i386/pc/linux.c.
19261 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19262 (find_line_len): Removed.
19263 (find_framebuf): Likewise.
19264 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19265 * loader/i386/efi/xnu.c: Removed.
19266 * loader/i386/pc/xnu.c: Moved from here...
19267 * loader/i386/xnu.c: ...here.
19268
19269 Enable priorities in video drivers.
19270
19271 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19272 (grub_video_adapter): New field prio.
19273 (grub_video_register): Respect prio when inserting.
19274 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19275 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19276 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19277 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19278 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19279 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19280 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19281
19282 Fix SDL driver ID.
19283
19284 * include/grub/video.h (grub_video_driver_id_t): New value
19285 GRUB_VIDEO_DRIVER_SDL.
19286 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19287
19288 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19289
19290 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19291 argument to printf.
19292 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19293
19294 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19295
19296 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19297 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19298
19299 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19300
19301 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19302 directly, and recommend grub-install instead.
19303 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19304
19305 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19306
19307 Fix i386-pc prefix handling with nested partitions (Debian bug
19308 #585068). Note that the case where the core image is booted using
19309 multiboot and relocated from its original location still requires
19310 more work.
19311
19312 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19313 with "(,", fill the boot drive in between those two characters, but
19314 expect that a full partition specification including partition map
19315 names will follow.
19316 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19317 specified, write a prefix without the drive name but including a
19318 full partition specification.
19319
19320 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19321
19322 * util/grub-mkconfig.in: Ignore non-option arguments, for
19323 compatibility with older versions (before 2010-06-12) which did the
19324 same. In particular, this makes it easier to ship an update-grub
19325 wrapper which is compatible with that used with GRUB Legacy (Debian
19326 bug #586056).
19327
19328 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19329
19330 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19331 for manual page generation.
19332
19333 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19334
19335 * po/POTFILES: Remove leftover commands/handler.c.
19336
19337 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19338
19339 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19340 left this script non-functional.
19341
19342 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19343
19344 * docs/man/grub-emu.h2m: New file.
19345
19346 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19347
19348 * docs/grub.texi (Commands): Document reduced command set in rescue
19349 mode.
19350 (cpuid): New section.
19351
19352 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19353
19354 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19355 new partition naming style.
19356 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19357
19358 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19359
19360 Add "-o grub.iso" like cmdline options support.
19361
19362 * util/grub-install.in: Improve cmdline option parsing.
19363 * util/grub-mkconfig.in: Likewise.
19364 * util/grub-mkrescue.in: Likewise.
19365 * util/grub-reboot.in: Likewise.
19366 * util/grub-set-default.in: Likewise.
19367 * util/i386/efi/grub-install.in: Likewise.
19368 * util/ieee1275/grub-install.in: Likewise.
19369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19370
19371 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19372
19373 * .bzrignore: Ignore 41_custom.
19374
19375 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19376
19377 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19378
19379 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19380
19381 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19382 prototype declarations.
19383
19384 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19385 generating fs, partmap, and video lists.
19386 * include/grub/fs.h (grub_fs_register): Omit prototype if
19387 GRUB_LST_GENERATOR is defined.
19388 * include/grub/partition.h (grub_partition_map_register): Likewise.
19389 * include/grub/video.h (grub_video_register): Likewise.
19390
19391 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19392
19393 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19394
19395 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19396
19397 * util/grub-mkrescue.in: Support --xorriso argument.
19398
19399 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19400
19401 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19402 Suggested by: Thomas Schmitt.
19403
19404 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19407 Suggested by: Thomas Schmitt.
19408
19409 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19410
19411 custom.cfg support.
19412
19413 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19414 * util/grub.d/41_custom.in: New file.
19415
19416 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19417
19418 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19419 been merged back into normal.
19420
19421 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19422
19423 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19424 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19425
19426 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19427
19428 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19429 when generating manual pages.
19430 * docs/man/grub-bin2h.h2m: New file.
19431 * docs/man/grub-editenv.h2m: New file.
19432 * docs/man/grub-fstest.h2m: New file.
19433 * docs/man/grub-install.h2m: New file.
19434 * docs/man/grub-macho2img.h2m: New file.
19435 * docs/man/grub-mkconfig.h2m: New file.
19436 * docs/man/grub-mkdevicemap.h2m: New file.
19437 * docs/man/grub-mkfont.h2m: New file.
19438 * docs/man/grub-mkimage.h2m: New file.
19439 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19440 * docs/man/grub-mkrelpath.h2m: New file.
19441 * docs/man/grub-mkrescue.h2m: New file.
19442 * docs/man/grub-ofpathname.h2m: New file.
19443 * docs/man/grub-pe2elf.h2m: New file.
19444 * docs/man/grub-probe.h2m: New file.
19445 * docs/man/grub-reboot.h2m: New file.
19446 * docs/man/grub-script-check.h2m: New file.
19447 * docs/man/grub-set-default.h2m: New file.
19448 * docs/man/grub-setup.h2m: New file.
19449
19450 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19451
19452 Use FOR_* macros instead of *_iterate whenever possible.
19453
19454 * commands/handler.c: Removed.
19455 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19456 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19457 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19458 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19459 (grub_probe_SOURCES): Remove kern/parser.c.
19460 (util/grub-script-check.c_DEPENDENCIES): Removed.
19461 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19462 and grub_script_check_init.c.
19463 (grub_script_check_init.lst): Removed.
19464 (grub_script_check_init.h): Likewise.
19465 (grub_script_check_init.c): Likewise.
19466 (pkglib_MODULES): Remove handler.mod and sh.mod.
19467 (handler_mod_SOURCES): Removed.
19468 (handler_mod_CFLAGS): Likewise.
19469 (handler_mod_LDFLAGS): Likewise.
19470 (normal_mod_SOURCES): Remove normal/handler.c.
19471 Add script/main.c, script/script.c, script/execute.c,
19472 script/function.c, script/lexer.c, grub_script.tab.c
19473 and grub_script.yy.c.
19474 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19475 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19476 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19477 (grub_setup_SOURCES): Remove kern/parser.c.
19478 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19479 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19480 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19481 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19482 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19483 (grub_setup_SOURCES): Remove kern/parser.c.
19484 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19485 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19486 * include/grub/command.h (grub_command_iterate): Removed.
19487 (FOR_COMMANDS): New macro.
19488 * include/grub/dl.h (grub_dl): New member next.
19489 (grub_dl_iterate): Removed.
19490 (grub_dl_head): New variable declaration.
19491 (FOR_DL_MODULES): New macro.
19492 * include/grub/fs.h: Include list.h.
19493 (grub_fs): Make next first element.
19494 (grub_fs_list): New variable declaration.
19495 (grub_fs_register): Make inline.
19496 (grub_fs_unregister): Likewise.
19497 (grub_fs_iterate): Removed.
19498 (FOR_FILESYSTEMS): New macro.
19499 * include/grub/handler.h: Removed.
19500 * include/grub/list.h (grub_list_hook_t): Removed.
19501 (grub_list_test_t): Likewise.
19502 (grub_list_pop): Likewise.
19503 (grub_list_iterate): Likewise.
19504 (grub_list_insert): Likewise.
19505 (FOR_LIST_ELEMENTS): New macro.
19506 * include/grub/parser.h (grub_parser_class): Removed.
19507 (grub_parser_register): Likewise.
19508 (grub_parser_unregister): Likewise.
19509 (grub_parser_get_current): Likewise.
19510 (grub_parser_set_current): Likewise.
19511 (grub_register_rescue_parser): Likewise.
19512 (grub_rescue_parse_line): New function.
19513 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19514 * include/grub/script_sh.h (grub_script_function_list): New variable
19515 declaration.
19516 (FOR_SCRIPT_FUNCTIONS): New macro.
19517 (grub_script_function_iterate): Removed.
19518 (grub_normal_parse_line): New prototype.
19519 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19520 (FOR_DISABLED_TERM_INPUTS): Likewise.
19521 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19522 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19523 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19524 element.
19525 (grub_video_register): Inline.
19526 (grub_video_unregister): Likewise.
19527 (grub_video_adapter_list): New variable declaration.
19528 (grub_video_iterate): Removed.
19529 (FOR_VIDEO_ADAPTERS): New macro.
19530 * kern/dl.c (grub_dl_list): Removed. All users updated.
19531 (grub_dl_iterate): Removed.
19532 * kern/fs.c (grub_fs_list): Make global.
19533 (grub_fs_register): Removed.
19534 (grub_fs_unregister): Likewise.
19535 (grub_fs_iterate): Likewise.
19536 * kern/handler.c: Removed.
19537 * kern/list.c (grub_list_pop): Removed.
19538 (grub_list_iterate): Likewise.
19539 (grub_list_insert): Likewise.
19540 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19541 (grub_prio_list_insert): Don't use grub_list_insert.
19542 * kern/main.c (grub_register_rescue_parser): Don't call
19543 grub_register_rescue_parser.
19544 * kern/parser.c (grub_parser_class): Removed.
19545 (grub_parser_execute): Use grub_rescue_parse_line.
19546 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19547 (grub_rescue_parser): Removed.
19548 (grub_register_rescue_parser): Likewise.
19549 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
19550 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
19551 (grub_auth_check_authentication): Likewise.
19552 * normal/completion.c (iterate_command): Removed.
19553 (grub_normal_do_completion): Use FOR_COMMANDS.
19554 * normal/handler.c: Removed.
19555 * normal/main.c (read_config_file): Remove parser changing.
19556 (grub_normal_execute): Don't call read_handler_list.
19557 (grub_normal_read_line_real): Statically allocate prompt.
19558 (grub_cmdline_run): Use grub_normal_parse_line.
19559 (GRUB_MOD_FINI): Don't call free_handler_list.
19560 * normal/menu_entry.c (run): Likewise.
19561 * script/function.c (grub_script_function_list): Make global.
19562 (grub_script_function_iterate): Removed.
19563 * script/main.c (grub_normal_parse_line): Make global.
19564 (grub_sh_parser): Removed.
19565 (GRUB_MOD_INIT): Likewise.
19566 (GRUB_MOD_FINI): Likewise.
19567 * tests/lib/functional_test.c (grub_functional_test): Use
19568 FOR_LIST_ELEMENTS.
19569 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
19570 (grub_test_run): Use FOR_LIST_ELEMENTS.
19571 * tests/lib/unit_test.c (main): Likewise.
19572 * util/deviceiter.c (grub_util_iterate_devices): Don't use
19573 grub_list_pop.
19574 * util/grub-fstest.c (grub_term_input_class): Removed.
19575 (grub_term_output_class): Likewise.
19576 * util/grub-probe.c: Likewise.
19577 * util/i386/pc/grub-setup.c: Likewise.
19578 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19579 * util/grub-script-check.c (main): Don't call grub_init_all and
19580 grub_fini_all.
19581 * video/video.c (grub_video_adapter_list): Make global.
19582 (grub_video_register): Removed.
19583 (grub_video_unregister): Likewise.
19584 (grub_video_iterate): Likewise.
19585
19586 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
19587
19588 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
19589 reported by Henrique Ferreiro.
19590
19591 2010-06-09 Robert Millan <rmh@gnu.org>
19592
19593 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
19594 ones, when both are available.
19595
19596 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19597
19598 Make --version uniform and avoid hard-coded program name.
19599
19600 * util/grub-mkimage.c (main): Use `program_name' instead of
19601 hard-coded string.
19602 * util/i386/pc/grub-setup.c (main): Likewise.
19603 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
19604 * util/grub-install.in: Save the basename of $0 in $self, and use the
19605 latter in informational messages. Use the same format for --version
19606 as the binary programs.
19607 * util/grub-mkconfig.in: Likewise.
19608 * util/grub-mkrescue.in: Likewise.
19609 * util/grub-reboot.in: Likewise.
19610 * util/grub-set-default.in: Likewise.
19611 * util/i386/efi/grub-install.in: Likewise.
19612 * util/ieee1275/grub-install.in: Likewise.
19613 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19614
19615 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19616
19617 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
19618 embedding area. Use <= instead of == when checking for non-emptiness.
19619
19620 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19621
19622 * configure.ac: Add `.' to the directories searched for unifont.
19623
19624 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19625
19626 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
19627 grub_script.yy.h.
19628
19629 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19630
19631 * docs/grub.texi (History): Expand to cover GRUB 2.
19632 (Serial terminal): Refer to `terminal_input' and `terminal_output'
19633 commands, not `terminal'.
19634 (serial): Likewise.
19635 (terminal_input): New section.
19636 (terminal_output): New section.
19637 (uppermem): New section (stub).
19638 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
19639
19640 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19641
19642 * docs/grub.texi (Security): Menu entries are unrestricted by
19643 default, not restricted to superusers as I had previously thought.
19644 Reword to account for this.
19645
19646 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19647
19648 * kern/emu/misc.c (device_mapper_null_log): New function.
19649 (grub_device_mapper_supported): New function.
19650 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
19651 prototype.
19652 * kern/emu/hostdisk.c (find_partition_start): Check whether
19653 device-mapper is supported before trying to use it.
19654 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
19655
19656 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19657
19658 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
19659 (File name syntax): Likewise.
19660 (help): --all is no longer supported in GRUB 2. Be more precise
19661 about pattern matching.
19662
19663 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19664
19665 * normal/completion.c (grub_normal_do_completion): When completing
19666 arguments to "set" and the current word contains an equals sign,
19667 skip to after the equals sign before starting completion.
19668
19669 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19670
19671 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
19672
19673 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19674
19675 * docs/grub.texi (Network): New section.
19676 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
19677 `(nd)' as in GRUB Legacy.
19678 (pxe_unload): New section.
19679
19680 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19681
19682 * docs/grub.texi (Troubleshooting): `echo' is not usually available
19683 in the rescue shell, so recommend using `set' instead. Thanks,
19684 Jordan Uggla.
19685
19686 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19687
19688 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
19689 (password): New section.
19690 (password_pbkdf2): New section.
19691 (search): New section.
19692 (Security): New section.
19693 (Troubleshooting): New section, currently very incomplete.
19694 (Invoking grub-mkpasswd-pbkdf2): New section.
19695 (Internals): New section, currently very incomplete.
19696
19697 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19698
19699 * util/grub.d/00_header.in: Add some more quoting (of
19700 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
19701 work again.
19702 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
19703
19704 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19705
19706 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
19707 to `count', fixing variable shadowing that broke the -c option.
19708
19709 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
19710
19711 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
19712 in case they contain spaces.
19713
19714 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19715
19716 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
19717 "part_" to partmap module names, in line with grub-install.
19718 Reported by: Jindřich Makovička (Debian bug #584426).
19719
19720 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19721
19722 * util/grub-mkimage.c: Make target-related error messages slightly
19723 more helpful; -O talks about "format". Explicitly point to the use
19724 of -O if no target is specified.
19725 Reported by: Didier Raboud (Debian bug #584415).
19726
19727 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
19728
19729 * INSTALL: Document several build requirements for optional features
19730 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
19731
19732 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
19733
19734 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
19735 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
19736 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
19737
19738 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19739
19740 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
19741 Thanks to Jordan Uggla for spotting this.
19742
19743 2010-06-02 Aleš Nesrsta <starous@volny.cz>
19744
19745 Finally make USB usable.
19746
19747 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
19748 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
19749 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
19750 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
19751 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
19752 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
19753 (GRUB_OHCI_FSMPS): Likewise.
19754 (GRUB_OHCI_PERIODIC_START): Likewise.
19755 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
19756 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
19757 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
19758 (GRUB_OHCI_SET_PORT_RESET): Likewise.
19759 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
19760 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
19761 (grub_ohci_transaction): Likewise.
19762 (grub_ohci_transfer): Improve condition detection algorithms.
19763 Handle toggle property. Program the transactions correctly.
19764 Improve error handling. Various important fixups.
19765 (grub_ohci_portstatus): Put register writes in right order.
19766 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
19767 (grub_uhci_transfer): Don't show "failed" message on success.
19768 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
19769 array.
19770 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
19771 determine its size.
19772 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
19773 before initialization is completed. Use IN direction for empty
19774 transfers. Use last_trans and compute toggle.
19775 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
19776 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
19777 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
19778 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
19779 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
19780 (grub_usb_device): Increase toggle to 256.
19781 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
19782 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
19783 GRUB_USBMS_SUBCLASS_SFF8070.
19784 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
19785 (grub_scsi_inquiry): New member page and alloc_length.
19786 (grub_scsi_request_sense): New structure.
19787 (grub_scsi_request_sense_data): Likewise.
19788 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
19789 control.
19790 * disk/scsi.c (grub_scsi_request_sense): New function.
19791 (grub_scsi_test_unit_ready): Likewise.
19792 (grub_scsi_inquiry): Fill new fields.
19793 (grub_scsi_read_capacity): Likewise.
19794 (grub_scsi_read10): Add request sense at the end.
19795 (grub_scsi_read12): Likewise.
19796 (grub_scsi_write10): Likewise.
19797 (grub_scsi_write12): Likewise.
19798 (grub_scsi_open): Add Test Unit Ready.
19799 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
19800 Support additional subclasses. Con't clear halt yet. Activate the
19801 proper config. Calculate LUNs correctly.
19802 (grub_usbms_transfer): Various important fixups.
19803
19804 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19805
19806 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
19807 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
19808 (grub_ohci_fini_hw): New function.
19809 (grub_ohci_restore_hw): Likewise.
19810 (GRUB_MOD_INIT(ohci)): Register preboot hook.
19811 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
19812 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
19813
19814 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19815
19816 Dedicated DMA allocations.
19817
19818 * bus/pci.c (grub_memalign_dma32): New function
19819 (grub_dma_free): Likewise.
19820 (grub_dma_get_virt): Likewise.
19821 (grub_dma_get_phys): Likewise.
19822 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
19823 (grub_ohci_pci_iter): Use dma32_alloc.
19824 (grub_ohci_transfer): Likewise.
19825 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19826 (grub_usb_bulk_readwrite): Likewise.
19827 * include/grub/pci.h: Add declarations.
19828
19829 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19830
19831 CS5536 support.
19832
19833 * bus/cs5536.c: New file.
19834 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
19835 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
19836 (cs5536_mod_SOURCES): New variable.
19837 (cs5536_mod_CFLAGS): Likewise.
19838 (cs5536_mod_LDFLAGS): Likewise.
19839 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
19840 machine/pci.h.
19841 (kernel_img_SOURCES): Add bus/cs5536.c.
19842 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
19843 usb_keyboard.mod.
19844 (usb_mod_SOURCES): New variable.
19845 (usb_mod_CFLAGS): New variable.
19846 (usb_mod_LDFLAGS): New variable.
19847 (usbtest_mod_SOURCES): New variable.
19848 (usbtest_mod_CFLAGS): New variable.
19849 (usbtest_mod_LDFLAGS): New variable.
19850 (ohci_mod_SOURCES): New variable.
19851 (ohci_mod_CFLAGS): New variable.
19852 (ohci_mod_LDFLAGS): New variable.
19853 (usbms_mod_SOURCES): New variable.
19854 (usbms_mod_CFLAGS): New variable.
19855 (usbms_mod_LDFLAGS): New variable.
19856 (usb_keyboard_mod_SOURCES): New variable.
19857 (usb_keyboard_mod_CFLAGS): New variable.
19858 (usb_keyboard_mod_LDFLAGS): New variable.
19859 * include/grub/smbus.h: New file.
19860 * include/grub/cs5536.h: New file.
19861
19862 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19863
19864 * util/grub.d/00_header.in: Add safety check to make sure that
19865 ${locale_dir} exists before trying to probe it.
19866
19867 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19868
19869 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
19870 per the GNU Coding Standards; this is now too obscure to be worth
19871 documenting.
19872 (QNX): Likewise.
19873 (chainloader): Remove cross-reference to `SCO UnixWare'.
19874
19875 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19876
19877 * docs/grub.texi (Chain-loading): New section.
19878 (DOS/Windows): New section, borrowed from GRUB Legacy with details
19879 adjusted for GRUB 2.
19880 (SCO UnixWare): Likewise.
19881 (QNX): Likewise.
19882 (chainloader): Add reference to `Block list syntax'.
19883 (drivemap): New section.
19884 (parttool): New section.
19885
19886 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19887
19888 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
19889 the grub shell'.
19890 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
19891 (Installing GRUB using grub-install): Remove reference to the grub
19892 shell; mention `grub-mkimage' and `grub-setup' instead.
19893 (Invoking grub-install): Likewise.
19894 (Interface): Add reference to `Menu entry editor'.
19895 (serial): Remove `--device' option.
19896
19897 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19898
19899 * docs/grub.texi (Configuration): New section, documenting
19900 configuration file generation using grub-mkconfig. I've left a slot
19901 for documenting the full shell scripting format but have not yet
19902 started on writing that up.
19903 (Invoking grub-mkconfig): New section.
19904
19905 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19906
19907 * docs/grub.texi (direntry): Remove grub-terminfo reference.
19908 (GNU GRUB manual): Likewise.
19909 (General commands): Update description of `terminfo' for GRUB 2.
19910
19911 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19912
19913 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
19914 (GRUB_MOD_INIT): Fix capitalisation.
19915 * docs/grub.texi (Command-line and menu entry commands): Document
19916 gettext and gptsync commands.
19917
19918 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19919
19920 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
19921 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
19922
19923 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
19924
19925 Add btrfs probing support, currently only in the single-device case.
19926
19927 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
19928 function.
19929 (grub_guess_root_device): Call find_root_device_from_mountinfo
19930 before looking in /dev.
19931
19932 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19933
19934 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
19935 GRUB_DISK_SIZE_UNKNOWN.
19936 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
19937
19938 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
19939
19940 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
19941 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
19942 corrupted or not synced properly.
19943
19944 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
19947 Reported by: Seth Goldberg.
19948
19949 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19950
19951 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
19952 addition of dest.
19953 Reported by: Seth Goldberg.
19954
19955 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19956
19957 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
19958 Reported by: Seth Goldberg.
19959
19960 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19961
19962 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
19963 64-bit address as signed on MIPS.
19964
19965 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19966
19967 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
19968 to the empty string.
19969
19970 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
19971
19972 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
19973
19974 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
19975 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
19976 * kern/misc.c (__enable_execute_stack): Disable on
19977 GRUB_MACHINE_EMU.
19978
19979 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19980
19981 Make grub-probe work with symbolic links under /dev/mapper as well
19982 as with real block devices. The Linux world seems to be (at best)
19983 in transition here, and GRUB shouldn't get caught in the middle.
19984
19985 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
19986 /dev/mapper.
19987
19988 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19989
19990 * util/grub-script-check.c (main): Ensure defined behaviour on empty
19991 input files (in which case exit zero).
19992
19993 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19994
19995 * kern/emu/misc.c (canonicalize_file_name): realpath can still
19996 return NULL for various reasons even if it has a maximum-length
19997 buffer: for example, there might be a symlink loop, or the path
19998 might exceed PATH_MAX. If this happens, return NULL.
19999
20000 2010-05-27 Robert Millan <rmh@gnu.org>
20001
20002 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20003 partmap module to handle cross-partmap setups.
20004 Reported by Orestes Mas. Gràcies!
20005
20006 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20007
20008 * util/grub-mkrescue.in: Initialise override_dir rather than
20009 assuming that it's unset or empty in the environment.
20010
20011 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20012
20013 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20014 variable index into p_index to suppress a warning with -Wshadow.
20015
20016 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20017
20018 * INSTALL: Added flex >= 2.5.35 requirement.
20019
20020 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20023
20024 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20025
20026 cmostest support.
20027
20028 * commands/i386/cmostest.c: New file.
20029 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20030 (cmostest_mod_SOURCES): New variable.
20031 (cmostest_mod_CFLAGS): Likewise.
20032 (cmostest_mod_LDFLAGS): Likewise.
20033 * conf/i386-pc.rmk: Likewise.
20034 * docs/grub.texi (Vendor power-on keys): New section.
20035 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20036 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20037 and GRUB_BUTTON_CMOS_ADDRESS.
20038 * util/grub.d/00_header.in: Handle powering-on by separate button.
20039
20040 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20041
20042 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20043 Removed drawing_scrollbar argument. All users updated
20044 Fixes #29792.
20045 Reported by Jo Shields
20046
20047 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20048
20049 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20050 buffer since gfxterm handles double repaint.
20051
20052 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20053
20054 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20055 * term/gfxterm.c (real_scroll): Likewise.
20056
20057 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20058
20059 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20060 before calling BIOS.
20061
20062 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20063
20064 * include/grub/i18n.h: Always enable grub_gettext.
20065
20066 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20069 partition naming style.
20070
20071 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20072
20073 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20074 not the first option.
20075
20076 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20077
20078 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20079
20080 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20081
20082 * util/misc.c: Move inclusion of <limits.h> to ...
20083 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20084
20085 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20086
20087 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20088 Fix merge error in NetBSD code.
20089 (find_partition_start) [__NetBSD__]: Likewise.
20090
20091 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20092
20093 Fix grub-mkrescue usage unit testing.
20094
20095 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20096
20097 2010-05-18 Christian Franke <franke@computer.org>
20098
20099 * util/grub.d/10_windows.in: Use path names instead of
20100 drive letters to prevent warning from Cygwin 1.7.
20101 Add drivemap command to menuentry if needed.
20102
20103 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20104
20105 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20106 gnumach and gnumach.gz.
20107
20108 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20109
20110 * include/grub/i18n.h (gettext): Inline instead of using #define.
20111 (grub_gettext): Likewise.
20112 (_): Likewise.
20113
20114 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20115
20116 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20117 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20118 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20119 (main): Add a slash after pkglibdirroot.
20120
20121 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20122
20123 * util/grub-install.in: Add missing "in" keyword.
20124
20125 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20126
20127 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20128 Reported by: Seth Goldberg.
20129
20130 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20133
20134 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20135
20136 * configure.ac: Check for Linux device-mapper support.
20137
20138 * util/hostdisk.c (device_is_mapped): New function.
20139 (find_partition_start): New function, partly broken out from
20140 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20141 device-mapper support added.
20142 (linux_find_partition): Use find_partition_start.
20143 (convert_system_partition_to_system_disk): Add `st' argument.
20144 Support Linux /dev/mapper/* devices if device-mapper support is
20145 available; only DM-RAID devices are understood at present.
20146 (find_system_device): Add `st' argument. Pass it to
20147 convert_system_partition_to_system_disk.
20148 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20149 find_system_device and convert_system_partition_to_system_disk. Use
20150 find_partition_start.
20151
20152 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20153 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20154 * util/deviceiter.c [__linux__]: Define MINOR.
20155 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20156 * util/mkdevicemap.c (grub_putchar): New function.
20157 (grub_getkey): New function.
20158 (grub_refresh): New function.
20159 (main): Set debug=all if -v -v is used.
20160
20161 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20162
20163 Fix build with non-GNU libcs.
20164
20165 * util/misc.c (canonicalize_file_name): Move to ...
20166 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20167 grub_make_system_path_relative_to_its_root.
20168
20169 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20170
20171 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20172 we handle finding grub-mkimage. Default to finding grub-mkimage in
20173 ${bindir} with program_transform_name applied, and provide a
20174 --grub-mkimage option to override this.
20175
20176 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20177
20178 Remove grub-mkisofs.
20179
20180 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20181 (grub_mkisofs_SOURCES): Removed.
20182 (grub_mkisofs_CFLAGS): Removed.
20183 * util/mkisofs/defaults.h: Removed.
20184 * util/mkisofs/eltorito.c: Likewise.
20185 * util/mkisofs/exclude.h: Likewise.
20186 * util/mkisofs/hash.c: Likewise.
20187 * util/mkisofs/include/: Likewise.
20188 * util/mkisofs/include/fctldefs.h: Likewise.
20189 * util/mkisofs/include/mconfig.h: Likewise.
20190 * util/mkisofs/include/prototyp.h: Likewise.
20191 * util/mkisofs/include/statdefs.h: Likewise.
20192 * util/mkisofs/iso9660.h: Likewise.
20193 * util/mkisofs/joliet.c: Likewise.
20194 * util/mkisofs/match.c: Likewise.
20195 * util/mkisofs/match.h: Likewise.
20196 * util/mkisofs/mkisofs.c: Likewise.
20197 * util/mkisofs/mkisofs.h: Likewise.
20198 * util/mkisofs/msdos_partition.h: Likewise.
20199 * util/mkisofs/multi.c: Likewise.
20200 * util/mkisofs/name.c: Likewise.
20201 * util/mkisofs/rock.c: Likewise.
20202 * util/mkisofs/tree.c: Likewise.
20203 * util/mkisofs/write.c: Likewise.
20204
20205 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20206
20207 Unify grub-mkimage accross platforms.
20208
20209 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20210 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20211 (grub_mkelfimage_SOURCES): Removed.
20212 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20213 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20214 (bin_UTILITIES): Add grub-mkimage.
20215 (grub_mkimage_SOURCES): New variable.
20216 (kernel_img_HEADERS): Remove machine/kernel.h.
20217 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20218 (pkglib_PROGRAMS): Add kernel.img.
20219 (kernel_img_HEADERS): Add machine/kernel.h.
20220 (kernel_img_FORMAT): Removed.
20221 (bin_UTILITIES): Remove grub-mkimage.
20222 (grub_mkimage_SOURCES): Removed.
20223 (grub_mkimage_CFLAGS): Likewise.
20224 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20225 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20226 (pkglib_PROGRAMS): Add kernel.img.
20227 (bin_UTILITIES): Remove grub-mkimage.
20228 (grub_mkimage_SOURCES): Removed.
20229 (grub_mkimage_CFLAGS): Likewise.
20230 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20231 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20232 (pkglib_PROGRAMS): Add kernel.img.
20233 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20234 (pkglib_PROGRAMS): Add kernel.img.
20235 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20236 (grub_mkimage_SOURCES): Removed.
20237 (grub_mkimage_CFLAGS): Likewise.
20238 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20239 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20240 (pkglib_PROGRAMS): Add kernel.img.
20241 (bin_UTILITIES): Remove grub-mkimage.
20242 (grub_mkimage_SOURCES): Removed.
20243 (grub_mkimage_CFLAGS): Likewise.
20244 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20245 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20246 (grub_mkimage_SOURCES): Removed.
20247 (grub_mkimage_CFLAGS): Likewise.
20248 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20249 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20250 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20251 (grub_pe32_optional_header): ... this.
20252 (grub_pe64_optional_header): ... and this. All users updated.
20253 (GRUB_PE32_PE32_MAGIC): Split into ..
20254 (GRUB_PE32_PE32_MAGIC): .. this.
20255 (GRUB_PE32_PE64_MAGIC): .. and this.
20256 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20257 * include/grub/elf.h (PT_GNU_STACK): New definition.
20258 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20259 * include/grub/i386/efi/kernel.h: Likewise.
20260 * include/grub/i386/kernel.h: Likewise.
20261 * include/grub/i386/pc/kernel.h: Likewise.
20262 * include/grub/i386/qemu/boot.h: Likewise.
20263 * include/grub/mips/kernel.h: Likewise.
20264 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20265 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20266 * include/grub/powerpc/kernel.h: Likewise.
20267 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20268 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20269 * include/grub/sparc64/kernel.h: Likewise.
20270 * include/grub/x86_64/efi/kernel.h: Likewise.
20271 * include/grub/x86_64/kernel.h: Likewise.
20272 * include/grub/offsets.h: New file.
20273 * include/grub/kernel.h (grub_module_info): Split into ...
20274 (grub_module_info32): ... this.
20275 (grub_module_info64): ... and this.
20276 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20277 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20278 (grub_boot_blocklist): Moved from here ...
20279 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20280 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20281 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20282 * include/grub/types.h (grub_target_to_host16): Removed.
20283 (grub_target_to_host32): Likewise.
20284 (grub_target_to_host64): Likewise.
20285 (grub_host_to_target16): Likewise.
20286 (grub_host_to_target32): Likewise.
20287 (grub_host_to_target64): Likewise.
20288 (grub_host_to_target_addr): Likewise.
20289
20290 Support grub-mkrescue for efi, coreboot and qemu.
20291
20292 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20293 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20294 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20295 * util/grub-mkrawimage.c: Moved from here ...
20296 * util/grub-mkimage.c: ... here. All users updated.
20297 (ALIGN_ADDR): Use image_target.
20298 (TARGET_NO_FIELD): New const.
20299 (image_target_desc): New type.
20300 (image_targets): New array.
20301 (grub_target_to_host64): Use image_target.
20302 (grub_target_to_host32): Likewise.
20303 (grub_target_to_host16): Likewise.
20304 (grub_host_to_target64): Likewise.
20305 (grub_host_to_target32): Likewise.
20306 (grub_host_to_target16): Likewise.
20307 (grub_host_to_target_addr): Likewise.
20308 (generate_image): Handle multiimage.
20309 (main): Require -O parameter. All users updated.
20310 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20311 util/efi/grub-mkimage.c
20312 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20313 New option --rom-directory.
20314 Use xorriso.
20315 * util/i386/efi/grub-mkimage.c: Removed.
20316 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20317 (grub_target_to_host32): Likewise.
20318 (grub_target_to_host64): Likewise.
20319 (grub_host_to_target16): Likewise.
20320 (grub_host_to_target32): Likewise.
20321 (grub_host_to_target64): Likewise.
20322 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20323 (grub_target_to_host32): Likewise.
20324 (grub_target_to_host64): Likewise.
20325 (grub_host_to_target16): Likewise.
20326 (grub_host_to_target32): Likewise.
20327 (grub_host_to_target64): Likewise.
20328
20329 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20330
20331 Source tree is reorganized for emu build.
20332
20333 * include/grub/util/console.h: Move from here...
20334 * include/grub/emu/console.h: ...to here.
20335 * include/grub/util/getroot.h: Move from here...
20336 * include/grub/emu/getroot.h: ...to here.
20337 * include/grub/util/hostdisk.h: Move from here...
20338 * include/grub/emu/hostdisk.h: ...to here.
20339 * util/console.c: Move from here...
20340 * kern/emu/console.c: ...to here.
20341 * util/getroot.c: Move from here...
20342 * kern/emu/getroot.c: ...to here.
20343 * util/grub-emu.c: Move from here...
20344 * kern/emu/main.c: ...to here.
20345 * util/hostdisk.c: Move from here...
20346 * kern/emu/hostdisk.c: ...to here.
20347 * util/hostfs.c: Move from here...
20348 * kern/emu/hostfs.c: ...to here.
20349 * util/mm.c: Move from here...
20350 * kern/emu/mm.c: ...to here.
20351 * util/pci.c: Move from here...
20352 * bus/emu/pci.c: ...to here.
20353 * util/sdl.c: Move from here...
20354 * video/emu/sdl.c: ...to here.
20355 * util/time.c: Move from here...
20356 * kern/emu/time.c: ...to here.
20357 * util/usb.c: Move from here...
20358 * bus/usb/emu/usb.c: ...to here.
20359
20360 * include/grub/emu/misc.h: New header for grub-emu functions.
20361 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20362
20363 * conf/any-emu.rmk: Rule updates for above renames.
20364 * conf/common.rmk: Likewise.
20365 * conf/i386-pc.rmk: Likewise.
20366 * conf/i386-qemu.rmk: Likewise.
20367 * conf/mips.rmk: Likewise.
20368 * conf/sparc64-ieee1275.rmk: Likewise.
20369 * conf/x86-efi.rmk: Likewise.
20370
20371 * disk/lvm.h: #include updates for above renames.
20372 * util/grub-mkrelpath.c: Likewise.
20373 * util/grub-probe.c: Likewise.
20374 * util/i386/pc/grub-setup.c: Likewise.
20375 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20376 * kern/emu/console.c: Likewise.
20377 * kern/emu/getroot.c: Likewise.
20378 * kern/emu/hostdisk.c: Likewise.
20379 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20380
20381 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20382 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20383 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20384 * util/misc.c: Remove grub-emu functions.
20385
20386 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20387
20388 Fix gfxmenu crash.
20389 Reported by: Thorsten Grützmacher.
20390
20391 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20392 timeout hook.
20393 (circprog_set_property): Register and unregister timeout hook.
20394 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20395 (label_destroy): Free template. and unregister hook.
20396 (label_set_state): New function.
20397 (label_set_property): Handle templates and hooks.
20398 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20399 timeout hook.
20400 (progress_bar_set_property): Register and unregister timeout hook.
20401 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20402 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20403 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20404 (update_timeout_visit): Removed.
20405 (update_timeouts): New function.
20406 (redraw_timeouts): Likewise.
20407 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20408 (grub_gfxmenu_clear_timeout): Likewise.
20409 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20410 (grub_gfxmenu_timeout_notify): Likewise.
20411 (grub_gfxmenu_timeout_notifications): New external variable.
20412 (grub_gfxmenu_timeout_register): New function.
20413 (grub_gfxmenu_timeout_unregister): Likewise.
20414
20415 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20416
20417 Transform (broken) vga terminal into (working) vga video driver.
20418
20419 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20420 video/i386/pc/vga.c.
20421 * include/grub/video.h (grub_video_driver_id):
20422 Add GRUB_VIDEO_DRIVER_VGA.
20423 * term/i386/pc/vga.c: Renamed to ...
20424 * video/i386/pc/vga.c: ...this
20425 (DEBUG_VGA): Removed.
20426 (CHAR_WIDTH): Likewise.
20427 (CHAR_HEIGHT): Likewise.
20428 (TEXT_WIDTH): Likewise.
20429 (TEXT_HEIGHT): Likewise.
20430 (DEFAULT_FG_COLOR): Likewise.
20431 (DEFAULT_BG_COLOR): Likewise.
20432 (colored_char): Likewise.
20433 (xpos): Likewise.
20434 (ypos): Likewise.
20435 (cursor_state): Likewise.
20436 (fg_color): Likewise.
20437 (bg_color): Likewise.
20438 (text_buf): Likewise.
20439 (page): Likewise.
20440 (font): Likewise.
20441 (framebuffer): New variable.
20442 (set_read_map): Disabled.
20443 (setup): New variable.
20444 (is_target): Likewise.
20445 (grub_vga_mod_init): Likewise.
20446 (grub_vga_mod_fini): Likewise.
20447 (check_vga_mem): Likewise.
20448 (write_char): Likewise.
20449 (write_cursor): Likewise.
20450 (scroll_up): Likewise.
20451 (grub_vga_putchar): Likewise.
20452 (grub_vga_getcharwidth): Likewise.
20453 (grub_vga_getwh): Likewise.
20454 (grub_vga_getxy): Likewise.
20455 (grub_vga_gotoxy): Likewise.
20456 (grub_vga_cls): Likewise.
20457 (grub_vga_setcolorstate): Likewise.
20458 (grub_vga_setcursor): Likewise.
20459 (grub_video_vga_init): New function.
20460 (grub_video_vga_setup): Likewise.
20461 (grub_video_vga_fini): Likewise.
20462 (update_target): Likewise.
20463 (grub_video_vga_blit_bitmap): Likewise.
20464 (grub_video_vga_blit_render_target): Likewise.
20465 (grub_video_vga_set_active_render_target): Likewise.
20466 (grub_video_vga_get_active_render_target): Likewise.
20467 (grub_video_vga_swap_buffers): Likewise.
20468 (grub_video_vga_set_palette): Likewise.
20469 (grub_video_vga_get_info_and_fini): Likewise.
20470 (grub_vga_term): Removed.
20471 (grub_video_vga_adapter): New variable.
20472 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20473 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20474
20475 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20476
20477 * video/readers/jpeg.c: Indented.
20478
20479 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20480
20481 Various jpeg cleanups.
20482
20483 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20484 (grub_jpeg_decode_quan_table): Use sizeof.
20485 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20486
20487 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20488
20489 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20490 tables. Ignore non-last ac bit.
20491 (grub_jpeg_decode_quan_table): Likewise.
20492
20493 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20494
20495 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20496 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20497 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20498 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20499 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20500 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20501
20502 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20503
20504 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20505 error.
20506
20507 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20508
20509 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20510
20511 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20512
20513 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20514 condition.
20515
20516 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20519 part.
20520
20521 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20522
20523 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20524 pointers.
20525
20526 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20527
20528 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20529
20530 2010-05-01 Christian Franke <franke@computer.org>
20531
20532 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20533 Remove broken Cygwin path conversion.
20534 * util/misc.c: [__CYGWIN__] Add include and define.
20535 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20536 for Cygwin 1.7.
20537 (make_system_path_relative_to_its_root): Simplify loop, replace early
20538 return by break.
20539 [__CYGWIN__] Add conversion to win32 path.
20540 Include "/" case in trailing slash removal.
20541
20542 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20545 Reported by: Seth Goldberg
20546
20547 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20548
20549 * commands/help.c (grub_cmd_help): Fix a typo.
20550 Reported by: Seth Goldberg
20551
20552 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20553
20554 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
20555 name and add N_.
20556 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
20557 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
20558 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
20559 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
20560 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
20561 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
20562 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20563 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20564 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20565 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20566 * normal/context.c (GRUB_MOD_INIT): Likewise.
20567 * normal/main.c (GRUB_MOD_INIT): Likewise.
20568 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20569 * term/serial.c (GRUB_MOD_INIT): Likewise.
20570 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20571
20572 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
20575 extra == 0.
20576
20577 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 * commands/iorw.c: New file.
20580 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
20581 (iorw_mod_SOURCES): New variable.
20582 (iorw_mod_CFLAGS): Likewise.
20583 (iorw_mod_LDFLAGS): Likewise.
20584
20585 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20586
20587 Hotkey support
20588
20589 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
20590 * normal/main.c (hotkey_aliases): New variable.
20591 (grub_normal_add_menu_entry): Parse "--hotkey".
20592 * normal/menu_text.c (run_menu): Handle hotkeys.
20593
20594 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20595
20596 * kern/i386/coreboot/init.c (grub_machine_init): Call
20597 grub_machine_mmap_init on qemu.
20598
20599 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20600
20601 * boot/i386/qemu/boot.S: Add a missing .code16.
20602
20603 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20604
20605 Use LBIO on coreboot.
20606
20607 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
20608 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
20609 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
20610 New declaration.
20611 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
20612 grub_machine_mmap_init on coreboot.
20613 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
20614 GRUB_LINUXBIOS_MEMBER_LINK.
20615 (grub_machine_mmap_iterate): Fix declaration.
20616 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
20617
20618 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20619
20620 Split coreboot and multiboot ports.
20621
20622 * conf/i386-multiboot.rmk: New file.
20623 * configure.ac: Add multiboot port.
20624 * include/grub/i386/multiboot/boot.h: New file.
20625 * include/grub/i386/multiboot/console.h: Likewise.
20626 * include/grub/i386/multiboot/init.h: Likewise.
20627 * include/grub/i386/multiboot/kernel.h: Likewise.
20628 * include/grub/i386/multiboot/loader.h: Likewise.
20629 * include/grub/i386/multiboot/memory.h: Likewise.
20630 * include/grub/i386/multiboot/serial.h: Likewise.
20631 * include/grub/i386/multiboot/time.h: Likewise.
20632 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
20633 * loader/multiboot.c: Likewise.
20634 * loader/multiboot_mbi2.c: Likewise.
20635 * util/grub-mkrescue.in: Generate multiboot rescue.
20636
20637 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20638
20639 * kern/parser.c (grub_parser_execute): Cope with read-only config.
20640
20641 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20642
20643 Merge handling of input and output terminals. Fix a hang.
20644
20645 * commands/terminal.c (abstract_terminal): New struct.
20646 (handle_command): New function. Based on grub_cmd_terminal_input.
20647 (grub_cmd_terminal_input): Use handle_command.
20648 (grub_cmd_terminal_output): Use handle_command.
20649
20650 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
20651
20652 Fix comment handling.
20653
20654 * tests/grub_script_comments.in: New testcase.
20655 * conf/tests.rmk: Rules for new testcase.
20656 * script/yylex.l: Updated flex rules.
20657
20658 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
20659
20660 * docs/grub.texi (play): Document that zero pitches produce rests.
20661 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
20662 if argc is 1.
20663
20664 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20665
20666 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
20667 autogen issues.
20668
20669 2010-04-26 Christian Franke <franke@computer.org>
20670
20671 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
20672 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
20673 (grub_get_prefix): Remove function.
20674 * util/grub-emu.c (main): Replace grub_get_prefix () call by
20675 make_system_path_relative_to_its_root ().
20676 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20677
20678 2010-04-24 Christian Franke <franke@computer.org>
20679
20680 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
20681 (kernel_img_LDFLAGS): Remove -static-libgcc.
20682
20683 2010-04-24 Christian Franke <franke@computer.org>
20684
20685 * configure.ac: Do not CHECK_BSS_START_SYMBOL
20686 and CHECK_END_SYMBOL if grub-emu is built.
20687 Unset TARGET_OBJ2ELF if grub-emu is built
20688 without module support.
20689
20690 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
20691
20692 Nilfs2 support.
20693
20694 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
20695 (grub_fstest_SOURCES): Likewise.
20696 (pkglib_MODULES): Add nilfs2.mod.
20697 (nilfs2_mod_SOURCES): New variable.
20698 (nilfs2_mod_CFLAGS): Likewise.
20699 (nilfs2_mod_LDFLAGS): Likewise.
20700 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20701 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20702 * fs/nilfs2.c: New file.
20703
20704 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
20707 is not supported.
20708
20709 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
20710
20711 Add grub-mkconfig support for NetBSD.
20712
20713 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
20714 * util/grub-mkconfig.in: export new NetBSD specific variables.
20715 * po/POTFILES-shell: added 10_netbsd.in.
20716 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
20717
20718 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
20719
20720 Fix emu build with grub-emu-pci and grub-emu-modules.
20721
20722 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
20723 functions.
20724 * include/grub/libpciaccess.h: New file.
20725 * conf/any-emu.rmk: Update kernel headers for emu build.
20726
20727 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
20730
20731 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20732
20733 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
20734
20735 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20736
20737 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
20738 Retrieve chosen/bootpath if bootpath isn't hardcoded.
20739 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
20740 util/ieee1275/ofpath.c.
20741 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
20742 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
20743 * include/grub/sparc64/ieee1275/boot.h
20744 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
20745 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
20746 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
20747 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
20748 const char *.
20749 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
20750 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
20751 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
20752 install.
20753
20754 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
20755
20756 * util/grub-mkconfig.in: Corrected two == equality tests.
20757 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
20758 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
20759 expect a number appended to it.
20760 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
20761 expects a number appended to it.
20762
20763 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
20766
20767 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 * util/hostdisk.c (make_device_name): Change to new partition naming.
20770
20771 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20772
20773 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
20774
20775 2010-04-17 Christian Franke <franke@computer.org>
20776
20777 * Makefile.in: Add missing localedir setting.
20778
20779 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
20780
20781 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
20782 mistake in r2156. Noticed by Anthony Fok.
20783
20784 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
20785 @localedir@.
20786 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
20787
20788 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
20789
20790 Fix a spurious, uninitialized variable warning.
20791
20792 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
20793 Initialize variable, shdr.
20794 (grub_freebsd_load_elfmodule): Likewise.
20795 (grub_freebsd_load_elf_meta): Likewise.
20796
20797 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
20798
20799 Fix for escaped dollar in double quoted strings.
20800
20801 * script/yylex.l: Updated flex rules.
20802 * conf/tests.rmk: Rule for new testcase.
20803 * tests/grub_script_dollar.in: New testcase.
20804
20805 2010-04-13 Carles Pina i Estany <carles@pina.cat>
20806 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
20807
20808 Enclose all translated strings in grub.cfg in single quotes, and
20809 escape them appropriately (Ubuntu bug #552921).
20810
20811 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
20812 * util/grub.d/10_hurd.in: Use it.
20813 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20814 * util/grub.d/10_linux.in (linux_entry): Likewise.
20815
20816 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20817
20818 Fix cygwin compilation.
20819
20820 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
20821 * include/grub/misc.h (__register_frame_info)
20822 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
20823 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20824 * kern/misc.c (__register_frame_info)
20825 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
20826 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20827
20828 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20829
20830 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
20831
20832 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20833
20834 Unify libgcc processing.
20835
20836 * Makefile.in (kernel_img_LDFLAGS): New variable.
20837 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
20838 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
20839 overwriting.
20840 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
20841 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
20842 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
20843 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
20844 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
20845 overwriting. Remove -lgcc and -static-libgcc
20846 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
20847 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20848 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20849 (kernel_img_LDFLAGS): Append instead of overwriting.
20850 Remove -lgcc and -static-libgcc
20851 * conf/sparc64-ieee1275.rmk: Likewise.
20852 * include/grub/powerpc/libgcc.h: Move to ...
20853 * include/grub/libgcc.h: .. this.
20854 * include/grub/libgcc.h: Don't export most of the function on x86.
20855 (__bswapsi2): New export.
20856 (__bswapdi2): Likewise.
20857 * include/grub/mips/libgcc.h: Removed.
20858 * include/grub/sparc64/libgcc.h: Likewise.
20859
20860 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20861
20862 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
20863 disk_info_msg (conflicts with gettexting into languages with cases).
20864
20865 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
20866
20867 Add grub-probe support for NetBSD.
20868
20869 * util/getroot.c (find_root_device): Convert block device to
20870 character device on NetBSD.
20871 * util/probe.c (probe): Require character device on NetBSD.
20872 * util/hostdisk.c: NetBSD specific headers.
20873 (configure_device_driver): new function to tune device driver
20874 parameters (currently only for NetBSD floppy driver).
20875 (grub_util_biosdisk_open): NetBSD specific code (get disk size
20876 via disklabel ioctl).
20877 (open_device): call configure_device_driver on NetBSD.
20878 (convert_system_partition_to_system_disk): NetBSD specific code.
20879 (device_is_wholedisk): Likewise.
20880 (grub_util_biosdisk_get_grub_dev): Likewise.
20881 (make_device_name): Fixed a typo in bsd_part_str.
20882 * configure.ac: check for opendisk() and getrawpartition() on
20883 NetBSD and set LIBUTIL.
20884 * Makefile.in: add LIBUTIL to LIBS.
20885
20886 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20887
20888 Documentation fix.
20889
20890 * util/grub-script-check.c: Better help message.
20891
20892 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20893
20894 Fix FreeBSD build.
20895
20896 * configure.ac: Flex version check.
20897 * conf/common.rmk: Add -Wno-error to sh.mod.
20898 * script/yylex.l: Remove all #pragma.
20899
20900 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * include/grub/util/misc.h (canonicalise_file_name): Add missing
20903 prototype.
20904 Reported by: Seth Goldberg.
20905
20906 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20907
20908 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
20909 Rename "module" to "module2".
20910 Reported by: Seth Goldberg.
20911
20912 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
20915 EXPORT_FUNC.
20916 Reported by: Seth Goldberg.
20917
20918 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20919
20920 * lib/posix_wrap/locale.h: Add missing file.
20921 Reported by: Seth Goldberg.
20922
20923 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 grub-emu module load support.
20926
20927 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
20928 NO_DYNAMIC_MODULES switched to this.
20929 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
20930 (CFLAGS): Likewise.
20931 * conf/any-emu.rmk: Generate symlist.
20932 (kernel_img_HEADERS): Add util/datetime.h.
20933 (kernel_img_HEADERS) [sdl]: Add sdl.h.
20934 (kernel_img_HEADERS) [libusb]: Add libusb.h.
20935 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
20936 kern/$(target_cpu)/cache.S.
20937 * configure.ac (grub-emu-modules): New option.
20938 * genmk.rb: Handle multiple source lists.
20939 * include/grub/sdl.h: New file.
20940 * include/grub/libusb.h: Likewise.
20941 * util/grub-emu.c (main): Hanle (host) root.
20942 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
20943 GRUB_ERR_UNKNOWN_DEVICE.
20944 * util/misc.c: Move mm functions to ...
20945 * util/mm.c: ... here. All users updated.
20946
20947 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
20950 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
20951 missing files.
20952 (maintainer-clean): Remove libgcrypt-grub.
20953
20954 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
20957
20958 2010-04-09 EFI Coder <eficoder@hotmail.com>
20959
20960 * normal/menu_text.c (print_message): Clean up the message and show
20961 the Fn information when on EFI
20962 * term/efi/console.c (grub_console_checkkey): Add F4 support.
20963
20964 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20965
20966 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
20967 All users updated.
20968 * normal/crypto.c (read_crypto_list): Likewise.
20969 * normal/dyncmd.c (read_command_list): Likewise.
20970 * normal/term.c (read_terminal_list): Likewise.
20971 * normal/main.c (read_lists): Use explicit prefix.
20972 (read_lists_hook): Use read_lists.
20973 (grub_normal_execute): Likewise.
20974
20975 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
20978 Reported by: Thomas Schmitt.
20979 Add -no-emul-boot to grub-mkisofs parameters.
20980
20981 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20982
20983 * font/font.c: Indented.
20984
20985 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20986
20987 Elif support to GRUB script (by Deepak Vankadaru).
20988
20989 * tests/grub_script_if.in: New testcase.
20990 * conf/tests.rmk: Rule for new testcase.
20991 * script/parser.y: Grammar rules for elif.
20992
20993 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20994
20995 While and until loops support to GRUB script.
20996
20997 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
20998 (grub_script_create_cmdwhile): New function prototype.
20999 (grub_script_execute_cmdwhile): New function prototype.
21000 * script/execute.c (grub_script_execute_cmdwhile): New function.
21001 * script/parser.y (command): New commands.
21002 (whilecmd): New grammar rule.
21003 (untilcmd): New grammar rule.
21004 * script/script.c (grub_script_create_cmdwhile): New function.
21005 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21006 function.
21007
21008 * tests/grub_script_while1.in: New testcase.
21009 * conf/tests.rmk: Rule for new testcase.
21010
21011 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21012
21013 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21014 as *.jpg.
21015
21016 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21017
21018 GRUB_BACKGROUND support.
21019
21020 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21021 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21022
21023 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21024
21025 Load fonts and modules for gfxmenu in grub-mkconfig.
21026 Idea by: Mario Vazquez
21027
21028 * util/grub.d/00_header.in: Load pf2 and image modules.
21029
21030 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21031
21032 grub-mkconfig multiple terminal support.
21033
21034 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21035 * util/grub.d/00_header.in: Likewise.
21036
21037 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21038
21039 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21040 we use cd $(srcdir).
21041
21042 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21043
21044 * util/grub.d/10_linux.in: Only use the first word of
21045 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21046 spaces in GRUB_DISTRIBUTOR.
21047 * util/grub.d/10_kfreebsd.in: Likewise.
21048 * util/grub.d/10_hurd.in: Likewise.
21049
21050 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21051
21052 Fix unit testing framework for Qemu 0.12.
21053
21054 * tests/util/grub-shell.in: Remove -serial stdio option.
21055
21056 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21057
21058 POSIX header file wrappers.
21059
21060 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21061 equivalents.
21062 * lib/posix_wrap/ctype.h: Likewise.
21063 * lib/posix_wrap/errno.h: Likewise.
21064 * lib/posix_wrap/langinfo.h: Likewise.
21065 * lib/posix_wrap/limits.h: Likewise.
21066 * lib/posix_wrap/localcharset.h: Likewise.
21067 * lib/posix_wrap/stdint.h: Likewise.
21068 * lib/posix_wrap/stdio.h: Likewise.
21069 * lib/posix_wrap/stdlib.h: Likewise.
21070 * lib/posix_wrap/string.h: Likewise.
21071 * lib/posix_wrap/sys/types.h: Likewise.
21072 * lib/posix_wrap/unistd.h: Likewise.
21073 * lib/posix_wrap/wchar.h: Likewise.
21074 * lib/posix_wrap/wctype.h: Likewise.
21075 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21076 (grub_script.yy.h): Likewise.
21077 * script/yylex.l: Remove POSIX emulation #defines.
21078 * Makefile.in (POSIX_CFLAGS): New variable.
21079 (GNULIB_UTIL_CFLAGS): Likewise.
21080
21081 Regexp support.
21082
21083 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21084 (regexp_mod_SOURCES): New variable.
21085 (regexp_mod_CFLAGS): Likewise.
21086 (regexp_mod_LDFLAGS): Likewise.
21087 * commands/regexp.c: New file.
21088 * gnulib/regcomp.c: New file. Imported from gnulib.
21089 * gnulib/regex.c: Likewise.
21090 * gnulib/regex_internal.c: Likewise.
21091 * gnulib/regex_internal.h: Likewise.
21092 * gnulib/regexec.c: Likewise.
21093 * gnulib/regex.h: Likewise.
21094
21095 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21096
21097 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21098 unsupported video mode types.
21099
21100 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21101
21102 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21103
21104 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21105
21106 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21107 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21108
21109 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21110
21111 Remove unused grub_vga_get_font.
21112
21113 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21114 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21115
21116 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21117
21118 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21119 * include/grub/misc.h: Likewise.
21120
21121 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21122
21123 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21124 for which failure is fatal.
21125
21126 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21127
21128 * util/grub-install.in: Use mkdir -p to create grub directory.
21129 * util/i386/efi/grub-install.in: Likewise.
21130 * util/ieee1275/grub-install.in: Likewise.
21131
21132 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21133
21134 * Makefile.in (LEX): new variable.
21135
21136 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21137
21138 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21139 `=' and added double quotes on operands of this equality test.
21140
21141 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * Makefile.in (uninstall): Remove a leftover debug echo.
21144 Reported by: Grégoire Sutre
21145
21146 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21147
21148 MIPS multiboot2 support.
21149
21150 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21151 (multiboot2_mod_SOURCES): New variable.
21152 (multiboot2_mod_CFLAGS): Likewise.
21153 (multiboot2_mod_LDFLAGS): Likewise.
21154 (multiboot2_mod_ASFLAGS): Likewise.
21155 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21156 definition.
21157 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21158 (MULTIBOOT_MBI_REGISTER): Likewise.
21159 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21160 (MULTIBOOT_ELF32_MACHINE): Likewise.
21161 (MULTIBOOT_ELF64_MACHINE): Likewise.
21162 * include/grub/mips/multiboot.h: New file.
21163 * include/grub/video.h (grub_video_driver_id): New type
21164 GRUB_VIDEO_DRIVER_SM712.
21165 (grub_video_get_info_and_fini): Export.
21166 (grub_video_get_palette): Likewise.
21167 (grub_video_get_driver_id): Likewise.
21168 * include/multiboot2.h: Resynced with spec.
21169 * loader/i386/multiboot.c: Moved from here ...
21170 * loader/multiboot.c: ... here. All users updated.
21171 (grub_multiboot_boot): Use platform-specific macros.
21172 * loader/i386/multiboot_elfxx.c: Moved from here ...
21173 * loader/multiboot_elfxx.c: ... here. All users updated.
21174 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21175 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21176 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21177
21178 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 Import gnulib argp module.
21181
21182 * gnulib/argp-ba.c: New file.
21183 * gnulib/argp-eexst.c: Likewise.
21184 * gnulib/argp-fmtstream.c: Likewise.
21185 * gnulib/argp-fmtstream.h: Likewise.
21186 * gnulib/argp-fs-xinl.c: Likewise.
21187 * gnulib/argp-help.c: Likewise.
21188 * gnulib/argp-namefrob.h: Likewise.
21189 * gnulib/argp-parse.c: Likewise.
21190 * gnulib/argp-pin.c: Likewise.
21191 * gnulib/argp-pv.c: Likewise.
21192 * gnulib/argp-pvh.c: Likewise.
21193 * gnulib/argp-version-etc.c: Likewise.
21194 * gnulib/argp-version-etc.h: Likewise.
21195 * gnulib/argp-xinl.c: Likewise.
21196 * gnulib/argp.h: Likewise.
21197
21198 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 * kern/device.c (grub_device_iterate): Clear errors after failed
21201 opening device.
21202
21203 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21204
21205 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21206 returned by firmware.
21207
21208 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21211 compilation on coreboot and qemu
21212
21213 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21214
21215 * include/multiboot2.h: Resync with spec.
21216
21217 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21218
21219 Multiboot2 tag support
21220
21221 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21222 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21223 Remove loader/multiboot_loader.c.
21224 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21225 (grub_multiboot2_real_boot): Likewise.
21226 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21227 (grub_get_multiboot_mmap_count): New proto.
21228 (grub_fill_multiboot_mmap): Likewise.
21229 (grub_multiboot_set_video_mode): Likewise.
21230 (grub_multiboot_set_console): Likewise.
21231 (grub_multiboot_load): Likewise.
21232 (grub_multiboot_load_elf): Likewise.
21233 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21234 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21235 * include/multiboot.h: Resynced with specification.
21236 * include/multiboot2.h: Resynced with specification.
21237 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21238 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21239 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21240 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21241 users updated.
21242 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21243 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21244 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21245 Removed.
21246 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21247 Moved from here...
21248 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21249 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21250 Moved from here...
21251 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21252 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21253 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21254 All users updated.
21255 * loader/i386/multiboot_mbi2.c: New file.
21256
21257 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 Resync with gnulib.
21260
21261 * Makefile.in (GNULIB_CFLAGS): New variable.
21262 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21263 (grub_script_check_CFLAGS): New variable.
21264 * gnulib/alloca.h: Resync with gnulib.
21265 * gnulib/error.c: Likewise.
21266 * gnulib/error.h: Likewise.
21267 * gnulib/fnmatch.c: Likewise.
21268 * gnulib/fnmatch_loop.c: Likewise.
21269 * gnulib/getdelim.c: Likewise.
21270 * gnulib/getline.c: Likewise.
21271 * gnulib/getopt.c: Likewise.
21272 * gnulib/getopt1.c: Likewise.
21273 * gnulib/getopt_int.h: Likewise.
21274 * gnulib/gettext.h: Likewise.
21275 * gnulib/progname.c: Likewise.
21276 * gnulib/progname.h: Likewise.
21277
21278 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21279
21280 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21281 which is the case with --disabled-nls.
21282
21283 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21284 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21285 * util/misc.c: Likewise.
21286 * util/mkisofs/mkisofs.c: Likewise.
21287 * util/mkisofs/mkisofs.h: Likewise.
21288
21289 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 Simplify Apple CC support.
21292
21293 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21294 Add 0 byte at the end not to have a symbol with empty target.
21295 * mmap/i386/pc/mmap_helper.S: Likewise.
21296 * genmk.rb: Ignore errors 2030 and 2050.
21297 * kern/i386/pc/startup.S: Use LOCAL when possible.
21298
21299 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21300
21301 Testcase and the fix for final semicolon on cmdline.
21302
21303 * tests/grub_script_final_semicolon.in: New testcase.
21304 * conf/tests.rmk: Rules for the new testcase.
21305 * script/parser.y: Grammar fix.
21306
21307 2010-03-26 BVK Chaitanya <bvk@localhost>
21308
21309 Blank lines testcase for GRUB script.
21310
21311 * tests/grub_script_blanklines.in: New testcase.
21312 * conf/tests.rmk: Rules for the new testcase.
21313
21314 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21315
21316 Don't use __FILE__.
21317
21318 * genmk.rb: Add -DGRUB_FILE to all C targets.
21319 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21320 * include/grub/list.h: Likewise.
21321 * include/grub/misc.h: Likewise.
21322 * include/grub/mm.h: Likewise.
21323 * include/grub/test.h: Likewise.
21324 * kern/mm.c: Likewise.
21325 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21326
21327 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21328
21329 Sunpc partitions support.
21330
21331 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21332 (grub_fstest_SOURCES): Likewise.
21333 (pkglib_MODULES): Add part_sunpc.mod.
21334 (part_sunpc_mod_SOURCES): New variable.
21335 (part_sunpc_mod_CFLAGS): Likewise.
21336 (part_sunpc_mod_LDFLAGS): Likewise.
21337 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21338 * partmap/sunpc.c: New file.
21339
21340 2010-03-26 BVK Chaitanya <bvk@localhost>
21341
21342 For loop support to GRUB script.
21343
21344 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21345 (grub_script_create_cmdfor): New function prototype.
21346 (grub_script_execute_cmdfor): New function prototype.
21347 * script/execute.c (grub_script_execute_cmdfor): New function.
21348 * script/parser.y (command): New for command.
21349 (forcmd): New grammar rule.
21350 * script/script.c (grub_script_create_cmdfor): New function.
21351 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21352 function.
21353 * tests/grub_script_for1.in: New testcase.
21354 * conf/tests.rmk: Rules for new testcase.
21355
21356 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21357
21358 Nested partitions
21359
21360 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21361 'partition' is NULL, grub_partition_get_start already does that.
21362 * commands/loadenv.c (check_blocklists): Likewise.
21363 (write_blocklists): Likewise.
21364 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21365 (grub_fstest_SOURCES): Likewise.
21366 (pkglib_MODULES): Add part_bsd.mod.
21367 (part_bsd_mod_SOURCES): New variable.
21368 (part_bsd_mod_CFLAGS): Likewise.
21369 (part_bsd_mod_LDFLAGS): Likewise.
21370 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21371 (grub_emu_SOURCES): Likewise.
21372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21373 * include/grub/bsdlabel.h: New file.
21374 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21375 'get_name'.
21376 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21377 (grub_partition_map_list): New variable.
21378 (grub_partition_map_register): Inline.
21379 (grub_partition_map_unregister): Likewise.
21380 (FOR_PARTITION_MAPS): New macro.
21381 (grub_partition_map_iterate): Removed.
21382 (grub_partition_get_start): Handle nested partitions.
21383 * include/grub/msdos_partition.h: Remove bsd-related entries.
21384 (grub_pc_partition): Remove.
21385 * kern/disk.c (grub_disk_close): Free partition data.
21386 (grub_disk_adjust_range): Handle nested partitions.
21387 * kern/partition.c (grub_partition_map_probe): New function.
21388 (grub_partition_probe): Parse name to number, handle subpartitions.
21389 (get_partmap): New function.
21390 (grub_partition_iterate): Handle subpartitions.
21391 (grub_partition_get_name): Likewise.
21392 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21393 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21394 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21395 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21396 Set 'number'.
21397 (acorn_partition_map_probe): Remove.
21398 (acorn_partition_map_get_name): Likewise.
21399 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21400 Set 'number'.
21401 Set 'index' to 0 since there can be only one partition entry per sector.
21402 (amiga_partition_map_probe): Remove.
21403 (amiga_partition_map_get_name): Likewise.
21404 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21405 Set 'number'.
21406 Set 'offset' and 'index' to real positions of partitions.
21407 (apple_partition_map_probe): Remove.
21408 (apple_partition_map_get_name): Likewise.
21409 * partmap/bsdlabel.c: New file.
21410 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21411 Set 'number'.
21412 Allocate 'data' so it can be correctly freed.
21413 Set 'index' to offset inside sector.
21414 (gpt_partition_map_probe): Remove.
21415 (gpt_partition_map_get_name): Likewise.
21416 * partmap/msdos.c (grub_partition_parse): Remove.
21417 (pc_partition_map_iterate): Don't force raw access.
21418 Set 'number'.
21419 Make 'ext_offset' a local variable.
21420 (pc_partition_map_probe): Remove.
21421 (pc_partition_map_get_name): Remove.
21422 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21423 Set 'number'.
21424 (sun_partition_map_probe): Remove.
21425 (sun_partition_map_get_name): Likewise.
21426 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21427 (grub_pcpart_type): Likewise.
21428 * util/hostdisk.c (open_device): Handle new numbering scheme.
21429 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21430 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21431 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21432 * util/grub-install.in: Insert all subpartition modules.
21433 * util/ieee1275/grub-install.in: Likewise.
21434
21435 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21436
21437 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21438 grammar.
21439
21440 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21441
21442 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21443
21444 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21445
21446 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21447 match where 'make install' puts them.
21448 * util/i386/efi/grub-install.in: Likewise.
21449
21450 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21451
21452 * .bzrignore: Add gentrigtables, grub-script-check,
21453 grub_script_check_init.c, grub_script_check_init.h, and
21454 trigtables.c.
21455
21456 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * kern/parser.c: Indented.
21459
21460 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21461
21462 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21463
21464 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21465
21466 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21467 alpha_mask_size == 0 case.
21468
21469 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21470
21471 GRUB shell lexer and parser improvements.
21472
21473 * conf/any-emu.rmk: Build rule updates.
21474 * conf/common.rmk: Likewise.
21475 * conf/i386-coreboot.rmk: Likewise.
21476 * conf/i386-efi.rmk: Likewise.
21477 * conf/i386-ieee1275.rmk: Likewise.
21478 * conf/i386-pc.rmk: Likewise.
21479 * conf/powerpc-ieee1275.rmk: Likewise.
21480 * conf/x86_64-efi.rmk: Likewise.
21481
21482 * configure.ac: Configure check for flex.
21483
21484 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21485 types.
21486 (grub_lexer_param): Struct member updates.
21487 (grub_parser_param): Likewise.
21488 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21489 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21490 (grub_script_lexer_init): Prototype update.
21491 (grub_script_lexer_record_start): Likewise.
21492 (grub_script_lexer_record_stop): Likewise.
21493 (grub_script_lexer_yywrap): New function prototype.
21494 (grub_script_lexer_fini): Likewise.
21495 (grub_script_execute_argument_to_string): Removed by...
21496 (grub_script_execute_argument_to_argv): ...better version.
21497
21498 * script/execute.c (ROUND_UPTO): New macro.
21499 (grub_script_execute_cmdline): Out of memory fixes.
21500 (grub_script_execute_menuentry): Likewise.
21501 (grub_script_execute_argument_to_string): Removed. Update all
21502 users by...
21503 (grub_script_execute_argument_to_argv): ...better version.
21504 * script/function.c (grub_script_function_create): Use
21505 grub_script_execute_argument_to_argv instead of
21506 grub_script_execute_argument_to_string.
21507
21508 * script/lexer.c (check_varstate): Removed.
21509 (check_textstate): Removed.
21510 (grub_script_lexer_record_start): Likewise.
21511 (grub_script_lexer_record_stop): Likewise.
21512 (recordchar): Replaced with...
21513 (grub_script_lexer_record): ...new function.
21514 (nextchar): Removed.
21515 (grub_script_lexer_init): Rewritten.
21516 (grub_script_yylex): Rewritten.
21517 (append_newline): New function.
21518 (grub_script_lexer_yywrap): New function.
21519 (grub_script_lexer_fini): New function.
21520 (grub_script_yyerror): Sets error flag.
21521
21522 * script/yylex.l: New file.
21523 (grub_lexer_yyfree): Wrapper for flex yyffre.
21524 (grub_lexer_yyalloc): Likewise.
21525 (grub_lexer_yyrealloc): Likewise.
21526 * script/parser.y: Refactored.
21527
21528 * script/script.c (grub_script_arg_add): Out of memory fixes.
21529 (grub_script_add_arglist): Likewise.
21530 (grub_script_create_cmdline): Likewise.
21531 (grub_script_create_cmdmenu): Likewise.
21532 (grub_script_add_cmd): Likewise.
21533 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21534 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21535 unnecessary code.
21536
21537 * tests/grub_script_echo1.in: New testcase.
21538 * tests/grub_script_vars1.in: New testcase.
21539 * tests/grub_script_echo_keywords.in: New testcase.
21540
21541 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21542
21543 Remove some redundancy in build system.
21544
21545 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21546 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21547 (TARGET_LDFLAGS): Add -nostdlib.
21548 (TARGET_IMG_LDFLAGS): Likewise.
21549 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
21550 anything since mmap isn't available.
21551 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
21552 Add util/time.c.
21553 (pkglib_MODULES): Remove reboot.mod.
21554 (reboot_mod_SOURCES): Removed.
21555 (reboot_mod_CFLAGS): Likewise.
21556 (reboot_mod_LDFLAGS): Likewise.
21557 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
21558 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
21559 (DEFSYMFILES): Add kernel_syms.lst.
21560 (kernel_img_HEADERS): Add common headers.
21561 (symlist.c): New target.
21562 (kernel_syms.lst): Likewise.
21563 (pkglib_MODULES): Add memdisk.mod.
21564 (memdisk_mod_SOURCES): New variable.
21565 (memdisk_mod_CFLAGS): Likewise.
21566 (memdisk_mod_LDFLAGS): Likewise.
21567 (pkglib_MODULES): Add reboot.mod.
21568 (reboot_mod_SOURCES): New variable.
21569 (reboot_mod_CFLAGS): Likewise.
21570 (reboot_mod_LDFLAGS): Likewise.
21571 (pkglib_MODULES): Add date.mod.
21572 (date_mod_SOURCES): New variable.
21573 (date_mod_CFLAGS): Likewise.
21574 (date_mod_LDFLAGS): Likewise.
21575 (pkglib_MODULES): Add datehook.mod.
21576 (datehook_mod_SOURCES): New variable.
21577 (datehook_mod_CFLAGS): Likewise.
21578 (datehook_mod_LDFLAGS): Likewise.
21579 (pkglib_MODULES): Add lsmmap.mod.
21580 (lsmmap_mod_SOURCES): New variable.
21581 (lsmmap_mod_CFLAGS): Likewise.
21582 (lsmmap_mod_LDFLAGS): Likewise.
21583 (pkglib_MODULES): Add boot.mod.
21584 (boot_mod_SOURCES): New variable.
21585 (boot_mod_CFLAGS): Likewise.
21586 (boot_mod_LDFLAGS): Likewise.
21587 * conf/i386-coreboot.rmk: Removed redundant parts.
21588 * conf/i386-ieee1275.rmk: Likewise.
21589 * conf/i386-pc.rmk: Likewise.
21590 * conf/mips-yeeloong.rmk: Likewise.
21591 * conf/mips.rmk: Likewise.
21592 * conf/powerpc-ieee1275.rmk: Likewise.
21593 * conf/sparc64-ieee1275.rmk: Likewise.
21594 * conf/x86_64-efi.rmk: Likewise.
21595 * conf/i386-coreboot.rmk: Moved qemu parts ..
21596 * conf/i386-qemu.rmk: ... here
21597 * conf/i386-efi.rmk: Moved common parts to...
21598 * conf/x86-efi.rmk: ... here.
21599 * conf/i386.rmk: Added modules common to all x86 variants.
21600 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
21601 * disk/memdisk.c: Remove grub/machine/kernel.h.
21602 * gensymlist.sh.in: Include symbol.h.
21603 * hook/datehook.c: Correct module name.
21604 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
21605 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
21606 * include/grub/i386/efi/serial.h: New file.
21607 * include/grub/x86_64/efi/serial.h: Likewise.
21608 * util/time.c: Likewise.
21609 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
21610
21611 2010-03-14 Colin King <colin.king@ubuntu.com>
21612 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21613
21614 Shrink the pre-partition-table part of boot.img by eight bytes.
21615
21616 * boot/i386/pc/boot.S (ERR): New macro.
21617 (chs_mode): Use ERR.
21618 (geometry_error): Likewise.
21619 (hd_probe_error): Remove. This is only used once, so we wrwite
21620 it inline instead.
21621 (read_error): Instead of printing read_error_string, just set up
21622 %si and fall through to ...
21623 (error_message): ... this new function, also used by ERR.
21624
21625 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21626
21627 Speed up consecutive hostdisk operations on the same device.
21628
21629 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
21630 (grub_util_biosdisk_open): Initialise disk->data.
21631 (struct linux_partition_cache): New structure.
21632 (linux_find_partition): Cache partition start positions; these are
21633 expensive to compute on every read and write.
21634 (open_device): Cache open file descriptor in disk->data, so that we
21635 don't have to reopen it and flush the buffer cache for consecutive
21636 operations on the same device.
21637 (grub_util_biosdisk_close): New function.
21638 (grub_util_biosdisk_dev): Set `close' member.
21639
21640 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
21641 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
21642 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21643 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21644 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
21645
21646 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21647
21648 Compile parts of grub-emu as modules.
21649
21650 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
21651 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
21652 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
21653 (all-local): Add $(GRUB_EMU).
21654 (install-local): Install $(GRUB_EMU).
21655 (uninstall): Uninstall $(GRUB_EMU).
21656 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
21657 * kern/dl.c: Likewise.
21658 * commands/sleep.c: Not include machine/time.h.
21659 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
21660 (COMMON_CFLAGS): Likewise.
21661 (sbin_UTILITIES): Remove grub-emu.
21662 (grub_emu_SOURCES): Removed.
21663 (kernel_img_RELOCATABLE): New variable.
21664 (pkglib_PROGRAMS): Add kernel.img.
21665 (kernel_img_SOURCES): New variable
21666 (kernel_img_CFLAGS): Likewise.
21667 (kernel_img_LDFLAGS): Likewise.
21668 (TARGET_NO_STRIP): Likewise.
21669 (TARGET_NO_DYNAMIC_MODULES): Likewise.
21670 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
21671 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
21672 (grub-emu): New target.
21673 (GRUB_EMU): New variable.
21674 * configure.ac: Whitelist -emu as possible x86_64 architecture.
21675 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
21676 * loader/xnu.c: Likewise.
21677 * include/grub/pci.h: Likewise.
21678 * genemuinit.sh: New file.
21679 * genemuinitheader.sh: Likewise.
21680 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
21681 Support TARGET_NO_DYNAMIC_MODULES.
21682 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
21683 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
21684 * disk/loopback.c: Likewise.
21685 * font/font_cmd.c: Likewise.
21686 * partmap/acorn.c: Likewise.
21687 * partmap/amiga.c: Likewise.
21688 * partmap/apple.c: Likewise.
21689 * partmap/gpt.c: Likewise.
21690 * partmap/msdos.c: Likewise.
21691 * partmap/sun.c: Likewise.
21692 * parttool/msdospart.c: Likewise.
21693 * term/gfxterm.c: Likewise.
21694 * video/bitmap.c: Likewise.
21695 * video/readers/jpeg.c: Likewise.
21696 * video/readers/png.c: Likewise.
21697 * video/readers/tga.c: Likewise.
21698 * video/video.c: Likewise.
21699 * util/grub-emu.c (read_command_list): Removed.
21700 (main): Don't call util_init_nls.
21701 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
21702 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
21703
21704 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21705
21706 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
21707 date.mod, datehook.mod.
21708 (datetime_mod_SOURCES): New variable.
21709 (datetime_mod_CFLAGS): Likewise.
21710 (datetime_mod_LDFLAGS): Likewise.
21711 (date_mod_SOURCES): Likewise.
21712 (date_mod_CFLAGS): Likewise.
21713 (date_mod_LDFLAGS): Likewise.
21714 (datehook_mod_SOURCES): Likewise.
21715 (datehook_mod_CFLAGS): Likewise.
21716 (datehook_mod_LDFLAGS): Likewise.
21717 * conf/sparc64-ieee1275.rmk: Likewise.
21718 * lib/ieee1275/datetime.c: New file.
21719
21720 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21721
21722 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
21723 (ieee1275_fb_mod_SOURCES): New variable.
21724 (ieee1275_fb_mod_CFLAGS): Likewise.
21725 (ieee1275_fb_mod_LDFLAGS): Likewise.
21726 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
21727 New proto.
21728 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
21729 (HEAP_MAX_ADDR): Likewise.
21730 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
21731 type.
21732 Correct stop condition.
21733 (grub_ieee1275_devices_iterate): New function.
21734 * video/ieee1275.c: New file.
21735
21736 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21737
21738 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
21739
21740 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
21741 as scratch.
21742 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
21743 SCRATCH_PAD_DISKBOOT as scratch.
21744 (bootit): Pass Openfirmware pointer in %o4.
21745 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
21746 of 0x200000.
21747 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
21748 with util/grub-mkrawimage.c.
21749 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
21750 * include/grub/aout.h (AOUT_MID_SUN): New definition.
21751 (grub_aout_get_type) [GRUB_UTIL]: Removed.
21752 (grub_aout_load) [GRUB_UTIL]: Likewise.
21753 * include/grub/kernel.h (grub_modules_get_end): New proto.
21754 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
21755 (SCRATCH_PAD_BOOT): New definition.
21756 (SCRATCH_PAD_DISKBOOT): Likewise.
21757 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
21758 * include/grub/sparc64/ieee1275/ieee1275.h
21759 (grub_ieee1275_original_stack): New variable
21760 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21761 New definition
21762 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
21763 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
21764 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
21765 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
21766 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
21767 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
21768 (grub_platform_image_format_t): New type.
21769 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
21770 * kern/main.c (grub_modules_get_end)
21771 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
21772 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
21773 (codestart): Switch stacks.
21774 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
21775 variable.
21776 (grub_heap_init): Use grub_modules_get_end.
21777 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
21778 stack.
21779 * util/grub-mkrawimage.c (generate_image): Support sparc64.
21780 (main): Likewise.
21781 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
21782
21783 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
21784
21785 * util/grub-mkrescue.in: Base ISO UUID on UTC.
21786
21787 2010-03-08 Matt Kraai <kraai@ftbfs.org>
21788
21789 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
21790 bug #559005).
21791
21792 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
21793
21794 * genmoddep.awk: Output all missing symbols and not only first.
21795
21796 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21797
21798 * NEWS: Put the date of 1.98 release.
21799
21800 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21801
21802 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
21803 ft2build.h.
21804
21805 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21806
21807 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
21808 completition in the middle of string.
21809
21810 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21811
21812 * util/grub-mkrescue.in: Use mktemp with explicit template.
21813
21814 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21815
21816 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
21817
21818 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
21821 right pointer.
21822
21823 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21824
21825 Fix FreeBSD compilation.
21826
21827 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
21828 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
21829
21830 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21831
21832 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
21833
21834 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21835
21836 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
21837
21838 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21839
21840 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
21841
21842 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
21843
21844 Support relative image path in theme file.
21845
21846 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
21847 (image_set_property): Handle theme_dir and relative path.
21848
21849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21850
21851 * configure.ac: Alias amd64 to x86_64.
21852
21853 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 * NEWS: mention multiboot on EFI.
21856
21857 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21858
21859 * kern/main.c (grub_load_modules): Handle errors from init functions of
21860 embeded modules.
21861
21862 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21863
21864 * normal/autofs.c (autoload_fs_module): Handle errors.
21865
21866 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21867
21868 Disable linux.mod on qemu-mips since it's not functional and leads
21869 to compilation failure.
21870
21871 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
21872 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
21873 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
21874 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
21875 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
21876 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
21877 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
21878 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
21879 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
21880 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
21881 Reported by: BVK Chaitanya
21882
21883 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
21884
21885 * INSTALL: Add gettext as a dependency and add qemu to a new section
21886 "Prerequisites for make-check".
21887
21888 2010-03-04 Christian Franke <franke@computer.org>
21889
21890 * util/grub-pe2elf.c: Add missing include "progname.h".
21891
21892 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21893
21894 * normal/crypto.c (read_crypto_list): Fix a typo.
21895 Reported by: Seth Goldberg.
21896
21897 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21898
21899 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
21900 Reported by: Seth Goldberg.
21901
21902 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21903
21904 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
21905 ascii.bitmaps.
21906
21907 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21908
21909 * genmk.rb: Remove terminal*.lst in make clean.
21910 Reported by: Seth Goldberg.
21911
21912 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21913
21914 * util/i386/efi/grub-install.in: Copy gettext files.
21915
21916 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21917
21918 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
21919
21920 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21921
21922 Wait for user entry basing on presence of output rather than on errors.
21923
21924 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
21925 (grub_install_newline_hook): Likewise.
21926 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
21927 * normal/menu.c (show_menu): Check line_counter to determine presence
21928 of output.
21929 * normal/term.c (grub_normal_line_counter): New variable.
21930 (grub_normal_get_line_counter): New function.
21931 (grub_install_newline_hook): Likewise.
21932
21933 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
21936
21937 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21938
21939 * configure.ac: Update version to 1.98.
21940
21941 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
21942
21943 * util/grub.d/10_linux.in (linux_entry): Don't default to
21944 gfxpayload=keep if Linux doesn't support video handover.
21945
21946 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
21947
21948 Don't compile video modules on yeeloong since video subsystem is part
21949 of kernel.
21950
21951 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
21952 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
21953 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
21954 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
21955 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
21956 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
21957 * include/grub/bitmap_scale.h: Likewise.
21958 * include/grub/bufio.h: Likewise.
21959 * include/grub/font.h: Likewise.
21960 * include/grub/gfxterm.h: Likewise.
21961 * include/grub/video.h: Likewise.
21962 * include/grub/vbe.h: Don't include video_fb.h.
21963 * video/i386/pc/vbe.c: Include video_fb.h.
21964 * commands/i386/pc/vbetest.c: Include video.h.
21965
21966 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
21967
21968 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
21969 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
21970 default entry if GRUB_SAVEDEFAULT=true. This allows using
21971 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
21972 saving a new default on every boot.
21973
21974 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 * normal/crypto.c (read_crypto_list): Fix a memory leak.
21977 * normal/term.c (read_terminal_list): Likewise.
21978 * normal/main.c (grub_normal_init_page): Likewise.
21979 (grub_normal_read_line_real): Likewise.
21980
21981 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21982
21983 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
21984 memory leak.
21985 Reported by: Seth Goldberg.
21986
21987 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
21988
21989 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
21990 duplicate declaration of `start'.
21991
21992 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21993
21994 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
21995 filename.
21996 Reported by: Georgy Buranov
21997
21998 2010-02-20 Carles Pina i Estany <carles@pina.cat>
21999
22000 * util/grub-mkrawimage.c (usage): Change string formatting to
22001 improve gettext.
22002
22003 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22004
22005 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22006 backspace keys.
22007
22008 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22009
22010 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22011 Reported by: Michael Suchanek.
22012
22013 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22014
22015 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22016 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22017
22018 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22019
22020 Remove any reference to non-free fonts.
22021
22022 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22023 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22024 uses non-free components.
22025 * font/font.c (grub_font_get_name): Remove example name.
22026 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22027 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22028 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22029 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22030
22031 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22032
22033 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22034
22035 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22036
22037 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22038 Double divisor.
22039 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22040 features.
22041 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22042
22043 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22044
22045 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22046
22047 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22048
22049 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22050 * docs/grub.texi (Command-line and menu entry commands): Document play
22051 command.
22052
22053 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22054
22055 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22056 parse arguments as inline tempo and notes. Move code for playing notes
22057 to...
22058 (play): ... new function.
22059
22060 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22061
22062 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22063 grub_uint16_t instead of short.
22064 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22065 disk from little endian to cpu endianness.
22066
22067 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22068
22069 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22070 GRUB_TICKS_PER_SECOND instead of 120.
22071
22072 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22073
22074 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22075 escape sequence after \e.
22076
22077 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22080 non-ASCII characters.
22081
22082 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22083
22084 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22085 set root in single quotes to prevent \, from being unescaped.
22086
22087 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22088
22089 Prevent unknown commands from stopping menuentry execution.
22090
22091 * script/execute.c (grub_script_execute_cmdline): Print error after
22092 unknown command.
22093
22094 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22095
22096 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22097 Reported by: Pavel Pisa.
22098
22099 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22100
22101 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22102
22103 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22104
22105 Merge grub_ieee1275_map_physical into grub_map and rename to
22106 grub_ieee1275_map
22107
22108 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22109 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22110 Remove.
22111 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22112 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22113 necessary.
22114 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22115
22116 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22117
22118 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22119 opening and not after.
22120
22121 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22122
22123 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22124 constants.
22125
22126 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22127
22128 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22129 (alloc_phys): Use ALIGN_UP instead of align_addr.
22130
22131 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22132
22133 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22134
22135 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22136
22137 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22138
22139 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22140
22141 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22142 verbose dprintf.
22143
22144 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22145
22146 Fix over-4GiB seek on sparc64.
22147
22148 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22149 Replace pos_i and pos_lo with pos. All users updated.
22150 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22151 New constant.
22152 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22153 Likewise.
22154 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22155 and pos_lo.
22156
22157 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22158
22159 * util/grub-mkrawimage.c (main): Call set_program_name.
22160
22161 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22162
22163 Properly align 64-bit targets.
22164
22165 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22166 (generate_image): Use ALIGN_ADDR.
22167
22168 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22169
22170 Properly create cross-endian images.
22171
22172 * include/grub/types.h (grub_host_to_target_addr): New macro
22173 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22174
22175 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22176
22177 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22178
22179 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22180
22181 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22182
22183 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22184 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22185 (grub_linux_boot): Divide by 64K when on VESA.
22186
22187 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22188
22189 Support GRUB_GFXPAYLOAD_LINUX.
22190
22191 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22192 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22193
22194 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22195
22196 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22197 to show messages instead of discarding them.
22198 Process errors after executing command and not before. Keep old method
22199 too as precaution.
22200
22201 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22202
22203 * configure.ac: Check for ft2build.h.
22204
22205 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22206
22207 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22208
22209 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22210
22211 * genkernsyms.sh.in: Use TARGET_CC.
22212
22213 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22214
22215 * NEWS: Update.
22216
22217 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22218
22219 * include/grub/multiboot2.h: Remove leftover file.
22220 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22221 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22222
22223 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22224
22225 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22226
22227 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22228
22229 Fix warnings in grub-emu when compiling with maximum warning options.
22230
22231 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22232 (grub_arch_modules_addr): Return 0 and not NULL.
22233 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22234 (xstrdup): Use newstr instead of dup.
22235 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22236 of disk to dsk to avoid shadowing.
22237 (find_free_slot): Fix prototype.
22238 * util/getroot.c (grub_util_is_dmraid): Make static.
22239 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22240 Add missing prototype.
22241 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22242
22243 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22244
22245 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22246 appropriately.
22247
22248 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22249
22250 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22251 code out.
22252
22253 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22254
22255 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22256 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22257 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22258 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22259 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22260 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22261
22262 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22263
22264 * include/grub/err.h (grub_err_printf): Don't export.
22265
22266 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22267
22268 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22269
22270 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22271
22272 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22273 * kern/misc.c (grub_gettext_dummy): Make static.
22274
22275 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22276
22277 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22278 by non-valid ones.
22279 * kern/term.c (grub_putchar): Likewise.
22280
22281 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22282
22283 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22284 buggy hook call and memory leak.
22285
22286 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22289
22290 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22291
22292 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22293
22294 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22295
22296 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22297 modevar.
22298 Return grub_errno on allocation error.
22299
22300 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22301
22302 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22303
22304 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22305
22306 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22307 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22308
22309 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22310
22311 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22312 non-pxe disk.
22313 (grub_pxefs_open): Likewise.
22314
22315 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22316
22317 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22318 * util/grub.d/10_kfreebsd.in: Likewise.
22319 * util/grub.d/10_linux.in: Likewise.
22320
22321 2010-02-06 Colin D Bennett <colin@gibibit.com>
22322
22323 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22324 (gfxmenu_mod_SOURCES): New variable.
22325 (gfxmenu_mod_CFLAGS): Likewise.
22326 (gfxmenu_mod_LDFLAGS): Likewise.
22327 * include/grub/term.h (grub_term_set_current_output): Declare
22328 argument as const.
22329 * docs/gfxmenu-theme-example.txt: New file.
22330 * gfxmenu/gfxmenu.c: Likewise.
22331 * gfxmenu/gui_box.c: Likewise.
22332 * gfxmenu/gui_canvas.c: Likewise.
22333 * gfxmenu/gui_circular_progress.c: Likewise.
22334 * gfxmenu/gui_image.c: Likewise.
22335 * gfxmenu/gui_label.c: Likewise.
22336 * gfxmenu/gui_list.c: Likewise.
22337 * gfxmenu/gui_progress_bar.c: Likewise.
22338 * gfxmenu/gui_string_util.c: Likewise.
22339 * gfxmenu/gui_util.c: Likewise.
22340 * gfxmenu/icon_manager.c: Likewise.
22341 * gfxmenu/model.c: Likewise.
22342 * gfxmenu/named_colors.c: Likewise.
22343 * gfxmenu/theme_loader.c: Likewise.
22344 * gfxmenu/view.c: Likewise.
22345 * gfxmenu/widget-box.c: Likewise.
22346 * include/grub/gfxmenu_model.h: Likewise.
22347 * include/grub/gfxmenu_view.h: Likewise.
22348 * include/grub/gfxwidgets.h: Likewise.
22349 * include/grub/gui.h: Likewise.
22350 * include/grub/gui_string_util.h: Likewise.
22351 * include/grub/icon_manager.h: Likewise.
22352
22353 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 Agglomerate scrolling in gfxterm.
22356
22357 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22358 (grub_virtual_screen_setup): Initialise 'total_screen'.
22359 (write_char): Split to ...
22360 (paint_char): ... this ...
22361 (write_char): ... and this.
22362 (paint_char): Handle delayed scrolling.
22363 (draw_cursor): Likewise.
22364 (scroll_up): Split to ...
22365 (real_scroll): ... this ...
22366 (scroll_up): ... and this.
22367 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22368 characters.
22369 (grub_gfxterm_refresh): Call real_scroll.
22370
22371 2010-02-06 Colin D Bennett <colin@gibibit.com>
22372
22373 * include/grub/misc.h (grub_iscntrl): New inline function.
22374 (grub_isalnum): Likewise.
22375 (grub_strtol): Likewise.
22376
22377 2010-02-06 Colin D Bennett <colin@gibibit.com>
22378
22379 * normal/menu_text.c (get_entry_number): Move from here ...
22380 * normal/menu.c (get_entry_number): ... moved here.
22381 * include/grub/menu.h (grub_menu_get_default_entry_index):
22382 New prototype.
22383 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22384 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22385 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22386 (grub_menu_viewer_should_return): Likewise.
22387 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22388 * normal/menu_text.c (run_menu): Enable menu switching.
22389 * normal/menu_viewer.c (should_return): New variable.
22390 (menu_viewer_changed): Likewise.
22391 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22392 (grub_menu_viewer_should_return): New function.
22393 (menuviewer_write_hook): Likewise.
22394 (grub_menu_viewer_init): Likewise.
22395
22396 2010-02-06 Colin D Bennet <colin@gibibit.com>
22397 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 Support for gfxterm in a window.
22400
22401 * include/grub/gfxterm.h: New file.
22402 * include/grub/video.h (struct grub_video_rect): New declaration.
22403 (grub_video_rect_t): Likewise.
22404 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22405 (refcount): New variable.
22406 (render_target): Likewise.
22407 (window): Likewise.
22408 (repaint_callback): Likewise.
22409 (grub_virtual_screen_setup): Use 'render_target'.
22410 (init_window): New function.
22411 (grub_gfxterm_init_window): Likewise.
22412 (grub_gfxterm_init): Check reference counter.
22413 Use init_window.
22414 (destroy_window): New function.
22415 (grub_gfxterm_destroy_window): Likewise.
22416 (grub_gfxterm_fini): Check reference counter.
22417 Use destroy_window.
22418 (redraw_screen_rect): Restore viewport.
22419 Use 'render_target' and 'window'.
22420 Call 'repaint_callback'.
22421 (write_char): Use 'render_target'.
22422 (draw_cursor): Likewise.
22423 (scroll_up): Restore viewport.
22424 Use 'render_target' and 'window'.
22425 Call 'repaint_callback'.
22426 (grub_gfxterm_cls): Likewise.
22427 (grub_gfxterm_refresh): Use 'window'.
22428 (grub_gfxterm_set_repaint_callback): New function.
22429 (grub_gfxterm_background_image_cmd): Use 'window'.
22430 (grub_gfxterm_get_term): New function.
22431 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22432
22433 2010-02-06 Colin D Bennett <colin@gibibit.com>
22434
22435 Bitmap scaling support.
22436
22437 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22438 (bitmap_scale_mod_SOURCES): New variable.
22439 (bitmap_scale_mod_CFLAGS): Likewise.
22440 (bitmap_scale_mod_LDFLAGS): Likewise.
22441 * include/grub/bitmap_scale.h: New file.
22442 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22443 (background_image_cmd_options): New variable.
22444 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22445 (cmd): Rename and change type to ...
22446 (background_image_cmd_handle): ... this. All users updated.
22447 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22448 * video/bitmap_scale.c: New file.
22449
22450 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22451
22452 SDL support.
22453
22454 * Makefile.in (LIBSDL): New variable.
22455 (enable_grub_emu_sdl): Likewise.
22456 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22457 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22458 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22459 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22460 * util/sdl.c: New file.
22461
22462 2010-02-06 Colin D Bennett <colin@gibibit.com>
22463 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 Double buffering support.
22466
22467 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22468 * include/grub/video.h: Update comment.
22469 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22470 New type.
22471 (grub_video_fb_doublebuf_blit_init): New prototype.
22472 * term/gfxterm.c (scroll_up): Support double buffering.
22473 (grub_gfxterm_refresh): Likewise.
22474 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22475 (grub_video_fb_doublebuf_blit_init): Likewise.
22476 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22477 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22478 'displayed_page', 'render_page' and 'update_screen'.
22479 (grub_video_vbe_fini): Free offscreen buffer.
22480 (doublebuf_pageflipping_commit): New function.
22481 (doublebuf_pageflipping_update_screen): Likewise.
22482 (doublebuf_pageflipping_init): Likewise.
22483 (double_buffering_init): Likewise.
22484 (grub_video_vbe_setup): Enable doublebuffering.
22485 (grub_video_vbe_swap_buffers): Implement.
22486 (grub_video_vbe_set_active_render_target): Handle double buffering.
22487 (grub_video_vbe_get_active_render_target): Likewise.
22488 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22489 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22490 (grub_video_vbe_enable_double_buffering): Likewise.
22491 (grub_video_vbe_swap_buffers): Use update_screen.
22492 (grub_video_set_mode): Use double buffering.
22493
22494 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22495
22496 * maintainance/gentrigtables.py: Remove.
22497 * lib/trig.c: Likewise.
22498
22499 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22500
22501 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22502 `trigtables.c'.
22503 (trigtables.c): New rule.
22504 (gentrigtables): Likewise.
22505 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22506
22507 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22508
22509 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22510 integer constants.
22511
22512 2010-02-06 Colin D Bennet <colin@gibibit.com>
22513
22514 Trigonometry support.
22515
22516 * include/grub/trig.h: New file.
22517 * lib/trig.c: Likewise.
22518 * maintainance/gentrigtables.py: Likewise.
22519 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22520 (trig_mod_SOURCES): New variable.
22521 (trig_mod_CFLAGS): Likewise.
22522 (trig_mod_LDFLAGS): Likewise.
22523
22524 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22525
22526 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22527 disk devices.
22528
22529 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22530
22531 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22532 error.
22533
22534 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22535
22536 * util/hostdisk.c (open_device): Don't use partition device when reading
22537 before the partition.
22538 (grub_util_biosdisk_read): Don't read from partition and before the
22539 partition in single operation.
22540 (grub_util_biosdisk_write): Don't write to partition and before the
22541 partition in single operation.
22542
22543 2010-02-03 Torsten Landschoff <torsten@debian.org>
22544
22545 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22546 last sectors.
22547
22548 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22549
22550 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
22551 CDROM reads.
22552 (grub_biosdisk_write): Refuse to write to CDROM.
22553
22554 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22555
22556 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
22557
22558 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22559
22560 * font/font.c (find_glyph): Check that bmp_idx is available before
22561 using it.
22562 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
22563 with (font == NULL).
22564
22565 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
22566
22567 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
22568
22569 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
22570
22571 * include/grub/script_sh.h (sourcecode): Add const qualifier.
22572 * util/grub-script-check.c (getline): Fix empty lines case.
22573
22574 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
22575
22576 * Makefile.in (check): Exit with fail status when one of the tests
22577 fails.
22578 * tests/example_functional_test.c (example_test): Fix reversed assert.
22579 * tests/example_unit_test.c (example_test): Likewise.
22580
22581 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
22582
22583 * util/grub.d/10_linux.in: This script does not use any of the
22584 contents of gettext.sh, only the external command `gettext', so stop
22585 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
22586 the same prefix as GRUB.)
22587 * util/grub.d/10_kfreebsd.in: Likewise.
22588
22589 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22590
22591 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
22592 of the line.
22593
22594 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22595
22596 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22597 last sectors.
22598
22599 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22600
22601 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
22602 having a 4KiB and not 32KiB buffer size.
22603
22604 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22605
22606 * util/hostfs.c: Include `<errno.h>'.
22607 (grub_hostfs_read): Handle errors from fseeko() and fread().
22608
22609 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22610
22611 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
22612 loop when using read hooks on files whose size isn't sector-aligned.
22613
22614 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22615
22616 Remove unused parameter.
22617
22618 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
22619 (grub_iso9660_open): Remove initialization of `data->length'.
22620
22621 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22622
22623 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
22624 memleak conditions.
22625
22626 2010-01-27 Carles Pina i Estany <carles@pina.cat>
22627
22628 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
22629 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
22630
22631 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22632
22633 * util/bin2h.c (usage): Fix warning (space after backslash).
22634
22635 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22636
22637 * font/font.c: Include `grub/fontformat.h.
22638 Remove font file format constants.
22639 (grub_font_load): Use the new macros.
22640 * include/grub/fontformat.h: New file.
22641 * util/grub-mkfont.c: Include `grub/fontformat.c'.
22642 (write_font_pf2): Use the new macros.
22643
22644 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22645
22646 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
22647 does.
22648
22649 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22650
22651 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
22652
22653 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
22654 (_start): Macroify `0x7F'.
22655
22656 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
22657 (make_install_device): Use "(pxe)" as fallback prefix when booting
22658 via PXE.
22659
22660 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 * configure.ac: Reset LIBS after check for libgcc symbols.
22663
22664 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
22665
22666 * util/hostdisk.c (open_device): Add trailing newline to debug
22667 message.
22668
22669 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
22670
22671 * configure.ac: Check for `limits.h'.
22672 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
22673
22674 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
22675
22676 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
22677 capitalize error strings.
22678
22679 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
22680
22681 * util/grub.d/10_hurd.in: Add a recovery mode.
22682
22683 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
22684
22685 * configure.ac: Check for libgcc symbols with -nostdlib.
22686
22687 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
22688
22689 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
22690
22691 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22692
22693 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
22694 stack since heap may be unavailable at that point.
22695 (grub_ofconsole_gotoxy): Likewise.
22696
22697 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22698
22699 * configure.ac: Check for _restgpr_14_x.
22700 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
22701 and _savegpr_* prototypes.
22702
22703 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
22704
22705 Use generic grub_reboot() for i386-efi.
22706
22707 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
22708 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
22709 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
22710
22711 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22712
22713 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
22714 presence of "prefix" variable as it breaks when normal.mod is
22715 embedded.
22716
22717 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22718
22719 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
22720 stack since heap is unavailable at that point.
22721
22722 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22723
22724 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
22725 (grub_freebsd_bootinfo): Rewritten.
22726 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
22727
22728 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22729
22730 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
22731
22732 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
22733
22734 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
22735 domain now.
22736
22737 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
22738
22739 * util/misc.c (make_system_path_relative_to_its_root): Change the work
22740 around for handling "/" to the correct fix. Fix a memory leak. Use
22741 xstrdup instead of strdup.
22742
22743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22744
22745 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
22746
22747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22748
22749 Optimise glyph lookup by Basic Multilingual Plane lookup array.
22750
22751 * font/font.c (struct grub_font): New member 'bmp_idx'.
22752 (font_init): Initialise 'bmp_idx'.
22753 (load_font_index): Fill 'bmp_idx'.
22754 (find_glyph): Make inline. Use bmp_idx for BMP characters.
22755
22756 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
22759 unnecessary calls.
22760
22761 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22762
22763 Move context handling out of the kernel.
22764
22765 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
22766 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
22767 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
22768 * conf/i386-efi.rmk: Likewise.
22769 * conf/i386-ieee1275.rmk: Likewise.
22770 * conf/i386-pc.rmk: Likewise.
22771 * conf/powerpc-ieee1275.rmk: Likewise.
22772 * conf/sparc64-ieee1275.rmk: Likewise.
22773 * conf/x86_64-efi.rmk: Likewise.
22774 * include/grub/env.h: Include grub/menu.h.
22775 (grub_env_var_type): Removed.
22776 (grub_env_var): Replaced field 'type' with 'global'.
22777 (grub_env_find): New prototype.
22778 (grub_env_context_open): Remove EXPORT_FUNC.
22779 (grub_env_context_close): Likewise.
22780 (grub_env_export): Likewise.
22781 (grub_env_set_data_slot): Removed.
22782 (grub_env_get_data_slot): Likewise.
22783 (grub_env_unset_data_slot): Likewise.
22784 (grub_env_unset_menu): New prototype.
22785 (grub_env_set_menu): Likewise.
22786 (grub_env_get_menu): Likewise.
22787 * include/grub/env_private.h: New file.
22788 * include/grub/normal.h (grub_context_init): New prototype.
22789 (grub_context_fini): Likewise.
22790 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
22791 * normal/context.c (grub_cmd_export): ... to here.
22792 * kern/env.c: Include env_private.h.
22793 (HASHSZ): Moved to include/grub/env_private.h.
22794 (grub_env_context): Likewise.
22795 (grub_env_sorted_var): Likewise.
22796 (current_context): Renamed from this ...
22797 (grub_current_context): ...to this. 'static' removed. All users updated.
22798 (grub_env_find): Removed 'static'.
22799 (grub_env_context_open): Moved to normal/context.c.
22800 (grub_env_context_close): Likewise.
22801 (grub_env_export): Likewise.
22802 (mangle_data_slot_name): Removed.
22803 (grub_env_set_data_slot): Likewise.
22804 (grub_env_get_data_slot): Likewise.
22805 (grub_env_unset_data_slot): Likewise.
22806 * kern/main.c (grub_set_root_dev): Don't export root.
22807 It will be done later.
22808 (grub_main): Don't export prefix.
22809 It will be done later.
22810 * normal/context.c: New file.
22811 * normal/main.c (free_menu): Use grub_env_unset_menu.
22812 (grub_normal_add_menu_entry): Use grub_env_get_menu.
22813 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
22814 (GRUB_MOD_INIT(normal)): Call grub_context_init.
22815 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
22816
22817 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22818
22819 setpci support.
22820
22821 * commands/setpci.c: New file.
22822 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
22823 (setpci_mod_SOURCES): New variable.
22824 (setpci_mod_CFLAGS): Likewise.
22825 (setpci_mod_LDFLAGS): Likewise.
22826
22827 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22828
22829 Byte-addressable PCI configuration space.
22830
22831 * bus/pci.c (grub_pci_make_address): Use byte address instead of
22832 dword address.
22833 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
22834 GRUB_PCI_REG_CACHELINE.
22835 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
22836 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
22837 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
22838 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
22839 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
22840 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
22841 grub_pci_make_address.
22842 (lock_rom_area): Likewise.
22843 * commands/lspci.c (grub_lspci_iter): Use macroses
22844 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
22845 of grub_pci_make_address.
22846 * disk/ata.c (grub_ata_pciinit): Likewise.
22847 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
22848 (GRUB_PCI_REG_VENDOR): Likewise.
22849 (GRUB_PCI_REG_DEVICE): Likewise.
22850 (GRUB_PCI_REG_COMMAND): Likewise.
22851 (GRUB_PCI_REG_STATUS): Likewise.
22852 (GRUB_PCI_REG_REVISION): Likewise.
22853 (GRUB_PCI_REG_CLASS): Likewise.
22854 (GRUB_PCI_REG_CACHELINE): Likewise.
22855 (GRUB_PCI_REG_LAT_TIMER): Likewise.
22856 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
22857 (GRUB_PCI_REG_BIST): Likewise.
22858 (GRUB_PCI_REG_ADDRESSES): Likewise.
22859 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22860 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22861 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22862 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22863 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22864 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22865 (GRUB_PCI_REG_CIS_POINTER): Likewise.
22866 (GRUB_PCI_REG_SUBVENDOR): Likewise.
22867 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
22868 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
22869 (GRUB_PCI_REG_CAP_POINTER): Likewise.
22870 (GRUB_PCI_REG_IRQ_LINE): Likewise.
22871 (GRUB_PCI_REG_IRQ_PIN): Likewise.
22872 (GRUB_PCI_REG_MIN_GNT): Likewise.
22873 (GRUB_PCI_REG_MAX_LAT): Likewise.
22874 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
22875 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
22876 * video/efi_uga.c (find_framebuf): Likewise.
22877 * video/sm712.c (grub_video_sm712_setup): Likewise.
22878 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
22879 space.
22880
22881 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22882
22883 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
22884 can be reliably determined to be supported.
22885
22886 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22887
22888 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
22889 that VESA is supported.
22890 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
22891 supported.
22892
22893 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22894
22895 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
22896
22897 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22898
22899 * util/misc.c (make_system_path_relative_to_its_root): Work around
22900 special-casing of "/", as previous incarnation of this routine did.
22901
22902 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22903
22904 Fix any-emu compilation.
22905
22906 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
22907 * grub_bin2h_SOURCES: New variable.
22908
22909 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22910
22911 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
22912
22913 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22914
22915 * util/grub.d/00_header.in: Fix handling of locale_dir.
22916
22917 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22918
22919 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
22920 as possible unifont location (Gentoo).
22921 Reported by: Alexander Brüning
22922
22923 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22924
22925 Don't try to generate lists for kernel.img.
22926
22927 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
22928 (pkglib_MODULES): Remove kernel.img.
22929 (kernel_img_EXPORTS): Removed.
22930 (kernel_img_RELOCATABLE): New variable.
22931 * conf/x86_64-efi.rmk: Likewise.
22932 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
22933
22934 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22935
22936 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
22937 grub_xasprintf or grub_snprintf.
22938 (grub_vsprintf): Likewise.
22939 (grub_snprintf): New proto.
22940 (grub_vsnprintf): Likewise.
22941 (grub_xasprintf): Likewise.
22942 (grub_xvasprintf): Likewise.
22943 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
22944 (grub_sprintf): Removed.
22945 (grub_vsnprintf): New function.
22946 (grub_snprintf): Likewise.
22947 (grub_xvasprintf): Likewise.
22948 (grub_xasprintf): Likewise.
22949 (grub_vsprintf): Renamed to ...
22950 (grub_vsnprintf_real): ...this. New argument max_len.
22951
22952 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
22953
22954 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
22955 fix grub-script-check warning.
22956
22957 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22958
22959 * include/grub/font.h (grub_font_load): Fix prototype.
22960
22961 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22962
22963 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
22964
22965 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22966
22967 * include/grub/x86_64/at_keyboard.h: New file.
22968
22969 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22970
22971 * loader/mips/linux.c: Include missing grub/i18n.h.
22972
22973 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22974
22975 * normal/menu.c (notify_execution_failure): Clarify error message.
22976
22977 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22978
22979 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
22980 return value (and revert all return statements). Update users.
22981
22982 2010-01-20 Dan Merillat <debian@dan.merillat.org>
22983
22984 * kern/device.c (grub_device_iterate): Allocate new part_ent
22985 structure based on sizeof (*p) rather than sizeof (p->next), to
22986 account for structure padding.
22987
22988 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
22989 disk is NULL, which might happen for LVM physical volumes with no
22990 LVM signature.
22991
22992 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22993
22994 * loader/mips/linux.c (grub_cmd_initrd)
22995 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
22996
22997 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22998
22999 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23000 (grub_video_video_init, grub_video_bitmap_init)
23001 (grub_font_manager_init, grub_term_gfxterm_init)
23002 (grub_at_keyboard_init): New extern declarations.
23003 (grub_machine_init): Initialize gfxterm and at_keyboard.
23004
23005 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23006
23007 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23008 `gfxterm.mod' into core image.
23009
23010 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23011 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23012 (kernel_img_FORMAT): Copy to ...
23013
23014 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23015 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23016 (kernel_img_FORMAT): ... here, and ...
23017
23018 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23019 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23020 (kernel_img_FORMAT): ... here.
23021
23022 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23023 and input (at_keyboard) terminals in kernel.
23024 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23025
23026 (pkglib_MODULES): Remove `pci.mod'.
23027 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23028 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23029 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23030 (at_keyboard_mod_LDFLAGS): Remove variables.
23031
23032 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23033
23034 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23035
23036 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23037
23038 * include/grub/mips/libgcc.h: Only export symbols for functions
23039 that libgcc provides.
23040
23041 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23042
23043 MIPS support.
23044
23045 * bus/bonito.c: New file.
23046 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23047 GRUB_PCI_NUM_DEVICES.
23048 * term/i386/pc/serial.c: Move to ...
23049 * term/serial.c: ... here. All users updated.
23050 * util/i386/pc/grub-mkimage.c: Move to ...
23051 * util/grub-mkrawimage.c: ... here. All users updated.
23052 * term/i386/pc/at_keyboard.c: Move to ...
23053 * term/at_keyboard.c: ... here. All users updated.
23054 * conf/mips-qemu-mips.rmk: New file.
23055 * conf/mips-yeeloong.rmk: Likewise.
23056 * conf/mips.rmk: Likewise.
23057 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23058 mipsel-qemu-mips.
23059 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23060 to port addresses.
23061 (grub_ata_pciinit): Support CS5536.
23062 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23063 * font/font_cmd.c (loadfont_command): Open file before passing it to
23064 grub_font_load.
23065 (pseudo_file_read): New function.
23066 (pseudo_file_close): Likewise.
23067 (pseudo_fs): New structure.
23068 (load_font_module): New function.
23069 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23070 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23071 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23072 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23073 * include/grub/i386/at_keyboard.h: Split into ...
23074 * include/grub/at_keyboard.h: ... this ...
23075 * include/grub/i386/at_keyboard.h: ... and this.
23076 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23077 New prototype.
23078 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23079 updated.
23080 (grub_elf64_size): Likewise.
23081 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23082 filename.
23083 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23084 * include/grub/i386/coreboot/serial.h: Rewritten.
23085 * include/grub/i386/ieee1275/serial.h: Include
23086 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23087 * include/grub/i386/pc/serial.h: Moved from here ...
23088 * include/grub/serial.h: ... to here. All users updated.
23089 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23090 (GRUB_PCI_NUM_BUS): Likewise.
23091 (GRUB_PCI_NUM_DEVICES): Likewise.
23092 (grub_pci_device_map_range): Add missing volatile keyword.
23093 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23094 * include/grub/mips/at_keyboard.h: New file.
23095 * include/grub/mips/cache.h: Likewise.
23096 * include/grub/mips/io.h: Likewise.
23097 * include/grub/mips/kernel.h: Likewise.
23098 * include/grub/mips/libgcc.h: Likewise.
23099 * include/grub/mips/pci.h: Likewise.
23100 * include/grub/mips/qemu-mips/boot.h: Likewise.
23101 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23102 * include/grub/mips/qemu-mips/loader.h: Likewise.
23103 * include/grub/mips/qemu-mips/memory.h: Likewise.
23104 * include/grub/mips/qemu-mips/serial.h: Likewise.
23105 * include/grub/mips/qemu-mips/time.h: Likewise.
23106 * include/grub/mips/relocator.h: Likewise.
23107 * include/grub/mips/time.h: Likewise.
23108 * include/grub/mips/types.h: Likewise.
23109 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23110 * include/grub/mips/yeeloong/boot.h: Likewise.
23111 * include/grub/mips/yeeloong/kernel.h: Likewise.
23112 * include/grub/mips/yeeloong/loader.h: Likewise.
23113 * include/grub/mips/yeeloong/memory.h: Likewise.
23114 * include/grub/mips/yeeloong/pci.h: Likewise.
23115 * include/grub/mips/yeeloong/serial.h: Likewise.
23116 * include/grub/mips/yeeloong/time.h: Likewise.
23117 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23118 * kern/elf.c (grub_elf32_size): New parameter. All users
23119 updated.
23120 (grub_elf64_size): Likewise.
23121 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23122 Load modules before saying "Welcome to GRUB!".
23123 Call grub_refresh after saying "Welcome to GRUB!".
23124 * kern/mips/cache.S: New file.
23125 * kern/mips/cache_flush.S: Likewise.
23126 * kern/mips/dl.c: Likewise.
23127 * kern/mips/init.c: Likewise.
23128 * kern/mips/qemu-mips/init.c: Likewise.
23129 * kern/mips/startup.S: Likewise.
23130 * kern/mips/yeeloong/init.c: Likewise.
23131 * kern/term.c (grub_putcode): Handle NULL terminal.
23132 (grub_getcharwidth): Likewise.
23133 (grub_getkey): Likewise.
23134 (grub_checkkey): Likewise.
23135 (grub_getkeystatus): Likewise.
23136 (grub_getxy): Likewise.
23137 (grub_getwh): Likewise.
23138 (grub_gotoxy): Likewise.
23139 (grub_cls): Likewise.
23140 (grub_setcolorstate): Likewise.
23141 (grub_setcolor): Likewise.
23142 (grub_getcolor): Likewise.
23143 (grub_refresh): Likewise.
23144 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23145 (write_jump): Add hatch nop.
23146 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23147 * lib/mips/setjmp.S: New file.
23148 * loader/mips/linux.c: Likewise.
23149 * term/i386/pc/at_keyboard.c: Move from here ...
23150 * term/at_keyboard.c: ... to here.
23151 * term/i386/pc/serial.c: Moved from here ...
23152 * term/serial.c: ... to here. All users updated.
23153 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23154 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23155 (serial_translate_key_sequence): Avoid deadlock.
23156 (grub_serial_getkey): Handle backspace.
23157 (grub_serial_putchar): Fix newline handling.
23158 * util/i386/pc/grub-mkimage.c: Move from here ...
23159 * util/grub-mkrawimage.c: ... to here. All users updated.
23160 (generate_image): New parameters 'font_path' and 'format'.
23161 Support embedding font.
23162 Use grub_host_to_target* instead of grub_cpu_to_le*.
23163 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23164 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23165 (options): New option "--font".
23166 (usage): Likewise.
23167 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23168 (main): Handle "--font".
23169 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23170 (grub_virtual_screen_setup): Set bg_color_display.
23171 (redraw_screen_rect): Use bg_color_display instead of incorrect
23172 bg_color.
23173 (grub_gfxterm_cls): Likewise.
23174 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23175 Support embedding config file.
23176 (add_segments): Likewise.
23177 (options): New option "--config".
23178 (main): Handle "--config".
23179 * video/sm712.c: New file.
23180
23181 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23182
23183 Fix parallel builds.
23184
23185 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23186 font.c depend on ascii.h).
23187
23188 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23189
23190 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23191
23192 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23193
23194 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23195 By default: disabled.
23196 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23197 parameter.
23198
23199 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23200
23201 * font/font.c: Update copyright years.
23202 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23203
23204 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23205
23206 * font/font.c: Include `ascii.h'.
23207 (ASCII_BITMAP_SIZE): New macro.
23208 (ascii_font_glyph): Define.
23209 (ascii_glyph_lookup): New function.
23210 (grub_font_get_string_width): Change comment. If glyph not found, use
23211 ascii_glyph_lookup.
23212 (grub_font_get_glyph_with_fallback): If glyph not available returns
23213 ascii_glyph_lookup.
23214 * util/grub-mkfont.c (file_formats): New enum.
23215 (options): Add `ascii-bitmaps' new option.
23216 (usage): Add `asii-bitmaps' new option.
23217 (write_font_ascii_bitmap): New function.
23218 (write_font): Rename to ...
23219 (write_font_p2): ... this. Remove print_glyphs call.
23220 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23221 used. Call print_glyphs.
23222 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23223
23224 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23225
23226 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23227 (grub_bin2h_SOURCES): New variable.
23228 * util/bin2h.c: New file.
23229
23230 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23231
23232 * include/multiboot.h: Resynced with spec.
23233 * include/multiboot2.h: Likewise.
23234 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23235 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23236
23237 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23238
23239 * include/grub/term.h (grub_term_register_input,
23240 grub_term_register_output): Check return of terminal init()
23241 routines, and abort if errors are raised.
23242
23243 * commands/terminal.c: Update copyright year.
23244
23245 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23246
23247 * commands/terminal.c (grub_cmd_terminal_input)
23248 (grub_cmd_terminal_output): Check return of terminal init()
23249 routines, and abort if errors are raised.
23250
23251 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 * include/grub/i386/bsd.h: Fix include pathes.
23254
23255 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23256
23257 Add missing *BSD copyright headers.
23258
23259 * include/grub/aout.h: Add BSD licence.
23260 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23261 * include/grub/i386/freebsd_linker.h: ... here,
23262 * include/grub/i386/freebsd_reboot.h: ... here,
23263 * include/grub/i386/netbsd_bootinfo.h: ... here,
23264 * include/grub/i386/netbsd_reboot.h: ... here,
23265 * include/grub/i386/openbsd_bootarg.h: ... here,
23266 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23267 licence to each file.
23268
23269 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23270
23271 * acinclude.m4: Remove `nop' assembly instruction; it's not
23272 implemented by all architectures.
23273
23274 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23275
23276 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23277 ELILO. This is no longer necessary.
23278
23279 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23280
23281 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23282
23283 * util/grub-script-check.c: grub-script-check tool.
23284 * conf/common.rmk: Make rules for grub-script-check.
23285
23286 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23287
23288 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23289 spotting it back in 2008. Shame on me for forgetting he did.
23290
23291 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23292
23293 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23294
23295 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23296 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23297 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23298 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23299 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23300 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23301
23302 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23303
23304 * include/grub/test.h: Add license header.
23305 * tests/example_functional_test.c: Likewise.
23306 * tests/example_unit_test.c: Likewise.
23307 * tests/lib/functional_test.c: Likewise.
23308 * tests/lib/test.c: Likewise.
23309 * tests/lib/unit_test.c: Likewise.
23310
23311 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 Use flag-based instead of hook-based video mode selection and "auto"
23314 keyword.
23315
23316 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23317 (grub_video_set_mode): Changed prototype. All users updated.
23318 (grub_video_check_mode_flag): New inline function.
23319 * video/video.c (parse_modespec): New function.
23320 (grub_video_set_mode): Parse flags and keywords.
23321
23322 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23323
23324 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23325 fprintf call.
23326
23327 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23328
23329 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23330
23331 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23332
23333 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23334 string.
23335 * util/grub-emu.c (usage): Likewise.
23336 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23337 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23338 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23339 * util/i386/pc/grub-setup.c (usage): Likewise.
23340
23341 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23342
23343 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23344 the message.
23345 (grub_util_info): Likewise.
23346 (grub_util_error): Likewise.
23347 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23348 and/or new lines in `grub_util_warna', `grub_util_info',
23349 `grub_util_error' calls.
23350 * util/getroot.c: Likewise.
23351 * util/grub-editenv.c: Likewise.
23352 * util/grub-emu.c: Likewise.
23353 * util/grub-fstest.c: Likewise.
23354 * util/grub-mkdevicemap.c: Likewise.
23355 * util/grub-mkfont.c: Likewise.
23356 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23357 * util/grub-mkrelpath.c: Likewise.
23358 * util/grub-pe2elf.c: Likewise.
23359 * util/grub-probe.c: Likewise.
23360 * util/hostdisk.c: Likewise.
23361 * util/i386/efi/grub-mkimage.c: Likewise.
23362 * util/i386/pc/grub-mkimage.c: Likewise.
23363 * util/i386/pc/grub-setup.c: Likewise.
23364 * util/ieee1275/ofpath.c: Likewise.
23365 * util/mkisofs/eltorito.c: Likewise.
23366 * util/mkisofs/rock.c: Likewise.
23367 * util/mkisofs/write.c: Likewise.
23368 * util/raid.c: Likewise.
23369 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23370 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23371
23372 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23373
23374 Enable multiboot on non-pc.
23375
23376 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23377 multiboot.mod and multiboot2.mod to ...
23378 * conf/i386.rmk (pkglib_MODULES): ... here.
23379 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23380 Moved to ...
23381 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23382 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23383 Moved to ...
23384 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23385 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23386 Moved to ...
23387 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23388 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23389 Moved to ...
23390 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23391 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23392 relocator.mod.
23393 (ata_mod_SOURCES): Removed.
23394 (ata_mod_CFLAGS): Likewise.
23395 (ata_mod_LDFLAGS): Likewise.
23396 (relocator_mod_SOURCES): Removed.
23397 (relocator_mod_CFLAGS): Likewise.
23398 (relocator_mod_ASFLAGS): Likewise.
23399 (relocator_mod_LDFLAGS): Likewise.
23400 Include i386.mk.
23401 * include/grub/x86_64/multiboot.h: New file.
23402 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23403 Terminate EFI.
23404
23405 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23406
23407 Video multiboot support.
23408
23409 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23410 New prototype.
23411 * include/multiboot.h: Resynced with multiboot specification.
23412 * include/multiboot2.h: Likewise.
23413 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23414 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23415 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23416 (HAS_VGA_TEXT): Likewise.
23417 (accepts_video): New variable.
23418 (grub_multiboot_set_accepts_video): New function.
23419 (grub_multiboot_get_mbi_size): Account for video structures.
23420 (set_video_mode): New function.
23421 (retrieve_video_parameters): Likewise.
23422 (grub_multiboot_make_mbi): Fill video fields.
23423
23424 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23425
23426 Video driver ids.
23427
23428 * include/grub/video.h (grub_video_driver_id): New type.
23429 (grub_video_adapter): New member 'id'. All users updated.
23430 (grub_video_get_driver_id): New proto.
23431 * video/video.c (grub_video_get_driver_id): New function.
23432
23433 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23434
23435 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23436 `var=val'.
23437
23438 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23439
23440 * normal/cmdline.c (print_completion): Gettextizze.
23441
23442 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23443
23444 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23445
23446 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23447
23448 * gettext/gettext.c (grub_gettext_translate): Push and pop
23449 grub_errno.
23450 (grub_gettext_delete_list): Change comment style.
23451 * kern/err.c (grub_error): Gettextizze.
23452 (grub_fatal): Gettextizze.
23453
23454 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23455
23456 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23457 (grub_linux16_real_boot): ... this.
23458 * kern/i386/loader.S: Likewise.
23459 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23460 (grub_linux16_boot): New function. Switches to text mode and calls
23461 grub_linux16_real_boot().
23462
23463 * loader/i386/bsd.c: Include `<grub/video.h>'.
23464 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23465 text mode before calling grub_unix_real_boot().
23466
23467 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23468 (grub_multiboot_boot): Switch to text mode before calling
23469 grub_relocator32_boot().
23470
23471 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23472 (grub_chainloader_boot): Switch to text mode before calling
23473 grub_chainloader_real_boot().
23474
23475 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23476 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23477
23478 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23479 non-empty value.
23480
23481 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23482 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23483
23484 * util/grub.d/00_header.in: Define a "savedefault" function for use
23485 in menu entries.
23486 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23487
23488 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23489 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23490
23491 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23492 saved_entry if boot_once is unset.
23493 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23494 previous saved entry (i.e. grub-reboot).
23495
23496 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23497
23498 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23499
23500 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23501
23502 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23503 `var=val'.
23504 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23505
23506 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23507
23508 * util/grub-reboot.in: Fix --version output.
23509 * util/grub-set-default.in: Likewise.
23510
23511 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23512
23513 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23514 blocks.
23515
23516 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23517
23518 * util/grub.d/00_header.in: Quote the value assigned to `default',
23519 in case it contains spaces.
23520
23521 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23522
23523 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23524 `save_default_entry' call from the macosx case to the linux case.
23525
23526 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23527 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23528
23529 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23530 in `chosen' environment variable.
23531 * normal/menu_text.c (get_entry_number): Check if the variable
23532 matches the title of a menu entry.
23533 (run_menu): Pass menu to get_entry_number.
23534
23535 * util/grub-reboot.in: New file.
23536 * util/grub-set-default.in: New file.
23537 * conf/common.rmk (grub-reboot): New utility.
23538 (grub-set-default): New utility.
23539
23540 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23541 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23542 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23543 move it to `saved_entry' for the next boot. Load environment on
23544 initialisation.
23545 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23546 * util/grub.d/10_hurd.in: Likewise.
23547 * util/grub.d/10_linux.in (linux_entry): Likewise.
23548 * util/grub.d/10_windows.in: Likewise.
23549 * util/grub.d/30_os-prober.in: Likewise.
23550
23551 * util/grub-install.in: Create environment block.
23552 * util/i386/efi/grub-install.in: Likewise.
23553 * util/ieee1275/grub-install.in: Likewise.
23554 * util/sparc64/ieee1275/grub-install.in: Likewise.
23555
23556 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
23557
23558 Unit testing framework for GRUB.
23559
23560 * Makefile.in: Test framework build rules for 'make check'.
23561 * conf/tests.rmk: Build rules for individual tests and framework.
23562
23563 * include/grub/test.h: Header file for whitebox tests.
23564 * tests/lib/functional_test.c: Framework support for whitebox
23565 functional tests.
23566 * tests/lib/test.c: Common whitebox testing code for unit and
23567 functional tests.
23568 * tests/lib/unit_test.c: Framework support for whitebox unit
23569 tests.
23570
23571 * tests/util/grub-shell-tester.in: Support utility for grub-script
23572 tests.
23573 * tests/util/grub-shell.in: Utility to execute grub-script
23574 commands in a Qemu instance.
23575
23576 * tests/example_functional_test.c: Example whitebox functional
23577 test.
23578 * tests/example_grub_script_test.in: Example grub-script test.
23579 * tests/example_scripted_test.in: Example scripted test.
23580 * tests/example_unit_test.c: Example whitebox unit test.
23581
23582 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
23583
23584 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
23585 Add loader/i386/multiboot_mbi.c.
23586 (multiboot2_mod_SOURCES): Likewise.
23587 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
23588 (multiboot2_mod_SOURCES): Likewise.
23589 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
23590 (grub_multiboot_make_mbi): Likewise.
23591 (grub_multiboot_free_mbi): Likewise.
23592 (grub_multiboot_init_mbi): Likewise.
23593 (grub_multiboot_add_module): Likewise.
23594 (grub_multiboot_set_bootdev): Likewise.
23595 * loader/i386/multiboot.c (mbi): Removed.
23596 (mbi_dest): Likewise.
23597 (alloc_mbi): New variable.
23598 (grub_multiboot_payload_size): Removed. All users updated.
23599 (grub_multiboot_pure_size): New variable.
23600 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
23601 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
23602 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
23603 (grub_fill_multiboot_mmap): Likewise.
23604 (grub_multiboot_get_bootdev): Likewise.
23605 (grub_multiboot): Use multiboot_mbi functions.
23606 * loader/i386/multiboot_mbi.c: New file.
23607
23608 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23609
23610 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
23611 it would result in module crash.
23612
23613 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23614
23615 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
23616 (grub_ofconsole_getwh): Split to ...
23617 (grub_ofconsole_getwh): ... this.
23618 (grub_ofconsole_dimensions): ...and this.
23619 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
23620
23621 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
23622
23623 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
23624
23625 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23626
23627 * loader/i386/pc/multiboot2.c: Removed stalled file.
23628
23629 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
23632 Reported by: Grégoire Sutre
23633
23634 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
23635
23636 * util/misc.c (canonicalize_file_name): New function.
23637 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
23638 instead of realpath().
23639
23640 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
23641
23642 * util/grub-install.in (usage): Clarify meaning of --root-directory,
23643 and make it clearer that it's optional. Based on confusion
23644 witnessed on IRC.
23645
23646 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23647
23648 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
23649 in premature implicit newline.
23650
23651 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23652
23653 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
23654 which resulted in garbled command line at the end of screen.
23655
23656 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23657
23658 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
23659 initialization with similar approach as with other Linux loaders.
23660
23661 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23662
23663 Fix i386-ieee1275 build.
23664
23665 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
23666 and grub_term_height() for video_{width,height} initialization.
23667
23668 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23669
23670 Fix grub-emu build.
23671
23672 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
23673
23674 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23675 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23676
23677 Support for multiple terminals.
23678
23679 * Makefile.in (pkglib_DATA): terminal.lst.
23680 (terminal.lst): New target.
23681 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
23682 (GRUB_MOD_INIT(handler)): Likewise.
23683 (GRUB_MOD_FINI(handler)): Likewise.
23684 * commands/help.c (grub_cmd_help): Handle multiple terminals.
23685 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
23686 * commands/sleep.c (do_print): Use grub_term_restore_pos.
23687 (grub_cmd_sleep): Use grub_term_save_pos.
23688 * commands/terminal.c: New file.
23689 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
23690 commands/terminal.c and lib/charset.c.
23691 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
23692 (pkglib_MODULES): Add terminal.mod.
23693 (terminal_mod_SOURCES): New variable.
23694 (terminal_mod_CFLAGS): Likewise.
23695 (terminal_mod_LDFLAGS): Likewise.
23696 * genhandlerlist.sh: Don't handle terminals.
23697 * genmk.rb: Generate terminal-*.lst.
23698 * genterminallist.sh: New file.
23699 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
23700 (grub_is_valid_utf8): Likewise.
23701 (grub_utf8_to_ucs4_alloc): Likewise.
23702 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
23703 (grub_menu_register_viewer): Changed argument.
23704 (grub_menu_try_text): New proto.
23705 (grub_gfxmenu_try_hook): New declaration.
23706 * include/grub/normal.h (grub_normal_exit_level): New declaration.
23707 (grub_menu_init_page): Additional argument term.
23708 (grub_normal_init_page): Likewise.
23709 (grub_cmdline_get): Arguments simplified.
23710 (grub_utf8_to_ucs4_alloc): Removed.
23711 (grub_print_ucs4): Additional argument term.
23712 (grub_getstringwidth): Likewise.
23713 (grub_print_message_indented): Likewise.
23714 (grub_menu_text_register_instances): New proto.
23715 (grub_show_menu): Likewise.
23716 (read_terminal_list): Likewise.
23717 (grub_set_more): Likewise.
23718 * include/grub/parser.h: Include handler.h.
23719 * include/grub/reader.h: Rewritten.
23720 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
23721 (GRUB_TERM_WIDTH): Changed to function.
23722 (GRUB_TERM_HEIGHT): Likewise.
23723 (GRUB_TERM_BORDER_WIDTH): Likewise.
23724 (GRUB_TERM_BORDER_HEIGHT): Likewise.
23725 (GRUB_TERM_NUM_ENTRIES): Likewise.
23726 (GRUB_TERM_ENTRY_WIDTH): Likewise.
23727 (GRUB_TERM_CURSOR_X): Likewise.
23728 (grub_term_input_class): Likewise.
23729 (grub_term_output_class): Likewise.
23730 (grub_term_outputs_disabled): New declaration.
23731 (grub_term_inputs_disabled): Likewise.
23732 (grub_term_outputs): Likewise.
23733 (grub_term_inputs): Likewise.
23734 (grub_term_register_input): Rewritten.
23735 (grub_term_register_output): Likewise.
23736 (grub_term_unregister_input): Likewise.
23737 (grub_term_unregister_output): Likewise.
23738 (FOR_ACTIVE_TERM_INPUTS): New macro.
23739 (FOR_DISABLED_TERM_INPUTS): Likewise.
23740 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23741 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23742 * include/grub/terminfo.h: Add oterm argument to all protypes.
23743 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
23744 Use grub_rescue_run.
23745 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
23746 All users updated.
23747 * kern/reader.c: Removed. All users updated.
23748 * kern/rescue_reader.c (grub_rescue_init): Removed.
23749 (grub_rescue_reader): Likewise.
23750 (grub_register_rescue_reader): Likewise.
23751 (grub_rescue_run): New function based on kern/reader.c.
23752 * kern/term.c: Adapted for multiterm.
23753 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
23754 (grub_is_valid_utf8): Likewise.
23755 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
23756 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
23757 right terminal.
23758 * loader/i386/linux.c (grub_linux_boot): Likewise.
23759 * normal/auth.c (grub_username_get): New function.
23760 (grub_auth_check_authentication): Use grub_username_get.
23761 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
23762 * normal/color.c: Adapt for multiterm.
23763 * normal/main.c (read_config_file): Don't use grub_reader_loop.
23764 (grub_normal_init_page): Additional argument term.
23765 (read_lists): Call read_terminal_lists.
23766 (grub_enter_normal_mode): Call grub_cmdline_run.
23767 Handle grub_normal_exit_level.
23768 (grub_cmd_normal): Make reentrant.
23769 (grub_cmd_normal_exit): New function.
23770 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
23771 * normal/menu.c: Adapt for multiterm.
23772 * normal/menu_entry.c: Likewise.
23773 * normal/menu_text.c: Likewise.
23774 * normal/menu_viewer.c: Removed. All users updated.
23775 * normal/term.c: New file.
23776 * util/console.c: Change order of includes to workaround a bug in
23777 ncurses headers.
23778 * term/terminfo.c: New argument oterm on all exported functions.
23779 All users updated.
23780 * util/grub-editenv.c (grub_term_input_class): Removed.
23781 (grub_term_output_class): Likewise.
23782
23783 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23784
23785 Make loader output a bit more user-friendly.
23786
23787 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
23788 is being loaded. Likewise for the Hurd.
23789
23790 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
23791 that kernel of FreeBSD ${version} is being loaded.
23792
23793 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
23794 grub_dprintf().
23795 (grub_cmd_initrd): Likewise.
23796 * util/grub.d/10_linux.in (linux_entry): Print message indicating
23797 that Linux ${version} is being loaded. Likewise for initrd.
23798
23799 2010-01-09 Carles Pina i Estany <carles@pina.cat>
23800
23801 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
23802
23803 2010-01-08 Carles Pina i Estany <carles@pina.cat>
23804
23805 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
23806 (GRUB_MOD_INIT): Gettextizze.
23807 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
23808 (GRUB_MOD_INIT): Gettextizze.
23809 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
23810 (grub_cmd_linux): Capitalise Linux.
23811 (GRUB_MOD_INIT): Gettextizze.
23812 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
23813 (grub_cmd_linux): Capitalise Linux.
23814 (GRUB_MOD_INIT): Gettextizze.
23815 * loader/i386/linux.c: Include `<grub/i18n.h>'.
23816 (grub_cmd_linux): Capitalise Linux.
23817 (GRUB_MOD_INIT): Gettextizze.
23818 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
23819 (GRUB_MOD_INIT): Gettextizze.
23820 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
23821 (grub_cmd_linux): Capitalise Linux.
23822 (GRUB_MOD_INIT): Gettextizze.
23823 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
23824 (grub_cpu_xnu_init): Gettextizze.
23825 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
23826 (GRUB_MOD_INIT): Gettextizze.
23827 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
23828 (GRUB_MOD_INIT): Gettextizze.
23829 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
23830 (grub_linux_load64): Capitalise Linux.
23831 (GRUB_MOD_INIT): Gettextizze.
23832 * loader/xnu.c: Include `<grub/i18n.h>'.
23833 (GRUB_MOD_INIT): Gettextizze.
23834 * po/POTFILES: Add `loader/efi/appleloader.c',
23835 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
23836 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
23837 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
23838 `loader/i386/xnu.c', `loader/multiboot_loader.c',
23839 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
23840 and `loader/xnu.c'.
23841
23842 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23843
23844 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
23845
23846 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23847
23848 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
23849 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
23850 * util/mkisofs/mkisofs.c (main): Readjust --version output.
23851
23852 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23853
23854 Reset Multiboot 2 support. New loader implements the draft in
23855 /branches/multiboot2 and shares as much code as possible with the
23856 production Multiboot 1 implementation.
23857
23858 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
23859 * loader/multiboot2.c: Likewise.
23860 * loader/i386/multiboot_helper.S: Likewise.
23861 * include/multiboot2.h: Replace with latest version from the draft
23862 in /branches/multiboot2.
23863
23864 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
23865 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
23866 and `loader/multiboot2.c'.
23867 (pkglib_MODULES): Add `multiboot2.mod'.
23868 (multiboot2_mod_SOURCES): New variable.
23869 (multiboot2_mod_LDFLAGS): Likewise.
23870 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
23871
23872 * conf/i386-pc.rmk: Likewise.
23873
23874 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23875 (multiboot_mod_SOURCES): Remove variable.
23876 (multiboot_mod_LDFLAGS): Likewise.
23877 (multiboot_mod_CFLAGS): Likewise.
23878
23879 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
23880 `<multiboot2.h>' instead of `<multiboot.h>'.
23881 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
23882 (MULTIBOOT_HEADER_MAGIC): New macros.
23883
23884 * loader/multiboot_loader.c (module_version_status): Remove variable.
23885 (find_multi_boot2_header): Remove function.
23886 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
23887 logic. Always check for the Multiboot version we're compiling for.
23888 (grub_cmd_module_loader): Likewise.
23889 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
23890 command instead of `multiboot'.
23891
23892 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23893
23894 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
23895 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
23896 all users.
23897
23898 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23899 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23900
23901 Fix breakage introduced with previous commit.
23902
23903 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
23904 commands.
23905 * normal/handler.c (read_handler_list): Revert part of previous commit
23906 affecting this file.
23907 * normal/main.c (read_lists): Move read_handler_list() call back to ...
23908 (grub_normal_execute): ... here.
23909
23910 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23911
23912 Merge prefix-redefinition-fix branch.
23913
23914 * normal/autofs.c (read_fs_list): Make function capable of being
23915 run multiple times, gracefuly replacing the previous data
23916 structures.
23917 * normal/dyncmd.c (read_command_list): Likewise.
23918 * normal/handler.c (read_handler_list): Likewise.
23919 * normal/main.c (read_lists): New function. Calls all the
23920 list reading functions.
23921 (grub_normal_execute): Use read_lists() instead of calling all
23922 list reading functions explicitly. Register read_lists() as a
23923 variable hook attached to ${prefix}.
23924
23925 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23926
23927 Merge crypto branch.
23928
23929 * Makefile.in (pkglib_DATA): Add crypto.lst.
23930 (crypto.lst): New target.
23931 * commands/hashsum.c: New file.
23932 * commands/password.c (check_password): Use grub_crypto_memcmp.
23933 * commands/password_pbkdf2.c: New file.
23934 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
23935 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
23936 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
23937 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
23938 -I$(srcdir)/lib/libgcrypt_wrap.
23939 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
23940 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
23941 password_pbkdf2.mod.
23942 (crypto_mod_SOURCES): New variable.
23943 (crypto_mod_CFLAGS): Likewise.
23944 (crypto_mod_LDFLAGS): Likewise.
23945 (hashsum_mod_SOURCES): New variable.
23946 (hashsum_mod_CFLAGS): Likewise.
23947 (hashsum_mod_LDFLAGS): Likewise.
23948 (pbkdf2_mod_SOURCES): New variable.
23949 (pbkdf2_mod_CFLAGS): Likewise.
23950 (pbkdf2_mod_LDFLAGS): Likewise.
23951 (password_pbkdf2_mod_SOURCES): New variable.
23952 (password_pbkdf2_mod_CFLAGS): Likewise.
23953 (password_pbkdf2_mod_LDFLAGS): Likewise.
23954 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
23955 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
23956 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
23957 Include conf/gcry.rmk.
23958 * include/grub/auth.h: Rewritten.
23959 * include/grub/crypto.h: New file.
23960 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
23961 * include/grub/normal.h (read_crypto_list): New prototype.
23962 * lib/crypto.c: New file.
23963 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23964 * lib/pbkdf2.c: Likewise.
23965 * normal/auth.c (grub_auth_strcmp): Removed.
23966 (grub_iswordseparator): Likewise.
23967 (grub_auth_strword): Likewise.
23968 (is_authenticated): Use grub_strword.
23969 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
23970 and grub_strword. Pass entered password to authentication callback.
23971 * normal/crypto.c: New file.
23972 * normal/main.c: Call read_crypto_list.
23973 * util/grub-mkpasswd-pbkdf2.c: New file.
23974 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
23975
23976 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
23977
23978 Fix descent and ascent calculation.
23979
23980 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
23981 (options): New option "asce".
23982 (usage): Likewise.
23983 (add_char): Ignore invalid glyphs for descent calculation.
23984 Calculate ascent from actual content.
23985 (print_glyphs): Use 'asce'.
23986 (write_font): Likewise. Allow ascent override.
23987 (main): Handle "asce" option.
23988
23989 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23990
23991 * kern/err.c: Include `<grub/i18n.h>'.
23992 (grub_print_error): Add full stop. Gettextizze.
23993 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
23994 (grub_bsd_load_elf): Capitalise ELF.
23995 (grub_cmd_freebsd_loadenv): Add `s' in error string.
23996 (grub_cmd_freebsd_module): Likewise.
23997 (grub_cmd_freebsd_module_elf): Likewise.
23998 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
23999
24000 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24001
24002 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24003 * commands/search_file.c (HELP_MESSAGE): New macro.
24004 * commands/search_label.c (HELP_MESSAGE): Likewise.
24005 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24006 * po/POTFILES: Add `commands/search_file.c',
24007 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24008 `commands/search.c'.
24009
24010 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24011
24012 * config.rpath: Update from Gnulib.
24013
24014 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24015
24016 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24017
24018 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24019
24020 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24021
24022 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24023
24024 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24025 arguments to fread so that we get a return value in bytes, rather
24026 than something that will normally be rounded down to 0.
24027 Adjust error handling to avoid producing garbage when size_t is not
24028 the same size as long long.
24029
24030 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24031
24032 * util/mkisofs/write.c (padblock_write): Check return value of
24033 fread.
24034
24035 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24036
24037 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24038 floppy images now.
24039
24040 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24041
24042 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24043
24044 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24045 instead of manual alignment.
24046 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24047 verbose). Avoid attempts to read past end of the device
24048 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24049 but GRUB_DISK_CACHE_SIZE may exceed that).
24050
24051 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24052
24053 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24054 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24055 it to upper layer.
24056
24057 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24058
24059 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24060 New constant.
24061 (grub_efi_piwg_device_path): New structure
24062 (grub_efi_piwg_device_path_t): New type.
24063 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24064 (devpath_1): Transform to a structure. All users updated.
24065 (devpath_2): Likewise.
24066 (devpath_3): Likewise.
24067 (devpath_4): Likewise.
24068 (devpath_5): Likewise.
24069
24070 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24071
24072 * loader/efi/appleloader.c: Restored. Update all users.
24073
24074 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24075
24076 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24077
24078 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24079 (struct boot_blocklist): Move from here ...
24080 * include/grub/i386/pc/boot.h [ASM_FILE]
24081 (struct grub_boot_blocklist): ... to here. Update all users.
24082 (setup): Only initialize `start' member of `first_block'
24083 structure. Add assert() calls to verify the other members.
24084
24085 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24086 (generate_image): Fix broken blocklist length initialization.
24087 Add assert() call to verify blocklist `segment' field.
24088
24089 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24090
24091 * loader/efi/appleloader.c: Remove. Update all users.
24092
24093 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24094
24095 * boot/i386/pc/boot.S: Update copyright year.
24096 * boot/i386/pc/cdboot.S: Likewise.
24097 * boot/i386/pc/diskboot.S: Likewise.
24098 * boot/i386/pc/lnxboot.S: Likewise.
24099 * boot/i386/pc/pxeboot.S: Likewise.
24100 * bus/pci.c: Likewise.
24101 * commands/cmp.c: Likewise.
24102 * commands/help.c: Likewise.
24103 * commands/hexdump.c: Likewise.
24104 * commands/i386/pc/halt.c: Likewise.
24105 * commands/i386/pc/play.c: Likewise.
24106 * commands/i386/pc/vbeinfo.c: Likewise.
24107 * commands/ls.c: Likewise.
24108 * commands/test.c: Likewise.
24109 * disk/dmraid_nvidia.c: Likewise.
24110 * disk/i386/pc/biosdisk.c: Likewise.
24111 * disk/ieee1275/nand.c: Likewise.
24112 * disk/ieee1275/ofdisk.c: Likewise.
24113 * disk/lvm.c: Likewise.
24114 * disk/raid.c: Likewise.
24115 * disk/raid6_recover.c: Likewise.
24116 * disk/scsi.c: Likewise.
24117 * fs/affs.c: Likewise.
24118 * fs/cpio.c: Likewise.
24119 * fs/ext2.c: Likewise.
24120 * fs/hfs.c: Likewise.
24121 * fs/iso9660.c: Likewise.
24122 * fs/ntfs.c: Likewise.
24123 * fs/sfs.c: Likewise.
24124 * fs/udf.c: Likewise.
24125 * fs/ufs.c: Likewise.
24126 * fs/xfs.c: Likewise.
24127 * gencmdlist.sh: Likewise.
24128 * genmk.rb: Likewise.
24129 * include/grub/disk.h: Likewise.
24130 * include/grub/efi/api.h: Likewise.
24131 * include/grub/efi/efi.h: Likewise.
24132 * include/grub/efi/pe32.h: Likewise.
24133 * include/grub/elf.h: Likewise.
24134 * include/grub/fs.h: Likewise.
24135 * include/grub/i386/at_keyboard.h: Likewise.
24136 * include/grub/i386/pc/memory.h: Likewise.
24137 * include/grub/i386/pc/vbe.h: Likewise.
24138 * include/grub/i386/pci.h: Likewise.
24139 * include/grub/i386/tsc.h: Likewise.
24140 * include/grub/ieee1275/ieee1275.h: Likewise.
24141 * include/grub/ntfs.h: Likewise.
24142 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24143 * include/grub/sparc64/libgcc.h: Likewise.
24144 * include/grub/symbol.h: Likewise.
24145 * include/grub/types.h: Likewise.
24146 * include/multiboot2.h: Likewise.
24147 * io/gzio.c: Likewise.
24148 * kern/device.c: Likewise.
24149 * kern/disk.c: Likewise.
24150 * kern/efi/efi.c: Likewise.
24151 * kern/efi/mm.c: Likewise.
24152 * kern/elf.c: Likewise.
24153 * kern/file.c: Likewise.
24154 * kern/i386/dl.c: Likewise.
24155 * kern/i386/pc/init.c: Likewise.
24156 * kern/i386/pc/startup.S: Likewise.
24157 * kern/ieee1275/ieee1275.c: Likewise.
24158 * kern/ieee1275/init.c: Likewise.
24159 * kern/main.c: Likewise.
24160 * kern/mm.c: Likewise.
24161 * kern/powerpc/dl.c: Likewise.
24162 * kern/sparc64/dl.c: Likewise.
24163 * kern/x86_64/dl.c: Likewise.
24164 * lib/hexdump.c: Likewise.
24165 * loader/efi/appleloader.c: Likewise.
24166 * loader/i386/ieee1275/linux.c: Likewise.
24167 * loader/i386/pc/chainloader.c: Likewise.
24168 * loader/i386/pc/linux.c: Likewise.
24169 * loader/i386/pc/multiboot2.c: Likewise.
24170 * loader/ieee1275/multiboot2.c: Likewise.
24171 * loader/multiboot2.c: Likewise.
24172 * loader/multiboot_loader.c: Likewise.
24173 * loader/powerpc/ieee1275/linux.c: Likewise.
24174 * normal/completion.c: Likewise.
24175 * normal/menu_entry.c: Likewise.
24176 * partmap/apple.c: Likewise.
24177 * util/grub.d/10_hurd.in: Likewise.
24178 * util/hostfs.c: Likewise.
24179 * video/readers/png.c: Likewise.
24180
24181 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24182
24183 * include/grub/misc.h (GNUC_PREREQ): New macro.
24184 (ATTRIBUTE_ERROR): New macro.
24185 * include/grub/list.h (grub_bad_type_cast_real): Use
24186 ATTRIBUTE_ERROR.
24187
24188 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24189
24190 * normal/menu_text.c (print_message): Change messages.
24191
24192 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24193
24194 * normal/menu_entry.c (store_completion): Gettextizze.
24195
24196 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24197
24198 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24199
24200 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24201
24202 * po/POTFILES: Sort correctly.
24203
24204 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24205
24206 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24207 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24208 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24209 full stop.
24210 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24211 summary. Gettextizze the strings.
24212 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24213 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24214 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24215 full stop.
24216 (GRUB_MOD_INIT): Remove command name from summary.
24217 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24218 summary.
24219 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24220 * term/i386/pc/serial.c (options): Add full stops.
24221 (GRUB_MOD_INIT): Remove command name from the summary.
24222
24223 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24224
24225 * commands/acpi.c: Gettextizze help strings and/or options. Include
24226 `grub/i18n.h' if needed.
24227 * commands/blocklist.c: Likewise.
24228 * commands/boot.c: Likewise.
24229 * commands/cat.c: Likewise.
24230 * commands/cmp.c: Likewise.
24231 * commands/configfile.c: Likewise.
24232 * commands/crc.c: Likewise.
24233 * commands/date.c: Likewise.
24234 * commands/echo.c: Likewise.
24235 * commands/efi/fixvideo.c: Likewise.
24236 * commands/efi/loadbios.c: Likewise.
24237 * commands/gptsync.c: Likewise.
24238 * commands/halt.c: Likewise.
24239 * commands/handler.c: Likewise.
24240 * commands/hdparm.c: Likewise.
24241 * commands/hexdump.c: Likewise.
24242 * commands/i386/cpuid.c: Likewise.
24243 * commands/i386/pc/drivemap.c: Likewise.
24244 * commands/i386/pc/halt.c: Likewise.
24245 * commands/i386/pc/pxecmd.c: Likewise.
24246 * commands/i386/pc/vbeinfo.c: Likewise.
24247 * commands/i386/pc/vbetest.c: Likewise.
24248 * commands/ieee1275/suspend.c: Likewise.
24249 * commands/keystatus.c: Likewise.
24250 * commands/loadenv.c: Likewise.
24251 * commands/ls.c: Likewise.
24252 * commands/lsmmap.c: Likewise.
24253 * commands/lspci.c: Likewise.
24254 * commands/memrw.c: Likewise.
24255 * commands/minicmd.c: Likewise.
24256 * commands/parttool.c: Likewise.
24257 * commands/password.c: Likewise.
24258 * commands/probe.c: Likewise.
24259 * commands/read.c: Likewise.
24260 * commands/reboot.c: Likewise.
24261 * commands/search.c: Likewise.
24262 * commands/sleep.c: Likewise.
24263 * commands/test.c: Likewise.
24264 * commands/true.c: Likewise.
24265 * commands/usbtest.c: Likewise.
24266 * commands/videotest.c: Likewise.
24267 * commands/xnu_uuid.c: Likewise.
24268 * disk/loopback.c: Likewise.
24269 * hello/hello.c: Likewise.
24270 * loader/i386/bsd.c: Likewise.
24271 * term/i386/pc/serial.c: Likewise.
24272 * po/POTFILES: Add new files.
24273
24274 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24275
24276 * term/i386/pc/at_keyboard.c
24277 (keyboard_controller_wait_untill_ready): Rename to ...
24278 (keyboard_controller_wait_until_ready): ... this. Update all users.
24279
24280 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24281
24282 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24283 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24284 string using string width.
24285 * normal/menu_text.c (grub_print_message_indented): Use
24286 grub_print_spaces and not print_spaces.
24287 (print_timeout): Likewise.
24288 (print_spaces): Move to...
24289 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24290
24291 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24292
24293 Import from Gnulib.
24294
24295 * gnulib/getdelim.c: New file.
24296 * gnulib/getline.c: Likewise.
24297
24298 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24299
24300 * include/grub/list.h (grub_assert_fail): Removed.
24301 (grub_bad_type_cast_real): New function.
24302 (grub_bad_type_cast): New macro.
24303 (GRUB_AS_LIST): Use grub_bad_type_cast.
24304 (GRUB_AS_LIST_P): Likewise.
24305 (GRUB_AS_NAMED_LIST): Likewise.
24306 (GRUB_AS_NAMED_LIST_P): Likewise.
24307 (GRUB_AS_PRIO_LIST): Likewise.
24308 (GRUB_AS_PRIO_LIST_P): Likewise.
24309 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24310
24311 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24312
24313 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24314 Fix syntax error.
24315
24316 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24317
24318 * configure.ac: Check for TARGET_CFLAGS initialization before we
24319 initialize it ourselves (sigh).
24320 Move a few modifications to TARGET_CFLAGS to be unconditional
24321 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24322 eh_frame)
24323
24324 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24325 * term/i386/pc/at_keyboard.c
24326 (keyboard_controller_wait_untill_ready): Likewise.
24327 (keyboard_controller_led): Rename `led_status' paramter to avoid
24328 name conflict.
24329
24330 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24331
24332 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24333 quotes.
24334
24335 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24336
24337 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24338
24339 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24340
24341 * normal/menu_text.c (grub_print_message_indented): Prevent
24342 past-the-end-of-array dereference.
24343
24344 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24345
24346 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24347 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24348
24349 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24350
24351 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24352 * normal/main.c (grub_normal_read_line): Remove a space from the
24353 default prompt.
24354
24355 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24356
24357 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24358 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24359 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24360 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24361 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24362 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24363 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24364
24365 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24366
24367 * video/readers/jpeg.c (cmd): Declare.
24368 (grub_cmd_jpegtest): Use `grub_command_t' type.
24369 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24370 Assign to `cmd'.
24371 (GRUB_MOD_FINI): Use `cmd' to unregister.
24372 * video/readers/png.c (cmd): Declare.
24373 (grub_cmd_pngtest): Use `grub_command_t' type.
24374 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24375 Assign to `cmd'.
24376 (GRUB_MOD_FINI): Use `cmd' to unregister.
24377 * video/readers/tga.c (cmd): Declare.
24378 (grub_cmd_tgatest): Use `grub_command_t' type.
24379 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24380 Assign to `cmd'.
24381 (GRUB_MOD_FINI): Use `cmd' to unregister.
24382
24383 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24384
24385 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24386 stops.
24387 * kern/corecmd.c (grub_register_core_commands): Likewise.
24388 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24389 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24390 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24391 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24392 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24393 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24394 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24395 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24396 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24397 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24398 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24399 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24400 * normal/handler.c (insert_handler): Likewise.
24401 * normal/main.c (GRUB_MOD_INIT): Likewise.
24402 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24403
24404 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24405
24406 * commands/help.c (grub_cmd_help): Print the command name before the
24407 summary.
24408 (GRUB_MOD_INIT): Remove command name from the summary.
24409 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24410 string as summary.
24411 * lib/arg.c (find_long): Print the command name before the summary.
24412 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24413 summary.
24414 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24415 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24416 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24417 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24418 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24419 * commands/date.c (GRUB_MOD_INIT): Likewise.
24420 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24421 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24422 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24423 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24424 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24425 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24426 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24427 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24428 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24429 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24430 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24431 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24432 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24433 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24434 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24435 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24436 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24437 * commands/password.c (GRUB_MOD_INIT): Likewise.
24438 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24439 * commands/read.c (GRUB_MOD_INIT): Likewise.
24440 * commands/search.c (GRUB_MOD_INIT): Likewise.
24441 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24442 * commands/test.c (GRUB_MOD_INIT): Likewise.
24443 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24444 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24445 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24446 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24447 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24448 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24449 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24450 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24451 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24452 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24453 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24454 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24455 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24456 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24457
24458 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 Use search command for preliminar UUID search.
24461
24462 * commands/search.c: Split into ...
24463 * commands/search_wrap.c: ...this
24464 * commands/search.c: ...and this.
24465 * commands/search_file.c: New file.
24466 * commands/search_label.c: New file.
24467 * commands/search_uuid.c: New file.
24468 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24469 Add commands/search_wrap.c, commands/search_file.c,
24470 commands/search_label.c and commands/search_uuid.c.
24471 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24472 (search_mod_SOURCES): Set to commands/search_wrap.c.
24473 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24474 search_label.mod.
24475 (search_fs_file_mod_SOURCES): New variable.
24476 (search_fs_file_mod_CFLAGS): Likewise.
24477 (search_fs_file_mod_LDFLAGS): Likewise.
24478 (search_label_mod_SOURCES): Likewise.
24479 (search_label_mod_CFLAGS): Likewise.
24480 (search_label_mod_LDFLAGS): Likewise.
24481 (search_fs_uuid_mod_SOURCES): New variable.
24482 (search_fs_uuid_mod_CFLAGS): Likewise.
24483 (search_fs_uuid_mod_LDFLAGS): Likewise.
24484 (fs_file_mod_SOURCES): Removed.
24485 (fs_file_mod_CFLAGS): Likewise.
24486 (fs_file_mod_LDFLAGS): Likewise.
24487 (fs_uuid_mod_SOURCES): Removed.
24488 (fs_uuid_mod_CFLAGS): Likewise.
24489 (fs_uuid_mod_LDFLAGS): Likewise.
24490 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24491 Set to util/grub-install.in.
24492 * disk/fs_file.c: Removed.
24493 * disk/fs_uuid.c: Likewise.
24494 * include/grub/search.h: New file.
24495 * util/grub-install.in: Handle sparc64.
24496 Create and use load.cfg.
24497 * util/sparc64/ieee1275/grub-install.in: Removed.
24498
24499 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24500
24501 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24502 Ignore return status if CF is cleared.
24503 (grub_biosdisk_get_diskinfo_standard): Likewise.
24504
24505 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24506
24507 * term/i386/pc/at_keyboard.c
24508 (keyboard_controller_wait_untill_ready): New function.
24509 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24510 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24511 for keyboard polling, rather than duplicate the same loop. This
24512 saves a few bytes in code size.
24513
24514 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24515
24516 Support for (pxe[:server[:gateway]]) syntax and
24517 use environment variable for PXE.
24518
24519 * commands/i386/pc/pxecmd.c (options): Removed.
24520 (print_ip): Removed.
24521 (grub_cmd_pxe): Removed
24522 (grub_cmd_pxe_unload): New function.
24523 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24524 (grub_pxe_your_ip): Made static.
24525 (grub_pxe_default_server_ip): Likewise.
24526 (grub_pxe_default_gateway_ip): Likewise.
24527 (grub_pxe_blksize): Likewise.
24528 (parse_ip): New function.
24529 (grub_pxe_open): Support server and gateway specification.
24530 (grub_pxe_close): Free disk->data.
24531 (grub_pxefs_open): Use disk->data.
24532 (grub_pxefs_read): Likewise.
24533 (grub_env_write_readonly): New function.
24534 (set_mac_env): Likewise.
24535 (set_env_limn_ro): Likewise.
24536 (parse_dhcp_vendor): Likewise.
24537 (grub_pxe_detect): Set the environment variables.
24538 (set_ip_env): New function.
24539 (write_ip_env): Likewise.
24540 (grub_env_write_pxe_default_server): Likewise.
24541 (grub_env_write_pxe_default_gateway): Likewise.
24542 (grub_env_write_pxe_blocksize): Likewise.
24543 (GRUB_MOD_INIT(pxe)): Set environment variables.
24544 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24545 (grub_pxe_mac_addr_t): ... this. All users updated.
24546 (grub_pxe_your_ip): Removed.
24547 (grub_pxe_server_ip): Likewise.
24548 (grub_pxe_gateway_ip): Likewise.
24549 (grub_pxe_blksize): Likewise.
24550
24551 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24552
24553 * commands/help.c: Include `<grub/i18n.h>'.
24554 (grub_cmd_help): Gettextizze.
24555 (GRUB_MOD_INIT): Likewise.
24556 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
24557 (GRUB_MOD_INIT): Gettextizze.
24558 * commands/search.c: Include `<grub/i18n.h>'.
24559 (options): Gettextizze.
24560 (GRUB_MOD_INIT): Gettextizze.
24561 * lib/arg.c: Include `<grub/i18n.h>'.
24562 (help_options): Gettextizze.
24563 (find_long): Likewise.
24564 (grub_arg_show_help): Likewise.
24565 * normal/dyncmd.c: Include `<grub/i18n.h>'.
24566 (read_command_list): Gettextizze.
24567 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
24568 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
24569
24570 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24571
24572 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
24573 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
24574 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
24575 (led_status): New variable.
24576 (keyboard_controller_led): New function.
24577 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
24578 update led status for caps lock, num lock and scroll lock.
24579
24580 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
24581
24582 * util/hostdisk.c (open_device): Fix a comment.
24583
24584 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24585
24586 * util/grub-install.in (host_os): New variable.
24587 * util/i386/efi/grub-install.in (host_os): Likewise.
24588
24589 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24590
24591 * util/mkisofs/write.c (padblock_write): Abort when given an
24592 excedingly large embed image, instead of silently truncating it.
24593
24594 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24595
24596 * include/multiboot.h: Indentation fixes.
24597
24598 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24599
24600 * include/multiboot.h (struct multiboot_aout_symbol_table)
24601 (struct multiboot_elf_section_header_table): New structure
24602 declarations (stolen from GRUB Legacy).
24603 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
24604 table information.
24605
24606 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
24607 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
24608 type aliases.
24609
24610 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24611
24612 * include/multiboot.h: Make comments src2texi-friendly.
24613
24614 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24615
24616 For consistency with [multiboot]/docs/boot.S.
24617
24618 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
24619 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
24620 (MULTIBOOT_MAGIC2): Rename from this ...
24621 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
24622
24623 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24624
24625 * include/multiboot.h: Remove `<grub/types.h>'.
24626 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
24627 types. Update all users.
24628
24629 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24630
24631 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
24632 `couldn't' and `can not' by `cannot'.
24633 * commands/i386/pc/drivemap.c: Likewise.
24634 * disk/ata.c: Likewise.
24635 * disk/ieee1275/nand.c: Likewise.
24636 * fs/affs.c: Likewise.
24637 * fs/fat.c: Likewise.
24638 * fs/hfs.c: Likewise.
24639 * fs/hfsplus.c: Likewise.
24640 * fs/iso9660.c: Likewise.
24641 * fs/jfs.c: Likewise.
24642 * fs/minix.c: Likewise.
24643 * fs/reiserfs.c: Likewise.
24644 * fs/sfs.c: Likewise.
24645 * fs/udf.c: Likewise.
24646 * fs/ufs.c: Likewise.
24647 * fs/xfs.c: Likewise.
24648 * loader/powerpc/ieee1275/linux.c: Likewise.
24649 * loader/sparc64/ieee1275/linux.c: Likewise.
24650 * util/grub-probe.c: Likewise.
24651 * util/misc.c: Likewise.
24652
24653 2009-12-24 Carles Pina i Estany <carles@pina.cat>
24654
24655 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
24656 grub_errno calls.
24657 * commands/acpi.c: Likewise.
24658 * commands/blocklist.c: Likewise.
24659 * commands/efi/loadbios.c: Likewise.
24660 * commands/i386/pc/drivemap.c: Likewise.
24661 * commands/loadenv.c: Likewise.
24662 * commands/memrw.c: Likewise.
24663 * commands/password.c: Likewise.
24664 * commands/videotest.c: Likewise.
24665 * disk/ata.c: Likewise.
24666 * disk/ata_pthru.c: Likewise.
24667 * disk/dmraid_nvidia.c: Likewise.
24668 * disk/ieee1275/nand.c: Likewise.
24669 * disk/ieee1275/ofdisk.c: Likewise.
24670 * disk/loopback.c: Likewise.
24671 * disk/lvm.c: Likewise.
24672 * disk/mdraid_linux.c: Likewise.
24673 * disk/raid.c: Likewise.
24674 * disk/raid6_recover.c: Likewise.
24675 * disk/scsi.c: Likewise.
24676 * efiemu/main.c: Likewise.
24677 * efiemu/mm.c: Likewise.
24678 * efiemu/pnvram.c: Likewise.
24679 * efiemu/symbols.c: Likewise.
24680 * font/font.c: Likewise.
24681 * fs/cpio.c: Likewise.
24682 * fs/hfsplus.c: Likewise.
24683 * fs/iso9660.c: Likewise.
24684 * fs/jfs.c: Likewise.
24685 * fs/minix.c: Likewise.
24686 * fs/ntfs.c: Likewise.
24687 * fs/ntfscomp.c: Likewise.
24688 * fs/reiserfs.c: Likewise.
24689 * fs/ufs.c: Likewise.
24690 * fs/xfs.c: Likewise.
24691 * gettext/gettext.c: Likewise.
24692 * include/grub/auth.h: Likewise.
24693 * kern/elf.c: Likewise.
24694 * kern/file.c: Likewise.
24695 * kern/ieee1275/init.c: Likewise.
24696 * kern/ieee1275/mmap.c: Likewise.
24697 * kern/ieee1275/openfw.c: Likewise.
24698 * kern/powerpc/dl.c: Likewise.
24699 * kern/sparc64/dl.c: Likewise.
24700 * lib/arg.c: Likewise.
24701 * loader/i386/bsd.c: Likewise.
24702 * loader/i386/bsdXX.c: Likewise.
24703 * loader/i386/efi/linux.c: Likewise.
24704 * loader/i386/efi/xnu.c: Likewise.
24705 * loader/i386/ieee1275/linux.c: Likewise.
24706 * loader/i386/linux.c: Likewise.
24707 * loader/i386/multiboot.c: Likewise.
24708 * loader/i386/pc/linux.c: Likewise.
24709 * loader/i386/pc/multiboot2.c: Likewise.
24710 * loader/i386/xnu.c: Likewise.
24711 * loader/ieee1275/multiboot2.c: Likewise.
24712 * loader/macho.c: Likewise.
24713 * loader/machoXX.c: Likewise.
24714 * loader/multiboot2.c: Likewise.
24715 * loader/multiboot_loader.c: Likewise.
24716 * loader/powerpc/ieee1275/linux.c: Likewise.
24717 * loader/sparc64/ieee1275/linux.c: Likewise.
24718 * loader/xnu.c: Likewise.
24719 * loader/xnu_resume.c: Likewise.
24720 * mmap/i386/pc/mmap.c: Likewise.
24721 * normal/menu_viewer.c: Likewise.
24722 * partmap/acorn.c: Likewise.
24723 * partmap/amiga.c: Likewise.
24724 * partmap/apple.c: Likewise.
24725 * script/lexer.c: Likewise.
24726 * term/gfxterm.c: Likewise.
24727 * term/i386/pc/serial.c: Likewise.
24728 * term/i386/pc/vga.c: Likewise.
24729 * term/ieee1275/ofconsole.c: Likewise.
24730 * term/terminfo.c: Likewise.
24731 * video/bitmap.c: Likewise.
24732 * video/efi_gop.c: Likewise.
24733 * video/efi_uga.c: Likewise.
24734 * video/fb/video_fb.c: Likewise.
24735 * video/i386/pc/vbe.c: Likewise.
24736 * video/readers/tga.c: Likewise.
24737 * video/video.c: Likewise.
24738
24739 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
24740
24741 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
24742 * commands/lspci.c: Likewise.
24743 * commands/probe.c: Likewise.
24744 * commands/xnu_uuid.c: Likewise.
24745 * conf/i386-coreboot.rmk: Likewise.
24746 * conf/i386-efi.rmk: Likewise.
24747 * conf/i386-ieee1275.rmk: Likewise.
24748 * conf/i386-pc.rmk: Likewise.
24749 * conf/powerpc-ieee1275.rmk: Likewise.
24750 * conf/sparc64-ieee1275.rmk: Likewise.
24751 * conf/x86_64-efi.rmk: Likewise.
24752 * fs/i386/pc/pxe.c: Likewise.
24753 * gettext/gettext.c: Likewise.
24754 * include/grub/efi/graphics_output.h: Likewise.
24755 * include/grub/i386/pc/memory.h: Likewise.
24756 * kern/env.c: Likewise.
24757 * kern/i386/qemu/startup.S: Likewise.
24758 * lib/i386/pc/biosnum.c: Likewise.
24759 * lib/i386/relocator.c: Likewise.
24760 * lib/i386/relocator_asm.S: Likewise.
24761 * lib/relocator.c: Likewise.
24762 * loader/i386/bsd.c: Likewise.
24763 * loader/i386/multiboot.c: Likewise.
24764 * loader/i386/pc/chainloader.c: Likewise.
24765 * loader/i386/xnu.c: Likewise.
24766 * loader/xnu.c: Likewise.
24767 * normal/main.c: Likewise.
24768 * normal/menu_text.c: Likewise.
24769 * util/getroot.c: Likewise.
24770 * util/grub-mkconfig_lib.in: Likewise.
24771 * util/grub.d/00_header.in: Likewise.
24772 * util/i386/pc/grub-mkimage.c: Likewise.
24773 * util/mkisofs/eltorito.c: Likewise.
24774 * util/mkisofs/exclude.h: Likewise.
24775 * util/mkisofs/hash.c: Likewise.
24776 * util/mkisofs/iso9660.h: Likewise.
24777 * util/mkisofs/joliet.c: Likewise.
24778 * util/mkisofs/mkisofs.c: Likewise.
24779 * util/mkisofs/mkisofs.h: Likewise.
24780 * util/mkisofs/multi.c: Likewise.
24781 * util/mkisofs/name.c: Likewise.
24782 * util/mkisofs/rock.c: Likewise.
24783 * util/mkisofs/tree.c: Likewise.
24784 * util/mkisofs/write.c: Likewise.
24785 * video/efi_gop.c: Likewise.
24786
24787 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
24788
24789 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
24790 size counting.
24791
24792 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24793
24794 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
24795 * genmk.rb (class SCRIPT): Modify the target file instead of source.
24796
24797 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24798
24799 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
24800 (GRUB_MOD_INIT(memrw)): Update help line.
24801
24802 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24803
24804 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
24805 Use grub_extcmd_t. All users updated.
24806 (options): New variable.
24807 (grub_cmd_read): Restructure for readability. Support "-v" option.
24808 (grub_cmd_write): Restructure for readability.
24809
24810 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24811
24812 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
24813
24814 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24815
24816 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
24817 with the actual contents of the correspondending make variable.
24818 * util/grub-mkrescue.in (pkglib_DATA): New variable.
24819 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
24820 specifying `*.lst' and `efiemu??.o'
24821
24822 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24823
24824 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
24825 after function name.
24826 Noticed by Rene Engelhard <rene@debian.org>.
24827
24828 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24829
24830 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
24831 (options): New variable.
24832 (iospace): Likewise.
24833 (grub_lspci_iter): List IO spaces if "-i" was given.
24834 (grub_cmd_lspci): Parse options.
24835 (GRUB_MOD_INIT(lspci)): Use extcmd.
24836 (GRUB_MOD_FINI(lspci)): Likewise.
24837
24838 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24839
24840 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
24841 `function' keyword.
24842 Patch by Tony Mancill <tmancill@debian.org>.
24843
24844 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24845
24846 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
24847 (grub_uhci_portstatus): Likewise.
24848 (grub_uhci_portstatus): Add necessary delay.
24849 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
24850
24851 2009-12-21 Carles Pina i Estany <carles@pina.cat>
24852
24853 * commands/acpi.c (options): Fix capitalizations and/or full stops.
24854 (GRUB_MOD_INIT): Likewise.
24855 * commands/boot.c (GRUB_MOD_INIT): Likewise.
24856 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
24857 * commands/echo.c (options): Fix capitalizations and/or full stops.
24858 * commands/efi/loadbios.c (enable_rom_area): Likewise.
24859 (enable_rom_area): Likewise.
24860 (GRUB_MOD_INIT): Likewise.
24861 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24862 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
24863 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24864 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
24865 * commands/hexdump.c (options): Likewise.
24866 * commands/i386/cpuid.c (options): Likewise.
24867 (GRUB_MOD_INIT): Likewise.
24868 * commands/i386/pc/drivemap.c (options): Likewise.
24869 (GRUB_MOD_INIT): Likewise.
24870 * commands/i386/pc/halt (options): Likewise.
24871 (GRUB_MOD_INIT): Likewise.
24872 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24873 * commands/i386/pc/pxecmd.c (options): Likewise.
24874 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
24875 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
24876 * commands/keystatus.c (options): Likewise.
24877 (GRUB_MOD_INIT): Likewise.
24878 * commands/loadenv.c (options): Likewise.
24879 * commands/ls.c (options): Likewise.
24880 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24881 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24882 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24883 * commands/parttool.c (helpmsg): Likewise.
24884 * commands/probe.c (options): Likewise.
24885 * commands/read.c (GRUB_MOD_INIT): Likewise.
24886 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
24887 * commands/search.c (options): Likewise.
24888 * commands/sleep.c (options): Likewise.
24889 * commands/test.c (GRUB_MOD_INIT): Likewise.
24890 * commands/true.c (GRUB_MOD_INIT): Likewise.
24891 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
24892 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
24893 * lib/arg.c (help_options): Likewise.
24894 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
24895 `$(XGETTEXT)'.
24896 * po/POTFILES: Add `commands/loadenv.c'.
24897
24898 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
24899
24900 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
24901 instead of specifying them explicit.
24902
24903 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24904
24905 * NEWS: Add grub-probe support for GNU/Hurd.
24906
24907 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24908
24909 * NEWS: gettext was added after 1.97.
24910
24911 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24912
24913 * util/mkisofs/msdos_partition.h: New file (based on
24914 include/grub/msdos_partition.h).
24915 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
24916 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
24917 (ld_options, main): Recognize --protective-msdos-label.
24918 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
24919 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
24920 (padblock_write): If `use_protective_msdos_label' is set, patch a
24921 protective DOS-style label in the output image.
24922
24923 * util/grub-mkrescue.in: Use --protective-msdos-label.
24924
24925 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24926
24927 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
24928 boot.
24929
24930 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24931
24932 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
24933 variables.
24934 (ld_options, main): Recognize `--embedded-boot'.
24935 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
24936 declarations.
24937 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
24938 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
24939 (padblock_write): Likewise. Rewrite to support embedded boot image.
24940
24941 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
24942 for BIOS-based disk boot instead of only ElTorito.
24943
24944 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24945
24946 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
24947 build (not needed for bootstrap).
24948
24949 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24950
24951 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
24952 from i386-pc build (not needed for bootstrap).
24953 Rewrite a pair of strings.
24954
24955 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24956
24957 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
24958
24959 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
24960
24961 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
24962
24963 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24964
24965 * kern/env.c (grub_env_context_open): Mark exported variable for
24966 reexport.
24967
24968 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24969
24970 * kern/env.c (grub_env_export): Create nonexistent variables before
24971 exporting.
24972
24973 2009-12-20 Carles Pina i Estany <carles@pina.cat>
24974
24975 * include/grub/auth.h: Include `<grub/i18n.h>'.
24976 (GRUB_GET_PASSWORD): Gettextizze string.
24977 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
24978 menu_text.c.
24979 (grub_utf8_to_ucs4_alloc): Fix indentation.
24980 (grub_print_ucs4): Likewise.
24981 (grub_getstringwidth): Likewise.
24982 (print_message_indented): New declaration.
24983 * normal/auth.c: Include `<grub/i18n.h>'.
24984 (grub_auth_check_authentication): Gettexttize string.
24985 * normal/cmdline.c: Include `<grub/i18n.h>'.
24986 (grub_cmdline_get): Gettextizze.
24987 * normal/color.c: Include `<grub/i18n.h>'.
24988 (grub_parse_color_name_pair): Gettexttize strings.
24989 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
24990 string (use `print_message_indented').
24991 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
24992 `include/grub/normal.h'.
24993 (print_message_indented): Renamed to ...
24994 (grub_print_message_indented): ... this. Remove `static' qualifer (now
24995 used in normal/main.c).
24996 (print_message): Use `grub_print_message_indented' instead of
24997 `print_message_indented'.
24998 (print_timeout): Likewise.
24999 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25000 (grub_normal_print_device_info): Gettexttize strings.
25001 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25002
25003 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25004
25005 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25006 of arguments. Return number of tokens and not arguments. All users
25007 updated.
25008
25009 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25010
25011 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25012 non-MSDOS paritions.
25013
25014 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25015
25016 * include/grub/types.h (UNUSED): Removed since it conflicts with
25017 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25018 Reported by Grégoire Sutre.
25019
25020 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25021
25022 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25023 (grub_print_ucs4_alloc): Likewise.
25024 (grub_getstringwidth): Likewise.
25025 * normal/main.c (grub_normal_init_page): Gettextize version string.
25026 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25027 (getstringwidth): Renamed to ...
25028 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25029 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25030 (grub_print_ucs4): Remove `static' qualifer (now used in
25031 normal/main.c).
25032 * po/POTFILES: Add normal/main.c.
25033
25034 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25035
25036 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25037 (print_message_indented): Add `margin_left' and `margin_right'
25038 parameters.
25039 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25040 strings.
25041 (print_timeout): Use `print_message_indented' to print the message.
25042 Deletes `second_stage' parameter.
25043 (run_menu): Update `print_timeout' calls.
25044
25045 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25046
25047 Fix console palette on OpenFirmware.
25048
25049 * term/ieee1275/ofconsole.c (MAX): Removed.
25050 (colors): Redone based on VGA palette.
25051 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25052 colors are supported.
25053 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25054
25055 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25056
25057 Fix potential EfiEmu double prepare.
25058
25059 * efiemu/main.c (prepared): New variable
25060 (grub_efiemu_unload): Set prepare to '0'.
25061 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25062
25063 set_virtual_address_map support.
25064
25065 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25066 prototype.
25067 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25068 prototype.
25069 (grub_efiemu_crc32): Likewise.
25070 (grub_efiemu_crc64): Likewise.
25071 (grub_efiemu_set_virtual_address_map): Likewise.
25072 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25073 New definition.
25074 (grub_autoefi_set_virtual_address_map): Likewise.
25075 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25076 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25077 Restructure flow to accomodate it.
25078 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25079 (grub_efiemu_crc): Recompute CRC32.
25080 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25081 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25082 * efiemu/symbols.c (relocated_handle): New variable.
25083 (grub_efiemu_free_syms): Free relocated_handle.
25084 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25085 (grub_efiemu_write_sym_markers): New function.
25086 (grub_efiemu_set_virtual_address_map): Likewise.
25087
25088 Newer XNU parameters.
25089
25090 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25091 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25092 (grub_xnu_fill_devicetree): New prototype.
25093 (grub_xnu_heap_real_start): New variable.
25094 * loader/xnu.c (get_name_ptr): New function.
25095 (grub_xnu_load_driver): Fill namelen and name.
25096
25097 64-bit xnu support.
25098
25099 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25100 and 'loader/macho64.c'.
25101 * conf/i386-pc.rmk: Likewise.
25102 * conf/x86_64-efi.rmk: Likewise.
25103 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25104 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25105 * include/grub/macho.h (grub_macho_segment64): New structure.
25106 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25107 (grub_macho_size32): ... to this.
25108 (grub_macho32_get_entry_point): Renamed from ...
25109 (grub_macho_get_entry_point32): ... to this.
25110 (grub_macho_contains_macho64): New prototype.
25111 (grub_macho_size64): Likewise.
25112 (grub_macho_get_entry_point64): Likewise.
25113 (grub_macho32_load): Renamed from ...
25114 (grub_macho_load32): ... to this.
25115 (grub_macho32_filesize): Renamed from ...
25116 (grub_macho_filesize32): ... to this.
25117 (grub_macho32_readfile): Renamed from ...
25118 (grub_macho_readfile32): ... to this.
25119 (grub_macho_filesize64): New prototype.
25120 (grub_macho_readfile64): Likewise.
25121 (grub_macho_parse32): Likewise.
25122 (grub_macho_parse64): Likewise.
25123 * loader/macho.c: Split into ...
25124 * loader/machoXX.c: ... and this. Replace 32 with XX.
25125 * loader/macho32.c: New file.
25126 * loader/macho64.c: Likewise.
25127 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25128 (grub_cmd_xnu_kernel): Make 32-bit only.
25129 (grub_cmd_xnu_kernel64): New function.
25130 (grub_xnu_load_driver): Support Mach-O 64.
25131 (grub_cmd_xnu_mkext): Likewise.
25132 * util/grub.d/30_os-prober.in (osx_entry): New function.
25133 Generate entries for 64-bit boot too.
25134
25135 Eliminate ad-hoc tree format in XNU and EfiEmu.
25136
25137 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25138 * efiemu/pnvram.c: Rewritten to use environment variables.
25139 All users updated.
25140
25141 Inline utf16_to_utf8.
25142
25143 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25144 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25145 All users updated.
25146 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25147
25148 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25149 * commands/usbtest.c (grub_usb_get_string): ... move here.
25150 (usb_print_str): Fix error handling.
25151 * include/grub/usb.h (grub_usb_get_string): Remove.
25152
25153 UTF-8 to UTF-16 transformation.
25154
25155 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25156 (charset_mod_SOURCES): New variable.
25157 (charset_mod_CFLAGS): Likewise.
25158 (charset_mod_LDFLAGS): Likewise.
25159 * include/grub/utf.h: New file.
25160 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25161
25162 Support for device properties.
25163
25164 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25165 (grub_xnu_devprop_device_header): Likewise.
25166 (grub_xnu_devprop_device_descriptor): Likewise.
25167 (grub_xnu_devprop_add_device): New prototype.
25168 (grub_xnu_devprop_remove_device): Likewise.
25169 (grub_xnu_devprop_remove_property): Likewise.
25170 (grub_xnu_devprop_add_property_utf8): Likewise.
25171 (grub_xnu_devprop_add_property_utf16): Likewise.
25172 (grub_cpu_xnu_init): Likewise.
25173 (grub_cpu_xnu_fini): Likewise.
25174 (grub_cpu_xnu_unload): Likewise.
25175 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25176 (property_descriptor): Likewise.
25177 (devices): New variable.
25178 (grub_xnu_devprop_remove_property): New function.
25179 (grub_xnu_devprop_add_device): Likewise.
25180 (grub_xnu_devprop_remove_device): Likewise.
25181 (grub_xnu_devprop_add_property): Likewise.
25182 (grub_xnu_devprop_add_property_utf8): Likewise.
25183 (grub_xnu_devprop_add_property_utf16): Likewise.
25184 (hextoval): Likewise.
25185 (grub_cpu_xnu_fill_devprop): Likewise.
25186 (grub_cmd_devprop_load): Likewise.
25187 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25188 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25189 (cmd_devprop_load): New variable.
25190 (grub_cpu_xnu_init): New function.
25191 (grub_cpu_xnu_fini): Likewise.
25192 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25193 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25194 (grub_cmd_xnu_devtree): Likewise.
25195 (hextoval): New function.
25196 (unescape): Likewise.
25197 (grub_xnu_fill_devicetree): Likewise.
25198
25199 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25200 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25201
25202 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25203
25204 Workaround for broken ATI VBE.
25205
25206 * video/i386/pc/vbe.c (last_set_mode): New variable.
25207 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25208 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25209 (grub_video_vbe_setup): Don't check for reserved flag.
25210
25211 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25212
25213 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25214 the `find' command.
25215
25216 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25217
25218 UUID support for HFS.
25219
25220 * fs/hfs.c (grub_hfs_uuid): New function.
25221 (grub_hfs_fs): New value .uuid.
25222 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25223
25224 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25225
25226 Fix a segfault with parsing unknown long options.
25227
25228 * util/grub-mkrelpath.c (options): Zero terminate it.
25229
25230 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25231
25232 * include/grub/misc.h (grub_puts): New declaration.
25233 (grub_puts_): Likewise.
25234 * kern/misc.c (grub_puts): New definition.
25235 (grub_puts_): Likewise.
25236
25237 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25238
25239 * util/grub-probe.c (probe): Improve error message.
25240
25241 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25242
25243 * loader/i386/multiboot_elfxx.c
25244 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25245 initialization.
25246
25247 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25248
25249 Relocator framework
25250
25251 * loader/i386/xnu_helper.S: Removed. All users updated.
25252 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25253 (relocator_mod_SOURCES): New variable.
25254 (relocator_mod_CFLAGS): Likewise.
25255 (relocator_mod_LDFLAGS): Likewise.
25256 (relocator_mod_ASFLAGS): Likewise.
25257 * conf/x86_64.rmk: Likewise.
25258 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25259 (grub_multiboot_payload_entry_offset): Likewise.
25260 (grub_multiboot_forward_relocator): Likewise.
25261 (grub_multiboot_forward_relocator_end): Likewise.
25262 (grub_multiboot_backward_relocator): Likewise.
25263 (grub_multiboot_backward_relocator_end): Likewise.
25264 (grub_multiboot_payload_eip): New variable.
25265 (grub_multiboot_payload_orig): Likewise.
25266 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25267 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25268 * include/grub/i386/memory.h
25269 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25270 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25271 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25272 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25273 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25274 * include/grub/i386/relocator.h: New file.
25275 * include/grub/x86_64/relocator.h: Likewise.
25276 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25277 (XNU_RELOCATOR): New macro.
25278 (grub_xnu_launcher_start): Remove.
25279 (grub_xnu_launcher_end): Likewise.
25280 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25281 (grub_xnu_heap_real_start): Remove.
25282 (grub_xnu_heap_start): Change to void *. All users updated.
25283 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25284 * lib/i386/relocator.c: New file.
25285 * lib/i386/relocator_asm.S: Likewise.
25286 * lib/i386/relocator_backward.S: Likewise.
25287 * lib/mips/relocator.c: Likewise.
25288 * lib/mips/relocator_asm.S: Likewise.
25289 * lib/relocator.c: Likewise.
25290 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25291 (entry): Removed.
25292 (playground): Likewise.
25293 (grub_multiboot_payload_orig): New variable.
25294 (grub_multiboot_payload_dest): Likewise.
25295 (grub_multiboot_payload_size): Likewise.
25296 (grub_multiboot_payload_eip): Likewise.
25297 (grub_multiboot_payload_esp): Likewise.
25298 (grub_multiboot_boot): Use grub_relocator32_boot.
25299 (grub_multiboot_unload): Free relocators.
25300 (grub_multiboot): Setup stack. Use relocators.
25301 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25302 (grub_multiboot_load_elfXX): Use relocators.
25303 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25304 (grub_multiboot_payload_size): Likewise.
25305 (grub_multiboot_payload_dest): Likewise.
25306 (grub_multiboot_payload_entry_offset): Likewise.
25307 (grub_multiboot_forward_relocator): Likewise.
25308 (grub_multiboot_backward_relocator): Likewise.
25309 (grub_multiboot_real_boot): Likewise.
25310 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25311 (grub_xnu_entry_point): Likewise.
25312 (grub_xnu_arg1): Likewise.
25313 (grub_xnu_stack): Likewise.
25314 (grub_xnu_launch): Removed.
25315 (grub_xnu_boot_resume): New function.
25316 (grub_xnu_boot): Use relocators.
25317 * loader/i386/xnu_helper.S: Removed.
25318 * loader/xnu.c (grub_xnu_heap_start): New variable.
25319 (grub_xnu_heap_size): Likewise.
25320 (grub_xnu_heap_malloc): Use relocators.
25321 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25322
25323 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25324
25325 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25326 anything.
25327
25328 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25329
25330 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25331 GRUB_ERR_NONE before calling grub_env_set.
25332
25333 2009-12-12 Robert Millan <rmh@aybabtu.com>
25334
25335 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25336 * genmk.rb (video): New variable.
25337 (CLEANFILES, VIDEOFILES): Add #{video}.
25338 (#{video}): New target rule.
25339 * genvideolist.sh: New file.
25340 * Makefile.in (pkglib_DATA): Add video.lst.
25341 (video.lst): New target rule.
25342 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25343 `video.lst'.
25344 * util/grub.d/30_os-prober.in: Replace `vbe' with
25345 ${GRUB_VIDEO_BACKEND}.
25346
25347 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25348
25349 * THANKS: Add David Miller.
25350
25351 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25352
25353 libpciaccess support.
25354
25355 * Makefile.in (LIBPCIACCESS): New variable.
25356 (enable_grub_emu_pci): Likewise.
25357 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25358 util/pci.c and commands/lspci.c.
25359 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25360 * configure.ac (grub-emu-pci): New option.
25361 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25362 (grub_pci_device_unmap_range): Likewise.
25363 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25364 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25365 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25366 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25367 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25368 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25369 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25370 * include/grub/pciutils.h: New file.
25371 * util/pci.c: Likewise.
25372
25373 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25374
25375 * util/misc.c: Don't include <errno.h> twice.
25376
25377 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25378
25379 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25380 name in an error message.
25381 (grub_biosdisk_rw): Likewise.
25382
25383 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25384
25385 Eliminate NTFS 4Gib barrier.
25386
25387 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25388 (read_run_data): Likewise.
25389 (grub_ntfs_read_run_list): Likewise.
25390 (grub_ntfs_read_block): Likewise.
25391 (grub_ntfs_iterate_dir): Likewise.
25392 (read_mft): Likewise.
25393 (read_data): Likewise.
25394 Use COM_LOG_LEN.
25395 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25396 to avoid 64-bit division
25397 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25398 (grub_ntfs_rlst): Use grub_disk_addr_t.
25399
25400 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25401
25402 Eliminate grub-fstest 4Gib barrier.
25403
25404 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25405 (read_file): Fix error reporting.
25406
25407 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25408
25409 Eliminate hexdump 4Gib barrier.
25410
25411 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25412 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25413
25414 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25415
25416 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25417 Fixes amarsh bug.
25418
25419 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25420
25421 Remove miscellaneous files in distclean target.
25422
25423 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25424
25425 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25426
25427 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25428 if they're already set. This resolves the conflict between my
25429 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25430 fixing the --grub-probe option again.
25431 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25432 change on 2009-10-06, so that we now once again source
25433 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25434
25435 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25436
25437 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25438 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25439 `util/devicemap.c'.
25440
25441 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25442
25443 * include/grub/misc.h (grub_printf_): New declaration.
25444 * kern/misc.c (grub_printf_): New definition.
25445 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25446 instead of `grub_printf' and `_'.
25447 * normal/menu_entry.c (store_completion): Likewise.
25448 (run): Likewise.
25449 (grub_menu_entry_run): Likewise.
25450 * normal/menu_text.c (grub_wait_after_message): Likewise.
25451 (notify_booting): Likewise.
25452 (notify_fallback): Likewise.
25453 (notify_execution_failure): Likewise.
25454
25455 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25456
25457 * configure.ac: Check for vasprintf.
25458 * util/misc.c (asprintf): Move allocation from here ...
25459 (vasprintf): ... to here. New function.
25460 (xasprintf): New function.
25461 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25462 prototypes.
25463 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25464 * util/grub-mkfont.c (write_font): Likewise.
25465 * util/grub-probe.c (probe): Likewise.
25466 * util/hostdisk.c (make_device_name): Likewise.
25467
25468 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25469
25470 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25471 anything even prefixed with 'cdrom' as a cdrom.
25472
25473 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25474
25475 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25476 mount points.
25477
25478 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25479
25480 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25481 grub_gettext_msg_list.
25482 (grub_gettext_gettranslation_from_position): Return const char *
25483 and not char *.
25484 (grub_gettext_translate): Add the translated strings into a list,
25485 returns from the list if existing there.
25486 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25487 (grub_gettext_delete_list): Delete the list.
25488 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25489 lang environment variable is changed.
25490 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25491
25492 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25493
25494 Rename kernel.mod to kernel.img.
25495
25496 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25497 (kernel_mod_EXPORTS): Rename to ...
25498 (kernel_img_EXPORTS): ... this.
25499 (kernel_mod_SOURCES): Rename to ...
25500 (kernel_img_SOURCES): ... this.
25501 (kernel_mod_HEADERS): Rename to ...
25502 (kernel_img_HEADERS): ... this. All users updated.
25503 (kernel_mod_CFLAGS): Rename to ...
25504 (kernel_img_CFLAGS): ... this.
25505 (kernel_mod_ASFLAGS): Rename to ...
25506 (kernel_img_ASFLAGS): ... this.
25507 (kernel_mod_LDFLAGS): Rename to ...
25508 (kernel_img_LDFLAGS): ... this.
25509 * conf/x86_64-efi.rmk: Likewise.
25510 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25511 (read_kernel_image): ... this. All users updated.
25512 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25513
25514 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25515
25516 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25517 (print_spaces): New function.
25518 (grub_print_ucs4): New function.
25519 (getstringwidth): New function.
25520 (print_message_indented): New function.
25521 (print_message): Gettexttize strings using print_message_indented.
25522 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25523 width.
25524 (get_entry_number): Gettextize and uses dynamic terminal width.
25525 (notify_booting, notify_fallback, notify_execution_failure):
25526 Gettextize.
25527 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25528 string.
25529 (run): Likewise.
25530 (grub_menu_entry_run): Likewise.
25531 * PO/POTFILES: Add normal/menu_entry.c.
25532
25533 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25534
25535 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25536
25537 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25538
25539 * util/grub-install.in: Install gettext .mo files.
25540 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25541
25542 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25543
25544 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25545 grub_dprintf.
25546
25547 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25548
25549 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
25550 non-firmware-dependant one in realmode.S takes precedence.
25551
25552 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
25553
25554 * commands/halt.c: Replace misc arch-specific headers with
25555 `<grub/misc.h>'.
25556 * commands/reboot.c: Likewise.
25557 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
25558 `<grub/misc.h>'.
25559 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
25560 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
25561 (kernel_img_SOURCES): ... to here.
25562
25563 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
25564 * include/grub/i386/pc/init.h: Likewise.
25565 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25566 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25567
25568 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
25569
25570 * include/grub/i386/halt.h: Remove.
25571 * include/grub/i386/reboot.h: Likewise.
25572
25573 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
25574
25575 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
25576
25577 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
25578 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
25579 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
25580 "progname.h"
25581 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25582 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25583 (usage): Add missing comma in printf.
25584
25585 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
25586
25587 Use the same reboot approach on i386 coreboot and qemu as we do on
25588 BIOS.
25589
25590 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
25591 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
25592 * kern/i386/reboot.c: Remove.
25593 * include/grub/i386/reboot.h (grub_reboot): Export function.
25594 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
25595 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
25596 0xf000:0xfff0 instead of 0xffff:0x0000.
25597 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
25598 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
25599
25600 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
25601
25602 Fix $srcdir != $objdir build.
25603
25604 * Makefile.in (po/%.po): Rewrite as ...
25605 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
25606
25607 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
25608
25609 Fix GNU/Hurd grub-install crash.
25610 * util/grub-probe.c (probe): Try to access `path' only when it is not
25611 NULL.
25612
25613 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25614
25615 Correct module naming.
25616
25617 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25618 (GRUB_MOD_INIT(efi_uga)): ... to this
25619 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25620 (GRUB_MOD_FINI(efi_uga)): ... to this
25621 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25622 (GRUB_MOD_INIT(efi_gop)): ... to this
25623 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25624 (GRUB_MOD_FINI(efi_gop)): ... to this
25625
25626 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
25627
25628 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
25629 translatable.
25630 (usage): Translate `arg' strings using gettext().
25631 Thanks to Jordi Mallach for the suggestion.
25632
25633 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25634
25635 GOP support. Based on patch from Bean
25636 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25637
25638 * video/efi_gop.c: New file.
25639 * include/grub/efi/graphics_output.h: Likewise.
25640 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
25641 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25642 variables.
25643 * conf/x86_64-efi.rmk: Likewise.
25644
25645 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25646
25647 Rename efi_fb to efi_uga.
25648
25649 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25650 'efi_uga.mod'.
25651 (efi_fb_mod_SOURCES): Rename this ...
25652 (efi_uga_mod_SOURCES): ... to this.
25653 (efi_fb_mod_CFLAGS): Rename this ...
25654 (efi_uga_mod_CFLAGS): ... to this.
25655 (efi_fb_mod_LDFLAGS): Rename this ...
25656 (efi_uga_mod_LDFLAGS): ... to this.
25657 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25658 'efi_uga.mod'.
25659 (efi_fb_mod_SOURCES): Rename this ...
25660 (efi_uga_mod_SOURCES): ... to this.
25661 (efi_fb_mod_CFLAGS): Rename this ...
25662 (efi_uga_mod_CFLAGS): ... to this.
25663 (efi_fb_mod_LDFLAGS): Rename this ...
25664 (efi_uga_mod_LDFLAGS): ... to this.
25665 * video/efi_fb.c: Move this ...
25666 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
25667
25668 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25669
25670 * po/README: New file. Explain our PO file workflow.
25671
25672 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25673
25674 * po/ChangeLog: Remove. Move relevant entries back to ...
25675 * ChangeLog: ... here.
25676 * po/ca.po: Remove (now handled by TLP).
25677 * po/id.po: Likewise.
25678 * po/zh_CN.po: Likewise.
25679 * Makefile.in (LINGUAS): Initialize in a way that supports
25680 empty set.
25681
25682 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25683
25684 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
25685 reliing on po/LINGUAS.
25686 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
25687 (po/%.po): ... this.
25688
25689 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25690
25691 * util/i386/efi/grub-mkimage.c: Include "progname.h".
25692 (main): Use `program_name' instead of nonexistent `progname'.
25693
25694 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25695
25696 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25697 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
25698
25699 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25700
25701 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
25702 commit.
25703 * conf/i386-efi.rmk: Likewise.
25704 * conf/i386-ieee1275.rmk: Likewise.
25705 * conf/powerpc-ieee1275.rmk: Likewise.
25706 * conf/sparc64-ieee1275.rmk: Likewise.
25707 * conf/x86_64-efi.rmk: Likewise.
25708
25709 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25710
25711 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
25712
25713 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25714
25715 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
25716
25717 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25718
25719 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
25720 (grub_mkdevicemap_SOURCES): New variable.
25721 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
25722 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
25723 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
25724 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
25725 (grub_mkdevicemap_SOURCES): Remove.
25726 * conf/i386-efi.rmk: Likewise.
25727 * conf/i386-ieee1275.rmk: Likewise.
25728 * conf/i386-pc.rmk: Likewise.
25729 * conf/powerpc-ieee1275.rmk: Likewise.
25730 * conf/sparc64-ieee1275.rmk: Likewise.
25731 * conf/x86_64-efi.rmk: Likewise.
25732 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
25733 (usage): Fix strings to use `program_name'.
25734 (main): Initialize gettext.
25735 * util/grub-editenv.c: Likewise.
25736 * util/grub-emu.c: Likewise.
25737 * util/grub-fstest.c: Likewise.
25738 * util/grub-mkdevicemap.c: Likewise.
25739 * util/grub-mkfont.c: Likewise.
25740 * util/grub-mkrelpath.c: Likewise.
25741 * util/grub-pe2elf.c: Likewise.
25742 * util/grub-probe.c: Likewise.
25743 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25744 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25745 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25746
25747 * util/misc.c: Include `"progname.h"'.
25748 (progname): Remove variable.
25749 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
25750
25751 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25752
25753 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
25754 printf and print a newline after the menuentry header line.
25755 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25756
25757 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25758
25759 autoconf >= 2.60 support $(localedir).
25760
25761 * INSTALL: Note that autoconf 2.60 is required.
25762 * configure.ac (AC_PREREQ): Bump to 2.60.
25763 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
25764 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25765
25766 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
25767
25768 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
25769 aclocal is run.
25770
25771 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25772
25773 * normal/main.c (grub_normal_read_line): Fix off-by-one
25774 buffer overflow.
25775
25776 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25777
25778 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
25779 "parser.grub" in grub_command_execute() call.
25780
25781 2009-11-24 Carles Pina i Estany <carles@pina.cat>
25782
25783 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
25784 * conf/i386-efi.rmk: Likewise.
25785 * conf/i386-ieee1275.rmk: Likewise.
25786 * conf/i386-pc.rmk: Likewise.
25787 * conf/powerpc-ieee1275.rmk: Likewise.
25788 * conf/sparc64-ieee1275.rmk: Likewise.
25789 * conf/x86_64-efi.rmk: Likewise.
25790 * gettext/gettex.c: Include <grub/i18n.h>.
25791 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
25792 here ...
25793 * include/grub/i18n.h: ... to here
25794 * include/grub/i18n.h: ... to here.
25795 * kern/misc.c: Include <grub/i18n.h>
25796 (grub_gettext_dummy): Move above user.
25797
25798 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25799
25800 * util/Makefile.in (install-local): Convert a `for' into a normal
25801 shell expansion.
25802
25803 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
25804
25805 * autogen.sh: Add automake call.
25806 * config.guess: Remove.
25807 * config.sub: Likewise.
25808 * install-sh: Likewise.
25809
25810 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25811
25812 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
25813
25814 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25815
25816 * util/Makefile.in (install-local): Convert a make `$(foreach)'
25817 function to a normal shell `for'.
25818
25819 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25820
25821 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25822
25823 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25824
25825 * util/grub-mkrelpath.c: New file.
25826 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
25827 (grub_mkrelpath_SOURCES): New variable.
25828 * include/grub/util/misc.h: New function prototype.
25829 * util/misc.c (make_system_path_relative_to_its_root): New function.
25830
25831 * util/grub-mkconfig_lib.in (bindir): New variable.
25832 (grub_mkrelpath): Likewise.
25833 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
25834
25835 * util/probe.c (probe): Make the file path relative to its root.
25836 Change a info message to use the GRUB path. Enable again the
25837 check if we can read the file with GRUB facilities.
25838
25839 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
25840 to its root.
25841
25842 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25843
25844 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
25845 platform.
25846
25847 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25848
25849 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
25850 strncmp().
25851
25852 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25853
25854 * util/getroot.c (grub_util_is_dmraid): New function.
25855 (grub_util_get_dev_abstraction): Treat dmraid and multipath
25856 devices as normal ones, not as LVM.
25857
25858 2009-11-23 Carles Pina i Estany <carles@pina.cat>
25859
25860 * conf/common.rmk: Add grub-gettext_lib target and updates
25861 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
25862 LDFLAGS.
25863 * gettext/gettext.c: New file. (Reads mo files).
25864 * include/grub/file.h (grub_file_pread): New prototype.
25865 * include/grub/i18n.h (_): New prototype.
25866 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
25867 prototypes.
25868 * kern/misc.c (grub_gettext_dummy): New function.
25869 * normal/menu_text.c: Include <grub/i18n.h>.
25870 * normal/menu_text.c (print_timeout): Gettexttize string.
25871 * normal/menu_text.c (print_message): Gettexttize string.
25872 * po/POTFILES: Add `normal/menu_text.c'.
25873 * po/ca.po: Add new translations.
25874 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
25875 gettext module and defines locale_dir and lang in grub.cfg.
25876 * NEWS: Add gettext support.
25877
25878 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25879
25880 * util/hostdisk.c: Include `<grub/i18n.h>'.
25881 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
25882 (make_device_name): Rewrite using asprintf.
25883 (convert_system_partition_to_system_disk): Replace 0 with NULL.
25884 (find_system_device): If a device is not found, generate one just
25885 by reusing the OS path name.
25886 (read_device_map): Make it permissible for device.map not to exist.
25887
25888 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25889
25890 * script/sh/execute.c: Move from here ...
25891 * script/execute.c: ... to here. Update all users.
25892 * script/sh/function.c: Move from here ...
25893 * script/function.c: ... to here. Update all users.
25894 * script/sh/lexer.c: Move from here ...
25895 * script/lexer.c: ... to here. Update all users.
25896 * script/sh/main.c: Move from here ...
25897 * script/main.c: ... to here. Update all users.
25898 * script/sh/parser.y: Move from here ...
25899 * script/parser.y: ... to here. Update all users.
25900 * script/sh/script.c: Move from here ...
25901 * script/script.c: ... to here. Update all users.
25902
25903 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25904
25905 * configure.ac: Detect all `emu' platforms. Define
25906 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
25907 --enable-grub-emu logic. Disable include/grub/machine
25908 symlink on `emu' platforms.
25909
25910 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
25911 * gensymlist.sh.in: Likewise.
25912
25913 * include/grub/i386/coreboot/machine.h: Remove file.
25914 * include/grub/i386/efi/machine.h: Likewise.
25915 * include/grub/i386/ieee1275/machine.h: Likewise.
25916 * include/grub/i386/pc/machine.h: Likewise.
25917 * include/grub/i386/qemu/machine.h: Likewise.
25918 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25919 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25920 * include/grub/x86_64/efi/machine.h: Likewise.
25921
25922 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
25923 * commands/halt.c: Likewise.
25924 * commands/reboot.c: Likewise.
25925 * include/grub/autoefi.h: Likewise.
25926 * include/grub/i386/at_keyboard.h: Likewise.
25927 * include/grub/i386/kernel.h: Likewise.
25928 * include/grub/i386/loader.h: Likewise.
25929 * include/grub/i386/pc/memory.h: Likewise.
25930 * kern/dl.c: Likewise.
25931 * kern/i386/coreboot/init.c: Likewise.
25932 * loader/i386/bsd.c: Likewise.
25933 * loader/i386/linux.c: Likewise.
25934 * loader/multiboot_loader.c: Likewise.
25935 * term/i386/pc/serial.c: Likewise.
25936 * term/usb_keyboard.c: Likewise.
25937
25938 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
25939 `<grub/machine/machine.h>'
25940 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
25941 * util/misc.c: Remove `<grub/machine/machine.h>' and
25942 `<grub/machine/time.h>'.
25943
25944 * Makefile.in (enable_grub_emu): Remove variable.
25945 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
25946
25947 * conf/any-emu.rmk: New file.
25948 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
25949 (grub_emu_init.c): Move from here ...
25950 * conf/any-emu.rmk: ... to here.
25951
25952 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
25953 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
25954 * conf/any-emu.rmk: ... to here.
25955
25956 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25957
25958 * include/grub/parser.h (grub_parser_register): Document need
25959 of `name' parameter.
25960 * normal/main.c (grub_normal_read_line): Simplify prompt string.
25961 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
25962 "sh" to "grub".
25963
25964 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25965
25966 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
25967 `$(XGETTEXT)'.
25968 * include/grub/i18n.h (N_): New macro.
25969 * util/mkisofs/mkisofs.h: Likewise.
25970 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
25971 around N_().
25972 (usage): Use gettext() to translate help strings when printing them.
25973
25974 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25975
25976 Based on patch from Bean
25977 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25978
25979 * video/efi_fb.c: New file.
25980 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
25981 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25982 variables.
25983 * conf/x86_64-efi.rmk: Likewise.
25984
25985 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
25986
25987 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
25988 * util/i386/pc/grub-setup.c: Likewise.
25989
25990 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25991
25992 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
25993 <hurd/fs.h>
25994 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
25995 file_get_storage_info to implement grub_guess_root_device.
25996
25997 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25998
25999 * Makefile.in (target): Use make's builtin $(shell) function
26000 instead of calling directly $(SHELL) to create the locale directories,
26001 inside the $(foreach) function.
26002
26003 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26004
26005 * util/grub-mkrescue.in: Print an error and usage if output option
26006 has not been given.
26007
26008 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26009
26010 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26011 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26012 root and /boot are on different devices.
26013
26014 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26015
26016 Fix build for srcdir != objdir.
26017
26018 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26019 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26020 $(srcdir).
26021 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26022 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26023 reference for input.
26024
26025 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26026
26027 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26028 or hardlinking it). Remove -J option, Joliet is not compatible with
26029 multiple source directories.
26030
26031 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26032 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26033
26034 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26035 (process_input_dir): New function. Process an arbitrary input
26036 directory.
26037 Misc adjustments to support both "override mode" and system-wide mode.
26038
26039 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26040
26041 * configure.ac (UNIFONT_BDF): Rename to ...
26042 (FONT_SOURCE): ... this. Update all users.
26043
26044 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26045
26046 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26047 to the list of unifont files to look for.
26048
26049 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26050
26051 Patch from Joe Auricchio <jauricchio@gmail.com>
26052 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26053 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26054 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26055
26056 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26057
26058 * Makefile.in (install-local): Add a missing backslash.
26059
26060 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26061
26062 * include/grub/x86_64/io.h: New file.
26063
26064 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26065
26066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26067 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26068 Include `"progname.h"'.
26069 (main): Initialize gettext.
26070 * util/i386/pc/grub-setup.c: Gettexttize.
26071 * util/i386/pc/grub-mkimage.c: Likewise.
26072
26073 * Makefile.in (po/*.po): Redefine as ...
26074 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26075
26076 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26077
26078 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26079
26080 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26081 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26082 (program_name): Remove.
26083 (main): Initialize gettext support.
26084 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26085 Include `<libintl.h>'.
26086 (_): New macro.
26087
26088 * util/mkisofs/eltorito.c: Gettexttize.
26089 * util/mkisofs/joliet.c: Likewise.
26090 * util/mkisofs/mkisofs.c: Likewise.
26091 * util/mkisofs/multi.c: Likewise.
26092 * util/mkisofs/rock.c: Likewise.
26093 * util/mkisofs/tree.c: Likewise.
26094 * util/mkisofs/write.c: Likewise.
26095
26096 * po/POTFILES: Update with new files.
26097
26098 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26099
26100 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26101 * util/mkisofs/iso9660.h: Likewise.
26102 * util/mkisofs/joliet.c: Likewise.
26103 * util/mkisofs/mkisofs.c: Likewise.
26104 * util/mkisofs/mkisofs.h: Likewise.
26105 * util/mkisofs/rock.c: Likewise.
26106 * util/mkisofs/tree.c: Likewise.
26107 * util/mkisofs/write.c: Likewise.
26108
26109 * util/mkisofs/eltorito.c (rcsid): Remove.
26110 * util/mkisofs/hash.c: Likewise.
26111 * util/mkisofs/joliet.c: Likewise.
26112 * util/mkisofs/name.c: Likewise.
26113 * util/mkisofs/rock.c: Likewise.
26114 * util/mkisofs/tree.c: Likewise.
26115 * util/mkisofs/write.c: Likewise.
26116
26117 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26118
26119 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26120 instead of static allocation.
26121 * util/mkisofs/match.h: Likewise.
26122
26123 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26124
26125 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26126 and `util/grub.d/10_linux.in'.
26127 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26128 translatable Shell files.
26129
26130 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26131
26132 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26133
26134 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26135
26136 * INSTALL: Document Automake is needed for bootstrap.
26137 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26138 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26139 Add gettext initialization.
26140 (kfreebsd_entry): Make menuentry output translatable.
26141
26142 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26143
26144 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26145 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26146 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26147 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26148 (LINGUAS): Auto-generate using `po/LINGUAS'.
26149 * po/LINGUAS: New file.
26150
26151 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26152
26153 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26154 other things).
26155 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26156 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26157 bindtextdomain() calls for gettext initialization.
26158
26159 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26160
26161 * gnulib/progname.c: New file (imported from Gnulib).
26162 * gnulib/progname.h: Likewise.
26163 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26164 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26165 (usage): Replace `progname' with `program_name'.
26166 (main): Use set_program_name() for program name initialization.
26167
26168 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26169
26170 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26171 from here ...
26172 * Makefile.in (CPPFLAGS): ... to here.
26173
26174 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26175
26176 * aclocal.m4: Move from here ...
26177 * acinclude.m4: ... to here.
26178 * autogen.sh: Add call to `aclocal'.
26179 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26180
26181 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26182
26183 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26184 (LINGUAS): New variable.
26185 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26186 (install-local): Install MO files.
26187 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26188 * include/grub/i18n.h: New file.
26189 * po/POTFILES: New file.
26190 * po/ca.po: New file.
26191 * util/grub.d/10_linux.in (bindir): New variable.
26192 Add gettext initialization.
26193 (linux_entry): Make menuentry output translatable.
26194 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26195 (usage): Make --help output translatable.
26196 (main): Initialize gettext.
26197
26198 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26199
26200 * import_gcry.py: New file (written by Vladimir with minor
26201 adjustments).
26202 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26203 ciphers.
26204 * INSTALL: Document that Python is required for bootstrap.
26205
26206 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26207
26208 Import ciphers from libgcrypt 1.4.4.
26209
26210 * lib/libgcrypt/cipher/ChangeLog
26211 * lib/libgcrypt/cipher/ac.c
26212 * lib/libgcrypt/cipher/arcfour.c
26213 * lib/libgcrypt/cipher/bithelp.h
26214 * lib/libgcrypt/cipher/blowfish.c
26215 * lib/libgcrypt/cipher/camellia-glue.c
26216 * lib/libgcrypt/cipher/camellia.c
26217 * lib/libgcrypt/cipher/camellia.h
26218 * lib/libgcrypt/cipher/cast5.c
26219 * lib/libgcrypt/cipher/cipher.c
26220 * lib/libgcrypt/cipher/crc.c
26221 * lib/libgcrypt/cipher/des.c
26222 * lib/libgcrypt/cipher/dsa.c
26223 * lib/libgcrypt/cipher/ecc.c
26224 * lib/libgcrypt/cipher/elgamal.c
26225 * lib/libgcrypt/cipher/hash-common.c
26226 * lib/libgcrypt/cipher/hash-common.h
26227 * lib/libgcrypt/cipher/hmac-tests.c
26228 * lib/libgcrypt/cipher/md.c
26229 * lib/libgcrypt/cipher/md4.c
26230 * lib/libgcrypt/cipher/md5.c
26231 * lib/libgcrypt/cipher/primegen.c
26232 * lib/libgcrypt/cipher/pubkey.c
26233 * lib/libgcrypt/cipher/rfc2268.c
26234 * lib/libgcrypt/cipher/rijndael-tables.h
26235 * lib/libgcrypt/cipher/rijndael.c
26236 * lib/libgcrypt/cipher/rmd.h
26237 * lib/libgcrypt/cipher/rmd160.c
26238 * lib/libgcrypt/cipher/rsa.c
26239 * lib/libgcrypt/cipher/seed.c
26240 * lib/libgcrypt/cipher/serpent.c
26241 * lib/libgcrypt/cipher/sha1.c
26242 * lib/libgcrypt/cipher/sha256.c
26243 * lib/libgcrypt/cipher/sha512.c
26244 * lib/libgcrypt/cipher/tiger.c
26245 * lib/libgcrypt/cipher/twofish.c
26246 * lib/libgcrypt/cipher/whirlpool.c
26247
26248 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26249
26250 Fix build for systems without error().
26251
26252 * gnulib/error.c: New file (imported from Gnulib).
26253 * gnulib/error.h: Likewise.
26254 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26255 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26256 (this variable is now used by error()).
26257
26258 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26259
26260 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26261 instead of relying that char is signed.
26262
26263 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26264
26265 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26266 blocksize different from specified.
26267 (grub_pxefs_read): Likewise.
26268
26269 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26270
26271 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26272
26273 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26274 (grub_ata_readwrite): Likewise. Update 2 format strings.
26275 (grub_atapi_read): Likewise.
26276
26277 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26278 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26279 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26280 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26281 (ata_mod_LDFLAGS): Move from here ...
26282 * conf/i386.rmk: ... to here ...
26283 * conf/x86_64-efi.rmk: ... and here.
26284 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26285 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26286
26287 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26288
26289 Relicense multiboot.h, with RMS' blessing.
26290
26291 * include/multiboot.h: Change to X11 license.
26292
26293 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26294
26295 Support --version in grub-mkisofs.
26296
26297 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26298 (OPTION_VERSION): New macro.
26299 (ld_options): Recognize --version.
26300 (usage): Move `program_name' from here ...
26301 (program_name): ... to here. Add `static' qualifier.
26302 (main): Recognize `OPTION_VERSION'.
26303
26304 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26305
26306 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26307 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26308
26309 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26310
26311 Fix help2man generation for mkisofs.
26312
26313 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26314 (usage): Send output to stdout (rather than stderr).
26315
26316 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26317
26318 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26319 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26320 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26321 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26322 (bin_SCRIPTS): Add `grub-mkfloppy'.
26323 (grub_mkfloppy_SOURCES): New variable.
26324
26325 * util/grub-mkrescue.in: New file.
26326 * util/i386/pc/grub-mkfloppy.in: New file.
26327
26328 * util/i386/coreboot/grub-mkrescue.in: Remove.
26329 * util/i386/pc/grub-mkrescue.in: Remove.
26330
26331 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26332
26333 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26334 from here ...
26335 * include/multiboot.h (struct multiboot_header): ... to here. Update
26336 all users.
26337 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26338 from here ...
26339 * include/multiboot.h (struct multiboot_info): ... to here. Update
26340 all users.
26341 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26342 from here ...
26343 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26344 Update all users.
26345 * include/grub/multiboot.h (struct grub_mod_list): Move
26346 from here ...
26347 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26348 Update all users.
26349
26350 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26351
26352 * include/multiboot2.h (multiboot_word): Rename from this ...
26353 (multiboot2_word): ... to this. Update all users.
26354 (multiboot_header): Rename from this ...
26355 (multiboot2_header): ... to this. Update all users.
26356 (multiboot_tag_header): Rename from this ...
26357 (multiboot2_tag_header): ... to this. Update all users.
26358 (multiboot_tag_start): Rename from this ...
26359 (multiboot2_tag_start): ... to this. Update all users.
26360 (multiboot_tag_name): Rename from this ...
26361 (multiboot2_tag_name): ... to this. Update all users.
26362 (multiboot_tag_module): Rename from this ...
26363 (multiboot2_tag_module): ... to this. Update all users.
26364 (multiboot_tag_memory): Rename from this ...
26365 (multiboot2_tag_memory): ... to this. Update all users.
26366 (multiboot_tag_unused): Rename from this ...
26367 (multiboot2_tag_unused): ... to this. Update all users.
26368 (multiboot_tag_end): Rename from this ...
26369 (multiboot2_tag_end): ... to this. Update all users.
26370
26371 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26372
26373 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26374 this platform we should support Multiboot1 first.
26375
26376 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26377 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26378 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26379
26380 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26381
26382 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26383 of write calls (converting them to fwrite() if they aren't already).
26384 (get_torito_desc): Likewise.
26385 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26386
26387 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26388
26389 * util/i386/pc/grub-install.in: Move from here ...
26390 * util/grub-install.in: ... to here. Update all users.
26391
26392 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26393
26394 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26395
26396 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26397
26398 Support for El Torito without floppy emulation.
26399
26400 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26401 (init_boot_catalog): Improve error handling.
26402 (get_torito_desc): Don't use floppy emulation unless requested by
26403 user. Patch boot information table when requested via
26404 `-boot-info-table'.
26405 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26406 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26407 (use_boot_info_table): New variables.
26408 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26409 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26410 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26411 `--eltorito-emul-floppy'.
26412 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26413 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26414 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26415 (use_boot_info_table, get_731): New prototypes.
26416 * util/mkisofs/write.c (get_731): New function.
26417
26418 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26419
26420 Fix the generation of the man page.
26421
26422 * util/pc/i386/grub-install.in: Source
26423 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26424
26425 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26426
26427 Large file support for grub-mkisofs.
26428
26429 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26430 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26431 (session_start): Upgrade type to `uint64_t'. Update all users.
26432 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26433 (struct directory_entry): Upgrade type of `starting_block' and
26434 `size' to `uint64_t'. Update all users.
26435 (struct deferred): Remove unused structure.
26436 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26437 Update all users.
26438 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26439 file is larger than `UINT32_MAX'.
26440 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26441 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26442 return value.
26443 (struct deferred_write): Upgrade type of `extent' and `size' to
26444 `uint64_t'. Update all users.
26445 (last_extent_written): Upgrade type to `uint64_t'. Update all
26446 users.
26447 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26448 Update all users. Upgrade type of `remain' to `int64_t' and
26449 `use' to `size_t'. Use error() to handle fread() errors.
26450 (write_files): Rely on write_one_file() rather than calling
26451 xfwrite() directly.
26452
26453 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26454
26455 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26456
26457 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26458
26459 * util/mkisofs/fnmatch.c: Remove.
26460 * util/mkisofs/getopt1.c: Likewise.
26461 * util/mkisofs/getopt.c: Likewise.
26462 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26463 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26464 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26465 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26466 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26467
26468 * configure.ac: Detect `mingw32msvc' host_os.
26469 Check for lstat(), getuid() and getgid().
26470
26471 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26472 instances of `u_char' with `uint8_t'.
26473
26474 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26475 [!HAVE_GETUID] (getuid): New function (stub).
26476 [!HAVE_GETGID] (getgid): Likewise.
26477 [!HAVE_LSTAT] (lstat): Likewise.
26478 [!S_IROTH] (S_IROTH): New macro (dummy).
26479 [!S_IRGRP] (S_IRGRP): Likewise.
26480
26481 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26482
26483 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26484 conditional expression).
26485
26486 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26487
26488 Import from Gnulib.
26489
26490 * gnulib/fnmatch.c: New file.
26491 * gnulib/fnmatch.h: Likewise.
26492 * gnulib/fnmatch_loop.c: Likewise.
26493 * gnulib/getopt.c: Likewise.
26494 * gnulib/getopt.h: Likewise.
26495 * gnulib/getopt1.c: Likewise.
26496 * gnulib/getopt_int.h: Likewise.
26497 * gnulib/gettext.h: Likewise.
26498
26499 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26500
26501 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26502 * normal/handler.c (read_handler_list): Likewise.
26503
26504 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26505
26506 Misc cleanup.
26507
26508 * kern/command.c (grub_register_command_prio): Use
26509 grub_zalloc() instead of explicitly zeroing data.
26510 * kern/list.c: Include `<grub/mm.h>'.
26511 (grub_named_list_find): Replace `0' with `NULL'.
26512 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26513 (fs_module_list): Change type to `grub_named_list_t'. Update all
26514 users.
26515 * normal/dyncmd.c (read_command_list): Add space between function
26516 call and parenthesis.
26517 * normal/handler.c (read_handler_list): Likewise.
26518
26519 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26520
26521 * normal/auth.c (punishment_delay): Moved from here ...
26522 (grub_auth_strcmp): ... to here (inside function).
26523
26524 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26525
26526 * include/grub/list.h (struct grub_named_list): Remove `const'
26527 qualifier from `name'.
26528 (struct grub_prio_list): Likewise.
26529
26530 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26531
26532 * normal/auth.c: Include `<grub/time.h>'.
26533 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26534
26535 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26536
26537 * normal/auth.c (punishment_delay): New variable.
26538 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26539 (grub_auth_check_authentication): Punish failed login attempts with
26540 an incremental (2^N) delay.
26541
26542 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26543
26544 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26545 path with $(srcdir).
26546
26547 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26548
26549 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
26550
26551 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26552
26553 * util/i386/coreboot/grub-mkrescue.in: New file.
26554 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
26555 variables.
26556
26557 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
26558 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
26559 * configure.ac: Add header and function checks to satisfy grub-mkisofs
26560 requirements.
26561 * util/mkisofs/defaults.h: New file.
26562 * util/mkisofs/eltorito.c: Likewise.
26563 * util/mkisofs/exclude.h: Likewise.
26564 * util/mkisofs/fnmatch.c: Likewise.
26565 * util/mkisofs/getopt.c: Likewise.
26566 * util/mkisofs/getopt1.c: Likewise.
26567 * util/mkisofs/hash.c: Likewise.
26568 * util/mkisofs/include/fctldefs.h: Likewise.
26569 * util/mkisofs/include/mconfig.h: Likewise.
26570 * util/mkisofs/include/prototyp.h: Likewise.
26571 * util/mkisofs/include/statdefs.h: Likewise.
26572 * util/mkisofs/iso9660.h: Likewise.
26573 * util/mkisofs/joliet.c: Likewise.
26574 * util/mkisofs/match.c: Likewise.
26575 * util/mkisofs/match.h: Likewise.
26576 * util/mkisofs/mkisofs.c: Likewise.
26577 * util/mkisofs/mkisofs.h: Likewise.
26578 * util/mkisofs/multi.c: Likewise.
26579 * util/mkisofs/name.c: Likewise.
26580 * util/mkisofs/rock.c: Likewise.
26581 * util/mkisofs/tree.c: Likewise.
26582 * util/mkisofs/write.c: Likewise.
26583
26584 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26585
26586 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
26587 being insecure.
26588
26589 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26590
26591 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
26592 `grub-mkimage' (and use $0 when possible).
26593
26594 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26595
26596 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
26597 error message for excessively large memory map.
26598
26599 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26600
26601 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
26602 executable bit.
26603
26604 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26605
26606 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
26607 message for coreboot users.
26608
26609 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
26610
26611 Fix build with GNU gold.
26612
26613 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
26614 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
26615 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
26616 link addresses.
26617 * aclocal.m4: Likewise.
26618
26619 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
26620
26621 * configure.ac (AC_PREREQ): Bump to 2.59d.
26622 * INSTALL: Make it more clear when Autoconf and Ruby are
26623 needed and when to run `./autogen.sh'.
26624
26625 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26626
26627 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
26628 OSes.
26629
26630 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26631
26632 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
26633
26634 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26635
26636 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
26637 giving it to GNU Mach.
26638
26639 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26640
26641 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
26642 GNU partition number to get internal GRUB partition number.
26643
26644 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26645
26646 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
26647 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
26648
26649 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
26650
26651 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
26652 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
26653 case.
26654
26655 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
26656
26657 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
26658
26659 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26660
26661 Fix build problem.
26662
26663 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
26664 `-isystem=$(srcdir)/include'.
26665
26666 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26667
26668 * util/i386/pc/grub-install.in: Remove hint that device.map should be
26669 checked (grub-install doesn't currently rely on it).
26670
26671 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
26672
26673 Revert SVN r2660.
26674
26675 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
26676 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26677 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
26678 * conf/i386-ieee1275.rmk: Likewise.
26679 * conf/i386-pc.rmk: Likewise.
26680 * conf/powerpc-ieee1275.rmk: Likewise.
26681 * conf/sparc64-ieee1275.rmk: Likewise.
26682 * conf/x86_64-efi.rmk: Likewise.
26683
26684 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26685
26686 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
26687
26688 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26689
26690 * include/grub/misc.h: Stop checking for APPLE_CC.
26691
26692 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26693
26694 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
26695 doesn't cause an infinite call loop.
26696
26697 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
26698
26699 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
26700 strings.
26701
26702 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26703
26704 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
26705 variable.
26706 * Makefile.in: Likewise.
26707
26708 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26709
26710 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
26711
26712 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26713
26714 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
26715
26716 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26717
26718 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
26719
26720 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26721
26722 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
26723 from here ...
26724 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
26725
26726 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26727
26728 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
26729 in $(MAKEINFO) invocation. This makes it clear in output that
26730 errors are being ignored.
26731
26732 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26733
26734 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
26735 from here ...
26736 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26737 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
26738 * conf/i386-ieee1275.rmk: Likewise.
26739 * conf/i386-pc.rmk: Likewise.
26740 * conf/powerpc-ieee1275.rmk: Likewise.
26741 * conf/sparc64-ieee1275.rmk: Likewise.
26742 * conf/x86_64-efi.rmk: Likewise.
26743
26744 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26745
26746 * util/grub-editenv.c (main): If only a command is given, use
26747 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
26748 (usage): FILENAME is now optional and has a default.
26749
26750 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26751
26752 Improve grub-mkconfig performance when there are several menu
26753 entries on a single filesystem.
26754
26755 * util/grub.d/10_linux.in (linux_entry): Cache the output of
26756 prepare_grub_to_access_device.
26757 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26758 * util/grub.d/30_os-prober.in: Likewise.
26759
26760 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26761
26762 * util/grub.d/10_freebsd.in: Remove.
26763 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
26764 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
26765
26766 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26767
26768 * docs/grub.cfg: Fix example usage of *BSD loaders.
26769
26770 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26771
26772 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
26773 grub_util_error() call.
26774
26775 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26776
26777 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
26778 `reserved_first_sector' member.
26779 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
26780 `reserved_first_sector' to 1.
26781 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
26782 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
26783 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
26784 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
26785 filesystems which begin at first sector.
26786 (options): New option --skip-fs-probe.
26787 (main): Handle --skip-fs-probe and pass it to setup().
26788
26789 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26790
26791 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
26792 (memset): Fix function prototype.
26793
26794 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26795 2009-10-25 Vasily Averin <vvs@parallels.com>
26796
26797 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
26798 `dirent.direntlen == 0'.
26799
26800 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26801
26802 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
26803 `cpio'.
26804 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
26805
26806 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26807
26808 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
26809 `__trampoline_setup' and `__ucmpdi2'.
26810 * include/grub/powerpc/libgcc.h: Only export symbols for functions
26811 that libgcc provides.
26812
26813 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26814
26815 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
26816 * include/grub/sparc64/libgcc.h (memset): Likewise.
26817 * include/grub/misc.h (memset, memcmp): New function prototypes.
26818
26819 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26820
26821 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
26822 `cpio'.
26823 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
26824
26825 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26826
26827 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
26828 * docs/grub.cfg: Compensate for recent change in multiboot
26829 loader (since 2009-08-14 it won't pass filename to payload).
26830 * util/grub.d/10_hurd.in: Likewise.
26831
26832 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
26833
26834 * config.guess: Update to latest version from config git
26835 repository.
26836 * config.sub: Likewise.
26837
26838 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
26839
26840 Fix build on sparc64.
26841
26842 * configure.ac: Perform checks for libgcc symbols before
26843 adding `-nostdlib' to LDFLAGS.
26844
26845 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26846
26847 Let user specify OpenBSD root device.
26848
26849 * loader/i386/bsd.c (openbsd_root): New variable.
26850 (openbsd_opts): New option 'root'.
26851 (OPENBSD_ROOT_ARG): New macro.
26852 (grub_openbsd_boot): Use 'openbsd_root'.
26853 (grub_cmd_openbsd): Fill 'openbsd_root'.
26854
26855 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26856
26857 * NEWS: Misc adjustments.
26858
26859 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26860
26861 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
26862
26863 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26864
26865 * configure.ac: Bump version to 1.97.
26866
26867 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
26868
26869 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
26870 -mno-3dnow on x86 architectures. Some toolchains enable these
26871 features by default, but they rely on registers that aren't enabled
26872 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
26873
26874 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
26875
26876 Make entry text a bit more readable.
26877
26878 * util/grub.d/10_linux.in: Add `with' before `Linux'.
26879
26880 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26881
26882 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
26883
26884 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26885
26886 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
26887 operations.
26888
26889 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26890
26891 * configure.ac: Add missing dollar.
26892
26893 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26894
26895 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
26896
26897 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
26898 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
26899 exports.
26900 * include/grub/sparc64/libgcc.h: Likewise. Use
26901 preprocessor conditionals.
26902
26903 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26904
26905 * conf/common.rmk (grub-dumpbios): Remove rule.
26906 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
26907 * util/grub-dumpbios.in: Remove file.
26908
26909 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26910
26911 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
26912 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
26913
26914 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
26915 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
26916 users.
26917
26918 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
26919 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
26920 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
26921 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
26922 users.
26923
26924 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * term/tparm.c: Switch to GPLv3.
26927
26928 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26929
26930 * include/grub/i386/cpuid.h: Add header protection.
26931
26932 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26933
26934 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
26935
26936 * include/grub/i386/cpuid.h: New file.
26937 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
26938 (has_longmode): Rename to ...
26939 (grub_cpuid_has_longmode): ... this. Update all users. Remove
26940 `static' attribute.
26941 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
26942 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
26943 on a CPU that doesn't implement AMD64 instruction set.
26944
26945 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26946
26947 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
26948 that version.texi is rebuilt on version number changes.
26949
26950 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26951
26952 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
26953 Fixes bug #27602.
26954
26955 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26956
26957 * util/i386/pc/grub-install.in: Source
26958 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
26959 that the --grub-probe option will work.
26960 * util/sparc64/ieee1275/grub-install.in: Likewise.
26961
26962 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
26963
26964 * configure.ac: Bump version to 1.97~beta4.
26965
26966 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
26967
26968 Resync grub-mkdevicemap in x86_64-efi.
26969
26970 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
26971 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
26972 `util/devicemap.c'.
26973
26974 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
26975
26976 * util/grub-editenv.c (create_envblk_file): Write new block with a
26977 .new suffix and then rename it into place, to ensure atomic
26978 creation.
26979
26980 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
26981
26982 Do not automatically install headers.
26983
26984 * Makefile.in (include_DATA): Remove. Update all users.
26985
26986 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
26987
26988 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
26989 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
26990
26991 * util/osdetect.lua: Remove.
26992 * script/lua/lauxlib.c: Likewise.
26993 * script/lua/ldebug.c: Likewise.
26994 * script/lua/grub_main.c: Likewise.
26995 * script/lua/lauxlib.h: Likewise.
26996 * script/lua/ldebug.h: Likewise.
26997 * script/lua/ltablib.c: Likewise.
26998 * script/lua/liolib.c: Likewise.
26999 * script/lua/lstrlib.c: Likewise.
27000 * script/lua/lualib.h: Likewise.
27001 * script/lua/ldo.c: Likewise.
27002 * script/lua/ldump.c: Likewise.
27003 * script/lua/ldo.h: Likewise.
27004 * script/lua/loslib.c: Likewise.
27005 * script/lua/lundump.c: Likewise.
27006 * script/lua/grub_lib.c: Likewise.
27007 * script/lua/ldblib.c: Likewise.
27008 * script/lua/lundump.h: Likewise.
27009 * script/lua/lmem.c: Likewise.
27010 * script/lua/grub_lib.h: Likewise.
27011 * script/lua/lmathlib.c: Likewise.
27012 * script/lua/lstate.c: Likewise.
27013 * script/lua/ltm.c: Likewise.
27014 * script/lua/lvm.c: Likewise.
27015 * script/lua/lmem.h: Likewise.
27016 * script/lua/lstate.h: Likewise.
27017 * script/lua/ltm.h: Likewise.
27018 * script/lua/ltable.c: Likewise.
27019 * script/lua/lvm.h: Likewise.
27020 * script/lua/llex.c: Likewise.
27021 * script/lua/lgc.c: Likewise.
27022 * script/lua/grub_lua.h: Likewise.
27023 * script/lua/loadlib.c: Likewise.
27024 * script/lua/lfunc.c: Likewise.
27025 * script/lua/lopcodes.c: Likewise.
27026 * script/lua/lparser.c: Likewise.
27027 * script/lua/ltable.h: Likewise.
27028 * script/lua/llex.h: Likewise.
27029 * script/lua/lgc.h: Likewise.
27030 * script/lua/lfunc.h: Likewise.
27031 * script/lua/lbaselib.c: Likewise.
27032 * script/lua/lopcodes.h: Likewise.
27033 * script/lua/lparser.h: Likewise.
27034 * script/lua/lzio.c: Likewise.
27035 * script/lua/linit.c: Likewise.
27036 * script/lua/lobject.c: Likewise.
27037 * script/lua/llimits.h: Likewise.
27038 * script/lua/lstring.c: Likewise.
27039 * script/lua/lzio.h: Likewise.
27040 * script/lua/lapi.c: Likewise.
27041 * script/lua/lcode.c: Likewise.
27042 * script/lua/lua.h: Likewise.
27043 * script/lua/lobject.h: Likewise.
27044 * script/lua/lstring.h: Likewise.
27045 * script/lua/lapi.h: Likewise.
27046 * script/lua/lcode.h: Likewise.
27047 * script/lua/luaconf.h: Likewise.
27048
27049 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27050
27051 * docs/grub.texi (Command-line and menu entry commands): Document
27052 date and echo commands.
27053
27054 2009-09-24 Pavel Roskin <proski@gnu.org>
27055
27056 * include/grub/kernel.h (struct grub_module_header): Remove
27057 `grub_module_header_types'. Make `type' unsigned. Make `size'
27058 32-bit on all platforms.
27059 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27060 8-bit field. Use grub_host_to_target32() for `size'.
27061 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27062 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27063 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27064
27065 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27066
27067 Fix "lost keypress" bug in at_keyboard.
27068
27069 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27070 Checks for readyness of input buffer (without flushing it).
27071 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27072 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27073
27074 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27075
27076 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27077 size check within GRUB_MACHINE_PCBIOS section.
27078
27079 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27080
27081 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27082 return value.
27083 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27084 KEYBOARD_ISREADY check.
27085 (grub_at_keyboard_checkkey): Rename to ...
27086 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27087 Remove gratuitous cast.
27088
27089 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27090
27091 * configure.ac: Call AC_PROG_MKDIR_P.
27092 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27093 version.texi in $(builddir) rather than $(srcdir).
27094 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27095 to makeinfo's @include search path.
27096
27097 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27098
27099 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27100
27101 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27102
27103 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27104 for `*.dpkg-new'.
27105
27106 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27107
27108 Build info documentation. Some code borrowed from Automake.
27109
27110 * configure.ac: Check for makeinfo.
27111 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27112 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27113 docs/version.texi.
27114 (MOSTLYCLEANFILES): Add vti.tmp.
27115 (docs/version.texi, docs/stamp-vti): Update automatically.
27116 (docs/grub.info): Build info documentation. Use --force and ignore
27117 errors for now.
27118 (all-local): Add $(INFOS).
27119 (install-local): Install info files.
27120 (uninstall): Uninstall info files.
27121 * docs/version.texi: Remove from revision control. This file is
27122 automatically generated on build now.
27123 * gendistlist.sh: Add `*.info'.
27124
27125 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27126
27127 * kern/term.c: Fix indentation.
27128
27129 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27130
27131 * util/hostdisk.c: Fix a comment.
27132
27133 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27134
27135 Fix regression introduced in r2539.
27136
27137 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27138 to 0xA1.
27139
27140 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27141
27142 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27143 os-prober. Under normal operation, it does not print anything to
27144 stderr; if it does, we need to debug it, and throwing away stderr
27145 makes that excessively difficult.
27146
27147 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27148
27149 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27150
27151 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27152
27153 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27154 AC_LANG_PROGRAM from autoconf.
27155 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27156 prototypes (fixes warning).
27157
27158 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27159 `--disable-werror' was used.
27160
27161 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27162
27163 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27164 uninitialized `lastaddr'.
27165
27166 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27167
27168 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27169
27170 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27171
27172 * commands/test.c (get_fileinfo): Return immediately if
27173 grub_fs_probe fails.
27174
27175 2009-09-14 José Martínez <xosemp@gmail.com>
27176
27177 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27178
27179 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27180
27181 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27182 output.
27183
27184 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27185
27186 * configure.ac: Remove --enable-grub-pe2elf. Only build
27187 grub-pe2elf when needed by the build system itself.
27188 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27189
27190 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27191
27192 * configure.ac: Bump version to 1.97~beta3.
27193 * docs/version.texi: Likewise.
27194
27195 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27196
27197 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27198 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27199 from here ...
27200 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27201 (grub_linux_setup_video): ... to here (with some adjustments).
27202
27203 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27204
27205 Fix memory corruption issue (spotted by Colin Watson).
27206
27207 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27208 causing returned size to be stored in an incorrect memory location.
27209 Fix use of uninitialized value when storing the returned size.
27210
27211 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27212
27213 Change clean rules to properly remove files
27214
27215 * genmk.rb: add new clean rules
27216 * Makefile.in (clean): add the new targets
27217 (mostlyclean): likewise
27218
27219 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27220
27221 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27222 to grub_uint64_t.
27223 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27224 non-resident files.
27225
27226 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27227
27228 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27229 part of bug #27349.
27230
27231 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27232
27233 * util/grub-mkconfig.in: Make the created config mode 400 and
27234 print a warning if it fails.
27235
27236 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27237
27238 * util/grub.d/40_custom.in: Ask user to type custom entries below
27239 comment, rather than below 'exec tail' line.
27240
27241 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27242
27243 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27244 visible in grub.cfg.
27245
27246 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27247
27248 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27249 file.
27250
27251 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27252
27253 * docs/grub.cfg: Add an example menu entry for memtest86+.
27254
27255 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27256
27257 * config.guess: Update to latest version from config git.
27258 * config.sub: Likewise.
27259
27260 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27261
27262 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27263 unknown-command case. Fixes bug #27320.
27264
27265 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27266
27267 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27268 `help' if the command exists.
27269
27270 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27271
27272 * INSTALL: Require GCC 4.1.3 or later.
27273
27274 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27275
27276 * Makefile.in (RMKFILES): add i386-qemu.rmk
27277 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27278 $(srcdir)/stamp-h.in
27279
27280 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27281
27282 * util/grub-probe.c (probe): Comment out buggy codepath, which
27283 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27284 should be re-enabled after 1.97.
27285
27286 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27287
27288 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27289 find searches for.
27290
27291 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27292
27293 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27294 unnecessary calls to grub_error.
27295
27296 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27297
27298 * NEWS: Mention `keystatus' and Unicode fonts.
27299
27300 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27301
27302 * configure.ac: Bump version to 1.97~beta2.
27303 * docs/version.texi: Likewise.
27304
27305 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27306
27307 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27308 containing unwind information in some cases where it previously did
27309 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27310 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27311 discussion.
27312
27313 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27314
27315 Embedding loadenv module into grub-emu
27316
27317 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27318 commands/loadenv.c
27319 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27320 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27321 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27323 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27324 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27325
27326 2009-09-03 Magnus Granberg <zorry@ume.nu>
27327
27328 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27329 include -fPIE in the default specs.
27330 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27331 to TARGET_CFLAGS.
27332
27333 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27334
27335 * INSTALL: Note that GNU Bison 2.3 or later is required.
27336
27337 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27338
27339 * kern/i386/pc/startup.S: Fix typo.
27340
27341 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27342
27343 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27344 according to GCS.
27345
27346 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27347
27348 * docs/grub.texi (Naming convention): Describe one-based partition
27349 numbering.
27350 (Device syntax): Likewise.
27351 (File name syntax): Likewise.
27352 (Block list syntax): Likewise.
27353 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27354 menu.lst.
27355 (File name syntax): Likewise.
27356 (Command-line and menu entry commands): Document acpi, blocklist,
27357 crc, export, insmod, keystatus, ls, set, and unset commands.
27358
27359 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27360
27361 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27362 to avoid implying that only one of --shift, --ctrl, or --alt may be
27363 used.
27364
27365 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27366
27367 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27368 rather than comparing against S_IFREG, which will almost never work.
27369
27370 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27371
27372 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27373 (write_blocklists): Likewise.
27374
27375 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27376
27377 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27378 argument to grub_printf.
27379
27380 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27381
27382 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27383 non GNU test.
27384
27385 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27386
27387 * kern/file.c (grub_file_read): Spelling fix
27388
27389 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27390
27391 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27392 loading of headers in some cases.
27393
27394 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27395
27396 * configure.ac: Bump version to 1.97~beta1.
27397 * docs/version.texi: Likewise.
27398
27399 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27400
27401 * include/grub/i386/xnu.h: Add license header.
27402 include grub/err.h explicitly.
27403
27404 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27405
27406 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27407 to `ufs' in the vfs.root.mountfrom kernel parameter.
27408
27409 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27410
27411 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27412
27413 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27414 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27415
27416 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27417 `ARRAY_SIZE' macro.
27418
27419 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27420
27421 * kern/file.c (grub_file_read): Check offset.
27422 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27423 * fs/jfs.c (grub_jfs_read_file): Likewise.
27424 * fs/ntfs.c (grub_ntfs_read): Likewise.
27425 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27426 * fs/minix.c (grub_minix_read_file): Correct offset check.
27427 * fs/ufs.c (grub_ufs_read_file): Likewise.
27428
27429 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27430
27431 * term/i386/pc/console.c (bios_data_area): Cast
27432 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27433
27434 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27435
27436 1-bit optimised blitters.
27437
27438 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27439 prototype.
27440 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27441 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27442 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27443 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27444 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27445 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27446 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27447 function.
27448 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27449 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27450 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27451 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27452 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27453 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27454 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27455 when possible.
27456 * video/video.c (grub_video_get_blit_format): Return
27457 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27458
27459 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27460
27461 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27462 the first argument to grub_printf.
27463
27464 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27465 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27466
27467 Add `getkeystatus' terminal method. Add a new `keystatus' command
27468 to query it.
27469
27470 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27471 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27472 modifier key bitmasks.
27473 (struct grub_term_input): Add `getkeystatus' member.
27474 (grub_getkeystatus): Add prototype.
27475 * kern/term.c (grub_getkeystatus): New function.
27476
27477 * include/grub/i386/pc/memory.h
27478 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27479 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27480 Data Area layout.
27481 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27482 (grub_console_term_input): Set `getkeystatus' member.
27483 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27484 constants.
27485 (grub_usb_keyboard_getreport): Likewise.
27486 (grub_usb_keyboard_checkkey): Likewise.
27487 (grub_usb_keyboard_getkeystatus): New function.
27488 (grub_usb_keyboard_term): Set `getkeystatus' member.
27489
27490 * commands/keystatus.c: New file.
27491 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27492 (keystatus_mod_SOURCES): New variable.
27493 (keystatus_mod_CFLAGS): Likewise.
27494 (keystatus_mod_LDFLAGS): Likewise.
27495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27496 commands/keystatus.c.
27497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27499 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27500 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27501 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27502 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27503
27504 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27505
27506 Split befs.mod and afs.mod into *_be.mod and *.mod
27507
27508 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27509 (grub_fstest_SOURCES): Likewise.
27510 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27511 (afs_be_mod_SOURCES): New variable.
27512 (afs_be_mod_CFLAGS): Likewise.
27513 (afs_be_mod_LDFLAGS): Likewise.
27514 (befs_be_mod_SOURCES): Likewise.
27515 (befs_be_mod_CFLAGS): Likewise.
27516 (befs_be_mod_LDFLAGS): Likewise.
27517 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27518 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27519 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27520 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27521 (grub_emu_SOURCES): Likewise.
27522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27523 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27524 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27525 * fs/afs_be.c: New file.
27526 * fs/befs_be.c: New file.
27527 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27528 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27529 (U16): Replaced with ...
27530 (grub_afs_to_cpu16): ...this. All users updated.
27531 (U32): Replaced with ...
27532 (grub_afs_to_cpu32): ...this. All users updated.
27533 (U64): Replaced with ...
27534 (grub_afs_to_cpu64): ...this. All users updated.
27535 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27536 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27537 (grub_afs_validate_sblock): Check only one endianness.
27538 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27539 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27540 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27541 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27542 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27543 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27544 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27545 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27546
27547 2009-08-26 Bean <bean123ch@gmail.com>
27548
27549 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
27550 64-bit number.
27551 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
27552 (grub_xfs_inode_block): Change return type to grub_uint64_t.
27553 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
27554
27555 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27556
27557 NetBSD memory map support.
27558
27559 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
27560 (grub_netbsd_btinfo_mmap_header): New structure.
27561 (grub_netbsd_btinfo_mmap_entry): Likewise.
27562 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
27563
27564 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27565
27566 Enable bsd.mod on coreboot.
27567
27568 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
27569 (bsd_mod_SOURCES): New variable.
27570 (bsd_mod_CFLAGS): Likewise.
27571 (bsd_mod_LDFLAGS): Likewise.
27572 (bsd_mod_ASFLAGS): Likewise.
27573 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
27574 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
27575
27576 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27577
27578 Cleanup NetBSD root support.
27579
27580 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
27581 grub_bsd_get_device.
27582 Fix typo.
27583
27584 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
27585
27586 * util/grub.d/00_header.in: Move check for the video backend of
27587 gfxterm from here ...
27588 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
27589 a suitable video backend.
27590
27591 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27592
27593 Fix breakage in grub-setup.
27594
27595 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
27596 "msdos_partition_map".
27597
27598 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27599
27600 Fix breakage in normal/auth.c.
27601
27602 * normal/auth.c (grub_iswordseparator): New function.
27603
27604 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27605
27606 Authentication support.
27607
27608 * commands/password.c: New file.
27609 * conf/common.rmk (pkglib_MODULES): Add password.mod.
27610 (password_mod_SOURCES): New variable.
27611 (password_mod_CFLAGS): Likewise.
27612 (password_mod_LDFLAGS): Likewise.
27613 (normal_mod_SOURCES): Add normal/auth.c.
27614 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
27615 normal/auth.c.
27616 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27617 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27618 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27620 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27621 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27622 * include/grub/auth.h: New file.
27623 * include/grub/err.h (grub_err_t): New enum value
27624 GRUB_ERR_ACCESS_DENIED.
27625 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
27626 'users'.
27627 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
27628 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
27629 users updated.
27630 * normal/auth.c: New file.
27631 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
27632 (grub_cmdline_run): Don't allow to go to command line without
27633 authentication.
27634 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
27635 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
27636 menuentry without superuser rights.
27637 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
27638 user isn't a superuser.
27639
27640 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27641
27642 Save space by inlining misc.c functions.
27643
27644 * kern/misc.c (grub_iswordseparator): Made static.
27645 * kern/misc.c (grub_strcat): Moved from here ...
27646 * include/grub/misc.h (grub_strcat): ... here. Inlined.
27647 * kern/misc.c (grub_strncat): Moved from here ...
27648 * include/grub/misc.h (grub_strncat): ... here. Inlined.
27649 * kern/misc.c (grub_strcasecmp): Moved from here ...
27650 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
27651 * kern/misc.c (grub_strncasecmp): Moved from here ...
27652 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
27653 * kern/misc.c (grub_isalpha): Moved from here ...
27654 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
27655 * kern/misc.c (grub_isdigit): Moved from here ...
27656 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
27657 * kern/misc.c (grub_isgraph): Moved from here ...
27658 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
27659 * kern/misc.c (grub_tolower): Moved from here ...
27660 * include/grub/misc.h (grub_tolower): ... here. Inlined.
27661
27662 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27663
27664 * script/sh/function.c (grub_script_function_find): Cut error message
27665 not to flood terminal.
27666 * script/sh/lexer.c (grub_script_yylex): Remove command line length
27667 limit.
27668 * script/sh/script.c (grub_script_arg_add): Duplicate string.
27669
27670 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
27671
27672 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
27673 `report' grub_uint8_t *.
27674 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
27675 Use a 50-millisecond timeout rather than just repeating
27676 grub_usb_keyboard_getreport 50 times.
27677 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
27678
27679 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27680
27681 Rename *_partition_map to part_*
27682
27683 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
27684 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
27685 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
27686 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
27687 All users updated.
27688 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
27689 All users updated.
27690 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
27691 * util/grub-probe.c (probe_partmap): Don't transform partition name
27692 to get module name.
27693
27694 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27695
27696 Fix OpenBSD and NetBSD support.
27697
27698 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
27699 memory address conflict.
27700 (OPENBSD_MMAP_ACPI): New definition.
27701 (OPENBSD_MMAP_NVS): Likewise.
27702 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
27703 and OPENBSD_MMAP_NVS.
27704 Add memory map terminator
27705 Explicit cast when calling grub_unix_real_boot.
27706 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
27707
27708 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27709
27710 Let user specify NetBSD root device.
27711
27712 * loader/i386/bsd.c (netbsd_root): New variable.
27713 (netbsd_opts): New option 'root'.
27714 (NETBSD_ROOT_ARG): New macro.
27715 (grub_netbsd_boot): Use 'netbsd_root'.
27716 (grub_bsd_unload): Free 'netbsd_root'.
27717 (grub_cmd_netbsd): Fill 'netbsd_root'.
27718
27719 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27720
27721 Support for 64-bit NetBSD.
27722
27723 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
27724 point when booting non-FreeBSD.
27725
27726 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27727
27728 Support --no-smp and --no-acpi for NetBSD.
27729
27730 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
27731 (NETBSD_AB_NOACPI): Likewise.
27732 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
27733 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
27734
27735 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27736
27737 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
27738 errors.
27739 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
27740 errors. Call grub_error when needed.
27741
27742 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27743
27744 * commands/search.c (search_fs): Try searching without autoload first.
27745 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
27746 filesystem module explicitly for faster booting.
27747
27748 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27749
27750 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
27751
27752 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27753
27754 * util/grub.d/30_os-prober.in: Disable os-prober if
27755 `GRUB_DISABLE_OS_PROBER' was set to true.
27756
27757 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
27758
27759 * partmap/pc.c: Rename to ...
27760 * partmap/msdos.c: ... this. Update all users.
27761 (grub_pc_partition_map): Rename to ...
27762 (grub_msdos_partition_map): ... this. Update all users.
27763
27764 * parttool/pcpart.c: Rename to ...
27765 * parttool/msdospart.c: ... this. Update all users.
27766
27767 * include/grub/pc_partition.h: Rename to ...
27768 * include/grub/msdos_partition.h: ... this. Update all users.
27769 (grub_pc_partition_bsd_entry): Rename to ...
27770 (grub_msdos_partition_bsd_entry): ... this. Update all users.
27771 (grub_pc_partition_disk_label): Rename to ...
27772 (grub_msdos_partition_disk_label): ... this. Update all users.
27773 (grub_pc_partition_entry): Rename to ...
27774 (grub_msdos_partition_entry): ... this. Update all users.
27775 (grub_pc_partition_mbr): Rename to ...
27776 (grub_msdos_partition_mbr): ... this. Update all users.
27777 (grub_pc_partition): Rename to ...
27778 (grub_msdos_partition): ... this. Update all users.
27779 (grub_pc_partition_is_empty): Rename to ...
27780 (grub_msdos_partition_is_empty): ... this. Update all users.
27781 (grub_pc_partition_is_extended): Rename to ...
27782 (grub_msdos_partition_is_extended): ... this. Update all users.
27783 (grub_pc_partition_is_bsd): Rename to ...
27784 (grub_msdos_partition_is_bsd): ... this. Update all users.
27785
27786 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
27787 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
27788 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
27789 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
27790 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
27791 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
27792 (gpt_mod_LDFLAGS): Rename to ...
27793 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
27794 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
27795 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
27796 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
27797 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
27798 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
27799 (part_gpt_mod_LDFLAGS): ... this.
27800 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
27801 `pcpart.mod' to `msdospart.mod'.
27802 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
27803 to ...
27804 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
27805 (msdospart_mod_LDFLAGS): ... this.
27806
27807 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27808
27809 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
27810 (openbsd_opts): Likewise.
27811 (netbsd_opts): Likewise.
27812 (freebsd_flags): Added 0 terminator.
27813 (openbsd_flags): Likewise.
27814 (netbsd_flags): Likewise.
27815 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
27816 (grub_cmd_freebsd): Transformed into extended command.
27817 (grub_cmd_openbsd): Likewise.
27818 (grub_cmd_netbsd): Likewise.
27819 (cmd_freebsd): Changed type to grub_extcmd_t.
27820 (cmd_openbsd): Likewise.
27821 (cmd_netbsd): Likewise.
27822 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
27823 grub_cmd_openbsd as extended commands.
27824 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
27825 cmd_netbsd and cmd_openbsd
27826
27827 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
27828
27829 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
27830
27831 2009-08-21 Pavel Roskin <proski@gnu.org>
27832
27833 * Makefile.in (install-local): When checking if a file is in the
27834 build directory, use "test -e" to detect symlinks.
27835
27836 * Makefile.in (install-local): Remove all files in
27837 $(DESTDIR)$(pkglibdir) before installing new files there.
27838
27839 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27840
27841 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
27842 grub-mkelfimage.
27843
27844 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27845
27846 * util/grub-mkconfig.in: Don't use gfxterm by default if not
27847 explicitly specified by the user.
27848
27849 2009-08-18 Pavel Roskin <proski@gnu.org>
27850
27851 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
27852 grub_uint8_t pointer for data.
27853 * include/grub/fbutil.h (struct grub_video_fbblit_info):
27854 Likewise.
27855 * video/fb/fbutil.c: Remove unnecessary casts.
27856
27857 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27858
27859 VBE cleanup.
27860
27861 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
27862 (grub_vbe_set_video_mode): Save active mode info
27863 only after setting the mode.
27864 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
27865 second argument.
27866
27867 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27868
27869 Rename variables for clarity.
27870
27871 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
27872 (active_vbe_mode_info): ... this. All users updated.
27873 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
27874 All users updated.
27875 (initial_mode): Rename to ...
27876 (initial_vbe_mode): ... this. All users updated.
27877 (mode_in_use): Rename to ..
27878 (vbe_mode_in_use): ... this. All users updated.
27879 (mode_list): Rename to ..
27880 (vbe_mode_list): ... this. All users updated.
27881 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
27882 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
27883 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
27884 'mode_list_size' to 'vbe_mode_list_size'.
27885 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
27886 'best_mode_info' to 'best_vbe_mode_info' and
27887 'best_mode' to 'best_vbe_mode'
27888
27889 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27890
27891 Remove duplicate grub_video_fb_get_video_ptr.
27892
27893 * include/grub/fbutil.h (get_data_ptr): Rename to ...
27894 (grub_video_fb_get_video_ptr): ... this.
27895 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
27896 * video/fb/fbutil.c: Add comment about addressing.
27897 (get_data_ptr): Rename to ...
27898 (grub_video_fb_get_video_ptr): ... this. All users updated.
27899 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
27900
27901 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27902
27903 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
27904 grub_dprintf() that was just added.
27905
27906 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
27909 (DEFAULT_VIDEO_MODE): Remove macros.
27910 (grub_linux_boot): Remove assumption that Linux has FB support,
27911 and use "text" as default video mode.
27912
27913 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
27914
27915 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
27916 grub_dprintf.
27917 * fs/fat.c (grub_fat_read_data): Likewise.
27918
27919 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27920
27921 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
27922 payload.
27923 (grub_module): Likewise.
27924
27925 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27926
27927 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
27928 mbi->cmdline but free playground.
27929
27930 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27931
27932 Handle group offset on UFS1.
27933
27934 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
27935 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
27936
27937 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27938
27939 Split ufs.mod into ufs1.mod and ufs2.mod.
27940
27941 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
27942 (grub_fstest_SOURCES): Likewise.
27943 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
27944 (ufs_mod_SOURCES): Remove.
27945 (ufs_mod_CFLAGS): Likewise.
27946 (ufs_mod_LDFLAGS): Likewise.
27947 (ufs1_mod_SOURCES): New variable.
27948 (ufs1_mod_CFLAGS): Likewise.
27949 (ufs1_mod_LDFLAGS): Likewise.
27950 (ufs2_mod_SOURCES): New variable.
27951 (ufs2_mod_CFLAGS): Likewise.
27952 (ufs2_mod_LDFLAGS): Likewise.
27953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
27954 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27955 Likewise.
27956 (grub_emu_SOURCES): Likewise.
27957 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27958 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27959 (grub_setup_SOURCES): Likewise.
27960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27961 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
27962 (grub_setup_SOURCES): Likewise.
27963 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27964 Likewise.
27965 * fs/ufs2.c: New file.
27966 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
27967
27968 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27969
27970 Framebuffer split.
27971
27972 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
27973 subsystem at the end.
27974 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
27975 (video_fb_mod_SOURCES): New variable.
27976 (video_fb_mod_CFLAGS): Likewise.
27977 (video_fb_mod_LDFLAGS): Likewise.
27978 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
27979 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
27980 * video/i386/pc/vbeblit.c: Moved from here ...
27981 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
27982 * video/i386/pc/vbefill.c: Moved from here ...
27983 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
27984 * video/i386/pc/vbeutil.c: Moved from here ...
27985 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
27986 * include/grub/i386/pc/vbeblit.h: Moved from here ...
27987 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
27988 * include/grub/i386/pc/vbefill.h: Moved from here ...
27989 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
27990 * include/grub/i386/pc/vbeutil.h: Moved from here ...
27991 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
27992 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
27993 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
27994 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
27995 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
27996 (grub_video_adapter): Added 'get_info_and_fini'.
27997 (grub_video_get_info_and_fini): New prototype.
27998 (grub_video_set_mode): make modestring const char *.
27999 * loader/i386/linux.c (grub_linux_setup_video): Use
28000 grub_video_get_info_and_fini.
28001 (grub_linux_boot): Move modesetting just before booting.
28002 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28003 grub_video_get_info_and_fini.
28004 * video/i386/pc/vbe.c: Moved framebuffer part ...
28005 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28006 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28007 grub_video_fbstd_colors and grub_video_fb_set_palette.
28008 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28009 grub_video_fb_init.
28010 (grub_video_vbe_fini): Use grub_video_fb_fini.
28011 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28012 render_target and use grub_video_fb_set_active_render_target and
28013 grub_video_fb_set_palette.
28014 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28015 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28016 (grub_video_vbe_adapter): Use framebuffer.
28017 * video/video.c (grub_video_get_info_and_fini): New function.
28018 (grub_video_set_mode): Make modestring const char *.
28019 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28020 values are already initialised.
28021
28022 2009-08-14 Pavel Roskin <proski@gnu.org>
28023
28024 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28025 ABS and APPLE_CC.
28026 * boot/i386/pc/diskboot.S: Likewise.
28027 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28028 sectors allow compilation on MacOSX.
28029 * conf/i386-pc.rmk: Enable unconditional compilation of
28030 lnxboot.img.
28031
28032 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28033
28034 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28035 * util/grub.d/00_header.in: Enter interruptible sleep if
28036 GRUB_HIDDEN_TIMEOUT is set.
28037
28038 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28039
28040 * include/grub/symbol.h: Add the LOCAL macro.
28041 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28042 starting with "L_".
28043
28044 2009-08-13 Pavel Roskin <proski@gnu.org>
28045
28046 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28047 any modern compilers we support.
28048
28049 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28050 Use local labels starting with "L_" so that Apple assembler
28051 knows they are local.
28052
28053 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28054
28055 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28056 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28057 (bsd_kernel_types): ... this enum.
28058
28059 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28060 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28061 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28062
28063 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28064 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28065 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28066 messages.
28067
28068 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28069
28070 * util/grub-dumpdevtree: Moved from here ...
28071 * util/i386/efi/grub-dumpdevtree: ... to here.
28072 (hexify): New function. Converts a string to its hex version.
28073 Generate hex versions of "efi" and "device-properties" by calling
28074 hexify() on the ASCII strings rather than by hardcoding numbers.
28075
28076 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28077
28078 * fs/jfs.c: Update copyright year.
28079
28080 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28081
28082 * util/grub.d/00_header.in: Fix a comment.
28083 * util/grub.d/10_linux.in: Likewise.
28084 * util/grub.d/10_windows.in: Likewise.
28085 * util/grub.d/10_hurd.in: Likewise.
28086
28087 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28088
28089 * util/grub-mkconfig.in: Allow the user to specify the used font
28090 with GRUB_FONT.
28091
28092 2009-08-08 Pavel Roskin <proski@gnu.org>
28093
28094 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28095 available, xfs.mod needs it now.
28096
28097 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28098 the "g" modifier in sed when the intention is to strip something
28099 once. This fixes comparison of kernels with multiple dashes.
28100
28101 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28102 on it. Add missing space before closing bracket. Fix
28103 misleading formatting.
28104
28105 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28106
28107 * docs/grub.texi: Major overhaul. Remove all sections that are
28108 specific to GRUB Legacy, or mostly composed of Legacy-specific
28109 information.
28110
28111 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28112
28113 * docs/version.texi: New file. Provides version information for
28114 grub.texi.
28115
28116 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28117
28118 * docs/grub.texi: Update CVS information to SVN.
28119 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28120
28121 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28122
28123 * util/grub-mkconfig.in: Remove a wrong `fi'.
28124
28125 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28126
28127 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28128 (grub_jfs_uuid): New function.
28129 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28130
28131 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28132
28133 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28134 of it to ...
28135 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28136 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28137
28138 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28139
28140 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28141 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28142 Update all users.
28143
28144 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28145 not just "vmlinu[zx]".
28146 Moved from here ...
28147 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28148 all users.
28149
28150 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28151 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28152 all users.
28153
28154 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28155
28156 * util/grub.d/10_freebsd.in: Use an absolute device path for
28157 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28158
28159 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28160
28161 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28162 handling of multiple abstraction modules.
28163
28164 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28165
28166 Fix a bug resulting in black screen when loading Linux using a
28167 packed video mode.
28168
28169 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28170 function.
28171
28172 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28173 (grub_vbe_bios_getset_dac_palette_width): New function.
28174 (grub_vbe_bios_get_dac_palette_width)
28175 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28176 grub_vbe_bios_getset_dac_palette_width()).
28177
28178 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28179 check for return status.
28180 (grub_vbe_get_video_mode_info): When getting information for a packed
28181 mode (<= 8 bpp), obtain DAC palette width using
28182 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28183 {red,green,blue}_mark_size.
28184
28185 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28186
28187 * commands/search.c (options): Fix help output to match actual code.
28188
28189 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28190
28191 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28192 of homegrown code.
28193
28194 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28195
28196 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28197 on XFS or ReiserFS.
28198
28199 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28200
28201 Support Apple partition map with sector size different from 512 bytes.
28202
28203 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28204 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28205 and 'apart.partmap_size'.
28206
28207 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28208 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28209
28210 Fix cpuid command.
28211
28212 * commands/i386/cpuid.c (options): New variable.
28213 (grub_cmd_cpuid): Return real error.
28214 (GRUB_MOD_INIT(cpuid)): Declare options.
28215
28216 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28217
28218 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28219 valid.
28220
28221 2009-07-31 Bean <bean123ch@gmail.com>
28222
28223 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28224 log2_inode.
28225 (grub_fshelp_node): Move inode field to the end.
28226 (grub_xfs_data): Remove inode field.
28227 (grub_xfs_inode_block): Calculate inode size using sblock.
28228 (grub_xfs_inode_offset): Likewise.
28229 (grub_xfs_read_inode): Calculate inode size using sblock.
28230 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28231 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28232 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28233 to match inode size.
28234 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28235 not accessible when data is null.
28236 (grub_xfs_open): Likewise.
28237
28238 2009-07-31 Bean <bean123ch@gmail.com>
28239
28240 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28241 Don't change pv->disk if it's already set.
28242
28243 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28244 (grub_raid_register): ... here.
28245 (grub_raid_rescan): Removed.
28246
28247 * include/grub/raid.h (grub_raid_rescan): Removed.
28248
28249 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28250 (fstest): Replace grub_raid_rescan with module fini function followed
28251 by init function.
28252
28253 * util/grub-probe.c: Add include file <grub/raid.h>.
28254 (probe_raid_level): New function.
28255 (probe): Detect abstraction by walking the disk device, support two
28256 level of abstraction (LVM on RAID) when detecting partition map.
28257
28258 2009-07-31 Pavel Roskin <proski@gnu.org>
28259
28260 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28261 to grub_zalloc(), it was erroneous.
28262 Reported by Bean <bean123ch@gmail.com>
28263
28264 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28265
28266 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28267 embedding zone, not only the first one.
28268
28269 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28270
28271 * term/gfxterm.c (clear_char): New function.
28272 (grub_virtual_screen_setup): Use clear_char.
28273 (scroll_up): Likewise.
28274 (grub_virtual_screen_cls): Likewise.
28275
28276 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28277
28278 * util/deviceiter.c (get_acceleraid_disk_name): New static
28279 function.
28280 (grub_util_iterate_devices): Handle Accelraid devices.
28281 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28282
28283 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28284
28285 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28286 separator for the suggested gfxpayload string (';' collides with the
28287 parser and needs escaping).
28288
28289 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28290
28291 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28292 Clear direction flag before jumping to OS.
28293 (grub_multiboot2_real_boot): Likewise.
28294
28295 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28296
28297 * util/i386/pc/grub-install: Fix parsing of --disk-module
28298 option.
28299
28300 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28301
28302 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28303 when embedding.
28304
28305 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28306
28307 * util/grub-mkconfig.in (package_version): New variable.
28308 Use it do display the version.
28309
28310 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28311
28312 * kern/file.c (grub_file_open): Revert to previous check with
28313 grub_errno.
28314
28315 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28316
28317 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28318 from help line. It's out of sync with code.
28319
28320 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28321
28322 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28323 entries on failed boot.
28324
28325 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28326
28327 * kern/file.c (grub_file_open): Fix an error check.
28328
28329 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28330
28331 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28332 partition map couldn't be identified.
28333
28334 2009-07-23 Pavel Roskin <proski@gnu.org>
28335
28336 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28337 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28338 case of little endian words becomes just an optimization.
28339 Respect const modifier.
28340 (md5_final): Use code that doesn't depend on endianness.
28341
28342 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28343 to avoid loss of upper bits if align is unsigned and shorter
28344 than addr.
28345
28346 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28347
28348 UUID support for UFS
28349
28350 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28351 (grub_ufs_uuid): New function.
28352 (grub_ufs_fs): add .uuid
28353
28354 2009-07-21 Pavel Roskin <proski@gnu.org>
28355
28356 * kern/dl.c (grub_dl_check_header): Make static.
28357
28358 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28359
28360 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28361 add drivemap for Vista. It breaks Windows 7.
28362
28363 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28364
28365 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28366 128 bytes
28367
28368 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28369
28370 Add BFS support
28371
28372 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28373 (grub_fstest_SOURCES): Likewise.
28374 (pkglib_MODULES): Add befs.mod.
28375 (befs_mod_SOURCES): New variable.
28376 (befs_mod_CFLAGS): Likewise.
28377 (befs_mod_LDFLAGS): Likewise.
28378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28379 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28380 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28381 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28382 (grub_setup_SOURCES): Likewise.
28383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28384 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28385 (grub_setup_SOURCES): Likewise.
28386 * fs/befs.c: New file.
28387 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28388 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28389 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28390 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28391 (B_KEY_INDEX_ALIGN): New declaration.
28392 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28393 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28394 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28395 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28396 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28397 (grub_afs_mount) [MODE_BFS]: Likewise.
28398 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28399 (grub_afs_fs): Use GRUB_AFS_FSNAME
28400 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28401 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28402 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28403 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28404
28405 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28406
28407 * util/getroot.c (find_root_device): Add support for MacOSX.
28408 * util/hostdisk.c: Likewise.
28409
28410 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28411
28412 * font/font.c (find_glyph): Check whether a font is present to avoid
28413 segmentation fault.
28414
28415 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28416
28417 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28418
28419 2009-07-20 Pavel Roskin <proski@gnu.org>
28420
28421 * configure.ac: Trim excessively wordy excuses.
28422
28423 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28424
28425 Add symlink, mtime and label support to AtheFS.
28426
28427 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28428 (grub_afs_iterate_dir): Handle symlinks.
28429 (grub_afs_open): Use grub_afs_read_symlink.
28430 (grub_afs_dir): Likewise.
28431 Pass mtime.
28432 (grub_afs_label): New function.
28433 (grub_afs_fs): Add grub_afs_label.
28434 (grub_afs_read_symlink): New function.
28435
28436 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28437
28438 Fix AtheFS support.
28439
28440 * fs/afs.c: Fix comments style.
28441 (grub_afs_blockrun): Declare as packed.
28442 (grub_afs_datastream): Likewise.
28443 (grub_afs_bnode): Likewise.
28444 (grub_afs_btree): Likewise.
28445 (grub_afs_sblock): Likewise.
28446 Declare `name' as char.
28447 (grub_afs_inode): Declare as packed.
28448 Change void *vnode to grub_uint32_t unused.
28449 (grub_afs_iterate_dir): Check that key_size is positive.
28450 (grub_afs_mount): Don't read superblock twice.
28451 (grub_afs_dir): Don't free node in case of error,
28452 grub_fshelp_find_file already handles this.
28453 (grub_afs_open): Likewise.
28454
28455 2009-07-19 Pavel Roskin <proski@gnu.org>
28456
28457 * Makefile.in: Remove LIBLZO and enable_lzo.
28458 * conf/i386-pc.rmk: Remove lzo support.
28459 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28460 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28461 support.
28462 * kern/i386/pc/lzo1x.S: Remove.
28463 * kern/i386/pc/startup.S: Remove lzo support.
28464 * util/i386/pc/grub-mkimage.c: Likewise.
28465
28466 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28467
28468 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28469 * fs/xfs.c (grub_xfs_dir): Likewise.
28470 * fs/afs.c (grub_afs_dir): Likewise.
28471 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28472 (grub_iso9660_open): Likewise.
28473 * fs/jfs.c (grub_jfs_open): Likewise.
28474 * fs/ext2.c (grub_ext2_dir): Likewise.
28475 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28476 * script/sh/lexer.c (grub_script_yylex): Likewise.
28477
28478 2009-07-16 Pavel Roskin <proski@gnu.org>
28479
28480 * configure.ac: Never add "-c" to CFLAGS.
28481
28482 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28483
28484 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28485 grub_cv_cc_efiemu should be used.
28486
28487 * configure.ac: Typo fixes.
28488
28489 * kern/mm.c (grub_zalloc): New function.
28490 (grub_debug_zalloc): Likewise.
28491 * include/grub/mm.h: Declare grub_zalloc() and
28492 grub_debug_zalloc().
28493 * util/misc.c (grub_zalloc): New function.
28494 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28495 instead of grub_malloc(), remove unneeded initializations.
28496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28497 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28498 * commands/parttool.c (grub_cmd_parttool): Likewise.
28499 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28500 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28501 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28502 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28503 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28504 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28505 (grub_cmd_efiemu_pnvram): Likewise.
28506 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28507 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28508 (grub_iso9660_iterate_dir): Likewise.
28509 * fs/jfs.c (grub_jfs_opendir): Likewise.
28510 * fs/ntfs.c (list_file): Likewise.
28511 (grub_ntfs_mount): Likewise.
28512 * kern/disk.c (grub_disk_open): Likewise.
28513 * kern/dl.c (grub_dl_load_core): Likewise.
28514 * kern/elf.c (grub_elf_file): Likewise.
28515 * kern/env.c (grub_env_context_open): Likewise.
28516 (grub_env_set): Likewise.
28517 (grub_env_set_data_slot): Likewise.
28518 * kern/file.c (grub_file_open): Likewise.
28519 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28520 * loader/i386/multiboot.c (grub_module): Likewise.
28521 * loader/xnu.c (grub_xnu_create_key): Likewise.
28522 (grub_xnu_create_value): Likewise.
28523 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28524 (read_config_file): Likewise.
28525 * normal/menu_entry.c (make_screen): Likewise.
28526 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28527 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28528 * script/sh/script.c (grub_script_parse): Likewise.
28529 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28530 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28531 * video/readers/png.c (grub_png_output_byte): Likewise.
28532 (grub_video_reader_png): Likewise.
28533
28534 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28535
28536 Enable all targets that can be built by default
28537
28538 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28539 grub-mkfont and grub-fstest if they can be built
28540
28541 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28542
28543 Fix hang and segmentation fault in grub-emu-usb
28544
28545 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28546 * util/usb.c (grub_libusb_devices): likewise
28547 (grub_libusb_init): rename to ...
28548 (GRUB_MOD_INIT (libusb)):...this
28549 (grub_libusb_fini): rename to ..
28550 (GRUB_MOD_FINI (libusb)):...this
28551 * disk/usbms.c (grub_usbms_transfer): fix retry logic
28552 * include/grub/disk.h (grub_raid_init): removed, it's useless
28553 (grub_raid_fini): likewise
28554 (grub_lvm_init): likewise
28555 (grub_lvm_fini): likewise
28556 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
28557 by grub_init_all
28558
28559 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28560
28561 Fix libusb
28562
28563 * Makefile.in (LIBUSB): new macro
28564 * genmk.rb (Utility/print_tail): new method
28565 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
28566 (top level): call util.print_tail at the end.
28567
28568 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28569
28570 Make FreeBSD accept zpool.cache
28571
28572 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
28573 type is /boot/zfs/zpool.cache
28574
28575 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28576
28577 Fix 64-bit efiemu
28578
28579 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
28580 correct wrong typedef
28581 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
28582
28583 2009-07-15 Pavel Roskin <proski@gnu.org>
28584
28585 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
28586 * kern/disk.c (struct grub_disk_cache): Likewise.
28587
28588 * commands/probe.c (options): Typo fix.
28589
28590 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
28591 Increase to 0x5a to accommodate FAT32. Adjust other offsets
28592 accordingly.
28593 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
28594
28595 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
28596 the end of "Error" to make the message more readable.
28597
28598 * boot/i386/pc/boot.S (kernel_segment): Remove.
28599 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
28600 for destination.
28601
28602 * boot/i386/pc/boot.S (boot_version): Remove.
28603 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
28604 Remove.
28605
28606 * include/grub/i386/pc/boot.h: Sort all offsets.
28607 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
28608 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
28609 * boot/i386/pc/boot.S: Assert location of every offset listed in
28610 include/grub/i386/pc/boot.h.
28611
28612 2009-07-13 Pavel Roskin <proski@gnu.org>
28613
28614 * include/grub/i386/coreboot/machine.h: Rename
28615 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
28616 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
28617 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
28618
28619 * kern/dl.c: Force native word size to suppress warnings when
28620 compiling grub-emu.
28621
28622 * kern/device.c (grub_device_iterate): Change struct part_ent to
28623 hold the name, not a pointer to it. Use one grub_malloc() per
28624 partition, not two. Free partition_name if grub_malloc() fails.
28625 Set ents to NULL only before grub_partition_iterate() is called.
28626
28627 2009-07-11 Bean <bean123ch@gmail.com>
28628
28629 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
28630 childname.
28631
28632 2009-07-10 Bean <bean123ch@gmail.com>
28633 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
28634
28635 * kern/ieee1275/openfw.c (grub_children_iterate)
28636 (grub_devalias_iterate): Fix size evaluation for property or path
28637 strings, which was broken since r2132.
28638
28639 2009-07-07 Pavel Roskin <proski@gnu.org>
28640
28641 * commands/search.c (search_file): Merge into ...
28642 (search_fs): ... this. Accept search type as argument.
28643 (grub_cmd_search): Pass search type to search_fs().
28644
28645 * include/grub/util/console.h: New file.
28646 * util/console.c: Use it instead of grub/machine/console.h.
28647 * util/grub-emu.c: Likewise.
28648
28649 * lib/arg.c (find_long_option): Remove.
28650 (find_long): Add `len' argument, make `s' const char *.
28651 (grub_arg_parse): Parse long options in place, not in a
28652 temporary buffer.
28653
28654 2009-07-06 Pavel Roskin <proski@gnu.org>
28655
28656 * commands/search.c (search_fs): Fix potential NULL pointer
28657 dereference.
28658
28659 * commands/search.c (search_fs): Replace QUID macro with quid_fn
28660 function pointer.
28661
28662 2009-07-06 Daniel Mierswa <impulze@impulze.org>
28663
28664 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
28665 comparison.
28666
28667 2009-07-05 Pavel Roskin <proski@gnu.org>
28668
28669 * include/grub/i386/linux.h (struct linux_kernel_params):
28670 Restore padding3, it's still needed.
28671
28672 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
28673 FreeBSD.
28674 * util/osdetect.lua: Likewise.
28675
28676 2009-07-05 Bean <bean123ch@gmail.com>
28677
28678 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
28679
28680 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
28681 (grub_lua_getenv): Likewise.
28682 (grub_lua_setenv): Likewise.
28683 (save_errno): New function.
28684 (push_result): Likewise.
28685 (grub_lua_enum_device): Likewise.
28686 (grub_lua_enum_file): Likewise.
28687 (grub_lua_file_open): Likewise.
28688 (grub_lua_file_close): Likewise.
28689 (grub_lua_file_seek): Likewise.
28690 (grub_lua_file_read): Likewise.
28691 (grub_lua_file_getline): Likewise.
28692 (grub_lua_file_getsize): Likewise.
28693 (grub_lua_file_getpos): Likewise.
28694 (grub_lua_file_eof): Likewise.
28695 (grub_lua_file_exist): Likewise.
28696 (grub_lua_add_menu): Likewise.
28697
28698 * script/lua/grub_lua.h (isupper): New inline function.
28699 (islower): Likewise.
28700 (ispunct): Likewise.
28701 (isxdigit): Likewise.
28702 (strcspn): Change to normal function.
28703 (strpbkr): New function declaration.
28704 (memchr): Likewise.
28705
28706 * script/lua/grub_main.c (scan_str): New function.
28707 (strcspn): Likewise.
28708 (strpbrk): Likewise.
28709 (memchr): Likewise.
28710
28711 * script/lua/linit.c (lualibs): Enable the string library.
28712
28713 * util/osdetect.lua: New file.
28714
28715 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
28716
28717 * include/grub/i386/linux.h (struct linux_kernel_params): Add
28718 `capabilities' member.
28719
28720 2009-07-02 Pavel Roskin <proski@gnu.org>
28721
28722 * genparttoollist.sh: Add missing newline at the end.
28723
28724 2009-07-01 Pavel Roskin <proski@gnu.org>
28725
28726 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
28727
28728 * util/hostdisk.c (open_device): Remove `const' from
28729 `sysctl_size', as sysctlbyname() can change it (in this case it
28730 doesn't actually happen).
28731
28732 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
28733 using signed long int constants.
28734
28735 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
28736 constant to avoid a warning on FreeBSD.
28737
28738 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
28739 where it's needed.
28740
28741 * Makefile.in: Install include/grub/machine symlink.
28742
28743 * Makefile.in: When installing symlinks, use "cp -fR", which
28744 works on FreeBSD and MacOSX.
28745 From Yves Blusseau <cl7m42e02@sneakemail.com>
28746
28747 * kern/dl.c (grub_dl_resolve_symbol): Make static.
28748 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
28749
28750 * util/misc.c: Move grub_reboot() and grub_halt() ...
28751 * util/grub-emu.c: ... here. Make main_env static.
28752 * include/grub/util/misc.h: Remove main_env.
28753
28754 * kern/mm.c: Use correct format to print size_t.
28755
28756 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
28757 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
28758 * kern/powerpc/dl.c: Likewise.
28759 * kern/sparc64/dl.c: Likewise.
28760 * kern/x86_64/dl.c: Likewise.
28761
28762 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28763
28764 Fix grub-emu build on sparc64-ieee1275.
28765
28766 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
28767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
28768
28769 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28770
28771 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
28772 (grub_reboot, grub_halt): New functions.
28773
28774 * util/i386/pc/misc.c: Delete. Update all users.
28775 * util/sparc64/ieee1275/misc.c: Likewise.
28776 * util/powerpc/ieee1275/misc.c: Likewise.
28777
28778 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28779
28780 * conf/i386.rmk (setjmp_mod_SOURCES)
28781 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
28782 * conf/common.rmk (setjmp_mod_SOURCES)
28783 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
28784 to use $(target_cpu).
28785 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
28786 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
28787 * conf/powerpc-ieee1275.rmk: Likewise.
28788 * conf/sparc64-ieee1275.rmk: Likewise.
28789
28790 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
28791 $(target_cpu) for kern/$(target_cpu)/dl.c.
28792 * conf/i386-efi.rmk: Likewise.
28793 * conf/i386-ieee1275.rmk: Likewise.
28794 * conf/x86_64-efi.rmk: Likewise.
28795 * conf/i386-coreboot.rmk: Likewise.
28796 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
28797 $(target_cpu) for kern/$(target_cpu)/dl.c and for
28798 kern/$(target_cpu)/cache.S.
28799 * conf/sparc64-ieee1275.rmk: Likewise.
28800
28801 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28802
28803 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
28804 type to `grub_uint8_t', and adjust `padding9' accordingly.
28805
28806 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28807
28808 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
28809
28810 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
28811 assembly in final jump, using register constraints.
28812
28813 (grub_linux_boot): For text mode, initialize `have_vga' using
28814 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
28815
28816 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
28817 right before the final jump.
28818
28819 Set `video_mode' to 0x3.
28820
28821 Document initialization of `video_page', `video_mode' and
28822 `video_ega_bx'.
28823
28824 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28825
28826 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
28827 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
28828 and set GRUB_LINUX_FLAG_QUIET appropriately.
28829
28830 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28831
28832 Fix build on Debian / sparc.
28833
28834 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
28835
28836 2009-06-28 Pavel Roskin <proski@gnu.org>
28837
28838 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
28839 fix a warning.
28840
28841 * util/grub.d/10_linux.in: Match SUSE style initrd names.
28842
28843 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28844
28845 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
28846 `err'.
28847
28848 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28849
28850 Revert r2338.
28851
28852 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
28853 file can't be opened. grub_file_open() is already supposed to set
28854 grub_errno / grub_errmsg appropriately.
28855 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28856
28857 2009-06-27 Pavel Roskin <proski@gnu.org>
28858 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28859
28860 * include/grub/dl.h: Include grub/elf.h.
28861 (struct grub_dl): Add symtab field.
28862 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
28863 GRUB_MODULES_MACHINE_READONLY.
28864 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
28865 of the header for read-only modules.
28866 (grub_dl_unload): Free mod->symtab for read-only modules.
28867 * kern/i386/dl.c: Use mod->symtab.
28868 * kern/powerpc/dl.c: Likewise.
28869 * kern/sparc64/dl.c: Likewise.
28870 * kern/x86_64/dl.c: Likewise.
28871
28872 * conf/i386-qemu.rmk: New file.
28873 * kern/i386/qemu/startup.S: Likewise.
28874 * kern/i386/qemu/mmap.c: Likewise.
28875 * boot/i386/qemu/boot.S: Likewise.
28876 * include/grub/i386/qemu/time.h: Likewise.
28877 * include/grub/i386/qemu/serial.h: Likewise.
28878 * include/grub/i386/qemu/kernel.h: Likewise.
28879 * include/grub/i386/qemu/console.h: Likewise.
28880 * include/grub/i386/qemu/boot.h: Likewise.
28881 * include/grub/i386/qemu/init.h: Likewise.
28882 * include/grub/i386/qemu/machine.h: Likewise.
28883 * include/grub/i386/qemu/loader.h: Likewise.
28884 * include/grub/i386/qemu/memory.h: Likewise.
28885
28886 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
28887 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
28888 [qemu] (pkglib_IMAGES): Add `boot.img'.
28889 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
28890 [qemu] (boot_img_FORMAT): New variables.
28891 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
28892 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
28893 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
28894 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28895 [qemu] (kernel_img_FORMAT): New variables.
28896
28897 * configure.ac: Recognise `i386-qemu'.
28898
28899 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
28900 (for no compression).
28901 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
28902 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
28903 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
28904 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
28905 ifdefs).
28906
28907 2009-06-27 Pavel Roskin <proski@gnu.org>
28908
28909 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
28910 read.
28911 * efiemu/prepare32.c: Likewise.
28912 * efiemu/prepare64.c: Likewise.
28913
28914 2009-06-26 Pavel Roskin <proski@gnu.org>
28915
28916 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
28917 * include/grub/elf.h: Define symbols without "32" or "64" based
28918 on GRUB_TARGET_WORDSIZE.
28919 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
28920 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
28921 ELF definitions.
28922 * efiemu/loadcore64.c: Likewise.
28923 * loader/i386/bsd32.c: Likewise.
28924 * loader/i386/bsd64.c: Likewise.
28925 * kern/dl.c: Remove own ELF definitions.
28926 * util/i386/efi/grub-mkimage.c: Likewise.
28927
28928 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
28929
28930 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
28931 segment 0x0 unconditionally, because the reference generated by
28932 GAS is an absolute address.
28933
28934 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28935
28936 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
28937 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
28938
28939 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28940
28941 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
28942 indexes. Check for -f explicitly.
28943 (search_file): Improve error message.
28944 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
28945
28946 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28947
28948 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
28949 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
28950
28951 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28952
28953 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
28954 * conf/i386-ieee1275.rmk: Likewise.
28955 * conf/i386-coreboot.rmk: Likewise.
28956
28957 * kern/i386/pc/startup.S (grub_stop): Remove function.
28958 * kern/i386/ieee1275/startup.S: Likewise.
28959 * kern/i386/coreboot/startup.S: Likewise.
28960 * kern/i386/misc.S (grub_stop): New function.
28961
28962 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28963
28964 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
28965 * kern/i386/realmode.S (real_to_prot): ... to here.
28966
28967 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28968
28969 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
28970 with `kernel.img'.
28971 (kernel_elf_SOURCES): Rename to ...
28972 (kernel_img_SOURCES): ... this.
28973 (kernel_elf_HEADERS): Rename to ...
28974 (kernel_img_HEADERS): ... this. Update all users.
28975 (kernel_elf_ASFLAGS): Rename to ...
28976 (kernel_img_ASFLAGS): ... this.
28977 (kernel_elf_CFLAGS): Rename to ...
28978 (kernel_img_CFLAGS): ... this.
28979 (kernel_elf_LDFLAGS): Rename to ...
28980 (kernel_img_LDFLAGS): ... this.
28981 * conf/i386-coreboot.rmk: Likewise.
28982 * conf/powerpc-ieee1275.rmk: Likewise.
28983
28984 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
28985 with "kernel.img".
28986
28987 2009-06-21 Pavel Roskin <proski@gnu.org>
28988
28989 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
28990 to match nested functions.
28991 * loader/sparc64/ieee1275/linux.c: Likewise.
28992
28993 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
28994
28995 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28996
28997 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
28998 all i386 platforms.
28999
29000 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29001
29002 Fix asm file handling on ELF, and remove workarounds.
29003
29004 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29005 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29006 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29007 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29008
29009 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29010
29011 Load BSD ELF modules
29012
29013 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29014 and loader/i386/bsd64.c
29015 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29016 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29017 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29018 (grub_freebsd_load_elfmodule32): New declaration
29019 (grub_freebsd_load_elfmoduleobj64): Likewise
29020 (grub_freebsd_load_elf_meta32): Likewise
29021 (grub_freebsd_load_elf_meta64): Likewise
29022 (grub_freebsd_add_meta): Likewise
29023 (grub_freebsd_add_meta_module): Likewise
29024 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29025 (grub_freebsd_add_meta_module): Likewise and move module-specific
29026 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29027 (grub_cmd_freebsd): Add elf-kernel specific parts
29028 based on grub_freebsd_add_meta_module
29029 (grub_cmd_freebsd_module): Add type parsing moved from
29030 grub_freebsd_add_meta_module
29031 (grub_cmd_freebsd_module_elf): New function
29032 (cmd_freebsd_module_elf): New variable
29033 (GRUB_MOD_INIT): Register freebsd_module_elf
29034 * loader/i386/bsd32.c: New file
29035 * loader/i386/bsd64.c: Likewise
29036 * loader/i386/bsdXX.c: Likewise
29037 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29038 (grub_elf64_load): Likewise
29039 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29040 All users updated
29041 (grub_elf64_load_hook_t): Likewise
29042
29043 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29044
29045 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29046 variable.
29047 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29048 don't write a menu entry for recovery mode.
29049
29050 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29051
29052 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29053 after it's no longer needed.
29054
29055 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29056
29057 * include/grub/i386/loader.h (grub_linux_prot_size)
29058 (grub_linux_tmp_addr, grub_linux_real_addr)
29059 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29060 GRUB_MACHINE_PCBIOS.
29061 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29062 common grub_util_info() call to ...
29063 (generate_image): ... here.
29064 Fix use of uninitialized memory, comparison of signed with
29065 unsigned integers and memory leak.
29066 Remove bogus module address message.
29067
29068 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29069
29070 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29071 grub_raid_register
29072 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29073
29074 2009-06-19 Pavel Roskin <proski@gnu.org>
29075
29076 * configure.ac: Remove stray AC_MSG_CHECKING.
29077
29078 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29079
29080 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29081
29082 2009-06-18 Pavel Roskin <proski@gnu.org>
29083
29084 * conf/common.rmk: Add fs_file.mod.
29085 * disk/fs_file.c: New file.
29086 * include/grub/disk.h (enum grub_disk_dev_id): Add
29087 GRUB_DISK_DEVICE_FILE_ID.
29088
29089 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29090
29091 Fix build with Apple's toolchain. Part 2
29092
29093 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29094 a fake start
29095
29096 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29097
29098 Fix build with Apple's toolchain. Part 1
29099
29100 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29101 for long calls
29102 * configure.ac: remove a leftover AC_MSG_RESULT
29103 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29104 Apple's toolchain
29105
29106 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29107
29108 Fix warnings
29109
29110 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29111 (decomp_block): initialize ch
29112 use grub_memcpy instead of memcpy
29113
29114 2009-06-17 Pavel Roskin <proski@gnu.org>
29115
29116 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29117 version, use declarations needed to use vga_text as the startup
29118 console.
29119
29120 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29121 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29122 the kernel.
29123 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29124 and grub_at_keyboard_fini(), it's done on module load and
29125 unload.
29126
29127 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29128
29129 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29130 file can't be found.
29131 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29132
29133 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29134
29135 Fix newline handling
29136
29137 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29138 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29139 (grub_script_yylex): don't segfault on unterminated script
29140 newline terminates command and variable
29141
29142 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29143
29144 avoid double grub_adjust_range call. Bug reported by David Simner
29145
29146 * kern/disk.c (grub_disk_write): change to raw disk access before
29147 calling disk_read
29148
29149 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29150
29151 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29152 spaces, for the benefit of help2man.
29153 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29154
29155 2009-06-16 Pavel Roskin <proski@gnu.org>
29156
29157 * kern/i386/halt.c: Include grub/machine/init.h.
29158 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29159
29160 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29161
29162 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29163 drivemap menuentry.
29164
29165 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29166
29167 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29168 `echo' command.
29169
29170 2009-06-16 Pavel Roskin <proski@gnu.org>
29171
29172 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29173 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29174 save %dx, we only need %dl and we never change it.
29175 * boot/i386/pc/cdboot.S: Don't set the root drive.
29176 * boot/i386/pc/pxeboot.S: Likewise.
29177 * include/grub/i386/pc/boot.h: Remove
29178 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29179 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29180 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29181 * kern/i386/pc/init.c (make_install_device): Remove references
29182 to grub_root_drive.
29183 * kern/i386/pc/startup.S: Likewise.
29184 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29185
29186 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29187
29188 xnu_uuid command
29189
29190 * commands/xnu_uuid.c: new file
29191 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29192 (xnu_uuid_mod_SOURCES): new variable
29193 (xnu_uuid_mod_CFLAGS): likewise
29194 (xnu_uuid_mod_LDFLAGS): likewise
29195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29196 * conf/i386-ieee1275.rmk: likewise
29197 * conf/i386-pc.rmk: likewise
29198 * conf/powerpc-ieee1275.rmk: likewise
29199 * conf/sparc64-ieee1275.rmk: likewise
29200 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29201
29202 2009-06-16 Pavel Roskin <proski@gnu.org>
29203
29204 * configure.ac: Avoid '==' in test command, it's not portable.
29205
29206 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29207
29208 Probe command
29209
29210 * commands/probe.c: new file
29211 * conf/common.rmk (pkglib_MODULES): add probe.mod
29212 (probe_mod_SOURCES): new variable
29213 (probe_mod_CFLAGS): likewise
29214 (probe_mod_LDFLAGS): likewise
29215 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29216 * conf/i386-ieee1275.rmk: likewise
29217 * conf/i386-pc.rmk: likewise
29218 * conf/powerpc-ieee1275.rmk: likewise
29219 * conf/sparc64-ieee1275.rmk: likewise
29220
29221 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29222
29223 Fix handling of string like \"hello\" and "a
29224 b"
29225
29226 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29227 (grub_script_yylex): fix parsing of quoting, escaping and newline
29228
29229 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29230
29231 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29232 handling
29233
29234 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29235
29236 * util/grub-mkconfig.in: Fix parsing of --output option.
29237
29238 2009-06-12 Pavel Roskin <proski@gnu.org>
29239
29240 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29241 genmk.rb don't need to be generated or installed.
29242
29243 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29244
29245 * commands/i386/pc/drivemap_int13h.S: add more comments
29246
29247 2009-06-11 Pavel Roskin <proski@gnu.org>
29248
29249 * Makefile.in (uninstall): Uninstall manuals.
29250
29251 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29252 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29253 and update-grub_lib in two places.
29254 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29255
29256 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29257 a compiler warning.
29258
29259 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29260 `entry_lo' to fix variable shadowing.
29261
29262 2009-06-11 Christian Franke <franke@computer.org>
29263
29264 * kern/misc.c (__enable_execute_stack): Add missing return type
29265 to prevent gcc warning.
29266
29267 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29268
29269 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29270
29271 2009-06-11 Pavel Roskin <proski@gnu.org>
29272
29273 * Makefile.in: Don't rely on any scripts being executable.
29274 Always use $(SHELL) to run shell scripts.
29275
29276 * configure.ac: Always define ___main if using -nostdlib. This
29277 fixes tests on Cygwin.
29278
29279 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29280
29281 UDF fix
29282
29283 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29284 is in bytes and not in blocks
29285
29286 2009-06-11 Pavel Roskin <proski@gnu.org>
29287
29288 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29289 warning.
29290
29291 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29292
29293 * util/grub.d/30_os-prober.in: Fix a comment. Source
29294 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29295 to set the root device. Place drivemap command in the generated
29296 chain entry.
29297
29298 2009-06-11 Pavel Roskin <proski@gnu.org>
29299
29300 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29301 have long been resolved.
29302
29303 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29304
29305 * util/grub.d/10_linux.in: Capitalise "Linux".
29306
29307 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29308
29309 2009-06-11 Pavel Roskin <proski@gnu.org>
29310
29311 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29312 fix a gcc warning and ensure that the function won't ever exit.
29313
29314 * kern/i386/ieee1275/init.c: Add missing prototype for
29315 grub_stop_floppy().
29316
29317 * loader/ieee1275/multiboot2.c [__i386__]: Include
29318 grub/cpu/multiboot.h.
29319
29320 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29321 casts to short - they are not portable and cause warnings. Fix
29322 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29323
29324 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 Drivemap fixes
29327
29328 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29329 new function
29330 (grub_get_root_biosnumber_saved): new variable
29331 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29332 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29333 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29334 %dx after the call if necessary
29335 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29336 (boot_mod_SOURCES): remove
29337 (boot_mod_CFLAGS): remove
29338 (boot_mod_LDFLAGS): remove
29339 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29340 (boot_mod_SOURCES): new variable
29341 (boot_mod_CFLAGS): likewise
29342 (boot_mod_LDFLAGS): likewise
29343 * conf/i386-efi.rmk: likewise
29344 * conf/i386-ieee1275.rmk: likewise
29345 * conf/i386-pc.rmk: likewise
29346 * conf/powerpc-ieee1275.rmk: likewise
29347 * conf/sparc64-ieee1275.rmk: likewise
29348 * conf/x86_64-efi.rmk: likewise
29349 * include/grub/i386/pc/biosnum.h: new file
29350 * lib/i386/pc/biosnum.c: likewise
29351 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29352 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29353 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29354
29355 2009-06-10 Pavel Roskin <proski@gnu.org>
29356
29357 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29358 Use separate variables. Read only the file size at the end, but
29359 not the checksum that we don't use.
29360
29361 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29362 Adjust all callers.
29363
29364 * kern/ieee1275/openfw.c: Remove libc includes.
29365 * kern/ieee1275/cmain.c: Likewise.
29366 * include/grub/ieee1275/ieee1275.h: Likewise.
29367
29368 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29369 compiler warnings.
29370
29371 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29372
29373 * Makefile.in: Remove all trailing whitespace.
29374 * conf/i386-pc.rmk: Likewise.
29375 * conf/powerpc-ieee1275.rmk: Likewise.
29376 * conf/sparc64-ieee1275.rmk: Likewise.
29377 * docs/grub.texi: Likewise.
29378 * docs/texinfo.tex: Likewise.
29379 * disk/fs_uuid.c: Likewise.
29380 * disk/lvm.c: Likewise.
29381 * disk/scsi.c: Likewise.
29382 * disk/ata.c: Likewise.
29383 * disk/ieee1275/ofdisk.c: Likewise.
29384 * disk/i386/pc/biosdisk.c: Likewise.
29385 * disk/host.c: Likewise.
29386 * disk/raid.c: Likewise.
29387 * disk/efi/efidisk.c: Likewise.
29388 * disk/usbms.c: Likewise.
29389 * disk/memdisk.c: Likewise.
29390 * disk/loopback.c: Likewise.
29391 * kern/powerpc/dl.c: Likewise.
29392 * kern/device.c: Likewise.
29393 * kern/dl.c: Likewise.
29394 * kern/sparc64/dl.c: Likewise.
29395 * kern/ieee1275/ieee1275.c: Likewise.
29396 * kern/term.c: Likewise.
29397 * kern/fs.c: Likewise.
29398 * kern/i386/dl.c: Likewise.
29399 * kern/i386/pc/startup.S: Likewise.
29400 * kern/i386/pc/init.c: Likewise.
29401 * kern/i386/pc/mmap.c: Likewise.
29402 * kern/i386/pc/lzo1x.S: Likewise.
29403 * kern/i386/ieee1275/init.c: Likewise.
29404 * kern/i386/realmode.S: Likewise.
29405 * kern/i386/tsc.c: Likewise.
29406 * kern/partition.c: Likewise.
29407 * kern/corecmd.c: Likewise.
29408 * kern/file.c: Likewise.
29409 * kern/efi/efi.c: Likewise.
29410 * kern/efi/init.c: Likewise.
29411 * kern/efi/mm.c: Likewise.
29412 * kern/main.c: Likewise.
29413 * kern/err.c: Likewise.
29414 * kern/env.c: Likewise.
29415 * kern/disk.c: Likewise.
29416 * kern/generic/millisleep.c: Likewise.
29417 * kern/generic/rtc_get_time_ms.c: Likewise.
29418 * kern/misc.c: Likewise.
29419 * kern/parser.c: Likewise.
29420 * genmk.rb: Likewise.
29421 * configure.ac: Likewise.
29422 * boot/i386/pc/diskboot.S: Likewise.
29423 * boot/i386/pc/pxeboot.S: Likewise.
29424 * boot/i386/pc/boot.S: Likewise.
29425 * boot/i386/pc/lnxboot.S: Likewise.
29426 * boot/i386/pc/cdboot.S: Likewise.
29427 * parttool/pcpart.c: Likewise.
29428 * video/readers/tga.c: Likewise.
29429 * video/video.c: Likewise.
29430 * video/bitmap.c: Likewise.
29431 * lib/envblk.c: Likewise.
29432 * lib/i386/setjmp.S: Likewise.
29433 * fs/xfs.c: Likewise.
29434 * fs/afs.c: Likewise.
29435 * fs/fat.c: Likewise.
29436 * fs/ntfs.c: Likewise.
29437 * fs/udf.c: Likewise.
29438 * fs/affs.c: Likewise.
29439 * fs/iso9660.c: Likewise.
29440 * fs/hfs.c: Likewise.
29441 * fs/fshelp.c: Likewise.
29442 * fs/ext2.c: Likewise.
29443 * fs/jfs.c: Likewise.
29444 * fs/reiserfs.c: Likewise.
29445 * fs/hfsplus.c: Likewise.
29446 * fs/minix.c: Likewise.
29447 * fs/cpio.c: Likewise.
29448 * fs/sfs.c: Likewise.
29449 * fs/ufs.c: Likewise.
29450 * efiemu/prepare.c: Likewise.
29451 * efiemu/loadcore_common.c: Likewise.
29452 * efiemu/runtime/efiemu.sh: Likewise.
29453 * efiemu/runtime/efiemu.S: Likewise.
29454 * efiemu/runtime/efiemu.c: Likewise.
29455 * efiemu/pnvram.c: Likewise.
29456 * efiemu/main.c: Likewise.
29457 * efiemu/i386/pc/cfgtables.c: Likewise.
29458 * efiemu/i386/loadcore64.c: Likewise.
29459 * efiemu/i386/loadcore32.c: Likewise.
29460 * efiemu/loadcore.c: Likewise.
29461 * efiemu/symbols.c: Likewise.
29462 * efiemu/mm.c: Likewise.
29463 * include/grub/autoefi.h: Likewise.
29464 * include/grub/datetime.h: Likewise.
29465 * include/grub/term.h: Likewise.
29466 * include/grub/hfs.h: Likewise.
29467 * include/grub/lvm.h: Likewise.
29468 * include/grub/i386/tsc.h: Likewise.
29469 * include/grub/i386/linux.h: Likewise.
29470 * include/grub/i386/xnu.h: Likewise.
29471 * include/grub/i386/efiemu.h: Likewise.
29472 * include/grub/i386/pc/biosdisk.h: Likewise.
29473 * include/grub/i386/pc/memory.h: Likewise.
29474 * include/grub/i386/pc/vbe.h: Likewise.
29475 * include/grub/parttool.h: Likewise.
29476 * include/grub/video.h: Likewise.
29477 * include/grub/memory.h: Likewise.
29478 * include/grub/fs.h: Likewise.
29479 * include/grub/partition.h: Likewise.
29480 * include/grub/xnu.h: Likewise.
29481 * include/grub/efi/api.h: Likewise.
29482 * include/grub/efi/pe32.h: Likewise.
29483 * include/grub/efi/memory.h: Likewise.
29484 * include/grub/multiboot.h: Likewise.
29485 * include/grub/usbdesc.h: Likewise.
29486 * include/grub/multiboot2.h: Likewise.
29487 * include/grub/acpi.h: Likewise.
29488 * include/grub/efiemu/efiemu.h: Likewise.
29489 * include/grub/disk.h: Likewise.
29490 * include/grub/ieee1275/ieee1275.h: Likewise.
29491 * include/grub/net.h: Likewise.
29492 * include/grub/machoload.h: Likewise.
29493 * include/grub/macho.h: Likewise.
29494 * include/multiboot.h: Likewise.
29495 * genmoddep.awk: Likewise.
29496 * normal/main.c: Likewise.
29497 * normal/menu_entry.c: Likewise.
29498 * normal/menu_viewer.c: Likewise.
29499 * normal/completion.c: Likewise.
29500 * normal/cmdline.c: Likewise.
29501 * normal/misc.c: Likewise.
29502 * normal/datetime.c: Likewise.
29503 * bus/usb/usbtrans.c: Likewise.
29504 * bus/usb/ohci.c: Likewise.
29505 * bus/usb/uhci.c: Likewise.
29506 * bus/usb/usb.c: Likewise.
29507 * mmap/efi/mmap.c: Likewise.
29508 * mmap/i386/pc/mmap_helper.S: Likewise.
29509 * mmap/i386/pc/mmap.c: Likewise.
29510 * mmap/i386/mmap.c: Likewise.
29511 * mmap/i386/uppermem.c: Likewise.
29512 * mmap/mmap.c: Likewise.
29513 * commands/acpi.c: Likewise.
29514 * commands/echo.c: Likewise.
29515 * commands/blocklist.c: Likewise.
29516 * commands/loadenv.c: Likewise.
29517 * commands/usbtest.c: Likewise.
29518 * commands/boot.c: Likewise.
29519 * commands/parttool.c: Likewise.
29520 * commands/search.c: Likewise.
29521 * commands/cat.c: Likewise.
29522 * commands/i386/pc/play.c: Likewise.
29523 * commands/i386/pc/drivemap.c: Likewise.
29524 * commands/i386/pc/vbeinfo.c: Likewise.
29525 * commands/i386/pc/acpi.c: Likewise.
29526 * commands/i386/pc/vbetest.c: Likewise.
29527 * commands/ls.c: Likewise.
29528 * commands/cmp.c: Likewise.
29529 * commands/test.c: Likewise.
29530 * commands/efi/acpi.c: Likewise.
29531 * commands/gptsync.c: Likewise.
29532 * commands/help.c: Likewise.
29533 * partmap/amiga.c: Likewise.
29534 * partmap/apple.c: Likewise.
29535 * partmap/acorn.c: Likewise.
29536 * partmap/pc.c: Likewise.
29537 * partmap/sun.c: Likewise.
29538 * partmap/gpt.c: Likewise.
29539 * script/sh/lexer.c: Likewise.
29540 * script/sh/function.c: Likewise.
29541 * font/font.c: Likewise.
29542 * font/font_cmd.c: Likewise.
29543 * loader/powerpc/ieee1275/linux.c: Likewise.
29544 * loader/efi/chainloader.c: Likewise.
29545 * loader/multiboot_loader.c: Likewise.
29546 * loader/macho.c: Likewise.
29547 * loader/i386/multiboot.c: Likewise.
29548 * loader/i386/linux.c: Likewise.
29549 * loader/i386/pc/linux.c: Likewise.
29550 * loader/i386/pc/multiboot2.c: Likewise.
29551 * loader/i386/pc/chainloader.c: Likewise.
29552 * loader/i386/pc/xnu.c: Likewise.
29553 * loader/i386/bsd_trampoline.S: Likewise.
29554 * loader/i386/efi/linux.c: Likewise.
29555 * loader/i386/multiboot_elfxx.c: Likewise.
29556 * loader/i386/bsd_helper.S: Likewise.
29557 * loader/i386/bsd.c: Likewise.
29558 * loader/i386/linux_trampoline.S: Likewise.
29559 * loader/i386/xnu_helper.S: Likewise.
29560 * loader/i386/xnu.c: Likewise.
29561 * loader/i386/bsd_pagetable.c: Likewise.
29562 * loader/i386/multiboot_helper.S: Likewise.
29563 * loader/xnu.c: Likewise.
29564 * loader/xnu_resume.c: Likewise.
29565 * io/gzio.c: Likewise.
29566 * term/efi/console.c: Likewise.
29567 * term/terminfo.c: Likewise.
29568 * term/ieee1275/ofconsole.c: Likewise.
29569 * term/i386/pc/serial.c: Likewise.
29570 * term/i386/pc/vesafb.c: Likewise.
29571 * term/i386/pc/vga.c: Likewise.
29572 * term/usb_keyboard.c: Likewise.
29573 * term/gfxterm.c: Likewise.
29574 * aclocal.m4: Likewise.
29575 * util/lvm.c: Likewise.
29576 * util/grub.d/30_os-prober.in: Likewise.
29577 * util/grub.d/10_hurd.in: Likewise.
29578 * util/console.c: Likewise.
29579 * util/grub-macho2img.c: Likewise.
29580 * util/grub-probe.c: Likewise.
29581 * util/hostfs.c: Likewise.
29582 * util/i386/pc/grub-mkimage.c: Likewise.
29583 * util/i386/pc/grub-setup.c: Likewise.
29584 * util/i386/efi/grub-mkimage.c: Likewise.
29585 * util/grub-mkconfig.in: Likewise.
29586 * util/raid.c: Likewise.
29587 * util/resolve.c: Likewise.
29588 * util/grub-mkdevicemap.c: Likewise.
29589 * util/grub-emu.c: Likewise.
29590 * util/getroot.c: Likewise.
29591 * util/hostdisk.c: Likewise.
29592 * util/usb.c: Likewise.
29593 * util/grub-editenv.c: Likewise.
29594 * util/misc.c: Likewise.
29595
29596 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29597
29598 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
29599 `genparttoollist.sh'.
29600 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
29601 Add `*.sh' to the list find searches for and change `mdate.sh'
29602 to `mdate-sh'.
29603
29604 2009-06-10 Pavel Roskin <proski@gnu.org>
29605
29606 * include/grub/multiboot2.h: Provide compatibility defines for
29607 multiboot2.h.
29608 * include/multiboot2.h: Include stdint.h only if needed, using
29609 angle brackets.
29610 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
29611 grub/multiboot2.h.
29612 * loader/ieee1275/multiboot2.c: Likewise.
29613 * loader/multiboot2.c: Likewise.
29614 * loader/multiboot_loader.c: Likewise.
29615
29616 * configure.ac: Use -nostdlib when probing for the target. It
29617 should not be required to have libc for the target.
29618
29619 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
29620 they fail without libc headers for the target.
29621 * include/grub/powerpc/libgcc.h: Use weak attribute for all
29622 exports.
29623 * include/grub/sparc64/libgcc.h: Likewise. Don't use
29624 preprocessor conditionals.
29625
29626 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
29627 build system doesn't need to be aware of the tar.c internals.
29628
29629 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
29630
29631 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
29632
29633 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
29634
29635 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
29636 disk limit to 26 for IDE, Virtio, Xen and SCSI.
29637
29638 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
29639
29640 * util/i386/pc/grub-install.in: Change the error message if UUIDs
29641 aren't available if ata.mod gets used.
29642
29643 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
29644
29645 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
29646 initialising controller.
29647 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29648
29649 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29650
29651 * util/i386/pc/grub-install.in: Add a parameter --disk-module
29652 to choose between ata and biosdisk module on i386-pc.
29653
29654 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
29655
29656 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
29657 Subclass and Programming Interface fields in terms of the 3 byte
29658 Class Code register.
29659 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29660
29661 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
29662 interface is OHCI. Add grub_dprintf for symmetry with
29663 bus/usb/uhci.c.
29664 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
29665 interface is UHCI. Add interf variable for programming
29666 interface. Print interface with class/subclass.
29667
29668 * bus/usb/ohci.c: Set interf with correct field.
29669
29670 * bus/usb/uhci.c: Remove unneeded doubled lines.
29671 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
29672 Remove whitespace inside comment.
29673
29674 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
29675
29676 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
29677 as fallback an equivalent option without depth.
29678
29679 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29680
29681 Not fail if unable to retrieve C/H/S on LBA disks
29682
29683 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
29684 if unable to retrieve C/H/S on LBA disks
29685
29686 2009-06-08 Pavel Roskin <proski@gnu.org>
29687
29688 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
29689 about aliasing.
29690
29691 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29692
29693 * Makefile.in (uninstall): Remove all $lib_DATA files.
29694
29695 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29696
29697 Bugfix: install on partitionless device
29698
29699 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
29700 is a whole disk
29701
29702 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29703
29704 * Makefile.in (uninstall): Remove all $include_DATA files.
29705
29706 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29707
29708 * commands/true.c: New file. Implement the true and false commands.
29709 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
29710 (true_mod_SOURCES): New variable.
29711 (true_mod_CFLAGS): Likewise.
29712 (true_mod_LDFLAGS): Likewise.
29713
29714 2009-06-05 Colin D Bennett <colin@gibibit.com>
29715
29716 Optimized font character lookup using binary search instead of linear
29717 search. Fonts now are required to have the character index ordered by
29718 code point.
29719
29720 * font/font.c (load_font_index): Verify that fonts have ordered
29721 character indices.
29722 (find_glyph): Use binary search instead of linear search to find a
29723 character in a font.
29724
29725 2009-06-05 Michael Scherer <misc@mandriva.org>
29726
29727 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
29728 uses case sensitive btree.
29729 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
29730 only for case insensitive filesystems.
29731
29732 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
29733
29734 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
29735 * conf/common.rmk (search_mod_CFLAGS): likewise
29736
29737 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29738
29739 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
29740 compensate a compiler bug
29741
29742 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29743
29744 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
29745 instead of '\b'
29746
29747 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29748
29749 Definitions for creating asm symbols with Apple's CC
29750
29751 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
29752 [APPLE_CC] (VARIABLE): likewise
29753
29754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29755
29756 Disable lnxboot.img when compiled
29757 with Apple's CC
29758
29759 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
29760 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
29761 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
29762 [! APPLE_CC] (CODE_LENG): skip
29763 [! APPLE_CC] (setup_sects): likewise
29764 [! APPLE_CC]: skip filling
29765
29766 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29767
29768 Address in trampolines based on 32-bit registers when compiled
29769 with Apple's CC
29770
29771 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
29772 for addresses
29773 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
29774
29775 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29776
29777 Avoid aliases when compiling with Apple's CC for PCBIOS machine
29778
29779 * kern/misc.c [APPLE_CC] (memcpy): new function
29780 [APPLE_CC] (memmove): likewise
29781 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
29782 (memcpy): define alias conditionally on !APPLE_CC
29783 (memset): likewise
29784 (abort): likewise
29785 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
29786 APPLE_CC are defined
29787 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
29788 (grub_assert_fail): make prototype conditional
29789
29790 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29791
29792 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
29793
29794 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
29795 grub-macho2img
29796 (CLEANFILES): add grub-macho2img
29797 (grub_macho2img_SOURCES): new variable
29798 * kern/i386/pc/startup.S (bss_start): new variable
29799 (bss_end): likewise
29800 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
29801 * util/grub-macho2img.c: new file
29802
29803 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29804
29805 Use objconv when compiling with Apple's CC
29806
29807 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
29808 (efiemu64.o): likewise
29809 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
29810 when compiling with Apple's CC
29811 (efiemu64_s.o): likewise
29812 * configure.ac: check for objconv when compiling with Apple's CC
29813 * genmk.rb: use objconv for modules when compiled with Apple's CC
29814
29815 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29816
29817 Define segment as well as section when compiling with
29818 Apple's CC
29819
29820 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
29821 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
29822 (efiemu_convert_pointer): likewise
29823 (efiemu_set_virtual_address_map): likewise
29824 (efiemu_convert_pointer): likewise
29825 (efiemu_getcrc32): likewise
29826 (init_crc32_table): likewise
29827 (reflect): likewise
29828 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
29829 (GRUB_MOD_DEP): likewise
29830
29831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29832
29833 Allow a compilation without -mcmodel=large
29834
29835 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
29836 when compiled without -mcmodel=large
29837 (filter_memory_map): remove memory post 4 GiB when compiled
29838 without -mcmodel=large
29839 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
29840 TARGET_CFLAGS when -mcmodel=large isn't supported
29841
29842 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29843
29844 Remove nested functions in efiemu core
29845
29846 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
29847
29848 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29849
29850 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
29851
29852 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
29853 temporary storage
29854 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
29855 using Apple's CC
29856 (grub_cpu_is_tsc_supported): likewise
29857 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
29858
29859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29860
29861 Absolute addressing through constant with Apple's cc
29862
29863 * kern/i386/pc/startup.S: Define necessary constants
29864 and address through it when using ABS with Apple's CC
29865 * boot/i386/pc/diskboot.S: likewise
29866 * boot/i386/pc/boot.S: likewise
29867 * boot/i386/pc/lnxboot.S: likewise
29868 * boot/i386/pc/cdboot.S: likewise
29869 * mmap/i386/pc/mmap_helper.S: likewise
29870 * commands/i386/pc/drivemap_int13h.S: likewise
29871
29872 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29873
29874 Check if compiler is apple cc
29875
29876 * Makefile.in (ASFLAGS): new variable
29877 (TARGET_ASFLAGS): likewise
29878 (TARGET_MODULE_FORMAT): likewise
29879 (TARGET_APPLE_CC): likewise
29880 (OBJCONV): likewise
29881 (TARGET_IMG_CFLAGS): likewise
29882 (TARGET_CPPFLAGS): add includedir
29883 * configure.ac: call grub_apple_cc and grub_apple_target_cc
29884 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
29885 Check for linker script only if compiler isn't Apple's CC
29886 (TARGET_MODULE_FORMAT): set
29887 (TARGET_APPLE_CC): likewise
29888 (TARGET_ASFLAGS): likewise
29889 (ASFLAGS): likewise
29890 Check for objcopy only if compiler isn't Apple's CC
29891 Check for BSS symbol only if compiler isn't Apple's CC
29892 * genmk.rb: adapt nm options if we use Apple's utils
29893 * aclocal.m4 (grub_apple_cc): new test
29894 (grub_apple_target_cc): likewise
29895
29896 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29897
29898 Simplify sed expressions and improve awk
29899
29900 * Makefile.in (install-local): simplify sed expression
29901 * gencmdlist.sh: likewise
29902 * genmoddep.awk: avoid adding module as a dependency of itself
29903
29904 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29905
29906 Add missing start symbols
29907
29908 * boot/i386/pc/boot.S: add start
29909 * boot/i386/pc/pxeboot.S: likewise
29910
29911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29912
29913 Fix wrong assumptions with grub-mkimage on EFI
29914
29915 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
29916 (relocate_addresses): consider both r_addend and value at offset
29917 (make_mods_section): zerofill modinfo and header
29918 (convert_elf): write prefix here
29919
29920 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29921
29922 Use .asciz instead of .string
29923
29924 * i386/pc/diskboot.S: use .asciz instead of .string
29925 * i386/pc/boot.S: likewise
29926 * include/grub/dl.h (GRUB_MOD_DEP): likewise
29927 (GRUB_MOD_NAME): likewise
29928
29929 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29930
29931 gfxpayload support
29932
29933 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
29934 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
29935 (grub_video_setup): remove
29936 (grub_video_set_mode): new prototype
29937 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
29938 (vid_mode): remove
29939 (linux_vesafb_res): compile only on PCBIOS
29940 (grub_linux_boot): support gfxpayload
29941 * loader/i386/pc/xnu.c (video_hook): new function
29942 (grub_xnu_set_video): support gfxpayload
29943 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
29944 (DEFAULT_VIDEO_HEIGHT): likewise
29945 (DEFAULT_VIDEO_FLAGS): likewise
29946 (DEFAULT_VIDEO_MODE): new definition
29947 (video_hook): new function
29948 (grub_gfxterm_init): use grub_video_set_mode
29949 * util/grub.d/30_os-prober.in: remove explicit modesetting before
29950 loading xnu
29951 * video/video.c (grub_video_setup): removed
29952 (grub_video_set_mode): new function based on grub_gfxterm_init and
29953 grub_video_setup
29954
29955 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29956
29957 Avoid calling biosdisk in drivemap
29958
29959 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
29960 (revparse_biosdisk): likewise
29961 (list_mappings): derive name from id directly
29962 (grub_cmd_drivemap): use tryparse_diskstring
29963
29964 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29965
29966 Script fixes
29967
29968 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
29969 (grub_lexer_param): add tokenonhold
29970 (grub_script_create_cmdline): remove cmdline. All callers updated
29971 (grub_script_function_create): make functionname
29972 grub_script_arg. All callers updated
29973 (grub_script_execute_argument_to_string): new prototype
29974 * kern/parser.c (state_transitions): reorder
29975 (grub_parser_cmdline_state): fix a bug and make more compact
29976 * script/sh/execute.c (grub_script_execute_argument_to_string):
29977 make global
29978 (grub_script_execute_cmdline): use new format
29979 * script/sh/function.c (grub_script_function_create): make functionname
29980 grub_script_arg. All callers updated
29981 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
29982 (grub_script_yylex): remove
29983 (grub_script_yylex2): renamed to ...
29984 (grub_script_yylex): ...renamed
29985 parse the expressions like a${b}c
29986 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
29987 (GRUB_PARSER_TOKEN_VAR): remove
29988 (GRUB_PARSER_TOKEN_NAME): likewise
29989 ("if"): declare as typeless
29990 ("while"): likewise
29991 ("function"): likewise
29992 ("else"): likewise
29993 ("then"): likewise
29994 ("fi"): likewise
29995 (text): remove
29996 (argument): likewise
29997 (script): accept empty scripts and make exit on error
29998 (arguments): use GRUB_PARSER_TOKEN_ARG
29999 (function): likewise
30000 (command): move error handling to script
30001 (menuentry): move grub_script_lexer_ref before
30002 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30003 argument. All callers updated
30004
30005 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30006
30007 Prevent GRUB from probing floppies during boot.
30008
30009 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30010 * commands/search.c (options): Add --no-floppy.
30011 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30012 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30013 --no-floppy when searching for UUIDs.
30014
30015 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30016
30017 Simplify the code duplication in commands/search.c.
30018
30019 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30020 (search_fs): ... this. Update all users.
30021
30022 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30023
30024 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30025
30026 2009-05-28 Pavel Roskin <proski@gnu.org>
30027
30028 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30029 Remove the original symlink explicitly.
30030
30031 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30032 just one slash. That's how grub_fshelp_find_file() does it.
30033
30034 2009-05-26 Pavel Roskin <proski@gnu.org>
30035
30036 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30037 to `str'.
30038
30039 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30040 possibly unused.
30041
30042 2009-05-25 Christian Franke <franke@computer.org>
30043
30044 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30045 register.
30046 (grub_atapi_identify): Add wait after drive select.
30047 (grub_ata_identify): Do more strict status register check before
30048 calling grub_atapi_identify (). Suppress error message if status
30049 register is 0x00 after command failure. Add status register
30050 check after PIO read to avoid bogus identify due to stuck DRQ.
30051 Thanks to Pavel Roskin for testing.
30052 (grub_device_initialize): Remove unsafe status register check.
30053 Thanks to 'phcoder' for problem report and patch.
30054 Prevent sign extension in debug message.
30055
30056 2009-05-23 Colin D Bennett <colin@gibibit.com>
30057
30058 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30059 definition file, and functions defined in `normal/menu.c' have had
30060 their prototypes moved to `include/grub/menu.h' for consistency.
30061
30062 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30063 from normal.h.
30064 (grub_menu_get_entry): Likewise.
30065 (grub_menu_get_timeout): Likewise.
30066 (grub_menu_set_timeout): Likewise.
30067 (grub_menu_execute_entry): Likewise.
30068 (grub_menu_execute_with_fallback): Likewise.
30069 (grub_menu_entry_run): Likewise.
30070
30071 * include/grub/normal.h: Re-ordered and grouped function
30072 prototypes by file that the function is defined in.
30073 (grub_menu_execute_callback): Removed; moved to menu.h.
30074 (grub_menu_get_entry): Likewise.
30075 (grub_menu_get_timeout): Likewise.
30076 (grub_menu_set_timeout): Likewise.
30077 (grub_menu_execute_entry): Likewise.
30078 (grub_menu_execute_with_fallback): Likewise.
30079 (grub_menu_entry_run): Likewise.
30080 (grub_menu_addentry): Renamed from this ...
30081 (grub_normal_add_menu_entry): ... to this.
30082
30083 * normal/main.c (grub_menu_addentry): Renamed from this ...
30084 (grub_normal_add_menu_entry): ... to this.
30085
30086 * script/sh/execute.c (grub_script_execute_menuentry): Update
30087 reference to renamed grub_menu_addentry function.
30088
30089 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30090
30091 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30092
30093 2009-05-22 Pavel Roskin <proski@gnu.org>
30094
30095 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30096 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30097 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30098 compiling for the i386 targets, but not for the utilities.
30099
30100 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30101 to grub_uint8_t.
30102 (grub_root_drive): Likewise.
30103 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30104 remove alignment.
30105 (grub_root_drive): Change size to byte.
30106 (grub_start_addr): Remove.
30107 (grub_end_addr): Likewise.
30108 (grub_apm_bios_info): Likewise.
30109
30110 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30111
30112 * normal/i386: Remove.
30113 * normal/powerpc: Likewise.
30114 * normal/sparc64: Likewise.
30115 * normal/x86_64: Likewise.
30116
30117 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30118
30119 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30120 * loader/i386/linux_trampoline.S: Fix indentation
30121 * loader/i386/xnu_helper.S: Likewise
30122
30123 2009-05-18 Colin D Bennett <colin@gibibit.com>
30124
30125 Display error messages when parsing a Lua statement fails.
30126 Previously, executing a syntactically invalid statement like
30127 ")foo" or "bar;" would silently fail.
30128
30129 * script/lua/grub_main.c (handle_lua_error): New function.
30130 (grub_lua_parse_line): Improved reporting of Lua parser and
30131 execution errors.
30132
30133 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30134
30135 Remove -Werror which causes build to fail on some systems
30136
30137 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30138 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30139 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30140
30141 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30142
30143 trampoline for linux on 64-bit platform
30144
30145 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30146 loader/i386/efi/linux_trampoline.S
30147 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30148 declaration
30149 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30150 here
30151 * loader/i386/linux_trampoline.S: moved here
30152 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30153 trampoline
30154 (jumpvector): removed
30155 (grub_linux_trampoline_start): new declaration
30156 (grub_linux_trampoline_end): likewise
30157 (grub_linux_boot): use trampoline when on 64-bit platform
30158 * loader/i386/linux.c: likewise
30159
30160 2009-05-16 Pavel Roskin <proski@gnu.org>
30161
30162 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30163 const to avoid a warning.
30164 (grub_lua_setenv): Likewise.
30165 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30166 lmsg to fix a warning.
30167
30168 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30169
30170 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30171 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30172 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30173 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30174 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30175 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30176 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30177 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30178
30179 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30180
30181 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30182
30183 2009-05-16 Bean <bean123ch@gmail.com>
30184
30185 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30186 (lua_mod_SOURCES): New variable.
30187 (lua_mod_CFLAGS): Likewise.
30188 (lua_mod_LDFLAGS): Likewise.
30189
30190 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30191 (setjmp_mod_SOURCES): New variable.
30192 (setjmp_mod_CFLAGS): Likewise.
30193 (setjmp_LDFLAGS): Likewise.
30194
30195 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30196 (setjmp_mod_SOURCES): New variable.
30197 (setjmp_mod_CFLAGS): Likewise.
30198 (setjmp_LDFLAGS): Likewise.
30199
30200 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30201 (setjmp_mod_SOURCES): New variable.
30202 (setjmp_mod_CFLAGS): Likewise.
30203 (setjmp_LDFLAGS): Likewise.
30204
30205 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30206 (setjmp_mod_SOURCES): New variable.
30207 (setjmp_mod_CFLAGS): Likewise.
30208 (setjmp_LDFLAGS): Likewise.
30209
30210 * normal/i386/setjmp.S: Moved from here ...
30211 * lib/i386/setjmp.S: ... Moved here
30212 * normal/x86_64/setjmp.S: Moved from here ...
30213 * lib/x86_64/setjmp.S: ... Moved here
30214 * normal/powerpc/setjmp.S: Moved from here ...
30215 * lib/powerpc/setjmp.S: ... Moved here
30216 * normal/sparc64/setjmp.S: Moved from here ...
30217 * lib/sparc64/setjmp.S: ... Moved here
30218
30219 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30220 returns_twice in mingw.
30221
30222 * script/lua/grub_lib.c: New file.
30223 * script/lua/grub_lib.h: Likewise.
30224 * script/lua/grub_lua.h: Likewise.
30225 * script/lua/grub_main.c: Likewise.
30226 * script/lua/lapi.c: Likewise.
30227 * script/lua/lapi.h: Likewise.
30228 * script/lua/lauxlib.c: Likewise.
30229 * script/lua/lauxlib.h: Likewise.
30230 * script/lua/lbaselib.c: Likewise.
30231 * script/lua/lcode.c: Likewise.
30232 * script/lua/lcode.h: Likewise.
30233 * script/lua/ldblib.c: Likewise.
30234 * script/lua/ldebug.c: Likewise.
30235 * script/lua/ldebug.h: Likewise.
30236 * script/lua/ldo.c: Likewise.
30237 * script/lua/ldo.h: Likewise.
30238 * script/lua/ldump.c: Likewise.
30239 * script/lua/lfunc.c: Likewise.
30240 * script/lua/lfunc.h: Likewise.
30241 * script/lua/lgc.c: Likewise.
30242 * script/lua/lgc.h: Likewise.
30243 * script/lua/linit.c: Likewise.
30244 * script/lua/liolib.c: Likewise.
30245 * script/lua/llex.c: Likewise.
30246 * script/lua/llex.h: Likewise.
30247 * script/lua/llimits.h: Likewise.
30248 * script/lua/lmathlib.c: Likewise.
30249 * script/lua/lmem.c: Likewise.
30250 * script/lua/lmem.h: Likewise.
30251 * script/lua/loadlib.c: Likewise.
30252 * script/lua/lobject.c: Likewise.
30253 * script/lua/lobject.h: Likewise.
30254 * script/lua/lopcodes.c: Likewise.
30255 * script/lua/lopcodes.h: Likewise.
30256 * script/lua/loslib.c: Likewise.
30257 * script/lua/lparser.c: Likewise.
30258 * script/lua/lparser.h: Likewise.
30259 * script/lua/lstate.c: Likewise.
30260 * script/lua/lstate.h: Likewise.
30261 * script/lua/lstring.c: Likewise.
30262 * script/lua/lstring.h: Likewise.
30263 * script/lua/lstrlib.c: Likewise.
30264 * script/lua/ltable.c: Likewise.
30265 * script/lua/ltable.h: Likewise.
30266 * script/lua/ltablib.c: Likewise.
30267 * script/lua/ltm.c: Likewise.
30268 * script/lua/ltm.h: Likewise.
30269 * script/lua/lua.h: Likewise.
30270 * script/lua/luaconf.h: Likewise.
30271 * script/lua/lualib.h: Likewise.
30272 * script/lua/lundump.c: Likewise.
30273 * script/lua/lundump.h: Likewise.
30274 * script/lua/lvm.c: Likewise.
30275 * script/lua/lvm.h: Likewise.
30276 * script/lua/lzio.c: Likewise.
30277 * script/lua/lzio.h: Likewise.
30278
30279 2009-05-16 Bean <bean123ch@gmail.com>
30280
30281 * include/grub/kernel.h (grub_module_header_types): Add type
30282 OBJ_TYPE_CONFIG.
30283
30284 * kern/main.c (grub_load_config): New function.
30285 (grub_main): Call grub_load_config to read boot config.
30286
30287 * grub-mkimage (generate_image): New parameter config_path.
30288 (options): New option --config.
30289 (main): Parse --config option, and pass it to generate_image.
30290
30291 2009-05-14 Christian Franke <franke@computer.org>
30292
30293 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30294 This fixes build on Cygwin.
30295
30296 2009-05-14 Pavel Roskin <proski@gnu.org>
30297
30298 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30299 jump. This saves two bytes, so the typical case of 2 swapped
30300 drives would fit 32 bytes.
30301
30302 2009-05-13 Pavel Roskin <proski@gnu.org>
30303
30304 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30305 grub_uint32_t to avoid a warning.
30306
30307 * loader/i386/linux.c (allocate_pages): When assigning
30308 real_mode_mem, cast through grub_size_t to fix a warning. The
30309 code already makes sure that the value would fit a pointer.
30310 (grub_linux_setup_video): Cast render_target->data to
30311 grub_size_t to fix a warning.
30312
30313 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30314
30315 * commands/i386/pc/drivemap.c: New file - implement drivemap
30316 command.
30317 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30318 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30319
30320 2009-05-13 Pavel Roskin <proski@gnu.org>
30321
30322 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30323 embedding_area_exists.
30324
30325 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30326
30327 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30328 it easier to understand / work with.
30329 Improve warning messages for cases where there's no embedding area,
30330 or when it is too small (or core.img too large).
30331
30332 2009-05-13 Pavel Roskin <proski@gnu.org>
30333
30334 * loader/i386/pc/multiboot2.c: Add necessary includes for
30335 grub_multiboot2_real_boot().
30336
30337 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30338 PX record is always little-endian. We only need the lower 2
30339 bytes of the mode.
30340
30341 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30342 facilitate code reuse.
30343 (grub_cpio_mount): Use "struct head", not a char buffer. This
30344 fixes a warning reported by gcc 4.4.
30345
30346 * kernel/disk.c (grub_disk_read): Use void pointer for the
30347 buffer.
30348 (grub_disk_write): Use const void pointer for the buffer.
30349 Adjust all callers. Remove unnecessary casts.
30350
30351 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30352
30353 * util/i386/pc/grub-install.in: Update copyright year.
30354
30355 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30356
30357 gptsync
30358
30359 * commands/gptsync.c: new file
30360 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30361 (gptsync_mod_SOURCES): new variable
30362 (gptsync_mod_CFLAGS): likewise
30363 (gptsync_mod_LDFLAGS): likewise
30364 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30365 new definition
30366 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30368 * conf/i386-ieee1275.rmk: likewise
30369 * conf/i386-pc.rmk: likewise
30370 * conf/powerpc-ieee1275.rmk: likewise
30371
30372 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 Fixed grub-emu
30375
30376 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30377 (grub_dl_ref): likewise
30378
30379 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30380
30381 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30382 split in two functions (one for msdos and one for gpt).
30383
30384 2009-05-08 Pavel Roskin <proski@gnu.org>
30385
30386 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30387 not modified.
30388
30389 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30390 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30391 Initialize them with -1. Add sanity check for bad1. Eliminate
30392 nerr variable.
30393
30394 2009-05-08 David S. Miller <davem@davemloft.net>
30395
30396 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30397
30398 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30399
30400 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30401 existence.
30402
30403 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30404
30405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30406 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30407
30408 2009-05-05 David S. Miller <davem@davemloft.net>
30409
30410 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30411
30412 2009-05-05 Pavel Roskin <proski@gnu.org>
30413
30414 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30415 of grub_dl_ref() and grub_dl_unref().
30416 * commands/parttool.c: Remove preprocessor conditionals around
30417 grub_dl_ref() and grub_dl_unref().
30418 * fs/affs.c: Likewise.
30419 * fs/afs.c: Likewise.
30420 * fs/cpio.c: Likewise.
30421 * fs/ext2.c: Likewise.
30422 * fs/fat.c: Likewise.
30423 * fs/hfs.c: Likewise.
30424 * fs/hfsplus.c: Likewise.
30425 * fs/iso9660.c: Likewise.
30426 * fs/jfs.c: Likewise.
30427 * fs/minix.c: Likewise.
30428 * fs/ntfs.c: Likewise.
30429 * fs/reiserfs.c: Likewise.
30430 * fs/sfs.c: Likewise.
30431 * fs/udf.c: Likewise.
30432 * fs/ufs.c: Likewise.
30433 * fs/xfs.c: Likewise.
30434 * include/grub/dl.h: Likewise.
30435 * loader/xnu.c: Likewise.
30436
30437 2009-05-04 Pavel Roskin <proski@gnu.org>
30438
30439 * commands/acpi.c: Remove unused variable my_mod.
30440 * partmap/amiga.c: Likewise.
30441 * partmap/apple.c: Likewise.
30442 * partmap/gpt.c: Likewise.
30443 * partmap/pc.c: Likewise.
30444 * partmap/sun.c: Likewise.
30445 * term/gfxterm.c: Likewise.
30446 * term/i386/pc/vesafb.c: Likewise.
30447 * term/i386/pc/vga.c: Likewise.
30448
30449 2009-05-04 David S. Miller <davem@davemloft.net>
30450
30451 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30452 pointer args to grub_ieee1275_get_property().
30453
30454 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30455
30456 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30457 devices, and do not traverse down under controller nodes.
30458
30459 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30460 (grub_ofdisk_open): Use it to un-escape "," characters.
30461 * kern/disk.c (find_part_sep): New.
30462 (grub_disk_open): Use it to find the first non-escaped ','
30463 character in the disk name.
30464 * util/ieee1275/devicemap.c (escape_of_path): New.
30465 (grub_util_emit_devicemap_entry): Use it.
30466 * util/sparc64/ieee1275/grub-install.in: Update script to
30467 strip partition specifiers properly by not triggering on
30468 '\' escaped ',' characters.
30469
30470 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30471
30472 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30473 to 0x300.
30474 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30475 resolutions.
30476 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30477 on documentation from Wikipedia).
30478
30479 2009-05-04 Pavel Roskin <proski@gnu.org>
30480
30481 * disk/ata.c: Spelling fixes.
30482 * disk/raid.c: Likewise.
30483 * disk/usbms.c: Likewise.
30484 * disk/dmraid_nvidia.c: Likewise.
30485 * kern/ieee1275/openfw.c: Likewise.
30486 * kern/ieee1275/init.c: Likewise.
30487 * kern/ieee1275/cmain.c: Likewise.
30488 * boot/i386/pc/cdboot.S: Likewise.
30489 * video/readers/png.c: Likewise.
30490 * video/i386/pc/vbe.c: Likewise.
30491 * fs/udf.c: Likewise.
30492 * fs/hfs.c: Likewise.
30493 * fs/reiserfs.c: Likewise.
30494 * efiemu/runtime/efiemu.c: Likewise.
30495 * efiemu/main.c: Likewise.
30496 * efiemu/mm.c: Likewise.
30497 * include/grub/elf.h: Likewise.
30498 * include/grub/xnu.h: Likewise.
30499 * include/grub/usbdesc.h: Likewise.
30500 * include/grub/usb.h: Likewise.
30501 * include/grub/script_sh.h: Likewise.
30502 * include/grub/lib/LzmaEnc.h: Likewise.
30503 * include/grub/efiemu/efiemu.h: Likewise.
30504 * include/grub/command.h: Likewise.
30505 * normal/menu.c: Likewise.
30506 * normal/main.c: Likewise.
30507 * normal/datetime.c: Likewise.
30508 * bus/usb/uhci.c: Likewise.
30509 * mmap/i386/uppermem.c: Likewise.
30510 * mmap/mmap.c: Likewise.
30511 * commands/acpi.c: Likewise.
30512 * commands/test.c: Likewise.
30513 * partmap/apple.c: Likewise.
30514 * font/font.c: Likewise.
30515 * loader/sparc64/ieee1275/linux.c: Likewise.
30516 * loader/macho.c: Likewise.
30517 * loader/i386/bsd_trampoline.S: Likewise.
30518 * loader/i386/bsd.c: Likewise.
30519 * loader/xnu.c: Likewise.
30520 * term/i386/pc/vesafb.c: Likewise.
30521 * term/usb_keyboard.c: Likewise.
30522 * util/resolve.c: Likewise.
30523 * util/getroot.c: Likewise.
30524
30525 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30526
30527 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30528
30529 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30530
30531 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30532 build error.
30533
30534 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30535
30536 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30537 parameter only available on BIOS.
30538
30539 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30540
30541 Removed wrong semicolon in declaration
30542
30543 * grub/misc.h (grub_dprintf): remove semicolon
30544
30545 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30546
30547 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30548 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30549 is done by grub_cmd_linux() now).
30550 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
30551 restore video to text mode.
30552 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
30553 indicates lack of "vga=" parameter. "vga=0" is mapped to
30554 `GRUB_LINUX_VID_MODE_NORMAL'.
30555
30556 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30557
30558 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
30559 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
30560 and `normal/script.c'. Add `kern/rescue_reader.c',
30561 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
30562 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
30563 `grub_script.tab.c'.
30564
30565 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30566 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30568 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30569 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30570
30571 * Makefile.in: Remove duplicated 2008 in Copyright line.
30572
30573 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30574
30575 * util/misc.c (grub_util_warn): New function. Emits a warning
30576 unconditionally.
30577 * include/grub/util/misc.h (grub_util_warn): New declaration.
30578
30579 * util/i386/pc/grub-install.in: Understand --force and pass it down
30580 to grub-setup.
30581
30582 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
30583 down to setup().
30584 (setup): Improve error messages and add warnings when requested to
30585 install in odd layouts. Refuse to install using blocklists unless
30586 --force was set.
30587
30588 2009-05-04 martin f. krafft <madduck@madduck.net>
30589
30590 * disk/raid.c (grub_raid_scan_device): Improve debug message.
30591
30592 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30593
30594 Updated copyright year
30595
30596 * fs/hfsplus.c: updated copyright year
30597
30598 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30599
30600 HFS+ UUID
30601
30602 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
30603 in the space previously used by unused3
30604 (grub_hfsplus_uuid): new function
30605 (grub_hfsplus_fs): added uuid field
30606
30607 2009-05-03 Pavel Roskin <proski@gnu.org>
30608
30609 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
30610 suppress warnings. It's no longer needed.
30611 * disk/host.c: Likewise.
30612 * disk/ata_pthru.c: Likewise.
30613 * disk/loopback.c: Likewise.
30614 * hook/datehook.c: Likewise.
30615 * parttool/pcpart.c: Likewise.
30616 * fs/i386/pc/pxe.c: Likewise.
30617 * fs/ntfscomp.c: Likewise.
30618 * efiemu/main.c: Likewise.
30619 * mmap/mmap.c: Likewise.
30620 * commands/crc.c: Likewise.
30621 * commands/hexdump.c: Likewise.
30622 * commands/hdparm.c: Likewise.
30623 * commands/acpi.c: Likewise.
30624 * commands/echo.c: Likewise.
30625 * commands/minicmd.c: Likewise.
30626 * commands/blocklist.c: Likewise.
30627 * commands/memrw.c: Likewise.
30628 * commands/loadenv.c: Likewise.
30629 * commands/usbtest.c: Likewise.
30630 * commands/lsmmap.c: Likewise.
30631 * commands/boot.c: Likewise.
30632 * commands/parttool.c: Likewise.
30633 * commands/configfile.c: Likewise.
30634 * commands/search.c: Likewise.
30635 * commands/ieee1275/suspend.c: Likewise.
30636 * commands/cat.c: Likewise.
30637 * commands/i386/pc/pxecmd.c: Likewise.
30638 * commands/i386/pc/play.c: Likewise.
30639 * commands/i386/pc/halt.c: Likewise.
30640 * commands/i386/pc/vbeinfo.c: Likewise.
30641 * commands/i386/pc/vbetest.c: Likewise.
30642 * commands/lspci.c: Likewise.
30643 * commands/date.c: Likewise.
30644 * commands/handler.c: Likewise.
30645 * commands/ls.c: Likewise.
30646 * commands/test.c: Likewise.
30647 * commands/cmp.c: Likewise.
30648 * commands/efi/loadbios.c: Likewise.
30649 * commands/efi/fixvideo.c: Likewise.
30650 * commands/halt.c: Likewise.
30651 * commands/help.c: Likewise.
30652 * commands/reboot.c: Likewise.
30653 * hello/hello.c: Likewise.
30654 * script/sh/main.c: Likewise.
30655 * loader/xnu.c: Likewise.
30656 * term/terminfo.c: Likewise.
30657 * term/i386/pc/serial.c: Likewise.
30658 * term/usb_keyboard.c: Likewise.
30659
30660 2009-05-03 David S. Miller <davem@davemloft.net>
30661
30662 * normal/menu.c: Include grub/parser.h
30663
30664 2009-05-03 Pavel Roskin <proski@gnu.org>
30665
30666 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
30667 not char*.
30668 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
30669 Suggested by Javier Martín <lordhabbit@gmail.com>
30670
30671 * util/i386/pc/grub-mkrescue.in: Allow for the case when
30672 efiemu??.o doesn't exist.
30673 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
30674 copying.
30675
30676 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
30677
30678 FreeBSD 64-bit support
30679
30680 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
30681 and loader/i386/bsd_trampoline.S
30682 (bsd_mod_ASFLAGS): new variable
30683 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
30684 (FREEBSD_MODTYPE_KERNEL64): likewise
30685 (grub_bsd64_trampoline_start): likewise
30686 (grub_bsd64_trampoline_end): likewise
30687 (grub_bsd64_trampoline_selfjump): likewise
30688 (grub_bsd64_trampoline_gdt): likewise
30689 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
30690 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
30691 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
30692 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
30693 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30694 of "attrib" member
30695 * loader/i386/bsd_pagetable.c: new file
30696 * loader/i386/bsd_trampoline.S: likewise
30697 * loader/i386/bsd.c (ALIGN_QWORD): new macro
30698 (ALIGN_VAR): likewise
30699 (entry_hi): new variable
30700 (kern_end_mdofs): likewise
30701 (is_64bit): likewise
30702 (grub_freebsd_add_meta): use ALIGN_VAR
30703 (grub_e820_mmap): new declaration
30704 (grub_freebsd_add_mmap): new function
30705 (grub_freebsd_add_meta_module): support 64 bit kernels
30706 (grub_freebsd_list_modules): use ALIGN_VAR
30707 (gdt_descriptor): new declaration
30708 (grub_freebsd_boot): support 64 bit kernels
30709 (grub_bsd_elf64_hook): new function
30710 (grub_bsd_load_elf): support elf64
30711
30712 2009-05-03 Bean <bean123ch@gmail.com>
30713
30714 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
30715 after we get the result of if statement.
30716
30717 2009-05-03 Bean <bean123ch@gmail.com>
30718
30719 * Makefile.in (enable_efiemu): New variable.
30720
30721 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
30722 set.
30723 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
30724 path.
30725 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
30726 path, add -mno-red-zone option.
30727 (efiemu64_s.o): Likewise.
30728 (efiemu64.o): Use macro $^ for source file.
30729
30730 * configure.ac (--enable-efiemu): New option.
30731
30732 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
30733
30734 xnu support
30735
30736 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
30737 (pkglib_MODULES): add xnu.mod
30738 (xnu_mod_SOURCES): new variable
30739 (xnu_mod_CFLAGS): likewise
30740 (xnu_mod_LDFLAGS): likewise
30741 (xnu_mod_ASFLAGS): likewise
30742 * conf/i386-pc.rmk: likewise
30743 * conf/x86_64-efi.rmk: likewise
30744 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
30745 new declaration
30746 * include/grub/i386/macho.h: new file
30747 * include/grub/i386/xnu.h: likewise
30748 * include/grub/macho.h: likewise
30749 * include/grub/machoload.h: likewise
30750 * include/grub/x86_64/macho.h: likewise
30751 * include/grub/x86_64/xnu.h: likewise
30752 * include/grub/xnu.h: likewise
30753 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
30754 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
30755 * loader/i386/efi/xnu.c: new file
30756 * loader/i386/pc/xnu.c: likewise
30757 * loader/i386/xnu.c: likewise
30758 * loader/i386/xnu_helper.S: likewise
30759 * loader/macho.c: likewise
30760 * loader/xnu.c: likewise
30761 * loader/xnu_resume.c: likewise
30762 * util/grub-dumpdevtree: likewise
30763 * include/grub/i386/pit.h: include grub/err.h
30764 (grub_pit_wait): export
30765 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
30766
30767 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30768
30769 Efiemu
30770
30771 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
30772 _linux_efi, linux_efi.
30773 new files in grub-emu
30774 new targets efiemu32.o and efiemu64.o
30775 * loader/linux_normal_efiemu.c: likewise
30776 * loader/i386/efi/linux.c: added preliminary efiemu support
30777 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
30778 files to copy
30779 * include/grub/autoefi.h: new file
30780 * include/grub/i386/efiemu.h: likewise
30781 * include/grub/i386/pc/efiemu.h: likewise
30782 * include/grub/efi/api.h: add LL suffix when necessary
30783 new definitions relating to tables
30784 * include/grub/efiemu/efiemu.h: new file
30785 * include/grub/efiemu/runtime.h: likewise
30786 * efiemu/prepare.c: likewise
30787 * efiemu/loadcore_common.c: likewise
30788 * efiemu/loadcore64.c: likewise
30789 * efiemu/runtime/efiemu.sh: likewise
30790 * efiemu/runtime/efiemu.S: likewise
30791 * efiemu/runtime/efiemu.c: likewise
30792 * efiemu/runtime/config.h: likewise
30793 * efiemu/prepare32.c: likewise
30794 * efiemu/main.c: likewise
30795 * efiemu/modules/pnvram.c: likewise
30796 * efiemu/modules/i386: likewise
30797 * efiemu/modules/i386/pc: likewise
30798 * efiemu/modules/acpi.c: likewise
30799 * efiemu/i386/pc/cfgtables.c: likewise
30800 * efiemu/i386/loadcore64.c: likewise
30801 * efiemu/i386/loadcore32.c: likewise
30802 * efiemu/prepare64.c: likewise
30803 * efiemu/loadcore.c: likewise
30804 * efiemu/symbols.c: likewise
30805 * efiemu/mm.c: likewise
30806 * efiemu/loadcore32.c: likewise
30807
30808 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30809
30810 ACPI spoofing
30811
30812 * commands/acpi.c: new file
30813 * commands/i386/pc/acpi.c: likewise
30814 * commands/efi/acpi.c: likewise
30815 * include/grub/acpi.h: likewise
30816 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
30817 (acpi_mod_SOURCES): new variable
30818 (acpi_mod_CFLAGS): likewise
30819 (acpi_mod_LDFLAGS): likewise
30820 * conf/i386-efi.rmk: likewise
30821 * conf/x86_64-efi.rmk: likewise
30822
30823 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30824
30825 Missing part from mmap patch
30826
30827 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
30828 (grub_mmap_unregister)
30829 (grub_mmap_free_and_unregister): use grub_mmap_register
30830
30831 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30832
30833 Mmap services
30834
30835 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
30836 * loader/i386/linux.c (find_mmap_size): likewise
30837 (allocate_pages): likewise
30838 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
30839 (grub_fill_multiboot_mmap): likewise
30840 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
30841 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
30842 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
30843 (OPENBSD_MMAP_RESERVED): likewise
30844 * include/grub/i386/pc/memory.h: include grub/memory.h
30845 (grub_lower_mem): removed
30846 (grub_upper_mem): likewise
30847 (GRUB_MACHINE_MEMORY_ACPI): new definition
30848 (GRUB_MACHINE_MEMORY_NVS): likewise
30849 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
30850 (GRUB_MACHINE_MEMORY_HOLE): likewise
30851 (grub_machine_mmap_register): likewise
30852 (grub_machine_mmap_unregister): likewise
30853 (grub_machine_get_upper): likewise
30854 (grub_machine_get_lower): likewise
30855 (grub_machine_get_post64): likewise
30856 * include/grub/i386/efi/memory.h: new file
30857 * include/grub/x86_64/efi/memory.h: likewise
30858 * include/grub/efi/memory.h: likewise
30859 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
30860 (mmap_mod_SOURCES): new variable
30861 (mmap_mod_LDFLAGS): likewise
30862 (mmap_mod_ASFLAGS): likewise
30863 * conf/i386-coreboot.rmk: likewise
30864 * conf/i386-ieee1275.rmk: likewise
30865 * conf/i386-efi.rmk: likewise
30866 * conf/x86_64-efi.rmk: likewise
30867 * include/grub/types.h (UINT_TO_PTR): new macro
30868 (PTR_TO_UINT32): likewise
30869 (PTR_TO_UINT64): likewise
30870 * include/grub/memory.h: new file
30871 * mmap/i386/pc/mmap.c: likewise
30872 * mmap/i386/pc/mmap_helper.S: likewise
30873 * mmap/i386/uppermem.c: likewise
30874 * mmap/mmap.c: likewise
30875 * mmap/efi/mmap.c: likewise
30876 * kern/i386/coreboot/init.c (grub_machine_init): don't use
30877 grub_upper_mem
30878 * kern/i386/pc/init.c (grub_lower_mem): removed variable
30879 (grub_upper_mem): likewise
30880 (grub_machine_init): don't use grub_upper_mem,
30881 make grub_lower_mem local
30882 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
30883 grub_mmap_iterate and grub_mmap_get_upper
30884 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
30885
30886 2009-05-02 Bean <bean123ch@gmail.com>
30887
30888 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
30889 script/sh/parser.y.
30890 (pkglib_MODULES): Add normal.mod and sh.mod.
30891 (normal_SOURCES): New variable.
30892 (normal_mod_CFLAGS): Likewise.
30893 (normal_mod_LDFLAGS): Likewise.
30894 (sh_mod_SOURCES): Likewise.
30895 (sh_mod_CFLAGS): Likewise.
30896 (sh_mod_LDFLAGS): Likewise.
30897
30898 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
30899 script/sh/lexer.c_DEPENDENCIES.
30900 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
30901 kern/rescue_reader.c and kern/rescue_parser.c.
30902 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
30903 (grub_emu_SOURCES): Change source files.
30904 (pkglib_MODULES): Remove normal.mod.
30905 (normal_SOURCES): Removed.
30906 (normal_mod_CFLAGS): Likewise.
30907 (normal_mod_LDFLAGS): Likewise.
30908 * conf/i386-coreboot.rmk: Likewise.
30909 * conf/i386-efi.rmk: Likewise.
30910 * conf/i386-ieee1276.rmk: Likewise.
30911 * conf/powerpc-ieee1275.rmk: Likewise.
30912 * conf/sparc64-ieee1275.rmk: Likewise.
30913 * conf/x86_64-efi.rmk: Likewise.
30914
30915 * include/grub/command.h (grub_command_execute): New inline function.
30916
30917 * include/grub/menu.h (grub_menu_entry): Removed commands field.
30918
30919 * include/grub/normal.h: Remove <grub/setjmp.h>.
30920 (grub_fs_module_list): Moved to normal/autofs.c.
30921 (grub_exit_env): Removed.
30922 (grub_command_execute): Likewise.
30923 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
30924 parameter script.
30925 (read_command_list): New function declaration.
30926 (read_fs_list): Likewise.
30927
30928 * include/parser.h: Include <grub/reader.h>.
30929 (grub_parser_split_cmdline): Change type of getline parameter.
30930 (grub_parser): New structure.
30931 (grub_parser_class): New variable.
30932 (grub_parser_execute): New function declaration.
30933 (grub_register_rescue_parser): Likewise.
30934 (grub_parser_register): New inline function.
30935 (grub_parser_unregister): Likewise.
30936 (grub_parser_get_current): Likewise.
30937 (grub_parser_set_current): Likewise.
30938
30939 * include/grub/reader.h: New file.
30940 * kern/reader.c: Likewise.
30941 * kern/rescue_parser.c: Likewise.
30942 * kern/rescue_reader.c: Likewise.
30943 * normal/autofs.c: Likewise.
30944 * normal/dyncmd.c: Likewise.
30945
30946 * include/grub/rescue.h: Removed.
30947 * normal/command.h: Likewise.
30948
30949 * include/grub/script.h: Moved to ...
30950 * include/grub/script_sh.h: ... Moved here.
30951 * normal/execute.c: Moved to ...
30952 * script/sh/execute.c: ... Moved here.
30953 * normal/function.c: Moved to ...
30954 * script/sh/function.c: ... Moved here.
30955 * normal/lexer.c: Moved to ...
30956 * script/sh/lexer.c: ... Moved here.
30957 * normal/parser.y: Moved to ...
30958 * script/sh/parser.y: ... Moved here.
30959 * normal/script.c: Moved to ...
30960 * script/sh/script.c: ... Moved here.
30961
30962 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
30963 <grub/reader.h>.
30964 (grub_exit_env): Removed.
30965 (fs_module_list): Moved to normal/autofs.c.
30966 (grub_file_getline): Don't handle comment here.
30967 (free_menu): Skip removed field entry->commands.
30968 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
30969 script parameter.
30970 (read_config_file): Removed nested parameter, change getline function.
30971 (grub_enter_normal_mode): Removed.
30972 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
30973 (read_command_list): Likewise.
30974 (autoload_fs_module): Moved to normal/autofs.c.
30975 (read_fs_list): Likewise.
30976 (reader_nested): New variable.
30977 (grub_normal_execute): Run parser.sh to switch to sh parser.
30978 (grub_cmd_rescue): Removed.
30979 (cmd_normal): Removed.
30980 (grub_cmd_normal): Unregister itself at the beginning. Don't register
30981 rescue command.
30982 (grub_cmdline_run): New function.
30983 (grub_normal_reader_init): Likewise.
30984 (grub_normal_read_line): Likewise.
30985 (grub_env_write_pager): Likewise.
30986 (cmdline): New variable.
30987 (grub_normal_reader): Likewise.
30988 (GRUB_MOD_INIT): Register normal reader and set as current, register
30989 pager hook, register normal command with grub_register_command_prio,
30990 so that it won't show up in command.lst.
30991 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
30992 grub_fs_autoload_hook.
30993
30994 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
30995 (grub_menu_execute_entry): Replace grub_script_execute with
30996 grub_parser_execute, change parameter to grub_command_execute.
30997
30998 * normal/menu_text.c: Remove <grub/script.h>.
30999
31000 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31001 and <grub/parser.h>.
31002 (run): Change editor_getline to use new parser interface. Change
31003 parameter to grub_command_execute.
31004
31005 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31006 <grub/reader.h> and <grub/parser.h>.
31007 (grub_load_normal_mode): Execute normal command.
31008 (grub_main): Call grub_register_core_commands,
31009 grub_register_rescue_parser and grub_register_rescue_reader, use
31010 grub_reader_loop to enter input loop.
31011
31012 * kern/parser.c (grub_parser_split_cmdline): Change type of
31013 getline parameter.
31014 (grub_parser_class): New variable.
31015 (grub_parser_execute): New function.
31016
31017 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31018 * loader/multiboot2.c: Likewise.
31019 * loader/sparc64/ieee1275/linux.c: Likewise.
31020
31021 * util/grub-emu.c (read_command_list): New dummy function.
31022
31023 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31024
31025 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31026 count to 16 for CCISS and IDA.
31027
31028 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31029
31030 * normal/menu_text.c (grub_wait_after_message): Print a newline
31031 after waiting for user input.
31032
31033 * loader/i386/linux.c: Include `<grub/normal.h>'.
31034 (grub_cmd_linux): Improve the error message about `ask' mode, by
31035 waiting for user input so it's not missed (we can do this, since
31036 user requested interaction).
31037
31038 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31039
31040 Added missing lst to grub-mkrescue
31041
31042 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31043 and ${input_dir}/parttool.lst
31044
31045 2009-04-30 David S. Miller <davem@davemloft.net>
31046
31047 * util/hostdisk.c (device_is_wholedisk): New function.
31048 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31049 zero only if device_is_wholedisk() returns true.
31050
31051 * util/hostdisk.c (convert_system_partition_to_system_disk):
31052 Handle virtual disk devices named /dev/vdiskX as found on sparc
31053 and powerpc.
31054
31055 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31056 lettered partition specifier is found, convert to numbered.
31057
31058 2009-04-29 David S. Miller <davem@davemloft.net>
31059
31060 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31061 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31062
31063 * normal/command.c: Add missing newline at end of file.
31064
31065 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31066 warnings.
31067 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31068 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31069 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31070 ihandles have a 32-bit type but need to be stored in a "void *".
31071
31072 2009-04-28 Pavel Roskin <proski@gnu.org>
31073
31074 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31075 not disk. Adjust all dependencies.
31076 (grub_fs_uuid_close): Use grub_device_close(), not
31077 grub_disk_close().
31078
31079 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31080 parent's partition, don't copy it by reference, as it gets freed
31081 on close.
31082
31083 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31084
31085 Preboot hooks support
31086
31087 * commands/boot.c (struct grub_preboot_t): new declaration
31088 (preboots_head): new variable
31089 (preboots_tail): likewise
31090 (grub_loader_register_preboot_hook): new function
31091 (grub_loader_unregister_preboot_hook): likewise
31092 (grub_loader_set): launch preboot hooks
31093 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31094 (grub_loader_register_preboot_hook): new declaration
31095 (grub_loader_unregister_preboot_hook): likewise
31096
31097 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 Warning fix
31100
31101 * disk/scsi.c (grub_scsi_open): added missing cast when
31102 calling grub_dprintf
31103
31104 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31105
31106 Bug and warning fixes
31107
31108 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31109 declaration
31110 * commands/test.c (test_parse): fixed bug with file tests and corrected
31111 declaration of find_file
31112
31113 2009-04-26 Pavel Roskin <proski@gnu.org>
31114
31115 * Makefile.in: Don't install empty manual pages if help2man is
31116 missing. Use help2man option for output, not shell redirection.
31117
31118 2009-04-26 David S. Miller <davem@davemloft.net>
31119
31120 * util/grub-mkdevicemap.c (make_device_map): Add missing
31121 NESTED_FUNC_ATTR to process_device().
31122
31123 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31124
31125 Test command
31126
31127 * commands/test.c: rewritten to use bash-like test
31128
31129 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31130
31131 Parttool autoloading and improvements
31132
31133 * Makefile.in (pkglib_DATA): add parttool.lst
31134 (parttool.lst): new target
31135 * genmk.rb: generate parttool-*
31136 (CLEANFILES): add #{parttool}
31137 (PARTTOOLFILES): new variable
31138 * genparttoollist.sh: new file
31139 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31140 (grub_pcpart_type): likewise
31141 * commands/parttool.c (helpmsg): new variable
31142 (grub_cmd_parttool): output help if not enough arguments are supplied
31143 autoload modules
31144 (GRUB_MOD_INIT(parttool)): use helpmsg
31145
31146 2009-04-24 David S. Miller <davem@davemloft.net>
31147
31148 Avoiding opening same device multiple times in device iterator.
31149
31150 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31151 and use it to build a list of partitions in iterate_disk() and
31152 iterate_partition().
31153
31154 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31155 on disk->data.
31156
31157 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31158 grub_devalias_iterate() result instead of unconditional 0.
31159 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31160 Also, capture hook return value, either directly or via
31161 grub_children_iterate(), and propagate to caller.
31162 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31163 grub_children_iterate): Return value is now 'int' instead of
31164 'grub_err_t'.
31165 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31166 like a proper iterator, stopping when hooks return non-zero.
31167 (grub_devalias_iterate): Likewise.
31168
31169 2009-04-23 David S. Miller <davem@davemloft.net>
31170
31171 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31172
31173 2009-04-22 David S. Miller <davem@davemloft.net>
31174
31175 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31176 is larger than address_cells, use that value for address_cells too.
31177
31178 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31179 IEEE1275_MAX_PATH_LEN): Define.
31180 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31181 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31182 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31183 'devtype'. Explicitly NULL terminate devalias expansion.
31184
31185 * util/sparc64/ieee1275/misc.c: New file.
31186 * util/sparc64/ieee1275/grub-setup.c: New file.
31187 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31188 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31189 * util/sparc64/ieee1275/grub-install.in: New file.
31190 * util/ieee1275/ofpath.c: New file.
31191 * util/ieee1275/devicemap.c: New file.
31192 * util/devicemap.c: New file.
31193 * util/deviceiter.c: New file.
31194 * kern/sparc64/ieee1275/init.c: New file.
31195 * include/grub/util/ofpath.h: New file.
31196 * include/grub/util/deviceiter.h: New file.
31197 * util/grub-mkdevicemap.c: Include deviceiter.h.
31198 Implement using grub_util_emit_devicemap_entry and
31199 grub_util_iterate_devices.
31200 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31201 util/devicemap.c into grub-mkdevicemap
31202 * conf/i386-efi.rmk: Likewise.
31203 * conf/i386-ieee1275.rmk: Likewise.
31204 * conf/i386-pc.rmk: Likewise.
31205 * conf/powerpc-ieee1275.rmk: Likewise.
31206 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31207 images and installation utilities. Build kernel as image
31208 instead of as elf binary. Use common rules as much as possible.
31209
31210 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31211
31212 Correct GPT definition
31213
31214 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31215 of "attrib" member
31216
31217 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31218
31219 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31220
31221 2009-04-19 David S. Miller <davem@davemloft.net>
31222
31223 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31224 (grub_rescue_cmd_linux): Rename to...
31225 (grub_cmd_linux): and fix prototype.
31226 (grub_rescue_cmd_initrd): Rename to...
31227 (grub_cmd_initrd): and fix prototype.
31228 (cmd_linux, cmd_initrd): New.
31229 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31230 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31231
31232 2009-04-17 Pavel Roskin <proski@gnu.org>
31233
31234 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31235 format.
31236 (grub_ohci_transfer): Likewise.
31237
31238 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31239
31240 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31241 return without a value. Fix inconsistent indentation.
31242
31243 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31244 match struct grub_fs.
31245
31246 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31247 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31248 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31249 * commands/lspci.c (grub_lspci_iter): Likewise.
31250
31251 2009-04-16 Bean <bean123ch@gmail.com>
31252
31253 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31254 value.
31255
31256 2009-04-15 Pavel Roskin <proski@gnu.org>
31257
31258 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31259 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31260 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31261 definitions.
31262
31263 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31264
31265 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31266 that no multiple data or metadata areas are supported and `Unknown
31267 metadata header'.
31268
31269 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31270
31271 Move loader out of the kernel
31272
31273 * kern/loader.c: moved to ...
31274 * commands/boot.c: ... moved here
31275 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31276 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31277 * include/grub/kernel.h (grub_machine_fini): export
31278 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31279 (grub_loader_set): likewise
31280 (grub_loader_unset): likewise
31281 (grub_loader_boot): likewise
31282 * conf/common.rmk: new module boot.mod
31283 (pkglib_MODULES): add boot.mod
31284 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31285 (grub_emu_SOURCES): likewise
31286 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31287 (grub_emu_SOURCES): likewise
31288 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31289 (grub_emu_SOURCES): likewise
31290 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31291 (grub_emu_SOURCES): likewise
31292 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31293 (grub_emu_SOURCES): likewise
31294 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31295 (grub_emu_SOURCES): likewise
31296 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31297 (grub_emu_SOURCES): likewise
31298
31299 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31300
31301 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31302
31303 * kern/misc.c (grub_itoa): Removed function
31304 (grub_ltoa): likewise
31305 (grub_vsprintf): use grub_lltoa
31306
31307 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31308
31309 Restore grub-emu
31310
31311 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31312 * conf/i386-coreboot.rmk: likewise
31313 * conf/i386-ieee1275.rmk: likewise
31314 * conf/powerpc-ieee1275.rmk: likewise
31315
31316 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31317
31318 * INSTALL: Add that `./autogen.sh' needs to be run before
31319 `./configure.'.
31320
31321 2009-04-14 Bean <bean123ch@gmail.com>
31322
31323 * Makefile.in (pkglib_DATA): Add handler.lst.
31324 (handler.lst): New rule.
31325
31326 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31327 * conf/i386-coreboot.rmk: Likewise.
31328 * conf/i386-ieee1275.rmk: Likewise.
31329 * conf/i386-efi.rmk: Likewise.
31330 * conf/x86_64-efi.rmk: Likewise.
31331 * conf/powerpc-ieee1275.rmk: Likewise.
31332 * conf/sparc64-ieee1275.rmk: Likewise.
31333
31334 * genhandlerlist.sh: New file.
31335
31336 * genmk.rb: Add rules to generate handler.lst.
31337
31338 * include/grub/normal.h (grub_file_getline): New function definition.
31339 (read_handler_list): Likewise.
31340 (free_handler_list): Likewise.
31341
31342 * include/grub/term.h (grub_term_register_input): Add name parameter
31343 for auto generation of handler.lst.
31344 (grub_term_register_output): Likewise.
31345
31346 * normal/handler.c: New file.
31347
31348 * normal/main.c (get_line): Renamed to grub_file_getline.
31349 (read_config_file): Use the newly renamed grub_file_getline.
31350 (read_command_list): Likewise.
31351 (read_fs_list): Likewise.
31352 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31353 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31354
31355 * term/efi/console.c (grub_console_init): Add name parameter for auto
31356 generation of handler.lst.
31357 * term/gfxterm.c: Likewise.
31358 * term/i386/pc/at_keyboard.c: Likewise.
31359 * term/i386/pc/console.c: Likewise.
31360 * term/i386/pc/serial.c: Likewise.
31361 * term/i386/pc/vesafb.c: Likewise.
31362 * term/i386/pc/vga.c: Likewise.
31363 * term/i386/pc/vga_text.c: Likewise.
31364 * term/ieee1275/ofconsole.c: Likewise.
31365 * term/usb_keyboard.c: Likewise.
31366
31367 2009-04-14 Bean <bean123ch@gmail.com>
31368
31369 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31370 properly with null character.
31371
31372 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31373
31374 * configure: Remove.
31375 * config.h.in: Likewise.
31376 * stamp-h.in: Likewise.
31377 * DISTLIST: Likewise.
31378 * conf/common.mk: Likewise.
31379 * conf/i386-coreboot.mk: Likewise.
31380 * conf/i386-efi.mk: Likewise.
31381 * conf/i386-ieee1275.mk: Likewise.
31382 * conf/i386.mk: Likewise.
31383 * conf/i386-pc.mk: Likewise.
31384 * conf/powerpc-ieee1275.mk: Likewise.
31385 * conf/sparc64-ieee1275.mk: Likewise.
31386 * conf/x86_64-efi.mk: Likewise.
31387
31388 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31389 develop on GRUB.
31390
31391 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31392 David S. Miller <davem@davemloft.net>
31393
31394 * util/hostdisk.c (make_device_name): Fix buffer length
31395 calculations.
31396
31397 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31398
31399 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31400 <sys/param.h> and <sys/sysctl.h>.
31401 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31402 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31403 opening the device and reset them afterwards.
31404
31405 2009-04-13 Pavel Roskin <proski@gnu.org>
31406
31407 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31408 Reported by John Stanley <jpsinthemix@verizon.net>
31409
31410 2009-04-13 Robert Millan <rmh@aybabtu.com>
31411
31412 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31413 that name for menuentries when appropriate.
31414
31415 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31416
31417 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31418
31419 2009-04-13 Robert Millan <rmh@aybabtu.com>
31420
31421 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31422 to Linux, simply abort telling the user it's no longer supported.
31423
31424 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31425
31426 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31427 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31428 `freebsd_loadenv' only when devices.hints exist.
31429
31430 2009-04-13 Pavel Roskin <proski@gnu.org>
31431
31432 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31433
31434 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31435
31436 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31437 partition number.
31438 (grub_drive): Likewise.
31439
31440 2009-04-13 David S. Miller <davem@davemloft.net>
31441
31442 * kern/sparc64/ieee1275/ieee1275.c: New file.
31443 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31444 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31445 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31446 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31447 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31448 grub_ieee1275_alloc_physmem): Declare new exported functions.
31449
31450 * include/grub/sparc64/ieee1275/loader.h: New file.
31451 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31452 * include/grub/sparc64/kernel.h: Likewise.
31453 * loader/sparc64/ieee1275/linux.c: Likewise.
31454
31455 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31456 (grub_fstest_SOURCES): Likewise.
31457
31458 * util/hostdisk.c (make_device_name): Do not make any assumptions
31459 about the length of drive names.
31460
31461 * kern/dl.c (grub_dl_load_file): Close file immediately when
31462 we are done using it.
31463
31464 2009-04-12 David S. Miller <davem@davemloft.net>
31465
31466 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31467 values. Noticed by Pavel Roskin.
31468
31469 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31470 target compiler.
31471
31472 * genmk.rb: Add more flexible image type specification, also
31473 pass --strip-unneeded to objcopy.
31474 * conf/i386-pc.rmk: Use *_FORMAT.
31475 * conf/i386-pc.mk: Rebuilt.
31476
31477 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31478 (OFDISK_HASH_SZ): Define.
31479 (ofdisk_hash): New hash table.
31480 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31481 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31482 instead of device phandle which is not unique.
31483
31484 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31485 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31486 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31487 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31488 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31489 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31490 GRUB_KERNEL_MACHINE_DATA_END): Define.
31491 (grub_kernel_image_size, grub_total_module_size): Declare.
31492
31493 2009-04-12 Pavel Roskin <proski@gnu.org>
31494
31495 * configure.ac: Change the logic when we check for target tools.
31496 Do it when the target is specified and it's different from the
31497 specified value of the host.
31498
31499 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31500
31501 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31502 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31503 GNU/kFreeBSD. Check if a device is a character device. Use
31504 DIOCGMEDIASIZE to get the size.
31505 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31506 support for GNU/kFreeBSD.
31507 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31508 is a character device instead of a block device. Add support for
31509 FreeBSD device names.
31510
31511 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31512 is a character device instead of a block device.
31513
31514 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31515 is a character device instead of a block device.
31516
31517 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31518
31519 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31520 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31521 FreeBSD. Check if a device is a character device. Use
31522 DIOCGMEDIASIZE to get the size.
31523 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31524 support for FreeBSD.
31525 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31526 is a character device instead of a block device. Add support for
31527 FreeBSD device names.
31528
31529 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31530 a character device instead of a block device.
31531 (grub_util_check_char_device): New function.
31532
31533 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31534 a character device instead of a block device.
31535
31536 * include/grub/util/getroot.h (grub_util_check_char_device): New
31537 prototype.
31538
31539 2009-04-11 David S. Miller <davem@davemloft.net>
31540
31541 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31542 static libgcc.
31543 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31544 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31545 function, if present.
31546 (__bswapdi2): Likewise.
31547
31548 * include/grub/sparc64/ieee1275/boot.h: New file.
31549 * boot/sparc64/ieee1275/boot.S: Likewise.
31550 * boot/sparc64/ieee1275/diskboot.S: Likewise.
31551
31552 * kern/misc.c (grub_ltoa): New function.
31553 (grub_vsprintf): Use it to format 'long' integers.
31554
31555 2009-04-10 David S. Miller <davem@davemloft.net>
31556
31557 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
31558 slots are of type grub_ieee1275_cell_t.
31559 (grub_nand_read): Likewise.
31560 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
31561 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
31562 macros are used to compare values in arg/ret block of the call.
31563 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31564 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
31565 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
31566 grub_ieee1275_instance_to_path, grub_ieee1275_write,
31567 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
31568 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
31569 grub_ieee1275_close, grub_ieee1275_set_property,
31570 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
31571 grub_ieee1275_cell_t.
31572 * kern/ieee1275/openfw.c (grub_map): Likewise.
31573 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
31574 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
31575
31576 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
31577 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
31578 (grub_devalias_iterate): Likewise.
31579
31580 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
31581
31582 UFS improvements
31583
31584 * fs/ufs.c (INODE_NBLOCKS): new definition
31585 (struct grub_ufs_dirent): added fields for non-BSD dirents
31586 (grub_ufs_get_file_block): fixed double indirect handling
31587 (grub_ufs_lookup_symlink): use more robust way to determine whether
31588 symlink is inline
31589 (grub_ufs_find_file): support for non-BSD dirents
31590 (grub_ufs_dir): support for non-BSD dirents
31591
31592 2009-04-10 Bean <bean123ch@gnail.com>
31593
31594 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
31595 attribute, otherwise the size would be wrong for i386 platform.
31596
31597 * include/grub/pci.h (grub_pci_read_word): New inline function.
31598 (grub_pci_read_byte): Likewise.
31599 (grub_pci_write): Likewise.
31600 (grub_pci_write_word): Likewise.
31601 (grub_pci_write_byte): Likewise.
31602
31603 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
31604
31605 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
31606 (find_framebuf): Scan pci to locate the frame buffer address.
31607
31608 * commands/efi/fixvideo.c: New file.
31609
31610 * commands/efi/loadbios.c: Likewise.
31611
31612 * commands/memrw.c: Likewise.
31613
31614 * util/grub-dumpbios.in: Likewise.
31615
31616 * conf/common.rmk (grub-dumpbios): New utility.
31617 (pkglib_MODULES): New module memrw.mod.
31618 (memrw_mod_SOURCE): New macro.
31619 (memrw_mod_CFLAGS): Likewise.
31620 (memrw_mod_LDFLAGS): Likewise.
31621
31622 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
31623 fixvideo.mod.
31624 (loadbios_mod_SOURCE): New macro.
31625 (loadbios_mod_CFLAGS): Likewise.
31626 (loadbios_mod_LDFLAGS): Likewise.
31627 (fixvideo_mod_SOURCE): Likewise.
31628 (fixvideo_mod_CFLAGS): Likewise.
31629 (fixvideo_mod_LDFLAGS): Likewise.
31630
31631 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
31632 fixvideo.mod.
31633 (loadbios_mod_SOURCE): New macro.
31634 (loadbios_mod_CFLAGS): Likewise.
31635 (loadbios_mod_LDFLAGS): Likewise.
31636 (fixvideo_mod_SOURCE): Likewise.
31637 (fixvideo_mod_CFLAGS): Likewise.
31638 (fixvideo_mod_LDFLAGS): Likewise.
31639
31640 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
31641
31642 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
31643
31644 2009-04-07 David S. Miller <davem@davemloft.net>
31645
31646 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
31647 support for R_SPARC_OLO10 relocations. Fix compile warning for
31648 R_SPARC_WDISP30 case.
31649 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
31650
31651 2009-04-06 Pavel Roskin <proski@gnu.org>
31652
31653 * include/grub/misc.h (ARRAY_SIZE): New macro.
31654 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
31655 New macro.
31656 * loader/i386/linux.c (allocate_pages): Use free_pages().
31657 (grub_linux_unload): Don't use free_pages().
31658 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
31659 wrong index. Treat all other modes as text modes.
31660 (grub_cmd_linux): Initialize vid_mode unconditionally to
31661 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
31662
31663 * commands/help.c (print_command_help): Use cmd->prio, not
31664 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
31665
31666 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
31667
31668 Parttool
31669
31670 * parttool/pcpart.c: new file
31671 * commands/parttool.c: likewise
31672 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
31673 (parttool_mod_SOURCES): new variable
31674 (parttool_mod_CFLAGS): likewise
31675 (parttool_mod_LDFLAGS): likewise
31676 (pcpart_mod_SOURCES): likewise
31677 (pcpart_mod_CFLAGS): likewise
31678 (pcpart_mod_LDFLAGS): likewise
31679 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
31680 and parttool/pcpart.c
31681 * conf/i386-efi.rmk: likewise
31682 * conf/i386-ieee1275.rmk: likewise
31683 * conf/i386-pc.rmk: likewise
31684 * conf/powerpc-ieee1275.rmk: likewise
31685 * conf/sparc64-ieee1275.rmk: likewise
31686 * conf/x86_64-ieee1275.rmk: likewise
31687
31688 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31689
31690 Support for mtime and further expandability of dir command
31691
31692 * include/grub/lib/datetime.h: moved to ...
31693 * include/grub/datetime.h: ... moved here and added
31694 declaration of grub_unixtime2datetime. All users updated
31695 * include/grub/fs.h: new syntax for dir and mtime functions in
31696 struct grub_fs
31697 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
31698 and GRUB_FSHELP_FLAGS_MASK
31699 * commands/ls.c (grub_ls_list_files): Write mtime in long format
31700 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
31701 (grub_ext2_mtime): new function
31702 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
31703 (grub_hfsplus_mtime): new function
31704 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
31705 (GRUB_UFS_ATTR_FILE): likewise
31706 (GRUB_UFS_ATTR_LNK): likewise
31707 (struct grub_ufs_sblock): new fields mtime
31708 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
31709 all users updated
31710 (grub_ufs_dir): mtime support
31711 (grub_ufs_mtime): new function
31712 * fs/affs.c (grub_affs_dir): use new dir syntax
31713 * fs/afs.c (grub_afs_dir): likewise
31714 * fs/cpio.c (grub_cpio_dir): likewise
31715 * fs/fat.c (grub_fat_find_dir): likewise
31716 * fs/hfs.c (grub_hfs_dir): likewise
31717 * fs/iso9660.c (grub_iso9660_dir): likewise
31718 * fs/jfs.c (grub_jfs_dir): likewise
31719 * fs/minix.c (grub_minix_dir): likewise
31720 * fs/ntfs.c (grub_ntfs_dir): likewise
31721 * fs/reiserfs.c (grub_reiserfs_dir): likewise
31722 * fs/sfs.c (grub_sfs_dir): likewise
31723 * fs/xfs.c (grub_xfs_dir): likewise
31724 * util/hostfs.c (grub_hostfs_dir): likewise
31725 * lib/datetime.c: moved to ...
31726 * normal/datetime.c: ... moved here
31727 (grub_unixtime2datetime): new function
31728 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
31729 * normal/completion.c (iterate_dir): use new dir syntax
31730 * normal/misc.c (grub_normal_print_device_info): tell the
31731 last modification time of a volume
31732 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
31733 * conf/common.rmk: added lib/datetime.c to ls.mod
31734 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
31735 (normal_mod_SOURCES): likewise
31736 (datetime_mod_SOURCES): Removed lib/datetime.c
31737 * conf/i386-efi.rmk: likewise
31738 * conf/i386-ieee1275.rmk: likewise
31739 * conf/i386-pc.rmk: likewise
31740 * conf/powerpc-ieee1275.rmk: likewise
31741 * conf/sparc64-ieee1275.rmk: likewise
31742 * conf/x86_64-efi.rmk: likewise
31743
31744 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31745
31746 Trim trailing spaces in FAT label and support mtools-like labels
31747
31748 * fs/fat.c (grub_fat_iterate_dir): New function based
31749 on grub_fat_find_dir
31750 (grub_fat_find_dir): use grub_fat_iterate_dir
31751 (grub_fat_label): likewise
31752
31753 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
31754
31755 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
31756 and command.h
31757 remove extraneous kernel_elf_HEADERS
31758
31759 2009-04-04 Bean <bean123ch@gnail.com>
31760
31761 * include/grub/util/misc.h: Add dummy function fsync for mingw.
31762
31763 * util/misc.c: Likewise.
31764
31765 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31766
31767 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
31768 instead of grub_printf.
31769
31770 2009-04-03 Robert Millan <rmh@aybabtu.com>
31771
31772 * loader/i386/linux.c (grub_linux_setup_video): Fill
31773 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
31774 values from `mode info' structure instead of hardcoded
31775 values.
31776
31777 2009-04-01 Pavel Roskin <proski@gnu.org>
31778
31779 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
31780 unused now.
31781 * genmk.rb: Likewise.
31782 * configure.ac: Likewise.
31783
31784 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
31785
31786 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
31787 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
31788
31789 2009-04-01 David S. Miller <davem@davemloft.net>
31790
31791 * normal/sparc64/setjmp.S: Fix setjmp implementation.
31792 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
31793 (grub_setjmp): Mark with 'returns_twice' attribute.
31794 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
31795 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
31796 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
31797
31798 2009-04-01 Robert Millan <rmh@aybabtu.com>
31799
31800 Reapply fix from 2008-07-28 which was accidentally reverted; also
31801 perform the same fix to a similar check in same function.
31802
31803 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31804 with the same number are found, just use issue a warning with
31805 grub_dprintf(), as this error has been reported to be non-fatal.
31806
31807 2009-03-31 Pavel Roskin <proski@gnu.org>
31808
31809 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
31810 for cross-compilation.
31811
31812 2009-03-30 Robert Millan <rmh@aybabtu.com>
31813
31814 Fix i386-ieee1275 build.
31815
31816 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
31817 Remove declaration.
31818
31819 2009-03-30 Pavel Roskin <proski@gnu.org>
31820
31821 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
31822 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
31823 zero-terminated, rely only on the strlen value. Fix comparison
31824 of strings differing in length.
31825
31826 2009-03-30 Robert Millan <rmh@aybabtu.com>
31827
31828 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
31829 checking for abi version. Improve error messages on BIOS to notify
31830 user about `linux16' command.
31831
31832 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
31833
31834 Leak fixes
31835
31836 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
31837 in case of collision
31838 * disk/scsi.c (grub_scsi_open): free scsi in case of error
31839
31840 2009-03-29 Robert Millan <rmh@aybabtu.com>
31841
31842 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
31843 set `vid_mode' accordingly.
31844 (grub_linux_boot): Process `vid_mode' and set video mode.
31845
31846 2009-03-29 Robert Millan <rmh@aybabtu.com>
31847
31848 * util/grub.d/10_linux.in (linux_entry): New function.
31849 Factorize generation of Linux boot entries.
31850
31851 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
31852
31853 Make the format of Environment Block plain text. The boot loader
31854 part is not tested well yet.
31855
31856 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
31857 (buffer): Removed.
31858 (envblk): Likewise.
31859 (usage): Remove "info" and "clear". Add "unset". Update the
31860 description of "set", as this does not delete variables any
31861 longer.
31862 (create_envblk_file): Complete rewrite.
31863 (open_envblk_file): Likewise.
31864 (cmd_info): Removed.
31865 (cmd_list): Likewise.
31866 (cmd_set): Likewise.
31867 (cmd_clear): Likewise.
31868 (list_variables): New function.
31869 (write_envblk): Likewise.
31870 (set_variables): Likewise.
31871 (unset_variables): Likewise.
31872 (main): Complete rewrite.
31873
31874 * commands/loadenv.c (buffer): Removed.
31875 (envblk): Likewise.
31876 (open_envblk_file): New function.
31877 (read_envblk_file): Complete rewrite.
31878 (grub_cmd_load_env): Likewise.
31879 (grub_cmd_list_env): Likewise.
31880 (struct blocklist): New struct.
31881 (free_blocklists): New function.
31882 (check_blocklists): Likewise.
31883 (write_blocklists): Likewise.
31884 (grub_cmd_save_env): Complete rewrite.
31885
31886 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
31887 a plain text signature.
31888 (GRUB_ENVBLK_MAXLEN): Removed.
31889 (struct grub_envblk): Complete rewrite.
31890 (grub_envblk_find): Removed.
31891 (grub_envblk_insert): Likewise.
31892 (grub_envblk_open): New prototype.
31893 (grub_envblk_set): Likewise.
31894 (grub_envblk_delete): Put const to VALUE.
31895 (grub_envblk_iterate): Put const to NAME and VALUE.
31896 (grub_envblk_close): New prototype.
31897 (grub_envblk_buffer): New inline function.
31898 (grub_envblk_size): Likewise.
31899
31900 * lib/envblk.c: Include grub/mm.h.
31901 (grub_env_find): Removed.
31902 (grub_envblk_open): New function.
31903 (grub_envblk_close): Likewise.
31904 (escaped_value_len): Likewise.
31905 (find_next_line): Likewise.
31906 (grub_envblk_insert): Removed.
31907 (grub_envblk_set): New function.
31908 (grub_envblk_delete): Complete rewrite.
31909 (grub_envblk_iterate): Likewise.
31910
31911 2009-03-28 Robert Millan <rmh@aybabtu.com>
31912
31913 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
31914 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
31915 variables. Use 16-bit loader.
31916 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
31917 loader.
31918 * kern/i386/loader.S (grub_linux_boot): Rename to ...
31919 (grub_linux16_boot): ... this. Update all users.
31920 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
31921 (grub_linux_boot): ... this. Update all users.
31922
31923 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
31924 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
31925 commands to `linux16' and `initrd16'.
31926 (GRUB_MOD_FINI(linux)): Rename to ...
31927 (GRUB_MOD_FINI(linux16)): ... this.
31928
31929 2009-03-24 Pavel Roskin <proski@gnu.org>
31930
31931 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
31932 not just for compilation.
31933
31934 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
31935
31936 Move multiboot helper out of kernel
31937
31938 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
31939 `loader/i386/multiboot_helper.S'.
31940 * conf/i386-coreboot.rmk: Likewise
31941 * conf/i386-ieee1275.rmk: Likewise
31942
31943 * kern/i386/loader.S: Move multiboot helpers from here...
31944 * loader/i386/multiboot_helper.S: ...moved here
31945 * include/grub/i386/loader.h: Move declarations of multiboot
31946 helpers from here...
31947 * include/grub/i386/multiboot.h: ...moved here
31948 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
31949
31950 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31951
31952 * kern/env.c (grub_env_context_open): Added an argument to specify
31953 whether a new context inherits exported variables from current
31954 one. This is useful when making a sandbox to interpret a config
31955 file.
31956 All callers updated.
31957
31958 * include/grub/env.h (grub_env_context_open): Updated the prototype.
31959
31960 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31961
31962 * kern/env.c (grub_env_context_close): Fix memory leaks.
31963
31964 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31965
31966 * normal/main.c (grub_normal_execute): Added an argument
31967 BATCH to specify if an interactive interface should be provided
31968 after reading a config file.
31969 All callers updated.
31970 (read_command_list): Prevent being executed twice.
31971 (read_fs_list): Likewise.
31972
31973 * include/grub/normal.h (grub_normal_execute): Updated the
31974 prototype.
31975
31976 2009-03-22 Pavel Roskin <proski@gno.org>
31977
31978 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
31979 _start.
31980 * kern/i386/pc/startup.S: Likewise.
31981 * kern/i386/efi/startup.S: Likewise.
31982 * kern/i386/ieee1275/startup.S: Likewise.
31983 * kern/i386/coreboot/startup.S: Likewise.
31984 * kern/x86_64/efi/startup.S: Likewise.
31985
31986 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
31987 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
31988 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
31989
31990 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
31991
31992 Bugfixes in multiboot for bugs uncovered by solaris kernel.
31993
31994 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
31995 limit detection.
31996 Use vaddr of correct segment for entry_point.
31997
31998 2009-03-21 Bean <bean123ch@gmail.com>
31999
32000 * commands/blocklist.c: Add include file <grub/command.h>, remove
32001 <grub/normal.h> and <grub/arg.h>.
32002 (grub_cmd_blocklist): Use the new command interface.
32003 (GRUB_MOD_INIT): Likewise.
32004 (GRUB_MOD_FINI): Likewise.
32005 * commands/boot.c: Likewise.
32006 * commands/cat.c: Likewise.
32007 * commands/cmp.c: Likewise.
32008 * commands/configfile.c: Likewise.
32009 * commands/crc.c: Likewise.
32010 * commands/echo.c: Likewise.
32011 * commands/halt.c: Likewise.
32012 * commands/handler.c: Likewise.
32013 * commands/hdparm.c: Likewise.
32014 * commands/help.c: Likewise.
32015 * commands/hexdump.c: Likewise.
32016 * commands/loadenv.c: Likewise.
32017 * commands/ls.c: Likewise.
32018 * commands/lsmmap.c: Likewise.
32019 * commands/lspci.c: Likewise.
32020 * commands/loadenv.c: Likewise.
32021 * commands/read.c: Likewise.
32022 * commands/reboot.c: Likewise.
32023 * commands/search.c: Likewise.
32024 * commands/sleep.c: Likewise.
32025 * commands/test.c: Likewise.
32026 * commands/usbtest.c: Likewise.
32027 * commands/videotest.c: Likewise.
32028 * commands/i386/cpuid.c: Likewise.
32029 * commands/i386/pc/halt.c: Likewise.
32030 * commands/i386/pc/play.c: Likewise.
32031 * commands/i386/pc/pxecmd.c: Likewise.
32032 * commands/i386/pc/vbeinfo.c: Likewise.
32033 * commands/i386/pc/vbetest.c: Likewise.
32034 * commands/ieee1275/suspend.c: Likewise.
32035 * disk/loopback.c: Likewise.
32036 * font/font_cmd.c: Likewise.
32037 * hello/hello.c: Likewise.
32038 * loader/efi/appleloader.c: Likewise.
32039 * loader/efi/chainloader.c: Likewise.
32040 * loader/i386/bsd.c: Likewise.
32041 * loader/i386/efi/linux.c: Likewise.
32042 * loader/i386/ieee1275/linux.c: Likewise.
32043 * loader/i386/linux.c: Likewise.
32044 * loader/i386/pc/chainloader.c: Likewise.
32045 * loader/i386/pc/linux.c: Likewise.
32046 * loader/powerpc/ieee1275/linux.c: Likewise.
32047 * loader/multiboot_loader.c: Likewise.
32048 * term/gfxterm.c: Likewise.
32049 * term/i386/pc/serial.c: Likewise.
32050 * term/terminfo.c: Likewise.
32051
32052 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32053 * term/i386/pc/vga.c: Likewise.
32054 * video/readers/jpeg.c: Likewise.
32055 * video/readers/png.c: Likewise.
32056 * video/readers/tga.c: Likewise.
32057
32058 * util/grub-fstest (cmd_loopback): Removed.
32059 (cmd_blocklist): Likewise.
32060 (cmd_ls): Likewise.
32061 (grub_register_command): Likewise.
32062 (grub_unregister_command): Likewise.
32063 (execute_command): Use grub_command_find to locate command and execute
32064 it.
32065
32066 * include/grub/efi/chainloader.h: Removed.
32067 * loader/efi/chainloader_normal.c: Likewise.
32068 * loader/i386/bsd_normal.c: Likewise.
32069 * loader/i386/pc/chainloader_normal.c: Likewise.
32070 * loader/i386/pc/multiboot_normal.c: Likewise.
32071 * loader/linux_normal.c: Likewise.
32072 * loader/multiboot_loader_normal.c: Likewise.
32073 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32074
32075 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32076 and grub_register_command_p1.
32077
32078 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32079 kern/command.c, lib/arg.c and commands/extcmd.c.
32080 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32081 (minicmd_mod_SOURCES): New variable.
32082 (minicmd_mod_CFLAGS): Likewise.
32083 (minicmd_mod_LDFLAGS): Likewise.
32084 (extcmd_mod_SOURCES): Likewise.
32085 (extcmd_mod_CFLAGS): Likewise.
32086 (extcmd_mod_LDFLAGS): Likewise.
32087 (boot_mod_SOURCES): Removed.
32088 (boot_mod_CFLAGS): Likewise.
32089 (boot_mod_LDFLAGS): Likewise.
32090
32091 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32092 kern/corecmd.c.
32093 (kernel_img_HEADERS): Add command.h.
32094 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32095 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32096 and lib/arg.c.
32097 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32098 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32099 remove the corresponding normal mode command.
32100 (normal_mod_SOURCES): Remove normal/arg.c.
32101 * conf/i386-coreboot.rmk: Likewise.
32102 * conf/i386-efi.rmk: Likewise.
32103 * conf/i386-ieee1275.rmk: Likewise.
32104 * conf/powerpc-ieee1275.rmk: Likewise.
32105 * conf/x86_64-efi.rmk: Likewise.
32106
32107 * include/grub/arg.h: Move from here ...
32108 * include/grub/lib/arg.h: ... to here.
32109
32110 * normal/arg.c: Move from here ...
32111 * lib/arg.c: ... to here.
32112
32113 * commands/extcmd.c: New file.
32114 * commands/minicmd.c: Likewise.
32115 * include/grub/command.h: Likewise.
32116 * include/grub/extcmd.h: Likewise.
32117 * kern/command.c: Likewise.
32118 * kern/corecmd.c: Likewise.
32119
32120 * kern/list.c (grub_list_iterate): Return int instead of void.
32121 (grub_list_insert): New function.
32122 (grub_prio_list_insert): Likewise.
32123
32124 * kern/rescue.c (grub_rescue_command): Removed.
32125 (grub_rescue_command_list): Likewise.
32126 (grub_rescue_register_command): Likewise.
32127 (grub_rescue_unregister_command): Likewise.
32128 (grub_rescue_cmd_boot): Move to minicmd.c
32129 (grub_rescue_cmd_help): Likewise.
32130 (grub_rescue_cmd_info): Likewise.
32131 (grub_rescue_cmd_boot): Likewise.
32132 (grub_rescue_cmd_testload): Likewise.
32133 (grub_rescue_cmd_dump): Likewise.
32134 (grub_rescue_cmd_rmmod): Likewise.
32135 (grub_rescue_cmd_lsmod): Likewise.
32136 (grub_rescue_cmd_exit): Likewise.
32137 (grub_rescue_print_devices): Moved to corecmd.c.
32138 (grub_rescue_print_files): Likewise.
32139 (grub_rescue_cmd_ls): Likewise.
32140 (grub_rescue_cmd_insmod): Likewise.
32141 (grub_rescue_cmd_set): Likewise.
32142 (grub_rescue_cmd_unset): Likewise.
32143 (attempt_normal_mode): Use grub_command_find to get normal module.
32144 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32145 commands, remove grub_rescue_register_command calls.
32146
32147 * normal/command.c (grub_register_command): Removed.
32148 (grub_unregister_command): Likewise.
32149 (grub_command_find): Likewise.
32150 (grub_iterate_commands): Likewise.
32151 (rescue_command): Likewise.
32152 (export_command): Moved to corecmd.c.
32153 (set_command): Removed.
32154 (unset_command): Likewise.
32155 (insmod_command): Likewise.
32156 (rmmod_command): Likewise.
32157 (lsmod_command): Likewise.
32158 (grub_command_init): Likewise.
32159
32160 * normal/completion.c (iterate_command): Use cmd->prio to check for
32161 active command.
32162 (complete_arguments): Use grub_extcmd_t structure to find options.
32163 (grub_normal_do_completion): Change function grub_iterate_commands to
32164 grub_command_iterate.
32165
32166 * normal/execute.c (grub_script_execute_cmd): No need to parse
32167 argument here.
32168
32169 * normal/main.c (grub_dyncmd_dispatcher): New function.
32170 (read_command_list): Register unload commands as dyncmd.
32171 (grub_cmd_normal): Use new command interface, register rescue,
32172 unregister normal at entry, register normal, unregister rescue at exit.
32173
32174 * include/grub/list.h (grub_list_test_t): New type.
32175 (grub_list_iterate): Return int instead of void.
32176 (grub_list_insert): New function.
32177 (GRUB_AS_NAMED_LIST_P): New macro.
32178 (GRUB_AS_PRIO_LIST): Likewise.
32179 (GRUB_AS_PRIO_LIST_P): Likewise.
32180 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32181 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32182 (grub_prio_list): New structure.
32183 (grub_prio_list_insert): New function.
32184 (grub_prio_list_remove): New inline function.
32185
32186 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32187 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32188 (GRUB_COMMAND_FLAG_MENU): Likewise.
32189 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32190 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32191 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32192 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32193 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32194 (grub_command): Likewise.
32195 (grub_register_command): Likewise.
32196 (grub_command_find): Likewise.
32197 (grub_iterate_commands): Likewise.
32198 (grub_command_init): Likewise.
32199 (grub_arg_parse): Likewise.
32200 (grub_arg_show_help): Likewise.
32201
32202 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32203 (grub_rescue_unregister_command): Likewise.
32204
32205 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32206 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32207 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32208
32209 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32210 grub_rescue_cmd_initrd.
32211 * include/grub/i386/loader.h: Likewise.
32212 * include/grub/x86_64/loader.h: Likewise.
32213
32214 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32215
32216 2009-03-21 Bean <bean123ch@gmail.com>
32217
32218 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32219 instead of stat in mingw environment.
32220
32221 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32222
32223 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32224
32225 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32226 AC_CONFIG_LINKS.
32227
32228 2009-03-21 Bean <bean123ch@gmail.com>
32229
32230 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32231 out of range error.
32232
32233 2009-03-18 Michel Dänzer <michel@daenzer.net>
32234
32235 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32236 checking inode flags for EXT4_EXTENTS_FLAG.
32237
32238 2009-03-18 Robert Millan <rmh@aybabtu.com>
32239
32240 * loader/i386/linux.c: Include `<grub/video.h>' and
32241 `<grub/i386/pc/vbe.h>'..
32242 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32243 (grub_linux32_boot): Attempt to configure video settings with
32244 grub_linux_setup_video().
32245 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32246 to avoid grub_console_fini() which would step out of graphical mode
32247 unconditionally.
32248
32249 2009-03-14 Robert Millan <rmh@aybabtu.com>
32250
32251 Fix build on powerpc.
32252 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32253
32254 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32255
32256 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32257 background image command.
32258
32259 2009-03-12 Colin D Bennett <colin@gibibit.com>
32260
32261 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32262 (grub_gfxterm_putchar): Extract pairs of identical calls to
32263 draw_cursor out of conditional blocks.
32264
32265 2009-03-11 Pavel Roskin <proski@gnu.org>
32266
32267 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32268 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32269
32270 2009-03-11 Robert Millan <rmh@aybabtu.com>
32271
32272 * loader/i386/multiboot_elfxx.c
32273 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32274
32275 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32276
32277 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32278 `kern/handler.c'.
32279
32280 2009-03-11 Robert Millan <rmh@aybabtu.com>
32281
32282 * loader/i386/multiboot.c (code_size): New variable.
32283 (grub_multiboot): Define offsets by adding to `code_size' rather
32284 than subtracting from `grub_multiboot_payload_size'. Provide
32285 4-byte alignment to MBI and others by increasing
32286 `boot_loader_name_length' appropriately.
32287
32288 * loader/i386/multiboot_elfxx.c
32289 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32290
32291 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32292
32293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32294 `fs/ext2.c'.
32295
32296 2009-03-08 Robert Millan <rmh@aybabtu.com>
32297
32298 Make loader/i386/linux.c usable on i386-pc again.
32299
32300 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32301 memory to heap.
32302 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32303 `#error' stanza.
32304
32305 2009-03-07 Bean <bean123ch@gmail.com>
32306
32307 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32308 allocation.
32309
32310 2009-03-06 Robert Millan <rmh@aybabtu.com>
32311
32312 Fix display issue on terminals with screen size other than 80x25
32313 (e.g. gfxterm with resolution higher than 640x480).
32314
32315 * normal/main.c (grub_normal_init_page): Display title text in a
32316 position relative to the center of the terminal instead of relying
32317 on a hardcoded offset.
32318
32319 2009-03-04 Robert Millan <rmh@aybabtu.com>
32320
32321 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32322 installed.
32323
32324 * Makefile.in (host_kernel): New variable.
32325 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32326 scripts instead of just the windows one.
32327 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32328
32329 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32330
32331 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32332 `kern/handler.c'.
32333 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32334 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32335 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32337 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32339
32340 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32341
32342 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32343 or if there's no space for the disk label and print the partition number on a
32344 invalid magic.
32345
32346 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32347
32348 * util/misc.c: Include <time.h>.
32349 (grub_millisleep): New function.
32350
32351 2009-03-04 Bean <bean123ch@gmail.com>
32352
32353 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32354 another option -mno-red-zone.
32355
32356 * commands/handler.c: Change module description.
32357
32358 * kern/handler.c: Add missing space at the end of description line.
32359
32360 * kern/list.c: Likewise.
32361
32362 2009-03-03 Robert Millan <rmh@aybabtu.com>
32363
32364 Move more components to the relocation area, and fix mbi pointer
32365 handling to use the destination rather than the origin (thanks to
32366 Vladimir Serbinenko for spotting).
32367
32368 * loader/i386/multiboot.c (mbi_dest): New variable.
32369 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32370 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32371 relocation area.
32372
32373 2009-03-01 Bean <bean123ch@gmail.com>
32374
32375 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32376 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32377 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32378 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32379
32380 * loader/i386/efi/linux.c (acpi_guid): New variable.
32381 (acpi_guid): Likewise.
32382 (EBDA_SEG_ADDR): New constant.
32383 (LOW_MEM_ADDR): Likewise.
32384 (FAKE_EBDA_SEG): Likewise.
32385 (fake_bios_data): New function.
32386 (grub_linux_boot): Call fake_bios_data.
32387
32388 2009-03-01 Bean <bean123ch@gmail.com>
32389
32390 * commands/terminal.c: Removed.
32391
32392 * commands/handler.c: New file.
32393
32394 * include/grub/list.h: Likewise.
32395
32396 * include/grub/handler.h: Likewise.
32397
32398 * kern/list.c: Likewise.
32399
32400 * kern/handler.c: Likewise.
32401
32402 * kern/term.h: Include header file <grub/handler.h>.
32403 (grub_term_input): Move next field to the beginning.
32404 (grub_term_output): Likewise.
32405 (grub_term_input_class): New variable.
32406 (grub_term_output_class): Likewise.
32407 (grub_term_register_input): Changed to inline function.
32408 (grub_term_register_output): Likewise.
32409 (grub_term_unregister_input): Likewise.
32410 (grub_term_unregister_output): Likewise.
32411 (grub_term_set_current_input): Likewise.
32412 (grub_term_set_current_output): Likewise.
32413 (grub_term_get_current_input): Likewise.
32414 (grub_term_get_current_output): Likewise.
32415 (grub_term_iterate_input): Removed.
32416 (grub_term_iterate_output): Likewise.
32417
32418 * kern/term.c (grub_term_list_input): Removed.
32419 (grub_term_list_output): Likewise.
32420 (grub_term_input_class): New variable.
32421 (grub_term_output_class): Likewise.
32422 (grub_cur_term_input): Change variable as macro.
32423 (grub_cur_term_output): Likewise.
32424 (grub_term_register_input): Removed.
32425 (grub_term_register_output): Likewise.
32426 (grub_term_unregister_input): Likewise.
32427 (grub_term_unregister_output): Likewise.
32428 (grub_term_set_current_input): Likewise.
32429 (grub_term_set_current_output): Likewise.
32430 (grub_term_iterate_input): Likewise.
32431 (grub_term_iterate_output): Likewise.
32432 (grub_term_get_current_input): Likewise.
32433 (grub_term_get_current_output): Likewise.
32434
32435 * util/grub-editenv.c: Include header file <grub/handler.h>.
32436 (grub_term_get_current_input): Removed.
32437 (grub_term_get_current_output): Likewise.
32438 (grub_term_input_class): New variable.
32439 (grub_term_output_class): Likewise.
32440
32441 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32442 (grub_term_get_current_output): Likewise.
32443 (grub_term_input_class): New variable.
32444 (grub_term_output_class): Likewise.
32445
32446 * util/grub-probe.c (grub_term_get_current_input): Removed.
32447 (grub_term_get_current_output): Likewise.
32448 (grub_term_input_class): New variable.
32449 (grub_term_output_class): Likewise.
32450
32451 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32452 (grub_term_get_current_output): Likewise.
32453 (grub_term_input_class): New variable.
32454 (grub_term_output_class): Likewise.
32455
32456 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32457 (terminal_mod_SOURCES): Likewise.
32458 (terminal_mod_CFLAGS): Likewise.
32459 (terminal_mod_LDFLAGS): Likewise.
32460
32461 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32462 handler.c.
32463 (kernel_img_SOURCES): Add list.c and handler.c.
32464 (kernel_img_HEADERS): Add list.h and handler.h.
32465
32466 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32467 handler.c.
32468 (kernel_mod_SOURCES): Add list.c and handler.c.
32469 (kernel_mod_HEADERS): Add list.h and handler.h.
32470
32471 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32472 handler.c.
32473 (kernel_elf_SOURCES): Add list.c and handler.c.
32474 (kernel_elf_HEADERS): Add list.h and handler.h.
32475
32476 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32477 handler.c.
32478 (kernel_elf_SOURCES): Add list.c and handler.c.
32479 (kernel_elf_HEADERS): Add list.h and handler.h.
32480
32481 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32482 handler.c.
32483 (kernel_mod_SOURCES): Add list.c and handler.c.
32484 (kernel_mod_HEADERS): Add list.h and handler.h.
32485
32486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32487 handler.c.
32488 (kernel_elf_SOURCES): Add list.c and handler.c.
32489 (kernel_elf_HEADERS): Add list.h and handler.h.
32490
32491 2009-02-27 Robert Millan <rmh@aybabtu.com>
32492
32493 Factorize elf32 / elf64 code in Multiboot loader. This will
32494 prevent it from getting out of sync again.
32495
32496 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32497 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32498 grub_multiboot_load_elf64): Move from here ...
32499 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32500 grub_multiboot_load_elf): ... to here (new file).
32501
32502 2009-02-27 Robert Millan <rmh@aybabtu.com>
32503
32504 * util/grub.d/10_linux.in: Rename "single-user mode" to
32505 "recovery mode".
32506
32507 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32508
32509 Don't leak in SCSI code.
32510 * disk/scsi.c (grub_scsi_close): free `scsi'.
32511
32512 2009-02-27 Robert Millan <rmh@aybabtu.com>
32513
32514 * loader/i386/pc/multiboot.c: Move from here ...
32515 * loader/i386/multiboot.c: ... to here. Update all users.
32516
32517 2009-02-27 Robert Millan <rmh@aybabtu.com>
32518
32519 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32520 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32521
32522 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32523
32524 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32525 b-tree.
32526
32527 2009-02-27 Robert Millan <rmh@aybabtu.com>
32528
32529 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32530 `0x' qualifier as 0 when base is specified as parameter).
32531
32532 2009-02-24 Bean <bean123ch@gmail.com>
32533
32534 * configure.ac: Check for -mcmodel=large in x86_64 target.
32535
32536 * include/grub/efi/api.h (efi_call_10): New macro.
32537 (efi_wrap_10): New function.
32538
32539 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32540 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32541 (GRUB_PE32_REL_BASED_LOW): Likewise.
32542 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32543 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32544 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32545 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32546 (GRUB_PE32_REL_BASED_REL): Likewise.
32547 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32548 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32549 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
32550
32551 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
32552 issue.
32553
32554 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
32555 (efi_wrap_10): New function.
32556
32557 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
32558
32559 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
32560 MB/MBP model (NV chipset).
32561 (devdata_devs): Add devpath_5 to the list.
32562
32563 * load/i386/efi/linux.c (video_base): Remove variable.
32564 (RGB_MASK): New macro.
32565 (RGB_MAGIC): Likewise.
32566 (LINE_MIN): Likewise.
32567 (LINE_MAX): Likewise.
32568 (FBTEST_STEP): Likewise.
32569 (FBTEST_COUNT): Likewise.
32570 (fb_list): New variable.
32571 (grub_find_video_card): Remove function.
32572 (find_framebuf): New function.
32573 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
32574 line length.
32575
32576 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
32577 problem for x86_64.
32578
32579 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
32580
32581 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
32582
32583 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
32584 coding tool name.
32585
32586 2009-02-22 Robert Millan <rmh@aybabtu.com>
32587
32588 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
32589 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
32590 in our relocation, instead of using it directly from heap. Also
32591 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
32592
32593 2009-02-21 Robert Millan <rmh@aybabtu.com>
32594
32595 Implement USB keyboard support (based on patch by Marco Gerards)
32596
32597 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
32598 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
32599 (usb_keyboard_mod_LDFLAGS): New variables.
32600
32601 * term/usb_keyboard.c: New file.
32602
32603 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
32604
32605 Corrected wrong declaration
32606
32607 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
32608
32609 2009-02-14 Christian Franke <franke@computer.org>
32610
32611 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
32612 (grub_lspci_iter): Print class code and programming interface byte.
32613
32614 2009-02-14 Christian Franke <franke@computer.org>
32615
32616 * gendistlist.sh: Ignore `.svn' directories.
32617
32618 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
32619
32620 * fs/fat.c: Add 2009 to Copyright line.
32621
32622 2009-02-14 Christian Franke <franke@computer.org>
32623
32624 * commands/hdparm.c: New file. Provides `hdparm' command
32625 which sends ATA commands via grub_disk_ata_pass_through ().
32626
32627 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
32628
32629 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
32630 and <grub/cpu/io.h> to include/grub/ata.h.
32631 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
32632 (GRUB_CDROM_SECTOR_SIZE): Remove.
32633 (GRUB_ATA_*): Move to include/grub/ata.h.
32634 (GRUB_ATAPI_*): Likewise.
32635 (enum grub_ata_commands): Likewise.
32636 (enum grub_ata_timeout_milliseconds): Likewise.
32637 (struct grub_ata_device): Likewise.
32638 (grub_ata_regset): Likewise.
32639 (grub_ata_regget): Likewise.
32640 (grub_ata_regset2): Likewise.
32641 (grub_ata_regget2): Likewise.
32642 (grub_ata_check_ready): Likewise.
32643 (grub_ata_wait_not_busy): Remove static, exported in
32644 include/grub/ata.h.
32645 (grub_ata_wait_drq): Likewise.
32646 (grub_ata_pio_read): Likewise.
32647
32648 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
32649 function for hdparm.mod.
32650
32651 * include/grub/ata.h: New file, contains declarations from
32652 disk/ata.c.
32653 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
32654
32655 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
32656 (grub_disk_ata_pass_through): New exported variable.
32657
32658 * kern/disk.c (grub_disk_ata_pass_through): New variable.
32659
32660 2009-02-13 Colin D Bennett <colin@gibibit.com>
32661
32662 Support multiple fallback entries, and provide an API to support
32663 executing default+fallback menu entries. Renamed the `terminal' menu
32664 viewer to `text'.
32665
32666 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
32667 variable declaration.
32668 (grub_menu_execute_callback): New structure declaration.
32669 (grub_menu_execute_callback_t): New typedef.
32670 (grub_menu_execute_with_fallback): New function declaration.
32671 (grub_menu_get_entry): Likewise.
32672 (grub_menu_get_timeout): Likewise.
32673 (grub_menu_set_timeout): Likewise.
32674
32675 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
32676
32677 * normal/menu.c (grub_wait_after_message): Moved to
32678 `normal/menu_text.c'.
32679 (draw_border): Likewise.
32680 (print_message): Likewise.
32681 (print_entry): Likewise.
32682 (print_entries): Likewise.
32683 (grub_menu_init_page): Likewise.
32684 (get_entry_number): Likewise.
32685 (print_timeout): Likewise.
32686 (run_menu): Likewise.
32687 (grub_menu_execute_entry): Likewise.
32688 (show_text_menu): Likewise.
32689 (get_and_remove_first_entry_number): New function.
32690 (grub_menu_execute_with_fallback): Likewise.
32691 (get_entry): Renamed to ...
32692 (grub_menu_get_entry): .. this and made it global.
32693 (get_timeout): Renamed to ...
32694 (grub_menu_get_timeout): ... this and made it global.
32695 (set_timeout): Renamed to ...
32696 (grub_menu_set_timeout): ... this and made it global.
32697 (grub_normal_terminal_menu_viewer): Renamed to ...
32698 (grub_normal_text_menu_viewer): ... this.
32699
32700 * normal/menu_text.c: New file. Extracted text-menu-specific code
32701 from normal/menu.c.
32702
32703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
32704 (normal_mod_SOURCES): Likewise.
32705
32706 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32707 (normal_mod_SOURCES): Likewise.
32708
32709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32710 (normal_mod_SOURCES): Likewise.
32711
32712 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
32713 (normal_mod_SOURCES): Likewise.
32714
32715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32716 (normal_mod_SOURCES): Likewise.
32717
32718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32719 (normal_mod_SOURCES): Likewise.
32720
32721 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32722 (normal_mod_SOURCES): Likewise.
32723
32724 2009-02-11 Robert Millan <rmh@aybabtu.com>
32725
32726 * util/grub.d/00_header.in: Update old reference to `font' command.
32727
32728 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
32729
32730 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
32731
32732 Based on patch from Javier Martín.
32733
32734 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32735
32736 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
32737 to avoid false positives with FAT.
32738 (grub_fstest_SOURCES): Likewise.
32739 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32740 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32742 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32744 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32745
32746 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32747
32748 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
32749 bpb.version_specific.fat12_or_fat16.fstype and
32750 bpb.version_specific.fat32.fstype.
32751
32752 2009-02-08 Robert Millan <rmh@aybabtu.com>
32753
32754 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
32755
32756 2009-02-08 Robert Millan <rmh@aybabtu.com>
32757
32758 * Makefile.in (host_os, host_cpu): New variables.
32759 (target_os): Remove. Update all users.
32760
32761 2009-02-08 Marco Gerards <marco@gnu.org>
32762
32763 * Makefile.in (enable_grub_emu_usb): New variable.
32764 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
32765 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
32766 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
32767 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
32768 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
32769 `usbtest.mod' and `usbms.mod'.
32770 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
32771 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
32772 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
32773 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
32774 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
32775 variables.
32776
32777 * disk/usbms.c: New file.
32778
32779 * include/grub/usb.h: Likewise.
32780
32781 * include/grub/usbtrans.h: Likewise.
32782
32783 * include/grub/usbdesc.h: Likewise.
32784
32785 * bus/usb/usbtrans.c: Likewise.
32786
32787 * bus/usb/ohci.c: Likewise.
32788
32789 * bus/usb/uhci.c: Likewise.
32790
32791 * bus/usb/usbhub.c: Likewise.
32792
32793 * bus/usb/usb.c: Likewise.
32794
32795 * commands/usbtest.c: Likewise.
32796
32797 * util/usb.c: Likewise.
32798
32799 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
32800
32801 * configure.ac: Test for libusb presence.
32802
32803 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
32804
32805 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
32806
32807 * kern/mm.c: Add more comments.
32808
32809 2009-02-08 Robert Millan <rmh@aybabtu.com>
32810
32811 Patch from Javier Martín.
32812 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
32813 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
32814
32815 2009-02-08 Robert Millan <rmh@aybabtu.com>
32816
32817 * fs/cpio.c: Split tar functionality to ...
32818 * fs/tar.c: ... here (new file). Update all users.
32819
32820 2009-02-07 Robert Millan <rmh@aybabtu.com>
32821
32822 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
32823 backward-incompatible features.
32824
32825 Based on patch from Javier Martín, with some adjustments.
32826
32827 2009-02-07 Michael Scherer <misc@mandriva.org>
32828
32829 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
32830
32831 2009-02-07 Robert Millan <rmh@aybabtu.com>
32832
32833 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
32834 position of `disk/lvm.c' to ensure grub_init_all() always picks it
32835 after the RAID stuff.
32836
32837 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
32838
32839 Fixes problem when running vbetest command as reported by
32840 Vladimir Serbinenko <phcoder@gmail.com>.
32841
32842 * (grub_vbe_set_video_mode): Fixed problem with text modes.
32843
32844 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
32845
32846 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
32847 /dev/md/NpN style mdraid devices.
32848
32849 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32850
32851 * util/unifont2pff.rb: Remove.
32852
32853 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32854
32855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
32856 `#'.
32857
32858 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32859
32860 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
32861 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32862 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32865 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32866 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32867
32868 2009-02-02 Christian Franke <franke@computer.org>
32869
32870 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
32871
32872 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
32873
32874 * INSTALL: Note that we now require at least autoconf 2.59 and
32875 that LZO is optional.
32876
32877 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32878
32879 Base on patch on bug #24154 created by Tomas Tintera
32880 <trosos@seznam.cz>.
32881
32882 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
32883
32884 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32885
32886 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
32887 <bero@arklinux.org>.
32888
32889 * normal/parser.y (script_init): Add missing semicolon.
32890
32891 2009-01-31 Colin D Bennett <colin@gibibit.com>
32892
32893 * normal/main.c: Add include to grub/menu_viewer.h.
32894 (free_menu_entry_classes): Added.
32895 (grub_normal_menu_addentry): Added class property handling.
32896 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
32897 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
32898
32899 * normal/menu_viewer.c: New file.
32900
32901 * normal/menu.c (run_menu_entry): Renamed to ...
32902 (grub_menu_execute_entry): ... this and made it as global.
32903 (grub_menu_run): Renamed to ...
32904 (show_text_menu): ... this and made it local.
32905 (show_text_menu): Adapt to new function names.
32906 (grub_normal_terminal_menu_viewer): New global variable.
32907
32908 * include/grub/menu.h: New file.
32909
32910 * include/grub/menu_viewer.h: New file.
32911
32912 * include/grub/normal.h: Added include to grub/menu.h.
32913 (grub_menu_entry): Moved to include/grub/menu.h.
32914 (grub_menu_entry_t): Likewise.
32915 (grub_menu): Likewise.
32916 (grub_menu_t): Likewise.
32917 (grub_normal_terminal_menu_viewer): Added.
32918 (grub_menu_execute_entry): Likewise.
32919 (grub_menu_run): Removed.
32920
32921 * DISTLIST: Added include/grub/menu.h.
32922 Added include/grub/menu_viewer.h.
32923 Added normal/menu_viewer.c.
32924
32925 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
32926
32927 * normal/execute.c (grub_script_execute_menuentry): Changed to use
32928 arglist for menutitle arguments.
32929
32930 * normal/main.c (grub_normal_menu_addentry): Likewise.
32931
32932 * normal/parser.y (menuentry): Likewise.
32933
32934 * normal/script.c (grub_script_create_cmdmenu): Likewise.
32935
32936 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
32937 (grub_script_create_cmdmenu): Likewise.
32938
32939 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
32940
32941 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
32942 changes.
32943
32944 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
32945
32946 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
32947
32948 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
32949
32950 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32951
32952 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32953
32954 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32955
32956 2009-01-30 Christian Franke <franke@computer.org>
32957
32958 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
32959 in option help text.
32960
32961 2009-01-27 Pavel Roskin <proski@gnu.org>
32962
32963 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
32964
32965 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32966
32967 * commands/lsmmap.c: Add include to grub/machine/memory.h.
32968
32969 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
32970
32971 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
32972 unregister function.
32973
32974 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32975
32976 * disk/scsi.c (grub_scsi_read): Fix sign problem.
32977
32978 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
32979
32980 * util/grub-mkfont.c (usage): Fix typo.
32981
32982 * util/elf/grub-mkimage.c (load_modules): Fix warning.
32983
32984 2009-01-26 Daniel Mierswa <impulze@impulze.org>
32985
32986 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
32987
32988 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
32989
32990 * kern/misc.c (grub_strcasecmp): New function.
32991 (grub_strcasecmp): Use grub_size_t instead of int for length.
32992 Fix return value.
32993 * include/grub/misc.h: Update function prototypes.
32994
32995 2009-01-26 Robert Millan <rmh@aybabtu.com>
32996
32997 * configure.ac: Fix cross-compilation check.
32998
32999 2009-01-22 Christian Franke <franke@computer.org>
33000
33001 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33002 (precision) digit string. Allow `.format2' without `format1' (width).
33003 Limit input chars for `%s' output to `format2' if specified. This is
33004 compatible with standard printf ().
33005
33006 2009-01-22 Christian Franke <franke@computer.org>
33007
33008 * disk/ata.c (grub_ata_wait_status): Replace by ...
33009 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33010 other status bits may be invalid while BSY is asserted.
33011 (grub_ata_check_ready): New function.
33012 (grub_ata_cmd): Removed.
33013 (grub_ata_wait_drq): New function.
33014 (grub_ata_strncpy): Remove inline.
33015 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33016 and error check now done by grub_ata_wait_drq ().
33017 (grub_ata_pio_write): Likewise.
33018 (grub_atapi_identify): Set DEV before check for !BSY. Use
33019 grub_ata_wait_drq () to wait for data.
33020 (grub_ata_device_initialize): Add status register check to
33021 detect missing SATA slave devices. Add debug messages.
33022 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33023 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33024 transfer loop by grub_ata_pio_write ().
33025 (grub_ata_identify): Set DEV before check for !BSY. Use
33026 grub_ata_wait_drq () to wait for data.
33027 (grub_ata_setaddress): Set DEV before check for !BSY.
33028 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33029 read/write in one loop. Fix invalid command on write. Fix incomplete
33030 command on (size % batch) == 0. Add missing error check after write of
33031 last block. Add debug messages.
33032 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33033
33034 2009-01-19 Christian Franke <franke@computer.org>
33035
33036 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33037 (GRUB_ATAPI_IREASON_*): Likewise.
33038 (grub_ata_pio_write): Fix timeout error return.
33039 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33040 (grub_atapi_wait_drq): New function.
33041 (grub_atapi_packet): New parameter `size'.
33042 Use grub_atapi_wait_drq () and direct write instead of
33043 grub_ata_pio_write ().
33044 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33045 reads the number of bytes requested by the device for each DRQ
33046 assertion.
33047 (grub_atapi_write): Remove old implementation, return not
33048 implemented instead.
33049
33050 2009-01-19 Christian Franke <franke@computer.org>
33051
33052 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33053 of 512 to calculate data size.
33054 (grub_scsi_read12): Likewise.
33055 (grub_scsi_write10): Likewise.
33056 (grub_scsi_write12): Likewise.
33057 (grub_scsi_read): Adjust size according to blocksize.
33058 Add checks for invalid blocksize and unaligned transfer.
33059
33060 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33061
33062 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33063
33064 * term/gfxterm.c (write_char): Fix background rendering for wide
33065 width glyphs.
33066
33067 2009-01-19 Robert Millan <rmh@aybabtu.com>
33068
33069 * config.guess: Update to latest version from config git.
33070 * config.sub: Likewise.
33071
33072 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33073
33074 * Makefile.in: Change font compilation to use new grub-mkfont instead
33075 of java version.
33076
33077 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33078 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33079 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33080 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33081 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33082 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33083 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33084 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33085 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33086
33087 2009-01-16 Christian Franke <franke@computer.org>
33088
33089 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33090 (enum grub_ata_timeout_milliseconds): New enum.
33091 (grub_ata_wait_status): Add parameter milliseconds.
33092 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33093 recovery from timed-out commands.
33094 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33095 return grub_errno instead of REG_ERROR.
33096 (grub_ata_pio_write): Add parameter milliseconds.
33097 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33098 Pass milliseconds to grub_ata_wait_status () and
33099 grub_ata_pio_read ().
33100 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33101 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33102 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33103 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33104 It is not suitable for device detection, because DEV bit is ignored,
33105 the command may run too long, and not all devices set the signature
33106 properly.
33107 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33108 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33109 Fix device selection, DEV bit must be set first to address the registers
33110 of the correct device.
33111 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33112 grub_ata_pio_read/write ().
33113 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33114 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33115
33116 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33117
33118 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33119
33120 2009-01-13 Bean <bean123ch@gmail.com>
33121
33122 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33123
33124 2009-01-13 Bean <bean123ch@gmail.com>
33125
33126 * Makefile.in: (enable_grub_mkfont): New variable.
33127 (freetype_cflags): Likewise.
33128 (freetype_libs): Likewise.
33129
33130 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33131 (grub_mkfont_SOURCES): New variable.
33132 (grub_mkfont_CFLAGS): Likewise.
33133 (grub_mkfont_LDFLAGS): Likewise.
33134
33135 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33136 library if `--enable-grub-mkfont' is requested.
33137 (enable_grub_mkfont): New variable.
33138 (freetype_cflags): Likewise.
33139 (freetype_libs): Likewise.
33140
33141 * util/grub-mkfont.c: New file.
33142
33143 2009-01-12 Christian Franke <franke@computer.org>
33144
33145 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33146 mode check. Fix setting of compat_use[].
33147
33148 2009-01-10 Robert Millan <rmh@aybabtu.com>
33149
33150 Update a few copyright years which we forgot to do in 2008 (only for
33151 files whose changes made in 2008 were copyright-significant)
33152
33153 * Makefile.in: Add 2008 to Copyright line.
33154 * disk/ieee1275/ofdisk.c: Likewise.
33155 * disk/efi/efidisk.c: Likewise.
33156 * kern/dl.c: Likewise.
33157 * kern/sparc64/ieee1275/init.c: Likewise.
33158 * kern/mm.c: Likewise.
33159 * kern/efi/mm.c: Likewise.
33160 * boot/i386/pc/boot.S: Likewise.
33161 * genfslist.sh: Likewise.
33162 * fs/iso9660.c: Likewise.
33163 * fs/hfs.c: Likewise.
33164 * fs/jfs.c: Likewise.
33165 * fs/minix.c: Likewise.
33166 * fs/ufs.c: Likewise.
33167 * gensymlist.sh.in: Likewise.
33168 * genkernsyms.sh.in: Likewise.
33169 * include/grub/misc.h: Likewise.
33170 * include/grub/types.h: Likewise.
33171 * include/grub/symbol.h: Likewise.
33172 * include/grub/elf.h: Likewise.
33173 * include/grub/kernel.h: Likewise.
33174 * include/grub/disk.h: Likewise.
33175 * include/grub/dl.h: Likewise.
33176 * include/grub/i386/linux.h: Likewise.
33177 * include/grub/i386/pc/biosdisk.h: Likewise.
33178 * include/grub/efi/api.h: Likewise.
33179 * include/grub/efi/pe32.h: Likewise.
33180 * include/grub/util/misc.h: Likewise.
33181 * normal/execute.c: Likewise.
33182 * normal/arg.c: Likewise.
33183 * normal/completion.c: Likewise.
33184 * normal/lexer.c: Likewise.
33185 * normal/parser.y: Likewise.
33186 * normal/misc.c: Likewise.
33187 * commands/i386/pc/vbeinfo.c: Likewise.
33188 * commands/hexdump.c: Likewise.
33189 * commands/terminal.c: Likewise.
33190 * commands/ls.c: Likewise.
33191 * commands/help.c: Likewise.
33192 * partmap/pc.c: Likewise.
33193 * loader/efi/chainloader.c: Likewise.
33194 * loader/multiboot_loader.c: Likewise.
33195 * loader/i386/pc/multiboot2.c: Likewise.
33196 * term/efi/console.c: Likewise.
33197 * term/i386/pc/serial.c: Likewise.
33198 * util/lvm.c: Likewise.
33199 * util/console.c: Likewise.
33200 * util/i386/efi/grub-mkimage.c: Likewise.
33201 * util/raid.c: Likewise.
33202
33203 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33204
33205 * commands/videotest.c: Removed include to grub/machine/memory.h.
33206
33207 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33208 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33209 (video_mod_SOURCES): Removed.
33210 (video_mod_CFLAGS): Likewise.
33211 (video_mod_LDFLAGS): Likewise.
33212 (gfxterm_mod_SOURCES): Likewise.
33213 (gfxterm_mod_CFLAGS): Likewise.
33214 (gfxterm_mod_LDFLAGS): Likewise.
33215 (videotest_mod_SOURCES): Likewise.
33216 (videotest_mod_CFLAGS): Likewise.
33217 (videotest_mod_LDFLAGS): Likewise.
33218 (bitmap_mod_SOURCES): Likewise.
33219 (bitmap_mod_CFLAGS): Likewise.
33220 (bitmap_mod_LDFLAGS): Likewise.
33221 (tga_mod_SOURCES): Likewise.
33222 (tga_mod_CFLAGS): Likewise.
33223 (tga_mod_LDFLAGS): Likewise.
33224 (jpeg_mod_SOURCES): Likewise.
33225 (jpeg_mod_CFLAGS): Likewise.
33226 (jpeg_mod_LDFLAGS): Likewise.
33227 (png_mod_SOURCES): Likewise.
33228 (png_mod_CFLAGS): Likewise.
33229 (png_mod_LDFLAGS): Likewise.
33230
33231 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33232 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33233 (video_mod_SOURCES): Added.
33234 (video_mod_CFLAGS): Likewise.
33235 (video_mod_LDFLAGS): Likewise.
33236 (videotest_mod_SOURCES): Likewise.
33237 (videotest_mod_CFLAGS): Likewise.
33238 (videotest_mod_LDFLAGS): Likewise.
33239 (bitmap_mod_SOURCES): Likewise.
33240 (bitmap_mod_CFLAGS): Likewise.
33241 (bitmap_mod_LDFLAGS): Likewise.
33242 (tga_mod_SOURCES): Likewise.
33243 (tga_mod_CFLAGS): Likewise.
33244 (tga_mod_LDFLAGS): Likewise.
33245 (jpeg_mod_SOURCES): Likewise.
33246 (jpeg_mod_CFLAGS): Likewise.
33247 (jpeg_mod_LDFLAGS): Likewise.
33248 (png_mod_SOURCES): Likewise.
33249 (png_mod_CFLAGS): Likewise.
33250 (png_mod_LDFLAGS): Likewise.
33251 (gfxterm_mod_SOURCES): Likewise.
33252 (gfxterm_mod_CFLAGS): Likewise.
33253 (gfxterm_mod_LDFLAGS): Likewise.
33254
33255 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33256 grub/machine/console.h.
33257
33258 2009-01-04 Jerone Young <jerone@gmail.com>
33259
33260 Make on screen instructions clearer
33261
33262 Based on patch created by Jidanni <jidanni@jidanni.org>
33263
33264 * normal/menu.c: print clearer instructions on the screen
33265
33266 2009-01-02 Colin D Bennett <colin@gibibit.com>
33267
33268 New font engine.
33269
33270 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33271 build system and fixed gfxterm.c to work with different sized fonts.
33272
33273 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33274
33275 * configure: Re-generated.
33276
33277 * DISTLIST: Removed font/manager.c.
33278 Added font/font.c.
33279 Added font/font_cmd.c.
33280
33281 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33282 compilation.
33283
33284 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33285
33286 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33287
33288 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33289
33290 * normal/menu.c: Likewise.
33291
33292 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33293 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33294
33295 * include/grub/font.h: Replaced with new file.
33296
33297 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33298 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33299 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33300 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33301 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33302 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33303 fg_red, fg_green, fg_blue, fg_alpha.
33304 (grub_video_adapter): Removed blit_glyph.
33305 (grub_video_blit_glyph): Removed.
33306
33307 * font/manager.c: Removed file.
33308
33309 * font/font.c: New file.
33310
33311 * font/font_cmd.c: Likewise.
33312
33313 * video/video.c (grub_video_blit_glyph): Removed.
33314
33315 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33316 (grub_video_vbe_map_rgba): Likewise.
33317 (grub_video_vbe_unmap_color_int): Likewise.
33318 (grub_video_vbe_blit_glyph): Removed.
33319 (grub_video_vbe_adapter): Removed blit_glyph.
33320
33321 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33322 (get_pixel): Likewise.
33323 (set_pixel): Likewise.
33324
33325 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33326
33327 * term/gfxterm.c: Adapted to new font engine.
33328
33329 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33330
33331 * term/i386/pc/vga.c: Likewise.
33332
33333 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33334
33335 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33336
33337 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33338
33339 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33340
33341 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33342
33343 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33344
33345 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33346
33347 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33348
33349 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33350
33351 * util/grub.d/00_header.in: Changed to use new loadfont command.
33352
33353 * util/grub-mkconfig_lib.in: Changed font extension.
33354
33355 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33356
33357 * util/getroot.c (grub_util_get_grub_dev): Add support for
33358 /dev/md/dNNpNN style partitionable mdraid devices.
33359
33360 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33361
33362 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33363 at a time limit of the PXE TFTP API correctly.
33364 (grub_pxefs_close): Likewise.
33365
33366 2008-11-29 Robert Millan <rmh@aybabtu.com>
33367
33368 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33369 grub_ata_device_initialize() calls.
33370
33371 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33372
33373 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33374 iteration failed.
33375 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33376
33377 2008-11-28 Robert Millan <rmh@aybabtu.com>
33378
33379 Fix build on powerpc-ieee1275. Based on patch created by
33380 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33381 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33382 `kern/ieee1275/mmap.c'.
33383 * include/grub/powerpc/ieee1275/memory.h: New file.
33384
33385 Provide grub-install on coreboot.
33386 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33387 (grub_install_SOURCES): New variable.
33388 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33389 usable on coreboot.
33390
33391 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33392
33393 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33394 to `grub_term_input_t'.
33395 (grub_term_get_current_output): Change return type to
33396 `grub_term_output_t'.
33397
33398 2008-11-22 Robert Millan <rmh@aybabtu.com>
33399
33400 Fix breakage on coreboot due to declaration mismatch.
33401 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33402 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33403 grub_vga_text_cls().
33404
33405 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33406 comments. Avoid copying one more byte than necessary (just in case).
33407
33408 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33409 to 0x200000 (avoids trouble with some OFW implementations, and matches
33410 with the one in Yaboot).
33411 Reported by Manoel Abranches
33412
33413 2008-11-20 Robert Millan <rmh@aybabtu.com>
33414
33415 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33416 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33417
33418 * util/grub-mkconfig_lib.in (grub_warn): New function.
33419 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33420 warnings, to obtain consistent formatting.
33421 * util/grub.d/00_header.in: Likewise.
33422 * util/update-grub_lib.in: Likewise.
33423
33424 * loader/i386/linux.c (allocate_pages): Fix a warning.
33425 Move comment text to `#error' stanza.
33426
33427 Harmonize ieee1275's grub_available_iterate() with the generic
33428 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33429 build problem on i386-ieee1275):
33430 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33431 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33432 parameter `type'. Update all users of this function.
33433 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33434 `kern/ieee1275/mmap.c'.
33435 * kern/ieee1275/init.c
33436 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33437 with ...
33438 (grub_machine_mmap_iterate): ... this.
33439 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33440 return type to `grub_err_t'. Update all implementations of this
33441 function prototype.
33442 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33443 Likewise.
33444
33445 Add `lsmmap' command (lists firmware-provided memory map):
33446 * commands/lsmmap.c: New file.
33447 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33448 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33449 variables.
33450 * conf/powerpc-ieee1275.rmk: Likewise.
33451 * conf/i386-coreboot.rmk: Likewise.
33452 * conf/i386-ieee1275.rmk: Likewise.
33453
33454 2008-11-19 Robert Millan <rmh@aybabtu.com>
33455
33456 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33457 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33458 constraints to initrd allocation (based on code from
33459 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33460 for Linux to find it.
33461
33462 2008-11-14 Robert Millan <rmh@aybabtu.com>
33463
33464 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33465 order to cope with duplicate slashes.
33466
33467 2008-11-14 Robert Millan <rmh@aybabtu.com>
33468
33469 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33470 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33471 don't want to mess with lower memory, because it is used in the Linux
33472 loader.
33473
33474 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33475 an appropriate place in lower memory, between 0x10000 and 0x90000,
33476 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33477 is in our heap (probably as a result of it being corrupted during
33478 decompression). Add #error instance with comment to explain why this
33479 loader isn't currently usable on PC/BIOS.
33480
33481 2008-11-14 Robert Millan <rmh@aybabtu.com>
33482
33483 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33484 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33485
33486 2008-11-12 Robert Millan <rmh@aybabtu.com>
33487
33488 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33489
33490 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33491 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33492 from here ...
33493 * include/grub/i386/pc/memory.h: ... to here.
33494
33495 2008-11-12 Robert Millan <rmh@aybabtu.com>
33496
33497 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33498 split).
33499
33500 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33501 (grub_console_cur_color, grub_console_real_putchar)
33502 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33503 (grub_console_setcolorstate, grub_console_setcolor)
33504 (grub_console_getcolor): Move from here ...
33505 * include/grub/i386/vga_common.h: ... to here (new file).
33506
33507 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33508 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33509 `<grub/i386/io.h>'.
33510 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33511 `<grub/i386/vga_common.h>'.
33512
33513 2008-11-12 Robert Millan <rmh@aybabtu.com>
33514
33515 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33516 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33517 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33518 variables.
33519 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33520 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33521
33522 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33523 grub_console_init() with call to grub_vga_text_init().
33524 (grub_machine_fini): Replace call to
33525 grub_console_fini() with call to grub_vga_text_fini() and
33526 grub_at_keyboard_fini().
33527
33528 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33529 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33530 (grub_console_setcolorstate, grub_console_setcolor)
33531 (grub_console_getcolor): New function prototypes.
33532
33533 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33534 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33535 (grub_vga_text_setcursor): Static-ize.
33536 (grub_vga_text_term): New structure.
33537 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33538
33539 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33540 (grub_console_cur_color, grub_console_standard_color)
33541 (grub_console_normal_color, grub_console_highlight_color)
33542 (map_char, grub_console_putchar, grub_console_getcharwidth)
33543 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33544 (grub_console_getcolor): Move from here ...
33545 * term/i386/vga_common.c: ... to here (same function names).
33546
33547 2008-11-12 Robert Millan <rmh@aybabtu.com>
33548
33549 Use newly-added Multiboot support in coreboot.
33550
33551 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33552 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
33553
33554 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
33555 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
33556 (codestart): Store the MBI in `startup_multiboot_info' when we're
33557 being loaded using Multiboot.
33558
33559 * kern/i386/coreboot/init.c (grub_machine_init): Move
33560 grub_at_keyboard_init() call to beginning of function (useful for
33561 debugging). Call grub_machine_mmap_init() before attempting to use
33562 grub_machine_mmap_iterate().
33563 (grub_lower_mem, grub_upper_mem): Move from here ...
33564 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
33565 here (new file).
33566
33567 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
33568 function prototype.
33569
33570 2008-11-12 Robert Millan <rmh@aybabtu.com>
33571
33572 Fix a regression introduced by the at_keyboard.mod split. Because
33573 some terminals are default on some platforms and non-default on
33574 others, the first terminal being registered determines which is
33575 going to be default.
33576
33577 * kern/term.c (grub_term_register_input): If this is the first
33578 terminal being registered, set it as the current one.
33579 (grub_term_register_output): Likewise.
33580
33581 * term/efi/console.c (grub_console_init): Do not call
33582 grub_term_set_current_output() or grub_term_set_current_input().
33583 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
33584 * term/i386/pc/console.c (grub_console_init): Likewise.
33585 (grub_console_fini): Do not call grub_term_set_current_input()
33586 (but leave grub_term_set_current_output() to restore text mode).
33587
33588 2008-11-10 Robert Millan <rmh@aybabtu.com>
33589
33590 * util/grub.d/00_header.in: Add backward compatibility check for
33591 versions of terminal.mod that don't understand `terminal_input' or
33592 `terminal_output'.
33593
33594 2008-11-09 Robert Millan <rmh@aybabtu.com>
33595
33596 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
33597 `terminal_input' / `terminal_output', not `terminal'.
33598
33599 2008-11-08 Robert Millan <rmh@aybabtu.com>
33600
33601 * Makefile.in (include_DATA): Fix srcdir=. assumption.
33602 (DISTCLEANFILES): Add `build_env.mk'.
33603
33604 2008-11-08 Robert Millan <rmh@aybabtu.com>
33605
33606 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
33607 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33608 members. Update all users.
33609 * util/console.c (grub_ncurses_term): Split in ...
33610 (grub_ncurses_term_input): ... this, and ...
33611 (grub_ncurses_term_output): ... this. Update all users.
33612 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
33613
33614 2008-11-08 Robert Millan <rmh@aybabtu.com>
33615
33616 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
33617 (PKGDATA): Add $(pkgdata_SRCDIR).
33618 (pkglib_BUILDDIR): New variable.
33619 (pkgdata_SRCDIR): New variable.
33620 (build_env.mk): New target.
33621 (include_DATA): New variable.
33622 (install-local): Install $(include_DATA) files in $(includedir).
33623
33624 2008-11-07 Pavel Roskin <proski@gnu.org>
33625
33626 * gendistlist.sh: Use C locale for sorting to ensure consistent
33627 output on all systems.
33628
33629 * util/grub.d/00_header.in: Remove incorrect space before
33630 "serial".
33631
33632 2008-11-07 Robert Millan <rmh@aybabtu.com>
33633
33634 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
33635 per specification.
33636 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
33637 * loader/multiboot_loader.c (find_multi_boot2_header): New function
33638 (based on find_multi_boot1_header).
33639 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
33640 using find_multi_boot2_header(), and abort if neither Multiboot or
33641 Multiboot headers were found.
33642
33643 2008-11-07 Robert Millan <rmh@aybabtu.com>
33644
33645 Modularize at_keyboard.mod:
33646
33647 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
33648 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
33649 (at_keyboard_mod_LDFLAGS): New variables.
33650
33651 Actual terminal split:
33652
33653 * include/grub/term.h (struct grub_term): Split in ...
33654 (struct grub_term_input): ... this, and ...
33655 (struct grub_term_output): ... this. Update all users.
33656 (grub_term_set_current): Split in ...
33657 (grub_term_set_current_input): ... this, and ...
33658 (grub_term_set_current_output): ... this.
33659 (grub_term_get_current): Split in ...
33660 (grub_term_get_current_input): ... this, and ...
33661 (grub_term_get_current_output): ... this.
33662 (grub_term_register): Split in ...
33663 (grub_term_register_input): ... this, and ...
33664 (grub_term_register_output): ... this.
33665 (grub_term_unregister): Split in ...
33666 (grub_term_unregister_input): ... this, and ...
33667 (grub_term_unregister_output): ... this.
33668 (grub_term_iterate): Split in ...
33669 (grub_term_iterate_input): ... this, and ...
33670 (grub_term_iterate_output): ... this.
33671
33672 * kern/term.c (grub_term_list): Split in ...
33673 (grub_term_list_input): ... this, and ...
33674 (grub_term_list_output): ... this. Update all users.
33675 (grub_cur_term): Split in ...
33676 (grub_cur_term_input): ... this, and ...
33677 (grub_cur_term_output): ... this. Update all users.
33678 (grub_term_set_current): Split in ...
33679 (grub_term_set_current_input): ... this, and ...
33680 (grub_term_set_current_output): ... this.
33681 (grub_term_get_current): Split in ...
33682 (grub_term_get_current_input): ... this, and ...
33683 (grub_term_get_current_output): ... this.
33684 (grub_term_register): Split in ...
33685 (grub_term_register_input): ... this, and ...
33686 (grub_term_register_output): ... this.
33687 (grub_term_unregister): Split in ...
33688 (grub_term_unregister_input): ... this, and ...
33689 (grub_term_unregister_output): ... this.
33690 (grub_term_iterate): Split in ...
33691 (grub_term_iterate_input): ... this, and ...
33692 (grub_term_iterate_output): ... this.
33693
33694 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
33695 a check for input and one for output (and only attempt to get keys
33696 from user when input works).
33697
33698 * util/grub-probe.c (grub_term_get_current): Split in ...
33699 (grub_term_get_current_input): ... this, and ...
33700 (grub_term_get_current_output): ... this.
33701 * util/grub-fstest.c: Likewise.
33702 * util/i386/pc/grub-setup.c: Likewise.
33703 * util/grub-editenv.c: Likewise.
33704
33705 Portability adjustments:
33706
33707 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
33708 `term/i386/pc/at_keyboard.c'.
33709 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
33710 grub_keyboard_controller_init() (now handled by terminal .init).
33711 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
33712 grub_at_keyboard_init().
33713 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
33714 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
33715 at_keyboard.mod via input terminal interface).
33716 * include/grub/i386/coreboot/console.h: Convert into a stub for
33717 `<grub/i386/pc/console.h>'.
33718
33719 Migrate full terminals to new API:
33720
33721 * term/efi/console.c (grub_console_term): Split into ...
33722 (grub_console_term_input): ... this, and ...
33723 (grub_console_term_output): ... this. Update all users.
33724 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
33725 (grub_ofconsole_init): Split into ...
33726 (grub_ofconsole_init_input): ... this, and ...
33727 (grub_ofconsole_init_output): ... this.
33728 (grub_ofconsole_term): Split into ...
33729 (grub_ofconsole_term_input): ... this, and ...
33730 (grub_ofconsole_term_output): ... this. Update all users.
33731 * term/i386/pc/serial.c (grub_serial_term): Split into ...
33732 (grub_serial_term_input): ... this, and ...
33733 (grub_serial_term_output): ... this. Update all users.
33734 * term/i386/pc/console.c (grub_console_term): Split into ...
33735 (grub_console_term_input): ... this, and ...
33736 (grub_console_term_output): ... this. Update all users.
33737 (grub_console_term_input): Only enable it on PC/BIOS platform.
33738 (grub_console_init): Remove grub_keyboard_controller_init() call.
33739
33740 Migrate input terminals to new API:
33741
33742 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
33743 `i386' and `i386/pc' to enable build on x86_64 (this driver is
33744 i386-specific anyway).
33745 (grub_console_checkkey): Rename to ...
33746 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
33747 users.
33748 (grub_keyboard_controller_orig): New variable.
33749 (grub_console_getkey): Rename to ...
33750 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
33751 users.
33752 (grub_keyboard_controller_init): Static-ize. Save original
33753 controller value so that it can be restored ...
33754 (grub_keyboard_controller_fini): ... here (new function).
33755 (grub_at_keyboard_term): New structure.
33756 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
33757 functions.
33758
33759 Migrate output terminals to new API:
33760
33761 * term/i386/pc/vga.c (grub_vga_term): Change type to
33762 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33763 members. Update all users.
33764 * term/gfxterm.c (grub_video_term): Change type to
33765 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33766 members. Update all users.
33767 * include/grub/i386/pc/console.h (grub_console_checkkey)
33768 (grub_console_getkey): Do not export (no longer needed by gfxterm,
33769 etc).
33770
33771 Migrate `terminal' command and userland tools to new API:
33772
33773 * commands/terminal.c (grub_cmd_terminal): Split into ...
33774 (grub_cmd_terminal_input): ... this, and ...
33775 (grub_cmd_terminal_output): ... this.
33776 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
33777 `terminal_input' and `terminal_output'.
33778 * util/grub.d/00_header.in: Adjust `terminal' calls to new
33779 `terminal_input' / `terminal_output' API.
33780 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
33781 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
33782 provided ${GRUB_TERMINAL}, convert it).
33783
33784 2008-11-04 Robert Millan <rmh@aybabtu.com>
33785
33786 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
33787 for FreeBSD.
33788 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
33789
33790 2008-11-03 Bean <bean123ch@gmail.com>
33791
33792 * kern/elf.c (grub_elf32_load): Revert to previous code.
33793 (grub_elf64_load): Likewise.
33794
33795 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
33796
33797 2008-11-01 Robert Millan <rmh@aybabtu.com>
33798
33799 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
33800 (TARGET_CPPFLAGS): Likewise.
33801 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
33802
33803 2008-11-01 Carles Pina i Estany <carles@pina.cat>
33804
33805 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
33806
33807 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33808
33809 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
33810 addition of objects until the code is not going to be able to fail.
33811
33812 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33813
33814 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
33815 (add a missing NULL check, and correct them by moving the pointer
33816 operations after the actual check).
33817
33818 2008-10-29 Robert Millan <rmh@aybabtu.com>
33819
33820 * util/i386/pc/grub-install.in: Handle empty string as output from
33821 make_system_path_relative_to_its_root().
33822
33823 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
33824
33825 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
33826 circular metadata worst case scenario. If the metadata is circular
33827 then copy the wrap in place.
33828 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
33829 project lib/format_text/layout.h
33830 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
33831
33832 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33833
33834 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
33835
33836 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33837
33838 * util/update-grub_lib.in: Mention filename in warning message.
33839
33840 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33841
33842 * NEWS: Update for rename of update-grub to grub-mkconfig.
33843
33844 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33845
33846 * util/update-grub_lib.in: Copy to ...
33847 * util/grub-mkconfig_lib.in: ... this. Update all users.
33848 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
33849 * util/update-grub.in: Rename to ...
33850 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
33851 option. Add `--output' option to allow users to specify the generated
33852 configuration file. Default to stdout.
33853 (update_grub_dir): Rename to ...
33854 (grub_mkconfig_dir): ... this.
33855 (grub_cfg): Default to an empty string.
33856 * conf/common.rmk (update-grub): Rename to ...
33857 (grub-mkconfig): ... this.
33858 (update-grub_lib): Copy to ...
33859 (grub-mkconfig_lib): ... this.
33860 (update-grub_SCRIPTS): Copy to ...
33861 (grub-mkconfig_SCRIPTS): ... this. Update all users.
33862 (update-grub_DATA): Rename to ...
33863 (grub-mkconfig_DATA): ... this.
33864
33865 2008-09-28 Robert Millan <rmh@aybabtu.com>
33866
33867 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
33868 to `modified'. Add the real `created' field.
33869 (grub_iso9660_uuid): Use `modified' rather than `created' for
33870 constructing the UUID.
33871
33872 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
33873
33874 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
33875 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
33876
33877 2008-09-28 Bean <bean123ch@gmail.com>
33878
33879 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
33880 Thanks to Christian Franke for finding this bug.
33881
33882 2008-09-25 Robert Millan <rmh@aybabtu.com>
33883
33884 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
33885 instances of grub_util_get_disk_name() (see previous commit).
33886
33887 2008-09-25 Robert Millan <rmh@aybabtu.com>
33888
33889 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
33890 `util/i386/get_disk_name.c'.
33891 * conf/i386-efi.rmk: Likewise.
33892 * conf/x86_64-efi.rmk: Likewise.
33893 * conf/i386-coreboot.rmk: Likewise.
33894 * conf/i386-ieee1275.rmk: Likewise.
33895 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
33896 `util/ieee1275/get_disk_name.c'.
33897 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
33898 * util/ieee1275/get_disk_name.c: Remove file.
33899 * util/i386/get_disk_name.c: Remove file.
33900 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
33901 "hd%d" for device.map entries, rather than using
33902 grub_util_get_disk_name().
33903
33904 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33905
33906 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
33907 warning.
33908 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
33909
33910 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33911
33912 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
33913 Changed to 0x5100.
33914 (GRUB_TERM_PPAGE): Changed to 0x4900.
33915
33916 2008-09-24 Robert Millan <rmh@aybabtu.com>
33917
33918 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
33919 macros (they were i386-pc specific).
33920 * include/grub/sparc64/ieee1275/console.h: Likewise.
33921 * include/grub/efi/console.h: Likewise.
33922
33923 2008-09-22 Bean <bean123ch@gmail.com>
33924
33925 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
33926 resident and in attribute list.
33927
33928 * include/grub/ntfs.h (BMP_LEN): Removed.
33929
33930 2008-09-22 Bean <bean123ch@gmail.com>
33931
33932 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
33933 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
33934
33935 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
33936 error occurs, as grub_disk_open will call grub_disk_close, which will
33937 call p->close (scsi).
33938
33939 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33940
33941 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
33942 (AC_PREREQ): Bumped to 2.59.
33943 (AC_TRY_COMPILE): Replace obsolete macro with ...
33944 (AC_COMPILE_IFELSE): ... this.
33945 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
33946 (AC_LINK_IFELSE): ... this.
33947
33948 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33949
33950 * autogen.sh: Add a call to `gendistlist.sh'.
33951
33952 2008-09-19 Christian Franke <franke@computer.org>
33953
33954 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
33955 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
33956 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
33957 Export __enable_execute_stack() to modules.
33958 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
33959 New function.
33960
33961 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33962
33963 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
33964 Sort the list.
33965
33966 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33967
33968 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
33969 #include <grub/util/hostdisk.h>.
33970
33971 2008-09-08 Robert Millan <rmh@aybabtu.com>
33972
33973 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
33974 segments when their filesz is zero (grub_file_read() interprets
33975 zero-size as "read until EOF", which results in memory corruption).
33976 Use `lowest_segment' rather than 0 for calculating the current
33977 segment load address.
33978
33979 2008-09-08 Robert Millan <rmh@aybabtu.com>
33980
33981 * util/hostdisk.c (open_device): Replace a grub_util_info() call
33982 with grub_dprintf("hostdisk", ...), as it was so verbose that it
33983 clobbered useful information.
33984
33985 2008-09-08 Robert Millan <rmh@aybabtu.com>
33986
33987 * include/grub/util/biosdisk.h: Move to ...
33988 * include/grub/util/hostdisk.h: ... here. Update all users.
33989 * util/biosdisk.c: Move to ...
33990 * util/hostdisk.c: ... here. Update all users.
33991
33992 2008-09-07 Robert Millan <rmh@aybabtu.com>
33993
33994 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
33995 variables.
33996 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
33997 and length can be stored directly in the `mbi->mmap_addr' and
33998 `mbi->mmap_length' struct fields.
33999
34000 2008-09-07 Robert Millan <rmh@aybabtu.com>
34001
34002 * conf/i386.rmk: New file. Provides declaration for building
34003 `cpuid.mod'.
34004 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34005 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34006 variables.
34007 Include `conf/i386.mk'.
34008 * conf/i386-efi.rmk: Likewise.
34009 * conf/x86_64-efi.rmk: Likewise.
34010 * conf/i386-coreboot.rmk: Likewise.
34011 * conf/i386-ieee1275.rmk: Likewise.
34012
34013 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34014
34015 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34016 Adds optimization support for BGR based modes.
34017
34018 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34019 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34020 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34021 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34022 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34023 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34024 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34025 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34026 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34027 (grub_video_i386_vbeblit_index_index): Likewise.
34028 (grub_video_i386_vbeblit_replace_directN): Added.
34029 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34030 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34031 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34032 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34033 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34034 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34035 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34036 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34037 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34038 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34039 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34040 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34041 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34042
34043 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34044 (grub_video_i386_vbefill_R8G8B8): Likewise.
34045 (grub_video_i386_vbefill_index): Likewise.
34046 (grub_video_i386_vbefill_direct32): Added.
34047 (grub_video_i386_vbefill_direct24): Likewise.
34048 (grub_video_i386_vbefill_direct16): Likewise.
34049 (grub_video_i386_vbefill_direct8): Likewise.
34050
34051 * include/grub/video.h (grub_video_blit_format): Removed
34052 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34053 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34054 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34055 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34056 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34057
34058 * video/video.c (grub_video_get_blit_format): Updated to use new
34059 blit formats. Added handling for 16 bit color modes.
34060
34061 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34062 fillers.
34063 (common_blitter): Updated to use new blitters.
34064
34065 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34066 Removed.
34067 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34068 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34069 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34070 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34071 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34072 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34073 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34074 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34075 (grub_video_i386_vbeblit_index_index): Likewise.
34076 (grub_video_i386_vbeblit_replace_directN): Added.
34077 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34078 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34079 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34080 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34081 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34082 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34083 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34084 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34085 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34086 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34087 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34088 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34089 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34090
34091 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34092 (grub_video_i386_vbefill_R8G8B8): Likewise.
34093 (grub_video_i386_vbefill_index): Likewise.
34094 (grub_video_i386_vbefill_direct32): Added.
34095 (grub_video_i386_vbefill_direct24): Likewise.
34096 (grub_video_i386_vbefill_direct16): Likewise.
34097 (grub_video_i386_vbefill_direct8): Likewise.
34098
34099 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34100 types.
34101
34102 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34103 types.
34104
34105 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34106 blitter types.
34107
34108 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34109 types.
34110
34111 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34112
34113 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34114 RAID level 1.
34115
34116 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34117
34118 * fs/iso9660.c (grub_iso9660_date): New structure.
34119 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34120 (grub_iso9660_uuid): New function.
34121
34122 2008-09-05 Bean <bean123ch@gmail.com>
34123
34124 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34125
34126 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34127 insensitive bit for names in Win32 and Win32 & DOS namespace.
34128
34129 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34130
34131 * include/grub/types.h (LONG_MAX): Likewise.
34132
34133 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34134
34135 * util/getroot.c: Include <config.h>.
34136 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34137 add support for /dev/md/N devices and handle LVM double dash escaping.
34138
34139 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34140
34141 * config.guess: Update to latest version from config git.
34142 * config.sub: Likewise.
34143
34144 2008-09-03 Robert Millan <rmh@aybabtu.com>
34145
34146 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34147 `disk->total_sectors'.
34148
34149 2008-09-01 Colin D Bennett <colin@gibibit.com>
34150
34151 * include/grub/normal.h: Fixed incorrect comment for
34152 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34153
34154 2008-09-01 Colin D Bennett <colin@gibibit.com>
34155
34156 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34157 values with defines.
34158
34159 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34160 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34161 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34162 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34163 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34164 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34165 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34166 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34167 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34168 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34169 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34170 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34171 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34172 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34173 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34174 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34175 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34176 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34177 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34178
34179 2008-08-31 Robert Millan <rmh@aybabtu.com>
34180
34181 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34182 declaration.
34183 (grub_multiboot): Fix a few warnings.
34184
34185 2008-08-31 Robert Millan <rmh@aybabtu.com>
34186
34187 * loader/i386/pc/multiboot.c: Update comment not to say that
34188 boot_device support is unimplemented.
34189
34190 2008-08-31 Robert Millan <rmh@aybabtu.com>
34191
34192 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34193 or memory map support are unimplemented.
34194
34195 2008-08-31 Colin D Bennett <colin@gibibit.com>
34196
34197 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34198
34199 2008-08-31 Colin D Bennett <colin@gibibit.com>
34200
34201 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34202 total video memory in 'vbeinfo' output; show color format details for
34203 each video mode.
34204
34205 2008-08-30 Pavel Roskin <proski@gnu.org>
34206
34207 * util/genmoddep.c: Remove for real this time.
34208 * DISTLIST: Remove util/genmoddep.c.
34209
34210 2008-08-30 Robert Millan <rmh@aybabtu.com>
34211
34212 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34213 as required by Multiboot spec (it was already 4-byte aligned, but
34214 only by chance).
34215
34216 2008-08-29 Pavel Roskin <proski@gnu.org>
34217
34218 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34219 * kern/powerpc/ieee1275/startup.S: ... this.
34220 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34221 * DISTLIST: Likewise.
34222
34223 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34224 grub/cpu/kernel.h. Add start label for consistency with other
34225 platforms. Add grub_prefix immediately after start. Add jump
34226 to the code after grub_prefix.
34227 * include/grub/powerpc/kernel.h: Provide valid values for
34228 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34229
34230 2008-08-29 Bean <bean123ch@gmail.com>
34231
34232 * configure.ac: Change host_os to cygwin for mingw.
34233 (asprintf): New check for function.
34234
34235 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34236 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34237
34238 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34239 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34240 sync, sleep and grub_util_get_disk_size for mingw.
34241
34242 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34243 to get size in mingw.
34244 (open_device): Use flag O_BINARY if it's defined.
34245 (find_root_device): Add dummy code for mingw.
34246
34247 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34248 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34249 (get_scsi_disk_name): Return 0 for mingw.
34250
34251 * util/hostfs.c: #include <grub/util/misc.h>.
34252 (grub_hostfs_open): Use "rb" flag to open file, use
34253 grub_util_get_disk_size to get disk size for mingw.
34254
34255 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34256 (asprintf): New function if HAVE_ASPRINTF is not set.
34257 (sync): New function for mingw.
34258 (sleep): Likewise.
34259 (grub_util_get_disk_size): Likewise.
34260
34261 2008-08-28 Pavel Roskin <proski@gnu.org>
34262
34263 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34264 kern/time.c.
34265
34266 2008-08-28 Robert Millan <rmh@aybabtu.com>
34267
34268 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34269
34270 2008-08-28 Robert Millan <rmh@aybabtu.com>
34271
34272 Change find_grub_drive() syntax so it doesn't prevent it from
34273 detecting NULL names as errors.
34274
34275 * util/biosdisk.c (find_grub_drive): Move free slot search code
34276 from here ...
34277 (find_free_slot): ... to here.
34278 (read_device_map): Use find_free_slot() to search for free slots.
34279
34280 2008-08-27 Marco Gerards <marco@gnu.org>
34281
34282 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34283 (scsi_mod_SOURCES): New variable.
34284 (scsi_mod_CFLAGS): Likewise
34285 (scsi_mod_LDFLAGS): Likewise.
34286
34287 * disk/scsi.c: New file.
34288
34289 * include/grub/scsi.h: Likewise.
34290
34291 * include/grub/scsicmd.h: Likewise.
34292
34293 * disk/ata.c: Include <grub/scsi.h>.
34294 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34295 instead.
34296 (grub_ata_iterate): Skip ATAPI devices.
34297 (grub_ata_open): Only handle ATAPI devices.
34298 (struct grub_atapi_read): Removed.
34299 (grub_atapi_readsector): Likewise.
34300 (grub_ata_read): No longer handle ATAPI devices.
34301 (grub_ata_write): Likewise.
34302 (grub_atapi_iterate): New function.
34303 (grub_atapi_read): Likewise.
34304 (grub_atapi_write): Likewise.
34305 (grub_atapi_open): Likewise.
34306 (grub_atapi_close): Likewise.
34307 (grub_atapi_dev): New variable.
34308 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34309 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34310
34311 * include/grub/disk.h (enum grub_disk_dev_id): Add
34312 `GRUB_DISK_DEVICE_SCSI_ID'.
34313
34314 2008-08-26 Robert Millan <rmh@aybabtu.com>
34315
34316 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34317 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34318 descriptive.
34319
34320 2008-08-23 Bean <bean123ch@gmail.com>
34321
34322 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34323 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34324 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34325 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34326 dm_nv.mod.
34327 (raid5rec_mod_SOURCES): New macro.
34328 (raid5rec_mod_CFLAGS): Likewise.
34329 (raid5rec_mod_LDFLAGS): Likewise.
34330 (raid6rec_mod_SOURCES): Likewise.
34331 (raid6rec_mod_CFLAGS): Likewise.
34332 (raid6rec_mod_LDFLAGS): Likewise.
34333 (mdraid_mod_SOURCES): Likewise.
34334 (mdraid_mod_CFLAGS): Likewise.
34335 (mdraid_mod_LDFLAGS): Likewise.
34336 (dm_nv_mod_SOURCES): Likewise.
34337 (dm_nv_mod_CFLAGS): Likewise.
34338 (dm_nv_mod_LDFLAGS): Likewise.
34339
34340 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34341 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34342 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34343
34344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34345 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34346
34347 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34348
34349 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34350
34351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34352
34353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34354
34355 * disk/raid5_recover.c: New file.
34356
34357 * disk/raid6_recover.c: Likewise.
34358
34359 * disk/mdraid_linux.c: Likewise.
34360
34361 * disk/dmraid_nvidia.c: Likewise.
34362
34363 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34364 ULONG_MAX.
34365
34366 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34367 calculate the size of raid device.
34368 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34369 different layout of raid5.
34370 (grub_raid_scan_device): Remove code specific to mdraid.
34371 (grub_raid_list): New variable.
34372 (free_array): New function.
34373 (grub_raid_register): Likewise.
34374 (grub_raid_unregister): Likewise.
34375 (grub_raid_rescan): Likewise.
34376 (GRUB_MOD_INIT): Don't iterate device here.
34377 (GRUB_MOD_FINI): Use free_array to release resource.
34378
34379 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34380 (grub_raid5_recover_func_t): New function variable type.
34381 (grub_raid6_recover_func_t): Likewise.
34382 (grub_raid5_recover_func): New variable.
34383 (grub_raid6_recover_func): Likewise.
34384 (grub_raid_register): New function.
34385 (grub_raid_unregister): Likewise.
34386 (grub_raid_rescan): Likewise.
34387 (grub_raid_block_xor): Likewise.
34388
34389 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34390 (CMD_CRC): New macro.
34391 (part): Removed.
34392 (read_file): Handle device as well as file.
34393 (cmd_crc): New function.
34394 (fstest): Handle multiple disks.
34395 (options): Remove part, raw and long, add root and diskcount.
34396 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34397 (main): Find the first non option entry and ignore subsequent options,
34398 add handling for the new options, support multiple disks.
34399
34400 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34401
34402 2008-08-23 Bean <bean123ch@gmail.com>
34403
34404 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34405
34406 * genfslist.sh: Ignore kernel.mod.
34407
34408 * genpartmaplist.sh: Likewise.
34409
34410 2008-08-23 Robert Millan <rmh@aybabtu.com>
34411
34412 * util/getroot.c (find_root_device): Skip anything that starts with
34413 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34414
34415 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34416
34417 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34418 * util/grub.d/00_header.in: Allow the administrator to change default
34419 gfxmode via ${GRUB_GFXMODE}.
34420
34421 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34422
34423 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34424
34425 2008-08-21 Robert Millan <rmh@aybabtu.com>
34426
34427 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34428 loader.
34429 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34430 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34431
34432 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34433
34434 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34435 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34436
34437 2008-08-19 Robert Millan <rmh@aybabtu.com>
34438
34439 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34440 (struct grub_virtual_screen): Remove `cursor_color'.
34441 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34442 initialization.
34443 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34444
34445 2008-08-18 Robert Millan <rmh@aybabtu.com>
34446
34447 Unify (identical) linux_normal.c files.
34448 * loader/i386/efi/linux_normal.c: Move from here ...
34449 * loader/linux_normal.c: ... to here. Update all users.
34450 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34451 * loader/i386/ieee1275/linux_normal.c: Likewise.
34452
34453 2008-08-18 Robert Millan <rmh@aybabtu.com>
34454
34455 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34456 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34457 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34458 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34459 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34460 New macros.
34461 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34462 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34463 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34464 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34465 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34466 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34467 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34468 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34469 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34470 portably using grub_getxy().
34471 Replace `-EFI' with `-bzImage' in boot message.
34472
34473 2008-08-17 Robert Millan <rmh@aybabtu.com>
34474
34475 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34476
34477 2008-08-17 Robert Millan <rmh@aybabtu.com>
34478
34479 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34480
34481 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34482 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34483 (grub_machine_mmap_iterate): New function declaration.
34484 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34485 structure.
34486 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34487 macros.
34488
34489 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34490 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34491 Move e820 parsing from here ...
34492 * kern/i386/pc/mmap.c: New file.
34493 (grub_machine_mmap_iterate): ... to here.
34494
34495 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34496 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34497 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34498 (grub_available_iterate): Redeclare to return `void', and redeclare
34499 its hook to use grub_uint64_t as addr and size parameters, and rename
34500 to ...
34501 (grub_machine_mmap_iterate): ... this. Update all users.
34502
34503 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34504 to make it more readable. Rename to ...
34505 (grub_machine_mmap_iterate): ... this.
34506
34507 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34508 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34509 (grub_multiboot): Allocate an extra region after the payload, and fill
34510 it with a Multiboot memory map. Adjust a.out loader to calculate size
34511 with the extra space.
34512 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34513 with the extra space.
34514
34515 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34516
34517 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34518
34519 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34520
34521 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34522 mdate-sh to the list `find' searches for.
34523 * DISTLIST: Regenerated.
34524
34525 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34526
34527 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34528 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34529 genmoddep.awk, gensymlist.sh.in.
34530 (DISTDIRS): Add bus, docs, hook, lib.
34531 * DISTLIST: Regenerated.
34532 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34533
34534 2008-08-16 Robert Millan <rmh@aybabtu.com>
34535
34536 * disk/raid.c (grub_raid_init): Handle/report errors set by
34537 grub_device_iterate().
34538 * disk/lvm.c (grub_lvm_init): Likewise.
34539
34540 2008-08-15 Bean <bean123ch@gmail.com>
34541
34542 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34543 and datehook.mod.
34544 (datetime_mod_SOURCES): New macro.
34545 (datetime_mod_CFLAGS): Likewise.
34546 (datetime_mod_LDFLAGS): Likewise.
34547 (date_mod_SOURCES): Likewise.
34548 (date_mod_CFLAGS): Likewise.
34549 (date_mod_LDFLAGS): Likewise.
34550 (datehook_mod_SOURCES): Likewise.
34551 (datehook_mod_CFLAGS): Likewise.
34552 (datehook_mod_LDFLAGS): Likewise.
34553
34554 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34555 and datehook.mod.
34556 (datetime_mod_SOURCES): New macro.
34557 (datetime_mod_CFLAGS): Likewise.
34558 (datetime_mod_LDFLAGS): Likewise.
34559 (date_mod_SOURCES): Likewise.
34560 (date_mod_CFLAGS): Likewise.
34561 (date_mod_LDFLAGS): Likewise.
34562 (datehook_mod_SOURCES): Likewise.
34563 (datehook_mod_CFLAGS): Likewise.
34564 (datehook_mod_LDFLAGS): Likewise.
34565
34566 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34567 and datehook.mod.
34568 (datetime_mod_SOURCES): New macro.
34569 (datetime_mod_CFLAGS): Likewise.
34570 (datetime_mod_LDFLAGS): Likewise.
34571 (date_mod_SOURCES): Likewise.
34572 (date_mod_CFLAGS): Likewise.
34573 (date_mod_LDFLAGS): Likewise.
34574 (datehook_mod_SOURCES): Likewise.
34575 (datehook_mod_CFLAGS): Likewise.
34576 (datehook_mod_LDFLAGS): Likewise.
34577
34578 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34579 and datehook.mod.
34580 (datetime_mod_SOURCES): New macro.
34581 (datetime_mod_CFLAGS): Likewise.
34582 (datetime_mod_LDFLAGS): Likewise.
34583 (date_mod_SOURCES): Likewise.
34584 (date_mod_CFLAGS): Likewise.
34585 (date_mod_LDFLAGS): Likewise.
34586 (datehook_mod_SOURCES): Likewise.
34587 (datehook_mod_CFLAGS): Likewise.
34588 (datehook_mod_LDFLAGS): Likewise.
34589
34590 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34591 and datehook.mod.
34592 (datetime_mod_SOURCES): New macro.
34593 (datetime_mod_CFLAGS): Likewise.
34594 (datetime_mod_LDFLAGS): Likewise.
34595 (date_mod_SOURCES): Likewise.
34596 (date_mod_CFLAGS): Likewise.
34597 (date_mod_LDFLAGS): Likewise.
34598 (datehook_mod_SOURCES): Likewise.
34599 (datehook_mod_CFLAGS): Likewise.
34600 (datehook_mod_LDFLAGS): Likewise.
34601
34602 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
34603
34604 * commands/date.c: New file.
34605
34606 * hook/datehook.c: Likewise.
34607
34608 * include/grub/lib/datetime.h: Likewise.
34609
34610 * include/grub/i386/cmos.h: Likewise.
34611
34612 * lib/datetime.c: Likewise.
34613
34614 * lib/i386/datetime.c: Likewise.
34615
34616 * lib/efi/datetime.c: Likewise.
34617
34618 2008-08-14 Robert Millan <rmh@aybabtu.com>
34619
34620 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
34621 (grub_mkelfimage_SOURCES): New variable.
34622 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
34623
34624 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
34625 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
34626 * conf/powerpc-ieee1275.rmk: Likewise.
34627 * conf/i386-ieee1275.rmk: Likewise.
34628
34629 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
34630 * kern/i386/coreboot/init.c: Likewise.
34631
34632 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
34633 with `<grub/cpu/kernel.h>'.
34634 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
34635 to ...
34636 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
34637 * kern/i386/coreboot/startup.S: Likewise.
34638
34639 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
34640 (GRUB_MOD_GAP): Remove.
34641 * include/grub/powerpc/kernel.h: New file.
34642 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
34643 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34644 * include/grub/i386/kernel.h: New file.
34645 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
34646 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
34647 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34648
34649 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
34650 `grub-mkelfimage'.
34651 Use --directory when invoking grub_mkimage.
34652
34653 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
34654 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
34655 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
34656 and GRUB_KERNEL_CPU_PREFIX.
34657
34658 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
34659
34660 * include/grub/err.h (grub_err_printf): New function prototype.
34661 * util/misc.c (grub_err_printf): New function.
34662 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
34663 grub_printf.
34664 * kern/err.c (grub_print_error): Use grub_err_printf.
34665
34666 2008-08-13 Robert Millan <rmh@aybabtu.com>
34667
34668 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
34669
34670 2008-08-13 Robert Millan <rmh@aybabtu.com>
34671
34672 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
34673 boot entry.
34674
34675 2008-08-12 Robert Millan <rmh@aybabtu.com>
34676
34677 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
34678 of the relocation code from here ...
34679 (grub_multiboot): ... to here.
34680 (forward_relocator, backward_relocator): Move from here ...
34681 * kern/i386/loader.S (grub_multiboot_forward_relocator)
34682 (grub_multiboot_backward_relocator): ... to here.
34683 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
34684 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
34685 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
34686 (grub_multiboot_forward_relocator_end)
34687 (grub_multiboot_backward_relocator)
34688 (grub_multiboot_backward_relocator_end): New variables.
34689
34690 2008-08-12 Bean <bean123ch@gmail.com>
34691
34692 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
34693
34694 2008-08-11 Robert Millan <rmh@aybabtu.com>
34695
34696 * kern/i386/linuxbios/startup.S: Move from here ...
34697 * kern/i386/coreboot/startup.S: ... to here.
34698
34699 * kern/i386/linuxbios/init.c: Move from here ...
34700 * kern/i386/coreboot/init.c: ... to here.
34701
34702 * kern/i386/linuxbios/table.c: Move from here ...
34703 * kern/i386/coreboot/mmap.c: ... to here.
34704
34705 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
34706
34707 2008-08-11 Robert Millan <rmh@aybabtu.com>
34708
34709 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
34710 errors. Leave it to the upper layer to handle them.
34711
34712 2008-08-09 Christian Franke <franke@computer.org>
34713
34714 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
34715 * conf/common.rmk: Install `grub-pe2elf' only if requested.
34716 Install `grub.d/10_windows' only on Cygwin.
34717 * configure.ac: Add subst of `target_os'.
34718 Check `target_os' also before setting TARGET_OBJ2ELF.
34719 Add `--enable-grub-pe2elf'.
34720
34721 2008-08-08 Robert Millan <rmh@aybabtu.com>
34722
34723 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34724 (grub_last_time): Change type to grub_uint64_t.
34725 (grub_disk_open): Migrate code from to using grub_get_time_ms().
34726 (grub_disk_close): Likewise.
34727
34728 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34729 (run_menu): Migrate code from to using grub_get_time_ms().
34730
34731 * util/misc.c (grub_get_time_ms): New function.
34732
34733 2008-08-08 Marco Gerards <marco@gnu.org>
34734
34735 * disk/ata.c (grub_ata_regget): Change return type to
34736 `grub_uint8_t'.
34737 (grub_ata_regget2): Likewise.
34738 (grub_ata_wait_status): New function.
34739 (grub_ata_wait_busy): Removed function, updated all users to use
34740 `grub_ata_wait_status'.
34741 (grub_ata_wait_drq): Likewise.
34742 (grub_ata_cmd): New function.
34743 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
34744 error handling.
34745 (grub_ata_pio_write): Add error handling.
34746 (grub_atapi_identify): Likewise.
34747 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
34748 handling.
34749 (grub_ata_identify): Use `grub_ata_cmd' and improve error
34750 handling. Actually use the detected registers. Reorder the
34751 detection logic such that it is easier to read.
34752 (grub_ata_pciinit): Do not assign the same ID to each controller.
34753 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
34754 handling.
34755 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
34756
34757 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
34758
34759 2008-08-08 Marco Gerards <marco@gnu.org>
34760
34761 * NEWS: Update.
34762
34763 2008-08-07 Bean <bean123ch@gmail.com>
34764
34765 * include/grub/x86_64/pci.h: New file.
34766
34767 2008-08-07 Christian Franke <franke@computer.org>
34768
34769 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
34770 (TIMER2_GATE): Likewise.
34771 (grub_pit_wait): Add enable/disable of the timer2 gate
34772 bit of port 0x61. This fixes a possible infinite loop.
34773
34774 2008-08-07 Bean <bean123ch@gmail.com>
34775
34776 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
34777 kern/i386/tsc.c and kern/i386/pit.c.
34778
34779 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
34780 x86_64 platform.
34781
34782 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
34783 <grub/i386/tsc.h>.
34784
34785 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
34786
34787 2008-08-07 Bean <bean123ch@gmail.com>
34788
34789 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
34790
34791 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
34792
34793 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
34794 multiple inclusion. Add #include <grub/types.h>.
34795
34796 2008-08-06 Christian Franke <franke@computer.org>
34797
34798 * conf/common.rmk: Build and install `10_windows'.
34799 * util/grub.d/10_windows.in: New script.
34800
34801 2008-08-06 Pavel Roskin <proski@gnu.org>
34802
34803 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
34804
34805 2008-08-06 Robert Millan <rmh@aybabtu.com>
34806
34807 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
34808 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
34809
34810 2008-08-06 Bean <bean123ch@gmail.com>
34811
34812 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
34813 (grub_pxefs_fs_int): Remove dummy definition.
34814 (grub_pxefs_open): Use data->block_size to store the current block
34815 size setting.
34816 (grub_pxefs_read): Use block size stored in data->block_size. As the
34817 value of grub_pxe_blksize can be changed after the file is opened.
34818
34819 2008-08-06 Bean <bean123ch@gmail.com>
34820
34821 * fs/i386/pc/pxe.c (curr_file): new variable.
34822 (grub_pxefs_open): Simply the handling of pxe file system. Don't
34823 require the dummy internal file system anymore.
34824 (grub_pxefs_read): Removed.
34825 (grub_pxefs_close): Likewise.
34826 (grub_pxefs_fs_int): Likewise.
34827 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
34828 connection when we switch file.
34829 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
34830
34831 2008-08-06 Robert Millan <rmh@aybabtu.com>
34832
34833 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
34834 `halt.mod'.
34835 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
34836 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
34837
34838 * kern/i386/halt.c: New file.
34839 * kern/i386/reboot.c: Likewise.
34840 * include/grub/i386/reboot.h: Likewise.
34841 * include/grub/i386/halt.h: Likewise.
34842
34843 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
34844 Include `<grub/cpu/halt.h>'.
34845 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
34846 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
34847
34848 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
34849 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
34850 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
34851 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
34852 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
34853 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
34854 from here ...
34855 * include/grub/i386/at_keyboard.h: ... to here.
34856
34857 2008-08-05 Robert Millan <rmh@aybabtu.com>
34858
34859 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
34860 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
34861 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
34862 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34863 `kern/generic/millisleep.c'.
34864
34865 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
34866 instead of grub_get_rtc().
34867 (grub_tsc_init): Initialize `tsc_boot_time'.
34868
34869 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
34870 (grub_machine_init): Use grub_tsc_init() rather than
34871 installing an RTC-based handler via grub_install_get_time_ms().
34872
34873 * kern/i386/pit.c: New file.
34874 * include/grub/i386/pit.h: Likewise.
34875
34876 2008-08-05 Bean <bean123ch@gmail.com>
34877
34878 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
34879
34880 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
34881 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
34882 (pxe_mod_SOURCES): New macro.
34883 (pxe_mod_CFLAGS): Likewise.
34884 (pxe_mod_LDFLAGS): Likewise.
34885 (pxecmd_mod_SOURCES): Likewise.
34886 (pxecmd_mod_CFLAGS): Likewise.
34887 (pxecmd_mod_LDFLAGS): Likewise.
34888
34889 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
34890 (grub_pxe_call): Likewise.
34891
34892 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
34893
34894 * commands/i386/pc/pxecmd.c: New file.
34895
34896 * fs/i386/pc/pxe.c: Likewise.
34897
34898 * include/grub/i386/pc/pxe.h: Likewise.
34899
34900 2008-08-05 Bean <bean123ch@gmail.com>
34901
34902 * util/console.c (grub_console_cur_color): New variable.
34903 (grub_console_standard_color): Likewise.
34904 (grub_console_normal_color): Likewise.
34905 (grub_console_highlight_color): Likewise.
34906 (color_map): Likewise.
34907 (use_color): Likewise.
34908 (NUM_COLORS): New macro.
34909 (grub_ncurses_setcolorstate): Handle color properly.
34910 (grub_ncurses_setcolor): Don't change color here, just remember the
34911 settings, color will be set in grub_ncurses_setcolorstate.
34912 (grub_ncurses_getcolor): New function.
34913 (grub_ncurses_init): Initialize color pairs.
34914 (grub_ncurses_term): New member grub_ncurses_getcolor.
34915
34916 2008-08-05 Colin D Bennett <colin@gibibit.com>
34917
34918 High resolution timer support. Implemented for x86 CPUs using TSC.
34919 Extracted generic grub_millisleep() so it's linked in only as needed.
34920 This requires a Pentium compatible CPU; if the RDTSC instruction is
34921 not supported, then it falls back on the generic grub_get_time_ms()
34922 implementation that uses the machine's RTC.
34923
34924 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
34925 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34926 `kern/generic/millisleep.c'.
34927
34928 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
34929 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
34930
34931 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
34932 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
34933
34934 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34935
34936 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34937 `kern/generic/millisleep.c'.
34938
34939 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34940
34941 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
34942
34943 * kern/generic/rtc_get_time_ms.c: New file.
34944
34945 * kern/generic/millisleep.c: New file.
34946
34947 * kern/misc.c: Don't include
34948 <kern/time.h> anymore.
34949 (grub_millisleep_generic): Removed.
34950
34951 * commands/sleep.c (grub_interruptible_millisleep): Uses
34952 grub_get_time_ms() instead of grub_get_rtc().
34953
34954 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
34955 function.
34956 (grub_cpu_is_cpuid_supported): New inline function.
34957 (grub_cpu_is_tsc_supported): New inline function.
34958 (grub_tsc_init): New function prototype.
34959 (grub_tsc_get_time_ms): New function prototype.
34960
34961 * kern/i386/tsc.c (grub_get_time_ms): New file.
34962
34963 * include/grub/time.h: Include <grub/types.h.
34964 (grub_millisleep_generic): Removed.
34965 (grub_get_time_ms): New prototype.
34966 (grub_install_get_time_ms): New prototype.
34967 (grub_rtc_get_time_ms): New prototype.
34968
34969 * kern/time.c (grub_get_time_ms): New function.
34970 (grub_install_get_time_ms): New function.
34971
34972 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
34973 <grub/time.h> anymore.
34974 (grub_millisleep): Removed.
34975 (grub_machine_init): Call grub_tsc_init.
34976
34977 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
34978 get_time_ms() implementation.
34979
34980 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
34981 (ieee1275_get_time_ms): New function.
34982 (grub_machine_init): Install get_time_ms() implementation.
34983
34984 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
34985 (grub_machine_init): Call grub_tsc_init().
34986 (grub_millisleep): Removed.
34987
34988 * kern/ieee1275/init.c (grub_millisleep): Removed.
34989 (grub_machine_init): Install ieee1275_get_time_ms()
34990 implementation.
34991 (ieee1275_get_time_ms): New function.
34992 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
34993 real work.
34994
34995 2008-08-05 Marco Gerards <marco@gnu.org>
34996
34997 * disk/ata.c: Include <grub/pci.h>.
34998 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
34999 (grub_ata_initialize): Rewritten.
35000 (grub_ata_device_initialize): New function.
35001
35002 2008-08-04 Pavel Roskin <proski@gnu.org>
35003
35004 * kern/main.c: Include grub/mm.h.
35005
35006 2008-08-04 Robert Millan <rmh@aybabtu.com>
35007
35008 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35009 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35010 corruption problem).
35011
35012 2008-08-04 Robert Millan <rmh@aybabtu.com>
35013
35014 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35015 warnings introduced in my last commit.
35016
35017 2008-08-03 Robert Millan <rmh@aybabtu.com>
35018
35019 Make PCI available on all i386 architectures.
35020
35021 * include/grub/i386/pc/pci.h: Move from here ...
35022 * include/grub/i386/pci.h: ... to here.
35023
35024 * include/grub/i386/pc/pci.h: Remove.
35025 * include/grub/i386/efi/pci.h: Remove.
35026 * include/grub/x86_64/efi/pci.h: Remove.
35027
35028 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35029 `<grub/cpu/pci.h>'.
35030
35031 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35032 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35033 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35034
35035 * conf/i386-ieee1275.rmk: Likewise.
35036
35037 2008-08-03 Robert Millan <rmh@aybabtu.com>
35038
35039 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35040 (grub_console_setcursor): Make it possible to set cursor off.
35041
35042 2008-08-03 Robert Millan <rmh@aybabtu.com>
35043
35044 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35045 of modules instead of assuming which platform provides what.
35046 * util/update-grub.in: Likewise.
35047
35048 2008-08-03 Robert Millan <rmh@aybabtu.com>
35049
35050 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35051 instead of `grub_install_dos_part' to determine whether a drive needs
35052 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35053 because it can be overridden when loading GRUB via Multiboot).
35054
35055 2008-08-02 Robert Millan <rmh@aybabtu.com>
35056
35057 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35058
35059 2008-08-02 Robert Millan <rmh@aybabtu.com>
35060
35061 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35062 of informational grub_dprintf() calls.
35063
35064 2008-08-02 Robert Millan <rmh@aybabtu.com>
35065
35066 * disk/memdisk.c (memdisk_size): Don't initialize.
35067 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35068
35069 * include/grub/i386/pc/kernel.h
35070 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35071 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35072 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35073 (grub_arch_memdisk_size): Remove.
35074
35075 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35076 field (was only used to transfer a constant). Add `type' field to
35077 support multiple module types.
35078 (grub_module_iterate): New function.
35079
35080 * kern/device.c (grub_device_open): Do not hide error messages
35081 when grub_disk_open() fails. Use grub_print_error() instead.
35082
35083 * kern/i386/pc/init.c (grub_arch_modules_addr)
35084 (grub_arch_memdisk_size): Remove functions.
35085 (grub_arch_modules_addr): Return the module address in high memory
35086 (now that it isn't copied anymore).
35087
35088 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35089 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35090 decompression routine (grub_total_module_size already includes that
35091 now). Don't copy modules back to low memory.
35092
35093 * kern/main.c: Include `<grub/mm.h>'.
35094 (grub_load_modules): Split out (and use) ...
35095 (grub_module_iterate): ... this function, which iterates through
35096 module objects and runs a hook.
35097 Comment out grub_mm_init_region() call, as it would cause non-ELF
35098 modules to be overwritten.
35099
35100 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35101 the memdisk image in its own region, make it part of the module list.
35102 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35103 (main): Parse --memdisk|-m option, and pass user-provided path as
35104 parameter to generate_image().
35105 (add_segments): Pass `memdisk_path' down to load_modules().
35106 (load_modules): Embed memdisk image in module section when requested.
35107 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35108 `header.type' instead of `header.offset'.
35109
35110 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35111 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35112 (memdisk_mod_LDFLAGS): New variables.
35113 * conf/i386-coreboot.rmk: Likewise.
35114 * conf/i386-ieee1275.rmk: Likewise.
35115
35116 2008-08-02 Robert Millan <rmh@aybabtu.com>
35117
35118 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35119 (backward_relocator): New variables. Used to allocate and relocate
35120 the payload, respectively.
35121 (grub_multiboot_load_elf32): Load into heap instead of requested
35122 address, install the appropriate relocator code in each bound of
35123 the payload, and set the entry point such that
35124 grub_multiboot_real_boot() will jump to one of them.
35125
35126 * kern/i386/loader.S (grub_multiboot_payload_size)
35127 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35128 (grub_multiboot_payload_entry_offset): New variables.
35129 (grub_multiboot_real_boot): Set cpu context to what the relocator
35130 expects, and jump to the relocator instead of the payload.
35131
35132 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35133 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35134 (grub_multiboot_payload_entry_offset): Export.
35135
35136 2008-08-01 Bean <bean123ch@gmail.com>
35137
35138 * normal/menu_entry.c (editor_getline): Don't return the original
35139 string as result, as it will be released by lexer once it has done
35140 using it.
35141
35142 2008-08-01 Robert Millan <rmh@aybabtu.com>
35143
35144 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35145 within menuentries, not before them.
35146 util/grub.d/10_hurd.in: Likewise.
35147
35148 2008-08-01 Bean <bean123ch@gmail.com>
35149
35150 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35151 (bufio_mod_SOURCES): New macro.
35152 (bufio_mod_CFLAGS): Likewise.
35153 (bufio_mod_LDFLAGS): Likewise.
35154
35155 * include/grub/bufio.h: New file.
35156
35157 * io/bufio.c: Likewise.
35158
35159 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35160 (grub_video_reader_png): Use grub_buffile_open to open file.
35161
35162 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35163 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35164
35165 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35166 (grub_video_reader_tga): Use grub_buffile_open to open file.
35167
35168 * font/manager.c: Include <grub/bufio.h>.
35169 (add_font): Use grub_buffile_open to open file.
35170
35171 2008-07-31 Robert Millan <rmh@aybabtu.com>
35172
35173 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35174 ELF segments, use a macro for arbitrarily accessing any of them instead
35175 of preparing a pointer that allows access to one at a time.
35176 (grub_multiboot_load_elf64): Likewise.
35177
35178 2008-07-31 Bean <bean123ch@gmail.com>
35179
35180 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35181 GRUB_KERNEL_MACHINE_DATA_END.
35182
35183 2008-07-30 Robert Millan <rmh@aybabtu.com>
35184
35185 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35186 Increase from 0x50 to 0x60.
35187 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35188 use UUIDs to identify the root drive for them. If that's not
35189 possible, abort.
35190 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35191 check, for cross-disk installs.
35192
35193 2008-07-30 Robert Millan <rmh@aybabtu.com>
35194
35195 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35196 is non-empty, use it to set the `prefix' environment variable instead
35197 of the usual approach.
35198 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35199 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35200 environment variable instead of dummy make_install_device().
35201
35202 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35203 (start): Insert a data section, with `grub_prefix' variable.
35204 * kern/i386/linuxbios/startup.S: Likewise.
35205
35206 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35207 New variable reference.
35208 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35209 New macro. Defines offset of `grub_prefix' within startup.S (relative
35210 to `start').
35211 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35212 section within startup.S (relative to `start').
35213 * include/grub/i386/coreboot/kernel.h: Likewise.
35214
35215 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35216 Overwrite grub_prefix with its contents, at the beginning of the
35217 first segment.
35218 (main): Understand -p|--prefix.
35219
35220 2008-07-30 Robert Millan <rmh@aybabtu.com>
35221
35222 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35223
35224 2008-07-30 Robert Millan <rmh@aybabtu.com>
35225
35226 * term/i386/pc/vga_text.c (grub_console_cls): Use
35227 grub_console_gotoxy() to go back to beginning of the screen.
35228 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35229
35230 2008-07-29 Christian Franke <franke@computer.org>
35231
35232 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35233 Add conversion of emulated mount points on Cygwin.
35234
35235 2008-07-29 Christian Franke <franke@computer.org>
35236
35237 * util/update-grub.in: Add a check for admin
35238 group on Cygwin.
35239 Remove old `grub.cfg.new' before creation.
35240 Add `-f' to `mv' to handle the different filesystem
35241 semantics of Windows.
35242
35243 2008-07-29 Bean <bean123ch@gmail.com>
35244
35245 * normal/main.c (get_line): Fix buffer overflow bug.
35246
35247 2008-07-28 Robert Millan <rmh@aybabtu.com>
35248
35249 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35250 (struct grub_apple_header): New struct. Describes the layout of
35251 the partmap header.
35252 (apple_partition_map_iterate): Check the header magic as well as the
35253 partition magic (which was already being checked).
35254
35255 2008-07-28 Pavel Roskin <proski@gnu.org>
35256
35257 * genmk.rb: Add a warning to the beginning of the output that
35258 it's a generated file and should not be edited.
35259
35260 2008-07-28 Robert Millan <rmh@aybabtu.com>
35261
35262 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35263 with the same number are found, just use issue a warning with
35264 grub_dprintf(), as this error has been reported to be non-fatal.
35265
35266 2008-07-27 Robert Millan <rmh@aybabtu.com>
35267
35268 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35269 information.
35270
35271 2008-07-27 Bean <bean123ch@gmail.com>
35272
35273 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35274 (grub_fat_find_dir): Ignore case when comparing filename.
35275
35276 2008-07-27 Bean <bean123ch@gmail.com>
35277
35278 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35279 smallino, as it's more descriptive, and i8count can be confused with
35280 the other field count.
35281 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35282 inode type.
35283
35284 2008-07-27 Bean <bean123ch@gmail.com>
35285
35286 * commands/crc.c: New file.
35287
35288 * lib/crc.c: Likewise.
35289
35290 * include/grub/lib/crc.h: Likewise.
35291
35292 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35293
35294 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35295 (hexdump): Move this function to ...
35296
35297 * lib/hexdump.c: ... here.
35298
35299 * include/grub/hexdump.h: Renamed to ...
35300
35301 * include/grub/lib/hexdump.h: ... this.
35302
35303 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35304
35305 * util/grub-editenv.c: Likewise.
35306
35307 * include/envblk.h: Renamed to ...
35308
35309 * include/lib/envblk.h: ... this.
35310
35311 * util/envblk.c: Renamed to ...
35312
35313 * lib/envblk.c: ... this.
35314
35315 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35316 lib/hexdump.c.
35317 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35318 (pkglib_MODULES): Add crc.mod.
35319 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35320 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35321 (crc_mod_SOURCES): New macro.
35322 (crc_mod_CFLAGS): Likewise.
35323 (crc_mod_LDFLAGS): Likewise.
35324
35325 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35326
35327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35328
35329 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35330
35331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35332
35333 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35334
35335 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35336
35337 * commands/help.c: Include <grub/term.h>.
35338 (TERM_WIDTH): Removed. Updated all users.
35339
35340 2008-07-27 Pavel Roskin <proski@gnu.org>
35341
35342 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35343 spurious warnings about a comment within a comment.
35344
35345 2008-07-25 Robert Millan <rmh@aybabtu.com>
35346
35347 * util/getroot.c (find_root_device): Skip devices that match
35348 /dev/dm-[0-9]. This lets the real device be found for any type of
35349 abstraction (LVM, EVMS, RAID..).
35350 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35351 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35352 device is found first, find_root_device() will now skip it.
35353
35354 2008-07-24 Pavel Roskin <proski@gnu.org>
35355
35356 * include/grub/types.h: Use __builtin_bswap32() and
35357 __builtin_bswap64() with gcc 4.3 and newer.
35358
35359 2008-07-24 Christian Franke <franke@computer.org>
35360
35361 * util/i386/pc/grub-install.in: If `--debug' is specified,
35362 pass `--verbose' to grub-setup.
35363 Abort script if make_system_path_relative_to_its_root() fails.
35364
35365 2008-07-24 Bean <bean123ch@gmail.com>
35366
35367 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35368 variable `target_platform' should be `platform'.
35369
35370 2008-07-24 Bean <bean123ch@gmail.com>
35371
35372 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35373 (grub_png_init_fixed_block): New function.
35374 (grub_png_decode_image_data): Handle fixed huffman code compression.
35375
35376 2008-07-24 Bean <bean123ch@gmail.com>
35377
35378 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35379 (grub_pe2elf_SOURCES): New macro.
35380 (CLEANFILES): Add grub-pe2elf.
35381
35382 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35383 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35384 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35385 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35386 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35387 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35388 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35389 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35390 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35391 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35392 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35393 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35394 (GRUB_PE32_DT_FUNCTION): Likewise.
35395 (GRUB_PE32_REL_I386_DIR32): Likewise.
35396 (GRUB_PE32_REL_I386_REL32): Likewise.
35397 (grub_pe32_symbol): New structure.
35398 (grub_pe32_reloc): Likewise.
35399
35400 * util/grub-pe2elf.c: New file.
35401
35402 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35403 start symbol in non pc platform.
35404
35405 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35406
35407 The following patches are from Christian Franke.
35408
35409 * include/grub/dl.h: Remove .previous, gas supports this only
35410 for ELF format.
35411
35412 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35413 Remove .type, gas supports this only for ELF format.
35414
35415 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35416 nullbytes in symbol table. This fixes an infinite loop if table is
35417 zero filled.
35418
35419 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35420 TARGET_IMG_LDFLAGS and EXEEXT.
35421
35422 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35423 TARGET_IMG_LDFLAGS_AC.
35424 (grub_CHECK_STACK_ARG_PROBE): New function.
35425
35426 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35427
35428 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35429
35430 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35431 to set TARGET_IMG_LD* accordingly.
35432 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35433 Add call to grub_CHECK_STACK_ARG_PROBE.
35434 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35435
35436 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35437
35438 * genmk.rb: Add EXEEXT to CLEANFILES.
35439
35440 2008-07-23 Robert Millan <rmh@aybabtu.com>
35441
35442 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35443 define the codes for arrows and lines used for the menu).
35444 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35445 as well.
35446
35447 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35448 fonts, because the latter are too slow.
35449
35450 2008-07-21 Bean <bean123ch@gmail.com>
35451
35452 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35453 a20. Run keyboard test last, as it will cause macbook to halt.
35454
35455 2008-07-18 Pavel Roskin <proski@gnu.org>
35456
35457 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35458 load foreign architecture modules correctly anyway. Keep
35459 support for loading host architecture modules, whether we
35460 compile them or not.
35461
35462 2008-07-17 Pavel Roskin <proski@gnu.org>
35463
35464 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35465 change target_cpu. The compiler default can mismatch target_cpu
35466 in any case.
35467
35468 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35469 * kern/efi/efi.c: Likewise.
35470
35471 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35472 target compiler is functional.
35473 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35474 are set up.
35475
35476 * configure.ac: Default to efi platform for x86_64-apple. Allow
35477 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35478 adjustments from the rest, only do them if target is not
35479 explicitly given. Merge other adjustments with the final sanity
35480 check. Remove an extraneous check for supported CPU. Be
35481 specific which CPU and which platform is not supported.
35482
35483 * configure.ac: Default to pc platform for x86_64.
35484
35485 2008-07-17 Robert Millan <rmh@aybabtu.com>
35486
35487 Partial LinuxBIOS -> Coreboot rename.
35488
35489 * conf/i386-linuxbios.rmk: Renamed to ...
35490 * conf/i386-coreboot.rmk: ... this.
35491 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35492 * configure.ac: Accept "coreboot" as input platform (but maintain
35493 compatibility with "linuxbios").
35494 * include/grub/i386/linuxbios: Renamed to ...
35495 * include/grub/i386/coreboot: ... this.
35496
35497 2008-07-17 Bean <bean123ch@gmail.com>
35498
35499 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35500 (appleldr_mod_SOURCE): New variable.
35501 (appleldr_mod_CFLAGS): Likewise.
35502 (appleldr_mod_LDFLAGS): Likewise.
35503 (pci_mod_SOURCES): Likewise.
35504 (pci_mod_CFLAGS): Likewise.
35505 (pci_mod_LDFLAGS): Likewise.
35506 (lspci_mod_SOURCES): Likewise.
35507 (lspci_mod_CFLAGS): Likewise.
35508 (lspci_mod_LDFLAGS): Likewise.
35509
35510 * conf/x86_64-efi.rmk: New file.
35511
35512 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35513 macro.
35514 (grub_efidisk_write): Likewise.
35515
35516 * include/efi/api.h (efi_call_0): New macro.
35517 (efi_call_1): Likewise.
35518 (efi_call_2): Likewise.
35519 (efi_call_3): Likewise.
35520 (efi_call_4): Likewise.
35521 (efi_call_5): Likewise.
35522 (efi_call_6): Likewise.
35523
35524 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35525 grub_rescue_cmd_chainloader.
35526
35527 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35528 (grub_pe32_optional_header): Change some fields based on i386 or
35529 x86_64 platform.
35530 (GRUB_PE32_PE32_MAGIC): Likewise.
35531
35532 * include/grub/efi/uga_draw.h: New file.
35533
35534 * include/grub/elf.h (STN_ABS): New constant.
35535 (R_X86_64_NONE): Relocation constant for x86_64.
35536 (R_X86_64_64): Likewise.
35537 (R_X86_64_PC32): Likewise.
35538 (R_X86_64_GOT32): Likewise.
35539 (R_X86_64_PLT32): Likewise.
35540 (R_X86_64_COPY): Likewise.
35541 (R_X86_64_GLOB_DAT): Likewise.
35542 (R_X86_64_JUMP_SLOT): Likewise.
35543 (R_X86_64_RELATIVE): Likewise.
35544 (R_X86_64_GOTPCREL): Likewise.
35545 (R_X86_64_32): Likewise.
35546 (R_X86_64_32S): Likewise.
35547 (R_X86_64_16): Likewise.
35548 (R_X86_64_PC16): Likewise.
35549 (R_X86_64_8): Likewise.
35550 (R_X86_64_PC8): Likewise.
35551
35552 * include/grub/i386/efi/pci.h: New file.
35553
35554 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
35555 Change it value based on platform.
35556 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
35557 (GRUB_E820_RAM): Likewise.
35558 (GRUB_E820_RESERVED): Likewise.
35559 (GRUB_E820_ACPI): Likewise.
35560 (GRUB_E820_NVS): Likewise.
35561 (GRUB_E820_EXEC_CODE): Likewise.
35562 (GRUB_E820_MAX_ENTRY): Likewise.
35563 (grub_e820_mmap): New structure.
35564 (linux_kernel_header): Change the efi field according to different
35565 kernel version, also field from linux_kernel_header.
35566
35567 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
35568
35569 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
35570 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
35571 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
35572 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
35573 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
35574 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
35575 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
35576 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
35577 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
35578 (GRUB_PCI_ADDR_IO_MASK): Likewise.
35579
35580 * include/grub/x86_64/efi/kernel.h: New file.
35581
35582 * include/grub/x86_64/efi/loader.h: Likewise.
35583
35584 * include/grub/x86_64/efi/machine.h: Likewise.
35585
35586 * include/grub/x86_64/efi/pci.h: Likewise.
35587
35588 * include/grub/x86_64/efi/time.h: Likewise.
35589
35590 * include/grub/x86_64/linux.h: Likewise.
35591
35592 * include/grub/x86_64/setjmp.h: Likewise.
35593
35594 * include/grub/x86_64/time.h: Likewise.
35595
35596 * include/grub/x86_64/types.h: Likewise.
35597
35598 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
35599 GRUB_TARGET_SIZEOF_VOID_P.
35600
35601 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
35602 (grub_efi_locate_handle): Likewise.
35603 (grub_efi_open_protocol): Likewise.
35604 (grub_efi_set_text_mode): Likewise.
35605 (grub_efi_stall): Likewise.
35606 (grub_exit): Likewise.
35607 (grub_reboot): Likewise.
35608 (grub_halt): Likewise.
35609 (grub_efi_exit_boot_services): Likewise.
35610 (grub_get_rtc): Likewise.
35611
35612 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
35613 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
35614 (grub_efi_allocate_pages): Wrap efi calls.
35615 (grub_efi_free_pages): Wrap efi calls.
35616 (grub_efi_get_memory_map): Wrap efi calls.
35617
35618 * kern/x86_64/dl.c: New file.
35619
35620 * kern/x86_64/efi/callwrap.S: Likewise.
35621
35622 * kern/x86_64/efi/startup.S: Likewise.
35623
35624 * loader/efi/appleloader.c: Likewise.
35625
35626 * loader/efi/chainloader.c (cmdline): New variable.
35627 (grub_chainloader_unload): Wrap efi calls.
35628 (grub_chainloader_boot): Likewise.
35629 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
35630 command line.
35631
35632 * loader/efi/chainloader_normal.c (chainloader_command):
35633 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
35634 command line.
35635
35636 * loader/i386/efi/linux.c (allocate_pages): Change allocation
35637 method.
35638 (grub_e820_add_region): New function.
35639 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
35640 booting.
35641 (grub_find_video_card): New function.
35642 (grub_linux_setup_video): New function.
35643 (grub_rescue_cmd_linux): Probe for video information.
35644
35645 * normal/x86_64/setjmp.S: New file.
35646
35647 * term/efi/console.c (map_char): New function.
35648 (grub_console_putchar): Map unicode char.
35649 (grub_console_checkkey): Wrap efi calls.
35650 (grub_console_getkey): Likewise.
35651 (grub_console_getwh): Likewise.
35652 (grub_console_gotoxy): Likewise.
35653 (grub_console_cls): Likewise.
35654 (grub_console_setcolorstate): Likewise.
35655 (grub_console_setcursor): Likewise.
35656
35657 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
35658
35659 2008-07-16 Pavel Roskin <proski@gnu.org>
35660
35661 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
35662 format strings.
35663
35664 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
35665 pointer, not an integer. This fixes a warning and prevents
35666 precision loss on 64-bit systems.
35667 (relocate_addresses): Remove unneeded cast.
35668
35669 2008-07-15 Pavel Roskin <proski@gnu.org>
35670
35671 * kern/i386/ieee1275/init.c: Include grub/cache.h.
35672
35673 * term/ieee1275/ofconsole.c: Disable code unused on i386.
35674
35675 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
35676 Fix comparison between signed and unsigned.
35677
35678 * include/grub/i386/ieee1275/console.h: Declare
35679 grub_console_init() and grub_console_fini().
35680
35681 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
35682 It's empty and unused.
35683
35684 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
35685 beginning to avoid warnings with some compilers.
35686
35687 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
35688 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
35689
35690 2008-07-14 Pavel Roskin <proski@gnu.org>
35691
35692 * kern/env.c (grub_register_variable_hook): Don't copy empty
35693 string, it leaks memory. Pass "" to grub_env_set(), it should
35694 handle constant strings.
35695
35696 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
35697 * commands/cmp.c (grub_cmd_cmp): Likewise.
35698 * kern/dl.c (grub_dl_flush_cache): Likewise.
35699 (grub_dl_load_core): Likewise.
35700 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
35701 (grub_elf64_load_phdrs): Likewise.
35702
35703 2008-07-13 Pavel Roskin <proski@gnu.org>
35704
35705 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
35706 between signed and unsigned.
35707 (LzmaEnc_Finish): Fix warning about an unused parameter.
35708
35709 2008-07-13 Bean <bean123ch@gmail.com>
35710
35711 * Makefile.in (enable_lzo): New rule.
35712
35713 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
35714
35715 * configure.ac (ENABLE_LZO): New option --enable-lzo.
35716
35717 * boot/i386/pc/lnxboot.S: #include <config.h>.
35718
35719 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
35720 its value according to the compression algorithm used, lzo or lzma.
35721
35722 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
35723 compression algorithm according to configure macro.
35724
35725 * kern/i386/pc/startup.S (codestart): Likewise.
35726
35727 * kern/i386/pc/lzma_decode.S: New file.
35728
35729 * include/grub/lib/LzFind.h: Likewise.
35730
35731 * include/grub/lib/LzHash.h: Likewise.
35732
35733 * include/grub/lib/LzmaDec.h: Likewise.
35734
35735 * include/grub/lib/LzmaEnc.h: Likewise.
35736
35737 * include/grub/lib/LzmaTypes.h: Likewise.
35738
35739 * lib/LzFind.c: Likewise.
35740
35741 * lib/LzmaDec.c: Likewise.
35742
35743 * lib/LzmaEnc.c: Likewise.
35744
35745 2008-07-13 Bean <bean123ch@gmail.com>
35746
35747 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
35748 (grub_ext4_extent_header): New structure.
35749 (grub_ext4_extent): Likewise.
35750 (grub_ext4_extent_idx): Likewise.
35751 (grub_ext4_find_leaf): New function.
35752 (grub_ext2_read_block): Handle extents.
35753
35754 2008-07-12 Robert Millan <rmh@aybabtu.com>
35755
35756 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
35757
35758 2008-07-11 Robert Millan <rmh@aybabtu.com>
35759
35760 * util/grub.d/40_custom.in: New file. Example on how to add custom
35761 entries to /etc/grub.d.
35762 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
35763 40_custom (implicitly, by merging all the grub.d rules).
35764
35765 2008-07-11 Pavel Roskin <proski@gnu.org>
35766
35767 * commands/read.c (grub_getline): Fix invalid memory access.
35768 Don't add newline to the variable value.
35769
35770 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
35771 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
35772 (serial_hw_get_port): Check validity of the port number.
35773 (grub_cmd_serial): Check return value of serial_hw_get_port().
35774
35775 2008-07-07 Pavel Roskin <proski@gnu.org>
35776
35777 * boot/i386/pc/diskboot.S (notification_string): Replace
35778 "Loading kernel" with just "loading". This is shorter, less
35779 confusing and saves a few bytes for possible future changes.
35780
35781 2008-07-05 Pavel Roskin <proski@gnu.org>
35782
35783 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
35784 size for ATAPI devices, they are undefined. Output sector
35785 number in decimal form.
35786
35787 * disk/ata.c: Use named constants for status bits.
35788
35789 2008-07-04 Pavel Roskin <proski@gnu.org>
35790
35791 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
35792 grub_addr_t before casting it to the void pointer to fix a
35793 warning. Non-addressable regions are discarded earlier.
35794 (grub_arch_modules_addr): Cast _end to grub_addr_t.
35795 * kern/i386/linuxbios/table.c: Include grub/misc.h.
35796 (check_signature): Don't shadow table_header.
35797 (grub_linuxbios_table_iterate): Cast numeric constants to
35798 grub_linuxbios_table_header_t.
35799 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
35800 grub_stop().
35801
35802 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
35803 prevent warnings.
35804
35805 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
35806 pointer, which can cause warnings. Support 64-bit addresses.
35807
35808 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
35809 of sizeof(long). This fixes PowerPC image generation on x86_64.
35810
35811 2008-07-04 Robert Millan <rmh@aybabtu.com>
35812
35813 This fixes a performance issue when pc & gpt partmap iterators
35814 didn't abort iteration even after our hook found what it was
35815 looking for (often causing expensive probes of non-existent drives).
35816
35817 Some callers relied on previous buggy behaviour, since they would
35818 raise an error when their own hooks caused early abortion of its
35819 iteration.
35820
35821 * kern/device.c (grub_device_open): Improve error message.
35822 * disk/lvm.c (grub_lvm_open): Likewise.
35823 * disk/raid.c (grub_raid_open): Likewise.
35824
35825 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
35826 when hook requests it, independently of grub_errno.
35827 (pc_partition_map_probe): Do not fail when find_func() caused
35828 early abortion of pc_partition_map_iterate().
35829
35830 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
35831 when hook requests it, independently of grub_errno.
35832 (gpt_partition_map_probe): Do not fail when find_func() caused
35833 early abortion of gpt_partition_map_iterate().
35834
35835 * kern/partition.c (grub_partition_iterate): Abort parent iteration
35836 when hook requests it, independently of grub_errno. Do not fail when
35837 part_map_iterate_hook() caused early abortion of p->iterate().
35838
35839 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
35840 when grub_partition_iterate() returned with non-zero.
35841
35842 2008-07-03 Pavel Roskin <proski@gnu.org>
35843
35844 * disk/ata.c (grub_ata_pio_write): Check status before writing,
35845 like we do in grub_ata_pio_read().
35846 (grub_ata_readwrite): Always write individual sectors. Fix the
35847 sector count for the remainder.
35848 (grub_ata_write): Enable writing to ATA devices. Correctly
35849 report error for ATAPI devices.
35850
35851 2008-07-02 Pavel Roskin <proski@gnu.org>
35852
35853 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
35854 warning.
35855
35856 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
35857 for every read sector, we already increment it for the whole
35858 batch. This fixes reading more than 256 sectors at once.
35859
35860 * util/grub-editenv.c (cmd_info): Cast argument to long
35861 explicitly. ptrdiff_t reduces to int on i386.
35862
35863 * util/grub-editenv.c (main): Be specific which parameter is
35864 missing.
35865
35866 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
35867 (memdisk): Make memdisk_orig_addr a pointer.
35868
35869 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
35870 for file offsets, use grub_off_t instead. Fix printf format
35871 warnings.
35872
35873 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
35874 there. Real unexpected warnings should not drown in the noise
35875 about known problems.
35876
35877 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
35878 grub_disk_addr_t for memory addresses.
35879
35880 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
35881 explicitly to fix a warning.
35882
35883 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
35884
35885 * Makefile.in (MODULE_LDFLAGS): New variable.
35886 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
35887 the linker accepts --build-id=none.
35888 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
35889 MODULE_LDFLAGS.
35890 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
35891
35892 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
35893 those in Linux XFS code. Provide a way to access 64-bit parent
35894 inode.
35895 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
35896 the end of struct grub_xfs_dir_header.
35897
35898 2008-07-02 Bean <bean123ch@gmail.com>
35899
35900 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
35901 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35902 and GRUB_IEEE1275_FLAG_NO_ANSI.
35903
35904 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
35905 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35906 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
35907
35908 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
35909 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
35910
35911 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
35912 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
35913
35914 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
35915 esc sequence on non ANSI terminal.
35916 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
35917
35918 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
35919 beginning of file.
35920
35921 2008-07-02 Bean <bean123ch@gmail.com>
35922
35923 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
35924 (grub_editenv_SOURCES): New variable.
35925 (pkglib_MODULES): Add loadenv.mod.
35926 (loadenv_mod_SOURCES): New variable.
35927 (loadenv_mod_CFLAGS): Likewise.
35928 (loadenv_mod_LDFLAGS): Likewise.
35929
35930 * include/grub/envblk.h: New file.
35931
35932 * util/envblk.c: New file.
35933
35934 * util/grub-editenv.c: New file.
35935
35936 * commands/loadenv.c: New file.
35937
35938 2008-07-01 Pavel Roskin <proski@gnu.org>
35939
35940 * include/multiboot2.h (struct multiboot_tag_module): Use char,
35941 not unsigned char. This fixes warnings and is consistent with
35942 other tags.
35943
35944 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
35945
35946 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
35947
35948 * term/tparm.c (analyze): Always set *popcount.
35949
35950 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
35951 cast to fix a warning.
35952
35953 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
35954 cast to suppress a warning.
35955
35956 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
35957 grub_fshelp_read_file() expects.
35958
35959 * fs/fat.c: Fix UUID calculation on big-endian systems. We
35960 write uuid as a 32-bit value in CPU byte order, so declare and
35961 use it as such.
35962
35963 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
35964 long if the format specifier expects it.
35965 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
35966 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35967 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
35968 long to fix a warning.
35969 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
35970 grub_dprintf() arguments to fix warnings.
35971
35972 2008-06-30 Pavel Roskin <proski@gnu.org>
35973
35974 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
35975 install_bsd_part immediately before core.img is embedded or
35976 modified on disk. This fixes core.img verification if core.img
35977 cannot be embedded.
35978
35979 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
35980 core_path to calculate the blocklist.
35981 Patch from Javier Martín <lordhabbit@gmail.com>
35982
35983 2008-06-29 Robert Millan <rmh@aybabtu.com>
35984
35985 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
35986 block to disk block.
35987 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
35988 Patch from Niels Böhm <bitbucket@arcor.de>
35989
35990 2008-06-29 Robert Millan <rmh@aybabtu.com>
35991
35992 * util/update-grub_lib.in (font_path): Search for fonts in
35993 /boot/grub first, which is more likely to be readable (we aren't
35994 deciding where fonts live, just looking for them).
35995
35996 2008-06-26 Pavel Roskin <proski@gnu.org>
35997
35998 * util/biosdisk.c (read_device_map): Don't leave dead map
35999 entries for devices failing stat() check.
36000
36001 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36002 core_path_dev for the core.img path on the target device.
36003
36004 2008-06-26 Robert Millan <rmh@aybabtu.com>
36005
36006 * disk/fs_uuid.c: New file.
36007 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36008 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36009 (fs_uuid_mod_LDFLAGS): New variables.
36010 * include/grub/disk.h (grub_disk_dev_id): Add
36011 `GRUB_DISK_DEVICE_UUID_ID'.
36012 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36013 implement iterate().
36014
36015 2008-06-26 Robert Millan <rmh@aybabtu.com>
36016
36017 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36018 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36019 Linux image includes no initrd.
36020
36021 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36022
36023 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36024 call to resolve the core image location that effectively appended the
36025 name twice.
36026
36027 2008-06-21 Robert Millan <rmh@aybabtu.com>
36028
36029 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36030 call from here ...
36031
36032 * util/grub.d/10_hurd.in: ... to here ...
36033 * util/grub.d/10_linux.in: ... and here.
36034
36035 2008-06-19 Robert Millan <rmh@aybabtu.com>
36036
36037 * kern/main.c (grub_main): Export `prefix' variable immediately
36038 after it has been set by grub_machine_set_prefix().
36039
36040 2008-06-19 Robert Millan <rmh@aybabtu.com>
36041
36042 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36043 search result when not saving to variable, not the other way around.
36044 When saving to variable, abort iteration as soon as a match is found.
36045
36046 2008-06-19 Robert Millan <rmh@aybabtu.com>
36047
36048 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36049 check for partition that provides /boot/grub. Its logic is flawed,
36050 as it prevents prepare_grub_to_access_device() from being called
36051 multiple times.
36052
36053 2008-06-19 Robert Millan <rmh@aybabtu.com>
36054
36055 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36056 "insmod" command directly when abstraction modules are needed,
36057 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36058 since it had already been processed).
36059
36060 2008-06-19 Pavel Roskin <proski@gnu.org>
36061
36062 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36063 changed. This is needed in case GRUB_LIBDIR changes.
36064 * conf/i386-ieee1275.rmk: Likewise.
36065 * conf/i386-linuxbios.rmk: Likewise.
36066 * conf/i386-pc.rmk: Likewise.
36067 * conf/powerpc-ieee1275.rmk: Likewise.
36068
36069 2008-06-18 Pavel Roskin <proski@gnu.org>
36070
36071 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36072 kernel_elf_symlist.c to symlist.c for consistency with other
36073 architectures. Update all users.
36074 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36075
36076 2008-06-18 Robert Millan <rmh@aybabtu.com>
36077
36078 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36079 it in prefix.
36080
36081 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36082 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36083 a RAID device, run setup() for all members independently on whether
36084 LVM abstraction is being used.
36085 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36086 If grub-mkimage has set `*install_dos_part == -2', don't override this
36087 value.
36088 Perform *install_dos_part adjustments independently on whether
36089 we're embedding or not.
36090 Clarify error message when image is too big for embedding.
36091 Remove duplicate *install_dos_part stanza.
36092
36093 2008-06-17 Robert Millan <rmh@aybabtu.com>
36094
36095 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36096 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36097 variables.
36098 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36099 values in grub_ofconsole_normal_color and
36100 grub_ofconsole_highlight_color (they're not directly related to
36101 background and foreground).
36102 (grub_ofconsole_setcolorstate): Extract background and foreground
36103 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36104
36105 2008-06-17 Robert Millan <rmh@aybabtu.com>
36106
36107 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36108 /boot/grub for the check in last commit, not /boot (they could be
36109 different partitions).
36110
36111 2008-06-16 Robert Millan <rmh@aybabtu.com>
36112
36113 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36114 asked to setup access for the same partition that provides /boot,
36115 don't bother using UUIDs since our root already has the value we
36116 want.
36117
36118 2008-06-16 Robert Millan <rmh@aybabtu.com>
36119
36120 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36121 I2O devices.
36122 Patch from Sven Mueller <sven@debian.org>.
36123
36124 2008-06-16 Robert Millan <rmh@aybabtu.com>
36125
36126 * util/update-grub.in: Check for $EUID instead of $UID.
36127 Reported by Vincent Zweije.
36128
36129 2008-06-16 Bean <bean123ch@gmail.com>
36130
36131 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36132 (grub_ext2_read_block): Likewise.
36133 (grub_ext2_read_inode): Likewise.
36134 (grub_ext2_mount): Likewise.
36135 (grub_ext2_close): Likewise.
36136 (grub_ext3_get_journal): Removed.
36137
36138 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36139 (grub_reiserfs_read_symlink): Likewise.
36140 (grub_reiserfs_mount): Likewise.
36141 (grub_reiserfs_open): Likewise.
36142 (grub_reiserfs_read): Likewise.
36143 (grub_reiserfs_close): Likewise.
36144 (grub_reiserfs_get_journal): Removed.
36145
36146 * fs/fshelp.c (grub_fshelp_read): Removed.
36147 (grub_fshelp_map_block): Likewise.
36148
36149 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36150 (grub_fshelp_journal): Likewise.
36151 (grub_fshelp_read): Likewise.
36152 (grub_fshelp_map_block): Likewise.
36153
36154 2008-06-16 Pavel Roskin <proski@gnu.org>
36155
36156 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36157 floating point anymore.
36158 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36159
36160 2008-06-15 Pavel Roskin <proski@gnu.org>
36161
36162 * commands/ls.c (grub_ls_list_files): Use integer calculations
36163 for human readable format, avoid floating point use.
36164 * kern/misc.c (grub_ftoa): Remove.
36165 (grub_vsprintf): Remove floating point support.
36166
36167 2008-06-15 Robert Millan <rmh@aybabtu.com>
36168
36169 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36170 devices.
36171 Reported by Max Vozeler.
36172
36173 2008-06-15 Robert Millan <rmh@aybabtu.com>
36174
36175 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36176 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36177 skipped later.
36178 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36179 the beginning of the prefix.
36180
36181 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36182 It is assumed that if we have a memdisk, grub-mkimage has set
36183 grub_prefix to include the "(memdisk)" drive in it.
36184
36185 2008-06-15 Robert Millan <rmh@aybabtu.com>
36186
36187 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36188 Initialize keyboard controller after registering the terminal, so that
36189 grub_printf() can be called from grub_keyboard_controller_init().
36190
36191 2008-06-15 Robert Millan <rmh@aybabtu.com>
36192
36193 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36194 extent-btree which is written as big endian on disk.
36195 Reported by Alain Greppin <al@chilibi.org>.
36196
36197 2008-06-14 Robert Millan <rmh@aybabtu.com>
36198
36199 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36200 * util/i386/pc/grub-install.in (modules): Likewise.
36201
36202 2008-06-13 Pavel Roskin <proski@gnu.org>
36203
36204 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36205
36206 2008-06-13 Bean <bean123ch@gmail.com>
36207
36208 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36209
36210 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36211
36212 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36213 to indicate sparse block.
36214
36215 2008-06-12 Pavel Roskin <proski@gnu.org>
36216
36217 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36218 number, grub_fshelp_read() does it for us.
36219
36220 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36221 linear disk read with journal translation.
36222 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36223 * include/grub/fshelp.h: Declare grub_fshelp_read().
36224
36225 2008-06-09 Pavel Roskin <proski@gnu.org>
36226
36227 * fs/minix.c (grub_minix_mount): Handle error reading
36228 superblock.
36229
36230 2008-06-08 Robert Millan <rmh@aybabtu.com>
36231
36232 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36233 don't append the RAID prefix afterwards.
36234 Reported by Clint Adams.
36235
36236 2008-06-08 Robert Millan <rmh@aybabtu.com>
36237
36238 Based on description from Pavel:
36239 * kern/disk.c (grub_disk_check_range): Rename to ...
36240 (grub_disk_adjust_range): ... this. Add a comment explaining the
36241 tasks performed by this function.
36242
36243 2008-06-08 Robert Millan <rmh@aybabtu.com>
36244
36245 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36246 `num_serial' (for consistency with other variables).
36247 (struct grub_ntfs_data): Add `uuid' member.
36248 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36249 (grub_ntfs_uuid): New function.
36250 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36251
36252 2008-06-07 Pavel Roskin <proski@gnu.org>
36253
36254 * util/biosdisk.c (open_device): Revert last change to the
36255 function, it broke installation. The sector needs to be
36256 different dependent on which device is opened.
36257
36258 2008-06-06 Robert Millan <rmh@aybabtu.com>
36259
36260 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36261 rest of GRUB, and breakage doesn't happen if its value were modified.
36262
36263 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36264 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36265 a constant (same value).
36266 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36267 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36268
36269 2008-06-06 Robert Millan <rmh@aybabtu.com>
36270
36271 * util/biosdisk.c (open_device): Do not modify sector offset when
36272 accessing a partition. kern/disk.c already handles this for us.
36273
36274 2008-06-06 Robert Millan <rmh@aybabtu.com>
36275
36276 * util/grub-emu.c (grub_machine_init): Move code in this function from
36277 here ...
36278 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36279 segfault in case grub_printf() is called).
36280
36281 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36282 grub_probe. Update all users not to explicitly add it again.
36283 (grub_device): New variable; contains corresponding device for grubdir.
36284 (fs_module, partmap_module, devabstraction_module): Pass
36285 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36286 every time.
36287
36288 2008-06-05 Robert Millan <rmh@aybabtu.com>
36289
36290 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36291 is found, print it (same layout as with labels).
36292
36293 2008-06-04 Robert Millan <rmh@aybabtu.com>
36294
36295 * util/biosdisk.c (get_drive): Rename to ...
36296 (find_grub_drive): ... this. Update all users.
36297
36298 (get_os_disk): Rename to ...
36299 (convert_system_partition_to_system_disk): ... this. Update all users.
36300
36301 (find_drive): Rename to ...
36302 (find_system_device): ... this. Update all users.
36303
36304 2008-06-04 Robert Millan <rmh@aybabtu.com>
36305
36306 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36307 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36308 (make_device_map): Likewise.
36309
36310 2008-06-01 Robert Millan <rmh@aybabtu.com>
36311
36312 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36313 before dereferencing it.
36314
36315 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36316 union with fat12/fat16-specific ones. Add some new fields, including
36317 `num_serial' for both versions.
36318 (struct grub_fat_data): Add `uuid' member.
36319 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36320 names. Initialize `data->uuid' using `num_serial'.
36321 (grub_fat_uuid): New function.
36322 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36323
36324 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36325 (grub_reiserfs_uuid): New function.
36326 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36327 member.
36328
36329 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36330 (grub_xfs_uuid): New function.
36331 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36332
36333 2008-06-01 Robert Millan <rmh@aybabtu.com>
36334
36335 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36336 code that is backward compatible with pre-uuid search command.
36337
36338 2008-05-31 Robert Millan <rmh@aybabtu.com>
36339
36340 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36341 floppies after everything else, to ensure floppy drive isn't accessed
36342 unnecessarily (patch from Bean).
36343
36344 2008-05-31 Robert Millan <rmh@aybabtu.com>
36345
36346 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36347 not print device names when we were asked to set a variable.
36348
36349 2008-05-31 Robert Millan <rmh@aybabtu.com>
36350
36351 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36352 using "cursor-on" and "cursor-off" commands (understood at least by
36353 the Open Firmware flavour on OLPC).
36354
36355 2008-05-31 Michael Gorven <michael@gorven.za.net>
36356
36357 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36358 on and off sequences.
36359
36360 2008-05-31 Robert Millan <rmh@aybabtu.com>
36361
36362 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36363 * util/update-grub.in: Likewise.
36364
36365 2008-05-30 Pavel Roskin <proski@gnu.org>
36366
36367 * util/biosdisk.c (linux_find_partition): Simplify logic and
36368 make the code more universal. Keep special processing for
36369 devfs, but use a simple rule for all other devices. If the
36370 device ends with a number, append 'p' and the partition number.
36371 Otherwise, append only the partition number.
36372
36373 2008-05-30 Robert Millan <rmh@aybabtu.com>
36374
36375 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36376 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36377 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36378 the `root' parameter to Linux.
36379
36380 2008-05-30 Robert Millan <rmh@aybabtu.com>
36381
36382 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36383 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36384 --fs_uuid with --fs-uuid.
36385 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36386 all filesystems support them).
36387
36388 2008-05-30 Robert Millan <rmh@aybabtu.com>
36389
36390 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36391 grub_printf() flags, since we're printing in units of 2 bytes.
36392
36393 2008-05-30 Robert Millan <rmh@aybabtu.com>
36394
36395 * util/grub.d/00_header.in: Remove obsolete comment referencing
36396 convert_system_path_to_grub_path().
36397 * util/update-grub.in: Likewise.
36398 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36399 (convert_system_path_to_grub_path): Add a warning message explaining
36400 that this function is deprecated. Rely on is_path_readable_by_grub()
36401 for the readability checks.
36402 (font_path): Use is_path_readable_by_grub() for the readability
36403 check rather than convert_system_path_to_grub_path().
36404
36405 2008-05-30 Robert Millan <rmh@aybabtu.com>
36406
36407 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36408 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36409 converting it first.
36410 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36411 grub.cfg for access to font file, and afterwards call it again to set
36412 the root device.
36413
36414 2008-05-30 Robert Millan <rmh@aybabtu.com>
36415
36416 * commands/search.c (options): Add --fs_uuid option.
36417 (search_fs_uuid): New function.
36418 (grub_cmd_search): Fix --set argument passing.
36419 Use search_fs_uuid() when requested via --fs_uuid.
36420 (grub_search_init): Update help message.
36421 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36422 and redeclare it as an array of 16-bit words.
36423 (grub_ext2_uuid): New function.
36424 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36425 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36426 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36427 (GRUB_DEVICE_BOOT_UUID): New variables.
36428 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36429 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36430 whenever possible.
36431 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36432 just assume `root' variable has the right value.
36433 * util/grub.d/10_linux.in: Likewise.
36434 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36435 via PRINT_FS_UUID.
36436 (main): Recognise `-t fs_uuid' argument.
36437
36438 2008-05-30 Robert Millan <rmh@aybabtu.com>
36439
36440 * util/biosdisk.c (map): Redefine structure to hold information
36441 about GRUB drive name.
36442 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36443 drive names.
36444 (call_hook): Remove.
36445 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36446 member. Assume drive has partitions.
36447 (grub_util_biosdisk_open): Access device names via `.device' struct
36448 member.
36449 (open_device): Likewise.
36450 (find_drive): Likewise.
36451 (read_device_map): Adjust map[] usage to match the new struct
36452 definition. Don't check for duplicates (still possible, but not cheap
36453 anymore).
36454 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36455 (make_device_name): Remove assumption of BIOS-like drive names.
36456
36457 2008-05-30 Pavel Roskin <proski@gnu.org>
36458
36459 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36460 compiling execute.c doesn't need grub_script.tab.h anymore.
36461 (normal/command.c_DEPENDENCIES): Likewise.
36462 (normal/function.c_DEPENDENCIES): Likewise.
36463 * conf/i386-ieee1275.rmk: Likewise.
36464 * conf/i386-linuxbios.rmk: Likewise.
36465 * conf/i386-pc.rmk: Likewise.
36466 * conf/powerpc-ieee1275.rmk: Likewise.
36467 * conf/sparc64-ieee1275.rmk: Likewise.
36468
36469 2008-05-29 Pavel Roskin <proski@gnu.org>
36470
36471 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36472 when scanning metadata for volume group name.
36473
36474 * include/grub/script.h: Don't include grub_script.tab.h. It's
36475 a generated file, which may only be included from the files with
36476 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36477 use union YYSTYPE, as the later allows forward declaration.
36478 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36479
36480 2008-05-29 Robert Millan <rmh@aybabtu.com>
36481
36482 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36483 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36484 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36485 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36486 scan codes.
36487
36488 2008-05-29 Robert Millan <rmh@aybabtu.com>
36489
36490 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36491 control key combinations.
36492
36493 2008-05-29 Robert Millan <rmh@aybabtu.com>
36494
36495 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36496 * util/ieee1275/grub-install.in: ... to here.
36497 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36498 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36499 (grub_install_SOURCES): Likewise.
36500
36501 2008-05-29 Robert Millan <rmh@aybabtu.com>
36502
36503 * fs/affs.c: Update copyright year.
36504 * fs/ext2.c: Likewise.
36505 * fs/fshelp.c: Likewise.
36506 * fs/hfsplus.c: Likewise.
36507 * fs/ntfs.c: Likewise.
36508 * fs/xfs.c: Likewise.
36509 * include/grub/fshelp.h: Likewise.
36510 * util/grub-mkdevicemap.c: Likewise.
36511
36512 2008-05-28 Robert Millan <rmh@aybabtu.com>
36513
36514 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36515 might need to be fatfs to support some firmware implementations
36516 (e.g. OFW or EFI).
36517
36518 2008-05-28 Robert Millan <rmh@aybabtu.com>
36519
36520 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36521 devices.
36522 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36523 (make_device_map): Likewise.
36524
36525 2008-05-20 Bean <bean123ch@gmail.com>
36526
36527 * fs/fshelp.c (grub_fshelp_map_block): New function.
36528 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36529 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36530
36531 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36532 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36533 (grub_fshelp_journal): New structure.
36534 (grub_fshelp_map_block): New function prototype.
36535 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36536 (grub_fshelp_map_block): Likewise.
36537
36538 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36539 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36540 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36541 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36542 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36543 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36544 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36545 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36546 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36547 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36548 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36549 (grub_ext2_sblock): New members for journal support.
36550 (grub_ext3_journal_header): New structure.
36551 (grub_ext3_journal_revoke_header): Likewise.
36552 (grub_ext3_journal_block_tag): Likewise.
36553 (grub_ext3_journal_sblock): Likewise.
36554 (grub_fshelp_node): New members logfile and journal.
36555 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
36556 grub_fshelp_map_block to get real block number.
36557 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
36558 number.
36559 (grub_ext2_read_inode): Likewise.
36560 (grub_ext3_get_journal): New function.
36561 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
36562 (grub_ext2_close): Release memory used by journal.
36563
36564 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
36565 (REISERFS_MAGIC_DESC_BLOCK): New macro.
36566 (grub_reiserfs_transaction_header): Renamed to
36567 grub_reiserfs_description_block, replace field data with real_blocks.
36568 (grub_reiserfs_commit_block): New structure.
36569 (grub_reiserfs_data): New member journal.
36570 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
36571 number.
36572 (grub_reiserfs_read_symlink): Likewise.
36573 (grub_reiserfs_iterate_dir): Likewise.
36574 (grub_reiserfs_open): Likewise.
36575 (grub_reiserfs_read): Likewise.
36576 (grub_reiserfs_get_journal): New function.
36577 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
36578 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
36579 using grub_reiserfs_get_journal.
36580 (grub_reiserfs_close): Release memory used by journal.
36581
36582 * fs/affs.c (grub_affs_read_block): Change block type to
36583 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
36584
36585 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
36586
36587 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
36588
36589 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
36590
36591 * fs/udf.c (grub_udf_read_block): Change block type to
36592 grub_disk_addr_t. Use type cast to avoid warning.
36593
36594 * fs/xfs.c (grub_xfs_read_block): Likewise.
36595
36596 2008-05-16 Christian Franke <franke@computer.org>
36597
36598 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
36599 to ensure that break with ESC will always work.
36600 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
36601 Remove ESC from keyboard queue.
36602
36603 2008-05-16 Christian Franke <franke@computer.org>
36604
36605 * util/biosdisk.c: [__CYGWIN__] Add includes.
36606 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
36607 (get_os_disk): Move variable declarations to OS specific
36608 parts to avoid warning.
36609 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
36610 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
36611 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
36612 Cygwin.
36613 * util/getroot.c: [__CYGWIN__] Add includes.
36614 (strip_extra_slashes): Fix "/" case.
36615 [__CYGWIN__] (get_win32_path): New function.
36616 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
36617 [__CYGWIN__] (find_root_device): Disable.
36618 [__CYGWIN__] (get_bootsec_serial): New function.
36619 [__CYGWIN__] (find_cygwin_root_device): Likewise.
36620 [__linux__] (grub_guess_root_device): Add early returns to simplify
36621 structure.
36622 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
36623 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
36624 check for Linux only.
36625
36626 2008-05-15 Bean <bean123ch@gmail.com>
36627
36628 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
36629 keyboard hang problem in apple's intel mac.
36630
36631 2008-05-09 Robert Millan <rmh@aybabtu.com>
36632
36633 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
36634 devices.
36635 * util/grub-mkdevicemap.c (get_virtio_disk_name)
36636 (make_device_map): Likewise.
36637 Reported by Aurelien Jarno <aurel32@debian.org>
36638
36639 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
36640
36641 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
36642 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
36643 (make_device_map): Output entries for xvd type disks.
36644
36645 2008-05-07 Robert Millan <rmh@aybabtu.com>
36646
36647 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
36648 devices.
36649 * util/grub-mkdevicemap.c (get_cciss_disk_name)
36650 (make_device_map): Likewise.
36651 Reported by Roland Dreier <rdreier@cisco.com>
36652
36653 2008-05-07 Robert Millan <rmh@aybabtu.com>
36654
36655 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
36656 grub_strstr() call. Correct a few mistakes in failure path handling.
36657
36658 2008-05-06 Robert Millan <rmh@aybabtu.com>
36659
36660 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36661 Do not print a trailing slash (therefore, the root directory is an
36662 empty string).
36663 (convert_system_path_to_grub_path): Do not remove trailing slash
36664 from make_system_path_relative_to_its_root() output.
36665
36666 * util/i386/pc/grub-install.in: Add trailing slash to output from
36667 make_system_path_relative_to_its_root().
36668
36669 2008-05-06 Robert Millan <rmh@aybabtu.com>
36670
36671 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
36672 ensures that output lines aren't intermangled with those sent to
36673 stderr (via grub_util_info()).
36674 * util/grub-probe.c (grub_refresh): Likewise.
36675 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
36676
36677 2008-05-05 Christian Franke <franke@computer.org>
36678
36679 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
36680 Add Cygwin device names.
36681 (get_ide_disk_name) [__CYGWIN__]: Likewise.
36682 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
36683 (check_device): Return error instead of success on empty name.
36684 (make_device_map): Move label inside linux specific code to
36685 prevent compiler warning.
36686
36687 2008-04-30 Robert Millan <rmh@aybabtu.com>
36688
36689 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
36690 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
36691 first boot option.
36692 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
36693
36694 2008-04-29 Robert Millan <rmh@aybabtu.com>
36695
36696 * docs/grub.cfg: New file (example GRUB configuration).
36697
36698 2008-04-26 Robert Millan <rmh@aybabtu.com>
36699
36700 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
36701 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
36702 and `disk/ieee1275/nand.c'.
36703
36704 2008-04-25 Bean <bean123ch@gmail.com>
36705
36706 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
36707 i386-linuxbios.
36708
36709 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
36710 change the buffer size to 4096 for cdrom device.
36711
36712 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
36713 and nand.mod.
36714 (_linux_mod_SOURCES): New variable.
36715 (_linux_mod_CFLAGS): Likewise.
36716 (_linux_mod_LDFLAGS): Likewise.
36717 (linux_mod_SOURCES): Likewise.
36718 (linux_mod_CFLAGS): Likewise.
36719 (linux_mod_LDFLAGS): Likewise.
36720 (nand_mod_SOURCES): Likewise.
36721 (nand_mod_CFLAGS): Likewise.
36722 (nand_mod_LDFLAGS): Likewise.
36723
36724 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
36725 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
36726 type property. (nand device in olpc don't have this property)
36727
36728 * include/grub/disk.h (grub_disk_dev_id): New macro
36729 GRUB_DISK_DEVICE_NAND_ID.
36730
36731 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
36732 function prototype.
36733 (grub_rescue_cmd_initrd): Likewise.
36734
36735 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
36736 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
36737 ofw_cif_handler and ofw_idt, adjust padding number.
36738
36739 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
36740 GRUB_MACHINE_IEEE1275 is defined.
36741
36742 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
36743 Use NESTED_FUNC_ATTR attribute on the hook parameter.
36744
36745 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
36746 on nested function heap_init.
36747 (grub_upper_mem): New variable for i386-ieee1275.
36748 (grub_get_extended_memory): New function for i386-ieee1275.
36749 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
36750
36751 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
36752 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
36753 property.
36754
36755 * loader/i386/ieee1275/linux.c: New file.
36756
36757 * loader/i386/ieee1275/linux_normal.c: New file.
36758
36759 * disk/ieee1275/nand.c: New file.
36760
36761 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
36762
36763 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
36764 value.
36765 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
36766
36767 2008-04-18 Robert Millan <rmh@aybabtu.com>
36768
36769 Restructures early code path on ieee1275 to unify grub_main() as
36770 the first C function that is executed in every platform.
36771
36772 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
36773 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
36774 cmain().
36775 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
36776 * kern/ieee1275/cmain.c (cmain): Rename to ...
36777 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
36778 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
36779 at the beginning.
36780
36781 2008-04-18 Robert Millan <rmh@aybabtu.com>
36782
36783 * util/update-grub.in: Fix syntax error when setting
36784 `GRUB_PRELOAD_MODULES'.
36785 Reported by Stephane Chazelas <stephane@artesyncp.com>
36786
36787 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
36788
36789 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
36790 section into account, newer toolchains generate unique build ids
36791 * configure.ac: remove the test for --build-id=none acceptance,
36792 we want build ids to be preserved
36793 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
36794 far from other sections don't cause the raw binary images grow
36795 size
36796
36797 2008-04-15 Robert Millan <rmh@aybabtu.com>
36798
36799 * disk/lvm.c: Update copyright year.
36800 * kern/misc.c: Likewise.
36801
36802 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36803
36804 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
36805 there is no memory left for physical volume name.
36806
36807 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36808
36809 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
36810 volume name mapping to support bigger than 9 character names properly.
36811
36812 2008-04-13 Robert Millan <rmh@aybabtu.com>
36813
36814 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
36815 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
36816
36817 2008-04-13 Christian Franke <franke@computer.org>
36818
36819 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
36820 to create a floppy emulation boot CD when non emulation mode
36821 does not work.
36822 Enable Joliet CD filesystem extension.
36823
36824 2008-04-13 Robert Millan <rmh@aybabtu.com>
36825
36826 * kern/misc.c (grub_strncat): Fix off-by-one error.
36827 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
36828
36829 * kern/env.c (grub_env_context_close): Clear current context, not
36830 previous one.
36831 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
36832
36833 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
36834
36835 2008-04-13 Robert Millan <rmh@aybabtu.com>
36836
36837 Improve robustness when handling LVM.
36838
36839 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
36840 (and leave `*p' unmodified).
36841 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
36842 through it.
36843 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
36844 iterating through it.
36845 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
36846 through it.
36847 (grub_lvm_scan_device): Check the return value (and fail gracefully
36848 when due) on each grub_lvm_getvalue() or grub_strstr() call.
36849 Don't assume `vg->pvs != NULL' when iterating through it.
36850
36851 2008-04-13 Robert Millan <rmh@aybabtu.com>
36852
36853 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
36854 * genmk.rb (partmap): New variable.
36855 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
36856 (#{partmap}): New target rule.
36857 * genpartmaplist.sh: New file.
36858 * Makefile.in (pkglib_DATA): Add partmap.lst.
36859 (partmap.lst): New target rule.
36860 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
36861 modules (including all partition maps), instead of preloading them.
36862
36863 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
36864
36865 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
36866 `linux-boot-prober' (if installed) to detect other operating
36867 systems which are installed on the computer and add them to
36868 the boot menu.
36869 * conf/common.rmk: Build and install 30_os-prober.
36870
36871 2008-04-12 Robert Millan <rmh@aybabtu.com>
36872
36873 * kern/powerpc/ieee1275/init.c: Move from here ...
36874 * kern/ieee1275/init.c: ... to here. Update all users.
36875
36876 * kern/powerpc/ieee1275/cmain.c: Move from here ...
36877 * kern/ieee1275/cmain.c: ... to here. Update all users.
36878
36879 * kern/powerpc/ieee1275/openfw.c: Move from here ...
36880 * kern/ieee1275/openfw.c: ... to here. Update all users.
36881
36882 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
36883 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
36884
36885 2008-04-10 Pavel Roskin <proski@gnu.org>
36886
36887 * configure.ac: Always use "_cv_" in cache variables for
36888 compatibility with Autoconf 2.62.
36889
36890 2008-04-07 Robert Millan <rmh@aybabtu.com>
36891
36892 Revert grub/machine/init.h addition by Pavel (since it breaks on
36893 i386-ieee1275 and others):
36894 * util/i386/pc/misc.c: Remove grub/machine/init.h.
36895 * util/powerpc/ieee1275/misc.c: Likewise.
36896
36897 2008-04-07 Robert Millan <rmh@aybabtu.com>
36898
36899 * util/grub-probe.c (probe): Improve error message.
36900
36901 2008-04-07 Robert Millan <rmh@aybabtu.com>
36902
36903 * util/biosdisk.c (read_device_map): Skip devices that don't exist
36904 (this prevents the presence of a bogus entry from ruining the whole
36905 thing).
36906
36907 2008-04-06 Pavel Roskin <proski@gnu.org>
36908
36909 * util/biosdisk.c: Include grub/util/biosdisk.h.
36910 * util/grub-fstest.c (execute_command): Make static.
36911 * util/grub-mkdevicemap.c (check_device): Likewise.
36912 * util/i386/pc/misc.c: Include grub/machine/init.h.
36913 * util/powerpc/ieee1275/misc.c: Likewise.
36914 * util/lvm.c: Include grub/util/lvm.h.
36915 * util/misc.c: Include grub/kernel.h, grub/misc.h and
36916 grub/cache.h.
36917 * util/raid.c: Include grub/util/raid.h.
36918 (grub_util_getdiskname): Make static.
36919
36920 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
36921 grub_hostfs_fini(), as they are called from grub_init_all() and
36922 grub_fini_all() respectively. This fixes an infinite loop in
36923 grub-fstest due to double registration of hostfs.
36924 Reported by Christian Franke <Christian.Franke@t-online.de>
36925
36926 2008-04-05 Pavel Roskin <proski@gnu.org>
36927
36928 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
36929 all 8 functions. Otherwise, probe function 0 only.
36930
36931 2008-04-04 Pavel Roskin <proski@gnu.org>
36932
36933 * commands/lspci.c (grub_lspci_iter): Print the bus number
36934 correctly.
36935
36936 * commands/lspci.c (grub_pci_classes): Fix typos.
36937 (grub_lspci_iter): Don't print func twice. Print vendor ID
36938 before device ID, as it's normally done.
36939
36940 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36941 Fix signedness warnings.
36942 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
36943 Likewise.
36944 * util/ieee1275/get_disk_name.c: Include config.h so that
36945 _GNU_SOURCE is defined and getline() is declared. Mark an
36946 unused argument as such. Fix a signedness warning.
36947
36948 2008-04-02 Pavel Roskin <proski@gnu.org>
36949
36950 * genkernsyms.sh.in: Use more robust assignments for CC and
36951 srcdir. Quote srcdir.
36952 * gensymlist.sh.in: Likewise. Assert at the compile time that
36953 the symbol table is not empty.
36954
36955 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
36956 * fs/cpio.c (grub_cpio_read): Likewise.
36957
36958 2008-04-01 Pavel Roskin <proski@gnu.org>
36959
36960 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
36961 * disk/host.c (grub_host_open): Likewise.
36962 * disk/loopback.c (grub_loopback_open): Likewise.
36963 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
36964 disk->id as in disk/host.c, not a multi-character constant.
36965
36966 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
36967 later is obsolete, potentially dangerous and sets a bad example.
36968 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
36969 * util/misc.c (grub_util_get_image_size): Likewise.
36970
36971 * disk/loopback.c (options): Improve help for "--partitions".
36972
36973 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
36974 options to align them with the short options, e.g. "echo -e".
36975
36976 2008-03-31 Bean <bean123ch@gmail.com>
36977
36978 * video/reader/png.c (grub_png_data): New member is_16bit and
36979 image_data.
36980 (grub_png_decode_image_header): Detect 16 bit png image.
36981 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
36982 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
36983 (grub_video_reader_png): Release memory occupied by image_data.
36984
36985 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
36986 4096 bytes.
36987 (grub_nfs_mount): Skip the test for sector per cluster.
36988
36989 * include/grub/ntfs.h (MAX_SPC): Removed.
36990
36991 2008-03-31 Bean <bean123ch@gmail.com>
36992
36993 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
36994 (grub_probe_SOURCES): Add fs/afs.c.
36995 (grub_fstest_SOURCES): Likewise.
36996 (afs_mod_SOURCES): New variable.
36997 (afs_mod_CFLAGS): Likewise.
36998 (afs_mod_LDFLAGS): Likewise.
36999
37000 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37001 (grub_emu_SOURCES): Likewise.
37002
37003 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37004
37005 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37006
37007 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37008
37009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37010
37011 * fs/afs.c: New file.
37012
37013 2008-03-30 Pavel Roskin <proski@gnu.org>
37014
37015 * disk/host.c: Include grub/misc.h to fix a warning.
37016 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37017 warnings about implicit declarations.
37018
37019 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37020 variable.
37021 * include/grub/i386/loader.h: Change declaration of
37022 grub_linux_boot() to match what grub_loader_set() expects.
37023 * util/getroot.c (grub_guess_root_device): Return const char* to
37024 fix a warning.
37025 * util/grub-probe.c (probe): Fix a warning about uninitialized
37026 abstraction_name variable.
37027 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37028 second argument as unused to fix a warning.
37029
37030 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37031 missing grub_error() call.
37032
37033 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37034 2.60 and newer uses it to define datadir.
37035
37036 * commands/sleep.c: Fix warning about implicit declaration.
37037 * disk/memdisk.c: Likewise.
37038 * loader/aout.c: Likewise.
37039 * loader/i386/bsd_normal.c: Likewise.
37040 * util/grub-probe.c: Likewise.
37041
37042 * commands/i386/cpuid.c (has_longmode): Make static.
37043 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37044 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37045
37046 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37047 GDT. This is more robust, as %ds can change.
37048 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37049 calling real_to_prot().
37050 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37051
37052 2008-03-28 Pavel Roskin <proski@gnu.org>
37053
37054 * kern/i386/pc/startup.S: Assert that uncompressed functions
37055 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37056 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37057 code, as they push parts of the code (error handlers) beyond
37058 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37059 code as correctness and size.
37060
37061 2008-03-28 Pavel Roskin <proski@gnu.org>
37062
37063 * kern/i386/pc/startup.S
37064 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37065 data block address to the real mode, keep offset minimal. This
37066 works around a bug in AWARD BIOS on old Athlon systems, which
37067 makes CD detection hang.
37068
37069 2008-03-26 Pavel Roskin <proski@gnu.org>
37070
37071 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37072 const.
37073 * include/grub/normal.h: Add grub_parse_color_name_pair()
37074 declaration.
37075
37076 2008-03-24 Bean <bean123ch@gmail.com>
37077
37078 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37079 (cd_count): Removed.
37080 (cd_drive): New variable.
37081 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37082 (grub_biosdisk_call_hook): Likewise.
37083 (grub_biosdisk_iterate): Change cdrom detection method.
37084 (grub_biosdisk_open): Replace cd_start with cd_drive.
37085 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37086 detect cdrom device.
37087
37088 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37089 Removed.
37090 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37091 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37092 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37093 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37094 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37095 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37096 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37097 (grub_biosdisk_cdrp): New structure.
37098 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37099
37100 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37101
37102 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37103 device.
37104
37105 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37106 New function.
37107
37108 2008-03-20 Robert Millan <rmh@aybabtu.com>
37109
37110 Remove 2 TiB limit in ata.mod.
37111 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37112 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37113 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37114 grub_uint64_t instead of grub_uint32_t.
37115
37116 2008-03-05 Bean <bean123ch@gmail.com>
37117
37118 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37119 (grub_multiboot): Set boot device.
37120
37121 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37122
37123 2008-03-02 Bean <bean123ch@gmail.com>
37124
37125 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37126 symlink_buffer.
37127
37128 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37129
37130 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37131 texinfo.tex.
37132
37133 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37134 modified.
37135
37136 * docs/fdl.texi: New file.
37137
37138 * docs/mdate-sh: New file. Copied from gnulib.
37139 * docs/texinfo.tex: Likewise.
37140
37141 * config.guess: Updated from gnulib.
37142 * install-sh: Likewise.
37143
37144 2008-02-28 Robert Millan <rmh@aybabtu.com>
37145
37146 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37147 (aout_mod_SOURCES): New variable.
37148 (aout_mod_CFLAGS): Likewise.
37149 (aout_mod_LDFLAGS): Likewise.
37150
37151 * conf/i386-ieee1275.rmk: Likewise.
37152
37153 2008-02-28 Robert Millan <rmh@aybabtu.com>
37154
37155 * util/update-grub.in: Reorganise terminal validity check. Accept
37156 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37157 Based on suggestion by Franklin PIAT.
37158
37159 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37160
37161 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37162 function.
37163 * util/getroot.c (grub_util_check_block_device): New function that
37164 returns the given argument if it is a block device and returns NULL else.
37165 * util/grub-probe.c (argument_is_device): New variable.
37166 (probe): Promote device_name from a variable to an argument. Receive
37167 device_name from grub_util_check_block_device() if path is NULL and from
37168 grub_guess_root_device() else. Do not free() device_name anymore.
37169 (options): Introduce new parameter '-d, --device'.
37170 (main): Add description of the new parameter to the help screen.
37171 Rename path variable to argument. Set argument_is_device if the '-d'
37172 option is given. Pass argument to probe() depending on
37173 argument_is_device.
37174
37175 2008-02-24 Bean <bean123ch@gmail.com>
37176
37177 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37178 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37179 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37180 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37181 (GRUB_ISO9660_VOLDESC_END): Likewise.
37182 (grub_iso9660_primary_voldesc): New member escape.
37183 (grub_iso9660_data): New member joliet.
37184 (grub_iso9660_convert_string): New function.
37185 (grub_iso9660_mount): Detect joliet extension.
37186 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37187 (grub_iso9660_iso9660_label): Likewise.
37188
37189 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37190 (grub_setup_SOURCES): Add fs/udf.c.
37191 (grub_fstest_SOURCES): Likewise.
37192 (udf_mod_SOURCES): New variable.
37193 (udf_mod_CFLAGS): Likewise.
37194 (udf_mod_LDFLAGS): Likewise.
37195
37196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37197 (grub_emu_SOURCES): Likewise.
37198
37199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37200
37201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37202
37203 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37204
37205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37206
37207 * fs/udf.c: New file.
37208
37209 2008-02-24 Robert Millan <rmh@aybabtu.com>
37210
37211 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37212 (normal/lexer.c_DEPENDENCIES): New variables.
37213 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37214 (normal/lexer.c_DEPENDENCIES): Likewise.
37215 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37216 (normal/lexer.c_DEPENDENCIES): Likewise.
37217 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37218 (normal/lexer.c_DEPENDENCIES): Likewise.
37219 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37220 (normal/lexer.c_DEPENDENCIES): Likewise.
37221 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37222 (normal/lexer.c_DEPENDENCIES): Likewise.
37223
37224 2008-02-23 Robert Millan <rmh@aybabtu.com>
37225
37226 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37227 since they were intended to be in hex. This didn't break previously
37228 because of a bug in gpt_partition_map_iterate() (see below).
37229
37230 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37231 when checking the validity of GPT header.
37232 Remove `partno', since it always provides the same information as `i'.
37233
37234 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37235
37236 * include/grub/efi/time.h: Fix a wrong comment.
37237
37238 2008-02-19 Pavel Roskin <proski@gnu.org>
37239
37240 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37241 message.
37242
37243 2008-02-19 Bean <bean123ch@gmail.com>
37244
37245 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37246 (aout_mod_SOURCES): New variable.
37247 (aout_mod_CFLAGS): Likewise.
37248 (aout_mod_LDFLAGS): Likewise.
37249 (_bsd_mod_SOURCES): New variable.
37250 (_bsd_mod_CFLAGS): Likewise.
37251 (_bsd_mod_LDFLAGS): Likewise.
37252 (bsd_mod_SOURCES): New variable.
37253 (bsd_mod_CFLAGS): Likewise.
37254 (bsd_mod_LDFLAGS): Likewise.
37255
37256 * include/grub/aout.h: New file.
37257
37258 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37259
37260 * include/grub/i386/bsd.h: New file.
37261
37262 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37263 to make it public.
37264
37265 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37266 function is called, so that it's possible to change it inside the hook.
37267 (grub_elf64_load): Likewise.
37268 (grub_elf_file): Don't close the file if elf header is not found.
37269 (grub_elf_close): Close the file if grub_elf_file fails (The new
37270 grub_elf_file won't close it).
37271 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37272 (grub_elf64_size): Likewise.
37273
37274 * kern/i386/loader.S (grub_unix_real_boot): New function.
37275
37276 * loader/aout.c: New file.
37277
37278 * loader/i386/bsd.c: New file.
37279
37280 * loader/i386/bsd_normal.c: New file.
37281
37282 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37283
37284 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37285 can test other formats.
37286
37287 2008-02-19 Robert Millan <rmh@aybabtu.com>
37288
37289 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37290 (grub_gpt_partition_type_empty): Redefine with macro from
37291 `<grub/gpt_partition.h>'.
37292 (gpt_partition_map_iterate): Adjust partition type comparison.
37293
37294 Export `entry' as partmap-specific `part.data' struct.
37295 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37296
37297 * include/grub/gpt_partition.h (grub_gpt_header)
37298 (grub_gpt_partentry): ... to here (new file).
37299
37300 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37301
37302 (grub_gpt_partition_type_bios_boot): New const variable, defined
37303 with macro from `<grub/gpt_partition.h>'.
37304
37305 (setup): Replace `first_start' with `embed_region', which keeps
37306 track of the embed region (and is partmap-agnostic).
37307
37308 Replace find_first_partition_start() with find_usable_region(),
37309 which finds a usable region for embedding using partmap-specific
37310 knowledge (supports PC/MSDOS and GPT).
37311
37312 Fix all assumptions that the embed region start at sector 1, using
37313 `embed_region.start' from now on. Similarly, use `embed_region.end'
37314 rather than `first_start' to calculate available size.
37315
37316 In grub_util_info() message, replace "into after the MBR" with an
37317 indication of the specific sector our embed region starts at.
37318
37319 2008-02-19 Robert Millan <rmh@aybabtu.com>
37320
37321 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37322 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37323 `commands/reboot.c'.
37324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37325 (halt_mod_SOURCES): Likewise.
37326 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37327 (halt_mod_SOURCES): Likewise.
37328
37329 2008-02-17 Christian Franke <franke@computer.org>
37330
37331 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37332
37333 2008-02-17 Robert Millan <rmh@aybabtu.com>
37334
37335 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37336 set `first_start' to 0 for non-PC/MSDOS partition maps.
37337
37338 2008-02-16 Robert Millan <rmh@aybabtu.com>
37339
37340 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37341 do not assume partition map is PC/MSDOS before performing checks that
37342 are specific to that layout.
37343
37344 2008-02-13 Robert Millan <rmh@aybabtu.com>
37345
37346 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37347 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37348 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37349
37350 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37351
37352 * configure.ac: Only a cosmetic change on the handling of
37353 -fno-stack-protector.
37354
37355 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37356
37357 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37358 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37359 reboot.c.
37360 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37361 (halt_mod_SOURCES): New variable.
37362 (halt_mod_CFLAGS): Likewise.
37363 (halt_mod_LDFLAGS): Likewise.
37364 (reboot_mod_SOURCES): Likewise.
37365 (reboot_mod_CFLAGS): Likewise.
37366 (reboot_mod_LDFLAGS): Likewise.
37367
37368 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37369 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37370 reboot.c.
37371 (halt_mod_SOURCES): Likewise.
37372 (reboot_mod_SOURCES): Likewise.
37373
37374 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37375 commands/i386/pc/reboot.c by commands/reboot.c.
37376 (reboot_mod_SOURCES): Likewise.
37377
37378 * commands/i386/pc/reboot.c: merge this file ...
37379
37380 * commands/ieee1275/reboot.c: ... and this file ...
37381
37382 * commands/reboot.c: ... to this file.
37383 Add some precompiler directive to include the correct header for
37384 each machine.
37385
37386 * commands/ieee1275/halt.c: move this file ...
37387
37388 * commands/halt.c: ... to here.
37389 Add some precompiler directive to include the correct header for
37390 each machine.
37391
37392 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37393 (grub_halt): Likewise.
37394
37395 * kern/efi/efi.c (grub_reboot): New function.
37396 (grub_halt): Likewise.
37397
37398 2008-02-12 Robert Millan <rmh@aybabtu.com>
37399
37400 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37401 /dev (like it is done for /dev/mapper). This doesn't provide support
37402 for EVMS, but at least it is now easy to identify the problem when it
37403 arises.
37404
37405 2008-02-11 Robert Millan <rmh@aybabtu.com>
37406
37407 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37408 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37409 comparing it with -1, not 0.
37410
37411 2008-02-10 Robert Millan <rmh@aybabtu.com>
37412
37413 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37414 `disk/lvm.c'.
37415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37416 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37417
37418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37419 `disk/lvm.c' to the end of the list.
37420 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37421 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37422
37423 2008-02-10 Robert Millan <rmh@aybabtu.com>
37424
37425 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37426 grub_print_error() instead. This will let user know why we're entering
37427 rescue mode.
37428 Based on suggestions from Sam Morris.
37429
37430 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37431
37432 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37433 on remaining N args, instead of "--" arg N times.
37434
37435 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37436
37437 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37438 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37439 pattern for unknown glyphs.
37440
37441 2008-02-09 Robert Millan <rmh@aybabtu.com>
37442
37443 * configure.ac: Probe for `help2man'.
37444 * Makefile.in (builddir): New variable.
37445 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37446 or otherwise add a few flags/options to it.
37447 (install-local): For every executable utility or script that is
37448 installed, invoke $(HELP2MAN) to install a manpage based on --help
37449 output.
37450
37451 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37452 that it doesn't prevent --help from working in build tree.
37453
37454 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37455 with `bug-grub@gnu.org'.
37456 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37457 * util/update-grub.in (usage): New function.
37458 Implement proper argument check, with support for --help and --version
37459 (as well as existing -y).
37460
37461 2008-02-09 Christian Franke <franke@computer.org>
37462
37463 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37464 avoid overwriting previous output.
37465 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37466
37467 2008-02-09 Robert Millan <rmh@aybabtu.com>
37468
37469 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37470 drawing the menu.
37471
37472 2008-02-09 Robert Millan <rmh@aybabtu.com>
37473
37474 * commands/sleep.c: New file.
37475 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37476 (sleep_mod_SOURCES): New variable.
37477 (sleep_mod_CFLAGS): Likewise.
37478 (sleep_mod_LDFLAGS): Likewise.
37479
37480 2008-02-09 Robert Millan <rmh@aybabtu.com>
37481
37482 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37483 situations in which we can deduce the RAID size and the superblock
37484 doesn't match it.
37485
37486 2008-02-09 Robert Millan <rmh@aybabtu.com>
37487
37488 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37489 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37490 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37491
37492 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37493 and return a grub_diskmemberlist_t composed of physical array members.
37494 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37495
37496 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37497 prototype.
37498 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37499 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37500 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37501
37502 * util/grub-probe.c (probe): Move partmap probing code from here ...
37503 (probe_partmap): ... to here.
37504 (probe): Use probe_partmap() once for the disk we're probing, and
37505 additionally, when such disk contains a memberlist() struct member,
37506 once for each disk that is contained in the structure returned by
37507 memberlist().
37508
37509 2008-02-09 Robert Millan <rmh@aybabtu.com>
37510
37511 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37512 environment variable to 'all' in order to obtain debug output from
37513 non-util/ code.
37514 * util/i386/pc/grub-setup.c (main): Likewise.
37515
37516 2008-02-08 Robert Millan <rmh@aybabtu.com>
37517
37518 * disk/raid.c (grub_raid_scan_device): Check for
37519 `array->device[sb.this_disk.number]' rather than for
37520 `array->device[sb.this_disk.number]->name', since the latter is not
37521 guaranteed to be accessible.
37522
37523 2008-02-08 Robert Millan <rmh@aybabtu.com>
37524
37525 * disk/raid.c: Update copyright.
37526 * fs/cpio.c: Likewise.
37527 * include/grub/raid.h: Likewise.
37528 * loader/i386/pc/multiboot.c: Likewise.
37529 * util/hostfs.c: Likewise.
37530
37531 2008-02-08 Robert Millan <rmh@aybabtu.com>
37532
37533 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37534 to a grub_disk_t array.
37535 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37536 `device[x]'.
37537 (grub_raid_scan_device): Replace `device[x].name' accesses with
37538 `device[x]->name'. Simplify initialization of `array->device[x]'.
37539
37540 2008-02-08 Robert Millan <rmh@aybabtu.com>
37541
37542 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37543 grub_dprintf() calls.
37544 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37545 error message.
37546
37547 2008-02-07 Christian Franke <franke@computer.org>
37548
37549 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
37550 instead of fseek and ftell to support large files.
37551 (grub_hostfs_read): Likewise.
37552
37553 2008-02-07 Robert Millan <rmh@aybabtu.com>
37554
37555 Patch from Jeroen Dekkers.
37556 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
37557 failure, since successfully reading all array members might not be
37558 required.
37559
37560 2008-02-06 Robert Millan <rmh@aybabtu.com>
37561
37562 * util/grub-probe.c (probe): Simplify partmap probing (with the
37563 assumption that the first word up to the underscore equals to
37564 the module name).
37565
37566 2008-02-06 Christian Franke <franke@computer.org>
37567
37568 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
37569 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
37570 last block of a cpio or tar stream.
37571 Check for "TRAILER!!!" instead of any empty data
37572 block to detect last block of a cpio stream.
37573 (grub_cpio_dir): Fix constness of variable np.
37574 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
37575 cpio or tar trailer is detected. This fixes a crash
37576 on open of a non existing file.
37577
37578 2008-02-05 Bean <bean123ch@gmail.com>
37579
37580 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
37581 address of entry.
37582 (grub_multiboot_load_elf64): Likewise.
37583 (grub_multiboot): Initialize mbi structure.
37584
37585 * util/grub-fstest.c: Don't include unused header file script.h.
37586
37587 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
37588 of file.
37589 (grub_fstest_SOURCES): Likewise.
37590
37591 2008-02-05 Robert Millan <rmh@aybabtu.com>
37592
37593 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
37594 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
37595 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
37596 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
37597
37598 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
37599 (translation_table): Replace hardcoded values with macros
37600 provided by `<grub/term.h>'.
37601
37602 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
37603 (keyboard_map): Correct/add a few values, with macros provided
37604 by `<grub/term.h>'.
37605 (keyboard_map_shift): Zero values that don't differ from their
37606 `keyboard_map' equivalents.
37607 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
37608 Discard the second scan code that is always sent by Caps lock.
37609 Only use `keyboard_map_shift' when it provides a non-zero value,
37610 otherwise fallback to `keyboard_map'.
37611
37612 2008-02-04 Bean <bean123ch@gmail.com>
37613
37614 * Makefile.in (enable_grub_fstest): New variable.
37615
37616 * conf/common.rmk (grub_fstest_init.lst): New rule.
37617 (grub_fstest_init.h): Likewise.
37618 (grub_fstest_init.c): Likewise.
37619 (util/grub-fstest.c_DEPENDENCIES): New variable.
37620 (grub_fstest_SOURCES): Likewise.
37621
37622 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
37623
37624 * util/grub-fstest.c: New file.
37625
37626 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37627
37628 Make grub-setup handle a separate root device.
37629
37630 * util/i386/pc/grub-setup.c (setup): Always open the root device,
37631 so that the root device can be compared with the destination
37632 device.
37633 When embedding the core image, if the root and destination devices
37634 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
37635 0xFF.
37636 When not embedding, set ROOT_DRIVE to 0xFF.
37637
37638 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37639
37640 Add support for having a grub directory in a different drive. This
37641 is still only the data handling part.
37642
37643 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
37644 (codestart): Save %dh in GRUB_ROOT_DRIVE.
37645 (grub_root_drive): New variable.
37646
37647 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
37648 instead of GRUB_BOOT_DRIVE to construct a device name. Set
37649 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
37650 as it was.
37651
37652 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
37653
37654 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
37655 macro.
37656 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
37657
37658 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
37659 is bogus, because PXE booting does not specify any drive
37660 correctly.
37661
37662 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
37663 am not sure if this is really correct.
37664
37665 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
37666 is always identical to the boot drive when booting from a CD.
37667
37668 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
37669 longer.
37670 (root_drive): New variable.
37671 (real_start): Unconditionally set %dh to ROOT_DRIVE.
37672 (setup_sectors): Push %dx right after popping it, because %dh will
37673 be modified later.
37674 (copy_buffer): Restore %dx.
37675
37676 2008-02-03 Robert Millan <rmh@aybabtu.com>
37677
37678 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
37679 use `cdboot.img' for cdrom images.
37680
37681 2008-02-03 Robert Millan <rmh@aybabtu.com>
37682
37683 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
37684 only setup gfxterm when `font' command has succeeded.
37685
37686 2008-02-03 Robert Millan <rmh@aybabtu.com>
37687
37688 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
37689 (grub_rescue_cmd_multiboot_loader)
37690 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
37691
37692 2008-02-03 Pavel Roskin <proski@gnu.org>
37693
37694 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
37695 %edx and %esi from stack only after grub_gate_a20() is called.
37696 grub_gate_a20() clobbers %edx.
37697
37698 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37699
37700 * configure.ac (AC_INIT): Bumped to 1.96.
37701
37702 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
37703 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
37704 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
37705 video/readers/png.c.
37706
37707 2008-02-03 Bean <bean123ch@gmail.com>
37708
37709 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
37710 (cdboot_img_SOURCES): New variable.
37711 (cdboot_img_ASFLAGS): New variable.
37712 (cdboot_img_LDFLAGS): New variable.
37713
37714 * boot/i386/pc/cdboot.S: New file.
37715
37716 * disk/i386/pc/biosdisk.c (cd_start): New variable.
37717 (cd_count): Likewise.
37718 (grub_biosdisk_get_drive): Add support for cd device.
37719 (grub_biosdisk_call_hook): Likewise.
37720 (grub_biosdisk_iterate): Likewise.
37721 (grub_biosdisk_open): Likewise.
37722 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
37723 (grub_biosdisk_rw): Support reading from cd device.
37724 (GRUB_MOD_INIT): Iterate cd devices.
37725
37726 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
37727 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
37728 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
37729
37730 * kern/i386/pc/init.c (make_install_device): Check for cd device.
37731
37732 2008-02-02 Robert Millan <rmh@aybabtu.com>
37733
37734 * commands/read.c: New file.
37735 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
37736 (read_mod_SOURCES): New variable.
37737 (read_mod_CFLAGS): Likewise.
37738 (read_mod_LDFLAGS): Likewise.
37739
37740 2008-02-02 Robert Millan <rmh@aybabtu.com>
37741
37742 * normal/main.c (grub_normal_execute): Check for `menu->size' when
37743 determining whether menu has to be displayed.
37744
37745 2008-02-02 Marco Gerards <marco@gnu.org>
37746
37747 * bus/pci.c: New file.
37748
37749 * include/grub/pci.h: Likewise.
37750
37751 * include/grub/i386/pc/pci.h: Likewise.
37752
37753 * commands/lspci.c: Likewise.
37754
37755 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
37756 `lspci.mod'.
37757 (pci_mod_SOURCES): New variable.
37758 (pci_mod_CFLAGS): Likewise.
37759 (pci_mod_LDFLAGS): Likewise.
37760 (lspci_mod_SOURCES): Likewise.
37761 (lspci_mod_CFLAGS): Likewise.
37762 (lspci_mod_LDFLAGS): Likewise.
37763
37764 2008-02-02 Bean <bean123ch@gmail.com>
37765
37766 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
37767 (grub_ufs_get_file_block): Fix indirect block calculation problem.
37768
37769 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
37770 (grub_xfs_btree_node): New structure.
37771 (grub_xfs_btree_root): New structure.
37772 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
37773 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
37774 (GRUB_XFS_EXTENT_BLOCK): Likewise.
37775 (GRUB_XFS_EXTENT_SIZE): Likewise.
37776 (grub_xfs_read_block): Support btree format type.
37777 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
37778 Use directory block as basic unit.
37779
37780 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
37781
37782 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
37783 __attribute__ ((__regparm__ (1))).
37784
37785 2008-02-01 Robert Millan <rmh@aybabtu.com>
37786
37787 Correct a mistake in previous commit.
37788
37789 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
37790 top.
37791 (normal/command.c_DEPENDENCIES): New variable.
37792
37793 2008-02-01 Robert Millan <rmh@aybabtu.com>
37794
37795 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
37796 top.
37797 (normal/command.c_DEPENDENCIES): New variable.
37798 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
37799 * conf/i386-ieee1275.rmk: Likewise.
37800 * conf/i386-linuxbios.rmk: Likewise.
37801 * conf/i386-pc.rmk: Likewise.
37802 * conf/sparc64-ieee1275.rmk: Likewise.
37803 * conf/powerpc-ieee1275.rmk: Likewise.
37804 (grub_emu_SOURCES): Add `fs/fshelp.c'.
37805
37806 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
37807
37808 2008-02-01 Robert Millan <rmh@aybabtu.com>
37809
37810 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
37811 call at beginning of function.
37812
37813 2008-01-31 Pavel Roskin <proski@gnu.org>
37814
37815 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
37816 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
37817 (grub_mkrescue_SOURCES): Likewise.
37818 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
37819
37820 2008-01-30 Robert Millan <rmh@aybabtu.com>
37821
37822 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
37823 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
37824 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
37825 (grub_probe_SOURCES): ... to here.
37826
37827 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
37828 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
37829 * conf/i386-ieee1275.rmk: Likewise.
37830 * conf/i386-linuxbios.rmk: Likewise.
37831 * conf/powerpc-ieee1275.rmk: Likewise.
37832
37833 2008-01-30 Tristan Gingold <gingold@free.fr>
37834
37835 * kern/rescue.c: Silently accept empty lines.
37836
37837 2008-01-29 Bean <bean123ch@gmail.com>
37838
37839 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
37840 (real_code_2): Code cleanup and change comment style.
37841 (move_memory): Avoid using 32-bit address mode.
37842
37843 2008-01-29 Bean <bean123ch@gmail.com>
37844
37845 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
37846 (png_mod_SOURCES): New variable.
37847 (png_mod_CFLAGS): Likewise.
37848 (png_mod_LDFLAGS): Likewise.
37849
37850 * video/readers/png.c: New file.
37851
37852 2008-01-28 Robert Millan <rmh@aybabtu.com>
37853
37854 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
37855 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
37856 `ifndef GRUB_MOD_GAP' hack.
37857 * util/elf/grub-mkimage.c (add_segments): Likewise.
37858
37859 2008-01-27 Robert Millan <rmh@aybabtu.com>
37860
37861 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
37862 `GRUB_MOD_GAP' for platforms in which it's not defined.
37863 * util/elf/grub-mkimage.c (add_segments): Likewise.
37864
37865 2008-01-27 Robert Millan <rmh@aybabtu.com>
37866
37867 Get grub-emu to build again (including parallel builds).
37868
37869 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
37870 Split into ...
37871 (util/grub-emu.c_DEPENDENCIES): ... this, ...
37872 (normal/execute.c_DEPENDENCIES): ... this, ...
37873 (grub-emu_DEPENDENCIES): ... and this.
37874
37875 * conf/i386-efi.rmk: Likewise.
37876 * conf/i386-linuxbios.rmk: Likewise.
37877 * conf/i386-ieee1275.rmk: Likewise.
37878 * conf/powerpc-ieee1275.rmk: Likewise.
37879 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
37880
37881 2008-01-27 Robert Millan <rmh@aybabtu.com>
37882
37883 * NEWS: Add a few items.
37884
37885 2008-01-27 Robert Millan <rmh@aybabtu.com>
37886
37887 Fix parallel builds with grub-emu. Based on earlier commit for
37888 grub-probe and grub-setup.
37889
37890 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37891 (util/grub-emu.c_DEPENDENCIES): ... this.
37892 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37893 (util/grub-emu.c_DEPENDENCIES): ... this.
37894 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37895 (util/grub-emu.c_DEPENDENCIES): ... this.
37896 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37897 (util/grub-emu.c_DEPENDENCIES): ... this.
37898 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37899 (util/grub-emu.c_DEPENDENCIES): ... this.
37900
37901 2008-01-27 Pavel Roskin <proski@gnu.org>
37902
37903 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
37904 to create a gap between _end and the modules added to the image
37905 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
37906 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
37907 * util/elf/grub-mkimage.c (add_segments): Likewise.
37908
37909 2008-01-26 Pavel Roskin <proski@gnu.org>
37910
37911 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
37912 just return an error.
37913
37914 2008-01-26 Bean <bean123ch@gmail.com>
37915
37916 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
37917 (grub_reiserfs_get_item): Save offset of the next item.
37918 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
37919
37920 2008-01-25 Robert Millan <rmh@aybabtu.com>
37921
37922 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
37923 make all filesystem sources appear together (possibly fixing omissions
37924 while at it).
37925 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37926 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37927 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37929
37930 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
37931 add `kern/file.c'.
37932 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
37933 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37934 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
37935 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37936
37937 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
37938 (probe): Add a sanity check to make sure of our ability to read
37939 requested files when probing for filesystem type.
37940
37941 * genmk.rb: Update copyright year (2007).
37942
37943 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
37944 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
37945 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
37946 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
37947 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
37948 : Remove function prototypes.
37949
37950 2008-01-25 Robert Millan <rmh@aybabtu.com>
37951
37952 Revert my previous commits (based on wrong assumption of how grub_errno
37953 works).
37954
37955 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
37956 * kern/file.c (grub_file_open): Likewise.
37957
37958 2008-01-24 Pavel Roskin <proski@gnu.org>
37959
37960 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
37961 that hang if GRUB tries to setup colors.
37962 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
37963 colors for firmwares that don't support it.
37964 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
37965 Recognize Open Hack'Ware, set flags to work around its
37966 limitations.
37967
37968 2008-01-24 Robert Millan <rmh@aybabtu.com>
37969
37970 * kern/file.c (grub_file_open): Do not account previous failures of
37971 unrelated functions when grub_errno is checked for.
37972 Reported by Oleg Strikov.
37973
37974 2008-01-24 Bean <bean123ch@gmail.com>
37975
37976 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
37977 (grub_ufs_sblock): New member volume name.
37978 (grub_ufs_find_file): Fix string copy bug.
37979 (grub_ufs_label): Implement this function properly.
37980
37981 * fs/hfs.c (grub_hfs_cnid_type): New enum.
37982 (grub_hfs_iterate_records): Use the correct file number for extents
37983 and catalog file. Fix problem in next index calculation.
37984 (grub_hfs_find_node): Replace recursive function call with loop.
37985 (grub_hfs_iterate_dir): Replace recursive function call with loop.
37986
37987 2008-01-23 Robert Millan <rmh@aybabtu.com>
37988
37989 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
37990 `<grub/symbol.h>' and `<grub/multiboot.h>'.
37991 (grub_multiboot2_real_boot): New function prototype.
37992
37993 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
37994 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
37995
37996 * kern/i386/ieee1275/init.c (grub_os_area_addr)
37997 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
37998
37999 2008-01-23 Robert Millan <rmh@aybabtu.com>
38000
38001 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38002 #ifdef'ed out grub_printf().
38003
38004 2008-01-23 Robert Millan <rmh@aybabtu.com>
38005
38006 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38007 grub_dprintf calls, since they make "debug=all" mode unusable.
38008 (grub_console_checkkey): Likewise.
38009
38010 2008-01-23 Robert Millan <rmh@aybabtu.com>
38011
38012 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38013 `term/i386/pc/at_keyboard.c'.
38014 (pkglib_MODULES): Add `serial.mod'.
38015 (serial_mod_SOURCES): New variable.
38016 (serial_mod_CFLAGS): Likewise.
38017 (serial_mod_LDFLAGS): Likewise.
38018
38019 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38020 `<grub/powerpc/ieee1275/console.h>'.
38021 (grub_keyboard_controller_init): New function prototype.
38022 (grub_console_checkkey): Likewise.
38023 (grub_console_getkey): Likewise.
38024
38025 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38026 keyboard on i386.
38027
38028 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38029 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38030
38031 2008-01-23 Robert Millan <rmh@aybabtu.com>
38032
38033 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38034 present, "(memdisk)/boot/grub" becomes the default prefix.
38035
38036 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38037 a memdisk tarball with all the modules. Add --overlay=DIR option that
38038 allows users to overlay additional files into the image.
38039
38040 2008-01-23 Robert Millan <rmh@aybabtu.com>
38041
38042 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38043 and `machine/memory.h'.
38044 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38045 (_multiboot_mod_SOURCES): New variable.
38046 (_multiboot_mod_CFLAGS): Likewise.
38047 (_multiboot_mod_LDFLAGS): Likewise.
38048 (multiboot_mod_SOURCES): Likewise.
38049 (multiboot_mod_CFLAGS): Likewise.
38050 (multiboot_mod_LDFLAGS): Likewise.
38051
38052 * include/grub/i386/ieee1275/loader.h: New file.
38053
38054 * include/grub/i386/ieee1275/machine.h: Likewise.
38055
38056 * include/grub/i386/ieee1275/memory.h: Likewise.
38057
38058 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38059 variable declaration.
38060 (grub_os_area_size): Likewise.
38061
38062 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38063 (grub_lower_mem, grub_upper_mem): New variables.
38064 (grub_stop_floppy): New function (just to make
38065 grub_multiboot2_real_boot() happy).
38066
38067 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38068 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38069 (grub_stop): New function.
38070 Include `"../realmode.S"' and `"../loader.S"'.
38071
38072 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38073 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38074
38075 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38076 rely on grub_multiboot2_real_boot() for final boot.
38077
38078 2008-01-22 Robert Millan <rmh@aybabtu.com>
38079
38080 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38081 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38082 device that doesn't look like an SD card.
38083 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38084 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38085 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38086 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38087 found.
38088
38089 2008-01-22 Robert Millan <rmh@aybabtu.com>
38090
38091 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38092 avoid claiming over our own code.
38093
38094 2008-01-22 Bean <bean123ch@gmail.com>
38095
38096 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38097 (jpeg_mod_SOURCES): New variable.
38098 (jpeg_mod_CFLAGS): Likewise.
38099 (jpeg_mod_LDFLAGS): Likewise.
38100
38101 * video/readers/jpeg.c : New file.
38102
38103 2008-01-22 Bean <bean123ch@gmail.com>
38104
38105 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38106 there are no more items.
38107
38108 2008-01-21 Robert Millan <rmh@aybabtu.com>
38109
38110 * kern/mm.c (grub_mm_init_region): Improve debug message.
38111
38112 2008-01-21 Robert Millan <rmh@aybabtu.com>
38113
38114 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38115 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38116 address.
38117 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38118 a C macro.
38119 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38120 Indicates start of upper memory.
38121 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38122 (generate_image): Abort when image size is big enough to corrupt
38123 upper memory.
38124
38125 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38126 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38127 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38128 instead of hardcoding 0xA0000.
38129 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38130 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38131 instead of hardcoding 0xA0000.
38132
38133 2008-01-21 Robert Millan <rmh@aybabtu.com>
38134
38135 * disk/memdisk.c (memdisk_size): New variable.
38136 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38137 `memdisk_size'.
38138 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38139 image to dynamic memory.
38140 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38141 `memdisk_size'. Free memdisk block.
38142
38143 2008-01-21 Robert Millan <rmh@aybabtu.com>
38144
38145 Fix detection of very small filesystems (like tar).
38146
38147 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38148 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38149 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38150 a problem with this disk).
38151
38152 2008-01-21 Robert Millan <rmh@aybabtu.com>
38153
38154 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38155 on grub_biosdisk_rw_standard() error.
38156
38157 2008-01-21 Robert Millan <rmh@aybabtu.com>
38158
38159 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38160 recent changes.
38161 * kern/elf.c: Likewise.
38162 * kern/ieee1275/ieee1275.c: Likewise.
38163 * kern/powerpc/ieee1275/openfw.c: Likewise.
38164 * term/ieee1275/ofconsole.c: Likewise.
38165
38166 2008-01-21 Robert Millan <rmh@aybabtu.com>
38167
38168 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38169
38170 * include/grub/kernel.h (grub_arch_memdisk_addr)
38171 (grub_arch_memdisk_size): Moved from here ...
38172
38173 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38174 (grub_arch_memdisk_size): ... to here.
38175
38176 2008-01-21 Robert Millan <rmh@aybabtu.com>
38177
38178 Mostly based on bugfix from Bean.
38179
38180 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38181 attribute with hook() parameter.
38182 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38183 declaration.
38184 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38185 attribute with hook() parameter.
38186 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38187 declaration.
38188
38189 2008-01-21 Robert Millan <rmh@aybabtu.com>
38190
38191 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38192 (pkglib_MODULES): Add `memdisk.mod'.
38193 (memdisk_mod_SOURCES): New variable.
38194 (memdisk_mod_CFLAGS): Likewise.
38195 (memdisk_mod_LDFLAGS): Likewise.
38196
38197 * disk/memdisk.c: New file.
38198
38199 * include/grub/disk.h (grub_disk_dev_id): Add
38200 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38201
38202 * include/grub/i386/pc/kernel.h
38203 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38204 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38205 (grub_kernel_image_size): New variable declaration.
38206 (grub_total_module_size): Likewise.
38207 (grub_memdisk_image_size): Likewise.
38208
38209 * include/grub/i386/pc/memory.h
38210 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38211
38212 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38213 (grub_arch_memdisk_addr): New variable declaration.
38214 (grub_arch_memdisk_size): Likewise.
38215
38216 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38217 (grub_arch_memdisk_size): Likewise.
38218
38219 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38220 (codestart): Replace hardcoded `0x100000' with
38221 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38222
38223 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38224 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38225 not NULL, append the contents of the file it refers to, at the end of
38226 the compressed kernel image. Initialize `grub_memdisk_image_size'
38227 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38228 (options): Add "memdisk"|'m' option.
38229 (main): Parse --memdisk|-m option, and pass user-provided path as
38230 parameter to generate_image().
38231
38232 2008-01-20 Robert Millan <rmh@aybabtu.com>
38233
38234 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38235 grub_dprintf() calls from here ...
38236 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38237
38238 2008-01-20 Robert Millan <rmh@aybabtu.com>
38239
38240 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38241
38242 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38243 declaration.
38244 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38245 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38246 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38247 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38248 property).
38249 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38250 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38251
38252 2008-01-19 Robert Millan <rmh@aybabtu.com>
38253
38254 Get rid of confusing function (superseded by
38255 `grub_ieee1275_get_integer_property')
38256 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38257 prototype.
38258 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38259 function.
38260 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38261 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38262 in native endianness from grub_ieee1275_get_integer_property().
38263
38264 2008-01-19 Robert Millan <rmh@aybabtu.com>
38265
38266 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38267 command after "shut-down", since implementations differ on which
38268 the command for halt is.
38269
38270 2008-01-19 Robert Millan <rmh@aybabtu.com>
38271
38272 * include/grub/i386/linuxbios/console.h: Add header protection.
38273 (grub_keyboard_controller_init): New function prototype.
38274 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38275 (KEYBOARD_COMMAND_READ): Likewise.
38276 (KEYBOARD_COMMAND_WRITE): Likewise.
38277 (KEYBOARD_SCANCODE_SET1): Likewise.
38278 (grub_keyboard_controller_write): New function.
38279 (grub_keyboard_controller_read): Likewise.
38280 (grub_keyboard_controller_init): Likewise.
38281
38282 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38283 (grub_console_init): On coreboot/LinuxBIOS, call
38284 grub_keyboard_controller_init().
38285
38286 2008-01-19 Robert Millan <rmh@aybabtu.com>
38287
38288 PowerPC changes provided by Pavel Roskin.
38289
38290 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38291 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38292 don't rely on cmain() doing it.
38293 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38294 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38295
38296 2008-01-16 Robert Millan <rmh@aybabtu.com>
38297
38298 * include/grub/i386/linuxbios/memory.h
38299 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38300 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38301 receive `table_header' as argument. Instead, probe for it in the
38302 known memory ranges where it can be present.
38303 (grub_available_iterate): Do not pass a fixed `table_header' address
38304 to grub_linuxbios_table_iterate().
38305
38306 2008-01-15 Robert Millan <rmh@aybabtu.com>
38307
38308 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38309 * conf/i386-ieee1275.rmk: New file.
38310 * include/grub/i386/ieee1275/console.h: Likewise.
38311 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38312 * include/grub/i386/ieee1275/kernel.h: Likewise.
38313 * include/grub/i386/ieee1275/time.h: Likewise.
38314 * kern/i386/ieee1275/init.c: Likewise.
38315 * kern/i386/ieee1275/startup.S: Likewise.
38316
38317 2008-01-15 Robert Millan <rmh@aybabtu.com>
38318
38319 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38320 when pointers are 32-bit (but still do set it to one when they are
38321 64-bit).
38322
38323 2008-01-15 Robert Millan <rmh@aybabtu.com>
38324
38325 * include/grub/ieee1275/ieee1275.h
38326 (grub_ieee1275_get_integer_property): New function prototype.
38327
38328 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38329 (grub_ieee1275_get_integer_property): New function. Wraps around
38330 grub_ieee1275_get_property() to handle endianness.
38331
38332 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38333 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38334 where appropriate.
38335 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38336 (grub_map): Likewise.
38337 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38338
38339 2008-01-15 Bean <bean123ch@gmail.com>
38340
38341 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38342 (grub_script_execute_cmdline): Reset grub_errno.
38343
38344 * normal/main.c (read_config_file): Reset grub_errno.
38345
38346 * normal/parse.y (script_init): New.
38347 (script): Move function and menuentry here.
38348 (delimiter): New.
38349 (command): Add delimiter at the end of command.
38350 (commands): Adjust to match the new command.
38351 (commandblock): Remove grub_script_lexer_record_start.
38352 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38353 (if): Use the new commands.
38354
38355 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38356
38357 2008-01-15 Robert Millan <rmh@aybabtu.com>
38358
38359 * normal/menu.c (run_menu): Move timeout message from here ...
38360 (print_timeout): ... to here.
38361 (run_menu): Use print_timeout() once during initial draw to print
38362 the whole message, and again in every clock tick to update only
38363 the number of seconds.
38364
38365 2008-01-15 Robert Millan <rmh@aybabtu.com>
38366
38367 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38368 actual size of `available' from grub_ieee1275_get_property(), and
38369 restrict parsing to that bound.
38370
38371 2008-01-15 Christian Franke <franke@computer.org>
38372
38373 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38374 (argp_program_version): Remove variable.
38375 (argp_program_bug_address): Likewise.
38376 (options): Convert from struct argp_option to struct option.
38377 (struct arguments): Remove.
38378 (parse_opt): Remove.
38379 (usage): New function.
38380 (main): Replace struct args members by simple variables.
38381 Replace argp_parse() by getopt_long().
38382 Add switch to evaluate options.
38383 Add missing "(...)" around root_dev in prefix string.
38384
38385 2008-01-14 Robert Millan <rmh@aybabtu.com>
38386
38387 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38388 for grub_ieee1275_exit(), in order to improve portability.
38389
38390 2008-01-14 Robert Millan <rmh@aybabtu.com>
38391
38392 * util/grub.d/10_linux.in (prefix): Define.
38393 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38394
38395 2008-01-13 Pavel Roskin <proski@gnu.org>
38396
38397 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38398 grub_errno if no errors have been detected.
38399
38400 2008-01-12 Robert Millan <rmh@aybabtu.com>
38401
38402 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38403 (grub_util_get_dev_abstraction): New function prototype.
38404
38405 * util/getroot.c: Include `<grub/util/getroot.h>'
38406 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38407 (grub_util_get_dev_abstraction): ... here (new function).
38408
38409 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38410 `PRINT_ABSTRACTION'.
38411 (probe): Probe for abstraction type when requested.
38412 (main): Understand `--target=abstraction'.
38413
38414 * util/i386/efi/grub-install.in: Add abstraction module to core
38415 image when it is found to be necessary.
38416 * util/i386/pc/grub-install.in: Likewise.
38417 * util/powerpc/ieee1275/grub-install.in: Likewise.
38418
38419 * util/update-grub_lib.in (font_path): Return system path without
38420 converting to GRUB path.
38421 * util/update-grub.in: Convert system path returned by font_path()
38422 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38423 abstraction module is needed for loading fonts (if any). Export
38424 that as `GRUB_PRELOAD_MODULES'.
38425 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38426 insmod commands).
38427
38428 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38429
38430 Remove some unused code from reiserfs.
38431
38432 * fs/reiserfs.c (struct grub_reiserfs_key)
38433 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38434 (struct grub_reiserfs_node_body): Removed.
38435 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38436 Likewise.
38437 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38438 Likewise.
38439 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38440 Likewise.
38441 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38442 Likewise.
38443 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38444 Likewise.
38445 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38446 Likewise.
38447 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38448 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38449 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38450
38451 2008-01-10 Robert Millan <rmh@aybabtu.com>
38452
38453 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38454 Determines if a file is garbage left by packaging systems, etc.
38455 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38456 for processing /etc/grub.d scripts.
38457 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38458 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38459 as a condition for processing Linux images.
38460
38461 2008-01-10 Pavel Roskin <proski@gnu.org>
38462
38463 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38464 to compile reiserfs.c on PowerPC.
38465
38466 2008-01-10 Robert Millan <rmh@aybabtu.com>
38467
38468 * kern/device.c (grub_device_iterate): Do not abort device iteration
38469 when one of the devices cannot be opened.
38470 * kern/disk.c (grub_disk_open): Do not account previous failures of
38471 unrelated functions when grub_errno is checked for.
38472
38473 2008-01-08 Robert Millan <rmh@aybabtu.com>
38474
38475 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38476 `! grub_linux_is_bzimage', change order of address comparison to make
38477 it more intuitive, and improve "too big zImage" error message.
38478
38479 2008-01-08 Robert Millan <rmh@aybabtu.com>
38480
38481 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38482 `$(update-grub_DATA)'.
38483 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38484 targets.
38485
38486 2008-01-07 Robert Millan <rmh@aybabtu.com>
38487
38488 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38489 which instruction is modified by grub-setup during installation
38490 (since it wasn't obvious by only looking at this file).
38491
38492 2008-01-07 Robert Millan <rmh@aybabtu.com>
38493
38494 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38495 listing actual TODO items.
38496
38497 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38498
38499 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38500 correctly.
38501 (grub_reiserfs_get_key_offset): Likewise.
38502 (grub_reiserfs_set_key_offset): Likewise.
38503 (grub_reiserfs_set_key_type): Likewise.
38504 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38505
38506 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38507 better to remove the bitfield version completely.
38508
38509 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38510
38511 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38512 allocated from the heap, due to the fshelp implementation.
38513 (grub_reiserfs_dir): Free NODE, due to the same reason.
38514
38515 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38516
38517 Mostly from Vincent Pelletier:
38518
38519 * fs/reiserfs.c: New file.
38520
38521 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38522 (reiserfs_mod_SOURCES): New variable.
38523 (reiserfs_mod_CFLAGS): Likewise.
38524 (reiserfs_mod_LDFLAGS): Likewise.
38525
38526 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38527 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38528 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38529 normal/color.c.
38530
38531 2008-01-06 Robert Millan <rmh@aybabtu.com>
38532
38533 * normal/color.c: Remove `<grub/env.h>'.
38534
38535 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38536
38537 * include/grub/normal.h: Include <grub/env.h>.
38538
38539 2008-01-05 Robert Millan <rmh@aybabtu.com>
38540
38541 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38542 usage example with `(hd0,1)'.
38543 Reported by Samuel Thibault.
38544
38545 2008-01-05 Robert Millan <rmh@aybabtu.com>
38546
38547 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38548 (grub_linux_boot_zimage): Rename to ...
38549 (grub_linux_boot): ... this.
38550 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
38551 (grub_linux_boot_zimage): Conditionalize zImage copy.
38552
38553 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
38554 (grub_linux_boot_bzimage): Remove prototype.
38555 (grub_linux_boot_zimage): Rename to ...
38556 (grub_linux_boot): ... this.
38557
38558 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
38559 (grub_linux_boot): Remove function.
38560
38561 2008-01-05 Robert Millan <rmh@aybabtu.com>
38562
38563 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
38564 (grub_env_write_color_highlight): Likewise.
38565 (grub_wait_after_message): Likewise.
38566
38567 * normal/color.c: New file.
38568
38569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38570 (normal_mod_DEPENDENCIES): Likewise.
38571
38572 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38573 (normal_mod_DEPENDENCIES): Likewise.
38574
38575 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38576 (normal_mod_DEPENDENCIES): Likewise.
38577
38578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38579 (normal_mod_DEPENDENCIES): Likewise.
38580
38581 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
38582 for waiting after a message is printed.
38583 * normal/main.c (read_config_file): Likewise.
38584 (grub_normal_init): Register grub_env_write_color_normal() and
38585 grub_env_write_color_highlight() hooks. Mark `color_normal' and
38586 `color_highlight' variables as global.
38587
38588 * normal/menu.c (grub_wait_after_message): New function.
38589 (grub_color_menu_normal): New variable. Replaces ...
38590 (GRUB_COLOR_MENU_NORMAL): ... this macro.
38591 (grub_color_menu_highlight): New variable. Replaces ...
38592 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
38593 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
38594 `GRUB_TERM_COLOR_STANDARD'.
38595 (print_message): Use `grub_setcolorstate' to reload colors. Rename
38596 `normal_code' and `highlight_code' to `old_color_normal' and
38597 `old_color_highlight', respectively.
38598 (grub_menu_init_page): Update colors when drawing the menu, based on
38599 `menu_color_normal' and `menu_color_highlight' variables.
38600 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
38601 a message is printed.
38602
38603 2008-01-05 Robert Millan <rmh@aybabtu.com>
38604
38605 * kern/env.c (grub_env_context_open): Propagate hooks for global
38606 variables to new context.
38607
38608 * kern/main.c (grub_set_root_dev): Export `root' variable.
38609
38610 2008-01-05 Robert Millan <rmh@aybabtu.com>
38611
38612 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
38613 discs unconditionally, since udev and others have options to provide
38614 them.
38615
38616 2008-01-05 Robert Millan <rmh@aybabtu.com>
38617
38618 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
38619
38620 2008-01-04 Christian Franke <franke@computer.org>
38621
38622 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
38623 of eisa_mmap.
38624
38625 2008-01-03 Pavel Roskin <proski@gnu.org>
38626
38627 * kern/i386/linuxbios/init.c: Put "void" to all function
38628 declarations with no arguments.
38629 * kern/powerpc/ieee1275/init.c: Likewise.
38630 * term/i386/pc/at_keyboard.c: Likewise.
38631 * term/i386/pc/vga_text.c: Likewise.
38632 * util/grub-mkdevicemap.c: Likewise.
38633
38634 2008-01-02 Robert Millan <rmh@aybabtu.com>
38635
38636 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
38637 message when loaded image is out of bounds.
38638 (grub_multiboot_load_elf64): Likewise.
38639
38640 2008-01-02 Pavel Roskin <proski@gnu.org>
38641
38642 * util/grub.d/10_linux.in: Try version without ".old" when
38643 looking for initrd. It's better to use initrd from the newer
38644 kernel of the same version than no initrd at all.
38645
38646 2008-01-01 Robert Millan <rmh@aybabtu.com>
38647
38648 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
38649
38650 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
38651
38652 * include/grub/video.h: Added grub_video_unmap_color and
38653 grub_video_get_active_render_target.
38654 (grub_video_adapter): Added unmap_color and get_active_render_target.
38655
38656 * video/video.c: Added grub_video_unmap_color and
38657 grub_video_get_active_render_target.
38658 (grub_video_get_info): Changed method to accept NULL pointer as an
38659 argument to allow detection of active video adapter.
38660
38661 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
38662 grub_video_vbe_unmap_color_int.
38663 Added grub_video_vbe_unmap_color and
38664 grub_video_vbe_get_active_render_target.
38665 (grub_video_vbe_adapter): Added unmap_color and
38666 get_active_render_target.
38667
38668 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
38669 with grub_video_vbe_unmap_color_int.
38670
38671 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
38672 (DEFAULT_NORMAL_COLOR): Likewise.
38673 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
38674 (DEFAULT_FG_COLOR): Removed.
38675 (DEFAULT_BG_COLOR): Likewise.
38676 (DEFAULT_CURSOR_COLOR): Changed value.
38677 (grub_virtual_screen): Added standard_color_setting,
38678 normal_color_setting, highlight_color_setting and term_color.
38679 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
38680 (bitmap_width): Added.
38681 (bitmap_height): Likewise.
38682 (bitmap): Likewise.
38683 (set_term_color): Likewise.
38684 (grub_virtual_screen_setup): Changed to use new terminal coloring
38685 settings.
38686 (grub_gfxterm_init): Added init for bitmap.
38687 (grub_gfxterm_fini): Added destroy for bitmap.
38688 (redraw_screen_rect): Updated to use background bitmap and new
38689 terminal coloring.
38690 (scroll_up): Added optimization for case when there is no bitmap.
38691 (grub_gfxterm_cls): Fixed to use correct background color.
38692 (grub_virtual_screen_setcolorstate): Changed to use new terminal
38693 coloring.
38694 (grub_virtual_screen_setcolor): Likewise.
38695 (grub_virtual_screen_getcolor): Added.
38696 (grub_gfxterm_background_image_cmd): Likewise.
38697 (grub_video_term): Added setcolor and getcolor.
38698 (MOD_INIT): Added registration of background_image command.
38699 (MOD_TERM): Added unregistration for background_image command.
38700
38701 2007-12-30 Pavel Roskin <proski@gnu.org>
38702
38703 * loader/multiboot_loader.c: Fix multiboot command
38704 unregistration. Fix all typos in the word "multiboot".
38705
38706 2007-12-29 Pavel Roskin <proski@gnu.org>
38707
38708 * util/grub.d/10_linux.in: Refactor search for initrd. Add
38709 support for initrd names used in Fedora.
38710
38711 2007-12-26 Bean <bean123ch@gmail.com>
38712
38713 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
38714 (cpio_mod_SOURCES): New variable.
38715 (cpio_mod_CFLAGS): Likewise.
38716 (cpio_mod_LDFLAGS): Likewise.
38717
38718 * fs/cpio.c: New file.
38719
38720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
38721
38722 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38723
38724 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38725
38726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38727
38728 2007-12-25 Robert Millan <rmh@aybabtu.com>
38729
38730 * include/grub/term.h (struct grub_term): Add `getcolor' function.
38731 (grub_getcolor): New function.
38732
38733 * kern/term.c (grub_getcolor): New function.
38734 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
38735 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
38736 (print_entry): Set normal and highlight colors to
38737 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
38738 respectively, before printing and restore them to old
38739 values afterwards.
38740 (grub_menu_init_page): Likewise. Fill an additional colored space
38741 that would otherwise be left blank.
38742
38743 * term/efi/console.c (grub_console_getcolor): New function.
38744 (struct grub_console_term.getcolor): New variable.
38745 * term/i386/pc/console.c (grub_console_getcolor): New function.
38746 (struct grub_console_term.getcolor): New variable.
38747 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
38748 (struct grub_console_term.getcolor): New variable.
38749
38750 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
38751 (struct grub_console_term.setcolor): Remove variable.
38752 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
38753 (struct grub_console_term.setcolor): Remove variable.
38754 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
38755 (struct grub_console_term.setcolor): Remove variable.
38756 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
38757 (struct grub_console_term.setcolor): Remove variable.
38758
38759 2007-12-25 Robert Millan <rmh@aybabtu.com>
38760
38761 * configure.ac: Search for possible unifont.hex locations, and
38762 define UNIFONT_HEX if found.
38763
38764 * Makefile.in (UNIFONT_HEX): Define variable.
38765 (DATA): Rename to ...
38766 (PKGLIB): ... this. Update all users.
38767 (PKGDATA): New variable.
38768 (pkgdata_IMAGES): Rename to ...
38769 (pkglib_IMAGES): ... this. Update all users.
38770 (pkgdata_MODULES): Rename to ...
38771 (pkglib_MODULES): ... this. Update all users.
38772 (pkgdata_PROGRAMS): Rename to ...
38773 (pkglib_PROGRAMS): ... this. Update all users.
38774 (pkgdata_DATA): Rename to ...
38775 (pkglib_DATA): ... this. Update all users.
38776 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
38777 (unicode.pff, ascii.pff): New rules.
38778 (all-local): Add `$(PKGDATA)' dependency.
38779 (install-local): Process `$(PKGDATA)'.
38780
38781 * util/update-grub_lib.in (font_path): Search for *.pff files in
38782 a few more locations, including `${pkgdata}'.
38783
38784 2007-12-23 Robert Millan <rmh@aybabtu.com>
38785
38786 Patch from Bean <bean123ch@gmail.com>:
38787 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
38788 `size'.
38789
38790 2007-12-21 Bean <bean123ch@gmail.com>
38791
38792 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
38793 (ntfscomp_mod_SOURCES): New variable.
38794 (ntfscomp_mod_CFLAGS): Likewise.
38795 (ntfscomp_mod_LDFLAGS): Likewise.
38796
38797 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
38798 (grub_probe_SOURCES): Likewise.
38799 (grub_emu_SOURCES): Likewise.
38800
38801 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38802 (grub_emu_SOURCES): Likewise.
38803
38804 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38805 (grub_emu_SOURCES): Likewise.
38806
38807 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38808 (grub_emu_SOURCES): Likewise.
38809
38810 * fs/ntfs.c (grub_ntfscomp_func): New variable.
38811 (read_run_list): Renamed to grub_ntfs_read_run_list.
38812 (decomp_nextvcn): Moved to ntfscomp.c.
38813 (decomp_getch): Likewise.
38814 (decomp_get16): Likewise.
38815 (decomp_block): Likewise.
38816 (read_block): Likewise.
38817 (read_data): Partially moved to ntfscomp.c.
38818 (fixup): Change unsigned to grub_uint16_t.
38819 (read_mft): Change unsigned long to grub_uint32_t.
38820 (read_attr): Likewise.
38821 (read_data): Likewise.
38822 (read_run_data): Likewise.
38823 (read_run_list): Likewise.
38824 (read_mft): Likewise.
38825
38826 * fs/ntfscomp.c: New file.
38827
38828 * include/grub/ntfs.h: New file.
38829
38830 2007-12-16 Robert Millan <rmh@aybabtu.com>
38831
38832 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
38833 IDE disk check, since Linux is known to support 20 IDE disks.
38834 Reported by Colin Watson.
38835
38836 2007-12-15 Bean <bean123ch@gmail.com>
38837
38838 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
38839 (lnxboot_img_SOURCES): New variable.
38840 (lnxboot_img_ASFLAGS): Likewise.
38841 (lnxboot_img_LDFLAGS): Likewise.
38842
38843 * boot/i386/pc/lnxboot.S: New file.
38844
38845 2007-11-24 Pavel Roskin <proski@gnu.org>
38846
38847 * configure.ac: Test if '--build-id=none' is supported by the
38848 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
38849 objcopy to generate incorrect binary files (binutils
38850 2.17.50.0.18-1 as shipped by Fedora 8).
38851 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
38852 linking, so that build ID doesn't break the test.
38853
38854 2007-11-24 Pavel Roskin <proski@gnu.org>
38855
38856 * include/grub/i386/time.h: use "void" in the argument list
38857 of grub_cpu_idle().
38858 * include/grub/powerpc/time.h: Likewise.
38859 * include/grub/sparc64/time.h: Likewise.
38860
38861 2007-11-18 Christian Franke <franke@computer.org>
38862
38863 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
38864 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
38865 This fixes the problem that function keys did not work in grub-emu.
38866
38867 2007-11-18 Christian Franke <franke@computer.org>
38868
38869 * disk/host.c (grub_host_open): Remove attribute unused from
38870 name parameter. Add check for "host". This fixes the problem
38871 that grub-emu does not find partitions.
38872
38873 2007-11-18 Christian Franke <franke@computer.org>
38874
38875 * util/hostfs.c (is_dir): New function.
38876 (grub_hostfs_dir): Handle missing dirent.d_type case.
38877 (grub_hostfs_read): Add missing fseek().
38878 (grub_hostfs_label): Clear label pointer. This fixes a crash
38879 of grub-emu on "ls (host)".
38880
38881 2007-11-18 Christian Franke <franke@computer.org>
38882
38883 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
38884 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
38885 to 64 bit boundary by default.
38886
38887 2007-11-18 Bean <bean123ch@gmail.com>
38888
38889 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
38890 (hexdump_mod_SOURCES): New variable.
38891 (hexdump_mod_CFLAGS): Likewise.
38892 (hexdump_mod_LDFLAGS): Likewise.
38893
38894 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38895
38896 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38897
38898 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38899
38900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38901
38902 * include/grub/hexdump.h: New file.
38903
38904 * commands/hexdump.c: New file.
38905
38906 2007-11-10 Robert Millan <rmh@aybabtu.com>
38907
38908 * commands/i386/pc/play.c (beep_off): Switch order of arguments
38909 in grub_outb() calls.
38910 (beep_on): Likewise.
38911
38912 2007-11-10 Christian Franke <franke@computer.org>
38913
38914 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
38915 (grub_menu_run): Likewise.
38916
38917 2007-11-10 Robert Millan <rmh@aybabtu.com>
38918
38919 * include/grub/i386/efi/machine.h: New file.
38920 * include/grub/i386/linuxbios/machine.h: Likewise.
38921 * include/grub/i386/pc/machine.h: Likewise.
38922 * include/grub/powerpc/ieee1275/machine.h: Likewise.
38923 * include/grub/sparc64/ieee1275/machine.h: Likewise.
38924
38925 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
38926 (serial_hw_io_addr): New variable.
38927 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
38928 instead of `(unsigned short *) 0x400'.
38929
38930 2007-11-10 Bean <bean123ch@gmail.com>
38931
38932 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
38933
38934 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38935
38936 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
38937 (vga_mod_SOURCES): Added.
38938 (vga_mod_CFLAGS): Likewise.
38939 (vga_mod_LDFLAGS): Likewise.
38940
38941 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
38942 grub_outb() calls.
38943 (set_map_mask): Likewise.
38944 (set_read_map): Likewise.
38945 (set_read_address): Likewise.
38946 (vga_font): Removed variable.
38947 (get_vga_glyph): Removed function.
38948 (invalidate_char): Likewise.
38949 (write_char): Changed to use grub_font_get_glyph() for font
38950 information.
38951 (grub_vga_putchar): Likewise.
38952 (grub_vga_getcharwidth): Likewise.
38953
38954 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38955
38956 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
38957 flags.
38958 (pxeboot_img_LDFLAGS): Likewise.
38959 (diskboot_img_LDFLAGS): Likewise.
38960 (kernel_img_LDFLAGS): Likewise.
38961
38962 2007-11-06 Robert Millan <rmh@aybabtu.com>
38963
38964 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
38965 in grub_outb() calls.
38966 (serial_hw_init): Likewise.
38967
38968 2007-11-05 Robert Millan <rmh@aybabtu.com>
38969
38970 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
38971 spaces. Skip non-regular files.
38972
38973 2007-11-05 Robert Millan <rmh@aybabtu.com>
38974
38975 * kern/disk.c (grub_disk_firmware_fini)
38976 (grub_disk_firmware_is_tainted): New variables.
38977
38978 * include/grub/disk.h (grub_disk_firmware_fini)
38979 (grub_disk_firmware_is_tainted): Likewise.
38980
38981 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
38982 (grub_disk_biosdisk_fini): ... to here.
38983 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
38984 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
38985 is set. Register grub_disk_biosdisk_fini() in
38986 `grub_disk_firmware_fini'.
38987
38988 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
38989 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
38990 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
38991 to finish existing firmware disk interface.
38992
38993 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
38994 (ata_mod_SOURCES): New variable.
38995 (ata_mod_CFLAGS): Likewise.
38996 (ata_mod_LDFLAGS): Likewise.
38997
38998 2007-11-05 Robert Millan <rmh@aybabtu.com>
38999
39000 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39001 (grub_ata_wait): Reimplement using grub_millisleep().
39002
39003 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39004 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39005
39006 2007-11-03 Marco Gerards <marco@gnu.org>
39007
39008 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39009 (CRTC_ADDR_PORT): New macro.
39010 (CRTC_DATA_PORT): Likewise.
39011 (CRTC_CURSOR): Likewise.
39012 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39013 (CRTC_CURSOR_ADDR_LOW): Likewise.
39014 (update_cursor): New function.
39015 (grub_console_real_putchar): Call `update_cursor'.
39016 (grub_console_gotoxy): Likewise.
39017 (grub_console_cls): Set the default color when clearing the
39018 screen.
39019 (grub_console_setcursor): Implemented.
39020
39021 2007-11-03 Marco Gerards <marco@gnu.org>
39022
39023 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39024 become activate.
39025 (grub_ata_pio_write): Likewise.
39026
39027 (grub_atapi_identify): Wait after issuing an ATA command.
39028 (grub_atapi_packet): Likewise.
39029 (grub_ata_identify): Likewise.
39030 (grub_ata_readwrite): Likewise.
39031
39032 2007-11-03 Marco Gerards <marco@gnu.org>
39033
39034 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39035 (grub_ata_pio_write): Likewise.
39036 (grub_ata_readwrite): Use `grub_error', instead of
39037 returning `grub_errno'.
39038
39039 2007-11-03 Marco Gerards <marco@gnu.org>
39040
39041 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39042 grub_ata_pio_write once for every single sector, instead of for
39043 multiple sectors.
39044
39045 2007-10-31 Robert Millan <rmh@aybabtu.com>
39046
39047 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39048
39049 * conf/i386-linuxbios.rmk: New file.
39050
39051 * kern/i386/pc/hardware.c: Likewise.
39052 * term/i386/pc/at_keyboard.c: Likewise.
39053 * term/i386/pc/vga_text.c: Likewise.
39054
39055 * include/grub/i386/linuxbios/boot.h: Likewise.
39056 * include/grub/i386/linuxbios/console.h: Likewise.
39057 * include/grub/i386/linuxbios/init.h: Likewise.
39058 * include/grub/i386/linuxbios/kernel.h: Likewise.
39059 * include/grub/i386/linuxbios/loader.h: Likewise.
39060 * include/grub/i386/linuxbios/memory.h: Likewise.
39061 * include/grub/i386/linuxbios/serial.h: Likewise.
39062 * include/grub/i386/linuxbios/time.h: Likewise.
39063
39064 * kern/i386/linuxbios/init.c: Likewise.
39065 * kern/i386/linuxbios/startup.S: Likewise.
39066 * kern/i386/linuxbios/table.c: Likewise.
39067
39068 2007-10-31 Marco Gerards <marco@gnu.org>
39069
39070 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39071 (ata_mod_SOURCES): New variable.
39072 (ata_mod_CFLAGS): Likewise.
39073 (ata_mod_LDFLAGS): Likewise.
39074
39075 * disk/ata.c: New file.
39076
39077 * include/grub/disk.h (grub_disk_dev_id): Add
39078 `GRUB_DISK_DEV_ATA_ID'.
39079
39080 2007-10-31 Robert Millan <rmh@aybabtu.com>
39081
39082 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39083 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39084
39085 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39086 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39087
39088 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39089 `<grub/types.h>'.
39090
39091 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39092
39093 2007-10-27 Robert Millan <rmh@aybabtu.com>
39094
39095 * include/grub/types.h (ULONG_MAX): Define macro.
39096
39097 2007-10-22 Robert Millan <rmh@aybabtu.com>
39098
39099 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39100 `"../realmode.S"'.
39101 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39102
39103 2007-10-22 Robert Millan <rmh@aybabtu.com>
39104
39105 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39106 (pkgdata_MODULES): Add `biosdisk.mod'.
39107 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39108 variables.
39109
39110 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39111 (grub_biosdisk_init): Replace with ...
39112 (GRUB_MOD_INIT(biosdisk)): ... this.
39113 (grub_biosdisk_fini): Replace with ...
39114 (GRUB_MOD_FINI(biosdisk)): ... this.
39115
39116 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39117 (grub_machine_init): Remove call to grub_biosdisk_init().
39118 (grub_machine_fini): Remove call to grub_machine_fini().
39119
39120 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39121
39122 2007-10-22 Robert Millan <rmh@aybabtu.com>
39123
39124 * include/grub/time.h: New file.
39125 * include/grub/i386/time.h: Likewise.
39126 * include/grub/powerpc/time.h: Likewise.
39127 * include/grub/sparc64/time.h: Likewise.
39128
39129 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39130 instances to ...
39131 (KERNEL_MACHINE_TIME_HEADER): ... this.
39132 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39133 instances to ...
39134 (KERNEL_MACHINE_TIME_HEADER): ... this.
39135 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39136 instances to ...
39137 (KERNEL_MACHINE_TIME_HEADER): ... this.
39138
39139 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39140 (grub_millisleep): New function.
39141 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39142 (grub_millisleep): New function.
39143 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39144 Remove `grub/machine/time.h' include.
39145 (grub_millisleep): New function.
39146 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39147 Remove `grub/machine/time.h' include.
39148 (grub_millisleep): New function.
39149
39150 * include/grub/misc.h (grub_div_roundup): New function.
39151
39152 * kern/misc.c: Include `<grub/time.h>'.
39153 (grub_millisleep_generic): New function.
39154
39155 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39156 Add `time.h'.
39157 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39158 Add `time.h'.
39159 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39160 `machine/time.h'. Add `time.h'.
39161 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39162
39163 2007-10-21 Robert Millan <rmh@aybabtu.com>
39164
39165 * include/grub/misc.h (grub_max): New function.
39166
39167 2007-10-21 Robert Millan <rmh@aybabtu.com>
39168
39169 * util/misc.c (grub_util_info): Call fflush() before returning.
39170
39171 2007-10-20 Robert Millan <rmh@aybabtu.com>
39172
39173 * genmk.rb (Image): Copy `extra_flags' from here ...
39174 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39175
39176 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39177 to `argc' and `args' arguments.
39178
39179 2007-10-17 Robert Millan <rmh@aybabtu.com>
39180
39181 * kern/i386/loader.S: New file.
39182
39183 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39184 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39185 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39186 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39187 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39188 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39189 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39190 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39191 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39192 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39193 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39194 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39195 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39196 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39197
39198 * kern/i386/realmode.S: New file.
39199
39200 * kern/i386/pc/startup.S (protstack): Moved from here ...
39201 * kern/i386/realmode.S (protstack)... to here.
39202 * kern/i386/pc/startup.S (gdt): Moved from here ...
39203 * kern/i386/realmode.S (gdt)... to here.
39204 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39205 * kern/i386/realmode.S (prot_to_real)... to here.
39206
39207 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39208 `kern/i386/realmode.S'.
39209
39210 2007-10-17 Robert Millan <rmh@aybabtu.com>
39211
39212 * include/grub/i386/loader.h: New file.
39213
39214 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39215 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39216 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39217 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39218 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39219 * include/grub/i386/loader.h (grub_linux_prot_size)
39220 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39221 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39222 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39223 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39224
39225 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39226
39227 2007-10-15 Robert Millan <rmh@aybabtu.com>
39228
39229 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39230 filesystem when dev->disk is unset.
39231 Do probe for filesystem even when dev->disk->has_partitions is set.
39232 In case a filesystem is found, always report it.
39233 In case it isn't, if dev->disk->has_partitions is set, report that
39234 a partition table was found instead of reporting that no filesystem
39235 could be identified.
39236
39237 2007-10-12 Robert Millan <rmh@aybabtu.com>
39238
39239 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39240 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39241
39242 * include/grub/types.h (grub_host_to_target16): New macro.
39243 (grub_host_to_target32): Likewise.
39244 (grub_host_to_target64): Likewise.
39245 (grub_target_to_host16): Likewise.
39246 (grub_target_to_host32): Likewise.
39247 (grub_target_to_host64): Likewise.
39248
39249 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39250 Renamed from to ...
39251 (GRUB_MOD_ALIGN): ...this. Update all users.
39252
39253 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39254 grub_host_to_target32.
39255 Replace grub_be_to_cpu32 with grub_target_to_host32.
39256 (load_modules): Likewise.
39257 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39258 Replace grub_be_to_cpu32 with grub_target_to_host32.
39259 Replace grub_cpu_to_be16 with grub_host_to_target16.
39260 Replace grub_cpu_to_be32 grub_host_to_target32.
39261
39262 2007-10-12 Robert Millan <rmh@aybabtu.com>
39263
39264 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39265 * util/elf/grub-mkimage.c: ... here.
39266
39267 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39268 `util/powerpc/ieee1275/grub-mkimage.c'.
39269
39270 2007-10-07 Robert Millan <rmh@aybabtu.com>
39271
39272 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39273 and make it easier to figure out.
39274 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39275 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39276 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39277 leave us with less than HEAP_MIN_SIZE total heap.
39278 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39279
39280 2007-10-03 Robert Millan <rmh@aybabtu.com>
39281
39282 * include/grub/i386/io.h: New file.
39283 * commands/i386/pc/play.c (inb): Removed.
39284 (outb): Removed.
39285 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39286 with grub_outb().
39287 * term/i386/pc/serial.c (inb): Removed.
39288 (outb): Removed.
39289 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39290 with grub_outb().
39291 * term/i386/pc/vga.c (inb): Removed.
39292 (outb): Removed.
39293 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39294 with grub_outb().
39295
39296 2007-10-02 Robert Millan <rmh@aybabtu.com>
39297
39298 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39300 Reported by Marcin Kurek.
39301
39302 2007-09-07 Robert Millan <rmh@aybabtu.com>
39303
39304 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39305 SmartFirmware version updates (as released by Sven Luther), and avoid
39306 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39307 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39308 known broken.
39309
39310 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39311
39312 From Hitoshi Ozeki:
39313 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39314 when merging two regions.
39315
39316 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39317
39318 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39319 * normal/completion.c (grub_normal_do_completion): Likewise.
39320 Reported by Hitoshi Ozeki.
39321
39322 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39323
39324 Do not use devices at boot in chainloading.
39325
39326 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39327 (boot_part_addr): Likewise.
39328 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39329 with BOOT_DRIVE and BOOT_PART_ADDR.
39330 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39331 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39332
39333 2007-08-29 Robert Millan <rmh@aybabtu.com>
39334
39335 Patch from Simon Peter <dn.tlp@gmx.net>:
39336 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39337 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39338 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39339 util/i386/pc/grub-setup.c_DEPENDENCIES.
39340 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39341 util/grub-probe.c_DEPENDENCIES.
39342 * conf/powerpc-ieee1275.rmk: Likewise.
39343
39344 2007-08-28 Robert Millan <rmh@aybabtu.com>
39345
39346 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39347 to tell grub-mkdevicemap how to name devices.
39348 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39349 feature).
39350
39351 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39352 util/i386/get_disk_name.c.
39353 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39354 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39355 util/ieee1275/get_disk_name.c.
39356
39357 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39358
39359 * DISTLIST: Add util/i386/get_disk_name.c and
39360 util/ieee1275/get_disk_name.c.
39361
39362 * util/grub-mkdevicemap.c: Replace device naming logic with
39363 grub_util_get_disk_name() calls.
39364
39365 2007-08-20 Robert Millan <rmh@aybabtu.com>
39366
39367 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39368 (so that it works for both plural and singular quantities).
39369
39370 2007-08-05 Robert Millan <rmh@aybabtu.com>
39371
39372 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39373 so that [xz] isn't taken into account when determining order.
39374
39375 2007-08-02 Marco Gerards <marco@gnu.org>
39376
39377 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39378 `include/multiboot2.h', `include/grub/elfload.h',
39379 `include/multiboot.h', `include/grub/multiboot.h',
39380 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39381 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39382 `kern/elf.c', `loader/multiboot_loader.c',
39383 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39384 `loader/i386/pc/multiboot2.c',
39385 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39386 `util/i386/pc/grub-mkrescue.in'. Remove
39387 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39388 `include/grub/i386/pc/util/biosdisk.h' and
39389 `include/grub/powerpc/ieee1275/multiboot.h'.
39390
39391 2007-08-02 Bean <bean123ch@gmail.com>
39392
39393 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39394 (ntfs_mod_SOURCES): New variable.
39395 (ntfs_mod_CFLAGS): Likewise.
39396 (ntfs_mod_LDFLAGS): Likewise.
39397
39398 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39399 (grub_probe_SOURCES): Likewise.
39400 (grub_emu_SOURCES): Likewise.
39401
39402 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39403 (grub_emu_SOURCES): Likewise.
39404
39405 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39406 (grub_emu_SOURCES): Likewise.
39407
39408 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39409
39410 * fs/ntfs.c: New file.
39411
39412 2007-08-02 Bean <bean123ch@gmail.com>
39413
39414 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39415
39416 * file.h (grub_file): Likewise.
39417
39418 * fshelp.h (grub_fshelp_read_file): Likewise.
39419
39420 * util/i386/pc/grub-setup.c (setup): Likewise.
39421 (save_first_sector): Likewise.
39422 (save_blocklists): Likewise.
39423
39424 * fs/affs.c (grub_affs_read_file): Likewise.
39425
39426 * fs/ext2.c (grub_ext2_read_file): Likewise.
39427
39428 * fs/fat.c (grub_fat_read_data): Likewise.
39429
39430 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39431
39432 * fs/hfs.c (grub_hfs_read_file): Likewise.
39433
39434 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39435
39436 * fs/jfs.c (grub_jfs_read_file): Likewise.
39437
39438 * fs/minix.c (grub_minix_read_file): Likewise.
39439
39440 * fs/sfs.c (grub_sfs_read_file): Likewise.
39441
39442 * fs/ufs.c (grub_ufs_read_file): Likewise.
39443
39444 * fs/xfs.c (grub_xfs_read_file): Likewise.
39445
39446 * command/blocklist.c (read_blocklist): Likewise.
39447 (print_blocklist): Likewise.
39448
39449 2007-08-02 Marco Gerards <marco@gnu.org>
39450
39451 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39452 `util/hostfs.c'.
39453
39454 * disk/host.c: New file.
39455
39456 * util/hostfs.c: Likewise.
39457
39458 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39459 return `GRUB_ERR_BAD_FS'.
39460 * fs/sfs.c (grub_sfs_mount): Likewise.
39461 * fs/xfs.c (grub_xfs_mount): Likewise.
39462
39463 * include/grub/disk.h (enum grub_disk_dev_id): Add
39464 `GRUB_DISK_DEVICE_HOST_ID'.
39465
39466 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39467
39468 2007-07-24 Jerone Young <jerone@gmail.com>
39469
39470 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39471 modules for compilation.
39472 * conf/powerpc-ieee1275.rmk: Likewise.
39473
39474 * include/multiboot.h: Move multiboot definitions to one file. Rename
39475 many definitions to not get grub specific.
39476 * include/multiboot2.h: Create header with multiboot 2 definitions.
39477 * include/grub/multiboot.h: Header for grub specific function
39478 prototypes and definitions.
39479 * include/grub/multiboot2.h: Likewise.
39480 * include/grub/multiboot_loader.h: Likewise.
39481 * include/grub/i386/pc/multiboot.h: Removed.
39482 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39483
39484 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39485 and 2 to allow for one multiboot and module commands.
39486 * loader/multiboot2.c: Add multiboot2 functionality.
39487 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39488 and definition names.
39489 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39490 2 functions.
39491 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39492 ieee1275 specific multiboot2 code.
39493
39494 * kern/i386/pc/startup.S: Change headers and definition names for
39495 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39496
39497 2007-07-22 Robert Millan <rmh@aybabtu.com>
39498
39499 * geninitheader.sh: Process file specified in first parameter rather
39500 than hardcoding grub_modules_init.lst.
39501 * geninit.sh: Likewise. Also, construct header name dynamically rather
39502 than hardcoding grub_modules_init.h.
39503
39504 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39505 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39506 grub_probe_init.[ch] and grub_setup_init.[ch].
39507
39508 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39509 grub_modules_init.h with grub_emu_init.h.
39510 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39511 grub_probe_init.[ch] files.
39512 * conf/i386-efi.rmk: Likewise.
39513 * conf/i386-pc.rmk: Likewise.
39514 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39515 grub_setup_init.[ch] files.
39516
39517 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39518 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39519 to initialize modules rather than a list of hardcoded functions.
39520 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39521 grub_init_all() to initialize modules rather than a list of hardcoded
39522 functions.
39523
39524 2007-07-22 Robert Millan <rmh@aybabtu.com>
39525
39526 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39527 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39528
39529 2007-07-22 Robert Millan <rmh@aybabtu.com>
39530
39531 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39532 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39533 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39534 flag when running on SmartFirmware.
39535 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39536 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39537 was set.
39538
39539 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39540 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39541 rather than decreasing it.
39542
39543 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39544 there's not enough space to do it, fail in the same way as when it
39545 can't be done because there are no partitions.
39546
39547 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39548 when nvsetenv failed.
39549
39550 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39551
39552 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
39553 because this rule is automatically generated.
39554 (grub-mkrescue): Removed for the same reason as above.
39555
39556 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39557
39558 Migrate to GNU General Public License Version 3.
39559
39560 * COPYING: Replaced with the plain text version of GPLv3.
39561
39562 * config.guess: Updated from gnulib.
39563 * config.sub: Likewise.
39564
39565 * geninit.sh: Output a GPLv3 copyright notice.
39566 * geninitheader.sh: Likewise.
39567 * genmodsrc.sh: Likewise.
39568 * gensymlist.sh.in: Likewise.
39569
39570 * boot/i386/pc/boot.S: Upgraded to GPLv3.
39571 * boot/i386/pc/diskboot.S: Likewise.
39572 * boot/i386/pc/pxeboot.S: Likewise.
39573 * commands/blocklist.c: Likewise.
39574 * commands/boot.c: Likewise.
39575 * commands/cat.c: Likewise.
39576 * commands/cmp.c: Likewise.
39577 * commands/configfile.c: Likewise.
39578 * commands/echo.c: Likewise.
39579 * commands/help.c: Likewise.
39580 * commands/ls.c: Likewise.
39581 * commands/search.c: Likewise.
39582 * commands/terminal.c: Likewise.
39583 * commands/test.c: Likewise.
39584 * commands/videotest.c: Likewise.
39585 * commands/i386/cpuid.c: Likewise.
39586 * commands/i386/pc/halt.c: Likewise.
39587 * commands/i386/pc/play.c: Likewise.
39588 * commands/i386/pc/reboot.c: Likewise.
39589 * commands/i386/pc/vbeinfo.c: Likewise.
39590 * commands/i386/pc/vbetest.c: Likewise.
39591 * commands/ieee1275/halt.c: Likewise.
39592 * commands/ieee1275/reboot.c: Likewise.
39593 * commands/ieee1275/suspend.c: Likewise.
39594 * disk/loopback.c: Likewise.
39595 * disk/lvm.c: Likewise.
39596 * disk/raid.c: Likewise.
39597 * disk/efi/efidisk.c: Likewise.
39598 * disk/i386/pc/biosdisk.c: Likewise.
39599 * disk/ieee1275/ofdisk.c: Likewise.
39600 * font/manager.c: Likewise.
39601 * fs/affs.c: Likewise.
39602 * fs/ext2.c: Likewise.
39603 * fs/fat.c: Likewise.
39604 * fs/fshelp.c: Likewise.
39605 * fs/hfs.c: Likewise.
39606 * fs/hfsplus.c: Likewise.
39607 * fs/iso9660.c: Likewise.
39608 * fs/jfs.c: Likewise.
39609 * fs/minix.c: Likewise.
39610 * fs/sfs.c: Likewise.
39611 * fs/ufs.c: Likewise.
39612 * fs/xfs.c: Likewise.
39613 * hello/hello.c: Likewise.
39614 * include/grub/acorn_filecore.h: Likewise.
39615 * include/grub/arg.h: Likewise.
39616 * include/grub/bitmap.h: Likewise.
39617 * include/grub/boot.h: Likewise.
39618 * include/grub/cache.h: Likewise.
39619 * include/grub/device.h: Likewise.
39620 * include/grub/disk.h: Likewise.
39621 * include/grub/dl.h: Likewise.
39622 * include/grub/elfload.h: Likewise.
39623 * include/grub/env.h: Likewise.
39624 * include/grub/err.h: Likewise.
39625 * include/grub/file.h: Likewise.
39626 * include/grub/font.h: Likewise.
39627 * include/grub/fs.h: Likewise.
39628 * include/grub/fshelp.h: Likewise.
39629 * include/grub/gzio.h: Likewise.
39630 * include/grub/hfs.h: Likewise.
39631 * include/grub/kernel.h: Likewise.
39632 * include/grub/loader.h: Likewise.
39633 * include/grub/lvm.h: Likewise.
39634 * include/grub/misc.h: Likewise.
39635 * include/grub/mm.h: Likewise.
39636 * include/grub/net.h: Likewise.
39637 * include/grub/normal.h: Likewise.
39638 * include/grub/parser.h: Likewise.
39639 * include/grub/partition.h: Likewise.
39640 * include/grub/pc_partition.h: Likewise.
39641 * include/grub/raid.h: Likewise.
39642 * include/grub/rescue.h: Likewise.
39643 * include/grub/script.h: Likewise.
39644 * include/grub/setjmp.h: Likewise.
39645 * include/grub/symbol.h: Likewise.
39646 * include/grub/term.h: Likewise.
39647 * include/grub/terminfo.h: Likewise.
39648 * include/grub/tparm.h: Likewise.
39649 * include/grub/types.h: Likewise.
39650 * include/grub/video.h: Likewise.
39651 * include/grub/efi/api.h: Likewise.
39652 * include/grub/efi/chainloader.h: Likewise.
39653 * include/grub/efi/console.h: Likewise.
39654 * include/grub/efi/console_control.h: Likewise.
39655 * include/grub/efi/disk.h: Likewise.
39656 * include/grub/efi/efi.h: Likewise.
39657 * include/grub/efi/pe32.h: Likewise.
39658 * include/grub/efi/time.h: Likewise.
39659 * include/grub/i386/linux.h: Likewise.
39660 * include/grub/i386/setjmp.h: Likewise.
39661 * include/grub/i386/types.h: Likewise.
39662 * include/grub/i386/efi/kernel.h: Likewise.
39663 * include/grub/i386/efi/loader.h: Likewise.
39664 * include/grub/i386/efi/time.h: Likewise.
39665 * include/grub/i386/pc/biosdisk.h: Likewise.
39666 * include/grub/i386/pc/boot.h: Likewise.
39667 * include/grub/i386/pc/chainloader.h: Likewise.
39668 * include/grub/i386/pc/console.h: Likewise.
39669 * include/grub/i386/pc/init.h: Likewise.
39670 * include/grub/i386/pc/kernel.h: Likewise.
39671 * include/grub/i386/pc/loader.h: Likewise.
39672 * include/grub/i386/pc/memory.h: Likewise.
39673 * include/grub/i386/pc/multiboot.h: Likewise.
39674 * include/grub/i386/pc/serial.h: Likewise.
39675 * include/grub/i386/pc/time.h: Likewise.
39676 * include/grub/i386/pc/vbe.h: Likewise.
39677 * include/grub/i386/pc/vbeblit.h: Likewise.
39678 * include/grub/i386/pc/vbefill.h: Likewise.
39679 * include/grub/i386/pc/vbeutil.h: Likewise.
39680 * include/grub/i386/pc/vga.h: Likewise.
39681 * include/grub/ieee1275/ieee1275.h: Likewise.
39682 * include/grub/ieee1275/ofdisk.h: Likewise.
39683 * include/grub/powerpc/libgcc.h: Likewise.
39684 * include/grub/powerpc/setjmp.h: Likewise.
39685 * include/grub/powerpc/types.h: Likewise.
39686 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
39687 * include/grub/powerpc/ieee1275/console.h: Likewise.
39688 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
39689 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
39690 * include/grub/powerpc/ieee1275/loader.h: Likewise.
39691 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
39692 * include/grub/powerpc/ieee1275/time.h: Likewise.
39693 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
39694 * include/grub/sparc64/libgcc.h: Likewise.
39695 * include/grub/sparc64/setjmp.h: Likewise.
39696 * include/grub/sparc64/types.h: Likewise.
39697 * include/grub/sparc64/ieee1275/console.h: Likewise.
39698 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39699 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39700 * include/grub/sparc64/ieee1275/time.h: Likewise.
39701 * include/grub/util/biosdisk.h: Likewise.
39702 * include/grub/util/getroot.h: Likewise.
39703 * include/grub/util/lvm.h: Likewise.
39704 * include/grub/util/misc.h: Likewise.
39705 * include/grub/util/raid.h: Likewise.
39706 * include/grub/util/resolve.h: Likewise.
39707 * io/gzio.c: Likewise.
39708 * kern/device.c: Likewise.
39709 * kern/disk.c: Likewise.
39710 * kern/dl.c: Likewise.
39711 * kern/elf.c: Likewise.
39712 * kern/env.c: Likewise.
39713 * kern/err.c: Likewise.
39714 * kern/file.c: Likewise.
39715 * kern/fs.c: Likewise.
39716 * kern/loader.c: Likewise.
39717 * kern/main.c: Likewise.
39718 * kern/misc.c: Likewise.
39719 * kern/mm.c: Likewise.
39720 * kern/parser.c: Likewise.
39721 * kern/partition.c: Likewise.
39722 * kern/rescue.c: Likewise.
39723 * kern/term.c: Likewise.
39724 * kern/efi/efi.c: Likewise.
39725 * kern/efi/init.c: Likewise.
39726 * kern/efi/mm.c: Likewise.
39727 * kern/i386/dl.c: Likewise.
39728 * kern/i386/efi/init.c: Likewise.
39729 * kern/i386/efi/startup.S: Likewise.
39730 * kern/i386/pc/init.c: Likewise.
39731 * kern/i386/pc/lzo1x.S: Likewise.
39732 * kern/i386/pc/startup.S: Likewise.
39733 * kern/ieee1275/ieee1275.c: Likewise.
39734 * kern/powerpc/cache.S: Likewise.
39735 * kern/powerpc/dl.c: Likewise.
39736 * kern/powerpc/ieee1275/cmain.c: Likewise.
39737 * kern/powerpc/ieee1275/crt0.S: Likewise.
39738 * kern/powerpc/ieee1275/init.c: Likewise.
39739 * kern/powerpc/ieee1275/openfw.c: Likewise.
39740 * kern/sparc64/cache.S: Likewise.
39741 * kern/sparc64/dl.c: Likewise.
39742 * kern/sparc64/ieee1275/init.c: Likewise.
39743 * kern/sparc64/ieee1275/openfw.c: Likewise.
39744 * loader/efi/chainloader.c: Likewise.
39745 * loader/efi/chainloader_normal.c: Likewise.
39746 * loader/i386/efi/linux.c: Likewise.
39747 * loader/i386/efi/linux_normal.c: Likewise.
39748 * loader/i386/pc/chainloader.c: Likewise.
39749 * loader/i386/pc/chainloader_normal.c: Likewise.
39750 * loader/i386/pc/linux.c: Likewise.
39751 * loader/i386/pc/linux_normal.c: Likewise.
39752 * loader/i386/pc/multiboot.c: Likewise.
39753 * loader/i386/pc/multiboot_normal.c: Likewise.
39754 * loader/powerpc/ieee1275/linux.c: Likewise.
39755 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39756 * normal/arg.c: Likewise.
39757 * normal/cmdline.c: Likewise.
39758 * normal/command.c: Likewise.
39759 * normal/completion.c: Likewise.
39760 * normal/execute.c: Likewise.
39761 * normal/function.c: Likewise.
39762 * normal/lexer.c: Likewise.
39763 * normal/main.c: Likewise.
39764 * normal/menu.c: Likewise.
39765 * normal/menu_entry.c: Likewise.
39766 * normal/misc.c: Likewise.
39767 * normal/parser.y: Likewise.
39768 * normal/script.c: Likewise.
39769 * normal/i386/setjmp.S: Likewise.
39770 * normal/powerpc/setjmp.S: Likewise.
39771 * normal/sparc64/setjmp.S: Likewise.
39772 * partmap/acorn.c: Likewise.
39773 * partmap/amiga.c: Likewise.
39774 * partmap/apple.c: Likewise.
39775 * partmap/gpt.c: Likewise.
39776 * partmap/pc.c: Likewise.
39777 * partmap/sun.c: Likewise.
39778 * term/gfxterm.c: Likewise.
39779 * term/terminfo.c: Likewise.
39780 * term/efi/console.c: Likewise.
39781 * term/i386/pc/console.c: Likewise.
39782 * term/i386/pc/serial.c: Likewise.
39783 * term/i386/pc/vesafb.c: Likewise.
39784 * term/i386/pc/vga.c: Likewise.
39785 * term/ieee1275/ofconsole.c: Likewise.
39786 * util/biosdisk.c: Likewise.
39787 * util/console.c: Likewise.
39788 * util/genmoddep.c: Likewise.
39789 * util/getroot.c: Likewise.
39790 * util/grub-emu.c: Likewise.
39791 * util/grub-mkdevicemap.c: Likewise.
39792 * util/grub-probe.c: Likewise.
39793 * util/lvm.c: Likewise.
39794 * util/misc.c: Likewise.
39795 * util/raid.c: Likewise.
39796 * util/resolve.c: Likewise.
39797 * util/update-grub.in: Likewise.
39798 * util/update-grub_lib.in: Likewise.
39799 * util/grub.d/00_header.in: Likewise.
39800 * util/grub.d/10_hurd.in: Likewise.
39801 * util/grub.d/10_linux.in: Likewise.
39802 * util/i386/efi/grub-install.in: Likewise.
39803 * util/i386/efi/grub-mkimage.c: Likewise.
39804 * util/i386/pc/grub-install.in: Likewise.
39805 * util/i386/pc/grub-mkimage.c: Likewise.
39806 * util/i386/pc/grub-mkrescue.in: Likewise.
39807 * util/i386/pc/grub-setup.c: Likewise.
39808 * util/i386/pc/misc.c: Likewise.
39809 * util/powerpc/ieee1275/grub-install.in: Likewise.
39810 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
39811 * util/powerpc/ieee1275/misc.c: Likewise.
39812 * video/bitmap.c: Likewise.
39813 * video/video.c: Likewise.
39814 * video/i386/pc/vbe.c: Likewise.
39815 * video/i386/pc/vbeblit.c: Likewise.
39816 * video/i386/pc/vbefill.c: Likewise.
39817 * video/i386/pc/vbeutil.c: Likewise.
39818 * video/readers/tga.c: Likewise.
39819
39820 2007-07-02 Robert Millan <rmh@aybabtu.com>
39821
39822 * conf/i386-efi.rmk: Replace obsolete reference to
39823 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
39824 with util/getroot.c.
39825 * conf/powerpc-ieee1275.rmk: Likewise.
39826 * conf/sparc64-ieee1275.rmk: Likewise.
39827
39828 * util/grub-emu.c (main): Fix unchecked pointer handling.
39829
39830 2007-07-02 Robert Millan <rmh@aybabtu.com>
39831
39832 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
39833 invocation to fail, in order to support partition-less media.
39834
39835 * util/i386/pc/grub-install.in: Likewise.
39836
39837 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
39838 which fs or partmap modules are needed (akin to its sister scripts).
39839
39840 Also use grub-probe to get rid of unportable /proc/mounts check.
39841
39842 Print the same informational message that the other scripts do, before
39843 exiting.
39844
39845 2007-06-23 Robert Millan <rmh@aybabtu.com>
39846
39847 * util/update-grub_lib.in (font_path): New function. Determine whether
39848 a font file can be found and, if so, echo the GRUB path to it.
39849
39850 * util/update-grub.in: Handle multiple terminals depending on user
39851 input, platform availability and font file presence. Propagate
39852 variables of our findings to /etc/grub.d/ children.
39853
39854 * util/grub.d/00_header.in: Handle multiple terminals, based on
39855 environment setup by update-grub.
39856
39857 2007-06-23 Robert Millan <rmh@aybabtu.com>
39858
39859 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
39860
39861 2007-06-21 Robert Millan <rmh@aybabtu.com>
39862
39863 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
39864 indicate end of data section in kernel image.
39865 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
39866 GRUB_KERNEL_MACHINE_DATA_END.
39867
39868 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
39869 space for it.
39870 * kern/i386/efi/startup.S: Likewise.
39871
39872 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
39873 during image generation. Implement --prefix option to override this
39874 patch.
39875 * util/i386/efi/grub-mkimage.c: Likewise.
39876
39877 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
39878 code to make path relative to its root into a separate function.
39879
39880 * util/i386/pc/grub-install.in: Use newly provided
39881 make_system_path_relative_to_its_root() to convert ${grubdir}, then
39882 pass the result to grub-install --prefix.
39883
39884 2007-06-13 Robert Millan <rmh@aybabtu.com>
39885
39886 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
39887 DEFAULT_DEVICE_MAP.
39888 * util/grub-emu.c: Use above definitions from misc.h instead of
39889 defining them.
39890 * util/grub-mkdevicemap.c: Likewise.
39891 * util/i386/pc/grub-setup.c: Likewise.
39892 * util/grub-probe.c: Likewise.
39893 (probe): Abort with grub_util_error() when either
39894 grub_guess_root_device or grub_util_get_grub_dev fails.
39895
39896 2007-06-12 Robert Millan <rmh@aybabtu.com>
39897
39898 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
39899 "pager" assignment.
39900 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
39901 "pcdata".
39902 * util/grub-probe.c (probe): Likewise for "drive_name".
39903
39904 2007-06-11 Robert Millan <rmh@aybabtu.com>
39905
39906 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
39907 not just the cdrom one.
39908
39909 2007-06-11 Robert Millan <rmh@aybabtu.com>
39910
39911 * util/i386/pc/grub-mkrescue.in: Add "set -e".
39912 Add --pkglibdir=DIR option to override pkglibdir.
39913 Mention --image-type=TYPE in help output.
39914 Fix --grub-mkimage (it was a no-op).
39915 Abort gracefully when no parameter is given.
39916
39917 2007-06-11 Robert Millan <rmh@aybabtu.com>
39918
39919 * util/i386/pc/grub-mkrescue.in: New file.
39920 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
39921 * Makefile.in: Handle bin_SCRIPTS.
39922
39923 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
39924
39925 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
39926 list of video modes.
39927
39928 2007-06-06 Robert Millan <rmh@aybabtu.com>
39929
39930 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
39931 file doesn't exist, or if it is in a filesystem grub can't read.
39932
39933 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
39934 not abort if GRUB_DRIVE could not be defined. Rearrange generated
39935 header comment to fit in 80 columns when the variables are resolved.
39936
39937 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
39938 could be identified by update-grub. Remove redundant check for
39939 unifont.pff existence (since convert_system_path_to_grub_path now
39940 handles that).
39941
39942 2007-06-04 Robert Millan <rmh@aybabtu.com>
39943
39944 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
39945
39946 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
39947
39948 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
39949
39950 2007-06-04 Robert Millan <rmh@aybabtu.com>
39951
39952 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
39953
39954 * include/grub/partition.h: Declare grub_apple_partition_map_init and
39955 grub_apple_partition_map_fini.
39956
39957 * util/biosdisk.c
39958 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
39959 to access >2 TiB disks).
39960
39961 Print disk->total_sectors with %llu instead of %lu, since this
39962 variable is always 64-bit (prevents wrong disk size from being displayed
39963 on either >2 TiB disk or big-endian CPU).
39964
39965 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
39966 into a generic case that supports all (sane) partition maps.
39967
39968 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
39969 breaks big-endian.
39970
39971 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
39972 and grub_apple_partition_map_fini() after that.
39973
39974 2007-06-01 Robert Millan <rmh@aybabtu.com>
39975
39976 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
39977
39978 * util/grub.d/00_header.in: Only enable gfxterm when
39979 convert_system_path_to_grub_path() succeeds.
39980
39981 2007-05-20 Robert Millan <rmh@aybabtu.com>
39982
39983 * util/update-grub_lib.in: New file.
39984 * DISTLIST: Add update-grub_lib.in.
39985 * conf/common.rmk: Generate update-grub_lib and install it in
39986 $(lib_DATA).
39987 * Makefile.in: Add install routine for $(lib_DATA).
39988
39989 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
39990 function provided by update-grub_lib to support arbitrary paths of
39991 unifont.pff.
39992 * util/update-grub.in: Use convert_system_path_to_grub_path() to
39993 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
39994
39995 2007-05-19 Robert Millan <rmh@aybabtu.com>
39996
39997 * commands/i386/cpuid.c: New module.
39998 * DISTLIST: Add it.
39999 * conf/i386-efi.rmk: Enable cpuid.mod.
40000 * conf/i386-pc.rmk: Likewise.
40001
40002 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40003
40004 * kern/disk.c (grub_disk_read): Check return value of
40005 grub_realloc().
40006
40007 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40008
40009 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40010 arrays.
40011 * disk/raid.c (grub_raid_open): Likewise.
40012
40013 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40014
40015 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40016 stack instead of on the heap.
40017
40018 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40019 before doing a read on it.
40020
40021 * configure.ac: Only use -fno-stack-protector for the target
40022 environment.
40023
40024 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40025
40026 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40027 __attribute_ ((unused)) to mode_type argument.
40028
40029 * util/getroot.c (grub_guess_root_device): Fix #endif.
40030
40031 * kern/misc.c (memcmp): Fix prototype.
40032
40033 * include/grub/partition.h [GRUB_UTIL]
40034 (grub_gpt_partition_map_init): Add prototype.
40035 (grub_gpt_partition_map_fini): Likewise.
40036
40037 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40038 at the right place.
40039
40040 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40041 (grub_fat_read_data): Likewise.
40042 (grub_fat_find_dir): Likewise.
40043
40044 * font/manager.c (find_glyph): Make table a const.
40045 (grub_font_get_glyph): Remove bitmap from if statement.
40046
40047 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40048
40049 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40050 code, first search for device in /dev/mapper, then in /dev.
40051 (grub_util_get_grub_dev): New function.
40052 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40053 prototype.
40054 * util/grub-probe.c (probe): Remove check for RAID, call
40055 grub_util_get_grub_dev() instead of
40056 grub_util_biosdisk_get_grub_dev().
40057 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40058 grub_util_biosdisk_get_grub_dev().
40059 * util/i386/pc/grub-setup.c (main): Likewise.
40060
40061 2007-05-16 Robert Millan <rmh@aybabtu.com>
40062
40063 * DISTLIST: Update for the latest changes.
40064 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40065 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40066 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40067 grub/util/biosdisk.h.
40068 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40069 grub/util/biosdisk.h.
40070
40071 2007-05-16 Robert Millan <rmh@aybabtu.com>
40072
40073 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40074
40075 2007-05-16 Robert Millan <rmh@aybabtu.com>
40076
40077 * util/i386/efi/grub-install.in: New.
40078 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40079 newly added grub-install.
40080 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40081 include.
40082 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40083 grub/util/biosdisk.h.
40084 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40085 grub/util/biosdisk.h.
40086
40087 2007-05-16 Robert Millan <rmh@aybabtu.com>
40088
40089 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40090 * include/grub/util/biosdisk.h: ... here.
40091 * util/i386/pc/biosdisk.c: Moved to ...
40092 * util/biosdisk.c: ... here.
40093 * util/i386/pc/getroot.c: Moved to ...
40094 * util/getroot.c: ... here.
40095 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40096 * util/grub-mkdevicemap.c: ... here.
40097 * util/i386/pc/grub-probe.c: Moved to ...
40098 * util/grub-probe.c: ... here.
40099
40100 2007-05-15 Robert Millan <rmh@aybabtu.com>
40101
40102 * util/update-grub.in: Remove duplicated line in grub.cfg header
40103 message.
40104
40105 2007-05-13 Robert Millan <rmh@aybabtu.com>
40106
40107 * util/update-grub.in: Fix a few assumptions about the devices holding
40108 /, /boot and /boot/grub being the same.
40109 * util/grub.d/00_header.in: Likewise.
40110 * util/grub.d/10_hurd.in: Likewise.
40111 * util/grub.d/10_linux.in: Likewise.
40112
40113 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40114 patterns. Use that to define the `.old' suffix as older than `'.
40115
40116 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40117
40118 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40119 the grub.cfg header message.
40120
40121 2007-05-11 Robert Millan <rmh@aybabtu.com>
40122
40123 * util/update-grub.in: Create device.map if it doesn't already exist,
40124 before attempting to run grub-probe.
40125 Check for grub-probe and grub-mkdevicemap with the same code
40126 grub-install is using.
40127 Remove test mode.
40128
40129 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40130
40131 * Makefile.in: Add the datarootdir autoconf variable.
40132
40133 2007-05-09 Robert Millan <rmh@aybabtu.com>
40134
40135 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40136 fail gracefully if dev->disk->partition == NULL.
40137
40138 2007-05-07 Robert Millan <rmh@aybabtu.com>
40139
40140 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40141 determine partition map module.
40142 * util/i386/pc/grub-install.in: Use this feature to decide which
40143 partition module to load, instead of hardcoding pc and gpt.
40144
40145 2007-05-07 Robert Millan <rmh@aybabtu.com>
40146
40147 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40148 source directory differs from build directory.
40149
40150 2007-05-05 Robert Millan <rmh@aybabtu.com>
40151
40152 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40153 initialisation.
40154
40155 2007-05-05 Robert Millan <rmh@aybabtu.com>
40156
40157 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40158
40159 2007-05-05 Robert Millan <rmh@aybabtu.com>
40160
40161 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40162 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40163
40164 2007-05-05 Robert Millan <rmh@aybabtu.com>
40165
40166 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40167 (grub_probe_SOURCES): Likewise.
40168 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40169 GPT and initialize dos_part and bsd_part accordingly.
40170 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40171 install_bsd_part.
40172 (main): Activate gpt module for use during partition identification,
40173 and deactivate it afterwards.
40174 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40175 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40176 partition identification, and deactivate it afterwards.
40177
40178 2007-05-05 Robert Millan <rmh@aybabtu.com>
40179
40180 * term/i386/pc/console.c (grub_console_fini): Call
40181 grub_term_set_current() before grub_term_unregister().
40182
40183 2007-05-04 Robert Millan <rmh@aybabtu.com>
40184
40185 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40186 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40187 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40188 and update-grub_DATA.
40189 * conf/common.rmk: Build and install update-grub components.
40190 * conf/common.mk: Regenerate.
40191 * util/update-grub.in: New. Core of update-grub.
40192 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40193 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40194 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40195 * util/grub.d/README: New. Document grub.d directory layout.
40196
40197 2007-05-01 Robert Millan <rmh@aybabtu.com>
40198
40199 * util/grub-emu.c: Move initialization functions
40200 grub_util_biosdisk_init() and grub_init_all() before
40201 grub_util_biosdisk_get_grub_dev(), which relies on them.
40202
40203 2007-04-19 Robert Millan <rmh@aybabtu.com>
40204
40205 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40206 it is used later.
40207
40208 2007-04-18 Jerone Young <jerone@gmail.com>
40209
40210 * kernel/elf.c: Add missing parenthesis for conditional statement
40211 stanza.
40212
40213 2007-04-10 Jerone Young <jerone@gmail.com>
40214
40215 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40216 continue on and look for device node with real device name.
40217
40218 2007-04-10 Jerone Young <jerone@gmail.com>
40219
40220 * configure.ac: Add argument for autoconf to use transformation
40221 ability.
40222 * Makefile.in: Add autoconf package transformation code.
40223 * util/i386/pc/grub-install.in: Likewise.
40224 * util/powerpc/ieee1275/grub-install.in: Likewise.
40225
40226 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40227
40228 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40229 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40230 (EXT2_REVISION): Likewise.
40231 (EXT2_INODE_SIZE): Likewise.
40232 (struct grub_ext2_block_group): Added a missing member
40233 "used_dirs".
40234 (grub_ext2_read_inode): Divide by the inode size in a superblock
40235 instead of 128 to obtain INODES_PER_BLOCK.
40236 Use the macro EXT2_INODE_SIZE instead of directly using
40237 SBLOCK->INODE_SIZE.
40238
40239 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40240
40241 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40242 superblock instead of the structure size to compute an
40243 offset. This fixes the problem that GRUB could not read a
40244 filesystem when inode size is different from 128-byte.
40245
40246 2007-03-05 Marco Gerards <marco@gnu.org>
40247
40248 * normal/main.c (read_config_file): When "menu" is not set, create
40249 an initial context.
40250
40251 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40252
40253 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40254 (HEAP_LIMIT): New macro.
40255 (grub_claim_heap): Claim memory up to `heaplimit'.
40256
40257 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40258
40259 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40260 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40261 (_start): Likewise.
40262 (grub_arch_modules_addr): Return address after `_end'.
40263 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40264 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40265 (add_segments): Calculate `_end' from phdr size and location.
40266 (ALIGN_UP): Moved to ...
40267 * include/grub/misc.h: here.
40268 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40269 New macro.
40270 (GRUB_IEEE1275_MODULE_BASE): Removed.
40271
40272 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40273
40274 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40275 loop boundary.
40276
40277 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40278
40279 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40280 All users updated.
40281 (grub_elf64_load_hook_t): Likewise.
40282 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40283 debug output.
40284
40285 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40286
40287 * kern/mm.c: Update copyright.
40288 (grub_mm_debug): Correct syntax error.
40289 (grub_mm_dump_free): New function.
40290 (grub_debug_free): Call `grub_free'.
40291 * include/grub/mm.h: Update copyright.
40292 (grub_mm_dump_free): Add declaration.
40293
40294 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40295
40296 * include/grub/ieee1275/ieee1275.h: Update copyright.
40297 * kern/powerpc/ieee1275/init.c: Likewise.
40298 * kern/powerpc/ieee1275/openfw.c: Likewise.
40299
40300 * loader/powerpc/ieee1275/linux.c: Likewise.
40301 * include/grub/elfload.h: Likewise.
40302 * kern/elf.c: Likewise.
40303 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40304 callers.
40305 (grub_elf64_load): Likewise.
40306 (grub_elf32_load_segment): Move to a nested function.
40307 (grub_elf64_load_segment): Likewise.
40308
40309 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40310
40311 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40312 prototype.
40313 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40314 (grub_heap_len): Likewise.
40315 (HEAP_SIZE): New macro.
40316 (grub_claim_heap): New function.
40317 (grub_machine_init): Don't claim heap directly. Call
40318 `grub_claim_heap'.
40319 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40320 (grub_available_iterate): New function.
40321
40322 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40323
40324 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40325 * configure.ac: Use it for testing the HOST and TARGET compilers.
40326
40327 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40328
40329 * Makefile.in (enable_grub_emu): New variable.
40330 * configure.ac (--enable-grub-emu): New option.
40331 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40332 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40333 * conf/i386-pc.rmk: Likewise.
40334 * conf/powerpc-ieee1275.rmk: Likewise.
40335 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40336
40337 2006-12-12 Marco Gerards <marco@gnu.org>
40338
40339 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40340
40341 * kern/env.c (grub_env_unset): Don't free the member `value' when
40342 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40343 pointer.
40344
40345 * normal/main.c (current_menu): Removed.
40346 (free_menu): Unset the `menu' environment variable.
40347 (grub_normal_menu_addentry): Make use of the environment variable
40348 `menu', instead of using the global `current_menu'. Allocate
40349 memory for the sourcecode of this entry.
40350 (read_config_file): New argument `nested', changed all callers.
40351 Only in the case of a new context, initialize a new menu. Set the
40352 `menu' environment variable.
40353 (grub_normal_execute): Don't set and unset the environment
40354 variable `menu' here anymore. Only free the menu when leaving the
40355 context.
40356
40357 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40358 leak.
40359
40360 2006-12-11 Marco Gerards <marco@gnu.org>
40361
40362 * normal/menu_entry.c (run): Fix off by one bug so the last line
40363 is executed. Move the loader check to outside the loop.
40364
40365 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40366
40367 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40368
40369 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40370
40371 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40372 the number of sectors. Reported by Andrey Shuvikov
40373 <mr_hyro@yahoo.com>.
40374
40375 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40376
40377 * kern/disk.c (grub_disk_read): When there is a read error, always
40378 try to read only the necessary data.
40379
40380 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40381 disk/raid.c.
40382 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40383 prototype.
40384 [GRUB_UTIL] (grub_raid_fini): Likewise.
40385 [GRUB_UTIL] (grub_lvm_init): Likewise.
40386 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40387 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40388 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40389 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40390 and grub_raid_fini().
40391
40392 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40393
40394 * include/grub/types.h (__unused): Rename to UNUSED.
40395 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40396 (grub_elf64_size): Likewise.
40397
40398 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40399
40400 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40401 grub_error_push and grub_error_pop in the error-handling path.
40402 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40403 length.
40404
40405 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40406
40407 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40408 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40410 (kernel_elf_SOURCES): Likewise.
40411 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40412 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40413 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40414 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40415 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40416 (elf_mod_SOURCES): New variable.
40417 (elf_mod_CFLAGS): Likewise.
40418 (elf_mod_LDFLAGS): Likewise.
40419 * include/grub/types.h (__unused): New macro.
40420 * include/grub/elfload.h: New file.
40421 * kern/elf.c: Likewise.
40422 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40423 (ELF32_LOADMASK): New macro.
40424 (ELF64_LOADMASK): Likewise.
40425 (vmlinux): Removed.
40426 (grub_linux_load32): New function.
40427 (grub_linux_load64): Likewise.
40428 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40429 Use grub_elf_t instead of grub_file_t.
40430
40431 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40432
40433 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40434 `catch_result' to struct set_color_args.
40435
40436 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40437
40438 * normal/menu.c: Include grub/script.h.
40439 * normal/menu_entry.c: Likewise.
40440 * include/grub/normal.h: Do not include grub/script.h.
40441
40442 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40443
40444 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40445
40446 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40447
40448 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40449 disk.
40450 (grub_disk_close): Print debug messages when closing a disk.
40451 (grub_disk_read): Print debug messages when disk read fails.
40452 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40453 filesystem type.
40454 * kern/partition.c: Include misc.h.
40455 (grub_partition_iterate): Print debug messages when detecting
40456 partition type.
40457
40458 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40459
40460 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40461 is negative.
40462 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40463
40464 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40465
40466 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40467 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40468
40469 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40470
40471 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40472 instead of sizeof(lv). Patch by Michael Guntsche.
40473
40474 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40475
40476 * disk/lvm.c: Rename VGS to VG_LIST.
40477 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40478 (grub_lvm_open): Likewise.
40479 Thanks to Michael Guntsche for finding this bug.
40480
40481 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40482
40483 * configure.ac (AC_INIT): Bumped to 1.95.
40484
40485 2006-10-14 Robert Millan <rmh@aybabtu.com>
40486
40487 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40488 with "/dev/.static/dev/md".
40489
40490 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40491
40492 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40493 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40494 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40495 DRIVE_NAME are always freed.
40496
40497 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40498 DOS_PART, as a DOS partition is counted from one instead of zero
40499 now. Reported by Robert Millan.
40500
40501 2006-10-14 Robert Millan <rmh@aybabtu.com>
40502
40503 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40504 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40505 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40506 string returned by grub_guess_root_device.
40507 * util/i386/pc/grub-setup.c: Likewise.
40508 * util/i386/pc/grub-probefs.c: Likewise.
40509
40510 * util/i386/pc/grub-probefs.c: Rename to ...
40511 * util/i386/pc/grub-probe.c: ... this.
40512 * DISTLIST: Remove grub-probefs, add grub-probe.
40513 * conf/i386-efi.rmk: Likewise.
40514 * conf/i386-pc.rmk: Likewise.
40515 * util/i386/pc/grub-install.in: Likewise.
40516
40517 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40518 choose which information we want to print.
40519
40520 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40521
40522 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40523 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40524 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40525 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40526 video/readers/tga.c and video/i386/pc/vbeutil.c.
40527
40528 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40529
40530 Added support for RAID and LVM.
40531
40532 * disk/lvm.c: New file.
40533 * disk/raid.c: Likewise.
40534 * include/grub/lvm.h: Likewise.
40535 * include/grub/raid.h: Likewise.
40536 * include/grub/util/lvm.h: Likewise.
40537 * include/grub/util/raid.h: Likewise.
40538 * util/lvm.c: Likewise.
40539 * util/raid.c: Likewise.
40540
40541 * include/grub/disk.h (grub_disk_dev_id): Add
40542 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40543 (grub_disk_get_size): New prototype.
40544 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40545 returns a partition.
40546 (grub_disk_get_size): New function.
40547
40548 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40549 verbatim if grub_install_dos_part is -2.
40550
40551 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
40552 and LVM devices.
40553
40554 * util/i386/pc/grub-setup.c (setup): New argument
40555 MUST_EMBED. Force embedding of GRUB when the argument is
40556 true. Close FILE before returning.
40557 (main): Add support for RAID and LVM.
40558
40559 * conf/common.rmk: Add RAID and LVM modules.
40560 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
40561 util/lvm.c.
40562 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
40563
40564 * kern/misc.c (grub_strstr): New function.
40565 * include/grub/misc.h (grub_strstr): New prototype.
40566
40567 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
40568
40569 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
40570
40571 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
40572
40573 * kern/misc.c (grub_strtoull): Guess the base only if not
40574 specified.
40575
40576 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40577
40578 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
40579 PowerMac support.
40580
40581 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40582
40583 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
40584
40585 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
40586 Remove `flags' argument. All callers changed.
40587 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
40588 (IEEE1275_IHANDLE_INVALID): New variable.
40589 (IEEE1275_CELL_INVALID): New variable.
40590 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40591 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
40592 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
40593 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
40594 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
40595 codes from Open Firmware. All callers updated.
40596 (grub_ieee1275_next_property): Directly return Open Firmware return
40597 code.
40598 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40599 Standardize error checking from `grub_ieee1275_get_property'.
40600 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
40601 `devalias' to `aliases'. Correct comments. Consolidate error paths.
40602
40603 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40604
40605 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
40606 `instance_to_package_args' to `instance_to_path_args'.
40607
40608 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
40609 `grub_ieee1275_chosen'.
40610
40611 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
40612 `grub_ieee1275_interpret'.
40613
40614 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40615
40616 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
40617
40618 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40619
40620 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
40621 (__cmpdi): Likewise.
40622
40623 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
40624 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
40625 `grub_ssize_t'.
40626
40627 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
40628
40629 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
40630 to type `grub_ssize_t'.
40631 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
40632
40633 2006-09-22 Marco Gerards <marco@gnu.org>
40634
40635 * normal/script.c (grub_script_create_cmdmenu): Skip leading
40636 newlines.
40637
40638 2006-09-22 Marco Gerards <marco@gnu.org>
40639
40640 * commands/echo.c: New file.
40641
40642 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
40643
40644 * conf/common.rmk (echo_mod_SOURCES): New variable.
40645 (echo_mod_CFLAGS): Likewise.
40646 (echo_mod_LDFLAGS): Likewise.
40647
40648 2006-09-22 Marco Gerards <marco@gnu.org>
40649
40650 * normal/main.c (get_line): Malloc memory instead of using
40651 preallocated memory. Removed the arguments `cmdline' and
40652 `max_len'. Updated all callers.
40653
40654 2006-09-22 Marco Gerards <marco@gnu.org>
40655
40656 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
40657 (normal_mod_DEPENDENCIES): Likewise.
40658
40659 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
40660 (normal_mod_DEPENDENCIES): Likewise.
40661
40662 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
40663
40664 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
40665
40666 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
40667 programs.
40668 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
40669 (normal_mod_DEPENDENCIES): Likewise.
40670 * conf/i386-pc.mk: Regenerate.
40671 * conf/i386-efi.mk: Likewise
40672 * conf/common.mk: Likewise.
40673 * conf/powerpc-ieee1275.mk: Likewise.
40674 * conf/sparc64-ieee1275.mk: Likewise.
40675
40676 2006-09-22 Robert Millan <rmh@aybabtu.com>
40677
40678 Sync with i386 version.
40679 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
40680 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
40681
40682 2006-09-21 Robert Millan <rmh@aybabtu.com>
40683
40684 Import from GRUB Legacy (lib/device.c):
40685 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
40686 (init_device_map) [__linux__]: Add support for I2O devices.
40687
40688 2006-09-14 Marco Gerards <marco@gnu.org>
40689
40690 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
40691 `-melf_i386'.
40692
40693 2006-09-14 Robert Millan <rmh@aybabtu.com>
40694
40695 * util/i386/pc/grub-install.in: Skip menu.lst when removing
40696 /boot/grub/*.lst.
40697
40698 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
40699
40700 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
40701 before adding it to device.map.
40702
40703 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
40704
40705 * genmk.rb: Let GCC generate dependencies the first time it
40706 compiles a file; using the -MD option.
40707 * conf/common.mk: Regenerate.
40708 * conf/i386-pc.mk: Likewise.
40709 * conf/i386-efi.mk: Likewise.
40710 * conf/powerpc-ieee1275.mk: Likewise.
40711 * conf/sparc64-ieee1275.mk: Likewise.
40712
40713 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
40714
40715 Move the prototypes of grub_setjmp and grub_longjmp to
40716 cpu/setjmp.h, so that each architecture may specify different
40717 attributes.
40718
40719 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
40720 (grub_longjmp): Likewise.
40721 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
40722 (grub_longjmp): Likewise.
40723 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
40724 (grub_longjmp): Likewise.
40725
40726 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
40727 [!GRUB_UTIL] (grub_longjmp): Removed.
40728
40729 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
40730
40731 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
40732 "color!" method does not return any value.
40733
40734 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40735
40736 * include/grub/bitmap.h: New file.
40737
40738 * include/grub/i386/pc/vbeutil.h: Likewise.
40739
40740 * video/bitmap.c: Likewise.
40741
40742 * video/readers/tga.c: Likewise.
40743
40744 * video/i386/pc/vbeutil.c: Likewise.
40745
40746 * commands/videotest.c: Code cleanup and updated to reflect to new
40747 video API.
40748
40749 * term/gfxterm.c: Likewise.
40750
40751 * video/video.c: Likewise.
40752
40753 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
40754 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
40755 (bitmap_mod_SOURCES): New entry.
40756 (bitmap_mod_CFLAGS): Likewise.
40757 (bitmap_mod_LDFLAGS): Likewise.
40758 (tga_mod_SOURCES): Likewise.
40759 (tga_mod_CFLAGS): Likewise.
40760 (tga_mod_LDFLAGS): Likewise.
40761
40762 * include/grub/video.h (grub_video_blit_operators): New enum type.
40763 (grub_video_render_target): Changed as forward declaration and moved
40764 actual definition to be video driver specific.
40765 (grub_video_adapter.blit_bitmap): Added blitting operator.
40766 (grub_video_adapter.blit_render_target): Likewise.
40767 (grub_video_blit_bitmap): Likewise.
40768 (grub_video_blit_render_target): Likewise.
40769
40770 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
40771 driver specific render target definition.
40772 (grub_video_vbe_map_rgba): Added driver internal helper.
40773 (grub_video_vbe_unmap_color): Updated to use
40774 grub_video_i386_vbeblit_info.
40775 (grub_video_vbe_get_video_ptr): Likewise.
40776
40777 * include/grub/i386/pc/vbeblit.h
40778 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
40779 grub_video_i386_vbeblit_info.
40780 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40781 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40782 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40783 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40784 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40785 (grub_video_i386_vbeblit_index_index): Likewise.
40786 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
40787 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40788 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40789 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
40790 operator.
40791 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
40792 operator.
40793
40794 * video/i386/pc/vbeblit.c: Updated to reflect changes on
40795 include/grub/i386/pc/vbeblit.h.
40796
40797 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
40798 Updated to use grub_video_i386_vbeblit_info.
40799 (grub_video_i386_vbefill_R8G8B8): Likewise.
40800 (grub_video_i386_vbefill_index): Likewise.
40801 (grub_video_i386_vbefill): Added generic filler.
40802
40803 * video/i386/pc/vbefill.c: Updated to reflect changes on
40804 include/grub/i386/pc/vbefill.h.
40805
40806 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
40807 grub_video_i386_vbeblit_info.
40808 (grub_video_vbe_unmap_color): Likewise.
40809 (grub_video_vbe_blit_glyph): Likewise.
40810 (grub_video_vbe_scroll): Likewise.
40811 (grub_video_vbe_draw_pixel): Removed function.
40812 (grub_video_vbe_get_pixel): Likewise.
40813 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
40814 updated code to use it.
40815 (common_blitter): Added common blitter for render target and bitmap.
40816 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
40817 (grub_video_vbe_blit_render_target): Likewise.
40818
40819 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
40820
40821 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
40822 is in text mode if there is no console control protocol instance
40823 available.
40824
40825 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40826
40827 * include/grub/video.h: Code cleanup.
40828
40829 * include/grub/i386/pc/vbe.h: Likewise.
40830
40831 * video/i386/pc/vbe.c: Likewise.
40832
40833 * video/i386/pc/vbeblit.c: Likewise.
40834
40835 * video/i386/pc/vbefill.c: Likewise.
40836
40837 * video/video.c: Likewise. Also added more comments.
40838
40839 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40840
40841 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
40842 (struct grub_biosdisk_dap): Likewise.
40843
40844 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
40845 linkage settings for all functions.
40846
40847 2006-07-12 Marco Gerards <marco@gnu.org>
40848
40849 * configure.ac (--enable-mm-debug): Fix typo.
40850
40851 * genkernsyms.sh.in: Use proper quoting for `CC'.
40852
40853 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
40854
40855 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
40856 (normal_mod_ASFLAGS): Remove "-m32".
40857
40858 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
40859
40860 * util/misc.c: Include config.h.
40861 [!HAVE_MEMALIGN]: Do not include malloc.h.
40862 (grub_memalign): Use posix_memalign, if present. Then, use
40863 memalign, if present. Otherwise, emit an error.
40864
40865 * util/grub-emu.c: Do not include malloc.h.
40866
40867 * include/grub/util/misc.h: Include unistd.h. This is required for
40868 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
40869 D. Eades III <hde@foobar-qux.org>.
40870
40871 * configure.ac (AC_GNU_SOURCE): Added.
40872 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
40873 type.
40874
40875 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
40876
40877 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
40878 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
40879
40880 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
40881
40882 * include/grub/types.h (grub_host_addr_t): Rename to
40883 grub_target_addr_t.
40884 (grub_host_off_t): Rename to grub_target_off_t.
40885 (grub_host_size_t): Rename to grub_target_size_t.
40886 (grub_host_ssize_t): Rename to grub_target_ssize_t.
40887 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
40888
40889 * include/grub/kernel.h (struct grub_module_header): Change type
40890 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
40891 (grub_module_info): Likewise.
40892
40893 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40894
40895 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
40896 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
40897 Velazquez <jesus.velazquez@gmail.com>.
40898
40899 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40900
40901 Count partitions from 1 instead of 0 in the string representation
40902 of partitions. Still use 0-based internally.
40903
40904 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
40905 (sun_partition_map_iterate): Use grub_partition_t instead of
40906 struct grub_partition *. Cast DESC->START_CYLINDER to
40907 grub_uint64_t after converting the endian.
40908 (sun_partition_map_probe): Subtract 1 for PARTNUM.
40909 (sun_partition_map_get_name): Add 1 to P->INDEX.
40910
40911 * partmap/pc.c (grub_partition_parse): Subtract 1 for
40912 PCDATA->DOS_PART.
40913 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
40914
40915 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
40916 zero instead of one.
40917 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
40918 (gpt_partition_map_get_name): Add 1 into P->INDEX.
40919
40920 * partmap/apple.c (apple_partition_map_iterate): Change the type
40921 of POS to unsigned.
40922 (apple_partition_map_probe): Subtract 1 for PARTNUM.
40923 (apple_partition_map_get_name): Add 1 into P->INDEX.
40924
40925 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
40926 of POS to unsigned.
40927 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
40928 calculate the offset of a partition.
40929 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
40930 (amiga_partition_map_get_name): Add 1 into P->INDEX.
40931
40932 * partmap/acorn.c (acorn_partition_map_find): Change the type of
40933 SECTOR to grub_disk_addr_t.
40934 (acorn_partition_map_iterate): Likewise.
40935 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
40936 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
40937 top.
40938 (acorn_partition_map_get_name): Add 1 into P->INDEX.
40939
40940 * kern/i386/pc/init.c (make_install_device): Add 1 into
40941 GRUB_INSTALL_DOS_PART.
40942
40943 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
40944 conditional.
40945
40946 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40947
40948 Clean up the code to support 64-bit addressing in disks and
40949 files. This change is not enough for filesystems yet.
40950
40951 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
40952 type of "start" to grub_uint64_t.
40953 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
40954 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
40955 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
40956 convert addresses.
40957
40958 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
40959 to grub_disk_addr_t.
40960
40961 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
40962 string.
40963
40964 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40965
40966 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
40967 to char *.
40968
40969 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
40970
40971 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
40972
40973 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
40974
40975 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
40976 to grub_off_t, to detect an error from grub_file_seek.
40977 (grub_multiboot_load_elf32): Likewise.
40978
40979 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
40980 maximum unsigned long value when an overflow is detected.
40981 (grub_strtoull): New function.
40982 (grub_divmod64): Likewise.
40983 (grub_lltoa): use grub_divmod64.
40984
40985 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
40986 grub_disk_addr_t.
40987 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
40988 the pointer to next character. Use grub_strtoull instead of
40989 grub_strtoul.
40990 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
40991 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
40992 respectively.
40993
40994 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
40995 return value is signed.
40996 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
40997 test if OFFSET is less than zero, as OFFSET is unsigned now.
40998
40999 * kern/disk.c (struct grub_disk_cache): Change the type of
41000 "sector" to grub_disk_addr_t.
41001 (grub_disk_cache_get_index): Change the type of SECTOR to
41002 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41003 unsigned after shifting.
41004 (grub_disk_cache_invalidate): Change the type of SECTOR to
41005 grub_disk_addr_t.
41006 (grub_disk_cache_unlock): Likewise.
41007 (grub_disk_cache_store): Likewise.
41008 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41009 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41010 grub_disk_addr_t and grub_uint64_t, respectively.
41011 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41012 body, as the value of OFFSET is tweaked by
41013 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41014 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41015 respectively.
41016 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41017 body, as the value of OFFSET is tweaked by
41018 grub_disk_check_range. Change the types of LEN and N to
41019 grub_size_t.
41020
41021 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41022 and "saved_offset" to grub_off_t.
41023 (test_header): Cast BUF to char *.
41024 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41025 to char *.
41026 (grub_gzio_read): Change the types of OFFSET and SIZE to
41027 grub_off_t and grub_size_t, respectively.
41028
41029 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41030 Removed.
41031 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41032 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41033 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41034 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41035 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41036
41037 * include/grub/types.h (grub_off_t): Unconditionally set to
41038 grub_uint64_t.
41039 (grub_disk_addr_t): Changed to grub_uint64_t.
41040
41041 * include/grub/partition.h (struct grub_partition): Change the
41042 types of "start", "len" and "offset" to grub_disk_addr_t,
41043 grub_uint64_t and grub_disk_addr_t, respectively.
41044 (grub_partition_get_start): Return grub_disk_addr_t.
41045 (grub_partition_get_len): Return grub_uint64_t.
41046
41047 * include/grub/misc.h (grub_strtoull): New prototype.
41048 (grub_divmod64): Likewise.
41049
41050 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41051 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41052 grub_off_t, respectively.
41053 All callers and references changed.
41054
41055 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41056 grub_size_t in "read".
41057 All callers and references changed.
41058
41059 * include/grub/file.h (struct grub_file): Change the types of
41060 "offset" and "size" to grub_off_t and grub_off_t,
41061 respectively. Change the type of SECTOR to grub_disk_addr_t in
41062 "read_hook".
41063 (grub_file_read): Change the type of LEN to grub_size_t.
41064 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41065 grub_off_t.
41066 (grub_file_size): Return grub_off_t.
41067 (grub_file_tell): Likewise.
41068 All callers and references changed.
41069
41070 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41071 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41072 "write".
41073 (struct grub_disk): Change the type of "total_sectors" to
41074 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41075 "read_hook".
41076 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41077 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41078 (grub_disk_write): Likewise.
41079 All callers and references changed.
41080
41081 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41082 char * for grub_strncmp to silence gcc.
41083 (grub_iso9660_mount): Likewise.
41084 (grub_iso9660_mount): Likewise.
41085 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41086 return statement.
41087 (grub_iso9660_iterate_dir): Likewise.
41088 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41089
41090 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41091 LEN to grub_disk_addr_t and grub_size_t, respectively.
41092
41093 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41094
41095 * fs/jfs.c (grub_jfs_read_file): Likewise.
41096
41097 * fs/minix.c (grub_jfs_read_file): Likewise.
41098
41099 * fs/sfs.c (grub_jfs_read_file): Likewise.
41100
41101 * fs/ufs.c (grub_jfs_read_file): Likewise.
41102
41103 * fs/xfs.c (grub_jfs_read_file): Likewise.
41104
41105 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41106 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41107 respectively.
41108
41109 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41110 BLKNR to -1 instead of returning GRUB_ERRNO.
41111 (grub_ext2_read_file): Change the types of SECTOR and
41112 LEN to grub_disk_addr_t and grub_size_t, respectively.
41113
41114 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41115 LEN to grub_disk_addr_t and grub_size_t, respectively.
41116
41117 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41118 grub_file_read.
41119
41120 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41121 string. Do not cast SECTOR explicitly.
41122
41123 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41124 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41125 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41126 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41127 over 2TB and LBA mode is not supported, raise an error.
41128 (get_safe_sectors): New function.
41129 (grub_biosdisk_read): Use get_safe_sectors.
41130 (grub_biosdisk_write): Likewise.
41131
41132 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41133 (grub_efidisk_write): Likewise.
41134
41135 * disk/loopback.c (delete_loopback): Cosmetic changes.
41136 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41137 correctly.
41138 (grub_loopback_open): Likewise.
41139 (grub_loopback_read): Likewise. Also, change the type of POS to
41140 grub_off_t, and fix the usage of grub_memset.
41141
41142 * commands/i386/pc/play.c: Include grub/machine/time.h.
41143
41144 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41145 print FILE->SIZE.
41146
41147 * commands/configfile.c: Include grub/env.h.
41148
41149 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41150 GRUB_ERRNO directly instead. Change the type of POS to
41151 grub_off_t. Follow the coding standard.
41152
41153 * commands/blocklist.c: Include grub/partition.h.
41154 (grub_cmd_blocklist): Return an error if the underlying device is
41155 not a disk. Take the starting sector of a partition into account,
41156 if a partition is used.
41157
41158 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41159 a length field.
41160 (lba_mode): Support 64-bit addresses.
41161 (chs_mode): Likewise.
41162 (copy_buffer): Adapted to the new offsets of a length field and a
41163 segment field.
41164 (blocklist_default_start): Allocate 64-bit space.
41165
41166 * boot/i386/pc/boot.S (force_lba): Removed.
41167 (boot_drive): Moved to under KERNEL_SECTOR.
41168 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41169 space.
41170 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41171 is useless.
41172 (lba_mode): Refactored to support a 64-bit address. More size
41173 optimization.
41174 (setup_sectors): Likewise.
41175
41176 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41177
41178 * DISTLIST: Added include/grub/i386/linux.h. Removed
41179 include/grub/i386/pc/linux.h
41180
41181 * configure.ac (AC_INIT): Bumped to 1.94.
41182
41183 * config.guess: Updated from gnulib.
41184 * config.sub: Likewise.
41185 * install-sh: Likewise.
41186 * mkinstalldirs: Likewise.
41187
41188 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41189
41190 * conf/common.rmk (grub_modules_init.lst): Depended on
41191 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41192 MODSRCFILES.
41193
41194 * genmk.rb (PModule::rule): Reverted the previous change.
41195
41196 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41197
41198 * conf/common.rmk (grub_modules_init.lst): Depends on
41199 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41200 that the target does not exist before producing.
41201 (grub_modules_init.h): Remove the target before generating.
41202 (grub_emu_init.c): Likewise.
41203
41204 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41205
41206 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41207
41208 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41209 for the target-specific tests. Make sure that we also have the
41210 up-to-date target variables for those tests.
41211
41212 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41213
41214 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41215 (PModule::rule): Likewise.
41216
41217 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41218
41219 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41220 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41221 target-specific flags should be prefixed.
41222 (PModule::rule): Likewise.
41223
41224 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41225
41226 * configure.ac (CMP): Check if cmp is available explicitly.
41227
41228 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41229
41230 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41231 (target_cpu): New variable.
41232 (pkglibdir): Use target_cpu instead of host_cpu.
41233
41234 * util/i386/pc/grub-install.in (host_cpu): Removed.
41235 (target_cpu): New variable.
41236 (pkglibdir): Use target_cpu instead of host_cpu.
41237
41238 * util/genmoddep.c: Removed.
41239
41240 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41241 instead of GRUB_HOST_SIZEOF_VOID_P.
41242 * kern/dl.c: Likewise.
41243
41244 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41245 ...
41246 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41247 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41248 (GRUB_TARGET_SIZEOF_LONG): ... this.
41249 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41250 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41251 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41252 to ...
41253 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41254 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41255 (GRUB_TARGET_SIZEOF_LONG): ... this.
41256 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41257 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41258 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41259 to ...
41260 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41261 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41262 (GRUB_TARGET_SIZEOF_LONG): ... this.
41263 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41264 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41265
41266 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41267 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41268 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41269 instead of GRUB_HOST_SIZEOF_LONG.
41270 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41271 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41272 GRUB_CPU_WORDS_BIGENDIAN.
41273 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41274 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41275 grub_host_ssize_t.
41276
41277 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41278 (genmoddep_SOURCES): Likewise.
41279 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41280 (genmoddep_SOURCES): Likewise.
41281 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41282 (genmoddep_SOURCES): Likewise.
41283 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41284 Likewise.
41285 (genmoddep_SOURCES): Likewise.
41286
41287 * genmoddep.awk: New file.
41288
41289 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41290 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41291 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41292 (PModule::rule): Likewise.
41293 (Program::rule): Likewise.
41294 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41295 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41296 respectively.
41297
41298 * configure.ac: Rewritten intensively to use host and target
41299 instead of build and host, respectively.
41300
41301 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41302 (host_cpu): Removed.
41303 (target_cpu): New variable.
41304 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41305 (BUILD_CC): Removed.
41306 (BUILD_CFLAGS): Likewise.
41307 (BUILD_CPPFLAGS): Likewise.
41308 (TARGET_CC): New variable.
41309 (TARGET_CFLAGS): Likewise.
41310 (TARGET_CPPFLAGS): Likewise.
41311 (TARGET_LDFLAGS): Likewise.
41312 (AWK): Likewise.
41313 (include): Use target_cpu instead of host_cpu.
41314 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41315
41316 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41317
41318 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41319
41320 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41321 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41322 field 'false' to 'exec_on_false'.
41323 (grub_script_create_cmdif): Renamed argument names to reflect above
41324 changes.
41325
41326 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41327
41328 * normal/script.c (grub_script_create_cmdif): Likewise.
41329
41330 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41331
41332 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41333 top.
41334 (grub_hfsplus_btree_recptr): Likewise.
41335 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41336 FILEBLOCK both to pass a block number and store next block
41337 number.
41338 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41339 overflow file correctly. Specify errors appropriately, because
41340 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41341 grub_hfsplus_btree_recptr to get the pointer to a found key.
41342 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41343 is found.
41344
41345 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41346 linux.mod.
41347 (_linux_mod_SOURCES): New variable.
41348 (_linux_mod_CFLAGS): Likewise.
41349 (_linux_mod_LDFLAGS): Likewise.
41350 (linux_mod_SOURCES): Likewise.
41351 (linux_mod_CFLAGS): Likewise.
41352 (linux_mod_LDFLAGS): Likewise.
41353
41354 * DISTLIST: Added loader/i386/efi/linux.c,
41355 loader/i386/efi/linux_normal.c and
41356 include/grub/i386/efi/loader.h.
41357
41358 * loader/i386/efi/linux.c: New file.
41359 * loader/i386/efi/linux_normal.c: Likewise.
41360 * include/grub/i386/efi/loader.h: Likewise.
41361
41362 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41363
41364 * commands/blocklist.c: New file.
41365
41366 * DISTLIST: Added commands/blocklist.c.
41367
41368 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41369 color for the background, and a darker color for the foreground.
41370 (grub_console_checkkey): Return READ_KEY.
41371 (grub_console_cls): Set the background to
41372 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41373
41374 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41375
41376 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41377 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41378
41379 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41380 prototype.
41381
41382 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41383 BG. The spec is wrong again.
41384
41385 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41386 prototype.
41387 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41388
41389 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41390 commands/blocklist.c.
41391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41392
41393 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41394 (blocklist_mod_SOURCES): New variable.
41395 (blocklist_mod_CFLAGS): Likewise.
41396 (blocklist_mod_LDFLAGS): Likewise.
41397
41398 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41399
41400 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41401 duplication.
41402 (lba_mode): Use %eax more intensively to reduce the code size.
41403
41404 2006-05-20 Marco Gerards <marco@gnu.org>
41405
41406 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41407
41408 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41409 for `menuentry'.
41410 (script): Accept leading newlines.
41411 (newlines): New rule to describe 0 or more newlines.
41412 (commands): Accept `command' with trailing newline. Fixed the
41413 order in which arguments were passed to `grub_script_add_cmd'.
41414 Accept commands separated by newlines.
41415 (function): Changed to accept newlines.
41416 (menuentry) Rewritten.
41417
41418 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41419 front of the list, instead of to the end.
41420
41421 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41422
41423 * util/i386/pc/grub-install.in (bindir): New variable.
41424 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41425 Shaver <lbgwjl@gmail.com>.
41426
41427 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41428
41429 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41430 grub/machine/linux.h
41431 * loader/i386/pc/linux.c: Likewise.
41432
41433 * include/grub/i386/pc/linux.h: Moved to ...
41434 * include/grub/i386/linux.h: ... here.
41435
41436 * include/grub/i386/linux.h (struct linux_kernel_params): New
41437 struct.
41438
41439 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41440
41441 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41442 checking.
41443 (grub_video_vbe_blit_glyph): Likewise.
41444 (grub_video_vbe_blit_bitmap): Likewise.
41445 (grub_video_vbe_blit_render_target): Likewise.
41446
41447 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41448
41449 * configure.ac (--with-platform): Properly quote the square
41450 brackets.
41451
41452 2006-05-08 Marco Gerards <marco@gnu.org>
41453
41454 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41455 this...
41456 (kernel_elf_HEADERS): ...to this. Updated all users.
41457 (grubof_symlist.c): Renamed from this...
41458 (kernel_elf_symlist.c): ...to this. Updated all users.
41459 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41460 (grubof_SOURCES): Renamed from this...
41461 (kernel_elf_SOURCES): ...to this.
41462 (grubof_HEADERS): Renamed from this...
41463 (kernel_elf_HEADERS): ...to this.
41464 (grubof_CFLAGS): Renamed from this...
41465 (kernel_elf_CFLAGS): ...to this.
41466 (grubof_ASFLAGS): Renamed from this...
41467 (kernel_elf_ASFLAGS): ...to this.
41468 (grubof_LDFLAGS): Renamed from this...
41469 (kernel_elf_LDFLAGS): ...to this.
41470
41471 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41472 this...
41473 (kernel_elf_HEADERS): ...to this. Updated all users.
41474 (grubof_symlist.c): Renamed from this...
41475 (kernel_elf_symlist.c): ...to this. Updated all users.
41476 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41477 (grubof_SOURCES): Renamed from this...
41478 (kernel_elf_SOURCES): ...to this.
41479 (grubof_HEADERS): Renamed from this...
41480 (kernel_elf_HEADERS): ...to this.
41481 (grubof_CFLAGS): Renamed from this...
41482 (kernel_elf_CFLAGS): ...to this.
41483 (grubof_ASFLAGS): Renamed from this...
41484 (kernel_elf_ASFLAGS): ...to this.
41485 (grubof_LDFLAGS): Renamed from this...
41486 (kernel_elf_LDFLAGS): ...to this.
41487
41488 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41489 `kernel.elf' instead of `grubof'.
41490
41491 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41492
41493 Add --with-platform to configure. Use pkglibdir instead of
41494 pkgdatadir. This is reported by Roger Leigh.
41495
41496 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41497 (host_vendor): Likewise.
41498 (host_os): Likewise.
41499 (pkgdatadir): Likewise.
41500 (platform): New variable.
41501 (pkglibdir): Likewise.
41502 Use PKGLIBDIR instead of PKGDATADIR.
41503
41504 * util/i386/pc/grub-install.in (datadir): Removed.
41505 (host_vendor): Likewise.
41506 (host_os): Likewise.
41507 (pkgdatadir): Likewise.
41508 (platform): New variable.
41509 (pkglibdir): Likewise.
41510 Use PKGLIBDIR instead of PKGDATADIR.
41511
41512 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41513 instead of GRUB_DATADIR.
41514 (main): Likewise.
41515 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41516 (main): Likewise.
41517 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41518 (main): Likewise.
41519
41520 * configure.ac (--with-platform): New option.
41521 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41522
41523 * Makefile.in: Include a makefile based on PLATFORM instead of
41524 HOST_VENDOR.
41525 (pkgdatadir): Not appended by the machine type.
41526 (pkglibdir): Appended by the machine type.
41527 (host_vendor): Removed.
41528 (platform): New variable.
41529 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41530 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41531 (uninstall): Likewise.
41532
41533 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41534
41535 Use the environment context in the menu. Remove the commands
41536 "default" and "timeout", and use variables instead.
41537
41538 * normal/menu.c: Include grub/env.h.
41539 (print_entry): Cast TITLE to silence gcc.
41540 (get_timeout): New function.
41541 (set_timeout): Likewise.
41542 (get_entry_number): Likewise.
41543 (run_menu): Use a default entry, a fallback entry and a timeout
41544 in the environment variables "default", "fallback" and
41545 "timeout". Also, tweak the default entry if it is not within the
41546 current menu entries.
41547 (grub_menu_run): Use a fallback entry in the environment variable
41548 "fallback".
41549
41550 * normal/main.c (read_config_file): Do not initialize
41551 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
41552 NEWMENU->TIMEOUT.
41553 (grub_normal_execute): Use a data slot to store the menu.
41554
41555 * include/grub/normal.h (struct grub_menu): Removed default_entry,
41556 fallback_entry and timeout.
41557 (struct grub_menu_list): Removed.
41558 (grub_menu_list_t): Likewise.
41559 (struct grub_context): Likewise.
41560 (grub_context_t): Likewise.
41561 (grub_context_get): Likewise.
41562 (grub_context_get_current_menu): Likewise.
41563 (grub_context_push_menu): Likewise.
41564 (grub_context_pop_menu): Likewise.
41565 (grub_default_init): Likewise.
41566 (grub_default_fini): Likewise.
41567 (grub_timeout_init): Likewise.
41568 (grub_timeout_fini): Likewise.
41569
41570 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
41571 and timeout.mod.
41572 (normal_mod_SOURCES): Removed normal/context.c.
41573
41574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
41575 commands/default.c, commands/timeout.c and normal/context.c.
41576 (normal_mod_SOURCES): Removed normal/context.c.
41577
41578 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
41579 commands/timeout.c and normal/context.c.
41580 (normal_mod_SOURCES): Removed normal/context.c.
41581
41582 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
41583 commands/default.c, commands/timeout.c and normal/context.c.
41584 (normal_mod_SOURCES): Removed normal/context.c.
41585
41586 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
41587 timeout.mod.
41588 (default_mod_SOURCES): Removed.
41589 (default_mod_CFLAGS): Likewise.
41590 (default_mod_LDFLAGS): Likewise.
41591 (timeout_mod_SOURCES): Removed.
41592 (timeout_mod_CFLAGS): Likewise.
41593 (timeout_mod_LDFLAGS): Likewise.
41594
41595 * DISTLIST: Removed commands/default.c, commands/timeout.c and
41596 normal/context.c.
41597
41598 * commands/default.c: Removed.
41599 * commands/timeout.c: Likewise.
41600 * normal/context.c: Likewise.
41601
41602 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
41603
41604 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
41605
41606 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
41607
41608 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
41609 "next" to "prev" for readability.
41610 (struct grub_env_sorted_var): New struct.
41611 (grub_env_context): Renamed to ...
41612 (initial_context): ... this.
41613 (grub_env_var_context): Renamed to ...
41614 (current_context): ... this.
41615 (grub_env_find): Look only at CURRENT_CONTEXT.
41616 (grub_env_context_open): Rewritten to copy exported variables from
41617 previous context.
41618 (grub_env_context_close): Rewritten according to the new
41619 scheme. Also, add an assertion to prevent the initial context from
41620 removed.
41621 (grub_env_insert): Removed the code for the sorted list.
41622 (grub_env_remove): Likewise.
41623 (grub_env_export): Simply mark the variable with
41624 GRUB_ENV_VAR_GLOBAL.
41625 (grub_env_set): A cosmetic change for naming consistency.
41626 (grub_env_get): Likewise.
41627 (grub_env_unset): Likewise.
41628 (grub_env_iterate): Rewritten to sort variables within this
41629 function.
41630 (grub_register_variable_hook): Fixed for naming consistency. Call
41631 grub_env_find again, only if NAME is not found at the first time.
41632 (mangle_data_slot_name): New function.
41633 (grub_env_set_data_slot): Likewise.
41634 (grub_env_get_data_slot): Likewise.
41635 (grub_env_unset_data_slot): Likewise.
41636
41637 * include/grub/env.h (grub_env_var_type): New enum.
41638 (GRUB_ENV_VAR_LOCAL): New constant.
41639 (GRUB_ENV_VAR_GLOBAL): Likewise.
41640 (GRUB_ENV_VAR_DATA): Likewise.
41641 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
41642 "type".
41643 (grub_env_set): Replace VAR with NAME for consistency.
41644 (grub_register_variable_hook): Likewise.
41645 (grub_env_export): Specify the name of the argument.
41646 (grub_env_set_data_slot): New prototype.
41647 (grub_env_get_data_slot): Likewise.
41648 (grub_env_unset_data_slot): Likewise.
41649
41650 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41651
41652 Extend the loader so that GRUB can accept a loader which comes
41653 back to GRUB when a loaded image exits. Also, this change adds
41654 support for a chainloader on EFI.
41655
41656 * term/efi/console.c: Include grub/misc.h.
41657 (grub_console_checkkey): Display a scan code on the top for
41658 debugging. This will be removed once the EFI port gets stable.
41659 Correct the scan code mapping.
41660
41661 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
41662 allocate memory from larger regions, in order to reduce the number
41663 of allocated regions. Otherwise, the MacOSX loader panics.
41664 (filter_memory_map): Avoid less than 1MB for compatibility with
41665 other loaders.
41666 (add_memory_regions): Allocate from the tail of a region, if
41667 possible, to avoid allocating a region near to 1MB, for the MacOSX
41668 loader.
41669
41670 * kern/efi/init.c (grub_efi_set_prefix): Specify
41671 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
41672
41673 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
41674 argument IMAGE_HANDLE and specify it to get a loaded image.
41675 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
41676 grub_efi_get_loaded_image.
41677 (grub_efi_get_filename): Divide the length by the size of
41678 grub_efi_char16_t.
41679 (grub_efi_get_device_path): New function.
41680 (grub_efi_print_device_path): Print End Device Path nodes. Divide
41681 the length by the size of grub_efi_char16_t for a file path device
41682 path node.
41683
41684 * kern/loader.c (grub_loader_noreturn): New variable.
41685 (grub_loader_set): Accept a new argument NORETURN. Set
41686 GRUB_LOADER_NORETURN to NORETURN.
41687 All callers changed.
41688 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
41689 grub_machine_fini.
41690
41691 * include/grub/efi/efi.h (grub_efi_get_device_path): New
41692 prototype.
41693 (grub_efi_get_loaded_image): Take an argument to specify an image
41694 handle.
41695
41696 * include/grub/loader.h (grub_loader_set): Added one more argument
41697 NORETURN.
41698
41699 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
41700 instead of grub_efi_open_protocol.
41701 (grub_efidisk_get_device_name): Likewise.
41702 (grub_efidisk_close): Print a newline.
41703 (grub_efidisk_get_device_handle): Fixed to use
41704 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
41705 GRUB_EFI_DEVICE_PATH_TYPE.
41706
41707 * disk/efi/efidisk.c (device_path_guid): Moved to ...
41708 * kern/efi/efi.c (device_path_guid): ... here.
41709
41710 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
41711 chain.mod.
41712 (kernel_mod_HEADERS): Added efi/disk.h.
41713 (_chain_mod_SOURCES): New variable.
41714 (_chain_mod_CFLAGS): Likewise.
41715 (_chain_mod_LDFLAGS): Likewise.
41716 (chain_mod_SOURCES): Likewise.
41717 (chain_mod_CFLAGS): Likewise.
41718 (chain_mod_LDFLAGS): Likewise.
41719
41720 * DISTLIST: Added include/grub/efi/chainloader.h,
41721 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
41722
41723 * include/grub/efi/chainloader.h: New file.
41724 * loader/efi/chainloader.c: Likewise.
41725 * loader/efi/chainloader_normal.c: Likewise.
41726
41727 2006-04-30 Marco Gerards <marco@gnu.org>
41728
41729 * commands/configfile.c (grub_cmd_source): New function.
41730 (GRUB_MOD_INIT): Register the commands `source' and `.'.
41731 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
41732
41733 2006-04-30 Marco Gerards <marco@gnu.org>
41734
41735 * normal/execute.c (grub_script_execute_cmd): Change the return
41736 type to `grub_err_t'. Correctly return the error.
41737 (grub_script_execute_cmdline): In case a command line is not a
41738 command or a function, try to interpret it as an assignment.
41739
41740 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41741
41742 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
41743 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
41744 skip a node whose name is obviously invalid as UTF-16,
41745 i.e. contains a NUL character. Stop the iteration when the last
41746 directory entry is found. Instead of using the return value of
41747 grub_hfsplus_btree_iterate_node, store the value in RET and use
41748 it, because the iterator can be stopped by the last directory
41749 entry.
41750
41751 2006-04-30 Marco Gerards <marco@gnu.org>
41752
41753 * include/grub/env.h (grub_env_export): New prototype. Reported
41754 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
41755
41756 2006-04-30 Marco Gerards <marco@gnu.org>
41757
41758 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
41759 size of the extents in a catalog file record.
41760
41761 2006-04-29 Marco Gerards <marco@gnu.org>
41762
41763 * commands/configfile.c (grub_cmd_configfile): Execute the
41764 configfile within its own context.
41765
41766 * include/grub/env.h (grub_env_context_open): New prototype.
41767 (grub_env_context_close): Likewise.
41768
41769 * kern/env.c (grub_env): Removed.
41770 (grub_env_sorted): Likewise.
41771 (grub_env_context): New variable.
41772 (grub_env_var_context): Likewise.
41773 (grub_env_find): Search both the active context and the global
41774 context.
41775 (grub_env_context_open): New function.
41776 (grub_env_context_close): Likewise.
41777 (grub_env_insert): Likewise.
41778 (grub_env_remove): Likewise.
41779 (grub_env_export): Likewise.
41780 (grub_env_set): Changed to use helper functions to avoid code
41781 duplication.
41782 (grub_env_iterate): Rewritten so both the current context and the
41783 global context are being used.
41784
41785 * normal/command.c (export_command): New function.
41786 (grub_command_init): Register the `export' function.
41787
41788 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
41789
41790 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
41791 explicitly to suppress gcc's warnings.
41792 * fs/fat.c (grub_fat_find_dir): Likewise.
41793 (grub_fat_label): Likewise.
41794 * fs/xfs.c (grub_xfs_read_inode): Likewise.
41795 (grub_xfs_mount): Likewise.
41796 (grub_xfs_label): Likewise.
41797 * fs/affs.c (grub_affs_mount): Likewise.
41798 (grub_affs_label): Likewise.
41799 (grub_affs_iterate_dir): Likewise.
41800 * fs/sfs.c (grub_sfs_mount): Likewise.
41801 (grub_sfs_iterate_dir): Likewise.
41802 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
41803 * fs/hfs.c (grub_hfs_mount): Likewise.
41804 (grub_hfs_cmp_catkeys): Likewise.
41805 (grub_hfs_find_dir): Likewise.
41806 (grub_hfs_dir): Likewise.
41807 (grub_hfs_label): Likewise.
41808 * fs/jfs.c (grub_jfs_mount): Likewise.
41809 (grub_jfs_opendir): Likewise.
41810 (grub_jfs_getent): Likewise.
41811 (grub_jfs_lookup_symlink): Likewise.
41812 (grub_jfs_label): Likewise.
41813 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
41814 (grub_hfsplus_iterate_dir): Likewise.
41815 (grub_hfsplus_btree_iterate_node): Made static.
41816
41817 * util/grub-emu.c (prefix): New variable.
41818 (grub_machine_set_prefix): New function.
41819 (main): Do not set the environment variable "prefix" here. Only
41820 set PREFIX, which is used later by grub_machine_set_prefix.
41821
41822 * include/grub/video.h: Do not include grub/symbol.h.
41823 (grub_video_register): Not exported. This symbol is not defined in
41824 the kernel.
41825 (grub_video_unregister): Likewise.
41826 (grub_video_iterate): Likewise.
41827 (grub_video_setup): Likewise.
41828 (grub_video_restore): Likewise.
41829 (grub_video_get_info): Likewise.
41830 (grub_video_get_blit_format): Likewise.
41831 (grub_video_set_palette): Likewise.
41832 (grub_video_get_palette): Likewise.
41833 (grub_video_set_viewport): Likewise.
41834 (grub_video_get_viewport): Likewise.
41835 (grub_video_map_color): Likewise.
41836 (grub_video_map_rgb): Likewise.
41837 (grub_video_map_rgba): Likewise.
41838 (grub_video_fill_rect): Likewise.
41839 (grub_video_blit_glyph): Likewise.
41840 (grub_video_blit_bitmap): Likewise.
41841 (grub_video_blit_render_target): Likewise.
41842 (grub_video_scroll): Likewise.
41843 (grub_video_swap_buffers): Likewise.
41844 (grub_video_create_render_target): Likewise.
41845 (grub_video_delete_render_target): Likewise.
41846 (grub_video_set_active_render_target): Likewise.
41847
41848 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
41849 Undefined.
41850 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
41851
41852 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
41853 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41854 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41855 instead of $(srcdir)/genkernsyms.sh.
41856
41857 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
41858 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41859 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41860 instead of $(srcdir)/genkernsyms.sh.
41861
41862 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
41863 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41864 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41865 instead of $(srcdir)/genkernsyms.sh.
41866
41867 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
41868 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41869 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41870 instead of $(srcdir)/genkernsyms.sh.
41871
41872 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
41873 genkernsyms.sh.
41874
41875 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
41876 genkernsyms.sh.
41877 (gensymlist.sh): New target.
41878 (genkernsyms.sh): Likewise.
41879
41880 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
41881 genkernsyms.sh.in and gensymlist.sh.in.
41882
41883 * genkernsyms.sh: Removed.
41884 * gensymlist.sh: Likewise.
41885
41886 * genkernsyms.sh.in: New file.
41887 * gensymlist.sh.in: Likewise.
41888
41889 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41890
41891 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
41892 clobber "prefix", since we may have already set it manually.
41893
41894 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41895
41896 * kern/misc.c (abort): New alias for grub_abort.
41897
41898 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
41899
41900 A new machine-specific function "grub_machine_set_prefix" is
41901 defined. This is called after loading modules, so that a prefix
41902 initialization can use modules. Also, this change adds an
41903 intensive debugging feature for the memory manager via the
41904 configure option "--enable-mm-debug".
41905
41906 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
41907 PART.LEN.
41908
41909 * kern/sparc64/ieee1275/init.c (abort): Removed.
41910 (grub_stop): Likewise.
41911 (grub_exit): New function.
41912 (grub_set_prefix): Renamed to ...
41913 (grub_machine_set_prefix): ... this.
41914 (grub_machine_init): Do not call grub_set_prefix.
41915
41916 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
41917 (grub_machine_set_prefix): ... this.
41918 (grub_machine_init): Do not call grub_set_prefix.
41919
41920 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
41921 (grub_machine_init): Do not set the prefix here.
41922
41923 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
41924
41925 * kern/efi/init.c: Include grub/mm.h.
41926 (grub_efi_set_prefix): New function.
41927
41928 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
41929 (grub_efi_get_filename): New function.
41930 (grub_print_device_path): Renamed to ...
41931 (grub_efi_print_device_path): ... this.
41932
41933 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
41934 [MM_DEBUG] (grub_realloc): Likewise.
41935 [MM_DEBUG] (grub_free): Likewise.
41936 [MM_DEBUG] (grub_memalign): Likewise.
41937 [MM_DEBUG] (grub_mm_debug): New variable.
41938 [MM_DEBUG] (grub_debug_malloc): New function.
41939 [MM_DEBUG] (grub_debug_free): New function.
41940 [MM_DEBUG] (grub_debug_realloc): New function.
41941 [MM_DEBUG] (grub_debug_memalign): New function.
41942
41943 * kern/misc.c (grub_abort): Print a newline to distinguish
41944 the message.
41945
41946 * kern/main.c (grub_main): Call grub_machine_set_prefix and
41947 grub_set_root_dev after loading modules. This is necessary when
41948 setting a prefix depends on modules.
41949
41950 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
41951 (grub_efi_print_device_path): ... this.
41952 (grub_efi_get_filename): New prototype.
41953 (grub_efi_set_prefix): Likewise.
41954
41955 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
41956 and grub/disk.h.
41957 (grub_efidisk_get_device_handle): New prototype.
41958 (grub_efidisk_get_device_name): Likewise.
41959
41960 * include/grub/mm.h: Include config.h.
41961 (MM_DEBUG): Removed.
41962 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
41963 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
41964 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
41965 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
41966 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
41967 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
41968 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
41969 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
41970 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
41971
41972 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
41973
41974 * disk/efi/efidisk.c: Include grub/partition.h.
41975 (iterate_child_devices): New function.
41976 (add_device): First, compare only last device path nodes, so that
41977 devices are sorted by the types.
41978 (grub_efidisk_get_device_handle): New function.
41979 (grub_efidisk_get_device_name): Likewise.
41980
41981 * configure.ac (--enable-mm-debug): New option to enable the
41982 memory manager debugging feature. This makes the binary much
41983 bigger, so is disabled by default.
41984
41985 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
41986
41987 Use grub_abort instead of grub_stop, and grub_exit must be
41988 define in each architecture now. Also, this change adds support
41989 for EFI disks.
41990
41991 * util/i386/pc/grub-probefs.c: Include grub/term.h.
41992 (grub_getkey): New function.
41993 (grub_term_get_current): Likewise.
41994
41995 * util/i386/pc/grub-setup.c: Include grub/term.h.
41996 (grub_getkey): New function.
41997 (grub_term_get_current): Likewise.
41998
41999 * util/misc.c (grub_stop): Renamed to ...
42000 (grub_exit): ... this.
42001
42002 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42003 (grub_exit): ... this.
42004 (grub_machine_init): Use grub_abort instead of abort.
42005 (grub_stop): Removed.
42006
42007 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42008 abort.
42009
42010 * kern/i386/pc/startup.S (grub_exit): New function.
42011 (cold_reboot): New label.
42012
42013 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42014 (grub_efi_init): Call grub_efidisk_init.
42015 (grub_efi_fini): Call grub_efidisk_fini.
42016
42017 * kern/efi/efi.c: Include grub/mm.h.
42018 (grub_efi_console_control_guid): Renamed to ...
42019 (console_control_guid): ... this.
42020 (grub_efi_loaded_image_guid): Renamed to ...
42021 (loaded_image_guid): ... this.
42022 (grub_efi_locate_handle): New function.
42023 (grub_efi_open_protocol): Likewise.
42024 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42025 GRUB_EFI_CONSOLE_CONTROL_GUID.
42026 (grub_efi_exit): Removed.
42027 (grub_stop): Likewise.
42028 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42029 (grub_exit): New function.
42030 (grub_print_device_path): Likewise.
42031
42032 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42033 (grub_enter_rescue_mode): Register "exit".
42034
42035 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42036 (grub_abort): New function.
42037
42038 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42039
42040 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42041
42042 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42043
42044 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42045 (grub_print_device_path): New prototype.
42046 (grub_efi_locate_handle): Likewise.
42047 (grub_efi_open_protocol): Likewise.
42048
42049 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42050 * disk/efi/efidisk.c: Likewise.
42051
42052 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42053
42054 * include/grub/efi/console_control.h
42055 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42056
42057 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42058 last 8 bytes as an array.
42059 (GRUB_EFI_DISK_IO_GUID): New macro.
42060 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42061 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42062 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42063 grub_uint8_t.
42064 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42065 (struct grub_efi_device_path): Rename the member "sub_type" to
42066 "subtype".
42067 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42068 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42069 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42070 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42071 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42072 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42073 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42074 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42075 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42076 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42077 (struct grub_efi_pci_device_path): New structure.
42078 (grub_efi_pci_device_path_t): New type.
42079 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42080 (struct grub_efi_pccard_device_path): New structure.
42081 (grub_efi_pccard_device_path_t): New type.
42082 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42083 (struct grub_efi_memory_mapped_device_path): New structure.
42084 (grub_efi_memory_mapped_device_path_t): New type.
42085 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42086 (struct grub_efi_vendor_device_path): New structure.
42087 (grub_efi_vendor_device_path_t): New type.
42088 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42089 (struct grub_efi_controller_device_path): New structure.
42090 (grub_efi_controller_device_path_t): New type.
42091 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42092 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42093 (struct grub_efi_acpi_device_path): New structure.
42094 (grub_efi_acpi_device_path_t): New type.
42095 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42096 (struct grub_efi_expanded_acpi_device_path): New structure.
42097 (grub_efi_expanded_acpi_device_path_t): New type.
42098 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42099 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42100 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42101 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42102 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42103 (struct grub_efi_atapi_device_path): New structure.
42104 (grub_efi_atapi_device_path_t): New type.
42105 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42106 (struct grub_efi_fibre_channel_device_path): New structure.
42107 (grub_efi_fibre_channel_device_path_t): New type.
42108 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42109 (struct grub_efi_1394_device_path): New structure.
42110 (grub_efi_1394_device_path_t): New type.
42111 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42112 (struct grub_efi_usb_device_path): New structure.
42113 (grub_efi_usb_device_path_t): New type.
42114 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42115 (struct grub_efi_usb_class_device_path): New structure.
42116 (grub_efi_usb_class_device_path_t): New type.
42117 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42118 (struct grub_efi_i2o_device_path): New structure.
42119 (grub_efi_i2o_device_path_t): New type.
42120 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42121 (struct grub_efi_mac_address_device_path): New structure.
42122 (grub_efi_mac_address_device_path_t): New type.
42123 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42124 (struct grub_efi_ipv4_device_path): New structure.
42125 (grub_efi_ipv4_device_path_t): New type.
42126 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42127 (struct grub_efi_ipv6_device_path): New structure.
42128 (grub_efi_ipv6_device_path_t): New type.
42129 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42130 (struct grub_efi_infiniband_device_path): New structure.
42131 (grub_efi_infiniband_device_path_t): New type.
42132 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42133 (struct grub_efi_uart_device_path): New structure.
42134 (grub_efi_uart_device_path_t): New type.
42135 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42136 (struct grub_efi_vendor_messaging_device_path): New structure.
42137 (grub_efi_vendor_messaging_device_path_t): New type.
42138 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42139 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42140 (struct grub_efi_hard_drive_device_path): New structure.
42141 (grub_efi_hard_drive_device_path_t): New type.
42142 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42143 (struct grub_efi_cdrom_device_path): New structure.
42144 (grub_efi_cdrom_device_path_t): New type.
42145 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42146 (struct grub_efi_vendor_media_device_path): New structure.
42147 (grub_efi_vendor_media_device_path_t): New type.
42148 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42149 (struct grub_efi_file_path_device_path): New structure.
42150 (grub_efi_file_path_device_path_t): New type.
42151 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42152 (struct grub_efi_protocol_device_path): New structure.
42153 (grub_efi_protocol_device_path_t): New type.
42154 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42155 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42156 (struct grub_efi_bios_device_path): New structure.
42157 (grub_efi_bios_device_path_t): New type.
42158 (struct grub_efi_disk_io): New structure.
42159 (grub_efi_disk_io_t): New type.
42160 (struct grub_efi_block_io_media): New structure.
42161 (grub_efi_block_io_media_t): New type.
42162 (struct grub_efi_block_io): New structure.
42163 (grub_efi_block_io_t): New type.
42164
42165 * include/grub/misc.h (grub_stop): Removed.
42166 (grub_exit): New prototype.
42167 (grub_abort): Likewise.
42168
42169 * include/grub/disk.h (enum grub_disk_dev_id): Added
42170 GRUB_DISK_DEVICE_EFIDISK_ID.
42171
42172 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42173 disk/efi/efidisk.c.
42174 (kernel_syms.lst): Remove the target if an error occurs.
42175
42176 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42177
42178 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42179 as it was simply too buggy.
42180
42181 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42182
42183 * kern/misc.c (grub_lltoa): New function.
42184 (grub_vsprintf): Added support for the long long suffix,
42185 i.e. "ll".
42186
42187 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42188
42189 * Makefile.in (LDFLAGS): Add variable.
42190 (LD): Remove variable.
42191 * configure.ac: Add -m32 to LDFLAGS.
42192 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42193 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42194 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42195 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42196 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42197 variables.
42198 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42199 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42200 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42201
42202 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42203
42204 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42205 length for unknown glyph.
42206
42207 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42208
42209 Add support for pre-loaded modules into the EFI port.
42210
42211 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42212 completely. Accept one more argument DIR. The caller has changed.
42213
42214 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42215
42216 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42217 (grub_efi_loaded_image_guid): New variable.
42218 (grub_efi_get_loaded_image): New function.
42219 (grub_arch_modules_addr): Likewise.
42220
42221 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42222 prototype.
42223
42224 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42225 (struct grub_efi_loaded_image): New structure.
42226 (grub_efi_loaded_image_t): New type.
42227
42228 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42229
42230 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42231 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42232 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42233
42234 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42235
42236 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42237
42238 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42239
42240 * DISTLIST: Added include/grub/efi/console.h,
42241 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42242 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42243
42244 * include/grub/efi/console.h: New file.
42245 * include/grub/efi/time.h: Likewise.
42246 * include/grub/i386/efi/kernel.h: Likewise.
42247 * kern/efi/init.c: Likewise.
42248 * kern/efi/mm.c: Likewise.
42249 * term/efi/console.c: Likewise.
42250
42251 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42252 (grub_stop): Removed.
42253 (grub_get_rtc): Likewise.
42254 (grub_machine_init): Simply call grub_efi_init.
42255 (grub_machine_fini): Call grub_efi_fini.
42256
42257 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42258 (grub_efi_output_string): Removed.
42259 (grub_efi_stall): New function.
42260 (grub_stop): Likewise.
42261 (grub_get_rtc): Likewise.
42262
42263 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42264 (grub_efi_stall): New prototype.
42265 (grub_efi_allocate_pages): Likewise.
42266 (grub_efi_free_pages): Likewise.
42267 (grub_efi_get_memory_map): Likewise.
42268 (grub_efi_mm_init): Likewise.
42269 (grub_efi_mm_fini): Likewise.
42270 (grub_efi_init): Likewise.
42271 (grub_efi_fini): Likewise.
42272
42273 * include/grub/i386/efi/time.h: Do not include
42274 grub/symbol.h. Include grub/efi/time.h.
42275 (GRUB_TICKS_PER_SECOND): Removed.
42276 (grub_get_rtc): Likewise.
42277
42278 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42279 Added padding. The EFI spec is buggy.
42280 (GRUB_EFI_BLACK): New macro.
42281 (GRUB_EFI_BLUE): Likewise.
42282 (GRUB_EFI_GREEN): Likewise.
42283 (GRUB_EFI_CYAN): Likewise.
42284 (GRUB_EFI_RED): Likewise.
42285 (GRUB_EFI_MAGENTA): Likewise.
42286 (GRUB_EFI_BROWN): Likewise.
42287 (GRUB_EFI_LIGHTGRAY): Likewise.
42288 (GRUB_EFI_BRIGHT): Likewise.
42289 (GRUB_EFI_DARKGRAY): Likewise.
42290 (GRUB_EFI_LIGHTBLUE): Likewise.
42291 (GRUB_EFI_LIGHTGREEN): Likewise.
42292 (GRUB_EFI_LIGHTCYAN): Likewise.
42293 (GRUB_EFI_LIGHTRED): Likewise.
42294 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42295 (GRUB_EFI_YELLOW): Likewise.
42296 (GRUB_EFI_WHITE): Likewise.
42297 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42298 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42299 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42300 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42301 (GRUB_EFI_BACKGROUND_RED): Likewise.
42302 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42303 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42304 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42305 (GRUB_EFI_TEXT_ATTR): Likewise.
42306
42307 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42308 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42309 (kernel_mod_HEADERS): Added efi/time.h.
42310
42311 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42312
42313 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42314 include/grub/efi/api.h, include/grub/efi/console_control.h,
42315 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42316 include/grub/i386/efi/time.h, kern/efi/efi.c,
42317 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42318 and util/i386/efi/grub-mkimage.c.
42319
42320 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42321
42322 * genmk.rb (PModule#rule): Do not export symbols if
42323 #{prefix}_EXPORTS is set to "no".
42324
42325 * conf/i386-efi.mk: New file.
42326 * conf/i386-efi.rmk: Likewise.
42327 * include/grub/efi/api.h: Likewise.
42328 * include/grub/efi/console_control.h: Likewise.
42329 * include/grub/efi/efi.h: Likewise.
42330 * include/grub/efi/pe32.h: Likewise.
42331 * include/grub/i386/efi/time.h: Likewise.
42332 * kern/efi/efi.c: Likewise.
42333 * kern/i386/efi/init.c: Likewise.
42334 * kern/i386/efi/startup.S: Likewise.
42335 * util/i386/efi/grub-mkimage.c: Likewise.
42336
42337 2006-04-17 Marco Gerards <marco@gnu.org>
42338
42339 * include/grub/script.h: Include <grub/parser.h> and
42340 "grub_script.tab.h".
42341 (struct grub_lexer_param): New struct.
42342 (struct grub_parser_param): Likewise.
42343 (grub_script_create_arglist): Pass the state in an argument.
42344 (grub_script_add_arglist): Likewise.
42345 (grub_script_create_cmdline): Likewise.
42346 (grub_script_create_cmdblock): Likewise.
42347 (grub_script_create_cmdif): Likewise.
42348 (grub_script_create_cmdmenu): Likewise.
42349 (grub_script_add_cmd): Likewise.
42350 (grub_script_arg_add): Likewise.
42351 (grub_script_lexer_ref): Likewise.
42352 (grub_script_lexer_deref): Likewise.
42353 (grub_script_lexer_record_start): Likewise.
42354 (grub_script_lexer_record_stop): Likewise.
42355 (grub_script_mem_record): Likewise.
42356 (grub_script_mem_record_stop): Likewise.
42357 (grub_script_malloc): Likewise.
42358 (grub_script_yylex): Likewise.
42359 (grub_script_yyparse): Likewise.
42360 (grub_script_yyerror): Likewise.
42361 (grub_script_yylex): Likewise.
42362 (grub_script_lexer_init): Return the state.
42363
42364 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42365 (grub_script_lexer_done): Likewise.
42366 (grub_script_lexer_getline): Likewise.
42367 (grub_script_lexer_refs): Likewise.
42368 (script): Likewise.
42369 (newscript): Likewise.
42370 (record): Likewise.
42371 (recording): Likewise.
42372 (recordpos): Likewise.
42373 (recordlen): Likewise.
42374 (grub_script_lexer_init): Return the state instead of setting
42375 global variables.
42376 (grub_script_lexer_ref): Use the newly added argument for state
42377 instead of globals.
42378 (grub_script_lexer_deref): Likewise.
42379 (grub_script_lexer_record_start): Likewise.
42380 (grub_script_lexer_record_stop): Likewise.
42381 (recordchar): Likewise.
42382 (nextchar): Likewise.
42383 (grub_script_yylex2): Likewise.
42384 (grub_script_yylex): Likewise.
42385 (grub_script_yyerror): Likewise.
42386
42387 * normal/parser.y (func_mem): Removed variable.
42388 (menu_entry): Likewise.
42389 (err): Likewise.
42390 (%lex-param): New parser option.
42391 (%parse-param): Likewise.
42392 (script): Always return the AST.
42393 (argument): Pass the state around.
42394 (arguments): Likewise.
42395 (grubcmd): Likewise.
42396 (commands): Likewise.
42397 (function): Likewise.
42398 (menuentry): Likewise.
42399 (if_statement): Likewise.
42400 (if): Likewise.
42401
42402 * normal/script.c (grub_script_memused): Removed variable.
42403 (grub_script_parsed): Likewise.
42404 (grub_script_malloc): Added a state argument. Use that instead of
42405 global variables.
42406 (grub_script_mem_record): Likewise.
42407 (grub_script_mem_record_stop): Likewise.
42408 (grub_script_arg_add): Likewise.
42409 (grub_script_add_arglist): Likewise.
42410 (grub_script_create_cmdline): Likewise.
42411 (grub_script_create_cmdif): Likewise.
42412 (grub_script_create_cmdmenu): Likewise.
42413 (grub_script_add_cmd): Likewise.
42414 (grub_script_parse): Setup the state before calling the parser.
42415
42416 2006-04-16 Marco Gerards <marco@gnu.org>
42417
42418 * normal/command.c (grub_command_init): Remove the title command.
42419
42420 * normal/lexer.c (grub_script_yylex): Renamed from this...
42421 (grub_script_yylex2): ... to this.
42422 (grub_script_yylex): New function. Temporary
42423 introduced to filter some tokens.
42424 (grub_script_yyerror): Print a newline.
42425
42426 * normal/main.c (read_config_file): Output information about the
42427 lines that contain errors. Wait for a key after all lines have
42428 been processed. Don't return an empty menu.
42429
42430 * normal/parser.y (func_mem): Don't initialize.
42431 (menu_entry): Likewise.
42432 (err): New variable.
42433 (script): Don't return anything when an error was encountered.
42434 (ws, returns): Removed rules.
42435 (argument): Disabled concatenated variable support.
42436 (arguments): Remove explicit separators.
42437 (grubcmd): Likewise.
42438 (function): Likewise.
42439 (menuentry): Likewise.
42440 (if): Likewise.
42441 (commands): Likewise. Add error handling.
42442
42443 * normal/script.c (grub_script_create_cmdline): If
42444 `grub_script_parsed' is 0, assume the parser encountered an error.
42445
42446 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42447
42448 * configure.ac: Add support for EFI. Fix the typo
42449 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42450
42451 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42452
42453 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42454 foreign multibyte characters should be shown correctly.
42455
42456 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42457
42458 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42459 calculation.
42460 (read_config_file): Made it to close file before returning.
42461
42462 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42463
42464 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42465 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42466 video/i386/pc/vbefill.c.
42467
42468 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42469 video/i386/pc/vbefill.c.
42470
42471 * include/grub/video.h (grub_video_blit_format): New enum.
42472 (grub_video_mode_info): Added new member blit_format.
42473 (grub_video_get_blit_format): New function prototype.
42474
42475 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42476 function prototype.
42477 (grub_video_vbe_map_rgb): Likewise.
42478 (grub_video_vbe_unmap_color): Likewise.
42479
42480 * include/grub/i386/pc/vbeblit.h: New file.
42481
42482 * include/grub/i386/pc/vbefill.h: New file.
42483
42484 * video/video.c (grub_video_get_blit_format): New function.
42485 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42486 (grub_video_vbe_map_rgb): Likewise.
42487 (grub_video_vbe_unmap_color): Likewise.
42488
42489 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42490 optimized fills.
42491 (grub_video_vbe_blit_render_target): Changed to use more optimized
42492 blits.
42493 (grub_video_vbe_setup): Added detection for optimized settings.
42494 (grub_video_vbe_create_render_target): Likewise.
42495
42496 * video/i386/pc/vbeblit.c: New file.
42497
42498 * video/i386/pc/vbefill.c: New file.
42499
42500 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42501
42502 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42503 here...
42504
42505 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42506 parsing to support both hex and dec ranges. If filename was missing
42507 show usage information.
42508
42509 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42510
42511 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42512 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42513
42514 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42515 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42516 (video_mod_SOURCES): Added.
42517 (video_mod_CFLAGS): Likewise.
42518 (video_mod_LDFLAGS): Likewise.
42519 (gfxterm_mod_SOURCES): Likewise.
42520 (gfxterm_mod_CFLAGS): Likewise.
42521 (gfxterm_mod_LDFLAGS): Likewise.
42522 (videotest_mod_SOURCES): Likewise.
42523 (videotest_mod_CFLAGS): Likewise.
42524 (videotest_mod_LDFLAGS): Likewise.
42525 (vesafb_mod_SOURCES): Removed.
42526 (vesafb_mod_CFLAGS): Likewise.
42527 (vesafb_mod_LDFLAGS): Likewise.
42528 (vga_mod_SOURCES): Likewise.
42529 (vga_mod_CFLAGS): Likewise.
42530 (vga_mod_LDFLAGS): Likewise.
42531
42532 * commands/videotest.c: New file.
42533
42534 * font/manager.c (fill_with_default_glyph): Modified to use
42535 grub_font_glyph.
42536 (grub_font_get_glyph): Likewise.
42537 (fontmanager): Renamed from this...
42538 (font_manager): ... to this.
42539
42540 * include/grub/font.h (grub_font_glyph): Added new structure.
42541 (grub_font_get_glyph): Modified to use grub_font_glyph.
42542
42543 * include/grub/misc.h (grub_abs): Added as inline function.
42544
42545 * include/grub/video.h: New file.
42546
42547 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42548 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42549 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
42550 (grub_vbe_get_controller_info): Renamed from this...
42551 (grub_vbe_bios_get_controller_info): ... to this.
42552 (grub_vbe_get_mode_info): Renamed from this...
42553 (grub_vbe_bios_get_mode_info): ... to this.
42554 (grub_vbe_set_mode): Renamed from this...
42555 (grub_vbe_bios_set_mode): ... to this.
42556 (grub_vbe_get_mode): Renamed from this...
42557 (grub_vbe_bios_get_mode): ... to this.
42558 (grub_vbe_set_memory_window): Renamed from this...
42559 (grub_vbe_bios_set_memory_window): ... to this.
42560 (grub_vbe_get_memory_window): Renamed from this...
42561 (grub_vbe_bios_get_memory_window): ... to this.
42562 (grub_vbe_set_scanline_length): Renamed from this...
42563 (grub_vbe_set_scanline_length): ... to this.
42564 (grub_vbe_get_scanline_length): Renamed from this...
42565 (grub_vbe_bios_get_scanline_length): ... to this.
42566 (grub_vbe_set_display_start): Renamed from this...
42567 (grub_vbe_bios_set_display_start): ... to this.
42568 (grub_vbe_get_display_start): Renamed from this...
42569 (grub_vbe_bios_get_display_start): ... to this.
42570 (grub_vbe_set_palette_data): Renamed from this...
42571 (grub_vbe_bios_set_palette_data): ... to this.
42572 (grub_vbe_set_pixel_rgb): Removed.
42573 (grub_vbe_set_pixel_index): Likewise.
42574
42575 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
42576 from this...
42577 (grub_vbe_bios_get_controller_info): ... to this.
42578 (grub_vbe_get_mode_info): Renamed from this...
42579 (grub_vbe_bios_get_mode_info): ... to this.
42580 (grub_vbe_set_mode): Renamed from this...
42581 (grub_vbe_bios_set_mode): ... to this.
42582 (grub_vbe_get_mode): Renamed from this...
42583 (grub_vbe_bios_get_mode): ... to this.
42584 (grub_vbe_set_memory_window): Renamed from this...
42585 (grub_vbe_bios_set_memory_window): ... to this.
42586 (grub_vbe_get_memory_window): Renamed from this...
42587 (grub_vbe_bios_get_memory_window): ... to this.
42588 (grub_vbe_set_scanline_length): Renamed from this...
42589 (grub_vbe_set_scanline_length): ... to this.
42590 (grub_vbe_get_scanline_length): Renamed from this...
42591 (grub_vbe_bios_get_scanline_length): ... to this.
42592 (grub_vbe_set_display_start): Renamed from this...
42593 (grub_vbe_bios_set_display_start): ... to this.
42594 (grub_vbe_get_display_start): Renamed from this...
42595 (grub_vbe_bios_get_display_start): ... to this.
42596 (grub_vbe_set_palette_data): Renamed from this...
42597 (grub_vbe_bios_set_palette_data): ... to this.
42598 (grub_vbe_bios_get_controller_info): Fixed problem with registers
42599 getting corrupted after calling it. Added more pushes and pops.
42600 (grub_vbe_bios_set_mode): Likewise.
42601 (grub_vbe_bios_get_mode): Likewise.
42602 (grub_vbe_bios_get_memory_window): Likewise.
42603 (grub_vbe_bios_set_scanline_length): Likewise.
42604 (grub_vbe_bios_get_scanline_length): Likewise.
42605 (grub_vbe_bios_get_display_start): Likewise.
42606 (grub_vbe_bios_set_palette_data): Likewise.
42607
42608 * normal/cmdline.c (cl_set_pos): Refresh the screen.
42609 (cl_insert): Likewise.
42610 (cl_delete): Likewise.
42611
42612 * term/gfxterm.c: New file.
42613
42614 * term/i386/pc/vesafb.c: Removed file.
42615
42616 * video/video.c: New file.
42617
42618 * video/i386/pc/vbe.c (real2pm): Added new function.
42619 (grub_video_vbe_draw_pixel): Likewise.
42620 (grub_video_vbe_get_video_ptr): Likewise.
42621 (grub_video_vbe_get_pixel): Likewise
42622 (grub_video_vbe_init): Likewise.
42623 (grub_video_vbe_fini): Likewise.
42624 (grub_video_vbe_setup): Likewise.
42625 (grub_video_vbe_get_info): Likewise.
42626 (grub_video_vbe_set_palette): Likewise.
42627 (grub_video_vbe_get_palette): Likewise.
42628 (grub_video_vbe_set_viewport): Likewise.
42629 (grub_video_vbe_get_viewport): Likewise.
42630 (grub_video_vbe_map_color): Likewise.
42631 (grub_video_vbe_map_rgb): Likewise.
42632 (grub_video_vbe_map_rgba): Likewise.
42633 (grub_video_vbe_unmap_color): Likewise.
42634 (grub_video_vbe_fill_rect): Likewise.
42635 (grub_video_vbe_blit_glyph): Likewise.
42636 (grub_video_vbe_blit_bitmap): Likewise.
42637 (grub_video_vbe_blit_render_target): Likewise.
42638 (grub_video_vbe_scroll): Likewise.
42639 (grub_video_vbe_swap_buffers): Likewise.
42640 (grub_video_vbe_create_render_target): Likewise.
42641 (grub_video_vbe_delete_render_target): Likewise.
42642 (grub_video_vbe_set_active_render_target): Likewise.
42643 (grub_vbe_set_pixel_rgb): Remove function.
42644 (grub_vbe_set_pixel_index): Likewise.
42645 (index_color_mode): Remove static variable.
42646 (active_mode): Likewise.
42647 (framebuffer): Likewise.
42648 (bytes_per_scan_line): Likewise.
42649 (grub_video_vbe_adapter): Added new static variable.
42650 (framebuffer): Likewise.
42651 (render_target): Likewise.
42652 (initial_mode): Likewise.
42653 (mode_in_use): Likewise.
42654 (mode_list): Likewise.
42655
42656 2006-03-10 Marco Gerards <marco@gnu.org>
42657
42658 * configure.ac (AC_INIT): Bumped to 1.93.
42659
42660 * DISTLIST: Added `include/grub/hfs.h'.
42661
42662 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
42663
42664 * boot/i386/pc/boot.S (general_error): Before looping, try INT
42665 18H, which might help the BIOS falling back to next boot media.
42666
42667 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
42668
42669 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
42670 Poe Chen <poe.poechen@gmail.com>.
42671
42672 2006-01-17 Marco Gerards <marco@gnu.org>
42673
42674 * include/grub/normal.h: Include <grub/script.h>.
42675 (grub_command_list): Removed struct.
42676 (grub_command_list_t): Removed type.
42677 (grub_menu_entry): Remove members `num' and `command_list'. Add
42678 members `commands' and `sourcecode'.
42679 * include/grub/script.h: Add inclusion guards.
42680 (grub_script_cmd_menuentry): New struct.
42681 (grub_script_execute_menuentry): New prototype.
42682 (grub_script_lexer_record_start): Likewise.
42683 (grub_script_lexer_record_stop): Likewise.
42684 * normal/execute.c (grub_script_execute_menuentry): New function.
42685 * normal/lexer.c (record, recording, recordpos, recordlen): New
42686 variables.
42687 (grub_script_lexer_record_start): New function.
42688 (grub_script_lexer_record_stop): Likewise.
42689 (recordchar): Likewise.
42690 (nextchar): Likewise.
42691 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
42692 2048 as the buffer size. Add the tokens `menuentry' and `@'.
42693 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
42694 (current_menu): New variable.
42695 (free_menu): Mainly rewritten.
42696 (grub_normal_menu_addentry): New function.
42697 (read_config_file): Rewritten.
42698 * normal/menu.c (run_menu_entry): Mainly rewritten.
42699 * normal/menu_entry.c (make_screen): Rewritten the code to insert
42700 the menu entry.
42701 (run): Mainly rewritten.
42702 * normal/parser.y (menu_entry): New variable.
42703 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
42704 (menuentry): New rule.
42705 (command): Add `menuentry'.
42706 (if_statement): Allow additional returns before `fi'.
42707 * normal/script.c (grub_script_create_cmdmenu): New function.
42708
42709 2006-01-03 Marco Gerards <marco@gnu.org>
42710
42711 * INSTALL: GNU Bison is required.
42712 * configure.ac: Rewritten the test to detect Bison.
42713 * Makefile.in (YACC): New variable. Reported by Xun Sun
42714 <xun.sun.cn@gmail.com>.
42715
42716 2006-01-03 Marco Gerards <marco@gnu.org>
42717
42718 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
42719 the HFS+ filesystem to filesystem blocks.
42720 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
42721 GCC warning is silenced.
42722
42723 2006-01-03 Marco Gerards <marco@gnu.org>
42724
42725 * partmap/apple.c (apple_partition_map_iterate): Convert the data
42726 read from disk from big endian to host byte order.
42727
42728 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
42729
42730 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
42731 documentation.
42732 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
42733 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
42734 embedded HFS+ filesystem.
42735 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
42736 (grub_hfs_sblock): Move from here...
42737 * include/grub/hfs.h: To here... New file.
42738 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
42739 documentation.
42740 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
42741 New macros.
42742 (grub_hfsplus_volheader): Change type of member `magic' to
42743 `grub_uint16_t'.
42744 (grub_hfsplus_data): Add new member `embedded_offset'.
42745 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
42746 returned block.
42747 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
42748 Calculate the offset.
42749
42750 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42751
42752 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
42753 Removed.
42754 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
42755
42756 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42757
42758 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
42759 ENV->NAME is NULL after allocating ENV->VALUE.
42760
42761 2005-12-25 Marco Gerards <marco@gnu.org>
42762
42763 * kern/env.c (grub_env_set): Rewritten the error handling code.
42764
42765 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42766
42767 * geninit.sh: Made more robust, and more portable.
42768
42769 2005-12-25 Marco Gerards <marco@gnu.org>
42770
42771 Add support for Apple HFS+ filesystems.
42772
42773 * fs/hfsplus.c: New file.
42774
42775 * DISTLIST: Added `fs/hfsplus.c'.
42776
42777 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
42778 (hfsplus_mod_SOURCES): New variable.
42779 (hfsplus_mod_CFLAGS): Likewise.
42780 (hfsplus_mod_LDFLAGS): Likewise.
42781 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
42782 (grub_setup_SOURCES): Likewise.
42783 (grub_mkdevicemap_SOURCES): Likewise.
42784 (grub_emu_SOURCES): Likewise.
42785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42786
42787 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
42788
42789 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
42790
42791 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42792
42793 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
42794 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
42795 include/grub/parser.h, include/grub/script.h, kern/parser.c,
42796 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
42797 normal/lexer.c, normal/parser.y, normal/script.c, and
42798 partmap/gpt.c.
42799 Removed kern/sparc64/cache.c.
42800
42801 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
42802 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
42803 grub_emu_init.c.
42804
42805 * configure.ac (AC_INIT): Bumped to 1.92.
42806
42807 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
42808
42809 * kern/err.c (grub_error_push): Added new function to support error
42810 stacks.
42811 (grub_error_pop): Likewise.
42812 (grub_error_stack_items): New local variable to support error stacks.
42813 (grub_error_stack_pos): Likewise.
42814 (grub_error_stack_assert): Likewise.
42815 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
42816 stack depth.
42817 (grub_print_error): Added support to print errors from error stack.
42818
42819 * include/grub/err.h (grub_error_push): Added function prototype.
42820 (grub_error_pop): Likewise.
42821
42822 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
42823
42824 * configure.ac: Accept `powerpc64' as host_cpu.
42825 (amd64): Rename to `biarch32'.
42826
42827 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
42828 non-cacheline-aligned addresses.
42829
42830 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
42831 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
42832 if `size' is non-zero.
42833
42834 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
42835
42836 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
42837 and `cd' to make sure the filename is not prefixed with a
42838 directory name.
42839 (pkgdata_MODULES): Add `gpt.mod'.
42840 (gpt_mod_SOURCES): New variable.
42841 (gpt_mod_CFLAGS): Likewise.
42842 (gpt_mod_LDFLAGS): Likewise.
42843
42844 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
42845
42846 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
42847 New macro.
42848
42849 * partmap/gpt.c: New file.
42850
42851 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
42852 GPT partition map is detected.
42853
42854 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
42855
42856 * commands/i386/pc/play.c: New file.
42857 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
42858 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
42859 macros.
42860
42861 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
42862
42863 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
42864 ((unused))' to silence gcc warning.
42865
42866 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
42867
42868 * configure.ac: Correct `AC_PROG_YACC' test.
42869
42870 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42871
42872 * util/powerpc/ieee1275/grub-install.in: Run the mount point
42873 check before installing files.
42874
42875 2005-11-22 Mike Small <smallm@panix.com>
42876
42877 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
42878 number regex so multidigit numbers are recognized correctly.
42879
42880 2005-11-22 Mike Small <smallm@panix.com>
42881
42882 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
42883 debugging message before attempting to claim memory.
42884 (grub_rescue_cmd_initrd): Add a claim debugging message and try
42885 multiple addresses in case of failure.
42886
42887 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42888
42889 * term/tparm.c (get_space): Remove empty `if' statement.
42890
42891 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
42892
42893 * kern/parser.c (check_varstate): Rename `state' to 's'.
42894
42895 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42896
42897 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
42898 variable definitions to the beginning of each function. Sort stack
42899 variables by size.
42900 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
42901 `buf' argument to `char *'.
42902
42903 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42904
42905 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
42906 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42907 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42908 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42909 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42910 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42911 configfile.mod, search.mod, gzio.mod and test.mod.
42912 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42913 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42914 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42915 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42916 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42917 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42918 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42919 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42920 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42921 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42922 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42923 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42924 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42925 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42926 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42927 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42928 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42929 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42930 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42931 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42932 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42933 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42934 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
42935
42936 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
42937 `grep --include'.
42938 (pkgdata_MODULES): Add test.mod.
42939
42940 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42941
42942 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
42943 appending to variables with "+=".
42944 (PModule): Use full pathname to generate *.lst filenames.
42945
42946 * Makefile.in: Fixed list rules moved from genmk.rb.
42947 (.DELETE_ON_ERROR): New special target.
42948 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
42949
42950 * conf/i386-pc.rmk: Include conf/common.mk.
42951 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42952 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42953 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42954 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42955 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42956 configfile.mod, search.mod, gzio.mod and test.mod.
42957 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42958 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42959 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42960 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42961 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42962 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42963 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42964 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42965 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42966 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42967 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42968 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42969 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42970 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42971 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42972 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42973 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42974 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42975 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42976 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42977 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42978 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42979 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
42980 here...
42981 * conf/common.rmk: ... to here. New file.
42982
42983 * conf/common.mk: New file.
42984
42985 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
42986
42987 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
42988 (grub_script.tab.c): ... here.
42989
42990 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
42991 (grub_script.tab.c): ... here.
42992
42993 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
42994 (grub_script.tab.c): ... here.
42995
42996 * normal/command.c (grub_command_find): Fixed a memory leak of
42997 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
42998
42999 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43000
43001 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43002 "@" which marks the start of a comment on ARM.
43003 (VARIABLE): Likewise.
43004
43005 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43006
43007 Add support for Linux/ADFS partition tables.
43008
43009 * partmap/acorn.c: New file.
43010
43011 * include/grub/acorn_filecore.h: Likewise.
43012
43013 * DISTLIST: Added `partmap/acorn.c' and
43014 `include/grub/acorn_filecore.h'.
43015
43016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43017 `partmap/acorn.c'.
43018 (pkgdata_MODULES): Add `acorn.mod'.
43019 (acorn_mod_SOURCES): New variable.
43020 (acorn_mod_CFLAGS): Likewise.
43021
43022 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43023 `partmap/acorn.c'.
43024 (pkgdata_MODULES): Add `acorn.mod'.
43025 (acorn_mod_SOURCES): New variable.
43026 (acorn_mod_CFLAGS): Likewise.
43027
43028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43029 (pkgdata_MODULES): Add `acorn.mod'.
43030 (acorn_mod_SOURCES): New variable.
43031 (acorn_mod_CFLAGS): Likewise.
43032 (acorn_mod_LDFLAGS): Likewise.
43033
43034 * include/types.h (grub_disk_addr_t): New typedef.
43035
43036 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43037
43038 * geninit.sh: New file.
43039
43040 * geninitheader.sh: Likewise.
43041
43042 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43043 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43044 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43045 * commands/configfile.c (grub_configfile_init)
43046 (grub_configfile_fini): Likewise.
43047 * commands/default.c (grub_default_init, grub_default_fini):
43048 Likewise.
43049 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43050 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43051 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43052 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43053 Likewise.
43054 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43055 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43056 Likewise.
43057 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43058 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43059 Likewise.
43060 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43061 Likewise.
43062 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43063 Likewise.
43064 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43065 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43066 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43067 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43068 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43069 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43070 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43071 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43072 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43073 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43074 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43075 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43076 * partmap/amiga.c (grub_amiga_partition_map_init)
43077 (grub_amiga_partition_map_fini): Likewise.
43078 * partmap/apple.c (grub_apple_partition_map_init)
43079 (grub_apple_partition_map_fini): Likewise.
43080 * partmap/pc.c (grub_pc_partition_map_init)
43081 (grub_pc_partition_map_fini): Likewise.
43082 * partmap/sun.c (grub_sun_partition_map_init,
43083 grub_sun_partition_map_fini): Likewise.
43084 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43085 Likewise.
43086
43087 * util/grub-emu.c: Include <grub_modules_init.h>.
43088 (main): Don't initialize and de-initialize any modules directly,
43089 use `grub_init_all' and `grub_fini_all' instead.
43090
43091 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43092 `grub_vesafb_mod_init'.
43093 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43094 all users.
43095 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43096 `grub_vga_mod_init'. Updated all users.
43097 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43098
43099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43100 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43101 rules.
43102
43103 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43104 Generate a function to initialize the module in utilities.
43105 Updated all callers.
43106 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43107 initialize the module in utilities. Updated all callers.
43108
43109 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43110
43111 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43112 escape sequence and a literal ^L to clear the screen.
43113
43114 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43115 when returning from Open Firmware.
43116
43117 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43118
43119 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43120 (grub_ofconsole_height): Likewise.
43121 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43122 manually insert a '\n'.
43123 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43124 `grub_ofconsole_height'. Return early if these are already set.
43125
43126 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43127
43128 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43129 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43130 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43131 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43132 and `normal/script.c'.
43133 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43134 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43135 (test_mod_SOURCES): New variable.
43136 (test_mod_CFLAGS): Likewise.
43137 (test_mod_LDFLAGS): Likewise.
43138 (pkgdata_MODULES): Add `test.mod'.
43139 (grub_script.tab.c): New rule.
43140 (grub_script.tab.h): Likewise.
43141
43142 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43143
43144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43145 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43146 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43147 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43148 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43149 (test_mod_SOURCES): New variable.
43150 (test_mod_CFLAGS): Likewise.
43151 (pkgdata_MODULES): Add `test.mod'.
43152 (grub_script.tab.c): New rule.
43153 (grub_script.tab.h): Likewise.
43154
43155 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43156
43157 Add initial scripting support.
43158
43159 * commands/test.c: New file.
43160 * include/grub/script.h: Likewise.
43161 * normal/execute.c: Likewise.
43162 * normal/function.c: Likewise.
43163 * normal/lexer.c: Likewise.
43164 * normal/parser.y: Likewise.
43165 * normal/script.c: Likewise.
43166
43167 * configure.ac: Add `AC_PROG_YACC' test.
43168
43169 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43170 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43171 `normal/function.c' and `normal/script.c'.
43172 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43173 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43174 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43175 variables.
43176 (pkgdata_MODULES): Add `test.mod'.
43177 (grub_script.tab.c): New rule.
43178 (grub_script.tab.h): Likewise.
43179
43180 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43181
43182 * include/grub/normal.h (grub_test_init): New prototype.
43183 (grub_test_fini): Likewise.
43184
43185 * normal/command.c: Include <grub/script.h>.
43186 (grub_command_execute): Rewritten.
43187
43188 * util/grub-emu.c (main): Call `grub_test_init' and
43189 `grub_test_fini'.
43190
43191 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43192
43193 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43194 to 0.
43195 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43196 there are no pending characters.
43197
43198 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43199
43200 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43201 `grub_strndup' to drop device arguments. Replace unnecessary
43202 `grub_strndup' with `grub_strdup'.
43203
43204 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43205
43206 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43207 `debug' environment variable has been set.
43208
43209 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43210
43211 * Makefile.in (install-local): Use $(DATA).
43212 (uninstall): Likewise.
43213 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43214 (sbin_UTILITIES): ... to here.
43215 (sbin_SCRIPTS): New variable.
43216 (grub_install_SOURCES): New variable.
43217 * util/powerpc/ieee1275/grub-install.in: New file.
43218 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43219 variable.
43220 (add_segments): Call `grub_util_get_path'.
43221
43222 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43223
43224 From Timothy Baldwin:
43225 * commands/ls.c (grub_ls_list_files): Close FILE with
43226 grub_file_close.
43227 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43228
43229 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43230
43231 * include/grub/parser.h: New file.
43232
43233 * kern/parser.c: Likewise.
43234
43235 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43236 (grub_setup_SOURCES): Likewise.
43237 (grub_probefs_SOURCES): Likewise.
43238 (grub_emu_SOURCES): Likewise.
43239 (kernel_img_HEADERS): Add `parser.h'.
43240
43241 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43242 (grub_emu_SOURCES): Add `kern/parser.c'.
43243 (grubof_SOURCES): Likewise.
43244
43245 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43246 (grubof_SOURCES): Add `kern/parser.c'.
43247
43248 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43249
43250 * kern/misc.c (grub_split_cmdline): Removed function.
43251
43252 * kern/rescue.c: Include <grub/parser.h>.
43253 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43254 of `grub_split_cmdline'.
43255
43256 * normal/command.c: Include <grub/parser.h>.
43257 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43258 of `grub_split_cmdline'.
43259
43260 * normal/completion.c: Include <grub/parser.h>.
43261 (cmdline_state): New variable.
43262 (iterate_dir): End the filename with a quote depending on the
43263 command line state.
43264 (get_state): new function.
43265 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43266 split the arguments and determine the current argument. When the
43267 argument string is not quoted, escape all spaces.
43268
43269 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43270
43271 * normal/sparc64/setjmp.S: New file.
43272
43273 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43274
43275 * include/grub/sparc64/libgcc.h: New file.
43276 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43277 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43278 normal/sparc64/setjmp.c.
43279
43280 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43281
43282 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43283 * kern/sparc64/cache.S: New file.
43284 * kern/sparc64/cache.c: Removed.
43285 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43286 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43287 -mtune=ultrasparc.
43288 (COMMON_LDFLAGS): Add -melf64_sparc.
43289 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43290 (grubof_SOURCES): Use cache.S instead of cache.c.
43291 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43292 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43293 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43294 commented though.
43295 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43296 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43297 (linux_mod_CFLAGS): Commented out.
43298 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43299 out because module isn't built.
43300 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43301 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43302 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43303 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43304 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43305 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43306 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43307 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43308 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43309 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43310 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43311 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43312 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43313 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43314
43315 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43316
43317 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43318 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43319 longer, because HFS should not be used on PC.
43320
43321 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43322
43323 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43324 consistently within the loop.
43325
43326 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43327
43328 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43329 directory can not be read.
43330
43331 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43332
43333 * configure.ac (AC_INIT): Increase the version number to 1.91.
43334
43335 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43336 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43337 term/i386/pc/serial.c.
43338
43339 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43340
43341 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43342 file size must be permitted.
43343
43344 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43345 between %ah and %al.
43346
43347 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43348
43349 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43350 grub_uint64_t.
43351 Call the hook with a NUL-terminated filename.
43352 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43353 grub_cpu_to_be32.
43354
43355 * kern/term.c (cursor_state): New variable.
43356 (grub_term_set_current): Reset the cursor state on a new
43357 terminal.
43358 (grub_setcursor): Rewritten to use CURSOR_STATE.
43359 (grub_getcursor): New function.
43360
43361 * include/grub/term.h (grub_getcursor): New prototype.
43362
43363 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43364 integers on ARM. Reported by Timothy Baldwin
43365 <T.E.Baldwin99@members.leeds.ac.uk>.
43366
43367 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43368
43369 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43370 allocated.
43371 (grub_sfs_dir): Likewise.
43372
43373 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43374
43375 Add support for the SFS filesystem.
43376
43377 * fs/sfs.c: New file.
43378
43379 * DISTLIST: Added `fs/sfs.c'.
43380
43381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43382 (grub_probefs_SOURCES): Likewise.
43383 (grub_emu_SOURCES): Likewise.
43384 (pkgdata_MODULES): Add `sfs.mod'.
43385 (sfs_mod_SOURCES): New variable.
43386 (sfs_mod_CFLAGS): Likewise.
43387 (sfs_mod_LDFLAGS): Likewise.
43388
43389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43390 (pkgdata_MODULES): Add `sfs.mod'.
43391 (sfs_mod_SOURCES): New variable.
43392 (sfs_mod_CFLAGS): Likewise.
43393
43394 * util/grub-emu.c (main): Call `grub_sfs_init' and
43395 `grub_sfs_fini'.
43396
43397 * include/grub/fs.h (grub_sfs_init): New prototype.
43398 (grub_sfs_fini): Likewise.
43399
43400 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43401
43402 Add support for the AFFS filesystem.
43403
43404 * fs/affs.c: New file.
43405
43406 * DISTLIST: Added `fs/affs.c'.
43407
43408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43409 (grub_probefs_SOURCES): Likewise.
43410 (grub_emu_SOURCES): Likewise.
43411 (pkgdata_MODULES): Add `affs.mod'.
43412 (affs_mod_SOURCES): New variable.
43413 (affs_mod_CFLAGS): Likewise.
43414 (affs_mod_LDFLAGS): Likewise.
43415
43416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43417 (pkgdata_MODULES): Add `affs.mod'.
43418 (affs_mod_SOURCES): New variable.
43419 (affs_mod_CFLAGS): Likewise.
43420
43421 * util/grub-emu.c (main): Call `grub_affs_init' and
43422 `grub_affs_fini'.
43423
43424 * include/grub/fs.h (grub_affs_init): New prototype.
43425 (grub_affs_fini): Likewise.
43426
43427 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43428
43429 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43430
43431 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43432
43433 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43434 `-m32' to CFLAGS.
43435
43436 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43437 linking.
43438
43439 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43440 (COMMON_LDFLAGS): New variable.
43441 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43442 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43443 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43444 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43445 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43446 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43447 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43448 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43449 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43450 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43451 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43452 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43453 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43454 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43455 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43456 variables.
43457 (normal_mod_ASFLAGS): Add `-m32'.
43458
43459 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43460 (grub_host_size_t, grub_host_ssize_t): New types.
43461 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43462 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43463 `GRUB_HOST_SIZEOF_VOID_P'.
43464
43465 * include/grub/kernel.h (struct grub_module_header): Type of
43466 member offset changed to `grub_host_off_t'. Type of member size
43467 changed to `grub_host_size_t'.
43468 (struct grub_module_info): Type of member offset changed to
43469 `grub_host_off_t'. Type of member size changed to
43470 `grub_host_size_t'.
43471
43472 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43473
43474 Make GRUB's kernel compliant to Multiboot Specification.
43475
43476 * kern/i386/pc/startup.S (multiboot_header): New label.
43477 (multiboot_entry): Likewise.
43478 (multiboot_trampoline): Likewise.
43479
43480 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43481 Increased to 0x4A0.
43482
43483 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43484 put parentheses after a question mark.
43485 [!GRUB_UTIL] (my_mod): New variable.
43486
43487 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43488
43489 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43490
43491 Adds support for the XFS filesystem. Btrees are not supported
43492 yet.
43493
43494 * fs/xfs.c: New file.
43495
43496 * DISTLIST: Added `fs/xfs.c'.
43497
43498 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43499 (grub_probefs_SOURCES): Likewise.
43500 (grub_emu_SOURCES): Likewise.
43501 (pkgdata_MODULES): Add `xfs.mod'.
43502 (xfs_mod_SOURCES): New variable.
43503 (xfs_mod_CFLAGS): Likewise.
43504
43505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43506 (pkgdata_MODULES): Add `xfs.mod'.
43507 (xfs_mod_SOURCES): New variable.
43508 (xfs_mod_CFLAGS): Likewise.
43509
43510 * util/grub-emu.c (main): Call `grub_xfs_init' and
43511 `grub_xfs_fini'.
43512
43513 * include/grub/fs.h (grub_xfs_init): New prototype.
43514 (grub_xfs_fini): Likewise.
43515
43516
43517 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43518
43519 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43520 color modes, allow greater than 16 colors to be configured as
43521 a default palette.
43522
43523 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43524
43525 * normal/completion.c (complete_arguments): Add the qualifier
43526 const into OPTIONS.
43527
43528 From Omniflux <omniflux+lists@omniflux.com>:
43529 * include/grub/terminfo.h: New file.
43530 * include/grub/tparm.h: Likewise.
43531 * include/grub/i386/pc/serial.h: Likewise.
43532 * term/terminfo.c: Likewise.
43533 * term/tparm.c: Likewise.
43534 * term/i386/pc/serial.c: Likewise.
43535 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43536 serial.mod.
43537 (terminfo_mod_SOURCES): New variable.
43538 (terminfo_mod_CFLAGS): Likewise.
43539 (serial_mod_SOURCES): Likewise.
43540 (serial_mod_CFLAGS): Likewise.
43541
43542 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43543
43544 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43545 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43546 and kern/powerpc/ieee1275/cmain.c, respectively.
43547
43548 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43549 * kern/powerpc/ieee1275/crt0.S: ... here.
43550
43551 * boot/powerpc/ieee1275/cmain.c: Moved to ...
43552 * kern/powerpc/ieee1275/cmain.c: ... here.
43553
43554 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
43555 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
43556 instead of boot/powerpc/ieee1275/crt0.S and
43557 boot/powerpc/ieee1275/cmain.c, respectively.
43558
43559 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
43560 sectors. It was not used anyway.
43561
43562 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43563
43564 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
43565 `unused parameter' warning.
43566
43567 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43568
43569 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
43570 function.
43571 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
43572 getcharwidth.
43573
43574 2005-08-28 Marco Gerards <metgerards@student.han.nl>
43575
43576 * include/grub/normal.h (enum grub_completion_type): Added
43577 `GRUB_COMPLETION_TYPE_ARGUMENT'.
43578
43579 * normal/cmdline.c (print_completion): Handle
43580 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
43581 * normal/menu_entry.c (store_completion): Likewise.
43582
43583 * normal/completion.c (complete_arguments): New function.
43584 (grub_normal_do_completion): Call `complete_arguments' when the
43585 current words start with a dash.
43586
43587 2005-08-27 Marco Gerards <metgerards@student.han.nl>
43588
43589 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
43590 `gzio.mod' instead of `io.mod').
43591
43592 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
43593
43594 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
43595 (DISTDIRS): Added io and video.
43596 Rewrite the search routine to make an output consistently.
43597
43598 * DISTLIST: Added conf/sparc64-ieee1275.mk,
43599 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
43600 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
43601 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
43602 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
43603 util/powerpc/ieee1275/misc.c.
43604
43605 * include/grub/gzio.h: New file.
43606 * io/gzio.c: Likewise.
43607
43608 * kern/file.c (grub_file_close): Call grub_device_close only if
43609 FILE->DEVICE is not NULL.
43610
43611 * include/grub/mm.h [!NULL] (NULL): New macro.
43612
43613 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
43614
43615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
43616 (pkgdata_MODULES): Added gzio.mod.
43617 (gzio_mod_SOURCES): New variable.
43618 (gzio_mod_CFLAGS): Likewise.
43619
43620 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
43621 (pkgdata_MODULES): Added gzio.mod.
43622 (gzio_mod_SOURCES): New variable.
43623 (gzio_mod_CFLAGS): Likewise.
43624
43625 * commands/cat.c: Include grub/gzio.h.
43626 (grub_cmd_cat): Use grub_gzfile_open instead of
43627 grub_file_open.
43628
43629 * commands/cmp.c: Include grub/gzio.h.
43630 (grub_cmd_cmp): Use grub_gzfile_open instead of
43631 grub_file_open.
43632
43633 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
43634 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
43635 grub_file_open.
43636 (grub_rescue_cmd_module): Likewise.
43637
43638 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43639
43640 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
43641 kern/sparc64/ieee1275/init.c because it contains _start.
43642 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
43643
43644 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43645
43646 * configure.ac: Add support for sparc64 host with ieee1275
43647 firmware.
43648 * configure: Generated from configure.ac.
43649 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
43650 instead of int.
43651 (grub_ofdisk_read): Likewise.
43652 (grub_ofdisk_open): Use %p to print pointer values, and cast the
43653 pointers as (void *) to remove a warning.
43654 (grub_ofdisk_close): Likewise.
43655 (grub_ofdisk_read): Likewise.
43656 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
43657 returns, so make it return void to remove a warning.
43658 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
43659 Corresponding prototype change.
43660 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
43661 values, and cast the pointers as (void *) to remove a warning.
43662 (grub_mm_dump): Likewise.
43663 * conf/sparc64-ieee1275.mk: New file.
43664 * conf/sparc64-ieee1275.rmk: Likewise.
43665 * include/grub/sparc64/setjmp.h: Likewise.
43666 * include/grub/sparc64/types.h: Likewise.
43667 * include/grub/sparc64/ieee1275/console.h: Likewise.
43668 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43669 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43670 * include/grub/sparc64/ieee1275/time.h: Likewise.
43671 * kern/sparc64/cache.c: Likewise.
43672 * kern/sparc64/dl.c: Likewise.
43673 * kern/sparc64/ieee1275/init.c: Likewise.
43674 * kern/sparc64/ieee1275/openfw.c: Likewise.
43675
43676 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
43677
43678 * util/console.c (grub_ncurses_putchar): If C is greater than
43679 0x7f, set C to a question mark.
43680 (grub_ncurses_getcharwidth): New function.
43681 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
43682 getcharwidth.
43683
43684 * normal/menu.c (print_entry): Made aware of Unicode. First,
43685 convert TITLE to UCS-4, and predict the cursor position by
43686 grub_getcharwidth.
43687
43688 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
43689 const to SRC.
43690 * kern/misc.c (grub_utf16_to_utf8): Likewise.
43691
43692 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43693
43694 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
43695 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43696 grub_strcat.
43697
43698 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
43699 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43700 grub_strcpy and grub_strlen. Take it into account that a space
43701 character is inserted as a delimiter.
43702
43703 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43704
43705 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
43706 invalid magic in the error.
43707
43708 * commands/search.c: New file.
43709
43710 * util/grub-emu.c (main): Call grub_search_init and
43711 grub_search_fini.
43712
43713 * kern/rescue.c (grub_rescue_print_disks): Removed.
43714 (grub_rescue_print_devices): New function.
43715 (grub_rescue_cmd_ls): Use grub_device_iterate with
43716 grub_rescue_print_devices instead of grub_disk_dev_iterate with
43717 grub_rescue_print_disks.
43718
43719 * kern/partition.c (grub_partition_iterate): Return the result of
43720 PARTMAP->ITERATE instead of GRUB_ERRNO.
43721
43722 * kern/device.c: Include grub/partition.h.
43723 (grub_device_iterate): New function.
43724
43725 * include/grub/partition.h (grub_partition_iterate): Return int
43726 instead of grub_err_t.
43727
43728 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
43729 prototype.
43730 [GRUB_UTIL] (grub_search_fini): Likewise.
43731
43732 * include/grub/device.h (grub_device_iterate): New prototype.
43733
43734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43735 commands/search.c.
43736 (pkgdata_MODULES): Added search.mod.
43737 (search_mod_SOURCES): New variable.
43738 (search_mod_CFLAGS): Likewise.
43739
43740 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
43741 (pkgdata_MODULES): Added search.mod.
43742 (search_mod_SOURCES): New variable.
43743 (search_mod_CFLAGS): Likewise.
43744
43745 * commands/ls.c (grub_ls_list_disks): Renamed to ...
43746 (grub_ls_list_devices): ... this, and use grub_device_iterate.
43747 All callers changed.
43748
43749 * DISTLIST: Added commands/search.c.
43750
43751 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43752
43753 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
43754 conversion.
43755 (grub_getcharwidth): New function.
43756
43757 * kern/misc.c (grub_utf8_to_ucs4): New function.
43758
43759 * include/grub/term.h (struct grub_term): Added a new member
43760 "getcharwidth".
43761 (grub_getcharwidth): New prototype.
43762
43763 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
43764
43765 * term/i386/pc/console.c (map_char): New function. Segregated from
43766 grub_console_putchar.
43767 (grub_console_putchar): Use map_char.
43768 (grub_console_getcharwidth): New function.
43769 (grub_console_term): Specified grub_console_getcharwidth as
43770 getcharwidth.
43771
43772 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
43773 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
43774
43775 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
43776 GRUB_ERRNO.
43777 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
43778 on grub_strtoul completely.
43779 (write_char): Declare local variables in the beginning of the
43780 function.
43781 (grub_vesafb_getcharwidth): New function.
43782 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
43783 getcharwidth.
43784
43785 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
43786
43787 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
43788 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
43789 commands/i386/pc/vbetest.c.
43790
43791 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
43792 call grub_vbe_get_controller_info again, because the returned
43793 information is volatile.
43794 (grub_vbe_set_video_mode): Mostly rewritten.
43795 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
43796 grub_vbe_status_t correctly.
43797 (grub_vbe_get_video_mode_info): Likewise.
43798 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
43799 several if statements.
43800
43801 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
43802 * commands/i386/pc/vbeinfo.c: ... this.
43803
43804 * commands/i386/pc/vbe_test.c: Renamed to ...
43805 * commands/i386/pc/vbetest.c: ... this.
43806
43807 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
43808 ...
43809 (grub_cmd_vbeinfo): ... this. Save video modes before
43810 iterating. Skip a video mode, if it is not available, not enough
43811 information is given or it is monochrome. Show the memory
43812 model. Leave the interpretation of MODEVAR to grub_strtoul
43813 completely.
43814 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
43815 (GRUB_MOD_FINI): Likewise.
43816
43817 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
43818 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
43819 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
43820 duplicated grub_env_get. Leave the interpretation of MODEVAR to
43821 grub_strtoul completely.
43822 (real2pm): Removed.
43823 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
43824 (GRUB_MOD_FINI): Likewise.
43825
43826 * normal/misc.c: Include grub/mm.h.
43827
43828 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
43829 vbe_list_modes with vbetest.mod and vbeinfo.mod.
43830 (vbe_list_modes_mod_SOURCES): Removed.
43831 (vbe_list_modes_mod_CFLAGS): Likewise.
43832 (vbe_test_mod_SOURCES): Likewise.
43833 (vbe_test_mod_CFLAGS): Likewise.
43834 (vbeinfo_mod_SOURCES): New variable.
43835 (vbeinfo_mod_CFLAGS): Likewise.
43836 (vbetest_mod_SOURCES): Likewise.
43837 (vbetest_mod_CFLAGS): Likewise.
43838
43839 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
43840
43841 * normal/misc.c: New file.
43842
43843 * DISTLIST: Added normal/misc.c.
43844
43845 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
43846 DISK to HOOK. Call HOOK with DISK.
43847 * partmap/apple.c (apple_partition_map_iterate): Likewise.
43848 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43849 * partmap/sun.c (sun_partition_map_iterate): Likewise.
43850
43851 * normal/menu_entry.c (struct screen): Added a new member
43852 "completion_shown".
43853 (completion_buffer): New global variable.
43854 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
43855 (store_completion): New function.
43856 (complete): Likewise.
43857 (clear_completions): Likewise.
43858 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
43859 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
43860 a tab, call complete.
43861
43862 * normal/completion.c (disk_dev): Removed.
43863 (print_simple_completion): Likewise.
43864 (print_partition_completion): Likewise.
43865 (print_func): New global variable.
43866 (add_completion): Do not take the arguments WHAT or PRINT any
43867 longer. Added a new argument TYPE. Instead of printing directly,
43868 call PRINT_FUNC if not NULL.
43869 All callers changed.
43870 (complete_device): Use a local variable DEV instead of
43871 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
43872 (grub_normal_do_completion): Take a new argument HOOK. Do not
43873 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
43874 empty string, return NULL instead.
43875 All callers changed.
43876
43877 * normal/cmdline.c (print_completion): New function.
43878
43879 * kern/partition.c (grub_partition_iterate): Add an argument DISK
43880 to HOOK.
43881 All callers changed.
43882
43883 * kern/disk.c (grub_print_partinfo): Removed.
43884
43885 * include/grub/partition.h (struct grub_partition_map): Add a new
43886 argument DISK into HOOK of ITERATE.
43887 (grub_partition_iterate): Add a new argument DISK to HOOK.
43888
43889 * include/grub/normal.h (enum grub_completion_type): New enum.
43890 (grub_completion_type_t): New type.
43891 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
43892 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
43893 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
43894 (GRUB_COMPLETION_TYPE_FILE): Likewise.
43895 (grub_normal_do_completion): Added a new argument HOOK.
43896 (grub_normal_print_device_info): New prototype.
43897
43898 * include/grub/disk.h (grub_print_partinfo): Removed.
43899
43900 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
43901 (normal_mod_SOURCES): Likewise.
43902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43903 (normal_mod_SOURCES): Likewise.
43904
43905 * commands/ls.c (grub_ls_list_disks): Use
43906 grub_normal_print_device_info instead of grub_print_partinfo. Free
43907 PNAME.
43908 (grub_ls_list_files): Use grub_normal_print_device_info instead of
43909 duplicating the code.
43910
43911 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43912
43913 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
43914 follow GCS more precisely.
43915 * commands/i386/pc/vbe_test.c: Likewise.
43916 * include/grub/i386/pc/vbe.h: Likewise.
43917 * term/i386/pc/vesafb.c: Likewise.
43918 * video/i386/pc/vbe.c: Likewise.
43919
43920 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43921
43922 * DISTLIST: Added term/i386/pc/vesafb.c
43923 DISTLIST: Added video/i386/pc/vbe.c
43924 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
43925 DISTLIST: Added commands/i386/pc/vbe_test.c.
43926 * commands/i386/pc/vbe_list_modes.c: New file.
43927 * commands/i386/pc/vbe_test.c: Likewise.
43928 * term/i386/pc/vesafb.c: Likewise.
43929 * video/i386/pc/vbe.c: Likewise.
43930 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
43931 (grub_vbe_probe) Added prototype.
43932 (grub_vbe_set_video_mode) Likewise.
43933 (grub_vbe_get_video_mode) Likewise.
43934 (grub_vbe_get_video_mode_info) Likewise.
43935 (grub_vbe_set_pixel_rgb) Likewise.
43936 (grub_vbe_set_pixel_index) Likewise.
43937 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
43938 (pkgdata_MODULES): Added vesafb.mod.
43939 (pkgdata_MODULES): Added vbe_list_modes.mod.
43940 (pkgdata_MODULES): Added vbe_test.mod.
43941 (vbe_mod_SOURCES): Added.
43942 (vbe_mod_CFLAGS): Likewise.
43943 (vesafb_mod_SOURCES): Likewise.
43944 (vesafb_mod_CFLAGS): Likewise.
43945 (vbe_list_modes_mod_SOURCES): Likewise.
43946 (vbe_list_modes_mod_CFLAGS): Likewise.
43947 (vbe_test_mod_SOURCES): Likewise.
43948 (vbe_test_mod_CFLAGS): Likewise.
43949
43950 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
43951
43952 * normal/command.c (grub_command_execute): If INTERACTIVE is
43953 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
43954 CMDLINE. Disable the pager if INTERACTIVE is true.
43955 All callers are changed.
43956
43957 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
43958 before reading a config file.
43959 * normal/main.c (read_config_file): Even if a command is not
43960 found, register it if it is within an entry.
43961
43962 * util/grub-emu.c: Include sys/types.h and unistd.h.
43963 (options): Added --hold.
43964 (struct arguments): Added a new member "hold".
43965 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
43966 missing.
43967 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
43968 cleared by a debugger, if it is not zero.
43969
43970 * include/grub/normal.h (grub_command_execute): Add an argument
43971 INTERACTIVE.
43972
43973 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
43974
43975 * DISTLIST: Added include/grub/i386/pc/vbe.h.
43976
43977 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
43978
43979 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
43980 program with another one, because the old one didn't detect a bug
43981 in gcc-3.4. Always use regparm 2, because the new test is still
43982 not enough for gcc-4.0. Someone must investigate a simple test
43983 case which detects a bug in gcc-4.0.
43984
43985 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
43986
43987 * DISTLIST: Added normal/completion.c.
43988
43989 * normal/completion.c: New file.
43990
43991 * term/i386/pc/console.c (grub_console_getwh): New function.
43992 (grub_console_term): Assign grub_console_getwh to getwh.
43993
43994 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
43995 function is defined in normal/completion.c as
43996 grub_normal_do_completion.
43997 (grub_cmdline_get): Use grub_normal_do_completion instead of
43998 grub_tab_complete.
43999
44000 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44001 returns non-zero, otherwise return 0.
44002 (grub_partition_iterate): First, probe the partition map. Then,
44003 call ITERATE only for this partition map.
44004
44005 * kern/misc.c (grub_strncmp): Rewritten.
44006
44007 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44008 returns non-zero. Otherwise return 0.
44009
44010 * include/grub/partition.h (grub_partition_map_iterate): Return
44011 int instead of void.
44012
44013 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44014
44015 * include/grub/misc.h (grub_strncmp): Change the type of N to
44016 grub_size_t.
44017
44018 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44019 of void.
44020
44021 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44022 unsigned explicitly before comparing it with I.
44023
44024 * kern/main.c (grub_env_write_root): Add the attribute unused into
44025 VAR.
44026
44027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44028 normal/completion.c.
44029 (normal_mod_SOURCES): Likewise.
44030 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44031 (normal_mod_SOURCES): Likewise.
44032
44033 * normal/command.c (grub_iterate_commands): If ITERATE returns
44034 non-zero, return one immediately.
44035
44036 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44037
44038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44039 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44040 descriptions.
44041 (grub_vbe_get_controller_info): New function.
44042 (grub_vbe_get_mode_info): Likewise.
44043 (grub_vbe_set_mode): Likewise.
44044 (grub_vbe_get_mode): Likewise.
44045 (grub_vbe_set_memory_window): Likewise.
44046 (grub_vbe_get_memory_window): Likewise.
44047 (grub_vbe_set_scanline_length): Likewise.
44048 (grub_vbe_get_scanline_length): Likewise.
44049 (grub_vbe_set_display_start): Likewise.
44050 (grub_vbe_get_display_start): Likewise.
44051 (grub_vbe_set_palette_data): Likewise.
44052 * include/grub/i386/pc/vbe.h: New file.
44053
44054 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44055
44056 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44057 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44058 * DISTLIST: Likewise.
44059 * kern/ieee1275/of.c: Moved to ...
44060 * kern/ieee1275/ieee1275.c: ... here.
44061
44062 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44063
44064 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44065 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44066 Pass 0 as `end' parameter to grub_strtoul().
44067
44068 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44069
44070 * include/grub/powerpc/ieee1275/console.h: Do not include
44071 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44072 ifdef.
44073 (grub_console_cur_color): Remove i386-specific prototype.
44074 (grub_console_real_putchar): Likewise.
44075 (grub_console_checkkey): Likewise.
44076 (grub_console_getkey): Likewise.
44077 (grub_console_getxy): Likewise.
44078 (grub_console_gotoxy): Likewise.
44079 (grub_console_cls): Likewise.
44080 (grub_console_setcursor): Likewise.
44081 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44082 Include <grub/machine/console.h>.
44083 * term/ieee1275/ofconsole.c: Likewise.
44084
44085 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44086
44087 * Makefile.in (LIBLZO): New variable.
44088
44089 * configure.ac: Check for LZO version 2.
44090
44091 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44092 lzo/lzo1x.h instead of lzo1x.h.
44093
44094 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44095 of -llzo.
44096
44097 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44098 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44099
44100 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44101 copying the data from PARTITION to P.
44102
44103 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44104
44105 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44106 negative, unload the module.
44107
44108 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44109 map is "pc_partition_map" but not "pc".
44110 (usage): Fix the description. The options are --boot-image and
44111 --core-image but not --boot-file or --core-file.
44112 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44113 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44114 DEFAULT_DIRECTORY.
44115
44116 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44117 --core-file. Specify INSTALL_DEVICE as an argument.
44118
44119 * util/console.c: Include config.h.
44120 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44121 [HAVE_NCURSES_H]: Include ncurses.h.
44122 [HAVE_CURSES_H]: Include curses.h.
44123 [!A_NORMAL] (A_NORMAL): Defined as zero.
44124 [!A_STANDOUT] (A_STANDOUT): Likewise.
44125
44126 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44127 -lncurses.
44128 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44129
44130 * configure.ac: Check for curses libraries and headers.
44131
44132 * Makefile.in (LIBCURSES): New variable.
44133
44134 * genmk.rb (Script::rule): Set the executable bits.
44135
44136 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44137 name of the PC partition map is "pc_partition_map" but not "pc".
44138
44139 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44140
44141 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44142 (modules): Likewise.
44143 (usage): Added descriptions for --modules and --grub-probefs.
44144 Handle --modules and --grub-probefs. Save the arguments in MODULES
44145 and GRUB_PROBEFS, respectively.
44146 Auto-detect a filesystem module against GRUBDIR. If the result is
44147 empty and modules are not specified explicitly, abort the
44148 installation. Add the result to MODULES.
44149
44150 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44151 disk/powerpc/ieee1275/ofdisk.c,
44152 include/grub/powerpc/ieee1275/init.h and
44153 term/powerpc/ieee1275/ofconsole.c.
44154 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44155 term/ieee1275/ofconsole.c.
44156
44157 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44158
44159 * COPYING: Upgraded to the latest version. Only the address of the
44160 FSF office has changed.
44161
44162 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44163
44164 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44165 kern/ieee1275.c with kern/ieee1275/of.c.
44166
44167 * kern/ieee1275.c: Moved to ...
44168 * kern/ieee1275/of.c: ... here.
44169
44170 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44171
44172 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44173 readability.
44174
44175 * config.guess: Updated to the latest version from gnulib.
44176 * config.sub: Likewise.
44177 * install.sh: Likewise.
44178 * mkinstalldirs: Likewise.
44179
44180 * include/grub/console.h: Removed. This file is arch-specific. Do
44181 not put this in include/grub.
44182
44183 * include/grub/i386/pc/console.h: Resurrected.
44184
44185 * util/console.c: Include grub/machine/console.h instead of
44186 grub/console.h.
44187 * util/grub-emu.c: Likewise.
44188
44189 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44190
44191 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44192 hardcoded value.
44193
44194 From Vincent Pelletier <subdino2004@yahoo.fr>
44195 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44196 Redefined to use grub_getwh.
44197 (grub_term): New member named getwh.
44198 (grub_getwh): New prototype.
44199 * kern/term.c (grub_getwh): New function.
44200 * term/i386/pc/console.c (grub_console_getwh): New function.
44201 (grub_console_term): New member `getwh'.
44202 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44203 (grub_vga_term): New member `getwh'.
44204 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44205 grub_ssize_t.
44206 (grub_ofconsole_getw): New function.
44207 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44208 (grub_ofconsole_term): New field named getwh and new initial
44209 value.
44210
44211 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44212
44213 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44214 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44215 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44216 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44217 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44218 of <grub/machine/ieee1275.h>.
44219 * commands/ieee1275/reboot.c: Likewise.
44220 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44221 * kern/ieee1275.c: ... to here. All users updated. Change all
44222 parameter structs to use new type `grub_ieee1275_cell_t'.
44223 * term/powerpc/ieee1275/ofconsole.c: Move ...
44224 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44225 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44226 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44227 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44228 to return int.
44229 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44230 Remove unused prototypes. All users updated.
44231 * include/grub/powerpc/ieee1275/console.h: Removed.
44232 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44233 `grub_ieee1275_cell_t'.
44234 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44235 Cast comparisons with -1 to the correct type.
44236 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44237 type to match `grub_ieee1275_entry_fn'.
44238
44239 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44240
44241 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44242
44243 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44244 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44245 partmap/sun.c.
44246 (grub_probefs_SOURCES): New variable.
44247
44248 * util/i386/pc/grub-probefs.c: New file.
44249
44250 * util/i386/pc/grub-setup.c (main): Call
44251 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44252 grub_hfs_init and grub_jfs_init to initialize the system. Call
44253 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44254 grub_pc_partition_map_fini to finish the system.
44255
44256 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44257
44258 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44259 function.
44260 (grub_multiboot_load_elf32): Likewise.
44261 (grub_multiboot_is_elf64): Likewise.
44262 (grub_multiboot_load_elf64): Likewise.
44263 (grub_multiboot_load_elf): Likewise.
44264 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44265 an ELF32 or ELF64 file.
44266 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44267
44268 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44269 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44270 NULL before calling FS->LABEL.
44271 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44272 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44273 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44274 before calling FS->LABEL.
44275
44276 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44277
44278 * util/i386/pc/grub-install.in (datadir): New variable.
44279 (libdir): Removed.
44280 (pkgdatadir): New variable.
44281 (pkglibdir): Removed.
44282
44283 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44284
44285 * DISTLIST: Added util/i386/pc/grub-install.in.
44286
44287 * util/i386/pc/grub-install.in: New file.
44288
44289 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44290 (grub_install_SOURCES): Likewise.
44291
44292 * genmk.rb: Added support for scripts.
44293 (Script): New class.
44294 (scripts): New variable.
44295
44296 * Makefile.in (install-local): Install sbin_SCRIPTS by
44297 INSTALL_SCRIPT.
44298 (uninstall): Remove sbin_SCRIPTS.
44299
44300 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44301 device, try to get a GRUB device by
44302 grub_util_biosdisk_get_grub_dev.
44303 Free DEST_DEV.
44304
44305 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44306 description for --device-map.
44307
44308 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44309
44310 Change the semantics of variable hooks. They now return strings
44311 instead of error values.
44312
44313 * util/i386/pc/grub-setup.c: Include grub/env.h.
44314 (setup): Use grub_device_set_root instead of grub_env_set.
44315
44316 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44317 grub_env_get instead of grub_device_set_root and
44318 grub_device_get_root, respectively.
44319
44320 * kern/main.c (grub_env_write_root): New function.
44321 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44322 grub_env_set instead of grub_device_set_root.
44323
44324 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44325 many variables.
44326 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44327 rather than calling ENV->WRITE_HOOK afterwards.
44328 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44329 passing a pointer of a pointer.
44330 (grub_register_variable_hook): Change the types of "read_hook" and
44331 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44332 respectively.
44333 Allocate the default empty string on the heap, because this string
44334 may be freed later.
44335
44336 * kern/device.c: Include grub/env.h.
44337 (grub_device_set_root): Removed.
44338 (grub_device_get_root): Likewise.
44339 (grub_device_open): Use grub_env_get instead of
44340 grub_device_get_root.
44341
44342 * include/grub/env.h (grub_env_read_hook_t): New type.
44343 (grub_env_write_hook_t): Likewise.
44344 (grub_env_var): Change the types of "read_hook" and "write_hook"
44345 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44346 (grub_register_variable_hook): Likewise.
44347
44348 * include/grub/device.h (grub_device_set_root): Removed.
44349 (grub_device_set_root): Likewise.
44350
44351 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44352 make sure that DIRNAME terminates with '/', so that
44353 grub_fat_find_dir will fail if PATH is not a directory.
44354
44355 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44356 from DIRNAME.
44357 Use the qualifier auto for print_files and print_files_long.
44358 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44359 as a regular file.
44360 Put a newline only if there is no error.
44361 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44362 used.
44363
44364 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44365
44366 * kern/partition.c (grub_partition_probe): Initialize PART to
44367 NULL. Otherwise, when no partition map is registered, this returns
44368 a garbage.
44369
44370 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44371
44372 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44373 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44374 valid.
44375
44376 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44377
44378 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44379 information on each device, if it does not have partitions. Print
44380 "Device" instead of "Disk", because this function is not specific
44381 to disk devices.
44382
44383 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44384 static to ensure that it is put on the memory rather than a
44385 register.
44386
44387 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44388
44389 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44390 (grub_cat_init): Likewise.
44391 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44392 (options): Likewise.
44393 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44394 (grub_configfile_init): Likewise.
44395 * font/manager.c (GRUB_MOD_INIT): Likewise.
44396 * commands/help.c (GRUB_MOD_INIT): Likewise.
44397 (grub_help_init): Likewise.
44398 * normal/command.c (grub_command_init): Likewise.
44399 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44400 * disk/loopback.c (grub_loop_init): Likewise.
44401 (GRUB_MOD_INIT): Likewise.
44402 * commands/ls.c (grub_ls_init): Likewise.
44403 (GRUB_MOD_INIT): Likewise.
44404 (options): Likewise.
44405 * commands/boot.c (grub_boot_init): Likewise.
44406 (GRUB_MOD_INIT): Likewise.
44407 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44408 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44409 (GRUB_MOD_INIT): Likewise.
44410 * commands/cmp.c (grub_cmp_init): Likewise.
44411 (GRUB_MOD_INIT): Likewise.
44412
44413 * normal/arg.c: Use <> instead of "" to include header files.
44414 (SHORT_ARG_HELP): New macro.
44415 (SHORT_ARG_USAGE): Likewise.
44416 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44417 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44418 descriptions.
44419 (find_short): Check if C is 'h' or 'u' explicitly.
44420 (grub_arg_show_help): Use space characters instead of tabs. Treat
44421 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44422 are shown with --help and --usage only if they are not used for
44423 the command itself.
44424 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44425 'h' and 'u'.
44426
44427 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44428 const into "longarg". Change the type of "shortarg" to int.
44429
44430 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44431
44432 * boot/i386/pc/boot.S (boot_drive_check): New label.
44433
44434 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44435 macro.
44436
44437 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44438 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44439
44440 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44441
44442 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44443 When turning off Gate A20, skip the check and return immediately,
44444 because this is not fatal usually.
44445
44446 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44447
44448 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44449 be 0x7C00 instead of 0x8000.
44450
44451 * boot/i386/pc/pxeboot.S: Rewritten.
44452
44453 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44454 EXT_C.
44455 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44456 result.
44457
44458 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44459
44460 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44461 robustness. This routine now supports a BIOS call and System
44462 Control Port A to modify the gate A20.
44463
44464 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44465 Increased to 0x440.
44466
44467 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44468
44469 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44470 device path and resulting ihandle.
44471 (grub_ofdisk_close): dprintf the ihandle being closed.
44472 (grub_ofdisk_read): dprintf function parameters.
44473 * kern/mm.c (grub_mm_init_region): Likewise.
44474 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44475 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44476 size, and boot arguments.
44477 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44478 before loading into memory.
44479 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44480 before loading into memory.
44481
44482 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44483
44484 * kern/mm.c: Added much documentation.
44485 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44486 8, set to 5 instead of 8.
44487
44488 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44489
44490 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44491
44492 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44493 (grub_mkdevicemap_SOURCES): New variable.
44494
44495 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44496 lib/device.c of GRUB Legacy.
44497
44498 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44499
44500 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44501 instead of PATH is NULL.
44502
44503 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44504
44505 * commands/cmp.c (BUFFER_SIZE): New macro.
44506 (grub_cmd_cmp): Close the right file at the right time. Compare
44507 only data just read. Don't report files of different size as
44508 identical. Dynamically allocate buffers. Move variable
44509 declarations at the beginning of function.
44510
44511 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44512
44513 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44514 reverse.
44515
44516 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44517
44518 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44519 when backspace is pressed at beginning of line.
44520
44521 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44522
44523 * DISTLIST: Added genfslist.sh.
44524
44525 * normal/main.c (fs_module_list): New variable.
44526 (autoload_fs_module): New function.
44527 (read_fs_list): Likewise.
44528 (grub_normal_execute): Call read_fs_list.
44529
44530 * kern/fs.c (grub_fs_autoload_hook): New variable.
44531 (grub_fs_probe): Added support for auto-loading.
44532
44533 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44534 (grub_fs_module_list_t): New type.
44535
44536 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44537 (grub_fs_autoload_hook): New prototype.
44538
44539 * genfslist.sh: New file.
44540
44541 * genmk.rb: Added a rule to generate a filesystem list.
44542
44543 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44544
44545 * configure.ac: Fix the test for cross-compiling.
44546
44547 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44548 define GRUB_UTIL anymore.
44549
44550 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
44551 so this function works on other systems than just big endian.
44552 (load_modules): Likewise.
44553 (add_segments): Likewise.
44554
44555 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
44556
44557 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
44558 contains `l' modifier, get a long from va_arg().
44559
44560 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
44561
44562 * kern/mm.c (grub_free): If the next free block which is being
44563 merged is the first free block, set the first block to the block
44564 being freed.
44565 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
44566
44567 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44568
44569 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
44570 `grub_ieee1275_chosen'.
44571
44572 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44573
44574 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
44575 (grub_ieee1275_chosen): New variable.
44576 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
44577 `chosen'.
44578 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
44579 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
44580 Rename first argument to `phandle' for consistency.
44581 (grub_ieee1275_get_property_length): Likewise.
44582 (grub_ieee1275_next_property): Likewise. Change type of first argument
44583 to grub_ieee1275_phandle_t.
44584 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
44585 Move export next to declaration.
44586 (grub_ieee1275_chosen): New variable.
44587 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
44588 Correct cosmetic typo.
44589 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
44590 `grub_ieee1275_chosen'.
44591 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
44592 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
44593 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
44594 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
44595 `grub_ieee1275_chosen'.
44596
44597 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
44598
44599 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
44600 /chosen/bootargs.
44601 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
44602 /chosen/bootargs as "variable=value" pairs.
44603
44604 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
44605
44606 * include/grub/misc.h (grub_dprintf): New macro.
44607 (grub_real_dprintf): New prototype.
44608 (grub_strword): Likewise.
44609 (grub_iswordseparator): Likewise.
44610 * kern/misc.c (grub_real_dprintf): New function.
44611 (grub_strword): Likewise.
44612 (grub_iswordseparator): Likewise.
44613
44614 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
44615
44616 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
44617 (roundup): Remove macro.
44618 (grub_ieee1275_flags): Make static.
44619 (grub_ieee1275_realmode): Remove.
44620 (grub_ieee1275_test_flag): New function.
44621 (grub_ieee1275_set_flag): Likewise.
44622 (find_options): Rename to `grub_ieee1275_find_options'; update
44623 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
44624 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
44625 (cmain): New prototype.
44626 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
44627 `grub_ieee1275_flags' directly.
44628 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
44629 machine/biosdisk.h.
44630 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
44631 Don't include grub/machine/init.h.
44632 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
44633 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
44634 Remove prototype.
44635 (grub_ieee1275_realmode): Likewise.
44636 (grub_ieee1275_flag): New enum.
44637 (grub_ieee1275_test_flag): New prototype.
44638 (grub_ieee1275_set_flag): New prototype.
44639 * include/grub/powerpc/ieee1275/init.h: Remove file.
44640 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
44641 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
44642 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
44643 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
44644 comment.
44645 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
44646 `grub_ieee1275_test_flag'.
44647 (grub_ieee1275_encode_devname): Likewise.
44648
44649 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
44650
44651 * include/grub/powerpc/ieee1275/ieee1275.h
44652 (grub_ieee1275_encode_devname): New prototype.
44653 (grub_ieee1275_get_filename): Likewise.
44654 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
44655 function.
44656 (grub_set_prefix): Likewise.
44657 (grub_machine_init): Call grub_set_prefix.
44658 * kern/powerpc/ieee1275/openfw.c: Fix typos.
44659 (grub_parse_type): New enum.
44660 (grub_ieee1275_get_devargs): New function.
44661 (grub_ieee1275_get_devname): Likewise.
44662 (grub_ieee1275_parse_args): Likewise.
44663 (grub_ieee1275_get_filename): Likewise.
44664 (grub_ieee1275_encode_devname): Likewise.
44665
44666 2005-03-30 Marco Gerards <metgerards@student.han.nl>
44667
44668 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
44669 `grub_loader_unset'.
44670
44671 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
44672
44673 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
44674 instead of grub_ieee1275_interpret.
44675 (grub_halt_init): New function.
44676 (grub_halt_fini): Likewise.
44677 (GRUB_MOD_INIT): Correct message grammar.
44678 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
44679 instead of grub_ieee1275_interpret.
44680 (grub_reboot_init): New function.
44681 (grub_reboot_fini): Likewise.
44682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
44683 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
44684 util/i386/pc/misc.c with commands/ieee1275/halt.c,
44685 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
44686 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
44687 function.
44688 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
44689 Add prototype.
44690 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
44691 prototype.
44692 (grub_halt): Likewise.
44693 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
44694 (cmain): Remove __attribute__((unused)).
44695 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
44696 (grub_heap_len): Likewise.
44697 (grub_machine_fini): New function.
44698 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
44699 (grub_halt): Likewise.
44700 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
44701 function.
44702 * util/powerpc/ieee1275/misc.c: New file.
44703
44704 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44705
44706 * DISTLIST: New file.
44707 * gendistlist.sh: Likewise.
44708
44709 * Makefile.in (COMMON_DISTFILES): Removed.
44710 (BOOT_DISTFILES): Likewise.
44711 (CONF_DISTFILES): Likewise.
44712 (DISK_DISTFILES): Likewise.
44713 (FS_DISTFILES): Likewise.
44714 (INCLUDE_DISTFILES): Likewise.
44715 (KERN_DISTFILES): Likewise.
44716 (LOADER_DISTFILES): Likewise.
44717 (TERM_DISTFILES): Likewise.
44718 (UTIL_DISTFILES): Likewise.
44719 (DISTFILES): Likewise.
44720 (uninstall): Uninstall files in $(pkgdata_DATA).
44721 (DISTLIST): New target.
44722 (distdir): Use the contents of the file DISTLIST to get a list of
44723 distributed files.
44724
44725 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44726
44727 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
44728 descriptor. This is ported from GRUB Legacy.
44729
44730 * gencmdlist.sh: Added an extra semicolon to make it work with
44731 old sed versions. Reported by Robert Bihlmeyer
44732 <robbe@orcus.priv.at>.
44733
44734 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
44735
44736 Automatic loading of commands is supported.
44737
44738 * normal/main.c (read_command_list): New function.
44739 (grub_normal_execute): Call read_command_list.
44740
44741 * normal/command.c (grub_register_command): Return zero or CMD.
44742 Allocate CMD->NAME from the heap.
44743 Initialize CMD->MODULE_NAME to zero.
44744 Find the same name as well. If the same command is found and it is
44745 a dummy command, overwrite members. If it is not a dummy command,
44746 return zero.
44747 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
44748 (grub_command_find): If a dummy command is found, load a module
44749 and retry to find a command only once.
44750
44751 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
44752 make sure that each command is loaded.
44753
44754 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
44755 macro.
44756 (struct grub_command): Remove const from the member `name'.
44757 Add a new member `module_name'.
44758 (grub_register_command): Return grub_command_t.
44759
44760 * commands/help.c (grub_cmd_help): Call grub_command_find to make
44761 sure that each command is loaded.
44762
44763 * genmk.rb (PModule::rule): Specify a module name without the
44764 suffix ".mod" to gencmdlist.sh.
44765
44766 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44767
44768 * gencmdlist.sh: New file.
44769
44770 * genmk.rb (PModule::rule): Generate a rule for a command list.
44771 Clean command.lst.
44772 Generate command.lst from $(COMMANDFILES).
44773
44774 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
44775 (DATA): Added $(pkgdata_DATA).
44776 (install-local): Install files in $(pkgdata_DATA).
44777
44778 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44779
44780 * term/i386/pc/vga.c (debug_command): Removed.
44781 (GRUB_MOD_INIT): Do not register the command "debug".
44782
44783 From Hollis Blanchard:
44784 * commands/configfile.c: New file.
44785 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44786 commands/configfile.c.
44787 (pkgdata_MODULES): Added configfile.mod.
44788 (configfile_mod_SOURCES): New variable.
44789 (configfile_mod_CFLAGS): Likewise.
44790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44791 commands/configfile.c.
44792 (pkgdata_MODULES): Added configfile.mod.
44793 (configfile_mod_SOURCES): New variable.
44794 (configfile_mod_CFLAGS): Likewise.
44795 * util/grub-emu.c (main): Call grub_configfile_init and
44796 grub_configfile_fini.
44797 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
44798 prototype.
44799 [GRUB_UTIL] (grub_configfile_fini): Likewise.
44800
44801 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44802
44803 * normal/arg.c (grub_arg_show_help): Do not show the bug report
44804 address.
44805
44806 * commands/help.c (grub_cmd_help): Do not print newlines after
44807 the last command in print_command_help.
44808
44809 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44810
44811 * commands/default.h: New file.
44812 * commands/timeout.h: Likewise.
44813 * normal/context.c: Likewise.
44814
44815 * util/misc.c: Do not include sys/times.h.
44816 Include sys/time.h and grub/machine/time.h.
44817 (grub_get_rtc): Rewritten with gettimeofday.
44818
44819 * util/grub-emu.c (main): Call grub_default_init and
44820 grub_timeout_init before grub_normal_init, and call
44821 grub_timeout_fini and grub_default_fini after grub_main.
44822
44823 * util/console.c (grub_ncurses_checkkey): Return the read
44824 character or -1.
44825
44826 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
44827 timeouts.
44828
44829 * normal/main.c (read_config_file): Push MENU. If this fails,
44830 print an error and wait for a user input.
44831 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
44832 If a menu is empty or an error occurs, pop MENU.
44833 (grub_normal_execute): Pop and free MENU after grub_menu_run
44834 returns.
44835
44836 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
44837
44838 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
44839 include time.h.
44840 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44841 without GRUB_UTIL.
44842 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
44843 time.h.
44844 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44845 without GRUB_UTIL.
44846
44847 * include/grub/normal.h (struct grub_menu_list): New struct.
44848 (grub_menu_list_t): New type.
44849 (struct grub_context): New struct.
44850 (grub_context_t): New type.
44851 (grub_register_command): Got rid of EXPORT_FUNC.
44852 (grub_unregister_command): Likewise.
44853 (grub_context_get): New prototype.
44854 (grub_context_get_current_menu): Likewise.
44855 (grub_context_push_menu): Likewise.
44856 (grub_context_pop_menu): Likewise.
44857 [GRUB_UTIL] (grub_default_init): Likewise.
44858 [GRUB_UTIL] (grub_default_fini): Likewise.
44859 [GRUB_UTIL] (grub_timeout_init): Likewise.
44860 [GRUB_UTIL] (grub_timeout_fini): Likewise.
44861
44862 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
44863 commands/timeout.c and normal/context.c.
44864 (pkgdata_MODULES): Added default.mod and timeout.mod.
44865 (normal_mod_SOURCES): Added normal/context.c.
44866 (default_mod_SOURCES): New variable.
44867 (default_mod_CFLAGS): Likewise.
44868 (timeout_mod_SOURCES): Likewise.
44869 (timeout_mod_CFLAGS): Likewise.
44870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
44871 conf/i386-pc.rmk.
44872 (pkgdata_MODULES): Added default.mod and timeout.mod.
44873 (normal_mod_SOURCES): Added normal/context.c.
44874 (default_mod_SOURCES): New variable.
44875 (default_mod_CFLAGS): Likewise.
44876 (timeout_mod_SOURCES): Likewise.
44877 (timeout_mod_CFLAGS): Likewise.
44878
44879 * Makefile.in (all-local): Added $(MKFILES).
44880
44881 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
44882
44883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
44884 (grub_emu_SOURCES): Likewise.
44885 (pkgdata_MODULES): Add `sun.mod'.
44886 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44888 `partmap/sun.c'.
44889 (pkgdata_MODULES): Add `sun.mod'.
44890 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44891 * include/grub/partition.h (grub_sun_partition_map_init): New
44892 prototype.
44893 (grub_sun_partition_map_fini): Likewise.
44894 * partmap/sun.c: New file.
44895 * util/grub-emu.c (main): Initialize and de-initialize the sun
44896 partitionmap support.
44897
44898 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
44899
44900 This implements an Emacs-like menu entry editor.
44901
44902 * normal/menu_entry.c: New file.
44903
44904 * util/console.c (grub_ncurses_putchar): Translate some Unicode
44905 characters to ASCII.
44906 (saved_char): New variable.
44907 (grub_ncurses_checkkey): Rewritten completely.
44908 (grub_ncurses_getkey): Likewise.
44909 (grub_ncurses_init): Call raw instead of cbreak.
44910
44911 * normal/menu.c (print_entry): Do not put a space.
44912 (init_page): Renamed to ...
44913 (grub_menu_init_page): ... this. All callers changed.
44914 (edit_menu_entry): Removed.
44915 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
44916
44917 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
44918
44919 * kern/misc.c (grub_vprintf): Call grub_refresh.
44920
44921 * normal/menu.c (DISP_LEFT): Renamed to ...
44922 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
44923 * normal/menu.c (DISP_UP): Renamed to ...
44924 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
44925 * normal/menu.c (DISP_RIGHT): Renamed to ...
44926 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
44927 * normal/menu.c (DISP_DOWN): Renamed to ...
44928 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
44929 * normal/menu.c (DISP_HLINE): Renamed to ...
44930 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
44931 * normal/menu.c (DISP_VLINE): Renamed to ...
44932 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
44933 * normal/menu.c (DISP_UL): Renamed to ...
44934 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
44935 * normal/menu.c (DISP_UR): Renamed to ...
44936 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
44937 * normal/menu.c (DISP_LL): Renamed to ...
44938 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
44939 * normal/menu.c (DISP_LR): Renamed to ...
44940 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
44941 * normal/menu.c (TERM_WIDTH): Renamed to ...
44942 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
44943 * normal/menu.c (TERM_HEIGHT): Renamed to ...
44944 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
44945 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
44946 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
44947 * normal/menu.c (TERM_MARGIN): Renamed to ...
44948 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
44949 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
44950 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
44951 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
44952 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
44953 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
44954 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
44955 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
44956 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
44957 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
44958 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
44959 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
44960 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
44961 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
44962 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
44963 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
44964 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
44965 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
44966 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
44967 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
44968 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
44969 All callers changed.
44970
44971 * include/grub/normal.h: New prototype.
44972
44973 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44974 normal/menu_entry.c.
44975 (normal_mod_SOURCES): Likewise.
44976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44977 (normal_mod_SOURCES): Likewise.
44978
44979 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
44980
44981 * include/grub/normal.h (grub_halt_init): New prototype.
44982 (grub_halt_fini): Likewise.
44983 (grub_reboot_init): Likewise.
44984 (grub_reboot_fini): Likewise.
44985
44986 * util/grub-emu.c: Include signal.h.
44987 (main_env): New global variable.
44988 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
44989 catch C-c.
44990 (grub_machine_fini): New function.
44991 (main): Call grub_halt_init and grub_reboot_init before
44992 grub_main, and grub_reboot_fini and grub_halt_fini after it.
44993 Call setjmp with MAIN_ENV to go back afterwards.
44994 Call grub_machine_fini right before return.
44995
44996 * include/grub/util/misc.h: Include setjmp.h.
44997 (main_env): New prototype.
44998
44999 * include/grub/kernel.h (grub_machine_fini): New prototype.
45000 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45001 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45002
45003 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45004 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45005 * term/i386/pc/console.c (grub_console_fini): Likewise.
45006
45007 * util/i386/pc/misc.c: New file.
45008
45009 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45010 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45011 commands/i386/pc/reboot.c.
45012
45013 2005-02-14 Guillem Jover <guillem@hadrons.org>
45014
45015 * include/grub/dl.h (grub_dl_check_header): New prototype.
45016 (grub_arch_dl_check_header): Change return type to grub_err_t,
45017 remove size parameter and export function. Update all callers.
45018 * kern/dl.c (grub_dl_check_header): New function.
45019 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45020 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45021 are inside the core.
45022 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45023 independent ELF header checks.
45024 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45025 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45026 `grub_dl_check_header' instead of explicit checks. Check for the
45027 ELF type.
45028 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45029 `grub_dl_check_header' instead of explicit checks. Remove arch
45030 specific ELF header checks.
45031
45032 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45033 argument SIZE.
45034
45035 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45036
45037 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45038 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45039
45040 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45041
45042 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45043 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45044 (part_map_iterate): Clear `grub_errno' and return 0 if
45045 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45046 * partmap/amiga.c (amiga_partition_map_iterate): Return
45047 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45048 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45049
45050 2005-02-01 Guillem Jover <guillem@hadrons.org>
45051
45052 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45053 help info.
45054
45055 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45056
45057 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45058 Removed prototype.
45059 (grub_rescue_cmd_linux): New prototype.
45060 (grub_rescue_cmd_initrd): Likewise.
45061 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45062 `bi_rec'.
45063 (grub_linux_release_mem): Release the memory for the initrd.
45064 (grub_load_linux): Renamed from this...
45065 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45066 Changed `entry' not to be static. Loop over memory regions to
45067 find another one when the default fails.
45068 (grub_rescue_cmd_initrd): New function.
45069 (grub_linux_init): Remove function.
45070 (grub_linux_fini): Likewise.
45071 (GRUB_MOD_INIT): Register `initrd'.
45072 (GRUB_MOD_FINI): Unregister `initrd'.
45073 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45074 Function removed.
45075 (grub_linux_normal_fini): Likewise.
45076 (GRUB_MOD_INIT): Register `initrd'.
45077 (GRUB_MOD_FINI): Unregister `initrd'.
45078
45079 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45080
45081 * commands/help.c: New file.
45082 * normal/arg.c (show_help): Renamed to...
45083 (grub_arg_show_help): ... this.
45084 * commands/i386/pc/halt.c: New file.
45085 * commands/i386/pc/reboot.c: Likewise.
45086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45087 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45088 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45089 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45090 variables.
45091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45092 `commands/help.c'.
45093 (pkgdata_MODULES): Add `help.mod'.
45094 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45095 * grub/i386/pc/init.h (grub_reboot): New prototype.
45096 (grub_halt): Likewise.
45097 * include/grub/normal.h (grub_arg_show_help): New prototype.
45098 (grub_help_init): Likewise.
45099 (grub_help_fini): Likewise.
45100 * util/grub-emu.c (main): Initialize and deinitialize the help
45101 command.
45102
45103 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45104
45105 * normal/command.c (grub_command_init): Fixed the description of
45106 the `set' and `unset' commands.
45107
45108 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45109
45110 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45111 function.
45112 * commands/ieee1275/halt.c: New file.
45113 * commands/ieee1275/reboot.c: Likewise.
45114 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45115 `__attribute__ ((unused))'. Some GCS related fixed.
45116 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45117 (grub_suspend_fini): Likewise.
45118 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45119 and `halt.mod'.
45120 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45121 (halt_mod_CFLAGS): New variables.
45122 * include/grub/powerpc/ieee1275/ieee1275.h
45123 (grub_ieee1275_interpret): New prototype.
45124
45125 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45126
45127 * include/grub/misc.h (memmove): New prototype.
45128 (memcpy): Likewise.
45129
45130 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45131
45132 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45133 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45134
45135 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45136
45137 * kern/misc.c (grub_strndup): Function rewritten.
45138
45139 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45140
45141 * normal/menu.c (TERM_WIDTH): Macro redefined.
45142 (TERM_TOP_BORDER_Y): Likewise.
45143 (draw_border): Replaced while-loop by a for-loop. Make the number
45144 of lines consistent with the number of lines displayed in
45145 print_entries. Added a margin below the rectangle.
45146 (print_entry): Make the entry fit in the rectangle.
45147 (print_entries): Display the scroll arrows next to the right
45148 border.
45149
45150 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45151
45152 * fs/minix.c (grub_minix_find_file): Reserve more space for
45153 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45154 `grub_strncpy' to copy `path' into it.
45155
45156 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45157
45158 Add the loopback device, a device via which files can be accessed
45159 as devices.
45160
45161 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45162 (pkgdata_MODULES): Add loopback.mod.
45163 (loopback_mod_SOURCES): New variable.
45164 (loopback_mod_CFLAGS): Likewise.
45165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45166 `disk/loopback.c'.
45167 (pkgdata_MODULES): Add loopback.mod.
45168 (loopback_mod_SOURCES): New variable.
45169 (loopback_mod_CFLAGS): Likewise.
45170 * disk/loopback.c: new file.
45171 * include/grub/normal.h (grub_loop_init): New prototype.
45172 (grub_loop_fini): New prototype.
45173 * util/grub-emu.c (main): Initialize and de-initialize loopback
45174 support.
45175 * include/grub/disk.h (grub_disk_dev_id): Add
45176 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45177
45178 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45179
45180 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45181 function.
45182 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45183 (suspend_mod_SOURCES): New variable.
45184 (suspend_mod_CFLAGS): Likewise.
45185 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45186 New prototype.
45187 * commands/ieee1275/suspend.c: New file.
45188
45189 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45190
45191 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45192 ((unused))' to `__attribute__ ((used))'.
45193 (GRUB_MOD_FINI): Likewise.
45194 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45195 * genmk.rb (PModule): Assign space to common symbols when linking
45196 modules.
45197
45198 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45199
45200 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45201 `unsigned' arguments to `grub_size_t'.
45202 (grub_malloc): Likewise.
45203 (grub_realloc): Likewise.
45204 (grub_memalign): Likewise.
45205 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45206 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45207 * util/misc.c (grub_malloc): Likewise.
45208 (grub_realloc): Likewise.
45209 * kern/mm.c (get_header_from_pointer): Change the casts to
45210 `unsigned' into a cast to `grub_size_t'.
45211
45212 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45213 point to `currnode' when `currnode' is changed.
45214
45215 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45216 Schottelius <nico-linux@schottelius.org>.
45217
45218 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45219
45220 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45221 (note_path): Remove variable.
45222 (GRUB_IEEE1275_NOTE_NAME): New macro.
45223 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45224 (grub_ieee1275_note_hdr): New structure.
45225 (grub_ieee1275_note_desc): Likewise.
45226 (grub_ieee1275_note): Likewise.
45227 (load_note): Remove `dir' argument. All callers updated. Remove
45228 `note_img' and `path'. Do not load a file from `note_path'.
45229 Initialize a struct grub_ieee1275_note and write that to `out'.
45230 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45231
45232 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45233
45234 * util/misc.c (grub_util_read_image): Revert last change. It
45235 called `grub_util_read_at', which seeks from the beginning of the
45236 file.
45237
45238 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45239
45240 * TODO: Add note about endianness in grub-mkimage.
45241 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45242 section.
45243 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45244 (grub_mkimage_SOURCES): New target.
45245 * include/grub/kernel.h (grub_start_addr): Remove variable.
45246 (grub_end_addr): Likewise.
45247 (grub_total_module_size): Likewise.
45248 (grub_kernel_image_size): Likewise.
45249 (GRUB_MODULE_MAGIC): New constant.
45250 (grub_module_info): New structure.
45251 (grub_arch_modules_addr): New prototype.
45252 (grub_get_end_addr): Remove prototype.
45253 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45254 * include/grub/powerpc/ieee1275/kernel.h: New file.
45255 * include/grub/util/misc.h (grub_util_get_fp_size): New
45256 prototype.
45257 (grub_util_read_at): Likewise.
45258 (grub_util_write_image_at): Likewise.
45259 * kern/main.c (grub_get_end_addr): Remove function.
45260 (grub_load_modules): Call grub_arch_modules_addr instead of using
45261 grub_end_addr. Look for a grub_module_info struct in memory. Use
45262 the grub_module_info fields instead of calling grub_get_end_addr
45263 as loop conditions. Move grub_add_unused_region code here.
45264 (grub_add_unused_region): Remove function.
45265 * kern/i386/pc/init.c: Include grub/cache.h.
45266 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45267 one call to add_mem_region.
45268 (grub_arch_modules_addr): New function.
45269 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45270 (grub_total_module_size): Likewise.
45271 Include grub/machine/kernel.h.
45272 (grub_arch_modules_addr): New function.
45273 * util/grub-emu.c (grub_end_addr): Remove variable.
45274 (grub_total_module_size): Likewise.
45275 (grub_arch_modules_addr): New function.
45276 * util/misc.c: Include unistd.h.
45277 (grub_util_get_fp_size): New function.
45278 (grub_util_read_at): Likewise.
45279 (grub_util_write_image_at): Likewise.
45280 (grub_util_read_image): Call grub_util_read_at.
45281 (grub_util_write_image): Call grub_util_write_image_at.
45282 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45283 additional memory in kernel_img for a struct grub_module_info.
45284 Fill in that grub_module_info.
45285 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45286
45287 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45288
45289 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45290 New function.
45291 * include/grub/powerpc/ieee1275/ieee1275.h
45292 (grub_ieee1275_milliseconds): New prototype.
45293 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45294 Change to 1000.
45295 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45296 grub_ieee1275_milliseconds.
45297
45298 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45299
45300 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45301 variable.
45302 (find_options): New function.
45303 (cmain): Call find_options.
45304 * include/grub/powerpc/ieee1275/ieee1275.h
45305 (grub_ieee1275_realmode): New extern variable.
45306 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45307 grub_map if grub_ieee1275_realmode is false.
45308
45309 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45310
45311 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45312 lines are inserted and make it work like readline. Reported by
45313 Vincent Pelletier <subdino2004@yahoo.fr>.
45314
45315 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45316
45317 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45318
45319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45320 `kern/powerpc/cache.S'.
45321
45322 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45323
45324 * genmk.rb: Handle the `Program' class in the main loop. Written
45325 by Johan Rydberg <jrydberg@gnu.org>.
45326 (Program): New class.
45327 (programs): New variable.
45328 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45329 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45330 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45331 (help_arch): Function removed.
45332 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45333 `powerpc/libgcc.h' and `loader.h'.
45334 (pkgdata_PROGRAMS): New variable.
45335 (sbin_UTILITIES): Variable removed.
45336 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45337 (grubof_SOURCES): Variable re-defined so it only includes the
45338 core functionality.
45339 (grubof_CFLAGS): Remove `-DGRUBOF'.
45340 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45341 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45342 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45343 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45344 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45345 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45346 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45347 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45348 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45349 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45350 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45351 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45352 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45353 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45354 (pc_mod_CFLAGS): New variables.
45355 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45356 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45357 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45358 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45359 Moved from here...
45360 * include/grub/i386/pc/init.h (grub_os_area_addr)
45361 (rub_os_area_size): ... to here.
45362 * include/grub/powerpc/ieee1275/ieee1275.h
45363 (grub_ieee1275_entry_fn): Export symbol.
45364 * include/grub/powerpc/ieee1275/init.h: New file.
45365 * include/grub/powerpc/libgcc.h: Likewise.
45366 * include/grub/cache.h: Likewise.
45367 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45368 <hollis@penguinppc.org>.
45369 * kern/dl.c: Include <grub/cache.h>.
45370 (grub_dl_flush_cache): New function.
45371 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45372 for this module.
45373 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45374 (grub_console_init): Removed prototypes.
45375 (grub_machine_init): Don't initialize the modules anymore.
45376 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45377 static.
45378 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45379 Macro undef removed.
45380 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45381 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45382 relocation `R_PPC_REL32'. Return an error when the relocation is
45383 unknown.
45384 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45385 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45386 * util/misc.c (grub_arch_sync_caches): Likewise.
45387
45388 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45389
45390 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45391 `symlist.c', add `grubof_symlist.c'.
45392 (symlist.c): Variable removed.
45393 (grubof_HEADERS): Variable added.
45394 (grubof_symlist.c): New target.
45395 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45396 `kernel_img_HEADERS'.
45397 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45398 * kern/powerpc/dl.c: New file.
45399 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45400 Function removed.
45401 (grub_arch_dl_relocate_symbols): Likewise.
45402 (grub_register_exported_symbols): Likewise.
45403
45404 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45405
45406 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45407 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45408 to fail instead. Reported by Vincent Pelletier
45409 <subdino2004@yahoo.fr>.
45410
45411 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45412 it is not allocated. Reported by Vincent Pelletier
45413 <subdino2004@yahoo.fr>.
45414
45415 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45416 output so the output looks better.
45417
45418 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45419
45420 Modulize the partition map support and add support for the amiga
45421 partition map.
45422
45423 * commands/ls.c: Include <grub/partition.h> instead of
45424 <grub/machine/partition.h>.
45425 * kern/disk.c: Likewise.
45426 * kern/rescue.c: Likewise.
45427 * loader/i386/pc/chainloader.c: Likewise.
45428 * normal/cmdline.c: Likewise.
45429 * kern/powerpc/ieee1275/init.c: Likewise.
45430 (grub_machine_init): Call `grub_pc_partition_map_init',
45431 `grub_amiga_partition_map_init' and
45432 `grub_apple_partition_map_init'.
45433 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45434 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45435 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45436 `partition.h' and `pc_partition.h'.
45437 (grub_setup_SOURCES): Remove
45438 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45439 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45440 (grub_emu_SOURCES): Likewise.
45441 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45442 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45443 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45445 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45446 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45447 (grubof_SOURCES): Likewise.
45448 * disk/i386/pc/partition.c: File removed.
45449 * disk/powerpc/ieee1275/partition.c: Likewise.
45450 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45451 * include/grub/i386/pc/partition.h: Likewise.
45452 * kern/partition.c: New file.
45453 * partmap/amiga.c: Likewise.
45454 * partmap/apple.c: Likewise.
45455 * partmap/pc.c: Likewise.
45456 * include/grub/partition.h: Likewise..
45457 * include/grub/pc_partition.h: Likewise.
45458 * util/grub-emu.c: Include <grub/partition.h> instead of
45459 <grub/machine/partition.h>.
45460 (main): Call `grub_pc_partition_map_init',
45461 `grub_amiga_partition_map_init' and
45462 `grub_apple_partition_map_init' and deinitialize afterwards.
45463 * util/i386/pc/biosdisk.c: Include `#include
45464 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45465 `<grub/machine/partition.h>'.
45466 * util/i386/pc/grub-setup.c: Likewise.
45467 * util/i386/pc/biosdisk.c: Likewise.
45468 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45469 partition information in case of a PC partition.
45470 * util/i386/pc/grub-setup.c: Include `#include
45471 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45472 `<grub/machine/partition.h>'.
45473 (setup): Only access the PC specific partition information in case
45474 of a PC partition.
45475
45476 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45477
45478 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45479 (grub_longjmp): Likewise.
45480 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45481 20.
45482 * normal/powerpc/setjmp.S: New file.
45483 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45484 `normal/powerpc/setjmp.S'.
45485 (grubof_CFLAGS): Add `-DGRUBOF'.
45486 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45487 [GRUB_UTIL && !GRUBOF].
45488
45489 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45490
45491 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45492 property named `name'. Correctly handle the error returned by
45493 `grub_ieee1275_finddevice' if a device can not be opened.
45494
45495 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45496
45497 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45498 `actual' for negativity.
45499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45500 kern/fshelp.c.
45501
45502 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45503
45504 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45505 (PAGE_OFFSET): New macro.
45506 (CRTC_ADDR_PORT): Likewise.
45507 (CRTC_DATA_PORT): Likewise.
45508 (START_ADDR_HIGH_REGISTER): Likewise.
45509 (START_ADDR_LOW_REGISTER): Likewise.
45510 (GRAPHICS_ADDR_PORT): Likewise.
45511 (GRAPHICS_DATA_PORT): Likewise.
45512 (READ_MAP_REGISTER): Likewise.
45513 (INPUT_STATUS1_REGISTER): Likewise.
45514 (INPUT_STATUS1_VERTR_BIT): Likewise.
45515 (page): New variable.
45516 (wait_vretrace): New function.
45517 (set_read_map): Likewise.
45518 (set_start_address): Likewise.
45519 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45520 the right page.
45521 (check_vga_mem): Take the page into account.
45522 (write_char): Likewise.
45523 (write_cursor): Likewise.
45524 (scroll_up): Likewise. Copy the page to the page that is not
45525 shown and switch between both pages.
45526 (grub_vga_putchar): Fix off by one error.
45527 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45528 account.
45529
45530 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45531
45532 Add support for iso9660 (including rockridge).
45533
45534 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45535 (iso9660_mod_SOURCES): New variable.
45536 (iso9660_mod_CFLAGS): Likewise.
45537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45538 * include/grub/fs.h (grub_iso9660_init): New prototype.
45539 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45540 * fs/iso9660.c: New file.
45541
45542 * include/grub/misc.h (grub_strncat): New prototype.
45543 * kern/misc.c (grub_strncat): New function.
45544
45545 * fs/hfs.c (grub_hfs_mount): Translate the error
45546 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45547 * fs/jfs.c (grub_jfs_mount): Likewise.
45548 * fs/ufs.c (grub_ufs_mount): Likewise.
45549
45550 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
45551
45552 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
45553 which initialized BAT registers.
45554 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
45555 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45556 Move from here...
45557 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
45558 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45559 ... to here.
45560 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
45561 (grub_mapclaim): Likewise.
45562 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
45563 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
45564 hand.
45565
45566 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
45567
45568 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
45569 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
45570 -ffreestanding and -msoft-float.
45571
45572 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
45573
45574 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
45575 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
45576 set in grub_ieee1275_flags.
45577
45578 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
45579
45580 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
45581 prototype.
45582 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
45583 grub_console_init first.
45584 Change the memory range used for grub_ieee1275_claim and
45585 grub_mm_init_region.
45586 Print an error message if the claim fails.
45587 Include <grub/misc.h>.
45588
45589 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
45590
45591 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
45592 Call grub_children_iterate for device nodes of type `scsi',
45593 `ide', or `ata'.
45594 (grub_ofdisk_open): Remove manual device alias resolution.
45595 Fix memory leak when device cannot be opened.
45596 * include/grub/powerpc/ieee1275/ieee1275.h
45597 (grub_children_iterate): New prototype.
45598 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
45599 New function.
45600 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45601 Return -1 if args.size was -1.
45602
45603 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45604
45605 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
45606 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
45607 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
45608 Open Firmware's memory for it; claim memory from _start to _end.
45609 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
45610 (_end): New extern.
45611 (_start): Zero BSS from __bss_start to _end.
45612 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45613 New extern.
45614 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
45615
45616 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45617
45618 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
45619 -1 if args.base was -1.
45620
45621 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
45622
45623 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
45624 escape sequence instead of a literal ^L. Also call
45625 grub_ofconsole_gotoxy.
45626
45627 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
45628
45629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
45630 void * arguments to grub_addr_t. All callers updated. Also make
45631 the `result' argument optional.
45632 (grub_ieee1275_release): change void * arguments to grub_addr_t.
45633 All callers updated.
45634
45635 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
45636
45637 * commands/ls.c (grub_ls_list_files): Use the string following the
45638 initial ')', if present, as the filesystem path.
45639 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
45640
45641 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
45642
45643 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
45644
45645 Make the source code of the menu interface more readable.
45646
45647 * normal/menu.c: Include grub/mm.h.
45648 (TERM_WIDTH): New macro.
45649 (TERM_HEIGHT): Likewise.
45650 (TERM_INFO_HEIGHT): Likewise.
45651 (TERM_MARGIN): Likewise.
45652 (TERM_SCROLL_WIDTH): Likewise.
45653 (TERM_TOP_BORDER_Y): Likewise.
45654 (TERM_LEFT_BORDER_X): Likewise.
45655 (TERM_BORDER_WIDTH): Likewise.
45656 (TERM_MESSAGE_HEIGHT): Likewise.
45657 (TERM_BORDER_HEIGHT): Likewise.
45658 (TERM_NUM_ENTRIES): Likewise.
45659 (TERM_FIRST_ENTRY_Y): Likewise.
45660 (TERM_ENTRY_WIDTH): Likewise.
45661 (TERM_CURSOR_X): Likewise.
45662 (draw_border): Use macros instead of magic numbers.
45663 (print_entry): Likewise.
45664 (print_entries): Likewise.
45665 (run_menu): Likewise. Also, handle the key 'e'.
45666 (run_menu_entry): Ignore empty command lines.
45667 (print_message): Added a new argument EDIT. If EDIT is true,
45668 print a different message.
45669 (init_page): Likewise.
45670 (edit_menu_entry): New function. Not implemented yet.
45671
45672 2004-09-17 Marco Gerards <metgerards@student.han.nl>
45673
45674 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
45675 can be loaded from normal mode.
45676
45677 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
45678 `multiboot.mod'.
45679 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
45680 (multiboot_mod_CFLAGS): New variables.
45681 * loader/i386/pc/linux_normal.c: New file.
45682 * loader/i386/pc/multiboot_normal.c: Likewise.
45683
45684 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
45685 attribute `unused'.
45686
45687 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
45688 `fdiro' to read the mode information from instead of `diro'.
45689
45690 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
45691 looking up a symlink.
45692
45693 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
45694 macro.
45695 * normal/command.c (grub_command_execute): Don't parse the
45696 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
45697 flags of the command.
45698
45699 * normal/menu.c (grub_menu_run): Fix typo.
45700
45701 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
45702
45703 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
45704
45705 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
45706 `y + 1' instead of `y - 1'.
45707
45708 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
45709
45710 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
45711
45712 From Hollis Blanchard <hollis@penguinppc.org>:
45713 * kern/misc.c (memmove): New alias for grub_memmove.
45714 (memcmp): New alias for grub_memcmp.
45715 (memset): New alias for grub_memset.
45716 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45717 Change "int handle" to "grub_ieee1275_phandle_t handle".
45718 * include/grub/powerpc/ieee1275/ieee1275.h
45719 (grub_ieee1275_get_property): Likewise.
45720
45721 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
45722
45723 Added normal mode command `chainloader' as module chain.mod, which
45724 depends on normal.mod and _chain.mod.
45725
45726 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
45727 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
45728 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
45729 Deleted prototype.
45730 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
45731 but arguments parsing moved to ...
45732 (grub_chainloader_cmd): ... here. New function.
45733 * include/grub/i386/pc/chainloader.h: New file.
45734 * loader/i386/pc/chainloader_normal.c: Likewise.
45735
45736 2004-09-11 Marco Gerards <metgerards@student.han.nl>
45737
45738 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
45739 (grub_mkimage_LDFLAGS): Likewise.
45740 (grub_emu_SOURCES): Likewise.
45741 (kernel_img_HEADERS): Added fshelp.h.
45742 * fs/ext2.c: Include <grub/fshelp.h>.
45743 (FILETYPE_REG): New macro.
45744 (FILETYPE_INO_REG): Likewise.
45745 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
45746 Changed all users.
45747 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
45748 all users.
45749 (grub_fshelp_node): New struct.
45750 (grub_ext2_data): Added member `diropen'. Changed member `inode'
45751 to a pointer.
45752 (grub_ext2_get_file_block): Removed function.
45753 (grub_ext2_read_block): New function.
45754 (grub_ext2_read_file): Replaced parameter `data' by `node'.
45755 This function was written.
45756 (grub_ext2_mount): Read the root inode. Create a diropen struct.
45757 (grub_ext2_find_file): Removed function.
45758 (grub_ext2_read_symlink): New function.
45759 (grub_ext2_iterate_dir): Likewise.
45760 (grub_ext2_open): Rewritten.
45761 (grub_ext2_dir): Rewritten.
45762 * include/grub/fshelp.h: New file.
45763 * fs/fshelp.c: Likewise.
45764
45765 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
45766
45767 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
45768 (print_message): Add a missing newline.
45769 (run_menu): Added timeout support.
45770 (run_menu_entry): New local function.
45771 (grub_menu_run): Added support for booting.
45772
45773 * kern/loader.c (grub_loader_is_loaded): New function.
45774
45775 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
45776 (grub_get_rtc): Exported.
45777
45778 * include/grub/i386/pc/time.h: Include grub/symbol.h.
45779 (grub_get_rtc): Exported.
45780
45781 * include/grub/normal.h (struct grub_command_list): Remove
45782 constant from the member `command'.
45783
45784 * include/grub/loader.h (grub_loader_is_loaded): Declared.
45785
45786 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
45787
45788 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
45789
45790 2004-08-28 Marco Gerards <metgerards@student.han.nl>
45791
45792 Add support for the JFS filesystem.
45793
45794 * fs/jfs.c: New file.
45795 * include/grub/fs.h (grub_jfs_init): New prototype.
45796 (grub_jfs_fini): New prototype.
45797 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
45798 (grub_emu_SOURCES): Likewise.
45799 (pkgdata_MODULES): Add jfs.mod.
45800 (jfs_mod_SOURCES): New variable.
45801 (jfs_mod_CFLAGS): Likewise.
45802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
45803 (grubof_SOURCES): Likewise.
45804 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
45805
45806 * fs/fat.c (grub_fat_find_dir): Convert the filename little
45807 endian to the host endian.
45808 (grub_fat_utf16_to_utf8): Move function from there...
45809 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
45810 the endianness of the source string anymore.
45811 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
45812
45813 2004-08-24 Marco Gerards <metgerards@student.han.nl>
45814
45815 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
45816 (grub_boot_fini) [GRUB_UTIL]: Likewise.
45817 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
45818 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
45819
45820 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
45821 (grub_hfs_iterate_dir): Make the function static. Add prototypes
45822 for `node_found' and `it_dir'.
45823 (grub_hfs_dir): Add prototype for `dir_hook'.
45824
45825 * fs/minix.c (grub_minix_get_file_block): Add prototype for
45826 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
45827 and `indir32' to silence a gcc warning.
45828
45829 * include/grub/fs.h (grub_hfs_init): New prototype.
45830 (grub_hfs_fini): Likewise.
45831
45832
45833 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45834
45835 Each disk device has its own id now. This is useful to make use
45836 of multiple disk devices.
45837
45838 * include/grub/disk.h (grub_disk_dev_id): New enum.
45839 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
45840 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
45841
45842 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
45843 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45844
45845 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
45846 GRUB_DISK_DEVICE_OFDISK_ID as an id.
45847
45848 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
45849 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45850
45851 * include/grub/disk.h (struct grub_disk_dev): Added a new member
45852 "id" which is used by the cache manager.
45853
45854 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
45855 of just "GRUB".
45856
45857 2004-08-18 Marco Gerards <metgerards@student.han.nl>
45858
45859 * fs/hfs.c: New file.
45860 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
45861 (grub_emu_SOURCES): Likewise.
45862 (pkgdata_MODULES): Add hfs.mod.
45863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
45864 (grubof_SOURCES): Likewise.
45865 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
45866
45867 * include/grub/misc.h (grub_strncasecmp): Add prototype.
45868 * kern/misc.c (grub_strncasecmp): Add function.
45869
45870 2004-08-14 Marco Gerards <metgerards@student.han.nl>
45871
45872 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
45873 with parentheses.
45874
45875 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
45876 (grub_ext2_dir): In case the directory entry type is unknown, read
45877 it from the inode.
45878
45879 2004-08-02 Peter Bruin <pjbruin@dds.nl>
45880
45881 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
45882 grub_load_linux instead of grub_rescue_cmd_linux as second
45883 argument of grub_rescue_register_command.
45884
45885 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
45886
45887 2004-07-27 Marco Gerards <metgerards@student.han.nl>
45888
45889 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
45890 function.
45891 * commands/boot.c: Remove the check for `GRUB_UTIL'.
45892 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45893 `loader/powerpc/ieee1275/linux.c',
45894 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
45895 * include/grub/powerpc/ieee1275/ieee1275.h
45896 (grub_ieee1275_release): New prototype.
45897 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
45898 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
45899 normal, boot, linux and linux_normal.
45900 * loader/powerpc/ieee1275/linux.c: New file.
45901 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45902
45903 2004-07-12 Marco Gerards <metgerards@student.han.nl>
45904
45905 * normal/arg.c (grub_arg_parse): Correct error handling after
45906 reallocating the argumentlist (check if `argl' is not null instead
45907 of checking if `args' is not null).
45908 * kern/mm.c (grub_realloc): Return the same pointer when using the
45909 same region, instead of returning the header address.
45910
45911 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45912
45913 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
45914 one block instead of two when looking for the initial partition.
45915 (grub_partition_probe): Initialize the local variable `p' with 0.
45916 Use base 10 for the grub_strtoul call.
45917 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
45918 need for one local variable.
45919 (grub_strtoul): Don't add the new value to `num', instead of that
45920 just assign it.
45921
45922 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45923
45924 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
45925 (pxeboot_img_SOURCES): New variable.
45926 (pxeboot_img_ASFLAGS): Likewise.
45927 (pxeboot_img_LDFLAGS): Likewise.
45928 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
45929 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
45930 <lode_leroy@hotmail.com>.
45931
45932 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45933
45934 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
45935 there was no input.
45936
45937 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45938
45939 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
45940 the history buffer logic.
45941
45942 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45943
45944 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
45945 (FILETYPE_INO_SYMLINK): New macros.
45946 (grub_ext2_find_file): Check if the node is a directory using the
45947 inode stat information instead of using the filetype in the
45948 dirent. Exclude the first character of an absolute symlink.
45949 (grub_ext2_dir): Mask out the filetype part of the mode member of
45950 the inode.
45951
45952 2004-05-24 Marco Gerards <metgerards@student.han.nl>
45953
45954 Add support for UFS version 1 and 2. Add support for the minix
45955 filesystem version 1 and 2, both the variants with 14 and 30 long
45956 filenames.
45957
45958 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
45959 fs/minix.c.
45960 (grub_emu_SOURCES): Likewise.
45961 (pkgdata_MODULES): Add ufs.mod and minix.mod.
45962 (ufs_mod_SOURCES): New variable.
45963 (ufs_mod_CFLAGS): Likewise.
45964 (minix_mod_SOURCES): Likewise.
45965 (minix_mod_CFLAGS): Likewise.
45966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
45967 fs/minix.c.
45968 (grubof_SOURCES): Likewise.
45969 * fs/ufs.c: New file.
45970 * fs/minix.c: New file.
45971 * include/grub/fs.h (grub_ufs_init): New prototype.
45972 (grub_ufs_fini): Likewise.
45973 (grub_minix_init): Likewise.
45974 (grub_minix_fini): Likewise.
45975 * util/grub-emu.c (main): Initialize and deinitialize UFS and
45976 minix fs.
45977
45978 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
45979
45980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
45981 commands/ls.c, commands/terminal.c, commands/boot.c,
45982 commands/cmp.c and commands/cat.c.
45983 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
45984
45985 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
45986 "env.h"
45987
45988 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45989
45990 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
45991 and grub_, respectively. Because the conversion is trivial and
45992 mechanical, I omit the details here. Please refer to the CVS
45993 if you need more information.
45994
45995 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45996
45997 * include/pupa: Renamed to ...
45998 * include/grub: ... this.
45999 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46000 * util/i386/pc/grub-mkimage.c: ... this.
46001 * util/i386/pc/pupa-setup.c: Renamed to ...
46002 * util/i386/pc/grub-setup.c: ... this.
46003 * util/pupa-emu.c: Renamed to ...
46004 * util/grub-emu.c: ... this.
46005
46006 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46007
46008 Add support for the newworld apple macintosh (PPC). This has been
46009 tested on the powerbook 2000 only. It only adds support for
46010 generic ieee1275 functions, console and disk support. This should
46011 be easy to port to other architectures with support for Open
46012 Firmware.
46013
46014 * configure.ac: Accept the powerpc as host_cpu. In the case of
46015 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46016 specific tests are only executed while building for the i386.
46017 Inverse test for crosscompile.
46018 * genmk.rb (Utility): Allow assembler files.
46019 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46020 * conf/powerpc-ieee1275.rmk: New file.
46021 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46022 * disk/powerpc/ieee1275/partition.c: Likewise.
46023 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46024 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46025 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46026 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46027 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46028 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46029 * include/pupa/powerpc/ieee1275/loader.h
46030 * include/pupa/powerpc/setjmp.h: Likewise.
46031 * include/pupa/powerpc/types.h: Likewise.
46032 * kern/powerpc/ieee1275/init.c: Likewise.
46033 * kern/powerpc/ieee1275/openfw.c: Likewise.
46034 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46035
46036 These files were written by Johan Rydberg
46037 (jrydberg@night.trouble.net) and I only modified them slightly.
46038
46039 * boot/powerpc/ieee1275/cmain.c: New file.
46040 * boot/powerpc/ieee1275/crt0.S: Likewise.
46041 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46042 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46043
46044 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46045
46046 * Makefile.in: Update copyright.
46047 * genmodsrc.sh: Likewise.
46048 * gensymlist.sh: Likewise.
46049 * term/i386/pc/vga.c: Indent correctly.
46050
46051 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46052 bugreporting address.
46053 * util/i386/pc/pupa-setup.c (usage): Likewise,
46054 (main): Call pupa_ext2_init and pupa_ext2_fini.
46055
46056 * fs/fat.c (log2): Renamed to ...
46057 (fat_log2): ... this.
46058 All callers changed.
46059 * kern/misc.c (memcpy): Alias to pupa_memmove.
46060 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46061 lvalue cast.
46062 * util/console.c (pupa_ncurses_fini): Return 0.
46063
46064 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46065 Move fail label here.
46066 [__GNU__]: Don't warn when using stat.
46067 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46068 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46069 long int. Use strtol instead of strtoul.
46070
46071 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46072
46073 * commands/boot.c: New file.
46074 * commands/cat.c: Likewise.
46075 * commands/cmp.c: Likewise.
46076 * commands/ls.c: Likewise.
46077 * commands/terminal.c: Likewise.
46078 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46079 (pupa_register_command): Changed interface to match the new
46080 argument parser.
46081 (pupa_command_execute): Changed (almost rewritten) so it uses
46082 pupa_split_command. Added support for setting variables using the
46083 syntax `foo=bar'.
46084 (rescue_command): Changed to work with the new argument parser.
46085 (terminal_command): Moved from here to commands/terminal.c.
46086 (set_command): New function.
46087 (unset_command): New function.
46088 (insmod_command): New function.
46089 (rmmod_command): New function.
46090 (lsmod_command): New function.
46091 (pupa_command_init): Don't initialize the command terminal
46092 anymore. Initialize the commands set, unset, insmod, rmmod and
46093 lsmod.
46094 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46095 (kernel_img_HEADERS): Add arg.h and env.h.
46096 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46097 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46098 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46099 normal/arg.c.
46100 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46101 terminal.mod.
46102 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46103 (boot_mod_SOURCES): New variable.
46104 (terminal_mod_SOURCES): Likewise.
46105 (ls_mod_SOURCES): Likewise.
46106 (cmp_mod_SOURCES): Likewise.
46107 (cat_mod_SOURCES): Likewise.
46108
46109 * normal/arg.c: New file.
46110 * kern/env.c: Likewise.
46111 * include/pupa/arg.h: Likewise.
46112 * include/pupa/env.h: Likewise.
46113 * font/manager.c (font_command): Changed to match argument parsing
46114 interface changes.
46115 (PUPA_MOD_INIT): Likewise.
46116 * hello/hello.c (pupa_cmd_hello): Likewise.
46117 (PUPA_MOD_INIT): Likewise.
46118 * include/pupa/disk.h: Include <pupa/device.h>.
46119 (pupa_print_partinfo): New prototype.
46120 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46121 (pupa_dl_get_prefix): Likewise.
46122 * include/pupa/misc.h: Include <pupa/err.h>.
46123 (pupa_isgraph): New prototype.
46124 (pupa_isdigit): Likewise.
46125 (pupa_split_cmdline): Likewise.
46126 * include/pupa/normal.h: Include <pupa/arg.h>.
46127 (pupa_command): Changed the prototype of the member `func' to
46128 match the argument parsing interface. Added member `options'.
46129 (pupa_register_command): Updated to match function.
46130 (pupa_arg_parse): New prototype.
46131 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46132 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46133 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46134 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46135 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46136 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46137 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46138 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46139 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46140 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46141 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46142 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46143 * kern/disk.c: Include <pupa/file.h>.
46144 (pupa_print_partinfo): New function.
46145 * kern/dl.c: Include <pupa/env.h>.
46146 (pupa_dl_dir): Variable removed.
46147 (pupa_dl_load): Use the environment variable `prefix' instead of
46148 the variable pupa_dl_dir.
46149 (pupa_dl_set_prefix): Function removed.
46150 (pupa_dl_get_prefix): Likewise.
46151 * kern/i386/pc/init.c: Include <pupa/env.h>.
46152 (pupa_machine_init): Use the environment variable `prefix' instead of
46153 using pupa_dl_set_prefix to set the prefix.
46154 * kern/main.c: Include <pupa/env.h>.
46155 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46156 using pupa_dl_get_prefix to get the prefix.
46157 * kern/misc.c: Include <pupa/env.h>.
46158 (pupa_isdigit): New function.
46159 (pupa_isgraph): Likewise.
46160 (pupa_ftoa): Likewise.
46161 (pupa_vsprintf): Added support for printing values of the type
46162 `double'. Make it possible to format variable output when using
46163 formatting like `%1.2%f'.
46164 (pupa_split_cmdline): New function.
46165 * kern/rescue.c: Include <pupa/env.h>.
46166 (next_word): Removed function.
46167 (pupa_rescue_cmd_prefix): Likewise.
46168 (pupa_rescue_cmd_set): New function.
46169 (pupa_rescue_cmd_unset): New function.
46170 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46171 split the command line instead of splitting it here. Added
46172 support for setting variables using the syntax `foo=bar'. Don't
46173 initialize the prefix command anymore. Initialized the set and
46174 unset commands.
46175 * normal/cmdline.c: Include <pupa/env.h>.
46176 (pupa_tab_complete): Added prototypes for print_simple_completion,
46177 print_partition_completion, add_completion, iterate_commands,
46178 iterate_dev, iterate_part and iterate_dir. Moved code to print
46179 partition information from here to kern/disk.c.
46180 (pupa_cmdline_run): Don't check if the function exists anymore.
46181 * normal/main.c: Include <pupa/env.h>.
46182 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46183 instead of using pupa_dl_get_prefix to get the prefix.
46184 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46185 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46186 warning.
46187 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46188 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46189 ((unused))' to silence a gcc warning.
46190 (pupa_vga_setcolor): Likewise.
46191 (debug_command): Changed to match argument parsing
46192 interface changes.
46193 * util/pupa-emu.c: Include <pupa/env.h>.
46194 (options): Added 0's for unused fields to silence a gcc warning.
46195 (argp): Likewise.
46196 (main): Use the environment variable `prefix' instead of using
46197 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46198 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46199 and terminal.
46200
46201 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46202 * util/misc.c: Include <malloc.h>.
46203 (pupa_malloc): Rewritten so errors are correctly reported.
46204 (pupa_realloc): Likewise.
46205 (pupa_memalign): Likewise.
46206 (pupa_mm_init_region): Declare unused variables with
46207 `__attribute__ ((unused))' to silence a gcc warning.
46208 * normal/i386/setjmp.S: Remove tab at the end of the file to
46209 silence a gcc warning.
46210 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46211 variables with `__attribute__ ((unused))' to silence a gcc
46212 warning.
46213 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46214 local variable i unsigned to silence a gcc warning.
46215
46216 * kern/term.c: Include <pupa/misc.h>.
46217 (pupa_more_lines): New variable.
46218 (pupa_more): Likewise.
46219 (pupa_putcode): When the pager is active pause at the end of every
46220 screen.
46221 (pupa_set_more): New function.
46222 * include/pupa/term.h (pupa_set_more): New prototype.
46223
46224
46225 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46226
46227 Now this project is GRUB 2 rather than PUPA. The location of
46228 the CVS repository was moved to GRUB's.
46229
46230 * configure.ac: Use bug-grub as the reporting address.
46231 Use GRUB instead of PUPA.
46232 Change the version number to 1.90.
46233
46234 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46235
46236 * genkernsyms.sh: Updated copyright information.
46237 * genmk.rb: Likewise.
46238 * genmodsrc.sh: Likewise.
46239 * gensymlist.sh: Likewise.
46240 * boot/i386/pc/boot.S: Likewise.
46241 * boot/i386/pc/diskboot.S: Likewise.
46242 * disk/i386/pc/biosdisk.c: Likewise.
46243 * disk/i386/pc/partition.c: Likewise.
46244 * font/manager.c: Likewise.
46245 * fs/ext2.c: Likewise.
46246 * fs/fat.c: Likewise.
46247 * include/pupa/boot.h: Likewise.
46248 * include/pupa/device.h: Likewise.
46249 * include/pupa/disk.h: Likewise.
46250 * include/pupa/dl.h: Likewise.
46251 * include/pupa/elf.h: Likewise.
46252 * include/pupa/err.h: Likewise.
46253 * include/pupa/file.h: Likewise.
46254 * include/pupa/font.h: Likewise.
46255 * include/pupa/fs.h: Likewise.
46256 * include/pupa/kernel.h: Likewise.
46257 * include/pupa/loader.h: Likewise.
46258 * include/pupa/misc.h: Likewise.
46259 * include/pupa/mm.h: Likewise.
46260 * include/pupa/net.h: Likewise.
46261 * include/pupa/normal.h: Likewise.
46262 * include/pupa/rescue.h: Likewise.
46263 * include/pupa/setjmp.h: Likewise.
46264 * include/pupa/symbol.h: Likewise.
46265 * include/pupa/term.h: Likewise.
46266 * include/pupa/types.h: Likewise.
46267 * include/pupa/i386/setjmp.h: Likewise.
46268 * include/pupa/i386/types.h: Likewise.
46269 * include/pupa/i386/pc/biosdisk.h: Likewise.
46270 * include/pupa/i386/pc/boot.h: Likewise.
46271 * include/pupa/i386/pc/console.h: Likewise.
46272 * include/pupa/i386/pc/init.h: Likewise.
46273 * include/pupa/i386/pc/kernel.h: Likewise.
46274 * include/pupa/i386/pc/linux.h: Likewise.
46275 * include/pupa/i386/pc/loader.h: Likewise.
46276 * include/pupa/i386/pc/memory.h: Likewise.
46277 * include/pupa/i386/pc/multiboot.h: Likewise.
46278 * include/pupa/i386/pc/partition.h: Likewise.
46279 * include/pupa/i386/pc/time.h: Likewise.
46280 * include/pupa/i386/pc/vga.h: Likewise.
46281 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46282 * include/pupa/util/getroot.h: Likewise.
46283 * include/pupa/util/misc.h: Likewise.
46284 * include/pupa/util/resolve.h: Likewise.
46285 * kern/device.c: Likewise.
46286 * kern/disk.c: Likewise.
46287 * kern/dl.c: Likewise.
46288 * kern/err.c: Likewise.
46289 * kern/file.c: Likewise.
46290 * kern/fs.c: Likewise.
46291 * kern/loader.c: Likewise.
46292 * kern/main.c: Likewise.
46293 * kern/misc.c: Likewise.
46294 * kern/mm.c: Likewise.
46295 * kern/rescue.c: Likewise.
46296 * kern/term.c: Likewise.
46297 * kern/i386/dl.c: Likewise.
46298 * kern/i386/pc/init.c: Likewise.
46299 * kern/i386/pc/lzo1x.S: Likewise.
46300 * kern/i386/pc/startup.S: Likewise.
46301 * loader/i386/pc/chainloader.c: Likewise.
46302 * loader/i386/pc/linux.c: Likewise.
46303 * loader/i386/pc/multiboot.c: Likewise.
46304 * normal/cmdline.c: Likewise.
46305 * normal/command.c: Likewise.
46306 * normal/main.c: Likewise.
46307 * normal/menu.c: Likewise.
46308 * normal/i386/setjmp.S: Likewise.
46309 * term/i386/pc/console.c: Likewise.
46310 * term/i386/pc/vga.c: Likewise.
46311 * util/console.c: Likewise.
46312 * util/genmoddep.c: Likewise.
46313 * util/misc.c: Likewise.
46314 * util/pupa-emu.c: Likewise.
46315 * util/resolve.c: Likewise.
46316 * util/unifont2pff.rb: Likewise.
46317 * util/i386/pc/biosdisk.c: Likewise.
46318 * util/i386/pc/getroot.c: Likewise.
46319 * util/i386/pc/pupa-mkimage.c: Likewise.
46320 * util/i386/pc/pupa-setup.c: Likewise.
46321
46322 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46323
46324 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46325 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46326 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46327 reading and reset it after reading.
46328 (pupa_ext2_close): Return PUPA_ERR_NONE.
46329
46330 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46331 Correct value.
46332 (struct linux_kernel_header): Add kernel_version and
46333 initrd_addr_max.
46334 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46335 pupa_file_read succeeds.
46336 (pupa_rescue_cmd_initrd): Implement.
46337
46338 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46339
46340 * fs/ext2.c (pupa_ext2_label): New function.
46341 (pupa_ext2_fs): Added label.
46342 * fs/fat.c (pupa_fat_label): New function.
46343 (pupa_fat_fs): Added label.
46344 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46345
46346 * kern/misc.c (pupa_strndup): New function.
46347 * include/pupa/misc.h (pupa_strndup): New prototype.
46348
46349 * include/pupa/normal.h: Include <pupa/err.h>.
46350 (pupa_set_history): New prototype.
46351 (pupa_iterate_commands): New prototype.
46352 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46353 <pupa/disk.h>, <pupa/file.h>.
46354 (hist_size): New variable.
46355 (hist_lines): Likewise.
46356 (hist_end): Likewise.
46357 (hist_used): Likewise.
46358 (pupa_set_history): New function.
46359 (pupa_history_get): Likewise.
46360 (pupa_history_add): Likewise.
46361 (pupa_history_replace): Likewise.
46362 (pupa_tab_complete): Likewise.
46363 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46364 completion shows partitionnames while completing partitions, this
46365 feature was suggested by Jeff Bailey.
46366 * normal/command.c (pupa_iterate_commands): New function.
46367 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46368 (pupa_normal_init): Initialize history buffer.
46369 (PUPA_MOD_INIT): Likewise.
46370 (pupa_normal_fini): Free the history buffer.
46371 (PUPA_MOD_FINI): Likewise.
46372
46373 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46374 key.
46375
46376 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46377 * configure.ac [i386]: Check for regparam bug.
46378 (NESTED_FUNC_ATTR) [! i386]: Defined.
46379
46380 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46381
46382 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46383 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46384 (pupa_emu_SOURCES): New variable.
46385 (pupa_emu_LDFLAGS): Likewise.
46386 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46387 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46388 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46389 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46390 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46391 (pupa_jmp_buf): New typedef.
46392 (pupa_setjmp) [PUPA_UTIL]: New macro.
46393 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46394 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46395 (pupa_refresh): New prototype.
46396 * include/pupa/util/getroot.h: New file.
46397 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46398 it.
46399 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46400 (pupa_rescue_cmd_cat): Likewise.
46401 (pupa_rescue_cmd_ls): Likewise.
46402 (pupa_rescue_cmd_testload): Likewise.
46403 (pupa_rescue_cmd_lsmod): Likewise.
46404 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46405 * normal/menu.c (run_menu): Likewise.
46406 * kern/term.c (pupa_cls): Likewise.
46407 (pupa_refresh): New function.
46408 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46409 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46410 * util/console.c: New file.
46411
46412 * util/i386/pc/getroot.c: New file.
46413 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46414 (pupa_putchar): New function.
46415 (pupa_refresh): Likewise.
46416 (xgetcwd): Function moved to ...
46417 (strip_extra_slashes): Likewise.
46418 (get_prefix): Likewise.
46419 * util/i386/pc/getroot.c: ... here.
46420 (find_root_device): Function moved and renamed to...
46421 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46422 Changed all callers.
46423 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46424 and renamed to...
46425 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46426 Changed all callers.
46427 * util/misc.c (pupa_memalign): New function.
46428 (pupa_mm_init_region): Likewise.
46429 (pupa_register_exported_symbols): Likewise.
46430 (pupa_putchar): Function removed.
46431 * util/pupa-emu.c: New file.
46432
46433 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46434
46435 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46436 (_multiboot_mod_SOURCES): New variable.
46437 (_multiboot_mod_CFLAGS): Likewise.
46438 * loader/i386/pc/multiboot.c: New file.
46439 * include/pupa/i386/pc/multiboot.h: Likewise.
46440 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46441 (pupa_multiboot_real_boot): New function.
46442 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46443 (pupa_multiboot_real_boot): New prototype.
46444 (pupa_rescue_cmd_multiboot): Likewise
46445 (pupa_rescue_cmd_module): Likewise.
46446
46447 * kern/loader.c (pupa_loader_set): Continue when
46448 pupa_loader_unload_func() fails.
46449 (pupa_loader_unset): New function.
46450 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46451
46452 * kern/misc.c (pupa_stpcpy): New function.
46453 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46454
46455 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46456
46457 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46458 for available extensions.
46459
46460 * include/pupa/i386/pc/time.h: New file.
46461 * kern/disk.c: Include <pupa/machine/time.h>.
46462 (PUPA_CACHE_TIMEOUT): New macro.
46463 (pupa_last_time): New variable.
46464 (pupa_disk_open): Flush the cache when there was a timeout.
46465 (pupa_disk_close): Reset the timer.
46466 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46467 pupa_currticks.
46468 * util/misc.c: Include <sys/times.h>
46469 (pupa_get_rtc): New function.
46470
46471 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46472
46473 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46474 as blocks.
46475 (pupa_ext2_get_file_block): Use blocks member.
46476
46477 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46478 first block. Return -1 instead of pupa_errno on error.
46479
46480 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46481
46482 * README: In the pupa-mkimage example use _chain instead of chain
46483 and ext2 instead of fat.
46484 * TODO: Replace ext2fs with jfs as an example. Add an item for
46485 adding journal playback for ext2fs.
46486 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46487 (pkgdata_MODULES): Added ext2.mod.
46488 (ext2_mod_SOURCES): New variable.
46489 (ext2_mod_CFLAGS): Likewise.
46490 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46491 * include/pupa/misc.h (pupa_strncpy): New prototype.
46492 (pupa_strcat): Likewise.
46493 (pupa_strncmp): Likewise.
46494 * kern/misc.c (pupa_strcat): Enable function.
46495 (pupa_strncpy): New function.
46496 (pupa_strncmp): Likewise.
46497 * fs/ext2.c: New file.
46498
46499 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46500 when the read failed before retrying.
46501 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46502 (_FILE_OFFSET_BITS): Likewise.
46503 * configure.ac: Added AC_SYS_LARGEFILE.
46504
46505 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46506
46507 * genmk.rb (PModule#rule): Make sure to get only symbol names
46508 from the output of nm.
46509 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46510
46511 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46512
46513 I forgot to check in these changes for a long time. This adds
46514 incomplete support for VGA console, and this is still very
46515 buggy. Also, a lot of consideration is required for I18N,
46516 UNICODE, and VGA font issues. Therefore, assume that this is
46517 such that "better than nothing".
46518
46519 * font/manager.c: New file.
46520 * include/pupa/font.h: Likewise.
46521 * include/pupa/i386/pc/vga.h: Likewise.
46522 * term/i386/pc/vga.c: Likewise.
46523 * util/unifont2pff.rb: Likewise.
46524
46525 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46526 (pkgdata_MODULES): Added vga.mod and font.mod.
46527 (vga_mod_SOURCES): New variables.
46528 (vga_mod_CFLAGS): Likewise.
46529 (font_mod_SOURCES): Likewise.
46530 (font_mod_CFLAGS): Likewise.
46531
46532 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46533
46534 * include/pupa/term.h: Include pupa/err.h.
46535 (struct pupa_term): Added init and fini.
46536 Changed the argument of putchar to pupa_uint32_t.
46537
46538 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46539 (pupa_console_real_putchar): New prototype.
46540 (pupa_console_putchar): Removed.
46541 (pupa_console_checkkey): Exported.
46542 (pupa_console_getkey): Likewise.
46543
46544 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46545 characters.
46546
46547 * kern/term.c (pupa_term_set_current): Rewritten.
46548 (pupa_putchar): Likewise.
46549 (pupa_putcode): New function.
46550
46551 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
46552 (pupa_console_real_putchar): ... this.
46553 (pupa_vga_set_mode): New function.
46554 (pupa_vga_get_font): Likewise.
46555
46556 * normal/command.c: Include pupa/term.h.
46557 (terminal_command): New function.
46558 (pupa_command_init): Register the command "terminal".
46559
46560 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
46561 (DISP_UP): Likewise.
46562 (DISP_RIGHT): Likewise.
46563 (DISP_DOWN): Likewise.
46564 (DISP_HLINE): Likewise.
46565 (DISP_VLINE): Likewise.
46566 (DISP_UL): Likewise.
46567 (DISP_UR): Likewise.
46568 (DISP_LL): Likewise.
46569 (DISP_LR): Likewise.
46570
46571 * term/i386/pc/console.c (pupa_console_putchar): New function.
46572
46573 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
46574
46575 * util/resolve.c (pupa_util_resolve_dependencies): BUG
46576 FIX. Reverse the path_list.
46577
46578 * include/pupa/normal.h: Export pupa_register_command and
46579 pupa_unregister_command.
46580
46581 * hello/hello.c (pupa_cmd_hello): New module.
46582 * conf/i386-pc.rmk: Added hello.mod.
46583
46584 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
46585
46586 * kern/i386/pc/lzo1x.S: New file.
46587
46588 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
46589 (compress_kernel): New variable.
46590 (generate_image): Heavily modified to support compressing a
46591 large part of the core image.
46592
46593 * util/misc.c (pupa_util_read_image): Fix a file descriptor
46594 leak.
46595 (pupa_util_load_image): New function.
46596
46597 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
46598 (pupa_compressed_size): New variable.
46599 (codestart): Enable Gate A20 here.
46600 Decompress the compressed part of the core image.
46601 Rearrange the code to put functions and variables which are
46602 required for initialization in the non-compressed part.
46603 Include lzo1x.S.
46604
46605 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
46606 here.
46607
46608 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
46609
46610 * include/pupa/i386/pc/kernel.h
46611 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
46612 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
46613 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46614 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46615 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
46616
46617 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
46618
46619 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
46620 (Utility#rule): Likewise.
46621
46622 * configure.ac: Check if LZO is available.
46623
46624 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
46625
46626 * include/pupa/normal.h: New file.
46627 * include/pupa/setjmp.h: Likewise.
46628 * include/pupa/i386/setjmp.h: Likewise.
46629 * normal/cmdline.c: Likewise.
46630 * normal/command.c: Likewise.
46631 * normal/main.c: Likewise.
46632 * normal/menu.c: Likewise.
46633 * normal/i386/setjmp.S: Likewise.
46634
46635 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
46636 (pupa_rescue_cmd_initrd): Likewise.
46637
46638 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
46639 Likewise.
46640
46641 * kern/i386/pc/startup.S (translation_table): New variable.
46642 (translate_keycode): New function.
46643 (pupa_console_getkey): Call translate_keycode.
46644
46645 * kern/rescue.c (attempt_normal_mode): New function.
46646 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
46647 it failed, print a message.
46648
46649 * kern/mm.c (pupa_real_malloc): Print more information when a
46650 free magic is broken.
46651 (pupa_free): If the first free header is not free actually, set
46652 it to P.
46653
46654 * kern/main.c (pupa_load_normal_mode): Just load the module
46655 "normal".
46656 (pupa_main): Don't print the message
46657 "Entering into rescue mode..." here.
46658
46659 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
46660 Declared.
46661 (pupa_rescue_cmd_initrd): Likewise.
46662 (pupa_rescue_cmd_initrd): Likewise.
46663
46664 * include/pupa/symbol.h (FUNCTION): Specify the type.
46665 (VARIABLE): Likewise.
46666
46667 * include/pupa/err.h (pupa_err_t): Added
46668 PUPA_ERR_UNKNOWN_COMMAND.
46669
46670 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
46671 (pupa_dl_get_prefix): Likewise.
46672
46673 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
46674 Added _chain.mod and _linux.mod instead of chain.mod and
46675 linux.mod.
46676 (chain_mod_SOURCES): Renamed to ...
46677 (_chain_mod_SOURCES): ... this.
46678 (chain_mod_CFLAGS): Renamed to ...
46679 (_chain_mod_CFLAGS): ... this.
46680 (linux_mod_SOURCES): Renamed to ...
46681 (_linux_mod_SOURCES): ... this.
46682 (linux_mod_CFLAGS): Renamed to ...
46683 (_linux_mod_CFLAGS): ... this.
46684 (normal_mod_SOURCES): New variable.
46685 (normal_mod_CFLAGS): Likewise.
46686 (normal_mod_ASFLAGS): Likewise.
46687
46688 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
46689
46690 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
46691 possible.
46692
46693 * kern/dl.c (pupa_dl_ref): Refer depending modules
46694 recursively.
46695 (pupa_dl_unref): Unrefer depending modules recursively.
46696 Don't call pupa_dl_unload implicitly, because PUPA can crash if
46697 a module is unloaded before one depending on that module is
46698 unloaded.
46699 (pupa_dl_unload): Unload depending modules explicitly,
46700 if possible.
46701
46702 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
46703
46704 * include/pupa/i386/pc/linux.h: New file.
46705 * loader/i386/pc/linux.c: Likewise.
46706
46707 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
46708 Removed.
46709 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
46710 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
46711 of PUPA_CHAINLOADER_BOOT_SECTOR.
46712
46713 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
46714 (pupa_linux_prot_size): New variable.
46715 (pupa_linux_tmp_addr): Likewise.
46716 (pupa_linux_real_addr): Likewise.
46717 (pupa_linux_boot_zimage): New function.
46718 (pupa_linux_boot_bzimage): Likewise.
46719
46720 * kern/i386/pc/init.c (struct mem_region): New structure.
46721 (MAX_REGIONS): New macro.
46722 (mem_regions): New variable.
46723 (num_regions): Likewise.
46724 (pupa_os_area_addr): Likewise.
46725 (pupa_os_area_size): Likewise.
46726 (pupa_lower_mem): Likewise.
46727 (pupa_upper_mem): Likewise.
46728 (add_mem_region): New function.
46729 (compact_mem_regions): Likewise.
46730 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
46731 the size of the conventional memory and that of so-called upper
46732 memory (before the first memory hole).
46733 Instead of adding each found region to free memory, use
46734 add_mem_region and add them after removing overlaps.
46735 Also, add only 1/4 of the upper memory to free memory. The rest
46736 is used for loading OS images. Maybe this is ad hoc, but this
46737 makes it much easier to relocate OS images when booting.
46738
46739 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
46740 (pupa_enter_rescue_mode): Don't register initrd and module.
46741
46742 * kern/mm.c: Include pupa/dl.h.
46743
46744 * kern/main.c: Include pupa/file.h and pupa/device.h.
46745
46746 * kern/loader.c (pupa_loader_load_module_func): Removed.
46747 (pupa_loader_load_module): Likewise.
46748
46749 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
46750 ``.o''.
46751
46752 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
46753 (pupa_linux_tmp_addr): Likewise.
46754 (pupa_linux_real_addr): Likewise.
46755 (pupa_linux_boot_zimage): Likewise.
46756 (pupa_linux_boot_bzimage): Likewise.
46757
46758 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
46759 (pupa_upper_mem): Likewise.
46760 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
46761 module is too dangerous.
46762
46763 * include/pupa/loader.h (pupa_os_area_addr): Declared.
46764 (pupa_os_area_size): Likewise.
46765 (pupa_loader_set): Remove the first argument. Loader doesn't
46766 manage modules or initrd any longer.
46767 (pupa_loader_load_module): Removed.
46768
46769 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
46770 (linux_mod_SOURCES): New variable.
46771 (linux_mod_CFLAGS): Likewise.
46772
46773 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
46774
46775 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
46776 the length of a blocklist correctly.
46777
46778 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
46779 Use ioctl only if the OS file is a block device.
46780 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
46781 not very useful for normal files.
46782
46783 * kern/main.c (pupa_set_root_dev): New function.
46784 (pupa_load_normal_mode): Likewise.
46785 (pupa_main): Call those above.
46786
46787 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
46788 pupa_uint16_t.
46789
46790 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
46791
46792 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46793
46794 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
46795 (setup): Configure the installed partition information and the
46796 dl prefix.
46797
46798 * loader/i386/pc/chainloader.c (my_mod): New variable.
46799 (pupa_chainloader_unload): New function.
46800 (pupa_rescue_cmd_chainloader): Refer itself.
46801 (PUPA_MOD_INIT): Save its own module in MY_MOD.
46802
46803 * kern/i386/pc/startup.S (install_partition): Removed.
46804 (version_string): Likewise.
46805 (config_file): Likewise.
46806 (pupa_install_dos_part): New variable.
46807 (pupa_install_bsd_part): Likewise.
46808 (pupa_prefix): Likewise.
46809 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
46810
46811 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
46812 and pupa/misc.h.
46813 (make_install_device): New function.
46814 (pupa_machine_init): Set the dl prefix.
46815
46816 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
46817 (buf): Renamed to ...
46818 (linebuf): ... this.
46819 (pupa_rescue_cmd_prefix): New function.
46820 (pupa_rescue_cmd_insmod): Likewise.
46821 (pupa_rescue_cmd_rmmod): Likewise.
46822 (pupa_rescue_cmd_lsmod): Likewise.
46823 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
46824 rmmod and lsmod.
46825
46826 * kern/mm.c (pupa_memalign): If failed even after invalidating
46827 disk caches, unload unneeded modules and retry.
46828
46829 * kern/misc.c (pupa_memmove): New function.
46830 (pupa_memcpy): Removed.
46831 (pupa_strcpy): New function.
46832 (pupa_itoa): Made static.
46833
46834 * kern/dl.c (pupa_dl_iterate): New function.
46835 (pupa_dl_ref): Likewise.
46836 (pupa_dl_unref): Likewise.
46837 (pupa_dl_unload): Return if succeeded or not.
46838 (pupa_dl_unload_unneeded): New function.
46839 (pupa_dl_unload_all): Likewise.
46840 (pupa_dl_init): Renamed to ...
46841 (pupa_dl_set_prefix): ... this.
46842 (pupa_dl_get_prefix): New function.
46843
46844 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
46845 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
46846 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46847 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46848 (pupa_install_dos_part): Declared.
46849 (pupa_install_bsd_part): Likewise.
46850 (pupa_prefix): Likewise.
46851 (pupa_boot_drive): Likewise.
46852
46853 * include/pupa/types.h: Fix a typo.
46854
46855 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
46856 pupa_memmove.
46857 (pupa_memmove): Declared.
46858 (pupa_strcpy): Likewise.
46859
46860 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
46861 pupa_mod_init takes one argument, its own module.
46862 (pupa_dl_unload_unneeded): Declared.
46863 (pupa_dl_unload_all): Likewise.
46864 (pupa_dl_ref): Likewise.
46865 (pupa_dl_unref): Likewise.
46866 (pupa_dl_iterate): Likewise.
46867 (pupa_dl_init): Renamed to ...
46868 (pupa_dl_set_prefix): ... this.
46869 (pupa_dl_get_prefix): Declared.
46870
46871 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
46872 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
46873 unloaded.
46874 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
46875 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
46876
46877 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
46878 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
46879
46880 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46881
46882 * util/i386/pc/pupa-setup.c (setup): Define the internal
46883 function find_first_partition_start at the top level, because GCC
46884 3.0.x cannot compile internal functions in deeper scopes
46885 correctly.
46886 (find_root_device): Use lstat instead of stat.
46887 Don't follow symbolic links.
46888 Fix the path-constructing code.
46889
46890 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
46891 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
46892 by a BLKGETSIZE ioctl first, because block devices don't fill
46893 the member st_mode of the structure stat on Linux.
46894 [__linux__] (linux_find_partition): Use a temporary buffer
46895 REAL_DEV for the working space. Copy it to DEV before returning.
46896 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
46897 buffer cache consistent.
46898 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
46899 strncmp. The previous value was merely wrong.
46900 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
46901
46902 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
46903 FAT size is 12. The previous value was merely wrong.
46904
46905 * kern/main.c (pupa_main): Don't split the starting message from
46906 newlines.
46907
46908 * kern/term.c (pupa_putchar): Put CR after LF instead of before
46909 LF, because BIOS goes crazy about character attributes in this
46910 case.
46911
46912 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46913
46914 * include/i386/pc/util/biosdisk.h: New file.
46915 * util/i386/pc/biosdisk.c: Likewise.
46916 * util/i386/pc/pupa-setup.c: Likewise.
46917
46918 * Makefile.in (INCLUDE_DISTFILES): Added
46919 include/pupa/i386/pc/util/biosdisk.h.
46920 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
46921 directory util/i386/pc.
46922 (install-local): Added a rule for sbin_UTILITIES.
46923 (uninstall): Likewise.
46924
46925 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
46926
46927 * util/misc.c (xrealloc): New function.
46928 (pupa_malloc): Likewise.
46929 (pupa_free): Likewise.
46930 (pupa_realloc): Likewise.
46931 (pupa_stop): Likewise.
46932 (pupa_putchar): Likewise.
46933
46934 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
46935
46936 * include/pupa/util/misc.h (xrealloc): Declared.
46937
46938 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
46939 macro.
46940 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
46941 (PUPA_BOOT_MACHINE_BPB_END): ... this.
46942
46943 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
46944 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46945
46946 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
46947 way should be implemented.
46948 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46949
46950 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
46951 the size of NAME for safety.
46952 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
46953 0x88.
46954
46955 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
46956 (pupa_setup_SOURCES): Likewise.
46957
46958 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
46959
46960 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46961
46962 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
46963 bunch of pushl's from pusha, because this destroys the return
46964 value.
46965
46966 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46967
46968 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
46969 This means that any missing prototypes could be fatal. Also, you
46970 must take care when writing assembly code. See the comments at
46971 the beginning of startup.S, for more details.
46972
46973 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
46974 compilation mechanism.
46975 (pupa_chainloader_real_boot): Likewise.
46976 (pupa_biosdisk_rw_int13_extensions): Likewise.
46977 (pupa_biosdisk_rw_standard): Likewise.
46978 (pupa_biosdisk_check_int13_extensions): Likewise.
46979 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
46980 (pupa_biosdisk_get_diskinfo_standard): Likewise.
46981 (pupa_get_memsize): Likewise.
46982 (pupa_get_mmap_entry): Likewise.
46983 (pupa_console_putchar): Likewise.
46984 (pupa_console_setcursor): Likewise.
46985 (pupa_getrtsecs): Use pushl instead of push.
46986
46987 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
46988 memory instead of the stack for a mmap entry, because some
46989 BIOSes may ignore the maximum size and overflow.
46990
46991 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
46992
46993 * genmk.rb (PModule#rule): Compile automatically generated
46994 sources with module-specific CFLAGS as well as other sources.
46995
46996 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46997
46998 * configure.ac: Check ld.
46999 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47000 respectively, before checking endianness and sizes.
47001
47002 * Makefile.in (LD): New variable.
47003
47004 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47005
47006 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47007
47008 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47009
47010 * Changelog: New file.
47011