]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
[grub2.git] / ChangeLog
CommitLineData
1f493136
VS
12012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4 of diskfilter for diskfilter on diskfilter support.
5
6d790129
VS
62012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
9
005f46c9
VS
102012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * util/grub-install.in: Check for themes/starfield/theme.txt and not
13 themes/starfield.
14
c8f778a0
VS
152012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
18
de1e64eb
VS
192012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
22
c6d54211
VS
232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
26 of error message.
27
dd390777
VS
282012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
31
5fd1c522
VS
322012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
35 message.
c6d54211 36 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 37
fae01f6c
VS
382012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
41 Gettextize.
42 * util/grub-mount.c (options): Likewise.
43
292fdaff
VS
442012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
47 gettextize.
48 * grub-core/commands/search_wrap.c (options): Likewise.
49
ecdbae77
VS
502012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
53
52bfedfa
VS
542012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
57 size calculation.
58 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
59 none is known.
60
55b20e58
VS
612012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
64 "temporary" since it's used in identifier and is limited in space.
65
fda9d101
VS
662012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * po/POTFILES.in: Regenerate. Include *.h since they contain
69 translatable strings as well.
70
6a0295e2
VS
712012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
74 byte-swap on big-endian.
75 Reported by: Lennart Sorensen
76
807fb77c
VS
772012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
80 (allocate_pages): Improve dprintf.
81 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
82 code32_start. Fill code32_start and kernel_alignment in params.
83 (grub_cmd_initrd): Use prot_init_space.
84
61ac50ba
VS
852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
86
87 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
88
abdd26dd
VS
892012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * util/grub-install.in: Add missing dot at the end of sentence.
92
6e69da9c
VS
932012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
96 * grub-core/commands/videotest.c: Likewise.
97 * grub-core/loader/i386/linux.c: Likewise.
98
4a929343
VS
992012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
102 sentence.
103 Reported by: Milo Casagrande.
104
bb51c6c6
VS
1052012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
108 * grub-core/commands/gptsync.c: Likewise.
109 * grub-core/commands/hashsum.c: Likewise.
110 * grub-core/commands/i386/pc/sendkey.c: Likewise.
111 * grub-core/commands/legacycfg.c: Likewise.
112 * grub-core/io/gzio.c: Likewise.
113 * grub-core/net/net.c: Likewise.
114 * grub-core/term/gfxterm.c: Likewise.
115 * grub-core/term/terminfo.c: Likewise.
116 * grub-core/tests/test_blockarg.c: Likewise.
117 * grub-core/video/video.c: Likewise.
118 * util/grub-install.in: Likewise.
119 * util/grub-mkfont.c: Likewise.
120
b2b149cb
VS
1212012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
122
123 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
124
c7c080ad
VS
1252012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 128 Reported by: David Prévot.
c7c080ad 129
f2e243c0
VS
1302012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
133 description.
134
09963c76
VS
1352012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * util/grub-script-check.c (main): Fix a syntax error message which was
138 unclear.
139
a50514a8
VS
1402012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
143
4650daec
VS
1442012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
147 messages.
148
1492012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
150
151 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
152 without argument.
153 * util/grub-mount.c (options): Likewise.
154
bbc5a342
VS
1552012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
158
ef292a87
VS
1592012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * grub-core/net/http.c: Add TRANSLATORS comments.
162 * grub-core/normal/cmdline.c: Likewise.
163 * grub-core/normal/misc.c: Likewise.
164 * grub-core/partmap/msdos.c: Likewise.
165 * grub-core/parttool/msdospart.c: Likewise.
166 * grub-core/script/execute.c: Likewise.
167 * grub-core/script/main.c: Likewise.
168 * grub-core/term/terminfo.c: Likewise.
169 * grub-core/video/bitmap.c: Likewise.
170 * util/grub-install.in: Likewise.
171 * util/grub-mkimage.c: Likewise.
172 * util/grub-mklayout.c: Likewise.
173 * util/grub-setup.c: Likewise.
174
0fc19bd0
VS
1752012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
178 with similar messages in grub-fstest.
179
d95862ef
VS
1802012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * util/grub-install.in: Unify "option requires an argument" message
183 with similar messages in other files.
184 * util/grub-mkconfig.in: Likewise.
185
b7308f90
VS
1862012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * util/grub-set-default.in: Replace printf with gettext_printf (the
189 string in in question is already translated from grub-reboot)
190
559dc587
VS
1912012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * configure.ac: Bump up the version to beta1.
194
1a11761f
VS
1952012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
198 case when min_align = 0.
199
24539abd
VS
2002012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
203 and fix a case when line_start overflows.
204
32bd735b
VS
2052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * util/grub-reboot.in (usage): Mention id posibility.
208 * util/grub-set-default.in (usage): Likewise.
209
1a2fd1e6
VS
2102012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
213 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
214 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
215 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
216 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
217 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
218 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
219
90eeab76
VS
2202012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * grub-core/commands/menuentry.c (options): Remove
223 GRUB_ARG_OPTION_REPEATABLE.
224 Reported by: Andreas Vogel
225
5ad1be82
AV
2262012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
227
228 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
229
cb055286
HE
2302012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
231
232 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
233 error.
234
93b1cd79
VS
2352012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
236
237 Use sort -V by the idea of Georgi Georgiev.
238
239 * util/grub-mkconfig_lib.in (version_sort): New function.
240 (version_test_numeric): Use version_sort.
241
0cdc126c
VS
2422012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
243
244 Use submenus in grub-mkconfig.
245
246 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
247 * util/grub-mkconfig_lib.in (grub_quote): New function.
248 (gettext_printf): Use gettext and not gettext_quoted to fix several
249 messages.
250 * util/grub.d/10_hurd.in: Use submenus.
251 * util/grub.d/10_kfreebsd.in: Likewise.
252 * util/grub.d/10_linux.in: Likewise.
253 * util/grub.d/10_netbsd.in: Likewise.
254 * util/grub.d/20_linux_xen.in: Likewise.
255 * util/grub.d/30_os-prober.in: Likewise.
256 * util/grub.d/10_illumos.in: Add missing quoting.
257 * util/grub.d/10_windows.in: Likewise.
258
d9bef9bc
VS
2592012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
260
261 Fix menu title instability bug.
262
263 * grub-core/commands/menuentry.c (options): New option --id.
264 (grub_normal_add_menu_entry): New argument id. All users updated.
265 (grub_cmd_menuentry): Handle --id.
266 (grub_menu_init): Accept unknown arguments.
267 * grub-core/normal/main.c (features): Add feature_menuentry_id and
268 feature_menuentry_options.
269 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
270 saved_entry.
271 (get_entry_number): Match with id as well.
272 * include/grub/menu.h (grub_menu_entry): New member id.
273 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
274 * util/grub.d/00_header.in: Define menuentry_id_option.
275 * util/grub.d/10_hurd.in: Define id.
276 * util/grub.d/10_illumos.in: Likewise.
277 * util/grub.d/10_kfreebsd.in: Likewise.
278 * util/grub.d/10_linux.in: Likewise.
279 * util/grub.d/10_netbsd.in: Likewise.
280 * util/grub.d/10_windows.in: Likewise.
281 * util/grub.d/20_linux_xen.in: Likewise.
282 * util/grub.d/30_os-prober.in: Likewise.
283
2842012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
285
286 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
287 "scope" with "body".
288
7c8d0ce7
VS
2892012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
292 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
293 prot_size and prot_file_size.
294
49de079b
VS
2952012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
298 All users updated. If easily=1 require raid-5/-6 to be full.
299 (is_node_readable): Likewise.
300 (scan_devices): Scan incomplete but readable LVs at the end.
301 (grub_diskfilter_memberlist): Pull missing devices.
302 (insert_array): Skip scanning until device is complete or scan is
303 done otherwise.
304 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
305 check.
306 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
307 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
308
aff05d45
MG
3092012-03-03 Matthew Garrett <mjg@redhat.com>
3102012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Avoid EFI boot services when loading Linux.
313
314 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
315 avoid_efi_bootservices. All users updated.
316 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
317 argument avoid_efi_bootservices. All users updated.
318 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
319 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
320 align, min_align, relocatable, prefered_address. All users updated.
321 Allocate avoiding boot services if kernel is relocatable.
322 (grub_cmd_linux): Check if kernel is relocatable.
323 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
324 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
325 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
326 avoid_efi_boot_services.
327 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
328 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
329 (linux_kernel_params): Likewise.
330
3935dde2
MG
3312012-03-03 Matthew Garrett <mjg@redhat.com>
3322012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
333
334 Use EDID on EFI.
335
336 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
337 datasize_out.
338 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
339 modes. Set gop_handle.
340 (grub_video_gop_get_edid): New function.
341 (grub_gop_get_preferred_mode): Likewise.
342 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
343 (grub_video_efi_gop_adapter): Set .get_edid.
344 * include/grub/efi/edid.h: New file.
345 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
346
32107ec0
VS
3472012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
348
349 * util/grub-install.in: Load efivars unconditionally.
350
e70a2c50
VS
3512012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * po/Rules-piglatin: Change suffix from .po-update-en to
354 .po-update-en-piglatin.
355
8f9cace1
VS
3562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
357
358 Add a pig farm.
359
360 * po/piglatin.sed: New file.
361 * po/en@piglatin.header: Likewise.
362 * po/Rules-piglatin: Likewise.
363 * po/README: Add en@piglatin to autogenerated languages.
364
8f95d002
VS
3652012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
368 "Command for ...".
369 * grub-core/commands/hdparm.c (options): Use "Display" rather than
370 "Check" since we don't check anything.
371 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
372 is 64-bit one.
373 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
374 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
375 (grub_md_sha512_real): Likewise.
376
805a8dcc
VS
3772012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/commands/gptsync.c: Fix typographic quoting.
380 * grub-core/commands/ieee1275/suspend.c: Likewise.
381 * grub-core/commands/parttool.c: Likewise.
382 * grub-core/commands/search_wrap.c: Likewise.
383 * grub-core/commands/videoinfo.c: Likewise.
384 * grub-core/gfxmenu/gui_label.c: Likewise.
385 * grub-core/hello/hello.c: Likewise.
386 * grub-core/kern/emu/main.c: Likewise.
387 * grub-core/net/net.c: Likewise.
388 * grub-core/normal/menu.c: Likewise.
389 * grub-core/normal/menu_text.c: Likewise.
390 * grub-core/normal/misc.c: Likewise.
391 * util/grub-editenv.c: Likewise.
392 * util/grub-install.in: Likewise.
393 * util/grub-kbdcomp.in: Likewise.
394 * util/grub-mkconfig.in: Likewise.
395 * util/grub-mknetdir.in: Likewise.
396 * util/grub-mkrescue.in: Likewise.
397 * util/grub-mkstandalone.in: Likewise.
398 * util/grub-reboot.in: Likewise.
399 * util/grub-set-default.in: Likewise.
400 * util/grub-setup.c: Likewise.
401 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
402
40211ab8
VS
4032012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
406 * grub-core/commands/keystatus.c: Likewise.
407 * grub-core/commands/loadenv.c: Likewise.
408 * grub-core/commands/probe.c: Likewise.
409 * grub-core/commands/regexp.c: Likewise.
410 * grub-core/commands/true.c: Likewise.
411 * grub-core/commands/videoinfo.c: Likewise.
412 * grub-core/disk/cryptodisk.c: Likewise.
413 * grub-core/disk/ldm.c: Likewise.
414 * grub-core/disk/loopback.c: Likewise.
415 * grub-core/disk/luks.c: Likewise.
416 * grub-core/fs/zfs/zfsinfo.c: Likewise.
417 * grub-core/kern/disk.c: Likewise.
418 * grub-core/kern/emu/hostdisk.c: Likewise.
419
0c7d99c7
VS
4202012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
423 * util/grub-install.in: Add missing quote in the comment.
424
e7d2559b
VS
4252012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
428 * grub-core/commands/lsmmap.c: Likewise.
429 * grub-core/commands/minicmd.c: Likewise.
430 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
431 * grub-core/commands/regexp.c: Likewise.
432 * grub-core/gdb/gdb.c: Likewise.
433 * grub-core/term/gfxterm.c: Likewise.
434 * util/grub-mkconfig.in: Likewise.
435 * util/grub-mkfont.c: Likewise.
436 * util/grub-mklayout.c: Likewise.
437 * util/grub-mknetdir.in: Likewise.
438 * util/grub-mkrescue.in: Likewise.
439 * util/grub.d/30_os-prober.in: Likewise.
440
49ce9e50
VS
4412012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
444 with "Direct color" and "Packed" with "Packed pixel".
445 (grub_cmd_videoinfo): Simplify legend.
446
e4b791fa
VS
4472012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
450 absolutely unclear error message.
451
fd1265cb
VS
4522012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * util/grub-mkstandalone.in: Remove confusing leftover print.
455
8822a8a0
VS
4562012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
459 comments.
460 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
461 (GRUB_MOD_INIT): Likewise.
462 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
463 VGA mode.
464 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
465 comments.
466 * util/grub-install.in (usage): Likewise.
467 Spell ID in whole letters.
468 Add missing ending dot.
469 Quote variables.
470 * util/grub-reboot.in: Fix capitalisation.
471 * util/grub-set-default.in: Likewise.
472
937fd0cc
VS
4732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
476 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
477 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
478 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
479 Disable -Werror for -Wdeprecated-declarations.
480 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
481 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
482 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
483 (grub_util_get_grub_dev): Make luks handling dependent on
484 HAVE_DEVICE_MAPPER and not __linux__.
485 (get_win32_path): Fix format security.
486 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
487 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
488 Don't try grub_find_zpool_from_dir.
489 (grub_make_system_path_relative_to_its_root) [!__linux__]:
490 #ifdef-out paresdir.
491
1bab1ae3
VS
4922012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * util/grub-pe2elf.c (usage): Add missing noreturn.
495 (write_section_data): Rename name to shname to avoid shadowing.
496 (write_symbol_table): Rename name to symname to avoid shadowing.
497 Fix write_reloc_section call.
498
ef023e42
VS
4992012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
502 to ensure that it's after the last byte of .text.
503
48afcb75
VS
5042012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
505
506 * util/ieee1275/ofpath.c (my_isdigit): New function.
507 (trailing_digits): Use my_isdigit.
508 (strip_trailing_digits): Likewise.
509
88d51eff
VS
5102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
511
512 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
513 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
514
17edc2ba
VS
5152012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * grub-core/kern/i386/pc/startup.S: Define __start.
518
ad5518d7
VS
5192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
522 strip already transforms he format.
523
9e95e1bf
VS
5242012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
527
9cc3ee5c
VS
5282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * util/grub-install.in: Add missing gettext init.
531 * util/grub-kbdcomp.in: Likewise.
532 * util/grub-mkconfig.in: Likewise.
533 * util/grub-mknetdir.in: Likewise.
534 * util/grub-mkrescue.in: Likewise.
535 * util/grub-mkstandalone.in: Likewise.
536 * util/grub-reboot.in: Likewise.
537 * util/grub-set-default.in: Likewise.
538 * util/grub.d/00_header.in: Likewise.
539 * util/grub.d/10_hurd.in: Likewise.
540 * util/grub.d/10_windows.in: Likewise.
541 * util/grub.d/30_os-prober.in: Likewise.
542 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
543
49e08a06
VS
5442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * po/Rules-swiss: Fix header comment.
547
3809cb41
AV
5482012-02-29 Andreas Vogel <anvoit>
549
550 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
551 resulted in leak of arguments.
552
fa6ec573
VS
5532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * grub-core/boot/i386/pc/startup_raw.S: Use separate
556 reed_solomon_size const definition instead of computing it since
557 Apple assembler doesn't support the later.
558
22899b9c
VS
5592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * gentpl.py (kernel): Rewrite Apple part.
562
a132afc3
VS
5632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * include/grub/kernel.h (FOR_MODULES): Check module magic.
566
9d742bd4
VS
5672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * util/grub-mkimagexx.c (locate_sections): Support non-standard
570 ELF section gap.
571 (load_image): Likewise.
572
f04a9a21
VS
5732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
574
575 * configure.ac: Fix a typo in previous commit.
576
46cf439c
VS
5772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
578
579 Don't add -Wl,-N on Apple platform.
580
581 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
582 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
583
c4c48c54
VS
5842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * grub-core/Makefile.core.def (lzma_decompress): Use
587 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
588
31a12124
VS
5892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * grub-core/genmod.sh.in: Rewrite the Apple part.
592
4f3aa1af
VS
5932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
594
595 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
596 comparison.
597
7bd8b0c7
VS
5982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * acinclude.m4 (grub_CHECK_PIC): New test.
601 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
602
97304d7c
VS
6032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
604
605 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
606 to avoid the warning.
607
fb883812
VS
6082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
611 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
612 after. All users updated.
613
a121c964
VS
6142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
615
616 Use the common size routine in hostfs so we can read disks as well.
617
618 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
619 (grub_util_get_fd_size): ... this. Return size in bytes.
620 All users updated.
621 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
622 grub_util_get_fd_size.
623
c66d6410
VS
6242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
627 Add blocksize retrieval.
628
dfc8aeb0
VS
6292012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * configure.ac: Restore CFLAGS after efiemu check.
632
403e25a5
VS
6332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
634
635 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
636 Apple bug.
637
382775d1
VS
6382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
641
6fd4e6e4
VS
6422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
645 (grub_cmd_halt): Likewise.
646
bea359d6
VS
6472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
650 for local arithmetics.
651 Break %sp init into 2 instructions.
652 Add 0 byte at the end.
653
32eb6ee1
VS
6542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * grub-core/disk/diskfilter.c (read_segment): Initialise err
657 before loops.
658
e8377389
VS
6592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
662 for context.
663
8cb17de7
VS
6642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
665
666 * grub-core/disk/ldm.c (make_vg): Init part.name.
667 (grub_ldm_detect): Silence spurious warning.
668 (grub_util_is_ldm): Likewise.
669
595717e6
VS
6702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
673 sane value to avoid a spurious warning.
674
c4b7e588
VS
6752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
678 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
679
59824957
VS
6802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
683 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
684
70115b99
VS
6852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
686
687 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
688 hardcoding the relevant info.
689
56733740
VS
6902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
693 missing const qualifiers.
694 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
695
43481481
VS
6962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * util/getroot.c [__APPLE__]: Add missing includes.
699 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
700
3cb38f01
VS
7012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * util/grub-mkimage.c (generate_image): Silence spurious warning.
704
d9dbf11e
VS
7052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
708 avoid conflicts.
709
0c42a45d
VS
7102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
711
712 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
713
46c34eb0
VS
7142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
715
716 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
717 and grub_file_close call.
718
99ce1597
VS
7192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
720
721 Add LZSS Mach-O support (needed for new xnu kernelcache).
722
723 * grub-core/Makefile.core.def (xnu): Add file lzss.c
724 * grub-core/loader/lzss.c: New file.
725 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
726 on Mach-O open failure.
727 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
728 Don't free cmdsXX in uncompressedXX is set.
729 (grub_macho_file): Init new fields.
730 New argument is_64bit. All users updated.
731 Handle compressed. Error out if no suitable architecture is found.
732 Don't close file.
733 (grub_macho_open): New argument is_64bit. All users updated.
734 * grub-core/loader/macho32.c: Add defines for new fields.
735 * grub-core/loader/macho64.c: Likewise.
736 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
737 (grub_macho_parse): Handle compressed.
738 Defer actual processing if compressed.
739 (grub_macho_cmds_iterate): Decompress if compressed. New argument
740 "filename". All users updated.
741 (grub_macho_size): New argument "filename". All users updated.
742 (grub_macho_get_entry_point): Likewise.
743 (grub_macho_load): Handle compressed.
744 * include/grub/macho.h (grub_macho_lzss_header): New struct.
745 (GRUB_MACHO_LZSS_OFFSET): New define.
746 (grub_decompress_lzss): New proto.
747 * include/grub/machoload.h (grub_macho_file): New fields to handle
748 compressed.
749 (grub_macho_contains_macho64): Remove proto.
750 (grub_macho_contains_macho32): Likewise.
751 * util/grub.d/30_os-prober.in: Use kernel cache if available.
752
ebd17d6f
VS
7532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
756
2702b4e4
VS
7572012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
758
759 Fix make dist.
760
761 * Makefile.am (starfield_theme_files): New var.
762 (starfield_DATA): Use starfield_theme_files.
763 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
764 Add bootcheck-related files.
765 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
766 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
767 and font_char_metrics.txt.
768 * grub-core/Makefile.core.def (kernel): Update extra_dist.
769 (setjmp): Add lib/ia64/longjmp.S.
770 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
771 * po/POTFILES.in: Regenerate.
772 * po/Rules-swiss: use DISTFILES.common.extra2 and not
773 DISTFILES.common.extra1.
774 * util/devicemap.c: Removed.
775 * grub-core/lib/i386/relocator_backward.S: Likewise.
776 * util/import_gcry.py: Remove unused files. Add extra_dist for
777 ChangeLog.
778
cf1adfdf
VS
7792012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/gettext/gettext.c (grub_mofile_open): Call
782 grub_gettext_delete_list before changing grub_gettext_max to avoid
783 running out of array bounds.
784
7852012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
786
787 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
788 grub_vga_text_init/grub_vga_text_fini.
789
cf1adfdf 7902012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
791
792 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
793
541d92e9
VS
7942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * configure.ac: Bump to 2.00~beta0.
797
7931dddf
VS
7982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
801 missing initialisation.
802
f1b16fa3
VS
8032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
806
83ddae23
VS
8072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
808
809 Support v2 xnu boot arguments.
810
811 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
812 New argument fsbfreq_out.
813 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
814 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
815 be used.
816 * grub-core/loader/machoXX.c (grub_macho_load): New argument
817 darwin_version.
818 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
819 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
820 (grub_xnu_boot_params): Rename to ...
821 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
822 (grub_xnu_boot_params_v2): New struct.
823
dc693fe6
VS
8242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
825
826 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
827 zeroing of CRC field before computing CRC.
828
5a6e39c2
VS
8292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
832 Change order of allocations to decrease fragmentation.
833
6c21f5d7
VS
8342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
835
836 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
837
cfe456dc
CW
8382012-02-27 Colin Watson <cjwatson@ubuntu.com>
839
840 Use write-combining MTRR to speed up video with buggy BIOSes.
841
842 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
843 (cpuid): New define.
844 (rdmsr): Likewise.
845 (wrmsr): Likewise.
846 (mtrr_base): Likewise.
847 (mtrr_mask): Likewise.
848 (grub_vbe_enable_mtrr_entry): New function.
849 (grub_vbe_enable_mtrr): Likewise.
850 (grub_vbe_disable_mtrr): Likewise.
851 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
852 control off to BIOS.
853 (grub_video_vbe_init): Fill mtrr.
854 (grub_video_vbe_fini): Disable mtrr.
855 (grub_video_vbe_get_info_and_fini): Likewise.
856 (grub_video_vbe_setup): Enable mtrr.
857
e3c78337
CW
8582012-02-27 Colin Watson <cjwatson@ubuntu.com>
859
860 * include/grub/partition.h (grub_partition_map): Change prototype of
861 embed to take a maximum value for nsectors.
862 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
863 * include/grub/fs.h (grub_fs): Likewise.
864 * grub-core/partmap/msdos.c (embed_signatures): New array.
865 (pc_partition_map_embed): Check for and avoid sectors matching any
866 of the signatures in embed_signatures, up to max_nsectors.
867 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
868 returned sector map to max_nsectors.
869 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
870 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
871 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
872 * util/grub-setup.c (setup): Allow for the embedding area being
873 split into multiple blocklists. Tell dest_partmap->embed the
874 maximum number of sectors we care about.
875
8762012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
879 Specify blocklist_install and reserver_first_sector for all fs.
880 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
881 blocklists.
882
984b973f
VS
8832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
884
885 * util/grub-install.in: Clarify strings.
886 Fix source dir check.
887
f122e0d6
RL
8882012-02-27 Richard Laager <rlaager@wiktel.com>
889
890 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
891 "zfs" and "fuse.zfs" as synonyms.
892
071114bb
VS
8932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * configure.ac: Put platform and target_cpu substitutions back since
896 they are used for directories.
897
817e6abc
RL
8982012-02-27 Richard Laager <rlaager@wiktel.com>
8992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * util/grub.d/10_linux.in: Add ZFS-related arguments.
902 * util/grub.d/20_linux_xen.in: Likewise.
903
897b7419
RL
9042012-02-27 Richard Laager <rlaager@wiktel.com>
905
906 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
907 with full paths.
908
a414bd15
RL
9092012-02-27 Richard Laager <rlaager@wiktel.com>
910
911 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
912 unescape.
913
30ac48c4
VS
9142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
915
916 Don't use insecure popen in getroot.
917
918 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
919 (exec_pipe): ... here.
920 (find_root_devices_from_poolname): Use exec_pipe.
921
53f13848
VS
9222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
923
924 Remove platform and target_cpu replacement.
925
926 * configure.ac: Remove platform and target_cpu substitutions.
927 * tests/util/grub-shell.in: Use modinfo.
928 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
929 explicitly.
930
90cb2803
VS
9312012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
932
933 Autodetect platform in grub-install but allow override.
934
935 * util/grub-install.in: Autodetect platform. Support --target and
936 --directory. Read platform from modinfo.sh.
937
b9136427
VS
9382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
939
940 Support btrfs multi-volume probe.
941
942 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
943 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
944 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
945 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
946 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
947 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
948 grub_find_root_devices_from_btrfs if on btrfs.
949
c36e5cd1
VS
9502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
951
952 Remove any awareness of *.c util files about target.
953
954 * Makefile.util.def (grub-setup): Split to ...
955 (grub-bios-setup): ... and this.
956 (grub-sparc64-setup): ... and this.
957 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
958 * docs/man/grub-setup.h2m: Split into ...
959 * docs/man/grub-sparc64-setup.h2m: ... this.
960 * docs/man/grub-bios-setup.h2m: ... and this.
961 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
962 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
963 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
964 (grub_target_addr_t): Remove.
965 (grub_target_size_t): Remove.
966 (grub_target_ssize_t): Remove.
967 * util/grub-install.in: Use new grub-*-setup.
968 * util/grub-mkimagexx.c (Elf_Word): New define.
969 (Elf_Half): Likewise.
970 (Elf_Section): Likewise.
971 (ELF_ST_TYPE): Likewise.
972 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
973 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
974
584b2f8a
VS
9752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
976
977 Replace grub_target_addr with more appropriate types.
978
979 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
980 grub_target_addr with grub_addr.
981 * grub-core/commands/iorw.c (grub_cmd_read): Replace
982 grub_target_addr with grub_port.
983 (grub_cmd_write): Likewise.
984 * grub-core/commands/memrw.c (grub_cmd_read): Replace
985 grub_target_addr with grub_addr.
986 (grub_cmd_write): Likewise.
987 * grub-core/video/efi_uga.c (find_line_len): Likewise.
988
5a0dc6fb
VS
9892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
992 const qualifier for vendor_guid.
993
786aff6e
VS
9942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
997 const qualifier.
998 (efiemu_memequal): Likewise.
999 (find_variable): Likewise.
1000
49017b17
VS
10012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 Fix missing console prototype on qemu-mips.
1004
1005 * include/grub/mips/qemu_mips/console.h: New file.
1006
c5988629
MG
10072012-02-27 Matthew Garrett <mjg@redhat.com>
10082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
1011 * include/grub/efi/efi.h: Likewise.
1012 * include/grub/efi/api.h: Add guid for EFI-specified variables.
1013 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
1014 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
1015 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
1016 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
1017 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
1018
e33f8d69
MG
10192012-02-27 Matthew Garrett <mjg@redhat.com>
1020
1021 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
1022
fb312cd9
VS
10232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
1026 error.
1027
7134247c
VS
10282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * configure.ac: Remove inappropriate use of program_transform_name
1031 on grubdir and bootdir but allow explicit specification of those
1032 variables.
1033
6a313124
VS
10342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * util/grub-mknetdir.in (grub_prefix): Removed.
1037 (subdir): Use @bootdirname@ and @grubdirname@.
1038
2311c5ca
VS
10392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
1042
7d5d60f7
VS
10432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * po/POTFILES.in: Regenerated.
1046
8151bc82
VS
10472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 Remove improper use of program_transform_name on pkglibrootdir.
1050
1051 * configure.ac (pkglibrootdir): Removed.
1052 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
1053 * util/grub-mkimage.c: Likewise.
1054
b4a6a533
VS
10552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
1058 warning.
1059
668f304f
VS
10602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * util/grub-install.in: Use file identifier if no UUID is available
1063 or user explicitly prompted for it.
1064
665f2341
NP
10652012-02-27 Navdeep Parhar <nparhar@gmail.com>
1066
1067 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
1068 (freebsd_get_zfs): New function.
1069 (grub_freebsd_boot): Pass zfs UUID.
1070 (grub_cmd_freebsd): Set zfs UUID.
1071
8151bc82 10722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
1073
1074 * conf/Makefile.common (platformdir): Base on pkglibdir and not
1075 pkglibrootdir.
1076
e4c498a1
MG
10772012-02-27 Mike Gilbert <floppym@gentoo.org>
1078
1079 Add configure flag to control libzfs integration.
1080
1081 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
1082
1e9a9a3f
VS
10832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
1086 device.
1087 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
1088 small devices.
1089
036985b8
VS
10902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 Remove grub_{modname}_init and grub_{modname}_fini. They should never
1093 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
1094 be used on non-modules.
1095
1096 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
1097 Rename to grub_boot_init.
1098 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
1099 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
1100 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
1101 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
1102 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
1103 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
1104 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
1105 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
1106 includes.
1107 (grub_machine_init): Remove empty inits.
1108 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
1109 includes.
1110 (grub_machine_init): Remove empty inits.
1111 * grub-core/term/arc/console.c: Remove explicit proto.
1112 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
1113 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
1114 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1115 grub_at_keyboard_fini.
1116 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
1117 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
1118 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1119 grub_gfxterm_fini.
1120 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
1121 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
1122 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1123 grub_vgatext_fini.
1124 * grub-core/term/ieee1275/console.c: Remove explicit proto.
1125 * grub-core/term/serial.c (GRUB_MOD_INIT)
1126 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
1127 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1128 grub_serial_fini.
1129 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
1130 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
1131 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
1132 grub_terminfo_fini.
1133 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
1134 (GRUB_MOD_FINI): Likewise.
1135 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
1136 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
1137 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1138 grub_video_radeon_fuloong2e_fini.
1139 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
1140 [LOONGSON]: Rename to grub_video_sis315pro_init.
1141 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1142 grub_video_sis315pro_fini.
1143 * grub-core/video/sm712.c (GRUB_MOD_INIT)
1144 [LOONGSON]: Rename to grub_video_sm712_init.
1145 (GRUB_MOD_FINI) [LOONGSON]: Rename to
1146 grub_video_sm712_fini.
1147 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
1148 (grub_at_keyboard_fini): Likewise.
1149 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
1150 Don't declare grub_{modname}_init.
1151 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
1152 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
1153 New proto.
1154 (grub_keylayouts_fini) [!EMU]: Likewise.
1155 * include/grub/serial.h (grub_serial_init) [!EMU]:
1156 New proto.
1157 (grub_serial_fini) [!EMU]: Likewise.
1158 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
1159 New proto.
1160 (grub_terminfo_fini) [!EMU]: Likewise.
1161 * include/grub/video.h (grub_font_init) [!EMU]:
1162 New proto.
1163 (grub_font_fini) [!EMU]: Likewise.
1164 (grub_gfxterm_init) [!EMU]: Likewise.
1165 (grub_gfxterm_fini) [!EMU]: Likewise.
1166 (grub_video_sm712_init) [!EMU]: Likewise.
1167 (grub_video_sm712_fini) [!EMU]: Likewise.
1168 (grub_video_sis315pro_init) [!EMU]: Likewise.
1169 (grub_video_sis315pro_fini) [!EMU]: Likewise.
1170 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
1171 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
1172
d5534665
VS
11732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 Make nand a prefix for nand devices.
1176
1177 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
1178
10133b5f
VS
11792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
1182 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
1183
8e307a62
VS
11842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * include/grub/env.h (grub_env_find): Remove prototype.
1187 * grub-core/kern/env.c (grub_env_find): Make static.
1188 (grub_env_set): Remove useless set.
1189
a4c65f34
VS
11902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 * grub-core/kern/i386/realmode.S: Remove useless align.
1193
d87893d5
VS
11942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 * include/grub/dl.h (grub_dl_load_file): Don't export.
1197
50159add
VS
11982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
1201 grub_dprintf.
1202
b2582b84
VS
12032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
1206 grub_errors.
1207 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
1208 not reloading whole superblock but only the part which is really needed.
1209 Remove useless grub_errors.
1210 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
1211 grub_errors.
1212
e2a83395
VS
12132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Don't export grub_get_rtc.
1216
1217 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
1218 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
1219
e7d2a906
VS
12202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
1223
6cf1363b
VS
12242012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 1227 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 1228
eece3349
VS
12292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 Remove prio_list.
1232
1233 * include/grub/list.h (grub_prio_list): Removed.
1234 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
1235 GRUB_COMMAND_PRIO_MASK.
1236 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
1237 GRUB_COMMAND_FLAG_ACTIVE.
1238 (grub_prio_list_insert): Removed.
1239 (grub_prio_list_remove): Likewise.
1240 (GRUB_AS_PRIO_LIST): Likewise.
1241 (GRUB_AS_PRIO_LIST_P): Likewise.
1242 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
1243 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
1244 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
1245 * grub-core/kern/command.c (grub_register_command_prio): Inline
1246 the prio_list code.
1247 (grub_unregister_command): Likewise.
1248
94f064b4
VS
12492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 Fix interrupt mixup from previous commit.
1252
1253 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
1254 (grub_realidt): New var.
1255 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
1256 Load idt.
1257 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
1258 New declaration.
1259 (grub_relocator16_boot): Set grub_relocator16_idt.
1260 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
1261 (LOCAL(realidt)): ... this.
1262 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
1263 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
1264 (grub_realidt): New variable.
1265
27317084
VS
12662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
1269 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
1270 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
1271 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
1272 Gettextize.
1273 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
1274 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
1275 * po/POTFILES.in: Regenerate.
1276
47b40053
VS
12772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
1280 errors.
1281
2b343101
VS
12822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
1285 \0.
1286 (add_length): Likewise.
1287
ff27c3dd
LK
12882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12892012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
1290
1291 GDB serial and backtrace support.
1292
1293 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
1294 (prot_to_real): Likewise.
1295 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
1296 * grub-core/Makefile.core.def (backtrace): New module.
1297 (gdb): Likewise.
1298 * grub-core/gdb/cstub.c: New file.
1299 * grub-core/gdb/gdb.c: Likewise.
1300 * grub-core/gdb/i386/idt.c: Likewise.
1301 * grub-core/gdb/i386/machdep.S: Likewise.
1302 * grub-core/gdb/i386/signal.c: Likewise.
1303 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 1304 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
1305 * include/grub/backtrace.h: Likewise.
1306 * include/grub/gdb.h: Likewise.
1307 * include/grub/i386/gdb.h: Likewise.
1308
13092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
1310
1311 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
1312 New function.
1313 (add_length): Likewise.
1314 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
1315 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
1316 proto.
1317 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
1318 __argp_get_display_len.
1319
ff27c3dd 13202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
1321
1322 $"..." support in scripts.
1323
1324 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
1325 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
1326 * grub-core/script/yylex.l: Likewise.
1327 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
1328 value.
1329
ff27c3dd 13302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
1331
1332 * gentpl.py: Remove obsolete pkglib_DATA handling.
1333
ff27c3dd 13342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
1335
1336 Don't transform PACKAGE_TARNAME following a discussion on autoconf
1337 mailing list.
1338
1339 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
1340 * util/grub-kbdcomp.in: Likewise.
1341 * util/grub-mkconfig.in: Likewise.
1342 * util/grub-mkconfig_lib.in: Likewise.
1343 * util/grub-mknetdir.in: Likewise.
1344 * util/grub-mkrescue.in: Likewise.
1345 * util/grub-mkstandalone.in: Likewise.
1346 * util/grub-reboot.in: Likewise.
1347 * util/grub-set-default.in: Likewise.
1348 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1349
ff27c3dd 13502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
1351
1352 Remove GRUB_PREFIX.
1353
1354 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
1355 * util/grub.d/00_header.in: Compute prefix in the only place it's still
1356 used for backward compatibility.
1357
ff27c3dd 13582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
1359
1360 Add new all_video module.
1361
1362 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
1363 * grub-core/Makefile.core.def (all_video): New module.
1364 * grub-core/genmoddep.awk: Generate dependency of all_video from
1365 video.lst.
1366 * grub-core/lib/fake_module.c: New file.
1367 * grub-core/normal/main.c (features): Add feature_all_video_module.
1368 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
1369 don't do explicit search again.
47454da5 1370 insmod all_video in load_video if available.
22c7ce85 1371
ff27c3dd 13722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
1373
1374 Another round of string clarification and adding TRANSLATORS comments.
1375
ff27c3dd 13762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
1377
1378 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
1379
ff27c3dd 13802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
1381
1382 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
1383 to grub_ssize_t.
1384 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
1385 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
1386
ff27c3dd 13872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
1388
1389 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
1390 trailing newline implicitly. All users updated.
1391
ff27c3dd 13922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
1393
1394 Implement serial on IEEE1275 and EFI.
1395
1396 * docs/grub.texi (Platform-specific limitations): Fix the columen video
1397 on emu. Mention arc and emu as the only platforms without serial
1398 support.
1399 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
1400 ieee1275 platforms.
1401 * grub-core/term/efi/serial.c: New file.
1402 * grub-core/term/ieee1275/serial.c: Likewise.
1403 * grub-core/term/serial.c (grub_serial_find): Disable direct port
1404 specification if no ns8250 driver is available.
1405 (grub_cmd_serial): Likewise.
1406 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
1407 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
1408 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
1409 (grub_efi_parity_type_t): New type.
1410 (grub_efi_stop_bits_t): Likewise.
1411 (grub_efi_serial_io_interface): New struct.
1412 * include/grub/serial.h (grub_serial_port): Make 'broken' field
1413 available for all interfaces.
1414 Add EFI and IEEE1275 fields.
1415 (grub_ofserial_init): New proto.
1416 (grub_efiserial_init): Likeiwse.
1417 * util/grub.d/00_header.in: Don't check for the presence of serial
1418 module.
1419
ff27c3dd 14202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
1421
1422 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
1423 name as if it was an alias.
1424
114076ef
VS
14252012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * grub-core/commands/lsacpi.c (options): Fix typo.
1428
6a656b0e
VS
14292012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 Convert grub-emu to argp.
1432
1433 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
1434 emu.
1435 * util/argp_common.c: Rename to ...
1436 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
1437 Add missing includes.
1438 * grub-core/kern/emu/main.c: Convert to argp.
1439 * po/POTFILES.in: Regenerate.
1440 * util/grub-install.in (usage): Make first letter lowcase in messages
1441 for uniformity.
1442 * util/grub-setup.c (options): Likewise.
1443
1e3f8ae8
VS
14442012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
1447 Put back accidently commented-out code.
1448
ed167a80
VS
14492012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
1452 loop check using Brent algorithm.
1453 (grub_hfsplus_btree_search): Likewise.
1454
6753c0ec
VS
14552012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * util/grub-install.in: Fix usage of wrong device for PreP install.
1458
4e27343f
VS
14592012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * conf/Makefile.common (CFLAGS_GNULIB): Add
1462 -Wno-unsafe-loop-optimizations.
1463 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
1464 on tools.
1465 * grub-core/commands/legacycfg.c: Add pragma to skip
1466 -Wunsafe-loop-optimizations.
1467 (check_password_md5_real): Fix loop counter type.
1468 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
1469 reading.
1470 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
1471 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
1472 loop condition.
1473 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
1474 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
1475 * grub-core/net/net.c (grub_net_route_address): Add safety loop
1476 condition.
1477 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
1478 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
1479 avoid possible infinite loops.
1480 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
1481 and -Wunsafe-loop-optimizations.
1482 * grub-core/script/yylex.l: Likewise.
1483 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
1484 (print_glyphs): Avoid infinite loops.
1485 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
1486
697f18b0
GS
14872012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
1488
1489 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
1490 to avoid infinite loop.
1491 (disp_acpi_rsdt_table): Likewise.
1492
274416e8
VS
14932012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/font/font.c (grub_font_load): Add support for default
1496 path for fonts ($prefix/fonts).
1497 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
1498 for checking if string is a path.
1499 * grub-core/normal/main.c (features): Add feature_default_font_path.
1500 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
1501 * util/grub.d/00_header.in: Use default directory if possible.
1502 * util/grub-install.in: Install unicode.pf2.
1503
b3e08622
VS
15042012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
1507 * po/Rules-swiss: New file.
1508 * po/swiss.sed: Likewise.
1509
fe42ce09
VS
15102012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/fs/btrfs.c (find_device): Fix typos.
1513 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
1514 * util/grub-mkrelpath.c (argp_parser): Likewise.
1515 Reported by: Yuri Chornoivan.
1516
72f1d065
DO
15172012-02-23 Dalet Omega <daletomega@gmail.com>
1518
1519 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
1520 for usual informative messages.
1521
c5884973
DO
15222012-02-23 Dalet Omega <daletomega@gmail.com>
1523
1524 Starfield theme.
1525
1526 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
1527 * conf/Makefile.common: Define starfielddir.
1528 * configure.ac: Configure starfield.
1529 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
1530 * themes/starfield/README: Likewise.
1531 * themes/starfield/blob_w.png: Likewise.
1532 * themes/starfield/boot_menu_c.png: Likewise.
1533 * themes/starfield/boot_menu_e.png: Likewise.
1534 * themes/starfield/boot_menu_n.png: Likewise.
1535 * themes/starfield/boot_menu_ne.png: Likewise.
1536 * themes/starfield/boot_menu_nw.png: Likewise.
1537 * themes/starfield/boot_menu_s.png: Likewise.
1538 * themes/starfield/boot_menu_se.png: Likewise.
1539 * themes/starfield/boot_menu_sw.png: Likewise.
1540 * themes/starfield/boot_menu_w.png: Likewise.
1541 * themes/starfield/slider_c.png: Likewise.
1542 * themes/starfield/slider_n.png: Likewise.
1543 * themes/starfield/slider_s.png: Likewise.
1544 * themes/starfield/src/blob_nw.xcf: Likewise.
1545 * themes/starfield/src/bootmenu/: Likewise.
1546 * themes/starfield/src/bootmenu/center.xcf: Likewise.
1547 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
1548 * themes/starfield/src/bootmenu/side.xcf: Likewise.
1549 * themes/starfield/src/slider_c.xcf: Likewise.
1550 * themes/starfield/src/slider_n.xcf: Likewise.
1551 * themes/starfield/src/slider_s.xcf: Likewise.
1552 * themes/starfield/src/terminalbox/: Likewise.
1553 * themes/starfield/src/terminalbox/center.xcf: Likewise.
1554 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
1555 * themes/starfield/src/terminalbox/side.xcf: Likewise.
1556 * themes/starfield/starfield.png: Likewise.
1557 * themes/starfield/terminal_box_c.png: Likewise.
1558 * themes/starfield/terminal_box_e.png: Likewise.
1559 * themes/starfield/terminal_box_n.png: Likewise.
1560 * themes/starfield/terminal_box_ne.png: Likewise.
1561 * themes/starfield/terminal_box_nw.png: Likewise.
1562 * themes/starfield/terminal_box_s.png: Likewise.
1563 * themes/starfield/terminal_box_se.png: Likewise.
1564 * themes/starfield/terminal_box_sw.png: Likewise.
1565 * themes/starfield/terminal_box_w.png: Likewise.
1566 * themes/starfield/theme.txt: Likewise.
1567
17d73325
VS
15682012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * util/grub.d/00_header.in: Add missing export theme.
1571
dbebaf92
VS
15722012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
1575 already included.
1576 Reported by: Eren D.
1577
3d68bffb
VS
15782012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * conf/Makefile.common (grubdatadir): Removed.
1581 (Makefile.am): Move eveything grubdata to pkgdata.
1582
4b59234d
VS
15832012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/commands/acpihalt.c (get_sleep_type):
1586 Remove unused variable.
1587
463dcadc
VS
15882012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
1591 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
1592 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
1593 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
1594 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
1595 i18n with gettext no-op.
1596 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
1597 GRUB_ACPI_OPCODE_STRING_CONST.
1598 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
1599 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
1600
e5b90c82
VS
16012012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * po/POTFILES.in: Regenerate.
1604
2a704ca9
VS
16052012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
1608 -Wno-error=missing-noreturn.
1609
84f9d341
VS
16102012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
1613 condition to avoid possibly infinite loops.
1614 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
1615 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
1616
d46683f9
VS
16172012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
1620 condition to avoid possibly infinite loops.
1621
c44866b2
VS
16222012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
1625 on show_error.
1626
96790539
VS
16272012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
1630
1ba7e295
VS
16312012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
1634
21ffe8f1
VS
16352012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * util/bin2h.c (usage): Add missing attribute noreturn.
1638
0ccb6b3c
VS
16392012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
1642 if the size isn't divisible by 512.
1643
b00d7fb6
VS
16442012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Make list_push and list_remove functions rather than inline functions
1647 to decrease size and avoid aliasing violations.
1648
1649 * include/grub/list.h (grub_list_push): Move to ...
1650 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
1651 * include/grub/list.h (grub_list_remove): Move to ...
1652 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
1653
9d369087
VS
16542012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
1657 and -Wunused-result.
1658
af0250d9
VS
16592012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
1662 Reported by: Seth Goldberg
1663
aad32b14
VS
16642012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
1667
ac96441c
ST
16682012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
1669
1670 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
1671 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
1672 command line.
1673 * docs/grub.texi (Simple configuration): Document
1674 GRUB_CMDLINE_GNUMACH.
1675
16762012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
1677
1678 * conf/Makefile.common (platform_SCRIPTS): New variable.
1679 (platform_PROGRAMS): Likewise.
1680 * gentpl.py: Mark *,module and *.image for install.
1681 * grub-core/gdb_grub.in: Add a notice of expected environment.
1682 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
1683 (gmodule.pl): Likewise.
1684
ac96441c 16852012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
1686
1687 Replace grub_checkkey with grub_getkey_noblock.
1688
1689 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
1690 (grub_getkey_noblock): ... this. All users updated.
1691
ac96441c 16922012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
1693
1694 * grub-core/kern/emu/console.c: Move to ...
1695 * grub-core/term/emu/console.c: ...here.
1696 (grub_ncurses_getkey): Fix return value if no key is detected.
1697
e51b5666
VS
16982012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
1701 (grub_unit_test_fini): Likewise.
1702 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
1703
17042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * include/grub/test.h (GRUB_UNIT_TEST)
1707
d9a62292
VS
17082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/script/execute.c (grub_script_break): Clarify logic.
1711 Better error handling.
1712 (grub_script_return): Likewise.
1713 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1714
77c9182f
VS
17152012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
1718 rimplicit redifinition.
1719
edb13cf9
VS
17202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
1723 GRUB.
1724
a9e9dc7c
VS
17252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
1728 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
1729 prompt here.
1730
b4ba8e02
VS
17312012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
1734 as GRUB_ERR_BUG. Don't malloc if no device is available.
1735
dded5540
VS
17362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
1739 Mark calling with invalid term as GRUB_ERR_BUG.
1740
0cf69874
VS
17412012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
1744 packets rather than raising an error.
1745
59bfe502
VS
17462012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
1749 in if.
1750
db5fc596
VS
17512012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
1754 diagnostic to dprintf.
1755 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1756
e4b7f404
VS
17572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1758
1759 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
1760 device name.
1761
e7b02f9e
VS
17622012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
1765 (grub_ntfs_iterate_dir): Likewise.
1766
0331e102
VS
17672012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 Efiemu stylistic fixes and gettext.
1770
1771 * grub-core/efiemu/i386/loadcore32.c
1772 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
1773 * grub-core/efiemu/i386/loadcore64.c
1774 (grub_arch_efiemu_relocate_symbols64): Likewise.
1775 * grub-core/efiemu/i386/pc/cfgtables.c
1776 (grub_machine_efiemu_init_tables): Likewise.
1777 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
1778 (grub_efiemu_loadcore_initXX): Add a filename argument.
1779 All users updated.
1780 Improved error message.
1781 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
1782 Add a filename argument.
1783 All users updated.
1784 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
1785 Reclassify double relocation as GRUB_ERR_BUG.
1786
306fc074
VS
17872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
1790 handling.
1791
794d8ef2
VS
17922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
1795 on partition.
1796
17972012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
1798
1799 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
1800
794d8ef2 18012012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
1802
1803 Improve string. Gettextize.
1804
78dde88e
VS
18052012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
1808 utils.
1809 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
1810
4786a90f
VS
18112012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
1814 [GRUB_UTIL]: New function.
1815 (insert_array) [GRUB_UTIL]: Store partmaps.
1816 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
1817 partmaps.
1818 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
1819 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
1820 (probe_abstraction): Print diskfilter and not raid.
1821 Reported by: Lennart Sorensen
1822
0b6225bd
VS
18232012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
1826 * util/grub-mkimagexx.c (MASK3): New define.
1827 (add_value_to_slot_20b): Use MASK3.
1828 (add_value_to_slot_21): Likewise.
1829 (relocate_addresses): Fix format specification.
1830 (load_image): Explicitly init symtab_section.
1831
b055f8f6
VS
18322012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
1835 (grub_util_biosdisk_get_grub_dev): Fix format specification.
1836
b77c2fb7
VS
18372012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
1840 on powerpc.
1841 Reported by: Lennart Sorensen
1842
e3ec28ab
VS
18432012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * gentpl.py: Add missing license header.
1846 * docs/grub.texi: Update copyright year.
1847
c8d9ead6
GS
18482012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1849
1850 Source grub-mkconfig_lib from the build directory at build time.
1851 Suggested by: Vladimir Serbinenko.
1852
1853 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
1854 * util/grub-install.in: Define pkgdatadir if not already set, and source
1855 grub-mkconfig_lib from there.
1856 * util/grub-kbdcomp.in: Likewise.
1857 * util/grub-mkconfig.in: Likewise.
1858 * util/grub-mknetdir.in: Likewise.
1859 * util/grub-mkrescue.in: Likewise.
1860 * util/grub-mkstandalone.in: Likewise.
1861 * util/grub-reboot.in: Likewise.
1862 * util/grub-set-default.in: Likewise.
1863 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1864
ebcecdf1
VS
18652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 Increase warning level.
1868
1869 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
1870 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
1871 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
1872 (TARGET_CFLAGS): Likewise.
1873 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
1874 * grub-core/Makefile.core.def (decompressor_xz): Add
1875 -Wno-unreachable-code.
1876 (normal): Add -Wno-redundant-decls.
1877 (xzio): Add -Wno-unreachable-code.
1878 (lzopio): Add -Wno-redundant-decls -Wno-error.
1879 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
1880 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
1881 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
1882 * grub-core/kern/dl.c: Add exception to -Wcast-align.
1883 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
1884 * grub-core/kern/i386/coreboot/init.c: Add exception to
1885 -Wsuggest-attribute=noreturn.
1886 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
1887 * grub-core/kern/ia64/dl_helper.c: Likewise.
1888 * grub-core/kern/mips/dl.c: Likewise.
1889 * grub-core/kern/sparc64/dl.c: Likewise.
1890 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
1891 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
1892 (memcmp): Likewise.
1893 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
1894 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
1895 * grub-core/loader/mips/linux.c: Likewise.
1896 * grub-core/loader/multiboot_elfxx.c: Likewise.
1897 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
1898 * grub-core/video/sm712.c: Add exception to -Wcast-align.
1899 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
1900 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
1901 fixme.
1902 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1903 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
1904 Fix prototype.
1905
37bb97fe
VS
19062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
1909 address.
1910
29a3550b
VS
19112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1914 Avoid improper use of strings.
1915 (grub_cmd_legacy_initrdnounzip): Likewise.
1916
dfdffd0d
VS
19172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * include/grub/emu/misc.h (grub_util_warn): Add missing format
1920 attribute.
1921 (grub_util_info): Likewise.
1922 (grub_util_error): Likewise.
1923
102fae4a
VS
19242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
1927 * util/grub-fstest.c (fstest): Likewise.
1928
7e94d044
VS
19292012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
1932 (grub_md_sha512_real): Likewise.
1933 (grub_util_get_geli_uuid): Likewise.
1934 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
1935 (grub_util_biosdisk_open): Fix format specification.
1936 Respect format security.
1937 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
1938 (xrealloc): Likewise.
1939 (xasprintf): Likewise.
1940
5ebd9769
VS
19412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * util/import_gcry.py: Include grub/crypto.h in init.c.
1944
495fc8c1
VS
19452012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
1948 (generate_image): Make prefix a const char *.
1949 Fix format specifications. Respect format security.
1950 Avoid void * arithmetics.
1951 Avoid shadowing.
1952 (argp_parser): Remove unused variable. Respect format security.
1953 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
1954 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
1955 (count_funcs): Remove unused variable.
1956 (relocate_addresses): Fix format specification.
1957 Disable x86-64 with elf32. Remove unused variables.
1958 (add_fixup_entry): Avoid shadowing.
1959 (make_reloc_section): Fix format specification.
1960 Use assert.
1961 (locate_sections): Fix format specifications.
1962 (load_image): Avoid shadowing.
1963
043c2ea3
VS
19642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
1967 Fix format specifications. Respect format security.
1968 Don't translate already translated grub_errmsg.
1969 (argp_parser): Remove unused variable
1970
3ec65a81
VS
19712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
1974
a4d9fe4a
VS
19752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
1978 (main): Likewise. Use xmalloc. Respect format security.
1979
15b81d49
VS
19802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
1983 a const char *.
1984 (argp_parser): Remove unused variable.
1985
31731fc0
VS
19862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
1989 (add_pixel): Make static.
1990 (add_font): Likewise.
1991 (write_string_section): Make name and str a const char *.
1992 (write_be16_section): Make name a const char *.
1993 (print_glyphs): Make static.
1994 (write_font_ascii_bitmap): Likewise.
1995 (write_font_width_spec): Likewise.
1996 (write_font_pf2): Likewise.
1997 (argp_parser): Remove unused variable.
1998 Respect format security.
1999 (main): Avoid shadowing. Respect format security.
2000
0809527b
VS
20012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2002
2003 * util/grub-editenv.c (argp_parser): Make static.
2004 (create_envblk_file): Use xmalloc.
2005 (open_envblk_file): Likewise.
2006 Resepect format security.
2007 (set_variables): Respect format security.
2008
45b0c8b7
VS
20092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * util/getroot.c (grub_find_device): Respect format security.
2012 (get_mdadm_uuid): Remove unused variable.
2013 (grub_util_pull_device): Dont call gettext on already translated
2014 grub_errmsg.
2015 (find_system_device): Remove unused variable.
2016 (grub_util_get_grub_dev): Likewise.
2017 (grub_make_system_path_relative_to_its_root): Respect format security.
2018
1b024b4e
VS
20192012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * util/grub-fstest.c (execute_command): Make first argument
2022 a const char *.
2023 (read_file): Avoid shadowing.
2024 Reuse underlying error message if device open fails.
2025 (cmd_cmp): Respect format security.
2026 (root): Make const char *.
2027 (fstest): Remove args argument and use global copy.
2028 Respect format security.
2029 (argp_parser): Make static.
2030 (main): Make default_root const char *.
2031
5d1d4e28
VS
20322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * util/grub-mount.c (root): Make const char *.
2035 (execute_command): Make first argument a const char *.
2036 (fuse_init): Respect format security.
2037 (argp_parser): Make static. Remove unused variable.
2038 (main): Make default_root a const char *.
2039 Respect format security.
2040
36eb7379
VS
20412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * util/grub-probe.c (probe): Don't call gettext on already translated
2044 grub_errmsg.
2045 Remove unused variables.
2046 (argp_parser): Remove unused variable.
2047
76fb2ea9
VS
20482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * util/grub-script-check.c (argp_parser): Remove unused variable.
2051 (main): Rename read to curread to avoid shadowing.
2052
56c98584
VS
20532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * util/misc.c (grub_util_write_image_at): Fix format specification.
2056 (grub_util_write_image): Likewise.
2057 (grub_script_execute_argument_to_string): Removed (unused).
2058 (grub_script_execute_menuentry): Likewise.
2059 (grub_putchar): Likewise.
2060
164ebb48
VS
20612012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2062
2063 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
2064 (FUNCTION) [GRUB_UTIL]: Likewise.
2065 (VARIABLE) [GRUB_UTIL]: Likewise.
2066
44318d61
VS
20672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
2070 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
2071
31a26002
VS
20722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
2075 buffer.
2076
20772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
2080 (LzmaEnc_SaveState): Removed (unused).
2081 (LzmaEnc_RestoreState): Likewise.
2082 (LzmaEnc_InitPriceTables): Made static.
2083 (LzmaEnc_Construct): Likewise.
2084 (LzmaEnc_FreeLits): Likewise.
2085 (LzmaEnc_Destruct): Likewise.
2086 (LzmaEnc_Init): Likewise.
2087 (LzmaEnc_InitPrices): Likewise.
2088 (LzmaEnc_Finish): Likewise.
2089 (LzmaEnc_PrepareForLzma2): Removed (unused).
2090 (LzmaEnc_MemPrepare): Likewise.
2091 (LzmaEnc_GetNumAvailableBytes): Likewise.
2092 (LzmaEnc_GetCurBuf): Likewise.
2093 (LzmaEnc_CodeOneMemBlock): Likewise.
2094
6fa67967
VS
20952012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
2098 (grub_util_ldm_embed): Likewise.
2099
9a7428e6
VS
21002012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * util/grub-editenv.c (print_var): Rename name to varname to
2103 avoid shadowing.
2104 (main): Rename index to curindex to avoid shadowing.
31a26002 2105 Make filename a const char *.
9a7428e6 2106
4f96abd1
VS
21072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2110 to arg_getline to avoid shadowing.
2111
44d10dad
VS
21122012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
2115 disk_ to avoid shadowing.
2116
340ba63e
VS
21172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
2120 curindex to avoid shadowing.
2121 Make static.
2122 (MatchFinder_GetNumAvailableBytes): Make static.
2123
22965bce
VS
21242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
2127 avoid shadowing.
2128
7b5784d4
VS
21292012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
2132 argument from encrypt to do_encrypt to avoid shadowing.
2133
6f48ca01
VS
21342012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
2137 incorrect nesting of #if's.
2138
a4ea2dff
VS
21392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
2142 checks which are always false on some platforms.
2143 (grub_cmd_lsacpi): Likewise.
2144 * grub-core/kern/misc.c (grub_strtoul): Likewise.
2145 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
2146 Likewise.
2147
def9fc1b
VS
21482012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
2151 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
2152
a67b2a04
VS
21532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
2156 re_dfa_t to avoid breaking alignment invariants.
2157 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
2158 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
2159
44c6828d
VS
21602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
2163 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
2164
bebe0dd0
VS
21652012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
2168 Fix declaration.
2169
a9cdb3cf
VS
21702012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2171
2172 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
2173 conserve alignment invariants.
2174 (grub_ehci_ehcc_read16): Likewise.
2175 (grub_ehci_oper_read32): Likewise.
2176 (grub_ehci_oper_write32): Likewise.
2177 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
2178 Conserve alignment invariants.
2179
ccc3b1b8
VS
21802012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
2183 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
2184 declarations.
2185
987fbd95
VS
21862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
2189 Remove unused variable.
2190
0df363f3
VS
21912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
2194 Remove set in if.
2195
b2c0c4a6
VS
21962012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * include/grub/net.h: Remove double declarations.
2199
690c531f
VS
22002012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 Remove "payload" command in ia64 Linux loader since I couldn't
2203 find any evidence of it being used for anything.
2204 Replace "relocate" command with an environment variable
2205
2206 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
2207 fields.
2208 (ia64_boot_payload): Removed.
2209 (last_payload): Likewise.
2210 (RELOCATE_OFF): Likewise.
2211 (RELOCATE_ON): Likewise.
2212 (RELOCATE_FORCE): Likewise.
2213 (relocate): Likewise.
2214 (free_pages): Don't free payloads.
2215 (grub_load_elf64): Use common error messages.
2216 Use "linux_relocate" variable.
2217 Increase the space after boot_params.
2218 (grub_cmd_payload): Removed.
2219 (grub_cmd_relocate): Likewise.
2220 (grub_cmd_fpswa): Improve messages.
2221 (cmd_payload): Removed.
2222 (cmd_relocate): Likewise.
2223 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
2224 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
2225
01783768
VS
22262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 Convert UHCI to DMA framework.
2229
2230 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
2231 (grub_uhci_pci_iter): Fill new members
2232 (grub_alloc_td): Use P2V and V2P functions.
2233 (grub_free_queue): Likewise.
2234 (grub_alloc_qh): Likewise.
2235 (grub_uhci_setup_transfer): Likewise.
2236 (grub_uhci_check_transfer): Likewise.
2237
43206939
VS
22382012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
2241 Remove assignment in if while on it.
2242
571e140e
VS
22432012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * util/grub-mkstandalone.in: Fix modules directory.
2246
a9d96eeb
VS
22472012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
2250 on i386-pc target.
2251 (argp_parser): Accept "auto" as compression specification.
2252
e4e37e8d
VS
22532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 Fix `help' with unloaded modules.
2256
2257 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
2258 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
2259 (grub_dyncmd_dispatcher): Small stylistic fix.
2260 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
2261 explicit help is requested.
2262
e1ea3ade
VS
22632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
2266 Explicitly init restart while on it.
2267
27556881
VS
22682012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
2271 uninited variable.
2272
d65f6b36
VS
22732012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * util/grub-mknetdir.in: Use . rather than source for POSIX
2276 compatibility.
2277
0a1e473c
VS
22782012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
2281
ce6647c8
VS
22822012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
2285 variable.
2286
66747894
VS
22872012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
2290 without quotes.
2291
71645f6e
VS
22922012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
2295
0e1c1f61
VS
22962012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
2299 iteration of partitions.
2300
9c4b5c13
VS
23012012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 Improve gettext support. Stylistic fixes and error handling fixes while
2304 on it.
2305
215c90cb
VS
23062012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
2309 part. Instead setup the correct stack in RM.
2310 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
2311 for stack.
2312 * include/grub/i386/relocator_private.h: New file.
2313
b5c1f9bf
VS
23142012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
2317 argument.
2318 * util/grub-fstest.c (options): Add missing DEVICE part.
2319
b525fd83
VS
23202012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 Clarify and unify messages.
2323
2324 * grub-core/commands/hashsum.c (options): Unify messages.
2325 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
2326 literal-only message as translatable.
2327 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
2328 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
2329 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
2330 commands.
2331 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
2332 key, not the key used to unlock. Clarify what it's used for.
2333 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
2334 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
2335 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
2336 * util/grub-editenv.c (options): Unify "verbose" message.
2337 * util/grub-fstest.c (read_file): Unify error message.
2338 (fstest): Add quotes around commands.
2339 (options): Unify "verbose" message.
2340 * util/grub-install.in: Add quotes around variable name.
2341 * util/grub-kbdcomp.in: Unify error message.
2342 * util/grub-mkfont.c (main): Likewise.
2343 * util/grub-mkrescue.in: Likewise.
2344 * util/grub-mklayout.c (options): Unify "verbose" message.
2345 * util/grub-mkstandalone.in: Unify help and verbose messages.
2346 * util/grub-mount.c (options): Unify "verbose" message.
2347 * util/grub-probe.c (options): Likewise.
2348 * util/grub-script-check.c (options): Likewise.
2349 * util/grub-setup.c (setup): Unify no-terminator message.
2350 (options): Use DEVICE and not DEV.
2351 Unify "verbose" message.
2352 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
2353
0ae70393
VS
23542012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 Improve and unify messages.
2357
2358 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
2359 name. All users updated.
2360 Print filename in error.
2361 (read_device_map): Print filename in error.
2362 * util/getroot.c (grub_guess_root_devices): Print filename in error.
2363 (grub_util_get_os_disk): Likewise.
2364 (grub_util_biosdisk_get_grub_dev): Likewise.
2365 (grub_util_check_block_device): Likewise.
2366 (grub_util_check_char_device): Likewise.
2367 (grub_make_system_path_relative_to_its_root): Likewise.
2368 * util/grub-editenv.c (create_envblk_file): Likewise.
2369 (open_envblk_file): Likewise.
2370 (write_envblk): Likewise.
2371 * util/grub-fstest.c (cmd_cp): Likewise.
2372 (cmd_cat): Likewise.
2373 (cmd_cmp): Likewise.
2374 * util/grub-menulst2cfg.c (main): Likewise.
2375 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
2376 (write_font_width_spec): Likewise.
2377 (write_font_pf2): Likewise.
2378 * util/grub-mkimage.c (generate_image): New argument outname.
2379 All users updated.
2380 Remove unreacheable message.
2381 (options): Unify messages.
2382 (help_filter): Likewise.
2383 * util/grub-mklayout.c (usage): Removed (unused).
2384 (main): Print filename in error.
2385 * util/grub-mkrescue.in: Fix wrong quoting.
2386 * util/grub-setup.c (setup): Print filename in error.
2387 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
2388 (check_sas): Likewise.
2389 * util/misc.c (grub_util_get_fp_size): Removed.
2390 (grub_util_get_image_size): Print filename in error.
2391 (grub_util_read_at): Removed.
2392 (grub_util_read_image): Print filename in error.
2393 (grub_util_load_image): Likewise.
2394 (grub_util_write_image_at): New argument filename. All users updated.
2395 Print filename in error.
2396 (grub_util_write_image): New argument filename. All users updated.
2397 Print filename in error.
2398 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
2399 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
2400
0a96117d
VS
24012012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/Makefile.core.def (pxechain): New module.
2404 * grub-core/loader/i386/pc/pxechainloader.c: New file.
2405 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
2406 function.
2407 (grub_pc_net_config_real): Use grub_pxe_get_cached.
2408 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
2409
aca002f7
VS
24102012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
2413 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
2414 * include/grub/err.h (grub_error_saved): New struct.
2415 (grub_errmsg): Make array size explicit.
2416 * include/grub/misc.h (grub_error_save): New function.
2417 (grub_error_load): Likewise.
2418 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
2419 (grub_error_push): Update `errno' member name.
2420 (grub_error_pop): Likewise
2421 * grub-core/net/tftp.c (tftp_data): New member save_err.
2422 (tftp_receive): Save error.
2423 (tftp_open): Restore error.
2424
a51dab13
VS
24252012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
2428 to real mode down to execute A20-related code in protected mode as
2429 intended.
2430
eb6e6649
GS
24312012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2432
2433 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
2434 NULL when the argument `level' has an unexpected value.
2435
92cd0f6e
VS
24362012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 Move platform-dependent files from $prefix to $prefix/$platform.
2439
2440 * config.h.in (GRUB_TARGET_CPU): New definition.
2441 (GRUB_PLATFORM): Likewise.
2442 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
2443 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
2444 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
2445 * grub-core/kern/dl.c (grub_dl_load): Likewise.
2446 * grub-core/normal/autofs.c (read_fs_list): Likewise.
2447 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
2448 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
2449 * grub-core/normal/term.c (read_terminal_list): Likewise.
2450 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
2451 $prefix/locale.
2452 (grub_gettext_init_ext): Likewise.
2453 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
2454 grub_platform.
2455 * util/grub-install.in: Update directories.
2456 * util/grub-mknetdir.in: Likewise.
2457 * util/grub-mkrescue.in: Likewise.
2458
db606889
VS
24592012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
2462 grub_error framework. All users updated.
2463
c39992a4
VS
24642012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
2467 lists (by always binsearching), improve caching (cache strings
2468 used for binsearch, not only results), improve
2469 maintainability (by using more structured binary search) and correct
2470 error handling.
2471
1e5ec32f
VS
24722012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/script/execute.c (grub_script_return): Fix warning.
2475
ac576cde
VS
24762012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2477
2478 * grub-core/script/execute.c (grub_script_return): Fix potential
2479 NULL-dereference.
2480 Reported by: Jim Meyering.
2481
498453f6
VS
24822012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * po/POTFILES.in: Regenerate.
2485 * util/grub-install.in: Gettextize the strings missed in first pass.
2486
8be63f2e
VS
24872012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * Makefile.util.def (grub-mkdevicemap): Removed.
2490 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
2491 * include/grub/util/deviceiter.h: Removed.
2492 * util/deviceiter.c: Likewise.
2493 * util/getroot.c (grub_util_get_os_disk): New function.
2494 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
2495 replacement for EFI.
2496 * util/grub-mkdevicemap.c: Removed.
2497 * util/grub-probe.c (probe): Handle PRINT_DISK.
2498 (argp_parser): Handle -t disk.
2499
8e1e4e39
VS
25002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * util/grub-mkfont.c: Migrate to argp.
2503 * util/grub-mklayout.c: Likewise.
2504 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2505 * util/grub-mkrelpath.c: Likewise.
2506 * util/grub-probe.c: Likewise.
2507 * util/grub-script-check.c: Likewise.
2508
4459819a
VS
25092012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 * util/grub-reboot.in: Add missing datarootdir.
2512 Add missing newline.
2513 * util/grub-set-default.in: Add missing datarootdir.
2514 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
2515 * util/grub-mkrescue.in: Likewise.
2516
f65741c7
VS
25172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
2520
c1a33466
VS
25212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * util/grub-kbdcomp.in: Add decent help and gettextize.
2524 * docs/man/grub-kbdcomp.h2m: New file.
2525
c76899a0
VS
25262012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 Migrate grub-mkimage.c to argp.
2529
2530 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
2531 (grub-setup): Likewise.
2532 * util/grub-setup.c (print_version): Move to ...
2533 * util/argp_common.c (print_version): ... here.
2534 * util/grub-setup.c (argp_program_version_hook): Move to ...
2535 * util/argp_common.c (argp_program_version_hook): ... here.
2536 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
2537 safety.
2538 * util/grub-mkimage.c (main): Migrate to argp.
2539
57db0757
VS
25402012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * util/grub-mkrescue.in: Use same message as
2543 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
2544 for better translations.
2545
18534ad9
VS
25462012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
2549 options with generic grub-mkrescue.in with the goal of future
2550 merge.
2551
c84ba308
VS
25522012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/kern/mm.c: Add missing include of i18n.h
2555 * grub-core/lib/relocator.c: Likewise.
2556
347998c2
VS
25572012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
2560 error.
2561 (allocate_pages): Check return value.
2562 Replace fatal with error.
2563 (grub_linux_boot): Replace printf with dprintf.
2564 Check find_mmap_size return value.
2565 Replace fatal with error.
2566 Don't call grub_machine_fini.
2567 (grub_load_elf64): Replace printf with dprintf.
2568 (grub_cmd_linux): Likewise.
2569 (grub_cmd_initrd): Likewise.
2570 (grub_cmd_payload): Likewise.
2571
c779226e
VS
25722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
2575 message.
2576 * grub-core/video/radeon_fuloong2e.c
2577 (grub_video_radeon_fuloong2e_setup): Likewise.
2578 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
2579 * grub-core/video/video.c (grub_video_set_mode): Don't override
2580 standard out of memory message.
2581
dc87d45a
GS
25822012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2583
2584 NetBSD disk wedge support.
2585
2586 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
2587 [__NetBSD__]: Handle NetBSD disk wedges.
2588 * util/getroot.c (convert_system_partition_to_system_disk)
2589 [__NetBSD__]: Likewise.
2590
055f856f
MW
25912012-02-03 Mark Wooding <mdw@distorted.org.uk>
2592
2593 * util/grub-mkconfig.in: Use umask rather than chmod to create
2594 grub.cfg.new to avoid insecure grub.cfg.
2595
4a9f8346
VS
25962012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * grub-core/commands/ls.c: Gettextize.
2599 * grub-core/commands/setpci.c: Likewise.
2600 * grub-core/commands/videotest.c: Likewise.
2601 * grub-core/disk/geli.c: Likewise.
2602 * grub-core/kern/mm.c: Likewise.
2603 * grub-core/lib/relocator.c: Likewise.
2604 * grub-core/loader/efi/appleloader.c: Likewise.
2605 * grub-core/loader/i386/xnu.c: Likewise.
2606 * grub-core/loader/ia64/efi/linux.c: Likewise.
2607 * grub-core/loader/xnu.c: Likewise.
2608 * grub-core/net/dns.c: Likewise.
2609 * grub-core/net/net.c: Likewise.
2610 * grub-core/script/lexer.c: Likewise.
2611 * grub-core/script/parser.y: Likewise.
2612 * grub-core/script/yylex.l: Likewise.
2613 * util/getroot.c: Likewise.
2614 * util/grub-setup.c: Likewise.
2615
a646a366
VS
26162012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
2619 number.
2620
54e2be26
VS
26212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
2624
f7c71e68
VS
26252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
2628 macro.
2629 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
2630 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
2631
a32d5c71
VS
26322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
2635 * util/grub-install.in: Gettextize.
2636 * util/grub-mkconfig.in: Likewise.
2637 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
2638 if not available.
2639 (grub_warn): Gettextize.
2640 * util/grub-mknetdir.in: Gettextize.
2641 * util/grub-mkrescue.in: Likewise.
2642 * util/grub-mkstandalone.in: Likewise.
2643 * util/grub-reboot.in: Likewise.
2644 * util/grub-set-default.in: Likewise.
2645 * util/grub.d/00_header.in: Likewise.
2646 * util/grub.d/10_hurd.in: Likewise.
2647 * util/grub.d/10_kfreebsd.in: Likewise.
2648 * util/grub.d/10_linux.in: Likewise.
2649 * util/grub.d/10_netbsd.in: Likewise.
2650 * util/grub.d/10_windows.in: Likewise.
2651 * util/grub.d/20_linux_xen.in: Likewise.
2652 * util/grub.d/30_os-prober.in: Likewise.
2653 * po/POTFILES-shell.in: Regenerate.
2654
69edd81a
RL
26552012-02-03 Richard Laager <rlaager@wiktel.com>
2656
2657 * util/grub-mkimage.c (main): Fix format-security warning.
2658 * util/grub-mkrelpath.c (main): Likewise.
2659 * util/grub-probe.c (main): Likewise.
2660
65f08dbf
RL
26612012-02-03 Richard Laager <rlaager@wiktel.com>
2662
2663 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
2664 failure.
2665 Put back lost PRINT_DRIVE.
2666
e9084abe
RL
26672012-02-03 Richard Laager <rlaager@wiktel.com>
2668
2669 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
2670 (grub_guess_root_devices): Replace strlen with sizeof.
2671 Avoid crash.
2672 (find_root_devices_from_poolname): Remove unused variable.
2673 Handle raidzN.
2674
cf5f7ee7
VS
26752012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 Support install on multi-device filesystems.
2678
2679 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
2680 (grub_guess_root_devices): ...this. Return char **. All users updated.
2681 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
2682 Removed.
2683 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
2684 (find_root_devices_from_poolname): ... here.
2685 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
2686 Support zfs-fuse.
2687 (grub_guess_root_device): Rename to ...
2688 (grub_guess_root_devices): ... this. Return char **. All users updated.
2689 * util/grub-install.in: Handle multi-device filesystems.
2690 * util/grub-probe.c (probe). Make device_names a char **. Add delim
2691 argument. All users updated.
2692 Handle multi-device filesystems.
2693 Use 'delim' as separator.
2694 Remove device check to allow filesystems on file.
2695 (main): Support -0 argument. Handle multi-device.
2696 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
2697 Fix a cross-device check while on it.
2698 (arguments): Remove root_dev.
2699 (argp_parser): Remove -r.
2700 (main): Remove root_dev.
2701
2f53a9ed
VS
27022012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
2705
17e1d934
VS
27062012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
2709 symbol.
2710 Reported by: NODA, Kai <nodakai>.
2711
d3e3fab5
VS
27122012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 Fix ehci on amd64.
2715
2716 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
2717 pointers.
2718 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
2719 (grub_ehci_setup_qh): Likewise.
2720 (grub_ehci_find_qh): Likewise.
2721 (grub_ehci_transaction): Likewise.
2722 (grub_ehci_setup_transfer): Likewise.
2723 (grub_ehci_check_transfer): Likewise.
2724 (grub_ehci_portstatus): Likewise.
2725 (grub_ehci_detect_dev): Likewise.
2726 (grub_ehci_transfer_controller_data): New field td_last_phys.
2727 (grub_ehci_setup_transfer): Fill td_last_phys.
2728 (grub_ehci_check_transfer): Use td_last_phys.
2729
3008675b
SG
27302012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
2731
2732 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
2733 if no submenu is present.
2734
fc9b5652
AN
27352012-02-01 Aleš Nesrsta <starous@volny.cz>
2736
2737 CBI support.
2738
2739 * include/grub/usb.h (grub_usbms_protocol_t): New values
2740 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
2741 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
2742 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
2743 (grub_usbms_dev): Add subclass, protocol and intrpt.
2744 Remove in_maxsz and out_maxsz.
2745 (grub_usbms_reset): Rename to ...
2746 (grub_usbms_bo_reset): .. this.
2747 (grub_usbms_cbi_cmd): New function.
2748 (grub_usbms_cbi_reset): Likewise.
2749 (grub_usbms_reset): Likewise.
2750 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
2751 (grub_usbms_transfer): Rename to ...
2752 (grub_usbms_transfer_bo): ... this.
2753 (grub_usbms_transfer_cbi): Likewise.
2754 (grub_usbms_transfer): Likewise.
2755
a2b81d53
AN
27562012-02-01 Aleš Nesrsta <starous@volny.cz>
27572012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
2760 the support for the CS5536 modification thereos and few bugfixes.
2761
2762 * grub-core/Makefile.core.def (ehci): New module.
2763 * grub-core/bus/usb/ehci.c: New file.
2764 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
2765 port and hubaddr. All users updated.
2766 Save port and hubaddr into dev structure.
2767 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
2768 define.
2769 * include/grub/pci.h (grub_dma_phys2virt): New function.
2770 (grub_dma_virt2phys): Likewise.
2771 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
2772
b1d51f02
VS
27732012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
2776 check as some mkfs implementations omit it.
2777
fc694106
VS
27782012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * docs/grub.texi (Unicode): Mention identifier and space limitations.
2781
6c0920e3
VS
27822012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
2785 Add new member volname2.
2786 (grub_jfs_label): Use volname2 if available.
2787
d1a46f9a
VS
27882012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
2791 over last_mounted as seen in image generated by mkfs.nilfs2.
2792 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
2793
dec8ed14
VS
27942012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
2797 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
2798 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
2799
7397c69b
VS
28002012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
2803 over the sector.
2804
b3fe42ad
VS
28052012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
2808 subvolume name (by removing a bogus and useless check).
2809
10476bb0
VS
28102012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
2813 sizeof while on it.
2814
9c08ad87
VS
28152012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
2818 (grub_scsi_read_capacity10): ... this.
2819 (grub_scsi_read_capacity16): New function.
2820 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
2821 0xffffffff.
2822 Fix off-by-one error.
2823 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
2824 64-bit unsigned.
2825 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
2826 (grub_scsi_read_capacity10): ... this.
2827 (grub_scsi_read_capacity_data): Rename to ...
2828 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
2829 (grub_scsi_read_capacity16): New struct.
2830 (grub_scsi_read_capacity16_data): Likewise.
2831 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
2832 grub_scsi_cmd_read_capacity10.
2833 New command grub_scsi_cmd_read_capacity16.
2834
bc8d0f45
VS
28352012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 SCSI >2TiB support.
2838
2839 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
2840 (grub_scsi_write16): Likewise.
2841 (grub_scsi_read): Use read16 when necessary.
2842 (grub_scsi_write): Likewise.
2843 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
2844 (grub_scsi_write16): Likewise.
2845 (grub_scsi_cmd_t): Add READ16 and WRITE16.
2846
cc774926
VS
28472012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 SCSI write support (for usbms mainly).
2850
2851 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
2852 a const pointer.
2853 (grub_scsi_write): Implement.
2854 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
2855
67639fd7
VS
28562012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
2859 variable.
2860
9079d3ed
VS
28612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * grub-core/lib/posix_wrap/string.h (memchr): New function.
2864
c6a6f204
VS
28652012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * po/POTFILES.in: Regenerate.
2868
ecbf8cd1
VS
28692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2870
2871 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
2872 with grub_printf to avoid unnecessary fatal failure.
2873
0b3b3b38
VS
28742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
2877 (INT_MAX): Likewise.
2878 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
2879 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
2880 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
2881 (strcpy): Likewise.
2882 (strstr): Likewise.
2883 (strchr): Likewise.
2884 (strncpy): Likewise.
2885 (strcat): Likewise.
2886 (strncat): Likewise.
2887 (strcoll): Likewise.
2888 * include/grub/types.h (GRUB_SHRT_MAX): New define.
2889 (GRUB_INT_MAX): Likewise.
2890
db7337a3
VS
28912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
2894 unexpected error.
2895 (optimize_utf8): Likewise.
2896 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
2897
f37c87e1
VS
28982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/boot/i386/pc/lnxboot.S: Use
2901 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
2902 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
2903 location.
2904 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
2905 definition.
2906 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
2907
63fe43f3
VS
29082012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
2911 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
2912 now to avoid double free.
2913 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
2914 hostdisk.
2915 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
2916 * util/grub-probe.c (escape_of_path): Always return a new copy.
2917 (print_full_name): Escape path.
2918 (probe): Don't call grub_util_devname_to_ofpath on NULL.
2919 Fix hints on abstractions.
2920
ebe2c961
VS
29212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
2924 Don't add "root" line if no compatibility hont is available.
2925 Suggested by: Seth Goldberg.
2926
2b5336a2
VS
29272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
2930 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
2931 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
2932 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
2933
74310bd8
VS
29342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
2937
c30582ba
VS
29382012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * util/grub-pe2elf.c (ehdr): Make static.
2941 (shdr): Likewise.
2942 (num_sections): Likewise.
2943 (offset): Likewise.
2944
5f47782c
VS
29452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 Eliminate ofpath limits and possible overflows.
2948
2949 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
2950 (OF_PATH_MAX): Removed.
2951 (MAX_DISK_CAT): New const.
2952 (find_obppath): Use allocated rather than preallocated buffer.
2953 Return result. Argument of_path removed. All users updated.
2954 Add missing fdstat.
2955 (xrealpath): New function.
2956 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
2957 Allocate rather than use preallocated buffer. All users updated.
2958 (__of_path_common): Use allocated rather than preallocatecd buffer.
2959 Return result. Argument of_path removed. All users updated.
2960 (vendor_is_ATA): Read only needed part form the file.
2961 (check_sas): Allocate depending on contents rather than fixed.
2962 (main) [STANDALONE]: Handle NULL result.
2963
f990cbf9
VS
29642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/normal/completion.c (iterate_dev): Close the disk.
2967
9c6e84b8
VS
29682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 Cryptodisk write support.
2971
2972 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
2973 (grub_cryptodisk_decrypt): Moved logic to ...
2974 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
2975 (grub_cryptodisk_write): Implement.
2976 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
2977 (grub_util_fd_write): ... this. Make global.
2978 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
2979
87cf9744
VS
29802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * include/grub/list.h (grub_list_remove): Don't crash if element is
2983 removed twice.
2984
ca8c0baf
VS
29852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 Rename ofconsole to console.
2988
2989 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
2990 as sysnonym to console.
2991 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
2992 * grub-core/term/ieee1275/console.c: ... this. All users updated.
2993 Rename grub_ofconsole_ to grub_console_. All users updated
2994 (grub_console_term_output): Rename "ofconsole" to "console".
2995 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
2996 as "console".
2997
64c8b8f6
VS
29982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
3001 handling.
3002 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
3003 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
3004 GRUB_DISK_DEVICE_FILE_ID.
3005
f6c434d5
VS
30062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
3009 and improve performance.
3010
5858b42d
VS
30112012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
3014 missing ieee1275/ prefix on whole disk.
3015
4ed3c26b
VS
30162012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
3019 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
3020
df71143e
VS
30212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
3024
076e7c0f
VS
30252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 Merge common RAID and LVM logic to an abstract diskfilter.
3028 Add LDM support using the same framework.
3029
3030 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
3031 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
3032 (libgrubmods): Remove grub-core/disk/raid.c and
3033 grub-core/partmap/gpt.c.
3034 * grub-core/Makefile.core.def (ldm): New module.
3035 (raid): Renamed to diskfilter. All users updated.
3036 * grub-core/disk/raid.c: Moved to ...
3037 * grub-core/disk/diskfilter.c: ... here.
3038 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
3039 (lv_num): New var.
3040 (find_array): Renamed to ...
3041 (find_lv): ... this. Support multi-LV. Skip nameless LVs
3042 (grub_is_array_readable): Renamed to ...
3043 (grub_is_lv_readable): ... this. Support multinode hierarchy.
3044 (insert_array): New argument id.
3045 (is_node_readable): New function.
3046 (scan_device): Rename to ...
3047 (scan_disk): .. this. Restrict to one disk.
3048 (scan_devices): New function.
3049 (grub_diskfilter_iterate): Support multi-LV.
3050 Skip invisible and nameless LVs.
3051 (grub_diskfilter_memberlist): Support multi-LV.
3052 (grub_diskfilter_read_node): New function.
3053 (grub_raid_read): Most of logic moved to ...
3054 (read_segment): ... here
3055 (read_lv): New function.
3056 (grub_diskfilter_get_vg_by_uuid): New function.
3057 (grub_diskfilter_make_raid): Likewise.
3058 * grub-core/disk/ldm.c: New file.
3059 * grub-core/disk/lvm.c (vg_list): Removed.
3060 (lv_count): Likewise.
3061 (scan_depth): Likewise.
3062 (is_lv_readable): Likewise.
3063 (grub_lvm_getvalue): Advance pointer past the number.
3064 (find_lv): Removed.
3065 (do_lvm_scan): Refactored into ...
3066 (grub_lvm_detect): ... this. Support raid.
3067 (grub_lvm_iterate): Removed.
3068 (grub_lvm_memberlist): Likewise.
3069 (grub_lvm_open): Likewise.
3070 (grub_lvm_close): Likewise.
3071 (read_lv): Likewise.
3072 (read_node): Likewise.
3073 (is_node_readable): Likewise.
3074 (is_lv_readable): Likewise.
3075 (grub_lvm_read): Likewise.
3076 (grub_lvm_write): Likewise.
3077 (grub_lvm_dev): Use diskfilter
3078 (GRUB_MOD_INIT): Likewise.
3079 (GRUB_MOD_FINI): Likewise.
3080 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
3081 new interface.
3082 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
3083 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3084 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
3085 grub_diskfilter_read_node.
3086 Fix a bug with xor.
3087 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
3088 grub_diskfilter_read_node.
3089 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
3090 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
3091 (grub_disk_dev_iterate): Move from here...
3092 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
3093 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3094 Make global.
3095 (grub_hostdisk_find_partition_start): Likewise.
3096 (grub_hostdisk_os_dev_to_grub_drive): New function.
3097 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
3098 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
3099 * util/getroot.c (make_device_name): ... here.
3100 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3101 Move to ...
3102 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
3103 * grub-core/kern/emu/hostdisk.c
3104 (convert_system_partition_to_system_disk): Move to ...
3105 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
3106 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
3107 * util/getroot.c (device_is_wholedisk): ... here.
3108 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
3109 * util/getroot.c (find_system_device): ... here.
3110 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
3111 Move to ...
3112 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
3113 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3114 Move to ...
3115 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
3116 Handle LDM.
3117 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3118 Move to ...
3119 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
3120 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
3121 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
3122 DISKFILTER.
3123 * include/grub/raid.h: Renamed to ...
3124 * include/grub/diskfilter.h: ... this.
3125 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
3126 (GRUB_RAID_LAYOUT_*): Make into array.
3127 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
3128 (grub_diskfilter_vg): New struct.
3129 (grub_diskfilter_pv_id): Likewise.
3130 (grub_raid_member): Removed.
3131 (grub_raid_array): Likewise.
3132 (grub_diskfilter_pv): New struct.
3133 (grub_diskfilter_lv): Likewise.
3134 (grub_diskfilter_segment): Likewise.
3135 (grub_diskfilter_node): Likewise.
3136 (grub_diskfilter_get_vg_by_uuid): New proto.
3137 (grub_raid_register): Inline.
3138 (grub_diskfilter_unregister): Likewise.
3139 (grub_diskfilter_make_raid): New proto.
3140 (grub_diskfilter_vg_register): Likewise.
3141 (grub_diskfilter_read_node): Likewise.
3142 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
3143 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
3144 (grub_util_is_ldm): Likewise.
3145 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
3146 (grub_hostdisk_find_partition_start): Likewise.
3147 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
3148 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
3149 New definition.
3150 (grub_gpt_partition_map_iterate): New proto.
3151 * include/grub/lvm.h (grub_lvm_vg): Removed.
3152 (grub_lvm_pv): Likewise.
3153 (grub_lvm_lv): Likewise.
3154 (grub_lvm_segment): Likewise.
3155 (grub_lvm_node): Likewise.
3156 * util/getroot.c [...]
3157 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
3158 (probe_abstraction): Likewise.
3159 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
3160 (main): Remove dead logic.
3161
8a7f9b9c
VS
31622012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 Simplify root device discover and don't fail when trying to open
3165 incorrect devices.
3166
3167 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
3168 function.
3169 (get_diskname_from_path): Likewise.
3170 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
3171 of iterating.
3172
30545b85
VS
31732012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
3176
28ea58cf
VS
31772012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
3180 pastthe end.
3181
692dabca
VS
31822012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * util/grub-install.in: Add missing \.
3185 Reported by: gentoofan
3186
f6e4ea70
VS
31872012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
3190 (direct_read): Use correct compressed size.
3191 (grub_squash_read_data): Likewise.
3192
31932012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
3194
3195 * docs/grub.texi (Platform limitations): New section.
3196 (Platform-specific operations): Likewise.
3197 * docs/grub-dev.texi (Porting): Likewise.
3198
76261110
VS
31992012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 IEEE1275 disk write support.
3202
3203 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
3204 const void *.
3205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
3206 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
3207 and seek loginc to ...
3208 (grub_ofdisk_prepare): ... here.
3209 (grub_ofdisk_write): Implement.
3210
fc36d603
VS
32112012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 ARC disk write support.
3214
3215 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
3216 (reopen): New argument writable. All users updated.
3217 Handle required access mode.
3218 (grub_arcdisk_write): Implement.
3219 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
3220 (grub_arc_firmware_vector): Make buffer to write a const buffer.
3221
e06c2e7a
VS
32222012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
3225 (read_sblock): Don't attempt to read superblocks outside the disk size.
3226
ff447958
VS
32272012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
3230 first superblock to find the second one when possible.
3231
9e88df39
VS
32322012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * util/grub-install.in: Fix an ARC bug.
3235 Print a warning if no platform-specific setup is available.
3236
bb26e4ff
VS
32372012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 Use static allocation rather than scratch pointer in reed_solomon.
3240 It decreases its size significantly and avoids a variable in .text.
3241
3242 * grub-core/lib/reed_solomon.c (scratch): Removed.
3243 (chosenstat): New const or static array.
3244 (sigma): Likewise.
3245 (errpot): Likewise.
3246 (errpos): Likewise.
3247 (sy): Likewise.
3248 (mstat): Likewise.
3249 (errvals): Likewise.
3250 (eqstat): Likewise.
3251 (pol_evaluate): Replace x with log_x argument. All users updated.
3252 (syndroms): Removed.
3253 (gauss_solve): Use statically allocated arrays.
3254 (rs_recover): Likewise.
3255 Calculate syndroms directly.
3256 (decode_block): Use statically allocated arrays.
3257 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
3258 (main) [TEST]: Allow -DTEST -DSTANDALONE.
3259
2e13ede5
VS
32602012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 Eliminate fixed limit on reed solomon decoder length.
3263
3264 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
3265 rather than hardcoding the address.
3266 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
3267 no_reed_solomon_length.
3268 Move gate_a20 to no-reed-solomon part.
3269 Don't force a particular size of no reed-solomon part.
3270 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3271 Removed.
3272 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
3273 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
3274
f8a9ab12
VS
32752012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * grub-core/commands/wildcard.c (match_files): Handle filenames
3278 without explicit device.
3279 (wildcard_expand): Don't add explicit device if not already present.
3280 * tests/grub_script_echo1.in: Add a new expansion test.
3281
87edb894
VS
32822012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 Replace single-linked with double-linked lists. It results in more
3285 compact and more efficient code.
3286
3287 * grub-core/kern/list.c (grub_list_push): Moved from here ...
3288 * include/grub/list.h (grub_list_push): ... to here. Set prev.
3289 (grub_list_remove): Moved from here ...
3290 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
3291 (grub_prio_list_insert): Set prev.
3292 * include/grub/list.h (grub_list): Add prev. All users updated.
3293
48b391e9
VS
32942012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 Handle newer autotools. Add some missing quotes while on it.
3297
3298 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
3299 (pkglib_DATA): Move grub-mkconfig_lib from here ...
3300 (pkgdata_DATA): ... here.
3301 * Makefile.util.def (update-grub_lib): Removed.
3302 * conf/Makefile.common (pkglib_DATA): Removed.
3303 (pkglib_SCRIPTS): Likewise.
3304 (pkgdata_DATA): New variable.
3305 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
3306 needed.
3307 Add missing quotes.
3308 Remove unused variable while on it.
3309 * tests/util/grub-shell.in: Likewise.
3310 * util/grub-install.in: Likewise.
3311 * util/grub-mkconfig.in: Likewise.
3312 * util/grub-mknetdir.in: Likewise.
3313 * util/grub-mkrescue.in: Likewise.
3314 * util/grub-mkstandalone.in: Likewise.
3315 * util/grub.d/00_header.in: Likewise.
3316 * util/grub.d/10_hurd.in: Likewise.
3317 * util/grub.d/10_illumos.in: Likewise.
3318 * util/grub.d/10_kfreebsd.in: Likewise.
3319 * util/grub.d/10_linux.in: Likewise.
3320 * util/grub.d/10_netbsd.in: Likewise.
3321 * util/grub.d/10_windows.in: Likewise.
3322 * util/grub.d/20_linux_xen.in: Likewise.
3323 * util/grub.d/30_os-prober.in: Likewise.
3324 * util/update-grub_lib.in: Removed.
3325
33262012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
3327
3328 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
3329 a workaround for intel problem.
3330
66832792
PRP
33312012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
33322012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
33332012-01-23 pfsmorigo
3334
3335 * util/grub-install.in: Support dd'in into PreP partition.
3336 * util/grub-probe.c (probe): Support discovering partition type.
3337 (main): Support -t msdos_parttype.
3338
7816a17e
VS
33392012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
3342 infinite recursion using counter.
3343 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
3344 init to skip it if the magic check fails.
3345 (dec_stream_header): Init s->crc32.
3346
8f9d3a8c
ZB
33472012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
33482012-01-22 Zachary Bedell <pendorbound@gmail.com>
33492012-01-22 Richard Laager <rlaager@wiktel.com>
3350
3351 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
3352 All users updated.
3353 (find_bestub): Determine correct size.
3354 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
3355 (scan_disk): Align the size down.
3356 Call check pool before find_bestub to have ashift.
3357
b055dd32
VS
33582012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
3361 dprintf in no-malloc zone.
3362
d779e9bd
ML
33632012-01-22 Mario Limonciello <mario_limonciello@dell.com>
3364
3365 * configure.ac: Add back in test for limits.h.
3366
b508af69
VS
33672012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 Support 4K-sector NTFS.
3370
3371 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
3372 (grub_ntfs_data): Remove blocksize.
3373 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
3374 Remove data argument. All users updated.
3375
dad9c8b5
VS
33762012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
3379 being in .text to avoid dprel references.
3380 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
3381 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
3382 (grub_arch_highmemsize): Likewise.
3383 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
3384 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
3385 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
3386
d43a777e
VS
33872012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
3390
3391 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
3392 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
3393
34e4208f
VS
33942012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
3397 GRUB_UTIL.
3398 (grub_set_datetime_cmos): Likewise.
3399
3ec0fc1c
VS
34002012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 Make XZ compression parameters dependent on target and not host CPU.
3403
3404 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
3405 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
3406
22489834
VS
34072012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
3410 set but not used variable.
3411
8502fbca
VS
34122012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
3415 created when no uuid support is compiled into mkfs.reiser.
3416
76df2068
VS
34172012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
3420 (utf8_to_macroman): Do the opposite.
3421 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
3422
64e3f8f6
VS
34232012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * configure.ac: Refise build qemu_mips w/o unifont.
3426
9c271078
VS
34272012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 Eliminate grub_min/grub_max prone to overflow usage.
3430
3431 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
3432 (poll_nonroot_hub): Likewise.
3433 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
3434 (grub_affs_label): Likewise.
3435 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
3436 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
3437 (grub_hfs_label): Likewise.
3438 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
3439 * grub-core/fs/zfs/zfs.c (MIN): Remove.
3440 (zap_leaf_array_equal): Use grub_size. Remove MIN.
3441 (zap_leaf_array_get): Likewise.
3442 (dnode_get_path): Likewise.
3443 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
3444 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
3445 * grub-core/script/execute.c (grub_script_break): Likewise.
3446 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
3447 grub_max.
3448 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
3449 * include/grub/misc.h (grub_min): Removed.
3450 (grub_max): Likewise.
3451
80662dbc
VS
34522012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3453
3454 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
3455 direct.inode = 0.
3456
e6da1467
VS
34572012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
3460
b1ac4cb1
VS
34612012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
3464
b4bf7c3b
VS
34652012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
3468 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
3469
8ee1101a
VS
34702012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
3473 rather than a hack for grub_strncasemap.
3474
34752012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 Support multiple initrds
3478 Note: part of this was accidently committed in r3739.
3479
3480 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
3481 initrd.
3482 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3483 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3484 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3485 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3486 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3487
4d1e2bc9
VS
34882012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
3491 disks with unknown size.
3492 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
3493
75b49ebe
VS
34942012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Remove defines pertaining to arbitrary limits not affecting GRUB
3497 anymore.
3498
3499 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
3500 (EXT2_MAX_SYMLINKCNT): Likewise.
3501 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
3502 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
3503 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
3504 (GRUB_PXE_MAX_BLKSIZE): Likewise.
3505 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
3506 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
3507 (DN_MAX_OBJECT_SHIFT): Likewise.
3508 (DN_MAX_OFFSET_SHIFT): Likewise.
3509 (DN_MAX_OBJECT): Likewise.
3510 (DNODES_PER_LEVEL_SHIFT): Likewise.
3511 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
3512 (SPA_MAXBLOCKSIZE): Likewise.
3513 (SPA_BLOCKSIZES): Likewise.
3514 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
3515 (MZAP_MAX_BLKSZ): Likewise.
3516
74a1dce7
VS
35172012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
3520 handle NULL appropriately.
3521 Remove MIN.
3522
30c7d3ce
VS
35232012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 Fix efiemu.
3526
3527 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
3528 cpu/types.h.
3529 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
3530 * configure.ac: Fix efiemu check.
3531
3c76ea0c
VS
35322012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
3535 grub_probe.
3536 Reported by: adamwill
3537
7e532280
SG
35382012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
3539
3540 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
3541
30492374
VS
35422012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 Fix handling of wide characters in gfxterm.
3545
3546 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
3547 (clear_char): Likewise.
3548 (paint_char): Skip code == NULL chars.
3549 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
3550
e70cb72f
VS
35512012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/normal/charset.c: Move comment to right place.
3554
5c827cf9
VS
35552012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
3558 (GRUB_AFFS_FLAG_FFS): Put back where it was.
3559 (grub_affs_mount): Revert the correct version checking.
3560
53603892
VS
35612012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * docs/grub.texi (Unicode): Mention several other unsupported features.
3564
ff094b9b
VS
35652011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
3568 case statements as compile-time one.
3569 (direct_read): Prevent spurious warnings.
3570 (grub_squash_read_data): Likewise.
3571
c029da8a
VS
35722011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 Various squash4 fixes and LZO and XZ support.
3575
3576 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
3577 Add xzembed source files.
3578 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
3579 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
3580 (grub_squash_inode): New subtype long_dir.
3581 (SQUASH_TYPE_LONG_DIR): New inode type.
3582 (COMPRESSION): New enum.
3583 (XZBUFSIZ): New const.
3584 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
3585 (read_chunk): Use data->decompress.
3586 (zlib_decompress): New function.
3587 (lzo_decompress): Likewise.
3588 (xz_decompress): Likewise.
3589 (squash_mount): Set new data fields.
3590 (grub_squash_iterate_dir): Handle long dir.
3591 (squash_unmount): Free xzdec and xzbuf.
3592 (grub_squash_open): Check ino type.
3593 (direct_read): Stylistic fixes. Use data->decompress.
3594 (grub_squash_read_data): Likewise.
3595 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
3596 (get_byte): Likewise.
3597 (grub_zlib_disk_read): Removed.
3598 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
3599 (GRUB_POSIX_BOOL_DEFINED): New define.
3600 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
3601 * grub-core/lib/xzembed/xz.h: Addmissing includes.
3602 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
3603 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
3604
7a45a539
VS
36052011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 Don't override more informative errors.
3608
3609 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
3610 * grub-core/font/font.c (open_section): Likewise.
3611 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
3612 filename. Don't override errors.
3613 (grub_cmd_openbsd_ramdisk): Don't override errors.
3614 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
3615 (grub_cmd_initrd): Likewise.
3616 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3617 (grub_cmd_initrd): Likewise.
3618 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
3619 (grub_cmd_linux): Likewise.
3620 (grub_cmd_initrd): Likewise.
3621 (grub_cmd_payload): Likewise.
3622 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3623 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
3624 (grub_cmd_module): Likewise.
3625 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3626 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3627 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
3628 (grub_cmd_xnu_mkext): Likewise.
3629 (grub_cmd_xnu_ramdisk): Likewise.
3630 (grub_xnu_check_os_bundle_required): Likewise.
3631 (grub_xnu_load_kext_from_dir): Likewise.
3632 (grub_cmd_xnu_kextdir): Likewise.
3633 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
3634
b2d004db
VS
36352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
3638 as 1024 in block size field. Found on one of my test images.
3639 Small optimisation while on it.
3640
ec000eac
VS
36412011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
3644 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
3645 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
3646 performance fixes while on it.
3647 (grub_sfs_close): Fix memory leak while on it.
3648 (grub_sfs_label): Convert Latin1 to UTF-8.
3649
f50e1165
VS
36502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
3653 space to avoid overflows.
3654 (grub_hfs_label): Convert from macroman to UTF-8.
3655
2ae254de
VS
36562011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
3659
0108f491
VS
36602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
3663
f45f5f89
VS
36642011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * unicode: Import Unicode 6.0 data.
3667
4d8c4765
VS
36682011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3669
63fa8ef9
VS
3670 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
3671 outside of range.
3672
36732011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
3676
3677 * include/grub/charset.h (grub_getend): New function.
3678 * grub-core/script/function.c (grub_script_function_find): Use
3679 grub_getend.
3680 * grub-core/normal/completion.c (add_completion): Likewise.
3681
f3cb4a4e
VS
36822011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
3685 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
3686 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
3687 (GRUB_UNICODE_TAG_END): Likewise.
3688 (GRUB_UNICODE_LAST_VALID): Likewise.
3689
5da8dbc5
VS
36902011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
3693 len and make it smaller. All users updated.
3694 * util/import_unicode.py: Put length and not end character.
3695 Check length.
3696
8569f13d
VS
36972011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 Make better Unicode-compliant and unify some UTF-8 code pathes.
3700
3701 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
3702 valid character.
3703 (grub_is_valid_utf8): Use grub_utf8_process.
3704 Check resulting code range.
3705 (grub_utf8_to_ucs4): Use grub_utf8_process.
3706 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
3707 valid character.
3708
cc4fddf5
VS
37092011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
3712
bbc47747
VS
37132011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * docs/grub.texi (Filesystems): Mention AFS.
3716
f63d6bf4
VS
37172011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * docs/grub.texi (Filesystems): Clarify restrictions.
3720 (Regexp): Mention non-Unicode regexp behaviour.
3721 (Other): Mention non-Unicode matching behaviour.
3722
74bbf0db
VS
37232011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3724
f63d6bf4 3725 Make HFS implementation use MacRoman.
74bbf0db
VS
3726
3727 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
3728 (macroman): New const array.
3729 (macroman_to_utf8): New function.
3730 (utf8_to_macroman): Likewise.
3731 (grub_hfs_find_dir): Use utf8_to_macroman.
3732 (grub_hfs_dir): Use macroman_to_utf8.
3733 Set case_insensitive.
3734
4ea0316e
VS
37352011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
3738
d3c13cbd
VS
37392011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 Integrate hints into autogeneration scripts.
3742
3743 * docs/grub.texi (Filesystems): Add a hostdisk example.
3744 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
3745 (grub-probe): Add ofpath.
3746 * gentpl.py: Remove group nosparc64.
3747 * grub-core/commands/search.c (cache_entry): New struct.
3748 (cache): New var.
3749 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
3750 * grub-core/commands/search_wrap.c (options): Add platform-specific
3751 hint options.
3752 (grub_cmd_search): Handle platform-specific hints.
3753 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
3754 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
3755 (grub_util_biosdisk_data): Likewise.
3756 (grub_util_biosdisk_open): Set device_map.
3757 (read_device_map): Handle "" as indication of no map.
3758 Set device_map.
3759 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
3760 (grub_util_biosdisk_get_compatibility_hint): New function.
3761 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
3762 * include/grub/emu/hostdisk.h
3763 (grub_util_biosdisk_get_compatibility_hint): New proto.
3764 * util/grub-install.in: Don't call grub-mkdevicemap.
3765 Add platform-specific hint to load.cfg.
3766 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
3767 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
3768 hints. Set root preliminary to compatibility hint, not to OS name.
3769 * util/grub-probe.c (PRINT_*): Add hints.
3770 (print): Make static.
3771 (escape_of_path): New function.
3772 (guess_bios_drive): Likewise.
3773 (guess_efi_drive): Likewise.
3774 (guess_baremetal_drive): Likewise.
3775 (print_full_name): Likewise.
3776 (probe): Handle hints.
3777 (main): Likewise.
3778 * util/ieee1275/devicemap.c: Removed.
3779 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
3780 updated.
3781 (grub_util_devname_to_ofpath): Return NULL on failure.
3782
3783 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
3784 resource leak.
3785 * util/getroot.c (grub_util_pull_device): Fix memory leak.
3786
3787 * po/POTFILES.in: Regenerated.
3788
3789 Allow purely long options
3790
3791 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
3792 (SHORT_ARG_USAGE): Likewise.
3793 (grub_arg_show_help): Compare opt with help_options.
3794 (parse_option): Receive opt as argument. If makes big simplificatons.
3795 All users updated
3796
00ce2df3
VS
37972011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
3800 Restructure to avoid warning.
3801
e77e325f
VS
38022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * util/grub-install.in: Account for possible escaped comma in device
3805 name.
3806
165099ea
VS
38072011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
3810 channel.
3811
ce4a999d
VS
38122011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
3815 allocation and zero-setting.
3816 (grub_ieee1275_get_devname): Check that alias is complete.
3817
379586ad
VS
38182011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
3821 unaligned segments.
3822
9197b0ad
VS
38232011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
3826 prefix.
3827 (grub_ofdisk_open): Check and discard ieee1275 prefix.
3828 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3829 Add ieee1275 prefix.
3830
edddb7f9
VS
38312011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * docs/grub.texi (Filesystems): Update.
3834
a1a8b1b9
VS
38352011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 Support odc, newc and bigendian cpio formats.
3838
3839 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
3840 * grub-core/Makefile.core.def (newc): New module.
3841 (odc): Likewise.
3842 (cpio_be): Likewise.
3843 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
3844 (MAGIC): Likewise.
3845 (MAGIC2): Likewise.
3846 (head) [MODE_ODC]: Adapt for the format.
3847 (head) [MODE_NEWC]: Likewise.
3848 (head) [!MODE_*]: Write fields of interest as arrays.
3849 (MAGIC_USTAR): Removed.
3850 (read_number) [MODE_NEWC]: Change to hex.
3851 (read_number) [!MODE_*]: Parse binary arrays.
3852 (grub_cpio_find_file): Factor out the code for better structure and
3853 always use read_number.
3854 (grub_cpio_mount): Use MAGIC and MAGIC2.
3855 (grub_cpio_dir): Exit on first hook non-0 return.
3856 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
3857 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
3858 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
3859 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
3860 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
3861 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
3862 * grub-core/fs/newc.c: New file.
3863 * grub-core/fs/odc.c: Likewise.
3864 * grub-core/fs/cpio_be.c: Likewise.
3865
58eba9ee
VS
38662011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 Fix handling of tar numbers occupying the whole field.
3869
3870 * grub-core/fs/cpio.c (read_number): New function.
3871 (grub_cpio_find_file): Use read_number instead of strtoull.
3872
a54a0e12
VS
38732011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
3876 occupying the whole field size.
3877
a6120aca
LA
38782011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
3879
3880 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
3881
a93964ce
VS
38822011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
3885
3ea1ca46
SG
38862011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
3887
3888 * grub-core/Makefile.core.def (lzma_decompress): Add missing
3889 TARGET_IMG_LDFLAGS.
3890
b87f7ef2
VS
38912011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * util/getroot.c (ESCAPED_PATH_MAX): New define.
3894 (mountinfo_entry): Increase the field size to take escaping into
3895 account.
3896 (find_root_device_from_libzfs): Add one byte to size of strings for
3897 security.
3898
62092395
VS
38992011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
3902 an assert.
3903 * util/grub-setup.c (setup): Likewise.
3904
1f0b1a77
VS
39052011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
3908 _LzmaDecodeA.
3909
8eba9997
VS
39102011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * docs/grub.texi (Internationalisation): New section.
3913
dd0c91e9
VS
39142011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * docs/grub.texi (Loopback booting): New section.
3917
39182011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
3919
3920 * util/grub-mkstandalone.in: Fix minor typo errors.
3921
198e150a
VS
39222011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
3925
3926 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
3927 net/icmp.c and net/icmp6.c.
3928 (http): New module.
3929 (priority_queue): Likewise.
3930 * grub-core/io/bufio.c: Rewritten.
3931 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
3932 TYPE_WITH_CONFIGFILE_OPTION.
3933 (legacy_commands): Add bootp and dhcp.
3934 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
3935 (grub_legacy_parse): Likewise.
3936 * grub-core/lib/priority_queue.c: New file.
3937 * grub-core/net/arp.c: Add missing license header.
3938 (arp_find_entry): Removed.
3939 (arp_find_entry): Likewise.
3940 (grub_net_arp_resolve): Rename to ...
3941 (grub_net_arp_send_request): ...this.
3942 (grub_net_arp_receive): New card argument.
3943 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
3944 Set router and DNS server.
3945 (grub_net_configure_by_dhcp_ack): Handle routing information.
3946 (grub_cmd_bootp): Set checksum.
3947 (grub_bootp_init): Remove net_dhcp.
3948 * grub-core/net/dns.c: New file.
3949 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
3950 completion.
3951 (get_card_packet): Handle allocation.
3952 (grub_efinet_findcards): Set mtu.
3953 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
3954 (get_card_packet): Handle allocation.
3955 (emucard): Set mtu.
3956 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
3957 (GRUB_MOD_INIT): Set mtu.
3958 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
3959 mtu.
3960 (get_card_packet): Handle allocation.
3961 (grub_ofnet_findcards): Set mtu.
3962 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
3963 assert.
3964 (grub_net_recv_ethernet_packet): Handle IPv6.
3965 * grub-core/net/http.c: New file.
3966 * grub-core/net/icmp.c: Likewise.
3967 * grub-core/net/icmp6.c: Likewise.
3968 * grub-core/net/ip.c (ip6addr): New type.
3969 (ip6hdr): Likewise.
3970 (reassemble): Likewise.
3971 (cmp): New function.
3972 (reassembles): New variable.
3973 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
3974 (id): New variable.
3975 (send_fragmented): New function.
3976 (grub_net_send_ip_packet): Rename to ...
3977 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
3978 Handle non-UDP.
3979 (grub_net_recv_ip_packets): Rename to ...
3980 (handle_dgram): ... this. Check checksum. Handle non-UDP.
3981 (free_rsm): New function.
3982 (free_old_fragments): Likewise.
3983 (grub_net_recv_ip4_packets): New function.
3984 (grub_net_send_ip6_packet): Likewise.
3985 (grub_net_send_ip_packet): Likewise.
3986 (grub_net_recv_ip6_packets): Likewise.
3987 (grub_net_recv_ip_packets): Likewise.
3988 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
3989 (LINK_LAYER_CACHE_SIZE): New const.
3990 (link_layer_find_entry): New function.
3991 (grub_net_link_layer_add_address): Likewise.
3992 (grub_net_link_layer_resolve_check): Likewise.
3993 (grub_net_link_layer_resolve): Likewise.
3994 (grub_net_ipv6_get_slaac): Likewise.
3995 (grub_net_ipv6_get_link_local): Likewise.
3996 (grub_cmd_ipv6_autoconf): Likewise.
3997 (parse_ip): Handle one number representation.
3998 (parse_ip6): New functoion.
3999 (match_net): Handle IPv6.
4000 (grub_net_resolve_address): Handle IPv6 and DNS.
4001 (grub_net_resolve_net_address): Handle IPv6.
4002 (route_cmp): New function.
4003 (grub_net_route_address): Find best route.
4004 (grub_net_addr_to_str): Handle IPv6.
4005 (grub_net_addr_cmp): New function.
4006 (grub_net_add_addr): Register local route.
4007 (print_net_address): Handle net address.
4008 (grub_net_poll_cards): Retransmit TCP.
4009 (grub_net_poll_cards_idle_real): Likewise.
4010 (have_ahead): New function.
4011 (grub_net_seek_real): Use underlying seek.
4012 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
4013 * grub-core/net/tcp.c: New file.
4014 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
4015 (cmp): New function.
4016 (ack): Likewise.
4017 (tftp_receive): Handle unordered input.
4018 (destroy_pq): New function.
4019 (tftp_close): Close pq.
4020 * grub-core/net/udp.c: Put missing license header.
4021 (grub_net_udp_socket): New function.
4022 (udp_socket_register): Likewise.
4023 (grub_net_udp_close): Likewise.
4024 (grub_net_recv_udp_packet): Check checksum.
4025 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
4026 * include/grub/misc.h (grub_memchr): New function.
4027 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
4028 (grub_net_card_driver): Return buf in recv.
4029 (grub_net_slaac_mac_list): New struct.
4030 (grub_network_level_protocol_id): Add ipv6.
4031 (grub_net_network_level_addr): Likewise.
4032 (grub_net_network_level_net_addr): Likewise.
4033 (grub_net_app_protocol): Add seek.
4034 (grub_net_socket): Removed.
4035 (grub_net_sockets): Likewise.
4036 (grub_net_socket_register): Likewise.
4037 (grub_net_socket_unregister): Likewise.
4038 (FOR_NET_SOCKETS): Likewise.
4039 (grub_net_add_addr): Add const.
4040 (GRUB_NET_BOOTP_*): New enum.
4041 (grub_net_addr_cmp): New proto.
4042 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
4043 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
4044 (grub_net_hwaddr_to_str): NEw proto.
4045 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
4046 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
4047 (grub_dns_init): New proto.
4048 (grub_dns_fini): Likewise.
4049 (grub_net_tcp_retransmit): Likewise.
4050 (grub_net_link_layer_add_address): Likewise.
4051 (grub_net_link_layer_resolve_check): Likewise.
4052 (grub_net_link_layer_resolve): Likewise.
4053 (grub_net_dns_lookup): Likewise.
4054 (grub_net_add_dns_server): Likewise.
4055 (grub_net_remove_dns_server): Likewise.
4056 (GRUB_NET_TRIES): New const.
4057 (GRUB_NET_INTERVAL): Likewise.
4058 * include/grub/net/arp.h: Mostly rewritten.
4059 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
4060 * include/grub/net/ip.h: Mostly rewritten.
4061 * include/grub/net/netbuff.h: Indent.
4062 * include/grub/net/tcp.h: New file.
4063 * include/grub/net/udp.h: Mostly rewritten.
4064 * include/grub/priority_queue.h: New file.
4065 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
4066 (grub_swap_bytes64_compile_time): Likewise.
4067 (grub_cpu_to_be16_compile_time): Likewise.
4068 (grub_cpu_to_be32_compile_time): Likewise.
4069 (grub_cpu_to_be64_compile_time): Likewise.
4070 (grub_be_to_cpu64_compile_time): Likewise.
4071
215c1800
VS
40722011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
4075 UINT_TO_PTR with cast.
4076
c17e546c
VS
40772011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
4080 don't use them.
4081
ff6b18b6
VS
40822011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
4085 already there.
4086
70ffcc93
VS
40872011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
4090 confusing ipxe.
4091
e5f4d260
VS
40922011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
4095 Add missing const attribute.
4096 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
4097 Likewise.
4098 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
4099 Likewise.
4100
8e54b4b7
VS
41012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
4104 misaligned access.
4105 (serpent_setkey): Likewise.
4106 (serpent_encrypt_internal): Likewise.
4107 (serpent_decrypt_internal): Likewise.
4108 (serpent_encrypt): Don't put an alignment-increasing cast.
4109 (serpent_decrypt): Likewise.
4110 (serpent_test): Likewise.
4111
813c0a2b
VS
41122011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
4115
f2b60fbd
VS
41162011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
4119
4120 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
4121 grub_addr_t casts.
4122 (PTR_TO_UINT64): Likewise.
4123 (PTR_TO_UINT32): Likewise.
4124
5ef5c511
VS
41252011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * util/grub-mkimage.c (generate_image): Decrease the higher limit
4128 because of stack.
4129 * util/grub-setup.c (setup): Don't add redundancy past the higher load
4130 limit.
4131
c476e6df
VS
41322011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
4135 text_width > available width a bit more gracefully.
4136
384ad7cc
VS
41372011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
4140 current address calculation.
4141
96f8caf8
VS
41422011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
4145 stack.
4146 (encode_block): Likewise.
4147
276b7a8b
VS
41482011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
4151 certainety.
4152
e3fd394a
VS
41532011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
4156 non-RS part to avoid RS messing with GDT.
4157 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
4158 Increase to suit in realmode routines.
4159
41602011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/kern/i386/realmode.S: Increase alignment.
4163 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
4164
ee9c2e7a
VS
41652011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
4168 be deterministic.
4169 (syndroms): Compute 0 syndrom.
4170 (rs_recover): Use 0 syndrom.
4171
7a7f7cc9
VS
41722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
4175
a14b16d1
VS
41762011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
4179 brackets.
4180
9f59e9fc
VS
41812011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4182
ca1b552c
VS
4183 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
4184 account.
4185 (get_top_pad): Likewise.
4186 (get_right_pad): Likewise.
4187 (get_bottom_pad): Likewise.
4188
41892011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 4192
e739d698
VS
41932011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
4196 attribute as the structure isn't guaranteed to be properly aligned.
4197 (grub_efi_pci_device_path): Likewise.
4198 (grub_efi_pccard_device_path): Likewise.
4199 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
4200 specify the size of `memory_type'.
4201 (grub_efi_vendor_device_path): Likewise.
4202 (grub_efi_controller_device_path): Likewise.
4203 (grub_efi_acpi_device_path): Likewise.
4204 (grub_efi_expanded_acpi_device_path): Likewise.
4205 (grub_efi_atapi_device_path): Likewise.
4206 (grub_efi_scsi_device_path): Likewise.
4207 (grub_efi_fibre_channel_device_path): Likewise.
4208 (grub_efi_1394_device_path): Likewise.
4209 (grub_efi_usb_device_path): Likewise.
4210 (grub_efi_usb_class_device_path): Likewise.
4211 (grub_efi_i2o_device_path): Likewise.
4212 (grub_efi_mac_address_device_path): Likewise.
4213 (grub_efi_ipv4_device_path): Likewise.
4214 (grub_efi_ipv6_device_path): Likewise.
4215 (grub_efi_infiniband_device_path): Likewise.
4216 (grub_efi_uart_device_path): Likewise.
4217 (grub_efi_vendor_messaging_device_path): Likewise.
4218 (grub_efi_hard_drive_device_path): Likewise.
4219 (grub_efi_cdrom_device_path): Likewise.
4220 (grub_efi_vendor_media_device_path): Likewise.
4221 (grub_efi_file_path_device_path): Likewise.
4222 (grub_efi_protocol_device_path): Likewise.
4223 (grub_efi_piwg_device_path): Likewise.
4224 (grub_efi_bios_device_path): Likewise.
4225
cb8f88ea
VS
42262011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
4229 (grub_ucs4_to_utf8_alloc): Likewise.
4230 (grub_ucs4_to_utf8): Likewise.
4231 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
4232 (grub_ucs4_to_utf8_alloc): Likewise.
4233
309e5352
VS
42342011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 AFFS never uses unicode.
4237
4238 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
4239 (grub_latin1_to_utf8): New inline function.
4240 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
4241
e7987e1b
VS
42422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
4245 overflow.
4246
efc2616e
VS
42472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
4250 (grub_squash_dirent_header): Likewise.
4251 (read_chunk): Don't double swap.
4252 (grub_squash_iterate_dir): Fix swap sizes.
4253
3c349f5a
VS
42542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
4257
b453412d
VS
42582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
4261 (grub_hfs_iterate_dir): Likewise.
4262
12e9d4d1
VS
42632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 Fix video on platforms where unaligned access is forbidden.
4266 Make several optimisations while on it.
4267
4268 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
4269 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4270 (grub_video_fbblit_replace_32bit_1bit): Likewise.
4271 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
4272 Disable.
4273 (grub_video_fbblit_replace_16bit_1bit):
4274 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4275 (grub_video_fbblit_replace_8bit_1bit): Likewise.
4276 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
4277 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
4278 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
4279 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
4280 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
4281 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
4282 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
4283 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
4284 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
4285 (grub_video_fbblit_replace_index_RGB888): Likewise.
4286 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
4287 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
4288 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
4289 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
4290 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
4291 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
4292 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
4293 Disable.
4294 (grub_video_fbblit_blend_XXX565_1bit):
4295 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
4296 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
4297 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
4298 void *.
4299 * grub-core/video/fb/video_fb.c (common_blitter)
4300 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
4301 (grub_video_fb_create_render_target_from_pointer)
4302 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
4303 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
4304 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
4305 definition.
4306 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
4307
ace96609
VS
43082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
4311 HH22 and HM10 relocations.
4312
fd261d73
VS
43132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
4316
e59b7857
VS
43172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4318
4319 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
4320 allocation succeeded.
4321
9b4baaa4
VS
43222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
4325 argument a u8 pointer. All users updated.
4326 Handle unaligned buffers.
4327
dc713193
VS
43282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
4331 add_part to workaround compiler bug.
4332
30dd48c2
VS
43332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
4336
0c6087a8
VS
43372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
4340 Reserve alignment invariants.
4341 (grub_multiboot_load): Likewise.
4342 (retrieve_video_parameters): Likewise.
4343 (grub_multiboot_make_mbi): Likewise.
4344
c2e77777
VS
43452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
4348 incorrect pointer.
4349
b70b6d11
VS
43502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
4353 (grub_pata_pio_write): Likewise.
4354
02a2bf83
VS
43552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 Add noreturn attributes and remove unreachable code.
4358
4359 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
4360 code.
4361 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
4362 code. Mark as noreturn.
4363 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
4364 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
4365 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
4366 unreachable code.
4367 * grub-core/kern/main.c (grub_main): Mark as noreturn.
4368 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
4369 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
4370 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
4371 * include/grub/kernel.h (grub_main): Mark as noreturn.
4372 * include/grub/reader.h (grub_rescue_run): Likewise.
4373
2019d09e
VS
43742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
4377 redundant declaration.
4378
d1c501ee
VS
43792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 * include/grub/net.h (grub_net_network_level_interfaces): Remove
4382 redundant declaration.
4383 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
4384
61664420
VS
43852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
4388 to ensure alignment.
4389 (grub_hdparm_print_identify): Make argument uint16 * to ensure
4390 alignment. Ensure tmp alignment.
4391 (grub_cmd_hdparm): Ensure buf alignment.
4392 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
4393 to ensure alignment.
4394 (grub_ata_dumpinfo): Ensure text alignment.
4395 (grub_atapi_identify): Preserve alignment invariant.
4396 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
4397
0d51ee20
VS
43982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
4401 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
4402 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
4403 * include/grub/misc.h (grub_reboot)
4404 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
4405 (grub_halt) [__mips__]: Likewise.
4406
753ef8c1
VS
44072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
4410 Remove redundant declaration.
4411 (grub_mmap_get_post64): Likewise.
4412 (grub_mmap_get_upper): Likewise.
4413 (grub_mmap_get_lower): Likewise.
4414
85c85365
VS
44152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
4418 uint32_t * to ensure alignment.
4419 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
4420
a23f2cc4
VS
44212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4422
93018f64
VS
4423 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
4424 uint16_t * to ensure alignment.
4425 (sun_pc_partition_map_iterate): Make `block' a union to ensure
4426 alignment.
4427
44282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
4431 to ensure alignment.
4432 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
4433
58acccd6
VS
44342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/fs/ntfs.c (u16at): Make into inline function.
4437 Handle unaligned pointers.
4438 (u32at): Likewise.
4439 (u64at): Likewise.
4440 (fixup): Use byte access instead of v16at.
4441 (find_attr): Fix imporper usage of v32at.
4442 (read_data): Likewise.
4443 (list_file): Handle byte-swapping and unaligned strings.
4444 (grub_ntfs_label): Likewise.
4445
9b05cad7
VS
44462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
4449 as it's not necessarily aligned.
4450
b3950b84
VS
44512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
4454 redundant declaration.
4455 (grub_serial_init): Likewise.
4456 (grub_terminfo_init): Likewise.
4457
fcd232b7
VS
44582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
4461 function.
4462 (ZAP_HASH_IDX): Likewise.
4463 (ZAP_LEAF_HASH_SHIFT): Likewise.
4464 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
4465 (LEAF_HASH): Likewise.
4466 (ZAP_LEAF_NUMCHUNKS): Likewise.
4467 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
4468 alignment invariants. Return pointer. All users updated.
4469 (ZAP_LEAF_ENTRY): Make into inline function.
4470 (NBBY): Removed.
4471 (xor): LIkewise.
4472 (xor_out): Use grub_crypto_xor.
4473 (dnode_get_path): Use grub_get_unaligned.
4474 (nvlist_find_value): Likewise.
4475 (grub_zfs_nvlist_lookup_uint64): Likewise.
4476 (grub_zfs_nvlist_lookup_string): Likewise.
4477 (get_nvlist_size): Likewise.
4478 (grub_zfs_open): Likewise.
4479 (fill_fs_info): Likewise.
4480 (grub_zfs_dir): Likewise.
4481 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
4482 alignment invariants.
4483 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
4484 necessarily aligned.
4485
f138623a
VS
44862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
4489
564840dc
VS
44902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
4493 arithmetic to conserve alignment invariants.
4494
9b40df20
VS
44952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4496
4497 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
4498 redundant declaration.
4499 (grub_efiemu_mm_obtain_request): Likewise.
4500 (grub_efiemu_prepare): Likewise.
4501
d1c930f9
VS
45022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
4505 to match types.
4506
4c5f3056
VS
45072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
4510 case of aunaligned recptr.
4511 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
4512 alignment.
4513 (grub_hfsplus_btree_search): Handle unaligned index.
4514
728cba91
VS
45152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
4518 to get freetag and skip.
4519
eb561f31
VS
45202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
4523 array.
4524 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
4525 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
4526
20993fbb
VS
45272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
4530 name for checksum and fix allocation algorithm.
4531
1f313b94
VS
45322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * include/grub/types.h (grub_properly_aligned_t): New type.
4535 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
4536 (grub_get_unaligned16): Add explicit casts.
4537 (grub_get_unaligned32): Likewise.
4538 (grub_get_unaligned64): Likewise.
4539 (grub_set_unaligned16): New function.
4540 (grub_set_unaligned32): Likewise.
4541
47ae27ec
VS
45422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4545
78c2cd1c
VS
45462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
4549 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
4550 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
4551
53072f9b
VS
45522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
4555 conditionals.
4556
055dc239
VS
45572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
4560 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
4561
496bd074
VS
45622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 Unify and improve RAID and crypto xor.
4565
4566 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
4567 changed to grub_crypto_xor
4568 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
4569 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
4570 Use bigger types when possible.
4571
ef6e4335
VS
45722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * grub-core/disk/raid.c (scan_devices): Fix condition.
4575
5d048bf2
VS
45762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
4579 Make name a const ptr.
4580
ee533335
VS
45812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
4584 first argument a const pointer.
4585 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4586 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
4587 proto.
4588 (grub_children_iterate): Likewise.
4589 (grub_machine_mmap_iterate): Remove redundant declaration.
4590
cc8f3668
VS
45912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4592
4593 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
4594 (grub_cmd_acpi) [!x86]: Disable EBDA.
4595
c5fc563a
VS
45962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 Enable UTF8 in gnulib regexp.
4599
4600 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
4601 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
4602 (isupper): Use grub_isupper.
4603 (isascii): New inline function.
4604 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
4605 * grub-core/lib/posix_wrap/wctype.h: Likewise.
4606 * grub-core/normal/charset.c (grub_utf8_process): New function.
4607 (grub_utf8_to_utf16): Use grub_utf8_process.
4608 (grub_encode_utf8_character): New function.
4609 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
4610 * include/grub/charset.h (grub_utf8_process): New declaration.
4611 (grub_encode_utf8_character): Likewise.
4612 * include/grub/misc.h (grub_islower): New inline function.
4613 (grub_isupper): Likewise.
4614 (grub_strchrsub): Moved down to fix the definitions.
4615
0af2346f
VS
46162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
4619 specification.
4620
74dbd244
VS
46212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
4622
4623 * include/grub/loader.h (grub_loader_register_preboot_hook):
4624 Use struct preboot * and not void * for handle. All users updated.
4625 (grub_loader_unregister_preboot_hook): Likewise.
4626
1bc8f60d
VS
46272011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
4630 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
4631 UTF-16-BE. All users updated.
4632 (grub_hfsplus_cmp_catkey): Fix unicode handling.
4633 (grub_hfsplus_iterate_dir): Likewise.
4634 (grub_hfsplus_label): Likewise.
4635
48d6e456
VS
46362011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
4639
bf3a3857
VS
46402011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 Add missing const qualifiers.
4643
4644 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
4645 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
4646 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
4647 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
4648 (grub_lvm_check_flag): Likewise.
4649 * grub-core/efiemu/i386/coredetect.c
4650 (grub_efiemu_get_default_core_name): Likewise
4651 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
4652 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
4653 * grub-core/fs/ntfs.c (fixup): Likewise.
4654 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
4655 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
4656 (fzap_lookup): Likewise.
4657 (zap_lookup): Likewise.
4658 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
4659 * grub-core/lib/legacy_parse.c (check_option): Likewise.
4660 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
4661 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
4662 (grub_freebsd_add_meta_module): Likewise.
4663 (grub_cmd_freebsd_module): Likewise.
4664 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
4665 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
4666 (grub_xnu_writetree_get_size): Likewise.
4667 (grub_xnu_writetree_toheap_real): Likewise.
4668 (grub_xnu_find_key): Likewise.
4669 (grub_xnu_create_key): Likewise.
4670 (grub_xnu_create_value): Likewise.
4671 (grub_xnu_register_memory): Likewise.
4672 (grub_xnu_check_os_bundle_required): Likewise.
4673 (grub_xnu_scan_dir_for_kexts): Likewise.
4674 (grub_xnu_load_kext_from_dir): Likewise.
4675 * grub-core/normal/color.c (color_list): Likewise.
4676 * grub-core/normal/completion.c (current_word): Likewise.
4677 * grub-core/normal/menu_entry.c (insert_string): Likewise.
4678 * grub-core/term/serial.c (grub_serial_find): Likewise.
4679 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
4680 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
4681 Likewise.
4682 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
4683 (grub_freebsd_add_meta_module): Likewise.
4684 * include/grub/lib/arg.h (grub_arg_option): Likewise.
4685 * include/grub/net.h (grub_net_card_driver): Likewise.
4686 (grub_net_card): Likewise.
4687 (grub_net_app_protocol): Likewise.
4688 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
4689 * include/grub/serial.h (grub_serial_find): Likewise.
4690 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
4691 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
4692 (grub_xnu_create_value): Likewise.
4693 (grub_xnu_find_key): Likewise.
4694 (grub_xnu_scan_dir_for_kexts): Likewise.
4695 (grub_xnu_load_kext_from_dir): Likewise.
4696
4697 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
4698 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
4699 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
4700 Moved from here ...
4701 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
4702
112b4837
CW
47032011-11-28 Colin Watson <cjwatson@ubuntu.com>
4704
4705 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
4706
49e891ac
VS
47072011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
4710 (read_device): Fix size calculation.
4711
fd258e5c
RM
47122011-11-25 Robert Millan <rmh@gnu.org>
4713
4714 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
4715 (find_root_device_from_libzfs): Add zpool output parser to be used
4716 as fallback when libzfs isn't available.
4717
78845dc2
SG
47182011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
4719
4720 * po/Makefile.in.in: Add missing escape-continuation.
4721
adac5211
VS
47222011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
4725
10b64f1c
VS
47262011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
4729
bb416954
VS
47302011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
4733
bdfe9eeb
VS
47342011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
4737
581ffa8a
VS
47382011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * grub-core/lib/adler32.c: Add missing license specification.
4741 * grub-core/lib/crc64.c: Likewise.
4742 * grub-core/loader/i386/pc/plan9.c: Likewise.
4743 * grub-core/partmap/plan.c: Likewise.
4744
2536cf64
LK
47452011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
4746
4747 Add facility to debug GRUB with gdb under qemu.
4748
4749 * grub-core/gdb_grub.in: New file.
4750 * grub-core/gmodule.pl.in: Likewise.
4751 * grub-core/Makefile.core.def (gmodule.pl): New script.
4752 (gdb_grub): Likewise.
4753
bc108a4a
VS
47542011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * util/grub-mount.c (argp_parser): Accept relative pathes.
4757 * util/grub-fstest.c (argp_parser): Likewise.
4758
111c1778
VS
47592011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 Plan9 support.
4762
4763 * Makefile.util.def (libgrubmods): Add
4764 grub-core/partmap/plan.c.
4765 * docs/grub.texi: Notice Plan9 support.
4766 * grub-core/Makefile.core.def (plan9): New module.
4767 (part_plan): Likewise.
4768 * grub-core/loader/i386/pc/plan9.c: New file.
4769 * grub-core/partmap/plan.c: Likewise.
4770 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
4771 define.
4772 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
4773 * include/grub/mm.h (grub_extend_alloc): New inline function.
4774
c30be3b6
VS
47752011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Make Reed-Solomon faster by using power of generator representation of
4778 GF(256)*.
4779
4780 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
4781 (gf_double_t): Likewise.
4782 (gf_invert): Removed.
4783 (gf_powx): New array.
4784 (gf_powx_inv): Likewise.
4785 (scratch): Move higher.
4786 (gf_reduce): Removed.
4787 (gf_mul): Use powx.
4788 (gf_invert): Likewise.
4789 (init_inverts): Replaced with ...
4790 (init_powx): ...this. All users updated.
4791 (pol_evaluate): Replace multiplications with additions.
4792 (rs_encode): Likewise.
4793 (gauss_eliminate): Call gf_invert.
4794 (grub_reed_solomon_add_redundancy): Call init_powx.
4795 (grub_reed_solomon_recover): Call init_powx unconditionally.
4796
fa5aeffc
VS
47972011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
4800
a346b81c
VS
48012011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
4804 disk->partiton for safety.
4805
d89ee414
VS
48062011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
4809 Fix a memory leak.
4810 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
4811
91ee7b6d
VS
48122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
4815
91e5a33d
VS
48162011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
4819
9edd7be2
VS
48202011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 Fix spaces handling in proc/self/mountinfo.
4823
4824 * util/getroot.c (unescape): New function.
4825 (grub_find_root_device_from_mountinfo): Use unescape.
4826
ba102053
VS
48272011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 Support ZFS embedding.
4830
4831 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
4832 (grub_zfs_fs): Register grub_zfs_embed.
4833
aa94b870
VS
48342011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4835
4836 Fix MIPS compilation.
4837
4838 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
4839 * include/grub/offsets.h: Rename decompressor fields from
4840 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
4841 * util/grub-mkimage.c (image_targets): Use new names.
4842
5fbdac14
VS
48432011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 Defer multiboot device parsing until we're in compressed part.
4846
4847 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
4848 bsd_part. setdevice has fallen into disuse.
4849 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
4850 (bsd_part): Likewise.
4851 (boot_dev): New variable.
4852 (multiboot_trampoline): Don't parse multiboot device.
4853 Pass multiboot device in %edx.
4854 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
4855 grub_boot_device.
4856 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
4857 Likewise.
4858 * grub-core/kern/i386/pc/startup.S: Save edx.
4859 (grub_boot_drive): Removed.
4860 (grub_install_dos_part): Likewise.
4861 (grub_install_bsd_part): Likewise.
4862 (grub_boot_device): New variable.
4863 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
4864 (grub_install_bsd_part): Likewise.
4865 (grub_boot_drive): Likewise.
4866 (grub_boot_device): New variable.
4867 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
4868 Removed.
4869 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
4870 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
4871 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
4872 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
4873 * util/grub-install.in: Remove redundant condition.
4874
691cbb58
VS
48752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 Fix bug introduced by previous commit.
4878
4879 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
4880
60240b8b
VS
48812011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 Use decompressors framework on i386-pc. It increases core size
4884 by 46 bytes but improves compatibility and maintainability.
4885
4886 * grub-core/Makefile.core.def (lzma_decompress): New image.
4887 (kernel): Add i386_pc_ldflags.
4888 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
4889 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
4890 to real_to_prot, prot_to_real and device info.
4891 * include/grub/offsets.h: Renamed decompressor offsets.
4892 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
4893 (image_target_desc): Remove raw_size and rename decompressor fields.
4894 (compress_kernel): Handle lzma.
4895 (generate_image): Handle decompressors on i386-pc.
4896
e9d3421c
VS
48972011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * configure.ac: Add -fno-asynchronous-unwind-tables.
4900
2b23074a
VS
49012011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 Move assembly code to C by using intwrap. It increases core size
4904 by 88 bytes but improves compatibility and maintainability.
4905
4906 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
4907 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
4908 ... here. Translated to C.
4909 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
4910 * grub-core/term/i386/pc/console.c (grub_console_getkey):
4911 ... here. Translated to C.
4912 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
4913 * grub-core/term/i386/pc/console.c (grub_console_getxy):
4914 ... here. Translated to C.
4915 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
4916 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
4917 ... here. Translated to C.
4918 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
4919 * grub-core/term/i386/pc/console.c (grub_console_cls):
4920 ... here. Translated to C.
4921 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
4922 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
4923 ... here. Translated to C.
4924 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
4925 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
4926 Translated to C.
4927 * grub-core/term/i386/pc/console.c (int10_9): New function.
4928 (grub_console_putchar): Likewise.
4929 * include/grub/i386/pc/console.h: Removed the not anymore shared
4930 functions.
4931
678f4b67
VS
49322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 Move grub_chainloader_real_boot out of the kernel.
4935
4936 * grub-core/Makefile.am: Remove machine/loader.h.
4937 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
4938 Removed.
4939 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
4940 variable.
4941 (grub_relocator16_keep_a20_enabled): Likewise.
4942 (grub_relocator16_boot): Fill new variables.
4943 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
4944 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
4945 relocator.
4946 (grub_chainloader_unload): Likewise.
4947 (grub_chainloader_cmd): Likewise.
4948 * include/grub/i386/pc/loader.h: Removed.
4949 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
4950 and esi. All initialisers updated.
4951
4626edf6
VS
49522011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
49532011-11-12 Colin Watson <cjwatson@ubuntu.com>
4954
4955 * Makefile.util.def (grub-mount): New util.
4956 * .bzrignore: Add grub-mount.
4957 * configure.ac: Check for fuse and enable grub-mount if available.
4958 * docs/man/grub-mount.h2m: New file.
4959 * util/grub-mount.c: Likewise.
4960
10f0117b
VS
49612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * grub-core/commands/efi/fixvideo.c: Gettextize.
4964 * grub-core/commands/hashsum.c: Likewise.
4965 * grub-core/commands/i386/cmostest.c: Likewise.
4966 * grub-core/commands/i386/pc/drivemap.c: Likewise.
4967 * grub-core/commands/i386/pc/lsapm.c: Likewise.
4968 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4969 * grub-core/commands/lsmmap.c: Likewise.
4970 * grub-core/commands/menuentry.c: Likewise.
4971 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4972 * grub-core/commands/setpci.c: Likewise.
4973 * grub-core/loader/i386/bsd.c: Likewise.
4974 * grub-core/loader/i386/linux.c: Likewise.
4975 * util/getroot.c: Likewise.
4976 * util/grub-editenv.c: Likewise.
4977 * util/grub-fstest.c: Likewise.
4978 * util/grub-mkfont.c: Likewise.
4979 * util/grub-mkimage.c: Likewise.
4980 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4981 * util/grub-pe2elf.c: Likewise.
4982 * util/grub-probe.c: Likewise.
4983 * util/grub-setup.c: Likewise.
4984 * util/ieee1275/ofpath.c: Likewise.
4985 * util/misc.c: Likewise.
4986 * util/raid.c: Likewise.
4987
566f779b
RM
49882011-11-11 Robert Millan <rmh@gnu.org>
4989
4990 * util/getroot.c (grub_util_get_geom_abstraction): Remove
4991 __attribute__((unused)) from `os_dev', which *is* being used.
4992
b50787de
VS
49932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
4996 forgotten define.
4997 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
4998 GRUB_IA64_DL_GOT_ALIGN.
4999 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
5000 GRUB_IA64_DL_TRAMP_ALIGN.
5001
119d11c8
VS
50022011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 Replace grub_fatal with normal errors in i386 linux loader.
5005
5006 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
5007 (allocate_pages): Check find_efi_mmap_size return value.
5008 (grub_e820_add_region): Return error.
5009 (grub_linux_boot): Check mmap return value.
5010
6e0632e2
VS
50112011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5012
5013 * grub-core/commands/acpihalt.c: Gettextized.
5014 * grub-core/commands/cacheinfo.c: Likewise.
5015 * grub-core/commands/cmp.c: Likewise.
5016 * grub-core/commands/efi/loadbios.c: Likewise.
5017 * grub-core/commands/gptsync.c: Likewise.
5018 * grub-core/commands/ieee1275/suspend.c: Likewise.
5019 * grub-core/commands/legacycfg.c: Likewise.
5020 * grub-core/commands/memrw.c: Likewise.
5021 * grub-core/commands/minicmd.c: Likewise.
5022 * grub-core/commands/parttool.c: Likewise.
5023 * grub-core/commands/time.c: Likewise.
5024 * grub-core/commands/videoinfo.c: Likewise.
5025 * grub-core/disk/geli.c: Likewise.
5026 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
5027 * grub-core/disk/luks.c: Likewise.
5028 * grub-core/disk/lvm.c: Likewise.
5029 * grub-core/font/font_cmd.c: Likewise.
5030 * grub-core/fs/zfs/zfscrypt.c: Likewise.
5031 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5032 * grub-core/gfxmenu/view.c: Likewise.
5033 * grub-core/kern/emu/hostdisk.c: Likewise.
5034 * grub-core/kern/emu/main.c: Likewise.
5035 * grub-core/kern/emu/misc.c: Likewise.
5036 * grub-core/kern/emu/mm.c: Likewise.
5037 * grub-core/kern/mips/arc/init.c: Likewise.
5038 * grub-core/kern/mips/loongson/init.c: Likewise.
5039 * grub-core/kern/partition.c: Likewise.
5040 * grub-core/lib/i386/halt.c: Likewise.
5041 * grub-core/lib/mips/arc/reboot.c: Likewise.
5042 * grub-core/lib/mips/loongson/reboot.c: Likewise.
5043 * grub-core/loader/i386/pc/chainloader.c: Likewise.
5044 * grub-core/loader/i386/xnu.c: Likewise.
5045 * grub-core/loader/multiboot.c: Likewise.
5046 * grub-core/net/bootp.c: Likewise.
5047 * grub-core/net/net.c: Likewise.
5048 * grub-core/normal/term.c: Likewise.
5049 * grub-core/partmap/bsdlabel.c: Likewise.
5050 * grub-core/parttool/msdospart.c: Likewise.
5051 * grub-core/term/gfxterm.c: Likewise.
5052 * grub-core/term/terminfo.c: Likewise.
5053 * grub-core/video/i386/pc/vbe.c: Likewise.
5054 * util/grub-menulst2cfg.c: Likewise.
5055 * util/grub-mkdevicemap.c: Likewise.
5056 * util/grub-mklayout.c: Likewise.
5057 * util/grub-mkrelpath.c: Likewise.
5058 * util/grub-script-check.c: Likewise.
5059 * util/ieee1275/grub-ofpathname.c: Likewise.
5060 * util/resolve.c: Likewise.
5061
073aa7a9
VS
50622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 Support %1$d syntax.
5065
5066 * tests/printf_unit_test.c: New file.
5067 * Makefile.util.def (printf_test): New test.
5068 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
5069
c76b5417
VS
50702011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
5073 fix.
5074
df067ad1
VS
50752011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
5078 dprintf.
5079 * grub-core/font/font.c (grub_font_load): Likewise.
5080
5b289bc5
VS
50812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/grub-macho2img.c: Add comment concerning gettext.
5084 * grub-core/lib/legacy_parse.c: Likewise.
5085
c1860f87
VS
50862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
5089 (grub_xvasprintf): Likewise.
5090
d35d0d37
VS
50912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5092
5093 Add const keyword to grub_env_get and gettextize week days.
5094
5095 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
5096 (grub_read_hook_datetime): Return const char *.
5097 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
5098 updated.
5099 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
5100 Mark for gettext.
5101 (grub_get_weekday_name): Return const char *. Call gettext.
5102 * grub-core/script/argv.c (grub_script_argv_append): Receive const
5103 char * and len as the argument. All users updated.
5104 (grub_script_argv_split_append): Receive const char *.
5105 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
5106 * include/grub/env.h (grub_env_get): Likewise.
5107 (grub_env_read_hook_t): Return const char *.
5108 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
5109 (grub_script_argv_split_append): Likewise.
5110
9aed8a71
VS
51112011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
5114
067fdf00
VS
51152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5116
5117 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
5118 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
5119
a8bd9d39
VS
51202011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
5123 Fix prototype.
5124
f7ce5baf
VS
51252011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 Fix mips compilation.
5128
5129 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
5130 normal decoder.
5131 (hashes): Use in embed decoder as well (for sizes).
5132 (dec_stream_header): Fix embed decompressor logic.
5133 (dec_stream_footer): Likewise.
5134
9bb182f3
VS
51352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
5138 an error and not a fatal on unrecognised relocation types.
5139
63a9e6f6
VS
51402011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
5143 Issue error rather than printf on unknown arguments.
5144
4c458569
VS
51452011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
5148 Make buf a const.
5149
e2d22baf
VS
51502011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
5153 Fix module name.
5154
53dc8590
VS
51552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
5158 leftover debug printf.
5159
6c189294
VS
51602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
5163
f7688369
VS
51642011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
5167 A stylistic fix.
5168
11a775a3
VS
51692011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
5172
33f784e8
SL
51732011-11-10 Shea Levy <slevy@tieronedesign.com>
5174
5175 Allow all modules to perform serial IO
5176
5177 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
5178 * include/grub/serial.h (grub_serial_port_configure): New inline
5179 function.
5180 (grub_serial_port_fetch): Likewise.
5181 (grub_serial_port_put): Likewise.
5182 (grub_serial_port_fini): Likewise.
5183 (grub_serial_find): New proto.
5184
f6276525
VS
51852011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 Put symlink at the end of the node and fix a potential
5188 memory corruption.
5189
5190 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
5191 Make symlink into an array.
5192 (set_rockridge): Set have_symlink and alloc_dirents.
5193 (grub_iso9660_read_symlink): Use new layout.
5194 (grub_iso9660_iterate_dir): Fix memory corruption.
5195 Use new layout.
5196 (grub_iso9660_dir): Set have_symlink.
5197 (grub_iso9660_open): Likewise.
5198
c3591189
VS
51992011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 Remove local keyword.
5202
5203 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
5204 (version_test_gt): Likewise.
5205 (version_find_latest): Likewise.
5206 (gettext_printf): Likewise.
5207 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
5208
cb544caa
VS
52092011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
5212
45bd824d
VS
52132011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 Fix ZFS memory and resource leaks.
5216
5217 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
5218 All users updated.
5219 Free type on exit.
5220 (fill_vdev_info): New parameter inserted. All users updated.
5221 (check_pool_label): Likewise.
5222 (scan_disk): Likewise.
5223 (scan_devices): Close non-inserted disks.
5224 (fzap_iterate): Free l.
5225 (unmount_device): Free children descripto memory.
5226
ad9a2f44
VS
52272011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
5230 argument (access out of bounds).
5231
6b68db81
VS
52322011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
5235 >= 6 drives.
5236
28840fda
VS
52372011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
5240 Fix declaration.
5241
8a5a3a5b
VS
52422011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 Fix several memory leaks.
5245
5246 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
5247 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
5248 (grub_cpio_dir): Likewise.
5249 * grub-core/fs/fat.c (grub_fat_label): Likewise.
5250 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
5251 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
5252 (grub_romfs_label): Likewise.
5253 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
5254 (squash_unmount): New function.
5255 (grub_squash_dir): Fix memory leak.
5256 (grub_squash_open): Likewise.
5257 (grub_squash_read): Likewise.
5258 (grub_squash_mtime): Likewise.
5259 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
5260 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
5261 * util/grub-fstest.c (fstest): Likewise.
5262
57b01250
VS
52632011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
5266 avoid accessing beyond the array.
5267
19e81ba7
VS
52682011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
5271
52b656c0
VS
52722011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
5273
5274 Several AFFS fixes.
5275
5276 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
5277 (GRUB_AFFS_FLAG_FFS): Removed.
5278 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
5279 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
5280 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
5281 (grub_fshelp_node): Make block 32-bit.
5282 Add block_cache and last_block_cache.
5283 (grub_affs_read_block): Fill and use block cache.
5284 (grub_affs_read_file): Removed.
5285 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
5286 boot block.
5287 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
5288 safety.
5289 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
5290 space.
5291 (grub_affs_close): Free block cache.
5292 (grub_affs_read): Use grub_fshelp_read_file directly.
5293
438a746a
VS
52942011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
5297 with no error set.
5298
49a45021
VS
52992011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
5302 used variable.
5303 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
5304 Likewise.
5305
3ae17eb8
VS
53062011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
5309
5310 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
5311 byteswap when needed.
5312
27610c38
VS
53132011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 Fix FreeBSD compilation.
5316
5317 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
5318 to avoid circular dependency.
5319 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
5320 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
5321 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
5322
4a19b601
VS
53232011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 Fix ZFS crypto error types.
5326
5327 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
5328 (grub_gcm_decrypt): Likewise.
5329 (grub_zfs_load_key_real): Fix error code type. Handle possible error
5330 from PBKDF2.
5331
958ee221
VS
53322011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 Illumos support.
5335
5336 * Makefile.util.def (10_illumos): New script.
5337 * configure.ac: Set COND_HOST_ILLUMOS.
5338 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
5339 Support Illumos calls.
5340 (find_partition_start) [__sun__]: Likewise.
5341 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
5342 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
5343 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
5344 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
5345 device.
5346 * util/grub-probe.c (probe) [__sun__]: Do character check.
5347 * util/grub.d/10_illumos.in: New file.
5348
cac14fb6
VS
53492011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 Support escaped commas in hostdisk.
5352
5353 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
5354 (find_grub_drive): Use unescape_cmp.
5355 (make_device_name): Escape commas.
5356
78e08dc3
VS
53572011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
5360
9f421dd1
VS
53612011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
5364 variable.
5365
ed64e9e2
VS
53662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 Support trampoline jumps on powerpc.
5369
5370 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
5371 __ia64__ path.
5372 (grub_dl_load_segments): Set mod->sz.
5373 (grub_dl_flush_cache): Flush whole space occupied by module, not just
5374 segments.
5375 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
5376 (jump): Likewise.
5377 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
5378 function.
5379 (trampoline): New struct.
5380 (trampoline_template): New const.
5381 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
5382 * include/grub/dl.h (grub_dl): Add sz element.
5383 [__powerpc__]: Follow __ia64__.
5384 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
5385 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
5386 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
5387 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
5388
3084ede4
VS
53892011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 ZFS crypto support.
5392
5393 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
5394 * grub-core/Makefile.core.def (zfscrypt): New module.
5395 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
5396 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
5397 it. All users updated.
5398 (grub_zfs_decrypt): New var.
5399 (grub_zfs_load_key): Likewise.
5400 (zio_checksum_functions): Add SHA256+MAC.
5401 (zio_checksum_verify): Handle incomplete comparison due to MAC.
5402 (zio_read): Handle encrypted blocks.
5403 (zap_verify): Remove incorrect check.
5404 (fzap_iterate): Handle non-standard fzap.
5405 (zap_iterate): Likewise.
5406 (zap_iterate_u64): New function.
5407 (dnode_get_fullpath): Load keys.
5408 * grub-core/fs/zfs/zfscrypt.c: New file.
5409 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
5410 (grub_crypto_ecb_encrypt): Make input const.
5411 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
5412 (grub_crypto_ecb_encrypt): Make input const.
5413 (GRUB_CIPHER_AES): New macro.
5414 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
5415 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
5416 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
5417 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
5418 prefix. All users updated.
5419 (grub_zfs_add_key): New proto.
5420 (grub_zfs_decrypt): Likewise.
5421 (grub_zfs_load_key): Likewise.
5422 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
5423 * util/grub-fstest.c (options): Add -K option.
5424 (argp_parser): Likewise.
5425
b632b404
VS
54262011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 Support zle compression on ZFS.
5429
5430 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
5431 (decomp_table): Add zle.
5432 * include/grub/zfs/zio.h (zio_compress): Add zle.
5433
c7ba4f69
VS
54342011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 Support BtrFS embedding.
5437
5438 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
5439 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
5440 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
5441 * util/grub-setup.c (setup): Use fs embedding if available.
5442 Add additional sanity check.
5443
455377d9
VS
54442011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * util/grub-install.in: Fix condition for config_opt.
5447
c2fd16ca
VS
54482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 Support third redundancy strip on raidz3.
5451
5452 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
5453 Return error on singularity. All users updated.
5454 (read_device): Don't stop on 3rd failure on raidz3.
5455
8622923b
VS
54562011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 Support case-insensitive ZFS subvolumes.
5459
5460 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
5461 All users updated.
5462 (zap_hash): Likewise.
5463 (name_cmp): New function.
5464 (zap_leaf_array_equal): New parameter case_insensitive.
5465 All users updated.
5466 (zap_leaf_lookup): Likewise.
5467 (fzap_lookup): Likewise.
5468 (zap_lookup): Likewise.
5469 (dnode_get_path): New parameter case_insensitive. Retrieve case
5470 sensitiviness of a volume. All users updated.
5471 (dnode_get_fullpath): New parameter case_insensitive.
5472 All users updated.
5473 (grub_zfs_dir): Set info.case_insensitiveness.
5474
95f2e860
VS
54752011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 Support second redundancy strip on raidz(2,3).
5478
5479 * grub-core/fs/zfs/zfs.c (powx): New array.
5480 (powx_inv): Likewise.
5481 (poly): New const.
5482 (xor_out): New function.
5483 (gf_mul): Likewise.
5484 (recovery): Likewise.
5485 (read_device): Use second redundancy strip.
5486
11ee4389
VS
54872011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 Use a power of generator representation of GF(256) multiplication group
5490 to save space time and complexity.
5491
5492 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
5493 (raid6_table2): Likewise.
5494 (powx): New array.
5495 (powx_inv): Likewise.
5496 (poly): New const.
5497 (grub_raid_block_mul): Replace with ...
5498 (grub_raid_block_mulx): ...this.
5499 (grub_raid6_init_table): Rewritten.
5500 (grub_raid6_recover): Use power of generator representation.
5501
09e2763f
VS
55022011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5503
5504 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
5505 for the right device.
5506
8bec9a28
VS
55072011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
5510 expected by grub-mkimage and it's more clear since there is no implicit
5511 padding.
5512
dbd3a32e
VS
55132011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
5516 disk.
5517 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
5518
182c872a
PMH
55192011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
5520
5521 * util/grub-mkrescue.in: Fix handling xorriso option.
5522
1e51cabd
VS
55232011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
5526 NULL.
5527
9cc3581d 55282011-11-03 crocket <crockabiscuit@gmail.com>
5529
5530 * util/grub.d/10_linux.in: Add Slackware initrd naming.
5531
158dc1ea
VS
55322011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 XZ CRC64 and SHA256 support.
5535
5536 * Makefile.util.def (libgrubmods): Add crc64.c.
5537 * grub-core/Makefile.core.def (crc64): New module.
5538 * grub-core/lib/crc64.c: New file.
5539 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
5540 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
5541 Fix the type.
5542 (MAX_HASH_SIZE): New define.
5543 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
5544 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
5545 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
5546 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
5547 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
5548 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
5549 Handle non-crc32 hashes.
5550 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
5551 (dec_stream_header): Handle non-crc32 hashes.
5552 (dec_stream_footer): Likewise.
5553 (dec_block_header): Likewise.
5554 (dec_main): Likewise.
5555 (xz_dec_init): Likewise.
5556 (xz_dec_reset): Likewise.
5557 (xz_dec_end): Likewise.
5558 * util/import_gcry.py: Add CRC64 line.
5559
9d9b3d2f
VS
55602011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
5563 as well.
5564
7d0ac931
VS
55652011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 Make reiserfs label retrieval similar to other *_label functions.
5568
5569 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
5570 (REISERFS_MAX_LABEL_LENGTH): Removed.
5571 (REISERFS_LABEL_OFFSET): Likewise.
5572 (grub_reiserfs_label): Rewritten.
5573
55742011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
5577 field.
5578
cf5ba824
VS
55792011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
5582
17744004
VS
55832011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
5586 drive failure on both raidz and raidz2.
5587
aca5aefc
VS
55882011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 Fix RAIDZ(2) for >= 5 devices.
5591
5592 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
5593 asize argument. All users updated.
5594
ce8ca56e
VS
55952011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 Fix RAIDZ(2).
5598
5599 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
5600 (fill_vdev_info_real): Set ashift.
5601 (read_device): Rewrite RAIDZ part based on reverse engineering.
5602
7c01e783
VS
56032011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5604
5605 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
5606 don't report potentially unavialiable fields in debug output.
5607 (find_path): Fix double-free and memory leak.
5608
ce109e84
VS
56092011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 Read label on UFS1.
5612
5613 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
5614 (grub_ufs_fs): Always set .label.
5615
87661123
VS
56162011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 Use shifts in UFS.
5619
5620 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
5621 (grub_ufs_data): New field log2_blksz.
5622 (grub_ufs_read_file): Use shifts.
5623 (grub_ufs_mount): Check block size and logarithm it.
5624
46bc1dc2
VS
56252011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
5628 long symlinks.
5629
19ee2987
VS
56302011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 Handle symlinks and long names on tar and cpio.
5633
5634 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
5635 (ATTR_FILE): Likewise.
5636 (ATTR_DIR): Likewise.
5637 (ATTR_LNK): Likewise.
5638 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
5639 (grub_cpio_find_file): Fill mode, handle linkname field as well as
5640 L and K entries.
5641 (grub_cpio_mount): Zero-fill data.
5642 (handle_symlink): New function.
46bc1dc2
VS
5643 (grub_cpio_dir): Handle symlinks.
5644 (grub_cpio_open): Likewise.
5645 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 5646
c83a08d8
VS
56472011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Fix iso9660 filename limitations and fix memory leaks.
5650
5651 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
5652 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
5653
45cdd3ea
VS
56542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 Fix JFS file name length limitations.
5657
5658 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
5659 (grub_jfs_diropen): Fix maximum filename length.
5660 (grub_jfs_getent): Fix filename length.
5661 (grub_jfs_lookup_symlink): Fix size checks.
5662
94ef05c2
VS
56632011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
5666 string.
5667
785ab8c7
VS
56682011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5669
eb0b6b45
VS
5670 Leverage BFS implementation to read AFS.
5671
5672 * Makefile.util.def (libgrubmods): Add afs.c.
5673 * grub-core/Makefile.core.def (afs): New module
5674 * grub-core/fs/afs.c: New file.
5675 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
5676
56772011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 5680
c4a1628f
VS
56812011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/fs/bfs.c: Run indent.
5684
5825b379
VS
56852011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5686
5687 BFS implementation based on the specification.
5688
5689 * grub-core/fs/bfs.c: New file.
5690 * Makefile.util.def (libgrubmods): Add bfs.c.
5691 * grub-core/Makefile.core.def (bfs): New module.
5692
42b2a706
VS
56932011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 * util/grub-fstest.c (cmd_cp): Clarify error message.
5696 (cmd_cmp): Likewise.
5697
61b99bfc
YB
56982011-10-30 Yves Blusseau <blusseau@zetam.org>
5699
5700 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
5701 and befs_be.
5702
faba3d16
VS
57032011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 Remove afs and befs because of copyright problem.
5706
5707 * grub-core/fs/afs.c: Removed.
5708 * grub-core/fs/afs_be.c: Removed.
5709 * grub-core/fs/befs.c: Removed.
5710 * grub-core/fs/befs_be.c: Removed.
5711 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
5712 * grub-core/Makefile.core.def (afs): Removed.
5713 (afs_be): Likewise.
5714 (befs): Likewise.
5715 (befs_be): Likewise.
5716
c39224b0
VS
57172011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 Prefer rockridge over Joliet.
5720
5721 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
5722 to ...
5723 (set_rockridge): ... here.
5724 (grub_iso9660_mount): Check rockridge on the primary label when
5725 discovering. Ignore Joliet if Rockridge is present.
5726
e551115a
VS
57272011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 Use shifts in nilfs2.
5730
5731 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
5732 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
5733 (grub_nilfs2_palloc_entries_per_group): Replace with ...
5734 (grub_nilfs2_log_palloc_entries_per_group): ... this.
5735 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
5736 (grub_nilfs2_entries_per_block): Replaced with ...
5737 (grub_nilfs2_log_entries_per_block_log): ... this.
5738 (grub_nilfs2_blocks_per_group): Replaced with ...
5739 (grub_nilfs2_blocks_per_group_log): ... this.
5740 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
5741 (grub_nilfs2_blocks_per_desc_block_log): ... this.
5742 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
5743 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
5744 (grub_nilfs2_palloc_entry_offset): Replaced ...
5745 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
5746 (grub_nilfs2_dat_translate): Use shifts.
5747 (grub_nilfs2_read_inode): Likewise.
5748 (GRUB_MOD_INIT): Ensure that logs are correct.
5749
564dd58c
VS
57502011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 Use shifts in minix filesystem.
5753
5754 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
5755 (GRUB_MINIX_ZONE2SECT): Likewise.
5756 (grub_minix_data): Replace block_size with log_block_size.
5757 (grub_minix_read_file): Use shifts.
5758 (grub_minix_mount): Check block size and take a logarithm.
5759
ed9ba06d
VS
57602011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 Use shifts in squash4.
5763
5764 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
5765 (squash_mount): Check block size and take logarithm.
5766 (direct_read): Use shifts.
5767
ad03fe76
VS
57682011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 Correct befs block counting logic.
5771
5772 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
5773 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
5774 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
5775 (grub_afs_read_inode): Use block_shift.
5776 (RANGE_SHIFT): New definition.
5777 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
5778 unexpected conditions, use shifts and appropriate types.
5779 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
5780
6563f63d
VS
57812011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/disk/raid.c (scan_devices): Check partition.
5784 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
5785
5b1ae25f
VS
57862011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 Support BFS (befs) UUID.
5789
5790 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
5791 (grub_afs_small_data_element_header): New struct.
5792 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
5793 (grub_afs_read_attribute) [MODE_BFS]: New function.
5794 (grub_afs_iterate_dir): Allocate for complete inode.
5795 (grub_afs_mount): Likewise.
5796 (grub_afs_uuid) [MODE_BFS]: New function.
5797 (grub_afs_fs) [MODE_BFS]: Add .uuid.
5798
f8d82408
VS
57992011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
5802 (zfs_unmount): Fix memory leak.
5803
5773fb64
VS
58042011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 Support NTFS reparse points.
5807
5808 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
5809 (symlink_descriptor): New struct.
5810 (grub_ntfs_read_symlink): New function.
5811 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
5812 (grub_ntfs_open): Likewise.
5813
91c3fdde
VS
58142011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
5817
3be82e10
VS
58182011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 fstest xnu_uuid subcommand.
5821
5822 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
5823 grub-core/commands/xnu_uuid.c.
5824 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
5825 (fstest): Handle xnu_uuid.
5826 (options): Document xnu_uuid.
5827 (argp_parser): Parse xnu_uuid.
5828
8e32442e
VS
58292011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
5832 -l argument. Add newline at the end if printing.
5833 (GRUB_MOD_INIT): Document -l.
5834
52a05075
VS
58352011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
5838
1869edb5
VS
58392011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5840
5841 ZFS multi-device and version 33 support.
5842
5843 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
5844 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
5845 (grub_zfs_data): Add multidev-ice-related fields.
5846 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
5847 (dva_get_offset): Make dva const.
5848 (zfs_fetch_nvlist): New function.
5849 (fill_vdev_info_real): Likewise.
5850 (fill_vdev_info): Likewise.
5851 (check_pool_label): Likewise.
5852 (scan_disk): Likewise.
5853 (scan_devices): Likewise.
5854 (read_device): Likewise.
5855 (read_dva): Likewise.
5856 (zio_read_gang): Use read_dva.
5857 (zio_read_data): Likewise.
5858 (zap_leaf_lookup): Add missing endian conversion.
5859 (zap_verify): Add missing endian conversion. All users updated.
5860 (fzap_lookup): Likewise.
5861 (fzap_iterate): Likewise.
5862 (dnode_get_path): Handle SA bonus.
5863 (nvlist_find_value): Make input const. All users updated.
5864 (unmount_device): New function.
5865 (zfs_unmount): Use unmount_device.
5866 (zfs_mount): Use scan_disk.
5867 (zfs_mtime): New function.
5868 (grub_zfs_open): Handle system attributes.
5869 (fill_fs_info): Likewise.
5870 (grub_zfs_dir): Likewise.
5871 (grub_zfs_fs): Add mtime.
5872 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
5873 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
5874 (SA_MTIME_OFFSET): Likewise.
5875 (SA_SYMLINK_OFFSET): Likewise.
5876 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
5877 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
5878 (fstest): Support zfsinfo.
5879 (argp_parser): Likewise.
5880
186b4028
VS
58812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5882
5883 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
5884 error.
5885
58862011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
5887
5888 ZFS fixes.
5889
5890 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
5891 sharing the same block. Iterate over correct number of indices.
5892 (dnode_get_path): Handle symlinks correctly.
5893
c0584900
VS
58942011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5895
5896 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
5897
67e2bd71
VS
58982011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 Read label on HFS+.
5901
5902 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
5903 (grub_hfsplus_btree_search): Fix types.
5904 (grub_hfsplus_label): Implement.
5905
e9cc6b7b
VS
59062011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
5909
19832ddb
VS
59102011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
5913
66b40850
VS
59142011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 Fix symlink handling on iso9660.
5917
5918 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
5919 All users updated.
5920 (grub_iso9660_susp_iterate): Accept zero-size iterate.
5921 (grub_iso9660_read_symlink): Moved most of code ...
5922 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
5923
db821363
VS
59242011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5927 Use union to avoid breaking strict-aliasing rules.
5928
e1211949
VS
59292011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 Support multi-extent iso files.
5932
5933 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
5934 Add node.
5935 (grub_fshelp_node): Revamp. All users updated.
5936 (FLAG_*): New enum.
5937 (read_node): New function.
5938 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
5939 All users updated.
5940 (grub_iso9660_mount): Don't attempt to read sua when there is none.
5941 (get_node_size): New function.
5942 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
5943 entries.
5944 Fix memory leak on . and ..
5945 (grub_iso9660_read): Use read_node.
5946 (grub_iso9660_close): Free node.
5947
d4888031
VS
59482011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 Fix tar 4G limit and handle paths containing dot.
5951
5952 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
5953 (canonicalize): New function.
5954 (grub_cpio_find_file): Use canonicalize. Store offs in
5955 grub_disk_addr_t.
5956 (grub_cpio_dir): Use grub_disk_addr_t.
5957 (grub_cpio_open): Likewise.
5958
9f12e664
VS
59592011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 Fix handling of uncompressed blocks on squashfs and break 4G limit.
5962
5963 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
5964 unused flags.
5965 (grub_squash_inode): Add long_file and block_size.
5966 (grub_squash_cache_inode): New struct.
5967 (grub_squash_dirent): Make types into enum.
5968 (SQUASH_TYPE_LONG_REGULAR): New type.
5969 (grub_squash_frag_desc): Add field size.
5970 (SQUASH_BLOCK_FLAGS): New enum.
5971 (grub_squash_data): Use grub_squash_cache_inode.
5972 (grub_fshelp_node): Make ino_chunk 64-bit.
5973 (read_chunk): Minor argument change. All users updated.
5974 (squash_mount): Use correct le_to_cpu.
5975 (grub_squash_open): Handle LONG_REGULAR.
5976 (direct_read): New function.
5977 (grub_squash_read_data): Handle blocks correctly.
5978
9f326fba
VS
59792011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
5982
f4d9b64b
VS
59832011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
5986
5bbd28b8
VS
59872011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 Fix 2G limit on ZFS.
5990
5991 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
5992 types.
5993 (uberblock_verify): Likewise.
5994 (dmu_read): Likewise.
5995 (grub_zfs_read): Likewise. Remove invalid cast.
5996
68c72069
VS
59972011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
6000 (grub_jfs_blkno): Fix incorrect shift.
6001 (grub_jfs_read_file): Use more appropriate types.
6002
6e536dc8
VS
60032011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 Support triple indirect on minix2 and minix3.
6006
6007 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
6008 Declare triple_indir_zone.
6009 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
6010 indirect.
6011
e0864e7a
VS
60122011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 Minix FS fixes.
6015
6016 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
6017 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
6018 Rename ctime to mtime. All users updated.
6019 (grub_minix_get_file_block): Fix types and double indirect computations.
6020
89481cab
VS
60212011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
6024 if no label is found.
6025 (grub_fat_iterate_dir): Fix file size type.
6026 (grub_fat_iterate_dir): Likewise.
6027
f646e143
VS
60282011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
6031 save some space.
6032 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
6033 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6034
534d769e
VS
60352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
6038
e084ba18
VS
60392011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * util/import_gcry.py: Accept space between # and include.
6042
3471ecdf
VS
60432011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
6046
124df5f6
VS
60472011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 Fine grainely disable warnings on lexer. Remove Wno-error on it.
6050
6051 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
6052 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
6053 yylex_strncpy.
6054 * grub-core/script/yylex.l: Add fine-grained #pragma.
6055
4defb8d5
VS
60562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
6059 New inline function.
6060 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
6061 Likewise.
6062 (memset) [GRUB_UTIL]: Likewise.
6063 (memcmp) [GRUB_UTIL]: Likewise.
6064
4e94ae65
VS
60652011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
6068 inline function rather than a define.
6069
18c575e5
VS
60702011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * util/grub-setup.c: Add missing include.
6073
f8bc22a8
VS
60742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * util/ieee1275/grub-ofpathname.c: Add missing include.
6077
3ce69fc9
VS
60782011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
6081 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
6082 Likewise.
6083
d1e293bb
VS
60842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6085
6086 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
6087 grub_memcmp usage.
6088
7a5c54a4
VS
60892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * util/grub-install.in: Add datarootdir as per automake manual
6092 suggestion.
6093 * util/grub-mknetdir.in: Likewise.
6094
60952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
6096
6097 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
6098 suggestion.
6099 * util/grub.d/10_kfreebsd.in: Likewise.
6100 * util/grub.d/10_linux.in: Likewise.
6101 * util/grub.d/10_netbsd.in: Likewise.
6102 * util/grub.d/10_windows.in: Likewise.
6103 * util/grub.d/20_linux_xen.in: Likewise.
6104
766f7d08
VS
61052011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 Remove redundant grub_kernel_image_size.
6108
6109 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
6110 _edata and _start.
6111 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
6112 the small code. It moves it only by few bytes but simplifies the code.
6113 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
6114 _start.
6115 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
6116 (grub_kernel_image_size): Removed.
6117 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
6118 (grub_kernel_image_size): Removed.
6119 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
6120 compiled with Apple toolchain.
6121 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
6122 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
6123 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
6124 (grub_total_module_size): Likewise.
6125 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
6126 Removed.
6127 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
6128 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
6129 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
6130 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
6131 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
6132 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
6133 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
6134 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
6135 Removed.
6136 (grub_total_module_size): Removed.
6137 * util/grub-mkimage.c (image_target_desc): Remove image_size.
6138 (image_targets): Likewise.
6139 Set .compressed_size to no field on sparc.
6140 (generate_image): Remove kernel_image_size handling.
6141
fcf1d672
SJ
61422011-10-19 Szymon Janc <szymon@janc.net.pl>
6143
6144 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
6145 NULL pointer dereference.
6146
de9c615e
VS
61472011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
6150 done with a dedicated section.
6151
6152 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
6153 Ensure the correct position of boot_path.
6154 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
6155 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
6156 other fields.
6157 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
6158 * include/grub/boot.h: Removed. All references removed.
6159 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
6160 Removed.
6161 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
6162
e55599dc
VS
61632011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
6166 name.
6167
36dd20ad
VS
61682011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
6171
f8f72eb8
VS
61722011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6175 Don't add the bogus brackets.
6176
a374751b
VS
61772011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 ExFAT support.
6180
6181 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
6182 * grub-core/Makefile.core.def (exfat): New module.
6183 * grub-core/fs/exfat.c: New file.
6184 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
6185 (GRUB_FAT_ATTR_*): Make into an enum.
6186 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
6187 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
6188 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
6189 (GRUB_FAT_MAXFILE): Removed.
6190 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
6191 (grub_current_fat_bpb_t): New type.
6192 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
6193 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
6194 (grub_fat_dir_node_t): New type.
6195 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
6196 (fat_log2) [MODE_EXFAT]: Removed.
6197 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
6198 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
6199 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
6200 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
6201 (grub_fat_label) [MODE_EXFAT]: New function.
6202 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
6203 reserved_first_sector to 0.
6204
544c2487
VS
62052011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 Move grub_reboot out of the kernel.
6208
6209 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
6210 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
6211 * grub-core/lib/efi/reboot.c: ... here.
6212 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
6213 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6214 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
6215 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
6216 * grub-core/lib/i386/reboot_trampoline.S: ... here.
6217 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
6218 * grub-core/lib/ieee1275/reboot.c: ... here.
6219 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
6220 * grub-core/lib/mips/arc/reboot.c: ... here.
6221 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
6222 * grub-core/lib/mips/loongson/reboot.c: ...here.
6223 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
6224 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
6225 * include/grub/emu/misc.h (grub_reboot): New function declaration.
6226 * include/grub/i386/reboot.h: New file.
6227 * include/grub/mips/loongson/ec.h: Fix includes.
6228 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
6229 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
6230 * grub-core/lib/i386/reboot.c: New file.
6231
a97501d2
VS
62322011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 Make grub_prefix into module to fix the arbitrary limit and save
6235 some space.
6236
6237 * grub-core/kern/emu/main.c (grub_prefix): Removed.
6238 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
6239 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
6240 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
6241 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
6242 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
6243 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
6244 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
6245 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6246 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
6247 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
6248 * include/grub/ia64/efi/kernel.h: Removed.
6249 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
6250 (grub_prefix): Removed.
6251 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
6252 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
6253 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
6254 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
6255 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
6256 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
6257 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
6258 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
6259 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
6260 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
6261 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
6262 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
6263 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
6264 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
6265 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
6266 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
6267 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
6268 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
6269 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
6270 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
6271 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
6272 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
6273 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
6274 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
6275 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
6276 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
6277 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
6278 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
6279 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
6280 from module.
6281 * util/grub-mkimage.c (image_target_desc): Removed prefix and
6282 prefix_end.
6283 (image_targets): Likewise.
6284 (generate_image): Put prefix as a module.
6285
39705fad
VS
62862011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 Replace grub_module_iterate with FOR_MODULES.
6289
6290 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
6291 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
6292 (grub_efi_modules_addr): ...this.
6293 * grub-core/kern/efi/init.c (grub_modbase): New variable.
6294 (grub_efi_init): Set grub_modbase.
6295 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
6296 (grub_modbase): New variable.
6297 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
6298 (grub_modbase): New variable.
6299 (grub_machine_init): Set grub_modbase.
6300 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
6301 (grub_modbase): New variable.
6302 (grub_machine_init): Set grub_modbase.
6303 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
6304 (grub_modbase): New variable.
6305 (grub_machine_init): Set grub_modbase.
6306 * grub-core/kern/main.c (grub_module_iterate): Remove.
6307 (grub_modules_get_end): Use grub_modbase.
6308 (grub_load_modules): Use FOR_MODULES.
6309 (grub_load_config): Likewise.
6310 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
6311 (grub_modbase): New variable.
6312 (grub_machine_init): Set grub_modbase.
6313 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
6314 (grub_modbase): New variable.
6315 (grub_machine_init): Set grub_modbase.
6316 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
6317 Removed.
6318 (grub_modbase): New variable.
6319 (grub_machine_init): Set grub_modbase.
6320 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
6321 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
6322 (grub_module_iterate): Likewise.
6323 (grub_modbase): New variable declaration.
6324 (FOR_MODULES): New macro.
6325
2afb7f6c
VS
63262011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * configure.ac: Check for __ctzdi2 and __ctzsi2.
6329 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
6330
366e34fa
VS
63312011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 Fix few obvious type discrepancies.
6334
6335 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
6336 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
6337 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
6338 variable.
6339 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
6340 and connected types.
6341 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
6342 offset.
6343 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
6344 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
6345 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
6346 and connected types.
6347
177b960e
VS
63482011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 Fix python 3.x incompatibilities.
6351
6352 * gentpl.py: Put brackets around print strings.
6353 * util/import_gcry.py: Open explicitly as utf-8.
6354 Use in instead of has_key.
6355
3b619ae1
VS
63562011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
6359 (GRUB_XFS_INO_AGBITS): Make into inline function.
6360 (GRUB_XFS_INO_INOINAG): Likewise.
6361 (GRUB_XFS_INO_AG): Likewise.
6362 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
6363 (GRUB_XFS_EXTENT_OFFSET): Likewise.
6364 (GRUB_XFS_EXTENT_BLOCK): Likewise.
6365 (GRUB_XFS_EXTENT_SIZE): Likewise.
6366 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
6367 (GRUB_XFS_NEXT_DIRENT): Likewise.
6368 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
6369 (grub_xfs_read_file): Fix offset type.
6370
8bcebcb8
RM
63712011-10-15 Robert Millan <rmh@gnu.org>
6372
6373 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
6374
0017e5ef
RM
63752011-10-15 Robert Millan <rmh@gnu.org>
6376
6377 Fix build problem on FreeBSD and GNU/kFreeBSD.
6378
6379 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
6380
d8919552
VS
63812011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
6384
6385 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
6386 types.
6387 (grub_hfsplus_btree_recoffset): Likewise.
6388 (grub_hfsplus_btree_recptr): Likewise.
6389 (grub_hfsplus_find_block): Likewise.
6390 (grub_hfsplus_btree_search): Likewise.
6391 (grub_hfsplus_read_block): Likewise.
6392 (grub_hfsplus_read_file): Likewise.
6393 (grub_hfsplus_mount): Likewise.
6394 (grub_hfsplus_btree_iterate_node): Likewise.
6395 (grub_hfsplus_btree_search): Likewise.
6396 (grub_hfsplus_iterate_dir): Likewise.
6397 (grub_hfsplus_read): A small code simplification.
6398
c81296b6
VS
63992011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/kern/emu/hostdisk.c
6402 (convert_system_partition_to_system_disk): Don't assume that children
6403 of mapper nodes are mapper nodes.
6404
0eb8ffb1
VS
64052011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
6408 * include/grub/misc.h (grub_isxdigit): New function.
6409 * grub-core/video/colors.c (my_isxdigit): Removed. All users
6410 switched to grub_isxdigit.
6411 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
6412 number starting with a letter.
6413
a98f4a08
RM
64142011-10-09 Robert Millan <rmh@gnu.org>
6415
6416 LVM support for FreeBSD and GNU/kFreeBSD.
6417
6418 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
6419 GNU/kFreeBSD.
6420 (LVM_DEV_MAPPER_STRING): Move from here ...
6421 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
6422 * util/getroot.c: Include `<grub/util/lvm.h>'.
6423 (grub_util_get_dev_abstraction): Enable
6424 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
6425 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
6426 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
6427 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
6428 support it.
6429 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
6430 GNU/kFreeBSD.
6431 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
6432 when LVM abstraction is required for ${GRUB_DEVICE}.
6433
050e8e90
SJ
64342011-10-06 Szymon Janc <szymon@janc.net.pl>
6435
6436 Add support for LZO compression in GRUB:
6437 - import of minilzo library,
6438 - LZO decompression for btrfs,
6439 - lzop files decompression.
6440
6441 * grub-core/io/lzopio.c: New file.
6442 * grub-core/lib/adler32.c: Likewise.
6443 * grub-core/lib/minilzo/lzoconf.h: Likewise.
6444 * grub-core/lib/minilzo/lzodefs.h: Likewise.
6445 * grub-core/lib/minilzo/minilzo.c: Likewise.
6446 * grub-core/lib/minilzo/minilzo.h: Likewise.
6447 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
6448 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
6449 grub-core/lib/minilzo/minilzo.c to common.
6450 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
6451 cflags in cppflags.
6452 * grub-core/Makefile.core.def (btrfs): Likewise.
6453 * grub-core/Makefile.core.def (lzopio): New module.
6454 (adler32): Likewise.
6455 * grub-core/fs/btrfs.c: Include minilzo.h.
6456 (GRUB_BTRFS_COMPRESSION_LZO): New define.
6457 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
6458 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
6459 (grub_btrfs_lzo_decompress): New function.
6460 (grub_btrfs_extent_read): Add support for LZO compression type.
6461 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
6462 (GRUB_USHRT_MAX): Likewise.
6463 (GRUB_UINT_MAX): Likewise.
6464 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
6465 (UINT_MAX): Likewise.
6466 (CHAR_BIT): Likewise.
6467 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
6468 grub-core/lib/posix_wrap/limits.h
6469 (UCHAR_MAX): Likewise.
6470 * include/grub/file.h (grub_file_filter_id): New compression filter
6471 GRUB_FILE_FILTER_LZOPIO.
6472 * include/grub/file.h (grub_file_filter_id): Set
6473 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
6474 * include/grub/types.h (grub_get_unaligned16): New function.
6475 (grub_get_unaligned32): Likewise.
6476 (grub_get_unaligned64): Likewise.
6477 * util/import_gcry.py (cryptolist): Add adler32.
6478
0eb8ffb1
VS
64792011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
6482 in perspective decreases the complexity of build system and fixes
6483 compilation right now.
6484
ce79cc99 64852011-10-01 Ales Nesrsta <starous@volny.cz>
6486
6487 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
6488 (fixed problem related to using UHCI with coreboot).
6489
8667a314
BC
64902011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6491
6492 * gentpl.py: Use Autogen macros so that the output template file
6493 (Makefile.tpl) size is reduced.
6494
fc5efcc0
MK
64952011-09-29 Mads Kiilerich <mads@kiilerich.com>
6496
6497 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
6498 extra_dist.
6499
d1ab689d
ML
65002011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6501
6502 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
6503 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
6504
c05de032
ML
65052011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6506
6507 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
6508 _fullpath.
6509
cca7ccd8
ML
65102011-09-29 Mario Limonciello <mario_limonciello@dell.com>
6511
6512 Remove extra declaration of sleep for mingw32.
6513
6514 * util/misc.c (sleep) [__MINGW32__]: Removed.
6515 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
6516
e0b0dc83
GS
65172011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
6518
6519 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
6520 type and packname.
6521 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
6522 Resurrected.
6523 (NETBSD_BTINFO_BOOTWEDGE): New definition.
6524 (grub_netbsd_btinfo_bootwedge): New struct.
6525 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
6526 New function.
6527 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
6528
91a1a164
TH
65292011-09-28 Thomas Haller <thomas.haller@fen-net.de>
6530
6531 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
6532 loader.
6533
2ded951e
AB
65342011-09-28 Andreas Born <futur.andy@googlemail.com>
6535
6536 Fix incorrect identifiers in bash-completion.
6537
6538 * util/bash-completion.d/grub-completion.bash.in
6539 (_grub_mkpasswd-pbkdf2): Rename to ...
6540 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
6541 (_grub_script-check): Rename to ...
6542 (_grub_script_check): ... this. All users updated.
6543
69915030
VS
65442011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6547 Return 0 if disk isn't biosdisk.
6548
20fd15f9
GS
65492011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
6550
6551 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
6552 on NetBSD.
6553 * Makefile.util.def (grub-fstest): Likewise.
6554
1a7d7db9
GS
65552011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
6556
6557 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
6558 Get sector size from disk label.
6559
2221ab6c
CW
65602011-09-05 Colin Watson <cjwatson@ubuntu.com>
6561
6562 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
6563 */README* as well as README*.
6564 Reported by: Axel Beckert.
6565
ca51c4a0
VS
65662011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
6569 case of less than 256 MiB of RAM.
6570
ab80f326
VS
65712011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/commands/wildcard.c (make_regex): Handle @.
6574
4155e697
VS
65752011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 * util/grub-install.in: Move cryptodisk logic to appropriate place.
6578
ab178c08
SJ
65792011-08-21 Szymon Janc <szymon@janc.net.pl>
6580
6581 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
6582 AC_LANG_CONFTEST macros.
6583
7dc3c686
SJ
65842011-08-20 Szymon Janc <szymon@janc.net.pl>
6585
6586 Add grub-fstest option to uncompress data for commands.
6587
6588 * util/grub-fstest.c (uncompress): New var.
6589 (options): New option -u.
6590
fe8d4a7b
SJ
65912011-08-20 Szymon Janc <szymon@janc.net.pl>
6592
6593 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6594 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
6595
a5219af1
SJ
65962011-08-20 Szymon Janc <szymon@janc.net.pl>
6597
6598 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
6599 file type was not recognized correctly (not gzip or corrupted).
6600
f87abff5
VS
66012011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
6604 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
6605
d94497ea
VS
66062011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6607
6608 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
6609 loongson.
6610 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
6611 video_radeon_fuloong2e.
6612 * grub-core/video/radeon_fuloong2e.c: New file.
6613 * include/grub/video.h (grub_video_id_t): Add new ID
6614 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
6615
0d1fd011
VS
66162011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
6619 define.
6620 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
6621 that PRID matches the detected subplatform and reset the subplatform
6622 if it doesn't.
6623
84beb0ee
VS
66242011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6625
6626 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
6627
1227c133
VS
66282011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 Fix PCI iterating on functions >= 4.
6631
6632 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
6633 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
6634 Removed.
6635 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
6636 (grub_pci_read): Fix bitmask.
6637 (grub_pci_read_word): Likewise.
6638 (grub_pci_read_byte): Likewise.
6639 (grub_pci_write): Likewise.
6640 (grub_pci_write_word): Likewise.
6641 (grub_pci_write_byte): Likewise.
6642
9594c689
VS
66432011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
6646 can still be specified in TARGET_CFLAGS)
6647
14a2562c
VS
66482011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
6651
6652 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
6653 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
6654 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
6655 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
6656 (FULOONG): Rename to ...
6657 (FULOONG2F): ... this. All users updated.
6658 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
6659 (machtype_fuloong2f_str): ... this.
6660 (machtype_fuloong2e_str): New string.
6661 Check for machtype_fuloong2e_str.
6662 * grub-core/loader/mips/linux.c (loongson_machtypes)
6663 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
6664 * grub-core/term/serial.c (loongson_defserial)
6665 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
6666 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
6667 loongson_defserial.
6668 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
6669 Rename to ...
6670 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
6671 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
6672 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
6673 to IMAGE_FULOONG2F_FLASH. All users updated.
6674 (image_targets): Rename images.
6675 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
6676
b526cbb6
SJ
66772011-08-19 Szymon Janc <szymon@janc.net.pl>
6678
6679 Make enable of disk cache statistics code configurable.
6680
6681 * configure.ac: --enable-cache-stats added.
6682 * config.h.in (DISK_CACHE_STATS): New define.
6683 * grub-core/Makefile.core.def (cacheinfo): New command.
6684 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
6685 * grub-core/commands/cacheinfo.c: New file.
6686 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
6687 moved to cacheinfo.c.
6688 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
6689 debug code.
6690 * include/grub/disk.h: Likewise.
6691
fb739ccd
SJ
66922011-08-19 Szymon Janc <szymon@janc.net.pl>
6693
6694 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
6695 * grub-core/Makefile.am: Likewise.
6696
2bba8cfd
VS
66972011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
6700 non-zero pull.
6701
43526629
VS
67022011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
6705 All users updated.
6706 (grub_jfs_lookup_symlink): Use correct starting inode.
6707
5c144cc8
VS
67082011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 * util/grub-setup.c (main): Add missing gcry initialisation.
6711
b1257f65
VS
67122011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 Don't accept text modes on EFI when booting Linux.
6715
6716 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
6717 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
6718
828bc390
ML
67192011-08-15 Mario Limonciello <mario_limonciello@dell.com>
67202011-08-15 Colin Watson <cjwatson@ubuntu.com>
6721
6722 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
6723 use of "/path/.." as in grub-install for EFI as well as handling
6724 symlinks correctly.
6725 Fixes Debian bug #637768.
6726
5f60ccac
CW
67272011-08-15 Colin Watson <cjwatson@ubuntu.com>
6728
6729 * util/grub-probe.c: Remove duplicate #include.
6730
6dc212f9
RM
67312011-08-10 Robert Millan <rmh@gnu.org>
6732
6733 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
6734
6735 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
6736 function.
6737 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
6738 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
6739
66816d85
RM
67402011-08-03 Robert Millan <rmh@gnu.org>
6741
6742 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
6743 la_array as packed.
6744 Reported by: Zachary Bedell
6745
20168fca
CW
67462011-07-26 Colin Watson <cjwatson@ubuntu.com>
6747
6748 * configure.ac: The Loongson port requires grub-mkfont due to its
6749 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
6750 be built.
6751
303b6246
CW
67522011-07-26 Colin Watson <cjwatson@ubuntu.com>
6753
6754 * util/grub-install.in: Don't source grub-mkconfig_lib until after
6755 processing arguments (otherwise help2man fails when GRUB has not yet
6756 been installed).
6757
6795300e
VS
67582011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6759
41aa28ea
VS
6760 New script grub-mkstandalone.
6761
6762 * Makefile.util.def (grub-mkstandalone): New script.
6763 * docs/man/grub-mkstandalone.h2m: New file.
6764 * util/grub-mkstandalone.in: Likewise.
6765
67662011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 Support ATA disks with 4K sectors.
6795300e
VS
6769
6770 * include/grub/ata.h (grub_ata): New member log_sector_size.
6771 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
6772 (grub_ata_identify): Read sector size.
6773 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
6774
92227597
VS
67752011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * util/grub-install.in: Don't use uhci outside of x86.
6778
c77069f5
VS
67792011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * util/grub-mkrescue.in: Add missing quotes.
6782
67832011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
6784
6785 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
6786 dereference.
6787
583168a2
VS
67882011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
6791
6be1c01f
VS
67922011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * include/grub/video.h: add missing EXPORT_FUND on
6795 grub_video_edid_checksum and grub_video_edid_preferred_mode.
6796
a1167439
VS
67972011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 * include/grub/mips/kernel.h: Fix define conflict.
6800
bf66054f
VS
68012011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
6804 all four ways.
6805
8fc4fa45
CW
68062011-07-21 Colin Watson <cjwatson@ubuntu.com>
6807
6808 Preferred resolution detection for VBE.
6809
6810 * grub-core/video/video.c (grub_video_edid_checksum): New function.
6811 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
6812 the Flat Panel extension, in line with the X.org VESA driver.
6813 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
6814 New function.
6815 (grub_vbe_bios_get_ddc_capabilities): Likewise.
6816 (grub_vbe_bios_read_edid): Likewise.
6817 (grub_vbe_get_preferred_mode): Likewise.
6818 (grub_video_vbe_setup): When the mode is "auto", try to get the
6819 preferred mode from VBE, and use the largest mode that is no larger
6820 than the preferred mode (some BIOSes expose a preferred mode that is
6821 not in their mode list!). If this fails, fall back to 640x480 as a
6822 safe conservative choice.
6823 (grub_video_vbe_get_edid): New function.
6824 (grub_video_vbe_adapter): Add get_edid.
6825 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
6826 (struct grub_video_adapter): Add get_edid.
6827 (grub_video_edid_checksum): Add prototype.
6828 (grub_video_edid_preferred_mode): Likewise.
6829 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
6830 structure.
6831
6832 * grub-core/commands/videoinfo.c (print_edid): New function.
6833 (grub_cmd_videoinfo): Print EDID if available.
6834
6835 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
6836 is more appropriate on a wider range of platforms than 640x480.
6837 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
6838 documentation.
6839
ca5572a9
VS
68402011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
6843
e4bcf625
VS
68442011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * po/POTFILES.in: Regenerate.
6847
c4edd548
VS
68482011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
6851 incorrect memory usage.
6852
16a2bab0
VS
68532011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * util/grub-install.in: Source grub-mkconfig_lib.
6856
2e418de6
VS
68572011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 Remove getroot.c from core on emu platform.
6860
6861 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
6862 kern/emu/raid.c.
6863 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
6864 useless.
6865 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
6866 * util/getroot.c (get_win32_path): ... here.
6867 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
6868 * util/getroot.c (fini_libzfs): ... here.
6869 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
6870 * util/getroot.c (grub_get_libzfs_handle): ... here.
6871 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
6872 Moved from here...
6873 * util/getroot.c (grub_find_zpool_from_dir): ... here.
6874 * grub-core/kern/emu/misc.c
6875 (grub_make_system_path_relative_to_its_root): Moved from here...
6876 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
6877 * grub-core/kern/emu/getroot.c: Moved from here ...
6878 * util/getroot.c: ... here. All users updated.
6879 * grub-core/kern/emu/raid.c: Moved from here ...
6880 * util/raid.c: ... here. All users updated.
6881
def9832a
VS
68822011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * po/POTFILES.in: Regenerate.
6885
cd8fe79a
VS
68862011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 Fix compilation on GNU/Linux.
6889
6890 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
6891 Disable geli.
6892 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
6893 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
6894 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
6895
a251b719
VS
68962011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
68972011-07-07 Michael Gorven <michael@gorven.za.net>
68982011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
6899
6900 LUKS and GELI support.
6901
6902 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
6903 grub-core/disk/luks.c, grub-core/disk/geli.c,
6904 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
6905 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
6906 grub-core/lib/arg.c.
6907 (libgrubmods.a): Remove gcrypts cflags and cppflags.
6908 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
6909 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
6910 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
6911 (grub-bin2h): Add libgcry.a.
6912 (grub-mkimage): Likewise.
6913 (grub-mkrelpath): Likewise.
6914 (grub-script-check): Likewise.
6915 (grub-editenv): Likewise.
6916 (grub-mkpasswd-pbkdf2): Likewise.
6917 (grub-pe2elf): Likewise.
6918 (grub-fstest): Likewise.
6919 (grub-mkfont): Likewise.
6920 (grub-mkdevicemap): Likewise.
6921 (grub-probe): Likewise.
6922 (grub-ofpath): Likewise.
6923 (grub-mklayout): Likewise.
6924 (example_unit_test): Likewise.
6925 (grub-menulst2cfg): Likewise.
6926 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
6927 * grub-core/Makefile.core.def (cryptodisk): New module.
6928 (luks): Likewise.
6929 (geli): Likewise.
6930 * grub-core/disk/AFSplitter.c: New file.
6931 * grub-core/disk/cryptodisk.c: Likewise.
6932 * grub-core/disk/geli.c: Likewise.
6933 * grub-core/disk/luks.c: Likewise.
6934 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
6935 grub_util_is_lvm.
6936 (grub_util_get_dm_abstraction): New function.
6937 (grub_util_follow_gpart_up): Likewise.
6938 (grub_util_get_geom_abstraction): Likewise.
6939 (grub_util_get_dev_abstraction): Use new functions.
6940 (grub_util_pull_device): Pull GELI and LUKS.
6941 (grub_util_get_grub_dev): Handle LUKS and GELI.
6942 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
6943 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
6944 (follow_geom_up): Removed.
6945 (grub_util_fd_seek): New function.
6946 (open_device): Use grub_util_fd_seek.
6947 (nread): Rename to ..
6948 (grub_util_fd_read): ... this. All users updated.
6949 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
6950 (grub_crypto_cbc_decrypt): Likewise.
6951 (grub_crypto_hmac_write): Likewise.
6952 (grub_crypto_hmac_buffer): Likewise.
6953 (grub_password_get): Extend to util.
6954 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
6955 New member modname.
6956 (gcry_md_spec) [GRUB_UTIL]: Likewise.
6957 * include/grub/cryptodisk.h: New file.
6958 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
6959 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
6960 LUKS and GELI.
6961 (grub_util_follow_gpart_up): New proto.
6962 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
6963 (grub_util_fd_read): Likewise.
6964 (grub_cryptodisk_cheat_mount): Likewise.
6965 (grub_util_cryptodisk_print_uuid): Likewise.
6966 (grub_util_get_fd_sectors): Likewise.
6967 * util/grub-fstest.c (mount_crypt): New var.
6968 (fstest): Mount crypto if requested.
6969 (options): New option -C.
6970 (argp_parser): Parse -C.
6971 (main): Init and fini gcry.
6972 * util/grub-install.in: Support cryptodisk install.
6973 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
6974 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
6975 cryptodisk.
6976 (prepare_grub_to_access_device): Likewise.
6977 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
6978 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
6979 (probe_cryptodisk_uuid): New function.
6980 (probe_abstraction): Likewise.
6981 (probe): Use new functions.
6982 * util/import_gcry.py: Create Makefile.utilgcry.def.
6983 Add modname member.
6984
9bfdcbbc
VS
69852011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 Lazy device scanning.
6988
6989 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
6990 (grub-setup): Remove util/raid.c.
6991 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
6992 * grub-core/disk/lvm.c (scan_depth): New variable.
6993 (grub_lvm_iterate): Rescan if necessary.
6994 (find_lv): New function based on grub_lvm_open.
6995 (grub_lvm_open): Use find_lv. Rescan on error.
6996 (is_node_readable): New function.
6997 (is_lv_readable): Likewise.
6998 (grub_lvm_scan_device): Skip already found disks.
6999 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
7000 Stop if searched device is found and readable.
7001 * grub-core/disk/raid.c (inscnt): New variable.
7002 (scan_depth): Likewise.
7003 (scan_devices): New function based on grub_raid_register. Abort if
7004 looked for device is found.
7005 (grub_raid_iterate): Rescan if needed.
7006 (find_array): NEw function based on -grub_raid_open.
7007 (grub_raid_open): Use find_array and rescan.
7008 (insert_array): Set became_readable_at.
7009 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
7010 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
7011 New function.
7012 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
7013 (grub_util_pull_device): New function.
7014 (grub_util_get_grub_dev): Call grub_util_pull_device.
7015 * util/raid.c: Moved to ..
7016 * grub-core/kern/emu/raid.c: ... here.
7017 (grub_util_raid_getmembers): New parameter "bootable".
7018 All users updated. Support 1.x.
7019 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
7020 All users updated.
7021 * include/grub/disk.h (grub_disk_pull_t): New enum.
7022 (grub_disk_dev): Change iterate prototype.
7023 All users updated.
7024 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
7025 New proto.
7026 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
7027 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
7028 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
7029 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
7030 All users updated.
7031 * include/grub/util/raid.h: Removed.
7032
1c358e59
VS
70332011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * po/POTFILES.in: Regenerate.
7036
abee94ed
VS
70372011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Unify sparc init with other ieee1275.
7040
7041 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
7042 instead of kern/sparc64/ieee1275/init.c.
7043 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
7044 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
7045 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
7046 grub/machine/kernel.h.
7047 (grub_ieee1275_original_stack) [__sparc__]: New variable.
7048 (grub_claim_heap) [__sparc__]: Use sparc version.
7049 (grub_machine_init): Moved args parsing to
7050 (grub_parse_cmdline): ...this.
7051 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
7052 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
7053 New definition.
7054 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
7055
7056 Move BOOTP to separate file.
7057
7058 * grub-core/Makefile.core.def (net): Add net/bootp.c.
7059 * grub-core/net/net.c: Move all BOOTP functions to
7060 * grub-core/net/bootp.c: ... here.
7061
7062 Use frame interface on PXE.
7063
7064 * grub-core/Makefile.core.def (pxecmd): Removed.
7065 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
7066 * grub-core/commands/i386/pc/pxecmd.c: Removed.
7067 * grub-core/i386/pc/pxe.c: Moved from here ...
7068 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
7069 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
7070 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
7071
7072 EFI network support.
7073
7074 * grub-core/Makefile.core.def (efinet): New module.
7075 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
7076 here...
7077 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
7078 All users updated.
7079 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
7080 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
7081 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
7082 * grub-core/net/drivers/efi/efinet.c: New file.
7083 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
7084 (grub_efi_net_config): New extern var.
7085
7086 Various cleanups and bugfixes.
7087
7088 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
7089 error.
7090 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
7091 disk declared as partition.
7092 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
7093 leak on failure.
7094 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
7095 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
7096 (grub_debug_zalloc): Likewise.
7097 (grub_debug_realloc): Likewise.
7098 (grub_debug_memalign): Likewise.
7099 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
7100 Check that target is IPv4.
7101 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
7102 local-mac-address as fallback.
7103 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
7104 memory leak.
7105 * grub-core/net/ip.c (ipchksum): Rename to ...
7106 (grub_net_ip_chksum): ... this. All users updated.
7107 (grub_net_recv_ip_packets): Special handling for DHCP.
7108 * util/grub-mkimage.c (generate_image): Zero-out aout header.
7109
7110 Unify prefix handling
7111
7112 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
7113 (grub_machine_get_bootlocation): ... this.
7114 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
7115 (grub_machine_get_bootlocation): ... this.
7116 (grub_prefix): New variable.
7117 (prefix): Removed.
7118 (root_dev): New variable.
7119 (dir): Likewise.
7120 (main): Use new variables.
7121 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
7122 Revamped into ...
7123 (grub_machine_get_bootlocation): ... this.
7124 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
7125 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
7126 (grub_machine_get_bootlocation): ... this.
7127 (grub_machine_set_prefix): Removed.
7128 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
7129 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
7130 Revamped into ...
7131 (grub_machine_get_bootlocation): ... this.
7132 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
7133 (grub_set_prefix_and_root): ... this. All users updated.
7134 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
7135 Revamped into ...
7136 (grub_machine_get_bootlocation): ... this.
7137 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
7138 (grub_machine_get_bootlocation): New proto.
7139 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
7140
7141 Less intrusive and more reliable seek on network implementation.
7142
7143 * grub-core/kern/file.c (grub_file_net_seek): Removed.
7144 (grub_file_seek): Don't call grub_file_net_seek.
7145 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
7146 (grub_net_fs_read_real): .. this.
7147 (grub_net_seek_real): Use net->offset.
7148 (grub_net_fs_read): Seek if necessary.
7149
7150 Unify IEEE1275 netwotk config with the other platforms.
7151
7152 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
7153 New variable.
7154 (grub_machine_get_bootlocation): Support network.
7155 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
7156 Support type and device parsing.
7157 (grub_ieee1275_get_device_type): New function.
7158 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
7159 into ...
7160 (grub_ieee1275_net_config_real): ... this.
7161 (grub_ofnet_probecards): Removed.
7162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
7163 * include/grub/ieee1275/ofnet.h: Removed.
7164 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
7165 extern var.
7166 (grub_ieee1275_get_device_type): New function.
7167
7168 Unify network device closing across platforms and make more robust.
7169
7170 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
7171 grub_grubnet_fini.
7172 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
7173 already.
7174 * grub-core/net/net.c (grub_net_network_level_interface_register):
7175 Update num_ifaces.
7176 (grub_net_card_unregister): Close all interfaces.
7177 (receive_packets): Don't poll if no iterfaces are registered.
7178 Open if necessary.
7179 (grub_net_fini_hw): New function.
7180 (grub_net_restore_hw): Likewise.
7181 (fini_hnd): New variable.
7182 (GRUB_MOD_INIT): Register preboot hook.
7183 (GRUB_MOD_FINI): Run and unregister preboot hook.
7184
7185 Poll network cards when idle.
7186
7187 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
7188 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
7189 * grub-core/net/net.c (receive_packets): Save last poll time.
7190 (grub_net_poll_cards_idle_real): New function.
7191 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
7192 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
7193 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
7194
7195 Rename ofnet interfaces.
7196
7197 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
7198 (grub_ofnet_findcards): Use ofnet_%s names.
7199
7200 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
7201
7202 Cleanup socket opening.
7203
7204 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
7205 (grub_net_fs_close): Likewise.
7206 (grub_net_fs_read_real): Use eof member.
7207 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
7208 (+grub_net_udp_close): New inline function.
7209
7210 * include/grub/net/tftp.h: Moved to the top of ...
7211 * grub-core/net/tftp.c: ... here.
7212 * include/grub/net/ip.h: Moved mostly to the top of ...
7213 * grub-core/net/ip.c: ... here.
7214 * include/grub/net/ethernet.h: Moved mostly to the top of ...
7215 * grub-core/net/ethernet.c: ... here.
7216
7217 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
7218
7219 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
7220 FS name.
7221
7222 * include/grub/net/ip.h (ipv4_ini): Removed.
7223 (ipv4_fini): Likewise.
7224
7225 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
7226 (grub_net_send_ip_packets): Likewise.
7227
cf1337aa
VS
72282011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
7231 grub_read_cmos prototype.
7232
93c06ff9
VS
72332011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 VGA text support in qemu-mips
7236
7237 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
7238 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
7239 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
7240 text.
7241 * grub-core/kern/i386/qemu/init.c: Renamed to ...
7242 * grub-core/kern/vga_init.c: ... this.
7243 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
7244 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
7245 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
7246 Adjust.
7247 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
7248 GRUB_MACHINE_PCI_IO_BASE.
7249
748ccabe
VS
72502011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 MIPS qemu flash support.
7253
7254 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
7255 magic.
7256 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
7257 (grub_machine_init): Probe memory if its size isn't known.
7258 * util/grub-mkimage.c (image_targets): Add flash targets.
7259 (generate_image): Handle flash targets.
7260
d7345994
VS
72612011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7262
7263 MIPS qemu at_keyboard support.
7264
7265 * gentpl.py (videoinkernel): Add qemu-mips.
7266 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
7267 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
7268 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
7269 modules.
7270 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
7271 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
7272 * grub-core/term/serial.c (grub_serial_register)
7273 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
7274
a07a81b3
VS
72752011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 CMOS support on sparc.
7278
7279 * gentpl.py (cmos): Add powerpc and sparc.
7280 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
7281 powerpc and sparc.
7282 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
7283 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
7284 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
7285 grub_set_datetime_cmos.
7286 * grub-core/lib/ieee1275/cmos.c: New file.
7287 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
7288 (find_rtc): Set no_ieee1275_rtc on error.
7289 (grub_get_datetime): Call grub_get_datetime_cmos on error.
7290 (grub_set_datetime): Call grub_set_datetime_cmos on error.
7291 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
7292 fail. Move value to argument. All users updated
7293 (grub_cmos_write): Likewise.
7294 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
7295 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
7296 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
7297 grub_get_datetime_cmos and grub_set_datetime_cmos.
7298
77546584
GS
72992011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
7300
7301 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
7302 sourcing grub-mkconfig_lib.
7303 * util/update-grub_lib.in: Likewise.
7304 * util/grub.d/00_header.in: Likewise.
7305 * util/grub.d/10_hurd.in: Likewise.
7306 * util/grub.d/10_kfreebsd.in: Likewise.
7307 * util/grub.d/10_linux.in: Likewise.
7308 * util/grub.d/10_netbsd.in: Likewise.
7309 * util/grub.d/10_windows.in: Likewise.
7310 * util/grub.d/20_linux_xen.in: Likewise.
7311 * util/grub.d/30_os-prober.in: Likewise.
7312
54894791
CW
73132011-06-28 Colin Watson <cjwatson@ubuntu.com>
7314
7315 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
7316 default_bg_color rather than black.
7317 (grub_gfxterm_fullscreen): Likewise.
7318 (grub_gfxterm_background_color_cmd): Save new background color in
7319 default_bg_color.
7320
8d5d8444
VS
73212011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7322
7323 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
7324
5afeb5bd
VS
73252011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
7328 mismerge.
7329
ba7df45e
VS
73302011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 Chainloading on coreboot support.
7333
7334 * grub-core/Makefile.core.def (chain): Add coreboot.
7335 * grub-core/loader/i386/coreboot/chainloader.c: New file.
7336
d0b526b2
VS
73372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
7340 if it happens.
7341
5ff1d945
VS
73422011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7343
7344 Implement time command.
7345
7346 * grub-core/Makefile.core.def (time): New module.
7347 * grub-core/commands/time.c: New file.
7348 * grub-core/script/parser.y: Remove "time" keyword.
7349 * grub-core/script/yylex.l: Likewise.
7350
5ebaad7e
VS
73512011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7352
7353 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
7354
bdea3798
VS
73552011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
7358 when handling leftovers.
7359
b28c5655
VS
73602011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
7363 so that help2man doesn't fail.
7364
b6f945dc
VS
73652011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
7368 type in pointers on sparc64.
7369 (get_card_packet): Likewise.
7370
f9b75e8a
CW
73712011-06-27 Colin Watson <cjwatson@ubuntu.com>
7372
7373 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
7374 with `*'.
7375 (grub_cmd_videoinfo): Fetch current video mode.
7376
1e3d9b86
VS
73772011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
7380 because of underlying system restrictions.
7381
efff4b1c
VS
73822011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
7385 necessary.
7386
9fc9ce37
VS
73872011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 Coreboot video support.
7390
7391 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
7392 (vbe): Likewise.
7393 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
7394 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
7395 here ...
7396 * grub-core/kern/i386/int.S: ... here.
7397 * grub-core/video/i386/pc/vbe.c: Updated includes.
7398 * grub-core/video/i386/pc/vga.c: Likewise.
7399 * include/grub/i386/coreboot/memory.h
7400 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
7401 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
7402 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
7403 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
7404 Disable interrupts.
7405 * include/grub/i386/pc/vga.h: Removed. All users updated.
7406
41bec7fe
VS
74072011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
7410 definitions for dprintf.
7411 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
7412
ca80309d
VS
74132011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
7416 prototype.
7417 (get_card_packet): Likewise.
7418
9e322ce8
YB
74192011-06-26 Yves Blusseau <blusseau@zetam.org>
7420
7421 Display the path of the file when file is not found
7422
7423 * grub-core/fs/fat.c: Display the filename when file is not found.
7424 * grub-core/fs/fshelp.c: Likewise.
7425 * grub-core/fs/hfs.c: Likewise.
7426 * grub-core/fs/jfs.c: Likewise.
7427 * grub-core/fs/minix.c: Likewise.
7428 * grub-core/fs/ufs.c: Likewise.
7429 * grub-core/fs/btrfs.c: Likewise.
7430 * grub-core/commands/i386/pc/play.c: Likewise.
7431
cbf597af
SJ
74322011-06-26 Szymon Janc <szymon@janc.net.pl>
7433
7434 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
7435 pointer checks before calling grub_free().
7436 * grub-core/commands/wildcard.c (match_devices): Likewise.
7437 * grub-core/commands/wildcard.c (match_files): Likewise.
7438 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
7439 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
7440 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
7441 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
7442 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
7443 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
7444 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
7445 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
7446 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
7447
6295b32f
P
74482011-06-25 Patrick <p55@mailinator.com>
7449
7450 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
7451
77c0840b
VS
74522011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
7455 (grub_pxe_send): Likewise.
7456 (GRUB_MOD_INIT): Fix types.
7457
40ea05de
SJ
74582011-06-24 Szymon Janc <szymon@janc.net.pl>
7459
7460 * grub-core/io/xzio.c: Fix code style issues
7461
90162423
MRA
74622011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
74632011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
7464
7465 Network infrastructure.
7466 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
7467
7468 * include/grub/net/arp.h: New file.
90162423
MRA
7469 * include/grub/net/device.h: Likewise.
7470 * include/grub/net/ethernet.h: Likewise.
7471 * include/grub/net/ip.h: Likewise.
7472 * include/grub/net/netbuff.h: Likewise.
7473 * include/grub/net/tftp.h: Likewise.
7474 * include/grub/net/udp.h: Likewise.
7475 * include/grub/ieee1275/ofnet.h: Likewise.
7476 * include/grub/emu/export.h: Likewise.
7477 * include/grub/net.h: Likewise.
7478 * grub-core/net/arp.c: Likewise.
7479 * grub-core/net/ethernet.c: Likewise.
7480 * grub-core/net/ip.c: Likewise.
7481 * grub-core/net/udp.c: Likewise.
7482 * grub-core/net/tftp.c: Likewise.
7483 * grub-core/net/netbuff.c: Likewise.
7484 * grub-core/net/net.c: Likewise.
7485 * grub-core/net/drivers/emu/emunet.c: Likewise.
7486 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
7487 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
7488 export.h.
7489 * grub-core/Makefile.core.def (net): New module.
7490 (tftp): Likewise.
7491 (ofnet): Likewise.
7492 (emunet): Likewise.
7493 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
7494 network protocols.
7495 * grub-core/kern/device.c (grub_net_open) : New variable.
7496 (grub_device_open): Handle network device.
7497 (grub_device_close): Likewise.
7498 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
7499 (grub_grubnet_fini): Likewise.
7500 (grub_file_seek): Seek in network device.
7501 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
7502 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
7503 network root.
7504 (grub_machine_fini): Call grub_grubnet_fini.
7505 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
7506 network.
7507 (grub_ieee1275_get_aliasdevname): New function.
7508 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7509 Add unofficial Solaris network info.
7510 (grub_multiboot_make_mbi): Likewise.
7511 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
7512 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
7513 * include/grub/device.h (grub_fs): Removed.
7514 * include/grub/err.h (grub_err_t): Add network-related values.
7515 * include/grub/i386/pc/pxe.h: Removed bootp parts.
7516 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
7517 (grub_ieee1275_get_aliasdevname): New proto.
7518 * include/grub/net.h: Rewritten.
423a1849 7519
031f22a0
VS
75202011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7521
7522 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
7523 names.
7524
4388ca72
VS
75252011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
7528 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
7529 it truncates the output.
7530 Reported by: Ximin Luo.
7531
98e2f506
VS
75322011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
7535
2a5e94d8
VS
75362011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
7539 partmap before abstraction.
7540
535c1910
AK
75412011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
7542
7543 * util/grub-mkconfig_lib.in: Add missing quotes.
7544
bc09e1a2
VS
75452011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
7548 old method if mountinfo would return /dev/root and /dev/root doesn't
7549 exist.
7550
290766fb
VS
75512011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 ZFS zlib support
7554
7555 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
7556 (decomp_table): Add zlib entries.
7557 (zio_read): USe 8 bits for compression function rather than 3.
7558 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
7559
75602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/disk/ahci.c: Add missing license statements.
7563 * grub-core/fs/romfs.c: Likewise.
7564 * grub-core/lib/ia64/setjmp.S: Likewise.
7565 * grub-core/loader/i386/pc/freedos.c: Likewise.
7566 * grub-core/loader/ia64/efi/linux.c: Likewise.
7567 * grub-core/video/colors.c: Likewise.
7568 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
7569
5ab3f48a
VS
75702011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 AHCI support.
7573
7574 * grub-core/Makefile.core.def (ata_pthru): Removed.
7575 (ahci): New module.
7576 (pata): Likewise.
7577 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
7578 on unload.
7579 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
7580 readwrite.
7581 (grub_hdparm_do_check_powermode_cmd): Likewise.
7582 (grub_hdparm_do_smart_cmd): Likewise.
7583 (grub_hdparm_set_val_cmd): Likewise.
7584 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
7585 * grub-core/disk/ahci.c: New file.
7586 * grub-core/disk/ata.c: Factor out the low-level part into ...
7587 * grub-core/disk/pata.c: ... here.
7588 * grub-core/disk/ata_pthru.c: Contents moved to ...
7589 * grub-core/disk/pata.c: ... here.
7590 * grub-core/disk/scsi.c (grub_scsi_names): New array.
7591 (grub_scsi_iterate): Use grub_scsi_names.
7592 (grub_scsi_open): Likewise.
7593 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
7594 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
7595 (grub_ata_regs_t): New struct.
7596 (grub_disk_ata_pass_through_parms): Likewise.
7597 (grub_ata_device): Renamed to ...
7598 (grub_ata): ... this.
7599 (grub_ata_dev): New struct.
7600 Removed all low-level inline functions.
7601 * include/grub/scsi.h: Add PATA and AHCI subsystems.
7602 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
7603 iterate hooks and open. All users updated.
7604 * util/grub-install.in: Handle AHCI disk module.
7605
c31dc5f5
SJ
76062011-06-23 Szymon Janc <szymon@janc.net.pl>
7607
7608 Add support for DRI and RSTn markers in JPEG files.
7609
7610 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
7611 (JPEG_MARKER_RST0): Likewise.
7612 (JPEG_MARKER_RST1): Likewise.
7613 (JPEG_MARKER_RST2): Likewise.
7614 (JPEG_MARKER_RST3): Likewise.
7615 (JPEG_MARKER_RST4): Likewise.
7616 (JPEG_MARKER_RST5): Likewise.
7617 (JPEG_MARKER_RST6): Likewise.
7618 (JPEG_MARKER_RST7): Likewise.
7619 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
7620 (grub_jpeg_decode_dri): New function.
7621 (grub_jpeg_decode_sos): Move image data related part into
7622 grub_jpeg_decode_data function.
7623 (grub_jpeg_decode_data): New function.
7624 (grub_jpeg_reset): New function.
7625 (grub_jpeg_decode_jpeg): Handle new markers.
7626
fe12fd5b
VS
76272011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * util/ieee1275/ofpath.c (check_sas): Close fd.
7630 (main): Free of_path.
7631 Reported by: David Volgyes <dvolgyes>.
7632
03147f46
VS
76332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
7636 Reported by: David Volgyes <dvolgyes>.
7637
cad3237f
VS
76382011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
7641 file after stat.
7642 Reported by: David Volgyes <dvolgyes>.
7643
13548d26
VS
76442011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
7647
7648 Reported by: David Volgyes <dvolgyes>.
7649
e061a1b5
VS
76502011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
7653 Prevent memory leak.
7654
1abe47dc
VS
76552011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
7658 (main): Close file.
e061a1b5 7659 Reported by: David Volgyes <dvolgyes>.
1abe47dc 7660
fbc62666
VS
76612011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
7664 to continue if allocation is failed.
7665
7666 Reported by: David Volgyes <dvolgyes>.
7667
e98c83e9
DV
76682011-06-23 David Volgyes <dvolgyes>
7669
7670 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
7671 dereference.
7672
a199a8cd
VS
76732011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 Fix spurious warning.
7676
7677 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
7678 (acorn_partition_map_find): Use .bin member.
7679
e2d1dba0
VS
76802011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
7683 /dev/root as a valid device.
7684
8a5d6919
JM
76852011-06-23 Jim Meyering <meyering@redhat.com>
7686
e2d1dba0
VS
7687 Avoid NULL deref in grub_device_open.
7688
8a5d6919
JM
7689 * grub-core/kern/device.c (grub_device_open): Don't dereference
7690 a NULL pointer upon failed grub_env_get.
7691
f7db6f4a
VS
76922011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 Support non-512B sectors and agglomerate reads.
7695
7696 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
7697 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
7698 (disk_io_guid): Removed.
7699 (make_devices): Locate solely by BlockIO.
7700 (grub_efidisk_open): Fill log_sector_size and total_sectors.
7701 (grub_efidisk_read): Use read_blocks.
7702 (grub_efidisk_write): Use write_blocks.
7703 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
7704 log_sector_size.
7705 (get_safe_sectors): Handle non-512B sectors.
7706 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
7707 sectors.
7708 (grub_biosdisk_write): Handle non-512B sectors.
7709 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
7710 (grub_scsi_read): Remove special non-512B block handling (now handled
7711 one level up).
7712 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
7713 and do sanity checks.
7714 (grub_disk_adjust_range): Handle non-512B sectors.
7715 (transform_sector): New function.
7716 (grub_disk_read_small): Likewise.
7717 (grub_disk_read): Rewritten.
7718 (grub_disk_write): Handle non-512B sectors.
7719 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
7720 log_sector_size.
7721 (open_device): Use log_sector_size.
7722 (grub_util_biosdisk_read): Likewise.
7723 (grub_util_biosdisk_write): Likewise.
7724 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
7725 non-512B sectors.
7726 (pc_partition_map_embed): Likewise.
7727 * include/grub/disk.h (grub_disk): New field log_sector_size.
7728 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
7729 (GRUB_DISK_CACHE_BITS): Increased to 6.
7730 * util/grub-fstest.c (fstest): New command testload.
7731 (argp_parser): Likewise.
7732
881ac815
RM
77332011-06-16 Robert Millan <rmh@gnu.org>
7734
7735 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
7736 `ata' driver on kernel of FreeBSD 9.
7737
7738 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
7739 (get_ataraid_disk_name): New functions.
7740 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
7741 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
7742 get_ataraid_disk_name() and get_ada_disk_name().
7743
1e9aef7d
CW
77442011-06-13 Colin Watson <cjwatson@ubuntu.com>
7745
7746 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
7747 input format.
7748
351c7c8a
CW
77492011-05-29 Colin Watson <cjwatson@ubuntu.com>
7750
7751 * docs/grub.texi (Obtaining and Building GRUB): Substitute
7752 `ftp.gnu.org' for `alpha.gnu.org'.
7753
6b4e6430
CW
77542011-05-27 Colin Watson <cjwatson@ubuntu.com>
7755
7756 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
7757 partitions under /dev/disk/by-id/.
7758
c64db050
CW
77592011-05-27 Colin Watson <cjwatson@ubuntu.com>
7760
7761 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
7762 after ten consecutive open failures. Scanning all the way up to
7763 10000 is excessive and can cause serious performance problems in
7764 some configurations.
7765 Fixes Ubuntu bug #787461.
7766
245f4aba
VS
77672011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
7770 opening new one.
7771
f767c929
VS
77722011-05-21 Colin Watson <cjwatson@ubuntu.com>
77732011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7774
7775 Don't stat devices unless we have to.
7776
7777 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
7778 dir == /dev/mapper.
7779 (grub_guess_root_device): Use already known os_dev if possible.
7780 * grub-core/kern/emu/hostdisk.c
7781 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
7782 if device is known to be a dm one.
7783
f35fa3a6
CW
77842011-05-20 Colin Watson <cjwatson@ubuntu.com>
7785
7786 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
7787 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
7788 Reported by: Pawel Tecza.
7789
9a79fcf2
VS
77902011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
7793 (lsefisystab): Likewise.
7794 (lssal): Likewise.
7795 (lsefimmap): Likewise.
7796 (hdparm): Enable on qemu-mips.
7797 (setjmp): Add ia64 nodist.
7798 (serial): Simplify tags.
7799
63e3eea9
CW
78002011-05-18 Colin Watson <cjwatson@ubuntu.com>
7801
7802 * Makefile.util.def (grub-ofpathname): Install manual page.
7803
09728256
CW
78042011-05-18 Colin Watson <cjwatson@ubuntu.com>
7805
7806 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
7807
8b63a142
CW
78082011-05-18 Colin Watson <cjwatson@ubuntu.com>
7809
7810 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
7811
e775d8ed
VS
78122011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7813
7814 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
7815 into dprintf.
7816
bf947d36
VS
78172011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 Use full 64-bit division.
7820
7821 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
7822 (grub_divmod64): ... this.
7823 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
7824 version.
7825
b84f26c5
CW
78262011-05-18 Colin Watson <cjwatson@ubuntu.com>
7827
7828 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
7829 `source'.
7830
5626056f
CW
78312011-05-18 Colin Watson <cjwatson@ubuntu.com>
7832
7833 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
7834 to avoid accidents when debugging with 'sh -x'.
7835 * grub-core/gensyminfo.sh.in: Likewise.
7836 * tests/example_scripted_test.in: Likewise.
7837 * tests/grub_cmd_regexp.in: Likewise.
7838 * tests/grub_script_blanklines.in: Likewise.
7839 * tests/grub_script_dollar.in: Likewise.
7840 * tests/grub_script_expansion.in: Likewise.
7841 * tests/grub_script_final_semicolon.in: Likewise.
7842 * tests/partmap_test.in: Likewise.
7843 * tests/util/grub-shell-tester.in: Likewise.
7844 * tests/util/grub-shell.in: Likewise.
7845
e2965f4a
CW
78462011-05-18 Colin Watson <cjwatson@ubuntu.com>
7847
7848 Move gfxmenu color handling to video, so that gfxterm can use it
7849 too.
7850
7851 * grub-core/gfxmenu/named_colors.c: Move to ...
7852 * grub-core/video/colors.c: ... here. Rename
7853 grub_gui_get_named_color to grub_video_get_named_color.
7854 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
7855 * grub-core/video/colors.c (my_isxdigit): ... here.
7856 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
7857 Move to ...
7858 * grub-core/video/colors.c (parse_hex_color_component): ... here.
7859 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
7860 to ...
7861 * grub-core/video/colors.c (grub_video_parse_color): ... here.
7862
7863 * include/grub/gui.h (grub_gui_color_t): Move to ...
7864 * include/grub/video.h (grub_video_rgba_color_t): ... here.
7865 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
7866 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
7867 * include/grub/gui.h (grub_gui_map_color): Move to ...
7868 * include/grub/video.h (grub_video_map_rgba_color): ... here.
7869 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
7870 to ...
7871 * include/grub/video.h (grub_video_get_named_color): ... here.
7872 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
7873 * include/grub/video.h (grub_video_parse_color): ... here.
7874
7875 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
7876 video/colors.c.
7877 (gfxmenu): Remove gfxmenu/named_colors.c.
7878 (video) [videomodules]: Add video/colors.c.
7879
7880 Add a background_color command.
7881
7882 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
7883 function.
7884 (GRUB_MOD_INIT): Register background_color command.
7885 (GRUB_MOD_FINI): Unregister background_color command.
7886 (redraw_screen_rect): Allow blend/replace of text layer to be
7887 controlled independently from whether there is a background bitmap.
7888 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
7889 changing bitmap.
7890
1e4b4390
VS
78912011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7892
26618ff0
VS
7893 Patch BPB in ntldr and chainloader --bpb.
7894
1e4b4390
VS
7895 * grub-core/fs/fat.c: Include grub/fat.h.
7896 (grub_fat_bpb): Moved to ...
7897 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
7898 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
7899 grub/ntfs.h.
7900 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
7901 Moved from here...
7902 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
7903 here.
7904 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
7905 New function.
7906 (grub_chainloader_cmd): Patch BPB if --bpb is given.
7907 (GRUB_MOD_INIT): Show --bpb.
7908 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
7909 * grub-core/normal/main.c (features): New variable.
7910 (GRUB_MOD_INIT): Set feature_* variables.
7911 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
7912 proto.
7913 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
7914
cf02731e
VS
79152011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7916
7917 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
7918 for cleanness.
7919
e3a1073f
VS
79202011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7921
7922 FreeDOS direct loading support.
7923
7924 * docs/grub.texi (Supported OS): Add FreeDOS.
7925 * grub-core/Makefile.core.def (freedos): New module.
7926 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
7927 variable.
7928 (grub_relocator16_boot): Handle %ebx.
7929 * grub-core/lib/i386/relocator16.S: Likewise.
7930 * grub-core/loader/i386/pc/freedos.c: New file.
7931
05caa461
VS
79322011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 Long Linux command line support.
7935
7936 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7937 (maximal_cmdline_size): New variable.
7938 (allocate_pages): Use maximal_cmdline_size.
7939 (grub_cmd_linux): Set and use maximal_cmdline_size.
7940 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7941 (allocate_pages): Use maximal_cmdline_size.
7942 (grub_cmd_linux): Set and use maximal_cmdline_size.
7943 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
7944 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
7945 and cmdline_size.
7946
a2491e23
VS
79472011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
79482011-05-18 Colin Watson <cjwatson@ubuntu.com>
7949
7950 Improve devmapper support
7951
7952 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
7953 (grub_util_is_lvm): New function.
7954 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
7955 than lvm if not dmraid.
7956 Handle mapped md nodes.
7957 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
7958 (grub_util_device_is_mapped): ... this. Make always available. All users
7959 updated.
7960 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
7961 (convert_system_partition_to_system_disk): Handle lvm, mpath and
7962 dmraid nodes.
7963 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
7964
6ad6223e
VS
79652011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7966
7967 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
7968
7969 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
7970 * grub-core/modinfo.sh.in: New file.
7971 * grub-core/Makefile.core.def (modinfo.sh): New script.
7972 * util/grub-mknetdir.in: Use modinfo.sh.
7973 * util/grub-mkrescue.in: Likewise.
7974
543a8f6e
VS
79752011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
7978 Fix potential usage of Elf32 instead of Elf64 when compiling on
7979 32-bit architecture. Add endianness macros while on it.
7980
4959e111
VS
79812011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 Use mipsel- rather than mips- in directories involving mipsel ports to
7984 allow both endiannesses coexist.
7985
7986 * configure.ac: proparate target_cpu=mipsel rather than resetting to
7987 mips. All conditions adjusted.
7988 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
7989 variable.
7990 * util/grub-install.in: Adjust conditions to take renaming into account.
7991 * util/grub-mkimage.c (image_targets): Likewise. New target
7992 mips-qemu_mips-elf for bigendian mips.
7993
35341bbc
VS
79942011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 Avoid unnecessary copying on MIPS.
7997
7998 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
7999 early if src == dest.
8000 * util/grub-mkimage.c (generate_image): Arange for src == dest if
8001 compression is none.
8002
b772baed
VS
80032011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 Reduce memory footprint on SGI by putting modules before the kernel
8006 as opposed to after.
8007
8008 * grub-core/Makefile.core.def (kernel): Increase linking address.
8009 (none_decompress): Likewise.
8010 (xz_decompress): Likewise.
8011 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
8012 address.
8013 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
8014 layout change.
8015 (grub_arch_modules_addr): New function.
8016 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
8017 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
8018 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
8019 here.
8020 * grub-core/kern/mips/startup.S (total_size): Rename to ...
8021 (grub_total_modules_size): ... this. Make global.
8022 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
8023 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
8024 New definition.
8025 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
8026 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
8027 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
8028 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
8029 * util/grub-mkimage.c (image_target_desc): New flag
8030 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
8031 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
8032 (generate_image): Handle images with modules before kernel.
8033
566a1917
VS
80342011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8035
8036 Prevent potential loss of memory map by overwrite on qemu-mips.
8037
8038 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
8039 Save ram size in $s4.
8040 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
8041 All users changed to grub_arch_memsize.
8042 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
8043 Loongson.
8044 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
8045 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
8046 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
8047 external variable.
8048
5d420cd9
CW
80492011-05-17 Colin Watson <cjwatson@ubuntu.com>
8050
8051 * .bzrignore: Remove grub-dumpbios.
8052
d064b830
CW
80532011-05-17 Colin Watson <cjwatson@ubuntu.com>
8054
8055 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
8056 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
8057 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
8058 existing options which append).
8059 * docs/grub.texi (Simple configuration): Document new options.
8060 Reported by: Ian Jackson. Fixes Debian bug #617538.
8061
3ca2b466
CW
80622011-05-17 Colin Watson <cjwatson@ubuntu.com>
8063
8064 * util/grub-fstest.c (cmd_cat): New function.
8065 (fstest): Handle CMD_CAT.
8066 (options): Add cat.
8067 (argp_parser): Handle cat.
8068
24c9143a
CW
80692011-05-17 Colin Watson <cjwatson@ubuntu.com>
8070
8071 * Makefile.util.def (grub-bin2h): Don't install.
8072 * docs/man/grub-bin2h.h2m: Remove.
8073
90f7ac19
VS
80742011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
8077 place.
8078
8d4a5178
VS
80792011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 Reenable qemu-mips port.
8082
8083 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
8084 Fix small arc bug while on it.
8085 * gentpl.py: Handle qemu_mips.
8086 * grub-core/Makefile.am: Likewise.
8087 * grub-core/Makefile.core.def: Likewise.
8088 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
8089 inappropriate includes.
8090 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
8091 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
8092 * grub-core/kern/main.c (grub_modules_get_end)
8093 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
8094 * grub-core/kern/mips/qemu-mips: Moved to ..
8095 * grub-core/kern/mips/qemu_mips: ... this.
8096 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
8097 (grub_machine_init): Call terminfo_init and serial_init.
8098 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
8099 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
8100 New variable.
8101 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
8102 parameter passing.
8103 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
8104 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
8105 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
8106 * include/grub/mips/qemu_mips/cmos.h: New file.
8107 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
8108 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
8109 Removed.
8110 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
8111 Use correct mips-style address.
8112 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
8113 (GRUB_TICKS_PER_SECOND): Removed.
8114 (grub_get_rtc): Likewise.
8115 (grub_cpu_idle): Likewise.
8116 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
8117 New definition.
8118 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
8119 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
8120 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
8121 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
8122 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
8123 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
8124 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
8125 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
8126
400b9371
VS
81272011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 SGI ARCS port.
8130
8131 * Makefile.util.def (libgrubmods.a): Add dvh.c.
8132 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
8133 platforms.
8134 * configure.ac: New target mips-arc.
8135 * gentpl.py: Likewise.
8136 * grub-core/Makefile.am: Likewise.
8137 * grub-core/Makefile.core.def: Likewise.
8138 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
8139 (none_decompress): Likewise.
8140 (lsdev): New module.
8141 (datetime): Use lib/arc/datetime.c on ARC.
8142 (part_dvh): New module.
8143 * grub-core/commands/arc/lsdev.c: New file.
8144 * grub-core/disk/arc/arcdisk.c: Likewise.
8145 * grub-core/kern/mips/arc/init.c: Likewise.
8146 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
8147 aligned addresses.
8148 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
8149 support.
8150 (grub_arch_dl_relocate_symbols): Likewise.
8151 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
8152 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
8153 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
8154 platforms.
8155 * grub-core/lib/arc/datetime.c: New file.
8156 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
8157 pci.h on non-loongson.
8158 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
8159 (grub_linux_boot): Set unused registers to 0.
8160 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
8161 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
8162 * grub-core/mmap/mips/uppermem.c: ...here.
8163 * grub-core/partmap/dvh.c: New file.
8164 * grub-core/term/arc/console.c: Likewise.
8165 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
8166 (grub_terminfo_set_current): Add terminal "arc".
8167 (grub_terminfo_readkey): Support ARC sequences.
8168 * include/grub/arc/arc.h: New file.
8169 * include/grub/arc/console.h: Likewise.
8170 * include/grub/disk.h (grub_disk_dev_id): Add
8171 GRUB_DISK_DEVICE_ARCDISK_ID.
8172 * include/grub/mips/arc/kernel.h: New file.
8173 * include/grub/mips/arc/memory.h: Likewise.
8174 * include/grub/mips/arc/time.h: Likewise.
8175 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
8176 * include/grub/mips/kernel.h (grub_halt): ... here.
8177 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
8178 here...
8179 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
8180 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
8181 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
8182 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
8183 proto.
8184 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
8185 from here ...
8186 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
8187 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
8188 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
8189 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
8190 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
8191 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
8192 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
8193 (grub_phys_addr_t): Moved from here ...
8194 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
8195 (grub_vtop): Moved from here ...
8196 * include/grub/mips/memory.h (grub_vtop): ... here.
8197 (grub_map_memory): Moved from here ...
8198 * include/grub/mips/memory.h (grub_map_memory): ... here.
8199 (grub_unmap_memory): Moved from here ...
8200 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
8201 (grub_machine_mmap_iterate): Moved from here ...
8202 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
8203 (grub_mmap_get_lower): Moved from here ...
8204 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
8205 (grub_mmap_get_upper): Moved from here ...
8206 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
8207 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
8208 here ...
8209 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
8210 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
8211 here ...
8212 * include/grub/mips/time.h (grub_get_rtc): ... here.
8213 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
8214 here ...
8215 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
8216 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
8217 here ...
8218 * include/grub/mips/time.h (grub_cpu_idle): ... here.
8219 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
8220 definition.
8221 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
8222 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
8223 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
8224 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
8225 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
8226 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
8227 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
8228 (GRUB_MACHINE_LINK_ADDR): Likewise.
8229 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
8230 to 6.
8231 * util/grub-install.in: Run dvhtool on ARC.
8232 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 8233 (generate_image): Handle ECOFF output for mips-arc.
400b9371 8234
c8ecc840
VS
82352011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
8238 blocks.
8239
153a4b55
VS
82402011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
8243 after enabling port.
8244
ff44d107
VS
82452011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 Skip incorrect USB devices.
8248
8249 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
8250 configcnt == 0.
8251 * include/grub/usb.h (grub_usb_err_t): New enum value
8252 GRUB_USB_ERR_BADDEVICE.
8253
638dbe4f
VS
82542011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 Fuloong video init support.
8257
8258 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
8259 well.
8260 (grub_vga_read_arx): New function.
8261 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
8262 definition.
8263 (framebuffer): New members io, mmioptr and mmiobase.
8264 (read_sis_cmd): New function.
8265 (write_sis_cmd): Likewise.
8266 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
8267 rather than 640x400.
8268 * grub-core/video/sis315_init.c: New file.
8269
c3fc520c
VS
82702011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
8273 non-loongson.
8274 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
8275 to grub_dl_register_symbol.
8276
67b1e5c9
VS
82772011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 Fix compilation errors.
8280
8281 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
8282 potentially unused.
8283 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
8284 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
8285 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
8286 to loongson machines.
8287
b756f75f
VS
82882011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 Several FS mtime support.
8291
8292 * grub-core/fs/affs.c (grub_affs_time): New struct.
8293 (grub_affs_file): New field mtime.
8294 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
8295 type. Removed 'size'. New field 'di'. All users updated.
8296 (grub_affs_mount): Simplify checsum checking.
8297 (grub_affs_iterate_dir): New helper grub_affs_create_node.
8298 (grub_affs_dir): Handle mtime.
8299 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
8300 (grub_cpio_dir): Likewise.
8301 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
8302 (grub_hfs_filerec): New field mtime.
8303 (grub_hfs_dir): Handle mtime.
8304 (grub_hfs_mtime): New function.
8305 (grub_hfs_fs): Register grub_hfs_mtime.
8306 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
8307 (grub_iso9660_dir): New field mtime.
8308 (grub_fshelp_node): New field dirent.
8309 (iso9660_to_unixtime): New function.
8310 (iso9660_to_unixtime2): Likewise.
8311 (grub_iso9660_read_symlink): Use node->dirent.
8312 (grub_iso9660_iterate_dir): Likewise.
8313 (grub_iso9660_dir): Set mtime.
8314 (grub_iso9660_mtime): New function.
8315 (grub_iso9660_fs): Register grub_iso9660_mtime.
8316 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
8317 (grub_jfs_inode): New fields atime, ctime and mtime.
8318 (grub_jfs_dir): Set mtime.
8319 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
8320 * grub-core/fs/ntfs.c (list_file): Set mtime.
8321 (grub_ntfs_dir): Likewise.
8322 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
8323 (grub_reiserfs_iterate_dir): Set mtime.
8324 (grub_reiserfs_dir): Likewise.
8325 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
8326 (grub_fshelp_node): Likewise.
8327 (grub_sfs_iterate_dir): Set mtime.
8328 (grub_sfs_dir): Likewise.
8329 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
8330 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
8331 (grub_xfs_inode): New fields atime, mtime, ctime.
8332 (grub_xfs_dir): Set mtime.
8333 * include/grub/datetime.h (grub_datetime2unixtime): New function.
8334 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
8335 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
8336
8337 Support UDF symlinks.
8338
8339 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
8340 (grub_ufs_read_symlink): New function. All users updated.
8341
8342 Check amiga partmap checksum.
8343
8344 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
8345 (grub_amiga_partition): Likewise.
8346 (amiga_partition_map_checksum): New function.
8347 (amiga_partition_map_iterate): Check checksum.
8348
5470225d
VS
83492011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 ROMFS support.
8352
8353 * Makefile.util.def (libgrubmods.a): Add romfs.
8354 * grub-core/Makefile.core.def (romfs): New module.
8355 * grub-core/fs/romfs.c: New file.
8356
d4680a35
VS
83572011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 Squashfs v4 support.
8360
8361 * Makefile.util.def (libgrubmods.a): Add squash4.
8362 * grub-core/Makefile.core.def (squash4): New module.
8363 * grub-core/fs/squash4.c: New file.
8364 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
8365 disk_input_start, disk_input.
8366 (get_byte): Handle disk_input.
8367 (grub_zlib_disk_read): New function.
8368 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
8369
bcb18e74
FZ
83702011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
83712011-05-15 Feiran Zheng <famcool@gmail.com>
8372
8373 * Makefile.util.def (libgrubmods.a): Add minix3.
8374 * grub-core/Makefile.core.def (minix3): New module.
8375 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
8376 (GRUB_MINIX_BSIZE): Removed.
8377 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
8378 (grub_minix_ino_t): New type.
8379 (grub_minix_le_to_cpu_ino): New macro.
8380 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
8381 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
8382 (grub_minix_data): New field block_size.
8383 (grub_minix_read_file): Handle 64-bit correctly.
8384 * grub-core/fs/minix3.c: New file.
8385
32297d5f
TG
83862011-05-15 Tristan Gingold <gingold@free.fr>
83872011-05-15 Robert Millan <rmh.grub@aybabtu.com>
83882011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 IA64 support.
8391
8392 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
8393 * configure.ac: Add ia64-efi target.
8394 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
8395 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
8396 * gentpl.py: Add ia64_efi platform.
8397 Rename x86_efi to efi and Add ia64-efi. All users updated.
8398 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
8399 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
8400 Remove kern/generic/rtc_get_time_ms.c on EFI.
8401 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
8402 kern/ia64/dl_helper.c on ia64-efi.
8403 Add kern/emu/cache.c on emu.
8404 (linux): Use on loader/ia64/efi/linux.c on ia64.
8405 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
8406 whether symbol is a function.
8407 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
8408 (grub_symbol): New field 'isfunc'.
8409 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
8410 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
8411 (grub_dl_load_segments): Place all sections into the same region.
8412 [__ia64__]: Create trampolines and got.
8413 [GRUB_MACHINE_EMU]: Call mprotect.
8414 (grub_dl_resolve_symbols): Resolve symbol type as well.
8415 [__ia64__]: Create function descriptors.
8416 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
8417 (grub_rtc_get_time_ms): ... this. Expressions simplified.
8418 (grub_get_rtc): New function.
8419 * grub-core/kern/emu/cache.c [__ia64__]: New file.
8420 * grub-core/kern/emu/cache.S: Renamed to ...
8421 * grub-core/kern/emu/cache_s.S: ... this.
8422 [__ia64__]: Add a nop.
8423 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
8424 [__ia64__]: New function.
8425 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
8426 * grub-core/kern/ia64/dl.c: New file.
8427 * grub-core/kern/ia64/dl_helper.c: Likewise.
8428 * grub-core/kern/ia64/efi/init.c: New file.
8429 * grub-core/kern/ia64/efi/startup.S: Likewise.
8430 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
8431 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
8432 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
8433 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
8434 * grub-core/loader/ia64/efi/linux.c: New file.
8435 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
8436 (GRUB_MOD_DEP): Likewise.
8437 (grub_dl) [__ia64__]: New fields got and tramp.
8438 (grub_dl): New field 'base'.
8439 (grub_dl_register_symbol): New argument isfunc. All users updated.
8440 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
8441 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
8442 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
8443 (grub_ia64_dl_get_tramp_got_size): New proto.
8444 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
8445 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
8446 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
8447 * include/grub/efi/api.h: Skip call wrappers on ia64.
8448 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
8449 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
8450 * include/grub/elf.h (ELF_ST_INFO): New definition.
8451 * include/grub/ia64/efi/kernel.h: New file.
8452 * include/grub/ia64/efi/memory.h: Likewise.
8453 * include/grub/ia64/efi/time.h: Likewise.
8454 * include/grub/ia64/kernel.h: Likewise.
8455 * include/grub/ia64/setjmp.h: Likewise (from glibc).
8456 * include/grub/ia64/time.h: New file.
8457 * include/grub/ia64/types.h: Likewise.
8458 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
8459 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
8460 New protos.
8461 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
8462 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
8463 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
8464 * util/grub-mkimage.c (image_target_desc): New field pe_target.
8465 All users updated.
8466 (EFI64_HEADER_SIZE): New definition. All users updated.
8467 (image_targets): Add ia64-efi.
8468 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
8469 jumpers_addr. All users updated.
8470 Create function descriptors.
8471 (count_funcs): New function.
8472 (unaligned_uint32): New struct.
8473 (MASK20): New definition.
8474 (MASK19): Likewise.
8475 (MASKF21): Likewise.
8476 (add_value_to_slot_20b): New function.
8477 (add_value_to_slot_21_real): Likewise.
8478 (add_value_to_slot_21): Likewise.
8479 (ia64_kernel_trampoline): New struct.
8480 (nopm): New variable.
8481 (jump): Likewise.
8482 (make_trampoline): New function.
8483 (relocate_addresses): Handle ia64.
8484 (make_reloc_section): Likewise.
8485 (load_image): Likewise.
8486
983b414d
VS
84872011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
8490 warning. Move variables before code while on it.
8491
5d063cdc
VS
84922011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 Fuloong support.
8495
8496 * configure.ac: Rename yeeloong platform to loongson. All users updated.
8497 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
8498 * grub-core/boot/mips/loongson/fuloong.S: New file.
8499 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
8500 Explicitly init CS5536.
8501 [FULOONG]: Don't use serial until CS5536 is available.
8502 Set GPIO based on dumps.
8503 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
8504 [FULOONG]: Handle GPIO and memory controller differences.
8505 Parse machine type in $a2.
8506 * grub-core/boot/mips/startup_raw.S: Determine and save the
8507 architecture.
8508 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
8509 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
8510 init on architecture type.
8511 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
8512 SIS315E. Don't init at_keyboard on fuloong.
8513 (grub_halt): Support Fuloong.
8514 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
8515 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
8516 (loongson_machtypes): New array.
8517 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
8518 type.
8519 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
8520 config. All users updated. Handle CS5536 serial.
8521 * grub-core/term/serial.c (grub_serial_register): Conditionalise
8522 default port on machine type. Register serial as inactive.
8523 * grub-core/video/sis315pro.c: New file.
8524 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
8525 definition.
8526 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
8527 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
8528 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
8529 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
8530 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
8531 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
8532 to ...
8533 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
8534 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
8535 definition.
8536 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
8537 (grub_arch_machine): New extern var.
8538 * include/grub/mips/loongson/serial.h
8539 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
8540 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
8541 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
8542 (GRUB_MACHINE_SERIAL_PORT0): ... this.
8543 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
8544 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
8545 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
8546 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
8547 * include/grub/term.h (grub_term_register_input_inactive): New inline
8548 function.
8549 (grub_term_register_output_inactive): Likewise.
8550 * include/grub/video.h (grub_video_driver_id): New value
8551 GRUB_VIDEO_DRIVER_SIS315PRO.
8552 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
8553 New field "names". All users updated.
8554 New field value IMAGE_FULOONG_FLASH.
8555 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
8556
6ada82d1
JU
85572011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
8558
8559 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
8560 and add some clarification.
8561
90c571a4
VS
85622011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
8565 platforms if kernel is compressed.
8566
de04eecf
VS
85672011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
8570 unused modules since currently referrence counter isn't reliable and
8571 there isn't much memory to recover there anyway.
8572
57688121
VS
85732011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
8576 rather than resetting it to allow modules to reference themselves
8577 in init.
8578
3d2c7e35
VS
85792011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
8582 counter on dependencies since grub_dl_unref already handles this.
8583
b25db218
VS
85842011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
8587 on error if not already done.
8588
25a45338
VS
85892011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 Fix few potential memory misusage.
8592
8593 * grub-core/font/font.c (load_font_index): Don't free char_index to
8594 avoid double free.
b25db218
VS
8595 (grub_font_load): Zero-fill font at alloc for safety.
8596 Close file on error.
8597 (free_font): Free bmp_idx.
25a45338 8598
0cac83df
VS
85992011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * docs/grub.texi (Installation): Fix several outdated claims.
8602
2217a143
VS
86032011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 Handle module_license on windows.
8606
8607 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
8608 sections shifted.
8609 (insert_string): Make argument const char * instead of char *.
8610 (write_section_data): Handle long section names.
8611 Handle module_license.
8612
d4de6b01
VS
86132011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
8616 handle class-free menuentries.
8617 (grub_normal_add_menu_entry): Add a check to be sure.
8618
4c2a3b43
VS
86192011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
8620
8621 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
8622 PgUp and PgDown.
8623
85c6210f
VS
86242011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * configure.ac: Bump version to 1.99.
8627
36084912
VS
86282011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 Give ATA device a bit more time on first try in order to allow disks
8631 to spin up.
8632
8633 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
8634 if dev->present is 1. Reset dev->present on failure.
8635 (grub_ata_device_initialize): Set dev->present to 1.
8636 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
8637 (grub_ata_device): New member 'present'.
8638
bda0e219
VS
86392011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * util/grub-mkimage.c (generate_image): Update hash.
8642
19e1c41b
VS
86432011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8644
8645 Flush caches on DMA memory.
8646
8647 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
8648 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
8649 (grub_dma_free): Likewise.
8650 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
8651
91bbcc0c
VS
86522011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
8655 to avoid asm treating ld and sd as macros.
8656
60ddfad3
VS
86572011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
8660 decompressor.
8661
a298aa04
VS
86622011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
8665 grub_decompress_core since later would fail if grub_decompress_core
8666 is too far.
8667
9b44feca
VS
86682011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
8671 R_MIPS_JALR since it's used by newer compiler.
8672
56dbe7b4
VS
86732011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
8676
52856af2
VS
86772011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
8680 file_path to 0 for surety.
8681 (grub_chainloader_boot): Set exit_data to NULL.
8682 Unset the loader once done.
8683 (grub_cmd_chainloader): Fix confusing error message if file is empty.
8684
9c9bfc6d
VS
86852011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
8688 unknown key into a dprintf.
8689
dd94a3df
VS
86902011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
8693 on first non-existant partition.
8694
fa68d99c
VS
86952011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
8698 openning fails.
8699 Reported by: Mark Korenberg.
8700
157effb7
VS
87012011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
8704 overflow.
8705
ea75312f
VS
87062011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 * util/grub-mkimage.c (main): Explicitely flush and sync the output
8709 before closing to ensure that it will be readable by grub-setup.
8710
072b5d31
VS
87112011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
8714 (devpath_1): Use MAKE_PIWG_PATH.
8715 (devpath_2): Likewise.
8716 (devpath_3): Likewise.
8717 (devpath_4): Likewise.
8718 (devpath_5): Likewise.
8719 (devpath_6): Likewise.
8720
8721 The appleldr.mod was checked that to be binary identical to previous
8722 version.
8723
7fae0051
Z
87242011-05-05 Zach <mikezackles>
8725
8726 Support 2010 Macbooks.
8727
8728 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
8729 (devs): Add devpath_6.
8730
7c515bee
VS
87312011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
8734 /dev/random. /dev/urandom is good enough for our purposes (salting).
8735
ed660bd8
VS
87362011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8737
8738 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
8739
ee5614b7
VS
87402011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
8743 hexadecimal.
8744
664889a6
VS
87452011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8746
8747 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
8748 and not 0 on failure.
8749
bd405bbc
CW
87502011-05-03 Colin Watson <cjwatson@ubuntu.com>
8751
8752 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
8753 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
8754 disk; otherwise grub_fs_probe will not fall back to the next
8755 filesystem.
8756 (grub_pxefs_open): Likewise, for consistency.
8757 Reported and tested by: Ezekiel Grave.
8758
4ebff753
CW
87592011-05-03 Colin Watson <cjwatson@ubuntu.com>
8760
8761 * tests/partmap_test.in: Don't hardcode path to parted.
8762 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
8763
8f942553
CW
87642011-05-01 Colin Watson <cjwatson@ubuntu.com>
8765
8766 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
8767 of `ls' to find out which devices are available.
8768
3c62402d
VS
87692011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
8772 than source address for efi mmap buffer.
8773
723f63f2
VS
87742011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
8777 wrong action on non-detecting the magic.
8778
68797f92
VS
87792011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
8782 already supplied by another part of the module (fixes compilation on
8783 FreeBSD).
8784
6be8715d
VS
87852011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
8788 match the one used by mdadm.
8789
e91dba5b
CW
87902011-04-21 Colin Watson <cjwatson@ubuntu.com>
8791
8792 * po/README: Add instructions for creating po/LINGUAS.
8793
c85140b3
CW
87942011-04-21 Colin Watson <cjwatson@ubuntu.com>
8795
8796 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
8797 #551428.
8798
8799 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
8800 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
8801 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
8802 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8803 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
8804 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
8805 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
8806 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
8807 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
8808 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8809 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
8810 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
8811 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
8812 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
8813 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
8814 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
8815 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
8816 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
8817 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
8818 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
8819 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
8820 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
8821
92051871
CW
88222011-04-21 Colin Watson <cjwatson@ubuntu.com>
8823
8824 * grub-core/kern/emu/getroot.c
8825 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
8826 test that was incorrectly reintroduced in r3214.
8827 Reported by: Ian Dall. Fixes Savannah bug #33133.
8828
b13f79a4
CW
88292011-04-21 Colin Watson <cjwatson@ubuntu.com>
8830
8831 Fix stack pointer handling in 16-bit relocator.
8832
8833 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
8834 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
8835 Fixes Ubuntu bug #683904.
8836
9b710a88
VS
88372011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * configure.ac: Bump version to 1.99~rc2.
8840
d97e7b59
VS
88412011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
8844 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
8845 * grub-core/lib/x86_64/setjmp.S: Likewise.
8846 * grub-core/lib/mips/setjmp.S: Likewise.
8847 * grub-core/lib/powerpc/setjmp.S: Likewise.
8848 * grub-core/lib/sparc64/setjmp.S: Likewise.
8849
0624551c
VS
88502011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
8853 * grub-core/lib/efi/datetime.c: Likewise.
8854
e8f28d4c
VS
88552011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
8858 New function.
8859 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
8860 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
8861 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
8862
bba79a15
VS
88632011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
8866 bitmap.
8867 (grub_gfxterm_term_init): Likewise.
8868
abc474ef
VS
88692011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 Take into account the decorations the computing menu entry width.
8872
8873 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
8874 (grub_gfxmenu_create_box): Register get_border_width.
8875 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
8876 if available.
8877 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
8878 get_border_width.
8879
e74b3947
EP
88802011-04-18 Endres Puschner <code@e7p.de>
8881
8882 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
8883 Don't skip first class.
8884
34faa595
VS
88852011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
8888 chunks.
8889 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
8890
93a777e3
VS
88912011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 Complete 64-bit division support.
8894
8895 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
8896 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
8897 * include/grub/misc.h (grub_divmod64): Rename to ...
8898 (grub_divmod64_full): ... this.
8899 (grub_divmod64): New inline function.
8900
a5102d94
VS
89012011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * util/grub-mkimage.c (generate_image): Add forgotten comma.
8904
f3fb7b36
VS
89052011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
8908 performing the necessary test.
8909
9ac718b0
VS
89102011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
8913 (kfreebsd.elf): Likewise.
8914 (pc-chainloader.elf): Likewise.
8915 (ntldr.elf): Likewise.
8916
50d2cc5a
VS
89172011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 Identify RAID by its UUID rather than (guessed) name.
8920
8921 * grub-core/disk/raid.c (ascii2hex): New function.
8922 (grub_raid_open): Accept mduuid/%s specification.
8923 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
8924 (get_mdadm_uuid): ... this.
8925 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
8926
e03f7bea
VS
89272011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
8928
8929 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
8930 to negative size.
8931
e74c3112
CW
89322011-04-13 Colin Watson <cjwatson@ubuntu.com>
8933
8934 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
8935 btrfs subvolume.
8936 * util/grub.d/20_linux_xen.in: Likewise.
8937
78fa584f
CW
89382011-04-13 Colin Watson <cjwatson@ubuntu.com>
8939
8940 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
8941 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
8942
8943 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
8944 Build a list of relevant visible mounts using the mnt_id and
8945 parent_mnt_id fields, and then scan that list at the end.
8946
9d5f8162
CW
89472011-04-12 Colin Watson <cjwatson@ubuntu.com>
8948
8949 * docs/grub.texi (normal): New section.
8950 (normal_exit): New section.
8951 (Embedded configuration): Add reference to normal.
8952 (GRUB only offers a rescue shell): Likewise.
8953 * docs/grub-dev.texi (Error Handling): Fix typo.
8954
09a9d66f
CW
89552011-04-12 Colin Watson <cjwatson@ubuntu.com>
8956
8957 * NEWS: Drop obsolete entry about probe-only btrfs support.
8958
0c676933
CW
89592011-04-12 Colin Watson <cjwatson@ubuntu.com>
8960
8961 * util/import_gcry.py: Fix typo.
8962
ec9f5e0d
VS
89632011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 * NEWS: Add btrfs support.
8966
fe6b2cba
VS
89672011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
89682011-04-11 Colin Watson <cjwatson@ubuntu.com>
8969
8970 BtrFS support. Written by me (Vladimir) with important bugfixes and
8971 even more important testing by Colin.
8972
8973 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
8974 * grub-core/Makefile.core.def (btrfs): Add crc.c.
8975 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
8976 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
8977 mem_input_off and mem_input. All users updated to accept in-RAM input.
8978 (gzio_seek): New function.
8979 (test_zlib_header): Likewise.
8980 (grub_gzio_read): Likewise.
8981 (grub_zlib_decompress): Likewise.
8982 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
8983 Accept partial and non-virtual mounts.
8984 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
8985 avoid receiving /dev/dm-X as device.
8986 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
8987 Handle bind and partial mounts.
8988 * grub-core/lib/crc.c: New file.
8989 * include/grub/deflate.h: Likewise.
8990 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
8991 proto.
8992 * include/grub/lib/crc.h: New file.
8993
e745cf0c
VS
89942011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 Implement automatic module license checking according to new GNU
8997 guidelines.
8998
8999 * grub-core/kern/dl.c (grub_dl_check_license): New function.
9000 (grub_dl_load_core): Use grub_dl_check_license.
9001 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
9002 (GRUB_MOD_LICENSE): Likewise.
9003 (GRUB_MOD_DUAL_LICENSE): Likewise.
9004 All modules updated.
9005
2a9bc016
CW
90062011-04-11 Colin Watson <cjwatson@ubuntu.com>
9007
9008 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
9009 reserved_first_sector to 1. btrfs reserves plenty of space for boot
9010 loaders.
9011 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
9012
8a3bc88e
VS
90132011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
9016
af869a4a
VS
90172011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 * util/grub-fstest.c (read_file): Report GRUB error if file opening
9020 failed.
9021
9ee8d94f
VS
90222011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/kern/file.c (grub_file_open): Don't take into account the
9025 parenthesis in the middle of the filename.
9026
b01abe3e
VS
90272011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
9030 rather than trying to put initrd way too high.
9031 Reported by: Ryan Lortie <desrt@desrt.ca>
9032
335bda1e
VS
90332011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9034
9035 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
9036 improperly removed string.
9037
5ca1a64d
VS
90382011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
9041 is_disk.
9042 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
9043 (open_device) Likewise.
9044 (grub_util_biosdisk_close): Likewise.
d8ce9995 9045 Reported by: Mark Korenberg.
5ca1a64d 9046
cbac5b1e
AK
90472011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
9048
9049 * util/grub-mkconfig_lib.in: Add missing quotes.
9050
088cdb65
CW
90512011-04-10 Colin Watson <cjwatson@ubuntu.com>
9052
9053 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
9054 is NULL.
9055
8b8a81fa
VS
90562011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9057
9058 Dynamically count the number of lines for the lower banner.
9059
9060 * grub-core/normal/menu_entry.c (per_term_screen): New member
9061 num_entries.
9062 (print_down): Use num_entries.
9063 (update_screen): Likewise.
9064 (grub_menu_entry_run): Set num_entries.
9065 * grub-core/normal/menu_text.c (menu_viewer_data): New member
9066 num_entries.
9067 (grub_print_message_indented): Move real part to ...
9068 (grub_print_message_indented_real): ... here. Additional argument
9069 dry_run.
9070 (draw_border): Additional argument num_entries.
9071 (print_message): Additional argument dry_run.
9072 (print_entries): Receive menu viewer data.
9073 (grub_menu_init_page): New argment num_entries.
9074 (menu_text_set_chosen_entry): Use num_entries.
9075 (grub_menu_try_text): Likewise.
9076 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
9077 All users updated.
9078 (grub_ucs4_count_lines): New function.
9079 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
9080 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
9081 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
9082 (grub_term_border_height): Likewise.
9083 (grub_term_num_entries): Likewise.
9084
277f955b
VS
90852011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
9088 Remove now unused string.
9089
536ce85a
CW
90902011-04-09 Colin Watson <cjwatson@ubuntu.com>
9091
9092 * docs/grub-dev.texi (Finding your way around): Update for 1.99
9093 build system.
9094 (Getting started): GRUB is developed in Bazaar now, not Subversion.
9095
9096 (Comment): Fix typo.
9097 (Getting started): General copy-editing.
9098 (Typical Development Experience): Likewise.
9099 (Error Handling): Likewise.
9100 (Video API): Likewise.
9101
2cf09e32
CW
91022011-04-09 Colin Watson <cjwatson@ubuntu.com>
9103
9104 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
9105 throughout.
9106
1ec652f4
VS
91072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * util/grub-mkimage.c (main): Handle special naming of yeeloong
9110 directory.
9111
2c583728
CW
91122011-04-08 Colin Watson <cjwatson@ubuntu.com>
9113
9114 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
9115 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
9116 "development".
9117
d7a565e9
VS
91182011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
9121 grub_strcpy since the lines aren't necessarily 0-terminated.
9122
7c2e4909
VS
91232011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
9126 root on legacy.
9127
34c09785
VS
91282011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/commands/probe.c (options): Argument to set isn't optional.
9131 (GRUB_MOD_INIT): DEVICE isn't optional.
9132
6a6f8058
VS
91332011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
9136 word on new line if it's too long anyway. Fixes a hang.
9137
2e335e90
VS
91382011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9139
9140 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
9141 const.
9142 * util/grub-setup.c (main): Reuse md device name if available.
9143 * util/raid.c (grub_util_raid_getmembers): Receive device name and
9144 not GRUB name as argument.
9145 Based on patch by: Florian Wagner <fwagner>.
9146
10a7a867
VS
91472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9150 Place mbi on low memory for better compatibility.
9151
7a3d6cd9
VS
91522011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
9155
18dd6b47
VS
91562011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
91572011-04-08 Colin Watson <cjwatson@ubuntu.com>
9158
9159 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 9160 * conf/Makefile.common: Likewise.
18dd6b47 9161
3c0e3f14
VS
91622011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9163
f7148863
VS
9164 * grub-core/normal/menu.c: Add missing include.
9165
91662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 9169
6d1fa41f
MZ
91702011-04-08 Martin Zuther <mzuther@mzuther.de>
9171
9172 * util/grub-mkconfig.in: Ignore emacsen backup.
9173
478182a8
VS
91742011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
9177 on open.
9178 (grub_util_biosdisk_close): Likewise.
9179
72a89a54
VS
91802011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
9183 const attribute and use grub_isdigit.
9184
b5ebecfa
A
91852011-04-06 Andrey <dev_null@ukr.net>
9186
9187 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
9188 gcc warning.
9189
7755f66e
VS
91902011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
9193 useful grub_dprintf's.
9194
461121ff
VS
91952011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
9198
2a961775
VS
91992011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
9202
adf594cc
VS
92032011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 Output errors if theme loading failed.
9206
9207 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
9208 grub_gfxterm_fullscreen on error paths to ...
9209 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
9210 theme loading error.
9211
665900a3
VS
92122011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9213
9214 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
9215 space for older compilers.
9216 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9217
a562b479
VS
92182011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
9221 and report them as not RAID members since they are useless for GRUB.
9222 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9223
850e9373
VS
92242011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 Increase LVM implementation robustness in order not to crash on
9227 configurations like pvmove. Previously code assumed that in some places
9228 only lvs or only pvs are used whereas it seems that they are used
9229 interchangeably.
9230
9231 * grub-core/disk/lvm.c (read_node): New function.
9232 (read_lv): Use read_node.
9233 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
9234 Match volumes only at the end when all lvs are found. Take both
9235 pvs (first) and lvs (second) into account.
9236 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
9237 mirror_* into node_*. All users updated.
9238 (grub_lvm_stripe): Merge this ...
9239 (grub_lvm_mirror): ... and this ...
9240 (grub_lvm_node): ... into this. All users updated.
9241
6f332153
VS
92422011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
9245 of function to allow further scanning for LVMs.
9246
829ea451
VS
92472011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
9250 on failed seek as it breaks open fd reusage.
9251
09ceb9a5
VS
92522011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * util/grub-install.in: Add a recommendation to use --recheck before
9255 reporting bugs.
9256
67e11623
VS
92572011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
9260 are obtained.
9261
caee5efd
VS
92622011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 GRUB developper manual based on existing Internals section and
9265 contributions by the various authors with active copyright assignment.
9266
9267 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
9268 * docs/font_char_metrics.png: New file.
9269 * docs/font_char_metrics.txt: Likewise.
9270 * docs/grub-dev.texi: Likewise.
9271 * docs/grub.texi (Internals): Move from here ...
9272 * docs/grub-dev.texi: ... here.
9273
2cccc747
CW
92742011-04-01 Colin Watson <cjwatson@ubuntu.com>
9275
9276 Store the loopback device as data on loopback grub_disk structures,
9277 rather than the file it points to. This fixes use of freed memory
9278 if an existing loopback device is replaced.
9279
9280 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
9281 disk->data, not dev->file.
9282 (grub_loopback_read): Adjust file assignment to match.
9283 Fixes Ubuntu bug #742967.
9284
186ae367
CW
92852011-04-01 Colin Watson <cjwatson@ubuntu.com>
9286
9287 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
9288 when replacing an existing device.
9289
cfed2ad0
VS
92902011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
9293 memory corruptions.
9294
9295 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
9296 unsigned.
9297 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
9298 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
9299 (grub_jfs_read_inode): Likewise.
9300 (grub_jfs_opendir): Likewise. Remove now useless casts.
9301 (grub_jfs_getent): Likewise.
9302 Make ino a grub_uint32_t rather than int.
9303 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
9304 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
9305 division and module with bit operations.
9306 (grub_jfs_find_file): Make ino a grub_uint32_t.
9307 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
9308
05d2ed32
CW
93092011-04-01 Colin Watson <cjwatson@ubuntu.com>
9310
9311 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
9312 warning. (This was in fact always initialised before use, but GCC
9313 wasn't smart enough to prove that.)
9314 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9315
91dc6073
VS
93162011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
9319 stack alignment.
9320 (efi_wrap_1): Likewise.
9321 (efi_wrap_2): Likewise.
9322 (efi_wrap_3): Likewise.
9323 (efi_wrap_4): Likewise.
9324 (efi_wrap_5): Likewise.
9325 (efi_wrap_6): Likewise.
9326 (efi_wrap_10): Likewise.
9327 Based on information by: Red Hat/Peter Jones.
9328
a8afc1d1
CW
93292011-03-31 Colin Watson <cjwatson@ubuntu.com>
9330
9331 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
9332 set-but-not-used variable.
9333
a826cc7d
CW
93342011-03-31 Colin Watson <cjwatson@ubuntu.com>
9335
9336 * docs/grub.texi (Simple configuration): Be more explicit about
9337 GRUB_DEFAULT, and add an example.
9338 Reported by: Leslie Rhorer.
9339
875b67ba
CW
93402011-03-30 Colin Watson <cjwatson@ubuntu.com>
9341
9342 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
9343 shell".
9344
fd7cd914
AS
93452011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
9346
9347 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
9348 * util/grub.d/20_linux_xen.in: Likewise.
9349
090b1b6a
VS
93502011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * util/grub.d/10_linux.in: Try alternative config filenames where
9353 we parse config file.
9354 * util/grub.d/20_linux_xen.in: Likewise.
9355
baad885c
AS
93562011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
9357
9358 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
9359 * util/grub.d/20_linux_xen.in: Likewise.
9360
241e41f5
VS
93612011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * grub-core/disk/raid.c (insert_array): Add few potentially
9364 useful grub_util_info.
9365 (grub_raid_register): Likewise.
9366
56445fb2
VS
93672011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9368
9369 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
9370 Preserve partition number in mdadm code path.
9371
c871b1c6
VS
93722011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
9375 few potentially useful grub_util_info.
9376
5e631b4f
CW
93772011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
9380
2d5d0333
CW
93812011-03-30 Colin Watson <cjwatson@ubuntu.com>
9382
9383 * docs/grub.texi (default): Use @example rather than nested
9384 itemized lists to avoid breaking gendocs.
9385
3d7ed04e
CW
93862011-03-30 Colin Watson <cjwatson@ubuntu.com>
9387
9388 * docs/grub.texi (Future): Update.
9389
abf04200 93902011-03-30 Colin Watson <cjwatson@ubuntu.com>
9391
9392 * docs/grub.texi (Environment): New chapter.
9393 (Changes from GRUB Legacy): Link to "Environment block" section for
9394 details of limitations.
9395 (Simple configuration): Likewise. Link to documentation of gfxmode
9396 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
9397 respectively.
9398 (Shell-like scripting): Note that normal variables are stored in the
9399 environment.
9400 (gettext): Link to documentation of lang and locale_dir.
9401 (list_env): New section.
9402 (load_env): New section.
9403 (save_env): New section.
9404
9405 (Reporting bugs): Fix typo.
9406
e1ad0edd
VS
94072011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
9410 the example.
9411
5d803174
VS
94122011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * grub-core/term/at_keyboard.c (set_scancodes)
9415 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
9416
2a2da1d0
CW
94172011-03-30 Colin Watson <cjwatson@ubuntu.com>
9418
9419 * docs/grub.texi (Menu-specific commands): Remove some semantics
9420 that were true in GRUB Legacy but not in GRUB 2.
9421 (submenu): New section.
9422 (false): New section.
9423 (read): New section.
9424 (true): New section.
9425
a7527639
CW
94262011-03-30 Colin Watson <cjwatson@ubuntu.com>
9427
9428 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
9429
94302011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
9431
9432 * docs/grub.texi (Simple configuration): Explain some of the
9433 current limitations of grub-mkconfig.
8a748df2 9434 Reported by: Leslie Rhorer.
e30af029 9435
fc858482
VS
94362011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 Old macs search for boot.efi rather than for bootia32.efi.
9439
9440 * util/grub-install.in: Copy bootia32.efi to boot.efi.
9441 * util/grub-mkrescue.in: Likewise.
9442 Suggested by: Peter Jones.
9443
e1eb511d
VS
94442011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
9447
70e75364
VS
94482011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
9451 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
9452 (grub_lvm_mirror): New struct.
9453 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
9454 (grub_lvm_iterate): Iterate only visible volumes.
9455 (grub_lvm_read): Factor out to ..
9456 (read_lv): ... this. Support mirrors.
9457 (grub_lvm_read): New wrapper function.
9458 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
9459 stripped or mirrored.
9460
fc18f6a3
VS
94612011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
9464
5c650f4c
CW
94652011-03-29 Colin Watson <cjwatson@ubuntu.com>
9466
9467 * docs/grub.texi (loopback): New section.
9468
61d7156b
CW
94692011-03-29 Colin Watson <cjwatson@ubuntu.com>
9470
9471 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
9472 removed -p option.
9473
994b8264
CW
94742011-03-29 Colin Watson <cjwatson@ubuntu.com>
9475
9476 * docs/grub.texi (BIOS installation): New section, partly based on
9477 previous text in other sections.
9478 (Installing GRUB using grub-install): Replace BIOS discussion with a
9479 cross-reference.
9480 (Images): Likewise.
9481
9e4d19e0
VS
94822011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 * grub-core/kern/emu/hostdisk.c (find_partition_start)
9485 [HAVE_DIOCGDINFO]: Add safety checks.
9486
a307c0b2
VS
94872011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9488
9489 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
9490 per default compiled in kernel and prior to 8.0 isn't shipped at all.
9491
b4db4f39
CW
94922011-03-29 Colin Watson <cjwatson@ubuntu.com>
9493
9494 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
9495 real_sb->size is zero (e.g. RAID-0), get the disk size from
9496 real_sb->data_size instead.
9497 Fixes Ubuntu bug #743136.
9498
35e5f84c
VS
94992011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
9502 printf clauses for printing size and start.
9503
d2e29d81
VS
95042011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9505
9506 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
9507 Reported and tested by: Timothy Nikkel.
9508
ed5587af
VS
95092011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
9512 (dirty_region_add_real): ... this.
9513 (dirty_region_add): Don't discard margin refresh when performing
9514 scheduled repaint.
9515
a1dc717c
VS
95162011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * grub-core/lib/relocator.c (allocate_regstart)
9519 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
9520 terminals are capabple of malloc-free operation.
9521 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
9522 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
9523
9f3677d3
VS
95242011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
9525
9526 * util/grub-setup.c: Copy the partition table zone if floppy support
9527 is disabled, even if no partition table is found.
9528
9529 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
9530 during POST if an invalid partition table is contained in the PBR
9531 of the active partition when GRUB is installed to a partition.
9532
24148725
CW
95332011-03-28 Colin Watson <cjwatson@debian.org>
9534
9535 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
9536 comment.
9537
f329eda7
CW
95382011-03-28 Colin Watson <cjwatson@debian.org>
9539
9540 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
9541 to be specific about what kind of RAID device we're scanning for.
9542
c482ad98
SG
95432011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
9544
9545 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
9546 return freed string.
9547
5ee04984
VS
95482011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
9551
f4727da9
VS
95522011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Use libgeom on FreeBSD to detect partitions.
9555
9556 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
9557 (grub-mkrelpath): Likewise.
9558 (grub-script-check): Likewise.
9559 (grub-editenv): Likewise.
9560 (grub-mkpasswd-pbkdf2): Likewise.
9561 (grub-fstest): Likewise.
9562 (grub-mkfont): Likewise.
9563 (grub-mkdevicemap): Likewise.
9564 (grub-probe): Likewise.
9565 (grub-setup): Likewise.
9566 (grub-ofpathname): Likewise.
9567 (grub-mklayout): Likewise.
9568 (example_unit_test): Likewise.
9569 (grub-menulst2cfg): Likewise.
9570 * grub-core/Makefile.core.def (grub-emu): Likewise.
9571 (grub-emu-lite): Likewise.
9572 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
9573 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
9574 define HAVE_DIOCGDINFO.
9575 (follow_geom_up) [FreeBSD]: New function.
9576 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
9577 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
9578 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
9579 unconditionally of HAVE_DIOCGDINFO.
9580
82fe6c75
VS
95812011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9582
9583 Fix FreeBSD compilation problem.
9584
9585 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
9586 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
9587
4c6c9431
CW
95882011-03-24 Colin Watson <cjwatson@ubuntu.com>
9589
9590 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
9591 Switch back to page zero before loading a kernel, since some kernel
9592 drivers expect that.
9593 Thanks to: Felix Kuehling.
9594
c7064d94
VS
95952011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
9598 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
9599 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
9600
3f71cded
VS
96012011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
9604 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
9605
ef6de21a
VS
96062011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
9609 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
9610 malloc is disabled.
9611
8bc66a2c
VS
96122011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
9615 for modules headers when counting the needed allocation size.
9616
5657722c
VS
96172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
9620 if no ASCII character is found to prevent crash.
9621
41a85f55
AK
96222011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
9623
9624 * grub-core/video/bitmap.c (match_extension): Ignore case.
9625
59e1e5f1
VS
96262011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9627
9628 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
9629
bd4d051a
VS
96302011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/script/parser.y: Declare "time" as valid argument.
9633
bae7fcc1
PJ
96342011-03-23 Peter Jones <pjones@redhat.com>
9635
9636 Fix incorrect assert failure reporting.
9637
9638 * grub-core/tests/example_functional_test.c (example_test): Add
9639 a failure comment.
9640 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
9641 (failure_start): ...this. Check that malloc succeeded.
9642 Don't call xvasprintf. Return failure struct.
9643 (failure_append_vtext): New function.
9644 (failure_append_text): Likewise.
9645 (add_failure): Likewise.
9646 (grub_test_assert_helper): Likewise.
9647 * include/grub/test.h (grub_test_assert_helper): New declaration.
9648 (grub_test_assert): Macro rewritten.
9649
537dc9be
VS
96502011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9651
9652 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
9653
fa3e01bf
VS
96542011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
9657
b1d28404
VS
96582011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
9661 into GRUB-style one.
9662
2e3e2e09
VS
96632011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
9666 error and not grub_errno.
9667 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
9668
ed57e557
VS
96692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
9672 GRUB_USB_SPEED_NONE in case of failure and not the error code.
9673
d1611f01
VS
96742011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/efiemu/i386/pc/cfgtables.c
9677 (grub_machine_efiemu_init_tables): Make declaration a prototype.
9678 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
9679 (grub_xnu_unlock): Likewise.
9680 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
9681
7d4e39d6
VS
96822011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
9685 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
9686 * grub-core/commands/hashsum.c (aliases): Likewise.
9687 * grub-core/commands/setpci.c (pci_registers): Likewise.
9688 * grub-core/disk/usbms.c (attach_hook): Likewise.
9689 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
9690 (zio_checksum_table): Likewise.
9691 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
9692 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
9693 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
9694 * grub-core/lib/relocator.c (leftovers): Likewise.
9695 (extra_blocks): Likewise.
9696 * grub-core/loader/i386/bsd.c (relocator): Likewise.
9697 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
9698 (modules_last): Likewise.
9699 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
9700 (devices): Likewise.
9701 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
9702 (modules_last): Likewise.
9703 * grub-core/normal/auth.c (users): Likewise.
9704 * grub-core/normal/context.c (initial_menu): Likewise.
9705 (current_menu): Likewise.
9706 * grub-core/normal/crypto.c (crypto_specs): Likewise.
9707 * grub-core/term/serial.c (grub_serial_ports): Likewise.
9708 (grub_serial_terminfo_input_template): Likewise.
9709 (grub_serial_terminfo_output_template): Likewise.
9710 (grub_serial_terminfo_input): Likewise.
9711 (grub_serial_terminfo_output): Likewise.
9712 (registered): Likewise.
9713 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
9714
40fc4659
VS
97152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
9718 grub_video_mode_type_t.
9719 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
9720 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
9721 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
9722
2da48d28
VS
97232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * util/grub-install.in: Correct the x86-64 name as x86_64.
9726
9b43bf39
CW
97272011-03-11 Colin Watson <cjwatson@ubuntu.com>
9728
9729 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
9730 initial chunk read from the kernel always includes GRUB's multiboot
9731 header, which is now outside the first sector.
9732
be1a7ce0
CW
97332011-03-09 Colin Watson <cjwatson@ubuntu.com>
9734
9735 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
9736 cached mmap_size, so that this works correctly when called multiple
9737 times.
9738 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
9739
83a3c48d
CW
97402011-03-09 Colin Watson <cjwatson@ubuntu.com>
9741
9742 * docs/grub.texi (Simple configuration): Tidy up formatting.
9743
57d75699
SJ
97442011-03-07 Szymon Janc <szymon@janc.net.pl>
9745
9746 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
9747 Set-but-not-used variable removed.
9748
028501a0
VS
97492011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 Workaround yet another IEEE1275 bug.
9752
9753 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9754 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
9755 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
9756 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
9757 is set.
9758 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9759 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
9760
d998657d
VS
97612011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
9764 error.
9765
fee7cdd4
CW
97662011-02-11 Colin Watson <cjwatson@ubuntu.com>
9767
9768 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
9769 empty, since in that case we can only generate either nothing or a
9770 syntactically invalid configuration file.
9771 Reported by: Michal Suchanek. Fixes Debian bug #612898.
9772
97286eb5
CW
97732011-02-09 Colin Watson <cjwatson@ubuntu.com>
9774
9775 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
9776 (Making a GRUB bootable CD-ROM): Likewise.
9777 (Invoking grub-mkrescue): New section.
9778 Reported by: Yann Dirson. Fixes Debian bug #612585.
9779
22b28eb3
CW
97802011-02-09 Colin Watson <cjwatson@ubuntu.com>
9781
9782 * util/grub-install.in: Remove unnecessary brackets from tr
9783 arguments.
9784 * util/grub.d/10_hurd.in: Likewise.
9785 * util/grub.d/10_kfreebsd.in: Likewise.
9786 * util/grub.d/10_linux.in: Likewise.
9787 * util/grub.d/20_linux_xen.in: Likewise.
9788 Reported by: Jamie Heilman. Fixes Debian bug #612564.
9789
7e735e43
CW
97902011-02-08 Colin Watson <cjwatson@ubuntu.com>
9791
9792 * include/grub/file.h (not_easly_seekable): Rename to ...
9793 (not_easily_seekable): ... this. Update all users.
9794
800f1881
CW
97952011-01-28 Colin Watson <cjwatson@ubuntu.com>
9796
9797 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
9798 grub-mkrescue.
9799
3281d3d6
VS
98002011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9801
9802 * util/grub-mkimage.c (generate_image): Refuse to create the images
9803 bigger than the actual flash (512K) in Loongson machines. 512K is also
9804 the biggest chip supported by them.
9805
3533413c
VS
98062011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
9809
73ae4f4f
VS
98102011-01-22 Anthony DeRobertis <anthony@derobert.net>
9811
9812 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
9813 super_offset field.
9814
37f4f608
VS
98152011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * util/grub-install.in: Ignore install device on platforms
9818 where it doesn't make sense. Always use UUIDs except on pc, efi and
9819 sparc64.
9820 Reported by: Daniel Kahn Gillmor.
9821
03a4ccb5
VS
98222011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
9825
ffc8f4d8
VS
98262011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
9829 (iterate_real): Don't rely on partition being non-NULL.
9830
80f23be7
VS
98312011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
9834 supported platforms. Put a compile time assert for this rather than
9835 generate a warning with 32-bit shift.
9836
5d4f4dd5
VS
98372011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
9840 logical expression more readable.
9841
e489601a
VS
98422011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
9845 even if some elements have a name.
9846 Reported by: Alexander GQ Gerasiov.
9847
96e0a6ea
CW
98482011-01-22 Colin Watson <cjwatson@ubuntu.com>
9849
9850 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
9851 path unreadable if `grub-probe -t abstraction' fails, for example if
9852 memberlist fails on an LVM volume group.
9853 Reported by: Darius Jahandarie.
9854
81431e2b
CW
98552011-01-22 Colin Watson <cjwatson@ubuntu.com>
9856
9857 * docs/grub.texi (Simple configuration): Document
9858 GRUB_PRELOAD_MODULES.
9859
5e79d66a
CW
98602011-01-17 Colin Watson <cjwatson@ubuntu.com>
9861
9862 * .bzrignore: Remove nonexistent grub-pbkdf2.
9863
646ada34
VS
98642011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * configure.ac: Bump version to 1.99~rc1.
9867
04360337
VS
98682011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
9871 for safety.
9872
46c9db88
VS
98732011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
9876 module.
9877
98782011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
9879
9880 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
9881
4fbf1852
VS
98822011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
9885 diskdevid.
9886
f1632d4d
VS
98872011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9888
9889 Fix compilation on cygwin.
9890
9891 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
9892 -R .drectve on cygwin.
9893 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
9894 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
9895 (COND_CYGWIN): New condition.
9896 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
9897 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
9898 not @TARGET_OBJ2ELF@.
9899 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
9900 type to determine whether aux is to be used.
9901
0b5e127b
VS
99022011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
9905 realpath'ed device string.
9906 Handle floppy (somewhat).
9907 Issue error in unknown case rather than garbage.
9908 Reported by: Axel Beckert.
9909
173b71e9
VS
99102011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * util/grub.d/00_header.in (load_video): Handle the case when no video
9913 drivers available.
9914 Thanks to: Axel Beckert.
9915
f8f479db
VS
99162011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
9919 variable. Fixes problem on big endian platforms.
9920
8fc0a245
VS
99212011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
9924 It doesn't work well there.
9925
b8494fbe
VS
99262011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
9929 warning.
9930 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
9931 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
9932 counter.
9933
b44a558c
VS
99342011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 Use alias->path rather than buggy "canon".
9937
9938 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
9939 (ofdisk_hash_add): New argument curcan. All users updated.
9940
51fa856c
CW
99412011-01-11 Colin Watson <cjwatson@ubuntu.com>
9942
9943 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
9944
9da068a5
VS
99452011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
9948 loadmask before doing any calculations. Use correct type for offset.
9949 (grub_linux_load64): Likewise.
9950
86205c94
CW
99512011-01-11 Colin Watson <cjwatson@ubuntu.com>
9952
9953 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
9954 with NULL.
9955 (console_grub_equivalences_unshift): Likewise.
9956 Reported by: Daniel Dehennin.
9957
4531a206
VS
99582011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
9961 (set_env_limn_ro): Likewise.
9962 (GRUB_MOD_INIT): Likewise.
9963 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
9964 ARRAY_SIZE while on it.
9965 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
9966 * grub-core/normal/context.c (grub_env_export): Move from here ...
9967 * grub-core/kern/env.c (grub_env_export): ... here.
9968 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
9969 prefix.
9970 * grub-core/kern/main.c (grub_main): Export root and prefix.
9971 * include/grub/env.h (grub_env_export): Export.
9972 Reported by: Seth Goldberg.
9973
45146057
VS
99742011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9977 Take into account space used by ELF sections and multiboot palette.
9978 Reported by: Grégoire Sutre.
9979
f093110b
VS
99802011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 * BUGS: New file.
9983
3395fe52
VS
99842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 Pass more appropriate video id to Linux.
9987
9988 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
9989 grub_video_get_driver_id and variable gfxpayloadforcelfb to
9990 fill have_vga.
9991 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
9992 shift params->lfb_size.
9993 * include/grub/i386/linux.h: Make an enume out of have_vga values.
9994
c2fa6cbb
VS
99952011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9996
9997 * util/grub-menulst2cfg.c: Add missing include of misc.h.
9998
b3ff6ff0
VS
99992011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
10002 separator and pass bootpath/devid even if only one of them is available.
10003 Reported by: Seth Goldberg.
10004
ae67942e
VS
100052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
10008 implementations bug on them.
10009
10010 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
10011 memory.
10012 (filter_memory_map): Likewise.
10013
d570097a
VS
100142011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
10017 Reported by: nebuchadnezzar.
10018
a508e776
VS
100192011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10020
10021 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
10022 Reported by: nebuchadnezzar.
10023
dcb883b1
VS
100242011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10025
10026 Submenu default support.
10027
10028 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
10029 auto_boot. All users updated.
10030 Declared static.
10031 Handle chosen and default with submenus.
10032 (grub_menu_execute_with_fallback): Declared static.
10033 Don't notify failure if autobooted. Upper level does it.
10034 (menuentry_eq): New function.
10035 (get_entry_number): Use menuentry_eq.
10036 (show_menu): New parameter "autobooted". All users updated.
10037 (grub_show_menu): Likewise.
10038 * include/grub/normal.h (grub_show_menu): Likewise.
10039 * include/grub/menu.h (grub_menu_execute_entry): Removed.
10040 (grub_menu_execute_with_fallback): Likewise.
10041
6fef99b4
VS
100422011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * util/grub-mklayout.c (usage): Update help text.
10045
47a77af5
VS
100462011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
10049
ce6bb3ee
VS
100502011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * util/grub-menulst2cfg.c (main): Trim the line.
10053
db87be2a
VS
100542011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10055
10056 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
10057 (grub_machine_init): Don't check amount of low memory as reportedly
10058 INT 12h can be broken and if low memory is too low we wouldn't have
10059 gotten into grub_machine_init anyway.
10060
c49849cc
VS
100612011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
10064 (grub_machine_mmap_iterate): Take low memory into account
10065
b1969b30
VS
100662011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
10069 badfs.
10070 Reported by: TiCPU.
10071
cf0eaf13
VS
100722011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
10075 members errors.
10076
1f060f39
GS
100772011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
10078
10079 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
10080 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
10081
a21e5672
GS
100822011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
10083
10084 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
10085 openbsd and netbsd types being in part_bsd module.
10086
c88172fa
VS
100872011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
10090 (_FILE_OFFSET_BITS): Likewise.
10091 Reported by: Seth Goldberg.
10092
53798c4b
GS
100932011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
10094
10095 * configure.ac: Check for libdevmapper header.
10096
e7121b69
VS
100972011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10098
10099 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
10100 avoid aliasing.
10101 (fzap_lookup): Likewise.
10102 (dnode_get): Likewise.
10103 (make_mdn): Likewise.
10104 (zfs_mount): Likewise.
10105 (fzap_iterate): Use temporary pointer to avoid aliasing.
10106 (grub_zfs_read): Likewise.
10107 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
10108 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
10109 pointers to avoid aliasing.
10110 (grub_cmd_xnu_kernel64): Likewise.
10111 (grub_xnu_load_driver): Likewise.
10112
fc836af9
VS
101132011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
10116 aliasing warning.
10117 (grub_cmd_terminal_output): Likewise.
10118 Reported and tested by: Grégoire Sutre.
10119
f9f37648
VS
101202011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
10123 warning.
10124 Reported and tested by: Grégoire Sutre.
10125
ec1dfd63
VS
101262011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 * configure.ac: Do CPU substitution even if it's specified explicitly.
10129 Reported and tested by: Alain Greppin.
10130
9462775a
VS
101312011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
10134 Reported and tested by: Alain Greppin.
10135
0fd48e35
VS
101362011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 Satisfy some bison versions need for inttypes.h.
10139
10140 * grub-core/lib/posix_wrap/inttypes.h: New file.
10141 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
10142 (int16_t): Likewise.
10143 (int32_t): Likewise.
10144 (int64_t): Likewise.
10145 Reported and tested by: Alain Greppin.
10146
43f1bc83
VS
101472011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
10150 Silence spurious warning.
10151 Reported and tested by: Alain Greppin.
10152
64d1f041
SJ
101532011-01-07 Szymon Janc <szymon@janc.net.pl>
10154
10155 * docs/grub.texi (Support automatic decompression): Update with xz
10156 decompression support.
10157
25953e10
SJ
101582011-01-07 Szymon Janc <szymon@janc.net.pl>
10159
10160 Improve loaders' kernel command line handling.
10161
10162 * grub-core/lib/cmdline.c: New file.
10163 * include/grub/lib/cmdline.h: Likewise.
10164 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
10165 grub_create_loader_cmdline to create kernel command line.
10166 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10167 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
10168 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
10169 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
10170 (linux): Add lib/cmdline.c on common.
10171
e72d259f
VS
101722011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10173
10174 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
10175 inopos might be unaligned.
10176
c0cf26da
VS
101772011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
10180 endian transformations.
10181 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10182 Based on report by: Doug Nazar.
10183
0ca09e6c
DN
101842011-01-07 Doug Nazar <nazard.michi@gmail.com>
10185
10186 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
10187 array->members[i].start_sector.
10188 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
10189
014b6806
VS
101902011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
10193 Reported and tested by: Grégoire Sutre.
10194
415502c2
CW
101952011-01-06 Colin Watson <cjwatson@ubuntu.com>
10196
10197 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
10198 avoid causing test failures by clearing the screen.
10199
71b6a2b7
CW
102002011-01-06 Colin Watson <cjwatson@ubuntu.com>
10201
10202 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
10203 Fix prefix check to handle the case where dir ends with a slash
10204 (most significantly, "/" itself).
10205 Reported by: Michael Vogt.
10206
b3f8d28a
VS
102072011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 Run terminfo_cls on initing terminfo output to clear the screen and
10210 move the cursor to (0,0).
10211
10212 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
10213 Call grub_terminfo_output_init.
10214 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
10215 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
10216 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
10217
4c3e4f37
VS
102182011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
10221 only when needed.
10222
488f71f1
VS
102232011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
10226 CTRL.
10227
18a38098
VS
102282011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 The E820 type 5 is BADRAM, not EXEC_CODE.
10231
10232 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
10233 (GRUB_E820_BADRAM): New define.
10234 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
10235 into reserved. Propagate BADRAM.
10236 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
10237 (GRUB_E820_BADRAM): New define.
10238
9eae2084
VS
102392011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
10242 Ignore the memory post-4G.
10243 (grub_relocator_firmware_alloc_region): Additional debug statement.
10244
ebc71d28
VS
102452011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
10248 names.
10249 Reported by: David Pravec.
10250
446fa400
VS
102512011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
10254 BIOSes.
10255
a0159f37
VS
102562011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
10259 Prevent overflow.
10260 (grub_reed_solomon_recover): Likewise.
10261
e5146ca1
VS
102622011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10263
10264 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
10265
102662011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
10267
10268 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
10269 variable.
10270
5b1bdf12
CW
102712011-01-04 Colin Watson <cjwatson@ubuntu.com>
10272
10273 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
10274 descriptions of extract_legacy_entries_source and
10275 extract_legacy_entries_configfile.
10276 Reported by: Seung Soo, Ha.
10277
99d925aa
CW
102782011-01-03 Colin Watson <cjwatson@ubuntu.com>
10279
10280 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
10281 on devices that do not implement function 0.
10282
4af0504b
DV
102832011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
10284
10285 * grub-core/fs/hfsplus.c: Make parent unsigned.
10286 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
10287 overflows.
10288 (grub_hfsplus_cmp_extkey): Likewise
10289
469ee10a
VS
102902011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 * util/grub-install.in: Correctly use bootloader_id and not
10293 GRUB_DISTRIBUTOR on efibootmgr line.
10294
323a8e9c
VS
102952011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
10298
1b394975
IC
102992010-12-31 Ian Campbell <ijc@hellion.org.uk>
10300
10301 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
10302 Xen and reorder menu item wording to make it clearer that this entry
10303 will launch Xen. Print separate messages when loading Xen and
10304 Linux.
10305
275bff5f
VS
103062010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
10309 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
10310 loop in case of incorrect amiga partmap.
10311
307806cb
VS
103122010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
10315 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
10316 Reported by:EHeM.
10317
b12b923e
VS
103182010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
10321 spurious warning.
10322 Reported by: crocket
10323
14b48a19
VS
103242010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
10327 Preload EFIemu.
10328 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
10329
693db2df
VS
103302010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
10333 is loaded
10334 (grub_cmd_xnu_kextdir): Likewise.
10335 (grub_cmd_xnu_splash): Likewise.
10336
c7638645
VS
103372010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10338
10339 Avoid using Reed-Solomon with 0 redundancy.
10340
10341 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
10342 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
10343 or 0 redundancy.
10344 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
10345 (grub_reed_solomon_recover): Likewise.
10346
25dd4780
VS
103472010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10348
10349 Don't use disk subsystem in freebsd_boot.
10350
10351 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
10352 (freebsd_biosdev): Likewise.
10353 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
10354 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
10355
0b2db943
VS
103562010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 Handling of files of unknown size is currently limited. They can't be
10359 used e.g. for initrd or modules. Moreover gzip handling of not
10360 easily seekable files is buggy. Disable unknown file size for now. May
10361 be inefficient but works.
10362
10363 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
10364 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
10365
5c408d0f
MP
103662010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
10367
10368 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
10369 floppy probe.
10370
190a011a
JD
103712010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
10372
10373 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
10374
022d01b8
SL
103752010-12-25 Shea Levy <shlevy>
10376
10377 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
10378
c4855fdc
VS
103792010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
10382 Windows Server 2008.
10383 Reported by: Devin Giddings.
10384
0354b867
VS
103852010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
10388 writing an error message because of async power management.
10389 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
10390 (grub_reboot): Likewise.
10391
ab66c69f
JU
103922010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
10393
10394 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
10395 keep unit tests from failing when they shouldn't.
10396
1426ef35
CW
103972010-12-21 Colin Watson <cjwatson@ubuntu.com>
10398
10399 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
10400 previous patch increased the size of the RS code by 20 bytes (at
10401 least with gcc-4.4), so increase this by 20 bytes to match.
10402 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10403
20641b6b
CW
104042010-12-21 Colin Watson <cjwatson@ubuntu.com>
10405
10406 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
10407 scratch area. Make sure to initialise chosen in standalone mode as
10408 well as non-standalone.
10409 Reported by: Robert Hooker and Andy Whitcroft.
10410 Tested by: Andy Whitcroft.
10411
d060ad60
CW
104122010-12-21 Colin Watson <cjwatson@ubuntu.com>
10413
10414 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
10415 constructing a new unescaped string and passing it to grub_xputs in
10416 one go, rather than passing characters to grub_printf one at a time.
10417
b889cfad
CW
104182010-12-21 Colin Watson <cjwatson@ubuntu.com>
10419
10420 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
10421 initialising utf16.
10422
4e01b6c8
CW
104232010-12-21 Colin Watson <cjwatson@ubuntu.com>
10424
10425 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
10426 comment. Add an extra layer of quotation, requiring the output of
10427 this function to be used in a printf format string.
10428 (gettext_printf): New function.
10429 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
10430 Extract translatable strings from here-documents and use a temporary
10431 variable instead, so that xgettext can find them.
10432 * util/grub.d/10_kfreebsd.in: Likewise.
10433 * util/grub.d/10_linux.in: Likewise.
10434 * util/grub.d/20_linux_xen.in: Likewise.
10435
10436 * po/grub.d.sed: New file.
10437 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
10438 arguments. Set c-format flags on all strings extracted from
10439 util/grub.d/ (xgettext refuses to include these itself for strings
10440 it extracted from a shell file, but these really are c-format).
10441
5318fe98
VS
104422010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
10445 Avoid next pointing to nowhere.
10446
6c85b743
VS
104472010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
10450 rather than assuming than rootblock is exactly in the middle.
10451 (grub_affs_label): Likewise.
10452
a2a08a35
VS
104532010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10454
10455 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
10456 reserved_first_sector to 0.
10457 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
10458 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
10459 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
10460
7059d1ec
VS
104612010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 Fix handling of UTF-16 UDF labels.
10464
10465 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
10466 (read_string): .. here.
10467 (grub_udf_label): Use read_string.
10468
30aff4cb
BC
104692010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
10470
10471 * grub-core/normal/menu_entry.c (run): Execute commands from menu
10472 editor under argument scope.
10473 Reported by: Jordan Uggla
10474
5cf86f4b
VS
104752010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
10478
32570200
CW
104792010-12-18 Colin Watson <cjwatson@ubuntu.com>
10480
10481 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
10482 line, and other keys scroll an entire page (previous handling was
10483 for \r and \n to scroll a page and other keys to scroll two lines).
10484
e1dffcf2
VS
104852010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10486
10487 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
10488 Set ptrdest to correct get_physical_target_address rather than
10489 incorrect get_virtual_current_address.
10490
b04298cf 104912010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
10492
10493 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
10494 correct cat to grub_uint8_t * rather than grub_uint32_t *.
10495
5367ecd3
CW
104962010-12-10 Colin Watson <cjwatson@ubuntu.com>
10497
10498 * .bzrignore: Ignore grub-core/rs_decoder.S.
10499
1fb430f8
CW
105002010-12-10 Colin Watson <cjwatson@ubuntu.com>
10501
10502 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
10503 .mo/.mo.gz opening sequence to ...
10504 (grub_mofile_open_lang): ... here.
10505 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
10506 * util/grub.d/00_header.in (grub_lang): Include country part of
10507 locale.
10508 Reported by: Mario Limonciello.
10509
a94a6671
RM
105102010-12-09 Robert Millan <rmh@gnu.org>
10511
10512 * NEWS: Document addition of ZFS support.
10513
24b7938b
CW
105142010-12-04 Colin Watson <cjwatson@ubuntu.com>
10515
10516 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
10517 rather than `/ 2', as the latter requires -Wa,--divide which would
10518 require bumping our minimum binutils version.
10519
bddc3ef6
BC
105202010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
10521
10522 * util/grub-script-check.c (main): Print script line number on
10523 error.
10524
bf78d5b2
RM
105252010-12-01 Robert Millan <rmh@gnu.org>
10526
10527 * grub-core/fs/zfs/zfs.c: New file.
10528 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
10529 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
10530 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
10531 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10532
10533 * include/grub/zfs/dmu.h: Likewise.
10534 * include/grub/zfs/dmu_objset.h: Likewise.
10535 * include/grub/zfs/dnode.h: Likewise.
10536 * include/grub/zfs/dsl_dataset.h: Likewise.
10537 * include/grub/zfs/dsl_dir.h: Likewise.
10538 * include/grub/zfs/sa_impl.h: Likewise.
10539 * include/grub/zfs/spa.h: Likewise.
10540 * include/grub/zfs/uberblock_impl.h: Likewise.
10541 * include/grub/zfs/vdev_impl.h: Likewise.
10542 * include/grub/zfs/zap_impl.h: Likewise.
10543 * include/grub/zfs/zap_leaf.h: Likewise.
10544 * include/grub/zfs/zfs.h: Likewise.
10545 * include/grub/zfs/zfs_acl.h: Likewise.
10546 * include/grub/zfs/zfs_znode.h: Likewise.
10547 * include/grub/zfs/zil.h: Likewise.
10548 * include/grub/zfs/zio.h: Likewise.
10549 * include/grub/zfs/zio_checksum.h: Likewise.
10550
10551 * Makefile.util.def: Build ZFS into libgrubmods.
10552 * grub-core/Makefile.core.def: Build zfs.mod.
10553
3f0f3831
SJ
105542010-11-30 Szymon Janc <szymon@janc.net.pl>
10555
10556 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
10557 variable.
10558 * grub-core/commands/wildcard.c (match_files): Likewise.
10559
3a4253b2
RM
105602010-11-30 Robert Millan <rmh@gnu.org>
10561
10562 * grub-core/loader/i386/bsd.c
10563 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
10564 whether kernel is loaded using grub_loader_is_loaded(), rather
10565 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
10566 certain error conditions.
10567
8c317b27
RM
105682010-11-30 Robert Millan <rmh@gnu.org>
10569
c5c9cd3e
RM
10570 * grub-core/commands/echo.c: Include `<grub/term.h>'.
10571 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 10572
49d3ab46
VS
105732010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 Avoid using tricks for initialising endian variables.
10576
10577 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
10578 Make const.
10579 (GRUB_MOD_INIT): Don't byte-swap.
10580 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
10581 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
10582 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
10583 (grub_swap_bytes32_compile_time): Likewise.
10584 (grub_cpu_to_le32_compile_time): Likewise.
10585 (grub_cpu_to_le16_compile_time): Likewise.
10586
f420a804
VS
105872010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * util/grub-setup.c (setup): Stop recommending --force. People who
10590 understand the dangers of blocklists are able to find this option
10591 anyway and the ones who don't shouldn't use it anyway.
10592
4e7db17b
RM
105932010-11-26 Robert Millan <rmh@gnu.org>
10594
10595 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
10596 Update all users.
10597
9be57a0d
CW
105982010-11-26 Colin Watson <cjwatson@ubuntu.com>
10599
10600 Fix LVM-on-RAID probing.
10601
10602 * util/grub-probe.c (probe): Remember which disk was detected as
10603 RAID (perhaps an LVM physical volume). Use that disk's raidname
10604 rather than that of the top-level disk.
10605
2c7859b3 106062010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 10607
d7647bb6
BC
10608 Fix cmdline argument quotes for setparams command of menuentry
10609 definitions.
7e623b0d
BC
10610
10611 * grub-core/commands/menuentry.c (setparams_prefix): Use single
10612 quotes for arguments.
f866fe80 10613 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 10614 grub_strchrsub function instead.
f866fe80 10615
7955bea0 10616 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 10617
74f72a64
CW
106182010-11-24 Colin Watson <cjwatson@ubuntu.com>
10619
10620 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
10621 effort by skipping "." and ".." entries up-front.
10622 Suggested by: Michael Lazarev.
10623
5a407278
CW
106242010-11-24 Colin Watson <cjwatson@ubuntu.com>
10625
10626 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
10627 ldflags to ldadd, to fix link line ordering.
10628 (none_decompress): Likewise.
10629
3030d8ec
CW
106302010-11-24 Colin Watson <cjwatson@ubuntu.com>
10631
10632 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
10633 platforms.
10634 (grub-emu-lite): Remove kern/emu/cache.S.
10635
b7fbac12
CW
106362010-11-23 Colin Watson <cjwatson@ubuntu.com>
10637
10638 * util/deviceiter.c (compare_devices): If the by-id link for a
10639 device couldn't be resolved, fall back to sorting by the by-id link
10640 rather than segfaulting.
10641 Reported and tested by: Daniel Mierswa.
10642
5225f328
CW
106432010-11-23 Colin Watson <cjwatson@ubuntu.com>
10644
10645 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
10646 ldflags, to fix link line ordering.
10647
038b3ce8
CW
106482010-11-23 Colin Watson <cjwatson@ubuntu.com>
10649
10650 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
10651 linkers are picky about this.
10652
bf16e98e
CW
106532010-11-23 Colin Watson <cjwatson@ubuntu.com>
10654
10655 * grub-core/Makefile.am (command.lst): Adjust sed expression
10656 ordering so that extended and priority commands aren't treated as
10657 ordinary commands.
10658
7242bab6
CW
106592010-11-23 Colin Watson <cjwatson@ubuntu.com>
10660
10661 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
10662 Remove byte-swapping function calls, which are not valid in
10663 structure initialisers.
10664 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
10665 non-const.
10666 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
10667 grub_gpt_partition_type_bios_boot.
10668
14e8b279
CW
106692010-11-22 Colin Watson <cjwatson@ubuntu.com>
10670
10671 Fix test program build on GNU/kFreeBSD.
10672
10673 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
10674 $(LIBNVPAIR)' library dependencies.
10675
e6f63338 106762010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
10677
10678 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
10679
cf8ffc38
CW
106802010-11-22 Colin Watson <cjwatson@ubuntu.com>
10681
10682 * util/grub-install.in: Remove excessive quoting that broke
10683 installations to RAID devices.
10684
7f8b0fd7
VS
106852010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10686
10687 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
10688 bootloader version instead of 0.
10689
dfd240b1
VS
106902010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10691
10692 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
10693 warning.
10694
7b61e609
VS
106952010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
10698 retrieve the metadat sector if size isn't known.
10699 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10700
9dfe92d0
RM
107012010-11-18 Robert Millan <rmh@gnu.org>
10702
10703 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
10704 with grub_memcmp().
10705
41cc919e
VS
107062010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
10709 arrow.
10710 Reported by: Jordan Uggla.
10711
1afcc914
VS
107122010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10713
10714 Make better UTF compliant.
10715
10716 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
10717 sequences as incorrect.
10718 (grub_is_valid_utf8): Likewise.
10719 (grub_utf8_to_ucs4): Likewise.
10720 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
10721 (grub_ucs4_to_utf8_alloc): Likewise.
10722 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
10723
f1808884
VS
107242010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 Make legacy_source behave like source.
10727
10728 * grub-core/commands/legacycfg.c (legacy_file): Don't call
10729 grub_show_menu.
10730 (grub_cmd_legacy_source): Call grub_show_menu if needed.
10731
24ec575b
CW
107322010-11-16 Colin Watson <cjwatson@debian.org>
10733
10734 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
10735 (-Wunused implies -Wunused-parameter, but not vice versa).
10736
72b7c7aa
CW
107372010-11-16 Colin Watson <cjwatson@ubuntu.com>
10738
10739 * configure.ac: Make error messages less confusing by testing for
10740 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
10741 accepted, but produces a diagnostic if something else is wrong).
10742
e98937aa
VS
107432010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
10744
10745 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
10746 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
10747 (now unused).
10748 (grub_keyboard_controller_init)
10749 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
10750 read the initial state since controller isn't inited yet.
10751
f6bbabc3
VS
107522010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
10755 allocate_regbeg may need to create new chunk header.
10756
22e7dbb2
VS
107572010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 Fix quoting in legacy parser.
10760
10761 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
10762 single quotes.
10763 (grub_legacy_parse): Likewise.
10764 Reported by: Jordan Uggla.
10765 Tested by: Jordan Uggla.
10766
03f80960
VS
107672010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 Don't add -lgcc on i386 and x86_64.
10770
10771 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
10772 * conf/Makefile.common (LDADD_KERNEL): Likewise.
10773 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
10774
779dc15b
VS
107752010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * configure.ac: Add -Wno-trampolines when supported.
10778
d20a3b37
MV
107792010-11-14 Modestas Vainius <modax@debian.org>
10780
10781 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
10782 fakeraid.
10783
e5360933
GC
107842010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10785
10786 Add generic logical block size support for UDF.
10787
10788 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
10789 (GRUB_UDF_BLKSZ): Removed.
10790 (struct grub_udf_data): New field "lbshift" to hold the logical block
10791 size of the file system in log2 format. All users updated.
10792 (sblocklist): Change type to unsigned.
10793 (grub_udf_mount): Change type of "sblklist" to unsigned.
10794 Move AVDP search before VRS recognition, because the latter requires
10795 knowledge of the logical block size, which is detected during the
10796 former.
10797 Detect and validate logical block size during AVDP search, adding
10798 support for block sizes 512, 1024 and 4096.
10799 Make VRS recognition independent of block size.
10800
cb0229c5
GC
108012010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10802
10803 Properly handle deleted files on UDF.
10804
10805 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
10806 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
10807 set.
10808
406858a8
GC
108092010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
10810
10811 Support reading files larger than 2 GiB.
10812
10813 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
10814 "offset" to grub_off_t.
10815 (grub_udf_read_file): Likewise for parameter "pos".
10816
130da6a7
VS
108172010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
10820 unavailable.
10821 (Simple configuration): Refer to Changes from GRUB Legacy about
10822 save_env availability.
10823
65e93f6b
VS
108242010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * util/grub-install.in: Ignore empty partition table detection
10827 instead of trying to include part_ module.
10828
1fd08bf1
VS
108292010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
10832 LVM on RAID support.
10833
de1a024f
VS
108342010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 Properly define WORDS_BIGENDIAN in wrapped environments.
10837
10838 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
10839 definition.
10840 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
10841
10842 Reported by: Manoel Rebelo Abranches.
10843 Tested by: Manoel Rebelo Abranches.
10844
bc5dd0b9
VS
108452010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * util/grub-mkconfig.in: Fix quoting.
10848
58c184be
VS
108492010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10850
10851 Support big ext2 files.
10852
10853 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
10854 (grub_ext2_read_block): Support triple indirect blocks.
10855 (grub_ext2_read_file): Use 64-bit types and read size_high.
10856 (grub_ext2_open): Read size_high.
10857 Reported by: Ximin Luo.
10858 Tested by: Manoel Rebelo Abranches.
10859
5f0c02b3
VS
108602010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * util/grub-install.in: Handle filenames containing spaces.
10863 Reported by: Jordan Uggla.
10864 Tested by: Jordan Uggla.
10865
4417aae6
VS
108662010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 * util/grub-mkconfig.in (grub_script_check): New variable.
10869 Use grub_script_check instead of grub-script-check.
10870 Reported by: Barry Jackson.
10871
7625a68e
VS
108722010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * docs/grub.texi (menu): Correct the order.
10875 Reported by: D. Hugh Redelmeier.
10876
10001ac5
VS
108772010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
10880 jump.
10881
9c4cf53b
MRA
108822010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
10883
10001ac5
VS
10884 * include/grub/elfload.h (grub_elf32_size): New parameter.
10885 All users updated.
9c4cf53b
MRA
10886 Return maximum segments alignment.
10887 (grub_elf64_size): Likewise.
10888 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
10889 Return maximum segments alignment.
10890 (grub_elf64_size): Likewise.
10891 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
10892 (grub_linux_claimmap_iterate): New function. Uses the
10893 "available" property in the "memory" node for memory allocation
10894 for kernel in the PowerPC loader.
9c4cf53b
MRA
10895 (grub_linux_load32): Correctly find linux entry point offset.
10896 (grub_linux_load64): Likewise.
10897
d2bf06bf
RM
108982010-11-07 Robert Millan <rmh@gnu.org>
10899
10900 On mips-yeeloong, build with -march=loongson2f when this flag is
10901 available (GCC >= 4.4).
10902 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
10903 `-march=mips3'.
10904 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
10905 or otherwise add -march=mips3.
10906
898c99a2
BC
109072010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
10908
87220a68
BC
10909 Suppress shell expansion on echo '*' and echo "*" like cases.
10910 Reported by: Jordan Uggla.
898c99a2
BC
10911
10912 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
10913 string arguments before shell expansion.
10914 * tests/grub_cmd_echo.in: New testcases.
10915
4f9b406a
RM
109162010-11-07 Robert Millan <rmh@gnu.org>
10917
10918 * conf/mips-qemu-mips.rmk: Remove stale file from previous
10919 transition.
10920
80c6d25e
VS
109212010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * grub-core/kern/emu/hostdisk.c
10924 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
10925
4a1a0153
VS
109262010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
10929 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
10930 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
10931
34706ddc
VS
109322010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
10935
6972dea9
VS
109362010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 * util/grub-install.in: Replace useless recomendation to pass
10939 --modules with a recomendation to report a bug.
10940
9c693bd6
VS
109412010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 Properly register serial terminfo.
10944 Reported by: Jordan Uggla
10945
10946 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
10947 const.
10948 (grub_serial_terminfo_output_template): Likewise.
10949 (grub_cmd_serial): Register "serial" with terminfo.
10950 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
10951 grub_serial_terminfo_output.
10952
6c9e4c0c
RM
109532010-11-05 Robert Millan <rmh@gnu.org>
10954
10955 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
10956 needed).
10957
b9b3839f
RM
109582010-11-05 Robert Millan <rmh@gnu.org>
10959
10960 On Yeeloong, pass machine type information to Linux.
10961
10962 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
10963 (LOONGSON_MACHTYPE): New macro, set to
10964 "machtype=lemote-yeeloong-2f-8.9inches".
10965 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
10966 additional argument to Linux.
10967
1a3aaff4
RM
109682010-11-04 Robert Millan <rmh@gnu.org>
10969
10970 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
10971 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
10972 (its SATA disks are detected as slaveless IDE master drives on
10973 kFreeBSD).
10974 Reported by Carsten Aulbert.
10975
a75f4f62
CW
109762010-11-02 Colin Watson <cjwatson@ubuntu.com>
10977
10978 * util/bin2h.c (main): Fix spelling error in generated output.
10979
33b4b0c6
GS
109802010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
10981
10982 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
10983
2b36fbf4
VS
109842010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
10987 vga= option is supplied.
10988
74aaf558
VS
109892010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
10992 * util/grub.d/10_kfreebsd.in: Likewise.
10993 * util/grub.d/10_linux.in: Likewise.
10994 * util/grub.d/20_linux_xen.in: Likewise.
10995
6428dec3
VS
109962010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10997
10998 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
10999 argument as an argument to no-argument option.
11000
f8729d98
VS
110012010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11002
11003 * util/grub.d/10_linux.in: Add missing load_video with explicit
11004 GRUB_GFXPAYLOAD_LINUX.
11005
89d68fa6
VS
110062010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
11009
3a1197cd
VS
110102010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
11013 elements with invlid index.
11014 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11015 * grub-core/disk/raid.c (insert_array): Automatically reallocate
11016 members.
11017 * include/grub/raid.h (grub_raid_member): New struct.
11018 (grub_raid_array): Transform devices and start_sector into usage of
11019 grub_raid_member. All users updated
11020 (allocated_devs): New member.
11021
71574288
VS
110222010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11023
11024 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
11025 is modified
11026
8d40ec65
BC
110272010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
11028
11029 NetBSD build fix for getline function conflict from gnulib.
11030
11031 * Makefile.util.def (libgrubkern.a): New library for grub kernel
11032 components that depend on gnulib headers.
11033 (libgrubmods.a): Renamed from earlier libgrub.a.
11034 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
11035
95b9257e
VS
110362010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
11039 install rather than creating a broken install.
11040
26c53dc6
VS
110412010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * util/grub-setup.c (argp): Remove misleading example of installing to
11044 a partition.
11045
4171b3c5
VS
110462010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 * util/grub-setup.c (setup): Clarify the error message.
11049
18568d18
VS
110502010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
11053
4f6a2e21
VS
110542010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 * grub-core/kern/emu/misc.c
11057 (grub_make_system_path_relative_to_its_root)
11058 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
11059
110602010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
11061
11062 * grub-core/kern/emu/misc.c
11063 (grub_make_system_path_relative_to_its_root): Revert r2882.
11064
e138c458
VS
110652010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
11068 useless field head. All users updated.
11069 (free_subchunk): Correct handling of IN_REGION subchunk.
11070
0cbcdf0e
CW
110712010-10-22 Colin Watson <cjwatson@ubuntu.com>
11072
11073 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
11074 (Supported kernels): Likewise.
11075
b65ea155
GS
110762010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
11077
11078 Make mktemp invocations portable.
11079
11080 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
11081 exit if mktemp fails.
11082 * tests/grub_script_blockarg.in: Likewise.
11083 * tests/partmap_test.in: Likewise.
11084 * tests/util/grub-shell-tester.in: Likewise.
11085 * tests/util/grub-shell.in: Likewise.
11086 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11087 * Makefile.am: Likewise, and chain shell commands with `&&'
11088 instead of ';'.
11089 * util/grub-mkrescue.in: Use the same explicit template as above, and
11090 exit if mktemp fails.
11091
05f43cdd
BC
110922010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
11093
11094 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
11095 Linux kernel, reported by Dennis Schridde.
11096
800e6a9b
SJ
110972010-10-17 Szymon Janc <szymon@janc.net.pl>
11098
11099 * grub-core/normal/auth.c (grub_auth_check_authentication):
11100 Set-but-not-used variable removed.
11101
d82df574
VS
111022010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11103
11104 * docs/grub.texi (GNU/Linux): Document APM unavailability with
11105 32-bit linux protocol.
11106
7bced458
VS
111072010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
11110 cursor shape for sanity.
11111
5b027690
VS
111122010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 * docs/grub.texi (Installation): Document buggy BIOS install.
11115
ba5f65cf
VS
111162010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 * docs/grub.texi (Installation): Indent.
11119
fdf2ec9c
VS
111202010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * util/grub-setup.c (setup): New parameter allow_floppy.
11123 (arguments): New member allow_floppy.
11124 (argp_parser): Handle --allow-floppy.
11125 (main): Pass allow_floppy.
11126 * util/grub-install.in: New option --allow-floppy passed though to
11127 grub-setup.
11128
861dfd4c
VS
111292010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 * util/grub-install.in: Handle partitionless disks.
11132
f77a8c24
VS
111332010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * util/grub-setup.c (setup): Don't clean blocklists before readability
11136 verfification.
11137
27d9ee32
VS
111382010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 * docs/grub.texi (Installation): Document embedding zone. Remove
11141 obsolete grub-install example.
11142
6bdda8f8
SJ
111432010-10-16 Szymon Janc <szymon@janc.net.pl>
11144
11145 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
11146 Set-but-not-used variable ifdef'ed.
11147 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
11148 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
11149 variable removed.
11150 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
11151 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
11152 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11153 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
11154 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
11155 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11156 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
11157 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
11158 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
11159 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
11160 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
11161 Likewise.
11162
e19b016b
VS
111632010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
11166 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
11167 enum value.
11168
6c8d3002
VS
111692010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
11172 synonym to _S5_. Needed for some DSDTs.
11173
c32b51c9
VS
111742010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 Userspace ACPI parser debugging.
11177
11178 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
11179 headers and add relevant defines. Don't include standard headers.
11180 (main) [GRUB_DSDT_TEST]: New function.
11181 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
11182 Don't declare functions.
11183
fbfbeb39
VS
111842010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 Remove dead grub_efi_mm_fini.
11187
11188 * grub-core/kern/efi/mm.c (allocated_page): Removed.
11189 (ALLOCATED_PAGES_SIZE): Likewise.
11190 (MAX_ALLOCATED_PAGES): Likewise.
11191 (allocated_pages): Likewise.
11192 (grub_efi_allocate_pages): Don't record allocated pages.
11193 (grub_efi_free_pages): Likewise.
11194 (grub_efi_mm_init): Likewise.
11195 (grub_efi_mm_fini): Removed.
11196
65f7ed7c
VS
111972010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
11200 (grub_efi_mm_init): Take into account the memory map size increase.
11201
24977b44
VS
112022010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
11205 (serial_hw_put): Wait based on real time rather than port reads. Don't
11206 roken ports.
11207 * include/grub/serial.h (grub_serial_port): New field broken.
11208
1eb01cd2
RM
112092010-10-16 Robert Millan <rmh@gnu.org>
11210
11211 * grub-core/kern/emu/misc.c
11212 (grub_make_system_path_relative_to_its_root): Fix premature return
11213 when processing non-root ZFS filesystems.
5f8b440b 11214 Reported by Sergio Talens-Oliag.
1eb01cd2 11215
2d5fed60
RM
112162010-10-15 Robert Millan <rmh@gnu.org>
11217
11218 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
11219 guarantee compressed ones are processed first.
11220
d0f4c1ea
VS
112212010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11222
11223 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
11224 grub_efiemu_autocore.
11225
d87c681f
VS
112262010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
11229 rather than 0x1b.
11230 (grub_console_getkey): Use correct jae opcode rather than ja.
11231
219b3564
RM
112322010-10-12 Robert Millan <rmh@gnu.org>
11233
11234 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
11235 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
11236 variable. All references updated.
11237
11238 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
11239
20c6bb7e
VS
112402010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 Correctly distinguish mdraid flavours.
11243
11244 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
11245 (insert_array): New argument raid.
11246 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
11247 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
11248 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
11249
74baff84
VS
112502010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
11251
11252 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
11253 handling of special keys.
11254
3ef068df 112552010-10-02 Aleš Nesrsta <starous@volny.cz>
11256
c7980ad9
VS
11257 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
11258 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 11259
a9455194 112602010-10-02 Aleš Nesrsta <starous@volny.cz>
11261
c7980ad9
VS
11262 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
11263 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
11264 users updated.
a9455194 11265 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 11266 Use right endpoint when querying descriptor.
a9455194 11267
441cfe65
VS
112682010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 Clear out 0x80 color bit on EFI.
11271 Tested by: decoder
11272 Reported by: decoder and meta tech.
11273
11274 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
11275 (grub_console_setcolorstate): Clear out 0x80 bit.
11276 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
11277 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
11278 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
11279
bf26bcc4
VS
112802010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
11283 Set to "auto".
11284
6e3c515d
VS
112852010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
11288 mo_file after freeing.
11289
e6d983ba
VS
112902010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
11293
74ccb5b5
VS
112942010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
11297 flags.
11298
17821956
VS
112992010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
11302 usage.
11303
ee74fa48
VS
113042010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 Put terminfo into core on ieee1275 and yeeloong (needed for console).
11307
11308 * gentpl.py: New groups terminfoinkernel and terminfomodule.
11309 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
11310 and terminfo.h when needed.
11311 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
11312 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
11313 (terminfo): Enable only on terminfokernel.
11314 (extcmd): Likewise.
11315 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
11316 * include/grub/lib/arg.h: Likewise.
11317 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
11318 incorrect usage of ->.
11319
aa438e68
VS
113202010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
11323 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
11324
57994012
VS
113252010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 Fix coreboot compilation.
11328
11329 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11330 Take VBE info into account even if only text is supported.
11331 (fill_vbe_info): Take into account the case when only VGA text
11332 is supported.
11333 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
11334 on coreboot, multiboot and qemu.
11335
2a406611
VS
113362010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
11339 debug messages.
11340 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
11341
d33613fc
VS
113422010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
11345 parameters.
11346
44a1b432
VS
113472010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11348
11349 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
11350 if they were BSD-style.
11351
edde54e6
VS
113522010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 * grub-core/boot/i386/pc/lnxboot.S: Replace
11355 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
11356 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
11357
b65830fa
VS
113582010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 Write embedding zone using Reed-Solomon.
11361
11362 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
11363 * grub-core/Makefile.am (rs_decoder.S): New target.
11364 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
11365 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
11366 (multiboot): Move to RS part.
11367 (post_reed_solomon): New label.
11368 (grub_boot_drive): Move to non-RS part since it's modified in memory
11369 on boot.
11370 Include rs_decoder.S.
11371 * grub-core/lib/reed_solomon.c: New file.
11372 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
11373 New definition.
11374 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
11375 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
11376 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
11377 * include/grub/partition.h (grub_partition_map): Change prototype of
11378 embed to allow returning additional sectors.
11379 * include/grub/reed_solomon.h: New file.
11380 * util/grub-setup.c (setup): Handle Reed-Solomon.
11381
0b4b227f
CW
113822010-09-28 Colin Watson <cjwatson@ubuntu.com>
11383
11384 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
11385 i386 and x86-64 definedness tests.
11386
f772623b
YB
113872010-09-27 Yves Blusseau <blusseau@zetam.org>
11388
11389 Fix generation of kernel_syms.lst
11390
11391 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
11392 ASM_PREFIX
11393
8e57a6ca
RM
113942010-09-26 Robert Millan <rmh@gnu.org>
11395
11396 Support degraded ZFS arrays in "grub-probe -t device" resolution.
11397
11398 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
11399 the pool is an array of devices, iterate through it and return the
11400 first device that passes a stat() test (instead of blindly returning
11401 the first one).
11402
f9130836
RM
114032010-09-26 Robert Millan <rmh@gnu.org>
11404
11405 Build fixes for GNU/kFreeBSD.
11406
11407 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
11408 to programs that require ZFS conversion.
11409 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
11410 kernels that don't have FLOPPY_MAJOR.
11411
96510faf
BC
114122010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
11413
11414 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
11415
449333eb
BC
114162010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
11417
11418 Fix grub-emu build.
11419
11420 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
11421 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
11422 mdraid09 and mdraid1x.
11423
e1fd1939
CW
114242010-09-24 Colin Watson <cjwatson@ubuntu.com>
11425
11426 Re-enable grub-extras.
11427
11428 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
11429 avoid confusing Automake. Run autogen only twice, once for the top
11430 level and once for grub-core. Add Makefile.util.def and
11431 Makefile.core.def from extra modules to the appropriate autogen
11432 invocations. If Makefile.common exists in an extra module, include
11433 it in both Makefile.util.am and grub-core/Makefile.core.am;
11434 similarly, include any Makefile.util.common file in Makefile.util.am
11435 and any Makefile.core.common file in grub-core/Makefile.core.am.
11436 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
11437 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
11438 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
11439 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
11440
11441 * gentpl.py (gvar_add): Turn GVARS into a set.
11442 (global_variable_initializers): Sort global variables on output.
11443 (vars_init): New function.
11444 (first_time): Likewise.
11445 (library): Ensure that non-global variable initialisations are
11446 emitted before the first time we emit code for a library block.
11447 Append to variables rather than setting them. Only emit
11448 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
11449 each conditional path.
11450 (program): installdir() emits an Autogen macro, so must be passed to
11451 var_add rather than gvar_add.
11452 (data): Likewise.
11453 (script): Likewise.
11454 (rules): New function, centralising handling for different target
11455 types. Set up Guile association lists for first_time and vars_init,
11456 and send most output to a diversion so that variable initialisations
11457 can be emitted first.
11458 (module_rules): Use new rules function.
11459 (kernel_rules): Likewise.
11460 (image_rules): Likewise.
11461 (library_rules): Likewise.
11462 (program_rules): Likewise.
11463 (script_rules): Likewise.
11464 (data_rules): Likewise.
11465
11466 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
11467
11468 * .bzrignore: Add contrib and grub-core/contrib. Remove
11469 grub-core/Makefile.gcry.am.
11470
1d12cf29
YB
114712010-09-24 Yves Blusseau <blusseau@zetam.org>
11472
11473 * grub-core/lib/LzFind.c: Add missing include.
11474 * grub-core/lib/LzmaEnc.c: Likewise.
11475 * grub-core/script/lexer.c: Likewise.
11476 * grub-core/script/yylex.l: Likewise.
11477 * util/grub-macho2img.c: Likewise.
11478 * util/grub-menulst2cfg.c: Likewise.
11479 * util/grub-mklayout.c: Likewise.
11480 * util/grub-mkpasswd-pbkdf2.c
11481 * util/grub-mkrelpath.c: Likewise.
11482 * util/resolve.c: Likewise.
11483
dd363028
BC
114842010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
11485
11486 * Makefile.util.def (example_unit_test): Add
11487 grub-core/gnulib/libgnu.a.
11488
f5a109e2
GS
114892010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
11490
11491 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
11492
6d0fa83c
VS
114932010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 Support xz compression on yeeloong.
11496
11497 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
11498 * configure.ac: Check for LZMA.
11499 * grub-core/Makefile.core.def (xz_decompress): New target.
11500 (none_decompress): Likewise.
11501 * grub-core/boot/decompressor/minilib.c: New file.
11502 * grub-core/boot/decompressor/none.c: Likewise.
11503 * grub-core/boot/decompressor/xz.c: Likewise.
11504 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
11505 * grub-core/kern/mips/cache_flush.S: Likewise.
11506 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
11507 * grub-core/kern/mips/startup.S: Move first stage to ...
11508 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
11509 nomacro.
11510 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
11511 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
11512 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
11513 Allocate statically.
11514 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
11515 Allocate statically or use scratch. Don't check CRC32.
11516 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
11517 Allocate statically. Don't check CRC32.
11518 * include/grub/decompressor.h: New file.
11519 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
11520 Removed.
11521 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
11522 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
11523 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
11524 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
11525 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
11526 * util/grub-mkimage.c (grub_compression_t): New type.
11527 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
11528 (image_target_desc): New field default_compression.
11529 (image_targets): Adjust yeeloong targets.
11530 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
11531 (compress_kernel): New parameter comp.
11532 (generate_image): Likewise. Handle new compression case.
11533 (options): New option --compression
11534 (help): Likewise.
11535 (main): Handle new option.
11536
1b655af6
GS
115372010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
11538
11539 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
11540
8f03f0b5
CW
115412010-09-22 Colin Watson <cjwatson@ubuntu.com>
11542
11543 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
11544 typo in __i386__ conditional.
11545
7835dfd3
VS
115462010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
11549 include.
11550
e255597e
VS
115512010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
11552
6d0fa83c 11553 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
11554
11555 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
11556 new tags as supported.
11557 (acpiv2_size): New function.
11558 (grub_multiboot_get_mbi_size): Take new tags into account.
11559 (grub_multiboot_make_mbi): Add new tags.
11560 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 11561
6cc14051 115622010-09-21 Aleš Nesrsta <starous@volny.cz>
11563
11564 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
11565 Added missing configuration of USB device.
11566
df7769d8
CW
115672010-09-21 Colin Watson <cjwatson@ubuntu.com>
11568
11569 * grub-core/normal/menu_entry.c (run): Make sure we always return
11570 a value.
11571
b031012d
CW
115722010-09-21 Colin Watson <cjwatson@ubuntu.com>
11573
11574 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
11575 NumberOfPages is UINT64 according to the UEFI specification, not
11576 UINTN. Fix printf format.
11577
174de8f3
CW
115782010-09-21 Colin Watson <cjwatson@ubuntu.com>
11579
11580 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
11581 `err' to grub_usb_err_t.
11582 Reported and tested by: KESHAV P.R.
11583
d7dbe923
CW
115842010-09-21 Colin Watson <cjwatson@ubuntu.com>
11585
11586 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
11587 tpart non-const, so that we can assign to it. (Since this is a
11588 typedef, the constness refers to the pointer rather than what it
11589 points to.)
11590
8d5e2af3
CW
115912010-09-21 Colin Watson <cjwatson@ubuntu.com>
11592
11593 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
11594 $(top_srcdir)/grub-core/gnulib as well as
11595 $(top_builddir)/grub-core/gnulib.
11596 Reported by: KESHAV P.R.
11597
5c527783
CW
115982010-09-21 Colin Watson <cjwatson@ubuntu.com>
11599
11600 * util/grub-install.in: Fix the bootloader ID option to be
11601 consistently --bootloader-id, not --bootloader_id.
11602 Reported by: KESHAV P.R.
11603
d309a16e
CW
116042010-09-21 Colin Watson <cjwatson@ubuntu.com>
11605
11606 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
11607 check hash checksum." consistently translatable.
11608
b830cd16
YB
116092010-09-21 Yves Blusseau <blusseau@zetam.org>
11610
11611 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
11612 $(top_builddir).
11613
c4fe27a8
CW
116142010-09-21 Colin Watson <cjwatson@ubuntu.com>
11615
11616 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
11617 (GRUB_MOD_INIT): Register sha1sum command.
11618 (GRUB_MOD_FINI): Unregister sha1sum command.
11619
a4c1d277
YB
116202010-09-21 Yves Blusseau <blusseau@zetam.org>
11621
11622 Keep boot and grub directory names in sync with utils scripts
11623
11624 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
11625 * config.h.in: Add previous macros.
11626 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
11627 * util/grub-install.in: Use $bootdir and $grubdir variables.
11628
4eff79d2
CW
116292010-09-21 Colin Watson <cjwatson@ubuntu.com>
11630
11631 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
11632 convert partition names to disk names if the new `convert' parameter
11633 is set.
11634 (grub_util_biosdisk_get_grub_dev): If opening the disk device
11635 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
11636 disk in its own right. This can happen with Xen disk images.
11637
934d7e44
YB
116382010-09-21 Yves Blusseau <blusseau@zetam.org>
11639
11640 * util/grub-editenv.c: Update strings to avoid warnings when generating
11641 grub.pot file.
11642 * util/grub-setup.c: Likewise.
934d7e44 11643
df3367cc
VS
116442010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
11645
11646 * configure.ac: Change version to 1.99~beta0.
11647
77a94e98
VS
116482010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
11649
11650 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
11651 Add BADRAM.
11652 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
11653 Likewise.
11654 * include/multiboot.h: Resynced with specification.
11655 * include/multiboot2.h: Likewise.
11656
269004c1
CW
116572010-09-21 Colin Watson <cjwatson@ubuntu.com>
11658
11659 Fix po directory handling.
11660
11661 * configure.ac: Create po/Makefile.in rather than po/Makefile.
11662 * grub-core/gnulib/Makefile.am: Import gettext module.
11663 * m4/gnulib-cache.m4: Likewise.
11664 * m4/gnulib-comp.m4: Likewise.
11665 * m4/gettext.m4: New file, from gnulib.
11666 * m4/glibc2.m4: Likewise.
11667 * m4/iconv.m4: Likewise.
11668 * m4/intdiv0.m4: Likewise.
11669 * m4/intl.m4: Likewise.
11670 * m4/intldir.m4: Likewise.
11671 * m4/intlmacosx.m4: Likewise.
11672 * m4/intmax.m4: Likewise.
11673 * m4/inttypes-pri.m4: Likewise.
11674 * m4/lcmessage.m4: Likewise.
11675 * m4/lib-ld.m4: Likewise.
11676 * m4/lib-link.m4: Likewise.
11677 * m4/lib-prefix.m4: Likewise.
11678 * m4/lock.m4: Likewise.
11679 * m4/nls.m4: Likewise.
11680 * m4/po.m4: Likewise.
11681 * m4/printf-posix.m4: Likewise.
11682 * m4/progtest.m4: Likewise.
11683 * m4/threadlib.m4: Likewise.
11684 * m4/uintmax_t.m4: Likewise.
11685 * m4/visibility.m4: Likewise.
11686 * po/Makefile.am: Remove.
11687 * po/Makefile.in.in: New file, from gettext.
11688 ($(DOMAIN).pot-update): Support POTFILES-shell.
11689 * po/Makevars: New file.
11690 * po/POTFILES-shell: Rename to ...
11691 * po/POTFILES-shell.in: ... this. Update.
11692 * po/POTFILES: Rename to ...
11693 * po/POTFILES.in: ... this. Update.
11694 * po/Rules-quot: New file, from gettext.
11695 * po/boldquot.sed: Likewise.
11696 * po/en@boldquot.header: Likewise.
11697 * po/en@quot.header: Likewise.
11698 * po/insert-header.sin: Likewise.
11699 * po/quot.sed: Likewise.
11700 * po/remove-potcdate.sin: Likewise.
11701
3e0fa5d0
VS
117022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11703
11704 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
11705
ade9bd66
VS
117062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * util/grub.d/20_linux_xen.in: Use submenus.
11709
fc55cc4c
VS
117102010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 Support submenus.
11713
11714 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
11715 parameter submenu. All users updated.
11716 * grub-core/normal/main.c (free_menu): Rename to ...
11717 (grub_normal_free_menu): ... this. Made global.
11718 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
11719 if requested.
11720 * grub-core/normal/menu_entry.c (screen): New field submenu.
11721 (make_screen): Set submenu.
11722 (run): Open new context if requested.
11723 * include/grub/menu.h (grub_menu_entry): New field submenu.
11724 * include/grub/normal.h (grub_normal_free_menu): New proto.
11725
600cedf7
VS
117262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 Menu entries extractor.
11729
11730 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
11731 variants.
11732 (GRUB_MOD_INIT): Register new variants.
11733 (GRUB_MOD_FINI): Unregister new variants.
11734 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
11735 into grub_cmd_legacy_source.
11736 (grub_cmd_legacy_source): Implement extractor variants.
11737 (GRUB_MOD_INIT): Register new variants.
11738 (GRUB_MOD_FINI): Unregister new variants.
11739 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
11740 as an extractor.
11741 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
11742 search as an extractor.
11743 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
11744 test as an extractor.
11745 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
11746 as an extractor.
11747 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
11748 (grub_env_new_context): New function.
11749 (grub_env_context_open): Likewise.
11750 (grub_env_extractor_open): Likewise.
11751 (grub_env_extractor_close): Likewise.
11752 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11753 grub_extractor_level.
11754 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
11755 * include/grub/env.h (grub_env_extractor_open): New proto.
11756 (grub_env_extractor_close): Likewise.
11757 * include/grub/normal.h (grub_extractor_level): New external variable.
11758
7bda3a87
VS
117592010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11760
11761 Make cutmem accept a region specification.
11762 Suggested by: Samuel Thibault
11763
11764 * grub-core/mmap/mmap.c (parsemem): New function.
11765 (grub_cmd_cutmem): Handle new arguments.
11766
2ea57f88
VS
117672010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 New command cutmem.
11770
11771 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
11772 (GRUB_MOD_INIT): Register new command.
11773 (GRUB_MOD_FINI): Unregister new command.
11774
74342e31
VS
117752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 Support some annoying BSD and Minix subpartitions.
11778
11779 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
11780 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
11781 Properly handle concatenation.
11782 * grub-core/kern/device.c (grub_device_iterate): Likewise.
11783 * grub-core/normal/completion.c (iterate_partition): Likewise.
11784 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
11785 contain partition. All users updated.
11786 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
11787 struct.
11788 (grub_openbsdlabel_partition_map): Likewise.
11789 (bsdlabel_partition_map_iterate): Rename to ..
11790 (iterate_real): ... this. New arguments sector, freebsd and pmap.
11791 (bsdlabel_partition_map_iterate): New function.
11792 (netopenbsdlabel_partition_map_iterate): Likewise.
11793 (netbsdlabel_partition_map_iterate): Likewise.
11794 (openbsdlabel_partition_map_iterate): Likewise.
11795 (GRUB_MOD_INIT): Register new partmaps.
11796 (GRUB_MOD_FINI): Unregister new partmaps.
11797 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
11798 (grub_partition_msdos_iterate): ... this. All users updated.
11799 Don't support embedding other than in a minix partition.
11800 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
11801 proto.
11802 * include/grub/partition.h (grub_partition): New field msdostype.
11803 * util/grub-install.in: Handle openbsd and netbsd types being in
11804 part_bsd module.
11805
1e8d555b
VS
118062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
11809
11810 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
11811 * grub-core/Makefile.core.def (mdraid): Renamed to ...
11812 (mdraid09): ... this.
11813 (mdraid1x): New module.
11814 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
11815 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
11816
899d8af4
VS
118172010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
11820 vsprintf.
11821
40901acd
CW
118222010-09-20 Colin Watson <cjwatson@ubuntu.com>
11823
11824 * grub-core/commands/efi/lsefimmap.c: Correct header.
11825 * NEWS: Update.
11826
dfe3b247
CW
118272010-09-20 Colin Watson <cjwatson@ubuntu.com>
11828
11829 * util/grub-editenv.c (argp_parser): Don't pass translated strings
11830 as printf format strings; the translations might contain '%' which
11831 could cause a crash.
11832 (main): Likewise.
11833 * util/grub-fstest.c (argp_parser): Likewise.
11834 * util/grub-setup.c (argp_parser): Likewise.
11835 (main): Likewise.
11836
3286a4b4
VS
118372010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11838
11839 Use argp in grub-fstest.
11840
11841 * util/grub-fstest.c: Don't include getopt.h.
11842 Include argp.h.
11843 (root): New variable.
11844 (args_count): Likewise.
11845 (nparm): Likewise.
11846 (num_disks): Likewise.
11847 (images): Likewise.
11848 (cmd): Likewise.
11849 (debug_str): Likewise.
11850 (args): Likewise.
11851 (options): Transformed to argp.
11852 (usage): Removed.
11853 (main): Split argument parsing into ...
11854 (argp_parser): ... this. Changed to argp format.
11855 (argp): New variable.
11856 (main): Use argp_parse.
11857
3dccbe4b
TG
118582010-09-20 Tristan Gingold <gingold@free.fr>
118592010-09-20 Robert Millan <rmh.grub@aybabtu.com>
118602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11861
11862 * grub-core/commands/efi/lsefimmap.c: New file.
11863 * grub-core/Makefile.core.def (lsefimmap): New module.
11864 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
11865
38c259a7
VS
118662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 Pause the execution (10s max) if any errors are displayed so the user
11869 has a chance to see them.
11870
11871 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
11872 (grub_print_error): Increment grub_err_printed_errors.
11873 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
11874 execution if any errors were displayed.
11875 (show_menu): Remove old code for pause.
11876 * grub-core/normal/menu_entry.c (run): Likewise.
11877 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
11878 users updated.
11879 (grub_normal_get_char_counter): Likewise.
11880 * include/grub/err.h (grub_err_printed_errors): New external variable.
11881 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
11882
f218b09c
VS
118832010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11884
11885 Support multiboot VBE info.
11886
11887 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11888 Take VBE info into account.
11889 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
11890 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
11891 Call fill_vbe_info when appropriate.
11892 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
11893 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
11894 as supported.
11895 (grub_multiboot_get_mbi_size): Take new tags into account.
11896 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
11897 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
11898 Call fill_vbe_tag when appropriate.
11899 (grub_multiboot_make_mbi): Properly align tags.
11900 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
11901 function.
11902 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
11903 proto.
11904 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
11905
a9cc5438
VS
119062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 Suport manual terminal geometry specification.
11909
11910 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
11911 Save state in grub_ofconsole_terminfo_output.
11912 (grub_ofconsole_term): Use grub_terminfo_getwh.
11913 (grub_ofconsole_getwh): Removed.
11914 * grub-core/term/serial.c (grub_serial_getwh): Removed.
11915 (grub_serial_term): Use grub_terminfo_getwh.
11916 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
11917 (options): New struct.
11918 (OPTION_*): New enum.
11919 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
11920 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
11921 width and height.
11922 (grub_terminfo_getwh): New proto.
11923 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
11924
1a8fed20
VS
119252010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 Handle legacy "terminal" command.
11928
11929 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
11930 and FLAG_TERMINAL.
11931 (legacy_commands): Add terminal and title.
11932 (grub_legacy_parse): Handle terminal. Simplify title handling.
11933
41e9c57d
VS
119342010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
11937 parameters overflow.
11938
61c874c5
CW
119392010-09-20 Colin Watson <cjwatson@ubuntu.com>
11940
11941 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
11942 widthspec.h.
11943
11944 * docs/grub.texi (Shell-like scripting): Document `!'.
11945 (Network): Simplify using new i386-pc-pxe format. Mention
11946 grub-mknetdir.
11947
11948 * NEWS: Update.
11949
943682b4
CW
119502010-09-20 Colin Watson <cjwatson@ubuntu.com>
11951
11952 * Makefile.am (SUBDIRS): Restore "."; it's important to force
11953 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
11954 when needed.
11955
6d3d698d
CW
119562010-09-20 Colin Watson <cjwatson@ubuntu.com>
11957
11958 * grub-core/commands/efi/lsefisystab.c: Correct header.
11959 * grub-core/commands/efi/lssal.c: Likewise.
11960 * grub-core/commands/testload.c: Likewise.
11961
c982589f
CW
119622010-09-20 Colin Watson <cjwatson@ubuntu.com>
11963
11964 * util/grub-mkrescue.in: Add explicit root argument to --set to
11965 prevent the UUID being interpreted as an argument to --set (matches
11966 previous change to prepare_grub_to_access_device).
11967
a63c31b6
CW
119682010-09-20 Colin Watson <cjwatson@ubuntu.com>
11969
11970 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
11971 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
11972 the verbosity of later #ifs.
11973 (find_partition_start): Define this function on FreeBSD too.
11974 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
11975 function.
11976 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
11977 on FreeBSD.
11978
6439b8ee
YB
119792010-09-20 Yves Blusseau <blusseau@zetam.org>
11980
11981 * util/grub-editenv.c: Use argp instead of getopt.
11982
c5930ec8
YB
119832010-09-20 Yves Blusseau <blusseau@zetam.org>
11984
11985 * util/grub-setup.c: Use argp instead of getopt.
11986
15c69261
YB
119872010-09-20 Yves Blusseau <blusseau@zetam.org>
11988
11989 Use gnulib-tool to create gnulib source files.
11990
11991 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
11992 grub-core/gnulib directories
11993 * .bzignore: Add **/.deps and autogenerated gnulib files
11994 * configure.ac: Assign auxiliary directory to build-aux, add invocation
11995 of gnulib macros, add grub-core/gnulib/Makefile
11996 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
11997 include m4 directory to aclocal.
11998 * Makefile.util.def: Remove direct compilation of gnulib source files
11999 and use the new grub-core/gnulib/libgnu.a.
12000 * build-aux/config.rpath: move config.rpath from top directory to
12001 build-aux
12002 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
12003 in gnulib headers
12004 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
12005 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
12006 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
12007 header.
12008 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
12009 string.
12010
e511c9f5
YB
120112010-09-20 Yves Blusseau <blusseau@zetam.org>
12012
12013 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
12014 grub-core/genmod.sh and grub-core/gensyminfo.sh
12015
c2dede05
BC
120162010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
12017
12018 Add a test for echo command options.
12019
12020 * tests/grub_cmd_echo.in: New test.
12021 * Makefile.util.def: Rules for new test.
12022
c55f5018
SJ
120232010-09-20 Szymon Janc <szymon@janc.net.pl>
12024
12025 Remove crc.mod and move crc command to hashsum.mod.
12026 Remove lib/crc.c - users updated to use gcrypt implementation.
12027
12028 * grub-core/commands/crc.c: Removed.
12029 * grub-core/Makefile.core.def (crc): Module removed.
12030 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
12031 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
12032 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
12033 * grub-core/lib/crc.c: Removed.
12034 * include/grub/lib/crc.h: Removed.
12035 * Makefile.util.def (crc): Remove lib/crc.c
12036 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
12037 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
12038 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
12039 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
12040 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
12041 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
12042
e0337366
VS
120432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
12046
742f9232
VS
120472010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 Split config.h for util and core.
12050
12051 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
12052 (ADDR32): Likewise.
12053 (DATA32): Likewise.
12054 (BSS_START_SYMBOL): Likewise.
12055 (END_SYMBOL): Likewise.
12056 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
12057 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
12058 * config.h.in: New file.
12059 * configure.ac: Use config-util.h as config define file.
12060 Rename MACHINE into GRUB_MACHINE. All users updated.
12061 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
12062 updated.
12063 (NESTED_FUNC_ATTR): Likewise.
12064 Substitue new variables.
12065 (COND_HAVE_ASM_USCORE): New conditional.
12066 * grub-core/Makefile.am (ASM_PREFIX): New variable.
12067 (kernel_syms.lst): Use ASM_PREFIX.
12068 * grub-core/kern/emu/console.c: Include config-util.h.
12069 * grub-core/kern/emu/misc.c: Likewise.
12070 * grub-core/kern/emu/mm.c: Likewise.
12071 * include/grub/emu/misc.h: Likewise.
12072 * include/grub/libgcc.h: Likewise.
12073
39feb0e8
VS
120742010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
12077 constants usage.
12078 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
12079 Fix GRUB_TERM_KEY_* constants usage.
12080 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
12081
9af6dac3
VS
120822010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
12085 print pointer.
12086 * grub-core/bus/usb/uhci.c: Remove empty define.
12087 (grub_uhci_check_transfer): Add missing cast.
12088 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
12089 print pointer.
12090 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
12091 PRIuGRUB_SIZE.
12092 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
12093
d6d94820
VS
120942010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * grub-core/Makefile.core.def (legacycfg): Add
12097 lib/i386/pc/vesa_modes_table.c on emu.
12098
3572f2b6
BC
120992010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
12100
12101 Reduce number of temporary files generated by build system.
12102
12103 * grub-core/gencmdlist.sh: Removed.
12104 * grub-core/genfslist.sh: Removed.
12105 * grub-core/genhandlerlist.sh: Removed.
12106 * grub-core/genmodsrc.sh: Removed.
12107 * grub-core/genpartmaplist.sh: Removed.
12108 * grub-core/genparttoollist.sh: Removed.
12109 * grub-core/gentermiinallist.sh: Removed.
12110 * grub-core/genvideolist.sh: Removed.
12111
12112 * grub-core/genmod.sh.in: New file.
12113 * grub-core/gensyminfo.sh.in: New file.
12114
12115 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
12116 * conf/Makefile.extra-dist: Update with new files.
12117 * gentpl.py: Remove rules related to unnecessary temporary files.
12118 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
12119 and und-* files.
12120 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
12121 genmod.sh scripts.
12122 * grub-core/bus/usb/uhci.c: Remove empty #define.
12123 * grub-core/genmoddep.awk: Updated with new syminfo format.
12124 * util/bash-completion.d/Makefile.am: Add config.log to
12125 CLEANFILES.
12126
c836b030
YB
121272010-09-19 Yves Blusseau <blusseau@zetam.org>
12128
12129 * Makefile.util.def: Add forgotten $(LIBINTL) library.
12130
2f4e8053
BC
121312010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
12132
12133 * util/grub-mkconfig.in: Check the config script for syntax errors
12134 before saving.
12135
75831c34
CW
121362010-09-19 Colin Watson <cjwatson@ubuntu.com>
121372010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12138
12139 * Makefile.util.def (grub-install): Use util/grub-install.in on all
12140 platforms.
12141 * util/grub-install.in: Add EFI and IEEE1275 support.
12142 * util/i386/efi/grub-install.in: Removed.
12143 * util/ieee1275/grub-install.in: Likewise.
12144
eaf41b25
VS
121452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
12148 (grub_cmd_cmosclean): Likewise.
12149 (GRUB_MOD_INIT): Register command cmosclean.
12150 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
12151 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
12152
1a9130dd
CPE
121532010-09-18 Carles Pina i Estany <carles@pina.cat>
121542010-09-18 Aleš Nesrsta <starous@volny.cz>
121552010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 Add keyboard layouts support.
12158
12159 * Makefile.util.def (grub-mklayout): New file.
12160 (grub-kbdcomp): New script.
12161 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
12162 Add keyboard_layouts.h.
12163 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
12164 commands/boot.c on yeeloong.
12165 (keylayouts): New module.
12166 * grub-core/bus/usb/ohci.c
12167 * grub-core/bus/usb/uhci.c
12168 * grub-core/bus/usb/usbhub.c (rescan): New variable.
12169 (grub_usb_add_hub): Poll interrupt pipe for device handling.
12170 (attach_root_port): Likewise.
12171 (poll_nonroot_hub): Likewise.
12172 (grub_usb_poll_devices): Likewise.
12173 (detach_device): Close transfer.
12174 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
12175 function.
12176 (grub_usb_bulk_setup_readwrite): Likewise.
12177 (grub_usb_bulk_finish_readwrite): Likewise.
12178 * grub-core/commands/keylayouts.c: New file.
12179 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
12180 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
12181 aliases.
12182 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
12183 support scancode 2.
12184 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
12185 * include/grub/keyboard_layouts.h: New file.
12186 * util/grub-mklayout.c: New file.
12187 * util/grub-kbdcomp.in: Likewise.
12188
a1d84a5e
VS
121892010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 Unify memory types.
12192
12193 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
12194 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
12195 types.
12196 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
12197 (grub_upper_mem): Likewise.
12198 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
12199 * include/grub/memory.h (grub_memory_type_t): New enum.
12200 All users updated.
12201
9696382e
VS
122022010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12203
12204 * grub-core/Makefile.core.def (lsapm): New module.
12205 * grub-core/commands/i386/pc/lsapm.c: New file.
12206 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
12207 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
12208 Likewise.
12209 * include/grub/i386/pc/apm.h: New file.
12210 * include/multiboot.h (multiboot_apm_info): New struct.
12211
122122010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 GRUB-legacy configuration file support.
12215
12216 * Makefile.util.def (grub-menulst2cfg): New util.
12217 * docs/man/grub-menulst2cfg.h2m: New file.
12218 * grub-core/Makefile.core.def (legacycfg): New module.
12219 * grub-core/commands/legacycfg.c: New file.
12220 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
12221 (grub_normal_add_menu_entry): ... this.
12222 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
12223 (grub_normal_set_password): ...this.
12224 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
12225 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
12226 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
12227 * grub-core/lib/legacy_parse.c: New file.
12228 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
12229 * include/grub/i386/pc/vesa_modes_table.h: New file.
12230 * include/grub/legacy_parse.h: Likewise.
12231 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
12232 * util/grub-menulst2cfg.c: New file.
12233
bf8d1338
CW
122342010-09-17 Colin Watson <cjwatson@ubuntu.com>
12235
12236 * grub-core/kern/emu/hostdisk.c
12237 (convert_system_partition_to_system_disk): Initialise node.
12238
9c0bad2e
CW
122392010-09-17 Colin Watson <cjwatson@ubuntu.com>
12240
12241 * grub-core/kern/emu/hostdisk.c
12242 (convert_system_partition_to_system_disk): Fix devmapper memory pool
12243 leak.
12244 Reported and based on patch by: Modestas Vainius.
12245
a939d135
CW
122462010-09-17 Colin Watson <cjwatson@ubuntu.com>
12247
12248 Fix DM-RAID probing with recent versions of device-mapper udev
12249 rules.
12250
12251 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
12252 canonicalise device paths under /dev/mapper/.
12253 (convert_system_partition_to_system_disk): Compare the
12254 uncanonicalised path to /dev/mapper/ rather than the canonicalised
12255 path, since device nodes under /dev/mapper/ are often symlinks.
12256
0f7ee3c9
YB
122572010-09-17 Yves Blusseau <blusseau@zetam.org>
12258
12259 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
12260
10854d0d
YB
122612010-09-16 Yves Blusseau <blusseau@zetam.org>
12262
12263 * configure.ac: Avoid some annoying error messages if freetype-config
12264 program is not found.
12265
108538d8
CW
122662010-09-16 Colin Watson <cjwatson@ubuntu.com>
12267
12268 Support RAID on virtio devices, and others.
12269
12270 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
12271 Rename to ...
12272 [__MINGW32__] (grub_find_device): ... this.
12273 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
12274 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
12275 reasonable default if dir is NULL.
12276 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
12277 ...
12278 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
12279 (grub_guess_root_device): Update callers.
12280 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
12281
12282 * util/raid.c (grub_util_getdiskname): Remove.
12283 (grub_util_raid_getmembers): Use grub_find_device rather than
12284 grub_util_getdiskname.
12285
e5bfc130
CW
122862010-09-16 Colin Watson <cjwatson@ubuntu.com>
12287
12288 * docs/grub.texi (serial): Remove obsolete comment about GRUB
12289 needing to be compiled with serial support.
12290 (ls): Indicate that multiple files are accepted.
12291 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
12292 indicate that multiple files are accepted.
12293
be458ae2
CW
122942010-09-16 Colin Watson <cjwatson@ubuntu.com>
12295
12296 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
12297 libgrub_a_init.c, and util/bash-completion.d/grub.
12298
cb731b5e
VS
122992010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 * util/grub-setup.c (setup): Fix incorrect container semantics.
12302
35139e8a
VS
123032010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
12306 misusage.
12307 Reported by: J. Nick Terry
12308
e50fca4a
VS
123092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 Move embedding routines to partmap sources files.
12312
12313 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
12314 [GRUB_UTIL]: New variable.
12315 (gpt_partition_map_iterate): Set part.parent.
12316 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
12317 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
12318 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
12319 New function.
12320 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
12321 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
12322 (grub_partition_map) [GRUB_UTIL]: New field embed.
12323 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
12324 (setup): Use ->embed.
12325
f00478b7
VS
123262010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
12329 function.
12330 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
12331 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
12332
2b94e3ff
YB
123332010-09-15 Yves Blusseau <blusseau@zetam.org>
12334
12335 Add function to get completions from usage.
12336
12337 * util/bash-completion.d/grub-completion.bash.in: Add function to get
12338 completions from usage. Use LC_ALL=C to get options properly.
12339
2e04a006
VS
123402010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * grub-core/gnulib/basename-lgpl.c: Imported.
12343 * grub-core/gnulib/basename.c: Likewise.
12344 * grub-core/gnulib/dirname-lgpl.c: Likewise.
12345 * grub-core/gnulib/dirname.c: Likewise.
12346 * grub-core/gnulib/dirname.h: Likewise.
12347 * grub-core/gnulib/stripslash.c: Likewise.
12348
5dcdf93a
VS
123492010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/gnulib/error.c: Resynced.
12352 * grub-core/gnulib/getopt.c: Likewise.
12353 * grub-core/gnulib/getopt_int.h: Likewise.
12354 * grub-core/gnulib/regex.h: Likewise.
12355 * grub-core/gnulib/regex_internal.c: Likewise.
12356 * grub-core/gnulib/regex_internal.h: Likewise.
12357
014f47b7
SJ
123582010-09-15 Szymon Janc <szymon@janc.net.pl>
12359
12360 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
12361 CRC calculations and validity checks.
12362 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
12363 calculations.
12364
dd521a4a
SJ
123652010-09-15 Szymon Janc <szymon@janc.net.pl>
12366
12367 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
12368
79c4eeb9
VS
123692010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12370
12371 Fix incorrect echo options handling.
12372 Reported by: Yves Blusseau.
12373
12374 * include/grub/command.h (grub_command_flags_t): New flags
12375 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
12376 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
12377 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
12378
ed80f7d5
VS
123792010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
12382 users updated.
12383 (GRUB_COMMAND_FLAG_MENU): Likewise.
12384 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12385 (GRUB_COMMAND_FLAG_TITLE): Removed.
12386 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12387 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
12388 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
12389 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
12390 (grub_command_flags_t): New enum. All users updated.
12391
5fe7620a
SG
123922010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
12393
12394 Fix solaris compilation.
12395
12396 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
12397 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
12398 (grub-emu-list): Likewise.
12399
545b752f
VS
124002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12401
12402 Remove deprecated root command.
12403
12404 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
12405 updated.
12406
6c1a338c
VS
124072010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * util/i386/pc/grub-setup.c: Merge this ...
12410 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
12411 * util/grub-setup.c: ... into this.
12412 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
12413 New struct.
12414
124152010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
12418 possible.
12419
d2ea4551
VS
124202010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
12423 allocate p.
12424
3c3b5040
VS
124252010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12428 explicit root argument to set to prevent UUID to be interpreted as
12429 argument to set.
12430
b71c3fae
VS
124312010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
12434
275433e6
VS
124352010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 Don't export grub_gate_a20.
12438
12439 * grub-core/kern/i386/pc/init.c: Remove leftovers.
12440 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
12441 to ...
12442 (grub_gate_a20): ... this. All users updated.
12443 * include/grub/i386/pc/init.h: Removed. All users updated.
12444
a5dbb1f1
VS
124452010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12446
12447 Create euro.pf2 which supports most European languages.
12448
12449 * Makefile.am (grubdata_DATA): Add euro.pf2.
12450 (euro.pf2): New target.
12451 (CLEANFILES): Add euro.pf2.
12452
62a747cb
VS
124532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 * configure.ac: Disable emu-usb by default to prevent inadvertent
12456 device takeover.
12457
608e43b1
VS
124582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12459
12460 Disable usbserial on grub-emu since our libusb code isn't good enough
12461 yet.
12462
12463 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
12464 (usbserial_pl2303): Likewise.
12465 (usbserial_ftdi): Likewise.
12466
94564f81
VS
124672010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12468
12469 * include/grub/disk.h (grub_disk): Remove has_partitions.
12470 All users updated.
12471 * disk/loopback.c (grub_loopback): Remove has_partitions.
12472 All users updated.
12473 (options): Remove partitions. All users updated.
12474 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
12475 * util/i386/pc/grub-setup.c (setup): copy partition table only when
12476 actual partition table is found.
12477
3352800b
VS
124782010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 Remove readability checks (too many false negatives).
12481
12482 * util/grub-install.in: Remove readability checks.
12483 * util/grub-mkconfig.in: Likewise.
12484 * util/grub.d/10_hurd.in: Likewise.
12485 * util/grub.d/10_kfreebsd.in: Likewise.
12486 * util/grub.d/10_linux.in: Likewise.
12487 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
12488 way.
12489
2419f17a
VS
124902010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 Enable acpi shutdown on all ACPI platforms.
12493
12494 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
12495 on coreboo, multiboot and EFI.
12496 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
12497 (grub_acpi_halt): Likewise.
12498 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
12499 (grub_cmd_halt): Don't call grub_acpi_halt directly.
12500 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
12501 * grub-core/lib/i386/halt.c (grub_halt)
12502 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
12503
0575c7c3
VS
125042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
12507 context.
12508
54ac3cd1
VS
125092010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 * grub-core/video/efi_gop.c: Fix over-80-chars line.
12512 * grub-core/video/efi_uga.c: Likewise.
12513
b2a30ac5
VS
125142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 Filter devaliases and never open same device twice.
12517
12518 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
12519 (last_ihandle): Likewise.
12520 (ofdisk_hash_ent): New member shortest.
12521 (ofdisk_hash_add): Add canonical path too.
12522 (scan): New function.
12523 (grub_ofdisk_iterate): Iterate over hashed entries.
12524 (compute_dev_path): Don't add :0.
12525 (grub_ofdisk_open): Don't really open the disk.
12526 (grub_ofdisk_close): Avoid closing unrelated disk.
12527 (grub_ofdisk_read): Implement reopen logic.
12528 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
12529 New function.
12530 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
12531 New proto.
12532
fb53b340
VS
125332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12534
12535 Fix sparc64.
12536
12537 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
12538 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
12539 right address. Add sparc64_ieee1275_ldflags.
12540 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
12541 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
12542 to grub_host_to_target_addr
12543 (load_image): Likewise.
12544
f452b040
VS
125452010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 * grub-core/normal/completion.c (complete_file): Handle device
12548 containing slash.
12549 Fix based on patch by Doug Nazar.
12550
9b5b2541
VS
125512010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12552
12553 grub-mknetdir script.
12554
12555 * Makefile.util.def (grub-mknetdir): New module.
12556 * tests/util/grub-shell.in: Support boot=net
12557 * util/grub-mknetdir.in: New file.
12558
9d2be652
VS
125592010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 videoinfo on non-vbe.
12562
12563 * grub-core/Makefile.core.def (vbeinfo): Removed.
12564 (vbetest): Removed.
12565 (videoinfo): New module.
12566 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
12567 * grub-core/commands/i386/pc/vbetest.c: Removed.
12568 * grub-core/commands/videoinfo.c: New file.
12569 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
12570 specification.
12571 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
12572 as vbetest.
12573 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
12574 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
12575 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
12576 mode_number. New parameter mode. All users updated.
12577 (grub_video_gop_iterate): New function.
12578 (grub_video_efi_gop): New member iterate.
12579 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
12580 (grub_vbe_set_video_mode): Remove setting useless fields.
12581 (vbe2videoinfo): New function.
12582 (grub_video_vbe_iterate): Likewise.
12583 (grub_video_vbe_setup): Use vbe2videoinfo.
12584 (grub_video_vbe_print_adapter_specific_info): New function.
12585 (grub_video_vbe_adapter): New fields iterate and
12586 print_adapter_specific_info.
12587 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
12588 All users updated.
12589 (grub_video_mode_info): New field mode_number.
12590 (grub_video_adapter): New fields iterate and
12591 print_adapter_specific_info.
12592
179503f5
TG
125932010-09-13 Tristan Gingold <gingold@free.fr>
125942010-09-13 Robert Millan <rmh.grub@aybabtu.com>
125952010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * grub-core/commands/efi/lsefisystab.c: New file.
12598 * grub-core/commands/efi/lssal.c: Likewise.
12599 * grub-core/Makefile.core.def (lsacpi): New module.
12600 (lsefisystab): Likewise.
12601 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
12602 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
12603 (grub_efi_sal_system_table): New struct.
12604 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
12605 (grub_efi_sal_system_table_memory_descriptor): Likewise.
12606 (grub_efi_sal_system_table_platform_features): Likewise.
12607 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
12608 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
12609 (grub_efi_sal_system_table_ap_wakeup): Likewise.
12610 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
12611
cf9827de
VS
126122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 Support explicit user claim that a device is BIOS-visible.
12615
12616 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
12617 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
12618 * grub-core/kern/emu/hostdisk.c
12619 (convert_system_partition_to_system_disk): Support mdX.
12620 (find_system_device): New parameter add. All users updated.
12621 (grub_util_biosdisk_is_present): New function.
12622 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
12623 proto.
12624
53f0eb1f
VS
126252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
12626
12627 Search hints support.
12628
12629 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
12630 All users updated.
12631
b23ffd70
YB
126322010-09-13 Yves Blusseau <blusseau@zetam.org>
12633
12634 Bash completion script for util commands
12635
12636 * Makefile.am: Add util/bash-completion.d directory
12637 * configure.ac: Likewise.
12638 * util/bash-completion.d/Makefile.am: New file.
12639 * util/bash-completion.d/grub-completion.bash.in: Likewise.
12640
d547dc28
VS
126412010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12642
12643 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
12644 (print_backlog): set backlog_ucs4 and backlog_glyphs.
12645 Reported by: Yves Blusseau.
12646
2fc8ccb9
VS
126472010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
12650 partition size and offset.
12651
d8a84076
VS
126522010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
12655
84fb3b3d
VS
126562010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12657
12658 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
12659
768ec2e2
VS
126602010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12661
12662 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
12663 (grub_xvasprintf): Likewise.
12664
4870900f
VS
126652010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12666
12667 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
12668
faca6bec
VS
126692010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
12670
12671 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
12672 args ending with NULL.
12673
126742010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
12675
12676 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
12677 pointer.
12678
3c70f225
SJ
126792010-09-11 Szymon Janc <szymon@janc.net.pl>
12680
12681 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
12682
4df7996d
VS
126832010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 Shutdown using ACPI.
12686
12687 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
12688 * grub-core/commands/acpihalt.c: New file.
12689 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
12690 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
12691 (grub_acpi_halt): New proto.
12692 (GRUB_ACPI_SLP_EN): New const.
12693 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
12694 (GRUB_ACPI_OPCODE_*): New enum.
12695 (GRUB_ACPI_EXTOPCODE_*): Likewise.
12696
126b4c32
TG
126972010-09-11 Tristan Gingold <gingold@free.fr>
126982010-09-11 Robert Millan <rmh.grub@aybabtu.com>
126992010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 * commands/lsacpi.c: New file.
12702 * grub-core/Makefile.core.def (lsacpi): New module.
12703 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
12704 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
12705 (grub_acpi_madt_entry_header): New struct.
12706 (grub_acpi_madt): Likewise.
12707 (grub_acpi_madt_entry_interrupt_override): Likewise.
12708 (grub_acpi_madt_entry_sapic): Likewise.
12709 (grub_acpi_madt_entry_lsapic): Likewise.
12710 (grub_acpi_madt_entry_platform_int_source): Likewise.
12711 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
12712 (PRIuGRUB_UINT32_T): Likewise.
12713 (PRIxGRUB_UINT64_T): Likewise.
12714
1aa4fe88
VS
127152010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 Implement loading palette on ieee1275_fb.
12718
12719 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
12720 (have_setcolors): Likewise.
12721 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
12722 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
12723 (grub_video_ieee1275_set_palette): Implement.
12724
25761e13
VS
127252010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
127262010-09-11 Colin Watson <cjwatson@ubuntu.com>
12727
12728 * util/grub-install.in (grub_partition): New variable.
12729 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
12730 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
12731 Fixes a bug reported by Yves Blusseau.
12732
050abaea
VS
127332010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 Fix emu on mipsel.
12736
12737 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
12738 =grub_cpu_flush_cache on all mips and not only yeeloong.
12739 * configure.ac (COND_mips): New conditional.
12740 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
12741 platforms.
12742 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
12743 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
12744 [GRUB_LINKER_HAVE_INIT]: New function.
12745 (grub_emu_post_init): Likewise.
12746 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
12747 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
12748 * include/grub/cache.h (_mips): Include mips/cache.h.
12749 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
12750 LVM and RAID prototypes.
12751 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
12752 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
12753 function.
12754
5ed7d816
CW
127552010-09-10 Colin Watson <cjwatson@ubuntu.com>
12756
12757 * util/grub-install.in: Don't try to verify core.img until after
12758 running grub-mkimage to create it.
12759
90367e04
RM
127602010-09-10 Robert Millan <rmh@gnu.org>
12761
12762 * util/grub.d/10_hurd.in: Add misc readability checks.
12763 * util/grub.d/10_kfreebsd.in: Likewise.
12764 * util/grub.d/10_linux.in: Likewise.
12765
c452fa66
CW
127662010-09-10 Colin Watson <cjwatson@ubuntu.com>
12767
12768 * util/grub-install.in: ${imgext} won't be defined here until the
12769 install branch is merged. For the meantime, only verify core.img on
12770 i386-pc and sparc64-ieee1275 platforms.
12771
c38fe9f4
RM
127722010-09-10 Robert Millan <rmh@gnu.org>
12773
12774 Solaris support in grub_find_zpool_from_dir(). Thanks
12775 Seth Goldberg for referring to getextmntent() facility.
12776
12777 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
12778 `sys/mkdev.h'.
12779 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
12780 `<sys/mnttab.h>'.
12781 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
12782 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
12783 method for finding zpool name.
12784
905f7773
CW
127852010-09-10 Colin Watson <cjwatson@ubuntu.com>
12786
12787 grub-fstest needs the host and hostfs modules while other utilities
12788 actively require those modules to be absent, so grub-fstest needs
12789 its own initialisation and finalisation code.
12790
12791 * Makefile.am (grub_fstest.pp): New target.
12792 (grub_fstest_init.lst): Likewise.
12793 (grub_fstest_init.c): Likewise.
12794 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
12795
fb90b546
RM
127962010-09-10 Robert Millan <rmh@gnu.org>
12797
12798 * configure.ac: Check for `struct statfs.f_fstypename' and
12799 `struct statfs.f_mntfromname'.
12800
12801 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
12802 kFreeBSD-specific code.
12803
66d4bea5
RM
128042010-09-10 Robert Millan <rmh@gnu.org>
12805
12806 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
12807 on ZFS. Now non-main filesystems are supported as / too.
12808
b6a690ee
CW
128092010-09-09 Colin Watson <cjwatson@ubuntu.com>
12810
12811 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
12812 and grub-core/disk/host.c to ...
12813 (grub-fstest): ... here. Having the host disk implementation
12814 present confuses grub-probe and other utility programs.
12815
12816 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
12817 when writing to a file, not when writing to stdout.
12818
8901b00c 128192010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
12820
12821 * tests/partmap_test.in: New test for partitions.
12822 * Makefile.util.def: Rules for new test.
12823
7bf45fdd
RM
128242010-09-09 Robert Millan <rmh@gnu.org>
12825
12826 * util/grub-probe.c (probe): Fix a pair of unhandled error
12827 conditions.
12828
4dfbc574
RM
128292010-09-09 Robert Millan <rmh@gnu.org>
12830
12831 Basic Btrfs support (detection and UUID).
12832
12833 * grub-core/fs/btrfs.c: New file.
12834 * Makefile.util.def (library): Register btrfs.c.
12835 * grub-core/Makefile.core.def: Likewise.
12836
6b8e78ae
RM
128372010-09-08 Robert Millan <rmh@gnu.org>
12838
12839 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
12840 with (optional) parameters to specify device and relative path.
12841 * util/grub-install.in: Use is_path_readable_by_grub() to
12842 verify readability of a few critical files.
12843 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
12844 verify readability of grub.cfg.new.
12845
27f21a8b
VS
128462010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 Split minix.mod into minix.mod and minix2.mod.
12849
12850 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
12851 * grub-core/Makefile.core.def (minix2): New module.
12852 * grub-core/fs/minix.c: Use definitions instead of runtime version
12853 checking.
12854 * grub-core/fs/minix2.c: New file.
12855
c0e53ea5
YB
128562010-09-08 Yves Blusseau <blusseau@zetam.org>
12857
12858 Add new --boot-directory option to replace --root-directory
12859
12860 * util/grub-install.in: Add new --boot-directory option
12861 * util/grub-reboot.in: Likewise.
12862 * util/grub-set-default.in: Likewise.
12863
b9fe6ea2
YB
128642010-09-08 Yves Blusseau <blusseau@zetam.org>
12865
12866 * util/grub-mkconfig.in: Use new variable.
12867
d87aedff
YB
128682010-09-08 Yves Blusseau <blusseau@zetam.org>
12869
12870 * configure.ac: Define some useful variables.
12871
e55e8495
VS
128722010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12875 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
12876 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
12877 Use terminfo and don't use cursor-on/cursor-off unless it's known
12878 to work.
12879 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
12880 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
12881
6fa6d675
CW
128822010-09-08 Colin Watson <cjwatson@ubuntu.com>
12883
12884 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
12885 starts with "(,", fill the drive containing the loaded image in
12886 between those two characters, but expect that a full partition
12887 specification including partition map names will follow.
12888
92f2aef0
RM
128892010-09-08 Robert Millan <rmh@gnu.org>
12890
12891 * configure.ac: Remove `--enable-grub-fstest' option.
12892 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
12893
12894 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
12895 `grub-fstest' instead of `grub-probe' for readability verification.
12896 * util/grub-probe.c (probe): Remove readability verification kludge.
12897
99fd620d
RM
128982010-09-08 Robert Millan <rmh@gnu.org>
12899
12900 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
12901 initializing `GRUB_FS'.
12902
058e30ac 129032010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
12904
12905 Not command (!) support to GRUB script.
12906
12907 * tests/grub_script_not.in: New test.
12908 * Makefile.util.def: Rules for new test.
12909
12910 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
12911 ! command as a special case.
12912 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
12913
b61d05ed 129142010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12915
058e30ac 12916 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
12917 grub_free.
b61d05ed 12918
4d69c786 129192010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12920
12921 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
12922
aa3119c4 129232010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12924
12925 * docs/grub.texi (Shell-like scripting): Documentation for break,
12926 continue, shift and return commands.
12927
db0f7e3d
VS
129282010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
12929
12930 Rename CD-ROM to cd on BIOS.
12931
12932 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
12933 "cd".
12934 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
12935
88b87c93
VS
129362010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
12939 * util/grub-probe.c (main): Likewise.
12940 * util/i386/pc/grub-setup.c (main): Likewise.
12941 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
12942 Reported and debugged by: alexxy
12943
294f324d
VS
129442010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
12947 diagnostic info.
12948
d7ee3441
JS
129492010-09-05 Jo Shields <directhex@apebox.org>
12950
12951 * util/grub.d/30_os-prober.in: Add missing classes.
12952
d7e06c1f
VS
129532010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * docs/grub.texi (Theme file format): Document new position format.
12956
fc157e53
VS
129572010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
12960 a table. Use @code instead of @verbatim.
12961
506e9a1c
CB
129622010-09-05 Colin D Bennett <colin@gibibit.com>
12963
12964 Gfxmenu documentation.
12965
12966 * docs/grub.texi (Theme file format): New chapter.
12967
f0aff67c
SJ
129682010-09-05 Szymon Janc <szymon@janc.net.pl>
12969
12970 * grub-core/Makefile.core.def (xzio): New module.
12971 * grub-core/io/xzio.c: New file.
12972 * grub-core/lib/xzembed/xz.h: New file (from xembed).
12973 * grub-core/lib/xzembed/xz_config.h: Likewise.
12974 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
12975 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
12976 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
12977 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
12978 * grub-core/lib/xzembed/xz_private.h: Likewise.
12979 * grub-core/lib/xzembed/xz_stream.h: Likewise.
12980 * include/grub/file.h (grub_file_filter_id): New compression filter
12981 GRUB_FILE_FILTER_XZIO.
12982
82a85062
VS
129832010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12984
12985 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
12986 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
12987 size.
12988
3579415d
VS
129892010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
12992 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
12993
5124ae6d
VS
129942010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12995
12996 Uncompressed checksum support.
12997
12998 * grub-core/commands/hashsum.c (options): Add option --uncompress.
12999 (check_list): New parameter uncompress.
13000 (grub_cmd_hashsum): Handle --uncompress.
13001
9aadb3d1
VS
130022010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 Reintroduce testload.
13005
13006 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
13007 from here ...
13008 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
13009 (GRUB_MOD_INIT): New function.
13010 (GRUB_MOD_FINI): Likewise.
13011 * grub-core/Makefile.core.def (testload): New module.
13012
a17792c3
SJ
130132010-09-05 Szymon Janc <szymon@janc.net.pl>
13014
13015 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
13016 (uint8_t): New type.
13017 (uint16_t): Likewise.
13018 (uint32_t): Likewise.
13019 (uint64_t): Likewise.
13020
b81e40a3
SJ
130212010-09-05 Szymon Janc <szymon@janc.net.pl>
13022
13023 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
13024
fc2ef117
VS
130252010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
13028 Made static.
13029 (grub_gzfile_open): Removed. All users updated.
13030 (GRUB_MOD_INIT): New function.
13031 (GRUB_MOD_FINI): Likewise.
13032 * grub-core/kern/file.c (grub_file_filters_all): New variable.
13033 (grub_file_filters_enabled): Likewise.
13034 (grub_file_open): Handle filters.
13035 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
13036 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
13037 * include/grub/file.h (grub_file_filter_id_t): New type.
13038 (grub_file_filter_t): Likewise.
13039 (grub_file_filters_all): New extern variable.
13040 (grub_file_filters_enabled): Likewise.
13041 (grub_file_filter_register): New inline function.
13042 (grub_file_filter_unregister): Likewise.
13043 (grub_file_filter_disable): Likewise.
13044 (grub_file_filter_disable_compression): Likewise.
13045 * include/grub/gzio.h: Removed.
13046
35ee15e0
BC
130472010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13048
13049 Filename expansion support for wildcards in GRUB script.
13050
13051 * tests/grub_script_expansion.in: New test.
13052 * Makefile.util.def: Rule for new test.
13053
13054 * grub-core/commands/wildcard.c: New file, implements filename
13055 expansion support for GRUB script.
13056 * grub-core/Makefile.core.def: Rule update for regexp.mod.
13057 * grub-core/script/argv.c: Cosmetic changes.
13058 * grub-core/script/execute.c (grub_script_arglist_to_argv):
13059 Refactored to perform wildcard expansion on arguments.
13060 * include/grub/script_sh.h (grub_script_wildcard_translator): New
13061 struct.
13062
13063 * tests/util/grub-shell.in: Fix quoting for read input.
13064
5f0c4aca
BC
130652010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13066
13067 Support for updating environment variables with matched substrings
13068 of regexp.
13069
13070 * tests/grub_cmd_regexp.in: New test.
13071 * Makefile.util.def: Rule for new test.
13072
13073 * grub-core/commands/regexp.c: New option -s to update environment
13074 variables with regexp matches.
13075
3759a35f
SJ
130762010-09-04 Szymon Janc <szymon@janc.net.pl>
13077
13078 * include/grub/file.h (grub_file): New member not_easly_seekable.
13079 (grub_file_seekable): New inline function.
13080 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
13081 easily seekable.
13082 (grub_gzio_open): Set not_easly_seekable.
13083 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
13084 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
13085
ed8c6dec
BC
130862010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13087
13088 Support for options to appear multiple times on cmdline.
13089
13090 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
13091 * grub-core/commands/extcmd.c: Support for repeatable option.
13092 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
13093 repeatable option support.
13094
13095 Refactor menuentry into a regular command.
13096
13097 * grub-core/commands/menuentry.c: New file, menuentry command
13098 implementation.
13099 * grub-core/Makefile.core.def: Rule update for normal.mod.
13100 * grub-core/normal/main.c: Moved menuentry creation to
13101 grub-core/commands/menuentry.c.
13102 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
13103 (grub_menu_execute_entry_real): Removed.
13104 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
13105 function.
13106 (grub_script_execute_menuentry): Removed.
13107 * grub-core/script/parser.y (menuentry): Removed.
13108 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
13109 * grub-core/script/yylex.l (menuentry): Removed.
13110 * include/grub/menu.h (grub_menu_init): New prototype.
13111 (grub_menu_fini): New prototype.
13112 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
13113 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
13114 (grub_script_execute_sourcecode): New prototype.
13115
dacd0cf0
BC
131162010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13117
13118 "return" command for GRUB script functions.
13119
13120 * tests/grub_script_return.in: New test.
13121 * Makefile.util.def: Rules for new test.
13122
13123 * grub-core/script/execute.c (grub_script_return): New function.
13124 * grub-core/script/main.c: Register/unregister return commaond.
13125 * include/grub/script_sh.h (grub_script_return): New prototype.
13126
52e72f9d
BC
131272010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13128
13129 "setparams" command to update positional parameters.
13130
13131 * tests/grub_script_setparams.in: New test.
13132 * Makefile.util.def: Rules for new test.
13133
13134 * grub-core/script/argv.c (grub_script_argv_make): New function.
13135 * grub-core/script/execute.c (replace_scope): New function.
13136 (grub_script_setparams): New function.
13137 * grub-core/script/lexer.c: Remove unused variables.
13138 * grub-core/script/main.c: Register/unregister setparams command.
13139 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
13140 (grub_script_setparams): New prototype.
13141
25b60c91
BC
131422010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13143
13144 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
13145 grub_free order.
13146
37e7bf68
BC
131472010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13148
13149 Support for passing block of commands as an argument to extcmds.
13150
13151 * Makefile.util.def: Rules for new test.
13152 * tests/grub_script_blockarg.in: New test.
13153 * grub-core/tests/test_blockarg.c: New file, block argument
13154 command used in the test.
13155
13156 * include/grub/extcmd.h (grub_extcmd_context): New struct.
13157 (grub_register_extcmd_prio): New function prototype.
13158 (grub_extcmd_dispatcher): New function prototype.
13159 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
13160 type.
13161 * include/grub/script_sh.h (struct grub_script): New members
13162 `children', `next_siblings' and `refcnt' for block arguments and
13163 reference counting.
13164 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
13165 (grub_script_arg): New member `script' for block argument.
13166 (grub_script_argv): New member `script' for block argument.
13167 (grub_parser_param): New member `scripts' for block argument.
13168 (grub_script_mem_free): New extern function prototype.
13169 (grub_script_ref): New function prototype.
13170 (grub_script_unref): New function prototype.
13171
13172 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
13173 extcmd form to support block arguments.
13174 * grub-core/script/argv.c: Block arguments support.
13175 * grub-core/script/execute.c: Likewise.
13176 * grub-core/script/lexer.c: Likewise.
13177 * grub-core/script/main.c: Likewise.
13178 * grub-core/script/script.c: Likewise.
13179 * grub-core/script/parser.y: Likewise. New `block' and `block0'
13180 non-terminals.
13181
13182 * grub-core/commands/acpi.c: Update extcmd implementations with
13183 grub_extcmd_context_t.
13184 * grub-core/commands/cat.c: Likewise.
13185 * grub-core/commands/echo.c: Likewise.
13186 * grub-core/commands/extcmd.c: Likewise.
13187 * grub-core/commands/hashsum.c: Likewise.
13188 * grub-core/commands/hdparm.c: Likewise.
13189 * grub-core/commands/help.c: Likewise.
13190 * grub-core/commands/hexdump.c: Likewise.
13191 * grub-core/commands/i386/cpuid.c: Likewise.
13192 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13193 * grub-core/commands/i386/pc/halt.c: Likewise.
13194 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13195 * grub-core/commands/iorw.c: Likewise.
13196 * grub-core/commands/keystatus.c: Likewise.
13197 * grub-core/commands/loadenv.c: Likewise.
13198 * grub-core/commands/ls.c: Likewise.
13199 * grub-core/commands/lspci.c: Likewise.
13200 * grub-core/commands/memrw.c: Likewise.
13201 * grub-core/commands/probe.c: Likewise.
13202 * grub-core/commands/search_wrap.c: Likewise.
13203 * grub-core/commands/setpci.c: Likewise.
13204 * grub-core/commands/sleep.c: Likewise.
13205 * grub-core/disk/loopback.c: Likewise.
13206 * grub-core/hello/hello.c: Likewise.
13207 * grub-core/loader/i386/bsd.c: Likewise.
13208 * grub-core/loader/xnu.c: Likewise.
13209 * grub-core/term/gfxterm.c: Likewise.
13210 * grub-core/term/serial.c: Likewise.
13211 * grub-core/tests/lib/functional_test.c: Likewise.
13212
888d1500
BC
132132010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
13214
13215 Multi-line quoted strings support.
13216
13217 * grub-core/script/lexer.c (append_newline): Removed.
13218 (grub_script_lexer_yywrap): Refactored.
13219 (grub_script_lexer_init): Refactored.
13220 * grub-core/script/yylex.l (yywrap): New function.
13221 (grub_lexer_resplit): New function.
13222 (grub_lexer_unput): New function.
13223 * include/grub/script_sh.h (grub_lexer_param): New members, unput
13224 and resplit.
13225 * tests/grub_script_echo1.in: Added few more testcases.
13226
dda060dd
VS
132272010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
13228
13229 * grub-core/kern/misc.c: Don't add abort alias in utils.
13230 Reported by: echoline.
13231
6556eba9
BC
132322010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
13233
13234 Add missing files into "make dist" tarball for other platforms.
13235
13236 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
13237 * conf/Makefile.common (dist_noinst_DATA): New variable.
13238 * conf/Makefile.extra-dist: Added missing make dist files.
13239 * grub-core/Makefile.core.def: Likewise.
13240
c8e7bf5f
VS
132412010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 Compress grub_prefix.
13244
13245 * grub-core/boot/i386/pc/lnxboot.S: Use
13246 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
13247 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
13248 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
13249 GRUB_MACHINE_PREFIX_END. All users updated.
13250 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
13251 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
13252 + 0x40.
13253 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13254 * util/grub-mkimage.c (image_target_desc): Change data_end to
13255 prefix_end. All users updated.
13256
a7c00cdb
VS
132572010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
13260 value.
13261 (grub_openbsd_boot): Likewise.
13262 (grub_netbsd_boot): Likewise.
13263 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
13264 (grub_xnu_boot): Likewise.
13265
9f915872
VS
132662010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * configure.ac: Clean LIBS variable after tests.
13269
efa1bee7
CW
132702010-09-02 Colin Watson <cjwatson@ubuntu.com>
13271
13272 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
13273
61d720e5
VS
132742010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13275
13276 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
13277 echo if libdevmapper will be used.
13278
ef8e0ec8
IT
132792010-09-02 Ian Turner <Ian.Turner@deshaw.com>
13280
13281 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
13282 constant for the same file.
13283
03e261d8
VS
132842010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
13287
c2a4eba6
CW
132882010-09-02 Colin Watson <cjwatson@ubuntu.com>
13289
13290 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
13291 grub-core/*.pp.
13292
9056cbf3
CW
132932010-09-02 Colin Watson <cjwatson@ubuntu.com>
13294
13295 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
13296 required by the boot protocol.
13297
13298 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
13299 ebp and edi members.
13300 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
13301 state.ebp and state.edi.
13302 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
13303 %ebp and %edi according to grub_relocator32_ebp and
13304 grub_relocator32_edi respectively.
13305 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
13306 and state.edi.
13307
529cc99a
VS
133082010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 Add i386-pc-pxe image target.
13311
13312 * util/grub-mkimage.c (image_target_desc): New enum value
13313 IMAGE_I386_PC_PXE.
13314 (image_targets): New target i386-pc-pxe.
13315 (generate_image): Handle i386-pc-pxe image.
13316
9a093920
VS
133172010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13318
13319 Fix grub_pxe_scan.
13320
13321 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
13322 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
13323 All users updated.
13324 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
13325 (grub_pxe_pxenv): Correct type.
13326
f9cefc4e
CW
133272010-09-01 Colin Watson <cjwatson@ubuntu.com>
13328
13329 * NEWS: Document most of the important changes since 1.98.
13330
4066f57f
CW
133312010-09-01 Colin Watson <cjwatson@ubuntu.com>
13332
13333 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
13334 generated manual page) a little.
13335
da2891f9
CW
133362010-09-01 Colin Watson <cjwatson@ubuntu.com>
13337
13338 * docs/grub.texi: Add myself as an author.
13339
ad717fae
VS
133402010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * Makefile.util.def (libgrub.a): Add missing sunpc.
13343 Reported by: Seth Goldberg.
13344
eefe8abd
VS
133452010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13346
13347 Interrupt wrapping and code simplifications.
13348
9494ef9a
VS
13349 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
13350 x86_noieee1275 which are functionaly equivalent in this case.
13351 (grub-install): Make source on each platform explicit. Enable on
13352 all noemu.
13353 * gentpl.py (x86_efi_pc): Removed group.
13354 (x86_noefi): Likewise.
13355 (i386_noefi): Likewise.
13356 (x86_noieee1275): Likewise.
13357 (i386_noieee1275): Likewise.
13358 (i386_noefi_noieee1275): Likewise.
13359 (i386_pc_qemu_coreboot): Likewise.
13360 (i386_coreboot_multiboot): Likewise.
13361 (i386_pc_coreboot_multiboot_qemu): Likewise.
13362 (x86_noefi_mips): Likewise.
13363 (noieee1275): Likewise.
13364 (ieee1275_mips): Likewise.
13365 (noemu_noieee1275): Likewise.
13366 (cmos): New group.
13367 (usb): Likewise.
13368 (videoinkernel): Likewise.
13369 (videomodules): Likewise.
eefe8abd 13370 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
13371 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
13372 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
13373 include/grub/loader.h, include/grub/msdos_partition.h,
13374 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
13375 include/grub/machine/console.h, include/grub/machine/vga.h,
13376 include/grub/machine/vbe.h, include/grub/machine/init.h,
13377 include/grub/machine/kernel.h, include/grub/cpu/time.h,
13378 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 13379 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
13380 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
13381 * grub-core/Makefile.core.def (kernel): Explicit the source for
13382 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
13383 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
13384 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
13385 Use videoinkernel tag.
13386 (usb): Enable on all usb.
13387 (usbserial_common): Likewise.
13388 (usbserial_pl2303): Likewise.
13389 (usbserial_ftdi): Likewise.
13390 (uhci): Enable on all x86.
13391 (ohci): Enable on all pci.
13392 (cmostest): Enable on all CMOS.
13393 (acpi): Include commands/acpi.c on all platforms.
13394 (halt): Add relevant lib/*/halt.c.
13395 (hdparm): Enable on all pci.
13396 (lspci): Likewise.
13397 (usbtest): Enable on all usb.
13398 (ata): Enable on all pci.
13399 (ata_pthru): Likewise.
13400 (usbms): Enable on all usb.
13401 (usb_keyboard): Likewise.
13402 (font): Use tag videomodules.
13403 (bufio): Likewise.
13404 (datetime): Use tag cmos. Enable on all noemu.
13405 (mmap): Use tags common and x86.
13406 (gfxterm): Use tag videomodules.
13407 (bitmap): Likewise.
13408 (bitmap_scale): Likewise.
13409 (video_fb): Likewise.
13410 (video): Likewise.
13411 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
13412 adjust padding accordingly. All users updated.
13413 (grub_ohci_transaction): Fix bad format specification.
13414 (GRUB_MOD_INIT): Add asserts for struct size.
13415 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
13416 (grub_alloc_td): Likewise.
13417 (grub_free_queue): Likewise.
13418 (grub_uhci_transfer): Likewise.
13419 (grub_uhci_transaction): Fix bad format specification.
13420 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13421 (grub_usb_bulk_readwrite): Likewise.
13422 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
13423 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
13424 Made static.
13425 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
13426 Made static.
13427 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
13428 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
13429 Transformed into C.
13430 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
13431 Moved from here ...
13432 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
13433 ... here. Transformed into C. Made static.
13434 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
13435 Moved from here ...
13436 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
13437 ... here. Transformed into C. Made static.
13438 * grub-core/kern/i386/pc/startup.S
13439 (grub_biosdisk_check_int13_extensions): Moved from here ...
13440 * grub-core/disk/i386/pc/biosdisk.c
13441 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
13442 Made static.
13443 * grub-core/kern/i386/pc/startup.S
13444 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
13445 * grub-core/disk/i386/pc/biosdisk.c
13446 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
13447 Transformed into C. Made static.
13448 * grub-core/kern/i386/pc/startup.S
13449 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
13450 * grub-core/disk/i386/pc/biosdisk.c
13451 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
13452 Transformed into C. Made static.
13453 * grub-core/kern/i386/pc/startup.S
13454 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
13455 * grub-core/disk/i386/pc/biosdisk.c
13456 (grub_biosdisk_get_diskinfo_standard): ... here.
13457 Transformed into C. Made static.
13458 * grub-core/kern/i386/pc/startup.S
13459 (grub_biosdisk_get_num_floppies): Moved from here ...
13460 * grub-core/disk/i386/pc/biosdisk.c
13461 (grub_biosdisk_get_num_floppies): ... here.
13462 Transformed into C. Made static.
13463 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
13464 New function.
13465 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
13466 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
13467 Transformed into C. Made static.
13468 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
13469 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
13470 Transformed into C. Made static.
13471 * grub-core/kern/i386/ieee1275/init.c: Removed.
13472 * grub-core/kern/i386/misc.S: Likewise.
13473 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
13474 Splitted from here ...
13475 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
13476 Transformed into C. Made static. All users updated.
13477 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
13478 Transformed into C. Made static. All users updated.
13479 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
13480 Moved from here...
13481 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
13482 Transformed into C. Made static. All users updated.
13483 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
13484 Moved from here...
13485 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
13486 Transformed into C. Made static. All users updated.
13487 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
13488 Removed (replaced by C version).
13489 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
13490 Moved from here...
13491 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
13492 Transformed into C. Made static.
13493 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
13494 Moved from here...
13495 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
13496 ... here. Transformed into C.
13497 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
13498 Moved from here...
13499 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
13500 ... here. Transformed into C.
13501 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
13502 Moved from here...
13503 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
13504 ... here. Transformed into C. Made static.
13505 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
13506 Moved from here...
13507 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
13508 ... here. Transformed into C.
21ed554b
VS
13509 * grub-core/kern/i386/pc/startup.S
13510 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
13511 * grub-core/video/i386/pc/vbe.c
13512 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
13513 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
13514 Moved from here...
13515 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
13516 ... here. Transformed into C.
13517 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
13518 Moved from here...
13519 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
13520 ... here. Transformed into C.
13521 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
13522 Moved from here...
13523 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
13524 ... here. Transformed into C.
13525 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
13526 Moved from here...
13527 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
13528 ... here. Transformed into C.
13529 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
13530 Moved from here...
13531 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
13532 ... here. Transformed into C. Made static.
13533 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
13534 Moved from here...
13535 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
13536 ... here. Transformed into C. Made static.
13537 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
13538 Moved from here...
13539 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
13540 ... here. Transformed into C. Made static.
13541 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
13542 pxe_rm_entry as third argument.
13543 (grub_bios_interrupt): New function.
13544 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
13545 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
13546 of calling grub_stop.
13547 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
13548 * grub-core/lib/efi/halt.c (grub_halt): ...here.
13549 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
13550 * grub-core/lib/emu/halt.c (grub_halt): ... here.
13551 * grub-core/lib/i386/halt.c: Moved from here ...
13552 * grub-core/lib/i386/halt.c: ... here.
13553 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
13554 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
13555 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
13556 grub_stop_floppy.
13557 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
13558 * include/grub/i386/coreboot/init.h: Removed.
13559 * include/grub/i386/multiboot/init.h: Likewise.
13560 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
13561 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
13562 * include/grub/i386/pc/int.h: New file.
13563 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
13564 (grub_pxe_scan): Removed.
13565 (grub_pxe_call): Update prototype.
13566 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
13567 prototypes.
13568 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
13569 * include/grub/i386/qemu/init.h: Removed.
13570 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
13571 noreturn.
13572 (grub_halt): Likewise.
13573 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
13574 (grub_reboot): Likewise.
13575 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
13576 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
13577 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
13578
215dd471
RM
135792010-08-30 Robert Millan <rmh@gnu.org>
13580
13581 * NEWS: Document addition of ZFS support in `grub-install' and
13582 `grub-mkconfig'.
13583
ebd65b82
BC
135842010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
13585
13586 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
13587 dprintf output.
13588
11721d19
VS
135892010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13590
13591 Remove leftover embedding of font objects.
13592
13593 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
13594 * util/grub-install.in (font): Removed.
13595 * util/grub-mkimage.c (generate_image): Remove font support. All users
13596 updated.
13597
37837d4e
VS
135982010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 Remove leftover embedding of font objects.
13601
13602 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
13603 * util/grub-install.in (font): Removed.
13604 * util/grub-mkimage.c (generate_image): Remove font support. All users
13605 updated.
13606
b4c1aae0
VS
136072010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 13610 Reported by: Ian Turner
b4c1aae0 13611
8920a08d
VS
136122010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
13615 timeout to avoid indefinite boot stalling.
13616
f21db033
VS
136172010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
13620 (grub_env_write_color_highlight): Likewise.
13621
9a9de209
VS
136222010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 * grub-core/normal/term.c (print_more): Return to normal and not
13625 to standard state after printing "---MORE---".
13626
3dca01d7
VS
136272010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13628
13629 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
13630 Mask out the bit 0x80 since it has other meaning that specifiing color.
13631
0b986c40
VS
136322010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13633
13634 New relocator. Allows for more kernel support and more straightforward
13635 loader writing.
13636
13637 * Makefile.am (BOOTTARGET): New variable.
13638 (QEMU32): Likewise.
13639 (linux.init.x86_64): New target.
13640 (linux.init.i386): Likewise.
13641 (multiboot.elf): Likewise.
13642 (kfreebsd.elf): Likewise.
13643 (kfreebsd.aout): Likewise.
13644 (pc-chainloader.elf): Likewise.
13645 (pc-chainloader.bin): Likewise.
13646 (ntldr.elf): Likewise.
13647 (ntldr.bin): Likewise.
13648 (multiboot2.elf): Likewise.
13649 (kfreebsd.init.x86_64): Likewise.
13650 (kfreebsd.init.i386): Likewise.
13651 (knetbsd.init.i386): Likewise.
13652 (kopenbsd.init.i386): Likewise.
13653 (knetbsd.init.x86_64): Likewise.
13654 (kopenbsd.init.x86_64): Likewise.
13655 (linux-initramfs.i386): Likewise.
13656 (linux-initramfs.x86_64): Likewise.
13657 (kfreebsd-mfsroot.i386.img): Likewise.
13658 (knetbsd.image.i386): Likewise.
13659 (kopenbsd.image.i386): Likewise.
13660 (kopenbsd.image.x86_64): Likewise.
13661 (knetbsd.miniroot-image.i386.img): Likewise.
13662 (kfreebsd-mfsroot.x86_64.img): Likewise.
13663 (knetbsd.image.x86_64): Likewise.
13664 (knetbsd.miniroot-image.x86_64.img): Likewise.
13665 (kfreebsd-mfsroot.i386.gz): Likewise.
13666 (bootcheck-kfreebsd-i386): Likewise.
13667 (kfreebsd-mfsroot.x86_64.gz): Likewise.
13668 (bootcheck-kfreebsd-x86_64): Likewise.
13669 (knetbsd.miniroot-image.i386.gz): Likewise.
13670 (bootcheck-knetbsd-i386): Likewise.
13671 (bootcheck-kopenbsd-i386): Likewise.
13672 (bootcheck-kopenbsd-x86_64): Likewise.
13673 (knetbsd.miniroot-image.x86_64.gz): Likewise.
13674 (bootcheck-knetbsd-x86_64): Likewise.
13675 (bootcheck-linux-i386): Likewise.
13676 (bootcheck-linux-x86_64): Likewise.
13677 (bootcheck-linux16-i386): Likewise.
13678 (bootcheck-linux16-x86_64): Likewise.
13679 (bootcheck-multiboot): Likewise.
13680 (bootcheck-multiboot2): Likewise.
13681 (bootcheck-kfreebsd-aout): Likewise.
13682 (bootcheck-pc-chainloader): Likewise.
13683 (bootcheck-ntldr): Likewise.
13684 (CLEANFILES): Add new targets.
13685 (BOOTCHECKS): New variable.
13686 (.PHONY): Add bootchecks.
13687 (SUCCESSFUL_BOOT_STRING): New variable.
13688 (BOOTCHECK_TIMEOUT): Likewise.
13689 (bootcheck): New target
13690 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
13691 * configure.ac: Correct efiemu excuse.
13692 * docs/grub.texi (Supported kernels): New chapter.
13693 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
13694 include/grub/mm_private.h. Simplify inclusion of
13695 include/grub/boot.h, include/grub/loader.h
13696 and include/grub/msdos_partition.h
13697 (KERNEL_HEADER_FILES) [i386_coreboot]:
13698 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
13699 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
13700 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
13701 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
13702 include/grub/machine/loader.h.
13703 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
13704 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
13705 extra_dist.
13706 (pci.mod): Enable on i386-multiboot.
13707 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
13708 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
13709 i386-qemu.
13710 (relocator.mod): Rewritten.
13711 (aout.mod): Enable on all x86.
13712 (bsd.mod): Likewise.
13713 (ntldr.mod): New module.
13714 (linux.mod): Use loader/i386/linux.c on all x86.
13715 (xnu.mod): Enable on all x86.
13716 (vga_text.mod): disable on EFI and QEMU.
13717 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
13718 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
13719 * grub-core/efiemu/loadcore.c: Likewise.
13720 * grub-core/efiemu/main.c: Likewise.
13721 (grub_efiemu_exit_boot_services): Removed.
13722 (grub_efiemu_finish_boot_services): Likewise.
13723 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
13724 function.
13725 * grub-core/efiemu/i386/nocfgtables.c: New file.
13726 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
13727 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
13728 (grub_efi_finish_boot_services): Moved from here ...
13729 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
13730 Fille finish memory map and related data.
13731 (finish_mmap_buf): New variable.
13732 (grub_efi_uintn_t finish_mmap_size): Likewise.
13733 (grub_efi_uintn_t finish_key): Likewise.
13734 (grub_efi_uintn_t finish_desc_size): Likewise.
13735 (grub_efi_uint32_t finish_desc_version): Likewise.
13736 (grub_efi_is_finished): Likewise.
13737 (grub_efi_get_memory_map): Use saved memory map if EFI is already
13738 finished.
13739 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
13740 (grub_elf64_phdr_iterate): Likewise.
13741 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
13742 (grub_os_area_size): Likewise.
13743 (grub_machine_init): Don't reserve os area.
13744 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
13745 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
13746 * grub-core/kern/i386/loader.S: Removed.
13747 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
13748 (grub_os_area_size): Likewise.
13749 (grub_machine_init): Don't reserve os area.
13750 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13751 Don't call grub_dl_unload_all.
13752 Don't include loader.S.
13753 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
13754 Declare the memory after _end as available.
13755 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 13756 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 13757 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
13758 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
13759 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
13760 * include/grub/mm_private.h (grub_mm_header): ... here.
13761 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
13762 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
13763 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
13764 (grub_mm_region): ..here. Removed addr. Added pre_size.
13765 All users updated.
13766 * grub-core/kern/mm.c (base): Renamed to ...
13767 (grub_mm_base): ... this. Made global.
13768 (grub_real_malloc): Alloc from end of region.
13769 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
13770 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
13771 * grub-core/kern/powerpc/cache_flush.S: ... here.
13772 * grub-core/lib/efi/relocator.c: New file.
13773 * grub-core/lib/i386/relocator.c: Rewritten.
13774 * grub-core/lib/i386/relocator16.S: New file.
13775 * grub-core/lib/i386/relocator32.S: Likewise.
13776 * grub-core/lib/i386/relocator64.S: Likewise.
13777 * grub-core/lib/i386/relocator_asm.S: Rewritten.
13778 * grub-core/lib/i386/relocator_common.S: New file.
13779 * grub-core/lib/ieee1275/relocator.c: Likewise.
13780 * grub-core/lib/mips/relocator.c: Rewritten.
13781 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
13782 stylistic adjustments.
13783 * grub-core/lib/powerpc/relocator.c: New file.
13784 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
13785 * grub-core/lib/relocator.c: Rewritten.
13786 * grub-core/lib/x86_64/relocator_asm.S: New file.
13787 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
13788 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
13789 (bsd_tag): New struct.
13790 (tags): New variable.
13791 (tags_last): Likewise.
13792 (netbsd_module): New struct.
13793 (netbsd_mods): New variable.
13794 (netbsd_mods_last): Likewise.
13795 (openbsd_opts): New parameter "serial".
13796 (OPENBSD_SERIAL_ARG): New definition.
13797 (netbsd_opts): New parameter "serial".
13798 (NETBSD_SERIAL_ARG): New definition.
13799 (grub_freebsd_add_meta): Reorganised into ...
13800 (grub_bsd_add_meta): ...this. All users updated.
13801 (grub_freebsd_add_mmap): Reorganised into ...
13802 (generate_e820_mmap): ...this...
13803 (grub_bsd_add_mmap): ...and this. All users updated.
13804 (grub_freebsd_list_modules): Use tags.
13805 (grub_netbsd_add_meta_module): New function.
13806 (grub_netbsd_list_modules): Likewise.
13807 (grub_freebsd_boot): Use relocator and finish EFI.
13808 (grub_openbsd_boot): Likewise.
13809 (grub_netbsd_setup_video): New function.
13810 (grub_netbsd_add_modules): Likewise.
13811 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
13812 and finish EFI.
13813 (grub_bsd_unload): Unload tags.
13814 (grub_bsd_load_aout): Use relocator.
13815 (grub_bsd_elf32_size_hook): New function.
13816 (grub_bsd_elf32_hook): Use relocator.
13817 (grub_bsd_elf64_size_hook): New function.
13818 (grub_bsd_elf64_hook): Use relocator.
13819 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
13820 (grub_bsd_load): Zero-out openbsd_ramdisk.
13821 (grub_bsd_load): Use relocator.
13822 (grub_cmd_openbsd): Support serial.
13823 (grub_cmd_netbsd): Support modules.
13824 (grub_cmd_freebsd_module): Use relocator.
13825 (grub_netbsd_module_load): New function.
13826 (grub_cmd_netbsd_module): Likewise.
13827 (grub_cmd_openbsd_ramdisk): Likewise.
13828 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
13829 kopenbsd_ramdisk.
13830 (GRUB_MOD_FINI): Unregister new commands.
13831 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
13832 (grub_freebsd_load_elfmodule_obj): Use relocator.
13833 (grub_freebsd_load_elfmodule): Likewise.
13834 (grub_freebsd_load_elf_meta): Likewise.
13835 (grub_netbsd_load_elf_meta): New function.
13836 (grub_openbsd_find_ramdisk): Likewise.
13837 * grub-core/loader/i386/bsd_helper.S: Removed.
13838 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
13839 * grub-core/loader/i386/bsd_trampoline.S: Removed.
13840 * grub-core/loader/i386/efi/linux.c: Likewise.
13841 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
13842 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
13843 (DEFAULT_VIDEO_MODE): Likewise.
13844 (real_mode_target): New variable.
13845 (prot_mode_target): Likewise.
13846 (initrd_mem_target): Likewise.
13847 (relocator): Likewise.
13848 (efi_mmap_buf): Likewise.
13849 (efi_mmap_size): Likewise.
13850 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
13851 (free_pages): Use relocator.
13852 (allocate_pages): Account for efi_mmap and use relocator. Return error.
13853 (grub_linux_setup_video): Return error.
13854 (grub_linux_trampoline_start): Removed.
13855 (grub_linux_trampoline_end): Likewise.
13856 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
13857 andd video parameters depending on firmware.
13858 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
13859 [GRUB_MACHINE_EFI]: Pass EFI parameters.
13860 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
13861 (grub_cmd_initrd): Use relocator.
13862 * grub-core/loader/i386/linux_trampoline.S: Removed.
13863 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
13864 (elf_sec_entsize): Likewise.
13865 (elf_sec_shstrndx): Likewise.
13866 (elf_sections): Likewise.
13867 (grub_multiboot_load): Use relocator.
13868 (grub_multiboot_get_mbi_size): Account for sections.
13869 (grub_multiboot_make_mbi): Use relocator and support sections.
13870 (grub_multiboot_add_elfsyms): New function.
13871 (grub_multiboot_free_mbi): Free sections.
13872 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
13873 (grub_linux_real_target): Likewise.
13874 (grub_linux_real_chunk): Likewise.
13875 (grub_linux16_prot_size): Likewise.
13876 (grub_linux16_boot): Use relocator.
13877 (grub_linux_unload): Unload relocator.
13878 (grub_cmd_linux): Use relocator.
13879 (grub_cmd_initrd): Likewise.
13880 * grub-core/loader/i386/pc/ntldr.c: New file.
13881 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
13882 Don't try to guess CPU frequency.
13883 (grub_xnu_set_video): Stretch bitmap.
13884 (grub_xnu_boot): Use relocator.
13885 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
13886 (grub_linux_unload): Free relocator.
13887 (grub_linux_load32): Use relocator.
13888 (grub_linux_load64): Likewise.
13889 (grub_cmd_initrd): Likewise.
13890 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
13891 (grub_multiboot_unload): Unload relocator.
13892 (grub_cmd_multiboot): Use relocator.
13893 (grub_cmd_module): Likewise.
13894 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
13895 Use relocator and support sections.
13896 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
13897 (elf_sec_entsize): Likewise.
13898 (elf_sec_shstrndx): Likewise.
13899 (elf_sections): Likewise.
13900 (grub_multiboot_load): Use relocator.
13901 (grub_multiboot_get_mbi_size): Account for sections.
13902 (grub_multiboot_make_mbi): Use relocator and support sections.
13903 (grub_multiboot_add_elfsyms): New function.
13904 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
13905 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
13906 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
13907 Prototype changed. All users updated.
13908 (grub_xnu_align_heap): Simplified.
13909 (grub_xnu_writetree_toheap): Likewise.
13910 (grub_xnu_unload): Unload relocator.
13911 (grub_cmd_xnu_kernel): Use relocator.
13912 (grub_cmd_xnu_kernel64): Likewise.
13913 (grub_xnu_register_memory): Simplified.
13914 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
13915 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
13916 EFI is finished.
13917 (grub_console_checkkey): Likewise.
13918 (grub_console_getkey): Likewise.
13919 (grub_console_getwh): Likewise.
13920 (grub_console_getxy): Likewise.
13921 (grub_console_gotoxy): Likewise.
13922 (grub_console_cls): Likewise.
13923 (grub_console_setcolorstate): Likewise.
13924 (grub_console_setcursor): Likewise.
13925 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
13926 * grub-core/tests/boot/kbsd.init-i386.S: New file.
13927 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
13928 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
13929 * grub-core/tests/boot/kernel-8086.S: Likewise.
13930 * grub-core/tests/boot/kernel-i386.S: Likewise.
13931 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
13932 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
13933 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
13934 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
13935 * grub-core/tests/boot/knetbsd.cfg: Likewise.
13936 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
13937 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
13938 * grub-core/tests/boot/linux.cfg: Likewise.
13939 * grub-core/tests/boot/linux.init-i386.S: Likewise.
13940 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
13941 * grub-core/tests/boot/linux16.cfg: Likewise.
13942 * grub-core/tests/boot/multiboot.cfg: Likewise.
13943 * grub-core/tests/boot/multiboot2.cfg: Likewise.
13944 * grub-core/tests/boot/ntldr.cfg: Likewise.
13945 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
13946 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
13947 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
13948 New definition.
13949 * include/grub/dl.h (grub_dl_unload_all): Removed.
13950 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
13951 (grub_efi_finish_boot_services): Change prototype.
13952 (grub_efi_is_finished): New variable.
13953 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
13954 Changed prototype.
13955 (grub_efiemu_finish_boot_services): Removed.
13956 (grub_machine_efiemu_init_tables): New prototype.
13957 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
13958 (grub_elf64_phdr_iterate): Likewise.
13959 * include/grub/i386/bsd.h: Include relocator.h.
13960 (freebsd_tag_header): New struct.
13961 (grub_openbsd_bios_mmap): Removed.
13962 (grub_unix_real_boot): Removed.
13963 (grub_freebsd_load_elfmodule32): Changed prototype.
13964 (grub_freebsd_load_elfmodule_obj64): Likewise.
13965 (grub_freebsd_load_elf_meta32): Likewise.
13966 (grub_freebsd_load_elf_meta64): Likewise.
13967 (grub_freebsd_add_meta): Removed.
13968 (grub_netbsd_load_elf_meta32): New prototype.
13969 (grub_netbsd_load_elf_meta64): Likewise.
13970 (grub_bsd_add_meta): Likewise.
13971 (grub_openbsd_ramdisk_descriptor): New struct.
13972 (grub_openbsd_find_ramdisk32): New prototype.
13973 (grub_openbsd_find_ramdisk64): Likewise.
13974 * include/grub/i386/coreboot/loader.h: Removed.
13975 * include/grub/i386/efi/loader.h: Likewise.
13976 * include/grub/i386/ieee1275/loader.h: Likewise.
13977 * include/grub/i386/linux.h (linux_kernel_header): Change void *
13978 to grub_uint32_t.
13979 * include/grub/i386/loader.h: Removed.
13980 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
13981 value.
13982 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
13983 (grub_phys_addr_t): New type.
13984 (grub_vtop): New inline function.
13985 (grub_map_memory): Likewise.
13986 (grub_unmap_memory): Likewise.
13987 * include/grub/i386/multiboot/loader.h: Removed.
13988 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
13989 (NETBSD_BTINFO_CONSOLE): New definition.
13990 (NETBSD_BTINFO_SYMTAB): Likewise.
13991 (NETBSD_BTINFO_MODULES): Likewise.
13992 (NETBSD_BTINFO_FRAMEBUF): Likewise.
13993 (grub_netbsd_bootinfo): New struct.
13994 (grub_netbsd_btinfo_common): Use explicit bitsize.
13995 (grub_netbsd_btinfo_mmap_entry): Removed.
13996 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
13997 (grub_netbsd_btinfo_bootdisk): New struct.
13998 (grub_netbsd_btinfo_symtab): Likewise.
13999 (grub_netbsd_btinfo_serial): Likewise.
14000 (grub_netbsd_btinfo_modules): Likewise.
14001 (grub_netbsd_btinfo_framebuf): Likewise.
14002 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
14003 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
14004 Likewise.
14005 (grub_openbsd_bootargs): Use explicit bitsize.
14006 (grub_openbsd_bootarg_console): New struct.
14007 (GRUB_OPENBSD_COM_MAJOR): New definition.
14008 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
14009 * include/grub/i386/pc/efiemu.h: Removed.
14010 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
14011 * include/grub/i386/qemu/loader.h: Removed.
14012 * include/grub/i386/relocator.h: Rewritten.
14013 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
14014 * include/grub/mips/memory.h: New file.
14015 * include/grub/mips/multiboot.h: Rewritten.
14016 * include/grub/mips/relocator.h: Rewritten.
14017 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
14018 (grub_vtop): New function.
14019 (grub_map_memory): Likewise.
14020 (grub_unmap_memory): Likewise.
14021 * include/grub/misc.h (ALIGN_DOWN): New definition.
14022 * include/grub/mm.h (grub_mm_check_real): New proto.
14023 (GRUB_MM_CHECK): New definition.
14024 * include/grub/mm_private.h: New file.
14025 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
14026 (grub_multiboot_get_mbi_size): Removed.
14027 (grub_multiboot_make_mbi): Change prottype.
14028 (grub_multiboot_set_accepts_video): New proto.
14029 (grub_multiboot_add_elfsyms): Likewise.
14030 (grub_multiboot_payload_eip): New variable.
14031 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
14032 New prototype.
14033 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
14034 New definition.
14035 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
14036 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
14037 * include/grub/powerpc/ieee1275/loader.h: Removed.
14038 * include/grub/powerpc/memory.h: New file.
14039 * include/grub/powerpc/relocator.h: Likewise.
14040 * include/grub/relocator.h: Likewise.
14041 * include/grub/relocator_private.h: Likewise.
14042 * include/grub/sparc64/ieee1275/loader.h: Removed.
14043 * include/grub/x86_64/memory.h: New file.
14044 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
14045 (grub_xnu_heap_malloc): Likewise.
14046 (grub_xnu_heap_real_start): Removed.
14047 (grub_xnu_heap_start): Likewise.
14048 (grub_xnu_relocator): New variable.
14049 (grub_xnu_heap_target_start): Likewise.
14050 * tests/util/grub-shell.in: Support non-pc.
14051 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 14052
5303b85d
VS
140532010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
14056 on malloc error.
14057 (grub_bidi_logical_to_visual): Check that malloc succeded.
14058 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
14059 puts.
14060 (grub_xputs_normal): Likewise.
14061
d768d159
VS
140622010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
14065 extra_dist.
14066
140672010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14068
14069 * grub-core/efiemu/runtime/efiemu.sh: Removed.
14070
5bf84df4
VS
140712010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
14074
3626810e
VS
140752010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
14078 dprintf.
14079
a7363f53
BC
140802010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
14081
14082 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
14083
902f75f6
VS
140842010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * grub-core/normal/term.c (print_more): Fix a memory leak.
14087 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
14088 (grub_xputs_normal): Likewise.
14089
3c707967
VS
140902010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14091
14092 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
14093 the begining of the string
14094
2053cc07
VS
140952010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14096
14097 * grub-core/script/script.c (grub_script_parse): Free parsed on
14098 failure.
14099
46422ebf
VS
141002010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14101
14102 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
14103 on failure.
14104
9e0fa3f6
VS
141052010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14106
14107 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
14108 return.
14109
3393cf16
VS
141102010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14111
14112 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
14113 (scroll_up): Fix a memory leak.
14114
b17540cb
VS
141152010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
14118 errors.
14119
67140446
VS
141202010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 Handle USB pendrives exposed as floppies.
14123
14124 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
14125 floppy.
14126 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
14127 Check for partitions on all devices.
14128
e35e46fc
VS
141292010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14130
14131 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
14132 (readkey): Likewise.
14133
d24c6190
BC
141342010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14135
14136 Multiple variable names support to "export" command.
14137
14138 * normal/context.c (grub_cmd_export): "export" command supports
14139 multiple variable names.
14140
04ddcc6a
ST
141412010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
14142
14143 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
14144 --target=drive output to Mach device name.
14145
0c8b61d8
BC
141462010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
14147
14148 New Automake based build system for GRUB.
14149
14150 * ABOUT-NLS: New file.
14151 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
14152 in Makefile.util.def file.
14153 * Makefile.util.def: New file. Autogen build definitions file for
14154 GRUB host utils.
14155 * conf/Makefile.common: New file. Common variables for GRUB host
14156 utils and target modules.
14157 * conf/Makefile.extra-dist: New file. Extra files for make dist.
14158 * docs/Makefile.am: New file. Automake file for docs.
14159 * gentpl.py: New file. Python script to generate Autogen
14160 template.
14161 * grub-core/Makefile.am: New file. GRUB target modules' rules
14162 that doesn't fit in Makefile.core.def file.
14163 * grub-core/Makefile.core.def: New file. Autogen build
14164 definitions file for GRUB target modules.
14165 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
14166 specific setjmp.S file.
14167 * po/Makefile.am: New file.
14168
14169 * .bzrignore: New ignores.
14170 * INSTALL: New requirements, without Ruby.
14171 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
14172 * autogen.sh: Updated to invoke autogen as necessary.
14173 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
14174 and defines for Automake conditionals.
14175 * geninit.sh: Refactoring.
14176
14177 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
14178 necessary.
14179 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
14180 New prototype.
14181
14182 * include/grub/test.h: Fix functional test modules' naming.
14183 * grub-core/tests/example_functional_test.c: Fix test module name.
14184
14185 * util/misc.c: Hosted versions' of grub functions for libgrub.a
14186 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
14187 * util/grub-editenv.c: Likewise.
14188 * util/grub-fstest.c: Likewise.
14189 * util/grub-mkdevicemap.c: Likewise.
14190 * util/grub-mkfont.c: Likewise.
14191 * util/grub-mkimage.c: Likewise.
14192 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14193 * util/grub-probe.c: Likewise.
14194 * util/grub-script-check.c: Likewise.
14195 * util/i386/pc/grub-setup.c: Likewise.
14196 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14197
14198 * tests/util/grub-shell.in: Fix override directory path.
14199 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
14200 * util/import_gcry.py: Create Makefile.gcry.def file instead.
14201
14202 * util/lvm.c: Update #includes.
14203 * util/raid.c: Likewise.
14204 * util/resolve.c: Likewise.
14205 * grub-core/bus/emu/pci.c: Likewise.
14206 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
14207 * grub-core/lib/posix_wrap/string.h: Likewise.
14208 * grub-core/kern/emu/main.c: Likewise.
14209
14210 * grub-core/gensymlist.sh: New file. Script for generating kernel
14211 symbols file.
14212 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
14213
14214 * grub-core/gentrigtables.c: Fix unused variable warnings.
14215
14216 * Makefile.in: Removed.
14217 * conf/any-emu.rmk: Removed.
14218 * conf/common.rmk: Removed.
14219 * conf/i386-coreboot.rmk: Removed.
14220 * conf/i386-efi.rmk: Removed.
14221 * conf/i386-ieee1275.rmk: Removed.
14222 * conf/i386-multiboot.rmk: Removed.
14223 * conf/i386-pc.rmk: Removed.
14224 * conf/i386-qemu.rmk: Removed.
14225 * conf/i386.rmk: Removed.
14226 * conf/mips-yeeloong.rmk: Removed.
14227 * conf/mips.rmk: Removed.
14228 * conf/powerpc-ieee1275.rmk: Removed.
14229 * conf/sparc64-ieee1275.rmk: Removed.
14230 * conf/tests.rmk: Removed.
14231 * conf/x86-efi.rmk: Removed.
14232 * conf/x86_64-efi.rmk: Removed.
14233 * gendistlist.sh: Removed.
14234 * geninitheader.sh: Removed.
14235 * genkernsyms.sh.in: Removed.
14236 * genmk.rb: Removed.
14237 * gensymlist.sh.in: Removed.
14238 * mkinstalldirs: Removed.
14239 * boot: Moved ...
14240 * grub-core/boot: ... to here.
14241 * bus: Moved ...
14242 * grub-core/bus: ... to here.
14243 * commands: Moved ...
14244 * grub-core/commands: ... to here.
14245 * disk: Moved ...
14246 * grub-core/disk: ... to here.
14247 * efiemu: Moved ...
14248 * grub-core/efiemu: ... to here.
14249 * font: Moved ...
14250 * grub-core/font: ... to here.
14251 * fs: Moved ...
14252 * grub-core/fs: ... to here.
14253 * gencmdlist.sh: Moved ...
14254 * grub-core/gencmdlist.sh: ... to here.
14255 * genemuinit.sh: Moved ...
14256 * grub-core/genemuinit.sh: ... to here.
14257 * genemuinitheader.sh: Moved ...
14258 * grub-core/genemuinitheader.sh: ... to here.
14259 * genfslist.sh: Moved ...
14260 * grub-core/genfslist.sh: ... to here.
14261 * genhandlerlist.sh: Moved ...
14262 * grub-core/genhandlerlist.sh: ... to here.
14263 * genmoddep.awk: Moved ...
14264 * grub-core/genmoddep.awk: ... to here.
14265 * genmodsrc.sh: Moved ...
14266 * grub-core/genmodsrc.sh: ... to here.
14267 * genpartmaplist.sh: Moved ...
14268 * grub-core/genpartmaplist.sh: ... to here.
14269 * genparttoollist.sh: Moved ...
14270 * grub-core/genparttoollist.sh: ... to here.
14271 * genterminallist.sh: Moved ...
14272 * grub-core/genterminallist.sh: ... to here.
14273 * gentrigtables.c: Moved ...
14274 * grub-core/gentrigtables.c: ... to here.
14275 * genvideolist.sh: Moved ...
14276 * grub-core/genvideolist.sh: ... to here.
14277 * gettext: Moved ...
14278 * grub-core/gettext: ... to here.
14279 * gfxmenu: Moved ...
14280 * grub-core/gfxmenu: ... to here.
14281 * gnulib: Moved ...
14282 * grub-core/gnulib: ... to here.
14283 * hello: Moved ...
14284 * grub-core/hello: ... to here.
14285 * hook: Moved ...
14286 * grub-core/hook: ... to here.
14287 * io: Moved ...
14288 * grub-core/io: ... to here.
14289 * kern: Moved ...
14290 * grub-core/kern: ... to here.
14291 * lib: Moved ...
14292 * grub-core/lib: ... to here.
14293 * loader: Moved ...
14294 * grub-core/loader: ... to here.
14295 * mmap: Moved ...
14296 * grub-core/mmap: ... to here.
14297 * normal: Moved ...
14298 * grub-core/normal: ... to here.
14299 * partmap: Moved ...
14300 * grub-core/partmap: ... to here.
14301 * parttool: Moved ...
14302 * grub-core/parttool: ... to here.
14303 * script: Moved ...
14304 * grub-core/script: ... to here.
14305 * term: Moved ...
14306 * grub-core/term: ... to here
14307 * tests/example_functional_test.c: Moved ...
14308 * grub-core/tests/example_functional_test.c: ... to here.
14309 * tests/lib/functional_test.c: Moved ...
14310 * grub-core/tests/lib/functional_test.c: ... to here.
14311 * tests/lib/test.c: Moved ...
14312 * grub-core/tests/lib/test.c: ... to here.
14313 * video: Moved ...
14314 * grub-core/video: ... to here.
14315
645586e6
BC
143162010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
14317
14318 Replace --enable-grub-emu-modules with grub-emu-lite.
14319
14320 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
14321 cache.S.
14322
14323 * include/grub/emu/misc.h (grub_emu_init): New prototype.
14324 * kern/emu/full.c: New file. For grub-emu specific initialization.
14325 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
14326 * kern/emu/main.c: Call initialization function grub_emu_init.
14327
14328 * Makefile.in: Include grub-emu-lite in install.
14329 * commands/parttool.c: Use grub_no_autoload to differentiate
14330 between grub-emu and grub-emu-lite.
14331 * include/grub/misc.h: New variable grub_no_autoload.
14332
14333 * conf/any-emu.rmk: New rules for grub-emu-lite.
14334 * configure.ac: Remove --enable-grub-emu-modules.
14335 * genmk.rb: Cleanup unnecessary rules.
14336 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
14337
14338 * normal/main.c: Don't load list files on grub-emu-lite.
14339 * util/misc.c (grub_arch_sync_caches): Removed.
14340
f86a4030
CW
143412010-08-23 Colin Watson <cjwatson@ubuntu.com>
14342
14343 * kern/mips/startup.S (grub_prefix): Update comment to refer to
14344 grub-mkimage rather than grub-mkelfimage.
14345 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14346
06776944
VS
143472010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
14350 a key after CapsLock or NumLock. It's just a qemu bug.
14351
df262419
VS
143522010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
14353
14354 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
14355 needed by libusb wrapper.
14356
b40ea81b
ST
143572010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14358
14359 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
14360
dee50575
VS
143612010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
14362
14363 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
14364 --nounzip is passed.
14365
fb1d7b79
VS
143662010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 USB hotunplugging and USB serial support.
14369
14370 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
14371 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
14372 (grub_uhci_transfer): Respect timeout and set *actual.
14373 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
14374 non-standard length.
14375 (grub_usb_device_attach): Autoload modules.
14376 (GRUB_MOD_INIT): Set grub_term_poll_usb.
14377 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
14378 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
14379 users updated.
14380 (grub_usb_add_hub): Fill nports and children.
14381 (attach_root_port): Receive hub instead of controller.
14382 All users updated. Fill hub->devices.
14383 (grub_usb_root_hub): Allocate hub->devices.
14384 (detach_device): New function.
14385 (poll_nonroot_hub): Fill children and detach devices.
14386 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
14387 actual arguments. All users updated.
14388 (grub_usb_bulk_read_extended): New function.
14389 * bus/usb/serial/common.c: New file.
14390 * bus/usb/serial/ftdi.c: Likewise.
14391 * bus/usb/serial/pl2303.c: Likewise.
14392 * commands/terminal.c (handle_command): Support wildcard.
14393 * commands/usbtest.c: Output "Unknown" instead of empty string.
14394 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
14395 (usbserial_common_mod_SOURCES): New variable.
14396 (usbserial_common_mod_CFLAGS): Likewise.
14397 (usbserial_common_mod_LDFLAGS): Likewise.
14398 (pkglib_MODULES): Add usbserial_pl2303.mod.
14399 (usbserial_pl2303_mod_SOURCES): New variable.
14400 (usbserial_pl2303_mod_CFLAGS): Likewise.
14401 (usbserial_pl2303_mod_LDFLAGS): Likewise.
14402 (pkglib_MODULES): Add usbserial_ftdi.mod.
14403 (usbserial_ftdi_mod_SOURCES): New variable.
14404 (usbserial_ftdi_mod_CFLAGS): Likewise.
14405 (usbserial_ftdi_mod_LDFLAGS): Likewise.
14406 (pkglib_MODULES): Add serial.mod.
14407 (serial_mod_SOURCES): New variable.
14408 (serial_mod_CFLAGS): Likewise.
14409 (serial_mod_LDFLAGS): Likewise.
14410 * conf/i386-pc.rmk: Likewise.
14411 * conf/mips-yeeloong.rmk: Likewise.
14412 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
14413 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
14414 * disk/usbms.c (first_available_slot): New variable.
14415 (grub_usbms_attach): Don't reuse free slots due to potential cache
14416 problems.
14417 * include/grub/serial.h: Moved to ..
14418 * include/grub/ns8250.h: ...this.
14419 * include/grub/serial.h: New file.
14420 * include/grub/term.h (grub_term_poll_usb): New variable.
14421 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
14422 readkey. All users updated.
14423 (grub_terminfo_output_state): Pass term to put.
14424 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
14425 (grub_usb_controller_dev): Add timeout and actual arguments to
14426 transfer. All users updated.
14427 (grub_usb_interface): New field detach_data.
14428 (grub_usb_device): New fields children and nports.
14429 (grub_usb_ep_type_t): New type.
14430 (grub_usb_get_ep_type): New function.
14431 (grub_usb_bulk_read_extended): Likewise.
14432 * include/grub/usbdesc.h (grub_usb_desc): New type.
14433 * include/grub/usbserial.h: New file.
14434 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
14435 * kern/term.c (grub_term_poll_usb): New variable.
14436 (grub_getkey): Call grub_term_poll_usb if set.
14437 (grub_checkkey): Likewise.
14438 (grub_getkeystatus): Likewise.
14439 * term/serial.c: Moved controller-specific parts to ...
14440 * term/ns8250.c: ... here.
14441 * term/serial.c: Mostly rewritten.
14442 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
14443 according to spec.
14444
21a313de
RM
144452010-08-20 Robert Millan <rmh@gnu.org>
14446
14447 Make kFreeBSD code more generic to support ext2fs as root, ufs as
14448 a separate module and maybe other interesting combinations.
14449
14450 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
14451 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
14452 (kfreebsd_entry): Add generic filesystem module load routine.
14453 Map GRUB `ext2' to kFreeBSD `ext2fs'.
14454
63c734a6
CW
144552010-08-20 Colin Watson <cjwatson@ubuntu.com>
14456
14457 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
14458 "numcenter" (I misunderstood the purpose of this entry).
14459 * docs/grub.texi (sendkey): Likewise.
14460
c4d16542
CW
144612010-08-20 Colin Watson <cjwatson@ubuntu.com>
14462
14463 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
14464 status flag options; simply omitting the option is equivalent and
14465 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
14466 (keysym_table): Rename "num5numlock" to "numlock".
14467 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
14468 can uniformly say that only the last of multiple `sendkey'
14469 invocations has any effect.
14470 * docs/grub.texi (sendkey): New section.
14471
93541d66
CW
144722010-08-19 Colin Watson <cjwatson@ubuntu.com>
14473
14474 * commands/i386/pc/sendkey.c (options): Fix three typos.
14475
b4ece5e1
VS
144762010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 Implement sendkey support.
14479
14480 * commands/i386/pc/sendkey.c: New file.
14481 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
14482 (sendkey_mod_SOURCES): New variable.
14483 (sendkey_mod_CFLAGS): Likewise.
14484 (sendkey_mod_LDFLAGS): Likewise.
14485
51f1f5af
CW
144862010-08-18 Colin Watson <cjwatson@ubuntu.com>
14487
14488 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
14489 fix warnings from Autoconf.
14490
9da94e05
CW
144912010-08-18 Colin Watson <cjwatson@ubuntu.com>
14492
14493 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
14494 to avoid false positives with some assemblers that output things
14495 like "someprefix_func" as part of their output.
14496
729a0f2e
RM
144972010-08-15 Robert Millan <rmh@gnu.org>
14498
14499 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
14500 errors.
14501 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
14502 grub_get_libzfs_handle() errors.
14503
f3710e08
RM
145042010-08-14 Robert Millan <rmh@gnu.org>
14505
14506 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
14507 filesystem is not ZFS.
14508
7a3c13de
BC
145092010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14510
14511 Fix for misspelled color names defaulting to black/black (bug
14512 reported by Doug Nazar)
14513
14514 * include/grub/normal.h (grub_parse_color_name_pair): Add return
14515 status to prototype.
14516 * normal/color.c (grub_parse_color_name_pair): Return failure
14517 status.
14518 (grub_env_write_color_normal): Ignore bad color names.
14519 (grub_env_write_color_highlight): Likewise.
14520 * normal/main.c (GRUB_MOD_INIT): Set default color names.
14521
ab8ba50d
BC
145222010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14523
14524 "shift" command support to GRUB script.
14525
14526 * include/grub/script_sh.h (grub_script_shift): New prototype.
14527 * script/execute.c (grub_script_shift): New function.
14528 * script/main.c (grub_script_init): Register shift command.
14529 (grub_script_fini): Unregister shift command.
14530 * util/grub-script-check.c (grub_script_cmd_shift): New function.
14531
14532 * tests/grub_script_shift.in: New testcase.
14533 * conf/tests.rmk: Rules for new testcase.
14534
4d61999e
BC
145352010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14536
14537 "continue" command support to GRUB script.
14538
14539 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
14540 (grub_script_break): Continue support.
14541 * script/main.c (grub_script_init): Register continue command.
14542 (grub_script_fini): Unregister continue command.
14543
14544 * tests/grub_script_continue.in: New testcase.
14545 * conf/tests.rmk: Rules for new testcase.
14546
4df51e00
BC
145472010-08-12 BVK Chaitanya <bvk@dbook>
14548
14549 "break" command support to GRUB script.
14550
14551 * conf/common.rmk: Rule updates to grub-script-check.
14552 * include/grub/misc.h (grub_min): New function.
14553 * include/grub/script_sh.h (grub_script_init): New prototype.
14554 (grub_script_fini): New prototype.
14555 (grub_script_break): New prototype.
14556 * script/main.c (grub_script_init): New function.
14557 (grub_script_fini): New function.
14558 * script/execute.c (grub_script_break): New function.
14559 * normal/main.c: Calls to grub_script_{init,fini}.
14560 * util/grub-script-check.c (grub_script_break): New function.
14561
14562 * tests/grub_script_break.in: New testcase.
14563 * conf/tests.rmk: Rules for new test case.
14564
f12c8420
BC
145652010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14566
14567 Function parameters support to GRUB script.
14568
14569 * script/yylex.l (VARIABLE): Regular expression update.
14570 * script/function.c (grub_script_function_call): Moved ...
14571 * script/execute.c (grub_script_function_call): ... to here.
14572 (grub_script_execute_arglist_to_argv): Removed.
14573 (grub_script_arglist_to_argv): New function.
14574 * script/argv.c: New file.
14575 (grub_script_argv_free): New function.
14576 (grub_script_argv_next): Likewise.
14577 (grub_script_argv_append): Likewise.
14578 (grub_script_argv_split_append): Likewise.
14579 * include/grub/script_sh.h (grub_script_argv): New struct.
14580 (grub_script_argv_free): New function.
14581 (grub_script_argv_next): Likewise.
14582 (grub_script_argv_append): Likewise.
14583 (grub_script_argv_split_append): Likewise.
14584
14585 * conf/common.rmk (normal.mod): New source script/argv.c.
14586
14587 * tests/grub_script_echo1.in: More tests.
14588 * tests/grub_script_vars1.in: Likewise.
14589 * tests/grub_script_functions.in: New test case.
14590 * conf/tests.rmk: Rules for new testcase.
14591
8022b748
BC
145922010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
14593
14594 Remove grub_script_cmdblock struct.
14595
14596 * include/grub/script_sh.h: Remove grub_script_cmdblock.
14597 * script/parser.y: Likewise.
14598 * script/execute.c: Rename cmdblock suffix to cmdlist.
14599 * script/script.c: Likewise.
14600 * util/grub-script-check.c: Likewise.
14601
79a6ba61
YB
146022010-08-11 Yves Blusseau <blusseau@zetam.org>
14603
14604 * .bzrignore: add grub-macho2img
14605
d04b9414
VS
146062010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
14609
f947ab49
VS
146102010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 Remove the dump of sm712 initialisation sequence.
14613
14614 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
14615 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
14616 (GRUB_VGA_IO_MISC_WRITE): Likewise.
14617 (GRUB_VGA_CR_*): Added many registers.
14618 (GRUB_VGA_SR_*): Likewise.
14619 (GRUB_VGA_GR_*): Likewise.
14620 (grub_vga_write_arx): New function.
14621 (grub_video_hw_config): New struct.
14622 (grub_vga_set_geometry): New function.
14623 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
14624 GRUB_PCI_CLASS_SUBCLASS_VGA.
14625 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
14626 * video/sm712.c (grub_sm712_write_reg): New function
14627 (grub_sm712_read_reg): Likewise.
14628 (grub_sm712_sr_write): Likewise.
14629 (grub_sm712_gr_write): Likewise.
14630 (grub_sm712_cr_write): Likewise.
14631 (grub_sm712_write_arx): Likewise.
14632 (grub_sm712_cr_shadow_write): Likewise.
14633 (grub_sm712_write_dda_lookup): Likewise.
14634 (grub_video_sm712_setup): Initialise the video rather then
14635 blindly replay the dump.
14636 (main) [TEST]: Add a routine to be able to compile as standalone for
14637 tests.
14638 * video/sm712_init.c (sm712_init): Removed.
14639 (sm712_sr_seq1): New array.
14640 (sm712_sr_seq2): Likewise.
14641
f0206638
VS
146422010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
14643
14644 * include/grub/vga.h: Add missing grub/pci.h include.
14645
2764da3b
YB
146462010-08-10 Yves Blusseau <blusseau@zetam.org>
14647
14648 * util/grub-macho2img.c (main): fix typo
14649
cf0c775e
VS
146502010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
14653 (grub_vga_gr_read): Likewise.
14654 (grub_vga_cr_write): Likewise.
14655 (grub_vga_cr_read): Likewise.
14656 (grub_vga_sr_write): Likewise.
14657 (grub_vga_sr_read): Likewise.
14658 (grub_vga_palette_read): Likewise.
14659 (grub_vga_palette_write): Likewise.
14660 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
14661 (grub_sm712_sr_read): New function.
14662 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
14663 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
14664
07f360e9
RM
146652010-08-09 Robert Millan <rmh@gnu.org>
14666
14667 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
14668 out unused variables on non-ZFS build.
14669
346c2072
RM
146702010-08-08 Robert Millan <rmh@gnu.org>
14671
14672 Fix path generation for sub-filesystems in ZFS.
14673
14674 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
14675 missing slash.
14676
71175420
RM
146772010-08-08 Robert Millan <rmh@gnu.org>
14678
14679 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
14680
0d8286f3
RM
146812010-08-08 Robert Millan <rmh@gnu.org>
14682
14683 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
14684 exist, issue a proper error message (rely on `ls' for translated
14685 strings).
14686
55dd2924
RM
146872010-08-08 Robert Millan <rmh@gnu.org>
14688
14689 Fix grub-probe invocation.
14690
14691 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
14692
d3dd9e80
RM
146932010-08-04 Robert Millan <rmh@gnu.org>
14694
14695 * configure.ac: Remove checks for getfsstat() and getmntany().
14696 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
14697 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
14698 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
14699 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
14700 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
14701 function.
14702 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
14703 via find_mount_point_from_dir() and getfsstat() / getmntany().
14704
0de22aa9
RM
147052010-08-04 Robert Millan <rmh@gnu.org>
14706
14707 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14708 (grub_find_zpool_from_mount_point): Merge into ...
14709 (grub_find_zpool_from_dir): ... this.
14710 * kern/emu/misc.c: Likewise.
14711
14712 * kern/emu/misc.c
14713 (grub_make_system_path_relative_to_its_root): Replace
14714 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
14715 with grub_find_zpool_from_dir().
14716 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
14717
62858144
RM
147182010-08-04 Robert Millan <rmh@gnu.org>
14719
14720 Support OpenSolaris in ZFS device resolution.
14721
14722 * configure.ac: Check for getmntany().
14723 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
14724 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
14725 support.
14726
9dd6fd50
RM
147272010-08-03 Robert Millan <rmh@gnu.org>
14728
14729 Fix grub-emu build.
14730
14731 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
14732 * include/grub/emu/misc.h: ... here.
14733
14734 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
14735 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
14736
14737 * util/misc.c: Remove `<grub/util/libzfs.h>'.
14738 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
14739 (grub_get_libzfs_handle): Move to ...
14740 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
14741 (grub_get_libzfs_handle): ... here.
14742
c9f7ff97
BC
147432010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
14744
14745 * script/execute.c (grub_script_execute_cmdline): Check for NULL
14746 as command name case.
14747
a870a783
CW
147482010-08-02 Colin Watson <cjwatson@ubuntu.com>
14749
14750 * disk/raid.c (insert_array): Select unique numbers for named arrays
14751 as well, for use as keys in the disk cache.
14752
c7db243b
RM
147532010-08-01 Robert Millan <rmh@gnu.org>
14754
14755 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
14756 kFreeBSD device name, except on ZFS where the filesystem label is
14757 used.
14758 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
14759 `/boot/zfs/zpool.cache'.
14760 Set mountfrom kernel variable using ${kfreebsd_device}.
14761
f7abdefb
RM
147622010-08-01 Robert Millan <rmh@gnu.org>
14763
14764 Make it even harder to use uninitialized `libzfs_handle' (and
14765 make the interface a bit simpler).
14766
14767 * include/grub/util/misc.h (grub_util_init_libzfs)
14768 (libzfs_handle): Remove.
14769 (grub_get_libzfs_handle): New prototype.
14770
14771 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
14772 attribute.
14773 (grub_util_init_libzfs): Remove.
14774 (grub_get_libzfs_handle): New function.
14775
14776 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
14777 grub_get_libzfs_handle() to obtain a libzfs handle instead of
14778 accessing `libzfs_handle' directly.
14779
c882acc0
RM
147802010-08-01 Robert Millan <rmh@gnu.org>
14781
14782 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14783 (grub_find_zpool_from_mount_point): New function prototypes.
14784
14785 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
14786 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
14787
14788 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
14789 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
14790 `static' attribute.
14791
14792 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
14793 finding zpool from mount point into ...
14794 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
14795
14796 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
14797 requested path is part of a ZFS pool, use
14798 grub_find_zpool_from_mount_point() to detect its filesystem name,
14799 and generate a path with `/fsname@path' syntax.
14800
8bfe31d8
CW
148012010-08-01 Colin Watson <cjwatson@ubuntu.com>
14802
14803 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
14804 (void) rather than () so that this is a proper prototype.
14805
553df63d
VS
148062010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
14809
8687cf07
VS
148102010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
14813 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
14814
ea9be8ea
CW
148152010-08-01 Colin Watson <cjwatson@ubuntu.com>
14816
14817 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
14818
6eea041a
CW
148192010-08-01 Colin Watson <cjwatson@ubuntu.com>
14820
14821 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
14822
2cfb45df
CW
148232010-08-01 Colin Watson <cjwatson@ubuntu.com>
14824
14825 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
14826 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
14827 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
14828 disable gfxpayload.
14829 (Shell-like scripting): Add real content.
14830 (Serial terminal): Suggest `terminal_input serial; terminal_output
14831 serial' rather than putting the two commands on separate lines,
14832 since console input will be inoperative after the first command.
14833 (menuentry): Document --class, --users, and --hotkey options.
14834 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
14835 Vladimir Serbinenko).
14836
7decd202
VS
148372010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
148382010-08-01 Colin Watson <cjwatson@ubuntu.com>
14839
14840 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
14841
c882acc0
RM
148422010-08-01 Robert Millan <rmh@gnu.org>
14843
14844 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
14845 (grub_find_zpool_from_mount_point): New function prototypes.
14846
14847 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
14848 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
14849
14850 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
14851 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
14852 `static' attribute.
14853
14854 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
14855 finding zpool from mount point into ...
14856 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
14857
14858 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
14859 requested path is part of a ZFS pool, use
14860 grub_find_zpool_from_mount_point() to detect its filesystem name,
14861 and generate a path with `/fsname@path' syntax.
14862
deb0caa3
RM
148632010-08-01 Robert Millan <rmh@gnu.org>
14864
14865 Prevent accidental use of uninitialized libzfs_handle.
14866
14867 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
14868 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
14869 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
14870
ce04ef47
CW
148712010-08-01 Colin Watson <cjwatson@ubuntu.com>
14872
14873 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
14874 util/grub.d/10_linux.in). Fixes Debian bug #591093.
14875
ebf53056
RM
148762010-08-01 Robert Millan <rmh@gnu.org>
14877
14878 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 14879
3710bb6b
RM
148802010-07-31 Robert Millan <rmh@gnu.org>
14881
14882 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
14883
8072efeb
RM
148842010-07-31 Robert Millan <rmh@gnu.org>
14885
14886 * kern/emu/misc.c: Add missing license header.
14887
3169f4c7
RM
148882010-07-31 Robert Millan <rmh@gnu.org>
14889
14890 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
14891
14892 * include/grub/util/libnvpair.h: Include `<config.h>'.
14893 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
14894 declaring libnvpair prototypes ourselves.
14895 * include/grub/util/libzfs.h: Include `<config.h>'.
14896 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
14897 declaring libzfs prototypes ourselves.
14898
14899 (libzfs_handle): Moved to ...
14900 * include/grub/util/misc.h (libzfs_handle): ... here.
14901 Include `<grub/util/libzfs.h>'.
14902
c9a00aee
RM
149032010-07-30 Robert Millan <rmh@gnu.org>
14904
14905 * include/grub/emu/misc.h: Add missing license header.
14906
a184f9c8
RM
149072010-07-30 Robert Millan <rmh@gnu.org>
14908
14909 Enable `grub-probe -t device' resolution on ZFS.
14910
14911 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
14912 * include/grub/util/libnvpair.h: New file.
14913 * include/grub/util/libzfs.h: New file.
14914
14915 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
14916 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
14917 `<grub/util/libnvpair.h>'.
14918 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
14919
14920 (find_mount_point_from_dir): New static function.
14921 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
14922 function.
14923 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
14924 find_root_device_from_libzfs() before ressorting to find_root_device().
14925
14926 * include/grub/util/misc.h (grub_util_init_libzfs): New function
14927 prototype.
14928 * util/misc.c: Include `<grub/util/libzfs.h>'.
14929 (grub_util_init_libzfs): New function.
14930 [HAVE_LIBZFS] (libzfs_handle): New global variable.
14931 [HAVE_LIBZFS] (fini_libzfs): New static function.
14932 (grub_util_init_libzfs): New function.
14933 * util/grub-probe.c (main): Call grub_util_init_libzfs().
14934
f7790cdd
RM
149352010-07-30 Robert Millan <rmh@gnu.org>
14936
14937 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
14938 (xmalloc, xrealloc, xstrdup, xasprintf): Add
14939 `warn_unused_result' attribute.
14940 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
14941 (grub_xasprintf, grub_xvasprintf): Likewise.
14942 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
14943
0806b63c
RM
149442010-07-29 Robert Millan <rmh@gnu.org>
14945
14946 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
14947 (probe): Handle `PRINT_FS_LABEL'.
14948 (main): Handle `-t fs_label'.
14949
9f841f5c
RM
149502010-07-29 Robert Millan <rmh@gnu.org>
14951
14952 * configure.ac: Remove grub-mkisofs checks.
14953
46371121
VS
149542010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * util/ieee1275/grub-install.in: Don't use empty grub_device.
14957 Reported by: Lennart Sorensen.
14958
149592010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14960
14961 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
14962 prior to terminal_input/terminal_output separation. It's been over 1.5
14963 years and those versions weren't widely deployed.
14964
a9600892
CW
149652010-07-22 Colin Watson <cjwatson@ubuntu.com>
14966
14967 * disk/raid.c (insert_array): Don't count named arrays when looking
14968 for unused array numbers.
697e053c 14969 Reported and tested by: Michael Guntsche.
a9600892 14970
c03507df
CW
149712010-07-20 Colin Watson <cjwatson@ubuntu.com>
14972
14973 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
14974 implementation of this so that grub-emu links again, with a note
14975 that this should support hotplugging in the future.
14976
b26f1c11
CW
149772010-07-20 Colin Watson <cjwatson@ubuntu.com>
14978
14979 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14980
efc9d7f1
CW
149812010-07-20 Colin Watson <cjwatson@ubuntu.com>
14982
14983 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
14984 handle on failure.
14985 (grub_loopback_close): Remove empty function.
14986 (grub_loopback_dev): Remove close method.
14987
dd8ff5c9
CW
149882010-07-20 Colin Watson <cjwatson@ubuntu.com>
14989
14990 Disable EFI cursor when the EFI console becomes inactive.
14991
14992 * term/efi/console.c (grub_efi_console_init): New function.
14993 (grub_efi_console_fini): New function.
14994 (grub_console_term_output): Register init and fini methods.
14995
5e3bec67
VS
149962010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * tests/util/grub-shell-tester.in: Remove bashism and declare as
14999 sh script.
15000
afaec079
VS
150012010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * disk/loopback.c (grub_loopback): Replace filename with file.
15004 (delete_loopback): Handle new semantics.
15005 (grub_cmd_loopback): Likewise.
15006 (grub_loopback_iterate): Likewise.
15007 (grub_loopback_close): Likewise.
15008
a6a11f3c
VS
150092010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15010
15011 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
15012 with -p "".
15013 Reported by: Tito Keitel.
15014
64a638b0
VS
150152010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 * docs/grub.texi (Naming convention): Document new naming convention.
15018
ab8ba957
VS
150192010-07-20 Vadim Solomin <vadic052@gmail.com>
150202010-07-20 Colin Watson <cjwatson@ubuntu.com>
15021
15022 Generate device.map in something closer to the old ordering.
15023
15024 * util/deviceiter.c (struct device): New declaration.
15025 (compare_file_names): Rename to ...
15026 (compare_devices): ... this. Sort by kernel name in preference to
15027 the stable by-id name, but keep the latter as a fallback comparison.
15028 Update header comment.
15029 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
15030 of `struct device' rather than of plain file names.
15031
a29d6a4b
TF
150322010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
15033
15034 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
15035 on i386.
15036
39d824e8
VS
150372010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15038
15039 * commands/acpi.c (setup_common_tables): Use sizeof instead of
15040 hardcoding size.
15041 (setv1table): Likewise.
15042
f058276b
FZ
150432010-07-20 Colin Watson <cjwatson@ubuntu.com>
15044
15045 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
15046 removing the homehost if present.
15047 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
15048 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
15049 removing the homehost if present.
15050 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
15051 if possible.
15052 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
15053
15054 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
15055 parameter. Set its pointer target to 0.
15056 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
15057 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
15058 `data_offset' value from the superblock for 1.x metadata.
15059 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
15060 data on the device.
15061 (insert_array): Record the start sector of data on the device.
15062 (grub_raid_register): Pass start_sector parameters to
15063 grub_raid_list->detect and insert_array.
15064 * include/grub/raid.h (struct grub_raid_array): Add start_sector
15065 member.
15066 (struct grub_raid): Add start_sector parameter to `detect'.
15067
15068 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
15069 __attribute__ ((packed)), leaving a comment.
15070 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
15071 (grub_mdraid_detect_09): ... here and ...
15072 (grub_mdraid_detect_1x): ... here.
15073
150742010-07-20 Peter Henn <peter.henn@web.de>
15075
15076 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
15077 chunk size and disk size, which are already given as sector counts
15078 as distinct from the 0.90 units. Fetch the correct device number
15079 from the role table instead of using the table index.
15080
150812010-07-20 Felix Zielcke <fzielcke@z-51.de>
15082
15083 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
15084 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
15085 (WriteMostly1): New macro.
15086 Set array->name to NULL for metadata format 0.90. Add support for
15087 metadata 1.x. Fix some comments.
15088 * disk/raid.c (): Add support for name based RAID arrays. Fix a
15089 few comments.
15090 * util/getroot.c (grub_util_get_grub_dev): Add support for
15091 /dev/md/name style devices.
15092
4b761da9
CW
150932010-07-20 Colin Watson <cjwatson@ubuntu.com>
15094
15095 * .bzrignore: Ignore 20_linux_xen.
15096
5771289a
CW
150972010-07-17 Colin Watson <cjwatson@ubuntu.com>
15098
15099 * util/import_unicode.py: Remove unnecessary imports.
15100
5dab68df
AN
151012010-07-17 Aleš Nesrsta <starous@volny.cz>
15102
15103 Hotplugging and USB hub support.
15104
15105 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
15106 (grub_ohci): Likewise.
15107 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
15108 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
15109 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
15110 (GRUB_OHCI_CTRL_EDS): Likewise.
15111 (GRUB_OHCI_BULK_EDS): Likewise.
15112 (GRUB_OHCI_TDS): Likewise.
15113 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
15114 (grub_ohci_ed_phys2virt): New function.
15115 (grub_ohci_virt_to_phys): Likewise.
15116 (grub_ohci_td_phys2virt): Likewise.
15117 (grub_ohci_td_virt2phys): Likewise.
15118 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
15119 attachment.
15120 (grub_ohci_find_ed): New function.
15121 (grub_ohci_alloc_td): Likewise.
15122 (grub_ohci_free_td): Likewise.
15123 (grub_ohci_free_tds): Likewise.
15124 (grub_ohci_transfer): Use previously allocated memory.
15125 (grub_ohci_portstatus): Reset status changed bit.
15126 (grub_ohci_detect_dev): Supply status changed.
15127 (grub_ohci_fini_hw): Free memory.
15128 (grub_ohci_restore_hw): Reallocate memory.
15129 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
15130 Reset status change.
15131 (grub_uhci_detect_dev): Supply status_change.
15132 * bus/usb/usb.c (attach_hooks): New var.
15133 (grub_usb_device_attach): New function.
15134 (grub_usb_register_attach_hook_class): Likewise.
15135 (grub_usb_unregister_attach_hook_class): Likewise.
15136 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
15137 (grub_usb_add_hub): Reset connection changed bit.
15138 (attach_root_port): New function.
15139 (grub_usb_root_hub): Likewise.
15140 (poll_nonroot_hub): Likewise.
15141 (grub_usb_poll_devices): Likewise.
15142 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
15143 * disk/usbms.c (grub_usbms_open): Use device hooks.
15144 (grub_usbms_iterate) :Poll devices.
15145 (grub_usbms_finddevs): Split into ...
15146 (grub_usbms_attach): ... this ...
15147 (grub_usbms_attach): ... and this.
15148 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
15149 in detect_dev.
15150 (grub_usb_interface): New fields attached and detach_hook.
15151 (grub_usb_attach_hook_class): New type.
15152 (grub_usb_attach_desc): New struct.
15153 (grub_usb_register_attach_hook_class): New function.
15154 (grub_usb_unregister_attach_hook_class): Likewise.
15155 (grub_usb_poll_devices): Likewise.
15156 (grub_usb_device_attach): Likewise.
15157 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
15158 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
15159
3222efaf
VS
151602010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15161
15162 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
15163 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
15164 delta determination style. Works with most NetBSD partitions too.
15165
139b714a
VS
151662010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
15169 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
15170
986aad56
VS
151712010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
15172
15173 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
15174
99be513c
AB
151752010-07-14 Anton Blanchard <anton@samba.org>
15176
15177 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
15178 ET_DYN files.
15179
18075f62
GS
151802010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15181
15182 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
15183
8d9a5b15
GS
151842010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15185
15186 * kern/partition.c (grub_partition_check_containment): New function to
15187 check that a partition is physically contained in a parent. Since
15188 offsets are relative (and non-negative), this reduces to checking that
15189 the partition ends before its parent.
15190 (grub_partition_map_probe): Discard out-of-range sub-partitions.
15191 (grub_partition_iterate): Likewise.
15192 * include/grub/partition.h (grub_partition_map): Slightly more detailed
15193 comments.
15194 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
15195 partitions that start before their parent, and add debug printfs.
15196
19563c25
CW
151972010-07-13 Colin Watson <cjwatson@ubuntu.com>
15198
15199 * Makefile.in (.SUFFIX): Spell correctly, as ...
15200 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
15201 bare module name without `.mod', e.g. `test') tried to invoke a
15202 Modula-2 compiler.
15203
1a1f1e67
CW
152042010-07-13 Colin Watson <cjwatson@ubuntu.com>
15205
15206 * README: Point to the Info manual.
15207
811b0dca
JS
152082010-07-13 Jiro SEKIBA <jir@unicus.jp>
15209
15210 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
15211 2nd superblock position from partition size.
15212
e4f4eafc
CW
152132010-07-10 Colin Watson <cjwatson@ubuntu.com>
15214
15215 * Makefile.in (MAINTAINER_CLEANFILES): Remove
15216 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
15217 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
15218 outputs.
15219
4274c30f
VS
152202010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15221
15222 Restructure SCSI .id handling.
15223 Reported and tested by: Aleš Nesrsta.
15224
15225 * disk/ata.c (grub_atapi_close): Removed. All users updated.
15226 (grub_atapi_dev): Changed .name to "ata". New field .id.
15227 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
15228 (grub_usbms_dev): New field .id.
15229 * disk/scsi.c (grub_scsi_iterate): Generate name.
15230 (grub_scsi_open): Parse name.
15231 * include/grub/scsi.h (grub_make_scsi_id): New function.
15232 (grub_scsi_dev): Change iterate and open to number instead of naming
15233 busses. All users updated.
15234 (grub_scsi): Remove name. Add .bus.
15235
5bc24388
VS
152362010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * commands/help.c (grub_cmd_help): Fix a typo.
15239
249975ba
VS
152402010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15241
15242 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
15243 Reported and tested by: Colin Watson.
15244
3eaac1a1
VS
152452010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15246
15247 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
15248 in this context.
15249
becce1b1
VS
152502010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15251
15252 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
15253
f7bf0918
CW
152542010-07-07 Colin Watson <cjwatson@ubuntu.com>
15255
15256 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
15257 indentation.
15258
0b0f9620
CW
152592010-07-06 Colin Watson <cjwatson@ubuntu.com>
15260
15261 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
15262 and disk/raid6_recover.c.
15263 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15264 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15265
1e545469
CW
152662010-07-06 Colin Watson <cjwatson@ubuntu.com>
15267
15268 * term/gfxterm.c (repaint_schedulded): Rename to ...
15269 (repaint_scheduled): ... this. Update all callers.
15270 (repaint_was_schedulded): Rename to ...
15271 (repaint_was_scheduled): ... this. Update all callers.
15272
5357687a
CW
152732010-07-06 Colin Watson <cjwatson@ubuntu.com>
15274
15275 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
15276 which we expect to be handled by upper layers.
15277
29d7e783
BC
152782010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
15279
15280 * bus/usb/usbhub.c: #include time.h header.
15281
37582066
CW
152822010-07-06 Colin Watson <cjwatson@ubuntu.com>
15283
15284 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
15285 entry_name also for entries without stat blocks (e.g. ".."); fixes
15286 corruption of the first entry in a directory.
15287
c8c06953
CW
152882010-07-06 Colin Watson <cjwatson@ubuntu.com>
15289
15290 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
15291 after setting gfxterm as the active terminal. GRUB_BACKGROUND
15292 doesn't work otherwise.
15293
e75056f1
CW
152942010-07-05 Colin Watson <cjwatson@ubuntu.com>
15295
15296 * docs/grub.texi (Features): Update list of supported file systems.
15297 (GNU/Linux): Update for GRUB 2.
15298 (Serial terminal): Remove mention of --disable-serial, which was a
15299 GRUB Legacy configure option. Update instructions to use
15300 `terminal_input' and `terminal_output' rather than `terminal'.
15301 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
15302 configuration' and `Installing GRUB using grub-install'.
15303 (Menu entry editor): Update for GRUB 2.
15304 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
15305 Document new -a, -u, and -v options.
15306 (initrd): New section.
15307 (initrd16): New section.
15308 (linux): New section.
15309 (linux16): New section.
15310 (search): The `var' argument to `--set' is optional.
15311 (GRUB only offers a rescue shell): Go into a little more detail on
15312 drive ordering.
15313
5cf69151
CW
153142010-07-05 Colin Watson <cjwatson@ubuntu.com>
15315
15316 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
15317
e3f90044
CW
153182010-07-05 Colin Watson <cjwatson@ubuntu.com>
15319
15320 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
15321 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
15322
38d8f4f3
CW
153232010-07-05 Colin Watson <cjwatson@ubuntu.com>
15324
15325 * util/i386/pc/grub-setup.c (setup): Rename prefix to
15326 install_prefix, in line with install_dos_part and install_bsd_part.
15327 Add new prefix variable, which is copied to install_prefix after
15328 comparing core.img in memory with the one read from disk in the
15329 no-embedding case, and use that rather than overwriting
15330 install_prefix immediately when installing to a partition.
15331 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
15332 Bicakci.
15333
57ebd41e
GS
153342010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
15335
15336 * configure.ac: Avoid == in test command, it's not portable.
15337 * util/grub.d/30_os-prober.in: Likewise.
15338
cb7f64b2
CW
153392010-07-04 Colin Watson <cjwatson@ubuntu.com>
15340
15341 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
15342
6b654bb0
GS
153432010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
15344
15345 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
15346 multiple (top-level) partmaps.
15347
72a2026d
VS
153482010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15349
15350 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 15351 Reported by: Tino Keitel.
72a2026d 15352
df3eb88f
VS
153532010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 Bidi and diacritics support.
15356
15357 * Makefile.in (widthspec.bin): New target.
15358 (widthspec.h): Likewise.
15359 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
15360 * autogen.sh: Generate unidata.c.
15361 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
15362 * commands/ls.c (grub_ls_list_devices): Likewise.
15363 (grub_ls_list_files): Likewise.
15364 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
15365 (grub_mini_cmd_lsmod): Likewise.
15366 * commands/read.c: Likewise.
15367 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
15368 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
15369 * lib/arg.c (grub_arg_show_help): Likewise.
15370 * lib/crypto.c (grub_password_get): Likewise.
15371 * normal/auth.c (grub_username_get): Likewise.
15372 * normal/misc.c (grub_normal_print_device_info): Likewise.
15373 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
15374 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
15375 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
15376 (normal/charset.c_DEPENDENCIES): New variable.
15377 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
15378 (pkglib_MODULES): Remove charset.mod.
15379 (charset_mod_SOURCES): Removed.
15380 (charset_mod_CFLAGS): Likewise.
15381 (charset_mod_LDFLAGS): Likewise.
15382 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
15383 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
15384 and term/tparm.c.
15385 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15386 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15387 (kernel_img_HEADERS): Add terminfo.h.
15388 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
15389 Fill ->font. Reverse ascii bitmaps.
15390 (grub_font_get_xheight): New function.
15391 * font/font.c (grub_font_get_string_width): Moved from here ...
15392 * gfxmenu/font.c (grub_font_get_string_width): ... here.
15393 * font/font.c (grub_font_draw_string): Moved from here ...
15394 * gfxmenu/font.c (grub_font_draw_string): ... here.
15395 * font/font.c (grub_font_dup_glyph): New function.
15396 (grub_font_blit_glyph): Likewise.
15397 (grub_font_blit_glyph_mirror): Likewise.
15398 (blit_comb): Likewise.
15399 (grub_font_construct_dry_run): Likewise.
15400 (grub_font_get_constructed_device_width): Likewise.
15401 (grub_font_construct_glyph): Likewise.
15402 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
15403 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
15404 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
15405 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
15406 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
15407 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
15408 (grub_font_get_xheight): New proto.
15409 (grub_font_get_constructed_device_width): Likewise.
15410 (grub_font_construct_glyph): Likewise.
15411 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
15412 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
15413 * include/grub/font.h (grub_font_draw_string): Moved from here ...
15414 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
15415 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
15416 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
15417 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
15418 (grub_console_getcharwidth): Likewise.
15419 * include/grub/misc.h (grub_xputs): New proto.
15420 (grub_puts): Inlined.
15421 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
15422 (grub_normal_get_line_counter): Removed.
15423 (grub_install_newline_hook): Likewise.
15424 (grub_normal_get_char_counter): New proto.
15425 (grub_normal_reset_more): Likewise.
15426 (grub_xputs_normal): Likewise.
15427 * include/grub/powerpc/ieee1275/console.h: Removed.
15428 * include/grub/sparc64/ieee1275/console.h: Likewise.
15429 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
15430 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
15431 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
15432 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
15433 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
15434 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
15435 (grub_term_input): Pass reference to self. All users updated.
15436 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
15437 Pass reference to self. New fields normal_color, highlight_color and
15438 data. All users updated.
15439 (grub_putchar): Removed.
15440 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
15441 (grub_unicode_estimate_width): New function.
15442 (grub_term_getcharwidth): Add defaults.
15443 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
15444 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
15445 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
15446 (grub_cls): Remove EXPORT_FUNC.
15447 (grub_setcolorstate): Inline.
15448 (grub_newline_hook): Removed.
15449 * include/grub/terminfo.h: Rewritten. All users updated.
15450 * include/grub/unicode.h: New file.
15451 * include/grub/video.h (grub_video_signed_rect): New type.
15452 * kern/emu/console.c (grub_console_highlight_color): Removed.
15453 (grub_console_normal_color): Likewise.
15454 (grub_console_standard_color): Made static.
15455 (grub_ncurses_putchar): Remove mapping.
15456 (grub_ncurses_getcharwidth): Removed.
15457 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
15458 (grub_ncurses_setcolor): Removed.
15459 (grub_ncurses_getcolor): Likewise.
15460 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
15461 (grub_console_putchar): ... this.
15462 (grub_console_putchar): Handle argument difference.
15463 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
15464 console_init_early and console_init_lately.
15465 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
15466 * kern/misc.c (grub_puts): Removed.
15467 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
15468 (grub_vsnprintf_real): Remove str = NULL support.
15469 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
15470 * normal/charset.c (grub_utf8_to_ucs4): ... here.
15471 * kern/term.c (grub_putcode): Renamed to ...
15472 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
15473 (grub_putchar): Removed.
15474 (grub_xputs_dumb): New function.
15475 (grub_xputs): New variable.
15476 * lib/charset.c: Move from here ...
15477 * normal/charset.c: ... to here.
15478 (grub_ucs4_to_utf8): New function.
15479 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
15480 (join_types): New variable.
15481 (unpack_join): New function.
15482 (bidi_types): New variable.
15483 (unpack_bidi): New function.
15484 (get_bidi_type): Likewise.
15485 (get_join_type): Likewise.
15486 (is_mirrored): Likewise.
15487 (grub_unicode_get_comb_type): Likewise.
15488 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
15489 (is_type_after): Likewise.
15490 (grub_unicode_aglomerate_comb): Likewise.
15491 (bidi_line_wrap): Likewise.
15492 (grub_bidi_line_logical_to_visual): Likewise.
15493 (grub_bidi_logical_to_visual): Likewise.
15494 (grub_unicode_mirror_code): Likewise.
15495 (grub_unicode_shape_code): Likewise.
15496 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
15497 Don't use grub_putchar.
15498 * normal/main.c (grub_normal_init_page): Use grub_putcode.
15499 (grub_normal_reader_init): Likewise.
15500 (grub_xputs_saved): New variable.
15501 (GRUB_MOD_INIT): Set grub_xputs.
15502 (GRUB_MOD_FINI): Restore grub_xputs.
15503 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
15504 (menu_init): Avoid printing gfxmenu error.
15505 (show_menu): Use grub_normal_get_char_counter.
15506 * normal/menu_entry.c (update_screen): Fix out-of-array.
15507 (complete): Avoid NULL dereferencing.
15508 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
15509 * normal/menu_text.c (print_spaces): Removed.
15510 (grub_print_ucs4): Likewise.
15511 (grub_print_message_indented): Use grub_print_ucs4.
15512 (print_message): Use grub_putcode.
15513 (print_entry): Hanlde diacritics.
15514 * normal/term.c (term_state): New type.
15515 (grub_more_lines): Removed.
15516 (term_states): New variable.
15517 (grub_normal_line_counter): Renamed to ..
15518 (grub_normal_char_counter): ...this. All users updated.
15519 (grub_normal_get_line_counter): Renamed to ...
15520 (grub_normal_get_char_counter): ... this.
15521 (grub_normal_reset_more): New function.
15522 (process_newline): Removed.
15523 (print_more): New function.
15524 (grub_install_newline_hook): Removed.
15525 (map_code): New function.
15526 (grub_puts_terminal): Use grub_print_ucs4.
15527 (putglyph): New function.
15528 (putcode_real): Likewise.
15529 (grub_putcode): Use putcode_real.
15530 (get_maxwidth): New function.
15531 (get_startwidth): Likewise.
15532 (print_ucs4_terminal): Likewise.
15533 (find_term_state): Likewise.
15534 (put_glyphs_terminal): Likewise.
15535 (print_backlog): Likewise.
15536 (print_ucs4_real): Likewise.
15537 (grub_print_ucs4): Likewise.
15538 (grub_xputs_normal): Likewise.
15539 * term/efi/console.c (grub_console_putchar): Output diacritics.
15540 (grub_console_getcharwidth): Removed.
15541 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
15542 * term/gfxterm.c (clear_char): Free chars.
15543 (scroll_up): Avoid leaking memory.
15544 (grub_gfxterm_putchar): Support diacritics.
15545 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
15546 * term/i386/pc/console.c (grub_console_term_output): Declare as
15547 GRUB_TERM_CODE_TYPE_VGA.
15548 * term/i386/pc/vga.c (grub_vga_term): Declare as
15549 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
15550 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
15551 GRUB_TERM_CODE_TYPE_VGA.
15552 * term/i386/vga_common.c (map_char): Removed.
15553 (grub_console_putchar): Likewise.
15554 (grub_console_getcharwidth): Likewise.
15555 * term/ieee1275/ofconsole.c: Simplify using terminfo.
15556 (colors): Reordered to match terminfo.
15557 (grub_ofconsole_normal_color): Removed.
15558 (grub_ofconsole_writeesc): Likewise.
15559 (grub_ofconsole_highlight_color): Likewise.
15560 (grub_ofconsole_getcharwidth): Likewise.
15561 (grub_ofconsole_setcolorstate): Likewise.
15562 (grub_ofconsole_setcolor): Likewise.
15563 (grub_ofconsole_getcolor): Likewise.
15564 (grub_ofconsole_readkey): Renamed to ...
15565 (readkey): ... this. Remove escape sequence handling. Return -1 on no
15566 key.
15567 (grub_ofconsole_checkkey): Removed.
15568 (grub_ofconsole_getkey): Likewise.
15569 (grub_ofconsole_getxy): Likewise.
15570 (grub_ofconsole_gotoxy): Likewise.
15571 (grub_ofconsole_cls): Likewise.
15572 (grub_ofconsole_refresh): Likewise.
15573 (grub_ofconsole_terminfo_input): New struct.
15574 (grub_ofconsole_terminfo_output): Likewise.
15575 (grub_ofconsole_term_input): Use terminfo.
15576 (grub_ofconsole_term_output): Likewise.
15577 (grub_console_init): Split into ...
15578 (grub_console_init_early): ...this and ...
15579 (grub_console_init_lately): ...this. Use terminfo.
15580 (grub_ofconsole_putchar): Renamed to ...
15581 (put): ... this. Remove mapping.
15582 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
15583 * term/serial.c: Simplify using terminfo.
15584 (xpos): Removed.
15585 (ypos): Likewise.
15586 (keep_track): Likewise.
15587 (registered): Likewise.
15588 (input_buf): Likewise.
15589 (npending): Likewise.
15590 (serial_translate_key_sequence): Likewise.
15591 (fill_input_buf): Likewise.
15592 (grub_serial_checkkey): Likewise.
15593 (grub_serial_getkey): Likewise.
15594 (grub_serial_getxy): Likewise.
15595 (grub_serial_gotoxy): Likewise.
15596 (grub_serial_putchar): Likewise.
15597 (grub_serial_cls): Likewise.
15598 (grub_serial_setcolorstate): Likewise.
15599 (grub_serial_setcursor): Likewise.
15600 (serial_hw_init): Use serial_hw_fetch.
15601 (grub_serial_terminfo_input): New variable.
15602 (grub_serial_terminfo_output): Likewise.
15603 (grub_serial_term_input): Use terminfo.
15604 (grub_serial_term_output): Likewise.
15605 * term/terminfo.c (putstr): Use put.
15606 (grub_terminfo_all_free): New function
15607 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
15608 (grub_terminfo_output_register): New function.
15609 (grub_terminfo_output_unregister): Likewise.
15610 (grub_terminfo_getxy): Likewise.
15611 (grub_terminfo_readkey): Likewise.
15612 (grub_terminfo_checkkey): Likewise.
15613 (grub_terminfo_getkey): Likewise.
15614 (grub_terminfo_input_init): Likewise.
15615 (print_terminfo): Likewise.
15616 (grub_cmd_terminfo): Handle encoding.
15617 (grub_terminfo_gotoxy): Track position.
15618 (grub_terminfo_cls): Likewise.
15619 (grub_terminfo_putchar): Likewise.
15620 (grub_terminfo_setcolorstate): Handle colors
15621 (grub_terminfo_cursor_on): This ...
15622 (grub_terminfo_cursor_off): ... and this merged into ...
15623 (grub_terminfo_setcursor): ... this.
15624 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
15625 * unicode/ArabicShaping.txt: New file (imported from Unicode).
15626 * unicode/BidiMirroring.txt: Likewise.
15627 * unicode/UnicodeData.txt: Likewise.
15628 * unicode/COPYING: Likewise.
15629 * util/grub-editenv.c (grub_putchar): Removed.
15630 (grub_xputs_real): New function.
15631 (grub_xputs): New variable.
15632 * util/grub-fstest.c (grub_putchar): Removed.
15633 (grub_xputs_real): New function.
15634 (grub_xputs): New variable.
15635 * util/grub-mkdevicemap.c (grub_putchar): Removed.
15636 (grub_xputs_real): New function.
15637 (grub_xputs): New variable.
15638 * util/grub-probe.c (grub_putchar): Removed.
15639 (grub_xputs_real): New function.
15640 (grub_xputs): New variable.
15641 * util/grub-script-check.c (grub_putchar): Removed.
15642 (grub_xputs_real): New function.
15643 (grub_xputs): New variable.
15644 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
15645 (grub_xputs_real): New function.
15646 (grub_xputs): New variable.
15647 * util/import_unicode.py: New file.
15648 * util/grub-mkfont.c (ft_errmsgs): New array.
15649 (grub_glyph_info): Make bitmap a pointer.
15650 (file_formats): New type WIDTH_SPEC.
15651 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
15652 (options): Add width-spec.
15653 (help): Likewise.
15654 (add_char): Renamed to ...
15655 (add_glyph): ... this.
15656 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
15657 (glyph_replace): New type.
15658 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
15659 (add_char): New function.
15660 (add_subst): Likewise.
15661 (process_cursive): Likewise.
15662 (add_font): Handle GSUB.
15663 (write_font_width_spec): New function.
15664 (main): Sort glyphs.
15665 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
15666 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
15667 * kern/term.c (grub_cls): Moved from here...
15668 * normal/term.c (grub_cls): ... here.
15669
50f0bcda
CW
156702010-07-02 Colin Watson <cjwatson@ubuntu.com>
15671
15672 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
15673 suitable for using within the format argument of printf when
15674 converting grub_size_t.
15675 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
15676 "x" to convert grub_size_t arguments.
15677
40372103
VS
156782010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
15681 too long captions.
15682 (list_get_minimal_size): Take selection box into account.
15683
942a10c7
VS
156842010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
15687 NULL font.
15688
2bdb2892
CW
156892010-07-02 Colin Watson <cjwatson@ubuntu.com>
15690
15691 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
15692 devices when iterating over /dev/disk/by-id; they will be handled
15693 later if appropriate, which they aren't always (e.g. LVM).
15694
e03ed6c1
CW
156952010-07-02 Colin Watson <cjwatson@ubuntu.com>
15696
15697 * include/grub/misc.h (grub_reboot): Declare as noreturn.
15698 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
15699 fails.
15700 (grub_halt): Likewise.
15701 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
15702 reset-all fails.
15703 (grub_halt): Don't return, even if all of shut-down, power-off, and
15704 poweroff fail.
15705
47695765
CW
157062010-07-02 Colin Watson <cjwatson@ubuntu.com>
15707
15708 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
15709 arguments, not three.
15710
507736c8
CW
157112010-07-02 Colin Watson <cjwatson@ubuntu.com>
15712
15713 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
15714 * util/grub.d/10_linux.in: Use it to check for LVM, so that
15715 LVM-on-RAID is handled correctly.
15716
e3c8cd37
CW
157172010-07-02 Colin Watson <cjwatson@ubuntu.com>
15718
15719 * docs/grub.texi (Changes from GRUB Legacy): New section.
15720 (Future): Fix typo.
15721
8d4a2fec
CW
157222010-07-02 Colin Watson <cjwatson@ubuntu.com>
15723
15724 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
15725 grub.d/README accidentally ends up executable for one reason or
15726 another. Ignore it.
15727
1c4827be
VS
157282010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15729
15730 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
15731 (gpt_partition_map_iterate): Support non-512B sectors.
15732
d9a0c941
VS
157332010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * kern/efi/init.c (grub_efi_init): Disable watchdog.
15736 Tested by: Seth Goldberg.
15737
48f27e87
VS
157382010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
15741 Properly align mbi.
15742 Reported by: Seth Goldberg.
15743
b0c4f956
VS
157442010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15745
15746 * util/grub-mkrescue.in: Avoid module duplication.
15747
105a2e8c
SF
157482010-07-01 Sean Finney <seanius@seanius.net>
15749
15750 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
15751
5944958c
SF
157522010-07-01 Sean Finney <seanius@seanius.net>
15753
15754 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
15755
157562010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 * disk/lvm.c (grub_lvm_checkvalue): New function.
15759 (grub_lvm_check_flag): Likewise.
15760
b79889ba
RM
157612010-07-01 Robert Millan <rmh@gnu.org>
15762
15763 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
15764 Support 'p' as partition separator on kernel of FreeBSD (used
15765 with GPT labels).
15766 (grub_util_biosdisk_get_grub_dev): Likewise.
15767
ec1d04f1
VS
157682010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
15769
15770 Yeeloong firmware port.
15771
15772 * boot/mips/yeeloong/fwstart.S: New file.
15773 * bus/cs5536.c (gpiodump): New const.
15774 (set_io_space): New function.
15775 (set_iod): Likewise.
15776 (set_p2d): Likewise.
15777 (grub_cs5536_init_geode): Likewise.
15778 * commands/mips/yeeloong/lsspd.c: New file.
15779 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
15780 (serial_mod_SOURCES): New variable.
15781 (serial_mod_CFLAGS): Likewise.
15782 (serial_mod_LDFLAGS): Likewise.
15783 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
15784 term/terminfo.c and term/tparm.c.
15785 (pkglib_IMAGES): Add fwstart.img.
15786 (fwstart_img_SOURCES): New variable.
15787 (fwstart_img_CFLAGS): Likewise.
15788 (fwstart_img_ASFLAGS): Likewise.
15789 (fwstart_img_LDFLAGS): Likewise.
15790 (fwstart_img_FORMAT): Likewise.
15791 (pkglib_MODULES): Add lsspd.mod.
15792 (lsspd_mod_SOURCES): New variable.
15793 (lsspd_mod_CFLAGS): Likewise.
15794 (lsspd_mod_LDFLAGS): Likewise.
15795 (pkglib_MODULES): Add halt.mod.
15796 (halt_mod_SOURCES): New variable.
15797 (halt_mod_CFLAGS): Likewise.
15798 (halt_mod_LDFLAGS): Likewise.
15799 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
15800 (serial_mod_SOURCES): Removed.
15801 (serial_mod_CFLAGS): Likewise.
15802 (serial_mod_LDFLAGS): Likewise.
15803 * disk/ata.c (check_device): New function.
15804 (grub_ata_device_initialize): Use check_device.
15805 (grub_ata_iterate): Recheck devices.
15806 (grub_ata_open): Likewise.
15807 (grub_atapi_iterate): Likewise.
15808 (grub_atapi_open): Likewise.
15809 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
15810 (GRUB_ATA_CH1_PORT1): Likewise.
15811 (GRUB_ATA_CH0_PORT2): Likewise.
15812 (GRUB_ATA_CH1_PORT2): Likewise.
15813 * include/grub/mips/loongson.h: New file.
15814 * include/grub/mips/yeeloong/ec.h: Likewise.
15815 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
15816 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
15817 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
15818 * include/grub/misc.h (grub_halt): Declare as noreturn.
15819 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
15820 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
15821 (UART_ENABLE_FIFO_TRIGGER1): New definition.
15822 (UART_ENABLE_DTRRTS): Likewise.
15823 (UART_ENABLE_MODEM): Removed.
15824 (UART_ENABLE_OUT2): New const.
15825 * include/grub/term.h (grub_term_register_input_active): New function.
15826 (grub_term_register_output_active): Likewise.
15827 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
15828 argument.
15829 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
15830 (init_pci): New function.
15831 (grub_machine_init): Execute platform init when firmware. Init serial.
15832 (grub_halt): Implement.
15833 (grub_exit): Likewise.
15834 (grub_reboot): Likewise.
15835 * term/serial.c (serial_hw_init): Update macros.
15836 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
15837 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
15838 (image_targets): New target mipsel-yeeloong-flash.
15839 (generate_image): Support IMAGE_YEELOONG_FLASH.
15840 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
15841 (grub_video_sm712_setup): Init card.
15842 (grub_video_sm712_set_palette): Removed.
15843 * video/sm712_init.c: New file.
15844
ff4a70d2
CW
158452010-06-30 Colin Watson <cjwatson@ubuntu.com>
15846
15847 * Makefile.in (install-local): Temporarily prepend $(builddir) to
15848 PATH when running help2man and then run it on the unadorned
15849 executable names, rather than passing $(builddir)/* paths to
15850 help2man. This avoids the build directory ending up in generated
15851 manual pages.
15852
1246efeb
CW
158532010-06-29 Colin Watson <cjwatson@ubuntu.com>
15854
15855 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
15856 to avoid accidents when debugging with 'sh -x'.
15857 * util/grub-mkrescue.in: Likewise.
15858 * util/grub.d/00_header.in: Likewise.
15859 * util/grub.d/10_hurd.in: Likewise.
15860 * util/grub.d/10_kfreebsd.in: Likewise.
15861 * util/grub.d/10_linux.in: Likewise.
15862 * util/grub.d/10_netbsd.in: Likewise.
15863 * util/grub.d/10_windows.in: Likewise.
15864 * util/grub.d/20_linux_xen.in: Likewise.
15865 * util/grub.d/30_os-prober.in: Likewise.
15866 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15867
1ba9b889
CW
158682010-06-29 Colin Watson <cjwatson@ubuntu.com>
15869
15870 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
15871 last character in the buffer.
15872 Reported by: Vladimir Serbinenko.
15873
dccaf99d
RM
158742010-06-29 Robert Millan <rmh@gnu.org>
15875
15876 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
15877 (Command-line and menu entry commands): Document `badram' command.
15878
d500ed12
RM
158792010-06-28 Robert Millan <rmh@gnu.org>
15880
15881 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
15882 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
15883 command using ${GRUB_BADRAM} as parameter.
15884
20bc84a6
CW
158852010-06-28 Colin Watson <cjwatson@ubuntu.com>
15886
15887 * docs/grub.texi (Device map): New section.
15888 (Themes): New section (stub).
15889 * Makefile.in (docs/grub.info): The info documentation now builds
15890 without errors. Make sure it stays that way.
15891
4045dee1
VS
158922010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 Use normal parser for menu entries.
15895 Reported by: Thomas Frauendorfer
15896
15897 * include/grub/parser.h (grub_parser_execute): Don't export.
15898 * normal/menu.c (grub_menu_execute_entry_real): New function.
15899 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
15900
bca58c7b
CW
159012010-06-28 Colin Watson <cjwatson@ubuntu.com>
15902
15903 * docs/grub.texi (Embedded configuration): New section (replacing
15904 old "Preset Menu" stub).
15905 (Images): New section.
15906 (configfile): Note that any menu entries defined in `file' are shown
15907 immediately.
15908
dec53e63
JT
159092010-06-28 Josh Triplett <josh@joshtriplett.org>
15910
15911 * mmap/i386/pc/mmap_helper.S: Set CF on return.
15912
c06e40f7
CW
159132010-06-28 Colin Watson <cjwatson@ubuntu.com>
15914
15915 * util/grub-install.in: Add --debug-image= option.
15916
cb88052b
CW
159172010-06-28 Colin Watson <cjwatson@ubuntu.com>
15918
15919 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
15920 possible on Linux.
15921
15922 * util/deviceiter.c (check_device): Rename to ...
15923 (check_device_readable_unique): ... this. Update all callers.
15924 Maintain and check a list of which devices (by canonicalized name)
15925 have already been seen.
15926 (clear_seen_devices): New function.
15927 (compare_file_names) [__linux__]: New function.
15928 (grub_util_iterate_devices): Clear the list of seen devices on exit
15929 and (just in case) on entry.
15930 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
15931 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
15932 seen-devices list, superseded by general code in check_device.
15933
bbe34652
CW
159342010-06-28 Colin Watson <cjwatson@ubuntu.com>
15935
15936 * commands/cat.c (options): New variable.
15937 (grub_cmd_cat): Parse options. If the --dos option is given, print
15938 DOS-style "\r\n" line endings as simple newlines (Debian bug
15939 #586358).
15940 (GRUB_MOD_INIT): Use extcmd.
15941 (GRUB_MOD_FINI): Likewise.
15942 * docs/grub.texi (cat): Document --dos.
15943
412e09f3
VS
159442010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 XEN with Linux grub-mkconfig support.
15947
15948 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
15949 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
15950 GRUB_CMDLINE_XEN_DEFAULT.
15951 * util/grub.d/20_linux_xen.in: New file.
15952
53f3ef38 159532010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
15954
15955 Initialise VGA video on qemu ourselves.
15956
15957 * boot/i386/qemu/boot.S: Don't call 0xc000.
15958 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
15959 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
15960 (kernel_img_HEADERS): Add pci.h.
15961 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
15962 * configure.ac: Force unifont on qemu and yeeloong.
15963 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
15964 (grub_vga_palette_write): Use correct register.
15965 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
15966 Call grub_qemu_init_cirrus.
15967 * kern/i386/qemu/init.c: New file.
15968 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
15969
15970 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
15971
c75be4fb
PR
159722010-06-26 Pavel Roskin <proski@gnu.org>
15973
15974 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
15975 13.
15976
d8034603
CW
159772010-06-26 Colin Watson <cjwatson@ubuntu.com>
15978
15979 * docs/grub.texi (Simple configuration): Explain that
15980 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
15981 set to `true' to disable their respective recovery entries, not
15982 merely set.
15983
3fa06487
CW
159842010-06-26 Colin Watson <cjwatson@ubuntu.com>
15985
15986 Make the `source' command slightly faster.
15987
15988 * normal/main.c (grub_normal_execute): Don't re-read list files when
15989 nested.
15990
e9b29642
CW
159912010-06-23 Colin Watson <cjwatson@ubuntu.com>
15992
15993 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
15994 field position and mask size to red fields from mode_info, not
15995 green.
15996 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
15997 Remove redundant tag->common.framebuffer_type assignment.
15998 Reported by: Seth Goldberg.
15999
e726542f
CW
160002010-06-23 Colin Watson <cjwatson@ubuntu.com>
16001
16002 Sync up other versions of the Linux loader with Robert Millan's
16003 change of 2010-01-09, "Make loader output a bit more user-friendly".
16004
16005 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
16006 grub_dprintf().
16007 (grub_cmd_linux): Likewise.
16008 (grub_cmd_initrd): Likewise.
16009 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
16010 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16011
d6e98a17
CW
160122010-06-21 Colin Watson <cjwatson@ubuntu.com>
16013
16014 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
16015 larger than MEMORY_MAP_SIZE.
16016
14d3f08e
BC
160172010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
16018
16019 Fix parallel build.
16020
16021 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
16022 dependency.
16023 * script/parser.y: #include grub_script.tab.h header.
16024
4f9613a3
VS
160252010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 Support >3GiB and <16MiB RAM in i386-qemu.
16028
16029 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
16030 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
16031 (grub_lower_mem): Removed.
16032 (grub_upper_mem): Likewise.
16033 (mem_size): Made static.
16034 (above_4g): New variable.
16035 (grub_machine_mmap_init): Detect small mem_size and above_4g.
16036 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
16037 support.
16038
05e51879
VS
160392010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16040
16041 Cirrus 5446 and Bochs video cards support.
16042
16043 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
16044 video_bochs.mod
16045 (video_cirrus_mod_SOURCES): New variable.
16046 (video_cirrus_mod_CFLAGS): Likewise.
16047 (video_cirrus_mod_LDFLAGS): Likewise.
16048 (video_bochs_mod_SOURCES): Likewise.
16049 (video_bochs_mod_CFLAGS): Likewise.
16050 (video_bochs_mod_LDFLAGS): Likewise.
16051 * include/grub/vga.h: New file.
16052 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
16053 (grub_video_fb_set_page_t): New type.
16054 (grub_video_fb_setup): New prototype.
16055 (grub_video_fb_swap_buffers): Likewise.
16056 (grub_video_fb_get_info_and_fini): Likewise.
16057 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
16058 (CRTC_DATA_PORT): Likewise.
16059 (CRTC_CURSOR): Likewise.
16060 (CRTC_CURSOR_ADDR_HIGH): Likewise.
16061 (CRTC_CURSOR_ADDR_LOW): Likewise.
16062 (CRTC_CURSOR_DISABLE): Likewise.
16063 (update_cursor): Use grub_vga_cr_write.
16064 (grub_vga_text_setcursor): Likewise.
16065 * video/bochs.c: New file.
16066 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
16067 (palette): Likewise.
16068 (palette_size): Likewise.
16069 (framebuffer): New variable.
16070 (grub_video_fb_init): Use 'framebuffer'.
16071 (grub_video_fb_fini): Likewise.
16072 (grub_video_fb_get_info): Likewise.
16073 (grub_video_fb_get_palette): Likewise.
16074 (grub_video_fb_set_palette): Likewise.
16075 (grub_video_fb_set_viewport): Likewise.
16076 (grub_video_fb_get_viewport): Likewise.
16077 (grub_video_fb_map_color): Likewise.
16078 (grub_video_fb_map_rgb): Likewise.
16079 (grub_video_fb_map_rgba): Likewise.
16080 (grub_video_fb_unmap_color): Likewise.
16081 (grub_video_fb_unmap_color_int): Likewise.
16082 (grub_video_fb_fill_rect): Likewise.
16083 (grub_video_fb_blit_bitmap): Likewise.
16084 (grub_video_fb_blit_render_target): Likewise.
16085 (grub_video_fb_scroll): Likewise.
16086 (grub_video_fb_create_render_target): Likewise.
16087 (grub_video_fb_doublebuf_blit_init): Likewise.
16088 (grub_video_fb_set_active_render_target): Handle doublebuffering.
16089 (doublebuf_pageflipping_update_screen): New function.
16090 (doublebuf_pageflipping_init): Likewise.
16091 (grub_video_fb_setup): Likewise.
16092 (grub_video_fb_swap_buffers): Likewise.
16093 (grub_video_fb_get_info_and_fini): Likewise.
16094 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
16095 All users updated.
16096 (doublebuf_pageflipping_commit): Restructured into ...
16097 (doublebuf_pageflipping_set_page): ... this.
16098 (doublebuf_pageflipping_update_screen): Removed.
16099 (doublebuf_pageflipping_init): Likewise.
16100 (double_buffering_init): Likewise.
16101 (grub_video_vbe_setup): Use grub_video_fb_setup.
16102 (grub_video_vbe_swap_buffers): Removed.
16103 (grub_video_vbe_set_active_render_target): Likewise.
16104 (grub_video_vbe_get_active_render_target): Likewise.
16105 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
16106 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
16107 grub_video_fb_set_active_render_target and
16108 grub_video_fb_get_active_render_target.
16109 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
16110 (SEQUENCER_DATA_PORT): Likewise.
16111 (MAP_MASK_REGISTER): Likewise.
16112 (CRTC_ADDR_PORT): Likewise.
16113 (CRTC_DATA_PORT): Likewise.
16114 (START_ADDR_HIGH_REGISTER): Likewise.
16115 (START_ADDR_LOW_REGISTER): Likewise.
16116 (GRAPHICS_ADDR_PORT): Likewise.
16117 (GRAPHICS_DATA_PORT): Likewise.
16118 (READ_MAP_REGISTER): Likewise.
16119 (INPUT_STATUS1_REGISTER): Likewise.
16120 (INPUT_STATUS1_VERTR_BIT): Likewise.
16121 (get_map_mask): Use grub_vga_sr_read.
16122 (set_map_mask): Use grub_vga_sr_write.
16123 (set_read_map): Use grub_vga_gr_write.
16124 (set_start_address): Use grub_vga_cr_write.
16125 * video/sm712.c (framebuffer): Remove leftover fields.
16126
4321c64a
CW
161272010-06-20 Colin Watson <cjwatson@ubuntu.com>
16128
16129 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
16130 setting GRUB_VIDEO_BACKEND. Make it available as a user override
16131 instead. Replace the gfxterm backend check with a check that
16132 ${GRUB_PREFIX}/video.lst is non-empty.
16133 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
16134 again.
16135 (load_video): New generated function. Call it before loading
16136 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
16137 * util/grub.d/10_linux.in (linux_entry): Call load_video.
16138 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
16139 * docs/grub.texi (Simple configuration): Document
16140 GRUB_VIDEO_BACKEND.
16141
161422010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 Use video functions in linux and xnu loaders.
16145
16146 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
16147 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
16148 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
16149 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
16150 loader/i386/pc/linux.c.
16151 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
16152 (find_line_len): Removed.
16153 (find_framebuf): Likewise.
16154 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
16155 * loader/i386/efi/xnu.c: Removed.
16156 * loader/i386/pc/xnu.c: Moved from here...
16157 * loader/i386/xnu.c: ...here.
16158
16159 Enable priorities in video drivers.
16160
16161 * include/grub/video.h (grub_video_adapter_prio_t): New type.
16162 (grub_video_adapter): New field prio.
16163 (grub_video_register): Respect prio when inserting.
16164 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
16165 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
16166 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
16167 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
16168 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
16169 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
16170 * video/sm712.c (grub_video_sm712_adapter): Likewise.
16171
16172 Fix SDL driver ID.
16173
16174 * include/grub/video.h (grub_video_driver_id_t): New value
16175 GRUB_VIDEO_DRIVER_SDL.
16176 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
16177
7d24e434
CW
161782010-06-17 Colin Watson <cjwatson@ubuntu.com>
16179
16180 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
16181 argument to printf.
16182 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16183
c88a83f6
CW
161842010-06-17 Colin Watson <cjwatson@ubuntu.com>
16185
16186 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
16187 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16188
094dfb69
CW
161892010-06-17 Colin Watson <cjwatson@ubuntu.com>
16190
16191 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
16192 directly, and recommend grub-install instead.
16193 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
16194
2164da6b
CW
161952010-06-17 Colin Watson <cjwatson@ubuntu.com>
16196
16197 Fix i386-pc prefix handling with nested partitions (Debian bug
16198 #585068). Note that the case where the core image is booted using
16199 multiboot and relocated from its original location still requires
16200 more work.
16201
16202 * kern/i386/pc/init.c (make_install_device): If the prefix starts
16203 with "(,", fill the boot drive in between those two characters, but
16204 expect that a full partition specification including partition map
16205 names will follow.
16206 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
16207 specified, write a prefix without the drive name but including a
16208 full partition specification.
16209
044e2e60
CW
162102010-06-16 Colin Watson <cjwatson@ubuntu.com>
16211
16212 * util/grub-mkconfig.in: Ignore non-option arguments, for
16213 compatibility with older versions (before 2010-06-12) which did the
16214 same. In particular, this makes it easier to ship an update-grub
16215 wrapper which is compatible with that used with GRUB Legacy (Debian
16216 bug #586056).
16217
5591324f
GS
162182010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
16219
16220 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
16221 for manual page generation.
16222
662e24d5
GS
162232010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
16224
16225 * po/POTFILES: Remove leftover commands/handler.c.
16226
8d70754e
CW
162272010-06-14 Colin Watson <cjwatson@ubuntu.com>
16228
16229 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
16230 left this script non-functional.
16231
41160e2e
CW
162322010-06-14 Colin Watson <cjwatson@ubuntu.com>
16233
16234 * docs/man/grub-emu.h2m: New file.
16235
b5309cc1
CW
162362010-06-13 Colin Watson <cjwatson@ubuntu.com>
16237
16238 * docs/grub.texi (Commands): Document reduced command set in rescue
16239 mode.
16240 (cpuid): New section.
16241
fcb2d090
GS
162422010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
16243
16244 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
16245 new partition naming style.
16246 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
16247
96e5c556
BC
162482010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
16249
16250 Add "-o grub.iso" like cmdline options support.
16251
16252 * util/grub-install.in: Improve cmdline option parsing.
16253 * util/grub-mkconfig.in: Likewise.
16254 * util/grub-mkrescue.in: Likewise.
16255 * util/grub-reboot.in: Likewise.
16256 * util/grub-set-default.in: Likewise.
16257 * util/i386/efi/grub-install.in: Likewise.
16258 * util/ieee1275/grub-install.in: Likewise.
16259 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16260
c16be99b
CW
162612010-06-12 Colin Watson <cjwatson@ubuntu.com>
16262
16263 * .bzrignore: Ignore 41_custom.
16264
ce08a9fb
TS
162652010-06-12 Thomas Schmitt <scdbackup@gmx.net>
16266
16267 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
16268
7beac90c
CW
162692010-06-12 Colin Watson <cjwatson@ubuntu.com>
16270
16271 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
16272 prototype declarations.
16273
16274 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
16275 generating fs, partmap, and video lists.
16276 * include/grub/fs.h (grub_fs_register): Omit prototype if
16277 GRUB_LST_GENERATOR is defined.
16278 * include/grub/partition.h (grub_partition_map_register): Likewise.
16279 * include/grub/video.h (grub_video_register): Likewise.
16280
1c8f0f8d
JM
162812010-06-12 Javier Martín <lordhabbit@gmail.com>
16282
16283 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
16284
a6085973
TS
162852010-06-12 Thomas Schmitt <scdbackup@gmx.net>
16286
16287 * util/grub-mkrescue.in: Support --xorriso argument.
16288
25c56d29
VS
162892010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16290
16291 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
16292 Suggested by: Thomas Schmitt.
16293
e03e4b24
VS
162942010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16295
16296 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
16297 Suggested by: Thomas Schmitt.
16298
57711df6
VS
162992010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16300
16301 custom.cfg support.
16302
16303 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
16304 * util/grub.d/41_custom.in: New file.
16305
ee62c427
CW
163062010-06-12 Colin Watson <cjwatson@ubuntu.com>
16307
16308 * util/grub-mkrescue.in (make_image): Remove sh module, which has
16309 been merged back into normal.
16310
283af07a
CW
163112010-06-11 Colin Watson <cjwatson@ubuntu.com>
16312
16313 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
16314 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
16315
56a0d956
CW
163162010-06-11 Colin Watson <cjwatson@ubuntu.com>
16317
16318 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
16319 when generating manual pages.
16320 * docs/man/grub-bin2h.h2m: New file.
16321 * docs/man/grub-editenv.h2m: New file.
16322 * docs/man/grub-fstest.h2m: New file.
16323 * docs/man/grub-install.h2m: New file.
16324 * docs/man/grub-macho2img.h2m: New file.
16325 * docs/man/grub-mkconfig.h2m: New file.
16326 * docs/man/grub-mkdevicemap.h2m: New file.
16327 * docs/man/grub-mkfont.h2m: New file.
16328 * docs/man/grub-mkimage.h2m: New file.
16329 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
16330 * docs/man/grub-mkrelpath.h2m: New file.
16331 * docs/man/grub-mkrescue.h2m: New file.
16332 * docs/man/grub-ofpathname.h2m: New file.
16333 * docs/man/grub-pe2elf.h2m: New file.
16334 * docs/man/grub-probe.h2m: New file.
16335 * docs/man/grub-reboot.h2m: New file.
16336 * docs/man/grub-script-check.h2m: New file.
16337 * docs/man/grub-set-default.h2m: New file.
16338 * docs/man/grub-setup.h2m: New file.
16339
3a37e322
VS
163402010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 Use FOR_* macros instead of *_iterate whenever possible.
16343
16344 * commands/handler.c: Removed.
16345 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
16346 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
16347 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16348 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
16349 (grub_probe_SOURCES): Remove kern/parser.c.
16350 (util/grub-script-check.c_DEPENDENCIES): Removed.
16351 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
16352 and grub_script_check_init.c.
16353 (grub_script_check_init.lst): Removed.
16354 (grub_script_check_init.h): Likewise.
16355 (grub_script_check_init.c): Likewise.
16356 (pkglib_MODULES): Remove handler.mod and sh.mod.
16357 (handler_mod_SOURCES): Removed.
16358 (handler_mod_CFLAGS): Likewise.
16359 (handler_mod_LDFLAGS): Likewise.
16360 (normal_mod_SOURCES): Remove normal/handler.c.
16361 Add script/main.c, script/script.c, script/execute.c,
16362 script/function.c, script/lexer.c, grub_script.tab.c
16363 and grub_script.yy.c.
16364 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16365 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16366 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
16367 (grub_setup_SOURCES): Remove kern/parser.c.
16368 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16369 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
16370 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
16371 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16372 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
16373 (grub_setup_SOURCES): Remove kern/parser.c.
16374 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
16375 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
16376 * include/grub/command.h (grub_command_iterate): Removed.
16377 (FOR_COMMANDS): New macro.
16378 * include/grub/dl.h (grub_dl): New member next.
16379 (grub_dl_iterate): Removed.
16380 (grub_dl_head): New variable declaration.
16381 (FOR_DL_MODULES): New macro.
16382 * include/grub/fs.h: Include list.h.
16383 (grub_fs): Make next first element.
16384 (grub_fs_list): New variable declaration.
16385 (grub_fs_register): Make inline.
16386 (grub_fs_unregister): Likewise.
16387 (grub_fs_iterate): Removed.
16388 (FOR_FILESYSTEMS): New macro.
16389 * include/grub/handler.h: Removed.
16390 * include/grub/list.h (grub_list_hook_t): Removed.
16391 (grub_list_test_t): Likewise.
16392 (grub_list_pop): Likewise.
16393 (grub_list_iterate): Likewise.
16394 (grub_list_insert): Likewise.
16395 (FOR_LIST_ELEMENTS): New macro.
16396 * include/grub/parser.h (grub_parser_class): Removed.
16397 (grub_parser_register): Likewise.
16398 (grub_parser_unregister): Likewise.
16399 (grub_parser_get_current): Likewise.
16400 (grub_parser_set_current): Likewise.
16401 (grub_register_rescue_parser): Likewise.
16402 (grub_rescue_parse_line): New function.
16403 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
16404 * include/grub/script_sh.h (grub_script_function_list): New variable
16405 declaration.
16406 (FOR_SCRIPT_FUNCTIONS): New macro.
16407 (grub_script_function_iterate): Removed.
16408 (grub_normal_parse_line): New prototype.
16409 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
16410 (FOR_DISABLED_TERM_INPUTS): Likewise.
16411 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
16412 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
16413 * include/grub/video.h (grub_video_adapter): Move 'next' to first
16414 element.
16415 (grub_video_register): Inline.
16416 (grub_video_unregister): Likewise.
16417 (grub_video_adapter_list): New variable declaration.
16418 (grub_video_iterate): Removed.
16419 (FOR_VIDEO_ADAPTERS): New macro.
16420 * kern/dl.c (grub_dl_list): Removed. All users updated.
16421 (grub_dl_iterate): Removed.
16422 * kern/fs.c (grub_fs_list): Make global.
16423 (grub_fs_register): Removed.
16424 (grub_fs_unregister): Likewise.
16425 (grub_fs_iterate): Likewise.
16426 * kern/handler.c: Removed.
16427 * kern/list.c (grub_list_pop): Removed.
16428 (grub_list_iterate): Likewise.
16429 (grub_list_insert): Likewise.
16430 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
16431 (grub_prio_list_insert): Don't use grub_list_insert.
16432 * kern/main.c (grub_register_rescue_parser): Don't call
16433 grub_register_rescue_parser.
16434 * kern/parser.c (grub_parser_class): Removed.
16435 (grub_parser_execute): Use grub_rescue_parse_line.
16436 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
16437 (grub_rescue_parser): Removed.
16438 (grub_register_rescue_parser): Likewise.
16439 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
16440 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
16441 (grub_auth_check_authentication): Likewise.
16442 * normal/completion.c (iterate_command): Removed.
16443 (grub_normal_do_completion): Use FOR_COMMANDS.
16444 * normal/handler.c: Removed.
16445 * normal/main.c (read_config_file): Remove parser changing.
16446 (grub_normal_execute): Don't call read_handler_list.
16447 (grub_normal_read_line_real): Statically allocate prompt.
16448 (grub_cmdline_run): Use grub_normal_parse_line.
16449 (GRUB_MOD_FINI): Don't call free_handler_list.
16450 * normal/menu_entry.c (run): Likewise.
16451 * script/function.c (grub_script_function_list): Make global.
16452 (grub_script_function_iterate): Removed.
16453 * script/main.c (grub_normal_parse_line): Make global.
16454 (grub_sh_parser): Removed.
16455 (GRUB_MOD_INIT): Likewise.
16456 (GRUB_MOD_FINI): Likewise.
16457 * tests/lib/functional_test.c (grub_functional_test): Use
16458 FOR_LIST_ELEMENTS.
16459 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
16460 (grub_test_run): Use FOR_LIST_ELEMENTS.
16461 * tests/lib/unit_test.c (main): Likewise.
16462 * util/deviceiter.c (grub_util_iterate_devices): Don't use
16463 grub_list_pop.
16464 * util/grub-fstest.c (grub_term_input_class): Removed.
16465 (grub_term_output_class): Likewise.
16466 * util/grub-probe.c: Likewise.
16467 * util/i386/pc/grub-setup.c: Likewise.
16468 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16469 * util/grub-script-check.c (main): Don't call grub_init_all and
16470 grub_fini_all.
16471 * video/video.c (grub_video_adapter_list): Make global.
16472 (grub_video_register): Removed.
16473 (grub_video_unregister): Likewise.
16474 (grub_video_iterate): Likewise.
16475
6289c3a7
VS
164762010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
16479 reported by Henrique Ferreiro.
16480
91460247
RM
164812010-06-09 Robert Millan <rmh@gnu.org>
16482
16483 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
16484 ones, when both are available.
16485
0ea7c4f9
GS
164862010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16487
16488 Make --version uniform and avoid hard-coded program name.
16489
16490 * util/grub-mkimage.c (main): Use `program_name' instead of
16491 hard-coded string.
16492 * util/i386/pc/grub-setup.c (main): Likewise.
16493 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
16494 * util/grub-install.in: Save the basename of $0 in $self, and use the
16495 latter in informational messages. Use the same format for --version
16496 as the binary programs.
16497 * util/grub-mkconfig.in: Likewise.
16498 * util/grub-mkrescue.in: Likewise.
16499 * util/grub-reboot.in: Likewise.
16500 * util/grub-set-default.in: Likewise.
16501 * util/i386/efi/grub-install.in: Likewise.
16502 * util/ieee1275/grub-install.in: Likewise.
16503 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16504
e8a6f3b6
GS
165052010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16506
16507 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
16508 embedding area. Use <= instead of == when checking for non-emptiness.
16509
f4d095d7
GS
165102010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16511
16512 * configure.ac: Add `.' to the directories searched for unifont.
16513
50e532ca
CW
165142010-06-08 Colin Watson <cjwatson@ubuntu.com>
16515
16516 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
16517 grub_script.yy.h.
16518
d39f3dec
CW
165192010-06-08 Colin Watson <cjwatson@ubuntu.com>
16520
16521 * docs/grub.texi (History): Expand to cover GRUB 2.
16522 (Serial terminal): Refer to `terminal_input' and `terminal_output'
16523 commands, not `terminal'.
16524 (serial): Likewise.
16525 (terminal_input): New section.
16526 (terminal_output): New section.
16527 (uppermem): New section (stub).
16528 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
16529
6ef0ddb4
CW
165302010-06-08 Colin Watson <cjwatson@ubuntu.com>
16531
16532 * docs/grub.texi (Security): Menu entries are unrestricted by
16533 default, not restricted to superusers as I had previously thought.
16534 Reword to account for this.
16535
e0f4c438
CW
165362010-06-07 Colin Watson <cjwatson@ubuntu.com>
16537
16538 * kern/emu/misc.c (device_mapper_null_log): New function.
16539 (grub_device_mapper_supported): New function.
16540 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
16541 prototype.
16542 * kern/emu/hostdisk.c (find_partition_start): Check whether
16543 device-mapper is supported before trying to use it.
16544 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
16545
da908200
CW
165462010-06-07 Colin Watson <cjwatson@ubuntu.com>
16547
16548 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
16549 (File name syntax): Likewise.
16550 (help): --all is no longer supported in GRUB 2. Be more precise
16551 about pattern matching.
16552
fb55c3ac
CW
165532010-06-07 Colin Watson <cjwatson@ubuntu.com>
16554
16555 * normal/completion.c (grub_normal_do_completion): When completing
16556 arguments to "set" and the current word contains an equals sign,
16557 skip to after the equals sign before starting completion.
16558
258c2573
CW
165592010-06-07 Colin Watson <cjwatson@ubuntu.com>
16560
16561 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
16562
ee75515e
CW
165632010-06-07 Colin Watson <cjwatson@ubuntu.com>
16564
16565 * docs/grub.texi (Network): New section.
16566 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
16567 `(nd)' as in GRUB Legacy.
16568 (pxe_unload): New section.
16569
a6a700aa
CW
165702010-06-07 Colin Watson <cjwatson@ubuntu.com>
16571
16572 * docs/grub.texi (Troubleshooting): `echo' is not usually available
16573 in the rescue shell, so recommend using `set' instead. Thanks,
16574 Jordan Uggla.
16575
4003dd38
CW
165762010-06-07 Colin Watson <cjwatson@ubuntu.com>
16577
16578 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
16579 (password): New section.
16580 (password_pbkdf2): New section.
16581 (search): New section.
16582 (Security): New section.
16583 (Troubleshooting): New section, currently very incomplete.
16584 (Invoking grub-mkpasswd-pbkdf2): New section.
16585 (Internals): New section, currently very incomplete.
16586
e1cbcc40
CW
165872010-06-07 Colin Watson <cjwatson@ubuntu.com>
16588
16589 * util/grub.d/00_header.in: Add some more quoting (of
16590 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
16591 work again.
16592 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
16593
db8fa1ad
CW
165942010-06-07 Colin Watson <cjwatson@ubuntu.com>
16595
16596 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
16597 to `count', fixing variable shadowing that broke the -c option.
16598
165992010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
16600
16601 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
16602 in case they contain spaces.
16603
f28a9212
CW
166042010-06-04 Colin Watson <cjwatson@ubuntu.com>
16605
16606 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
16607 "part_" to partmap module names, in line with grub-install.
16608 Reported by: Jindřich Makovička (Debian bug #584426).
16609
9cdfe32f
CW
166102010-06-04 Colin Watson <cjwatson@ubuntu.com>
16611
16612 * util/grub-mkimage.c: Make target-related error messages slightly
16613 more helpful; -O talks about "format". Explicitly point to the use
16614 of -O if no target is specified.
16615 Reported by: Didier Raboud (Debian bug #584415).
16616
795b593a
CW
166172010-06-03 Colin Watson <cjwatson@ubuntu.com>
16618
16619 * INSTALL: Document several build requirements for optional features
16620 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
16621
9d9b5833
GS
166222010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
16623
16624 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
16625 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
16626 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
16627
0819fec8
CW
166282010-06-02 Colin Watson <cjwatson@ubuntu.com>
16629
16630 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
16631 Thanks to Jordan Uggla for spotting this.
16632
49396b4f
VS
166332010-06-02 Aleš Nesrsta <starous@volny.cz>
16634
16635 Finally make USB usable.
16636
16637 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
16638 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
16639 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
16640 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
16641 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
16642 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
16643 (GRUB_OHCI_FSMPS): Likewise.
16644 (GRUB_OHCI_PERIODIC_START): Likewise.
16645 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
16646 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
16647 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
16648 (GRUB_OHCI_SET_PORT_RESET): Likewise.
16649 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
16650 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
16651 (grub_ohci_transaction): Likewise.
16652 (grub_ohci_transfer): Improve condition detection algorithms.
16653 Handle toggle property. Program the transactions correctly.
16654 Improve error handling. Various important fixups.
16655 (grub_ohci_portstatus): Put register writes in right order.
16656 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
16657 (grub_uhci_transfer): Don't show "failed" message on success.
16658 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
16659 array.
16660 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
16661 determine its size.
16662 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
16663 before initialization is completed. Use IN direction for empty
16664 transfers. Use last_trans and compute toggle.
16665 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
16666 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
16667 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
16668 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
16669 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
16670 (grub_usb_device): Increase toggle to 256.
16671 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
16672 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
16673 GRUB_USBMS_SUBCLASS_SFF8070.
16674 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
16675 (grub_scsi_inquiry): New member page and alloc_length.
16676 (grub_scsi_request_sense): New structure.
16677 (grub_scsi_request_sense_data): Likewise.
16678 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
16679 control.
16680 * disk/scsi.c (grub_scsi_request_sense): New function.
16681 (grub_scsi_test_unit_ready): Likewise.
16682 (grub_scsi_inquiry): Fill new fields.
16683 (grub_scsi_read_capacity): Likewise.
16684 (grub_scsi_read10): Add request sense at the end.
16685 (grub_scsi_read12): Likewise.
16686 (grub_scsi_write10): Likewise.
16687 (grub_scsi_write12): Likewise.
16688 (grub_scsi_open): Add Test Unit Ready.
16689 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
16690 Support additional subclasses. Con't clear halt yet. Activate the
16691 proper config. Calculate LUNs correctly.
16692 (grub_usbms_transfer): Various important fixups.
16693
166942010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
16697 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
16698 (grub_ohci_fini_hw): New function.
16699 (grub_ohci_restore_hw): Likewise.
16700 (GRUB_MOD_INIT(ohci)): Register preboot hook.
16701 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
16702 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
16703
167042010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 Dedicated DMA allocations.
16707
16708 * bus/pci.c (grub_memalign_dma32): New function
16709 (grub_dma_free): Likewise.
16710 (grub_dma_get_virt): Likewise.
16711 (grub_dma_get_phys): Likewise.
16712 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
16713 (grub_ohci_pci_iter): Use dma32_alloc.
16714 (grub_ohci_transfer): Likewise.
16715 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16716 (grub_usb_bulk_readwrite): Likewise.
16717 * include/grub/pci.h: Add declarations.
16718
167192010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 CS5536 support.
16722
16723 * bus/cs5536.c: New file.
16724 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
16725 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
16726 (cs5536_mod_SOURCES): New variable.
16727 (cs5536_mod_CFLAGS): Likewise.
16728 (cs5536_mod_LDFLAGS): Likewise.
16729 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
16730 machine/pci.h.
16731 (kernel_img_SOURCES): Add bus/cs5536.c.
16732 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
16733 usb_keyboard.mod.
16734 (usb_mod_SOURCES): New variable.
16735 (usb_mod_CFLAGS): New variable.
16736 (usb_mod_LDFLAGS): New variable.
16737 (usbtest_mod_SOURCES): New variable.
16738 (usbtest_mod_CFLAGS): New variable.
16739 (usbtest_mod_LDFLAGS): New variable.
16740 (ohci_mod_SOURCES): New variable.
16741 (ohci_mod_CFLAGS): New variable.
16742 (ohci_mod_LDFLAGS): New variable.
16743 (usbms_mod_SOURCES): New variable.
16744 (usbms_mod_CFLAGS): New variable.
16745 (usbms_mod_LDFLAGS): New variable.
16746 (usb_keyboard_mod_SOURCES): New variable.
16747 (usb_keyboard_mod_CFLAGS): New variable.
16748 (usb_keyboard_mod_LDFLAGS): New variable.
16749 * include/grub/smbus.h: New file.
16750 * include/grub/cs5536.h: New file.
16751
0b35b2a9
CW
167522010-06-02 Colin Watson <cjwatson@ubuntu.com>
16753
16754 * util/grub.d/00_header.in: Add safety check to make sure that
16755 ${locale_dir} exists before trying to probe it.
16756
ca0afd5b
CW
167572010-06-02 Colin Watson <cjwatson@ubuntu.com>
16758
16759 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
16760 per the GNU Coding Standards; this is now too obscure to be worth
16761 documenting.
16762 (QNX): Likewise.
16763 (chainloader): Remove cross-reference to `SCO UnixWare'.
16764
1c41aa78
CW
167652010-06-02 Colin Watson <cjwatson@ubuntu.com>
16766
16767 * docs/grub.texi (Chain-loading): New section.
16768 (DOS/Windows): New section, borrowed from GRUB Legacy with details
16769 adjusted for GRUB 2.
16770 (SCO UnixWare): Likewise.
16771 (QNX): Likewise.
16772 (chainloader): Add reference to `Block list syntax'.
16773 (drivemap): New section.
16774 (parttool): New section.
16775
bb8ea0f5
CW
167762010-06-02 Colin Watson <cjwatson@ubuntu.com>
16777
16778 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
16779 the grub shell'.
16780 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
16781 (Installing GRUB using grub-install): Remove reference to the grub
16782 shell; mention `grub-mkimage' and `grub-setup' instead.
16783 (Invoking grub-install): Likewise.
16784 (Interface): Add reference to `Menu entry editor'.
16785 (serial): Remove `--device' option.
16786
288dd6ed
CW
167872010-06-02 Colin Watson <cjwatson@ubuntu.com>
16788
16789 * docs/grub.texi (Configuration): New section, documenting
16790 configuration file generation using grub-mkconfig. I've left a slot
16791 for documenting the full shell scripting format but have not yet
16792 started on writing that up.
16793 (Invoking grub-mkconfig): New section.
16794
34c9f0e9
CW
167952010-06-02 Colin Watson <cjwatson@ubuntu.com>
16796
16797 * docs/grub.texi (direntry): Remove grub-terminfo reference.
16798 (GNU GRUB manual): Likewise.
16799 (General commands): Update description of `terminfo' for GRUB 2.
16800
9121567e
CW
168012010-06-02 Colin Watson <cjwatson@ubuntu.com>
16802
16803 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
16804 (GRUB_MOD_INIT): Fix capitalisation.
16805 * docs/grub.texi (Command-line and menu entry commands): Document
16806 gettext and gptsync commands.
16807
ab631611
CW
168082010-06-02 Colin Watson <cjwatson@ubuntu.com>
16809
16810 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
16811 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
16812
bde4a9ac
CW
168132010-06-01 Colin Watson <cjwatson@ubuntu.com>
16814
16815 Add btrfs probing support, currently only in the single-device case.
16816
16817 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
16818 function.
16819 (grub_guess_root_device): Call find_root_device_from_mountinfo
16820 before looking in /dev.
16821
b1d17e10
VS
168222010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
16825 GRUB_DISK_SIZE_UNKNOWN.
16826 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
16827
dfbfe004
JS
168282010-05-31 Jiro SEKIBA <jir@unicus.jp>
16829
16830 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
16831 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
16832 corrupted or not synced properly.
16833
c2ffc8e9
VS
168342010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
16837 Reported by: Seth Goldberg.
16838
56293166
VS
168392010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16840
16841 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
16842 addition of dest.
16843 Reported by: Seth Goldberg.
16844
7620e7de
VS
168452010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
16848 Reported by: Seth Goldberg.
16849
c837af3f
VS
168502010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
16851
16852 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
16853 64-bit address as signed on MIPS.
16854
c7c75cf4
CW
168552010-05-28 Colin Watson <cjwatson@ubuntu.com>
16856
16857 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
16858 to the empty string.
16859
fa4b8490
BC
168602010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
16861
16862 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
16863
16864 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
16865 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
16866 * kern/misc.c (__enable_execute_stack): Disable on
16867 GRUB_MACHINE_EMU.
16868
a33075b9
CW
168692010-05-28 Colin Watson <cjwatson@ubuntu.com>
16870
16871 Make grub-probe work with symbolic links under /dev/mapper as well
16872 as with real block devices. The Linux world seems to be (at best)
16873 in transition here, and GRUB shouldn't get caught in the middle.
16874
16875 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
16876 /dev/mapper.
16877
d8708134
CW
168782010-05-27 Colin Watson <cjwatson@ubuntu.com>
16879
16880 * util/grub-script-check.c (main): Ensure defined behaviour on empty
16881 input files (in which case exit zero).
16882
db2102a0
CW
168832010-05-27 Colin Watson <cjwatson@ubuntu.com>
16884
16885 * kern/emu/misc.c (canonicalize_file_name): realpath can still
16886 return NULL for various reasons even if it has a maximum-length
16887 buffer: for example, there might be a symlink loop, or the path
16888 might exceed PATH_MAX. If this happens, return NULL.
16889
5fdba519
RM
168902010-05-27 Robert Millan <rmh@gnu.org>
16891
16892 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
16893 partmap module to handle cross-partmap setups.
16894 Reported by Orestes Mas. Gràcies!
16895
d1d368e4
CW
168962010-05-27 Colin Watson <cjwatson@ubuntu.com>
16897
16898 * util/grub-mkrescue.in: Initialise override_dir rather than
16899 assuming that it's unset or empty in the environment.
16900
95ac3c73
GS
169012010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
16902
16903 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
16904 variable index into p_index to suppress a warning with -Wshadow.
16905
7d8c0213
BC
169062010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
16907
16908 * INSTALL: Added flex >= 2.5.35 requirement.
16909
db4d5813
VS
169102010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
16913
f24f4300
VS
169142010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 cmostest support.
16917
16918 * commands/i386/cmostest.c: New file.
16919 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
16920 (cmostest_mod_SOURCES): New variable.
16921 (cmostest_mod_CFLAGS): Likewise.
16922 (cmostest_mod_LDFLAGS): Likewise.
16923 * conf/i386-pc.rmk: Likewise.
16924 * docs/grub.texi (Vendor power-on keys): New section.
16925 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
16926 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
16927 and GRUB_BUTTON_CMOS_ADDRESS.
16928 * util/grub.d/00_header.in: Handle powering-on by separate button.
16929
ad603f61
VS
169302010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16931
16932 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
16933 Removed drawing_scrollbar argument. All users updated
16934 Fixes #29792.
16935 Reported by Jo Shields
16936
3ecb080a
VS
169372010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
16940 buffer since gfxterm handles double repaint.
16941
5f2316c1
VS
169422010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
16945 * term/gfxterm.c (real_scroll): Likewise.
16946
9a25f885
VS
169472010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16948
16949 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
16950 before calling BIOS.
16951
39fbb79a
VS
169522010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 * include/grub/i18n.h: Always enable grub_gettext.
16955
228cfa97
VS
169562010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
16959 partition naming style.
16960
21717c8f
CW
169612010-05-21 Colin Watson <cjwatson@ubuntu.com>
16962
16963 * util/grub-mkconfig.in: Fix handling of -o so that it works when
16964 not the first option.
16965
c0f48e65
CW
169662010-05-20 Colin Watson <cjwatson@ubuntu.com>
16967
16968 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
16969
96779aec
CW
169702010-05-20 Colin Watson <cjwatson@ubuntu.com>
16971
16972 * util/misc.c: Move inclusion of <limits.h> to ...
16973 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
16974
fa9d256e
GS
169752010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
16976
16977 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
16978 Fix merge error in NetBSD code.
16979 (find_partition_start) [__NetBSD__]: Likewise.
16980
123b7a85
BC
169812010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
16982
16983 Fix grub-mkrescue usage unit testing.
16984
16985 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
16986
74276c0d
CF
169872010-05-18 Christian Franke <franke@computer.org>
16988
16989 * util/grub.d/10_windows.in: Use path names instead of
16990 drive letters to prevent warning from Cygwin 1.7.
16991 Add drivemap command to menuentry if needed.
16992
c4f7b523
ST
169932010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
16994
16995 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
16996 gnumach and gnumach.gz.
16997
95b97950
VS
169982010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16999
17000 * include/grub/i18n.h (gettext): Inline instead of using #define.
17001 (grub_gettext): Likewise.
17002 (_): Likewise.
17003
01b8d2d7
VS
170042010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
17007 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
17008 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
17009 (main): Add a slash after pkglibdirroot.
17010
654e1d1e
VS
170112010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17012
17013 * util/grub-install.in: Add missing "in" keyword.
17014
26966aeb
VS
170152010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17016
17017 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
17018 Reported by: Seth Goldberg.
17019
75006747
VS
170202010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
17023
74cbf5bd
CW
170242010-05-18 Colin Watson <cjwatson@ubuntu.com>
17025
17026 * configure.ac: Check for Linux device-mapper support.
17027
17028 * util/hostdisk.c (device_is_mapped): New function.
17029 (find_partition_start): New function, partly broken out from
17030 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
17031 device-mapper support added.
17032 (linux_find_partition): Use find_partition_start.
17033 (convert_system_partition_to_system_disk): Add `st' argument.
17034 Support Linux /dev/mapper/* devices if device-mapper support is
17035 available; only DM-RAID devices are understood at present.
17036 (find_system_device): Add `st' argument. Pass it to
17037 convert_system_partition_to_system_disk.
17038 (grub_util_biosdisk_get_grub_dev): Pass stat result to
17039 find_system_device and convert_system_partition_to_system_disk. Use
17040 find_partition_start.
17041
17042 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
17043 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
17044 * util/deviceiter.c [__linux__]: Define MINOR.
17045 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
17046 * util/mkdevicemap.c (grub_putchar): New function.
17047 (grub_getkey): New function.
17048 (grub_refresh): New function.
17049 (main): Set debug=all if -v -v is used.
17050
355b51e9
CW
170512010-05-18 Colin Watson <cjwatson@ubuntu.com>
17052
17053 Fix build with non-GNU libcs.
17054
17055 * util/misc.c (canonicalize_file_name): Move to ...
17056 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
17057 grub_make_system_path_relative_to_its_root.
17058
7fb5c25f
CW
170592010-05-18 Colin Watson <cjwatson@ubuntu.com>
17060
17061 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
17062 we handle finding grub-mkimage. Default to finding grub-mkimage in
17063 ${bindir} with program_transform_name applied, and provide a
17064 --grub-mkimage option to override this.
17065
1d3293d6
VS
170662010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17067
17068 Remove grub-mkisofs.
17069
17070 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
17071 (grub_mkisofs_SOURCES): Removed.
17072 (grub_mkisofs_CFLAGS): Removed.
17073 * util/mkisofs/defaults.h: Removed.
17074 * util/mkisofs/eltorito.c: Likewise.
17075 * util/mkisofs/exclude.h: Likewise.
17076 * util/mkisofs/hash.c: Likewise.
17077 * util/mkisofs/include/: Likewise.
17078 * util/mkisofs/include/fctldefs.h: Likewise.
17079 * util/mkisofs/include/mconfig.h: Likewise.
17080 * util/mkisofs/include/prototyp.h: Likewise.
17081 * util/mkisofs/include/statdefs.h: Likewise.
17082 * util/mkisofs/iso9660.h: Likewise.
17083 * util/mkisofs/joliet.c: Likewise.
17084 * util/mkisofs/match.c: Likewise.
17085 * util/mkisofs/match.h: Likewise.
17086 * util/mkisofs/mkisofs.c: Likewise.
17087 * util/mkisofs/mkisofs.h: Likewise.
17088 * util/mkisofs/msdos_partition.h: Likewise.
17089 * util/mkisofs/multi.c: Likewise.
17090 * util/mkisofs/name.c: Likewise.
17091 * util/mkisofs/rock.c: Likewise.
17092 * util/mkisofs/tree.c: Likewise.
17093 * util/mkisofs/write.c: Likewise.
17094
5dde9afe
VS
170952010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 Unify grub-mkimage accross platforms.
17098
17099 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
17100 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
17101 (grub_mkelfimage_SOURCES): Removed.
17102 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
17103 (util/grub-mkimage.c_DEPENDENCIES): .. this.
17104 (bin_UTILITIES): Add grub-mkimage.
17105 (grub_mkimage_SOURCES): New variable.
17106 (kernel_img_HEADERS): Remove machine/kernel.h.
17107 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
17108 (pkglib_PROGRAMS): Add kernel.img.
17109 (kernel_img_HEADERS): Add machine/kernel.h.
17110 (kernel_img_FORMAT): Removed.
17111 (bin_UTILITIES): Remove grub-mkimage.
17112 (grub_mkimage_SOURCES): Removed.
17113 (grub_mkimage_CFLAGS): Likewise.
17114 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17115 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
17116 (pkglib_PROGRAMS): Add kernel.img.
17117 (bin_UTILITIES): Remove grub-mkimage.
17118 (grub_mkimage_SOURCES): Removed.
17119 (grub_mkimage_CFLAGS): Likewise.
17120 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17121 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
17122 (pkglib_PROGRAMS): Add kernel.img.
17123 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
17124 (pkglib_PROGRAMS): Add kernel.img.
17125 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
17126 (grub_mkimage_SOURCES): Removed.
17127 (grub_mkimage_CFLAGS): Likewise.
17128 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17129 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
17130 (pkglib_PROGRAMS): Add kernel.img.
17131 (bin_UTILITIES): Remove grub-mkimage.
17132 (grub_mkimage_SOURCES): Removed.
17133 (grub_mkimage_CFLAGS): Likewise.
17134 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17135 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
17136 (grub_mkimage_SOURCES): Removed.
17137 (grub_mkimage_CFLAGS): Likewise.
17138 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
17139 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
17140 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
17141 (grub_pe32_optional_header): ... this.
17142 (grub_pe64_optional_header): ... and this. All users updated.
17143 (GRUB_PE32_PE32_MAGIC): Split into ..
17144 (GRUB_PE32_PE32_MAGIC): .. this.
17145 (GRUB_PE32_PE64_MAGIC): .. and this.
17146 (GRUB_PE32_SIGNATURE_SIZE): New definition.
17147 * include/grub/elf.h (PT_GNU_STACK): New definition.
17148 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
17149 * include/grub/i386/efi/kernel.h: Likewise.
17150 * include/grub/i386/kernel.h: Likewise.
17151 * include/grub/i386/pc/kernel.h: Likewise.
17152 * include/grub/i386/qemu/boot.h: Likewise.
17153 * include/grub/mips/kernel.h: Likewise.
17154 * include/grub/mips/qemu-mips/kernel.h: Likewise.
17155 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
17156 * include/grub/powerpc/kernel.h: Likewise.
17157 * include/grub/sparc64/ieee1275/boot.h: Likewise.
17158 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17159 * include/grub/sparc64/kernel.h: Likewise.
17160 * include/grub/x86_64/efi/kernel.h: Likewise.
17161 * include/grub/x86_64/kernel.h: Likewise.
17162 * include/grub/offsets.h: New file.
17163 * include/grub/kernel.h (grub_module_info): Split into ...
17164 (grub_module_info32): ... this.
17165 (grub_module_info64): ... and this.
17166 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
17167 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
17168 (grub_boot_blocklist): Moved from here ...
17169 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
17170 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
17171 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
17172 * include/grub/types.h (grub_target_to_host16): Removed.
17173 (grub_target_to_host32): Likewise.
17174 (grub_target_to_host64): Likewise.
17175 (grub_host_to_target16): Likewise.
17176 (grub_host_to_target32): Likewise.
17177 (grub_host_to_target64): Likewise.
17178 (grub_host_to_target_addr): Likewise.
17179
17180 Support grub-mkrescue for efi, coreboot and qemu.
17181
17182 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
17183 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
17184 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
17185 * util/grub-mkrawimage.c: Moved from here ...
17186 * util/grub-mkimage.c: ... here. All users updated.
17187 (ALIGN_ADDR): Use image_target.
17188 (TARGET_NO_FIELD): New const.
17189 (image_target_desc): New type.
17190 (image_targets): New array.
17191 (grub_target_to_host64): Use image_target.
17192 (grub_target_to_host32): Likewise.
17193 (grub_target_to_host16): Likewise.
17194 (grub_host_to_target64): Likewise.
17195 (grub_host_to_target32): Likewise.
17196 (grub_host_to_target16): Likewise.
17197 (grub_host_to_target_addr): Likewise.
17198 (generate_image): Handle multiimage.
17199 (main): Require -O parameter. All users updated.
17200 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
17201 util/efi/grub-mkimage.c
17202 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
17203 New option --rom-directory.
17204 Use xorriso.
17205 * util/i386/efi/grub-mkimage.c: Removed.
17206 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
17207 (grub_target_to_host32): Likewise.
17208 (grub_target_to_host64): Likewise.
17209 (grub_host_to_target16): Likewise.
17210 (grub_host_to_target32): Likewise.
17211 (grub_host_to_target64): Likewise.
17212 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
17213 (grub_target_to_host32): Likewise.
17214 (grub_target_to_host64): Likewise.
17215 (grub_host_to_target16): Likewise.
17216 (grub_host_to_target32): Likewise.
17217 (grub_host_to_target64): Likewise.
17218
f4fc97d0
BC
172192010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
17220
17221 Source tree is reorganized for emu build.
17222
17223 * include/grub/util/console.h: Move from here...
17224 * include/grub/emu/console.h: ...to here.
17225 * include/grub/util/getroot.h: Move from here...
17226 * include/grub/emu/getroot.h: ...to here.
17227 * include/grub/util/hostdisk.h: Move from here...
17228 * include/grub/emu/hostdisk.h: ...to here.
17229 * util/console.c: Move from here...
17230 * kern/emu/console.c: ...to here.
17231 * util/getroot.c: Move from here...
17232 * kern/emu/getroot.c: ...to here.
17233 * util/grub-emu.c: Move from here...
17234 * kern/emu/main.c: ...to here.
17235 * util/hostdisk.c: Move from here...
17236 * kern/emu/hostdisk.c: ...to here.
17237 * util/hostfs.c: Move from here...
17238 * kern/emu/hostfs.c: ...to here.
17239 * util/mm.c: Move from here...
17240 * kern/emu/mm.c: ...to here.
17241 * util/pci.c: Move from here...
17242 * bus/emu/pci.c: ...to here.
17243 * util/sdl.c: Move from here...
17244 * video/emu/sdl.c: ...to here.
17245 * util/time.c: Move from here...
17246 * kern/emu/time.c: ...to here.
17247 * util/usb.c: Move from here...
17248 * bus/usb/emu/usb.c: ...to here.
17249
17250 * include/grub/emu/misc.h: New header for grub-emu functions.
17251 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
17252
17253 * conf/any-emu.rmk: Rule updates for above renames.
17254 * conf/common.rmk: Likewise.
17255 * conf/i386-pc.rmk: Likewise.
17256 * conf/i386-qemu.rmk: Likewise.
17257 * conf/mips.rmk: Likewise.
17258 * conf/sparc64-ieee1275.rmk: Likewise.
17259 * conf/x86-efi.rmk: Likewise.
17260
17261 * disk/lvm.h: #include updates for above renames.
17262 * util/grub-mkrelpath.c: Likewise.
17263 * util/grub-probe.c: Likewise.
17264 * util/i386/pc/grub-setup.c: Likewise.
17265 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17266 * kern/emu/console.c: Likewise.
17267 * kern/emu/getroot.c: Likewise.
17268 * kern/emu/hostdisk.c: Likewise.
17269 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
17270
17271 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
17272 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
17273 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
17274 * util/misc.c: Remove grub-emu functions.
17275
cced9145
VS
172762010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17277
17278 Fix gfxmenu crash.
17279 Reported by: Thorsten Grützmacher.
17280
17281 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
17282 timeout hook.
17283 (circprog_set_property): Register and unregister timeout hook.
17284 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
17285 (label_destroy): Free template. and unregister hook.
17286 (label_set_state): New function.
17287 (label_set_property): Handle templates and hooks.
17288 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
17289 timeout hook.
17290 (progress_bar_set_property): Register and unregister timeout hook.
17291 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
17292 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
17293 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
17294 (update_timeout_visit): Removed.
17295 (update_timeouts): New function.
17296 (redraw_timeouts): Likewise.
17297 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
17298 (grub_gfxmenu_clear_timeout): Likewise.
17299 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
17300 (grub_gfxmenu_timeout_notify): Likewise.
17301 (grub_gfxmenu_timeout_notifications): New external variable.
17302 (grub_gfxmenu_timeout_register): New function.
17303 (grub_gfxmenu_timeout_unregister): Likewise.
17304
c6e5caab
VS
173052010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 Transform (broken) vga terminal into (working) vga video driver.
17308
17309 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
17310 video/i386/pc/vga.c.
17311 * include/grub/video.h (grub_video_driver_id):
17312 Add GRUB_VIDEO_DRIVER_VGA.
17313 * term/i386/pc/vga.c: Renamed to ...
17314 * video/i386/pc/vga.c: ...this
17315 (DEBUG_VGA): Removed.
17316 (CHAR_WIDTH): Likewise.
17317 (CHAR_HEIGHT): Likewise.
17318 (TEXT_WIDTH): Likewise.
17319 (TEXT_HEIGHT): Likewise.
17320 (DEFAULT_FG_COLOR): Likewise.
17321 (DEFAULT_BG_COLOR): Likewise.
17322 (colored_char): Likewise.
17323 (xpos): Likewise.
17324 (ypos): Likewise.
17325 (cursor_state): Likewise.
17326 (fg_color): Likewise.
17327 (bg_color): Likewise.
17328 (text_buf): Likewise.
17329 (page): Likewise.
17330 (font): Likewise.
17331 (framebuffer): New variable.
17332 (set_read_map): Disabled.
17333 (setup): New variable.
17334 (is_target): Likewise.
17335 (grub_vga_mod_init): Likewise.
17336 (grub_vga_mod_fini): Likewise.
17337 (check_vga_mem): Likewise.
17338 (write_char): Likewise.
17339 (write_cursor): Likewise.
17340 (scroll_up): Likewise.
17341 (grub_vga_putchar): Likewise.
17342 (grub_vga_getcharwidth): Likewise.
17343 (grub_vga_getwh): Likewise.
17344 (grub_vga_getxy): Likewise.
17345 (grub_vga_gotoxy): Likewise.
17346 (grub_vga_cls): Likewise.
17347 (grub_vga_setcolorstate): Likewise.
17348 (grub_vga_setcursor): Likewise.
17349 (grub_video_vga_init): New function.
17350 (grub_video_vga_setup): Likewise.
17351 (grub_video_vga_fini): Likewise.
17352 (update_target): Likewise.
17353 (grub_video_vga_blit_bitmap): Likewise.
17354 (grub_video_vga_blit_render_target): Likewise.
17355 (grub_video_vga_set_active_render_target): Likewise.
17356 (grub_video_vga_get_active_render_target): Likewise.
17357 (grub_video_vga_swap_buffers): Likewise.
17358 (grub_video_vga_set_palette): Likewise.
17359 (grub_video_vga_get_info_and_fini): Likewise.
17360 (grub_vga_term): Removed.
17361 (grub_video_vga_adapter): New variable.
17362 (GRUB_MOD_INIT): Register a video driver instead of terminal.
17363 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
17364
2bf61a98
VS
173652010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 * video/readers/jpeg.c: Indented.
17368
09ddcd11
VS
173692010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 Various jpeg cleanups.
17372
17373 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
17374 (grub_jpeg_decode_quan_table): Use sizeof.
17375 (grub_jpeg_decode_du): Use ARRAY_SIZE.
17376
e5507505
PH
173772010-05-05 Peter Hurley <No e-mail available> (tiny change)
17378
17379 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
17380 tables. Ignore non-last ac bit.
17381 (grub_jpeg_decode_quan_table): Likewise.
17382
7e720a9b
VS
173832010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17384
17385 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
17386 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
17387 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17388 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
17389 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
17390 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
17391
a7fc080b
VS
173922010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17393
17394 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
17395 error.
17396
2bf6012d
VS
173972010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
17400
265d68cd
VS
174012010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17402
17403 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
17404 condition.
17405
174062010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
17407
17408 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
17409 part.
17410
265d68cd 174112010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
17412
17413 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
17414 pointers.
17415
265d68cd 174162010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
17417
17418 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
17419
d1b61374
CF
174202010-05-01 Christian Franke <franke@computer.org>
17421
17422 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
17423 Remove broken Cygwin path conversion.
17424 * util/misc.c: [__CYGWIN__] Add include and define.
17425 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
17426 for Cygwin 1.7.
17427 (make_system_path_relative_to_its_root): Simplify loop, replace early
17428 return by break.
17429 [__CYGWIN__] Add conversion to win32 path.
17430 Include "/" case in trailing slash removal.
17431
3558c6e9
VS
174322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * kern/main.c (grub_load_config): Fix copy-pasted comment.
17435 Reported by: Seth Goldberg
17436
f5f3ff93
VS
174372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17438
17439 * commands/help.c (grub_cmd_help): Fix a typo.
17440 Reported by: Seth Goldberg
17441
d8b5cd40
VS
174422010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
17445 name and add N_.
17446 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
17447 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
17448 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
17449 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
17450 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
17451 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
17452 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
17453 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
17454 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
17455 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17456 * normal/context.c (GRUB_MOD_INIT): Likewise.
17457 * normal/main.c (GRUB_MOD_INIT): Likewise.
17458 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
17459 * term/serial.c (GRUB_MOD_INIT): Likewise.
17460 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
17461
88c14915
VS
174622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17463
17464 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
17465 extra == 0.
17466
165134bc
VS
174672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17468
17469 * commands/iorw.c: New file.
17470 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
17471 (iorw_mod_SOURCES): New variable.
17472 (iorw_mod_CFLAGS): Likewise.
17473 (iorw_mod_LDFLAGS): Likewise.
17474
c5ac9b32
VS
174752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17476
17477 Hotkey support
17478
17479 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
17480 * normal/main.c (hotkey_aliases): New variable.
17481 (grub_normal_add_menu_entry): Parse "--hotkey".
17482 * normal/menu_text.c (run_menu): Handle hotkeys.
17483
ce60689c
VS
174842010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17485
17486 * kern/i386/coreboot/init.c (grub_machine_init): Call
17487 grub_machine_mmap_init on qemu.
17488
0359d006
VS
174892010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17490
17491 * boot/i386/qemu/boot.S: Add a missing .code16.
17492
7819a456
VS
174932010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17494
17495 Use LBIO on coreboot.
17496
17497 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
17498 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
17499 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
17500 New declaration.
17501 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
17502 grub_machine_mmap_init on coreboot.
17503 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
17504 GRUB_LINUXBIOS_MEMBER_LINK.
17505 (grub_machine_mmap_iterate): Fix declaration.
17506 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
17507
7210dca9
VS
175082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17509
17510 Split coreboot and multiboot ports.
17511
17512 * conf/i386-multiboot.rmk: New file.
17513 * configure.ac: Add multiboot port.
17514 * include/grub/i386/multiboot/boot.h: New file.
17515 * include/grub/i386/multiboot/console.h: Likewise.
17516 * include/grub/i386/multiboot/init.h: Likewise.
17517 * include/grub/i386/multiboot/kernel.h: Likewise.
17518 * include/grub/i386/multiboot/loader.h: Likewise.
17519 * include/grub/i386/multiboot/memory.h: Likewise.
17520 * include/grub/i386/multiboot/serial.h: Likewise.
17521 * include/grub/i386/multiboot/time.h: Likewise.
17522 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
17523 * loader/multiboot.c: Likewise.
17524 * loader/multiboot_mbi2.c: Likewise.
17525 * util/grub-mkrescue.in: Generate multiboot rescue.
17526
6f8aaf68
VS
175272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17528
3080f7a7
VS
17529 * kern/parser.c (grub_parser_execute): Cope with read-only config.
17530
175312010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
17532
17533 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
17534
17535 * commands/terminal.c (abstract_terminal): New struct.
17536 (handle_command): New function. Based on grub_cmd_terminal_input.
17537 (grub_cmd_terminal_input): Use handle_command.
17538 (grub_cmd_terminal_output): Use handle_command.
17539
a8ebb841
BC
175402010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
17541
17542 Fix comment handling.
17543
17544 * tests/grub_script_comments.in: New testcase.
17545 * conf/tests.rmk: Rules for new testcase.
17546 * script/yylex.l: Updated flex rules.
17547
bb06ba08
ST
175482010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
17549
17550 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
17551 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
17552 if argc is 1.
bb06ba08 17553
cc9d2425
VS
175542010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17555
17556 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
17557 autogen issues.
17558
460d8402
CF
175592010-04-26 Christian Franke <franke@computer.org>
17560
17561 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
17562 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
17563 (grub_get_prefix): Remove function.
17564 * util/grub-emu.c (main): Replace grub_get_prefix () call by
17565 make_system_path_relative_to_its_root ().
17566 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17567
553c01f9
CF
175682010-04-24 Christian Franke <franke@computer.org>
17569
17570 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
17571 (kernel_img_LDFLAGS): Remove -static-libgcc.
17572
2aec1692
CF
175732010-04-24 Christian Franke <franke@computer.org>
17574
17575 * configure.ac: Do not CHECK_BSS_START_SYMBOL
17576 and CHECK_END_SYMBOL if grub-emu is built.
17577 Unset TARGET_OBJ2ELF if grub-emu is built
17578 without module support.
17579
f67dc308
JS
175802010-04-24 Jiro SEKIBA <jir@unicus.jp>
17581
17582 Nilfs2 support.
17583
17584 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
17585 (grub_fstest_SOURCES): Likewise.
17586 (pkglib_MODULES): Add nilfs2.mod.
17587 (nilfs2_mod_SOURCES): New variable.
17588 (nilfs2_mod_CFLAGS): Likewise.
17589 (nilfs2_mod_LDFLAGS): Likewise.
17590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
17591 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
17592 * fs/nilfs2.c: New file.
17593
4ba8d354
VS
175942010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
17597 is not supported.
17598
0d2c20c6
GS
175992010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
17600
17601 Add grub-mkconfig support for NetBSD.
17602
17603 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
17604 * util/grub-mkconfig.in: export new NetBSD specific variables.
17605 * po/POTFILES-shell: added 10_netbsd.in.
17606 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
17607
bc4a2d83
BC
176082010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
17609
17610 Fix emu build with grub-emu-pci and grub-emu-modules.
17611
17612 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
17613 functions.
17614 * include/grub/libpciaccess.h: New file.
17615 * conf/any-emu.rmk: Update kernel headers for emu build.
17616
f48c87aa
VS
176172010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17618
17619 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
17620
18959385
VS
176212010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17622
17623 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
17624
0037de3f
VS
176252010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17626
17627 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
17628 Retrieve chosen/bootpath if bootpath isn't hardcoded.
17629 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
17630 util/ieee1275/ofpath.c.
17631 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
17632 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
17633 * include/grub/sparc64/ieee1275/boot.h
17634 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
17635 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
17636 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
17637 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
17638 const char *.
17639 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
17640 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
17641 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
17642 install.
17643
38e55e90
GS
176442010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17645
17646 * util/grub-mkconfig.in: Corrected two == equality tests.
17647 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
17648 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
17649 expect a number appended to it.
17650 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
17651 expects a number appended to it.
17652
a9e6ff28
VS
176532010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
17656
0b830b8f
VS
176572010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17658
17659 * util/hostdisk.c (make_device_name): Change to new partition naming.
17660
0973daeb
VS
176612010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17662
17663 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
17664
460d8402 176652010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
17666
17667 * Makefile.in: Add missing localedir setting.
17668
0b456309
CW
176692010-04-14 Colin Watson <cjwatson@ubuntu.com>
17670
17671 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
17672 mistake in r2156. Noticed by Anthony Fok.
17673
17674 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
17675 @localedir@.
17676 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
17677
08f46d62
BC
176782010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
17679
17680 Fix a spurious, uninitialized variable warning.
17681
17682 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
17683 Initialize variable, shdr.
17684 (grub_freebsd_load_elfmodule): Likewise.
17685 (grub_freebsd_load_elf_meta): Likewise.
17686
8c4a72d4
BC
176872010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
17688
17689 Fix for escaped dollar in double quoted strings.
17690
17691 * script/yylex.l: Updated flex rules.
17692 * conf/tests.rmk: Rule for new testcase.
17693 * tests/grub_script_dollar.in: New testcase.
17694
ce44826e
CPE
176952010-04-13 Carles Pina i Estany <carles@pina.cat>
176962010-04-13 Colin Watson <cjwatson@ubuntu.com>
17697
17698 Enclose all translated strings in grub.cfg in single quotes, and
17699 escape them appropriately (Ubuntu bug #552921).
17700
17701 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
17702 * util/grub.d/10_hurd.in: Use it.
17703 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
17704 * util/grub.d/10_linux.in (linux_entry): Likewise.
17705
4b0cd8f8
VS
177062010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 Fix cygwin compilation.
17709
17710 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
17711 * include/grub/misc.h (__register_frame_info)
17712 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
17713 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
17714 * kern/misc.c (__register_frame_info)
17715 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
17716 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
17717
01fcf061
VS
177182010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
17721
5d04b11e
VS
177222010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17723
17724 Unify libgcc processing.
17725
17726 * Makefile.in (kernel_img_LDFLAGS): New variable.
17727 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
17728 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
17729 overwriting.
17730 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
17731 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
17732 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
17733 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
17734 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
17735 overwriting. Remove -lgcc and -static-libgcc
17736 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
17737 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
17738 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
17739 (kernel_img_LDFLAGS): Append instead of overwriting.
17740 Remove -lgcc and -static-libgcc
17741 * conf/sparc64-ieee1275.rmk: Likewise.
17742 * include/grub/powerpc/libgcc.h: Move to ...
17743 * include/grub/libgcc.h: .. this.
17744 * include/grub/libgcc.h: Don't export most of the function on x86.
17745 (__bswapsi2): New export.
17746 (__bswapdi2): Likewise.
17747 * include/grub/mips/libgcc.h: Removed.
17748 * include/grub/sparc64/libgcc.h: Likewise.
17749
b7f3ac29
VS
177502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
17753 disk_info_msg (conflicts with gettexting into languages with cases).
17754
2c7031b1
GS
177552010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
17756
17757 Add grub-probe support for NetBSD.
17758
17759 * util/getroot.c (find_root_device): Convert block device to
17760 character device on NetBSD.
17761 * util/probe.c (probe): Require character device on NetBSD.
17762 * util/hostdisk.c: NetBSD specific headers.
17763 (configure_device_driver): new function to tune device driver
17764 parameters (currently only for NetBSD floppy driver).
17765 (grub_util_biosdisk_open): NetBSD specific code (get disk size
17766 via disklabel ioctl).
17767 (open_device): call configure_device_driver on NetBSD.
17768 (convert_system_partition_to_system_disk): NetBSD specific code.
17769 (device_is_wholedisk): Likewise.
17770 (grub_util_biosdisk_get_grub_dev): Likewise.
17771 (make_device_name): Fixed a typo in bsd_part_str.
17772 * configure.ac: check for opendisk() and getrawpartition() on
17773 NetBSD and set LIBUTIL.
17774 * Makefile.in: add LIBUTIL to LIBS.
17775
f516290c
BC
177762010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
17777
17778 Documentation fix.
17779
17780 * util/grub-script-check.c: Better help message.
17781
d8dcc0df
BC
177822010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
17783
17784 Fix FreeBSD build.
17785
17786 * configure.ac: Flex version check.
17787 * conf/common.rmk: Add -Wno-error to sh.mod.
17788 * script/yylex.l: Remove all #pragma.
17789
6734334a
VS
177902010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17791
17792 * include/grub/util/misc.h (canonicalise_file_name): Add missing
17793 prototype.
17794 Reported by: Seth Goldberg.
17795
daea6abd
VS
177962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17797
17798 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
17799 Rename "module" to "module2".
17800 Reported by: Seth Goldberg.
17801
f2fd9d2b
VS
178022010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17803
17804 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
17805 EXPORT_FUNC.
17806 Reported by: Seth Goldberg.
17807
be124579
VS
178082010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * lib/posix_wrap/locale.h: Add missing file.
17811 Reported by: Seth Goldberg.
17812
ef5da797
VS
178132010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 grub-emu module load support.
17816
17817 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
17818 NO_DYNAMIC_MODULES switched to this.
17819 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
17820 (CFLAGS): Likewise.
17821 * conf/any-emu.rmk: Generate symlist.
17822 (kernel_img_HEADERS): Add util/datetime.h.
17823 (kernel_img_HEADERS) [sdl]: Add sdl.h.
17824 (kernel_img_HEADERS) [libusb]: Add libusb.h.
17825 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
17826 kern/$(target_cpu)/cache.S.
17827 * configure.ac (grub-emu-modules): New option.
17828 * genmk.rb: Handle multiple source lists.
17829 * include/grub/sdl.h: New file.
17830 * include/grub/libusb.h: Likewise.
17831 * util/grub-emu.c (main): Hanle (host) root.
17832 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
17833 GRUB_ERR_UNKNOWN_DEVICE.
17834 * util/misc.c: Move mm functions to ...
17835 * util/mm.c: ... here. All users updated.
17836
47822096
VS
178372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
17840 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
17841 missing files.
17842 (maintainer-clean): Remove libgcrypt-grub.
17843
5d7e7445
VS
178442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
17847
25f4e252
EC
178482010-04-09 EFI Coder <eficoder@hotmail.com>
17849
17850 * normal/menu_text.c (print_message): Clean up the message and show
17851 the Fn information when on EFI
17852 * term/efi/console.c (grub_console_checkkey): Add F4 support.
17853
027de555
VS
178542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17855
17856 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
17857 All users updated.
17858 * normal/crypto.c (read_crypto_list): Likewise.
17859 * normal/dyncmd.c (read_command_list): Likewise.
17860 * normal/term.c (read_terminal_list): Likewise.
17861 * normal/main.c (read_lists): Use explicit prefix.
17862 (read_lists_hook): Use read_lists.
17863 (grub_normal_execute): Likewise.
17864
47779711
VS
178652010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17866
17867 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
17868 Reported by: Thomas Schmitt.
17869 Add -no-emul-boot to grub-mkisofs parameters.
17870
1118c32e
VS
178712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17872
17873 * font/font.c: Indented.
17874
7d652447
BC
178752010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
17876
17877 Elif support to GRUB script (by Deepak Vankadaru).
17878
17879 * tests/grub_script_if.in: New testcase.
17880 * conf/tests.rmk: Rule for new testcase.
17881 * script/parser.y: Grammar rules for elif.
17882
34bb22df
BC
178832010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
17884
17885 While and until loops support to GRUB script.
17886
17887 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
17888 (grub_script_create_cmdwhile): New function prototype.
17889 (grub_script_execute_cmdwhile): New function prototype.
17890 * script/execute.c (grub_script_execute_cmdwhile): New function.
17891 * script/parser.y (command): New commands.
17892 (whilecmd): New grammar rule.
17893 (untilcmd): New grammar rule.
17894 * script/script.c (grub_script_create_cmdwhile): New function.
17895 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
17896 function.
17897
17898 * tests/grub_script_while1.in: New testcase.
17899 * conf/tests.rmk: Rule for new testcase.
17900
e215d8e0
VS
179012010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
17904 as *.jpg.
17905
d7c43ba1
MV
179062010-04-09 Mario Vazquez <mariovazq@gmail.com>
17907
17908 GRUB_BACKGROUND support.
17909
17910 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
17911 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
17912
d64795c0
VS
179132010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17914
17915 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 17916 Idea by: Mario Vazquez
d64795c0
VS
17917
17918 * util/grub.d/00_header.in: Load pf2 and image modules.
17919
f267f83a
VS
179202010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17921
17922 grub-mkconfig multiple terminal support.
17923
17924 * util/grub-mkconfig.in: Handle multiple terminals correctly.
17925 * util/grub.d/00_header.in: Likewise.
17926
b7841ceb
VS
179272010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17928
17929 * Makefile.in: Specify files explicitly instead of using $< and $@ since
17930 we use cd $(srcdir).
17931
df60998c
CW
179322010-04-08 Colin Watson <cjwatson@ubuntu.com>
17933
17934 * util/grub.d/10_linux.in: Only use the first word of
17935 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
17936 spaces in GRUB_DISTRIBUTOR.
17937 * util/grub.d/10_kfreebsd.in: Likewise.
17938 * util/grub.d/10_hurd.in: Likewise.
17939
fa09c82e
BC
179402010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
17941
14e18ae3 17942 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
17943
17944 * tests/util/grub-shell.in: Remove -serial stdio option.
17945
daf892b3
BC
179462010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17947
17948 POSIX header file wrappers.
17949
17950 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
17951 equivalents.
17952 * lib/posix_wrap/ctype.h: Likewise.
17953 * lib/posix_wrap/errno.h: Likewise.
17954 * lib/posix_wrap/langinfo.h: Likewise.
17955 * lib/posix_wrap/limits.h: Likewise.
17956 * lib/posix_wrap/localcharset.h: Likewise.
17957 * lib/posix_wrap/stdint.h: Likewise.
17958 * lib/posix_wrap/stdio.h: Likewise.
17959 * lib/posix_wrap/stdlib.h: Likewise.
17960 * lib/posix_wrap/string.h: Likewise.
17961 * lib/posix_wrap/sys/types.h: Likewise.
17962 * lib/posix_wrap/unistd.h: Likewise.
17963 * lib/posix_wrap/wchar.h: Likewise.
17964 * lib/posix_wrap/wctype.h: Likewise.
17965 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
17966 (grub_script.yy.h): Likewise.
17967 * script/yylex.l: Remove POSIX emulation #defines.
17968 * Makefile.in (POSIX_CFLAGS): New variable.
17969 (GNULIB_UTIL_CFLAGS): Likewise.
17970
17971 Regexp support.
17972
17973 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
17974 (regexp_mod_SOURCES): New variable.
17975 (regexp_mod_CFLAGS): Likewise.
17976 (regexp_mod_LDFLAGS): Likewise.
17977 * commands/regexp.c: New file.
17978 * gnulib/regcomp.c: New file. Imported from gnulib.
17979 * gnulib/regex.c: Likewise.
17980 * gnulib/regex_internal.c: Likewise.
17981 * gnulib/regex_internal.h: Likewise.
17982 * gnulib/regexec.c: Likewise.
17983 * gnulib/regex.h: Likewise.
17984
974ac4f7
VS
179852010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
17988 unsupported video mode types.
17989
2622c3ff
VS
179902010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17991
17992 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
17993
064cb524
VS
179942010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17995
17996 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
17997 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
17998
a8c3b552
VS
179992010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
18000
18001 Remove unused grub_vga_get_font.
18002
18003 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
18004 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
18005
187bbe3d
GS
180062010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
18007
18008 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
18009 * include/grub/misc.h: Likewise.
18010
b9396631
GS
180112010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
18012
18013 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
18014 for which failure is fatal.
18015
50479feb
GS
180162010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
18017
18018 * util/grub-install.in: Use mkdir -p to create grub directory.
18019 * util/i386/efi/grub-install.in: Likewise.
18020 * util/ieee1275/grub-install.in: Likewise.
18021
b1654fdf
GS
180222010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
18023
18024 * Makefile.in (LEX): new variable.
18025
bd5a6415
GS
180262010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
18027
18028 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
18029 `=' and added double quotes on operands of this equality test.
18030
3db3a82b
VS
180312010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
18032
18033 * Makefile.in (uninstall): Remove a leftover debug echo.
18034 Reported by: Grégoire Sutre
18035
38023412
VS
180362010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
18037
18038 MIPS multiboot2 support.
18039
18040 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
18041 (multiboot2_mod_SOURCES): New variable.
18042 (multiboot2_mod_CFLAGS): Likewise.
18043 (multiboot2_mod_LDFLAGS): Likewise.
18044 (multiboot2_mod_ASFLAGS): Likewise.
18045 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
18046 definition.
18047 (MULTIBOOT_ENTRY_REGISTER): Likewise.
18048 (MULTIBOOT_MBI_REGISTER): Likewise.
18049 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
18050 (MULTIBOOT_ELF32_MACHINE): Likewise.
18051 (MULTIBOOT_ELF64_MACHINE): Likewise.
18052 * include/grub/mips/multiboot.h: New file.
18053 * include/grub/video.h (grub_video_driver_id): New type
18054 GRUB_VIDEO_DRIVER_SM712.
18055 (grub_video_get_info_and_fini): Export.
18056 (grub_video_get_palette): Likewise.
18057 (grub_video_get_driver_id): Likewise.
18058 * include/multiboot2.h: Resynced with spec.
18059 * loader/i386/multiboot.c: Moved from here ...
18060 * loader/multiboot.c: ... here. All users updated.
18061 (grub_multiboot_boot): Use platform-specific macros.
18062 * loader/i386/multiboot_elfxx.c: Moved from here ...
18063 * loader/multiboot_elfxx.c: ... here. All users updated.
18064 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
18065 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
18066 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
18067
47674667
VS
180682010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
18069
18070 Import gnulib argp module.
18071
18072 * gnulib/argp-ba.c: New file.
18073 * gnulib/argp-eexst.c: Likewise.
18074 * gnulib/argp-fmtstream.c: Likewise.
18075 * gnulib/argp-fmtstream.h: Likewise.
18076 * gnulib/argp-fs-xinl.c: Likewise.
18077 * gnulib/argp-help.c: Likewise.
18078 * gnulib/argp-namefrob.h: Likewise.
18079 * gnulib/argp-parse.c: Likewise.
18080 * gnulib/argp-pin.c: Likewise.
18081 * gnulib/argp-pv.c: Likewise.
18082 * gnulib/argp-pvh.c: Likewise.
18083 * gnulib/argp-version-etc.c: Likewise.
18084 * gnulib/argp-version-etc.h: Likewise.
18085 * gnulib/argp-xinl.c: Likewise.
18086 * gnulib/argp.h: Likewise.
18087
495442ed
VS
180882010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
18089
18090 * kern/device.c (grub_device_iterate): Clear errors after failed
18091 opening device.
18092
f9fd65df
VS
180932010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
18094
18095 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
18096 returned by firmware.
18097
af09641e
VS
180982010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
18101 compilation on coreboot and qemu
18102
016883a5
VS
181032010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * include/multiboot2.h: Resync with spec.
18106
f97e1f7d
VS
181072010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 Multiboot2 tag support
18110
18111 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
18112 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
18113 Remove loader/multiboot_loader.c.
18114 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
18115 (grub_multiboot2_real_boot): Likewise.
18116 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
18117 (grub_get_multiboot_mmap_count): New proto.
18118 (grub_fill_multiboot_mmap): Likewise.
18119 (grub_multiboot_set_video_mode): Likewise.
18120 (grub_multiboot_set_console): Likewise.
18121 (grub_multiboot_load): Likewise.
18122 (grub_multiboot_load_elf): Likewise.
18123 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
18124 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
18125 * include/multiboot.h: Resynced with specification.
18126 * include/multiboot2.h: Resynced with specification.
18127 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
18128 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
18129 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
18130 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
18131 users updated.
18132 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
18133 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
18134 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
18135 Removed.
18136 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
18137 Moved from here...
18138 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
18139 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
18140 Moved from here...
18141 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
18142 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
18143 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
18144 All users updated.
18145 * loader/i386/multiboot_mbi2.c: New file.
18146
3506b90b
VS
181472010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 Resync with gnulib.
18150
18151 * Makefile.in (GNULIB_CFLAGS): New variable.
18152 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
18153 (grub_script_check_CFLAGS): New variable.
18154 * gnulib/alloca.h: Resync with gnulib.
18155 * gnulib/error.c: Likewise.
18156 * gnulib/error.h: Likewise.
18157 * gnulib/fnmatch.c: Likewise.
18158 * gnulib/fnmatch_loop.c: Likewise.
18159 * gnulib/getdelim.c: Likewise.
18160 * gnulib/getline.c: Likewise.
18161 * gnulib/getopt.c: Likewise.
18162 * gnulib/getopt1.c: Likewise.
18163 * gnulib/getopt_int.h: Likewise.
18164 * gnulib/gettext.h: Likewise.
18165 * gnulib/progname.c: Likewise.
18166 * gnulib/progname.h: Likewise.
18167
394a3120
GS
181682010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
18169
18170 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
18171 which is the case with --disabled-nls.
18172
18173 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
18174 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
18175 * util/misc.c: Likewise.
18176 * util/mkisofs/mkisofs.c: Likewise.
18177 * util/mkisofs/mkisofs.h: Likewise.
18178
969d1c78
VS
181792010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
18180
18181 Simplify Apple CC support.
18182
18183 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
18184 Add 0 byte at the end not to have a symbol with empty target.
18185 * mmap/i386/pc/mmap_helper.S: Likewise.
18186 * genmk.rb: Ignore errors 2030 and 2050.
18187 * kern/i386/pc/startup.S: Use LOCAL when possible.
18188
8d2977bb
BC
181892010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
18190
18191 Testcase and the fix for final semicolon on cmdline.
18192
18193 * tests/grub_script_final_semicolon.in: New testcase.
18194 * conf/tests.rmk: Rules for the new testcase.
18195 * script/parser.y: Grammar fix.
18196
a7bd6915
BC
181972010-03-26 BVK Chaitanya <bvk@localhost>
18198
18199 Blank lines testcase for GRUB script.
18200
18201 * tests/grub_script_blanklines.in: New testcase.
18202 * conf/tests.rmk: Rules for the new testcase.
18203
e4ff6628
VS
182042010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18205
18206 Don't use __FILE__.
18207
18208 * genmk.rb: Add -DGRUB_FILE to all C targets.
18209 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
18210 * include/grub/list.h: Likewise.
18211 * include/grub/misc.h: Likewise.
18212 * include/grub/mm.h: Likewise.
18213 * include/grub/test.h: Likewise.
18214 * kern/mm.c: Likewise.
18215 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
18216
6a5cf6b6
VS
182172010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18218
18219 Sunpc partitions support.
18220
18221 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
18222 (grub_fstest_SOURCES): Likewise.
18223 (pkglib_MODULES): Add part_sunpc.mod.
18224 (part_sunpc_mod_SOURCES): New variable.
18225 (part_sunpc_mod_CFLAGS): Likewise.
18226 (part_sunpc_mod_LDFLAGS): Likewise.
18227 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
18228 * partmap/sunpc.c: New file.
18229
746d9045
BC
182302010-03-26 BVK Chaitanya <bvk@localhost>
18231
18232 For loop support to GRUB script.
18233
18234 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
18235 (grub_script_create_cmdfor): New function prototype.
18236 (grub_script_execute_cmdfor): New function prototype.
18237 * script/execute.c (grub_script_execute_cmdfor): New function.
18238 * script/parser.y (command): New for command.
18239 (forcmd): New grammar rule.
18240 * script/script.c (grub_script_create_cmdfor): New function.
18241 * util/grub-script-check.c (grub_script_execute_cmdfor): New
18242 function.
18243 * tests/grub_script_for1.in: New testcase.
18244 * conf/tests.rmk: Rules for new testcase.
18245
18486b18
VS
182462010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18247
18248 Nested partitions
18249
18250 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
18251 'partition' is NULL, grub_partition_get_start already does that.
18252 * commands/loadenv.c (check_blocklists): Likewise.
18253 (write_blocklists): Likewise.
18254 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
18255 (grub_fstest_SOURCES): Likewise.
18256 (pkglib_MODULES): Add part_bsd.mod.
18257 (part_bsd_mod_SOURCES): New variable.
18258 (part_bsd_mod_CFLAGS): Likewise.
18259 (part_bsd_mod_LDFLAGS): Likewise.
18260 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
18261 (grub_emu_SOURCES): Likewise.
18262 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18263 * include/grub/bsdlabel.h: New file.
18264 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
18265 'get_name'.
18266 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
18267 (grub_partition_map_list): New variable.
18268 (grub_partition_map_register): Inline.
18269 (grub_partition_map_unregister): Likewise.
18270 (FOR_PARTITION_MAPS): New macro.
18271 (grub_partition_map_iterate): Removed.
18272 (grub_partition_get_start): Handle nested partitions.
18273 * include/grub/msdos_partition.h: Remove bsd-related entries.
18274 (grub_pc_partition): Remove.
18275 * kern/disk.c (grub_disk_close): Free partition data.
18276 (grub_disk_adjust_range): Handle nested partitions.
18277 * kern/partition.c (grub_partition_map_probe): New function.
18278 (grub_partition_probe): Parse name to number, handle subpartitions.
18279 (get_partmap): New function.
18280 (grub_partition_iterate): Handle subpartitions.
18281 (grub_partition_get_name): Likewise.
18282 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
18283 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
18284 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
18285 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
18286 Set 'number'.
18287 (acorn_partition_map_probe): Remove.
18288 (acorn_partition_map_get_name): Likewise.
18289 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
18290 Set 'number'.
18291 Set 'index' to 0 since there can be only one partition entry per sector.
18292 (amiga_partition_map_probe): Remove.
18293 (amiga_partition_map_get_name): Likewise.
18294 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
18295 Set 'number'.
18296 Set 'offset' and 'index' to real positions of partitions.
18297 (apple_partition_map_probe): Remove.
18298 (apple_partition_map_get_name): Likewise.
18299 * partmap/bsdlabel.c: New file.
18300 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
18301 Set 'number'.
18302 Allocate 'data' so it can be correctly freed.
18303 Set 'index' to offset inside sector.
18304 (gpt_partition_map_probe): Remove.
18305 (gpt_partition_map_get_name): Likewise.
18306 * partmap/msdos.c (grub_partition_parse): Remove.
18307 (pc_partition_map_iterate): Don't force raw access.
18308 Set 'number'.
18309 Make 'ext_offset' a local variable.
18310 (pc_partition_map_probe): Remove.
18311 (pc_partition_map_get_name): Remove.
18312 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
18313 Set 'number'.
18314 (sun_partition_map_probe): Remove.
18315 (sun_partition_map_get_name): Likewise.
18316 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
18317 (grub_pcpart_type): Likewise.
18318 * util/hostdisk.c (open_device): Handle new numbering scheme.
18319 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
18320 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
18321 * util/grub-probe.c (probe_partmap): Handle nested paritions.
18322 * util/grub-install.in: Insert all subpartition modules.
18323 * util/ieee1275/grub-install.in: Likewise.
18324
a3940f88
AG
183252010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
18326
18327 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
18328 grammar.
18329
21b99926 183302010-03-24 Colin Watson <cjwatson@ubuntu.com>
18331
18332 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
18333
bed1d352
CW
183342010-03-21 Colin Watson <cjwatson@ubuntu.com>
18335
18336 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
18337 match where 'make install' puts them.
18338 * util/i386/efi/grub-install.in: Likewise.
18339
c9f58427
CW
183402010-03-19 Colin Watson <cjwatson@ubuntu.com>
18341
18342 * .bzrignore: Add gentrigtables, grub-script-check,
18343 grub_script_check_init.c, grub_script_check_init.h, and
18344 trigtables.c.
18345
f84afb27
VS
183462010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 * kern/parser.c: Indented.
18349
ed0e3d30
VS
183502010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
18353
0ea81d98
VS
183542010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
18355
18356 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
18357 alpha_mask_size == 0 case.
18358
0cdc2a09
BC
183592010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
18360
18361 GRUB shell lexer and parser improvements.
18362
18363 * conf/any-emu.rmk: Build rule updates.
18364 * conf/common.rmk: Likewise.
18365 * conf/i386-coreboot.rmk: Likewise.
18366 * conf/i386-efi.rmk: Likewise.
18367 * conf/i386-ieee1275.rmk: Likewise.
18368 * conf/i386-pc.rmk: Likewise.
18369 * conf/powerpc-ieee1275.rmk: Likewise.
18370 * conf/x86_64-efi.rmk: Likewise.
18371
18372 * configure.ac: Configure check for flex.
18373
18374 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
18375 types.
18376 (grub_lexer_param): Struct member updates.
18377 (grub_parser_param): Likewise.
18378 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
18379 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
18380 (grub_script_lexer_init): Prototype update.
18381 (grub_script_lexer_record_start): Likewise.
18382 (grub_script_lexer_record_stop): Likewise.
18383 (grub_script_lexer_yywrap): New function prototype.
18384 (grub_script_lexer_fini): Likewise.
18385 (grub_script_execute_argument_to_string): Removed by...
18386 (grub_script_execute_argument_to_argv): ...better version.
18387
18388 * script/execute.c (ROUND_UPTO): New macro.
18389 (grub_script_execute_cmdline): Out of memory fixes.
18390 (grub_script_execute_menuentry): Likewise.
18391 (grub_script_execute_argument_to_string): Removed. Update all
18392 users by...
18393 (grub_script_execute_argument_to_argv): ...better version.
18394 * script/function.c (grub_script_function_create): Use
18395 grub_script_execute_argument_to_argv instead of
18396 grub_script_execute_argument_to_string.
18397
18398 * script/lexer.c (check_varstate): Removed.
18399 (check_textstate): Removed.
18400 (grub_script_lexer_record_start): Likewise.
18401 (grub_script_lexer_record_stop): Likewise.
18402 (recordchar): Replaced with...
18403 (grub_script_lexer_record): ...new function.
18404 (nextchar): Removed.
18405 (grub_script_lexer_init): Rewritten.
18406 (grub_script_yylex): Rewritten.
18407 (append_newline): New function.
18408 (grub_script_lexer_yywrap): New function.
18409 (grub_script_lexer_fini): New function.
18410 (grub_script_yyerror): Sets error flag.
18411
18412 * script/yylex.l: New file.
18413 (grub_lexer_yyfree): Wrapper for flex yyffre.
18414 (grub_lexer_yyalloc): Likewise.
18415 (grub_lexer_yyrealloc): Likewise.
18416 * script/parser.y: Refactored.
18417
18418 * script/script.c (grub_script_arg_add): Out of memory fixes.
18419 (grub_script_add_arglist): Likewise.
18420 (grub_script_create_cmdline): Likewise.
18421 (grub_script_create_cmdmenu): Likewise.
18422 (grub_script_add_cmd): Likewise.
18423 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
18424 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
18425 unnecessary code.
18426
18427 * tests/grub_script_echo1.in: New testcase.
18428 * tests/grub_script_vars1.in: New testcase.
18429 * tests/grub_script_echo_keywords.in: New testcase.
18430
1d63a066
VS
184312010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18432
18433 Remove some redundancy in build system.
18434
18435 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
18436 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
18437 (TARGET_LDFLAGS): Add -nostdlib.
18438 (TARGET_IMG_LDFLAGS): Likewise.
18439 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
18440 anything since mmap isn't available.
18441 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
18442 Add util/time.c.
18443 (pkglib_MODULES): Remove reboot.mod.
18444 (reboot_mod_SOURCES): Removed.
18445 (reboot_mod_CFLAGS): Likewise.
18446 (reboot_mod_LDFLAGS): Likewise.
18447 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
18448 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
18449 (DEFSYMFILES): Add kernel_syms.lst.
18450 (kernel_img_HEADERS): Add common headers.
18451 (symlist.c): New target.
18452 (kernel_syms.lst): Likewise.
18453 (pkglib_MODULES): Add memdisk.mod.
18454 (memdisk_mod_SOURCES): New variable.
18455 (memdisk_mod_CFLAGS): Likewise.
18456 (memdisk_mod_LDFLAGS): Likewise.
18457 (pkglib_MODULES): Add reboot.mod.
18458 (reboot_mod_SOURCES): New variable.
18459 (reboot_mod_CFLAGS): Likewise.
18460 (reboot_mod_LDFLAGS): Likewise.
18461 (pkglib_MODULES): Add date.mod.
18462 (date_mod_SOURCES): New variable.
18463 (date_mod_CFLAGS): Likewise.
18464 (date_mod_LDFLAGS): Likewise.
18465 (pkglib_MODULES): Add datehook.mod.
18466 (datehook_mod_SOURCES): New variable.
18467 (datehook_mod_CFLAGS): Likewise.
18468 (datehook_mod_LDFLAGS): Likewise.
18469 (pkglib_MODULES): Add lsmmap.mod.
18470 (lsmmap_mod_SOURCES): New variable.
18471 (lsmmap_mod_CFLAGS): Likewise.
18472 (lsmmap_mod_LDFLAGS): Likewise.
18473 (pkglib_MODULES): Add boot.mod.
18474 (boot_mod_SOURCES): New variable.
18475 (boot_mod_CFLAGS): Likewise.
18476 (boot_mod_LDFLAGS): Likewise.
18477 * conf/i386-coreboot.rmk: Removed redundant parts.
18478 * conf/i386-ieee1275.rmk: Likewise.
18479 * conf/i386-pc.rmk: Likewise.
18480 * conf/mips-yeeloong.rmk: Likewise.
18481 * conf/mips.rmk: Likewise.
18482 * conf/powerpc-ieee1275.rmk: Likewise.
18483 * conf/sparc64-ieee1275.rmk: Likewise.
18484 * conf/x86_64-efi.rmk: Likewise.
18485 * conf/i386-coreboot.rmk: Moved qemu parts ..
18486 * conf/i386-qemu.rmk: ... here
18487 * conf/i386-efi.rmk: Moved common parts to...
18488 * conf/x86-efi.rmk: ... here.
18489 * conf/i386.rmk: Added modules common to all x86 variants.
18490 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
18491 * disk/memdisk.c: Remove grub/machine/kernel.h.
18492 * gensymlist.sh.in: Include symbol.h.
18493 * hook/datehook.c: Correct module name.
18494 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
18495 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
18496 * include/grub/i386/efi/serial.h: New file.
18497 * include/grub/x86_64/efi/serial.h: Likewise.
18498 * util/time.c: Likewise.
18499 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
18500
463ac55f
CK
185012010-03-14 Colin King <colin.king@ubuntu.com>
185022010-03-14 Colin Watson <cjwatson@ubuntu.com>
18503
18504 Shrink the pre-partition-table part of boot.img by eight bytes.
18505
18506 * boot/i386/pc/boot.S (ERR): New macro.
18507 (chs_mode): Use ERR.
18508 (geometry_error): Likewise.
18509 (hd_probe_error): Remove. This is only used once, so we wrwite
18510 it inline instead.
18511 (read_error): Instead of printing read_error_string, just set up
18512 %si and fall through to ...
18513 (error_message): ... this new function, also used by ERR.
18514
08e46ede
CW
185152010-03-14 Colin Watson <cjwatson@ubuntu.com>
18516
18517 Speed up consecutive hostdisk operations on the same device.
18518
18519 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
18520 (grub_util_biosdisk_open): Initialise disk->data.
18521 (struct linux_partition_cache): New structure.
18522 (linux_find_partition): Cache partition start positions; these are
18523 expensive to compute on every read and write.
18524 (open_device): Cache open file descriptor in disk->data, so that we
18525 don't have to reopen it and flush the buffer cache for consecutive
18526 operations on the same device.
18527 (grub_util_biosdisk_close): New function.
18528 (grub_util_biosdisk_dev): Set `close' member.
18529
18530 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
18531 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
18532 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18533 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18534 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
18535
4a6d2d06
VS
185362010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18537
18538 Compile parts of grub-emu as modules.
18539
18540 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
18541 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
18542 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
18543 (all-local): Add $(GRUB_EMU).
18544 (install-local): Install $(GRUB_EMU).
18545 (uninstall): Uninstall $(GRUB_EMU).
18546 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
18547 * kern/dl.c: Likewise.
18548 * commands/sleep.c: Not include machine/time.h.
18549 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
18550 (COMMON_CFLAGS): Likewise.
18551 (sbin_UTILITIES): Remove grub-emu.
18552 (grub_emu_SOURCES): Removed.
18553 (kernel_img_RELOCATABLE): New variable.
18554 (pkglib_PROGRAMS): Add kernel.img.
18555 (kernel_img_SOURCES): New variable
18556 (kernel_img_CFLAGS): Likewise.
18557 (kernel_img_LDFLAGS): Likewise.
18558 (TARGET_NO_STRIP): Likewise.
18559 (TARGET_NO_DYNAMIC_MODULES): Likewise.
18560 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
18561 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
18562 (grub-emu): New target.
18563 (GRUB_EMU): New variable.
18564 * configure.ac: Whitelist -emu as possible x86_64 architecture.
18565 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
18566 * loader/xnu.c: Likewise.
18567 * include/grub/pci.h: Likewise.
18568 * genemuinit.sh: New file.
18569 * genemuinitheader.sh: Likewise.
18570 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
18571 Support TARGET_NO_DYNAMIC_MODULES.
18572 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
18573 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
18574 * disk/loopback.c: Likewise.
18575 * font/font_cmd.c: Likewise.
18576 * partmap/acorn.c: Likewise.
18577 * partmap/amiga.c: Likewise.
18578 * partmap/apple.c: Likewise.
18579 * partmap/gpt.c: Likewise.
18580 * partmap/msdos.c: Likewise.
18581 * partmap/sun.c: Likewise.
18582 * parttool/msdospart.c: Likewise.
18583 * term/gfxterm.c: Likewise.
18584 * video/bitmap.c: Likewise.
18585 * video/readers/jpeg.c: Likewise.
18586 * video/readers/png.c: Likewise.
18587 * video/readers/tga.c: Likewise.
18588 * video/video.c: Likewise.
18589 * util/grub-emu.c (read_command_list): Removed.
18590 (main): Don't call util_init_nls.
18591 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
18592 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
18593
91fdd2ed
VS
185942010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
18597 date.mod, datehook.mod.
18598 (datetime_mod_SOURCES): New variable.
18599 (datetime_mod_CFLAGS): Likewise.
18600 (datetime_mod_LDFLAGS): Likewise.
18601 (date_mod_SOURCES): Likewise.
18602 (date_mod_CFLAGS): Likewise.
18603 (date_mod_LDFLAGS): Likewise.
18604 (datehook_mod_SOURCES): Likewise.
18605 (datehook_mod_CFLAGS): Likewise.
18606 (datehook_mod_LDFLAGS): Likewise.
18607 * conf/sparc64-ieee1275.rmk: Likewise.
18608 * lib/ieee1275/datetime.c: New file.
18609
873ccae6
VS
186102010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
18613 (ieee1275_fb_mod_SOURCES): New variable.
18614 (ieee1275_fb_mod_CFLAGS): Likewise.
18615 (ieee1275_fb_mod_LDFLAGS): Likewise.
18616 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
18617 New proto.
18618 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
18619 (HEAP_MAX_ADDR): Likewise.
18620 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
18621 type.
18622 Correct stop condition.
18623 (grub_ieee1275_devices_iterate): New function.
18624 * video/ieee1275.c: New file.
18625
601c97c0
VS
186262010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
18627
18628 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
18629
18630 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
18631 as scratch.
18632 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
18633 SCRATCH_PAD_DISKBOOT as scratch.
18634 (bootit): Pass Openfirmware pointer in %o4.
18635 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
18636 of 0x200000.
18637 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
18638 with util/grub-mkrawimage.c.
18639 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
18640 * include/grub/aout.h (AOUT_MID_SUN): New definition.
18641 (grub_aout_get_type) [GRUB_UTIL]: Removed.
18642 (grub_aout_load) [GRUB_UTIL]: Likewise.
18643 * include/grub/kernel.h (grub_modules_get_end): New proto.
18644 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
18645 (SCRATCH_PAD_BOOT): New definition.
18646 (SCRATCH_PAD_DISKBOOT): Likewise.
18647 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
18648 * include/grub/sparc64/ieee1275/ieee1275.h
18649 (grub_ieee1275_original_stack): New variable
18650 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18651 New definition
18652 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
18653 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
18654 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
18655 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
18656 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
18657 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
18658 (grub_platform_image_format_t): New type.
18659 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
18660 * kern/main.c (grub_modules_get_end)
18661 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
18662 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
18663 (codestart): Switch stacks.
18664 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
18665 variable.
18666 (grub_heap_init): Use grub_modules_get_end.
18667 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
18668 stack.
18669 * util/grub-mkrawimage.c (generate_image): Support sparc64.
18670 (main): Likewise.
18671 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
18672
d68b491e
TG
186732010-03-14 Thorsten Glaser <tg@mirbsd.org>
18674
18675 * util/grub-mkrescue.in: Base ISO UUID on UTC.
18676
4e02ed50
MK
186772010-03-08 Matt Kraai <kraai@ftbfs.org>
18678
18679 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
18680 bug #559005).
18681
1f15fc1e
VS
186822010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
18683
18684 * genmoddep.awk: Output all missing symbols and not only first.
18685
fce5d8ff
VS
186862010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18687
18688 * NEWS: Put the date of 1.98 release.
18689
d1e8a02f
VS
186902010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
18693 ft2build.h.
18694
696fd607
VS
186952010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18696
18697 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
18698 completition in the middle of string.
18699
33e2e6f3
VS
187002010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 * util/grub-mkrescue.in: Use mktemp with explicit template.
18703
b1f6d291
VS
187042010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18705
18706 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
18707
2ac227c7
VS
187082010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
18709
18710 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
18711 right pointer.
18712
8f9a632b
VS
187132010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
18714
18715 Fix FreeBSD compilation.
18716
18717 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
18718 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
18719
60b03859
VS
187202010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
18721
18722 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
18723
48a5a769
VS
187242010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18725
18726 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
18727
3ab4bd77
VS
187282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18729
18730 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
18731
d116e0d8
RM
187322010-03-04 Robert Millan <rmh.grub@aybabtu.com>
18733
18734 Support relative image path in theme file.
18735
18736 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
18737 (image_set_property): Handle theme_dir and relative path.
18738
c7ef54aa
VS
187392010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * configure.ac: Alias amd64 to x86_64.
18742
fcee14ed
VS
187432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18744
18745 * NEWS: mention multiboot on EFI.
18746
d0780363
VS
187472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18748
18749 * kern/main.c (grub_load_modules): Handle errors from init functions of
18750 embeded modules.
18751
41168ea4
VS
187522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18753
18754 * normal/autofs.c (autoload_fs_module): Handle errors.
18755
b54d93ac
VS
187562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 Disable linux.mod on qemu-mips since it's not functional and leads
18759 to compilation failure.
18760
18761 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
18762 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
18763 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
18764 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
18765 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
18766 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
18767 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
18768 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
18769 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
18770 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
18771 Reported by: BVK Chaitanya
18772
fc8345da
JU
187732010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
18774
18775 * INSTALL: Add gettext as a dependency and add qemu to a new section
18776 "Prerequisites for make-check".
18777
4760f979
CF
187782010-03-04 Christian Franke <franke@computer.org>
18779
18780 * util/grub-pe2elf.c: Add missing include "progname.h".
18781
f209b5b2
VS
187822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18783
18784 * normal/crypto.c (read_crypto_list): Fix a typo.
18785 Reported by: Seth Goldberg.
18786
b4b7be98
VS
187872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18788
18789 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 18790 Reported by: Seth Goldberg.
b4b7be98 18791
c0ee0385
VS
187922010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
18795 ascii.bitmaps.
18796
a8efbf64
VS
187972010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18798
18799 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 18800 Reported by: Seth Goldberg.
a8efbf64 18801
08dcd913
VS
188022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
18803
18804 * util/i386/efi/grub-install.in: Copy gettext files.
18805
c4d0b332
VS
188062010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18807
18808 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
18809
c6f2fe52
VS
188102010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18811
18812 Wait for user entry basing on presence of output rather than on errors.
18813
18814 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
18815 (grub_install_newline_hook): Likewise.
18816 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
18817 * normal/menu.c (show_menu): Check line_counter to determine presence
18818 of output.
18819 * normal/term.c (grub_normal_line_counter): New variable.
18820 (grub_normal_get_line_counter): New function.
18821 (grub_install_newline_hook): Likewise.
18822
5382b1e4
VS
188232010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18824
18825 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
18826
5519963b
VS
188272010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
18828
18829 * configure.ac: Update version to 1.98.
18830
72b28631
VS
188312010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
18832
18833 * util/grub.d/10_linux.in (linux_entry): Don't default to
18834 gfxpayload=keep if Linux doesn't support video handover.
18835
c140a180
VS
188362010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
18837
18838 Don't compile video modules on yeeloong since video subsystem is part
18839 of kernel.
18840
18841 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
18842 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
18843 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
18844 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
18845 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
18846 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
18847 * include/grub/bitmap_scale.h: Likewise.
18848 * include/grub/bufio.h: Likewise.
18849 * include/grub/font.h: Likewise.
18850 * include/grub/gfxterm.h: Likewise.
18851 * include/grub/video.h: Likewise.
18852 * include/grub/vbe.h: Don't include video_fb.h.
18853 * video/i386/pc/vbe.c: Include video_fb.h.
18854 * commands/i386/pc/vbetest.c: Include video.h.
18855
a0ca21c2
CW
188562010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
18857
18858 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
18859 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
18860 default entry if GRUB_SAVEDEFAULT=true. This allows using
18861 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
18862 saving a new default on every boot.
18863
4a8a763c
VS
188642010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
18865
18866 * normal/crypto.c (read_crypto_list): Fix a memory leak.
18867 * normal/term.c (read_terminal_list): Likewise.
18868 * normal/main.c (grub_normal_init_page): Likewise.
18869 (grub_normal_read_line_real): Likewise.
18870
607ffde2
VS
188712010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
18874 memory leak.
18875 Reported by: Seth Goldberg.
18876
2b8fa975
CW
188772010-02-24 Joey Korkames <joey+lists@kidfixit.com>
18878
18879 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
18880 duplicate declaration of `start'.
18881
618307dd
VS
188822010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
18883
18884 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
18885 filename.
18886 Reported by: Georgy Buranov
18887
7dd05b96 188882010-02-20 Carles Pina i Estany <carles@pina.cat>
18889
18890 * util/grub-mkrawimage.c (usage): Change string formatting to
18891 improve gettext.
18892
d1484a42
MRA
188932010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18894
18895 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
18896 backspace keys.
18897
42b1d186
VS
188982010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
18899
18900 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
18901 Reported by: Michael Suchanek.
18902
189032010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
18904
18905 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
18906 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
18907
d9f31a41
VS
189082010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 Remove any reference to non-free fonts.
18911
18912 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
18913 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
18914 uses non-free components.
18915 * font/font.c (grub_font_get_name): Remove example name.
18916 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
18917 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18918 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
18919 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
18920
2793c71e
GB
189212010-02-16 Georgy Buranov <gburanov@gmail.com>
18922
18923 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
18924
402e3779
VS
189252010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18926
18927 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
18928 Double divisor.
18929 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
18930 features.
18931 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
18932
0dd1e0dd
VS
189332010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18934
18935 * gensymlist.sh.in: Use TARGET_CC instead of CC.
18936
6fa7cfce
ST
189372010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18938
18939 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
18940 * docs/grub.texi (Command-line and menu entry commands): Document play
18941 command.
18942
37c8483b
ST
189432010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18944
18945 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
18946 parse arguments as inline tempo and notes. Move code for playing notes
18947 to...
18948 (play): ... new function.
18949
14da0fb7
ST
189502010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18951
18952 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
18953 grub_uint16_t instead of short.
18954 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
18955 disk from little endian to cpu endianness.
18956
04459e70
ST
189572010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
18958
18959 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
18960 GRUB_TICKS_PER_SECOND instead of 120.
18961
a0876943
VS
189622010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
18965 escape sequence after \e.
18966
e29f95dc
VS
189672010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18968
18969 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
18970 non-ASCII characters.
18971
d27859b2
VS
189722010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18973
18974 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
18975 set root in single quotes to prevent \, from being unescaped.
18976
bc028f2f
VS
189772010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18978
18979 Prevent unknown commands from stopping menuentry execution.
18980
18981 * script/execute.c (grub_script_execute_cmdline): Print error after
18982 unknown command.
18983
095f5f82
VS
189842010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18985
18986 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
18987 Reported by: Pavel Pisa.
18988
8c717950
VS
189892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18990
18991 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
18992
904935c3
VS
189932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18994
18995 Merge grub_ieee1275_map_physical into grub_map and rename to
18996 grub_ieee1275_map
18997
18998 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
18999 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
19000 Remove.
19001 * kern/ieee1275/openfw.c (grub_map): Rename to ...
19002 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
19003 necessary.
19004 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
19005
5b59a4e3
VS
190062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19007
19008 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
19009 opening and not after.
19010
69e137e8
VS
190112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19012
19013 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
19014 constants.
19015
2c0fcc36
VS
190162010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19017
19018 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
19019 (alloc_phys): Use ALIGN_UP instead of align_addr.
19020
8c6052ce
VS
190212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19022
19023 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
19024
17cec782
VS
190252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19026
19027 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
19028
e0128bbd
VS
190292010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19030
19031 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
19032 verbose dprintf.
19033
ca62070b
VS
190342010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19035
19036 Fix over-4GiB seek on sparc64.
19037
19038 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
19039 Replace pos_i and pos_lo with pos. All users updated.
19040 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
19041 New constant.
19042 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
19043 Likewise.
19044 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
19045 and pos_lo.
19046
bdca2607
VS
190472010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19048
19049 * util/grub-mkrawimage.c (main): Call set_program_name.
19050
da278c4d
VS
190512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 Properly align 64-bit targets.
19054
19055 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
19056 (generate_image): Use ALIGN_ADDR.
19057
b274d734
VS
190582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19059
19060 Properly create cross-endian images.
19061
19062 * include/grub/types.h (grub_host_to_target_addr): New macro
19063 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
19064
82da2062
VS
190652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
19066
19067 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
19068
7cae4377
VS
190692010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19070
19071 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
19072
19073 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
19074 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
19075 (grub_linux_boot): Divide by 64K when on VESA.
19076
65a533e7
VS
190772010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Support GRUB_GFXPAYLOAD_LINUX.
19080
19081 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
19082 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
19083
dd01d397
VS
190842010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
19085
19086 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
19087 to show messages instead of discarding them.
19088 Process errors after executing command and not before. Keep old method
19089 too as precaution.
19090
660960d6
VS
190912010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
19092
19093 * configure.ac: Check for ft2build.h.
19094
62509f04
VS
190952010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
19098
473df63d
VS
190992010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19100
19101 * genkernsyms.sh.in: Use TARGET_CC.
19102
c98d2a13
CW
191032010-02-07 Colin Watson <cjwatson@ubuntu.com>
19104
19105 * NEWS: Update.
19106
6e14234c
VS
191072010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19108
19109 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
19110 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
19111 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 19112
b255e9cf
YB
191132010-02-07 Yves Blusseau <blusseau@zetam.org>
19114
6e14234c 19115 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 19116
98e6959d
VS
191172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19118
19119 Fix warnings in grub-emu when compiling with maximum warning options.
19120
19121 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
19122 (grub_arch_modules_addr): Return 0 and not NULL.
19123 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 19124 (xstrdup): Use newstr instead of dup.
f88d801b
VS
19125 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
19126 of disk to dsk to avoid shadowing.
74e4934e
VS
19127 (find_free_slot): Fix prototype.
19128 * util/getroot.c (grub_util_is_dmraid): Make static.
19129 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
19130 Add missing prototype.
19131 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 19132
74e31b5c
VS
191332010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 * loader/i386/linux.c (grub_linux_setup_video): Handle error
19136 appropriately.
19137
6b2ad14b
VS
191382010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19139
19140 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
19141 code out.
19142
8f891adc
VS
191432010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19144
19145 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
19146 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
19147 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
19148 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
19149 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
19150 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
19151
74b45184
VS
191522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19153
19154 * include/grub/err.h (grub_err_printf): Don't export.
19155
a4bced77
VS
191562010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19157
19158 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
19159
007d0695
VS
191602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 * include/grub/i18n.h (grub_gettext_dummy): Removed.
19163 * kern/misc.c (grub_gettext_dummy): Make static.
19164
b6c0d9c2
VS
191652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19166
19167 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
19168 by non-valid ones.
19169 * kern/term.c (grub_putchar): Likewise.
19170
f51a90d0
VS
191712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19172
19173 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
19174 buggy hook call and memory leak.
19175
6846cec5
VS
191762010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19177
19178 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
19179
468d69fe
VS
191802010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19181
19182 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
19183
51906b8c
VS
191842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19185
19186 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
19187 modevar.
19188 Return grub_errno on allocation error.
19189
09706ce5
VS
191902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19191
19192 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
19193
911df80c
YB
191942010-02-06 Yves Blusseau <blusseau@zetam.org>
19195
19196 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
19197 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
19198
3746a6bc
VS
191992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19200
19201 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
19202 non-pxe disk.
19203 (grub_pxefs_open): Likewise.
19204
09706ce5
VS
192052010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19206
19207 * util/grub.d/10_hurd.in: Add --class information to menuentries.
19208 * util/grub.d/10_kfreebsd.in: Likewise.
19209 * util/grub.d/10_linux.in: Likewise.
19210
7cc192d9
VS
192112010-02-06 Colin D Bennett <colin@gibibit.com>
19212
19213 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
19214 (gfxmenu_mod_SOURCES): New variable.
19215 (gfxmenu_mod_CFLAGS): Likewise.
19216 (gfxmenu_mod_LDFLAGS): Likewise.
19217 * include/grub/term.h (grub_term_set_current_output): Declare
19218 argument as const.
19219 * docs/gfxmenu-theme-example.txt: New file.
19220 * gfxmenu/gfxmenu.c: Likewise.
19221 * gfxmenu/gui_box.c: Likewise.
19222 * gfxmenu/gui_canvas.c: Likewise.
19223 * gfxmenu/gui_circular_progress.c: Likewise.
19224 * gfxmenu/gui_image.c: Likewise.
19225 * gfxmenu/gui_label.c: Likewise.
19226 * gfxmenu/gui_list.c: Likewise.
19227 * gfxmenu/gui_progress_bar.c: Likewise.
19228 * gfxmenu/gui_string_util.c: Likewise.
19229 * gfxmenu/gui_util.c: Likewise.
19230 * gfxmenu/icon_manager.c: Likewise.
19231 * gfxmenu/model.c: Likewise.
19232 * gfxmenu/named_colors.c: Likewise.
19233 * gfxmenu/theme_loader.c: Likewise.
19234 * gfxmenu/view.c: Likewise.
19235 * gfxmenu/widget-box.c: Likewise.
19236 * include/grub/gfxmenu_model.h: Likewise.
19237 * include/grub/gfxmenu_view.h: Likewise.
19238 * include/grub/gfxwidgets.h: Likewise.
19239 * include/grub/gui.h: Likewise.
19240 * include/grub/gui_string_util.h: Likewise.
19241 * include/grub/icon_manager.h: Likewise.
19242
192432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19244
19245 Agglomerate scrolling in gfxterm.
19246
19247 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
19248 (grub_virtual_screen_setup): Initialise 'total_screen'.
19249 (write_char): Split to ...
19250 (paint_char): ... this ...
19251 (write_char): ... and this.
19252 (paint_char): Handle delayed scrolling.
19253 (draw_cursor): Likewise.
19254 (scroll_up): Split to ...
19255 (real_scroll): ... this ...
19256 (scroll_up): ... and this.
19257 (real_scroll): Handle multi-line scroll and draw below-the-bottom
19258 characters.
19259 (grub_gfxterm_refresh): Call real_scroll.
19260
192612010-02-06 Colin D Bennett <colin@gibibit.com>
19262
19263 * include/grub/misc.h (grub_iscntrl): New inline function.
19264 (grub_isalnum): Likewise.
19265 (grub_strtol): Likewise.
19266
192672010-02-06 Colin D Bennett <colin@gibibit.com>
19268
19269 * normal/menu_text.c (get_entry_number): Move from here ...
19270 * normal/menu.c (get_entry_number): ... moved here.
19271 * include/grub/menu.h (grub_menu_get_default_entry_index):
19272 New prototype.
19273 * normal/menu.c (grub_menu_get_default_entry_index): New function.
19274 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
19275 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
19276 (grub_menu_viewer_should_return): Likewise.
19277 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
19278 * normal/menu_text.c (run_menu): Enable menu switching.
19279 * normal/menu_viewer.c (should_return): New variable.
19280 (menu_viewer_changed): Likewise.
19281 (grub_menu_viewer_show_menu): Handle menu viewer changes.
19282 (grub_menu_viewer_should_return): New function.
19283 (menuviewer_write_hook): Likewise.
19284 (grub_menu_viewer_init): Likewise.
19285
192862010-02-06 Colin D Bennet <colin@gibibit.com>
192872010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19288
19289 Support for gfxterm in a window.
19290
19291 * include/grub/gfxterm.h: New file.
19292 * include/grub/video.h (struct grub_video_rect): New declaration.
19293 (grub_video_rect_t): Likewise.
19294 * term/gfxterm.c (struct grub_gfxterm_window): New type.
19295 (refcount): New variable.
19296 (render_target): Likewise.
19297 (window): Likewise.
19298 (repaint_callback): Likewise.
19299 (grub_virtual_screen_setup): Use 'render_target'.
19300 (init_window): New function.
19301 (grub_gfxterm_init_window): Likewise.
19302 (grub_gfxterm_init): Check reference counter.
19303 Use init_window.
19304 (destroy_window): New function.
19305 (grub_gfxterm_destroy_window): Likewise.
19306 (grub_gfxterm_fini): Check reference counter.
19307 Use destroy_window.
19308 (redraw_screen_rect): Restore viewport.
19309 Use 'render_target' and 'window'.
19310 Call 'repaint_callback'.
19311 (write_char): Use 'render_target'.
19312 (draw_cursor): Likewise.
19313 (scroll_up): Restore viewport.
19314 Use 'render_target' and 'window'.
19315 Call 'repaint_callback'.
19316 (grub_gfxterm_cls): Likewise.
19317 (grub_gfxterm_refresh): Use 'window'.
19318 (grub_gfxterm_set_repaint_callback): New function.
19319 (grub_gfxterm_background_image_cmd): Use 'window'.
19320 (grub_gfxterm_get_term): New function.
19321 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
19322
193232010-02-06 Colin D Bennett <colin@gibibit.com>
19324
19325 Bitmap scaling support.
19326
19327 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
19328 (bitmap_scale_mod_SOURCES): New variable.
19329 (bitmap_scale_mod_CFLAGS): Likewise.
19330 (bitmap_scale_mod_LDFLAGS): Likewise.
19331 * include/grub/bitmap_scale.h: New file.
19332 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
19333 (background_image_cmd_options): New variable.
19334 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
19335 (cmd): Rename and change type to ...
19336 (background_image_cmd_handle): ... this. All users updated.
19337 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
19338 * video/bitmap_scale.c: New file.
19339
193402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19341
19342 SDL support.
19343
19344 * Makefile.in (LIBSDL): New variable.
19345 (enable_grub_emu_sdl): Likewise.
19346 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
19347 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
19348 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
19349 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
19350 * util/sdl.c: New file.
19351
193522010-02-06 Colin D Bennett <colin@gibibit.com>
193532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19354
19355 Double buffering support.
19356
19357 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
19358 * include/grub/video.h: Update comment.
19359 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
19360 New type.
19361 (grub_video_fb_doublebuf_blit_init): New prototype.
19362 * term/gfxterm.c (scroll_up): Support double buffering.
19363 (grub_gfxterm_refresh): Likewise.
19364 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
19365 (grub_video_fb_doublebuf_blit_init): Likewise.
19366 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
19367 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
19368 'displayed_page', 'render_page' and 'update_screen'.
19369 (grub_video_vbe_fini): Free offscreen buffer.
19370 (doublebuf_pageflipping_commit): New function.
19371 (doublebuf_pageflipping_update_screen): Likewise.
19372 (doublebuf_pageflipping_init): Likewise.
19373 (double_buffering_init): Likewise.
19374 (grub_video_vbe_setup): Enable doublebuffering.
19375 (grub_video_vbe_swap_buffers): Implement.
19376 (grub_video_vbe_set_active_render_target): Handle double buffering.
19377 (grub_video_vbe_get_active_render_target): Likewise.
19378 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
19379 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
19380 (grub_video_vbe_enable_double_buffering): Likewise.
19381 (grub_video_vbe_swap_buffers): Use update_screen.
19382 (grub_video_set_mode): Use double buffering.
19383
193842010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19385
19386 * maintainance/gentrigtables.py: Remove.
19387 * lib/trig.c: Likewise.
19388
19389 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
19390
19391 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
19392 `trigtables.c'.
19393 (trigtables.c): New rule.
19394 (gentrigtables): Likewise.
19395 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
19396
193972010-02-06 Robert Millan <rmh.grub@aybabtu.com>
19398
19399 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
19400 integer constants.
19401
194022010-02-06 Colin D Bennet <colin@gibibit.com>
19403
19404 Trigonometry support.
19405
19406 * include/grub/trig.h: New file.
19407 * lib/trig.c: Likewise.
19408 * maintainance/gentrigtables.py: Likewise.
19409 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
19410 (trig_mod_SOURCES): New variable.
19411 (trig_mod_CFLAGS): Likewise.
19412 (trig_mod_LDFLAGS): Likewise.
19413
5562834e
VS
194142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19415
19416 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
19417 disk devices.
19418
4f8528fc
VS
194192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
19420
19421 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
19422 error.
19423
2b4068e9
VS
194242010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
19425
19426 * util/hostdisk.c (open_device): Don't use partition device when reading
19427 before the partition.
19428 (grub_util_biosdisk_read): Don't read from partition and before the
19429 partition in single operation.
19430 (grub_util_biosdisk_write): Don't write to partition and before the
19431 partition in single operation.
19432
399f6e4d
TL
194332010-02-03 Torsten Landschoff <torsten@debian.org>
19434
19435 * kern/disk.c (grub_disk_read): Fix offset computation when reading
19436 last sectors.
19437
996649b0
VS
194382010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
19439
19440 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
19441 CDROM reads.
19442 (grub_biosdisk_write): Refuse to write to CDROM.
19443
3b205d4d
VS
194442010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
19445
19446 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
19447
61e89d9d
VS
194482010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
19449
19450 * font/font.c (find_glyph): Check that bmp_idx is available before
19451 using it.
19452 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
19453 with (font == NULL).
19454
bf7fcba2
CS
194552010-01-28 Christian Schmitt <chris@ilovelinux.de>
19456
19457 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
19458
f45d2663
BC
194592010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
19460
19461 * include/grub/script_sh.h (sourcecode): Add const qualifier.
19462 * util/grub-script-check.c (getline): Fix empty lines case.
19463
ec1444e6
RM
194642010-01-28 Robert Millan <rmh.grub@aybabtu.com>
19465
19466 * Makefile.in (check): Exit with fail status when one of the tests
19467 fails.
19468 * tests/example_functional_test.c (example_test): Fix reversed assert.
19469 * tests/example_unit_test.c (example_test): Likewise.
19470
2e1cb9bb
CW
194712010-01-28 Colin Watson <cjwatson@ubuntu.com>
19472
19473 * util/grub.d/10_linux.in: This script does not use any of the
19474 contents of gettext.sh, only the external command `gettext', so stop
19475 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
19476 the same prefix as GRUB.)
19477 * util/grub.d/10_kfreebsd.in: Likewise.
19478
63533ab0
VS
194792010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
19482 of the line.
19483
989e1f93
VS
194842010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19485
19486 * kern/disk.c (grub_disk_read): Fix offset computation when reading
19487 last sectors.
19488
e709ebe2
VS
194892010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
19490
19491 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
19492 having a 4KiB and not 32KiB buffer size.
19493
27dea7ed
RM
194942010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19495
19496 * util/hostfs.c: Include `<errno.h>'.
19497 (grub_hostfs_read): Handle errors from fseeko() and fread().
19498
67667b9c
RM
194992010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19500
19501 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
19502 loop when using read hooks on files whose size isn't sector-aligned.
19503
c294d9d8
RM
195042010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19505
19506 Remove unused parameter.
19507
19508 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
19509 (grub_iso9660_open): Remove initialization of `data->length'.
19510
af75a9f1
RM
195112010-01-27 Robert Millan <rmh.grub@aybabtu.com>
19512
19513 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
19514 memleak conditions.
19515
254e2ce5 195162010-01-27 Carles Pina i Estany <carles@pina.cat>
19517
19518 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
19519 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
19520
b510928c 195212010-01-26 Carles Pina i Estany <carles@pina.cat>
19522
19523 * util/bin2h.c (usage): Fix warning (space after backslash).
19524
aa2f9dd2 195252010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 19526
19527 * font/font.c: Include `grub/fontformat.h.
19528 Remove font file format constants.
19529 (grub_font_load): Use the new macros.
19530 * include/grub/fontformat.h: New file.
19531 * util/grub-mkfont.c: Include `grub/fontformat.c'.
19532 (write_font_pf2): Use the new macros.
19533
94e7e712
RM
195342010-01-26 Robert Millan <rmh.grub@aybabtu.com>
19535
19536 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
19537 does.
19538
3973a59a
RM
195392010-01-26 Robert Millan <rmh.grub@aybabtu.com>
19540
19541 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
19542
19543 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
19544 (_start): Macroify `0x7F'.
19545
19546 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
19547 (make_install_device): Use "(pxe)" as fallback prefix when booting
19548 via PXE.
19549
42e0cba3
GS
195502010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
19551
19552 * configure.ac: Reset LIBS after check for libgcc symbols.
19553
847effd8
CW
195542010-01-25 Colin Watson <cjwatson@ubuntu.com>
19555
19556 * util/hostdisk.c (open_device): Add trailing newline to debug
19557 message.
19558
ea4a7e35
GS
195592010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
19560
19561 * configure.ac: Check for `limits.h'.
19562 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
19563
67951a53
RM
195642010-01-24 Robert Millan <rmh.grub@aybabtu.com>
19565
19566 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
19567 capitalize error strings.
19568
c273d4ce
ST
195692010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
19570
19571 * util/grub.d/10_hurd.in: Add a recovery mode.
19572
69be5b74
VS
195732010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
19574
19575 * configure.ac: Check for libgcc symbols with -nostdlib.
19576
fc9e5810
BC
195772010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
19578
19579 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
19580
4b358c0a
VS
195812010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19582
19583 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
19584 stack since heap may be unavailable at that point.
19585 (grub_ofconsole_gotoxy): Likewise.
19586
454fcd1c
VS
195872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19588
19589 * configure.ac: Check for _restgpr_14_x.
19590 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
19591 and _savegpr_* prototypes.
19592
566863ca
RM
195932010-01-22 Robert Millan <rmh.grub@aybabtu.com>
19594
19595 Use generic grub_reboot() for i386-efi.
19596
19597 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
19598 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
19599 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
19600
bf86e59a
VS
196012010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
19602
19603 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
19604 presence of "prefix" variable as it breaks when normal.mod is
19605 embedded.
19606
d645e0f8
VS
196072010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19608
19609 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
19610 stack since heap is unavailable at that point.
19611
f9ab2e25
VS
196122010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19613
19614 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
19615 (grub_freebsd_bootinfo): Rewritten.
19616 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
19617
01fc7054
VS
196182010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
19619
19620 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
19621
caab4fd6
RM
196222010-01-21 Robert Millan <rmh.grub@aybabtu.com>
19623
19624 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
19625 domain now.
19626
67eb1427
FZ
196272010-01-20 Felix Zielcke <fzielcke@z-51.de>
19628
19629 * util/misc.c (make_system_path_relative_to_its_root): Change the work
19630 around for handling "/" to the correct fix. Fix a memory leak. Use
19631 xstrdup instead of strdup.
19632
a9ed4ff3
VS
196332010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
19636
196372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
19638
19639 Optimise glyph lookup by Basic Multilingual Plane lookup array.
19640
19641 * font/font.c (struct grub_font): New member 'bmp_idx'.
19642 (font_init): Initialise 'bmp_idx'.
19643 (load_font_index): Fill 'bmp_idx'.
19644 (find_glyph): Make inline. Use bmp_idx for BMP characters.
19645
48209f4f
VS
196462010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19647
19648 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
19649 unnecessary calls.
19650
9f0a4bb7
VS
196512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19652
19653 Move context handling out of the kernel.
19654
19655 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
19656 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
19657 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
19658 * conf/i386-efi.rmk: Likewise.
19659 * conf/i386-ieee1275.rmk: Likewise.
19660 * conf/i386-pc.rmk: Likewise.
19661 * conf/powerpc-ieee1275.rmk: Likewise.
19662 * conf/sparc64-ieee1275.rmk: Likewise.
19663 * conf/x86_64-efi.rmk: Likewise.
19664 * include/grub/env.h: Include grub/menu.h.
19665 (grub_env_var_type): Removed.
19666 (grub_env_var): Replaced field 'type' with 'global'.
19667 (grub_env_find): New prototype.
19668 (grub_env_context_open): Remove EXPORT_FUNC.
19669 (grub_env_context_close): Likewise.
19670 (grub_env_export): Likewise.
19671 (grub_env_set_data_slot): Removed.
19672 (grub_env_get_data_slot): Likewise.
19673 (grub_env_unset_data_slot): Likewise.
19674 (grub_env_unset_menu): New prototype.
19675 (grub_env_set_menu): Likewise.
19676 (grub_env_get_menu): Likewise.
19677 * include/grub/env_private.h: New file.
19678 * include/grub/normal.h (grub_context_init): New prototype.
19679 (grub_context_fini): Likewise.
19680 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
19681 * normal/context.c (grub_cmd_export): ... to here.
19682 * kern/env.c: Include env_private.h.
19683 (HASHSZ): Moved to include/grub/env_private.h.
19684 (grub_env_context): Likewise.
19685 (grub_env_sorted_var): Likewise.
19686 (current_context): Renamed from this ...
19687 (grub_current_context): ...to this. 'static' removed. All users updated.
19688 (grub_env_find): Removed 'static'.
19689 (grub_env_context_open): Moved to normal/context.c.
19690 (grub_env_context_close): Likewise.
19691 (grub_env_export): Likewise.
19692 (mangle_data_slot_name): Removed.
19693 (grub_env_set_data_slot): Likewise.
19694 (grub_env_get_data_slot): Likewise.
19695 (grub_env_unset_data_slot): Likewise.
19696 * kern/main.c (grub_set_root_dev): Don't export root.
19697 It will be done later.
19698 (grub_main): Don't export prefix.
19699 It will be done later.
19700 * normal/context.c: New file.
19701 * normal/main.c (free_menu): Use grub_env_unset_menu.
19702 (grub_normal_add_menu_entry): Use grub_env_get_menu.
19703 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
19704 (GRUB_MOD_INIT(normal)): Call grub_context_init.
19705 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
19706
8dd35b8c
VS
197072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19708
19709 setpci support.
19710
19711 * commands/setpci.c: New file.
19712 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
19713 (setpci_mod_SOURCES): New variable.
19714 (setpci_mod_CFLAGS): Likewise.
19715 (setpci_mod_LDFLAGS): Likewise.
19716
449193d5
VS
197172010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19718
19719 Byte-addressable PCI configuration space.
19720
19721 * bus/pci.c (grub_pci_make_address): Use byte address instead of
19722 dword address.
19723 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
19724 GRUB_PCI_REG_CACHELINE.
19725 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
19726 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
19727 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
19728 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
19729 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
19730 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
19731 grub_pci_make_address.
19732 (lock_rom_area): Likewise.
19733 * commands/lspci.c (grub_lspci_iter): Use macroses
19734 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
19735 of grub_pci_make_address.
19736 * disk/ata.c (grub_ata_pciinit): Likewise.
19737 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
19738 (GRUB_PCI_REG_VENDOR): Likewise.
19739 (GRUB_PCI_REG_DEVICE): Likewise.
19740 (GRUB_PCI_REG_COMMAND): Likewise.
19741 (GRUB_PCI_REG_STATUS): Likewise.
19742 (GRUB_PCI_REG_REVISION): Likewise.
19743 (GRUB_PCI_REG_CLASS): Likewise.
19744 (GRUB_PCI_REG_CACHELINE): Likewise.
19745 (GRUB_PCI_REG_LAT_TIMER): Likewise.
19746 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
19747 (GRUB_PCI_REG_BIST): Likewise.
19748 (GRUB_PCI_REG_ADDRESSES): Likewise.
19749 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19750 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19751 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19752 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19753 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19754 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
19755 (GRUB_PCI_REG_CIS_POINTER): Likewise.
19756 (GRUB_PCI_REG_SUBVENDOR): Likewise.
19757 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
19758 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
19759 (GRUB_PCI_REG_CAP_POINTER): Likewise.
19760 (GRUB_PCI_REG_IRQ_LINE): Likewise.
19761 (GRUB_PCI_REG_IRQ_PIN): Likewise.
19762 (GRUB_PCI_REG_MIN_GNT): Likewise.
19763 (GRUB_PCI_REG_MAX_LAT): Likewise.
19764 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
19765 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
19766 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 19767 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
19768 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
19769 space.
19770
96d73208
RM
197712010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19772
19773 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
19774 can be reliably determined to be supported.
19775
d4484482
RM
197762010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19777
19778 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
19779 that VESA is supported.
19780 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
19781 supported.
19782
00308ecf
VS
197832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19784
19785 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
19786
f66924a4
RM
197872010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19788
19789 * util/misc.c (make_system_path_relative_to_its_root): Work around
19790 special-casing of "/", as previous incarnation of this routine did.
19791
cbca0ada
VS
197922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19793
19794 Fix any-emu compilation.
19795
19796 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
19797 * grub_bin2h_SOURCES: New variable.
19798
34a66d99
RM
197992010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19800
19801 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
19802
94fabf58
RM
198032010-01-20 Robert Millan <rmh.grub@aybabtu.com>
19804
19805 * util/grub.d/00_header.in: Fix handling of locale_dir.
19806
02cf98ca
VS
198072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19808
19809 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
19810 as possible unifont location (Gentoo).
19811 Reported by: Alexander Brüning
19812
327dbcd7
VS
198132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19814
19815 Don't try to generate lists for kernel.img.
19816
19817 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
19818 (pkglib_MODULES): Remove kernel.img.
19819 (kernel_img_EXPORTS): Removed.
19820 (kernel_img_RELOCATABLE): New variable.
19821 * conf/x86_64-efi.rmk: Likewise.
19822 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
19823
ca467290
VS
198242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19825
19826 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
19827 grub_xasprintf or grub_snprintf.
19828 (grub_vsprintf): Likewise.
19829 (grub_snprintf): New proto.
19830 (grub_vsnprintf): Likewise.
19831 (grub_xasprintf): Likewise.
19832 (grub_xvasprintf): Likewise.
19833 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
19834 (grub_sprintf): Removed.
19835 (grub_vsnprintf): New function.
19836 (grub_snprintf): Likewise.
19837 (grub_xvasprintf): Likewise.
19838 (grub_xasprintf): Likewise.
19839 (grub_vsprintf): Renamed to ...
19840 (grub_vsnprintf_real): ...this. New argument max_len.
19841
aca655fd
BC
198422010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
19843
19844 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
19845 fix grub-script-check warning.
19846
7ee92c32
VS
198472010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19848
19849 * include/grub/font.h (grub_font_load): Fix prototype.
19850
f80927ca
VS
198512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19852
19853 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
19854
119c50ea
VS
198552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19856
19857 * include/grub/x86_64/at_keyboard.h: New file.
19858
47d5f3c1
VS
198592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19860
19861 * loader/mips/linux.c: Include missing grub/i18n.h.
19862
55ff5266
RM
198632009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19864
19865 * normal/menu.c (notify_execution_failure): Clarify error message.
19866
c893cc87
RM
198672009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19868
19869 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
19870 return value (and revert all return statements). Update users.
19871
917dd370
CW
198722010-01-20 Dan Merillat <debian@dan.merillat.org>
19873
19874 * kern/device.c (grub_device_iterate): Allocate new part_ent
19875 structure based on sizeof (*p) rather than sizeof (p->next), to
19876 account for structure padding.
19877
19878 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
19879 disk is NULL, which might happen for LVM physical volumes with no
19880 LVM signature.
19881
d4a4ee57
RM
198822009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19883
19884 * loader/mips/linux.c (grub_cmd_initrd)
19885 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
19886
198872009-12-20 Robert Millan <rmh.grub@aybabtu.com>
19888
19889 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
19890 (grub_video_video_init, grub_video_bitmap_init)
19891 (grub_font_manager_init, grub_term_gfxterm_init)
19892 (grub_at_keyboard_init): New extern declarations.
19893 (grub_machine_init): Initialize gfxterm and at_keyboard.
19894
19895 * kern/main.c (grub_main): Revert grub_printf delay kludge.
19896
19897 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
19898 `gfxterm.mod' into core image.
19899
19900 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19901 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19902 (kernel_img_FORMAT): Copy to ...
19903
19904 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19905 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19906 (kernel_img_FORMAT): ... here, and ...
19907
19908 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19909 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19910 (kernel_img_FORMAT): ... here.
19911
19912 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
19913 and input (at_keyboard) terminals in kernel.
19914 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
19915
19916 (pkglib_MODULES): Remove `pci.mod'.
19917 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
19918 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
19919 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
19920 (at_keyboard_mod_LDFLAGS): Remove variables.
19921
199222010-01-11 Felix Zielcke <fzielcke@z-51.de>
19923
19924 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
19925
199262009-12-10 Robert Millan <rmh.grub@aybabtu.com>
19927
19928 * include/grub/mips/libgcc.h: Only export symbols for functions
19929 that libgcc provides.
19930
199312009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
19932
19933 MIPS support.
19934
19935 * bus/bonito.c: New file.
19936 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
19937 GRUB_PCI_NUM_DEVICES.
19938 * term/i386/pc/serial.c: Move to ...
19939 * term/serial.c: ... here. All users updated.
19940 * util/i386/pc/grub-mkimage.c: Move to ...
19941 * util/grub-mkrawimage.c: ... here. All users updated.
19942 * term/i386/pc/at_keyboard.c: Move to ...
19943 * term/at_keyboard.c: ... here. All users updated.
19944 * conf/mips-qemu-mips.rmk: New file.
19945 * conf/mips-yeeloong.rmk: Likewise.
19946 * conf/mips.rmk: Likewise.
19947 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
19948 mipsel-qemu-mips.
19949 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
19950 to port addresses.
19951 (grub_ata_pciinit): Support CS5536.
19952 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
19953 * font/font_cmd.c (loadfont_command): Open file before passing it to
19954 grub_font_load.
19955 (pseudo_file_read): New function.
19956 (pseudo_file_close): Likewise.
19957 (pseudo_fs): New structure.
19958 (load_font_module): New function.
19959 (GRUB_MOD_INIT(font_manager)): Load embedded font.
19960 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
19961 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
19962 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
19963 * include/grub/i386/at_keyboard.h: Split into ...
19964 * include/grub/at_keyboard.h: ... this ...
19965 * include/grub/i386/at_keyboard.h: ... and this.
19966 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
19967 New prototype.
19968 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
19969 updated.
19970 (grub_elf64_size): Likewise.
19971 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
19972 filename.
19973 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
19974 * include/grub/i386/coreboot/serial.h: Rewritten.
19975 * include/grub/i386/ieee1275/serial.h: Include
19976 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
19977 * include/grub/i386/pc/serial.h: Moved from here ...
19978 * include/grub/serial.h: ... to here. All users updated.
19979 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
19980 (GRUB_PCI_NUM_BUS): Likewise.
19981 (GRUB_PCI_NUM_DEVICES): Likewise.
19982 (grub_pci_device_map_range): Add missing volatile keyword.
19983 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
19984 * include/grub/mips/at_keyboard.h: New file.
19985 * include/grub/mips/cache.h: Likewise.
19986 * include/grub/mips/io.h: Likewise.
19987 * include/grub/mips/kernel.h: Likewise.
19988 * include/grub/mips/libgcc.h: Likewise.
19989 * include/grub/mips/pci.h: Likewise.
19990 * include/grub/mips/qemu-mips/boot.h: Likewise.
19991 * include/grub/mips/qemu-mips/kernel.h: Likewise.
19992 * include/grub/mips/qemu-mips/loader.h: Likewise.
19993 * include/grub/mips/qemu-mips/memory.h: Likewise.
19994 * include/grub/mips/qemu-mips/serial.h: Likewise.
19995 * include/grub/mips/qemu-mips/time.h: Likewise.
19996 * include/grub/mips/relocator.h: Likewise.
19997 * include/grub/mips/time.h: Likewise.
19998 * include/grub/mips/types.h: Likewise.
19999 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
20000 * include/grub/mips/yeeloong/boot.h: Likewise.
20001 * include/grub/mips/yeeloong/kernel.h: Likewise.
20002 * include/grub/mips/yeeloong/loader.h: Likewise.
20003 * include/grub/mips/yeeloong/memory.h: Likewise.
20004 * include/grub/mips/yeeloong/pci.h: Likewise.
20005 * include/grub/mips/yeeloong/serial.h: Likewise.
20006 * include/grub/mips/yeeloong/time.h: Likewise.
20007 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
20008 * kern/elf.c (grub_elf32_size): New parameter. All users
20009 updated.
20010 (grub_elf64_size): Likewise.
20011 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
20012 Load modules before saying "Welcome to GRUB!".
20013 Call grub_refresh after saying "Welcome to GRUB!".
20014 * kern/mips/cache.S: New file.
20015 * kern/mips/cache_flush.S: Likewise.
20016 * kern/mips/dl.c: Likewise.
20017 * kern/mips/init.c: Likewise.
20018 * kern/mips/qemu-mips/init.c: Likewise.
20019 * kern/mips/startup.S: Likewise.
20020 * kern/mips/yeeloong/init.c: Likewise.
20021 * kern/term.c (grub_putcode): Handle NULL terminal.
20022 (grub_getcharwidth): Likewise.
20023 (grub_getkey): Likewise.
20024 (grub_checkkey): Likewise.
20025 (grub_getkeystatus): Likewise.
20026 (grub_getxy): Likewise.
20027 (grub_getwh): Likewise.
20028 (grub_gotoxy): Likewise.
20029 (grub_cls): Likewise.
20030 (grub_setcolorstate): Likewise.
20031 (grub_setcolor): Likewise.
20032 (grub_getcolor): Likewise.
20033 (grub_refresh): Likewise.
20034 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
20035 (write_jump): Add hatch nop.
20036 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
20037 * lib/mips/setjmp.S: New file.
20038 * loader/mips/linux.c: Likewise.
20039 * term/i386/pc/at_keyboard.c: Move from here ...
20040 * term/at_keyboard.c: ... to here.
20041 * term/i386/pc/serial.c: Moved from here ...
20042 * term/serial.c: ... to here. All users updated.
20043 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
20044 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
20045 (serial_translate_key_sequence): Avoid deadlock.
20046 (grub_serial_getkey): Handle backspace.
20047 (grub_serial_putchar): Fix newline handling.
20048 * util/i386/pc/grub-mkimage.c: Move from here ...
20049 * util/grub-mkrawimage.c: ... to here. All users updated.
20050 (generate_image): New parameters 'font_path' and 'format'.
20051 Support embedding font.
20052 Use grub_host_to_target* instead of grub_cpu_to_le*.
20053 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
20054 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
20055 (options): New option "--font".
20056 (usage): Likewise.
20057 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
20058 (main): Handle "--font".
20059 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
20060 (grub_virtual_screen_setup): Set bg_color_display.
20061 (redraw_screen_rect): Use bg_color_display instead of incorrect
20062 bg_color.
20063 (grub_gfxterm_cls): Likewise.
20064 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
20065 Support embedding config file.
20066 (add_segments): Likewise.
20067 (options): New option "--config".
20068 (main): Handle "--config".
20069 * video/sm712.c: New file.
20070
25c2b5b3
RM
200712010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20072
20073 Fix parallel builds.
20074
20075 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
20076 font.c depend on ascii.h).
20077
200782010-01-12 Carles Pina i Estany <carles@pina.cat>
20079
20080 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
20081
200822010-01-11 Carles Pina i Estany <carles@pina.cat>
20083
20084 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
20085 By default: disabled.
20086 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
20087 parameter.
20088
200892010-01-10 Carles Pina i Estany <carles@pina.cat>
20090
20091 * font/font.c: Update copyright years.
20092 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
20093
200942010-01-10 Carles Pina i Estany <carles@pina.cat>
20095
20096 * font/font.c: Include `ascii.h'.
20097 (ASCII_BITMAP_SIZE): New macro.
20098 (ascii_font_glyph): Define.
20099 (ascii_glyph_lookup): New function.
20100 (grub_font_get_string_width): Change comment. If glyph not found, use
20101 ascii_glyph_lookup.
20102 (grub_font_get_glyph_with_fallback): If glyph not available returns
20103 ascii_glyph_lookup.
20104 * util/grub-mkfont.c (file_formats): New enum.
20105 (options): Add `ascii-bitmaps' new option.
20106 (usage): Add `asii-bitmaps' new option.
20107 (write_font_ascii_bitmap): New function.
20108 (write_font): Rename to ...
20109 (write_font_p2): ... this. Remove print_glyphs call.
20110 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
20111 used. Call print_glyphs.
20112 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
20113
201142010-01-14 Robert Millan <rmh.grub@aybabtu.com>
20115
20116 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
20117 (grub_bin2h_SOURCES): New variable.
20118 * util/bin2h.c: New file.
20119
915fc1b8
VS
201202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 * include/multiboot.h: Resynced with spec.
20123 * include/multiboot2.h: Likewise.
20124 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
20125 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
20126
9444b678
RM
201272010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20128
20129 * include/grub/term.h (grub_term_register_input,
20130 grub_term_register_output): Check return of terminal init()
20131 routines, and abort if errors are raised.
20132
20133 * commands/terminal.c: Update copyright year.
20134
cba98e8d
RM
201352010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20136
20137 * commands/terminal.c (grub_cmd_terminal_input)
20138 (grub_cmd_terminal_output): Check return of terminal init()
20139 routines, and abort if errors are raised.
20140
6f7db5d6
VS
201412010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
20142
20143 * include/grub/i386/bsd.h: Fix include pathes.
20144
262bff8d
VS
201452010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 Add missing *BSD copyright headers.
20148
20149 * include/grub/aout.h: Add BSD licence.
20150 * include/grub/i386/bsd.h: Parts under different licences moved to ...
20151 * include/grub/i386/freebsd_linker.h: ... here,
20152 * include/grub/i386/freebsd_reboot.h: ... here,
20153 * include/grub/i386/netbsd_bootinfo.h: ... here,
20154 * include/grub/i386/netbsd_reboot.h: ... here,
20155 * include/grub/i386/openbsd_bootarg.h: ... here,
20156 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
20157 licence to each file.
20158
b2cab848
RM
201592010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20160
20161 * acinclude.m4: Remove `nop' assembly instruction; it's not
20162 implemented by all architectures.
20163
2cb6be4b
RM
201642010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20165
20166 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
20167 ELILO. This is no longer necessary.
20168
a2eaee15
BC
201692010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
20170
20171 Added new tool, grub-scrit-check to verify grub.cfg syntax.
20172
20173 * util/grub-script-check.c: grub-script-check tool.
20174 * conf/common.rmk: Make rules for grub-script-check.
20175
88d17012
RM
201762010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20177
20178 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
20179 spotting it back in 2008. Shame on me for forgetting he did.
20180
20181 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
20182
8040619d
RM
201832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
20184
20185 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
20186 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
20187 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
20188 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
20189 (GRUB_VIDEO_TYPE_EFI): Rename to ...
20190 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
20191
a0c2a0f6
RM
201922010-01-17 Robert Millan <rmh.grub@aybabtu.com>
20193
20194 * include/grub/test.h: Add license header.
20195 * tests/example_functional_test.c: Likewise.
20196 * tests/example_unit_test.c: Likewise.
20197 * tests/lib/functional_test.c: Likewise.
20198 * tests/lib/test.c: Likewise.
20199 * tests/lib/unit_test.c: Likewise.
20200
b0b13907
VS
202012010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 Use flag-based instead of hook-based video mode selection and "auto"
20204 keyword.
20205
20206 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
20207 (grub_video_set_mode): Changed prototype. All users updated.
20208 (grub_video_check_mode_flag): New inline function.
20209 * video/video.c (parse_modespec): New function.
20210 (grub_video_set_mode): Parse flags and keywords.
20211
ea379330 202122010-01-17 Carles Pina i Estany <carles@pina.cat>
20213
20214 * util/misc.c (grub_util_info): Fix the order of the parameters in a
20215 fprintf call.
20216
e15c215e
FZ
202172010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
20218
20219 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
20220
409ae1c9 202212010-01-16 Carles Pina i Estany <carles@pina.cat>
20222
20223 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
20224 string.
20225 * util/grub-emu.c (usage): Likewise.
20226 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
20227 * util/i386/efi/grub-mkimage.c (usage): Likewise.
20228 * util/i386/pc/grub-mkimage.c (usage): Likewise.
20229 * util/i386/pc/grub-setup.c (usage): Likewise.
20230
70a14d3d 202312010-01-16 Carles Pina i Estany <carles@pina.cat>
20232
20233 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
20234 the message.
20235 (grub_util_info): Likewise.
20236 (grub_util_error): Likewise.
20237 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
20238 and/or new lines in `grub_util_warna', `grub_util_info',
20239 `grub_util_error' calls.
20240 * util/getroot.c: Likewise.
20241 * util/grub-editenv.c: Likewise.
20242 * util/grub-emu.c: Likewise.
20243 * util/grub-fstest.c: Likewise.
20244 * util/grub-mkdevicemap.c: Likewise.
20245 * util/grub-mkfont.c: Likewise.
20246 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20247 * util/grub-mkrelpath.c: Likewise.
20248 * util/grub-pe2elf.c: Likewise.
20249 * util/grub-probe.c: Likewise.
20250 * util/hostdisk.c: Likewise.
20251 * util/i386/efi/grub-mkimage.c: Likewise.
20252 * util/i386/pc/grub-mkimage.c: Likewise.
20253 * util/i386/pc/grub-setup.c: Likewise.
20254 * util/ieee1275/ofpath.c: Likewise.
20255 * util/mkisofs/eltorito.c: Likewise.
20256 * util/mkisofs/rock.c: Likewise.
20257 * util/mkisofs/write.c: Likewise.
20258 * util/raid.c: Likewise.
20259 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
20260 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20261
a0b766fc
VS
202622010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20263
20264 Enable multiboot on non-pc.
20265
20266 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
20267 multiboot.mod and multiboot2.mod to ...
20268 * conf/i386.rmk (pkglib_MODULES): ... here.
20269 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
20270 Moved to ...
20271 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
20272 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
20273 Moved to ...
20274 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
20275 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
20276 Moved to ...
20277 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
20278 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
20279 Moved to ...
20280 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
20281 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
20282 relocator.mod.
20283 (ata_mod_SOURCES): Removed.
20284 (ata_mod_CFLAGS): Likewise.
20285 (ata_mod_LDFLAGS): Likewise.
20286 (relocator_mod_SOURCES): Removed.
20287 (relocator_mod_CFLAGS): Likewise.
20288 (relocator_mod_ASFLAGS): Likewise.
20289 (relocator_mod_LDFLAGS): Likewise.
20290 Include i386.mk.
20291 * include/grub/x86_64/multiboot.h: New file.
20292 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
20293 Terminate EFI.
20294
884ade56
VS
202952010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20296
20297 Video multiboot support.
20298
20299 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
20300 New prototype.
20301 * include/multiboot.h: Resynced with multiboot specification.
20302 * include/multiboot2.h: Likewise.
20303 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
20304 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
20305 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
20306 (HAS_VGA_TEXT): Likewise.
20307 (accepts_video): New variable.
20308 (grub_multiboot_set_accepts_video): New function.
20309 (grub_multiboot_get_mbi_size): Account for video structures.
20310 (set_video_mode): New function.
20311 (retrieve_video_parameters): Likewise.
20312 (grub_multiboot_make_mbi): Fill video fields.
20313
0d90e8a6
VS
203142010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
20315
20316 Video driver ids.
20317
20318 * include/grub/video.h (grub_video_driver_id): New type.
20319 (grub_video_adapter): New member 'id'. All users updated.
20320 (grub_video_get_driver_id): New proto.
20321 * video/video.c (grub_video_get_driver_id): New function.
20322
5c71db1b 203232010-01-14 Carles Pina i Estany <carles@pina.cat>
20324
20325 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
20326 `var=val'.
20327
cca15b52 203282010-01-14 Carles Pina i Estany <carles@pina.cat>
20329
20330 * normal/cmdline.c (print_completion): Gettextizze.
20331
c586fbb2 203322001-01-14 Carles Pina i Estany <carles@pina.cat>
20333
20334 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
20335
ba2f6848 203362010-01-14 Carles Pina i Estany <carles@pina.cat>
20337
20338 * gettext/gettext.c (grub_gettext_translate): Push and pop
20339 grub_errno.
20340 (grub_gettext_delete_list): Change comment style.
20341 * kern/err.c (grub_error): Gettextizze.
20342 (grub_fatal): Gettextizze.
20343
0a46429a
RM
203442010-01-14 Robert Millan <rmh.grub@aybabtu.com>
20345
20346 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
20347 (grub_linux16_real_boot): ... this.
20348 * kern/i386/loader.S: Likewise.
20349 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
20350 (grub_linux16_boot): New function. Switches to text mode and calls
20351 grub_linux16_real_boot().
20352
20353 * loader/i386/bsd.c: Include `<grub/video.h>'.
20354 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
20355 text mode before calling grub_unix_real_boot().
20356
20357 * loader/i386/multiboot.c: Include `<grub/video.h>'.
20358 (grub_multiboot_boot): Switch to text mode before calling
20359 grub_relocator32_boot().
20360
20361 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
20362 (grub_chainloader_boot): Switch to text mode before calling
20363 grub_chainloader_real_boot().
20364
d6f93a66
RM
203652010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
203662010-01-05 Colin Watson <cjwatson@ubuntu.com>
20367
20368 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
20369 non-empty value.
20370
203712010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
203722010-01-05 Colin Watson <cjwatson@ubuntu.com>
20373
20374 * util/grub.d/00_header.in: Define a "savedefault" function for use
20375 in menu entries.
20376 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
20377
203782010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
203792010-01-05 Colin Watson <cjwatson@ubuntu.com>
20380
20381 * util/grub-mkconfig_lib.in (save_default_entry): Only set
20382 saved_entry if boot_once is unset.
20383 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
20384 previous saved entry (i.e. grub-reboot).
20385
203862009-12-08 Colin Watson <cjwatson@ubuntu.com>
20387
20388 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
20389
203902009-12-08 Colin Watson <cjwatson@ubuntu.com>
20391
20392 * util/grub.d/00_header.in: Use `set var=val' rather than plain
20393 `var=val'.
20394 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
20395
203962009-12-08 Colin Watson <cjwatson@ubuntu.com>
20397
20398 * util/grub-reboot.in: Fix --version output.
20399 * util/grub-set-default.in: Likewise.
20400
204012009-12-08 Colin Watson <cjwatson@ubuntu.com>
20402
20403 * util/grub.d/00_header.in: Silently ignore zero-sized environment
20404 blocks.
20405
204062009-12-08 Colin Watson <cjwatson@ubuntu.com>
20407
20408 * util/grub.d/00_header.in: Quote the value assigned to `default',
20409 in case it contains spaces.
20410
204112009-12-08 Colin Watson <cjwatson@ubuntu.com>
20412
20413 * util/grub.d/30_os-prober.in: Fix merge error that moved a
20414 `save_default_entry' call from the macosx case to the linux case.
20415
204162009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
204172009-10-25 Colin Watson <cjwatson@ubuntu.com>
20418
20419 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
20420 in `chosen' environment variable.
20421 * normal/menu_text.c (get_entry_number): Check if the variable
20422 matches the title of a menu entry.
20423 (run_menu): Pass menu to get_entry_number.
20424
20425 * util/grub-reboot.in: New file.
20426 * util/grub-set-default.in: New file.
20427 * conf/common.rmk (grub-reboot): New utility.
20428 (grub-set-default): New utility.
20429
20430 * util/grub-mkconfig_lib.in (save_default_entry): New function.
20431 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
20432 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
20433 move it to `saved_entry' for the next boot. Load environment on
20434 initialisation.
20435 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
20436 * util/grub.d/10_hurd.in: Likewise.
20437 * util/grub.d/10_linux.in (linux_entry): Likewise.
20438 * util/grub.d/10_windows.in: Likewise.
20439 * util/grub.d/30_os-prober.in: Likewise.
20440
20441 * util/grub-install.in: Create environment block.
20442 * util/i386/efi/grub-install.in: Likewise.
20443 * util/ieee1275/grub-install.in: Likewise.
20444 * util/sparc64/ieee1275/grub-install.in: Likewise.
20445
0934d184
BC
204462010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
20447
20448 Unit testing framework for GRUB.
20449
20450 * Makefile.in: Test framework build rules for 'make check'.
20451 * conf/tests.rmk: Build rules for individual tests and framework.
20452
20453 * include/grub/test.h: Header file for whitebox tests.
20454 * tests/lib/functional_test.c: Framework support for whitebox
20455 functional tests.
20456 * tests/lib/test.c: Common whitebox testing code for unit and
20457 functional tests.
20458 * tests/lib/unit_test.c: Framework support for whitebox unit
20459 tests.
20460
20461 * tests/util/grub-shell-tester.in: Support utility for grub-script
20462 tests.
20463 * tests/util/grub-shell.in: Utility to execute grub-script
20464 commands in a Qemu instance.
20465
20466 * tests/example_functional_test.c: Example whitebox functional
20467 test.
20468 * tests/example_grub_script_test.in: Example grub-script test.
20469 * tests/example_scripted_test.in: Example scripted test.
20470 * tests/example_unit_test.c: Example whitebox unit test.
20471
9c4ffeeb
VS
204722010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
20475 Add loader/i386/multiboot_mbi.c.
20476 (multiboot2_mod_SOURCES): Likewise.
20477 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
20478 (multiboot2_mod_SOURCES): Likewise.
20479 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
20480 (grub_multiboot_make_mbi): Likewise.
20481 (grub_multiboot_free_mbi): Likewise.
20482 (grub_multiboot_init_mbi): Likewise.
20483 (grub_multiboot_add_module): Likewise.
20484 (grub_multiboot_set_bootdev): Likewise.
20485 * loader/i386/multiboot.c (mbi): Removed.
20486 (mbi_dest): Likewise.
20487 (alloc_mbi): New variable.
20488 (grub_multiboot_payload_size): Removed. All users updated.
20489 (grub_multiboot_pure_size): New variable.
20490 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
20491 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
20492 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
20493 (grub_fill_multiboot_mmap): Likewise.
20494 (grub_multiboot_get_bootdev): Likewise.
20495 (grub_multiboot): Use multiboot_mbi functions.
20496 * loader/i386/multiboot_mbi.c: New file.
20497
17383dfe
VS
204982010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
20501 it would result in module crash.
20502
c1f28820
VS
205032010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
20504
20505 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
20506 (grub_ofconsole_getwh): Split to ...
20507 (grub_ofconsole_getwh): ... this.
20508 (grub_ofconsole_dimensions): ...and this.
20509 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
20510
58655a16
RM
205112010-01-13 Robert Millan <rmh.grub@aybabtu.com>
20512
20513 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
20514
10891398
VS
205152010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20516
20517 * loader/i386/pc/multiboot2.c: Removed stalled file.
20518
0b8a223c
VS
205192010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
20520
20521 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
20522 Reported by: Grégoire Sutre
20523
92ab12b0
RM
205242010-01-11 Robert Millan <rmh.grub@aybabtu.com>
20525
20526 * util/misc.c (canonicalize_file_name): New function.
20527 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
20528 instead of realpath().
20529
a788afb6
CW
205302010-01-11 Colin Watson <cjwatson@ubuntu.com>
20531
20532 * util/grub-install.in (usage): Clarify meaning of --root-directory,
20533 and make it clearer that it's optional. Based on confusion
20534 witnessed on IRC.
20535
ffa8e3d2
VS
205362010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20537
20538 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
20539 in premature implicit newline.
20540
e9060a9d
VS
205412010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
20544 which resulted in garbled command line at the end of screen.
20545
f0d0c0b7
RM
205462010-01-10 Robert Millan <rmh.grub@aybabtu.com>
20547
20548 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
20549 initialization with similar approach as with other Linux loaders.
20550
0e60bae7
RM
205512010-01-10 Robert Millan <rmh.grub@aybabtu.com>
20552
20553 Fix i386-ieee1275 build.
20554
20555 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
20556 and grub_term_height() for video_{width,height} initialization.
20557
205582010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
20559
20560 Fix grub-emu build.
20561
20562 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
20563
cdb3f378
RM
205642010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
205652010-01-09 Robert Millan <rmh.grub@aybabtu.com>
20566
20567 Support for multiple terminals.
20568
20569 * Makefile.in (pkglib_DATA): terminal.lst.
20570 (terminal.lst): New target.
20571 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
20572 (GRUB_MOD_INIT(handler)): Likewise.
20573 (GRUB_MOD_FINI(handler)): Likewise.
20574 * commands/help.c (grub_cmd_help): Handle multiple terminals.
20575 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
20576 * commands/sleep.c (do_print): Use grub_term_restore_pos.
20577 (grub_cmd_sleep): Use grub_term_save_pos.
20578 * commands/terminal.c: New file.
20579 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
20580 commands/terminal.c and lib/charset.c.
20581 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
20582 (pkglib_MODULES): Add terminal.mod.
20583 (terminal_mod_SOURCES): New variable.
20584 (terminal_mod_CFLAGS): Likewise.
20585 (terminal_mod_LDFLAGS): Likewise.
20586 * genhandlerlist.sh: Don't handle terminals.
20587 * genmk.rb: Generate terminal-*.lst.
20588 * genterminallist.sh: New file.
20589 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
20590 (grub_is_valid_utf8): Likewise.
20591 (grub_utf8_to_ucs4_alloc): Likewise.
20592 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
20593 (grub_menu_register_viewer): Changed argument.
20594 (grub_menu_try_text): New proto.
20595 (grub_gfxmenu_try_hook): New declaration.
20596 * include/grub/normal.h (grub_normal_exit_level): New declaration.
20597 (grub_menu_init_page): Additional argument term.
20598 (grub_normal_init_page): Likewise.
20599 (grub_cmdline_get): Arguments simplified.
20600 (grub_utf8_to_ucs4_alloc): Removed.
20601 (grub_print_ucs4): Additional argument term.
20602 (grub_getstringwidth): Likewise.
20603 (grub_print_message_indented): Likewise.
20604 (grub_menu_text_register_instances): New proto.
20605 (grub_show_menu): Likewise.
20606 (read_terminal_list): Likewise.
20607 (grub_set_more): Likewise.
20608 * include/grub/parser.h: Include handler.h.
20609 * include/grub/reader.h: Rewritten.
20610 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
20611 (GRUB_TERM_WIDTH): Changed to function.
20612 (GRUB_TERM_HEIGHT): Likewise.
20613 (GRUB_TERM_BORDER_WIDTH): Likewise.
20614 (GRUB_TERM_BORDER_HEIGHT): Likewise.
20615 (GRUB_TERM_NUM_ENTRIES): Likewise.
20616 (GRUB_TERM_ENTRY_WIDTH): Likewise.
20617 (GRUB_TERM_CURSOR_X): Likewise.
20618 (grub_term_input_class): Likewise.
20619 (grub_term_output_class): Likewise.
20620 (grub_term_outputs_disabled): New declaration.
20621 (grub_term_inputs_disabled): Likewise.
20622 (grub_term_outputs): Likewise.
20623 (grub_term_inputs): Likewise.
20624 (grub_term_register_input): Rewritten.
20625 (grub_term_register_output): Likewise.
20626 (grub_term_unregister_input): Likewise.
20627 (grub_term_unregister_output): Likewise.
20628 (FOR_ACTIVE_TERM_INPUTS): New macro.
20629 (FOR_DISABLED_TERM_INPUTS): Likewise.
20630 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20631 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20632 * include/grub/terminfo.h: Add oterm argument to all protypes.
20633 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
20634 Use grub_rescue_run.
20635 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
20636 All users updated.
20637 * kern/reader.c: Removed. All users updated.
20638 * kern/rescue_reader.c (grub_rescue_init): Removed.
20639 (grub_rescue_reader): Likewise.
20640 (grub_register_rescue_reader): Likewise.
20641 (grub_rescue_run): New function based on kern/reader.c.
20642 * kern/term.c: Adapted for multiterm.
20643 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
20644 (grub_is_valid_utf8): Likewise.
20645 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
20646 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
20647 right terminal.
20648 * loader/i386/linux.c (grub_linux_boot): Likewise.
20649 * normal/auth.c (grub_username_get): New function.
20650 (grub_auth_check_authentication): Use grub_username_get.
20651 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
20652 * normal/color.c: Adapt for multiterm.
20653 * normal/main.c (read_config_file): Don't use grub_reader_loop.
20654 (grub_normal_init_page): Additional argument term.
20655 (read_lists): Call read_terminal_lists.
20656 (grub_enter_normal_mode): Call grub_cmdline_run.
20657 Handle grub_normal_exit_level.
20658 (grub_cmd_normal): Make reentrant.
20659 (grub_cmd_normal_exit): New function.
20660 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
20661 * normal/menu.c: Adapt for multiterm.
20662 * normal/menu_entry.c: Likewise.
20663 * normal/menu_text.c: Likewise.
20664 * normal/menu_viewer.c: Removed. All users updated.
20665 * normal/term.c: New file.
20666 * util/console.c: Change order of includes to workaround a bug in
20667 ncurses headers.
20668 * term/terminfo.c: New argument oterm on all exported functions.
20669 All users updated.
20670 * util/grub-editenv.c (grub_term_input_class): Removed.
20671 (grub_term_output_class): Likewise.
20672
1a064917
RM
206732010-01-09 Robert Millan <rmh.grub@aybabtu.com>
20674
20675 Make loader output a bit more user-friendly.
20676
20677 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
20678 is being loaded. Likewise for the Hurd.
20679
20680 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
20681 that kernel of FreeBSD ${version} is being loaded.
20682
20683 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
20684 grub_dprintf().
20685 (grub_cmd_initrd): Likewise.
20686 * util/grub.d/10_linux.in (linux_entry): Print message indicating
20687 that Linux ${version} is being loaded. Likewise for initrd.
20688
5ce0a83a 206892010-01-09 Carles Pina i Estany <carles@pina.cat>
20690
20691 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
20692
809bbfeb 206932010-01-08 Carles Pina i Estany <carles@pina.cat>
20694
20695 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
20696 (GRUB_MOD_INIT): Gettextizze.
20697 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
20698 (GRUB_MOD_INIT): Gettextizze.
20699 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
20700 (grub_cmd_linux): Capitalise Linux.
20701 (GRUB_MOD_INIT): Gettextizze.
20702 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
20703 (grub_cmd_linux): Capitalise Linux.
20704 (GRUB_MOD_INIT): Gettextizze.
20705 * loader/i386/linux.c: Include `<grub/i18n.h>'.
20706 (grub_cmd_linux): Capitalise Linux.
20707 (GRUB_MOD_INIT): Gettextizze.
20708 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
20709 (GRUB_MOD_INIT): Gettextizze.
20710 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
20711 (grub_cmd_linux): Capitalise Linux.
20712 (GRUB_MOD_INIT): Gettextizze.
20713 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
20714 (grub_cpu_xnu_init): Gettextizze.
20715 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
20716 (GRUB_MOD_INIT): Gettextizze.
20717 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
20718 (GRUB_MOD_INIT): Gettextizze.
20719 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
20720 (grub_linux_load64): Capitalise Linux.
20721 (GRUB_MOD_INIT): Gettextizze.
20722 * loader/xnu.c: Include `<grub/i18n.h>'.
20723 (GRUB_MOD_INIT): Gettextizze.
20724 * po/POTFILES: Add `loader/efi/appleloader.c',
20725 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
20726 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
20727 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
20728 `loader/i386/xnu.c', `loader/multiboot_loader.c',
20729 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
20730 and `loader/xnu.c'.
20731
b394b2ca
RM
207322010-01-08 Robert Millan <rmh.grub@aybabtu.com>
20733
20734 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
20735
207362010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
20737
20738 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
20739 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
20740 * util/mkisofs/mkisofs.c (main): Readjust --version output.
20741
bc8b32b3
RM
207422010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20743
20744 Reset Multiboot 2 support. New loader implements the draft in
20745 /branches/multiboot2 and shares as much code as possible with the
20746 production Multiboot 1 implementation.
20747
20748 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
20749 * loader/multiboot2.c: Likewise.
20750 * loader/i386/multiboot_helper.S: Likewise.
20751 * include/multiboot2.h: Replace with latest version from the draft
20752 in /branches/multiboot2.
20753
20754 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
20755 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
20756 and `loader/multiboot2.c'.
20757 (pkglib_MODULES): Add `multiboot2.mod'.
20758 (multiboot2_mod_SOURCES): New variable.
20759 (multiboot2_mod_LDFLAGS): Likewise.
20760 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
20761
20762 * conf/i386-pc.rmk: Likewise.
20763
20764 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20765 (multiboot_mod_SOURCES): Remove variable.
20766 (multiboot_mod_LDFLAGS): Likewise.
20767 (multiboot_mod_CFLAGS): Likewise.
20768
20769 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
20770 `<multiboot2.h>' instead of `<multiboot.h>'.
20771 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
20772 (MULTIBOOT_HEADER_MAGIC): New macros.
20773
20774 * loader/multiboot_loader.c (module_version_status): Remove variable.
20775 (find_multi_boot2_header): Remove function.
20776 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
20777 logic. Always check for the Multiboot version we're compiling for.
20778 (grub_cmd_module_loader): Likewise.
20779 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
20780 command instead of `multiboot'.
20781
5d2c52b8
RM
207822010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20783
20784 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
20785 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
20786 all users.
20787
53108d92
RM
207882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
207892010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20790
20791 Fix breakage introduced with previous commit.
20792
20793 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
20794 commands.
20795 * normal/handler.c (read_handler_list): Revert part of previous commit
20796 affecting this file.
20797 * normal/main.c (read_lists): Move read_handler_list() call back to ...
20798 (grub_normal_execute): ... here.
20799
e2e936b2
RM
208002010-01-07 Robert Millan <rmh.grub@aybabtu.com>
20801
20802 Merge prefix-redefinition-fix branch.
20803
20804 * normal/autofs.c (read_fs_list): Make function capable of being
20805 run multiple times, gracefuly replacing the previous data
20806 structures.
20807 * normal/dyncmd.c (read_command_list): Likewise.
20808 * normal/handler.c (read_handler_list): Likewise.
20809 * normal/main.c (read_lists): New function. Calls all the
20810 list reading functions.
20811 (grub_normal_execute): Use read_lists() instead of calling all
20812 list reading functions explicitly. Register read_lists() as a
20813 variable hook attached to ${prefix}.
20814
607a3701
VS
208152010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
20816
20817 Merge crypto branch.
20818
20819 * Makefile.in (pkglib_DATA): Add crypto.lst.
20820 (crypto.lst): New target.
20821 * commands/hashsum.c: New file.
20822 * commands/password.c (check_password): Use grub_crypto_memcmp.
20823 * commands/password_pbkdf2.c: New file.
20824 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
20825 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
20826 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
20827 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
20828 -I$(srcdir)/lib/libgcrypt_wrap.
20829 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
20830 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
20831 password_pbkdf2.mod.
20832 (crypto_mod_SOURCES): New variable.
20833 (crypto_mod_CFLAGS): Likewise.
20834 (crypto_mod_LDFLAGS): Likewise.
20835 (hashsum_mod_SOURCES): New variable.
20836 (hashsum_mod_CFLAGS): Likewise.
20837 (hashsum_mod_LDFLAGS): Likewise.
20838 (pbkdf2_mod_SOURCES): New variable.
20839 (pbkdf2_mod_CFLAGS): Likewise.
20840 (pbkdf2_mod_LDFLAGS): Likewise.
20841 (password_pbkdf2_mod_SOURCES): New variable.
20842 (password_pbkdf2_mod_CFLAGS): Likewise.
20843 (password_pbkdf2_mod_LDFLAGS): Likewise.
20844 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
20845 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
20846 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
20847 Include conf/gcry.rmk.
20848 * include/grub/auth.h: Rewritten.
20849 * include/grub/crypto.h: New file.
20850 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
20851 * include/grub/normal.h (read_crypto_list): New prototype.
20852 * lib/crypto.c: New file.
20853 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
20854 * lib/pbkdf2.c: Likewise.
20855 * normal/auth.c (grub_auth_strcmp): Removed.
20856 (grub_iswordseparator): Likewise.
20857 (grub_auth_strword): Likewise.
20858 (is_authenticated): Use grub_strword.
20859 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
20860 and grub_strword. Pass entered password to authentication callback.
20861 * normal/crypto.c: New file.
20862 * normal/main.c: Call read_crypto_list.
20863 * util/grub-mkpasswd-pbkdf2.c: New file.
20864 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
20865
42841caa
VS
208662010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 Fix descent and ascent calculation.
20869
20870 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
20871 (options): New option "asce".
20872 (usage): Likewise.
20873 (add_char): Ignore invalid glyphs for descent calculation.
20874 Calculate ascent from actual content.
20875 (print_glyphs): Use 'asce'.
20876 (write_font): Likewise. Allow ascent override.
20877 (main): Handle "asce" option.
20878
e7730de7 208792010-01-06 Carles Pina i Estany <carles@pina.cat>
20880
20881 * kern/err.c: Include `<grub/i18n.h>'.
20882 (grub_print_error): Add full stop. Gettextizze.
20883 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
20884 (grub_bsd_load_elf): Capitalise ELF.
20885 (grub_cmd_freebsd_loadenv): Add `s' in error string.
20886 (grub_cmd_freebsd_module): Likewise.
20887 (grub_cmd_freebsd_module_elf): Likewise.
20888 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
20889
40e3a41f 208902010-01-06 Carles Pina i Estany <carles@pina.cat>
20891
20892 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
20893 * commands/search_file.c (HELP_MESSAGE): New macro.
20894 * commands/search_label.c (HELP_MESSAGE): Likewise.
20895 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
20896 * po/POTFILES: Add `commands/search_file.c',
20897 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
20898 `commands/search.c'.
20899
83507e68
RM
209002010-01-05 Robert Millan <rmh.grub@aybabtu.com>
20901
20902 * config.rpath: Update from Gnulib.
20903
465c787b
YB
209042010-01-05 Yves Blusseau <blusseau@zetam.org>
20905
20906 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
20907
6581dd3a
YB
209082010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
20909
20910 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
20911
3bff18c5
CW
209122010-01-05 Colin Watson <cjwatson@ubuntu.com>
20913
20914 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
20915 arguments to fread so that we get a return value in bytes, rather
20916 than something that will normally be rounded down to 0.
20917 Adjust error handling to avoid producing garbage when size_t is not
20918 the same size as long long.
20919
a1368118
CW
209202010-01-05 Colin Watson <cjwatson@ubuntu.com>
20921
20922 * util/mkisofs/write.c (padblock_write): Check return value of
20923 fread.
20924
7c302978
RM
209252010-01-05 Robert Millan <rmh.grub@aybabtu.com>
20926
20927 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
20928 floppy images now.
20929
20930 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
20931
e33ace06
RM
209322010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20933
20934 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
20935 instead of manual alignment.
20936 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
20937 verbose). Avoid attempts to read past end of the device
20938 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
20939 but GRUB_DISK_CACHE_SIZE may exceed that).
20940
4b856776
RM
209412010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20942
20943 * commands/crc.c (grub_cmd_crc): Abort on read errors.
20944 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
20945 it to upper layer.
20946
52c2d97f
VS
209472010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
20950 New constant.
20951 (grub_efi_piwg_device_path): New structure
20952 (grub_efi_piwg_device_path_t): New type.
20953 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
20954 (devpath_1): Transform to a structure. All users updated.
20955 (devpath_2): Likewise.
20956 (devpath_3): Likewise.
20957 (devpath_4): Likewise.
20958 (devpath_5): Likewise.
20959
98ff6a54
VS
209602010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 * loader/efi/appleloader.c: Restored. Update all users.
20963
3a73dcb6
RM
209642010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20965
20966 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
20967
20968 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
20969 (struct boot_blocklist): Move from here ...
20970 * include/grub/i386/pc/boot.h [ASM_FILE]
20971 (struct grub_boot_blocklist): ... to here. Update all users.
20972 (setup): Only initialize `start' member of `first_block'
20973 structure. Add assert() calls to verify the other members.
20974
20975 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
20976 (generate_image): Fix broken blocklist length initialization.
20977 Add assert() call to verify blocklist `segment' field.
20978
ab0eeb0c
RM
209792010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20980
20981 * loader/efi/appleloader.c: Remove. Update all users.
20982
58bc8bd5
RM
209832010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20984
20985 * boot/i386/pc/boot.S: Update copyright year.
20986 * boot/i386/pc/cdboot.S: Likewise.
20987 * boot/i386/pc/diskboot.S: Likewise.
20988 * boot/i386/pc/lnxboot.S: Likewise.
20989 * boot/i386/pc/pxeboot.S: Likewise.
20990 * bus/pci.c: Likewise.
20991 * commands/cmp.c: Likewise.
20992 * commands/help.c: Likewise.
20993 * commands/hexdump.c: Likewise.
20994 * commands/i386/pc/halt.c: Likewise.
20995 * commands/i386/pc/play.c: Likewise.
20996 * commands/i386/pc/vbeinfo.c: Likewise.
20997 * commands/ls.c: Likewise.
20998 * commands/test.c: Likewise.
20999 * disk/dmraid_nvidia.c: Likewise.
21000 * disk/i386/pc/biosdisk.c: Likewise.
21001 * disk/ieee1275/nand.c: Likewise.
21002 * disk/ieee1275/ofdisk.c: Likewise.
21003 * disk/lvm.c: Likewise.
21004 * disk/raid.c: Likewise.
21005 * disk/raid6_recover.c: Likewise.
21006 * disk/scsi.c: Likewise.
21007 * fs/affs.c: Likewise.
21008 * fs/cpio.c: Likewise.
21009 * fs/ext2.c: Likewise.
21010 * fs/hfs.c: Likewise.
21011 * fs/iso9660.c: Likewise.
21012 * fs/ntfs.c: Likewise.
21013 * fs/sfs.c: Likewise.
21014 * fs/udf.c: Likewise.
21015 * fs/ufs.c: Likewise.
21016 * fs/xfs.c: Likewise.
21017 * gencmdlist.sh: Likewise.
21018 * genmk.rb: Likewise.
21019 * include/grub/disk.h: Likewise.
21020 * include/grub/efi/api.h: Likewise.
21021 * include/grub/efi/efi.h: Likewise.
21022 * include/grub/efi/pe32.h: Likewise.
21023 * include/grub/elf.h: Likewise.
21024 * include/grub/fs.h: Likewise.
21025 * include/grub/i386/at_keyboard.h: Likewise.
21026 * include/grub/i386/pc/memory.h: Likewise.
21027 * include/grub/i386/pc/vbe.h: Likewise.
21028 * include/grub/i386/pci.h: Likewise.
21029 * include/grub/i386/tsc.h: Likewise.
21030 * include/grub/ieee1275/ieee1275.h: Likewise.
21031 * include/grub/ntfs.h: Likewise.
21032 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21033 * include/grub/sparc64/libgcc.h: Likewise.
21034 * include/grub/symbol.h: Likewise.
21035 * include/grub/types.h: Likewise.
21036 * include/multiboot2.h: Likewise.
21037 * io/gzio.c: Likewise.
21038 * kern/device.c: Likewise.
21039 * kern/disk.c: Likewise.
21040 * kern/efi/efi.c: Likewise.
21041 * kern/efi/mm.c: Likewise.
21042 * kern/elf.c: Likewise.
21043 * kern/file.c: Likewise.
21044 * kern/i386/dl.c: Likewise.
21045 * kern/i386/pc/init.c: Likewise.
21046 * kern/i386/pc/startup.S: Likewise.
21047 * kern/ieee1275/ieee1275.c: Likewise.
21048 * kern/ieee1275/init.c: Likewise.
21049 * kern/main.c: Likewise.
21050 * kern/mm.c: Likewise.
21051 * kern/powerpc/dl.c: Likewise.
21052 * kern/sparc64/dl.c: Likewise.
21053 * kern/x86_64/dl.c: Likewise.
21054 * lib/hexdump.c: Likewise.
21055 * loader/efi/appleloader.c: Likewise.
21056 * loader/i386/ieee1275/linux.c: Likewise.
21057 * loader/i386/pc/chainloader.c: Likewise.
21058 * loader/i386/pc/linux.c: Likewise.
21059 * loader/i386/pc/multiboot2.c: Likewise.
21060 * loader/ieee1275/multiboot2.c: Likewise.
21061 * loader/multiboot2.c: Likewise.
21062 * loader/multiboot_loader.c: Likewise.
21063 * loader/powerpc/ieee1275/linux.c: Likewise.
21064 * normal/completion.c: Likewise.
21065 * normal/menu_entry.c: Likewise.
21066 * partmap/apple.c: Likewise.
21067 * util/grub.d/10_hurd.in: Likewise.
21068 * util/hostfs.c: Likewise.
21069 * video/readers/png.c: Likewise.
21070
e2d70b5c
CW
210712010-01-03 Colin Watson <cjwatson@ubuntu.com>
21072
21073 * include/grub/misc.h (GNUC_PREREQ): New macro.
21074 (ATTRIBUTE_ERROR): New macro.
21075 * include/grub/list.h (grub_bad_type_cast_real): Use
21076 ATTRIBUTE_ERROR.
21077
a173283f 210782010-01-03 Carles Pina i Estany <carles@pina.cat>
21079
21080 * normal/menu_text.c (print_message): Change messages.
21081
7fa7ff74 210822010-01-03 Carles Pina i Estany <carles@pina.cat>
21083
21084 * normal/menu_entry.c (store_completion): Gettextizze.
21085
136d24f6 210862010-01-03 Carles Pina i Estany <carles@pina.cat>
21087
21088 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
21089
f936862e 210902010-01-03 Carles Pina i Estany <carles@pina.cat>
21091
21092 * po/POTFILES: Sort correctly.
21093
29c44ad1 210942010-01-03 Carles Pina i Estany <carles@pina.cat>
21095
21096 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
21097 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
21098 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
21099 full stop.
21100 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
21101 summary. Gettextizze the strings.
21102 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
21103 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
21104 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
21105 full stop.
21106 (GRUB_MOD_INIT): Remove command name from summary.
21107 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
21108 summary.
21109 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
21110 * term/i386/pc/serial.c (options): Add full stops.
21111 (GRUB_MOD_INIT): Remove command name from the summary.
21112
77a79592 211132010-01-03 Carles Pina i Estany <carles@pina.cat>
21114
21115 * commands/acpi.c: Gettextizze help strings and/or options. Include
21116 `grub/i18n.h' if needed.
21117 * commands/blocklist.c: Likewise.
21118 * commands/boot.c: Likewise.
21119 * commands/cat.c: Likewise.
21120 * commands/cmp.c: Likewise.
21121 * commands/configfile.c: Likewise.
21122 * commands/crc.c: Likewise.
21123 * commands/date.c: Likewise.
21124 * commands/echo.c: Likewise.
21125 * commands/efi/fixvideo.c: Likewise.
21126 * commands/efi/loadbios.c: Likewise.
21127 * commands/gptsync.c: Likewise.
21128 * commands/halt.c: Likewise.
21129 * commands/handler.c: Likewise.
21130 * commands/hdparm.c: Likewise.
21131 * commands/hexdump.c: Likewise.
21132 * commands/i386/cpuid.c: Likewise.
21133 * commands/i386/pc/drivemap.c: Likewise.
21134 * commands/i386/pc/halt.c: Likewise.
21135 * commands/i386/pc/pxecmd.c: Likewise.
21136 * commands/i386/pc/vbeinfo.c: Likewise.
21137 * commands/i386/pc/vbetest.c: Likewise.
21138 * commands/ieee1275/suspend.c: Likewise.
21139 * commands/keystatus.c: Likewise.
21140 * commands/loadenv.c: Likewise.
21141 * commands/ls.c: Likewise.
21142 * commands/lsmmap.c: Likewise.
21143 * commands/lspci.c: Likewise.
21144 * commands/memrw.c: Likewise.
21145 * commands/minicmd.c: Likewise.
21146 * commands/parttool.c: Likewise.
21147 * commands/password.c: Likewise.
21148 * commands/probe.c: Likewise.
21149 * commands/read.c: Likewise.
21150 * commands/reboot.c: Likewise.
21151 * commands/search.c: Likewise.
21152 * commands/sleep.c: Likewise.
21153 * commands/test.c: Likewise.
21154 * commands/true.c: Likewise.
21155 * commands/usbtest.c: Likewise.
21156 * commands/videotest.c: Likewise.
21157 * commands/xnu_uuid.c: Likewise.
21158 * disk/loopback.c: Likewise.
21159 * hello/hello.c: Likewise.
21160 * loader/i386/bsd.c: Likewise.
21161 * term/i386/pc/serial.c: Likewise.
21162 * po/POTFILES: Add new files.
21163
da8d5c53
CW
211642010-01-02 Colin Watson <cjwatson@ubuntu.com>
21165
21166 * term/i386/pc/at_keyboard.c
21167 (keyboard_controller_wait_untill_ready): Rename to ...
21168 (keyboard_controller_wait_until_ready): ... this. Update all users.
21169
33937904 211702010-01-01 Carles Pina i Estany <carles@pina.cat>
21171
21172 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
21173 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
21174 string using string width.
21175 * normal/menu_text.c (grub_print_message_indented): Use
21176 grub_print_spaces and not print_spaces.
21177 (print_timeout): Likewise.
21178 (print_spaces): Move to...
21179 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
21180
3fd3b8d8
RM
211812010-01-01 Robert Millan <rmh.grub@aybabtu.com>
21182
21183 Import from Gnulib.
21184
21185 * gnulib/getdelim.c: New file.
21186 * gnulib/getline.c: Likewise.
21187
33433555
VS
211882009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
21189
21190 * include/grub/list.h (grub_assert_fail): Removed.
21191 (grub_bad_type_cast_real): New function.
21192 (grub_bad_type_cast): New macro.
21193 (GRUB_AS_LIST): Use grub_bad_type_cast.
21194 (GRUB_AS_LIST_P): Likewise.
e44721e8 21195 (GRUB_AS_NAMED_LIST): Likewise.
33433555 21196 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 21197 (GRUB_AS_PRIO_LIST): Likewise.
33433555 21198 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 21199 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 21200
f5a51306
VS
212012009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
21204 Fix syntax error.
21205
90d1e879
RM
212062009-12-29 Robert Millan <rmh.grub@aybabtu.com>
21207
21208 * configure.ac: Check for TARGET_CFLAGS initialization before we
21209 initialize it ourselves (sigh).
21210 Move a few modifications to TARGET_CFLAGS to be unconditional
21211 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
21212 eh_frame)
21213
21214 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
21215 * term/i386/pc/at_keyboard.c
21216 (keyboard_controller_wait_untill_ready): Likewise.
21217 (keyboard_controller_led): Rename `led_status' paramter to avoid
21218 name conflict.
21219
465b5a81 212202009-12-28 Carles Pina i Estany <carles@pina.cat>
21221
21222 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
21223 quotes.
21224
c181849b
VS
212252009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
21228
9c8739a4
VS
212292009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21230
21231 * normal/menu_text.c (grub_print_message_indented): Prevent
21232 past-the-end-of-array dereference.
21233
3e74249c
VS
212342009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21235
21236 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
21237 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
21238
64fd18ed 212392009-12-27 Carles Pina i Estany <carles@pina.cat>
21240
21241 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
21242 * normal/main.c (grub_normal_read_line): Remove a space from the
21243 default prompt.
21244
714af9b9 212452009-12-27 Carles Pina i Estany <carles@pina.cat>
21246
21247 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
21248 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21249 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
21250 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
21251 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21252 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21253 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21254
82f3e412 212552009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 21256
21257 * video/readers/jpeg.c (cmd): Declare.
21258 (grub_cmd_jpegtest): Use `grub_command_t' type.
21259 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21260 Assign to `cmd'.
21261 (GRUB_MOD_FINI): Use `cmd' to unregister.
21262 * video/readers/png.c (cmd): Declare.
21263 (grub_cmd_pngtest): Use `grub_command_t' type.
21264 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21265 Assign to `cmd'.
21266 (GRUB_MOD_FINI): Use `cmd' to unregister.
21267 * video/readers/tga.c (cmd): Declare.
21268 (grub_cmd_tgatest): Use `grub_command_t' type.
21269 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
21270 Assign to `cmd'.
21271 (GRUB_MOD_FINI): Use `cmd' to unregister.
21272
82f3e412 212732009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 21274
21275 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
21276 stops.
21277 * kern/corecmd.c (grub_register_core_commands): Likewise.
21278 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
21279 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
21280 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
21281 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21282 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
21283 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
21284 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
21285 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
21286 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21287 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
21288 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21289 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21290 * normal/handler.c (insert_handler): Likewise.
21291 * normal/main.c (GRUB_MOD_INIT): Likewise.
21292 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21293
fdcdbb66 212942009-12-26 Carles Pina i Estany <carles@pina.cat>
21295
21296 * commands/help.c (grub_cmd_help): Print the command name before the
21297 summary.
21298 (GRUB_MOD_INIT): Remove command name from the summary.
21299 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 21300 string as summary.
fdcdbb66 21301 * lib/arg.c (find_long): Print the command name before the summary.
21302 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
21303 summary.
21304 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
21305 * commands/cat.c (GRUB_MOD_INIT): Likewise.
21306 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
21307 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
21308 * commands/crc.c (GRUB_MOD_INIT): Likewise.
21309 * commands/date.c (GRUB_MOD_INIT): Likewise.
21310 * commands/echo.c (GRUB_MOD_INIT): Likewise.
21311 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
21312 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
21313 * commands/handler.c (GRUB_MOD_INIT): Likewise.
21314 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
21315 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
21316 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
21317 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
21318 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
21319 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
21320 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
21321 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
21322 * commands/ls.c (GRUB_MOD_INIT): Likewise.
21323 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
21324 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
21325 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
21326 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
21327 * commands/password.c (GRUB_MOD_INIT): Likewise.
21328 * commands/probe.c (GRUB_MOD_INIT): Likewise.
21329 * commands/read.c (GRUB_MOD_INIT): Likewise.
21330 * commands/search.c (GRUB_MOD_INIT): Likewise.
21331 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
21332 * commands/test.c (GRUB_MOD_INIT): Likewise.
21333 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
21334 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21335 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21336 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
21337 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21338 * lib/arg.c (GRUB_MOD_INIT): Likewise.
21339 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
21340 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
21341 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
21342 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21343 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21344 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
21345 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
21346 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
21347
9c288be2
VS
213482009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 Use search command for preliminar UUID search.
21351
21352 * commands/search.c: Split into ...
21353 * commands/search_wrap.c: ...this
21354 * commands/search.c: ...and this.
21355 * commands/search_file.c: New file.
21356 * commands/search_label.c: New file.
21357 * commands/search_uuid.c: New file.
21358 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
21359 Add commands/search_wrap.c, commands/search_file.c,
21360 commands/search_label.c and commands/search_uuid.c.
21361 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
21362 (search_mod_SOURCES): Set to commands/search_wrap.c.
21363 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
21364 search_label.mod.
21365 (search_fs_file_mod_SOURCES): New variable.
21366 (search_fs_file_mod_CFLAGS): Likewise.
21367 (search_fs_file_mod_LDFLAGS): Likewise.
21368 (search_label_mod_SOURCES): Likewise.
21369 (search_label_mod_CFLAGS): Likewise.
21370 (search_label_mod_LDFLAGS): Likewise.
21371 (search_fs_uuid_mod_SOURCES): New variable.
21372 (search_fs_uuid_mod_CFLAGS): Likewise.
21373 (search_fs_uuid_mod_LDFLAGS): Likewise.
21374 (fs_file_mod_SOURCES): Removed.
21375 (fs_file_mod_CFLAGS): Likewise.
21376 (fs_file_mod_LDFLAGS): Likewise.
21377 (fs_uuid_mod_SOURCES): Removed.
21378 (fs_uuid_mod_CFLAGS): Likewise.
21379 (fs_uuid_mod_LDFLAGS): Likewise.
21380 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
21381 Set to util/grub-install.in.
21382 * disk/fs_file.c: Removed.
21383 * disk/fs_uuid.c: Likewise.
21384 * include/grub/search.h: New file.
21385 * util/grub-install.in: Handle sparc64.
21386 Create and use load.cfg.
21387 * util/sparc64/ieee1275/grub-install.in: Removed.
21388
db943399
VS
213892009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21390
21391 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
21392 Ignore return status if CF is cleared.
21393 (grub_biosdisk_get_diskinfo_standard): Likewise.
21394
3fdae612
RM
213952009-12-25 Robert Millan <rmh.grub@aybabtu.com>
21396
21397 * term/i386/pc/at_keyboard.c
21398 (keyboard_controller_wait_untill_ready): New function.
21399 (grub_keyboard_controller_write, grub_keyboard_controller_read)
21400 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
21401 for keyboard polling, rather than duplicate the same loop. This
21402 saves a few bytes in code size.
21403
7ebaa2b4
VS
214042009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21405
21406 Support for (pxe[:server[:gateway]]) syntax and
21407 use environment variable for PXE.
21408
21409 * commands/i386/pc/pxecmd.c (options): Removed.
21410 (print_ip): Removed.
21411 (grub_cmd_pxe): Removed
21412 (grub_cmd_pxe_unload): New function.
21413 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
21414 (grub_pxe_your_ip): Made static.
21415 (grub_pxe_default_server_ip): Likewise.
21416 (grub_pxe_default_gateway_ip): Likewise.
21417 (grub_pxe_blksize): Likewise.
21418 (parse_ip): New function.
21419 (grub_pxe_open): Support server and gateway specification.
21420 (grub_pxe_close): Free disk->data.
21421 (grub_pxefs_open): Use disk->data.
21422 (grub_pxefs_read): Likewise.
21423 (grub_env_write_readonly): New function.
21424 (set_mac_env): Likewise.
21425 (set_env_limn_ro): Likewise.
21426 (parse_dhcp_vendor): Likewise.
21427 (grub_pxe_detect): Set the environment variables.
21428 (set_ip_env): New function.
21429 (write_ip_env): Likewise.
21430 (grub_env_write_pxe_default_server): Likewise.
21431 (grub_env_write_pxe_default_gateway): Likewise.
21432 (grub_env_write_pxe_blocksize): Likewise.
21433 (GRUB_MOD_INIT(pxe)): Set environment variables.
21434 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
21435 (grub_pxe_mac_addr_t): ... this. All users updated.
21436 (grub_pxe_your_ip): Removed.
21437 (grub_pxe_server_ip): Likewise.
21438 (grub_pxe_gateway_ip): Likewise.
21439 (grub_pxe_blksize): Likewise.
21440
ec5f98ab 214412009-12-25 Carles Pina i Estany <carles@pina.cat>
21442
21443 * commands/help.c: Include `<grub/i18n.h>'.
21444 (grub_cmd_help): Gettextizze.
21445 (GRUB_MOD_INIT): Likewise.
21446 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
21447 (GRUB_MOD_INIT): Gettextizze.
21448 * commands/search.c: Include `<grub/i18n.h>'.
21449 (options): Gettextizze.
21450 (GRUB_MOD_INIT): Gettextizze.
21451 * lib/arg.c: Include `<grub/i18n.h>'.
21452 (help_options): Gettextizze.
21453 (find_long): Likewise.
21454 (grub_arg_show_help): Likewise.
21455 * normal/dyncmd.c: Include `<grub/i18n.h>'.
21456 (read_command_list): Gettextizze.
21457 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 21458 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 21459
22815526
RM
214602009-12-25 Robert Millan <rmh.grub@aybabtu.com>
21461
21462 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
21463 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
21464 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
21465 (led_status): New variable.
21466 (keyboard_controller_led): New function.
21467 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
21468 update led status for caps lock, num lock and scroll lock.
21469
0ad46fd7
FZ
214702009-12-25 Felix Zielcke <fzielcke@z-51.de>
21471
21472 * util/hostdisk.c (open_device): Fix a comment.
21473
d0e158c2
RM
214742009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21475
21476 * util/grub-install.in (host_os): New variable.
21477 * util/i386/efi/grub-install.in (host_os): Likewise.
21478
401c0ad6
RM
214792009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21480
21481 * util/mkisofs/write.c (padblock_write): Abort when given an
21482 excedingly large embed image, instead of silently truncating it.
21483
d14d3370
RM
214842009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21485
21486 * include/multiboot.h: Indentation fixes.
21487
eeed10b4
RM
214882009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21489
21490 * include/multiboot.h (struct multiboot_aout_symbol_table)
21491 (struct multiboot_elf_section_header_table): New structure
21492 declarations (stolen from GRUB Legacy).
21493 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
21494 table information.
21495
21496 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
21497 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
21498 type aliases.
21499
681c70ab
RM
215002009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21501
21502 * include/multiboot.h: Make comments src2texi-friendly.
21503
e4d47d8d
RM
215042009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21505
21506 For consistency with [multiboot]/docs/boot.S.
21507
21508 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
21509 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
21510 (MULTIBOOT_MAGIC2): Rename from this ...
21511 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
21512
a0b70bda
RM
215132009-12-24 Robert Millan <rmh.grub@aybabtu.com>
21514
21515 * include/multiboot.h: Remove `<grub/types.h>'.
21516 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
21517 types. Update all users.
21518
61ba42be 215192009-12-25 Carles Pina i Estany <carles@pina.cat>
21520
21521 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
21522 `couldn't' and `can not' by `cannot'.
21523 * commands/i386/pc/drivemap.c: Likewise.
21524 * disk/ata.c: Likewise.
21525 * disk/ieee1275/nand.c: Likewise.
21526 * fs/affs.c: Likewise.
21527 * fs/fat.c: Likewise.
21528 * fs/hfs.c: Likewise.
21529 * fs/hfsplus.c: Likewise.
21530 * fs/iso9660.c: Likewise.
21531 * fs/jfs.c: Likewise.
21532 * fs/minix.c: Likewise.
21533 * fs/reiserfs.c: Likewise.
21534 * fs/sfs.c: Likewise.
21535 * fs/udf.c: Likewise.
21536 * fs/ufs.c: Likewise.
21537 * fs/xfs.c: Likewise.
21538 * loader/powerpc/ieee1275/linux.c: Likewise.
21539 * loader/sparc64/ieee1275/linux.c: Likewise.
21540 * util/grub-probe.c: Likewise.
21541 * util/misc.c: Likewise.
21542
7fd0baee 215432009-12-24 Carles Pina i Estany <carles@pina.cat>
21544
21545 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
21546 grub_errno calls.
21547 * commands/acpi.c: Likewise.
21548 * commands/blocklist.c: Likewise.
21549 * commands/efi/loadbios.c: Likewise.
21550 * commands/i386/pc/drivemap.c: Likewise.
21551 * commands/loadenv.c: Likewise.
21552 * commands/memrw.c: Likewise.
21553 * commands/password.c: Likewise.
21554 * commands/videotest.c: Likewise.
21555 * disk/ata.c: Likewise.
21556 * disk/ata_pthru.c: Likewise.
21557 * disk/dmraid_nvidia.c: Likewise.
21558 * disk/ieee1275/nand.c: Likewise.
21559 * disk/ieee1275/ofdisk.c: Likewise.
21560 * disk/loopback.c: Likewise.
21561 * disk/lvm.c: Likewise.
21562 * disk/mdraid_linux.c: Likewise.
21563 * disk/raid.c: Likewise.
21564 * disk/raid6_recover.c: Likewise.
21565 * disk/scsi.c: Likewise.
21566 * efiemu/main.c: Likewise.
21567 * efiemu/mm.c: Likewise.
21568 * efiemu/pnvram.c: Likewise.
21569 * efiemu/symbols.c: Likewise.
21570 * font/font.c: Likewise.
21571 * fs/cpio.c: Likewise.
21572 * fs/hfsplus.c: Likewise.
21573 * fs/iso9660.c: Likewise.
21574 * fs/jfs.c: Likewise.
21575 * fs/minix.c: Likewise.
21576 * fs/ntfs.c: Likewise.
21577 * fs/ntfscomp.c: Likewise.
21578 * fs/reiserfs.c: Likewise.
21579 * fs/ufs.c: Likewise.
21580 * fs/xfs.c: Likewise.
21581 * gettext/gettext.c: Likewise.
21582 * include/grub/auth.h: Likewise.
21583 * kern/elf.c: Likewise.
21584 * kern/file.c: Likewise.
21585 * kern/ieee1275/init.c: Likewise.
21586 * kern/ieee1275/mmap.c: Likewise.
21587 * kern/ieee1275/openfw.c: Likewise.
21588 * kern/powerpc/dl.c: Likewise.
21589 * kern/sparc64/dl.c: Likewise.
21590 * lib/arg.c: Likewise.
21591 * loader/i386/bsd.c: Likewise.
21592 * loader/i386/bsdXX.c: Likewise.
21593 * loader/i386/efi/linux.c: Likewise.
21594 * loader/i386/efi/xnu.c: Likewise.
21595 * loader/i386/ieee1275/linux.c: Likewise.
21596 * loader/i386/linux.c: Likewise.
21597 * loader/i386/multiboot.c: Likewise.
21598 * loader/i386/pc/linux.c: Likewise.
21599 * loader/i386/pc/multiboot2.c: Likewise.
21600 * loader/i386/xnu.c: Likewise.
21601 * loader/ieee1275/multiboot2.c: Likewise.
21602 * loader/macho.c: Likewise.
21603 * loader/machoXX.c: Likewise.
21604 * loader/multiboot2.c: Likewise.
21605 * loader/multiboot_loader.c: Likewise.
21606 * loader/powerpc/ieee1275/linux.c: Likewise.
21607 * loader/sparc64/ieee1275/linux.c: Likewise.
21608 * loader/xnu.c: Likewise.
21609 * loader/xnu_resume.c: Likewise.
21610 * mmap/i386/pc/mmap.c: Likewise.
21611 * normal/menu_viewer.c: Likewise.
21612 * partmap/acorn.c: Likewise.
21613 * partmap/amiga.c: Likewise.
21614 * partmap/apple.c: Likewise.
21615 * script/lexer.c: Likewise.
21616 * term/gfxterm.c: Likewise.
21617 * term/i386/pc/serial.c: Likewise.
21618 * term/i386/pc/vga.c: Likewise.
21619 * term/ieee1275/ofconsole.c: Likewise.
21620 * term/terminfo.c: Likewise.
21621 * video/bitmap.c: Likewise.
21622 * video/efi_gop.c: Likewise.
21623 * video/efi_uga.c: Likewise.
21624 * video/fb/video_fb.c: Likewise.
21625 * video/i386/pc/vbe.c: Likewise.
21626 * video/readers/tga.c: Likewise.
21627 * video/video.c: Likewise.
21628
0ad46fd7 216292009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
21630
21631 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
21632 * commands/lspci.c: Likewise.
21633 * commands/probe.c: Likewise.
21634 * commands/xnu_uuid.c: Likewise.
21635 * conf/i386-coreboot.rmk: Likewise.
21636 * conf/i386-efi.rmk: Likewise.
21637 * conf/i386-ieee1275.rmk: Likewise.
21638 * conf/i386-pc.rmk: Likewise.
21639 * conf/powerpc-ieee1275.rmk: Likewise.
21640 * conf/sparc64-ieee1275.rmk: Likewise.
21641 * conf/x86_64-efi.rmk: Likewise.
21642 * fs/i386/pc/pxe.c: Likewise.
21643 * gettext/gettext.c: Likewise.
21644 * include/grub/efi/graphics_output.h: Likewise.
21645 * include/grub/i386/pc/memory.h: Likewise.
21646 * kern/env.c: Likewise.
21647 * kern/i386/qemu/startup.S: Likewise.
21648 * lib/i386/pc/biosnum.c: Likewise.
21649 * lib/i386/relocator.c: Likewise.
21650 * lib/i386/relocator_asm.S: Likewise.
21651 * lib/relocator.c: Likewise.
21652 * loader/i386/bsd.c: Likewise.
21653 * loader/i386/multiboot.c: Likewise.
21654 * loader/i386/pc/chainloader.c: Likewise.
21655 * loader/i386/xnu.c: Likewise.
21656 * loader/xnu.c: Likewise.
21657 * normal/main.c: Likewise.
21658 * normal/menu_text.c: Likewise.
21659 * util/getroot.c: Likewise.
21660 * util/grub-mkconfig_lib.in: Likewise.
21661 * util/grub.d/00_header.in: Likewise.
21662 * util/i386/pc/grub-mkimage.c: Likewise.
21663 * util/mkisofs/eltorito.c: Likewise.
21664 * util/mkisofs/exclude.h: Likewise.
21665 * util/mkisofs/hash.c: Likewise.
21666 * util/mkisofs/iso9660.h: Likewise.
21667 * util/mkisofs/joliet.c: Likewise.
21668 * util/mkisofs/mkisofs.c: Likewise.
21669 * util/mkisofs/mkisofs.h: Likewise.
21670 * util/mkisofs/multi.c: Likewise.
21671 * util/mkisofs/name.c: Likewise.
21672 * util/mkisofs/rock.c: Likewise.
21673 * util/mkisofs/tree.c: Likewise.
21674 * util/mkisofs/write.c: Likewise.
21675 * video/efi_gop.c: Likewise.
21676
009ec743
VS
216772009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
21678
21679 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
21680 size counting.
21681
0ad46fd7 216822009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
21683
21684 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
21685 * genmk.rb (class SCRIPT): Modify the target file instead of source.
21686
d3d30ea0
VS
216872009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21688
21689 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
21690 (GRUB_MOD_INIT(memrw)): Update help line.
21691
a34f5c70
VS
216922009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21693
21694 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
21695 Use grub_extcmd_t. All users updated.
21696 (options): New variable.
21697 (grub_cmd_read): Restructure for readability. Support "-v" option.
21698 (grub_cmd_write): Restructure for readability.
21699
0ad46fd7 217002009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
21701
21702 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
21703
0ad46fd7 217042009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
21705
21706 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
21707 with the actual contents of the correspondending make variable.
21708 * util/grub-mkrescue.in (pkglib_DATA): New variable.
21709 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
21710 specifying `*.lst' and `efiemu??.o'
21711
0ad46fd7 217122009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
21713
21714 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
21715 after function name.
21716 Noticed by Rene Engelhard <rene@debian.org>.
21717
dc77a799
VS
217182009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21719
21720 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
21721 (options): New variable.
21722 (iospace): Likewise.
21723 (grub_lspci_iter): List IO spaces if "-i" was given.
21724 (grub_cmd_lspci): Parse options.
21725 (GRUB_MOD_INIT(lspci)): Use extcmd.
21726 (GRUB_MOD_FINI(lspci)): Likewise.
21727
0ad46fd7 217282009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
21729
21730 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
21731 `function' keyword.
21732 Patch by Tony Mancill <tmancill@debian.org>.
21733
b5d5993b
VS
217342009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
21737 (grub_uhci_portstatus): Likewise.
21738 (grub_uhci_portstatus): Add necessary delay.
11d18281 21739 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 21740
941903f2 217412009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 21742
941903f2 21743 * commands/acpi.c (options): Fix capitalizations and/or full stops.
21744 (GRUB_MOD_INIT): Likewise.
21745 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 21746 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
21747 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 21748 * commands/efi/loadbios.c (enable_rom_area): Likewise.
21749 (enable_rom_area): Likewise.
21750 (GRUB_MOD_INIT): Likewise.
21751 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
21752 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
21753 * commands/handler.c (GRUB_MOD_INIT): Likewise.
21754 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
21755 * commands/hexdump.c (options): Likewise.
21756 * commands/i386/cpuid.c (options): Likewise.
21757 (GRUB_MOD_INIT): Likewise.
21758 * commands/i386/pc/drivemap.c (options): Likewise.
21759 (GRUB_MOD_INIT): Likewise.
21760 * commands/i386/pc/halt (options): Likewise.
21761 (GRUB_MOD_INIT): Likewise.
21762 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
21763 * commands/i386/pc/pxecmd.c (options): Likewise.
21764 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
21765 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
21766 * commands/keystatus.c (options): Likewise.
21767 (GRUB_MOD_INIT): Likewise.
21768 * commands/loadenv.c (options): Likewise.
21769 * commands/ls.c (options): Likewise.
21770 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
21771 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
21772 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
21773 * commands/parttool.c (helpmsg): Likewise.
21774 * commands/probe.c (options): Likewise.
21775 * commands/read.c (GRUB_MOD_INIT): Likewise.
21776 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
21777 * commands/search.c (options): Likewise.
21778 * commands/sleep.c (options): Likewise.
21779 * commands/test.c (GRUB_MOD_INIT): Likewise.
21780 * commands/true.c (GRUB_MOD_INIT): Likewise.
21781 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
21782 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
21783 * lib/arg.c (help_options): Likewise.
e9bbb4e7 21784 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
21785 `$(XGETTEXT)'.
98a50553 21786 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 21787
0ad46fd7 217882009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 21789
ef3c2c3a 21790 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
21791 instead of specifying them explicit.
21792
7922f68b
RM
217932009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21794
21795 * NEWS: Add grub-probe support for GNU/Hurd.
21796
537ce47f
RM
217972009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21798
21799 * NEWS: gettext was added after 1.97.
21800
9b214e3a
RM
218012009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21802
21803 * util/mkisofs/msdos_partition.h: New file (based on
21804 include/grub/msdos_partition.h).
21805 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
21806 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
21807 (ld_options, main): Recognize --protective-msdos-label.
21808 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
21809 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
21810 (padblock_write): If `use_protective_msdos_label' is set, patch a
21811 protective DOS-style label in the output image.
21812
21813 * util/grub-mkrescue.in: Use --protective-msdos-label.
21814
e9309813
RM
218152009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21816
21817 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
21818 boot.
21819
0ae56929
RM
218202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21821
21822 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
21823 variables.
21824 (ld_options, main): Recognize `--embedded-boot'.
21825 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
21826 declarations.
21827 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
21828 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
21829 (padblock_write): Likewise. Rewrite to support embedded boot image.
21830
21831 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
21832 for BIOS-based disk boot instead of only ElTorito.
21833
b15937b1
RM
218342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21835
21836 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
21837 build (not needed for bootstrap).
21838
52cc3ce0
RM
218392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21840
21841 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
21842 from i386-pc build (not needed for bootstrap).
21843 Rewrite a pair of strings.
21844
36f5ff04
RM
218452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
21846
21847 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
21848
973c6c85 218492009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
21850
21851 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
21852
05d21547
AB
218532009-12-21 Andreas Born <futur.andy@googlemail.com>
21854
21855 * kern/env.c (grub_env_context_open): Mark exported variable for
21856 reexport.
21857
0175d51f
AB
218582009-12-21 Andreas Born <futur.andy@googlemail.com>
21859
21860 * kern/env.c (grub_env_export): Create nonexistent variables before
21861 exporting.
21862
7f39d92f 218632009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 21864
7f39d92f 21865 * include/grub/auth.h: Include `<grub/i18n.h>'.
21866 (GRUB_GET_PASSWORD): Gettextizze string.
21867 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
21868 menu_text.c.
21869 (grub_utf8_to_ucs4_alloc): Fix indentation.
21870 (grub_print_ucs4): Likewise.
21871 (grub_getstringwidth): Likewise.
21872 (print_message_indented): New declaration.
21873 * normal/auth.c: Include `<grub/i18n.h>'.
21874 (grub_auth_check_authentication): Gettexttize string.
21875 * normal/cmdline.c: Include `<grub/i18n.h>'.
21876 (grub_cmdline_get): Gettextizze.
21877 * normal/color.c: Include `<grub/i18n.h>'.
21878 (grub_parse_color_name_pair): Gettexttize strings.
21879 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
21880 string (use `print_message_indented').
21881 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
21882 `include/grub/normal.h'.
21883 (print_message_indented): Renamed to ...
21884 (grub_print_message_indented): ... this. Remove `static' qualifer (now
21885 used in normal/main.c).
21886 (print_message): Use `grub_print_message_indented' instead of
21887 `print_message_indented'.
21888 (print_timeout): Likewise.
21889 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
21890 (grub_normal_print_device_info): Gettexttize strings.
21891 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
21892
3041d898
VS
218932009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21894
21895 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
21896 of arguments. Return number of tokens and not arguments. All users
21897 updated.
21898
de15bf8e
VS
218992009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21900
21901 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
21902 non-MSDOS paritions.
21903
e0a6ca52
VS
219042009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21905
21906 * include/grub/types.h (UNUSED): Removed since it conflicts with
21907 NetBSD headers. All users changed to direct __attribute__ ((unused)).
21908 Reported by Grégoire Sutre.
21909
b99518d1 219102009-12-19 Carles Pina i Estany <carles@pina.cat>
21911
21912 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
21913 (grub_print_ucs4_alloc): Likewise.
21914 (grub_getstringwidth): Likewise.
21915 * normal/main.c (grub_normal_init_page): Gettextize version string.
21916 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
21917 (getstringwidth): Renamed to ...
21918 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
21919 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
21920 (grub_print_ucs4): Remove `static' qualifer (now used in
21921 normal/main.c).
21922 * po/POTFILES: Add normal/main.c.
21923
bfd5e52b 219242009-12-19 Carles Pina i Estany <carles@pina.cat>
21925
21926 * normal/menu_text.c (STANDARD_MARGIN): New macro.
21927 (print_message_indented): Add `margin_left' and `margin_right'
21928 parameters.
21929 (print_message): Update `print_message_indented' calls. Adds '\n' to the
21930 strings.
21931 (print_timeout): Use `print_message_indented' to print the message.
21932 Deletes `second_stage' parameter.
21933 (run_menu): Update `print_timeout' calls.
21934
5a1ad2b9
VS
219352009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21936
21937 Fix console palette on OpenFirmware.
21938
21939 * term/ieee1275/ofconsole.c (MAX): Removed.
21940 (colors): Redone based on VGA palette.
21941 (grub_ofconsole_setcolor): Discard brightness bit since only 8
21942 colors are supported.
21943 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
21944
b045f00a
VS
219452009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 Fix potential EfiEmu double prepare.
21948
21949 * efiemu/main.c (prepared): New variable
21950 (grub_efiemu_unload): Set prepare to '0'.
21951 (grub_efiemu_prepare): Return if already prepared. Set prepared.
21952
21953 set_virtual_address_map support.
21954
21955 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
21956 prototype.
21957 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
21958 prototype.
21959 (grub_efiemu_crc32): Likewise.
21960 (grub_efiemu_crc64): Likewise.
21961 (grub_efiemu_set_virtual_address_map): Likewise.
21962 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
21963 New definition.
21964 (grub_autoefi_set_virtual_address_map): Likewise.
21965 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
21966 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
21967 Restructure flow to accomodate it.
21968 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
21969 (grub_efiemu_crc): Recompute CRC32.
21970 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
21971 (efiemu_ptv_relocated): ... this. Made global. All users updated.
21972 * efiemu/symbols.c (relocated_handle): New variable.
21973 (grub_efiemu_free_syms): Free relocated_handle.
21974 (grub_efiemu_alloc_syms): Allocate relocated_handle.
21975 (grub_efiemu_write_sym_markers): New function.
21976 (grub_efiemu_set_virtual_address_map): Likewise.
21977
21978 Newer XNU parameters.
21979
21980 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
21981 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
21982 (grub_xnu_fill_devicetree): New prototype.
21983 (grub_xnu_heap_real_start): New variable.
21984 * loader/xnu.c (get_name_ptr): New function.
21985 (grub_xnu_load_driver): Fill namelen and name.
21986
21987 64-bit xnu support.
21988
21989 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
21990 and 'loader/macho64.c'.
21991 * conf/i386-pc.rmk: Likewise.
21992 * conf/x86_64-efi.rmk: Likewise.
21993 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
21994 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
21995 * include/grub/macho.h (grub_macho_segment64): New structure.
21996 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
21997 (grub_macho_size32): ... to this.
21998 (grub_macho32_get_entry_point): Renamed from ...
21999 (grub_macho_get_entry_point32): ... to this.
22000 (grub_macho_contains_macho64): New prototype.
22001 (grub_macho_size64): Likewise.
22002 (grub_macho_get_entry_point64): Likewise.
22003 (grub_macho32_load): Renamed from ...
22004 (grub_macho_load32): ... to this.
22005 (grub_macho32_filesize): Renamed from ...
22006 (grub_macho_filesize32): ... to this.
22007 (grub_macho32_readfile): Renamed from ...
22008 (grub_macho_readfile32): ... to this.
22009 (grub_macho_filesize64): New prototype.
22010 (grub_macho_readfile64): Likewise.
22011 (grub_macho_parse32): Likewise.
22012 (grub_macho_parse64): Likewise.
22013 * loader/macho.c: Split into ...
22014 * loader/machoXX.c: ... and this. Replace 32 with XX.
22015 * loader/macho32.c: New file.
22016 * loader/macho64.c: Likewise.
22017 * loader/xnu.c (grub_xnu_is_64bit): New variable.
22018 (grub_cmd_xnu_kernel): Make 32-bit only.
22019 (grub_cmd_xnu_kernel64): New function.
22020 (grub_xnu_load_driver): Support Mach-O 64.
22021 (grub_cmd_xnu_mkext): Likewise.
22022 * util/grub.d/30_os-prober.in (osx_entry): New function.
22023 Generate entries for 64-bit boot too.
22024
22025 Eliminate ad-hoc tree format in XNU and EfiEmu.
22026
22027 * efiemu/main.c (grub_efiemu_prepare): Update comment.
22028 * efiemu/pnvram.c: Rewritten to use environment variables.
22029 All users updated.
22030
22031 Inline utf16_to_utf8.
22032
22033 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
22034 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
22035 All users updated.
22036 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
22037
22038 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
22039 * commands/usbtest.c (grub_usb_get_string): ... move here.
22040 (usb_print_str): Fix error handling.
22041 * include/grub/usb.h (grub_usb_get_string): Remove.
22042
22043 UTF-8 to UTF-16 transformation.
22044
22045 * conf/common.rmk (pkglib_MODULES): Add charset.mod
22046 (charset_mod_SOURCES): New variable.
22047 (charset_mod_CFLAGS): Likewise.
22048 (charset_mod_LDFLAGS): Likewise.
22049 * include/grub/utf.h: New file.
22050 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
22051
22052 Support for device properties.
22053
22054 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
22055 (grub_xnu_devprop_device_header): Likewise.
22056 (grub_xnu_devprop_device_descriptor): Likewise.
22057 (grub_xnu_devprop_add_device): New prototype.
22058 (grub_xnu_devprop_remove_device): Likewise.
22059 (grub_xnu_devprop_remove_property): Likewise.
22060 (grub_xnu_devprop_add_property_utf8): Likewise.
22061 (grub_xnu_devprop_add_property_utf16): Likewise.
22062 (grub_cpu_xnu_init): Likewise.
22063 (grub_cpu_xnu_fini): Likewise.
22064 (grub_cpu_xnu_unload): Likewise.
22065 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
22066 (property_descriptor): Likewise.
22067 (devices): New variable.
22068 (grub_xnu_devprop_remove_property): New function.
22069 (grub_xnu_devprop_add_device): Likewise.
22070 (grub_xnu_devprop_remove_device): Likewise.
22071 (grub_xnu_devprop_add_property): Likewise.
22072 (grub_xnu_devprop_add_property_utf8): Likewise.
22073 (grub_xnu_devprop_add_property_utf16): Likewise.
22074 (hextoval): Likewise.
22075 (grub_cpu_xnu_fill_devprop): Likewise.
22076 (grub_cmd_devprop_load): Likewise.
22077 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
22078 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
22079 (cmd_devprop_load): New variable.
22080 (grub_cpu_xnu_init): New function.
22081 (grub_cpu_xnu_fini): Likewise.
22082 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
22083 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
22084 (grub_cmd_xnu_devtree): Likewise.
22085 (hextoval): New function.
22086 (unescape): Likewise.
22087 (grub_xnu_fill_devicetree): Likewise.
22088
22089 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
22090 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
22091
0945f181
VS
220922009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22093
22094 Workaround for broken ATI VBE.
22095
22096 * video/i386/pc/vbe.c (last_set_mode): New variable.
22097 (grub_vbe_set_video_mode): Set 'last_set_mode'.
22098 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
22099 (grub_video_vbe_setup): Don't check for reserved flag.
22100
0ad46fd7 221012009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
22102
22103 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
22104 the `find' command.
22105
c179ebe4
VS
221062009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
22107
22108 UUID support for HFS.
22109
22110 * fs/hfs.c (grub_hfs_uuid): New function.
22111 (grub_hfs_fs): New value .uuid.
22112 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
22113
0ad46fd7 221142009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
22115
22116 Fix a segfault with parsing unknown long options.
22117
22118 * util/grub-mkrelpath.c (options): Zero terminate it.
22119
c4a3e41a
CPE
221202009-12-13 Carles Pina i Estany <carles@pina.cat>
22121
22122 * include/grub/misc.h (grub_puts): New declaration.
22123 (grub_puts_): Likewise.
a22008a6 22124 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
22125 (grub_puts_): Likewise.
22126
2e8a7602
RM
221272009-12-13 Robert Millan <rmh.grub@aybabtu.com>
22128
22129 * util/grub-probe.c (probe): Improve error message.
22130
b50b77b9
RM
221312009-12-13 Robert Millan <rmh.grub@aybabtu.com>
22132
22133 * loader/i386/multiboot_elfxx.c
22134 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
22135 initialization.
22136
221372009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
22138
22139 Relocator framework
22140
22141 * loader/i386/xnu_helper.S: Removed. All users updated.
22142 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
22143 (relocator_mod_SOURCES): New variable.
22144 (relocator_mod_CFLAGS): Likewise.
22145 (relocator_mod_LDFLAGS): Likewise.
22146 (relocator_mod_ASFLAGS): Likewise.
22147 * conf/x86_64.rmk: Likewise.
22148 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
22149 (grub_multiboot_payload_entry_offset): Likewise.
22150 (grub_multiboot_forward_relocator): Likewise.
22151 (grub_multiboot_forward_relocator_end): Likewise.
22152 (grub_multiboot_backward_relocator): Likewise.
22153 (grub_multiboot_backward_relocator_end): Likewise.
22154 (grub_multiboot_payload_eip): New variable.
22155 (grub_multiboot_payload_orig): Likewise.
22156 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
22157 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
22158 * include/grub/i386/memory.h
22159 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
22160 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
22161 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
22162 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
22163 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
22164 * include/grub/i386/relocator.h: New file.
22165 * include/grub/x86_64/relocator.h: Likewise.
22166 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
22167 (XNU_RELOCATOR): New macro.
22168 (grub_xnu_launcher_start): Remove.
22169 (grub_xnu_launcher_end): Likewise.
22170 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
22171 (grub_xnu_heap_real_start): Remove.
22172 (grub_xnu_heap_start): Change to void *. All users updated.
22173 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
22174 * lib/i386/relocator.c: New file.
22175 * lib/i386/relocator_asm.S: Likewise.
22176 * lib/i386/relocator_backward.S: Likewise.
22177 * lib/mips/relocator.c: Likewise.
22178 * lib/mips/relocator_asm.S: Likewise.
22179 * lib/relocator.c: Likewise.
22180 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
22181 (entry): Removed.
22182 (playground): Likewise.
22183 (grub_multiboot_payload_orig): New variable.
22184 (grub_multiboot_payload_dest): Likewise.
22185 (grub_multiboot_payload_size): Likewise.
22186 (grub_multiboot_payload_eip): Likewise.
22187 (grub_multiboot_payload_esp): Likewise.
22188 (grub_multiboot_boot): Use grub_relocator32_boot.
22189 (grub_multiboot_unload): Free relocators.
22190 (grub_multiboot): Setup stack. Use relocators.
22191 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
22192 (grub_multiboot_load_elfXX): Use relocators.
22193 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
22194 (grub_multiboot_payload_size): Likewise.
22195 (grub_multiboot_payload_dest): Likewise.
22196 (grub_multiboot_payload_entry_offset): Likewise.
22197 (grub_multiboot_forward_relocator): Likewise.
22198 (grub_multiboot_backward_relocator): Likewise.
22199 (grub_multiboot_real_boot): Likewise.
22200 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
22201 (grub_xnu_entry_point): Likewise.
22202 (grub_xnu_arg1): Likewise.
22203 (grub_xnu_stack): Likewise.
22204 (grub_xnu_launch): Removed.
22205 (grub_xnu_boot_resume): New function.
22206 (grub_xnu_boot): Use relocators.
22207 * loader/i386/xnu_helper.S: Removed.
22208 * loader/xnu.c (grub_xnu_heap_start): New variable.
22209 (grub_xnu_heap_size): Likewise.
22210 (grub_xnu_heap_malloc): Use relocators.
22211 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
22212
29eb90c6
VS
222132009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
22214
22215 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
22216 anything.
22217
31027430
CPE
222182009-12-13 Carles Pina i Estany <carles@pina.cat>
22219
22220 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
22221 GRUB_ERR_NONE before calling grub_env_set.
22222
dc0c71d9
RM
222232009-12-12 Robert Millan <rmh@aybabtu.com>
22224
22225 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
22226 * genmk.rb (video): New variable.
22227 (CLEANFILES, VIDEOFILES): Add #{video}.
22228 (#{video}): New target rule.
22229 * genvideolist.sh: New file.
22230 * Makefile.in (pkglib_DATA): Add video.lst.
22231 (video.lst): New target rule.
22232 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
22233 `video.lst'.
22234 * util/grub.d/30_os-prober.in: Replace `vbe' with
22235 ${GRUB_VIDEO_BACKEND}.
22236
2a4bfcf0
RM
222372009-12-11 Robert Millan <rmh.grub@aybabtu.com>
22238
22239 * THANKS: Add David Miller.
22240
2a3aa4d5
RM
222412009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
22242
22243 libpciaccess support.
22244
22245 * Makefile.in (LIBPCIACCESS): New variable.
22246 (enable_grub_emu_pci): Likewise.
22247 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
22248 util/pci.c and commands/lspci.c.
22249 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
22250 * configure.ac (grub-emu-pci): New option.
22251 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
22252 (grub_pci_device_unmap_range): Likewise.
22253 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
22254 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
22255 (grub_pci_address_t) [!GRUB_UTIL]: New type.
22256 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
22257 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
22258 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
22259 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
22260 * include/grub/pciutils.h: New file.
22261 * util/pci.c: Likewise.
22262
0ad46fd7 222632009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
22264
22265 * util/misc.c: Don't include <errno.h> twice.
22266
0ad46fd7 222672009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
22268
22269 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
22270 name in an error message.
22271 (grub_biosdisk_rw): Likewise.
22272
2e59983c
VS
222732009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 Eliminate NTFS 4Gib barrier.
22276
22277 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
22278 (read_run_data): Likewise.
22279 (grub_ntfs_read_run_list): Likewise.
22280 (grub_ntfs_read_block): Likewise.
22281 (grub_ntfs_iterate_dir): Likewise.
22282 (read_mft): Likewise.
22283 (read_data): Likewise.
22284 Use COM_LOG_LEN.
22285 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
22286 to avoid 64-bit division
22287 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
22288 (grub_ntfs_rlst): Use grub_disk_addr_t.
22289
71ee178a
VS
222902009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22291
22292 Eliminate grub-fstest 4Gib barrier.
22293
22294 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
22295 (read_file): Fix error reporting.
22296
2520d4b8
VS
222972009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22298
22299 Eliminate hexdump 4Gib barrier.
22300
22301 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
22302 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
22303
e1f27065
VS
223042009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
22305
22306 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
22307 Fixes amarsh bug.
22308
1a0f7f45
RM
223092009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
22310
22311 Remove miscellaneous files in distclean target.
22312
22313 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
22314
c631d9fb
CW
223152009-12-09 Colin Watson <cjwatson@ubuntu.com>
22316
22317 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
22318 if they're already set. This resolves the conflict between my
22319 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
22320 fixing the --grub-probe option again.
22321 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
22322 change on 2009-10-06, so that we now once again source
22323 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22324
7c7b6106
RM
223252009-12-08 Robert Millan <rmh.grub@aybabtu.com>
22326
22327 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
22328 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
22329 `util/devicemap.c'.
22330
e3069ec1
CPE
223312009-12-08 Carles Pina i Estany <carles@pina.cat>
22332
22333 * include/grub/misc.h (grub_printf_): New declaration.
22334 * kern/misc.c (grub_printf_): New definition.
22335 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
22336 instead of `grub_printf' and `_'.
22337 * normal/menu_entry.c (store_completion): Likewise.
22338 (run): Likewise.
22339 (grub_menu_entry_run): Likewise.
22340 * normal/menu_text.c (grub_wait_after_message): Likewise.
22341 (notify_booting): Likewise.
22342 (notify_fallback): Likewise.
22343 (notify_execution_failure): Likewise.
22344
d6ceebf1
CW
223452009-12-07 Colin Watson <cjwatson@ubuntu.com>
22346
22347 * configure.ac: Check for vasprintf.
22348 * util/misc.c (asprintf): Move allocation from here ...
22349 (vasprintf): ... to here. New function.
22350 (xasprintf): New function.
22351 * include/grub/util/misc.h (vasprintf, xasprintf): Add
22352 prototypes.
22353 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22354 * util/grub-mkfont.c (write_font): Likewise.
22355 * util/grub-probe.c (probe): Likewise.
22356 * util/hostdisk.c (make_device_name): Likewise.
22357
de6daa8b
DM
223582009-12-06 David S. Miller <davem@sunset.davemloft.net>
22359
22360 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
22361 anything even prefixed with 'cdrom' as a cdrom.
22362
0ad46fd7 223632009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
22364
22365 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
22366 mount points.
22367
98d3dc02
CPE
223682009-12-05 Carles Pina i Estany <carles@pina.cat>
22369
22370 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
22371 grub_gettext_msg_list.
22372 (grub_gettext_gettranslation_from_position): Return const char *
22373 and not char *.
a2c1332b 22374 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
22375 returns from the list if existing there.
22376 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
22377 (grub_gettext_delete_list): Delete the list.
22378 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
22379 lang environment variable is changed.
22380 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
22381
b283f108
VS
223822009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
22383
22384 Rename kernel.mod to kernel.img.
22385
22386 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
22387 (kernel_mod_EXPORTS): Rename to ...
22388 (kernel_img_EXPORTS): ... this.
22389 (kernel_mod_SOURCES): Rename to ...
22390 (kernel_img_SOURCES): ... this.
22391 (kernel_mod_HEADERS): Rename to ...
22392 (kernel_img_HEADERS): ... this. All users updated.
22393 (kernel_mod_CFLAGS): Rename to ...
22394 (kernel_img_CFLAGS): ... this.
22395 (kernel_mod_ASFLAGS): Rename to ...
22396 (kernel_img_ASFLAGS): ... this.
22397 (kernel_mod_LDFLAGS): Rename to ...
22398 (kernel_img_LDFLAGS): ... this.
22399 * conf/x86_64-efi.rmk: Likewise.
22400 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
22401 (read_kernel_image): ... this. All users updated.
22402 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
22403
69055f8a
CPE
224042009-12-05 Carles Pina i Estany <carles@pina.cat>
22405
22406 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
22407 (print_spaces): New function.
22408 (grub_print_ucs4): New function.
22409 (getstringwidth): New function.
22410 (print_message_indented): New function.
22411 (print_message): Gettexttize strings using print_message_indented.
22412 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
22413 width.
22414 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 22415 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
22416 Gettextize.
22417 * normal/menu_entry.c (store_completion): Cleanup the gettextized
22418 string.
22419 (run): Likewise.
22420 (grub_menu_entry_run): Likewise.
22421 * PO/POTFILES: Add normal/menu_entry.c.
22422
f616f51c
VS
224232009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
22424
22425 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
22426
57bbe3be
CPE
224272009-12-05 Carles Pina i Estany <carles@pina.cat>
22428
22429 * util/grub-install.in: Install gettext .mo files.
22430 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
22431
013d67a1
CPE
224322009-12-05 Carles Pina i Estany <carles@pina.cat>
22433
22434 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
22435 grub_dprintf.
22436
fb954db0
RM
224372009-12-05 Robert Millan <rmh.grub@aybabtu.com>
22438
22439 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
22440 non-firmware-dependant one in realmode.S takes precedence.
22441
6b8474f8
RM
224422009-12-04 Robert Millan <rmh.grub@aybabtu.com>
22443
22444 * commands/halt.c: Replace misc arch-specific headers with
22445 `<grub/misc.h>'.
22446 * commands/reboot.c: Likewise.
22447 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
22448 `<grub/misc.h>'.
22449 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
22450 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
22451 (kernel_img_SOURCES): ... to here.
22452
22453 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
22454 * include/grub/i386/pc/init.h: Likewise.
22455 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22456 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22457
22458 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
22459
22460 * include/grub/i386/halt.h: Remove.
22461 * include/grub/i386/reboot.h: Likewise.
22462
22463 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
22464
4b2e6ca2
DM
224652009-12-03 David S. Miller <davem@sunset.davemloft.net>
22466
22467 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
22468 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
22469 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
22470 "progname.h"
22471 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
22472 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22473 (usage): Add missing comma in printf.
22474
5239348f
RM
224752009-12-02 Robert Millan <rmh.grub@aybabtu.com>
22476
22477 Use the same reboot approach on i386 coreboot and qemu as we do on
22478 BIOS.
22479
22480 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
22481 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
22482 * kern/i386/reboot.c: Remove.
22483 * include/grub/i386/reboot.h (grub_reboot): Export function.
22484 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
22485 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
22486 0xf000:0xfff0 instead of 0xffff:0x0000.
22487 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
22488 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
22489
ef34cbd4
RM
224902009-11-30 Robert Millan <rmh.grub@aybabtu.com>
22491
22492 Fix $srcdir != $objdir build.
22493
22494 * Makefile.in (po/%.po): Rewrite as ...
22495 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
22496
dc9837ea
ST
224972009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22498
22499 Fix GNU/Hurd grub-install crash.
22500 * util/grub-probe.c (probe): Try to access `path' only when it is not
22501 NULL.
22502
2f857f98
VS
225032009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22504
22505 Correct module naming.
22506
22507 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
22508 (GRUB_MOD_INIT(efi_uga)): ... to this
22509 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
22510 (GRUB_MOD_FINI(efi_uga)): ... to this
22511 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
22512 (GRUB_MOD_INIT(efi_gop)): ... to this
22513 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
22514 (GRUB_MOD_FINI(efi_gop)): ... to this
22515
c5448046
RM
225162009-11-28 Robert Millan <rmh.grub@aybabtu.com>
22517
22518 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
22519 translatable.
22520 (usage): Translate `arg' strings using gettext().
22521 Thanks to Jordi Mallach for the suggestion.
22522
c85184ad
VS
225232009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22524
22525 GOP support. Based on patch from Bean
22526 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
22527
22528 * video/efi_gop.c: New file.
22529 * include/grub/efi/graphics_output.h: Likewise.
22530 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
22531 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
22532 variables.
22533 * conf/x86_64-efi.rmk: Likewise.
22534
8a4c48d8
VS
225352009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
22536
22537 Rename efi_fb to efi_uga.
22538
22539 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
22540 'efi_uga.mod'.
22541 (efi_fb_mod_SOURCES): Rename this ...
22542 (efi_uga_mod_SOURCES): ... to this.
22543 (efi_fb_mod_CFLAGS): Rename this ...
22544 (efi_uga_mod_CFLAGS): ... to this.
22545 (efi_fb_mod_LDFLAGS): Rename this ...
22546 (efi_uga_mod_LDFLAGS): ... to this.
22547 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
22548 'efi_uga.mod'.
22549 (efi_fb_mod_SOURCES): Rename this ...
22550 (efi_uga_mod_SOURCES): ... to this.
22551 (efi_fb_mod_CFLAGS): Rename this ...
22552 (efi_uga_mod_CFLAGS): ... to this.
22553 (efi_fb_mod_LDFLAGS): Rename this ...
22554 (efi_uga_mod_LDFLAGS): ... to this.
22555 * video/efi_fb.c: Move this ...
22556 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
22557
fb6c1a7b
RM
225582009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22559
22560 * po/README: New file. Explain our PO file workflow.
22561
3bc7896c
RM
225622009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22563
22564 * po/ChangeLog: Remove. Move relevant entries back to ...
22565 * ChangeLog: ... here.
22566 * po/ca.po: Remove (now handled by TLP).
22567 * po/id.po: Likewise.
22568 * po/zh_CN.po: Likewise.
22569 * Makefile.in (LINGUAS): Initialize in a way that supports
22570 empty set.
22571
9ed4841d
RM
225722009-11-27 Robert Millan <rmh.grub@aybabtu.com>
22573
22574 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
22575 reliing on po/LINGUAS.
22576 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
22577 (po/%.po): ... this.
22578
0ad46fd7 225792009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
22580
22581 * util/i386/efi/grub-mkimage.c: Include "progname.h".
22582 (main): Use `program_name' instead of nonexistent `progname'.
22583
e30dd392
FZ
225842009-11-26 Felix Zielcke <fzielcke@z-51.de>
22585
22586 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22587 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
22588
7656de4f
RM
225892009-11-26 Robert Millan <rmh.grub@aybabtu.com>
22590
22591 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
22592 commit.
22593 * conf/i386-efi.rmk: Likewise.
22594 * conf/i386-ieee1275.rmk: Likewise.
22595 * conf/powerpc-ieee1275.rmk: Likewise.
22596 * conf/sparc64-ieee1275.rmk: Likewise.
22597 * conf/x86_64-efi.rmk: Likewise.
22598
db77c4d4
FZ
225992009-11-26 Felix Zielcke <fzielcke@z-51.de>
22600
22601 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
22602
a755bb04
FZ
226032009-11-26 Felix Zielcke <fzielcke@z-51.de>
22604
22605 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
22606
8a4c07fd
RM
226072009-11-26 Robert Millan <rmh.grub@aybabtu.com>
22608
22609 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
22610 (grub_mkdevicemap_SOURCES): New variable.
22611 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
22612 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
22613 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
22614 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
22615 (grub_mkdevicemap_SOURCES): Remove.
22616 * conf/i386-efi.rmk: Likewise.
22617 * conf/i386-ieee1275.rmk: Likewise.
22618 * conf/i386-pc.rmk: Likewise.
22619 * conf/powerpc-ieee1275.rmk: Likewise.
22620 * conf/sparc64-ieee1275.rmk: Likewise.
22621 * conf/x86_64-efi.rmk: Likewise.
22622 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
22623 (usage): Fix strings to use `program_name'.
22624 (main): Initialize gettext.
22625 * util/grub-editenv.c: Likewise.
22626 * util/grub-emu.c: Likewise.
22627 * util/grub-fstest.c: Likewise.
22628 * util/grub-mkdevicemap.c: Likewise.
22629 * util/grub-mkfont.c: Likewise.
22630 * util/grub-mkrelpath.c: Likewise.
22631 * util/grub-pe2elf.c: Likewise.
22632 * util/grub-probe.c: Likewise.
22633 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
22634 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
22635 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22636
22637 * util/misc.c: Include `"progname.h"'.
22638 (progname): Remove variable.
22639 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
22640
6f61ed55
FZ
226412009-11-25 Felix Zielcke <fzielcke@z-51.de>
22642
22643 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
22644 printf and print a newline after the menuentry header line.
22645 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22646
f022876b
FZ
226472009-11-25 Felix Zielcke <fzielcke@z-51.de>
22648
22649 autoconf >= 2.60 support $(localedir).
22650
22651 * INSTALL: Note that autoconf 2.60 is required.
22652 * configure.ac (AC_PREREQ): Bump to 2.60.
22653 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
22654 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22655
6717926e
YB
226562009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
22657
22658 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
22659 aclocal is run.
22660
08806a54
RM
226612009-11-25 Robert Millan <rmh.grub@aybabtu.com>
22662
22663 * normal/main.c (grub_normal_read_line): Fix off-by-one
22664 buffer overflow.
22665
13b33fba
RM
226662009-11-25 Robert Millan <rmh.grub@aybabtu.com>
22667
22668 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
22669 "parser.grub" in grub_command_execute() call.
22670
4a8572e9
CPE
226712009-11-24 Carles Pina i Estany <carles@pina.cat>
22672
22673 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
22674 * conf/i386-efi.rmk: Likewise.
22675 * conf/i386-ieee1275.rmk: Likewise.
22676 * conf/i386-pc.rmk: Likewise.
22677 * conf/powerpc-ieee1275.rmk: Likewise.
22678 * conf/sparc64-ieee1275.rmk: Likewise.
22679 * conf/x86_64-efi.rmk: Likewise.
22680 * gettext/gettex.c: Include <grub/i18n.h>.
22681 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
22682 here ...
22683 * include/grub/i18n.h: ... to here
22684 * include/grub/i18n.h: ... to here.
22685 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 22686 (grub_gettext_dummy): Move above user.
4a8572e9 22687
bee48093
FZ
226882009-11-24 Felix Zielcke <fzielcke@z-51.de>
22689
22690 * util/Makefile.in (install-local): Convert a `for' into a normal
22691 shell expansion.
22692
a031e91c
RM
226932009-11-24 Robert Millan <rmh.grub@aybabtu.com>
22694
22695 * autogen.sh: Add automake call.
22696 * config.guess: Remove.
22697 * config.sub: Likewise.
22698 * install-sh: Likewise.
22699
26bec39d
FZ
227002009-11-24 Felix Zielcke <fzielcke@z-51.de>
22701
22702 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
22703
8e2532fd
FZ
227042009-11-24 Felix Zielcke <fzielcke@z-51.de>
22705
22706 * util/Makefile.in (install-local): Convert a make `$(foreach)'
22707 function to a normal shell `for'.
22708
fefa1b7d
FZ
227092009-11-24 Felix Zielcke <fzielcke@z-51.de>
22710
22711 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22712
4501250b
FZ
227132009-11-24 Felix Zielcke <fzielcke@z-51.de>
22714
22715 * util/grub-mkrelpath.c: New file.
22716 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
22717 (grub_mkrelpath_SOURCES): New variable.
22718 * include/grub/util/misc.h: New function prototype.
22719 * util/misc.c (make_system_path_relative_to_its_root): New function.
22720
22721 * util/grub-mkconfig_lib.in (bindir): New variable.
22722 (grub_mkrelpath): Likewise.
22723 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
22724
22725 * util/probe.c (probe): Make the file path relative to its root.
22726 Change a info message to use the GRUB path. Enable again the
22727 check if we can read the file with GRUB facilities.
22728
22729 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
22730 to its root.
22731
11d9778b
FZ
227322009-11-24 Felix Zielcke <fzielcke@z-51.de>
22733
22734 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
22735 platform.
22736
4465287d
FZ
227372009-11-24 Felix Zielcke <fzielcke@z-51.de>
22738
22739 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
22740 strncmp().
22741
62b47f22
FZ
227422009-11-24 Felix Zielcke <fzielcke@z-51.de>
22743
22744 * util/getroot.c (grub_util_is_dmraid): New function.
22745 (grub_util_get_dev_abstraction): Treat dmraid and multipath
22746 devices as normal ones, not as LVM.
22747
1eafb9b9 227482009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
22749
22750 * conf/common.rmk: Add grub-gettext_lib target and updates
22751 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
22752 LDFLAGS.
22753 * gettext/gettext.c: New file. (Reads mo files).
22754 * include/grub/file.h (grub_file_pread): New prototype.
22755 * include/grub/i18n.h (_): New prototype.
22756 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
22757 prototypes.
22758 * kern/misc.c (grub_gettext_dummy): New function.
22759 * normal/menu_text.c: Include <grub/i18n.h>.
22760 * normal/menu_text.c (print_timeout): Gettexttize string.
22761 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
22762 * po/POTFILES: Add `normal/menu_text.c'.
22763 * po/ca.po: Add new translations.
c3ea6bd4
CPE
22764 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
22765 gettext module and defines locale_dir and lang in grub.cfg.
22766 * NEWS: Add gettext support.
22767
0fdb2568
RM
227682009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22769
22770 * util/hostdisk.c: Include `<grub/i18n.h>'.
22771 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
22772 (make_device_name): Rewrite using asprintf.
22773 (convert_system_partition_to_system_disk): Replace 0 with NULL.
22774 (find_system_device): If a device is not found, generate one just
22775 by reusing the OS path name.
22776 (read_device_map): Make it permissible for device.map not to exist.
22777
f515aa62
RM
227782009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22779
22780 * script/sh/execute.c: Move from here ...
22781 * script/execute.c: ... to here. Update all users.
22782 * script/sh/function.c: Move from here ...
22783 * script/function.c: ... to here. Update all users.
22784 * script/sh/lexer.c: Move from here ...
22785 * script/lexer.c: ... to here. Update all users.
22786 * script/sh/main.c: Move from here ...
22787 * script/main.c: ... to here. Update all users.
22788 * script/sh/parser.y: Move from here ...
22789 * script/parser.y: ... to here. Update all users.
22790 * script/sh/script.c: Move from here ...
22791 * script/script.c: ... to here. Update all users.
22792
f84b481b
RM
227932009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22794
22795 * configure.ac: Detect all `emu' platforms. Define
22796 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
22797 --enable-grub-emu logic. Disable include/grub/machine
22798 symlink on `emu' platforms.
22799
22800 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
22801 * gensymlist.sh.in: Likewise.
22802
22803 * include/grub/i386/coreboot/machine.h: Remove file.
22804 * include/grub/i386/efi/machine.h: Likewise.
22805 * include/grub/i386/ieee1275/machine.h: Likewise.
22806 * include/grub/i386/pc/machine.h: Likewise.
22807 * include/grub/i386/qemu/machine.h: Likewise.
22808 * include/grub/powerpc/ieee1275/machine.h: Likewise.
22809 * include/grub/sparc64/ieee1275/machine.h: Likewise.
22810 * include/grub/x86_64/efi/machine.h: Likewise.
22811
22812 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
22813 * commands/halt.c: Likewise.
22814 * commands/reboot.c: Likewise.
22815 * include/grub/autoefi.h: Likewise.
22816 * include/grub/i386/at_keyboard.h: Likewise.
22817 * include/grub/i386/kernel.h: Likewise.
22818 * include/grub/i386/loader.h: Likewise.
22819 * include/grub/i386/pc/memory.h: Likewise.
22820 * kern/dl.c: Likewise.
22821 * kern/i386/coreboot/init.c: Likewise.
22822 * loader/i386/bsd.c: Likewise.
22823 * loader/i386/linux.c: Likewise.
22824 * loader/multiboot_loader.c: Likewise.
22825 * term/i386/pc/serial.c: Likewise.
22826 * term/usb_keyboard.c: Likewise.
22827
22828 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
22829 `<grub/machine/machine.h>'
22830 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
22831 * util/misc.c: Remove `<grub/machine/machine.h>' and
22832 `<grub/machine/time.h>'.
22833
22834 * Makefile.in (enable_grub_emu): Remove variable.
22835 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
22836
22837 * conf/any-emu.rmk: New file.
22838 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
22839 (grub_emu_init.c): Move from here ...
22840 * conf/any-emu.rmk: ... to here.
22841
22842 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
22843 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
22844 * conf/any-emu.rmk: ... to here.
22845
4efeab03
RM
228462009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22847
22848 * include/grub/parser.h (grub_parser_register): Document need
22849 of `name' parameter.
22850 * normal/main.c (grub_normal_read_line): Simplify prompt string.
22851 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
22852 "sh" to "grub".
22853
ea1dd8bf
RM
228542009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22855
22856 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
22857 `$(XGETTEXT)'.
22858 * include/grub/i18n.h (N_): New macro.
22859 * util/mkisofs/mkisofs.h: Likewise.
22860 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
22861 around N_().
22862 (usage): Use gettext() to translate help strings when printing them.
22863
0c140626
RM
228642009-11-23 Robert Millan <rmh.grub@aybabtu.com>
22865
22866 Based on patch from Bean
22867 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
22868
22869 * video/efi_fb.c: New file.
22870 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
22871 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
22872 variables.
22873 * conf/x86_64-efi.rmk: Likewise.
22874
87d58298
RM
228752009-11-22 Robert Millan <rmh.grub@aybabtu.com>
22876
22877 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
22878 * util/i386/pc/grub-setup.c: Likewise.
22879
994cc3a3
ST
228802009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22881
22882 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
22883 <hurd/fs.h>
22884 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
22885 file_get_storage_info to implement grub_guess_root_device.
22886
26a61d6a
FZ
228872009-11-21 Felix Zielcke <fzielcke@z-51.de>
22888
22889 * Makefile.in (target): Use make's builtin $(shell) function
22890 instead of calling directly $(SHELL) to create the locale directories,
22891 inside the $(foreach) function.
22892
74ff1dd5
FZ
228932009-11-21 Felix Zielcke <fzielcke@z-51.de>
22894
22895 * util/grub-mkrescue.in: Print an error and usage if output option
22896 has not been given.
22897
0b787d0e
FZ
228982009-11-21 Felix Zielcke <fzielcke@z-51.de>
22899
22900 Patch from Loïc Minier <loic.minier@ubuntu.com>.
22901 * util/grub.d/30_os-prober.in: Cope with Linux entries where
22902 root and /boot are on different devices.
22903
1164b270
RM
229042009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22905
22906 Fix build for srcdir != objdir.
22907
22908 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
22909 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
22910 $(srcdir).
22911 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
22912 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
22913 reference for input.
22914
13774a2f
RM
229152009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22916
22917 * util/grub-mkrescue.in: Use source directory direcly (without copiing
22918 or hardlinking it). Remove -J option, Joliet is not compatible with
22919 multiple source directories.
22920
efda854e
RM
229212009-11-21 Carles Pina i Estany <carles@pina.cat>
229222009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22923
22924 * util/grub-mkrescue.in: Recognize `--override-directory' option.
22925 (process_input_dir): New function. Process an arbitrary input
22926 directory.
22927 Misc adjustments to support both "override mode" and system-wide mode.
22928
6c09890c
FZ
229292009-11-20 Felix Zielcke <fzielcke@z-51.de>
22930
22931 * configure.ac (UNIFONT_BDF): Rename to ...
22932 (FONT_SOURCE): ... this. Update all users.
22933
a797824f
FZ
229342009-11-20 Felix Zielcke <fzielcke@z-51.de>
22935
22936 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
22937 to the list of unifont files to look for.
22938
cd4f42b0
RM
229392009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22940
22941 Patch from Joe Auricchio <jauricchio@gmail.com>
22942 * commands/minicmd.c (grub_mini_cmd_clear): New function.
22943 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
22944 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
22945
393c783d
FZ
229462009-11-19 Felix Zielcke <fzielcke@z-51.de>
22947
22948 * Makefile.in (install-local): Add a missing backslash.
22949
b2f1e327
FZ
229502009-11-19 Felix Zielcke <fzielcke@z-51.de>
22951
22952 * include/grub/x86_64/io.h: New file.
22953
f577f7a0
RM
229542009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22955
22956 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
22957 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
22958 Include `"progname.h"'.
22959 (main): Initialize gettext.
22960 * util/i386/pc/grub-setup.c: Gettexttize.
22961 * util/i386/pc/grub-mkimage.c: Likewise.
22962
22963 * Makefile.in (po/*.po): Redefine as ...
22964 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
22965
3bc7896c
RM
22966 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
22967
c37943b6
RM
229682009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22969
22970 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
22971 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
22972 (program_name): Remove.
22973 (main): Initialize gettext support.
6323f705
RM
22974 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
22975 Include `<libintl.h>'.
22976 (_): New macro.
c37943b6
RM
22977
22978 * util/mkisofs/eltorito.c: Gettexttize.
22979 * util/mkisofs/joliet.c: Likewise.
22980 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
22981 * util/mkisofs/multi.c: Likewise.
22982 * util/mkisofs/rock.c: Likewise.
22983 * util/mkisofs/tree.c: Likewise.
22984 * util/mkisofs/write.c: Likewise.
22985
3bc7896c
RM
22986 * po/POTFILES: Update with new files.
22987
5ce77c6e
RM
229882009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22989
22990 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
22991 * util/mkisofs/iso9660.h: Likewise.
22992 * util/mkisofs/joliet.c: Likewise.
22993 * util/mkisofs/mkisofs.c: Likewise.
22994 * util/mkisofs/mkisofs.h: Likewise.
22995 * util/mkisofs/rock.c: Likewise.
22996 * util/mkisofs/tree.c: Likewise.
22997 * util/mkisofs/write.c: Likewise.
22998
22999 * util/mkisofs/eltorito.c (rcsid): Remove.
23000 * util/mkisofs/hash.c: Likewise.
23001 * util/mkisofs/joliet.c: Likewise.
23002 * util/mkisofs/name.c: Likewise.
23003 * util/mkisofs/rock.c: Likewise.
23004 * util/mkisofs/tree.c: Likewise.
23005 * util/mkisofs/write.c: Likewise.
23006
1dabbc77
RM
230072009-11-18 Robert Millan <rmh.grub@aybabtu.com>
23008
23009 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
23010 instead of static allocation.
23011 * util/mkisofs/match.h: Likewise.
23012
633877cb
RM
230132009-11-18 Robert Millan <rmh.grub@aybabtu.com>
23014
3bc7896c
RM
23015 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
23016 and `util/grub.d/10_linux.in'.
633877cb
RM
23017 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
23018 translatable Shell files.
23019
af1c0c85
RM
230202009-11-18 Robert Millan <rmh.grub@aybabtu.com>
23021
23022 * Makefile.in ($(srcdir)/aclocal.m4): New target.
23023
769ae37b
RM
230242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23025
23026 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 23027 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
23028 * util/grub.d/10_kfreebsd.in (bindir): New variable.
23029 Add gettext initialization.
23030 (kfreebsd_entry): Make menuentry output translatable.
23031
230322009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23033
23034 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
23035 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
23036 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
23037 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
23038 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 23039 * po/LINGUAS: New file.
769ae37b
RM
23040
230412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23042
23043 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
23044 other things).
23045 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
23046 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
23047 bindtextdomain() calls for gettext initialization.
23048
230492009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23050
23051 * gnulib/progname.c: New file (imported from Gnulib).
23052 * gnulib/progname.h: Likewise.
23053 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
23054 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
23055 (usage): Replace `progname' with `program_name'.
23056 (main): Use set_program_name() for program name initialization.
23057
230582009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23059
23060 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
23061 from here ...
23062 * Makefile.in (CPPFLAGS): ... to here.
23063
230642009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23065
23066 * aclocal.m4: Move from here ...
23067 * acinclude.m4: ... to here.
23068 * autogen.sh: Add call to `aclocal'.
23069 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
23070
230712009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23072
23073 * Makefile.in (CLEANFILES): Add `po/*.mo'.
23074 (LINGUAS): New variable.
23075 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
23076 (install-local): Install MO files.
23077 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
23078 * include/grub/i18n.h: New file.
3bc7896c
RM
23079 * po/POTFILES: New file.
23080 * po/ca.po: New file.
769ae37b
RM
23081 * util/grub.d/10_linux.in (bindir): New variable.
23082 Add gettext initialization.
23083 (linux_entry): Make menuentry output translatable.
23084 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
23085 (usage): Make --help output translatable.
23086 (main): Initialize gettext.
23087
02c0a6ad
RM
230882009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23089
23090 * import_gcry.py: New file (written by Vladimir with minor
23091 adjustments).
23092 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
23093 ciphers.
23094 * INSTALL: Document that Python is required for bootstrap.
23095
230962009-11-17 Robert Millan <rmh.grub@aybabtu.com>
23097
23098 Import ciphers from libgcrypt 1.4.4.
23099
23100 * lib/libgcrypt/cipher/ChangeLog
23101 * lib/libgcrypt/cipher/ac.c
23102 * lib/libgcrypt/cipher/arcfour.c
23103 * lib/libgcrypt/cipher/bithelp.h
23104 * lib/libgcrypt/cipher/blowfish.c
23105 * lib/libgcrypt/cipher/camellia-glue.c
23106 * lib/libgcrypt/cipher/camellia.c
23107 * lib/libgcrypt/cipher/camellia.h
23108 * lib/libgcrypt/cipher/cast5.c
23109 * lib/libgcrypt/cipher/cipher.c
23110 * lib/libgcrypt/cipher/crc.c
23111 * lib/libgcrypt/cipher/des.c
23112 * lib/libgcrypt/cipher/dsa.c
23113 * lib/libgcrypt/cipher/ecc.c
23114 * lib/libgcrypt/cipher/elgamal.c
23115 * lib/libgcrypt/cipher/hash-common.c
23116 * lib/libgcrypt/cipher/hash-common.h
23117 * lib/libgcrypt/cipher/hmac-tests.c
23118 * lib/libgcrypt/cipher/md.c
23119 * lib/libgcrypt/cipher/md4.c
23120 * lib/libgcrypt/cipher/md5.c
23121 * lib/libgcrypt/cipher/primegen.c
23122 * lib/libgcrypt/cipher/pubkey.c
23123 * lib/libgcrypt/cipher/rfc2268.c
23124 * lib/libgcrypt/cipher/rijndael-tables.h
23125 * lib/libgcrypt/cipher/rijndael.c
23126 * lib/libgcrypt/cipher/rmd.h
23127 * lib/libgcrypt/cipher/rmd160.c
23128 * lib/libgcrypt/cipher/rsa.c
23129 * lib/libgcrypt/cipher/seed.c
23130 * lib/libgcrypt/cipher/serpent.c
23131 * lib/libgcrypt/cipher/sha1.c
23132 * lib/libgcrypt/cipher/sha256.c
23133 * lib/libgcrypt/cipher/sha512.c
23134 * lib/libgcrypt/cipher/tiger.c
23135 * lib/libgcrypt/cipher/twofish.c
23136 * lib/libgcrypt/cipher/whirlpool.c
23137
af2f93ac
RM
231382009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23139
23140 Fix build for systems without error().
23141
23142 * gnulib/error.c: New file (imported from Gnulib).
23143 * gnulib/error.h: Likewise.
23144 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
23145 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
23146 (this variable is now used by error()).
23147
73fb3dd5
FZ
231482009-11-16 Felix Zielcke <fzielcke@z-51.de>
23149
814f5e96
FZ
23150 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
23151 instead of relying that char is signed.
73fb3dd5 23152
a691ca33
VS
231532009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
23154
23155 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
23156 blocksize different from specified.
23157 (grub_pxefs_read): Likewise.
23158
2af8f0f4
FZ
231592009-11-16 Felix Zielcke <fzielcke@z-51.de>
23160
23161 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
23162
23163 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
23164 (grub_ata_readwrite): Likewise. Update 2 format strings.
23165 (grub_atapi_read): Likewise.
23166
23167 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
23168 * conf/i386.rmk (pkglib_MODULES): ... to here ...
23169 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
23170 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
23171 (ata_mod_LDFLAGS): Move from here ...
23172 * conf/i386.rmk: ... to here ...
23173 * conf/x86_64-efi.rmk: ... and here.
23174 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
23175 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
23176
83bdecaf
RM
231772009-11-16 Robert Millan <rmh.grub@aybabtu.com>
23178
23179 Relicense multiboot.h, with RMS' blessing.
23180
23181 * include/multiboot.h: Change to X11 license.
23182
fd6fd3d7
RM
231832009-11-15 Robert Millan <rmh.grub@aybabtu.com>
23184
23185 Support --version in grub-mkisofs.
23186
23187 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
23188 (OPTION_VERSION): New macro.
23189 (ld_options): Recognize --version.
23190 (usage): Move `program_name' from here ...
23191 (program_name): ... to here. Add `static' qualifier.
23192 (main): Recognize `OPTION_VERSION'.
23193
16a88c49
FZ
231942009-11-15 Felix Zielcke <fzielcke@z-51.de>
23195
23196 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
23197 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
23198
a4158476
RM
231992009-11-14 Robert Millan <rmh.grub@aybabtu.com>
23200
23201 Fix help2man generation for mkisofs.
23202
23203 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
23204 (usage): Send output to stdout (rather than stderr).
23205
fc2208b0
RM
232062009-11-14 Robert Millan <rmh.grub@aybabtu.com>
23207
23208 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
23209 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
23210 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
23211 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
23212 (bin_SCRIPTS): Add `grub-mkfloppy'.
23213 (grub_mkfloppy_SOURCES): New variable.
23214
23215 * util/grub-mkrescue.in: New file.
23216 * util/i386/pc/grub-mkfloppy.in: New file.
23217
23218 * util/i386/coreboot/grub-mkrescue.in: Remove.
23219 * util/i386/pc/grub-mkrescue.in: Remove.
23220
8d0edf4a
RM
232212009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23222
23223 * include/grub/multiboot.h (struct grub_multiboot_header): Move
23224 from here ...
23225 * include/multiboot.h (struct multiboot_header): ... to here. Update
23226 all users.
23227 * include/grub/multiboot.h (struct grub_multiboot_info): Move
23228 from here ...
23229 * include/multiboot.h (struct multiboot_info): ... to here. Update
23230 all users.
23231 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
23232 from here ...
23233 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
23234 Update all users.
23235 * include/grub/multiboot.h (struct grub_mod_list): Move
23236 from here ...
23237 * include/multiboot.h (struct multiboot_mod_list): ... to here.
23238 Update all users.
23239
a73f5969
RM
232402009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23241
23242 * include/multiboot2.h (multiboot_word): Rename from this ...
23243 (multiboot2_word): ... to this. Update all users.
23244 (multiboot_header): Rename from this ...
23245 (multiboot2_header): ... to this. Update all users.
23246 (multiboot_tag_header): Rename from this ...
23247 (multiboot2_tag_header): ... to this. Update all users.
23248 (multiboot_tag_start): Rename from this ...
23249 (multiboot2_tag_start): ... to this. Update all users.
23250 (multiboot_tag_name): Rename from this ...
23251 (multiboot2_tag_name): ... to this. Update all users.
23252 (multiboot_tag_module): Rename from this ...
23253 (multiboot2_tag_module): ... to this. Update all users.
23254 (multiboot_tag_memory): Rename from this ...
23255 (multiboot2_tag_memory): ... to this. Update all users.
23256 (multiboot_tag_unused): Rename from this ...
23257 (multiboot2_tag_unused): ... to this. Update all users.
23258 (multiboot_tag_end): Rename from this ...
23259 (multiboot2_tag_end): ... to this. Update all users.
23260
1c8927f0
RM
232612009-11-13 Robert Millan <rmh.grub@aybabtu.com>
23262
23263 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
23264 this platform we should support Multiboot1 first.
23265
23266 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23267 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
23268 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
23269
6e1e0d89
RM
232702009-11-12 Robert Millan <rmh.grub@aybabtu.com>
23271
23272 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
23273 of write calls (converting them to fwrite() if they aren't already).
23274 (get_torito_desc): Likewise.
23275 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
23276
7f2b34d8
RM
232772009-11-12 Robert Millan <rmh.grub@aybabtu.com>
23278
23279 * util/i386/pc/grub-install.in: Move from here ...
23280 * util/grub-install.in: ... to here. Update all users.
23281
c0ef3311
CW
232822009-11-11 Colin Watson <cjwatson@ubuntu.com>
23283
23284 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
23285
e1f240ff
RM
232862009-11-11 Robert Millan <rmh.grub@aybabtu.com>
23287
23288 Support for El Torito without floppy emulation.
23289
23290 * util/mkisofs/eltorito.c: Include `<errno.h>'.
23291 (init_boot_catalog): Improve error handling.
23292 (get_torito_desc): Don't use floppy emulation unless requested by
23293 user. Patch boot information table when requested via
23294 `-boot-info-table'.
23295 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
23296 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
23297 (use_boot_info_table): New variables.
23298 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
23299 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
23300 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
23301 `--eltorito-emul-floppy'.
23302 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
23303 and `OPTION_ELTORITO_EMUL_FLOPPY'.
23304 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
23305 (use_boot_info_table, get_731): New prototypes.
23306 * util/mkisofs/write.c (get_731): New function.
23307
af7d4de5
FZ
233082009-11-11 Felix Zielcke <fzielcke@z-51.de>
23309
23310 Fix the generation of the man page.
23311
23312 * util/pc/i386/grub-install.in: Source
23313 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
23314
2c55dbc0
RM
233152009-11-11 Robert Millan <rmh.grub@aybabtu.com>
23316
23317 Large file support for grub-mkisofs.
23318
23319 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
23320 * util/mkisofs/mkisofs.c (next_extent, last_extent)
23321 (session_start): Upgrade type to `uint64_t'. Update all users.
23322 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
23323 (struct directory_entry): Upgrade type of `starting_block' and
23324 `size' to `uint64_t'. Update all users.
23325 (struct deferred): Remove unused structure.
23326 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
23327 Update all users.
23328 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
23329 file is larger than `UINT32_MAX'.
23330 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
23331 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
23332 return value.
23333 (struct deferred_write): Upgrade type of `extent' and `size' to
23334 `uint64_t'. Update all users.
23335 (last_extent_written): Upgrade type to `uint64_t'. Update all
23336 users.
23337 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
23338 Update all users. Upgrade type of `remain' to `int64_t' and
23339 `use' to `size_t'. Use error() to handle fread() errors.
23340 (write_files): Rely on write_one_file() rather than calling
23341 xfwrite() directly.
23342
6a9cead5
FZ
233432009-11-09 Felix Zielcke <fzielcke@z-51.de>
23344
23345 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
23346
4825d790
RM
233472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23348
23349 * util/mkisofs/fnmatch.c: Remove.
23350 * util/mkisofs/getopt1.c: Likewise.
23351 * util/mkisofs/getopt.c: Likewise.
23352 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
23353 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
23354 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
23355 `gnulib/getopt1.c' and `gnulib/getopt.c'.
23356 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
23357
23358 * configure.ac: Detect `mingw32msvc' host_os.
23359 Check for lstat(), getuid() and getgid().
23360
23361 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
23362 instances of `u_char' with `uint8_t'.
23363
23364 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
23365 [!HAVE_GETUID] (getuid): New function (stub).
23366 [!HAVE_GETGID] (getgid): Likewise.
23367 [!HAVE_LSTAT] (lstat): Likewise.
23368 [!S_IROTH] (S_IROTH): New macro (dummy).
23369 [!S_IRGRP] (S_IRGRP): Likewise.
23370
84b860d8
RM
233712009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23372
23373 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
23374 conditional expression).
23375
66e9b712
RM
233762009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23377
23378 Import from Gnulib.
23379
23380 * gnulib/fnmatch.c: New file.
23381 * gnulib/fnmatch.h: Likewise.
23382 * gnulib/fnmatch_loop.c: Likewise.
23383 * gnulib/getopt.c: Likewise.
23384 * gnulib/getopt.h: Likewise.
23385 * gnulib/getopt1.c: Likewise.
23386 * gnulib/getopt_int.h: Likewise.
23387 * gnulib/gettext.h: Likewise.
23388
34f4a5b0
RM
233892009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23390
23391 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
23392 * normal/handler.c (read_handler_list): Likewise.
23393
ac451143
RM
233942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23395
23396 Misc cleanup.
23397
23398 * kern/command.c (grub_register_command_prio): Use
23399 grub_zalloc() instead of explicitly zeroing data.
23400 * kern/list.c: Include `<grub/mm.h>'.
23401 (grub_named_list_find): Replace `0' with `NULL'.
23402 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
23403 (fs_module_list): Change type to `grub_named_list_t'. Update all
23404 users.
23405 * normal/dyncmd.c (read_command_list): Add space between function
23406 call and parenthesis.
23407 * normal/handler.c (read_handler_list): Likewise.
23408
4089b167
RM
234092009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23410
23411 * normal/auth.c (punishment_delay): Moved from here ...
23412 (grub_auth_strcmp): ... to here (inside function).
23413
325f5037
RM
234142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23415
23416 * include/grub/list.h (struct grub_named_list): Remove `const'
23417 qualifier from `name'.
23418 (struct grub_prio_list): Likewise.
23419
7aea29a3
RM
234202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23421
23422 * normal/auth.c: Include `<grub/time.h>'.
23423 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
23424
3fd6f044
RM
234252009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23426
23427 * normal/auth.c (punishment_delay): New variable.
23428 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
23429 (grub_auth_check_authentication): Punish failed login attempts with
23430 an incremental (2^N) delay.
23431
a4cd68e4
RM
234322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23433
23434 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
23435 path with $(srcdir).
23436
7ad12f43
VS
234372009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
23438
23439 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
23440
c1129f03
RM
234412009-11-09 Robert Millan <rmh.grub@aybabtu.com>
23442
23443 * util/i386/coreboot/grub-mkrescue.in: New file.
23444 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
23445 variables.
23446
23447 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
23448 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
23449 * configure.ac: Add header and function checks to satisfy grub-mkisofs
23450 requirements.
23451 * util/mkisofs/defaults.h: New file.
23452 * util/mkisofs/eltorito.c: Likewise.
23453 * util/mkisofs/exclude.h: Likewise.
23454 * util/mkisofs/fnmatch.c: Likewise.
23455 * util/mkisofs/getopt.c: Likewise.
23456 * util/mkisofs/getopt1.c: Likewise.
23457 * util/mkisofs/hash.c: Likewise.
23458 * util/mkisofs/include/fctldefs.h: Likewise.
23459 * util/mkisofs/include/mconfig.h: Likewise.
23460 * util/mkisofs/include/prototyp.h: Likewise.
23461 * util/mkisofs/include/statdefs.h: Likewise.
23462 * util/mkisofs/iso9660.h: Likewise.
23463 * util/mkisofs/joliet.c: Likewise.
23464 * util/mkisofs/match.c: Likewise.
23465 * util/mkisofs/match.h: Likewise.
23466 * util/mkisofs/mkisofs.c: Likewise.
23467 * util/mkisofs/mkisofs.h: Likewise.
23468 * util/mkisofs/multi.c: Likewise.
23469 * util/mkisofs/name.c: Likewise.
23470 * util/mkisofs/rock.c: Likewise.
23471 * util/mkisofs/tree.c: Likewise.
23472 * util/mkisofs/write.c: Likewise.
23473
ec8bb77d
VS
234742009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
23477 being insecure.
23478
3716b12c
RM
234792009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23480
23481 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
23482 `grub-mkimage' (and use $0 when possible).
23483
b97b7b91
RM
234842009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23485
23486 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
23487 error message for excessively large memory map.
23488
04114812
RM
234892009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23490
23491 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
23492 executable bit.
23493
e4eb2373
RM
234942009-11-08 Robert Millan <rmh.grub@aybabtu.com>
23495
23496 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
23497 message for coreboot users.
23498
c926e1d5 234992009-11-07 Robert Millan <rmh.grub@aybabtu.com>
23500
23501 Fix build with GNU gold.
23502
23503 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
23504 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
23505 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
23506 link addresses.
23507 * aclocal.m4: Likewise.
23508
86e5b1db 235092009-11-04 Felix Zielcke <fzielcke@z-51.de>
23510
23511 * configure.ac (AC_PREREQ): Bump to 2.59d.
23512 * INSTALL: Make it more clear when Autoconf and Ruby are
23513 needed and when to run `./autogen.sh'.
23514
246cd78f 235152009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23516
23517 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
23518 OSes.
23519
4f9dfb37 235202009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23521
23522 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
23523
b82bd5e1 235242009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23525
23526 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
23527 giving it to GNU Mach.
23528
ff1a9bca 235292009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23530
23531 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
23532 GNU partition number to get internal GRUB partition number.
23533
61697d9c 235342009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
23535
23536 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
23537 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
23538
a50569e1 235392009-11-01 Robert Millan <rmh.grub@aybabtu.com>
23540
23541 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
23542 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
23543 case.
23544
5b153867 235452009-11-01 Felix Zielcke <fzielcke@z-51.de>
23546
23547 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
23548
d9e2cd70 235492009-10-30 Robert Millan <rmh.grub@aybabtu.com>
23550
23551 Fix build problem.
23552
23553 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
23554 `-isystem=$(srcdir)/include'.
23555
805111a4 235562009-10-30 Robert Millan <rmh.grub@aybabtu.com>
23557
23558 * util/i386/pc/grub-install.in: Remove hint that device.map should be
23559 checked (grub-install doesn't currently rely on it).
23560
fa6e945f 235612009-10-29 Robert Millan <rmh.grub@aybabtu.com>
23562
23563 Revert SVN r2660.
23564
23565 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
23566 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
23567 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
23568 * conf/i386-ieee1275.rmk: Likewise.
23569 * conf/i386-pc.rmk: Likewise.
23570 * conf/powerpc-ieee1275.rmk: Likewise.
23571 * conf/sparc64-ieee1275.rmk: Likewise.
23572 * conf/x86_64-efi.rmk: Likewise.
23573
cee15086 235742009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23575
23576 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
23577
95b9239e 235782009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23579
23580 * include/grub/misc.h: Stop checking for APPLE_CC.
23581
2ed19dfd 235822009-10-28 Robert Millan <rmh.grub@aybabtu.com>
23583
23584 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
23585 doesn't cause an infinite call loop.
23586
fdcdde19 235872009-10-28 Felix Zielcke <fzielcke@z-51.de>
23588
23589 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
23590 strings.
23591
cefabfe1 235922009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23593
23594 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
23595 variable.
23596 * Makefile.in: Likewise.
23597
ed96ab6d 235982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23599
23600 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
23601
0579b753 236022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23603
23604 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
23605
478df409 236062009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23607
23608 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
23609
083d1679 236102009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23611
23612 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
23613 from here ...
23614 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
23615
5947ae32 236162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23617
23618 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
23619 in $(MAKEINFO) invocation. This makes it clear in output that
23620 errors are being ignored.
23621
94180ff6 236222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23623
23624 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
23625 from here ...
23626 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
23627 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
23628 * conf/i386-ieee1275.rmk: Likewise.
23629 * conf/i386-pc.rmk: Likewise.
23630 * conf/powerpc-ieee1275.rmk: Likewise.
23631 * conf/sparc64-ieee1275.rmk: Likewise.
23632 * conf/x86_64-efi.rmk: Likewise.
23633
9031b03a 236342009-10-26 Colin Watson <cjwatson@ubuntu.com>
23635
23636 * util/grub-editenv.c (main): If only a command is given, use
23637 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
23638 (usage): FILENAME is now optional and has a default.
23639
e4f6809b 236402009-10-26 Colin Watson <cjwatson@ubuntu.com>
23641
23642 Improve grub-mkconfig performance when there are several menu
23643 entries on a single filesystem.
23644
23645 * util/grub.d/10_linux.in (linux_entry): Cache the output of
23646 prepare_grub_to_access_device.
23647 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23648 * util/grub.d/30_os-prober.in: Likewise.
23649
67937d4d 236502009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23651
23652 * util/grub.d/10_freebsd.in: Remove.
23653 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
23654 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
23655
ee3756cc 236562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
23657
5c35048e 23658 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 23659
4dea1c6f 236602009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23661
23662 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
23663 grub_util_error() call.
23664
042484d7 236652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23666
23667 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
23668 `reserved_first_sector' member.
23669 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
23670 `reserved_first_sector' to 1.
23671 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
23672 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
23673 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
23674 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
23675 filesystems which begin at first sector.
23676 (options): New option --skip-fs-probe.
23677 (main): Handle --skip-fs-probe and pass it to setup().
23678
d64448a7 236792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23680
23681 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
23682 (memset): Fix function prototype.
23683
508d42ec 236842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
236852009-10-25 Vasily Averin <vvs@parallels.com>
23686
23687 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
23688 `dirent.direntlen == 0'.
23689
b240e30c 236902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23691
23692 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
23693 `cpio'.
23694 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
23695
346e7fbe 236962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23697
23698 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
23699 `__trampoline_setup' and `__ucmpdi2'.
23700 * include/grub/powerpc/libgcc.h: Only export symbols for functions
23701 that libgcc provides.
23702
cdb308b0 237032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23704
23705 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
23706 * include/grub/sparc64/libgcc.h (memset): Likewise.
23707 * include/grub/misc.h (memset, memcmp): New function prototypes.
23708
fb26abc2 237092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23710
23711 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
23712 `cpio'.
23713 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
23714
f6693890 237152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
23716
23717 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
23718 * docs/grub.cfg: Compensate for recent change in multiboot
23719 loader (since 2009-08-14 it won't pass filename to payload).
23720 * util/grub.d/10_hurd.in: Likewise.
23721
0933cdc0 237222009-10-21 Felix Zielcke <fzielcke@z-51.de>
23723
23724 * config.guess: Update to latest version from config git
23725 repository.
23726 * config.sub: Likewise.
23727
3b2fe8c2 237282009-10-20 Robert Millan <rmh.grub@aybabtu.com>
23729
23730 Fix build on sparc64.
23731
23732 * configure.ac: Perform checks for libgcc symbols before
23733 adding `-nostdlib' to LDFLAGS.
23734
46695a62 237352009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
23736
23737 Let user specify OpenBSD root device.
23738
23739 * loader/i386/bsd.c (openbsd_root): New variable.
23740 (openbsd_opts): New option 'root'.
23741 (OPENBSD_ROOT_ARG): New macro.
23742 (grub_openbsd_boot): Use 'openbsd_root'.
23743 (grub_cmd_openbsd): Fill 'openbsd_root'.
23744
d2b6b7fc 237452009-10-16 Robert Millan <rmh.grub@aybabtu.com>
23746
23747 * NEWS: Misc adjustments.
23748
421bd7ac 237492009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
23750
23751 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
23752
f1d29d87 237532009-10-16 Robert Millan <rmh.grub@aybabtu.com>
23754
23755 * configure.ac: Bump version to 1.97.
23756
6f3cd880 237572009-10-16 Colin Watson <cjwatson@ubuntu.com>
23758
23759 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
23760 -mno-3dnow on x86 architectures. Some toolchains enable these
23761 features by default, but they rely on registers that aren't enabled
23762 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
23763
035f7122 237642009-10-15 Robert Millan <rmh.grub@aybabtu.com>
23765
23766 Make entry text a bit more readable.
23767
23768 * util/grub.d/10_linux.in: Add `with' before `Linux'.
23769
44998e58 237702009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23771
23772 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
23773
cd2851b3 237742009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
23777 operations.
23778
c6f3b249 237792009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23780
23781 * configure.ac: Add missing dollar.
23782
6b5886ba 237832009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
23784
23785 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
23786
23787 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
23788 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
23789 exports.
23790 * include/grub/sparc64/libgcc.h: Likewise. Use
23791 preprocessor conditionals.
23792
e9d66f6d 237932009-10-14 Robert Millan <rmh.grub@aybabtu.com>
23794
23795 * conf/common.rmk (grub-dumpbios): Remove rule.
23796 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
23797 * util/grub-dumpbios.in: Remove file.
23798
9155bc17 237992009-10-14 Robert Millan <rmh.grub@aybabtu.com>
23800
23801 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
23802 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
23803
23804 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
23805 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
23806 users.
23807
23808 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
23809 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
23810 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
23811 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
23812 users.
23813
bf7f7a18 238142009-10-12 Robert Millan <rmh.grub@aybabtu.com>
23815
23816 * term/tparm.c: Switch to GPLv3.
23817
86564c26 238182009-10-09 Robert Millan <rmh.grub@aybabtu.com>
23819
23820 * include/grub/i386/cpuid.h: Add header protection.
23821
5c936493 238222009-10-09 Robert Millan <rmh.grub@aybabtu.com>
23823
23824 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
23825
23826 * include/grub/i386/cpuid.h: New file.
23827 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
23828 (has_longmode): Rename to ...
23829 (grub_cpuid_has_longmode): ... this. Update all users. Remove
23830 `static' attribute.
23831 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
23832 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
23833 on a CPU that doesn't implement AMD64 instruction set.
23834
186e7cf2 238352009-10-06 Colin Watson <cjwatson@ubuntu.com>
23836
23837 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
23838 that version.texi is rebuilt on version number changes.
23839
83b65c4a 238402009-10-06 Colin Watson <cjwatson@ubuntu.com>
23841
23842 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
23843 Fixes bug #27602.
23844
d244281c 238452009-10-06 Colin Watson <cjwatson@ubuntu.com>
23846
23847 * util/i386/pc/grub-install.in: Source
23848 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
23849 that the --grub-probe option will work.
23850 * util/sparc64/ieee1275/grub-install.in: Likewise.
23851
da25306d 238522009-10-05 Robert Millan <rmh.grub@aybabtu.com>
23853
23854 * configure.ac: Bump version to 1.97~beta4.
23855
e8ee83c0 238562009-10-03 Robert Millan <rmh.grub@aybabtu.com>
23857
23858 Resync grub-mkdevicemap in x86_64-efi.
23859
23860 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
23861 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
23862 `util/devicemap.c'.
23863
50dcabcf 238642009-10-01 Colin Watson <cjwatson@ubuntu.com>
23865
23866 * util/grub-editenv.c (create_envblk_file): Write new block with a
23867 .new suffix and then rename it into place, to ensure atomic
23868 creation.
23869
0e51c3a7 238702009-09-28 Robert Millan <rmh.grub@aybabtu.com>
23871
23872 Do not automatically install headers.
23873
23874 * Makefile.in (include_DATA): Remove. Update all users.
23875
31299a95 238762009-09-26 Robert Millan <rmh.grub@aybabtu.com>
23877
23878 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
23879 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
23880
23881 * util/osdetect.lua: Remove.
23882 * script/lua/lauxlib.c: Likewise.
23883 * script/lua/ldebug.c: Likewise.
23884 * script/lua/grub_main.c: Likewise.
23885 * script/lua/lauxlib.h: Likewise.
23886 * script/lua/ldebug.h: Likewise.
23887 * script/lua/ltablib.c: Likewise.
23888 * script/lua/liolib.c: Likewise.
23889 * script/lua/lstrlib.c: Likewise.
23890 * script/lua/lualib.h: Likewise.
23891 * script/lua/ldo.c: Likewise.
23892 * script/lua/ldump.c: Likewise.
23893 * script/lua/ldo.h: Likewise.
23894 * script/lua/loslib.c: Likewise.
23895 * script/lua/lundump.c: Likewise.
23896 * script/lua/grub_lib.c: Likewise.
23897 * script/lua/ldblib.c: Likewise.
23898 * script/lua/lundump.h: Likewise.
23899 * script/lua/lmem.c: Likewise.
23900 * script/lua/grub_lib.h: Likewise.
23901 * script/lua/lmathlib.c: Likewise.
23902 * script/lua/lstate.c: Likewise.
23903 * script/lua/ltm.c: Likewise.
23904 * script/lua/lvm.c: Likewise.
23905 * script/lua/lmem.h: Likewise.
23906 * script/lua/lstate.h: Likewise.
23907 * script/lua/ltm.h: Likewise.
23908 * script/lua/ltable.c: Likewise.
23909 * script/lua/lvm.h: Likewise.
23910 * script/lua/llex.c: Likewise.
23911 * script/lua/lgc.c: Likewise.
23912 * script/lua/grub_lua.h: Likewise.
23913 * script/lua/loadlib.c: Likewise.
23914 * script/lua/lfunc.c: Likewise.
23915 * script/lua/lopcodes.c: Likewise.
23916 * script/lua/lparser.c: Likewise.
23917 * script/lua/ltable.h: Likewise.
23918 * script/lua/llex.h: Likewise.
23919 * script/lua/lgc.h: Likewise.
23920 * script/lua/lfunc.h: Likewise.
23921 * script/lua/lbaselib.c: Likewise.
23922 * script/lua/lopcodes.h: Likewise.
23923 * script/lua/lparser.h: Likewise.
23924 * script/lua/lzio.c: Likewise.
23925 * script/lua/linit.c: Likewise.
23926 * script/lua/lobject.c: Likewise.
23927 * script/lua/llimits.h: Likewise.
23928 * script/lua/lstring.c: Likewise.
23929 * script/lua/lzio.h: Likewise.
23930 * script/lua/lapi.c: Likewise.
23931 * script/lua/lcode.c: Likewise.
23932 * script/lua/lua.h: Likewise.
23933 * script/lua/lobject.h: Likewise.
23934 * script/lua/lstring.h: Likewise.
23935 * script/lua/lapi.h: Likewise.
23936 * script/lua/lcode.h: Likewise.
23937 * script/lua/luaconf.h: Likewise.
23938
cb8a2c38 239392009-09-26 Colin Watson <cjwatson@ubuntu.com>
23940
23941 * docs/grub.texi (Command-line and menu entry commands): Document
23942 date and echo commands.
23943
6b9b6276 239442009-09-24 Pavel Roskin <proski@gnu.org>
23945
23946 * include/grub/kernel.h (struct grub_module_header): Remove
23947 `grub_module_header_types'. Make `type' unsigned. Make `size'
23948 32-bit on all platforms.
23949 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
23950 8-bit field. Use grub_host_to_target32() for `size'.
23951 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
23952 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
23953 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
23954
4e5a02a7 239552009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23956
23957 Fix "lost keypress" bug in at_keyboard.
23958
23959 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
23960 Checks for readyness of input buffer (without flushing it).
23961 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
23962 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
23963
c6dcedf6 239642009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23965
23966 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
23967 size check within GRUB_MACHINE_PCBIOS section.
23968
74c958b1 239692009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23970
23971 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
23972 return value.
23973 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
23974 KEYBOARD_ISREADY check.
23975 (grub_at_keyboard_checkkey): Rename to ...
23976 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
23977 Remove gratuitous cast.
23978
ff420223 239792009-09-23 Colin Watson <cjwatson@ubuntu.com>
23980
23981 * configure.ac: Call AC_PROG_MKDIR_P.
23982 * Makefile.in (docs/stamp-vti): Create docs directory. Create
23983 version.texi in $(builddir) rather than $(srcdir).
23984 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
23985 to makeinfo's @include search path.
23986
d96875df 239872009-09-23 Felix Zielcke <fzielcke@z-51.de>
23988
23989 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
23990
9b3f8365 239912009-09-23 Felix Zielcke <fzielcke@z-51.de>
23992
23993 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
23994 for `*.dpkg-new'.
23995
c44c90db 239962009-09-21 Colin Watson <cjwatson@ubuntu.com>
23997
23998 Build info documentation. Some code borrowed from Automake.
23999
24000 * configure.ac: Check for makeinfo.
24001 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
24002 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
24003 docs/version.texi.
24004 (MOSTLYCLEANFILES): Add vti.tmp.
24005 (docs/version.texi, docs/stamp-vti): Update automatically.
24006 (docs/grub.info): Build info documentation. Use --force and ignore
24007 errors for now.
24008 (all-local): Add $(INFOS).
24009 (install-local): Install info files.
24010 (uninstall): Uninstall info files.
24011 * docs/version.texi: Remove from revision control. This file is
24012 automatically generated on build now.
24013 * gendistlist.sh: Add `*.info'.
24014
e0b37bb5 240152009-09-21 Felix Zielcke <fzielcke@z-51.de>
24016
24017 * kern/term.c: Fix indentation.
24018
5a78865b 240192009-09-21 Felix Zielcke <fzielcke@z-51.de>
24020
24021 * util/hostdisk.c: Fix a comment.
24022
dace7e8a 240232009-09-20 Robert Millan <rmh.grub@aybabtu.com>
24024
24025 Fix regression introduced in r2539.
24026
24027 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
24028 to 0xA1.
24029
a83d079b 240302009-09-19 Colin Watson <cjwatson@ubuntu.com>
24031
24032 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 24033 os-prober. Under normal operation, it does not print anything to
24034 stderr; if it does, we need to debug it, and throwing away stderr
24035 makes that excessively difficult.
a83d079b 24036
be94a509 240372009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
24038
24039 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
24040
63f745e8 240412009-09-16 Robert Millan <rmh.grub@aybabtu.com>
24042
24043 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
24044 AC_LANG_PROGRAM from autoconf.
24045 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
24046 prototypes (fixes warning).
24047
24048 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
24049 `--disable-werror' was used.
24050
bbb2a70f 240512009-09-16 Robert Millan <rmh.grub@aybabtu.com>
24052
24053 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
24054 uninitialized `lastaddr'.
24055
77c24f1d 240562009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
24057
0f0b8c87 24058 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 24059
07197f23 240602009-09-14 Colin Watson <cjwatson@ubuntu.com>
24061
24062 * commands/test.c (get_fileinfo): Return immediately if
24063 grub_fs_probe fails.
24064
dabf1798 240652009-09-14 José Martínez <xosemp@gmail.com>
24066
24067 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
24068
d52109a7 240692009-09-14 Colin Watson <cjwatson@ubuntu.com>
24070
24071 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
24072 output.
24073
56532179 240742009-09-13 Robert Millan <rmh.grub@aybabtu.com>
24075
24076 * configure.ac: Remove --enable-grub-pe2elf. Only build
24077 grub-pe2elf when needed by the build system itself.
24078 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
24079
8ef070f5 240802009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24081
24082 * configure.ac: Bump version to 1.97~beta3.
24083 * docs/version.texi: Likewise.
24084
61229557 240852009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24086
24087 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
24088 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
24089 from here ...
24090 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
24091 (grub_linux_setup_video): ... to here (with some adjustments).
24092
5c9f8d84 240932009-09-12 Robert Millan <rmh.grub@aybabtu.com>
24094
24095 Fix memory corruption issue (spotted by Colin Watson).
24096
24097 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
24098 causing returned size to be stored in an incorrect memory location.
24099 Fix use of uninitialized value when storing the returned size.
24100
e8f5d6e9 241012009-09-12 Yves Blusseau <blusseau@zetam.org>
24102
24103 Change clean rules to properly remove files
24104
24105 * genmk.rb: add new clean rules
24106 * Makefile.in (clean): add the new targets
24107 (mostlyclean): likewise
24108
cda2a409 241092009-09-11 Colin Watson <cjwatson@ubuntu.com>
24110
24111 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
24112 to grub_uint64_t.
24113 * fs/ntfs.c (init_file): Understand 64-bit sizes for
24114 non-resident files.
24115
86695375 241162009-09-11 Colin Watson <cjwatson@ubuntu.com>
24117
24118 * configure.ac: Don't look for help2man when cross-compiling. Fixes
24119 part of bug #27349.
24120
8aa1541a 241212009-09-10 Felix Zielcke <fzielcke@z-51.de>
24122
24123 * util/grub-mkconfig.in: Make the created config mode 400 and
24124 print a warning if it fails.
24125
48d9bb0a 241262009-09-10 Robert Millan <rmh.grub@aybabtu.com>
24127
24128 * util/grub.d/40_custom.in: Ask user to type custom entries below
24129 comment, rather than below 'exec tail' line.
24130
3b0521be 241312009-09-10 Colin Watson <cjwatson@ubuntu.com>
24132
24133 * util/grub.d/40_custom.in: Make sure that the explanatory text is
24134 visible in grub.cfg.
24135
50051d55 241362009-09-10 Colin Watson <cjwatson@ubuntu.com>
24137
24138 * util/grub.d/40_custom.in: Make it a little clearer how to use this
24139 file.
24140
c0d34387 241412009-09-10 Felix Zielcke <fzielcke@z-51.de>
24142
24143 * docs/grub.cfg: Add an example menu entry for memtest86+.
24144
80a608f3 241452009-09-09 Felix Zielcke <fzielcke@z-51.de>
24146
a2094832 24147 * config.guess: Update to latest version from config git.
80a608f3 24148 * config.sub: Likewise.
24149
99423078 241502009-09-08 Colin Watson <cjwatson@ubuntu.com>
24151
24152 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
24153 unknown-command case. Fixes bug #27320.
24154
44454e4c 241552009-09-08 Felix Zielcke <fzielcke@z-51.de>
24156
24157 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
24158 `help' if the command exists.
24159
e30d87ad 241602009-09-06 Robert Millan <rmh.grub@aybabtu.com>
24161
24162 * INSTALL: Require GCC 4.1.3 or later.
24163
9a86f1ec 241642009-09-06 Yves Blusseau <blusseau@zetam.org>
24165
24166 * Makefile.in (RMKFILES): add i386-qemu.rmk
24167 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
24168 $(srcdir)/stamp-h.in
24169
7f26d466 241702009-09-05 Robert Millan <rmh.grub@aybabtu.com>
24171
24172 * util/grub-probe.c (probe): Comment out buggy codepath, which
24173 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
24174 should be re-enabled after 1.97.
24175
3a613259 241762009-09-05 Felix Zielcke <fzielcke@z-51.de>
24177
24178 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
24179 find searches for.
24180
197f76c7 241812009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24182
24183 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
24184 unnecessary calls to grub_error.
24185
70ba68ce 241862009-09-04 Colin Watson <cjwatson@ubuntu.com>
24187
24188 * NEWS: Mention `keystatus' and Unicode fonts.
24189
4ff0d7a4 241902009-09-04 Robert Millan <rmh.grub@aybabtu.com>
24191
24192 * configure.ac: Bump version to 1.97~beta2.
24193 * docs/version.texi: Likewise.
24194
77c55a87 241952009-09-03 Colin Watson <cjwatson@ubuntu.com>
24196
24197 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
24198 containing unwind information in some cases where it previously did
24199 not. Use -fno-dwarf2-cfi-asm if available to restore the old
24200 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
24201 discussion.
24202
f79572cd 242032009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
24204
24205 Embedding loadenv module into grub-emu
24206
24207 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
24208 commands/loadenv.c
24209 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
24210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
24211 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
24212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
24213 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
24214 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
24215
93a81088 242162009-09-03 Magnus Granberg <zorry@ume.nu>
24217
24218 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
24219 include -fPIE in the default specs.
24220 * configure.ac: Check if pie_possible is yes and add -fno-PIE
24221 to TARGET_CFLAGS.
24222
160034b2 242232009-09-03 Felix Zielcke <fzielcke@z-51.de>
24224
24225 * INSTALL: Note that GNU Bison 2.3 or later is required.
24226
087c07c4 242272009-09-03 Colin Watson <cjwatson@ubuntu.com>
24228
24229 * kern/i386/pc/startup.S: Fix typo.
24230
cbf978c0 242312009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
24234 according to GCS.
24235
242362009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 24237
24238 * docs/grub.texi (Naming convention): Describe one-based partition
24239 numbering.
24240 (Device syntax): Likewise.
24241 (File name syntax): Likewise.
24242 (Block list syntax): Likewise.
24243 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
24244 menu.lst.
24245 (File name syntax): Likewise.
24246 (Command-line and menu entry commands): Document acpi, blocklist,
24247 crc, export, insmod, keystatus, ls, set, and unset commands.
24248
f3e8cdfd 242492009-09-02 Colin Watson <cjwatson@ubuntu.com>
24250
24251 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
24252 to avoid implying that only one of --shift, --ctrl, or --alt may be
24253 used.
24254
c0bc232b 242552009-09-02 Colin Watson <cjwatson@ubuntu.com>
24256
24257 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
24258 rather than comparing against S_IFREG, which will almost never work.
24259
aa0f752d 242602009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
24263 (write_blocklists): Likewise.
24264
ecb3166a 242652009-09-01 Colin Watson <cjwatson@ubuntu.com>
24266
24267 * script/lua/grub_lua.h (fputs): Supply a format string as the first
24268 argument to grub_printf.
24269
c403a125 242702009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 24271
24272 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 24273 non GNU test.
31aba781 24274
b5e7312c 242752009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24276
24277 * kern/file.c (grub_file_read): Spelling fix
24278
fe00f472 242792009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24280
24281 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
24282 loading of headers in some cases.
24283
cc55302e 242842009-08-30 Robert Millan <rmh.grub@aybabtu.com>
24285
24286 * configure.ac: Bump version to 1.97~beta1.
24287 * docs/version.texi: Likewise.
24288
5c90cdd2 242892009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 24290
24291 * include/grub/i386/xnu.h: Add license header.
24292 include grub/err.h explicitly.
24293
c90edae4 242942009-08-29 Robert Millan <rmh.grub@aybabtu.com>
24295
24296 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
24297 to `ufs' in the vfs.root.mountfrom kernel parameter.
24298
d8888b5c 242992009-08-29 Robert Millan <rmh.grub@aybabtu.com>
24300
24301 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
24302
24303 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
24304 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
24305
24306 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
24307 `ARRAY_SIZE' macro.
24308
6f07b921 243092009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24310
24311 * kern/file.c (grub_file_read): Check offset.
24312 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
24313 * fs/jfs.c (grub_jfs_read_file): Likewise.
24314 * fs/ntfs.c (grub_ntfs_read): Likewise.
24315 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
24316 * fs/minix.c (grub_minix_read_file): Correct offset check.
24317 * fs/ufs.c (grub_ufs_read_file): Likewise.
24318
b4f34077 243192009-08-28 Colin Watson <cjwatson@ubuntu.com>
24320
24321 * term/i386/pc/console.c (bios_data_area): Cast
24322 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
24323
e7c69859 243242009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24325
24326 1-bit optimised blitters.
24327
24328 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
24329 prototype.
24330 (grub_video_fbblit_replace_24bit_1bit): Likewise.
24331 (grub_video_fbblit_replace_16bit_1bit): Likewise.
24332 (grub_video_fbblit_replace_8bit_1bit): Likewise.
24333 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
24334 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
24335 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
24336 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
24337 function.
24338 (grub_video_fbblit_replace_24bit_1bit): Likewise.
24339 (grub_video_fbblit_replace_16bit_1bit): Likewise.
24340 (grub_video_fbblit_replace_8bit_1bit): Likewise.
24341 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
24342 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
24343 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
24344 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
24345 when possible.
24346 * video/video.c (grub_video_get_blit_format): Return
24347 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
24348
a57da43f 243492009-08-28 Colin Watson <cjwatson@ubuntu.com>
24350
24351 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
24352 the first argument to grub_printf.
24353
4cbe67e5 243542009-08-28 Colin Watson <cjwatson@ubuntu.com>
243552009-08-28 Robert Millan <rmh.grub@aybabtu.com>
24356
24357 Add `getkeystatus' terminal method. Add a new `keystatus' command
24358 to query it.
24359
24360 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
24361 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
24362 modifier key bitmasks.
24363 (struct grub_term_input): Add `getkeystatus' member.
24364 (grub_getkeystatus): Add prototype.
24365 * kern/term.c (grub_getkeystatus): New function.
24366
24367 * include/grub/i386/pc/memory.h
24368 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
24369 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
24370 Data Area layout.
24371 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
24372 (grub_console_term_input): Set `getkeystatus' member.
24373 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
24374 constants.
24375 (grub_usb_keyboard_getreport): Likewise.
24376 (grub_usb_keyboard_checkkey): Likewise.
24377 (grub_usb_keyboard_getkeystatus): New function.
24378 (grub_usb_keyboard_term): Set `getkeystatus' member.
24379
24380 * commands/keystatus.c: New file.
24381 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
24382 (keystatus_mod_SOURCES): New variable.
24383 (keystatus_mod_CFLAGS): Likewise.
24384 (keystatus_mod_LDFLAGS): Likewise.
24385 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
24386 commands/keystatus.c.
24387 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24388 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24389 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24391 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24392 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 24393
6e2a9085 243942009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
24395
24396 Split befs.mod and afs.mod into *_be.mod and *.mod
24397
24398 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
24399 (grub_fstest_SOURCES): Likewise.
24400 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
24401 (afs_be_mod_SOURCES): New variable.
24402 (afs_be_mod_CFLAGS): Likewise.
24403 (afs_be_mod_LDFLAGS): Likewise.
24404 (befs_be_mod_SOURCES): Likewise.
24405 (befs_be_mod_CFLAGS): Likewise.
24406 (befs_be_mod_LDFLAGS): Likewise.
24407 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
24408 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24409 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24410 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24411 (grub_emu_SOURCES): Likewise.
24412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24413 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24414 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24415 * fs/afs_be.c: New file.
24416 * fs/befs_be.c: New file.
24417 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
24418 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
24419 (U16): Replaced with ...
24420 (grub_afs_to_cpu16): ...this. All users updated.
24421 (U32): Replaced with ...
24422 (grub_afs_to_cpu32): ...this. All users updated.
24423 (U64): Replaced with ...
24424 (grub_afs_to_cpu64): ...this. All users updated.
24425 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
24426 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 24427 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 24428 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
24429 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
24430 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
24431 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
24432 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
24433 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
24434 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
24435 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
24436
32a71655 244372009-08-26 Bean <bean123ch@gmail.com>
24438
24439 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
24440 64-bit number.
24441 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
24442 (grub_xfs_inode_block): Change return type to grub_uint64_t.
24443 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
24444
552bf6c5 244452009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24446
24447 NetBSD memory map support.
24448
24449 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
24450 (grub_netbsd_btinfo_mmap_header): New structure.
24451 (grub_netbsd_btinfo_mmap_entry): Likewise.
24452 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
24453
1ae2078c 244542009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24455
24456 Enable bsd.mod on coreboot.
24457
24458 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
24459 (bsd_mod_SOURCES): New variable.
24460 (bsd_mod_CFLAGS): Likewise.
24461 (bsd_mod_LDFLAGS): Likewise.
24462 (bsd_mod_ASFLAGS): Likewise.
24463 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
24464 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
24465
beefc598 244662009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24467
24468 Cleanup NetBSD root support.
24469
24470 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
24471 grub_bsd_get_device.
24472 Fix typo.
24473
3b76e68b 244742009-08-25 Felix Zielcke <fzielcke@z-51.de>
24475
24476 * util/grub.d/00_header.in: Move check for the video backend of
24477 gfxterm from here ...
24478 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
24479 a suitable video backend.
24480
aea664ea 244812009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24482
24483 Fix breakage in grub-setup.
24484
24485 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
24486 "msdos_partition_map".
24487
ff747d50 244882009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24489
24490 Fix breakage in normal/auth.c.
24491
24492 * normal/auth.c (grub_iswordseparator): New function.
24493
e7e1f93f 244942009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
24495
24496 Authentication support.
24497
24498 * commands/password.c: New file.
24499 * conf/common.rmk (pkglib_MODULES): Add password.mod.
24500 (password_mod_SOURCES): New variable.
24501 (password_mod_CFLAGS): Likewise.
24502 (password_mod_LDFLAGS): Likewise.
24503 (normal_mod_SOURCES): Add normal/auth.c.
24504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
24505 normal/auth.c.
24506 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24507 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24508 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24511 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24512 * include/grub/auth.h: New file.
24513 * include/grub/err.h (grub_err_t): New enum value
24514 GRUB_ERR_ACCESS_DENIED.
24515 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
24516 'users'.
24517 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
24518 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
24519 users updated.
24520 * normal/auth.c: New file.
24521 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
24522 (grub_cmdline_run): Don't allow to go to command line without
24523 authentication.
24524 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
24525 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
24526 menuentry without superuser rights.
24527 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
24528 user isn't a superuser.
24529
70f1161d 245302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24531
24532 Save space by inlining misc.c functions.
24533
24534 * kern/misc.c (grub_iswordseparator): Made static.
24535 * kern/misc.c (grub_strcat): Moved from here ...
24536 * include/grub/misc.h (grub_strcat): ... here. Inlined.
24537 * kern/misc.c (grub_strncat): Moved from here ...
24538 * include/grub/misc.h (grub_strncat): ... here. Inlined.
24539 * kern/misc.c (grub_strcasecmp): Moved from here ...
24540 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
24541 * kern/misc.c (grub_strncasecmp): Moved from here ...
24542 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
24543 * kern/misc.c (grub_isalpha): Moved from here ...
24544 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
24545 * kern/misc.c (grub_isdigit): Moved from here ...
24546 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
24547 * kern/misc.c (grub_isgraph): Moved from here ...
24548 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
24549 * kern/misc.c (grub_tolower): Moved from here ...
24550 * include/grub/misc.h (grub_tolower): ... here. Inlined.
24551
48e40bff 245522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24553
24554 * script/sh/function.c (grub_script_function_find): Cut error message
24555 not to flood terminal.
24556 * script/sh/lexer.c (grub_script_yylex): Remove command line length
24557 limit.
24558 * script/sh/script.c (grub_script_arg_add): Duplicate string.
24559
c385bfc3 245602009-08-24 Colin Watson <cjwatson@ubuntu.com>
24561
24562 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
24563 `report' grub_uint8_t *.
24564 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
24565 Use a 50-millisecond timeout rather than just repeating
24566 grub_usb_keyboard_getreport 50 times.
24567 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
24568
2d21e3e8 245692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24570
24571 Rename *_partition_map to part_*
24572
24573 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
24574 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
24575 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
24576 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
24577 All users updated.
24578 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
24579 All users updated.
24580 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
24581 * util/grub-probe.c (probe_partmap): Don't transform partition name
24582 to get module name.
24583
dd103c4e 245842009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24585
24586 Fix OpenBSD and NetBSD support.
24587
24588 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
24589 memory address conflict.
24590 (OPENBSD_MMAP_ACPI): New definition.
24591 (OPENBSD_MMAP_NVS): Likewise.
24592 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
24593 and OPENBSD_MMAP_NVS.
24594 Add memory map terminator
24595 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 24596 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 24597
16c84d74 245982009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24599
24600 Let user specify NetBSD root device.
24601
24602 * loader/i386/bsd.c (netbsd_root): New variable.
24603 (netbsd_opts): New option 'root'.
24604 (NETBSD_ROOT_ARG): New macro.
24605 (grub_netbsd_boot): Use 'netbsd_root'.
24606 (grub_bsd_unload): Free 'netbsd_root'.
24607 (grub_cmd_netbsd): Fill 'netbsd_root'.
24608
adb29902 246092009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24610
24611 Support for 64-bit NetBSD.
24612
24613 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
24614 point when booting non-FreeBSD.
24615
f5ae9f74 246162009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
24617
24618 Support --no-smp and --no-acpi for NetBSD.
24619
24620 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
24621 (NETBSD_AB_NOACPI): Likewise.
24622 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
24623 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
24624
de74f136 246252009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24626
24627 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
24628 errors.
24629 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
24630 errors. Call grub_error when needed.
24631
e9a925da 246322009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24633
24634 * commands/search.c (search_fs): Try searching without autoload first.
24635 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
24636 filesystem module explicitly for faster booting.
24637
5174302b 246382009-08-23 Colin Watson <cjwatson@ubuntu.com>
24639
24640 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
24641
c8c80635 246422009-08-23 Colin Watson <cjwatson@ubuntu.com>
24643
24644 * util/grub.d/30_os-prober.in: Disable os-prober if
24645 `GRUB_DISABLE_OS_PROBER' was set to true.
24646
71acf5e5 246472009-08-23 Robert Millan <rmh.grub@aybabtu.com>
24648
24649 * partmap/pc.c: Rename to ...
24650 * partmap/msdos.c: ... this. Update all users.
24651 (grub_pc_partition_map): Rename to ...
24652 (grub_msdos_partition_map): ... this. Update all users.
24653
24654 * parttool/pcpart.c: Rename to ...
24655 * parttool/msdospart.c: ... this. Update all users.
24656
24657 * include/grub/pc_partition.h: Rename to ...
24658 * include/grub/msdos_partition.h: ... this. Update all users.
24659 (grub_pc_partition_bsd_entry): Rename to ...
24660 (grub_msdos_partition_bsd_entry): ... this. Update all users.
24661 (grub_pc_partition_disk_label): Rename to ...
24662 (grub_msdos_partition_disk_label): ... this. Update all users.
24663 (grub_pc_partition_entry): Rename to ...
24664 (grub_msdos_partition_entry): ... this. Update all users.
24665 (grub_pc_partition_mbr): Rename to ...
24666 (grub_msdos_partition_mbr): ... this. Update all users.
24667 (grub_pc_partition): Rename to ...
24668 (grub_msdos_partition): ... this. Update all users.
24669 (grub_pc_partition_is_empty): Rename to ...
24670 (grub_msdos_partition_is_empty): ... this. Update all users.
24671 (grub_pc_partition_is_extended): Rename to ...
24672 (grub_msdos_partition_is_extended): ... this. Update all users.
24673 (grub_pc_partition_is_bsd): Rename to ...
24674 (grub_msdos_partition_is_bsd): ... this. Update all users.
24675
24676 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
24677 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
24678 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
24679 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
24680 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
24681 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
24682 (gpt_mod_LDFLAGS): Rename to ...
24683 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
24684 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
24685 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
24686 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
24687 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
24688 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
24689 (part_gpt_mod_LDFLAGS): ... this.
24690 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
24691 `pcpart.mod' to `msdospart.mod'.
24692 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
24693 to ...
24694 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
24695 (msdospart_mod_LDFLAGS): ... this.
24696
c11fded5 246972009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
24698
24699 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
24700 (openbsd_opts): Likewise.
24701 (netbsd_opts): Likewise.
24702 (freebsd_flags): Added 0 terminator.
24703 (openbsd_flags): Likewise.
24704 (netbsd_flags): Likewise.
24705 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
24706 (grub_cmd_freebsd): Transformed into extended command.
24707 (grub_cmd_openbsd): Likewise.
24708 (grub_cmd_netbsd): Likewise.
24709 (cmd_freebsd): Changed type to grub_extcmd_t.
24710 (cmd_openbsd): Likewise.
24711 (cmd_netbsd): Likewise.
24712 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
24713 grub_cmd_openbsd as extended commands.
24714 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
24715 cmd_netbsd and cmd_openbsd
24716
11d1c769 247172009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
24718
24719 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
24720
7a9094e5 247212009-08-21 Pavel Roskin <proski@gnu.org>
24722
5496c37e 24723 * Makefile.in (install-local): When checking if a file is in the
24724 build directory, use "test -e" to detect symlinks.
24725
7a9094e5 24726 * Makefile.in (install-local): Remove all files in
24727 $(DESTDIR)$(pkglibdir) before installing new files there.
24728
e53cea11 247292009-08-18 Felix Zielcke <fzielcke@z-51.de>
24730
24731 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
24732 grub-mkelfimage.
24733
9aced544 247342009-08-18 Felix Zielcke <fzielcke@z-51.de>
24735
24736 * util/grub-mkconfig.in: Don't use gfxterm by default if not
24737 explicitly specified by the user.
24738
b7da6bab 247392009-08-18 Pavel Roskin <proski@gnu.org>
24740
24741 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
24742 grub_uint8_t pointer for data.
24743 * include/grub/fbutil.h (struct grub_video_fbblit_info):
24744 Likewise.
24745 * video/fb/fbutil.c: Remove unnecessary casts.
24746
19f1b335 247472009-08-17 Michal Suchanek <hramrach@centrum.cz>
24748
24749 VBE cleanup.
24750
24751 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
24752 (grub_vbe_set_video_mode): Save active mode info
24753 only after setting the mode.
24754 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
24755 second argument.
24756
2f467aa9 247572009-08-17 Michal Suchanek <hramrach@centrum.cz>
24758
24759 Rename variables for clarity.
24760
24761 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
24762 (active_vbe_mode_info): ... this. All users updated.
24763 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
24764 All users updated.
24765 (initial_mode): Rename to ...
24766 (initial_vbe_mode): ... this. All users updated.
24767 (mode_in_use): Rename to ..
24768 (vbe_mode_in_use): ... this. All users updated.
24769 (mode_list): Rename to ..
24770 (vbe_mode_list): ... this. All users updated.
24771 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
24772 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
24773 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
24774 'mode_list_size' to 'vbe_mode_list_size'.
24775 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
24776 'best_mode_info' to 'best_vbe_mode_info' and
24777 'best_mode' to 'best_vbe_mode'
24778
6025fcd7 247792009-08-17 Michal Suchanek <hramrach@centrum.cz>
24780
24781 Remove duplicate grub_video_fb_get_video_ptr.
24782
24783 * include/grub/fbutil.h (get_data_ptr): Rename to ...
24784 (grub_video_fb_get_video_ptr): ... this.
24785 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
24786 * video/fb/fbutil.c: Add comment about addressing.
24787 (get_data_ptr): Rename to ...
24788 (grub_video_fb_get_video_ptr): ... this. All users updated.
24789 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
24790
cc8c6faf 247912009-08-17 Robert Millan <rmh.grub@aybabtu.com>
24792
24793 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
24794 grub_dprintf() that was just added.
24795
08aa61f0 247962009-08-17 Robert Millan <rmh.grub@aybabtu.com>
24797
24798 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
24799 (DEFAULT_VIDEO_MODE): Remove macros.
24800 (grub_linux_boot): Remove assumption that Linux has FB support,
24801 and use "text" as default video mode.
24802
7cef4f75 248032009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
24804
24805 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
24806 grub_dprintf.
24807 * fs/fat.c (grub_fat_read_data): Likewise.
24808
e1f39873 248092009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24810
24811 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
24812 payload.
24813 (grub_module): Likewise.
24814
c166d79e 248152009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24816
24817 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
24818 mbi->cmdline but free playground.
24819
c60cee8e 248202009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24821
24822 Handle group offset on UFS1.
24823
24824 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
24825 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
24826
c0d8b5d4 248272009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24828
24829 Split ufs.mod into ufs1.mod and ufs2.mod.
24830
24831 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
24832 (grub_fstest_SOURCES): Likewise.
24833 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
24834 (ufs_mod_SOURCES): Remove.
24835 (ufs_mod_CFLAGS): Likewise.
24836 (ufs_mod_LDFLAGS): Likewise.
24837 (ufs1_mod_SOURCES): New variable.
24838 (ufs1_mod_CFLAGS): Likewise.
24839 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 24840 (ufs2_mod_SOURCES): New variable.
24841 (ufs2_mod_CFLAGS): Likewise.
24842 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 24843 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
24844 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
24845 Likewise.
24846 (grub_emu_SOURCES): Likewise.
24847 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24848 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24849 (grub_setup_SOURCES): Likewise.
24850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24851 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
24852 (grub_setup_SOURCES): Likewise.
24853 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
24854 Likewise.
24855 * fs/ufs2.c: New file.
24856 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
24857
d3539132 248582009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
24859
24860 Framebuffer split.
24861
24862 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
24863 subsystem at the end.
24864 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
24865 (video_fb_mod_SOURCES): New variable.
24866 (video_fb_mod_CFLAGS): Likewise.
24867 (video_fb_mod_LDFLAGS): Likewise.
24868 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
24869 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
24870 * video/i386/pc/vbeblit.c: Moved from here ...
24871 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
24872 * video/i386/pc/vbefill.c: Moved from here ...
24873 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
24874 * video/i386/pc/vbeutil.c: Moved from here ...
24875 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
24876 * include/grub/i386/pc/vbeblit.h: Moved from here ...
24877 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
24878 * include/grub/i386/pc/vbefill.h: Moved from here ...
24879 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
24880 * include/grub/i386/pc/vbeutil.h: Moved from here ...
24881 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
24882 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
24883 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
24884 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
24885 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
24886 (grub_video_adapter): Added 'get_info_and_fini'.
24887 (grub_video_get_info_and_fini): New prototype.
24888 (grub_video_set_mode): make modestring const char *.
24889 * loader/i386/linux.c (grub_linux_setup_video): Use
24890 grub_video_get_info_and_fini.
24891 (grub_linux_boot): Move modesetting just before booting.
24892 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
24893 grub_video_get_info_and_fini.
24894 * video/i386/pc/vbe.c: Moved framebuffer part ...
24895 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
24896 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
24897 grub_video_fbstd_colors and grub_video_fb_set_palette.
24898 (grub_video_vbe_init): Clear 'framebuffer' variable and use
24899 grub_video_fb_init.
24900 (grub_video_vbe_fini): Use grub_video_fb_fini.
24901 (grub_video_vbe_setup): Use framebuffer.render_target instead of
24902 render_target and use grub_video_fb_set_active_render_target and
24903 grub_video_fb_set_palette.
24904 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
24905 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
24906 (grub_video_vbe_adapter): Use framebuffer.
24907 * video/video.c (grub_video_get_info_and_fini): New function.
24908 (grub_video_set_mode): Make modestring const char *.
24909 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
24910 values are already initialised.
24911
d404ee56 249122009-08-14 Pavel Roskin <proski@gnu.org>
24913
24914 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
24915 ABS and APPLE_CC.
24916 * boot/i386/pc/diskboot.S: Likewise.
24917 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
24918 sectors allow compilation on MacOSX.
24919 * conf/i386-pc.rmk: Enable unconditional compilation of
24920 lnxboot.img.
24921
9a10df16 249222009-08-13 Colin Watson <cjwatson@ubuntu.com>
24923
24924 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
24925 * util/grub.d/00_header.in: Enter interruptible sleep if
24926 GRUB_HIDDEN_TIMEOUT is set.
24927
be3c9ca7 249282009-08-13 Yves Blusseau <blusseau@zetam.org>
24929
24930 * include/grub/symbol.h: Add the LOCAL macro.
24931 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
24932 starting with "L_".
24933
1f9e557e 249342009-08-13 Pavel Roskin <proski@gnu.org>
24935
9ca62843 24936 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
24937 any modern compilers we support.
24938
1f9e557e 24939 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
24940 Use local labels starting with "L_" so that Apple assembler
24941 knows they are local.
24942
81623db6 249432009-08-10 Robert Millan <rmh.grub@aybabtu.com>
24944
24945 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
24946 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
24947 (bsd_kernel_types): ... this enum.
24948
24949 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
24950 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
24951 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
24952
24953 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
24954 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
24955 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
24956 messages.
24957
f5d35e7a 249582009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24959
24960 * util/grub-dumpdevtree: Moved from here ...
24961 * util/i386/efi/grub-dumpdevtree: ... to here.
24962 (hexify): New function. Converts a string to its hex version.
24963 Generate hex versions of "efi" and "device-properties" by calling
24964 hexify() on the ASCII strings rather than by hardcoding numbers.
24965
d1e1d527 249662009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24967
24968 * fs/jfs.c: Update copyright year.
24969
1ebbe064 249702009-08-08 Felix Zielcke <fzielcke@z-51.de>
24971
24972 * util/grub.d/00_header.in: Fix a comment.
24973 * util/grub.d/10_linux.in: Likewise.
24974 * util/grub.d/10_windows.in: Likewise.
24975 * util/grub.d/10_hurd.in: Likewise.
24976
a78c8d24 249772009-08-08 Felix Zielcke <fzielcke@z-51.de>
24978
24979 * util/grub-mkconfig.in: Allow the user to specify the used font
24980 with GRUB_FONT.
24981
29a6b9e8 249822009-08-08 Pavel Roskin <proski@gnu.org>
24983
b5f16cc4 24984 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
24985 available, xfs.mod needs it now.
24986
2f5cb827 24987 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
24988 the "g" modifier in sed when the intention is to strip something
24989 once. This fixes comparison of kernels with multiple dashes.
24990
29a6b9e8 24991 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
24992 on it. Add missing space before closing bracket. Fix
24993 misleading formatting.
24994
892a3d98 249952009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24996
24997 * docs/grub.texi: Major overhaul. Remove all sections that are
24998 specific to GRUB Legacy, or mostly composed of Legacy-specific
24999 information.
25000
ed94253f 250012009-08-07 Robert Millan <rmh.grub@aybabtu.com>
25002
25003 * docs/version.texi: New file. Provides version information for
25004 grub.texi.
25005
126d6628 250062009-08-07 Robert Millan <rmh.grub@aybabtu.com>
25007
25008 * docs/grub.texi: Update CVS information to SVN.
25009 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
25010
998b5aa9 250112009-08-07 Felix Zielcke <fzielcke@z-51.de>
25012
25013 * util/grub-mkconfig.in: Remove a wrong `fi'.
25014
818e094a 250152009-08-07 Felix Zielcke <fzielcke@z-51.de>
25016
25017 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
25018 (grub_jfs_uuid): New function.
25019 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
25020
b969c52f 250212009-08-07 Felix Zielcke <fzielcke@z-51.de>
25022
25023 * util/grub-mkconfig_lib.in (font_path): Move the functionality
25024 of it to ...
25025 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
25026 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
25027
7a4894cc 250282009-08-07 Robert Millan <rmh.grub@aybabtu.com>
25029
25030 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
25031 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
25032 Update all users.
25033
25034 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
25035 not just "vmlinu[zx]".
25036 Moved from here ...
25037 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
25038 all users.
25039
25040 * util/grub.d/10_linux.in (find_latest): Moved from here ...
25041 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
25042 all users.
25043
4e2171f8 250442009-08-07 Robert Millan <rmh.grub@aybabtu.com>
25045
25046 * util/grub.d/10_freebsd.in: Use an absolute device path for
25047 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
25048
6dcfcb32 250492009-08-06 Felix Zielcke <fzielcke@z-51.de>
25050
25051 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
25052 handling of multiple abstraction modules.
25053
f56a8756 250542009-08-04 Robert Millan <rmh.grub@aybabtu.com>
25055
25056 Fix a bug resulting in black screen when loading Linux using a
25057 packed video mode.
25058
25059 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
25060 function.
25061
25062 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
25063 (grub_vbe_bios_getset_dac_palette_width): New function.
25064 (grub_vbe_bios_get_dac_palette_width)
25065 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
25066 grub_vbe_bios_getset_dac_palette_width()).
25067
25068 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
25069 check for return status.
25070 (grub_vbe_get_video_mode_info): When getting information for a packed
25071 mode (<= 8 bpp), obtain DAC palette width using
25072 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
25073 {red,green,blue}_mark_size.
25074
222671b2 250752009-08-04 Felix Zielcke <fzielcke@z-51.de>
25076
ecb1a6d9 25077 * commands/search.c (options): Fix help output to match actual code.
222671b2 25078
f84114f5 250792009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
25080
25081 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
25082 of homegrown code.
25083
bd288a20 250842009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 25085
25086 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
25087 on XFS or ReiserFS.
25088
8aab5e25 250892009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
25090
25091 Support Apple partition map with sector size different from 512 bytes.
25092
25093 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
25094 (apple_partition_map_iterate): Respect 'aheader.blocksize'
25095 and 'apart.partmap_size'.
25096
6ad6258a 250972009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
250982009-08-01 Robert Millan <rmh.grub@aybabtu.com>
25099
25100 Fix cpuid command.
25101
25102 * commands/i386/cpuid.c (options): New variable.
25103 (grub_cmd_cpuid): Return real error.
25104 (GRUB_MOD_INIT(cpuid)): Declare options.
25105
67459bc6 251062009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
25107
25108 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
25109 valid.
25110
fbc6ab54 251112009-07-31 Bean <bean123ch@gmail.com>
25112
25113 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
25114 log2_inode.
25115 (grub_fshelp_node): Move inode field to the end.
25116 (grub_xfs_data): Remove inode field.
25117 (grub_xfs_inode_block): Calculate inode size using sblock.
25118 (grub_xfs_inode_offset): Likewise.
25119 (grub_xfs_read_inode): Calculate inode size using sblock.
25120 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
25121 (grub_xfs_iterate_dir): Calculate inode size using sblock.
25122 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
25123 to match inode size.
25124 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
25125 not accessible when data is null.
25126 (grub_xfs_open): Likewise.
25127
f45d6cfc 251282009-07-31 Bean <bean123ch@gmail.com>
25129
25130 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
25131 Don't change pv->disk if it's already set.
25132
25133 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
25134 (grub_raid_register): ... here.
25135 (grub_raid_rescan): Removed.
25136
25137 * include/grub/raid.h (grub_raid_rescan): Removed.
25138
25139 * util/grub-fstest.c: Remove include file <grub/raid.h>.
25140 (fstest): Replace grub_raid_rescan with module fini function followed
25141 by init function.
25142
25143 * util/grub-probe.c: Add include file <grub/raid.h>.
25144 (probe_raid_level): New function.
25145 (probe): Detect abstraction by walking the disk device, support two
25146 level of abstraction (LVM on RAID) when detecting partition map.
25147
24443b5a 251482009-07-31 Pavel Roskin <proski@gnu.org>
25149
25150 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
25151 to grub_zalloc(), it was erroneous.
25152 Reported by Bean <bean123ch@gmail.com>
25153
a275d9e7 251542009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
25155
25156 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 25157 embedding zone, not only the first one.
a275d9e7 25158
56c5a47f 251592009-07-29 Joe Auricchio <jauricchio@gmail.com>
25160
25161 * term/gfxterm.c (clear_char): New function.
25162 (grub_virtual_screen_setup): Use clear_char.
25163 (scroll_up): Likewise.
25164 (grub_virtual_screen_cls): Likewise.
25165
67bb323a 251662009-07-29 Felix Zielcke <fzielcke@z-51.de>
25167
25168 * util/deviceiter.c (get_acceleraid_disk_name): New static
25169 function.
25170 (grub_util_iterate_devices): Handle Accelraid devices.
25171 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
25172
388a7c75 251732009-07-28 Robert Millan <rmh.grub@aybabtu.com>
25174
25175 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
25176 separator for the suggested gfxpayload string (';' collides with the
25177 parser and needs escaping).
25178
3bb7abcf 251792009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
25180
25181 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
25182 Clear direction flag before jumping to OS.
25183 (grub_multiboot2_real_boot): Likewise.
25184
2ddd36d7 251852009-07-28 Felix Zielcke <fzielcke@z-51.de>
25186
25187 * util/i386/pc/grub-install: Fix parsing of --disk-module
25188 option.
25189
c521b62b 251902009-07-28 Felix Zielcke <fzielcke@z-51.de>
25191
25192 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
25193 when embedding.
25194
880e0a0c 251952009-07-26 Felix Zielcke <fzielcke@z-51.de>
25196
25197 * util/grub-mkconfig.in (package_version): New variable.
25198 Use it do display the version.
25199
2366e356 252002009-07-25 Felix Zielcke <fzielcke@z-51.de>
25201
25202 * kern/file.c (grub_file_open): Revert to previous check with
25203 grub_errno.
25204
7ad8c80e 252052009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
25206
25207 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
25208 from help line. It's out of sync with code.
25209
72b9658b 252102009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
25211
25212 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
25213 entries on failed boot.
25214
77435277 252152009-07-25 Felix Zielcke <fzielcke@z-51.de>
25216
25217 * kern/file.c (grub_file_open): Fix an error check.
25218
fcaa8b21 252192009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
25220
35d16c74 25221 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
25222 partition map couldn't be identified.
fcaa8b21 25223
48904cd1 252242009-07-23 Pavel Roskin <proski@gnu.org>
25225
ef3c317f 25226 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
25227 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
25228 case of little endian words becomes just an optimization.
25229 Respect const modifier.
ad8ea1f4 25230 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 25231
48904cd1 25232 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
25233 to avoid loss of upper bits if align is unsigned and shorter
25234 than addr.
25235
260c9a89 252362009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
25237
25238 UUID support for UFS
25239
25240 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
25241 (grub_ufs_uuid): New function.
25242 (grub_ufs_fs): add .uuid
25243
f76ce889 252442009-07-21 Pavel Roskin <proski@gnu.org>
25245
25246 * kern/dl.c (grub_dl_check_header): Make static.
25247
6a6cbcaf 252482009-07-21 Felix Zielcke <fzielcke@z-51.de>
25249
25250 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
25251 add drivemap for Vista. It breaks Windows 7.
25252
cffcddb2 252532009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
25254
25255 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
25256 128 bytes
25257
1ef44b80 252582009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25259
25260 Add BFS support
25261
25262 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
25263 (grub_fstest_SOURCES): Likewise.
25264 (pkglib_MODULES): Add befs.mod.
25265 (befs_mod_SOURCES): New variable.
25266 (befs_mod_CFLAGS): Likewise.
25267 (befs_mod_LDFLAGS): Likewise.
25268 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25269 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25270 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25271 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25272 (grub_setup_SOURCES): Likewise.
25273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25274 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25275 (grub_setup_SOURCES): Likewise.
25276 * fs/befs.c: New file.
25277 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
25278 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
25279 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
25280 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
25281 (B_KEY_INDEX_ALIGN): New declaration.
25282 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
25283 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
25284 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
25285 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
25286 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
25287 (grub_afs_mount) [MODE_BFS]: Likewise.
25288 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
25289 (grub_afs_fs): Use GRUB_AFS_FSNAME
25290 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
25291 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
25292 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
25293 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
25294
4f253044 252952009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
25296
25297 * util/getroot.c (find_root_device): Add support for MacOSX.
25298 * util/hostdisk.c: Likewise.
25299
57a55913 253002009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25301
25302 * font/font.c (find_glyph): Check whether a font is present to avoid
25303 segmentation fault.
75421ca9 25304
253052009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 25306
25307 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
25308
e98cd0c2 253092009-07-20 Pavel Roskin <proski@gnu.org>
25310
25311 * configure.ac: Trim excessively wordy excuses.
25312
1d2d169a 253132009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25314
25315 Add symlink, mtime and label support to AtheFS.
25316
25317 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
25318 (grub_afs_iterate_dir): Handle symlinks.
25319 (grub_afs_open): Use grub_afs_read_symlink.
25320 (grub_afs_dir): Likewise.
25321 Pass mtime.
25322 (grub_afs_label): New function.
25323 (grub_afs_fs): Add grub_afs_label.
25324 (grub_afs_read_symlink): New function.
25325
186f3189 253262009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
25327
25328 Fix AtheFS support.
25329
25330 * fs/afs.c: Fix comments style.
25331 (grub_afs_blockrun): Declare as packed.
25332 (grub_afs_datastream): Likewise.
25333 (grub_afs_bnode): Likewise.
25334 (grub_afs_btree): Likewise.
25335 (grub_afs_sblock): Likewise.
25336 Declare `name' as char.
25337 (grub_afs_inode): Declare as packed.
25338 Change void *vnode to grub_uint32_t unused.
25339 (grub_afs_iterate_dir): Check that key_size is positive.
25340 (grub_afs_mount): Don't read superblock twice.
75421ca9 25341 (grub_afs_dir): Don't free node in case of error,
186f3189 25342 grub_fshelp_find_file already handles this.
25343 (grub_afs_open): Likewise.
25344
5680109e 253452009-07-19 Pavel Roskin <proski@gnu.org>
25346
25347 * Makefile.in: Remove LIBLZO and enable_lzo.
25348 * conf/i386-pc.rmk: Remove lzo support.
25349 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
25350 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
25351 support.
25352 * kern/i386/pc/lzo1x.S: Remove.
25353 * kern/i386/pc/startup.S: Remove lzo support.
25354 * util/i386/pc/grub-mkimage.c: Likewise.
25355
ac70fa32 253562009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
25357
25358 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
25359 * fs/xfs.c (grub_xfs_dir): Likewise.
25360 * fs/afs.c (grub_afs_dir): Likewise.
25361 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
25362 (grub_iso9660_open): Likewise.
25363 * fs/jfs.c (grub_jfs_open): Likewise.
25364 * fs/ext2.c (grub_ext2_dir): Likewise.
25365 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
25366 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 25367
eab58da2 253682009-07-16 Pavel Roskin <proski@gnu.org>
25369
d2838156 25370 * configure.ac: Never add "-c" to CFLAGS.
25371
55c70904 25372 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
25373
43e6200c 25374 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
25375 grub_cv_cc_efiemu should be used.
25376
ce7a733d 25377 * configure.ac: Typo fixes.
25378
eab58da2 25379 * kern/mm.c (grub_zalloc): New function.
25380 (grub_debug_zalloc): Likewise.
25381 * include/grub/mm.h: Declare grub_zalloc() and
25382 grub_debug_zalloc().
25383 * util/misc.c (grub_zalloc): New function.
25384 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
25385 instead of grub_malloc(), remove unneeded initializations.
25386 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
25387 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
25388 * commands/parttool.c (grub_cmd_parttool): Likewise.
25389 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25390 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
25391 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
25392 * disk/usbms.c (grub_usbms_finddevs): Likewise.
25393 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
25394 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
25395 (grub_cmd_efiemu_pnvram): Likewise.
25396 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
25397 * fs/iso9660.c (grub_iso9660_mount): Likewise.
25398 (grub_iso9660_iterate_dir): Likewise.
25399 * fs/jfs.c (grub_jfs_opendir): Likewise.
25400 * fs/ntfs.c (list_file): Likewise.
25401 (grub_ntfs_mount): Likewise.
25402 * kern/disk.c (grub_disk_open): Likewise.
25403 * kern/dl.c (grub_dl_load_core): Likewise.
25404 * kern/elf.c (grub_elf_file): Likewise.
25405 * kern/env.c (grub_env_context_open): Likewise.
25406 (grub_env_set): Likewise.
25407 (grub_env_set_data_slot): Likewise.
25408 * kern/file.c (grub_file_open): Likewise.
25409 * kern/fs.c (grub_fs_blocklist_open): Likewise.
25410 * loader/i386/multiboot.c (grub_module): Likewise.
25411 * loader/xnu.c (grub_xnu_create_key): Likewise.
25412 (grub_xnu_create_value): Likewise.
25413 * normal/main.c (grub_normal_add_menu_entry): Likewise.
25414 (read_config_file): Likewise.
25415 * normal/menu_entry.c (make_screen): Likewise.
25416 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25417 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
25418 * script/sh/script.c (grub_script_parse): Likewise.
25419 * video/bitmap.c (grub_video_bitmap_create): Likewise.
25420 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
25421 * video/readers/png.c (grub_png_output_byte): Likewise.
25422 (grub_video_reader_png): Likewise.
25423
830afef7 254242009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 25425
25426 Enable all targets that can be built by default
25427
830afef7 25428 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 25429 grub-mkfont and grub-fstest if they can be built
25430
ee293aee 254312009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25432
25433 Fix hang and segmentation fault in grub-emu-usb
25434
25435 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
25436 * util/usb.c (grub_libusb_devices): likewise
25437 (grub_libusb_init): rename to ...
25438 (GRUB_MOD_INIT (libusb)):...this
25439 (grub_libusb_fini): rename to ..
25440 (GRUB_MOD_FINI (libusb)):...this
25441 * disk/usbms.c (grub_usbms_transfer): fix retry logic
25442 * include/grub/disk.h (grub_raid_init): removed, it's useless
25443 (grub_raid_fini): likewise
25444 (grub_lvm_init): likewise
25445 (grub_lvm_fini): likewise
25446 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
25447 by grub_init_all
25448
94414221 254492009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25450
25451 Fix libusb
25452
25453 * Makefile.in (LIBUSB): new macro
25454 * genmk.rb (Utility/print_tail): new method
25455 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
25456 (top level): call util.print_tail at the end.
25457
59ade63d 254582009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25459
25460 Make FreeBSD accept zpool.cache
25461
25462 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
25463 type is /boot/zfs/zpool.cache
25464
a58da8c7 254652009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
25466
25467 Fix 64-bit efiemu
25468
25469 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
25470 correct wrong typedef
25471 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
25472
20591577 254732009-07-15 Pavel Roskin <proski@gnu.org>
25474
560ca572 25475 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
25476 * kern/disk.c (struct grub_disk_cache): Likewise.
25477
e8e8e4fd 25478 * commands/probe.c (options): Typo fix.
25479
fde24e10 25480 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
25481 Increase to 0x5a to accommodate FAT32. Adjust other offsets
25482 accordingly.
25483 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
25484
379c54c1 25485 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
25486 the end of "Error" to make the message more readable.
25487
7bd8f5bf 25488 * boot/i386/pc/boot.S (kernel_segment): Remove.
25489 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
25490 for destination.
25491
40b132c5 25492 * boot/i386/pc/boot.S (boot_version): Remove.
25493 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
25494 Remove.
25495
20591577 25496 * include/grub/i386/pc/boot.h: Sort all offsets.
25497 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
25498 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
25499 * boot/i386/pc/boot.S: Assert location of every offset listed in
25500 include/grub/i386/pc/boot.h.
25501
2df32b2c 255022009-07-13 Pavel Roskin <proski@gnu.org>
25503
44b5d879 25504 * include/grub/i386/coreboot/machine.h: Rename
25505 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
25506 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
25507 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
25508
17dc3751 25509 * kern/dl.c: Force native word size to suppress warnings when
25510 compiling grub-emu.
25511
2df32b2c 25512 * kern/device.c (grub_device_iterate): Change struct part_ent to
25513 hold the name, not a pointer to it. Use one grub_malloc() per
25514 partition, not two. Free partition_name if grub_malloc() fails.
25515 Set ents to NULL only before grub_partition_iterate() is called.
25516
75c59f59 255172009-07-11 Bean <bean123ch@gmail.com>
25518
25519 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
25520 childname.
25521
0ae1bf88 255222009-07-10 Bean <bean123ch@gmail.com>
255232009-07-10 Robert Millan <rmh.grub@aybabtu.com>
25524
25525 * kern/ieee1275/openfw.c (grub_children_iterate)
25526 (grub_devalias_iterate): Fix size evaluation for property or path
25527 strings, which was broken since r2132.
25528
8279cade 255292009-07-07 Pavel Roskin <proski@gnu.org>
25530
7d8a52d3 25531 * commands/search.c (search_file): Merge into ...
25532 (search_fs): ... this. Accept search type as argument.
25533 (grub_cmd_search): Pass search type to search_fs().
25534
25f9a05a 25535 * include/grub/util/console.h: New file.
25536 * util/console.c: Use it instead of grub/machine/console.h.
25537 * util/grub-emu.c: Likewise.
25538
8279cade 25539 * lib/arg.c (find_long_option): Remove.
25540 (find_long): Add `len' argument, make `s' const char *.
25541 (grub_arg_parse): Parse long options in place, not in a
25542 temporary buffer.
25543
4a11b60f 255442009-07-06 Pavel Roskin <proski@gnu.org>
25545
99f68041 25546 * commands/search.c (search_fs): Fix potential NULL pointer
25547 dereference.
25548
4a11b60f 25549 * commands/search.c (search_fs): Replace QUID macro with quid_fn
25550 function pointer.
25551
e110f4de 255522009-07-06 Daniel Mierswa <impulze@impulze.org>
25553
25554 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
25555 comparison.
25556
46eeb6a2 255572009-07-05 Pavel Roskin <proski@gnu.org>
25558
bab74958 25559 * include/grub/i386/linux.h (struct linux_kernel_params):
25560 Restore padding3, it's still needed.
25561
46eeb6a2 25562 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
25563 FreeBSD.
25564 * util/osdetect.lua: Likewise.
25565
b4a1dc79 255662009-07-05 Bean <bean123ch@gmail.com>
25567
25568 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
25569
25570 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
25571 (grub_lua_getenv): Likewise.
25572 (grub_lua_setenv): Likewise.
25573 (save_errno): New function.
25574 (push_result): Likewise.
25575 (grub_lua_enum_device): Likewise.
25576 (grub_lua_enum_file): Likewise.
25577 (grub_lua_file_open): Likewise.
25578 (grub_lua_file_close): Likewise.
25579 (grub_lua_file_seek): Likewise.
25580 (grub_lua_file_read): Likewise.
25581 (grub_lua_file_getline): Likewise.
25582 (grub_lua_file_getsize): Likewise.
25583 (grub_lua_file_getpos): Likewise.
25584 (grub_lua_file_eof): Likewise.
25585 (grub_lua_file_exist): Likewise.
25586 (grub_lua_add_menu): Likewise.
25587
25588 * script/lua/grub_lua.h (isupper): New inline function.
25589 (islower): Likewise.
25590 (ispunct): Likewise.
25591 (isxdigit): Likewise.
25592 (strcspn): Change to normal function.
25593 (strpbkr): New function declaration.
25594 (memchr): Likewise.
25595
25596 * script/lua/grub_main.c (scan_str): New function.
25597 (strcspn): Likewise.
25598 (strpbrk): Likewise.
25599 (memchr): Likewise.
25600
25601 * script/lua/linit.c (lualibs): Enable the string library.
25602
25603 * util/osdetect.lua: New file.
25604
2da92295 256052009-07-04 Robert Millan <rmh.grub@aybabtu.com>
25606
25607 * include/grub/i386/linux.h (struct linux_kernel_params): Add
25608 `capabilities' member.
25609
b2582ec9 256102009-07-02 Pavel Roskin <proski@gnu.org>
25611
25612 * genparttoollist.sh: Add missing newline at the end.
25613
32622956 256142009-07-01 Pavel Roskin <proski@gnu.org>
25615
87a7339e 25616 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
25617
d23af54e 25618 * util/hostdisk.c (open_device): Remove `const' from
25619 `sysctl_size', as sysctlbyname() can change it (in this case it
25620 doesn't actually happen).
25621
c94b18a9 25622 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
25623 using signed long int constants.
25624
c6cd3ef0 25625 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
25626 constant to avoid a warning on FreeBSD.
25627
0df63420 25628 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
25629 where it's needed.
25630
999577f1 25631 * Makefile.in: Install include/grub/machine symlink.
25632
6f41557f 25633 * Makefile.in: When installing symlinks, use "cp -fR", which
25634 works on FreeBSD and MacOSX.
25635 From Yves Blusseau <cl7m42e02@sneakemail.com>
25636
c8d22988 25637 * kern/dl.c (grub_dl_resolve_symbol): Make static.
25638 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
25639
1b96e952 25640 * util/misc.c: Move grub_reboot() and grub_halt() ...
25641 * util/grub-emu.c: ... here. Make main_env static.
25642 * include/grub/util/misc.h: Remove main_env.
25643
2ef0084d 25644 * kern/mm.c: Use correct format to print size_t.
25645
32622956 25646 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
25647 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
25648 * kern/powerpc/dl.c: Likewise.
25649 * kern/sparc64/dl.c: Likewise.
25650 * kern/x86_64/dl.c: Likewise.
25651
3f7f0cd0 256522009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25653
25654 Fix grub-emu build on sparc64-ieee1275.
25655
75421ca9 25656 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 25657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
25658
211d06b5 256592009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25660
25661 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
25662 (grub_reboot, grub_halt): New functions.
25663
25664 * util/i386/pc/misc.c: Delete. Update all users.
25665 * util/sparc64/ieee1275/misc.c: Likewise.
25666 * util/powerpc/ieee1275/misc.c: Likewise.
25667
aaf53e3c 256682009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25669
25670 * conf/i386.rmk (setjmp_mod_SOURCES)
25671 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
25672 * conf/common.rmk (setjmp_mod_SOURCES)
25673 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
25674 to use $(target_cpu).
25675 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
25676 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
25677 * conf/powerpc-ieee1275.rmk: Likewise.
25678 * conf/sparc64-ieee1275.rmk: Likewise.
25679
25680 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
25681 $(target_cpu) for kern/$(target_cpu)/dl.c.
25682 * conf/i386-efi.rmk: Likewise.
25683 * conf/i386-ieee1275.rmk: Likewise.
25684 * conf/x86_64-efi.rmk: Likewise.
25685 * conf/i386-coreboot.rmk: Likewise.
25686 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
25687 $(target_cpu) for kern/$(target_cpu)/dl.c and for
25688 kern/$(target_cpu)/cache.S.
25689 * conf/sparc64-ieee1275.rmk: Likewise.
25690
a337130b 256912009-07-01 Robert Millan <rmh.grub@aybabtu.com>
25692
25693 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
25694 type to `grub_uint8_t', and adjust `padding9' accordingly.
25695
c6fe4d53 256962009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25697
b09db61d 25698 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
25699
c6fe4d53 25700 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
25701 assembly in final jump, using register constraints.
25702
b09db61d 25703 (grub_linux_boot): For text mode, initialize `have_vga' using
25704 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
25705
25706 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
25707 right before the final jump.
25708
25709 Set `video_mode' to 0x3.
25710
25711 Document initialization of `video_page', `video_mode' and
25712 `video_ega_bx'.
25713
28333ad0 257142009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25715
25716 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
25717 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 25718 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 25719
02164e1b 257202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
25721
25722 Fix build on Debian / sparc.
25723
25724 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
25725
18b6c557 257262009-06-28 Pavel Roskin <proski@gnu.org>
25727
85f2aab6 25728 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
25729 fix a warning.
25730
18b6c557 25731 * util/grub.d/10_linux.in: Match SUSE style initrd names.
25732
ad760f81 257332009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25734
25735 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
25736 `err'.
25737
87a4623b 257382009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25739
25740 Revert r2338.
25741
25742 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
25743 file can't be opened. grub_file_open() is already supposed to set
75421ca9 25744 grub_errno / grub_errmsg appropriately.
87a4623b 25745 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25746
8231fb77 257472009-06-27 Pavel Roskin <proski@gnu.org>
257482009-06-27 Robert Millan <rmh.grub@aybabtu.com>
25749
25750 * include/grub/dl.h: Include grub/elf.h.
25751 (struct grub_dl): Add symtab field.
25752 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
25753 GRUB_MODULES_MACHINE_READONLY.
25754 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
25755 of the header for read-only modules.
25756 (grub_dl_unload): Free mod->symtab for read-only modules.
25757 * kern/i386/dl.c: Use mod->symtab.
25758 * kern/powerpc/dl.c: Likewise.
25759 * kern/sparc64/dl.c: Likewise.
25760 * kern/x86_64/dl.c: Likewise.
25761
25762 * conf/i386-qemu.rmk: New file.
25763 * kern/i386/qemu/startup.S: Likewise.
25764 * kern/i386/qemu/mmap.c: Likewise.
25765 * boot/i386/qemu/boot.S: Likewise.
25766 * include/grub/i386/qemu/time.h: Likewise.
25767 * include/grub/i386/qemu/serial.h: Likewise.
25768 * include/grub/i386/qemu/kernel.h: Likewise.
25769 * include/grub/i386/qemu/console.h: Likewise.
25770 * include/grub/i386/qemu/boot.h: Likewise.
25771 * include/grub/i386/qemu/init.h: Likewise.
25772 * include/grub/i386/qemu/machine.h: Likewise.
25773 * include/grub/i386/qemu/loader.h: Likewise.
25774 * include/grub/i386/qemu/memory.h: Likewise.
25775
25776 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
25777 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
25778 [qemu] (pkglib_IMAGES): Add `boot.img'.
25779 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
25780 [qemu] (boot_img_FORMAT): New variables.
25781 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
25782 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
25783 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
25784 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25785 [qemu] (kernel_img_FORMAT): New variables.
25786
25787 * configure.ac: Recognise `i386-qemu'.
25788
25789 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
25790 (for no compression).
25791 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
25792 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
25793 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
25794 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
25795 ifdefs).
25796
97fe384e 257972009-06-27 Pavel Roskin <proski@gnu.org>
25798
25799 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
25800 read.
25801 * efiemu/prepare32.c: Likewise.
25802 * efiemu/prepare64.c: Likewise.
25803
c402ab17 258042009-06-26 Pavel Roskin <proski@gnu.org>
25805
25806 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
25807 * include/grub/elf.h: Define symbols without "32" or "64" based
25808 on GRUB_TARGET_WORDSIZE.
25809 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
25810 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
25811 ELF definitions.
25812 * efiemu/loadcore64.c: Likewise.
25813 * loader/i386/bsd32.c: Likewise.
25814 * loader/i386/bsd64.c: Likewise.
25815 * kern/dl.c: Remove own ELF definitions.
25816 * util/i386/efi/grub-mkimage.c: Likewise.
25817
9bbdfd4d 258182009-06-23 Robert Millan <rmh.grub@aybabtu.com>
25819
25820 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
25821 segment 0x0 unconditionally, because the reference generated by
25822 GAS is an absolute address.
25823
a42ce6e9 258242009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25825
25826 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
25827 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
25828
c952cf92 258292009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25830
25831 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
25832 indexes. Check for -f explicitly.
cc3752ad 25833 (search_file): Improve error message.
25834 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 25835
132a0a59 258362009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25837
25838 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
25839 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
25840
387a140c 258412009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25842
25843 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
25844 * conf/i386-ieee1275.rmk: Likewise.
25845 * conf/i386-coreboot.rmk: Likewise.
25846
25847 * kern/i386/pc/startup.S (grub_stop): Remove function.
25848 * kern/i386/ieee1275/startup.S: Likewise.
25849 * kern/i386/coreboot/startup.S: Likewise.
25850 * kern/i386/misc.S (grub_stop): New function.
25851
41da9665 258522009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25853
25854 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
25855 * kern/i386/realmode.S (real_to_prot): ... to here.
25856
bf337234 258572009-06-22 Robert Millan <rmh.grub@aybabtu.com>
25858
25859 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
25860 with `kernel.img'.
25861 (kernel_elf_SOURCES): Rename to ...
25862 (kernel_img_SOURCES): ... this.
25863 (kernel_elf_HEADERS): Rename to ...
25864 (kernel_img_HEADERS): ... this. Update all users.
25865 (kernel_elf_ASFLAGS): Rename to ...
25866 (kernel_img_ASFLAGS): ... this.
25867 (kernel_elf_CFLAGS): Rename to ...
25868 (kernel_img_CFLAGS): ... this.
25869 (kernel_elf_LDFLAGS): Rename to ...
25870 (kernel_img_LDFLAGS): ... this.
25871 * conf/i386-coreboot.rmk: Likewise.
25872 * conf/powerpc-ieee1275.rmk: Likewise.
25873
25874 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
25875 with "kernel.img".
25876
f52196ff 258772009-06-21 Pavel Roskin <proski@gnu.org>
25878
c3cee413 25879 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
25880 to match nested functions.
25881 * loader/sparc64/ieee1275/linux.c: Likewise.
25882
f52196ff 25883 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
25884
58750afc 258852009-06-21 Robert Millan <rmh.grub@aybabtu.com>
25886
25887 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
25888 all i386 platforms.
25889
15355c7d 258902009-06-21 Robert Millan <rmh.grub@aybabtu.com>
25891
25892 Fix asm file handling on ELF, and remove workarounds.
25893
25894 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 25895 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 25896 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
25897 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
25898
3f3ec72b 258992009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
25900
25901 Load BSD ELF modules
25902
25903 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
25904 and loader/i386/bsd64.c
25905 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
25906 (FREEBSD_MODTYPE_ELF_MODULE): New definition
25907 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
25908 (grub_freebsd_load_elfmodule32): New declaration
25909 (grub_freebsd_load_elfmoduleobj64): Likewise
25910 (grub_freebsd_load_elf_meta32): Likewise
25911 (grub_freebsd_load_elf_meta64): Likewise
25912 (grub_freebsd_add_meta): Likewise
25913 (grub_freebsd_add_meta_module): Likewise
25914 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
25915 (grub_freebsd_add_meta_module): Likewise and move module-specific
25916 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
25917 (grub_cmd_freebsd): Add elf-kernel specific parts
25918 based on grub_freebsd_add_meta_module
25919 (grub_cmd_freebsd_module): Add type parsing moved from
25920 grub_freebsd_add_meta_module
25921 (grub_cmd_freebsd_module_elf): New function
25922 (cmd_freebsd_module_elf): New variable
25923 (GRUB_MOD_INIT): Register freebsd_module_elf
25924 * loader/i386/bsd32.c: New file
25925 * loader/i386/bsd64.c: Likewise
25926 * loader/i386/bsdXX.c: Likewise
25927 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
25928 (grub_elf64_load): Likewise
25929 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
25930 All users updated
25931 (grub_elf64_load_hook_t): Likewise
25932
0db15301 259332009-06-21 Colin Watson <cjwatson@ubuntu.com>
25934
25935 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
25936 variable.
25937 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
25938 don't write a menu entry for recovery mode.
25939
546796c1 259402009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25941
25942 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
25943 after it's no longer needed.
25944
cd7310d5 259452009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25946
25947 * include/grub/i386/loader.h (grub_linux_prot_size)
25948 (grub_linux_tmp_addr, grub_linux_real_addr)
25949 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
25950 GRUB_MACHINE_PCBIOS.
25951 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
25952 common grub_util_info() call to ...
25953 (generate_image): ... here.
25954 Fix use of uninitialized memory, comparison of signed with
25955 unsigned integers and memory leak.
25956 Remove bogus module address message.
25957
ab32d3b5 259582009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
25959
25960 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
25961 grub_raid_register
25962 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
25963
024ef597 259642009-06-19 Pavel Roskin <proski@gnu.org>
25965
25966 * configure.ac: Remove stray AC_MSG_CHECKING.
25967
3ac72b51 259682009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
25969
25970 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 25971
e14cd814 259722009-06-18 Pavel Roskin <proski@gnu.org>
25973
25974 * conf/common.rmk: Add fs_file.mod.
25975 * disk/fs_file.c: New file.
25976 * include/grub/disk.h (enum grub_disk_dev_id): Add
25977 GRUB_DISK_DEVICE_FILE_ID.
25978
26586d98 259792009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25980
25981 Fix build with Apple's toolchain. Part 2
25982
25983 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
25984 a fake start
25985
26de2bcd 259862009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25987
25988 Fix build with Apple's toolchain. Part 1
25989
25990 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
25991 for long calls
25992 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 25993 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 25994 Apple's toolchain
25995
09b3490b 259962009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25997
25998 Fix warnings
25999
26000 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
26001 (decomp_block): initialize ch
26002 use grub_memcpy instead of memcpy
26003
c22a006a 260042009-06-17 Pavel Roskin <proski@gnu.org>
26005
d3638678 26006 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
26007 version, use declarations needed to use vga_text as the startup
26008 console.
26009
c22a006a 26010 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
26011 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
26012 the kernel.
26013 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
26014 and grub_at_keyboard_fini(), it's done on module load and
26015 unload.
26016
05b129e0 260172009-06-17 Felix Zielcke <fzielcke@z-51.de>
26018
26019 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
26020 file can't be found.
26021 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
26022
cf24ed9e 260232009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
26024
26025 Fix newline handling
26026
26027 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 26028 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 26029 (grub_script_yylex): don't segfault on unterminated script
26030 newline terminates command and variable
26031
74aa8e4b 260322009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
26033
26034 avoid double grub_adjust_range call. Bug reported by David Simner
26035
26036 * kern/disk.c (grub_disk_write): change to raw disk access before
26037 calling disk_read
26038
1bd265f3 260392009-06-17 Colin Watson <cjwatson@ubuntu.com>
26040
26041 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
26042 spaces, for the benefit of help2man.
26043 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26044
a2d08c06 260452009-06-16 Pavel Roskin <proski@gnu.org>
26046
26047 * kern/i386/halt.c: Include grub/machine/init.h.
26048 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
26049
b97bcb19 260502009-06-16 Felix Zielcke <fzielcke@z-51.de>
26051
26052 * util/grub.d/30_os-prober.in: Use ${root} in the generated
26053 drivemap menuentry.
26054
0644f96c 260552009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
26056
26057 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
26058 `echo' command.
26059
3ef17a2e 260602009-06-16 Pavel Roskin <proski@gnu.org>
26061
26062 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
26063 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
26064 save %dx, we only need %dl and we never change it.
26065 * boot/i386/pc/cdboot.S: Don't set the root drive.
26066 * boot/i386/pc/pxeboot.S: Likewise.
26067 * include/grub/i386/pc/boot.h: Remove
26068 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
26069 GRUB_BOOT_MACHINE_DRIVE_CHECK.
26070 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
26071 * kern/i386/pc/init.c (make_install_device): Remove references
26072 to grub_root_drive.
26073 * kern/i386/pc/startup.S: Likewise.
26074 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
26075
693fe637 260762009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
26077
26078 xnu_uuid command
26079
26080 * commands/xnu_uuid.c: new file
26081 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
26082 (xnu_uuid_mod_SOURCES): new variable
26083 (xnu_uuid_mod_CFLAGS): likewise
26084 (xnu_uuid_mod_LDFLAGS): likewise
26085 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
26086 * conf/i386-ieee1275.rmk: likewise
26087 * conf/i386-pc.rmk: likewise
26088 * conf/powerpc-ieee1275.rmk: likewise
26089 * conf/sparc64-ieee1275.rmk: likewise
26090 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
26091
c9da87d0 260922009-06-16 Pavel Roskin <proski@gnu.org>
26093
26094 * configure.ac: Avoid '==' in test command, it's not portable.
26095
9c6f4596 260962009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
26097
26098 Probe command
26099
26100 * commands/probe.c: new file
26101 * conf/common.rmk (pkglib_MODULES): add probe.mod
26102 (probe_mod_SOURCES): new variable
26103 (probe_mod_CFLAGS): likewise
26104 (probe_mod_LDFLAGS): likewise
26105 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
26106 * conf/i386-ieee1275.rmk: likewise
26107 * conf/i386-pc.rmk: likewise
26108 * conf/powerpc-ieee1275.rmk: likewise
26109 * conf/sparc64-ieee1275.rmk: likewise
26110
70b7f9fd 261112009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
26112
26113 Fix handling of string like \"hello\" and "a
26114 b"
26115
26116 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
26117 (grub_script_yylex): fix parsing of quoting, escaping and newline
26118
71c79a6b 261192009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
26120
dd74360c 26121 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 26122 handling
dd74360c 26123
0644f96c 261242009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 26125
26126 * util/grub-mkconfig.in: Fix parsing of --output option.
26127
e40893c3 261282009-06-12 Pavel Roskin <proski@gnu.org>
26129
26130 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
26131 genmk.rb don't need to be generated or installed.
26132
3a1acfe2 261332009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
26134
26135 * commands/i386/pc/drivemap_int13h.S: add more comments
26136
3a4575d4 261372009-06-11 Pavel Roskin <proski@gnu.org>
26138
0658e928 26139 * Makefile.in (uninstall): Uninstall manuals.
26140
ca0388f0 26141 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
26142 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
26143 and update-grub_lib in two places.
26144 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
26145
e3b27c39 26146 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
26147 a compiler warning.
26148
3a4575d4 26149 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
26150 `entry_lo' to fix variable shadowing.
26151
af1f4f55 261522009-06-11 Christian Franke <franke@computer.org>
26153
26154 * kern/misc.c (__enable_execute_stack): Add missing return type
26155 to prevent gcc warning.
26156
5225e649 261572009-06-11 Felix Zielcke <fzielcke@z-51.de>
26158
26159 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
26160
7d83bd47 261612009-06-11 Pavel Roskin <proski@gnu.org>
26162
c1cb63ba 26163 * Makefile.in: Don't rely on any scripts being executable.
26164 Always use $(SHELL) to run shell scripts.
26165
7d83bd47 26166 * configure.ac: Always define ___main if using -nostdlib. This
26167 fixes tests on Cygwin.
26168
948f48e7 261692009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
26170
26171 UDF fix
26172
7d83bd47 26173 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 26174 is in bytes and not in blocks
7d83bd47 26175
8ada9bc1 261762009-06-11 Pavel Roskin <proski@gnu.org>
26177
26178 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
26179 warning.
26180
25ad2323 261812009-06-11 Felix Zielcke <fzielcke@z-51.de>
26182
26183 * util/grub.d/30_os-prober.in: Fix a comment. Source
26184 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
26185 to set the root device. Place drivemap command in the generated
26186 chain entry.
26187
e65acb0c 261882009-06-11 Pavel Roskin <proski@gnu.org>
26189
26190 * configure.ac: Remove host_m32. Issues with 64-bit utilities
26191 have long been resolved.
26192
f285fe2d 261932009-06-11 Colin Watson <cjwatson@ubuntu.com>
26194
bd47b0b5 26195 * util/grub.d/10_linux.in: Capitalise "Linux".
26196
f285fe2d 26197 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
26198
a0c62e4e 261992009-06-11 Pavel Roskin <proski@gnu.org>
26200
b6783cb2 26201 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
26202 fix a gcc warning and ensure that the function won't ever exit.
26203
dde032e8 26204 * kern/i386/ieee1275/init.c: Add missing prototype for
26205 grub_stop_floppy().
26206
22cd079d 26207 * loader/ieee1275/multiboot2.c [__i386__]: Include
26208 grub/cpu/multiboot.h.
26209
a0c62e4e 26210 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
26211 casts to short - they are not portable and cause warnings. Fix
26212 use of uninitialized values in input_buf. Use ARRAY_SIZE.
26213
63963d17 262142009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
26215
26216 Drivemap fixes
26217
26218 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
26219 new function
26220 (grub_get_root_biosnumber_saved): new variable
26221 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
26222 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 26223 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 26224 %dx after the call if necessary
26225 * conf/common.rmk (pkglib_MODULES): remove boot.mod
26226 (boot_mod_SOURCES): remove
26227 (boot_mod_CFLAGS): remove
26228 (boot_mod_LDFLAGS): remove
26229 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
26230 (boot_mod_SOURCES): new variable
26231 (boot_mod_CFLAGS): likewise
26232 (boot_mod_LDFLAGS): likewise
26233 * conf/i386-efi.rmk: likewise
26234 * conf/i386-ieee1275.rmk: likewise
26235 * conf/i386-pc.rmk: likewise
26236 * conf/powerpc-ieee1275.rmk: likewise
26237 * conf/sparc64-ieee1275.rmk: likewise
26238 * conf/x86_64-efi.rmk: likewise
26239 * include/grub/i386/pc/biosnum.h: new file
26240 * lib/i386/pc/biosnum.c: likewise
26241 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
26242 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
26243 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 26244
33abf7ae 262452009-06-10 Pavel Roskin <proski@gnu.org>
26246
5ac35b35 26247 * io/gzio.c (test_header): Don't reuse one buffer for all data.
26248 Use separate variables. Read only the file size at the end, but
26249 not the checksum that we don't use.
26250
5c5215d5 26251 * kern/file.c (grub_file_read): Use void pointer for the buffer.
26252 Adjust all callers.
26253
27d5fef7 26254 * kern/ieee1275/openfw.c: Remove libc includes.
26255 * kern/ieee1275/cmain.c: Likewise.
26256 * include/grub/ieee1275/ieee1275.h: Likewise.
26257
33abf7ae 26258 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
26259 compiler warnings.
26260
19d50c2b 262612009-06-10 Felix Zielcke <fzielcke@z-51.de>
26262
26263 * Makefile.in: Remove all trailing whitespace.
26264 * conf/i386-pc.rmk: Likewise.
26265 * conf/powerpc-ieee1275.rmk: Likewise.
26266 * conf/sparc64-ieee1275.rmk: Likewise.
26267 * docs/grub.texi: Likewise.
26268 * docs/texinfo.tex: Likewise.
26269 * disk/fs_uuid.c: Likewise.
26270 * disk/lvm.c: Likewise.
26271 * disk/scsi.c: Likewise.
26272 * disk/ata.c: Likewise.
26273 * disk/ieee1275/ofdisk.c: Likewise.
26274 * disk/i386/pc/biosdisk.c: Likewise.
26275 * disk/host.c: Likewise.
26276 * disk/raid.c: Likewise.
26277 * disk/efi/efidisk.c: Likewise.
26278 * disk/usbms.c: Likewise.
26279 * disk/memdisk.c: Likewise.
26280 * disk/loopback.c: Likewise.
26281 * kern/powerpc/dl.c: Likewise.
26282 * kern/device.c: Likewise.
26283 * kern/dl.c: Likewise.
26284 * kern/sparc64/dl.c: Likewise.
26285 * kern/ieee1275/ieee1275.c: Likewise.
26286 * kern/term.c: Likewise.
26287 * kern/fs.c: Likewise.
26288 * kern/i386/dl.c: Likewise.
26289 * kern/i386/pc/startup.S: Likewise.
26290 * kern/i386/pc/init.c: Likewise.
26291 * kern/i386/pc/mmap.c: Likewise.
26292 * kern/i386/pc/lzo1x.S: Likewise.
26293 * kern/i386/ieee1275/init.c: Likewise.
26294 * kern/i386/realmode.S: Likewise.
26295 * kern/i386/tsc.c: Likewise.
26296 * kern/partition.c: Likewise.
26297 * kern/corecmd.c: Likewise.
26298 * kern/file.c: Likewise.
26299 * kern/efi/efi.c: Likewise.
26300 * kern/efi/init.c: Likewise.
26301 * kern/efi/mm.c: Likewise.
26302 * kern/main.c: Likewise.
26303 * kern/err.c: Likewise.
26304 * kern/env.c: Likewise.
26305 * kern/disk.c: Likewise.
26306 * kern/generic/millisleep.c: Likewise.
26307 * kern/generic/rtc_get_time_ms.c: Likewise.
26308 * kern/misc.c: Likewise.
26309 * kern/parser.c: Likewise.
26310 * genmk.rb: Likewise.
26311 * configure.ac: Likewise.
26312 * boot/i386/pc/diskboot.S: Likewise.
26313 * boot/i386/pc/pxeboot.S: Likewise.
26314 * boot/i386/pc/boot.S: Likewise.
26315 * boot/i386/pc/lnxboot.S: Likewise.
26316 * boot/i386/pc/cdboot.S: Likewise.
26317 * parttool/pcpart.c: Likewise.
26318 * video/readers/tga.c: Likewise.
26319 * video/video.c: Likewise.
26320 * video/bitmap.c: Likewise.
26321 * lib/envblk.c: Likewise.
26322 * lib/i386/setjmp.S: Likewise.
26323 * fs/xfs.c: Likewise.
26324 * fs/afs.c: Likewise.
26325 * fs/fat.c: Likewise.
26326 * fs/ntfs.c: Likewise.
26327 * fs/udf.c: Likewise.
26328 * fs/affs.c: Likewise.
26329 * fs/iso9660.c: Likewise.
26330 * fs/hfs.c: Likewise.
26331 * fs/fshelp.c: Likewise.
26332 * fs/ext2.c: Likewise.
26333 * fs/jfs.c: Likewise.
26334 * fs/reiserfs.c: Likewise.
26335 * fs/hfsplus.c: Likewise.
26336 * fs/minix.c: Likewise.
26337 * fs/cpio.c: Likewise.
26338 * fs/sfs.c: Likewise.
26339 * fs/ufs.c: Likewise.
26340 * efiemu/prepare.c: Likewise.
26341 * efiemu/loadcore_common.c: Likewise.
26342 * efiemu/runtime/efiemu.sh: Likewise.
26343 * efiemu/runtime/efiemu.S: Likewise.
26344 * efiemu/runtime/efiemu.c: Likewise.
26345 * efiemu/pnvram.c: Likewise.
26346 * efiemu/main.c: Likewise.
26347 * efiemu/i386/pc/cfgtables.c: Likewise.
26348 * efiemu/i386/loadcore64.c: Likewise.
26349 * efiemu/i386/loadcore32.c: Likewise.
26350 * efiemu/loadcore.c: Likewise.
26351 * efiemu/symbols.c: Likewise.
26352 * efiemu/mm.c: Likewise.
26353 * include/grub/autoefi.h: Likewise.
26354 * include/grub/datetime.h: Likewise.
26355 * include/grub/term.h: Likewise.
26356 * include/grub/hfs.h: Likewise.
26357 * include/grub/lvm.h: Likewise.
26358 * include/grub/i386/tsc.h: Likewise.
26359 * include/grub/i386/linux.h: Likewise.
26360 * include/grub/i386/xnu.h: Likewise.
26361 * include/grub/i386/efiemu.h: Likewise.
26362 * include/grub/i386/pc/biosdisk.h: Likewise.
26363 * include/grub/i386/pc/memory.h: Likewise.
26364 * include/grub/i386/pc/vbe.h: Likewise.
26365 * include/grub/parttool.h: Likewise.
26366 * include/grub/video.h: Likewise.
26367 * include/grub/memory.h: Likewise.
26368 * include/grub/fs.h: Likewise.
26369 * include/grub/partition.h: Likewise.
26370 * include/grub/xnu.h: Likewise.
26371 * include/grub/efi/api.h: Likewise.
26372 * include/grub/efi/pe32.h: Likewise.
26373 * include/grub/efi/memory.h: Likewise.
26374 * include/grub/multiboot.h: Likewise.
26375 * include/grub/usbdesc.h: Likewise.
26376 * include/grub/multiboot2.h: Likewise.
26377 * include/grub/acpi.h: Likewise.
26378 * include/grub/efiemu/efiemu.h: Likewise.
26379 * include/grub/disk.h: Likewise.
26380 * include/grub/ieee1275/ieee1275.h: Likewise.
26381 * include/grub/net.h: Likewise.
26382 * include/grub/machoload.h: Likewise.
26383 * include/grub/macho.h: Likewise.
26384 * include/multiboot.h: Likewise.
26385 * genmoddep.awk: Likewise.
26386 * normal/main.c: Likewise.
26387 * normal/menu_entry.c: Likewise.
26388 * normal/menu_viewer.c: Likewise.
26389 * normal/completion.c: Likewise.
26390 * normal/cmdline.c: Likewise.
26391 * normal/misc.c: Likewise.
26392 * normal/datetime.c: Likewise.
26393 * bus/usb/usbtrans.c: Likewise.
26394 * bus/usb/ohci.c: Likewise.
26395 * bus/usb/uhci.c: Likewise.
26396 * bus/usb/usb.c: Likewise.
26397 * mmap/efi/mmap.c: Likewise.
26398 * mmap/i386/pc/mmap_helper.S: Likewise.
26399 * mmap/i386/pc/mmap.c: Likewise.
26400 * mmap/i386/mmap.c: Likewise.
26401 * mmap/i386/uppermem.c: Likewise.
26402 * mmap/mmap.c: Likewise.
26403 * commands/acpi.c: Likewise.
26404 * commands/echo.c: Likewise.
26405 * commands/blocklist.c: Likewise.
26406 * commands/loadenv.c: Likewise.
26407 * commands/usbtest.c: Likewise.
26408 * commands/boot.c: Likewise.
26409 * commands/parttool.c: Likewise.
26410 * commands/search.c: Likewise.
26411 * commands/cat.c: Likewise.
26412 * commands/i386/pc/play.c: Likewise.
26413 * commands/i386/pc/drivemap.c: Likewise.
26414 * commands/i386/pc/vbeinfo.c: Likewise.
26415 * commands/i386/pc/acpi.c: Likewise.
26416 * commands/i386/pc/vbetest.c: Likewise.
26417 * commands/ls.c: Likewise.
26418 * commands/cmp.c: Likewise.
26419 * commands/test.c: Likewise.
26420 * commands/efi/acpi.c: Likewise.
26421 * commands/gptsync.c: Likewise.
26422 * commands/help.c: Likewise.
26423 * partmap/amiga.c: Likewise.
26424 * partmap/apple.c: Likewise.
26425 * partmap/acorn.c: Likewise.
26426 * partmap/pc.c: Likewise.
26427 * partmap/sun.c: Likewise.
26428 * partmap/gpt.c: Likewise.
26429 * script/sh/lexer.c: Likewise.
26430 * script/sh/function.c: Likewise.
26431 * font/font.c: Likewise.
26432 * font/font_cmd.c: Likewise.
26433 * loader/powerpc/ieee1275/linux.c: Likewise.
26434 * loader/efi/chainloader.c: Likewise.
26435 * loader/multiboot_loader.c: Likewise.
26436 * loader/macho.c: Likewise.
26437 * loader/i386/multiboot.c: Likewise.
26438 * loader/i386/linux.c: Likewise.
26439 * loader/i386/pc/linux.c: Likewise.
26440 * loader/i386/pc/multiboot2.c: Likewise.
26441 * loader/i386/pc/chainloader.c: Likewise.
26442 * loader/i386/pc/xnu.c: Likewise.
26443 * loader/i386/bsd_trampoline.S: Likewise.
26444 * loader/i386/efi/linux.c: Likewise.
26445 * loader/i386/multiboot_elfxx.c: Likewise.
26446 * loader/i386/bsd_helper.S: Likewise.
26447 * loader/i386/bsd.c: Likewise.
26448 * loader/i386/linux_trampoline.S: Likewise.
26449 * loader/i386/xnu_helper.S: Likewise.
26450 * loader/i386/xnu.c: Likewise.
26451 * loader/i386/bsd_pagetable.c: Likewise.
26452 * loader/i386/multiboot_helper.S: Likewise.
26453 * loader/xnu.c: Likewise.
26454 * loader/xnu_resume.c: Likewise.
26455 * io/gzio.c: Likewise.
26456 * term/efi/console.c: Likewise.
26457 * term/terminfo.c: Likewise.
26458 * term/ieee1275/ofconsole.c: Likewise.
26459 * term/i386/pc/serial.c: Likewise.
26460 * term/i386/pc/vesafb.c: Likewise.
26461 * term/i386/pc/vga.c: Likewise.
26462 * term/usb_keyboard.c: Likewise.
26463 * term/gfxterm.c: Likewise.
26464 * aclocal.m4: Likewise.
26465 * util/lvm.c: Likewise.
26466 * util/grub.d/30_os-prober.in: Likewise.
26467 * util/grub.d/10_hurd.in: Likewise.
26468 * util/console.c: Likewise.
26469 * util/grub-macho2img.c: Likewise.
26470 * util/grub-probe.c: Likewise.
26471 * util/hostfs.c: Likewise.
26472 * util/i386/pc/grub-mkimage.c: Likewise.
26473 * util/i386/pc/grub-setup.c: Likewise.
26474 * util/i386/efi/grub-mkimage.c: Likewise.
26475 * util/grub-mkconfig.in: Likewise.
26476 * util/raid.c: Likewise.
26477 * util/resolve.c: Likewise.
26478 * util/grub-mkdevicemap.c: Likewise.
26479 * util/grub-emu.c: Likewise.
26480 * util/getroot.c: Likewise.
26481 * util/hostdisk.c: Likewise.
26482 * util/usb.c: Likewise.
26483 * util/grub-editenv.c: Likewise.
26484 * util/misc.c: Likewise.
26485
d2d49665 264862009-06-10 Felix Zielcke <fzielcke@z-51.de>
26487
26488 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
26489 `genparttoollist.sh'.
26490 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
26491 Add `*.sh' to the list find searches for and change `mdate.sh'
26492 to `mdate-sh'.
26493
fe052e37 264942009-06-10 Pavel Roskin <proski@gnu.org>
26495
2763ac18 26496 * include/grub/multiboot2.h: Provide compatibility defines for
26497 multiboot2.h.
26498 * include/multiboot2.h: Include stdint.h only if needed, using
26499 angle brackets.
26500 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
26501 grub/multiboot2.h.
26502 * loader/ieee1275/multiboot2.c: Likewise.
26503 * loader/multiboot2.c: Likewise.
26504 * loader/multiboot_loader.c: Likewise.
26505
437e6adc 26506 * configure.ac: Use -nostdlib when probing for the target. It
26507 should not be required to have libc for the target.
26508
06a6836c 26509 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
26510 they fail without libc headers for the target.
26511 * include/grub/powerpc/libgcc.h: Use weak attribute for all
26512 exports.
26513 * include/grub/sparc64/libgcc.h: Likewise. Don't use
26514 preprocessor conditionals.
26515
fe052e37 26516 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
26517 build system doesn't need to be aware of the tar.c internals.
26518
afd22553 265192009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 26520
afd22553 26521 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 26522
6b787c4f 265232009-06-09 Robert Millan <rmh.grub@aybabtu.com>
26524
26525 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
26526 disk limit to 26 for IDE, Virtio, Xen and SCSI.
26527
265282009-06-09 Felix Zielcke <fzielcke@z-51.de>
26529
26530 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 26531 aren't available if ata.mod gets used.
6b787c4f 26532
473d1e45 265332009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 26534
473d1e45 26535 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 26536 initialising controller.
473d1e45 26537 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 26538
255a27d4 265392009-06-08 Felix Zielcke <fzielcke@z-51.de>
26540
26541 * util/i386/pc/grub-install.in: Add a parameter --disk-module
26542 to choose between ata and biosdisk module on i386-pc.
26543
473d1e45 265442009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 26545
d55842d8 26546 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
26547 Subclass and Programming Interface fields in terms of the 3 byte
26548 Class Code register.
26549 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
26550
fa5db0b1 26551 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
26552 interface is OHCI. Add grub_dprintf for symmetry with
26553 bus/usb/uhci.c.
26554 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
26555 interface is UHCI. Add interf variable for programming
26556 interface. Print interface with class/subclass.
26557
c0947beb 26558 * bus/usb/ohci.c: Set interf with correct field.
26559
69da8877 26560 * bus/usb/uhci.c: Remove unneeded doubled lines.
26561 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
26562 Remove whitespace inside comment.
26563
9e172e30 265642009-06-08 Robert Millan <rmh.grub@aybabtu.com>
26565
26566 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
26567 as fallback an equivalent option without depth.
26568
de65ee2b 265692009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
26570
26571 Not fail if unable to retrieve C/H/S on LBA disks
26572
473d1e45 26573 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 26574 if unable to retrieve C/H/S on LBA disks
26575
b57ea2c9 265762009-06-08 Pavel Roskin <proski@gnu.org>
26577
26578 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
26579 about aliasing.
26580
af361263 265812009-06-08 Felix Zielcke <fzielcke@z-51.de>
26582
26583 * Makefile.in (uninstall): Remove all $lib_DATA files.
26584
4c9ec6b3 265852009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
26586
26587 Bugfix: install on partitionless device
26588
26589 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
26590 is a whole disk
26591
e76fc924 265922009-06-08 Felix Zielcke <fzielcke@z-51.de>
26593
26594 * Makefile.in (uninstall): Remove all $include_DATA files.
26595
ba5a0d05 265962009-06-08 Felix Zielcke <fzielcke@z-51.de>
26597
26598 * commands/true.c: New file. Implement the true and false commands.
26599 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
26600 (true_mod_SOURCES): New variable.
26601 (true_mod_CFLAGS): Likewise.
26602 (true_mod_LDFLAGS): Likewise.
26603
c8048e32 266042009-06-05 Colin D Bennett <colin@gibibit.com>
26605
26606 Optimized font character lookup using binary search instead of linear
26607 search. Fonts now are required to have the character index ordered by
26608 code point.
26609
26610 * font/font.c (load_font_index): Verify that fonts have ordered
26611 character indices.
26612 (find_glyph): Use binary search instead of linear search to find a
26613 character in a font.
26614
408305be 266152009-06-05 Michael Scherer <misc@mandriva.org>
26616
26617 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
26618 uses case sensitive btree.
26619 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
26620 only for case insensitive filesystems.
26621
8ee1e0d9 266222009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
26623
26624 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
26625 * conf/common.rmk (search_mod_CFLAGS): likewise
26626
a9966eb1 266272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26628
473d1e45 26629 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 26630 compensate a compiler bug
26631
9e7100fb 266322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26633
473d1e45 26634 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 26635 instead of '\b'
473d1e45 26636
ede21d71 266372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26638
26639 Definitions for creating asm symbols with Apple's CC
26640
26641 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
26642 [APPLE_CC] (VARIABLE): likewise
26643
9dbf7653 266442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26645
26646 Disable lnxboot.img when compiled
26647 with Apple's CC
26648
26649 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
26650 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
26651 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
26652 [! APPLE_CC] (CODE_LENG): skip
26653 [! APPLE_CC] (setup_sects): likewise
26654 [! APPLE_CC]: skip filling
473d1e45 26655
e93cdc3d 266562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26657
26658 Address in trampolines based on 32-bit registers when compiled
26659 with Apple's CC
26660
473d1e45 26661 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 26662 for addresses
26663 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
26664
6c688477 266652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26666
26667 Avoid aliases when compiling with Apple's CC for PCBIOS machine
26668
26669 * kern/misc.c [APPLE_CC] (memcpy): new function
26670 [APPLE_CC] (memmove): likewise
26671 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 26672 (memcpy): define alias conditionally on !APPLE_CC
6c688477 26673 (memset): likewise
26674 (abort): likewise
26675 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
26676 APPLE_CC are defined
26677 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
26678 (grub_assert_fail): make prototype conditional
26679
e37ffc5c 266802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26681
26682 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
26683
473d1e45 26684 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
26685 grub-macho2img
e37ffc5c 26686 (CLEANFILES): add grub-macho2img
26687 (grub_macho2img_SOURCES): new variable
26688 * kern/i386/pc/startup.S (bss_start): new variable
26689 (bss_end): likewise
26690 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
26691 * util/grub-macho2img.c: new file
26692
cf00df31 266932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26694
26695 Use objconv when compiling with Apple's CC
26696
26697 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
26698 (efiemu64.o): likewise
26699 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
26700 when compiling with Apple's CC
26701 (efiemu64_s.o): likewise
26702 * configure.ac: check for objconv when compiling with Apple's CC
26703 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 26704
d119a20c 267052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26706
26707 Define segment as well as section when compiling with
26708 Apple's CC
26709
26710 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
26711 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
26712 (efiemu_convert_pointer): likewise
26713 (efiemu_set_virtual_address_map): likewise
26714 (efiemu_convert_pointer): likewise
26715 (efiemu_getcrc32): likewise
26716 (init_crc32_table): likewise
26717 (reflect): likewise
26718 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
26719 (GRUB_MOD_DEP): likewise
473d1e45 26720
c8600122 267212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26722
26723 Allow a compilation without -mcmodel=large
26724
26725 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
26726 when compiled without -mcmodel=large
473d1e45 26727 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 26728 without -mcmodel=large
473d1e45 26729 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 26730 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 26731
e8df1d4e 267322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26733
26734 Remove nested functions in efiemu core
26735
26736 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 26737
cc6c3ac1 267382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26739
26740 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
26741
26742 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
26743 temporary storage
473d1e45 26744 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
26745 using Apple's CC
cc6c3ac1 26746 (grub_cpu_is_tsc_supported): likewise
26747 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 26748
3e325901 267492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26750
26751 Absolute addressing through constant with Apple's cc
26752
26753 * kern/i386/pc/startup.S: Define necessary constants
26754 and address through it when using ABS with Apple's CC
26755 * boot/i386/pc/diskboot.S: likewise
26756 * boot/i386/pc/boot.S: likewise
26757 * boot/i386/pc/lnxboot.S: likewise
26758 * boot/i386/pc/cdboot.S: likewise
26759 * mmap/i386/pc/mmap_helper.S: likewise
26760 * commands/i386/pc/drivemap_int13h.S: likewise
26761
2b167a72 267622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26763
26764 Check if compiler is apple cc
26765
26766 * Makefile.in (ASFLAGS): new variable
26767 (TARGET_ASFLAGS): likewise
26768 (TARGET_MODULE_FORMAT): likewise
26769 (TARGET_APPLE_CC): likewise
26770 (OBJCONV): likewise
26771 (TARGET_IMG_CFLAGS): likewise
26772 (TARGET_CPPFLAGS): add includedir
26773 * configure.ac: call grub_apple_cc and grub_apple_target_cc
26774 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
26775 Check for linker script only if compiler isn't Apple's CC
26776 (TARGET_MODULE_FORMAT): set
26777 (TARGET_APPLE_CC): likewise
26778 (TARGET_ASFLAGS): likewise
26779 (ASFLAGS): likewise
26780 Check for objcopy only if compiler isn't Apple's CC
26781 Check for BSS symbol only if compiler isn't Apple's CC
26782 * genmk.rb: adapt nm options if we use Apple's utils
26783 * aclocal.m4 (grub_apple_cc): new test
26784 (grub_apple_target_cc): likewise
473d1e45 26785
fb14123e 267862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26787
26788 Simplify sed expressions and improve awk
26789
26790 * Makefile.in (install-local): simplify sed expression
26791 * gencmdlist.sh: likewise
26792 * genmoddep.awk: avoid adding module as a dependency of itself
26793
5b889789 267942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26795
26796 Add missing start symbols
26797
26798 * boot/i386/pc/boot.S: add start
fb14123e 26799 * boot/i386/pc/pxeboot.S: likewise
473d1e45 26800
fd2bf2e3 268012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26802
26803 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 26804
26805 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 26806 (relocate_addresses): consider both r_addend and value at offset
26807 (make_mods_section): zerofill modinfo and header
26808 (convert_elf): write prefix here
473d1e45 26809
5389763d 268102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26811
26812 Use .asciz instead of .string
26813
26814 * i386/pc/diskboot.S: use .asciz instead of .string
26815 * i386/pc/boot.S: likewise
26816 * include/grub/dl.h (GRUB_MOD_DEP): likewise
26817 (GRUB_MOD_NAME): likewise
473d1e45 26818
3eb5ed4e 268192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 gfxpayload support
26822
26823 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
26824 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
26825 (grub_video_setup): remove
26826 (grub_video_set_mode): new prototype
26827 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
26828 (vid_mode): remove
26829 (linux_vesafb_res): compile only on PCBIOS
26830 (grub_linux_boot): support gfxpayload
26831 * loader/i386/pc/xnu.c (video_hook): new function
26832 (grub_xnu_set_video): support gfxpayload
26833 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
26834 (DEFAULT_VIDEO_HEIGHT): likewise
26835 (DEFAULT_VIDEO_FLAGS): likewise
26836 (DEFAULT_VIDEO_MODE): new definition
26837 (video_hook): new function
26838 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 26839 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 26840 loading xnu
26841 * video/video.c (grub_video_setup): removed
473d1e45 26842 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 26843 grub_video_setup
26844
4b0e1143 268452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26846
26847 Avoid calling biosdisk in drivemap
26848
26849 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
26850 (revparse_biosdisk): likewise
26851 (list_mappings): derive name from id directly
26852 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 26853
fda6cb98 268542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
26855
26856 Script fixes
26857
26858 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
26859 (grub_lexer_param): add tokenonhold
26860 (grub_script_create_cmdline): remove cmdline. All callers updated
26861 (grub_script_function_create): make functionname
26862 grub_script_arg. All callers updated
26863 (grub_script_execute_argument_to_string): new prototype
26864 * kern/parser.c (state_transitions): reorder
26865 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 26866 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 26867 make global
26868 (grub_script_execute_cmdline): use new format
26869 * script/sh/function.c (grub_script_function_create): make functionname
26870 grub_script_arg. All callers updated
473d1e45 26871 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 26872 (grub_script_yylex): remove
26873 (grub_script_yylex2): renamed to ...
26874 (grub_script_yylex): ...renamed
26875 parse the expressions like a${b}c
26876 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
26877 (GRUB_PARSER_TOKEN_VAR): remove
26878 (GRUB_PARSER_TOKEN_NAME): likewise
26879 ("if"): declare as typeless
26880 ("while"): likewise
26881 ("function"): likewise
26882 ("else"): likewise
26883 ("then"): likewise
26884 ("fi"): likewise
26885 (text): remove
26886 (argument): likewise
26887 (script): accept empty scripts and make exit on error
26888 (arguments): use GRUB_PARSER_TOKEN_ARG
26889 (function): likewise
26890 (command): move error handling to script
26891 (menuentry): move grub_script_lexer_ref before
473d1e45 26892 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 26893 argument. All callers updated
26894
f4448a07 268952009-06-04 Robert Millan <rmh.grub@aybabtu.com>
26896
26897 Prevent GRUB from probing floppies during boot.
26898
26899 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
26900 * commands/search.c (options): Add --no-floppy.
26901 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
26902 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
26903 --no-floppy when searching for UUIDs.
26904
2bf5885a 269052009-06-04 Robert Millan <rmh.grub@aybabtu.com>
26906
26907 Simplify the code duplication in commands/search.c.
26908
26909 * commands/search.c (search_label, search_fs_uuid): Merge into ...
26910 (search_fs): ... this. Update all users.
26911
f6fd460a 269122009-06-03 Felix Zielcke <fzielcke@z-51.de>
26913
26914 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
26915
cbb3c83e 269162009-05-28 Pavel Roskin <proski@gnu.org>
26917
57788cfd 26918 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
26919 Remove the original symlink explicitly.
26920
cbb3c83e 26921 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
26922 just one slash. That's how grub_fshelp_find_file() does it.
26923
cd0d5e30 269242009-05-26 Pavel Roskin <proski@gnu.org>
26925
f0f8bbe2 26926 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
26927 to `str'.
26928
cd0d5e30 26929 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
26930 possibly unused.
26931
8c2cab51 269322009-05-25 Christian Franke <franke@computer.org>
26933
26934 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
26935 register.
26936 (grub_atapi_identify): Add wait after drive select.
26937 (grub_ata_identify): Do more strict status register check before
26938 calling grub_atapi_identify (). Suppress error message if status
26939 register is 0x00 after command failure. Add status register
26940 check after PIO read to avoid bogus identify due to stuck DRQ.
26941 Thanks to Pavel Roskin for testing.
26942 (grub_device_initialize): Remove unsafe status register check.
26943 Thanks to 'phcoder' for problem report and patch.
26944 Prevent sign extension in debug message.
26945
230c0ad6 269462009-05-23 Colin D Bennett <colin@gibibit.com>
26947
26948 Cleaned up `include/grub/normal.h'. Grouped prototypes by
26949 definition file, and functions defined in `normal/menu.c' have had
26950 their prototypes moved to `include/grub/menu.h' for consistency.
26951
26952 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
26953 from normal.h.
26954 (grub_menu_get_entry): Likewise.
26955 (grub_menu_get_timeout): Likewise.
26956 (grub_menu_set_timeout): Likewise.
26957 (grub_menu_execute_entry): Likewise.
26958 (grub_menu_execute_with_fallback): Likewise.
26959 (grub_menu_entry_run): Likewise.
26960
26961 * include/grub/normal.h: Re-ordered and grouped function
26962 prototypes by file that the function is defined in.
26963 (grub_menu_execute_callback): Removed; moved to menu.h.
26964 (grub_menu_get_entry): Likewise.
26965 (grub_menu_get_timeout): Likewise.
26966 (grub_menu_set_timeout): Likewise.
26967 (grub_menu_execute_entry): Likewise.
26968 (grub_menu_execute_with_fallback): Likewise.
26969 (grub_menu_entry_run): Likewise.
26970 (grub_menu_addentry): Renamed from this ...
26971 (grub_normal_add_menu_entry): ... to this.
26972
26973 * normal/main.c (grub_menu_addentry): Renamed from this ...
26974 (grub_normal_add_menu_entry): ... to this.
26975
26976 * script/sh/execute.c (grub_script_execute_menuentry): Update
26977 reference to renamed grub_menu_addentry function.
26978
861f03a5 269792009-05-23 Felix Zielcke <fzielcke@z-51.de>
26980
26981 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
26982
96b1619a 269832009-05-22 Pavel Roskin <proski@gnu.org>
26984
bf6a5fb2 26985 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
26986 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
26987 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
26988 compiling for the i386 targets, but not for the utilities.
26989
96b1619a 26990 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
26991 to grub_uint8_t.
26992 (grub_root_drive): Likewise.
26993 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
26994 remove alignment.
26995 (grub_root_drive): Change size to byte.
26996 (grub_start_addr): Remove.
26997 (grub_end_addr): Likewise.
26998 (grub_apm_bios_info): Likewise.
26999
b729776b 270002009-05-21 Felix Zielcke <fzielcke@z-51.de>
27001
27002 * normal/i386: Remove.
27003 * normal/powerpc: Likewise.
27004 * normal/sparc64: Likewise.
27005 * normal/x86_64: Likewise.
27006
0a15ce80 270072009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
27008
27009 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 27010 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 27011 * loader/i386/xnu_helper.S: Likewise
d6da58e6 27012
33db9015 270132009-05-18 Colin D Bennett <colin@gibibit.com>
27014
d6da58e6 27015 Display error messages when parsing a Lua statement fails.
27016 Previously, executing a syntactically invalid statement like
27017 ")foo" or "bar;" would silently fail.
33db9015 27018
27019 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 27020 (grub_lua_parse_line): Improved reporting of Lua parser and
27021 execution errors.
33db9015 27022
46422c89 270232009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27024
27025 Remove -Werror which causes build to fail on some systems
27026
27027 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
27028 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
27029 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 27030
22f53a96 270312009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
27032
27033 trampoline for linux on 64-bit platform
27034
18f547ad 27035 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
27036 loader/i386/efi/linux_trampoline.S
27037 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 27038 declaration
d6da58e6 27039 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
27040 here
22f53a96 27041 * loader/i386/linux_trampoline.S: moved here
d6da58e6 27042 * loader/i386/efi/linux.c (allocate_pages): reserve space for
27043 trampoline
22f53a96 27044 (jumpvector): removed
27045 (grub_linux_trampoline_start): new declaration
27046 (grub_linux_trampoline_end): likewise
27047 (grub_linux_boot): use trampoline when on 64-bit platform
27048 * loader/i386/linux.c: likewise
27049
cb5a0f40 270502009-05-16 Pavel Roskin <proski@gnu.org>
27051
27052 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
27053 const to avoid a warning.
27054 (grub_lua_setenv): Likewise.
27055 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
27056 lmsg to fix a warning.
27057
334f2c28 270582009-05-16 Felix Zielcke <fzielcke@z-51.de>
27059
27060 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 27061 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
27062 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
27063 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
27064 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
27065 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
27066 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
27067 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 27068
59e5d3ec 270692009-05-16 Felix Zielcke <fzielcke@z-51.de>
27070
27071 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
27072
9d87a1ba 270732009-05-16 Bean <bean123ch@gmail.com>
27074
27075 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
27076 (lua_mod_SOURCES): New variable.
27077 (lua_mod_CFLAGS): Likewise.
27078 (lua_mod_LDFLAGS): Likewise.
27079
27080 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
27081 (setjmp_mod_SOURCES): New variable.
27082 (setjmp_mod_CFLAGS): Likewise.
27083 (setjmp_LDFLAGS): Likewise.
27084
27085 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
27086 (setjmp_mod_SOURCES): New variable.
27087 (setjmp_mod_CFLAGS): Likewise.
27088 (setjmp_LDFLAGS): Likewise.
27089
27090 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
27091 (setjmp_mod_SOURCES): New variable.
27092 (setjmp_mod_CFLAGS): Likewise.
27093 (setjmp_LDFLAGS): Likewise.
27094
27095 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
27096 (setjmp_mod_SOURCES): New variable.
27097 (setjmp_mod_CFLAGS): Likewise.
27098 (setjmp_LDFLAGS): Likewise.
27099
27100 * normal/i386/setjmp.S: Moved from here ...
27101 * lib/i386/setjmp.S: ... Moved here
27102 * normal/x86_64/setjmp.S: Moved from here ...
27103 * lib/x86_64/setjmp.S: ... Moved here
27104 * normal/powerpc/setjmp.S: Moved from here ...
27105 * lib/powerpc/setjmp.S: ... Moved here
27106 * normal/sparc64/setjmp.S: Moved from here ...
27107 * lib/sparc64/setjmp.S: ... Moved here
27108
27109 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
27110 returns_twice in mingw.
27111
27112 * script/lua/grub_lib.c: New file.
27113 * script/lua/grub_lib.h: Likewise.
27114 * script/lua/grub_lua.h: Likewise.
27115 * script/lua/grub_main.c: Likewise.
27116 * script/lua/lapi.c: Likewise.
27117 * script/lua/lapi.h: Likewise.
27118 * script/lua/lauxlib.c: Likewise.
27119 * script/lua/lauxlib.h: Likewise.
27120 * script/lua/lbaselib.c: Likewise.
27121 * script/lua/lcode.c: Likewise.
27122 * script/lua/lcode.h: Likewise.
27123 * script/lua/ldblib.c: Likewise.
27124 * script/lua/ldebug.c: Likewise.
27125 * script/lua/ldebug.h: Likewise.
27126 * script/lua/ldo.c: Likewise.
27127 * script/lua/ldo.h: Likewise.
27128 * script/lua/ldump.c: Likewise.
27129 * script/lua/lfunc.c: Likewise.
27130 * script/lua/lfunc.h: Likewise.
27131 * script/lua/lgc.c: Likewise.
27132 * script/lua/lgc.h: Likewise.
27133 * script/lua/linit.c: Likewise.
27134 * script/lua/liolib.c: Likewise.
27135 * script/lua/llex.c: Likewise.
27136 * script/lua/llex.h: Likewise.
27137 * script/lua/llimits.h: Likewise.
27138 * script/lua/lmathlib.c: Likewise.
27139 * script/lua/lmem.c: Likewise.
27140 * script/lua/lmem.h: Likewise.
27141 * script/lua/loadlib.c: Likewise.
27142 * script/lua/lobject.c: Likewise.
27143 * script/lua/lobject.h: Likewise.
27144 * script/lua/lopcodes.c: Likewise.
27145 * script/lua/lopcodes.h: Likewise.
27146 * script/lua/loslib.c: Likewise.
27147 * script/lua/lparser.c: Likewise.
27148 * script/lua/lparser.h: Likewise.
27149 * script/lua/lstate.c: Likewise.
27150 * script/lua/lstate.h: Likewise.
27151 * script/lua/lstring.c: Likewise.
27152 * script/lua/lstring.h: Likewise.
27153 * script/lua/lstrlib.c: Likewise.
27154 * script/lua/ltable.c: Likewise.
27155 * script/lua/ltable.h: Likewise.
27156 * script/lua/ltablib.c: Likewise.
27157 * script/lua/ltm.c: Likewise.
27158 * script/lua/ltm.h: Likewise.
27159 * script/lua/lua.h: Likewise.
27160 * script/lua/luaconf.h: Likewise.
27161 * script/lua/lualib.h: Likewise.
27162 * script/lua/lundump.c: Likewise.
27163 * script/lua/lundump.h: Likewise.
27164 * script/lua/lvm.c: Likewise.
27165 * script/lua/lvm.h: Likewise.
27166 * script/lua/lzio.c: Likewise.
27167 * script/lua/lzio.h: Likewise.
27168
5e898c9d 271692009-05-16 Bean <bean123ch@gmail.com>
27170
27171 * include/grub/kernel.h (grub_module_header_types): Add type
27172 OBJ_TYPE_CONFIG.
27173
27174 * kern/main.c (grub_load_config): New function.
27175 (grub_main): Call grub_load_config to read boot config.
27176
27177 * grub-mkimage (generate_image): New parameter config_path.
27178 (options): New option --config.
27179 (main): Parse --config option, and pass it to generate_image.
27180
cf353a47 271812009-05-14 Christian Franke <franke@computer.org>
27182
27183 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
27184 This fixes build on Cygwin.
27185
3834887f 271862009-05-14 Pavel Roskin <proski@gnu.org>
27187
27188 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
27189 jump. This saves two bytes, so the typical case of 2 swapped
27190 drives would fit 32 bytes.
27191
8090fc01 271922009-05-13 Pavel Roskin <proski@gnu.org>
27193
ac963883 27194 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
27195 grub_uint32_t to avoid a warning.
27196
8090fc01 27197 * loader/i386/linux.c (allocate_pages): When assigning
27198 real_mode_mem, cast through grub_size_t to fix a warning. The
27199 code already makes sure that the value would fit a pointer.
27200 (grub_linux_setup_video): Cast render_target->data to
27201 grub_size_t to fix a warning.
27202
18f547ad 272032009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 27204
27205 * commands/i386/pc/drivemap.c: New file - implement drivemap
27206 command.
27207 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
27208 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
27209
6f6a8b28 272102009-05-13 Pavel Roskin <proski@gnu.org>
27211
27212 * util/i386/pc/grub-setup.c (setup): Remove unused variable
27213 embedding_area_exists.
27214
15fbf4c4 272152009-05-13 Robert Millan <rmh.grub@aybabtu.com>
27216
27217 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
27218 it easier to understand / work with.
59978c8a 27219 Improve warning messages for cases where there's no embedding area,
27220 or when it is too small (or core.img too large).
15fbf4c4 27221
238e871f 272222009-05-13 Pavel Roskin <proski@gnu.org>
27223
0ab3a9a4 27224 * loader/i386/pc/multiboot2.c: Add necessary includes for
27225 grub_multiboot2_real_boot().
27226
a2c8c5f8 27227 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
27228 PX record is always little-endian. We only need the lower 2
27229 bytes of the mode.
27230
faec96af 27231 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
27232 facilitate code reuse.
27233 (grub_cpio_mount): Use "struct head", not a char buffer. This
27234 fixes a warning reported by gcc 4.4.
27235
238e871f 27236 * kernel/disk.c (grub_disk_read): Use void pointer for the
27237 buffer.
27238 (grub_disk_write): Use const void pointer for the buffer.
27239 Adjust all callers. Remove unnecessary casts.
27240
901d2f0c 272412009-05-10 Robert Millan <rmh.grub@aybabtu.com>
27242
27243 * util/i386/pc/grub-install.in: Update copyright year.
27244
18f547ad 272452009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 27246
27247 gptsync
27248
27249 * commands/gptsync.c: new file
27250 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
27251 (gptsync_mod_SOURCES): new variable
27252 (gptsync_mod_CFLAGS): likewise
27253 (gptsync_mod_LDFLAGS): likewise
18f547ad 27254 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 27255 new definition
27256 (GRUB_PC_PARTITION_TYPE_HFS): likewise
27257 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
27258 * conf/i386-ieee1275.rmk: likewise
27259 * conf/i386-pc.rmk: likewise
27260 * conf/powerpc-ieee1275.rmk: likewise
27261
b4ba690a 272622009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
27263
27264 Fixed grub-emu
27265
27266 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
27267 (grub_dl_ref): likewise
27268
317e1a44 272692009-05-08 Robert Millan <rmh.grub@aybabtu.com>
27270
27271 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
27272 split in two functions (one for msdos and one for gpt).
27273
041b8094 272742009-05-08 Pavel Roskin <proski@gnu.org>
27275
752473c2 27276 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
27277 not modified.
27278
041b8094 27279 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
27280 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
27281 Initialize them with -1. Add sanity check for bad1. Eliminate
27282 nerr variable.
27283
172800ce 272842009-05-08 David S. Miller <davem@davemloft.net>
27285
27286 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
27287
29aa5e81 272882009-05-06 Robert Millan <rmh.grub@aybabtu.com>
27289
27290 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 27291 existence.
29aa5e81 27292
96613b62 272932009-05-05 Felix Zielcke <fzielcke@z-51.de>
27294
27295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 27296 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 27297
eef73c8a 272982009-05-05 David S. Miller <davem@davemloft.net>
27299
27300 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
27301
119494b5 273022009-05-05 Pavel Roskin <proski@gnu.org>
27303
27304 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
27305 of grub_dl_ref() and grub_dl_unref().
27306 * commands/parttool.c: Remove preprocessor conditionals around
27307 grub_dl_ref() and grub_dl_unref().
27308 * fs/affs.c: Likewise.
27309 * fs/afs.c: Likewise.
27310 * fs/cpio.c: Likewise.
27311 * fs/ext2.c: Likewise.
27312 * fs/fat.c: Likewise.
27313 * fs/hfs.c: Likewise.
27314 * fs/hfsplus.c: Likewise.
27315 * fs/iso9660.c: Likewise.
27316 * fs/jfs.c: Likewise.
27317 * fs/minix.c: Likewise.
27318 * fs/ntfs.c: Likewise.
27319 * fs/reiserfs.c: Likewise.
27320 * fs/sfs.c: Likewise.
27321 * fs/udf.c: Likewise.
27322 * fs/ufs.c: Likewise.
27323 * fs/xfs.c: Likewise.
27324 * include/grub/dl.h: Likewise.
27325 * loader/xnu.c: Likewise.
27326
de5fd76e 273272009-05-04 Pavel Roskin <proski@gnu.org>
27328
27329 * commands/acpi.c: Remove unused variable my_mod.
27330 * partmap/amiga.c: Likewise.
27331 * partmap/apple.c: Likewise.
27332 * partmap/gpt.c: Likewise.
27333 * partmap/pc.c: Likewise.
27334 * partmap/sun.c: Likewise.
27335 * term/gfxterm.c: Likewise.
27336 * term/i386/pc/vesafb.c: Likewise.
27337 * term/i386/pc/vga.c: Likewise.
27338
983598ad 273392009-05-04 David S. Miller <davem@davemloft.net>
27340
27341 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
27342 pointer args to grub_ieee1275_get_property().
27343
8aadec43 27344 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
27345
9554b15e 27346 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
27347 devices, and do not traverse down under controller nodes.
27348
67e23c90 27349 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
27350 (grub_ofdisk_open): Use it to un-escape "," characters.
27351 * kern/disk.c (find_part_sep): New.
27352 (grub_disk_open): Use it to find the first non-escaped ','
27353 character in the disk name.
27354 * util/ieee1275/devicemap.c (escape_of_path): New.
27355 (grub_util_emit_devicemap_entry): Use it.
27356 * util/sparc64/ieee1275/grub-install.in: Update script to
27357 strip partition specifiers properly by not triggering on
27358 '\' escaped ',' characters.
27359
74bfdd2f 273602009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27361
27362 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
27363 to 0x300.
27364 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
27365 resolutions.
27366 (linux_vesafb_modes): Add a lot of additional modes to the list (based
27367 on documentation from Wikipedia).
27368
4241d2b1 273692009-05-04 Pavel Roskin <proski@gnu.org>
27370
27371 * disk/ata.c: Spelling fixes.
27372 * disk/raid.c: Likewise.
27373 * disk/usbms.c: Likewise.
27374 * disk/dmraid_nvidia.c: Likewise.
27375 * kern/ieee1275/openfw.c: Likewise.
27376 * kern/ieee1275/init.c: Likewise.
27377 * kern/ieee1275/cmain.c: Likewise.
27378 * boot/i386/pc/cdboot.S: Likewise.
27379 * video/readers/png.c: Likewise.
27380 * video/i386/pc/vbe.c: Likewise.
27381 * fs/udf.c: Likewise.
27382 * fs/hfs.c: Likewise.
27383 * fs/reiserfs.c: Likewise.
27384 * efiemu/runtime/efiemu.c: Likewise.
27385 * efiemu/main.c: Likewise.
27386 * efiemu/mm.c: Likewise.
27387 * include/grub/elf.h: Likewise.
27388 * include/grub/xnu.h: Likewise.
27389 * include/grub/usbdesc.h: Likewise.
27390 * include/grub/usb.h: Likewise.
27391 * include/grub/script_sh.h: Likewise.
27392 * include/grub/lib/LzmaEnc.h: Likewise.
27393 * include/grub/efiemu/efiemu.h: Likewise.
27394 * include/grub/command.h: Likewise.
27395 * normal/menu.c: Likewise.
27396 * normal/main.c: Likewise.
27397 * normal/datetime.c: Likewise.
27398 * bus/usb/uhci.c: Likewise.
27399 * mmap/i386/uppermem.c: Likewise.
27400 * mmap/mmap.c: Likewise.
27401 * commands/acpi.c: Likewise.
27402 * commands/test.c: Likewise.
27403 * partmap/apple.c: Likewise.
27404 * font/font.c: Likewise.
27405 * loader/sparc64/ieee1275/linux.c: Likewise.
27406 * loader/macho.c: Likewise.
27407 * loader/i386/bsd_trampoline.S: Likewise.
27408 * loader/i386/bsd.c: Likewise.
27409 * loader/xnu.c: Likewise.
27410 * term/i386/pc/vesafb.c: Likewise.
27411 * term/usb_keyboard.c: Likewise.
27412 * util/resolve.c: Likewise.
27413 * util/getroot.c: Likewise.
27414
0cfc0083 274152009-05-04 Felix Zielcke <fzielcke@z-51.de>
27416
27417 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
27418
7c1d00cd 274192009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27420
27421 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
27422 build error.
27423
b01f0548 274242009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27425
27426 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
27427 parameter only available on BIOS.
27428
ecc3eb22 274292009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27430
27431 Removed wrong semicolon in declaration
27432
27433 * grub/misc.h (grub_dprintf): remove semicolon
27434
112972a9 274352009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27436
27437 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
27438 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
27439 is done by grub_cmd_linux() now).
27440 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
27441 restore video to text mode.
27442 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
27443 indicates lack of "vga=" parameter. "vga=0" is mapped to
27444 `GRUB_LINUX_VID_MODE_NORMAL'.
27445
afd5c115 274462009-05-04 Felix Zielcke <fzielcke@z-51.de>
27447
27448 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
27449 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
27450 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 27451 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 27452 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
27453 `grub_script.tab.c'.
27454
27455 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
27459 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27460
faa517ce 27461 * Makefile.in: Remove duplicated 2008 in Copyright line.
27462
ae0c0bdc 274632009-05-04 Robert Millan <rmh.grub@aybabtu.com>
27464
473d1e45 27465 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 27466 unconditionally.
27467 * include/grub/util/misc.h (grub_util_warn): New declaration.
27468
27469 * util/i386/pc/grub-install.in: Understand --force and pass it down
27470 to grub-setup.
27471
27472 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
27473 down to setup().
27474 (setup): Improve error messages and add warnings when requested to
27475 install in odd layouts. Refuse to install using blocklists unless
27476 --force was set.
27477
18f547ad 274782009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 27479
27480 * disk/raid.c (grub_raid_scan_device): Improve debug message.
27481
6d260daa 274822009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27483
27484 Updated copyright year
27485
27486 * fs/hfsplus.c: updated copyright year
18f547ad 27487
69f853f8 274882009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
27489
27490 HFS+ UUID
27491
18f547ad 27492 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 27493 in the space previously used by unused3
27494 (grub_hfsplus_uuid): new function
27495 (grub_hfsplus_fs): added uuid field
27496
4c402e73 274972009-05-03 Pavel Roskin <proski@gnu.org>
27498
27499 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
27500 suppress warnings. It's no longer needed.
27501 * disk/host.c: Likewise.
27502 * disk/ata_pthru.c: Likewise.
27503 * disk/loopback.c: Likewise.
27504 * hook/datehook.c: Likewise.
27505 * parttool/pcpart.c: Likewise.
27506 * fs/i386/pc/pxe.c: Likewise.
27507 * fs/ntfscomp.c: Likewise.
27508 * efiemu/main.c: Likewise.
27509 * mmap/mmap.c: Likewise.
27510 * commands/crc.c: Likewise.
27511 * commands/hexdump.c: Likewise.
27512 * commands/hdparm.c: Likewise.
27513 * commands/acpi.c: Likewise.
27514 * commands/echo.c: Likewise.
27515 * commands/minicmd.c: Likewise.
27516 * commands/blocklist.c: Likewise.
27517 * commands/memrw.c: Likewise.
27518 * commands/loadenv.c: Likewise.
27519 * commands/usbtest.c: Likewise.
27520 * commands/lsmmap.c: Likewise.
27521 * commands/boot.c: Likewise.
27522 * commands/parttool.c: Likewise.
27523 * commands/configfile.c: Likewise.
27524 * commands/search.c: Likewise.
27525 * commands/ieee1275/suspend.c: Likewise.
27526 * commands/cat.c: Likewise.
27527 * commands/i386/pc/pxecmd.c: Likewise.
27528 * commands/i386/pc/play.c: Likewise.
27529 * commands/i386/pc/halt.c: Likewise.
27530 * commands/i386/pc/vbeinfo.c: Likewise.
27531 * commands/i386/pc/vbetest.c: Likewise.
27532 * commands/lspci.c: Likewise.
27533 * commands/date.c: Likewise.
27534 * commands/handler.c: Likewise.
27535 * commands/ls.c: Likewise.
27536 * commands/test.c: Likewise.
27537 * commands/cmp.c: Likewise.
27538 * commands/efi/loadbios.c: Likewise.
27539 * commands/efi/fixvideo.c: Likewise.
27540 * commands/halt.c: Likewise.
27541 * commands/help.c: Likewise.
27542 * commands/reboot.c: Likewise.
27543 * hello/hello.c: Likewise.
27544 * script/sh/main.c: Likewise.
27545 * loader/xnu.c: Likewise.
27546 * term/terminfo.c: Likewise.
27547 * term/i386/pc/serial.c: Likewise.
27548 * term/usb_keyboard.c: Likewise.
27549
515b5079 275502009-05-03 David S. Miller <davem@davemloft.net>
27551
27552 * normal/menu.c: Include grub/parser.h
27553
dfc31a22 275542009-05-03 Pavel Roskin <proski@gnu.org>
27555
2fee74f1 27556 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
27557 not char*.
27558 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
27559 Suggested by Javier Martín <lordhabbit@gmail.com>
27560
dfc31a22 27561 * util/i386/pc/grub-mkrescue.in: Allow for the case when
27562 efiemu??.o doesn't exist.
27563 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
27564 copying.
27565
18f547ad 275662009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 27567
27568 FreeBSD 64-bit support
27569
18f547ad 27570 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 27571 and loader/i386/bsd_trampoline.S
27572 (bsd_mod_ASFLAGS): new variable
27573 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
27574 (FREEBSD_MODTYPE_KERNEL64): likewise
27575 (grub_bsd64_trampoline_start): likewise
27576 (grub_bsd64_trampoline_end): likewise
27577 (grub_bsd64_trampoline_selfjump): likewise
27578 (grub_bsd64_trampoline_gdt): likewise
27579 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
27580 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
27581 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
27582 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 27583 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 27584 of "attrib" member
27585 * loader/i386/bsd_pagetable.c: new file
27586 * loader/i386/bsd_trampoline.S: likewise
27587 * loader/i386/bsd.c (ALIGN_QWORD): new macro
27588 (ALIGN_VAR): likewise
27589 (entry_hi): new variable
27590 (kern_end_mdofs): likewise
27591 (is_64bit): likewise
27592 (grub_freebsd_add_meta): use ALIGN_VAR
27593 (grub_e820_mmap): new declaration
27594 (grub_freebsd_add_mmap): new function
27595 (grub_freebsd_add_meta_module): support 64 bit kernels
27596 (grub_freebsd_list_modules): use ALIGN_VAR
27597 (gdt_descriptor): new declaration
27598 (grub_freebsd_boot): support 64 bit kernels
27599 (grub_bsd_elf64_hook): new function
27600 (grub_bsd_load_elf): support elf64
27601
038c5720 276022009-05-03 Bean <bean123ch@gmail.com>
27603
27604 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
27605 after we get the result of if statement.
27606
fc45fb58 276072009-05-03 Bean <bean123ch@gmail.com>
27608
27609 * Makefile.in (enable_efiemu): New variable.
27610
27611 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
27612 set.
27613 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
27614 path.
27615 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
27616 path, add -mno-red-zone option.
27617 (efiemu64_s.o): Likewise.
27618 (efiemu64.o): Use macro $^ for source file.
27619
27620 * configure.ac (--enable-efiemu): New option.
27621
bbee0f2b 276222009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
27623
27624 xnu support
27625
27626 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
27627 (pkglib_MODULES): add xnu.mod
27628 (xnu_mod_SOURCES): new variable
27629 (xnu_mod_CFLAGS): likewise
27630 (xnu_mod_LDFLAGS): likewise
27631 (xnu_mod_ASFLAGS): likewise
27632 * conf/i386-pc.rmk: likewise
27633 * conf/x86_64-efi.rmk: likewise
7dd4a573 27634 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 27635 new declaration
27636 * include/grub/i386/macho.h: new file
27637 * include/grub/i386/xnu.h: likewise
27638 * include/grub/macho.h: likewise
27639 * include/grub/machoload.h: likewise
27640 * include/grub/x86_64/macho.h: likewise
27641 * include/grub/x86_64/xnu.h: likewise
27642 * include/grub/xnu.h: likewise
27643 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
27644 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
27645 * loader/i386/efi/xnu.c: new file
27646 * loader/i386/pc/xnu.c: likewise
27647 * loader/i386/xnu.c: likewise
27648 * loader/i386/xnu_helper.S: likewise
27649 * loader/macho.c: likewise
27650 * loader/xnu.c: likewise
27651 * loader/xnu_resume.c: likewise
27652 * util/grub-dumpdevtree: likewise
27653 * include/grub/i386/pit.h: include grub/err.h
27654 (grub_pit_wait): export
27655 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 27656
5caf964d 276572009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27658
27659 Efiemu
7dd4a573 27660
5caf964d 27661 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 27662 _linux_efi, linux_efi.
27663 new files in grub-emu
5caf964d 27664 new targets efiemu32.o and efiemu64.o
27665 * loader/linux_normal_efiemu.c: likewise
27666 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 27667 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 27668 files to copy
27669 * include/grub/autoefi.h: new file
7dd4a573 27670 * include/grub/i386/efiemu.h: likewise
5caf964d 27671 * include/grub/i386/pc/efiemu.h: likewise
27672 * include/grub/efi/api.h: add LL suffix when necessary
27673 new definitions relating to tables
27674 * include/grub/efiemu/efiemu.h: new file
27675 * include/grub/efiemu/runtime.h: likewise
27676 * efiemu/prepare.c: likewise
27677 * efiemu/loadcore_common.c: likewise
27678 * efiemu/loadcore64.c: likewise
27679 * efiemu/runtime/efiemu.sh: likewise
27680 * efiemu/runtime/efiemu.S: likewise
27681 * efiemu/runtime/efiemu.c: likewise
27682 * efiemu/runtime/config.h: likewise
27683 * efiemu/prepare32.c: likewise
27684 * efiemu/main.c: likewise
27685 * efiemu/modules/pnvram.c: likewise
27686 * efiemu/modules/i386: likewise
27687 * efiemu/modules/i386/pc: likewise
27688 * efiemu/modules/acpi.c: likewise
27689 * efiemu/i386/pc/cfgtables.c: likewise
27690 * efiemu/i386/loadcore64.c: likewise
27691 * efiemu/i386/loadcore32.c: likewise
27692 * efiemu/prepare64.c: likewise
27693 * efiemu/loadcore.c: likewise
27694 * efiemu/symbols.c: likewise
27695 * efiemu/mm.c: likewise
27696 * efiemu/loadcore32.c: likewise
7dd4a573 27697
276982009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 27699
27700 ACPI spoofing
27701
27702 * commands/acpi.c: new file
27703 * commands/i386/pc/acpi.c: likewise
27704 * commands/efi/acpi.c: likewise
27705 * include/grub/acpi.h: likewise
27706 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
27707 (acpi_mod_SOURCES): new variable
27708 (acpi_mod_CFLAGS): likewise
27709 (acpi_mod_LDFLAGS): likewise
27710 * conf/i386-efi.rmk: likewise
27711 * conf/x86_64-efi.rmk: likewise
27712
7dd4a573 277132009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 27714
27715 Missing part from mmap patch
27716
27717 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
27718 (grub_mmap_unregister)
27719 (grub_mmap_free_and_unregister): use grub_mmap_register
27720
7dd4a573 277212009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 27722
27723 Mmap services
27724
27725 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
27726 * loader/i386/linux.c (find_mmap_size): likewise
27727 (allocate_pages): likewise
27728 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
27729 (grub_fill_multiboot_mmap): likewise
27730 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
27731 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
27732 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
27733 (OPENBSD_MMAP_RESERVED): likewise
27734 * include/grub/i386/pc/memory.h: include grub/memory.h
27735 (grub_lower_mem): removed
27736 (grub_upper_mem): likewise
27737 (GRUB_MACHINE_MEMORY_ACPI): new definition
27738 (GRUB_MACHINE_MEMORY_NVS): likewise
27739 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
27740 (GRUB_MACHINE_MEMORY_HOLE): likewise
27741 (grub_machine_mmap_register): likewise
27742 (grub_machine_mmap_unregister): likewise
27743 (grub_machine_get_upper): likewise
27744 (grub_machine_get_lower): likewise
27745 (grub_machine_get_post64): likewise
27746 * include/grub/i386/efi/memory.h: new file
27747 * include/grub/x86_64/efi/memory.h: likewise
27748 * include/grub/efi/memory.h: likewise
27749 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
27750 (mmap_mod_SOURCES): new variable
27751 (mmap_mod_LDFLAGS): likewise
27752 (mmap_mod_ASFLAGS): likewise
27753 * conf/i386-coreboot.rmk: likewise
27754 * conf/i386-ieee1275.rmk: likewise
27755 * conf/i386-efi.rmk: likewise
27756 * conf/x86_64-efi.rmk: likewise
27757 * include/grub/types.h (UINT_TO_PTR): new macro
27758 (PTR_TO_UINT32): likewise
27759 (PTR_TO_UINT64): likewise
27760 * include/grub/memory.h: new file
27761 * mmap/i386/pc/mmap.c: likewise
27762 * mmap/i386/pc/mmap_helper.S: likewise
27763 * mmap/i386/uppermem.c: likewise
27764 * mmap/mmap.c: likewise
27765 * mmap/efi/mmap.c: likewise
7dd4a573 27766 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 27767 grub_upper_mem
27768 * kern/i386/pc/init.c (grub_lower_mem): removed variable
27769 (grub_upper_mem): likewise
27770 (grub_machine_init): don't use grub_upper_mem,
27771 make grub_lower_mem local
27772 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
27773 grub_mmap_iterate and grub_mmap_get_upper
27774 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
27775
d558e6b5 277762009-05-02 Bean <bean123ch@gmail.com>
27777
27778 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
27779 script/sh/parser.y.
27780 (pkglib_MODULES): Add normal.mod and sh.mod.
27781 (normal_SOURCES): New variable.
27782 (normal_mod_CFLAGS): Likewise.
27783 (normal_mod_LDFLAGS): Likewise.
27784 (sh_mod_SOURCES): Likewise.
27785 (sh_mod_CFLAGS): Likewise.
27786 (sh_mod_LDFLAGS): Likewise.
27787
27788 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
27789 script/sh/lexer.c_DEPENDENCIES.
27790 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
27791 kern/rescue_reader.c and kern/rescue_parser.c.
27792 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
27793 (grub_emu_SOURCES): Change source files.
27794 (pkglib_MODULES): Remove normal.mod.
27795 (normal_SOURCES): Removed.
27796 (normal_mod_CFLAGS): Likewise.
27797 (normal_mod_LDFLAGS): Likewise.
27798 * conf/i386-coreboot.rmk: Likewise.
27799 * conf/i386-efi.rmk: Likewise.
27800 * conf/i386-ieee1276.rmk: Likewise.
27801 * conf/powerpc-ieee1275.rmk: Likewise.
27802 * conf/sparc64-ieee1275.rmk: Likewise.
27803 * conf/x86_64-efi.rmk: Likewise.
27804
27805 * include/grub/command.h (grub_command_execute): New inline function.
27806
27807 * include/grub/menu.h (grub_menu_entry): Removed commands field.
27808
27809 * include/grub/normal.h: Remove <grub/setjmp.h>.
27810 (grub_fs_module_list): Moved to normal/autofs.c.
27811 (grub_exit_env): Removed.
27812 (grub_command_execute): Likewise.
27813 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
27814 parameter script.
27815 (read_command_list): New function declaration.
27816 (read_fs_list): Likewise.
27817
27818 * include/parser.h: Include <grub/reader.h>.
27819 (grub_parser_split_cmdline): Change type of getline parameter.
27820 (grub_parser): New structure.
27821 (grub_parser_class): New variable.
27822 (grub_parser_execute): New function declaration.
27823 (grub_register_rescue_parser): Likewise.
27824 (grub_parser_register): New inline function.
27825 (grub_parser_unregister): Likewise.
27826 (grub_parser_get_current): Likewise.
27827 (grub_parser_set_current): Likewise.
27828
27829 * include/grub/reader.h: New file.
27830 * kern/reader.c: Likewise.
27831 * kern/rescue_parser.c: Likewise.
27832 * kern/rescue_reader.c: Likewise.
27833 * normal/autofs.c: Likewise.
27834 * normal/dyncmd.c: Likewise.
27835
27836 * include/grub/rescue.h: Removed.
27837 * normal/command.h: Likewise.
27838
27839 * include/grub/script.h: Moved to ...
27840 * include/grub/script_sh.h: ... Moved here.
27841 * normal/execute.c: Moved to ...
27842 * script/sh/execute.c: ... Moved here.
27843 * normal/function.c: Moved to ...
27844 * script/sh/function.c: ... Moved here.
27845 * normal/lexer.c: Moved to ...
27846 * script/sh/lexer.c: ... Moved here.
27847 * normal/parser.y: Moved to ...
27848 * script/sh/parser.y: ... Moved here.
27849 * normal/script.c: Moved to ...
27850 * script/sh/script.c: ... Moved here.
27851
27852 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
27853 <grub/reader.h>.
27854 (grub_exit_env): Removed.
27855 (fs_module_list): Moved to normal/autofs.c.
27856 (grub_file_getline): Don't handle comment here.
27857 (free_menu): Skip removed field entry->commands.
27858 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
27859 script parameter.
27860 (read_config_file): Removed nested parameter, change getline function.
27861 (grub_enter_normal_mode): Removed.
27862 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
27863 (read_command_list): Likewise.
27864 (autoload_fs_module): Moved to normal/autofs.c.
27865 (read_fs_list): Likewise.
27866 (reader_nested): New variable.
27867 (grub_normal_execute): Run parser.sh to switch to sh parser.
27868 (grub_cmd_rescue): Removed.
27869 (cmd_normal): Removed.
27870 (grub_cmd_normal): Unregister itself at the beginning. Don't register
27871 rescue command.
27872 (grub_cmdline_run): New function.
27873 (grub_normal_reader_init): Likewise.
27874 (grub_normal_read_line): Likewise.
27875 (grub_env_write_pager): Likewise.
27876 (cmdline): New variable.
27877 (grub_normal_reader): Likewise.
27878 (GRUB_MOD_INIT): Register normal reader and set as current, register
27879 pager hook, register normal command with grub_register_command_prio,
27880 so that it won't show up in command.lst.
27881 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
27882 grub_fs_autoload_hook.
27883
27884 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
27885 (grub_menu_execute_entry): Replace grub_script_execute with
27886 grub_parser_execute, change parameter to grub_command_execute.
27887
27888 * normal/menu_text.c: Remove <grub/script.h>.
27889
27890 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
27891 and <grub/parser.h>.
27892 (run): Change editor_getline to use new parser interface. Change
27893 parameter to grub_command_execute.
27894
27895 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
27896 <grub/reader.h> and <grub/parser.h>.
27897 (grub_load_normal_mode): Execute normal command.
27898 (grub_main): Call grub_register_core_commands,
27899 grub_register_rescue_parser and grub_register_rescue_reader, use
27900 grub_reader_loop to enter input loop.
27901
7dd4a573 27902 * kern/parser.c (grub_parser_split_cmdline): Change type of
27903 getline parameter.
d558e6b5 27904 (grub_parser_class): New variable.
27905 (grub_parser_execute): New function.
27906
27907 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
27908 * loader/multiboot2.c: Likewise.
27909 * loader/sparc64/ieee1275/linux.c: Likewise.
27910
27911 * util/grub-emu.c (read_command_list): New dummy function.
27912
18db813d 279132009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27914
27915 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
27916 count to 16 for CCISS and IDA.
27917
6c67de15 279182009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27919
27920 * normal/menu_text.c (grub_wait_after_message): Print a newline
27921 after waiting for user input.
27922
27923 * loader/i386/linux.c: Include `<grub/normal.h>'.
27924 (grub_cmd_linux): Improve the error message about `ask' mode, by
27925 waiting for user input so it's not missed (we can do this, since
27926 user requested interaction).
27927
d9dc87b0 279282009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27929
27930 Added missing lst to grub-mkrescue
27931
27932 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
27933 and ${input_dir}/parttool.lst
27934
ac8a2baa 279352009-04-30 David S. Miller <davem@davemloft.net>
27936
ad22a610 27937 * util/hostdisk.c (device_is_wholedisk): New function.
27938 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
27939 zero only if device_is_wholedisk() returns true.
27940
6966215d 27941 * util/hostdisk.c (convert_system_partition_to_system_disk):
27942 Handle virtual disk devices named /dev/vdiskX as found on sparc
27943 and powerpc.
27944
ac8a2baa 27945 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
27946 lettered partition specifier is found, convert to numbered.
27947
979b4fb4 279482009-04-29 David S. Miller <davem@davemloft.net>
27949
e2bf39b2 27950 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
27951 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27952
3c64e104 27953 * normal/command.c: Add missing newline at end of file.
27954
979b4fb4 27955 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
27956 warnings.
27957 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
27958 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
27959 grub_ofdisk_read): Likewise, and deal similarly with the fact that
27960 ihandles have a 32-bit type but need to be stored in a "void *".
27961
136d9f82 279622009-04-28 Pavel Roskin <proski@gnu.org>
27963
9459c306 27964 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
27965 not disk. Adjust all dependencies.
2e08a26a 27966 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 27967 grub_disk_close().
27968
136d9f82 27969 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
27970 parent's partition, don't copy it by reference, as it gets freed
27971 on close.
27972
7dd4a573 279732009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 27974
27975 Preboot hooks support
27976
27977 * commands/boot.c (struct grub_preboot_t): new declaration
27978 (preboots_head): new variable
27979 (preboots_tail): likewise
27980 (grub_loader_register_preboot_hook): new function
27981 (grub_loader_unregister_preboot_hook): likewise
27982 (grub_loader_set): launch preboot hooks
27983 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
27984 (grub_loader_register_preboot_hook): new declaration
27985 (grub_loader_unregister_preboot_hook): likewise
27986
5af922b5 279872009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27988
27989 Warning fix
27990
7dd4a573 27991 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 27992 calling grub_dprintf
27993
a5562c30 279942009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
27995
27996 Bug and warning fixes
27997
7dd4a573 27998 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 27999 declaration
28000 * commands/test.c (test_parse): fixed bug with file tests and corrected
28001 declaration of find_file
28002
4006f85c 280032009-04-26 Pavel Roskin <proski@gnu.org>
28004
28005 * Makefile.in: Don't install empty manual pages if help2man is
28006 missing. Use help2man option for output, not shell redirection.
28007
5c77c3de 280082009-04-26 David S. Miller <davem@davemloft.net>
28009
28010 * util/grub-mkdevicemap.c (make_device_map): Add missing
28011 NESTED_FUNC_ATTR to process_device().
28012
033b10a8 280132009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
28014
28015 Test command
28016
28017 * commands/test.c: rewritten to use bash-like test
28018
e4343593 280192009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
28020
28021 Parttool autoloading and improvements
28022
7dd4a573 28023 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 28024 (parttool.lst): new target
28025 * genmk.rb: generate parttool-*
28026 (CLEANFILES): add #{parttool}
28027 (PARTTOOLFILES): new variable
28028 * genparttoollist.sh: new file
7dd4a573 28029 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 28030 (grub_pcpart_type): likewise
28031 * commands/parttool.c (helpmsg): new variable
28032 (grub_cmd_parttool): output help if not enough arguments are supplied
28033 autoload modules
28034 (GRUB_MOD_INIT(parttool)): use helpmsg
28035
0d312500 280362009-04-24 David S. Miller <davem@davemloft.net>
28037
7dd4a573 28038 Avoiding opening same device multiple times in device iterator.
0d312500 28039
28040 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 28041 and use it to build a list of partitions in iterate_disk() and
0d312500 28042 iterate_partition().
28043
ac20caff 28044 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
28045 on disk->data.
28046
0dcf7495 28047 * disk/ieee1275/nand.c (grub_nand_iterate): Return
28048 grub_devalias_iterate() result instead of unconditional 0.
28049 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
28050 Also, capture hook return value, either directly or via
28051 grub_children_iterate(), and propagate to caller.
28052 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
28053 grub_children_iterate): Return value is now 'int' instead of
28054 'grub_err_t'.
28055 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
28056 like a proper iterator, stopping when hooks return non-zero.
28057 (grub_devalias_iterate): Likewise.
28058
c8c08833 280592009-04-23 David S. Miller <davem@davemloft.net>
28060
28061 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
28062
f01005a8 280632009-04-22 David S. Miller <davem@davemloft.net>
28064
28065 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
28066 is larger than address_cells, use that value for address_cells too.
28067
4e8269da 28068 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
28069 IEEE1275_MAX_PATH_LEN): Define.
28070 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
28071 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
28072 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
28073 'devtype'. Explicitly NULL terminate devalias expansion.
28074
a1447506 28075 * util/sparc64/ieee1275/misc.c: New file.
28076 * util/sparc64/ieee1275/grub-setup.c: New file.
28077 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
28078 * util/sparc64/ieee1275/grub-mkimage.c: New file.
28079 * util/sparc64/ieee1275/grub-install.in: New file.
28080 * util/ieee1275/ofpath.c: New file.
28081 * util/ieee1275/devicemap.c: New file.
28082 * util/devicemap.c: New file.
28083 * util/deviceiter.c: New file.
28084 * kern/sparc64/ieee1275/init.c: New file.
28085 * include/grub/util/ofpath.h: New file.
28086 * include/grub/util/deviceiter.h: New file.
28087 * util/grub-mkdevicemap.c: Include deviceiter.h.
28088 Implement using grub_util_emit_devicemap_entry and
28089 grub_util_iterate_devices.
28090 * conf/i386-corebook.rmk: Build util/deviceiter.c and
28091 util/devicemap.c into grub-mkdevicemap
28092 * conf/i386-efi.rmk: Likewise.
28093 * conf/i386-ieee1275.rmk: Likewise.
28094 * conf/i386-pc.rmk: Likewise.
28095 * conf/powerpc-ieee1275.rmk: Likewise.
28096 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
28097 images and installation utilities. Build kernel as image
28098 instead of as elf binary. Use common rules as much as possible.
28099
7dd4a573 281002009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 28101
28102 Correct GPT definition
28103
7dd4a573 28104 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 28105 of "attrib" member
28106
c6c5219f 281072009-04-19 Felix Zielcke <fzielcke@z-51.de>
28108
28109 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
28110
0552ff9f 281112009-04-19 David S. Miller <davem@davemloft.net>
28112
28113 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
28114 (grub_rescue_cmd_linux): Rename to...
28115 (grub_cmd_linux): and fix prototype.
28116 (grub_rescue_cmd_initrd): Rename to...
28117 (grub_cmd_initrd): and fix prototype.
28118 (cmd_linux, cmd_initrd): New.
28119 (GRUB_MOD_INIT(linux)): Use grub_register_command().
28120 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
28121
d1a282fc 281222009-04-17 Pavel Roskin <proski@gnu.org>
28123
07c5039f 28124 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
28125 format.
28126 (grub_ohci_transfer): Likewise.
28127
b012002d 28128 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
28129
1bc09c35 28130 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
28131 return without a value. Fix inconsistent indentation.
28132
e0ff9126 28133 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
28134 match struct grub_fs.
28135
d1a282fc 28136 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
28137 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
28138 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
28139 * commands/lspci.c (grub_lspci_iter): Likewise.
28140
a96df3f2 281412009-04-16 Bean <bean123ch@gmail.com>
28142
28143 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
28144 value.
28145
41bb0fe9 281462009-04-15 Pavel Roskin <proski@gnu.org>
28147
28148 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
28149 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
28150 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
28151 definitions.
28152
596c6970 281532009-04-15 Felix Zielcke <fzielcke@z-51.de>
28154
28155 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 28156 that no multiple data or metadata areas are supported and `Unknown
596c6970 28157 metadata header'.
28158
7dd4a573 281592009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 28160
28161 Move loader out of the kernel
28162
28163 * kern/loader.c: moved to ...
28164 * commands/boot.c: ... moved here
28165 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
28166 * commands/boot.c (grub_cmd_boot): moved here. All users updated
28167 * include/grub/kernel.h (grub_machine_fini): export
28168 * include/grub/loader.h (grub_loader_is_loaded): update declaration
28169 (grub_loader_set): likewise
28170 (grub_loader_unset): likewise
28171 (grub_loader_boot): likewise
28172 * conf/common.rmk: new module boot.mod
28173 (pkglib_MODULES): add boot.mod
28174 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
28175 (grub_emu_SOURCES): likewise
28176 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
28177 (grub_emu_SOURCES): likewise
28178 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
28179 (grub_emu_SOURCES): likewise
28180 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
28181 (grub_emu_SOURCES): likewise
28182 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
28183 (grub_emu_SOURCES): likewise
7dd4a573 28184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
28185 (grub_emu_SOURCES): likewise
0d5d5653 28186 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 28187 (grub_emu_SOURCES): likewise
0d5d5653 28188
7dd4a573 281892009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 28190
28191 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 28192
5999d619 28193 * kern/misc.c (grub_itoa): Removed function
28194 (grub_ltoa): likewise
28195 (grub_vsprintf): use grub_lltoa
28196
7dd4a573 281972009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 28198
28199 Restore grub-emu
28200
28201 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
28202 * conf/i386-coreboot.rmk: likewise
28203 * conf/i386-ieee1275.rmk: likewise
28204 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 28205
20318222 282062009-04-15 Felix Zielcke <fzielcke@z-51.de>
28207
28208 * INSTALL: Add that `./autogen.sh' needs to be run before
28209 `./configure.'.
28210
d05f0df3 282112009-04-14 Bean <bean123ch@gmail.com>
28212
28213 * Makefile.in (pkglib_DATA): Add handler.lst.
28214 (handler.lst): New rule.
28215
28216 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
28217 * conf/i386-coreboot.rmk: Likewise.
28218 * conf/i386-ieee1275.rmk: Likewise.
28219 * conf/i386-efi.rmk: Likewise.
28220 * conf/x86_64-efi.rmk: Likewise.
28221 * conf/powerpc-ieee1275.rmk: Likewise.
28222 * conf/sparc64-ieee1275.rmk: Likewise.
28223
28224 * genhandlerlist.sh: New file.
28225
28226 * genmk.rb: Add rules to generate handler.lst.
28227
28228 * include/grub/normal.h (grub_file_getline): New function definition.
28229 (read_handler_list): Likewise.
28230 (free_handler_list): Likewise.
28231
28232 * include/grub/term.h (grub_term_register_input): Add name parameter
28233 for auto generation of handler.lst.
28234 (grub_term_register_output): Likewise.
28235
28236 * normal/handler.c: New file.
28237
28238 * normal/main.c (get_line): Renamed to grub_file_getline.
28239 (read_config_file): Use the newly renamed grub_file_getline.
28240 (read_command_list): Likewise.
28241 (read_fs_list): Likewise.
28242 (grub_normal_execute): Call read_handler_list to parse handler.lst.
28243 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
28244
28245 * term/efi/console.c (grub_console_init): Add name parameter for auto
28246 generation of handler.lst.
28247 * term/gfxterm.c: Likewise.
28248 * term/i386/pc/at_keyboard.c: Likewise.
28249 * term/i386/pc/console.c: Likewise.
28250 * term/i386/pc/serial.c: Likewise.
28251 * term/i386/pc/vesafb.c: Likewise.
28252 * term/i386/pc/vga.c: Likewise.
28253 * term/i386/pc/vga_text.c: Likewise.
28254 * term/ieee1275/ofconsole.c: Likewise.
28255 * term/usb_keyboard.c: Likewise.
28256
33c846be 282572009-04-14 Bean <bean123ch@gmail.com>
28258
28259 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
28260 properly with null character.
28261
4484e01e 282622009-04-14 Felix Zielcke <fzielcke@z-51.de>
28263
28264 * configure: Remove.
28265 * config.h.in: Likewise.
f93d668e 28266 * stamp-h.in: Likewise.
4484e01e 28267 * DISTLIST: Likewise.
28268 * conf/common.mk: Likewise.
28269 * conf/i386-coreboot.mk: Likewise.
28270 * conf/i386-efi.mk: Likewise.
28271 * conf/i386-ieee1275.mk: Likewise.
28272 * conf/i386.mk: Likewise.
28273 * conf/i386-pc.mk: Likewise.
28274 * conf/powerpc-ieee1275.mk: Likewise.
28275 * conf/sparc64-ieee1275.mk: Likewise.
28276 * conf/x86_64-efi.mk: Likewise.
28277
28278 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
28279 develop on GRUB.
28280
7dd4a573 282812009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 28282 David S. Miller <davem@davemloft.net>
28283
28284 * util/hostdisk.c (make_device_name): Fix buffer length
28285 calculations.
28286
e25b5a8c 282872009-04-14 Felix Zielcke <fzielcke@z-51.de>
28288
28289 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
28290 <sys/param.h> and <sys/sysctl.h>.
28291 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
28292 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
28293 opening the device and reset them afterwards.
28294
1f1f580c 282952009-04-13 Pavel Roskin <proski@gnu.org>
28296
28297 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
28298 Reported by John Stanley <jpsinthemix@verizon.net>
28299
7ebc2d6b 283002009-04-13 Robert Millan <rmh@aybabtu.com>
28301
28302 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 28303 that name for menuentries when appropriate.
7ebc2d6b 28304
d8ba3667 283052009-04-13 Felix Zielcke <fzielcke@z-51.de>
28306
28307 * util/grub.d/10_freebsd.in: Add a missing `fi'.
28308
cba416eb 283092009-04-13 Robert Millan <rmh@aybabtu.com>
28310
28311 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
28312 to Linux, simply abort telling the user it's no longer supported.
28313
a547a745 283142009-04-13 Felix Zielcke <fzielcke@z-51.de>
28315
28316 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 28317 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 28318 `freebsd_loadenv' only when devices.hints exist.
28319
232a769c 283202009-04-13 Pavel Roskin <proski@gnu.org>
28321
28322 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
28323
c3012039 283242009-04-13 Felix Zielcke <fzielcke@z-51.de>
28325
28326 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
28327 partition number.
28328 (grub_drive): Likewise.
28329
234022fe 283302009-04-13 David S. Miller <davem@davemloft.net>
28331
28332 * kern/sparc64/ieee1275/ieee1275.c: New file.
28333 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
28334 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
28335 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
28336 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
28337 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
28338 grub_ieee1275_alloc_physmem): Declare new exported functions.
28339
d8e1836c 28340 * include/grub/sparc64/ieee1275/loader.h: New file.
28341 * include/grub/sparc64/ieee1275/memory.h: Likewise.
28342 * include/grub/sparc64/kernel.h: Likewise.
28343 * loader/sparc64/ieee1275/linux.c: Likewise.
28344
96bd81ec 28345 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
28346 (grub_fstest_SOURCES): Likewise.
28347
6a4737e5 28348 * util/hostdisk.c (make_device_name): Do not make any assumptions
28349 about the length of drive names.
28350
1d7a72fd 28351 * kern/dl.c (grub_dl_load_file): Close file immediately when
28352 we are done using it.
28353
56bc2471 283542009-04-12 David S. Miller <davem@davemloft.net>
28355
28356 * kern/misc.c (grub_ltoa): Fix cast when handling negative
28357 values. Noticed by Pavel Roskin.
28358
df38d0bb 28359 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
28360 target compiler.
7dd4a573 28361
e382e93a 28362 * genmk.rb: Add more flexible image type specification, also
28363 pass --strip-unneeded to objcopy.
28364 * conf/i386-pc.rmk: Use *_FORMAT.
28365 * conf/i386-pc.mk: Rebuilt.
28366
f5dbbca9 28367 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
28368 (OFDISK_HASH_SZ): Define.
28369 (ofdisk_hash): New hash table.
28370 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
28371 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
28372 instead of device phandle which is not unique.
28373
91c88b12 28374 * kern/sparc64/ieee1275/init.c: Delete, replace with...
28375 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
28376 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
28377 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
28378 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
28379 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
28380 GRUB_KERNEL_MACHINE_DATA_END): Define.
28381 (grub_kernel_image_size, grub_total_module_size): Declare.
28382
5b5d4aa5 283832009-04-12 Pavel Roskin <proski@gnu.org>
28384
7dd4a573 28385 * configure.ac: Change the logic when we check for target tools.
28386 Do it when the target is specified and it's different from the
28387 specified value of the host.
5b5d4aa5 28388
c91e1793 283892009-04-11 Felix Zielcke <fzielcke@z-51.de>
28390
28391 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
28392 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
28393 GNU/kFreeBSD. Check if a device is a character device. Use
28394 DIOCGMEDIASIZE to get the size.
28395 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
28396 support for GNU/kFreeBSD.
28397 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
28398 is a character device instead of a block device. Add support for
28399 FreeBSD device names.
28400
28401 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
28402 is a character device instead of a block device.
28403
28404 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
28405 is a character device instead of a block device.
28406
b1ac8644 284072009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
28408
28409 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
28410 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
28411 FreeBSD. Check if a device is a character device. Use
28412 DIOCGMEDIASIZE to get the size.
28413 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
28414 support for FreeBSD.
28415 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
28416 is a character device instead of a block device. Add support for
28417 FreeBSD device names.
28418
28419 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
28420 a character device instead of a block device.
28421 (grub_util_check_char_device): New function.
28422
28423 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
28424 a character device instead of a block device.
28425
28426 * include/grub/util/getroot.h (grub_util_check_char_device): New
28427 prototype.
28428
a3f7515a 284292009-04-11 David S. Miller <davem@davemloft.net>
28430
28431 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
28432 static libgcc.
28433 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
28434 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
28435 function, if present.
28436 (__bswapdi2): Likewise.
28437
0d44993d 28438 * include/grub/sparc64/ieee1275/boot.h: New file.
28439 * boot/sparc64/ieee1275/boot.S: Likewise.
28440 * boot/sparc64/ieee1275/diskboot.S: Likewise.
28441
ed3d2bc2 28442 * kern/misc.c (grub_ltoa): New function.
28443 (grub_vsprintf): Use it to format 'long' integers.
28444
d3bfb59c 284452009-04-10 David S. Miller <davem@davemloft.net>
28446
28447 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
28448 slots are of type grub_ieee1275_cell_t.
28449 (grub_nand_read): Likewise.
28450 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
28451 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
28452 macros are used to compare values in arg/ret block of the call.
28453 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
28454 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
28455 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
28456 grub_ieee1275_instance_to_path, grub_ieee1275_write,
28457 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
28458 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
28459 grub_ieee1275_close, grub_ieee1275_set_property,
28460 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
28461 grub_ieee1275_cell_t.
28462 * kern/ieee1275/openfw.c (grub_map): Likewise.
28463 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
28464 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
28465
450e2238 28466 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
28467 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
28468 (grub_devalias_iterate): Likewise.
28469
7dd4a573 284702009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 28471
28472 UFS improvements
28473
28474 * fs/ufs.c (INODE_NBLOCKS): new definition
28475 (struct grub_ufs_dirent): added fields for non-BSD dirents
28476 (grub_ufs_get_file_block): fixed double indirect handling
28477 (grub_ufs_lookup_symlink): use more robust way to determine whether
28478 symlink is inline
28479 (grub_ufs_find_file): support for non-BSD dirents
28480 (grub_ufs_dir): support for non-BSD dirents
28481
e7e6862a 284822009-04-10 Bean <bean123ch@gnail.com>
28483
28484 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
28485 attribute, otherwise the size would be wrong for i386 platform.
28486
28487 * include/grub/pci.h (grub_pci_read_word): New inline function.
28488 (grub_pci_read_byte): Likewise.
28489 (grub_pci_write): Likewise.
28490 (grub_pci_write_word): Likewise.
28491 (grub_pci_write_byte): Likewise.
28492
28493 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
28494
28495 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
28496 (find_framebuf): Scan pci to locate the frame buffer address.
28497
28498 * commands/efi/fixvideo.c: New file.
28499
28500 * commands/efi/loadbios.c: Likewise.
28501
28502 * commands/memrw.c: Likewise.
28503
28504 * util/grub-dumpbios.in: Likewise.
28505
28506 * conf/common.rmk (grub-dumpbios): New utility.
28507 (pkglib_MODULES): New module memrw.mod.
28508 (memrw_mod_SOURCE): New macro.
28509 (memrw_mod_CFLAGS): Likewise.
28510 (memrw_mod_LDFLAGS): Likewise.
28511
7dd4a573 28512 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 28513 fixvideo.mod.
28514 (loadbios_mod_SOURCE): New macro.
28515 (loadbios_mod_CFLAGS): Likewise.
28516 (loadbios_mod_LDFLAGS): Likewise.
28517 (fixvideo_mod_SOURCE): Likewise.
28518 (fixvideo_mod_CFLAGS): Likewise.
28519 (fixvideo_mod_LDFLAGS): Likewise.
28520
7dd4a573 28521 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 28522 fixvideo.mod.
28523 (loadbios_mod_SOURCE): New macro.
28524 (loadbios_mod_CFLAGS): Likewise.
28525 (loadbios_mod_LDFLAGS): Likewise.
28526 (fixvideo_mod_SOURCE): Likewise.
28527 (fixvideo_mod_CFLAGS): Likewise.
28528 (fixvideo_mod_LDFLAGS): Likewise.
28529
af63ada2 285302009-04-08 Felix Zielcke <fzielcke@z-51.de>
28531
28532 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
28533
c2cdde70 285342009-04-07 David S. Miller <davem@davemloft.net>
28535
28536 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
28537 support for R_SPARC_OLO10 relocations. Fix compile warning for
28538 R_SPARC_WDISP30 case.
ea3f72cf 28539 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 28540
761319cf 285412009-04-06 Pavel Roskin <proski@gnu.org>
28542
1007d1f5 28543 * include/grub/misc.h (ARRAY_SIZE): New macro.
28544 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
28545 New macro.
28546 * loader/i386/linux.c (allocate_pages): Use free_pages().
28547 (grub_linux_unload): Don't use free_pages().
28548 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
28549 wrong index. Treat all other modes as text modes.
28550 (grub_cmd_linux): Initialize vid_mode unconditionally to
28551 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
28552
761319cf 28553 * commands/help.c (print_command_help): Use cmd->prio, not
28554 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
28555
ea761d40 285562009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 28557
ea761d40 28558 Parttool
28559
28560 * parttool/pcpart.c: new file
28561 * commands/parttool.c: likewise
28562 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
28563 (parttool_mod_SOURCES): new variable
28564 (parttool_mod_CFLAGS): likewise
28565 (parttool_mod_LDFLAGS): likewise
28566 (pcpart_mod_SOURCES): likewise
28567 (pcpart_mod_CFLAGS): likewise
28568 (pcpart_mod_LDFLAGS): likewise
7dd4a573 28569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 28570 and parttool/pcpart.c
28571 * conf/i386-efi.rmk: likewise
28572 * conf/i386-ieee1275.rmk: likewise
28573 * conf/i386-pc.rmk: likewise
28574 * conf/powerpc-ieee1275.rmk: likewise
28575 * conf/sparc64-ieee1275.rmk: likewise
28576 * conf/x86_64-ieee1275.rmk: likewise
28577
05aaebfb 285782009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28579
28580 Support for mtime and further expandability of dir command
28581
28582 * include/grub/lib/datetime.h: moved to ...
7dd4a573 28583 * include/grub/datetime.h: ... moved here and added
05aaebfb 28584 declaration of grub_unixtime2datetime. All users updated
7dd4a573 28585 * include/grub/fs.h: new syntax for dir and mtime functions in
28586 struct grub_fs
05aaebfb 28587 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
28588 and GRUB_FSHELP_FLAGS_MASK
28589 * commands/ls.c (grub_ls_list_files): Write mtime in long format
28590 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
28591 (grub_ext2_mtime): new function
28592 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
28593 (grub_hfsplus_mtime): new function
28594 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
28595 (GRUB_UFS_ATTR_FILE): likewise
28596 (GRUB_UFS_ATTR_LNK): likewise
28597 (struct grub_ufs_sblock): new fields mtime
28598 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
28599 all users updated
28600 (grub_ufs_dir): mtime support
28601 (grub_ufs_mtime): new function
28602 * fs/affs.c (grub_affs_dir): use new dir syntax
28603 * fs/afs.c (grub_afs_dir): likewise
28604 * fs/cpio.c (grub_cpio_dir): likewise
28605 * fs/fat.c (grub_fat_find_dir): likewise
28606 * fs/hfs.c (grub_hfs_dir): likewise
28607 * fs/iso9660.c (grub_iso9660_dir): likewise
28608 * fs/jfs.c (grub_jfs_dir): likewise
28609 * fs/minix.c (grub_minix_dir): likewise
28610 * fs/ntfs.c (grub_ntfs_dir): likewise
28611 * fs/reiserfs.c (grub_reiserfs_dir): likewise
28612 * fs/sfs.c (grub_sfs_dir): likewise
28613 * fs/xfs.c (grub_xfs_dir): likewise
28614 * util/hostfs.c (grub_hostfs_dir): likewise
28615 * lib/datetime.c: moved to ...
28616 * normal/datetime.c: ... moved here
28617 (grub_unixtime2datetime): new function
28618 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 28619 * normal/completion.c (iterate_dir): use new dir syntax
28620 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 28621 last modification time of a volume
7dd4a573 28622 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 28623 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 28624 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 28625 (normal_mod_SOURCES): likewise
28626 (datetime_mod_SOURCES): Removed lib/datetime.c
28627 * conf/i386-efi.rmk: likewise
7dd4a573 28628 * conf/i386-ieee1275.rmk: likewise
05aaebfb 28629 * conf/i386-pc.rmk: likewise
28630 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 28631 * conf/sparc64-ieee1275.rmk: likewise
28632 * conf/x86_64-efi.rmk: likewise
05aaebfb 28633
8a7e1a14 286342009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
28635
28636 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 28637
28638 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 28639 on grub_fat_find_dir
28640 (grub_fat_find_dir): use grub_fat_iterate_dir
28641 (grub_fat_label): likewise
28642
04186a9c 286432009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
28644
7dd4a573 28645 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 28646 and command.h
28647 remove extraneous kernel_elf_HEADERS
28648
da4c0bb6 286492009-04-04 Bean <bean123ch@gnail.com>
28650
28651 * include/grub/util/misc.h: Add dummy function fsync for mingw.
28652
28653 * util/misc.c: Likewise.
28654
54ad9555 286552009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28656
28657 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
28658 instead of grub_printf.
28659
7a6bf9f2 286602009-04-03 Robert Millan <rmh@aybabtu.com>
28661
28662 * loader/i386/linux.c (grub_linux_setup_video): Fill
28663 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
28664 values from `mode info' structure instead of hardcoded
28665 values.
28666
3fcc2083 286672009-04-01 Pavel Roskin <proski@gnu.org>
28668
28669 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
28670 unused now.
28671 * genmk.rb: Likewise.
28672 * configure.ac: Likewise.
28673
5ec9740b 286742009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
28675
28676 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
28677 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
28678
5270cec8 286792009-04-01 David S. Miller <davem@davemloft.net>
28680
28681 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 28682 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 28683 (grub_setjmp): Mark with 'returns_twice' attribute.
28684 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
28685 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
28686 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
28687
9c3dd854 286882009-04-01 Robert Millan <rmh@aybabtu.com>
28689
28690 Reapply fix from 2008-07-28 which was accidentally reverted; also
28691 perform the same fix to a similar check in same function.
28692
28693 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28694 with the same number are found, just use issue a warning with
28695 grub_dprintf(), as this error has been reported to be non-fatal.
28696
0d818b7e 286972009-03-31 Pavel Roskin <proski@gnu.org>
28698
28699 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
28700 for cross-compilation.
28701
95646d92 287022009-03-30 Robert Millan <rmh@aybabtu.com>
28703
28704 Fix i386-ieee1275 build.
28705
28706 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
28707 Remove declaration.
28708
6a003ed1 287092009-03-30 Pavel Roskin <proski@gnu.org>
28710
28711 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
28712 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
28713 zero-terminated, rely only on the strlen value. Fix comparison
28714 of strings differing in length.
28715
92f33540 287162009-03-30 Robert Millan <rmh@aybabtu.com>
28717
28718 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
28719 checking for abi version. Improve error messages on BIOS to notify
28720 user about `linux16' command.
28721
a8c48fd5 287222009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
28723
f968172e 28724 Leak fixes
a8c48fd5 28725
f968172e 28726 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
28727 in case of collision
28728 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 28729
9c323f09 287302009-03-29 Robert Millan <rmh@aybabtu.com>
28731
28732 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
28733 set `vid_mode' accordingly.
28734 (grub_linux_boot): Process `vid_mode' and set video mode.
28735
ae68f423 287362009-03-29 Robert Millan <rmh@aybabtu.com>
28737
28738 * util/grub.d/10_linux.in (linux_entry): New function.
28739 Factorize generation of Linux boot entries.
28740
5709cfc4 287412009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
28742
28743 Make the format of Environment Block plain text. The boot loader
28744 part is not tested well yet.
7dd4a573 28745
5709cfc4 28746 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
28747 (buffer): Removed.
28748 (envblk): Likewise.
28749 (usage): Remove "info" and "clear". Add "unset". Update the
28750 description of "set", as this does not delete variables any
28751 longer.
28752 (create_envblk_file): Complete rewrite.
28753 (open_envblk_file): Likewise.
28754 (cmd_info): Removed.
28755 (cmd_list): Likewise.
28756 (cmd_set): Likewise.
28757 (cmd_clear): Likewise.
28758 (list_variables): New function.
28759 (write_envblk): Likewise.
28760 (set_variables): Likewise.
28761 (unset_variables): Likewise.
28762 (main): Complete rewrite.
28763
28764 * commands/loadenv.c (buffer): Removed.
28765 (envblk): Likewise.
28766 (open_envblk_file): New function.
28767 (read_envblk_file): Complete rewrite.
28768 (grub_cmd_load_env): Likewise.
28769 (grub_cmd_list_env): Likewise.
28770 (struct blocklist): New struct.
28771 (free_blocklists): New function.
28772 (check_blocklists): Likewise.
28773 (write_blocklists): Likewise.
28774 (grub_cmd_save_env): Complete rewrite.
28775
28776 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
28777 a plain text signature.
28778 (GRUB_ENVBLK_MAXLEN): Removed.
28779 (struct grub_envblk): Complete rewrite.
28780 (grub_envblk_find): Removed.
28781 (grub_envblk_insert): Likewise.
28782 (grub_envblk_open): New prototype.
28783 (grub_envblk_set): Likewise.
28784 (grub_envblk_delete): Put const to VALUE.
28785 (grub_envblk_iterate): Put const to NAME and VALUE.
28786 (grub_envblk_close): New prototype.
28787 (grub_envblk_buffer): New inline function.
28788 (grub_envblk_size): Likewise.
28789
28790 * lib/envblk.c: Include grub/mm.h.
28791 (grub_env_find): Removed.
28792 (grub_envblk_open): New function.
28793 (grub_envblk_close): Likewise.
28794 (escaped_value_len): Likewise.
28795 (find_next_line): Likewise.
28796 (grub_envblk_insert): Removed.
28797 (grub_envblk_set): New function.
28798 (grub_envblk_delete): Complete rewrite.
28799 (grub_envblk_iterate): Likewise.
28800
a9368fd3 288012009-03-28 Robert Millan <rmh@aybabtu.com>
28802
28803 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
28804 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
28805 variables. Use 16-bit loader.
28806 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
28807 loader.
28808 * kern/i386/loader.S (grub_linux_boot): Rename to ...
28809 (grub_linux16_boot): ... this. Update all users.
28810 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
28811 (grub_linux_boot): ... this. Update all users.
28812
28813 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
28814 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
28815 commands to `linux16' and `initrd16'.
28816 (GRUB_MOD_FINI(linux)): Rename to ...
28817 (GRUB_MOD_FINI(linux16)): ... this.
28818
e4dd5a7e 288192009-03-24 Pavel Roskin <proski@gnu.org>
28820
28821 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
28822 not just for compilation.
28823
c04d6e05 288242009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
28825
28826 Move multiboot helper out of kernel
28827
28828 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
28829 `loader/i386/multiboot_helper.S'.
28830 * conf/i386-coreboot.rmk: Likewise
28831 * conf/i386-ieee1275.rmk: Likewise
28832
28833 * kern/i386/loader.S: Move multiboot helpers from here...
28834 * loader/i386/multiboot_helper.S: ...moved here
28835 * include/grub/i386/loader.h: Move declarations of multiboot
28836 helpers from here...
28837 * include/grub/i386/multiboot.h: ...moved here
28838 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
28839
42a5b3fc 288402009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28841
28842 * kern/env.c (grub_env_context_open): Added an argument to specify
28843 whether a new context inherits exported variables from current
28844 one. This is useful when making a sandbox to interpret a config
28845 file.
28846 All callers updated.
28847
28848 * include/grub/env.h (grub_env_context_open): Updated the prototype.
28849
b28bbc4e 288502009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28851
28852 * kern/env.c (grub_env_context_close): Fix memory leaks.
28853
f04f02e4 288542009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
28855
28856 * normal/main.c (grub_normal_execute): Added an argument
28857 BATCH to specify if an interactive interface should be provided
28858 after reading a config file.
28859 All callers updated.
28860 (read_command_list): Prevent being executed twice.
28861 (read_fs_list): Likewise.
28862
42a5b3fc 28863 * include/grub/normal.h (grub_normal_execute): Updated the
28864 prototype.
f04f02e4 28865
41473ac2 288662009-03-22 Pavel Roskin <proski@gno.org>
28867
fbc00b0c 28868 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
28869 _start.
28870 * kern/i386/pc/startup.S: Likewise.
28871 * kern/i386/efi/startup.S: Likewise.
28872 * kern/i386/ieee1275/startup.S: Likewise.
28873 * kern/i386/coreboot/startup.S: Likewise.
28874 * kern/x86_64/efi/startup.S: Likewise.
28875
41473ac2 28876 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
28877 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
28878 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
28879
2274cc8f 288802009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
28881
28882 Bugfixes in multiboot for bugs uncovered by solaris kernel.
28883
28884 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
28885 limit detection.
28886 Use vaddr of correct segment for entry_point.
28887
b1b797cb 288882009-03-21 Bean <bean123ch@gmail.com>
28889
28890 * commands/blocklist.c: Add include file <grub/command.h>, remove
28891 <grub/normal.h> and <grub/arg.h>.
28892 (grub_cmd_blocklist): Use the new command interface.
28893 (GRUB_MOD_INIT): Likewise.
28894 (GRUB_MOD_FINI): Likewise.
28895 * commands/boot.c: Likewise.
28896 * commands/cat.c: Likewise.
28897 * commands/cmp.c: Likewise.
28898 * commands/configfile.c: Likewise.
28899 * commands/crc.c: Likewise.
28900 * commands/echo.c: Likewise.
28901 * commands/halt.c: Likewise.
28902 * commands/handler.c: Likewise.
28903 * commands/hdparm.c: Likewise.
28904 * commands/help.c: Likewise.
28905 * commands/hexdump.c: Likewise.
28906 * commands/loadenv.c: Likewise.
28907 * commands/ls.c: Likewise.
28908 * commands/lsmmap.c: Likewise.
28909 * commands/lspci.c: Likewise.
28910 * commands/loadenv.c: Likewise.
28911 * commands/read.c: Likewise.
28912 * commands/reboot.c: Likewise.
28913 * commands/search.c: Likewise.
28914 * commands/sleep.c: Likewise.
28915 * commands/test.c: Likewise.
28916 * commands/usbtest.c: Likewise.
28917 * commands/videotest.c: Likewise.
28918 * commands/i386/cpuid.c: Likewise.
28919 * commands/i386/pc/halt.c: Likewise.
28920 * commands/i386/pc/play.c: Likewise.
28921 * commands/i386/pc/pxecmd.c: Likewise.
28922 * commands/i386/pc/vbeinfo.c: Likewise.
28923 * commands/i386/pc/vbetest.c: Likewise.
28924 * commands/ieee1275/suspend.c: Likewise.
28925 * disk/loopback.c: Likewise.
28926 * font/font_cmd.c: Likewise.
28927 * hello/hello.c: Likewise.
28928 * loader/efi/appleloader.c: Likewise.
28929 * loader/efi/chainloader.c: Likewise.
28930 * loader/i386/bsd.c: Likewise.
28931 * loader/i386/efi/linux.c: Likewise.
28932 * loader/i386/ieee1275/linux.c: Likewise.
28933 * loader/i386/linux.c: Likewise.
28934 * loader/i386/pc/chainloader.c: Likewise.
28935 * loader/i386/pc/linux.c: Likewise.
28936 * loader/powerpc/ieee1275/linux.c: Likewise.
28937 * loader/multiboot_loader.c: Likewise.
28938 * term/gfxterm.c: Likewise.
28939 * term/i386/pc/serial.c: Likewise.
28940 * term/terminfo.c: Likewise.
28941
28942 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
28943 * term/i386/pc/vga.c: Likewise.
28944 * video/readers/jpeg.c: Likewise.
28945 * video/readers/png.c: Likewise.
28946 * video/readers/tga.c: Likewise.
28947
28948 * util/grub-fstest (cmd_loopback): Removed.
28949 (cmd_blocklist): Likewise.
28950 (cmd_ls): Likewise.
28951 (grub_register_command): Likewise.
28952 (grub_unregister_command): Likewise.
28953 (execute_command): Use grub_command_find to locate command and execute
28954 it.
28955
28956 * include/grub/efi/chainloader.h: Removed.
28957 * loader/efi/chainloader_normal.c: Likewise.
28958 * loader/i386/bsd_normal.c: Likewise.
28959 * loader/i386/pc/chainloader_normal.c: Likewise.
28960 * loader/i386/pc/multiboot_normal.c: Likewise.
28961 * loader/linux_normal.c: Likewise.
28962 * loader/multiboot_loader_normal.c: Likewise.
28963 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28964
28965 * gencmdlist.sh: Scan new registration command grub_register_extcmd
28966 and grub_register_command_p1.
28967
28968 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
28969 kern/command.c, lib/arg.c and commands/extcmd.c.
28970 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
28971 (minicmd_mod_SOURCES): New variable.
28972 (minicmd_mod_CFLAGS): Likewise.
28973 (minicmd_mod_LDFLAGS): Likewise.
28974 (extcmd_mod_SOURCES): Likewise.
28975 (extcmd_mod_CFLAGS): Likewise.
28976 (extcmd_mod_LDFLAGS): Likewise.
28977 (boot_mod_SOURCES): Removed.
28978 (boot_mod_CFLAGS): Likewise.
28979 (boot_mod_LDFLAGS): Likewise.
28980
28981 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
28982 kern/corecmd.c.
28983 (kernel_img_HEADERS): Add command.h.
28984 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
28985 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
28986 and lib/arg.c.
28987 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
28988 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
28989 remove the corresponding normal mode command.
28990 (normal_mod_SOURCES): Remove normal/arg.c.
28991 * conf/i386-coreboot.rmk: Likewise.
28992 * conf/i386-efi.rmk: Likewise.
28993 * conf/i386-ieee1275.rmk: Likewise.
28994 * conf/powerpc-ieee1275.rmk: Likewise.
28995 * conf/x86_64-efi.rmk: Likewise.
28996
28997 * include/grub/arg.h: Move from here ...
28998 * include/grub/lib/arg.h: ... to here.
28999
29000 * normal/arg.c: Move from here ...
29001 * lib/arg.c: ... to here.
29002
29003 * commands/extcmd.c: New file.
29004 * commands/minicmd.c: Likewise.
29005 * include/grub/command.h: Likewise.
29006 * include/grub/extcmd.h: Likewise.
29007 * kern/command.c: Likewise.
29008 * kern/corecmd.c: Likewise.
29009
29010 * kern/list.c (grub_list_iterate): Return int instead of void.
29011 (grub_list_insert): New function.
29012 (grub_prio_list_insert): Likewise.
29013
29014 * kern/rescue.c (grub_rescue_command): Removed.
29015 (grub_rescue_command_list): Likewise.
29016 (grub_rescue_register_command): Likewise.
29017 (grub_rescue_unregister_command): Likewise.
29018 (grub_rescue_cmd_boot): Move to minicmd.c
29019 (grub_rescue_cmd_help): Likewise.
29020 (grub_rescue_cmd_info): Likewise.
29021 (grub_rescue_cmd_boot): Likewise.
29022 (grub_rescue_cmd_testload): Likewise.
29023 (grub_rescue_cmd_dump): Likewise.
29024 (grub_rescue_cmd_rmmod): Likewise.
29025 (grub_rescue_cmd_lsmod): Likewise.
29026 (grub_rescue_cmd_exit): Likewise.
29027 (grub_rescue_print_devices): Moved to corecmd.c.
29028 (grub_rescue_print_files): Likewise.
29029 (grub_rescue_cmd_ls): Likewise.
29030 (grub_rescue_cmd_insmod): Likewise.
29031 (grub_rescue_cmd_set): Likewise.
29032 (grub_rescue_cmd_unset): Likewise.
7d074e3c 29033 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 29034 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 29035 commands, remove grub_rescue_register_command calls.
b1b797cb 29036
7d074e3c 29037 * normal/command.c (grub_register_command): Removed.
b1b797cb 29038 (grub_unregister_command): Likewise.
29039 (grub_command_find): Likewise.
29040 (grub_iterate_commands): Likewise.
29041 (rescue_command): Likewise.
29042 (export_command): Moved to corecmd.c.
29043 (set_command): Removed.
29044 (unset_command): Likewise.
29045 (insmod_command): Likewise.
29046 (rmmod_command): Likewise.
29047 (lsmod_command): Likewise.
29048 (grub_command_init): Likewise.
29049
29050 * normal/completion.c (iterate_command): Use cmd->prio to check for
29051 active command.
29052 (complete_arguments): Use grub_extcmd_t structure to find options.
29053 (grub_normal_do_completion): Change function grub_iterate_commands to
29054 grub_command_iterate.
29055
29056 * normal/execute.c (grub_script_execute_cmd): No need to parse
29057 argument here.
29058
29059 * normal/main.c (grub_dyncmd_dispatcher): New function.
29060 (read_command_list): Register unload commands as dyncmd.
29061 (grub_cmd_normal): Use new command interface, register rescue,
29062 unregister normal at entry, register normal, unregister rescue at exit.
29063
29064 * include/grub/list.h (grub_list_test_t): New type.
29065 (grub_list_iterate): Return int instead of void.
29066 (grub_list_insert): New function.
29067 (GRUB_AS_NAMED_LIST_P): New macro.
29068 (GRUB_AS_PRIO_LIST): Likewise.
29069 (GRUB_AS_PRIO_LIST_P): Likewise.
29070 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
29071 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
29072 (grub_prio_list): New structure.
29073 (grub_prio_list_insert): New function.
29074 (grub_prio_list_remove): New inline function.
29075
29076 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
29077 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
29078 (GRUB_COMMAND_FLAG_MENU): Likewise.
29079 (GRUB_COMMAND_FLAG_BOTH): Likewise.
29080 (GRUB_COMMAND_FLAG_TITLE): Likewise.
29081 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
29082 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
29083 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
29084 (grub_command): Likewise.
29085 (grub_register_command): Likewise.
29086 (grub_command_find): Likewise.
29087 (grub_iterate_commands): Likewise.
29088 (grub_command_init): Likewise.
29089 (grub_arg_parse): Likewise.
29090 (grub_arg_show_help): Likewise.
29091
29092 * include/grub/rescue.h (grub_rescue_register_command): Removed.
29093 (grub_rescue_unregister_command): Likewise.
29094
29095 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
29096 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
29097 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
29098
29099 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
29100 grub_rescue_cmd_initrd.
29101 * include/grub/i386/loader.h: Likewise.
29102 * include/grub/x86_64/loader.h: Likewise.
29103
29104 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
29105
1f4147aa 291062009-03-21 Bean <bean123ch@gmail.com>
29107
29108 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
29109 instead of stat in mingw environment.
29110
29111 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
29112
29113 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
29114
29115 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
29116 AC_CONFIG_LINKS.
29117
2156d5ba 291182009-03-21 Bean <bean123ch@gmail.com>
29119
29120 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
29121 out of range error.
29122
177b82ca 291232009-03-18 Michel Dänzer <michel@daenzer.net>
29124
29125 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
29126 checking inode flags for EXT4_EXTENTS_FLAG.
29127
14aad807 291282009-03-18 Robert Millan <rmh@aybabtu.com>
29129
29130 * loader/i386/linux.c: Include `<grub/video.h>' and
29131 `<grub/i386/pc/vbe.h>'..
29132 (grub_linux_setup_video): New function. Loosely based on the EFI one.
29133 (grub_linux32_boot): Attempt to configure video settings with
29134 grub_linux_setup_video().
29135 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
29136 to avoid grub_console_fini() which would step out of graphical mode
29137 unconditionally.
29138
8cf83a27 291392009-03-14 Robert Millan <rmh@aybabtu.com>
29140
29141 Fix build on powerpc.
29142 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
29143
40164e75 291442009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
29145
29146 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
29147 background image command.
29148
c58bc32a 291492009-03-12 Colin D Bennett <colin@gibibit.com>
29150
29151 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
29152 (grub_gfxterm_putchar): Extract pairs of identical calls to
29153 draw_cursor out of conditional blocks.
29154
5415144a 291552009-03-11 Pavel Roskin <proski@gnu.org>
29156
29157 * fs/hfs.c (grub_hfs_strncasecmp): New function.
29158 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
29159
6394042e 291602009-03-11 Robert Millan <rmh@aybabtu.com>
29161
29162 * loader/i386/multiboot_elfxx.c
29163 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
29164
b7b50e5f 291652009-03-11 Felix Zielcke <fzielcke@z-51.de>
29166
29167 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
29168 `kern/handler.c'.
29169
1ca7fc96 291702009-03-11 Robert Millan <rmh@aybabtu.com>
29171
29172 * loader/i386/multiboot.c (code_size): New variable.
29173 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 29174 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 29175 4-byte alignment to MBI and others by increasing
7d074e3c 29176 `boot_loader_name_length' appropriately.
1ca7fc96 29177
29178 * loader/i386/multiboot_elfxx.c
29179 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
29180
a83ea1d2 291812009-03-09 Felix Zielcke <fzielcke@z-51.de>
29182
29183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
29184 `fs/ext2.c'.
29185
aa9f3bff 291862009-03-08 Robert Millan <rmh@aybabtu.com>
29187
29188 Make loader/i386/linux.c usable on i386-pc again.
29189
29190 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
29191 memory to heap.
29192 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
29193 `#error' stanza.
29194
d8b3b60e 291952009-03-07 Bean <bean123ch@gmail.com>
29196
29197 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
29198 allocation.
29199
b362c9e9 292002009-03-06 Robert Millan <rmh@aybabtu.com>
29201
29202 Fix display issue on terminals with screen size other than 80x25
29203 (e.g. gfxterm with resolution higher than 640x480).
29204
29205 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 29206 position relative to the center of the terminal instead of relying
b362c9e9 29207 on a hardcoded offset.
29208
9304eef1 292092009-03-04 Robert Millan <rmh@aybabtu.com>
29210
29211 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
29212 installed.
29213
29214 * Makefile.in (host_kernel): New variable.
29215 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
29216 scripts instead of just the windows one.
29217 * configure.ac: Initialize and AC_SUBST `host_kernel'.
29218
eabc95fb 292192009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 29220
29221 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
29222 `kern/handler.c'.
29223 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29224 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29225 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29227 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29228 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29229
ceb1223c 292302009-03-04 Felix Zielcke <fzielcke@z-51.de>
29231
29232 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
29233 or if there's no space for the disk label and print the partition number on a
29234 invalid magic.
29235
4910684a 292362009-03-04 Felix Zielcke <fzielcke@z-51.de>
29237
29238 * util/misc.c: Include <time.h>.
29239 (grub_millisleep): New function.
29240
7e9ca17a 292412009-03-04 Bean <bean123ch@gmail.com>
29242
29243 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
29244 another option -mno-red-zone.
29245
29246 * commands/handler.c: Change module description.
29247
29248 * kern/handler.c: Add missing space at the end of description line.
29249
29250 * kern/list.c: Likewise.
29251
f501677c 292522009-03-03 Robert Millan <rmh@aybabtu.com>
29253
29254 Move more components to the relocation area, and fix mbi pointer
29255 handling to use the destination rather than the origin (thanks to
29256 Vladimir Serbinenko for spotting).
29257
29258 * loader/i386/multiboot.c (mbi_dest): New variable.
29259 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
29260 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
29261 relocation area.
29262
9902d047 292632009-03-01 Bean <bean123ch@gmail.com>
29264
50fb7002 29265 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 29266 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
29267 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
29268 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
29269
29270 * loader/i386/efi/linux.c (acpi_guid): New variable.
29271 (acpi_guid): Likewise.
29272 (EBDA_SEG_ADDR): New constant.
29273 (LOW_MEM_ADDR): Likewise.
29274 (FAKE_EBDA_SEG): Likewise.
29275 (fake_bios_data): New function.
29276 (grub_linux_boot): Call fake_bios_data.
29277
71b9f361 292782009-03-01 Bean <bean123ch@gmail.com>
29279
29280 * commands/terminal.c: Removed.
29281
29282 * commands/handler.c: New file.
29283
29284 * include/grub/list.h: Likewise.
29285
29286 * include/grub/handler.h: Likewise.
29287
29288 * kern/list.c: Likewise.
29289
29290 * kern/handler.c: Likewise.
29291
29292 * kern/term.h: Include header file <grub/handler.h>.
29293 (grub_term_input): Move next field to the beginning.
29294 (grub_term_output): Likewise.
29295 (grub_term_input_class): New variable.
29296 (grub_term_output_class): Likewise.
29297 (grub_term_register_input): Changed to inline function.
29298 (grub_term_register_output): Likewise.
29299 (grub_term_unregister_input): Likewise.
29300 (grub_term_unregister_output): Likewise.
29301 (grub_term_set_current_input): Likewise.
29302 (grub_term_set_current_output): Likewise.
29303 (grub_term_get_current_input): Likewise.
29304 (grub_term_get_current_output): Likewise.
29305 (grub_term_iterate_input): Removed.
29306 (grub_term_iterate_output): Likewise.
29307
29308 * kern/term.c (grub_term_list_input): Removed.
29309 (grub_term_list_output): Likewise.
29310 (grub_term_input_class): New variable.
29311 (grub_term_output_class): Likewise.
50fb7002 29312 (grub_cur_term_input): Change variable as macro.
71b9f361 29313 (grub_cur_term_output): Likewise.
29314 (grub_term_register_input): Removed.
29315 (grub_term_register_output): Likewise.
29316 (grub_term_unregister_input): Likewise.
29317 (grub_term_unregister_output): Likewise.
29318 (grub_term_set_current_input): Likewise.
29319 (grub_term_set_current_output): Likewise.
29320 (grub_term_iterate_input): Likewise.
29321 (grub_term_iterate_output): Likewise.
29322 (grub_term_get_current_input): Likewise.
29323 (grub_term_get_current_output): Likewise.
29324
29325 * util/grub-editenv.c: Include header file <grub/handler.h>.
29326 (grub_term_get_current_input): Removed.
29327 (grub_term_get_current_output): Likewise.
29328 (grub_term_input_class): New variable.
50fb7002 29329 (grub_term_output_class): Likewise.
71b9f361 29330
29331 * util/grub-fstest.c (grub_term_get_current_input): Removed.
29332 (grub_term_get_current_output): Likewise.
29333 (grub_term_input_class): New variable.
50fb7002 29334 (grub_term_output_class): Likewise.
71b9f361 29335
29336 * util/grub-probe.c (grub_term_get_current_input): Removed.
29337 (grub_term_get_current_output): Likewise.
29338 (grub_term_input_class): New variable.
50fb7002 29339 (grub_term_output_class): Likewise.
71b9f361 29340
29341 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
29342 (grub_term_get_current_output): Likewise.
29343 (grub_term_input_class): New variable.
50fb7002 29344 (grub_term_output_class): Likewise.
71b9f361 29345
29346 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
29347 (terminal_mod_SOURCES): Likewise.
29348 (terminal_mod_CFLAGS): Likewise.
29349 (terminal_mod_LDFLAGS): Likewise.
29350
29351 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
29352 handler.c.
29353 (kernel_img_SOURCES): Add list.c and handler.c.
29354 (kernel_img_HEADERS): Add list.h and handler.h.
29355
29356 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
29357 handler.c.
29358 (kernel_mod_SOURCES): Add list.c and handler.c.
29359 (kernel_mod_HEADERS): Add list.h and handler.h.
29360
29361 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
29362 handler.c.
29363 (kernel_elf_SOURCES): Add list.c and handler.c.
29364 (kernel_elf_HEADERS): Add list.h and handler.h.
29365
29366 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
29367 handler.c.
29368 (kernel_elf_SOURCES): Add list.c and handler.c.
29369 (kernel_elf_HEADERS): Add list.h and handler.h.
29370
29371 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
29372 handler.c.
29373 (kernel_mod_SOURCES): Add list.c and handler.c.
29374 (kernel_mod_HEADERS): Add list.h and handler.h.
29375
29376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
29377 handler.c.
29378 (kernel_elf_SOURCES): Add list.c and handler.c.
29379 (kernel_elf_HEADERS): Add list.h and handler.h.
29380
8a31787f 293812009-02-27 Robert Millan <rmh@aybabtu.com>
29382
29383 Factorize elf32 / elf64 code in Multiboot loader. This will
29384 prevent it from getting out of sync again.
29385
29386 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
29387 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
29388 grub_multiboot_load_elf64): Move from here ...
29389 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
29390 grub_multiboot_load_elf): ... to here (new file).
29391
51cd3dfc 293922009-02-27 Robert Millan <rmh@aybabtu.com>
29393
29394 * util/grub.d/10_linux.in: Rename "single-user mode" to
29395 "recovery mode".
29396
6e8c9c3a 293972009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
29398
29399 Don't leak in SCSI code.
29400 * disk/scsi.c (grub_scsi_close): free `scsi'.
29401
4b6bf4f9 294022009-02-27 Robert Millan <rmh@aybabtu.com>
29403
29404 * loader/i386/pc/multiboot.c: Move from here ...
29405 * loader/i386/multiboot.c: ... to here. Update all users.
29406
b9413424 294072009-02-27 Robert Millan <rmh@aybabtu.com>
29408
29409 Patch from Alexandre Bique <bique.alexandre@gmail.com>
29410 * util/i386/pc/grub-setup.c (setup): Fix directory path.
29411
50fb7002 294122009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 29413
29414 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
29415 b-tree.
29416
8cc50345 294172009-02-27 Robert Millan <rmh@aybabtu.com>
29418
29419 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
29420 `0x' qualifier as 0 when base is specified as parameter).
29421
6e09b8b7 294222009-02-24 Bean <bean123ch@gmail.com>
29423
29424 * configure.ac: Check for -mcmodel=large in x86_64 target.
29425
29426 * include/grub/efi/api.h (efi_call_10): New macro.
29427 (efi_wrap_10): New function.
29428
29429 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
29430 (GRUB_PE32_REL_BASED_HIGH): Likewise.
29431 (GRUB_PE32_REL_BASED_LOW): Likewise.
29432 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
29433 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
29434 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
29435 (GRUB_PE32_REL_BASED_SECTION): Likewise.
29436 (GRUB_PE32_REL_BASED_REL): Likewise.
29437 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
29438 (GRUB_PE32_REL_BASED_DIR64): Likewise.
29439 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
29440
29441 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
29442 issue.
29443
29444 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
29445 (efi_wrap_10): New function.
29446
29447 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
29448
29449 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
29450 MB/MBP model (NV chipset).
29451 (devdata_devs): Add devpath_5 to the list.
29452
29453 * load/i386/efi/linux.c (video_base): Remove variable.
29454 (RGB_MASK): New macro.
29455 (RGB_MAGIC): Likewise.
29456 (LINE_MIN): Likewise.
29457 (LINE_MAX): Likewise.
29458 (FBTEST_STEP): Likewise.
29459 (FBTEST_COUNT): Likewise.
29460 (fb_list): New variable.
29461 (grub_find_video_card): Remove function.
29462 (find_framebuf): New function.
29463 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
29464 line length.
29465
29466 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
29467 problem for x86_64.
29468
74b21bee 294692009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
29470
29471 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
29472
29473 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
29474 coding tool name.
29475
a455f472 294762009-02-22 Robert Millan <rmh@aybabtu.com>
29477
29478 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
29479 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
29480 in our relocation, instead of using it directly from heap. Also
29481 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
29482
6374daf3 294832009-02-21 Robert Millan <rmh@aybabtu.com>
29484
29485 Implement USB keyboard support (based on patch by Marco Gerards)
29486
29487 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
29488 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
29489 (usb_keyboard_mod_LDFLAGS): New variables.
29490
29491 * term/usb_keyboard.c: New file.
29492
8fa4ea70 294932009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
29494
29495 Corrected wrong declaration
29496
29497 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
29498
353976ac 294992009-02-14 Christian Franke <franke@computer.org>
29500
29501 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
29502 (grub_lspci_iter): Print class code and programming interface byte.
29503
6aa1169b 295042009-02-14 Christian Franke <franke@computer.org>
29505
29506 * gendistlist.sh: Ignore `.svn' directories.
29507
265372ca 295082009-02-14 Felix Zielcke <fzielcke@z-51.de>
29509
29510 * fs/fat.c: Add 2009 to Copyright line.
29511
9ff516f3 295122009-02-14 Christian Franke <franke@computer.org>
29513
29514 * commands/hdparm.c: New file. Provides `hdparm' command
29515 which sends ATA commands via grub_disk_ata_pass_through ().
29516
29517 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
29518
29519 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
29520 and <grub/cpu/io.h> to include/grub/ata.h.
29521 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
29522 (GRUB_CDROM_SECTOR_SIZE): Remove.
29523 (GRUB_ATA_*): Move to include/grub/ata.h.
29524 (GRUB_ATAPI_*): Likewise.
29525 (enum grub_ata_commands): Likewise.
29526 (enum grub_ata_timeout_milliseconds): Likewise.
29527 (struct grub_ata_device): Likewise.
29528 (grub_ata_regset): Likewise.
29529 (grub_ata_regget): Likewise.
29530 (grub_ata_regset2): Likewise.
29531 (grub_ata_regget2): Likewise.
29532 (grub_ata_check_ready): Likewise.
29533 (grub_ata_wait_not_busy): Remove static, exported in
29534 include/grub/ata.h.
29535 (grub_ata_wait_drq): Likewise.
29536 (grub_ata_pio_read): Likewise.
29537
29538 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
29539 function for hdparm.mod.
29540
29541 * include/grub/ata.h: New file, contains declarations from
29542 disk/ata.c.
29543 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
29544
29545 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
29546 (grub_disk_ata_pass_through): New exported variable.
29547
29548 * kern/disk.c (grub_disk_ata_pass_through): New variable.
29549
772e23da 295502009-02-13 Colin D Bennett <colin@gibibit.com>
29551
29552 Support multiple fallback entries, and provide an API to support
29553 executing default+fallback menu entries. Renamed the `terminal' menu
29554 viewer to `text'.
29555
29556 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
29557 variable declaration.
29558 (grub_menu_execute_callback): New structure declaration.
29559 (grub_menu_execute_callback_t): New typedef.
29560 (grub_menu_execute_with_fallback): New function declaration.
29561 (grub_menu_get_entry): Likewise.
29562 (grub_menu_get_timeout): Likewise.
29563 (grub_menu_set_timeout): Likewise.
29564
29565 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
29566
29567 * normal/menu.c (grub_wait_after_message): Moved to
29568 `normal/menu_text.c'.
29569 (draw_border): Likewise.
29570 (print_message): Likewise.
29571 (print_entry): Likewise.
29572 (print_entries): Likewise.
29573 (grub_menu_init_page): Likewise.
29574 (get_entry_number): Likewise.
29575 (print_timeout): Likewise.
29576 (run_menu): Likewise.
29577 (grub_menu_execute_entry): Likewise.
29578 (show_text_menu): Likewise.
29579 (get_and_remove_first_entry_number): New function.
29580 (grub_menu_execute_with_fallback): Likewise.
29581 (get_entry): Renamed to ...
29582 (grub_menu_get_entry): .. this and made it global.
29583 (get_timeout): Renamed to ...
29584 (grub_menu_get_timeout): ... this and made it global.
29585 (set_timeout): Renamed to ...
29586 (grub_menu_set_timeout): ... this and made it global.
29587 (grub_normal_terminal_menu_viewer): Renamed to ...
29588 (grub_normal_text_menu_viewer): ... this.
29589
29590 * normal/menu_text.c: New file. Extracted text-menu-specific code
29591 from normal/menu.c.
29592
29593 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
29594 (normal_mod_SOURCES): Likewise.
29595
29596 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29597 (normal_mod_SOURCES): Likewise.
29598
29599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29600 (normal_mod_SOURCES): Likewise.
29601
29602 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
29603 (normal_mod_SOURCES): Likewise.
29604
29605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29606 (normal_mod_SOURCES): Likewise.
29607
29608 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29609 (normal_mod_SOURCES): Likewise.
29610
29611 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29612 (normal_mod_SOURCES): Likewise.
29613
16ac430e 296142009-02-11 Robert Millan <rmh@aybabtu.com>
29615
29616 * util/grub.d/00_header.in: Update old reference to `font' command.
29617
06ff20fc 296182009-02-10 Felix Zielcke <fzielcke@z-51.de>
29619
29620 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
29621
29622 Based on patch from Javier Martín.
29623
96da9407 296242009-02-09 Felix Zielcke <fzielcke@z-51.de>
29625
29626 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 29627 to avoid false positives with FAT.
96da9407 29628 (grub_fstest_SOURCES): Likewise.
29629 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29630 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29632 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29633 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29634 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29635
6dca6fe4 296362009-02-09 Felix Zielcke <fzielcke@z-51.de>
29637
06ff20fc 29638 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 29639 bpb.version_specific.fat12_or_fat16.fstype and
29640 bpb.version_specific.fat32.fstype.
29641
2550c62f 296422009-02-08 Robert Millan <rmh@aybabtu.com>
29643
be110b30 29644 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 29645
56978920 296462009-02-08 Robert Millan <rmh@aybabtu.com>
29647
29648 * Makefile.in (host_os, host_cpu): New variables.
29649 (target_os): Remove. Update all users.
29650
d64399b5 296512009-02-08 Marco Gerards <marco@gnu.org>
29652
29653 * Makefile.in (enable_grub_emu_usb): New variable.
29654 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
29655 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
29656 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
29657 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
29658 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
29659 `usbtest.mod' and `usbms.mod'.
29660 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
29661 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
29662 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
29663 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
29664 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
29665 variables.
29666
29667 * disk/usbms.c: New file.
29668
29669 * include/grub/usb.h: Likewise.
29670
29671 * include/grub/usbtrans.h: Likewise.
29672
29673 * include/grub/usbdesc.h: Likewise.
29674
29675 * bus/usb/usbtrans.c: Likewise.
29676
29677 * bus/usb/ohci.c: Likewise.
29678
29679 * bus/usb/uhci.c: Likewise.
29680
29681 * bus/usb/usbhub.c: Likewise.
29682
29683 * bus/usb/usb.c: Likewise.
29684
29685 * commands/usbtest.c: Likewise.
29686
29687 * util/usb.c: Likewise.
50fb7002 29688
d64399b5 29689 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
29690
29691 * configure.ac: Test for libusb presence.
50fb7002 29692
d64399b5 29693 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
29694
2b40d6bb 296952009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
29696
29697 * kern/mm.c: Add more comments.
29698
73a4ce81 296992009-02-08 Robert Millan <rmh@aybabtu.com>
29700
29701 Patch from Javier Martín.
29702 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
29703 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
29704
f821ce59 297052009-02-08 Robert Millan <rmh@aybabtu.com>
29706
29707 * fs/cpio.c: Split tar functionality to ...
29708 * fs/tar.c: ... here (new file). Update all users.
29709
aebfc4b0 297102009-02-07 Robert Millan <rmh@aybabtu.com>
29711
29712 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
29713 backward-incompatible features.
29714
29715 Based on patch from Javier Martín, with some adjustments.
29716
50fb7002 297172009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 29718
29719 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
29720
0bb5115e 297212009-02-07 Robert Millan <rmh@aybabtu.com>
29722
29723 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
29724 position of `disk/lvm.c' to ensure grub_init_all() always picks it
29725 after the RAID stuff.
29726
38a0f8e7 297272009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
29728
50fb7002 29729 Fixes problem when running vbetest command as reported by
38a0f8e7 29730 Vladimir Serbinenko <phcoder@gmail.com>.
29731
29732 * (grub_vbe_set_video_mode): Fixed problem with text modes.
29733
3143cc1c 297342009-02-04 Felix Zielcke <fzielcke@z-51.de>
29735
29736 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
29737 /dev/md/NpN style mdraid devices.
29738
9cba6fce 297392009-02-03 Felix Zielcke <fzielcke@z-51.de>
29740
29741 * util/unifont2pff.rb: Remove.
29742
e507a2c1 297432009-02-03 Felix Zielcke <fzielcke@z-51.de>
29744
29745 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
29746 `#'.
29747
d2c2b4cd 297482009-02-03 Felix Zielcke <fzielcke@z-51.de>
29749
29750 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
29751 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29755 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29756 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29757
b4315fb0 297582009-02-02 Christian Franke <franke@computer.org>
29759
29760 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
29761
de3aa260 297622009-02-01 Felix Zielcke <fzielcke@z-51.de>
29763
7c3ff286 29764 * INSTALL: Note that we now require at least autoconf 2.59 and
29765 that LZO is optional.
de3aa260 29766
825a182b 297672009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
29768
29769 Base on patch on bug #24154 created by Tomas Tintera
29770 <trosos@seznam.cz>.
29771
29772 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
29773
a69ef770 297742009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
29775
7c3ff286 29776 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 29777 <bero@arklinux.org>.
29778
29779 * normal/parser.y (script_init): Add missing semicolon.
29780
6fa42fa6 297812009-01-31 Colin D Bennett <colin@gibibit.com>
29782
7c3ff286 29783 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 29784 (free_menu_entry_classes): Added.
29785 (grub_normal_menu_addentry): Added class property handling.
29786 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
29787 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
29788
29789 * normal/menu_viewer.c: New file.
29790
29791 * normal/menu.c (run_menu_entry): Renamed to ...
29792 (grub_menu_execute_entry): ... this and made it as global.
29793 (grub_menu_run): Renamed to ...
29794 (show_text_menu): ... this and made it local.
29795 (show_text_menu): Adapt to new function names.
29796 (grub_normal_terminal_menu_viewer): New global variable.
29797
29798 * include/grub/menu.h: New file.
29799
29800 * include/grub/menu_viewer.h: New file.
29801
29802 * include/grub/normal.h: Added include to grub/menu.h.
29803 (grub_menu_entry): Moved to include/grub/menu.h.
29804 (grub_menu_entry_t): Likewise.
29805 (grub_menu): Likewise.
29806 (grub_menu_t): Likewise.
29807 (grub_normal_terminal_menu_viewer): Added.
29808 (grub_menu_execute_entry): Likewise.
29809 (grub_menu_run): Removed.
29810
29811 * DISTLIST: Added include/grub/menu.h.
29812 Added include/grub/menu_viewer.h.
29813 Added normal/menu_viewer.c.
29814
298152009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
29816
29817 * normal/execute.c (grub_script_execute_menuentry): Changed to use
29818 arglist for menutitle arguments.
29819
29820 * normal/main.c (grub_normal_menu_addentry): Likewise.
29821
29822 * normal/parser.y (menuentry): Likewise.
29823
29824 * normal/script.c (grub_script_create_cmdmenu): Likewise.
29825
29826 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
29827 (grub_script_create_cmdmenu): Likewise.
29828
29829 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
29830
29831 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
29832 changes.
29833
29834 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
29835
29836 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
29837
29838 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
29839
29840 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29841
29842 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29843
29844 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
29845
56192c23 298462009-01-30 Christian Franke <franke@computer.org>
29847
29848 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
29849 in option help text.
29850
d72521b3 298512009-01-27 Pavel Roskin <proski@gnu.org>
29852
29853 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
29854
994b5e84 298552009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
29856
29857 * commands/lsmmap.c: Add include to grub/machine/memory.h.
29858
29859 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
29860
29861 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
29862 unregister function.
29863
6a7eab2c 298642009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
29865
29866 * disk/scsi.c (grub_scsi_read): Fix sign problem.
29867
29868 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
29869
29870 * util/grub-mkfont.c (usage): Fix typo.
29871
29872 * util/elf/grub-mkimage.c (load_modules): Fix warning.
29873
1806b56e 298742009-01-26 Daniel Mierswa <impulze@impulze.org>
29875
3fb18f09 29876 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
29877
336e1fb9 29878 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
29879
1806b56e 29880 * kern/misc.c (grub_strcasecmp): New function.
29881 (grub_strcasecmp): Use grub_size_t instead of int for length.
29882 Fix return value.
29883 * include/grub/misc.h: Update function prototypes.
29884
580b2a0f 298852009-01-26 Robert Millan <rmh@aybabtu.com>
29886
29887 * configure.ac: Fix cross-compilation check.
ef257b36 29888
d31c24f1 298892009-01-22 Christian Franke <franke@computer.org>
29890
29891 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
29892 (precision) digit string. Allow `.format2' without `format1' (width).
29893 Limit input chars for `%s' output to `format2' if specified. This is
29894 compatible with standard printf ().
29895
3138b44c 298962009-01-22 Christian Franke <franke@computer.org>
29897
29898 * disk/ata.c (grub_ata_wait_status): Replace by ...
29899 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
29900 other status bits may be invalid while BSY is asserted.
29901 (grub_ata_check_ready): New function.
29902 (grub_ata_cmd): Removed.
29903 (grub_ata_wait_drq): New function.
29904 (grub_ata_strncpy): Remove inline.
29905 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
29906 and error check now done by grub_ata_wait_drq ().
29907 (grub_ata_pio_write): Likewise.
29908 (grub_atapi_identify): Set DEV before check for !BSY. Use
29909 grub_ata_wait_drq () to wait for data.
29910 (grub_ata_device_initialize): Add status register check to
29911 detect missing SATA slave devices. Add debug messages.
29912 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
29913 (grub_atapi_packet): Set DEV before check for !BSY. Replace
29914 transfer loop by grub_ata_pio_write ().
29915 (grub_ata_identify): Set DEV before check for !BSY. Use
29916 grub_ata_wait_drq () to wait for data.
ef257b36 29917 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 29918 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
29919 read/write in one loop. Fix invalid command on write. Fix incomplete
29920 command on (size % batch) == 0. Add missing error check after write of
29921 last block. Add debug messages.
29922 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
29923
59a64ef6 299242009-01-19 Christian Franke <franke@computer.org>
29925
29926 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
29927 (GRUB_ATAPI_IREASON_*): Likewise.
29928 (grub_ata_pio_write): Fix timeout error return.
29929 (grub_atapi_identify): Add grub_ata_wait () after cmd.
29930 (grub_atapi_wait_drq): New function.
29931 (grub_atapi_packet): New parameter `size'.
29932 Use grub_atapi_wait_drq () and direct write instead of
29933 grub_ata_pio_write ().
29934 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
29935 reads the number of bytes requested by the device for each DRQ
29936 assertion.
29937 (grub_atapi_write): Remove old implementation, return not
29938 implemented instead.
29939
1cfe20b3 299402009-01-19 Christian Franke <franke@computer.org>
29941
29942 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
29943 of 512 to calculate data size.
29944 (grub_scsi_read12): Likewise.
29945 (grub_scsi_write10): Likewise.
29946 (grub_scsi_write12): Likewise.
29947 (grub_scsi_read): Adjust size according to blocksize.
29948 Add checks for invalid blocksize and unaligned transfer.
29949
bee5fe5d 299502009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
29951
29952 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
29953
ef257b36 29954 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 29955 width glyphs.
29956
3e643f8c 299572009-01-19 Robert Millan <rmh@aybabtu.com>
29958
29959 * config.guess: Update to latest version from config git.
29960 * config.sub: Likewise.
29961
4fa80998 299622009-01-17 Felix Zielcke <fzielcke@z-51.de>
29963
29964 * Makefile.in: Change font compilation to use new grub-mkfont instead
29965 of java version.
29966
29967 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
29968 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29969 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29970 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29971 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29972 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29973 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29974 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29975 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29976
7086085b 299772009-01-16 Christian Franke <franke@computer.org>
29978
29979 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
29980 (enum grub_ata_timeout_milliseconds): New enum.
29981 (grub_ata_wait_status): Add parameter milliseconds.
29982 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
29983 recovery from timed-out commands.
29984 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
29985 return grub_errno instead of REG_ERROR.
29986 (grub_ata_pio_write): Add parameter milliseconds.
29987 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
29988 Pass milliseconds to grub_ata_wait_status () and
29989 grub_ata_pio_read ().
29990 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
29991 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
29992 grub_ata_wait_status (). Fix IDENTIFY timeout check.
29993 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
29994 It is not suitable for device detection, because DEV bit is ignored,
29995 the command may run too long, and not all devices set the signature
29996 properly.
29997 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
29998 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
29999 Fix device selection, DEV bit must be set first to address the registers
30000 of the correct device.
30001 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
30002 grub_ata_pio_read/write ().
30003 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
30004 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
30005
4a412913 300062009-01-13 Carles Pina i Estany <carles@pina.cat>
30007
30008 * util/grub-editenv.c (main): Use fseeko(), not fseek().
30009
7795c55e 300102009-01-13 Bean <bean123ch@gmail.com>
d913988c 30011
30012 * util/grub-mkfont.c (write_font): forget to remove some debug code.
30013
7795c55e 300142009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 30015
30016 * Makefile.in: (enable_grub_mkfont): New variable.
30017 (freetype_cflags): Likewise.
30018 (freetype_libs): Likewise.
30019
30020 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
30021 (grub_mkfont_SOURCES): New variable.
30022 (grub_mkfont_CFLAGS): Likewise.
30023 (grub_mkfont_LDFLAGS): Likewise.
30024
30025 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
30026 library if `--enable-grub-mkfont' is requested.
30027 (enable_grub_mkfont): New variable.
30028 (freetype_cflags): Likewise.
30029 (freetype_libs): Likewise.
30030
30031 * util/grub-mkfont.c: New file.
30032
093af1fe 300332009-01-12 Christian Franke <franke@computer.org>
30034
30035 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
30036 mode check. Fix setting of compat_use[].
30037
f36cc108 300382009-01-10 Robert Millan <rmh@aybabtu.com>
30039
30040 Update a few copyright years which we forgot to do in 2008 (only for
30041 files whose changes made in 2008 were copyright-significant)
30042
30043 * Makefile.in: Add 2008 to Copyright line.
30044 * disk/ieee1275/ofdisk.c: Likewise.
30045 * disk/efi/efidisk.c: Likewise.
30046 * kern/dl.c: Likewise.
30047 * kern/sparc64/ieee1275/init.c: Likewise.
30048 * kern/mm.c: Likewise.
30049 * kern/efi/mm.c: Likewise.
30050 * boot/i386/pc/boot.S: Likewise.
30051 * genfslist.sh: Likewise.
30052 * fs/iso9660.c: Likewise.
30053 * fs/hfs.c: Likewise.
30054 * fs/jfs.c: Likewise.
30055 * fs/minix.c: Likewise.
30056 * fs/ufs.c: Likewise.
30057 * gensymlist.sh.in: Likewise.
30058 * genkernsyms.sh.in: Likewise.
30059 * include/grub/misc.h: Likewise.
30060 * include/grub/types.h: Likewise.
30061 * include/grub/symbol.h: Likewise.
30062 * include/grub/elf.h: Likewise.
30063 * include/grub/kernel.h: Likewise.
30064 * include/grub/disk.h: Likewise.
30065 * include/grub/dl.h: Likewise.
30066 * include/grub/i386/linux.h: Likewise.
30067 * include/grub/i386/pc/biosdisk.h: Likewise.
30068 * include/grub/efi/api.h: Likewise.
30069 * include/grub/efi/pe32.h: Likewise.
30070 * include/grub/util/misc.h: Likewise.
30071 * normal/execute.c: Likewise.
30072 * normal/arg.c: Likewise.
30073 * normal/completion.c: Likewise.
30074 * normal/lexer.c: Likewise.
30075 * normal/parser.y: Likewise.
30076 * normal/misc.c: Likewise.
30077 * commands/i386/pc/vbeinfo.c: Likewise.
30078 * commands/hexdump.c: Likewise.
30079 * commands/terminal.c: Likewise.
30080 * commands/ls.c: Likewise.
30081 * commands/help.c: Likewise.
30082 * partmap/pc.c: Likewise.
30083 * loader/efi/chainloader.c: Likewise.
30084 * loader/multiboot_loader.c: Likewise.
30085 * loader/i386/pc/multiboot2.c: Likewise.
30086 * term/efi/console.c: Likewise.
30087 * term/i386/pc/serial.c: Likewise.
30088 * util/lvm.c: Likewise.
30089 * util/console.c: Likewise.
30090 * util/i386/efi/grub-mkimage.c: Likewise.
30091 * util/raid.c: Likewise.
30092
7f02114b 300932009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
30094
30095 * commands/videotest.c: Removed include to grub/machine/memory.h.
30096
30097 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
30098 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
30099 (video_mod_SOURCES): Removed.
30100 (video_mod_CFLAGS): Likewise.
30101 (video_mod_LDFLAGS): Likewise.
30102 (gfxterm_mod_SOURCES): Likewise.
30103 (gfxterm_mod_CFLAGS): Likewise.
30104 (gfxterm_mod_LDFLAGS): Likewise.
30105 (videotest_mod_SOURCES): Likewise.
30106 (videotest_mod_CFLAGS): Likewise.
30107 (videotest_mod_LDFLAGS): Likewise.
30108 (bitmap_mod_SOURCES): Likewise.
30109 (bitmap_mod_CFLAGS): Likewise.
30110 (bitmap_mod_LDFLAGS): Likewise.
30111 (tga_mod_SOURCES): Likewise.
30112 (tga_mod_CFLAGS): Likewise.
30113 (tga_mod_LDFLAGS): Likewise.
30114 (jpeg_mod_SOURCES): Likewise.
30115 (jpeg_mod_CFLAGS): Likewise.
30116 (jpeg_mod_LDFLAGS): Likewise.
30117 (png_mod_SOURCES): Likewise.
30118 (png_mod_CFLAGS): Likewise.
30119 (png_mod_LDFLAGS): Likewise.
30120
30121 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
30122 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
30123 (video_mod_SOURCES): Added.
30124 (video_mod_CFLAGS): Likewise.
30125 (video_mod_LDFLAGS): Likewise.
30126 (videotest_mod_SOURCES): Likewise.
30127 (videotest_mod_CFLAGS): Likewise.
30128 (videotest_mod_LDFLAGS): Likewise.
30129 (bitmap_mod_SOURCES): Likewise.
30130 (bitmap_mod_CFLAGS): Likewise.
30131 (bitmap_mod_LDFLAGS): Likewise.
30132 (tga_mod_SOURCES): Likewise.
30133 (tga_mod_CFLAGS): Likewise.
30134 (tga_mod_LDFLAGS): Likewise.
30135 (jpeg_mod_SOURCES): Likewise.
30136 (jpeg_mod_CFLAGS): Likewise.
30137 (jpeg_mod_LDFLAGS): Likewise.
30138 (png_mod_SOURCES): Likewise.
30139 (png_mod_CFLAGS): Likewise.
30140 (png_mod_LDFLAGS): Likewise.
30141 (gfxterm_mod_SOURCES): Likewise.
30142 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 30143 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 30144
30145 * term/gfxterm.c: Removed include to grub/machine/memory.h,
30146 grub/machine/console.h.
30147
644fff97 301482009-01-04 Jerone Young <jerone@gmail.com>
30149
30150 Make on screen instructions clearer
30151
30152 Based on patch created by Jidanni <jidanni@jidanni.org>
30153
30154 * normal/menu.c: print clearer instructions on the screen
30155
1e901a75 301562009-01-02 Colin D Bennett <colin@gibibit.com>
30157
30158 New font engine.
34c44600 30159
1e901a75 30160 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
30161 build system and fixed gfxterm.c to work with different sized fonts.
30162
30163 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 30164
1e901a75 30165 * configure: Re-generated.
34c44600 30166
1e901a75 30167 * DISTLIST: Removed font/manager.c.
30168 Added font/font.c.
30169 Added font/font_cmd.c.
34c44600 30170
1e901a75 30171 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
30172 compilation.
34c44600 30173
1e901a75 30174 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 30175
30176 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 30177
30178 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 30179
1e901a75 30180 * normal/menu.c: Likewise.
34c44600 30181
1e901a75 30182 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
30183 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 30184
1e901a75 30185 * include/grub/font.h: Replaced with new file.
34c44600 30186
1e901a75 30187 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
30188 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
30189 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
30190 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
30191 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 30192 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 30193 fg_red, fg_green, fg_blue, fg_alpha.
30194 (grub_video_adapter): Removed blit_glyph.
34c44600 30195 (grub_video_blit_glyph): Removed.
30196
1e901a75 30197 * font/manager.c: Removed file.
34c44600 30198
30199 * font/font.c: New file.
30200
1e901a75 30201 * font/font_cmd.c: Likewise.
34c44600 30202
1e901a75 30203 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 30204
1e901a75 30205 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
30206 (grub_video_vbe_map_rgba): Likewise.
30207 (grub_video_vbe_unmap_color_int): Likewise.
30208 (grub_video_vbe_blit_glyph): Removed.
30209 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 30210
1e901a75 30211 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
30212 (get_pixel): Likewise.
34c44600 30213 (set_pixel): Likewise.
30214
1e901a75 30215 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 30216
1e901a75 30217 * term/gfxterm.c: Adapted to new font engine.
34c44600 30218
1e901a75 30219 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 30220
1e901a75 30221 * term/i386/pc/vga.c: Likewise.
34c44600 30222
1e901a75 30223 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 30224
1e901a75 30225 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 30226
1e901a75 30227 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 30228
1e901a75 30229 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 30230
1e901a75 30231 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 30232
1e901a75 30233 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 30234
1e901a75 30235 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 30236
1e901a75 30237 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 30238
1e901a75 30239 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
30240
30241 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 30242
1e901a75 30243 * util/grub-mkconfig_lib.in: Changed font extension.
30244
278922e8 302452008-12-28 Felix Zielcke <fzielcke@z-51.de>
30246
30247 * util/getroot.c (grub_util_get_grub_dev): Add support for
30248 /dev/md/dNNpNN style partitionable mdraid devices.
30249
3ced05cf 302502008-12-12 Alex Smith <alex@alex-smith.me.uk>
30251
30252 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
30253 at a time limit of the PXE TFTP API correctly.
30254 (grub_pxefs_close): Likewise.
30255
7fd0ee30 302562008-11-29 Robert Millan <rmh@aybabtu.com>
30257
34c44600 30258 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 30259 grub_ata_device_initialize() calls.
30260
34c44600 302612008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 30262
30263 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
30264 iteration failed.
30265 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
30266
89313780 302672008-11-28 Robert Millan <rmh@aybabtu.com>
30268
30269 Fix build on powerpc-ieee1275. Based on patch created by
30270 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
30271 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30272 `kern/ieee1275/mmap.c'.
30273 * include/grub/powerpc/ieee1275/memory.h: New file.
30274
15257703 30275 Provide grub-install on coreboot.
30276 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
30277 (grub_install_SOURCES): New variable.
30278 * util/i386/pc/grub-install.in: Add a few condition checks to make it
30279 usable on coreboot.
30280
9fc5388a 302812008-11-25 Felix Zielcke <fzielcke@z-51.de>
30282
30283 * util/grub-fstest.c (grub_term_get_current_input): Change return type
30284 to `grub_term_input_t'.
30285 (grub_term_get_current_output): Change return type to
30286 `grub_term_output_t'.
30287
bc3a2f31 302882008-11-22 Robert Millan <rmh@aybabtu.com>
30289
34c44600 30290 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 30291 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
30292 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
30293 grub_vga_text_cls().
30294
80fc88f2 30295 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 30296 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 30297
cbf36fd3 30298 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
30299 to 0x200000 (avoids trouble with some OFW implementations, and matches
30300 with the one in Yaboot).
30301 Reported by Manoel Abranches
30302
73e8e268 303032008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 30304
30305 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
30306 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
30307
73e8e268 30308 * util/grub-mkconfig_lib.in (grub_warn): New function.
30309 (convert_system_path_to_grub_path): Use grub_warn() when issuing
30310 warnings, to obtain consistent formatting.
30311 * util/grub.d/00_header.in: Likewise.
30312 * util/update-grub_lib.in: Likewise.
30313
e94045a1 30314 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 30315 Move comment text to `#error' stanza.
e94045a1 30316
79d29fd7 30317 Harmonize ieee1275's grub_available_iterate() with the generic
30318 grub_machine_mmap_iterate() interface (fixes a recently-introduced
30319 build problem on i386-ieee1275):
30320 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
30321 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
30322 parameter `type'. Update all users of this function.
30323 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
30324 `kern/ieee1275/mmap.c'.
30325 * kern/ieee1275/init.c
30326 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
30327 with ...
30328 (grub_machine_mmap_iterate): ... this.
30329 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
30330 return type to `grub_err_t'. Update all implementations of this
30331 function prototype.
30332 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
30333 Likewise.
30334
60d6b16e 30335 Add `lsmmap' command (lists firmware-provided memory map):
30336 * commands/lsmmap.c: New file.
30337 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
30338 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
30339 variables.
30340 * conf/powerpc-ieee1275.rmk: Likewise.
30341 * conf/i386-coreboot.rmk: Likewise.
30342 * conf/i386-ieee1275.rmk: Likewise.
30343
ebaaf49b 303442008-11-19 Robert Millan <rmh@aybabtu.com>
30345
30346 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 30347 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
30348 constraints to initrd allocation (based on code from
30349 loader/i386/pc/linux.c). Without them, initrd was allocated too high
30350 for Linux to find it.
ebaaf49b 30351
dfab719f 303522008-11-14 Robert Millan <rmh@aybabtu.com>
30353
30354 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
30355 order to cope with duplicate slashes.
30356
10fc3eb9 303572008-11-14 Robert Millan <rmh@aybabtu.com>
30358
30359 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
30360 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
30361 don't want to mess with lower memory, because it is used in the Linux
30362 loader.
30363
30364 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 30365 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 30366 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
30367 is in our heap (probably as a result of it being corrupted during
2f2a3442 30368 decompression). Add #error instance with comment to explain why this
30369 loader isn't currently usable on PC/BIOS.
10fc3eb9 30370
e2e07847 303712008-11-14 Robert Millan <rmh@aybabtu.com>
30372
30373 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 30374 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 30375
fe8e8d69 303762008-11-12 Robert Millan <rmh@aybabtu.com>
30377
30378 Make loader/i386/linux.c buildable on i386-pc (although disabled).
30379
30380 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
30381 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
30382 from here ...
30383 * include/grub/i386/pc/memory.h: ... to here.
30384
976b07d0 303852008-11-12 Robert Millan <rmh@aybabtu.com>
30386
30387 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
30388 split).
30389
30390 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
30391 (grub_console_cur_color, grub_console_real_putchar)
30392 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
30393 (grub_console_setcolorstate, grub_console_setcolor)
30394 (grub_console_getcolor): Move from here ...
30395 * include/grub/i386/vga_common.h: ... to here (new file).
30396
30397 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
30398 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
30399 `<grub/i386/io.h>'.
30400 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
30401 `<grub/i386/vga_common.h>'.
30402
76679cd3 304032008-11-12 Robert Millan <rmh@aybabtu.com>
30404
30405 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
30406 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
30407 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
30408 variables.
30409 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
30410 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
30411
30412 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
30413 grub_console_init() with call to grub_vga_text_init().
30414 (grub_machine_fini): Replace call to
30415 grub_console_fini() with call to grub_vga_text_fini() and
30416 grub_at_keyboard_fini().
30417
30418 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
30419 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
30420 (grub_console_setcolorstate, grub_console_setcolor)
30421 (grub_console_getcolor): New function prototypes.
30422
30423 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
30424 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
30425 (grub_vga_text_setcursor): Static-ize.
30426 (grub_vga_text_term): New structure.
30427 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
30428
30429 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
30430 (grub_console_cur_color, grub_console_standard_color)
30431 (grub_console_normal_color, grub_console_highlight_color)
30432 (map_char, grub_console_putchar, grub_console_getcharwidth)
30433 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
30434 (grub_console_getcolor): Move from here ...
30435 * term/i386/vga_common.c: ... to here (same function names).
30436
95b841d3 304372008-11-12 Robert Millan <rmh@aybabtu.com>
30438
30439 Use newly-added Multiboot support in coreboot.
30440
30441 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
30442 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
30443
30444 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
30445 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
30446 (codestart): Store the MBI in `startup_multiboot_info' when we're
30447 being loaded using Multiboot.
30448
30449 * kern/i386/coreboot/init.c (grub_machine_init): Move
30450 grub_at_keyboard_init() call to beginning of function (useful for
30451 debugging). Call grub_machine_mmap_init() before attempting to use
30452 grub_machine_mmap_iterate().
30453 (grub_lower_mem, grub_upper_mem): Move from here ...
30454 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
30455 here (new file).
30456
30457 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
30458 function prototype.
30459
761ca975 304602008-11-12 Robert Millan <rmh@aybabtu.com>
30461
30462 Fix a regression introduced by the at_keyboard.mod split. Because
30463 some terminals are default on some platforms and non-default on
30464 others, the first terminal being registered determines which is
30465 going to be default.
30466
30467 * kern/term.c (grub_term_register_input): If this is the first
30468 terminal being registered, set it as the current one.
30469 (grub_term_register_output): Likewise.
30470
30471 * term/efi/console.c (grub_console_init): Do not call
30472 grub_term_set_current_output() or grub_term_set_current_input().
30473 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
30474 * term/i386/pc/console.c (grub_console_init): Likewise.
30475 (grub_console_fini): Do not call grub_term_set_current_input()
30476 (but leave grub_term_set_current_output() to restore text mode).
30477
6c529df7 304782008-11-10 Robert Millan <rmh@aybabtu.com>
30479
30480 * util/grub.d/00_header.in: Add backward compatibility check for
30481 versions of terminal.mod that don't understand `terminal_input' or
30482 `terminal_output'.
30483
132e4113 304842008-11-09 Robert Millan <rmh@aybabtu.com>
30485
30486 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
30487 `terminal_input' / `terminal_output', not `terminal'.
30488
ac293d50 304892008-11-08 Robert Millan <rmh@aybabtu.com>
30490
30491 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 30492 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 30493
0025933a 304942008-11-08 Robert Millan <rmh@aybabtu.com>
30495
30496 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 30497 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 30498 members. Update all users.
30499 * util/console.c (grub_ncurses_term): Split in ...
30500 (grub_ncurses_term_input): ... this, and ...
30501 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 30502 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 30503
37c86336 305042008-11-08 Robert Millan <rmh@aybabtu.com>
30505
30506 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
30507 (PKGDATA): Add $(pkgdata_SRCDIR).
30508 (pkglib_BUILDDIR): New variable.
30509 (pkgdata_SRCDIR): New variable.
30510 (build_env.mk): New target.
30511 (include_DATA): New variable.
30512 (install-local): Install $(include_DATA) files in $(includedir).
30513
b6c15a2d 305142008-11-07 Pavel Roskin <proski@gnu.org>
30515
d99d46f1 30516 * gendistlist.sh: Use C locale for sorting to ensure consistent
30517 output on all systems.
30518
b6c15a2d 30519 * util/grub.d/00_header.in: Remove incorrect space before
30520 "serial".
30521
c32ee8c9 305222008-11-07 Robert Millan <rmh@aybabtu.com>
30523
30524 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
30525 per specification.
30526 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
30527 * loader/multiboot_loader.c (find_multi_boot2_header): New function
30528 (based on find_multi_boot1_header).
30529 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
30530 using find_multi_boot2_header(), and abort if neither Multiboot or
30531 Multiboot headers were found.
30532
651c29b7 305332008-11-07 Robert Millan <rmh@aybabtu.com>
30534
30535 Modularize at_keyboard.mod:
30536
30537 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
30538 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
30539 (at_keyboard_mod_LDFLAGS): New variables.
30540
30541 Actual terminal split:
30542
30543 * include/grub/term.h (struct grub_term): Split in ...
30544 (struct grub_term_input): ... this, and ...
30545 (struct grub_term_output): ... this. Update all users.
30546 (grub_term_set_current): Split in ...
30547 (grub_term_set_current_input): ... this, and ...
30548 (grub_term_set_current_output): ... this.
30549 (grub_term_get_current): Split in ...
30550 (grub_term_get_current_input): ... this, and ...
30551 (grub_term_get_current_output): ... this.
30552 (grub_term_register): Split in ...
30553 (grub_term_register_input): ... this, and ...
30554 (grub_term_register_output): ... this.
30555 (grub_term_unregister): Split in ...
30556 (grub_term_unregister_input): ... this, and ...
30557 (grub_term_unregister_output): ... this.
30558 (grub_term_iterate): Split in ...
30559 (grub_term_iterate_input): ... this, and ...
30560 (grub_term_iterate_output): ... this.
30561
30562 * kern/term.c (grub_term_list): Split in ...
30563 (grub_term_list_input): ... this, and ...
30564 (grub_term_list_output): ... this. Update all users.
30565 (grub_cur_term): Split in ...
30566 (grub_cur_term_input): ... this, and ...
30567 (grub_cur_term_output): ... this. Update all users.
30568 (grub_term_set_current): Split in ...
30569 (grub_term_set_current_input): ... this, and ...
30570 (grub_term_set_current_output): ... this.
30571 (grub_term_get_current): Split in ...
30572 (grub_term_get_current_input): ... this, and ...
30573 (grub_term_get_current_output): ... this.
30574 (grub_term_register): Split in ...
30575 (grub_term_register_input): ... this, and ...
30576 (grub_term_register_output): ... this.
30577 (grub_term_unregister): Split in ...
30578 (grub_term_unregister_input): ... this, and ...
30579 (grub_term_unregister_output): ... this.
30580 (grub_term_iterate): Split in ...
30581 (grub_term_iterate_input): ... this, and ...
30582 (grub_term_iterate_output): ... this.
30583
30584 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
30585 a check for input and one for output (and only attempt to get keys
30586 from user when input works).
30587
30588 * util/grub-probe.c (grub_term_get_current): Split in ...
30589 (grub_term_get_current_input): ... this, and ...
30590 (grub_term_get_current_output): ... this.
30591 * util/grub-fstest.c: Likewise.
30592 * util/i386/pc/grub-setup.c: Likewise.
30593 * util/grub-editenv.c: Likewise.
30594
30595 Portability adjustments:
30596
30597 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
30598 `term/i386/pc/at_keyboard.c'.
30599 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
30600 grub_keyboard_controller_init() (now handled by terminal .init).
30601 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
30602 grub_at_keyboard_init().
30603 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
30604 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
30605 at_keyboard.mod via input terminal interface).
30606 * include/grub/i386/coreboot/console.h: Convert into a stub for
30607 `<grub/i386/pc/console.h>'.
30608
30609 Migrate full terminals to new API:
30610
30611 * term/efi/console.c (grub_console_term): Split into ...
30612 (grub_console_term_input): ... this, and ...
30613 (grub_console_term_output): ... this. Update all users.
30614 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
30615 (grub_ofconsole_init): Split into ...
30616 (grub_ofconsole_init_input): ... this, and ...
30617 (grub_ofconsole_init_output): ... this.
30618 (grub_ofconsole_term): Split into ...
30619 (grub_ofconsole_term_input): ... this, and ...
30620 (grub_ofconsole_term_output): ... this. Update all users.
30621 * term/i386/pc/serial.c (grub_serial_term): Split into ...
30622 (grub_serial_term_input): ... this, and ...
30623 (grub_serial_term_output): ... this. Update all users.
30624 * term/i386/pc/console.c (grub_console_term): Split into ...
30625 (grub_console_term_input): ... this, and ...
30626 (grub_console_term_output): ... this. Update all users.
30627 (grub_console_term_input): Only enable it on PC/BIOS platform.
30628 (grub_console_init): Remove grub_keyboard_controller_init() call.
30629
30630 Migrate input terminals to new API:
30631
30632 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
30633 `i386' and `i386/pc' to enable build on x86_64 (this driver is
30634 i386-specific anyway).
30635 (grub_console_checkkey): Rename to ...
30636 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
30637 users.
30638 (grub_keyboard_controller_orig): New variable.
30639 (grub_console_getkey): Rename to ...
30640 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
30641 users.
30642 (grub_keyboard_controller_init): Static-ize. Save original
30643 controller value so that it can be restored ...
30644 (grub_keyboard_controller_fini): ... here (new function).
30645 (grub_at_keyboard_term): New structure.
30646 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
30647 functions.
30648
30649 Migrate output terminals to new API:
30650
30651 * term/i386/pc/vga.c (grub_vga_term): Change type to
30652 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
30653 members. Update all users.
30654 * term/gfxterm.c (grub_video_term): Change type to
30655 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
30656 members. Update all users.
30657 * include/grub/i386/pc/console.h (grub_console_checkkey)
30658 (grub_console_getkey): Do not export (no longer needed by gfxterm,
30659 etc).
30660
30661 Migrate `terminal' command and userland tools to new API:
30662
30663 * commands/terminal.c (grub_cmd_terminal): Split into ...
30664 (grub_cmd_terminal_input): ... this, and ...
30665 (grub_cmd_terminal_output): ... this.
30666 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
30667 `terminal_input' and `terminal_output'.
30668 * util/grub.d/00_header.in: Adjust `terminal' calls to new
30669 `terminal_input' / `terminal_output' API.
30670 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
30671 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
30672 provided ${GRUB_TERMINAL}, convert it).
30673
96e5d876 306742008-11-04 Robert Millan <rmh@aybabtu.com>
30675
30676 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
30677 for FreeBSD.
30678 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
30679
556f3775 306802008-11-03 Bean <bean123ch@gmail.com>
30681
30682 * kern/elf.c (grub_elf32_load): Revert to previous code.
30683 (grub_elf64_load): Likewise.
30684
30685 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
30686
926b9823 306872008-11-01 Robert Millan <rmh@aybabtu.com>
30688
30689 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
30690 (TARGET_CPPFLAGS): Likewise.
30691 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
30692
1432e958 306932008-11-01 Carles Pina i Estany <carles@pina.cat>
30694
30695 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
30696
dba3f844 306972008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 30698
30699 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
30700 addition of objects until the code is not going to be able to fail.
30701
dba3f844 307022008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 30703
30704 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
30705 (add a missing NULL check, and correct them by moving the pointer
30706 operations after the actual check).
30707
7ab28c21 307082008-10-29 Robert Millan <rmh@aybabtu.com>
30709
30710 * util/i386/pc/grub-install.in: Handle empty string as output from
30711 make_system_path_relative_to_its_root().
30712
1b7748eb 307132008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
30714
30715 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
30716 circular metadata worst case scenario. If the metadata is circular
30717 then copy the wrap in place.
30718 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
30719 project lib/format_text/layout.h
30720 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
30721
c9618ab2 307222008-10-03 Felix Zielcke <fzielcke@z-51.de>
30723
7a36edca 30724 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 30725
bf981c62 307262008-10-03 Felix Zielcke <fzielcke@z-51.de>
30727
30728 * util/update-grub_lib.in: Mention filename in warning message.
30729
6d994591 307302008-09-29 Felix Zielcke <fzielcke@z-51.de>
30731
30732 * NEWS: Update for rename of update-grub to grub-mkconfig.
30733
18ade780 307342008-09-29 Felix Zielcke <fzielcke@z-51.de>
30735
30736 * util/update-grub_lib.in: Copy to ...
30737 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 30738 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 30739 * util/update-grub.in: Rename to ...
30740 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
30741 option. Add `--output' option to allow users to specify the generated
30742 configuration file. Default to stdout.
30743 (update_grub_dir): Rename to ...
30744 (grub_mkconfig_dir): ... this.
30745 (grub_cfg): Default to an empty string.
30746 * conf/common.rmk (update-grub): Rename to ...
30747 (grub-mkconfig): ... this.
30748 (update-grub_lib): Copy to ...
30749 (grub-mkconfig_lib): ... this.
30750 (update-grub_SCRIPTS): Copy to ...
30751 (grub-mkconfig_SCRIPTS): ... this. Update all users.
30752 (update-grub_DATA): Rename to ...
30753 (grub-mkconfig_DATA): ... this.
30754
556ce6ac 307552008-09-28 Robert Millan <rmh@aybabtu.com>
30756
30757 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
30758 to `modified'. Add the real `created' field.
30759 (grub_iso9660_uuid): Use `modified' rather than `created' for
30760 constructing the UUID.
30761
307622008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 30763
30764 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
30765 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
30766
92274e85 307672008-09-28 Bean <bean123ch@gmail.com>
30768
30769 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
30770 Thanks to Christian Franke for finding this bug.
30771
add6f17a 307722008-09-25 Robert Millan <rmh@aybabtu.com>
30773
30774 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
30775 instances of grub_util_get_disk_name() (see previous commit).
30776
d2a367b8 307772008-09-25 Robert Millan <rmh@aybabtu.com>
30778
30779 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
30780 `util/i386/get_disk_name.c'.
30781 * conf/i386-efi.rmk: Likewise.
30782 * conf/x86_64-efi.rmk: Likewise.
30783 * conf/i386-coreboot.rmk: Likewise.
30784 * conf/i386-ieee1275.rmk: Likewise.
30785 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
30786 `util/ieee1275/get_disk_name.c'.
30787 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
30788 * util/ieee1275/get_disk_name.c: Remove file.
30789 * util/i386/get_disk_name.c: Remove file.
30790 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
30791 "hd%d" for device.map entries, rather than using
30792 grub_util_get_disk_name().
30793
81a06771 307942008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 30795
30796 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
30797 warning.
30798 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
30799
5a004279 308002008-09-24 Carles Pina i Estany <carles@pina.cat>
30801
30802 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
30803 Changed to 0x5100.
30804 (GRUB_TERM_PPAGE): Changed to 0x4900.
30805
397093d3 308062008-09-24 Robert Millan <rmh@aybabtu.com>
30807
30808 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
30809 macros (they were i386-pc specific).
30810 * include/grub/sparc64/ieee1275/console.h: Likewise.
30811 * include/grub/efi/console.h: Likewise.
30812
a91b6c7c 308132008-09-22 Bean <bean123ch@gmail.com>
30814
30815 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
30816 resident and in attribute list.
30817
30818 * include/grub/ntfs.h (BMP_LEN): Removed.
30819
c40fd116 308202008-09-22 Bean <bean123ch@gmail.com>
30821
81a06771 30822 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 30823 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
30824
30825 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
30826 error occurs, as grub_disk_open will call grub_disk_close, which will
30827 call p->close (scsi).
30828
81a06771 308292008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 30830
30831 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
30832 (AC_PREREQ): Bumped to 2.59.
30833 (AC_TRY_COMPILE): Replace obsolete macro with ...
30834 (AC_COMPILE_IFELSE): ... this.
30835 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
30836 (AC_LINK_IFELSE): ... this.
30837
5dc43410 308382008-09-21 Felix Zielcke <fzielcke@z-51.de>
30839
30840 * autogen.sh: Add a call to `gendistlist.sh'.
30841
9035dce4 308422008-09-19 Christian Franke <franke@computer.org>
30843
30844 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
30845 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
30846 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
30847 Export __enable_execute_stack() to modules.
30848 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
30849 New function.
30850
7fd75377 308512008-09-09 Felix Zielcke <fzielcke@z-51.de>
30852
040030b3 30853 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
30854 Sort the list.
30855
308562008-09-09 Felix Zielcke <fzielcke@z-51.de>
30857
30858 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 30859 #include <grub/util/hostdisk.h>.
30860
89d5ffcf 308612008-09-08 Robert Millan <rmh@aybabtu.com>
30862
30863 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
30864 segments when their filesz is zero (grub_file_read() interprets
81a06771 30865 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 30866 Use `lowest_segment' rather than 0 for calculating the current
30867 segment load address.
30868
40da438f 308692008-09-08 Robert Millan <rmh@aybabtu.com>
30870
30871 * util/hostdisk.c (open_device): Replace a grub_util_info() call
30872 with grub_dprintf("hostdisk", ...), as it was so verbose that it
30873 clobbered useful information.
30874
ddbf5556 308752008-09-08 Robert Millan <rmh@aybabtu.com>
30876
30877 * include/grub/util/biosdisk.h: Move to ...
30878 * include/grub/util/hostdisk.h: ... here. Update all users.
30879 * util/biosdisk.c: Move to ...
30880 * util/hostdisk.c: ... here. Update all users.
30881
783d0f48 308822008-09-07 Robert Millan <rmh@aybabtu.com>
30883
30884 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
30885 variables.
30886 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
30887 and length can be stored directly in the `mbi->mmap_addr' and
30888 `mbi->mmap_length' struct fields.
30889
548e2ea5 308902008-09-07 Robert Millan <rmh@aybabtu.com>
30891
30892 * conf/i386.rmk: New file. Provides declaration for building
30893 `cpuid.mod'.
30894 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
30895 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
30896 variables.
30897 Include `conf/i386.mk'.
30898 * conf/i386-efi.rmk: Likewise.
30899 * conf/x86_64-efi.rmk: Likewise.
30900 * conf/i386-coreboot.rmk: Likewise.
30901 * conf/i386-ieee1275.rmk: Likewise.
30902
0ea85a37 309032008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
30904
30905 Based on patch created by Colin D Bennett <colin@gibibit.com>.
30906 Adds optimization support for BGR based modes.
30907
30908 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
30909 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30910 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30911 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30912 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30913 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30914 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30915 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30916 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30917 (grub_video_i386_vbeblit_index_index): Likewise.
30918 (grub_video_i386_vbeblit_replace_directN): Added.
30919 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30920 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30921 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30922 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30923 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30924 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 30925 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 30926 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30927 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30928 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30929 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30930 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30931 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
30932
30933 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
30934 (grub_video_i386_vbefill_R8G8B8): Likewise.
30935 (grub_video_i386_vbefill_index): Likewise.
30936 (grub_video_i386_vbefill_direct32): Added.
30937 (grub_video_i386_vbefill_direct24): Likewise.
30938 (grub_video_i386_vbefill_direct16): Likewise.
30939 (grub_video_i386_vbefill_direct8): Likewise.
30940
81a06771 30941 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 30942 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
30943 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
30944 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
30945 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
30946 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 30947
0ea85a37 30948 * video/video.c (grub_video_get_blit_format): Updated to use new
30949 blit formats. Added handling for 16 bit color modes.
81a06771 30950
30951 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 30952 fillers.
30953 (common_blitter): Updated to use new blitters.
30954
30955 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
30956 Removed.
30957 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30958 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30959 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30960 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30961 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30962 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30963 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30964 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30965 (grub_video_i386_vbeblit_index_index): Likewise.
30966 (grub_video_i386_vbeblit_replace_directN): Added.
30967 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30968 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30969 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30970 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30971 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30972 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
30973 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
30974 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30975 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30976 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30977 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30978 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30979 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 30980
0ea85a37 30981 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
30982 (grub_video_i386_vbefill_R8G8B8): Likewise.
30983 (grub_video_i386_vbefill_index): Likewise.
30984 (grub_video_i386_vbefill_direct32): Added.
30985 (grub_video_i386_vbefill_direct24): Likewise.
30986 (grub_video_i386_vbefill_direct16): Likewise.
30987 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 30988
0ea85a37 30989 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
30990 types.
81a06771 30991
0ea85a37 30992 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
30993 types.
81a06771 30994
0ea85a37 30995 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
30996 blitter types.
81a06771 30997
0ea85a37 30998 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
30999 types.
31000
e8a83df6 310012008-09-06 Felix Zielcke <fzielcke@z-51.de>
31002
31003 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
31004 RAID level 1.
31005
6bcd8ee5 310062008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 31007
6bcd8ee5 31008 * fs/iso9660.c (grub_iso9660_date): New structure.
31009 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
31010 (grub_iso9660_uuid): New function.
c375ae58 31011
59261157 310122008-09-05 Bean <bean123ch@gmail.com>
31013
31014 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
31015
31016 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
31017 insensitive bit for names in Win32 and Win32 & DOS namespace.
31018
31019 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
31020
31021 * include/grub/types.h (LONG_MAX): Likewise.
31022
58b6645a 310232008-09-04 Felix Zielcke <fzielcke@z-51.de>
31024
4ee55921 31025 * util/getroot.c: Include <config.h>.
31026 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
31027 add support for /dev/md/N devices and handle LVM double dash escaping.
31028
310292008-09-04 Felix Zielcke <fzielcke@z-51.de>
31030
31031 * config.guess: Update to latest version from config git.
31032 * config.sub: Likewise.
58b6645a 31033
9124f65d 310342008-09-03 Robert Millan <rmh@aybabtu.com>
31035
31036 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
31037 `disk->total_sectors'.
31038
81a06771 310392008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 31040
31041 * include/grub/normal.h: Fixed incorrect comment for
31042 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
31043
81a06771 310442008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 31045
31046 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
31047 values with defines.
31048
31049 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
31050 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
31051 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
31052 (GRUB_VBE_MODEATTR_COLOR): Likewise.
31053 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
31054 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
31055 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
31056 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
31057 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
31058 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
31059 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
31060 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
31061 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
31062 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
31063 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
31064 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
31065 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
31066 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
31067 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
31068
93d5cbf8 310692008-08-31 Robert Millan <rmh@aybabtu.com>
31070
31071 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
31072 declaration.
31073 (grub_multiboot): Fix a few warnings.
31074
21751d50 310752008-08-31 Robert Millan <rmh@aybabtu.com>
31076
31077 * loader/i386/pc/multiboot.c: Update comment not to say that
31078 boot_device support is unimplemented.
31079
e27a75c5 310802008-08-31 Robert Millan <rmh@aybabtu.com>
31081
31082 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
31083 or memory map support are unimplemented.
31084
81a06771 310852008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 31086
31087 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
31088
81a06771 310892008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 31090
31091 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
31092 total video memory in 'vbeinfo' output; show color format details for
31093 each video mode.
31094
7c5d8d95 310952008-08-30 Pavel Roskin <proski@gnu.org>
31096
31097 * util/genmoddep.c: Remove for real this time.
31098 * DISTLIST: Remove util/genmoddep.c.
31099
4cebd25a 311002008-08-30 Robert Millan <rmh@aybabtu.com>
31101
31102 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
31103 as required by Multiboot spec (it was already 4-byte aligned, but
31104 only by chance).
31105
b497a269 311062008-08-29 Pavel Roskin <proski@gnu.org>
31107
e3925185 31108 * kern/powerpc/ieee1275/crt0.S: Rename to ...
31109 * kern/powerpc/ieee1275/startup.S: ... this.
31110 * conf/powerpc-ieee1275.rmk: Adjust for the above.
31111 * DISTLIST: Likewise.
31112
b497a269 31113 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
31114 grub/cpu/kernel.h. Add start label for consistency with other
31115 platforms. Add grub_prefix immediately after start. Add jump
31116 to the code after grub_prefix.
31117 * include/grub/powerpc/kernel.h: Provide valid values for
31118 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
31119
6e5a42fe 311202008-08-29 Bean <bean123ch@gmail.com>
31121
31122 * configure.ac: Change host_os to cygwin for mingw.
31123 (asprintf): New check for function.
31124
31125 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
31126 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
31127
31128 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 31129 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 31130 sync, sleep and grub_util_get_disk_size for mingw.
31131
31132 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
31133 to get size in mingw.
31134 (open_device): Use flag O_BINARY if it's defined.
31135 (find_root_device): Add dummy code for mingw.
31136
31137 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
31138 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
31139 (get_scsi_disk_name): Return 0 for mingw.
31140
31141 * util/hostfs.c: #include <grub/util/misc.h>.
31142 (grub_hostfs_open): Use "rb" flag to open file, use
31143 grub_util_get_disk_size to get disk size for mingw.
31144
31145 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
31146 (asprintf): New function if HAVE_ASPRINTF is not set.
31147 (sync): New function for mingw.
31148 (sleep): Likewise.
31149 (grub_util_get_disk_size): Likewise.
31150
ab3f2673 311512008-08-28 Pavel Roskin <proski@gnu.org>
31152
31153 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
31154 kern/time.c.
31155
1c282483 311562008-08-28 Robert Millan <rmh@aybabtu.com>
31157
31158 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
31159
678e849c 311602008-08-28 Robert Millan <rmh@aybabtu.com>
31161
31162 Change find_grub_drive() syntax so it doesn't prevent it from
31163 detecting NULL names as errors.
31164
31165 * util/biosdisk.c (find_grub_drive): Move free slot search code
31166 from here ...
31167 (find_free_slot): ... to here.
31168 (read_device_map): Use find_free_slot() to search for free slots.
31169
965c75ca 311702008-08-27 Marco Gerards <marco@gnu.org>
31171
31172 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
31173 (scsi_mod_SOURCES): New variable.
31174 (scsi_mod_CFLAGS): Likewise
31175 (scsi_mod_LDFLAGS): Likewise.
31176
31177 * disk/scsi.c: New file.
31178
31179 * include/grub/scsi.h: Likewise.
31180
31181 * include/grub/scsicmd.h: Likewise.
31182
31183 * disk/ata.c: Include <grub/scsi.h>.
31184 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
31185 instead.
31186 (grub_ata_iterate): Skip ATAPI devices.
31187 (grub_ata_open): Only handle ATAPI devices.
31188 (struct grub_atapi_read): Removed.
31189 (grub_atapi_readsector): Likewise.
31190 (grub_ata_read): No longer handle ATAPI devices.
31191 (grub_ata_write): Likewise.
31192 (grub_atapi_iterate): New function.
31193 (grub_atapi_read): Likewise.
31194 (grub_atapi_write): Likewise.
31195 (grub_atapi_open): Likewise.
31196 (grub_atapi_close): Likewise.
31197 (grub_atapi_dev): New variable.
31198 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
31199 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
31200
31201 * include/grub/disk.h (enum grub_disk_dev_id): Add
31202 `GRUB_DISK_DEVICE_SCSI_ID'.
31203
c07ae501 312042008-08-26 Robert Millan <rmh@aybabtu.com>
31205
31206 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
31207 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
31208 descriptive.
31209
5ed20adc 312102008-08-23 Bean <bean123ch@gmail.com>
31211
31212 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
31213 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
31214 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
31215 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
31216 dm_nv.mod.
31217 (raid5rec_mod_SOURCES): New macro.
31218 (raid5rec_mod_CFLAGS): Likewise.
31219 (raid5rec_mod_LDFLAGS): Likewise.
31220 (raid6rec_mod_SOURCES): Likewise.
31221 (raid6rec_mod_CFLAGS): Likewise.
31222 (raid6rec_mod_LDFLAGS): Likewise.
31223 (mdraid_mod_SOURCES): Likewise.
31224 (mdraid_mod_CFLAGS): Likewise.
31225 (mdraid_mod_LDFLAGS): Likewise.
31226 (dm_nv_mod_SOURCES): Likewise.
31227 (dm_nv_mod_CFLAGS): Likewise.
31228 (dm_nv_mod_LDFLAGS): Likewise.
31229
31230 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
31231 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
31232 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
31233
31234 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
31235 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
31236
31237 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31238
31239 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31240
31241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31242
31243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31244
31245 * disk/raid5_recover.c: New file.
31246
31247 * disk/raid6_recover.c: Likewise.
31248
31249 * disk/mdraid_linux.c: Likewise.
31250
31251 * disk/dmraid_nvidia.c: Likewise.
31252
31253 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
31254 ULONG_MAX.
31255
31256 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
31257 calculate the size of raid device.
31258 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
31259 different layout of raid5.
31260 (grub_raid_scan_device): Remove code specific to mdraid.
31261 (grub_raid_list): New variable.
31262 (free_array): New function.
31263 (grub_raid_register): Likewise.
31264 (grub_raid_unregister): Likewise.
31265 (grub_raid_rescan): Likewise.
31266 (GRUB_MOD_INIT): Don't iterate device here.
31267 (GRUB_MOD_FINI): Use free_array to release resource.
31268
31269 * include/grub/raid.h: Remove macro and structure specific to mdraid.
31270 (grub_raid5_recover_func_t): New function variable type.
31271 (grub_raid6_recover_func_t): Likewise.
31272 (grub_raid5_recover_func): New variable.
31273 (grub_raid6_recover_func): Likewise.
31274 (grub_raid_register): New function.
31275 (grub_raid_unregister): Likewise.
31276 (grub_raid_rescan): Likewise.
31277 (grub_raid_block_xor): Likewise.
31278
31279 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
31280 (CMD_CRC): New macro.
31281 (part): Removed.
31282 (read_file): Handle device as well as file.
31283 (cmd_crc): New function.
31284 (fstest): Handle multiple disks.
31285 (options): Remove part, raw and long, add root and diskcount.
31286 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 31287 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 31288 add handling for the new options, support multiple disks.
31289
31290 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
31291
29c18915 312922008-08-23 Bean <bean123ch@gmail.com>
31293
31294 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
31295
31296 * genfslist.sh: Ignore kernel.mod.
31297
31298 * genpartmaplist.sh: Likewise.
31299
8415f261 313002008-08-23 Robert Millan <rmh@aybabtu.com>
31301
31302 * util/getroot.c (find_root_device): Skip anything that starts with
31303 a dot, not just directories. This avoids things like /dev/.tmp.md0.
31304
d5a7dc5b 313052008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 31306
d5a7dc5b 31307 * util/update-grub.in (GRUB_GFXMODE): Export variable.
31308 * util/grub.d/00_header.in: Allow the administrator to change default
31309 gfxmode via ${GRUB_GFXMODE}.
31310
380cfbb4 313112008-08-21 Felix Zielcke <fzielcke@z-51.de>
31312
31313 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
31314
c9baafe7 313152008-08-21 Robert Millan <rmh@aybabtu.com>
31316
31317 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
31318 loader.
31319 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
31320 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
31321
e290bef2 313222008-08-20 Carles Pina i Estany <carles@pina.cat>
31323
31324 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
31325 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
31326
f9dbfc96 313272008-08-19 Robert Millan <rmh@aybabtu.com>
31328
31329 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
31330 (struct grub_virtual_screen): Remove `cursor_color'.
31331 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
31332 initialization.
31333 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
31334
dd6bd6ab 313352008-08-18 Robert Millan <rmh@aybabtu.com>
31336
31337 Unify (identical) linux_normal.c files.
31338 * loader/i386/efi/linux_normal.c: Move from here ...
31339 * loader/linux_normal.c: ... to here. Update all users.
31340 * loader/i386/pc/linux_normal.c: Delete. Update all users.
31341 * loader/i386/ieee1275/linux_normal.c: Likewise.
31342
7f42f83e 313432008-08-18 Robert Millan <rmh@aybabtu.com>
31344
31345 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
31346 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
31347 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
31348 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
31349 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
31350 New macros.
31351 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
31352 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
31353 (GRUB_LINUX_CL_END_OFFSET): ... to here.
31354 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
31355 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
31356 (GRUB_EFI_CL_END_OFFSET): Rename to ...
31357 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
31358 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
31359 Initialize `params->video_cursor_x' and `params->video_cursor_y'
31360 portably using grub_getxy().
31361 Replace `-EFI' with `-bzImage' in boot message.
31362
38487ddb 313632008-08-17 Robert Millan <rmh@aybabtu.com>
31364
31365 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
31366
deceb3ec 313672008-08-17 Robert Millan <rmh@aybabtu.com>
31368
31369 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
31370
31371 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
31372 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
31373 (grub_machine_mmap_iterate): New function declaration.
31374 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
31375 structure.
31376 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
31377 macros.
31378
31379 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
31380 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
31381 Move e820 parsing from here ...
31382 * kern/i386/pc/mmap.c: New file.
31383 (grub_machine_mmap_iterate): ... to here.
31384
31385 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
31386 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
31387 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
31388 (grub_available_iterate): Redeclare to return `void', and redeclare
31389 its hook to use grub_uint64_t as addr and size parameters, and rename
31390 to ...
31391 (grub_machine_mmap_iterate): ... this. Update all users.
31392
31393 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
31394 to make it more readable. Rename to ...
31395 (grub_machine_mmap_iterate): ... this.
31396
31397 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
31398 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
31399 (grub_multiboot): Allocate an extra region after the payload, and fill
31400 it with a Multiboot memory map. Adjust a.out loader to calculate size
31401 with the extra space.
31402 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
31403 with the extra space.
31404
f8aa0f43 314052008-08-17 Carles Pina i Estany <carles@pina.cat>
31406
9807deb9 31407 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 31408
605f5bb6 314092008-08-17 Felix Zielcke <fzielcke@z-51.de>
31410
31411 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
31412 mdate-sh to the list `find' searches for.
31413 * DISTLIST: Regenerated.
31414
210db6c6 314152008-08-16 Felix Zielcke <fzielcke@z-51.de>
31416
31417 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
31418 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 31419 genmoddep.awk, gensymlist.sh.in.
31420 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 31421 * DISTLIST: Regenerated.
48cdbfd4 31422 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 31423
1082b929 314242008-08-16 Robert Millan <rmh@aybabtu.com>
31425
31426 * disk/raid.c (grub_raid_init): Handle/report errors set by
31427 grub_device_iterate().
31428 * disk/lvm.c (grub_lvm_init): Likewise.
31429
42ce5170 314302008-08-15 Bean <bean123ch@gmail.com>
31431
31432 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31433 and datehook.mod.
31434 (datetime_mod_SOURCES): New macro.
31435 (datetime_mod_CFLAGS): Likewise.
31436 (datetime_mod_LDFLAGS): Likewise.
31437 (date_mod_SOURCES): Likewise.
31438 (date_mod_CFLAGS): Likewise.
31439 (date_mod_LDFLAGS): Likewise.
31440 (datehook_mod_SOURCES): Likewise.
31441 (datehook_mod_CFLAGS): Likewise.
31442 (datehook_mod_LDFLAGS): Likewise.
31443
31444 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31445 and datehook.mod.
31446 (datetime_mod_SOURCES): New macro.
31447 (datetime_mod_CFLAGS): Likewise.
31448 (datetime_mod_LDFLAGS): Likewise.
31449 (date_mod_SOURCES): Likewise.
31450 (date_mod_CFLAGS): Likewise.
31451 (date_mod_LDFLAGS): Likewise.
31452 (datehook_mod_SOURCES): Likewise.
31453 (datehook_mod_CFLAGS): Likewise.
31454 (datehook_mod_LDFLAGS): Likewise.
31455
31456 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31457 and datehook.mod.
31458 (datetime_mod_SOURCES): New macro.
31459 (datetime_mod_CFLAGS): Likewise.
31460 (datetime_mod_LDFLAGS): Likewise.
31461 (date_mod_SOURCES): Likewise.
31462 (date_mod_CFLAGS): Likewise.
31463 (date_mod_LDFLAGS): Likewise.
31464 (datehook_mod_SOURCES): Likewise.
31465 (datehook_mod_CFLAGS): Likewise.
31466 (datehook_mod_LDFLAGS): Likewise.
31467
31468 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31469 and datehook.mod.
31470 (datetime_mod_SOURCES): New macro.
31471 (datetime_mod_CFLAGS): Likewise.
31472 (datetime_mod_LDFLAGS): Likewise.
31473 (date_mod_SOURCES): Likewise.
31474 (date_mod_CFLAGS): Likewise.
31475 (date_mod_LDFLAGS): Likewise.
31476 (datehook_mod_SOURCES): Likewise.
31477 (datehook_mod_CFLAGS): Likewise.
31478 (datehook_mod_LDFLAGS): Likewise.
31479
31480 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
31481 and datehook.mod.
31482 (datetime_mod_SOURCES): New macro.
31483 (datetime_mod_CFLAGS): Likewise.
31484 (datetime_mod_LDFLAGS): Likewise.
31485 (date_mod_SOURCES): Likewise.
31486 (date_mod_CFLAGS): Likewise.
31487 (date_mod_LDFLAGS): Likewise.
31488 (datehook_mod_SOURCES): Likewise.
31489 (datehook_mod_CFLAGS): Likewise.
31490 (datehook_mod_LDFLAGS): Likewise.
31491
31492 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
31493
31494 * commands/date.c: New file.
31495
31496 * hook/datehook.c: Likewise.
31497
31498 * include/grub/lib/datetime.h: Likewise.
31499
31500 * include/grub/i386/cmos.h: Likewise.
31501
31502 * lib/datetime.c: Likewise.
31503
31504 * lib/i386/datetime.c: Likewise.
31505
31506 * lib/efi/datetime.c: Likewise.
31507
0e9242da 315082008-08-14 Robert Millan <rmh@aybabtu.com>
31509
31510 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
31511 (grub_mkelfimage_SOURCES): New variable.
31512 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
31513
31514 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
31515 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
31516 * conf/powerpc-ieee1275.rmk: Likewise.
31517 * conf/i386-ieee1275.rmk: Likewise.
31518
31519 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
31520 * kern/i386/coreboot/init.c: Likewise.
31521
31522 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
31523 with `<grub/cpu/kernel.h>'.
31524 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
31525 to ...
31526 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
31527 * kern/i386/coreboot/startup.S: Likewise.
31528
31529 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
31530 (GRUB_MOD_GAP): Remove.
31531 * include/grub/powerpc/kernel.h: New file.
31532 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
31533 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
31534 * include/grub/i386/kernel.h: New file.
31535 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
31536 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
31537 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
31538
31539 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
31540 `grub-mkelfimage'.
31541 Use --directory when invoking grub_mkimage.
31542
31543 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
31544 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
31545 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
31546 and GRUB_KERNEL_CPU_PREFIX.
31547
b86408f8 315482008-08-14 Felix Zielcke <fzielcke@z-51.de>
31549
d5e619ca 31550 * include/grub/err.h (grub_err_printf): New function prototype.
31551 * util/misc.c (grub_err_printf): New function.
31552 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
31553 grub_printf.
31554 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 31555
7161f0e0 315562008-08-13 Robert Millan <rmh@aybabtu.com>
31557
31558 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
31559
a1967522 315602008-08-13 Robert Millan <rmh@aybabtu.com>
31561
31562 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
31563 boot entry.
31564
371458b5 315652008-08-12 Robert Millan <rmh@aybabtu.com>
31566
31567 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
31568 of the relocation code from here ...
31569 (grub_multiboot): ... to here.
31570 (forward_relocator, backward_relocator): Move from here ...
31571 * kern/i386/loader.S (grub_multiboot_forward_relocator)
31572 (grub_multiboot_backward_relocator): ... to here.
31573 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
31574 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
31575 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
31576 (grub_multiboot_forward_relocator_end)
31577 (grub_multiboot_backward_relocator)
31578 (grub_multiboot_backward_relocator_end): New variables.
31579
05f9452b 315802008-08-12 Bean <bean123ch@gmail.com>
31581
31582 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
31583
20024ab0 315842008-08-11 Robert Millan <rmh@aybabtu.com>
31585
31586 * kern/i386/linuxbios/startup.S: Move from here ...
31587 * kern/i386/coreboot/startup.S: ... to here.
31588
31589 * kern/i386/linuxbios/init.c: Move from here ...
31590 * kern/i386/coreboot/init.c: ... to here.
31591
31592 * kern/i386/linuxbios/table.c: Move from here ...
31593 * kern/i386/coreboot/mmap.c: ... to here.
31594
31595 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
31596
e352e9cd 315972008-08-11 Robert Millan <rmh@aybabtu.com>
31598
31599 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
31600 errors. Leave it to the upper layer to handle them.
31601
2d05bc6a 316022008-08-09 Christian Franke <franke@computer.org>
31603
31604 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
31605 * conf/common.rmk: Install `grub-pe2elf' only if requested.
31606 Install `grub.d/10_windows' only on Cygwin.
31607 * configure.ac: Add subst of `target_os'.
31608 Check `target_os' also before setting TARGET_OBJ2ELF.
31609 Add `--enable-grub-pe2elf'.
31610
042bd419 316112008-08-08 Robert Millan <rmh@aybabtu.com>
31612
31613 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
31614 (grub_last_time): Change type to grub_uint64_t.
31615 (grub_disk_open): Migrate code from to using grub_get_time_ms().
31616 (grub_disk_close): Likewise.
31617
31618 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
31619 (run_menu): Migrate code from to using grub_get_time_ms().
31620
31621 * util/misc.c (grub_get_time_ms): New function.
31622
7f280db5 316232008-08-08 Marco Gerards <marco@gnu.org>
31624
31625 * disk/ata.c (grub_ata_regget): Change return type to
31626 `grub_uint8_t'.
31627 (grub_ata_regget2): Likewise.
31628 (grub_ata_wait_status): New function.
31629 (grub_ata_wait_busy): Removed function, updated all users to use
31630 `grub_ata_wait_status'.
31631 (grub_ata_wait_drq): Likewise.
31632 (grub_ata_cmd): New function.
31633 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
31634 error handling.
31635 (grub_ata_pio_write): Add error handling.
31636 (grub_atapi_identify): Likewise.
31637 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
31638 handling.
31639 (grub_ata_identify): Use `grub_ata_cmd' and improve error
31640 handling. Actually use the detected registers. Reorder the
31641 detection logic such that it is easier to read.
31642 (grub_ata_pciinit): Do not assign the same ID to each controller.
31643 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
31644 handling.
31645 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
31646
31647 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
31648
1fbc5e66 316492008-08-08 Marco Gerards <marco@gnu.org>
31650
31651 * NEWS: Update.
31652
819ce6c0 316532008-08-07 Bean <bean123ch@gmail.com>
31654
31655 * include/grub/x86_64/pci.h: New file.
31656
5c41d44d 316572008-08-07 Christian Franke <franke@computer.org>
31658
31659 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
31660 (TIMER2_GATE): Likewise.
31661 (grub_pit_wait): Add enable/disable of the timer2 gate
31662 bit of port 0x61. This fixes a possible infinite loop.
31663
5ebc275d 316642008-08-07 Bean <bean123ch@gmail.com>
31665
31666 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
31667 kern/i386/tsc.c and kern/i386/pit.c.
31668
31669 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
31670 x86_64 platform.
31671
31672 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
31673 <grub/i386/tsc.h>.
31674
31675 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
31676
e383b3d0 316772008-08-07 Bean <bean123ch@gmail.com>
31678
31679 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
31680
31681 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
31682
31683 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
31684 multiple inclusion. Add #include <grub/types.h>.
31685
1cbb58ac 316862008-08-06 Christian Franke <franke@computer.org>
31687
31688 * conf/common.rmk: Build and install `10_windows'.
31689 * util/grub.d/10_windows.in: New script.
31690
337f5a1e 316912008-08-06 Pavel Roskin <proski@gnu.org>
31692
31693 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
31694
057bc4ac 316952008-08-06 Robert Millan <rmh@aybabtu.com>
31696
31697 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
31698 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
31699
2b99f123 317002008-08-06 Bean <bean123ch@gmail.com>
31701
31702 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
31703 (grub_pxefs_fs_int): Remove dummy definition.
31704 (grub_pxefs_open): Use data->block_size to store the current block
31705 size setting.
31706 (grub_pxefs_read): Use block size stored in data->block_size. As the
31707 value of grub_pxe_blksize can be changed after the file is opened.
31708
9f0234cb 317092008-08-06 Bean <bean123ch@gmail.com>
31710
31711 * fs/i386/pc/pxe.c (curr_file): new variable.
31712 (grub_pxefs_open): Simply the handling of pxe file system. Don't
31713 require the dummy internal file system anymore.
31714 (grub_pxefs_read): Removed.
31715 (grub_pxefs_close): Likewise.
31716 (grub_pxefs_fs_int): Likewise.
31717 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
31718 connection when we switch file.
31719 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
31720
a55d42e0 317212008-08-06 Robert Millan <rmh@aybabtu.com>
31722
31723 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
31724 `halt.mod'.
31725 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
31726 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
31727
31728 * kern/i386/halt.c: New file.
31729 * kern/i386/reboot.c: Likewise.
31730 * include/grub/i386/reboot.h: Likewise.
31731 * include/grub/i386/halt.h: Likewise.
31732
31733 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
31734 Include `<grub/cpu/halt.h>'.
31735 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
31736 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
31737
31738 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
31739 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
31740 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
31741 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
31742 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
31743 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
31744 from here ...
31745 * include/grub/i386/at_keyboard.h: ... to here.
31746
24371d26 317472008-08-05 Robert Millan <rmh@aybabtu.com>
31748
31749 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
31750 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
31751 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
31752 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
31753 `kern/generic/millisleep.c'.
31754
31755 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
31756 instead of grub_get_rtc().
31757 (grub_tsc_init): Initialize `tsc_boot_time'.
31758
31759 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
31760 (grub_machine_init): Use grub_tsc_init() rather than
31761 installing an RTC-based handler via grub_install_get_time_ms().
31762
31763 * kern/i386/pit.c: New file.
31764 * include/grub/i386/pit.h: Likewise.
31765
9e7007b3 317662008-08-05 Bean <bean123ch@gmail.com>
31767
31768 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
31769
31770 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
31771 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
31772 (pxe_mod_SOURCES): New macro.
31773 (pxe_mod_CFLAGS): Likewise.
31774 (pxe_mod_LDFLAGS): Likewise.
31775 (pxecmd_mod_SOURCES): Likewise.
31776 (pxecmd_mod_CFLAGS): Likewise.
31777 (pxecmd_mod_LDFLAGS): Likewise.
31778
31779 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
31780 (grub_pxe_call): Likewise.
31781
31782 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
31783
31784 * commands/i386/pc/pxecmd.c: New file.
31785
9f0234cb 31786 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 31787
31788 * include/grub/i386/pc/pxe.h: Likewise.
31789
6977d49f 317902008-08-05 Bean <bean123ch@gmail.com>
31791
31792 * util/console.c (grub_console_cur_color): New variable.
31793 (grub_console_standard_color): Likewise.
31794 (grub_console_normal_color): Likewise.
31795 (grub_console_highlight_color): Likewise.
31796 (color_map): Likewise.
31797 (use_color): Likewise.
31798 (NUM_COLORS): New macro.
31799 (grub_ncurses_setcolorstate): Handle color properly.
31800 (grub_ncurses_setcolor): Don't change color here, just remember the
31801 settings, color will be set in grub_ncurses_setcolorstate.
31802 (grub_ncurses_getcolor): New function.
31803 (grub_ncurses_init): Initialize color pairs.
31804 (grub_ncurses_term): New member grub_ncurses_getcolor.
31805
9c2ff3ee 318062008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 31807
9c2ff3ee 31808 High resolution timer support. Implemented for x86 CPUs using TSC.
31809 Extracted generic grub_millisleep() so it's linked in only as needed.
31810 This requires a Pentium compatible CPU; if the RDTSC instruction is
31811 not supported, then it falls back on the generic grub_get_time_ms()
31812 implementation that uses the machine's RTC.
31813
31814 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
31815 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
31816 `kern/generic/millisleep.c'.
31817
31818 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
31819 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
31820
31821 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
31822 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
31823
31824 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31825
31826 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
31827 `kern/generic/millisleep.c'.
31828
31829 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31830
31831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
31832
31833 * kern/generic/rtc_get_time_ms.c: New file.
31834
31835 * kern/generic/millisleep.c: New file.
337f5a1e 31836
9c2ff3ee 31837 * kern/misc.c: Don't include
31838 <kern/time.h> anymore.
31839 (grub_millisleep_generic): Removed.
31840
31841 * commands/sleep.c (grub_interruptible_millisleep): Uses
31842 grub_get_time_ms() instead of grub_get_rtc().
31843
31844 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
31845 function.
31846 (grub_cpu_is_cpuid_supported): New inline function.
31847 (grub_cpu_is_tsc_supported): New inline function.
31848 (grub_tsc_init): New function prototype.
31849 (grub_tsc_get_time_ms): New function prototype.
31850
31851 * kern/i386/tsc.c (grub_get_time_ms): New file.
31852
31853 * include/grub/time.h: Include <grub/types.h.
31854 (grub_millisleep_generic): Removed.
31855 (grub_get_time_ms): New prototype.
31856 (grub_install_get_time_ms): New prototype.
31857 (grub_rtc_get_time_ms): New prototype.
31858
31859 * kern/time.c (grub_get_time_ms): New function.
31860 (grub_install_get_time_ms): New function.
31861
31862 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
31863 <grub/time.h> anymore.
31864 (grub_millisleep): Removed.
31865 (grub_machine_init): Call grub_tsc_init.
31866
31867 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
31868 get_time_ms() implementation.
31869
31870 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
31871 (ieee1275_get_time_ms): New function.
31872 (grub_machine_init): Install get_time_ms() implementation.
31873
31874 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
31875 (grub_machine_init): Call grub_tsc_init().
31876 (grub_millisleep): Removed.
bf06a93f 31877
9c2ff3ee 31878 * kern/ieee1275/init.c (grub_millisleep): Removed.
31879 (grub_machine_init): Install ieee1275_get_time_ms()
31880 implementation.
31881 (ieee1275_get_time_ms): New function.
31882 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
31883 real work.
31884
9ec92aaf 318852008-08-05 Marco Gerards <marco@gnu.org>
31886
31887 * disk/ata.c: Include <grub/pci.h>.
31888 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
31889 (grub_ata_initialize): Rewritten.
31890 (grub_ata_device_initialize): New function.
31891
8d23f507 318922008-08-04 Pavel Roskin <proski@gnu.org>
31893
31894 * kern/main.c: Include grub/mm.h.
31895
5e15ee3d 318962008-08-04 Robert Millan <rmh@aybabtu.com>
31897
31898 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
31899 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
31900 corruption problem).
31901
a9053f8f 319022008-08-04 Robert Millan <rmh@aybabtu.com>
31903
31904 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
31905 warnings introduced in my last commit.
31906
dd19c7d7 319072008-08-03 Robert Millan <rmh@aybabtu.com>
31908
31909 Make PCI available on all i386 architectures.
31910
31911 * include/grub/i386/pc/pci.h: Move from here ...
31912 * include/grub/i386/pci.h: ... to here.
31913
31914 * include/grub/i386/pc/pci.h: Remove.
31915 * include/grub/i386/efi/pci.h: Remove.
31916 * include/grub/x86_64/efi/pci.h: Remove.
31917
31918 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
31919 `<grub/cpu/pci.h>'.
31920
31921 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
31922 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
31923 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
31924
31925 * conf/i386-ieee1275.rmk: Likewise.
31926
e14a6184 319272008-08-03 Robert Millan <rmh@aybabtu.com>
31928
31929 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
31930 (grub_console_setcursor): Make it possible to set cursor off.
31931
52768e37 319322008-08-03 Robert Millan <rmh@aybabtu.com>
31933
31934 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
31935 of modules instead of assuming which platform provides what.
31936 * util/update-grub.in: Likewise.
31937
2d52f57f 319382008-08-03 Robert Millan <rmh@aybabtu.com>
31939
31940 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
31941 instead of `grub_install_dos_part' to determine whether a drive needs
31942 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 31943 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 31944
2a5cd121 319452008-08-02 Robert Millan <rmh@aybabtu.com>
31946
31947 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
31948
93808428 319492008-08-02 Robert Millan <rmh@aybabtu.com>
31950
31951 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
31952 of informational grub_dprintf() calls.
31953
3bd0a12a 319542008-08-02 Robert Millan <rmh@aybabtu.com>
31955
31956 * disk/memdisk.c (memdisk_size): Don't initialize.
31957 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
31958
31959 * include/grub/i386/pc/kernel.h
31960 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
31961 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
31962 (grub_memdisk_image_size, grub_arch_memdisk_addr)
31963 (grub_arch_memdisk_size): Remove.
31964
31965 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
31966 field (was only used to transfer a constant). Add `type' field to
31967 support multiple module types.
31968 (grub_module_iterate): New function.
31969
31970 * kern/device.c (grub_device_open): Do not hide error messages
31971 when grub_disk_open() fails. Use grub_print_error() instead.
31972
31973 * kern/i386/pc/init.c (grub_arch_modules_addr)
31974 (grub_arch_memdisk_size): Remove functions.
31975 (grub_arch_modules_addr): Return the module address in high memory
31976 (now that it isn't copied anymore).
31977
31978 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
31979 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
31980 decompression routine (grub_total_module_size already includes that
31981 now). Don't copy modules back to low memory.
31982
31983 * kern/main.c: Include `<grub/mm.h>'.
31984 (grub_load_modules): Split out (and use) ...
31985 (grub_module_iterate): ... this function, which iterates through
31986 module objects and runs a hook.
31987 Comment out grub_mm_init_region() call, as it would cause non-ELF
31988 modules to be overwritten.
31989
31990 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
31991 the memdisk image in its own region, make it part of the module list.
31992 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
31993 (main): Parse --memdisk|-m option, and pass user-provided path as
31994 parameter to generate_image().
31995 (add_segments): Pass `memdisk_path' down to load_modules().
31996 (load_modules): Embed memdisk image in module section when requested.
31997 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
31998 `header.type' instead of `header.offset'.
31999
32000 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
32001 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
32002 (memdisk_mod_LDFLAGS): New variables.
32003 * conf/i386-coreboot.rmk: Likewise.
32004 * conf/i386-ieee1275.rmk: Likewise.
32005
a927cc73 320062008-08-02 Robert Millan <rmh@aybabtu.com>
32007
32008 * loader/i386/pc/multiboot.c (playground, forward_relocator)
32009 (backward_relocator): New variables. Used to allocate and relocate
32010 the payload, respectively.
32011 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 32012 address, install the appropriate relocator code in each bound of
a927cc73 32013 the payload, and set the entry point such that
32014 grub_multiboot_real_boot() will jump to one of them.
32015
32016 * kern/i386/loader.S (grub_multiboot_payload_size)
32017 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
32018 (grub_multiboot_payload_entry_offset): New variables.
32019 (grub_multiboot_real_boot): Set cpu context to what the relocator
32020 expects, and jump to the relocator instead of the payload.
32021
32022 * include/grub/i386/loader.h (grub_multiboot_payload_size)
32023 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
32024 (grub_multiboot_payload_entry_offset): Export.
32025
b15d8a0c 320262008-08-01 Bean <bean123ch@gmail.com>
32027
32028 * normal/menu_entry.c (editor_getline): Don't return the original
32029 string as result, as it will be released by lexer once it has done
32030 using it.
32031
cdfb3d22 320322008-08-01 Robert Millan <rmh@aybabtu.com>
32033
32034 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
32035 within menuentries, not before them.
32036 util/grub.d/10_hurd.in: Likewise.
32037
9175e93d 320382008-08-01 Bean <bean123ch@gmail.com>
32039
32040 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
32041 (bufio_mod_SOURCES): New macro.
32042 (bufio_mod_CFLAGS): Likewise.
32043 (bufio_mod_LDFLAGS): Likewise.
32044
32045 * include/grub/bufio.h: New file.
32046
32047 * io/bufio.c: Likewise.
32048
32049 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
32050 (grub_video_reader_png): Use grub_buffile_open to open file.
32051
32052 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
32053 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
32054
32055 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
32056 (grub_video_reader_tga): Use grub_buffile_open to open file.
32057
32058 * font/manager.c: Include <grub/bufio.h>.
32059 (add_font): Use grub_buffile_open to open file.
32060
3d8383e7 320612008-07-31 Robert Millan <rmh@aybabtu.com>
32062
32063 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
32064 ELF segments, use a macro for arbitrarily accessing any of them instead
32065 of preparing a pointer that allows access to one at a time.
32066 (grub_multiboot_load_elf64): Likewise.
32067
16e641b6 320682008-07-31 Bean <bean123ch@gmail.com>
32069
32070 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
32071 GRUB_KERNEL_MACHINE_DATA_END.
32072
59198b72 320732008-07-30 Robert Millan <rmh@aybabtu.com>
32074
32075 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
32076 Increase from 0x50 to 0x60.
32077 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
32078 use UUIDs to identify the root drive for them. If that's not
32079 possible, abort.
32080 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
32081 check, for cross-disk installs.
32082
ae88bca3 320832008-07-30 Robert Millan <rmh@aybabtu.com>
32084
32085 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
32086 is non-empty, use it to set the `prefix' environment variable instead
32087 of the usual approach.
32088 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
32089 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
32090 environment variable instead of dummy make_install_device().
32091
32092 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
32093 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 32094 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 32095
32096 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
32097 New variable reference.
32098 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
32099 New macro. Defines offset of `grub_prefix' within startup.S (relative
32100 to `start').
32101 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
32102 section within startup.S (relative to `start').
32103 * include/grub/i386/coreboot/kernel.h: Likewise.
32104
32105 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
32106 Overwrite grub_prefix with its contents, at the beginning of the
32107 first segment.
32108 (main): Understand -p|--prefix.
32109
14f41dd1 321102008-07-30 Robert Millan <rmh@aybabtu.com>
32111
32112 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
32113
4ca049a3 321142008-07-30 Robert Millan <rmh@aybabtu.com>
32115
32116 * term/i386/pc/vga_text.c (grub_console_cls): Use
32117 grub_console_gotoxy() to go back to beginning of the screen.
32118 Found by Patrick Georgi <patrick.georgi@coresystems.de>
32119
2921d337 321202008-07-29 Christian Franke <franke@computer.org>
32121
32122 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32123 Add conversion of emulated mount points on Cygwin.
32124
b609876d 321252008-07-29 Christian Franke <franke@computer.org>
32126
32127 * util/update-grub.in: Add a check for admin
32128 group on Cygwin.
32129 Remove old `grub.cfg.new' before creation.
32130 Add `-f' to `mv' to handle the different filesystem
32131 semantics of Windows.
32132
e93e4679 321332008-07-29 Bean <bean123ch@gmail.com>
32134
32135 * normal/main.c (get_line): Fix buffer overflow bug.
32136
41694fd0 321372008-07-28 Robert Millan <rmh@aybabtu.com>
32138
32139 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
32140 (struct grub_apple_header): New struct. Describes the layout of
32141 the partmap header.
32142 (apple_partition_map_iterate): Check the header magic as well as the
32143 partition magic (which was already being checked).
32144
cfd0b4e6 321452008-07-28 Pavel Roskin <proski@gnu.org>
32146
32147 * genmk.rb: Add a warning to the beginning of the output that
32148 it's a generated file and should not be edited.
32149
93cce016 321502008-07-28 Robert Millan <rmh@aybabtu.com>
32151
32152 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32153 with the same number are found, just use issue a warning with
32154 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 32155
cd1df915 321562008-07-27 Robert Millan <rmh@aybabtu.com>
32157
32158 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
32159 information.
32160
b70a8427 321612008-07-27 Bean <bean123ch@gmail.com>
32162
32163 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
32164 (grub_fat_find_dir): Ignore case when comparing filename.
32165
8f5e379f 321662008-07-27 Bean <bean123ch@gmail.com>
32167
32168 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
32169 smallino, as it's more descriptive, and i8count can be confused with
32170 the other field count.
32171 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
32172 inode type.
32173
a85cd5a0 321742008-07-27 Bean <bean123ch@gmail.com>
32175
32176 * commands/crc.c: New file.
32177
32178 * lib/crc.c: Likewise.
32179
32180 * include/grub/lib/crc.h: Likewise.
32181
32182 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
32183
32184 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
32185 (hexdump): Move this function to ...
32186
32187 * lib/hexdump.c: ... here.
32188
32189 * include/grub/hexdump.h: Renamed to ...
32190
32191 * include/grub/lib/hexdump.h: ... this.
32192
32193 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
32194
32195 * util/grub-editenv.c: Likewise.
32196
32197 * include/envblk.h: Renamed to ...
32198
32199 * include/lib/envblk.h: ... this.
32200
32201 * util/envblk.c: Renamed to ...
32202
32203 * lib/envblk.c: ... this.
32204
32205 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
32206 lib/hexdump.c.
32207 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
32208 (pkglib_MODULES): Add crc.mod.
32209 (hexdump_mod_SOURCES): Add lib/hexdump.c.
32210 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
32211 (crc_mod_SOURCES): New macro.
32212 (crc_mod_CFLAGS): Likewise.
32213 (crc_mod_LDFLAGS): Likewise.
32214
32215 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
32216
32217 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32218
32219 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32220
32221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32222
32223 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32224
c298def0 322252008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 32226
32227 * commands/help.c: Include <grub/term.h>.
32228 (TERM_WIDTH): Removed. Updated all users.
32229
cc349fb3 322302008-07-27 Pavel Roskin <proski@gnu.org>
32231
32232 * util/getroot.c (find_root_device): Rephrase a comment to avoid
32233 spurious warnings about a comment within a comment.
32234
9051607e 322352008-07-25 Robert Millan <rmh@aybabtu.com>
32236
32237 * util/getroot.c (find_root_device): Skip devices that match
32238 /dev/dm-[0-9]. This lets the real device be found for any type of
32239 abstraction (LVM, EVMS, RAID..).
32240 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
32241 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
32242 device is found first, find_root_device() will now skip it.
32243
01453bfc 322442008-07-24 Pavel Roskin <proski@gnu.org>
32245
32246 * include/grub/types.h: Use __builtin_bswap32() and
32247 __builtin_bswap64() with gcc 4.3 and newer.
32248
6af9849f 322492008-07-24 Christian Franke <franke@computer.org>
32250
3a0fa256 32251 * util/i386/pc/grub-install.in: If `--debug' is specified,
32252 pass `--verbose' to grub-setup.
32253 Abort script if make_system_path_relative_to_its_root() fails.
32254
7810e747 322552008-07-24 Bean <bean123ch@gmail.com>
32256
32257 * configure.ac: Fixed a bug caused by the previous cygwin patch,
32258 variable `target_platform' should be `platform'.
32259
42290e17 322602008-07-24 Bean <bean123ch@gmail.com>
32261
51cc5193 32262 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 32263 (grub_png_init_fixed_block): New function.
32264 (grub_png_decode_image_data): Handle fixed huffman code compression.
32265
2a8a80e4 322662008-07-24 Bean <bean123ch@gmail.com>
32267
32268 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
32269 (grub_pe2elf_SOURCES): New macro.
32270 (CLEANFILES): Add grub-pe2elf.
32271
32272 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
32273 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
32274 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
32275 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
32276 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
32277 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
32278 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
32279 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
32280 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
32281 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
32282 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
32283 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
32284 (GRUB_PE32_DT_FUNCTION): Likewise.
32285 (GRUB_PE32_REL_I386_DIR32): Likewise.
32286 (GRUB_PE32_REL_I386_REL32): Likewise.
32287 (grub_pe32_symbol): New structure.
32288 (grub_pe32_reloc): Likewise.
32289
32290 * util/grub-pe2elf.c: New file.
32291
32292 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
32293 start symbol in non pc platform.
32294
32295 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
32296
32297 The following patches are from Christian Franke.
32298
32299 * include/grub/dl.h: Remove .previous, gas supports this only
32300 for ELF format.
32301
32302 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
32303 Remove .type, gas supports this only for ELF format.
32304
32305 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
32306 nullbytes in symbol table. This fixes an infinite loop if table is
32307 zero filled.
32308
32309 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
32310 TARGET_IMG_LDFLAGS and EXEEXT.
32311
32312 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
32313 TARGET_IMG_LDFLAGS_AC.
32314 (grub_CHECK_STACK_ARG_PROBE): New function.
32315
32316 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
32317
32318 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
32319
32320 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
32321 to set TARGET_IMG_LD* accordingly.
32322 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
32323 Add call to grub_CHECK_STACK_ARG_PROBE.
32324 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
32325
32326 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
32327
32328 * genmk.rb: Add EXEEXT to CLEANFILES.
32329
12ccdb75 323302008-07-23 Robert Millan <rmh@aybabtu.com>
32331
32332 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
32333 define the codes for arrows and lines used for the menu).
32334 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
32335 as well.
32336
32337 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
32338 fonts, because the latter are too slow.
32339
18eeaf04 323402008-07-21 Bean <bean123ch@gmail.com>
32341
32342 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
32343 a20. Run keyboard test last, as it will cause macbook to halt.
32344
b095e2ad 323452008-07-18 Pavel Roskin <proski@gnu.org>
32346
32347 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
32348 load foreign architecture modules correctly anyway. Keep
32349 support for loading host architecture modules, whether we
32350 compile them or not.
32351
737feb35 323522008-07-17 Pavel Roskin <proski@gnu.org>
32353
3f4ce737 32354 * configure.ac: Use -m32 or -m64 regardless of whether we had to
32355 change target_cpu. The compiler default can mismatch target_cpu
32356 in any case.
32357
4ad2d049 32358 * disk/efi/efidisk.c: Fix format warnings on x86_64.
32359 * kern/efi/efi.c: Likewise.
32360
f6130a12 32361 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
32362 target compiler is functional.
32363 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
32364 are set up.
32365
58393a2d 32366 * configure.ac: Default to efi platform for x86_64-apple. Allow
32367 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
32368 adjustments from the rest, only do them if target is not
32369 explicitly given. Merge other adjustments with the final sanity
32370 check. Remove an extraneous check for supported CPU. Be
32371 specific which CPU and which platform is not supported.
32372
737feb35 32373 * configure.ac: Default to pc platform for x86_64.
32374
546f966a 323752008-07-17 Robert Millan <rmh@aybabtu.com>
32376
32377 Partial LinuxBIOS -> Coreboot rename.
32378
32379 * conf/i386-linuxbios.rmk: Renamed to ...
32380 * conf/i386-coreboot.rmk: ... this.
32381 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
32382 * configure.ac: Accept "coreboot" as input platform (but maintain
32383 compatibility with "linuxbios").
32384 * include/grub/i386/linuxbios: Renamed to ...
32385 * include/grub/i386/coreboot: ... this.
32386
20011694 323872008-07-17 Bean <bean123ch@gmail.com>
32388
32389 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 32390 (appleldr_mod_SOURCE): New variable.
20011694 32391 (appleldr_mod_CFLAGS): Likewise.
32392 (appleldr_mod_LDFLAGS): Likewise.
32393 (pci_mod_SOURCES): Likewise.
32394 (pci_mod_CFLAGS): Likewise.
32395 (pci_mod_LDFLAGS): Likewise.
32396 (lspci_mod_SOURCES): Likewise.
32397 (lspci_mod_CFLAGS): Likewise.
32398 (lspci_mod_LDFLAGS): Likewise.
32399
32400 * conf/x86_64-efi.rmk: New file.
32401
32402 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
32403 macro.
32404 (grub_efidisk_write): Likewise.
32405
32406 * include/efi/api.h (efi_call_0): New macro.
32407 (efi_call_1): Likewise.
32408 (efi_call_2): Likewise.
32409 (efi_call_3): Likewise.
32410 (efi_call_4): Likewise.
32411 (efi_call_5): Likewise.
32412 (efi_call_6): Likewise.
32413
32414 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
32415 grub_rescue_cmd_chainloader.
32416
32417 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
32418 (grub_pe32_optional_header): Change some fields based on i386 or
32419 x86_64 platform.
32420 (GRUB_PE32_PE32_MAGIC): Likewise.
32421
32422 * include/grub/efi/uga_draw.h: New file.
32423
32424 * include/grub/elf.h (STN_ABS): New constant.
32425 (R_X86_64_NONE): Relocation constant for x86_64.
32426 (R_X86_64_64): Likewise.
32427 (R_X86_64_PC32): Likewise.
32428 (R_X86_64_GOT32): Likewise.
32429 (R_X86_64_PLT32): Likewise.
32430 (R_X86_64_COPY): Likewise.
32431 (R_X86_64_GLOB_DAT): Likewise.
32432 (R_X86_64_JUMP_SLOT): Likewise.
32433 (R_X86_64_RELATIVE): Likewise.
32434 (R_X86_64_GOTPCREL): Likewise.
32435 (R_X86_64_32): Likewise.
32436 (R_X86_64_32S): Likewise.
32437 (R_X86_64_16): Likewise.
32438 (R_X86_64_PC16): Likewise.
32439 (R_X86_64_8): Likewise.
32440 (R_X86_64_PC8): Likewise.
32441
32442 * include/grub/i386/efi/pci.h: New file.
32443
32444 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
32445 Change it value based on platform.
32446 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
32447 (GRUB_E820_RAM): Likewise.
32448 (GRUB_E820_RESERVED): Likewise.
32449 (GRUB_E820_ACPI): Likewise.
32450 (GRUB_E820_NVS): Likewise.
32451 (GRUB_E820_EXEC_CODE): Likewise.
32452 (GRUB_E820_MAX_ENTRY): Likewise.
32453 (grub_e820_mmap): New structure.
32454 (linux_kernel_header): Change the efi field according to different
32455 kernel version, also field from linux_kernel_header.
32456
32457 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
32458
32459 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
32460 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
32461 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
32462 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
32463 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
32464 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
32465 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
32466 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
32467 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
32468 (GRUB_PCI_ADDR_IO_MASK): Likewise.
32469
32470 * include/grub/x86_64/efi/kernel.h: New file.
32471
32472 * include/grub/x86_64/efi/loader.h: Likewise.
32473
32474 * include/grub/x86_64/efi/machine.h: Likewise.
32475
32476 * include/grub/x86_64/efi/pci.h: Likewise.
32477
32478 * include/grub/x86_64/efi/time.h: Likewise.
32479
32480 * include/grub/x86_64/linux.h: Likewise.
32481
32482 * include/grub/x86_64/setjmp.h: Likewise.
32483
32484 * include/grub/x86_64/time.h: Likewise.
32485
32486 * include/grub/x86_64/types.h: Likewise.
32487
32488 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
32489 GRUB_TARGET_SIZEOF_VOID_P.
32490
32491 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
32492 (grub_efi_locate_handle): Likewise.
32493 (grub_efi_open_protocol): Likewise.
32494 (grub_efi_set_text_mode): Likewise.
32495 (grub_efi_stall): Likewise.
32496 (grub_exit): Likewise.
32497 (grub_reboot): Likewise.
32498 (grub_halt): Likewise.
32499 (grub_efi_exit_boot_services): Likewise.
32500 (grub_get_rtc): Likewise.
32501
32502 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
32503 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
32504 (grub_efi_allocate_pages): Wrap efi calls.
32505 (grub_efi_free_pages): Wrap efi calls.
32506 (grub_efi_get_memory_map): Wrap efi calls.
32507
32508 * kern/x86_64/dl.c: New file.
32509
32510 * kern/x86_64/efi/callwrap.S: Likewise.
32511
32512 * kern/x86_64/efi/startup.S: Likewise.
32513
32514 * loader/efi/appleloader.c: Likewise.
32515
32516 * loader/efi/chainloader.c (cmdline): New variable.
32517 (grub_chainloader_unload): Wrap efi calls.
32518 (grub_chainloader_boot): Likewise.
32519 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
32520 command line.
32521
32522 * loader/efi/chainloader_normal.c (chainloader_command):
32523 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
32524 command line.
32525
32526 * loader/i386/efi/linux.c (allocate_pages): Change allocation
32527 method.
32528 (grub_e820_add_region): New function.
32529 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
32530 booting.
32531 (grub_find_video_card): New function.
32532 (grub_linux_setup_video): New function.
32533 (grub_rescue_cmd_linux): Probe for video information.
32534
32535 * normal/x86_64/setjmp.S: New file.
32536
32537 * term/efi/console.c (map_char): New function.
32538 (grub_console_putchar): Map unicode char.
32539 (grub_console_checkkey): Wrap efi calls.
32540 (grub_console_getkey): Likewise.
32541 (grub_console_getwh): Likewise.
32542 (grub_console_gotoxy): Likewise.
32543 (grub_console_cls): Likewise.
32544 (grub_console_setcolorstate): Likewise.
32545 (grub_console_setcursor): Likewise.
32546
32547 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
32548
59652a20 325492008-07-16 Pavel Roskin <proski@gnu.org>
32550
ef294055 32551 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
32552 format strings.
32553
59652a20 32554 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
32555 pointer, not an integer. This fixes a warning and prevents
32556 precision loss on 64-bit systems.
32557 (relocate_addresses): Remove unneeded cast.
32558
afc3b5d7 325592008-07-15 Pavel Roskin <proski@gnu.org>
32560
506b2b3e 32561 * kern/i386/ieee1275/init.c: Include grub/cache.h.
32562
62ead89c 32563 * term/ieee1275/ofconsole.c: Disable code unused on i386.
32564
c4cd51d7 32565 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
32566 Fix comparison between signed and unsigned.
32567
0d3d8f28 32568 * include/grub/i386/ieee1275/console.h: Declare
32569 grub_console_init() and grub_console_fini().
32570
8804b286 32571 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
32572 It's empty and unused.
32573
ee01cf35 32574 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
32575 beginning to avoid warnings with some compilers.
32576
afc3b5d7 32577 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
32578 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
32579
e4e8eaa5 325802008-07-14 Pavel Roskin <proski@gnu.org>
32581
407aceb4 32582 * kern/env.c (grub_register_variable_hook): Don't copy empty
32583 string, it leaks memory. Pass "" to grub_env_set(), it should
32584 handle constant strings.
32585
e4e8eaa5 32586 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
32587 * commands/cmp.c (grub_cmd_cmp): Likewise.
32588 * kern/dl.c (grub_dl_flush_cache): Likewise.
32589 (grub_dl_load_core): Likewise.
32590 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
32591 (grub_elf64_load_phdrs): Likewise.
32592
d4e2dad3 325932008-07-13 Pavel Roskin <proski@gnu.org>
32594
32595 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
32596 between signed and unsigned.
32597 (LzmaEnc_Finish): Fix warning about an unused parameter.
32598
aa24b516 325992008-07-13 Bean <bean123ch@gmail.com>
32600
32601 * Makefile.in (enable_lzo): New rule.
32602
32603 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
32604
32605 * configure.ac (ENABLE_LZO): New option --enable-lzo.
32606
32607 * boot/i386/pc/lnxboot.S: #include <config.h>.
32608
32609 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 32610 its value according to the compression algorithm used, lzo or lzma.
aa24b516 32611
32612 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
32613 compression algorithm according to configure macro.
32614
32615 * kern/i386/pc/startup.S (codestart): Likewise.
32616
32617 * kern/i386/pc/lzma_decode.S: New file.
32618
32619 * include/grub/lib/LzFind.h: Likewise.
32620
32621 * include/grub/lib/LzHash.h: Likewise.
32622
32623 * include/grub/lib/LzmaDec.h: Likewise.
32624
32625 * include/grub/lib/LzmaEnc.h: Likewise.
32626
32627 * include/grub/lib/LzmaTypes.h: Likewise.
32628
32629 * lib/LzFind.c: Likewise.
32630
32631 * lib/LzmaDec.c: Likewise.
32632
32633 * lib/LzmaEnc.c: Likewise.
32634
4ae821ac 326352008-07-13 Bean <bean123ch@gmail.com>
32636
32637 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
32638 (grub_ext4_extent_header): New structure.
32639 (grub_ext4_extent): Likewise.
32640 (grub_ext4_extent_idx): Likewise.
32641 (grub_ext4_find_leaf): New function.
32642 (grub_ext2_read_block): Handle extents.
32643
9a745147 326442008-07-12 Robert Millan <rmh@aybabtu.com>
32645
32646 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
32647
d49a4cf6 326482008-07-11 Robert Millan <rmh@aybabtu.com>
32649
32650 * util/grub.d/40_custom.in: New file. Example on how to add custom
32651 entries to /etc/grub.d.
32652 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
32653 40_custom (implicitly, by merging all the grub.d rules).
32654
947414b4 326552008-07-11 Pavel Roskin <proski@gnu.org>
32656
0059cf6f 32657 * commands/read.c (grub_getline): Fix invalid memory access.
32658 Don't add newline to the variable value.
32659
947414b4 32660 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
32661 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
32662 (serial_hw_get_port): Check validity of the port number.
32663 (grub_cmd_serial): Check return value of serial_hw_get_port().
32664
62a02d00 326652008-07-07 Pavel Roskin <proski@gnu.org>
32666
32667 * boot/i386/pc/diskboot.S (notification_string): Replace
32668 "Loading kernel" with just "loading". This is shorter, less
32669 confusing and saves a few bytes for possible future changes.
32670
3e5581b0 326712008-07-05 Pavel Roskin <proski@gnu.org>
32672
ea387a48 32673 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
32674 size for ATAPI devices, they are undefined. Output sector
32675 number in decimal form.
32676
3e5581b0 32677 * disk/ata.c: Use named constants for status bits.
32678
fdecb8fd 326792008-07-04 Pavel Roskin <proski@gnu.org>
32680
bcd35b90 32681 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
32682 grub_addr_t before casting it to the void pointer to fix a
32683 warning. Non-addressable regions are discarded earlier.
32684 (grub_arch_modules_addr): Cast _end to grub_addr_t.
32685 * kern/i386/linuxbios/table.c: Include grub/misc.h.
32686 (check_signature): Don't shadow table_header.
32687 (grub_linuxbios_table_iterate): Cast numeric constants to
32688 grub_linuxbios_table_header_t.
32689 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
32690 grub_stop().
32691
af58ab3d 32692 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
32693 prevent warnings.
32694
1759aa57 32695 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
32696 pointer, which can cause warnings. Support 64-bit addresses.
32697
fdecb8fd 32698 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
32699 of sizeof(long). This fixes PowerPC image generation on x86_64.
32700
8516d2a8 327012008-07-04 Robert Millan <rmh@aybabtu.com>
32702
32703 This fixes a performance issue when pc & gpt partmap iterators
32704 didn't abort iteration even after our hook found what it was
fe987087 32705 looking for (often causing expensive probes of non-existent drives).
8516d2a8 32706
32707 Some callers relied on previous buggy behaviour, since they would
34c44600 32708 raise an error when their own hooks caused early abortion of its
8516d2a8 32709 iteration.
32710
32711 * kern/device.c (grub_device_open): Improve error message.
32712 * disk/lvm.c (grub_lvm_open): Likewise.
32713 * disk/raid.c (grub_raid_open): Likewise.
32714
32715 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
32716 when hook requests it, independently of grub_errno.
32717 (pc_partition_map_probe): Do not fail when find_func() caused
32718 early abortion of pc_partition_map_iterate().
32719
32720 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
32721 when hook requests it, independently of grub_errno.
32722 (gpt_partition_map_probe): Do not fail when find_func() caused
32723 early abortion of gpt_partition_map_iterate().
32724
32725 * kern/partition.c (grub_partition_iterate): Abort parent iteration
32726 when hook requests it, independently of grub_errno. Do not fail when
32727 part_map_iterate_hook() caused early abortion of p->iterate().
32728
32729 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
32730 when grub_partition_iterate() returned with non-zero.
32731
277d0de9 327322008-07-03 Pavel Roskin <proski@gnu.org>
32733
32734 * disk/ata.c (grub_ata_pio_write): Check status before writing,
32735 like we do in grub_ata_pio_read().
32736 (grub_ata_readwrite): Always write individual sectors. Fix the
32737 sector count for the remainder.
32738 (grub_ata_write): Enable writing to ATA devices. Correctly
32739 report error for ATAPI devices.
32740
d4c9b428 327412008-07-02 Pavel Roskin <proski@gnu.org>
32742
e43fc690 32743 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
32744 warning.
32745
f707af42 32746 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
32747 for every read sector, we already increment it for the whole
32748 batch. This fixes reading more than 256 sectors at once.
32749
11e16b15 32750 * util/grub-editenv.c (cmd_info): Cast argument to long
32751 explicitly. ptrdiff_t reduces to int on i386.
32752
cbabfdd4 32753 * util/grub-editenv.c (main): Be specific which parameter is
32754 missing.
32755
b8fbce0a 32756 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
32757 (memdisk): Make memdisk_orig_addr a pointer.
32758
c9c8e606 32759 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
32760 for file offsets, use grub_off_t instead. Fix printf format
32761 warnings.
32762
ca62e598 32763 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
32764 there. Real unexpected warnings should not drown in the noise
32765 about known problems.
32766
ce8d1766 32767 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
32768 grub_disk_addr_t for memory addresses.
32769
00c7a56a 32770 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
32771 explicitly to fix a warning.
32772
08d3ef09 32773 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
32774
cb71ba20 32775 * Makefile.in (MODULE_LDFLAGS): New variable.
32776 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
32777 the linker accepts --build-id=none.
32778 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
32779 MODULE_LDFLAGS.
32780 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
32781
d4c9b428 32782 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
32783 those in Linux XFS code. Provide a way to access 64-bit parent
32784 inode.
32785 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
32786 the end of struct grub_xfs_dir_header.
32787
d4156eee 327882008-07-02 Bean <bean123ch@gmail.com>
32789
32790 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
32791 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
32792 and GRUB_IEEE1275_FLAG_NO_ANSI.
32793
32794 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
32795 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
32796 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
32797
32798 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
32799 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
32800
32801 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
32802 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
32803
32804 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
32805 esc sequence on non ANSI terminal.
32806 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
32807
32808 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
32809 beginning of file.
32810
2270f77b 328112008-07-02 Bean <bean123ch@gmail.com>
32812
32813 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
32814 (grub_editenv_SOURCES): New variable.
32815 (pkglib_MODULES): Add loadenv.mod.
32816 (loadenv_mod_SOURCES): New variable.
32817 (loadenv_mod_CFLAGS): Likewise.
32818 (loadenv_mod_LDFLAGS): Likewise.
32819
32820 * include/grub/envblk.h: New file.
32821
32822 * util/envblk.c: New file.
32823
32824 * util/grub-editenv.c: New file.
32825
32826 * commands/loadenv.c: New file.
32827
0e9e51ec 328282008-07-01 Pavel Roskin <proski@gnu.org>
32829
d89b7634 32830 * include/multiboot2.h (struct multiboot_tag_module): Use char,
32831 not unsigned char. This fixes warnings and is consistent with
32832 other tags.
32833
bf1835b1 32834 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
32835
8222a04b 32836 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
32837
6a42d99d 32838 * term/tparm.c (analyze): Always set *popcount.
32839
10b159d1 32840 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
32841 cast to fix a warning.
32842
b8789f6c 32843 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
32844 cast to suppress a warning.
32845
29d7e38a 32846 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
32847 grub_fshelp_read_file() expects.
32848
f341f669 32849 * fs/fat.c: Fix UUID calculation on big-endian systems. We
32850 write uuid as a 32-bit value in CPU byte order, so declare and
32851 use it as such.
32852
0e9e51ec 32853 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
32854 long if the format specifier expects it.
32855 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
32856 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32857 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
32858 long to fix a warning.
32859 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
32860 grub_dprintf() arguments to fix warnings.
32861
3aefa857 328622008-06-30 Pavel Roskin <proski@gnu.org>
32863
56c7668b 32864 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
32865 install_bsd_part immediately before core.img is embedded or
32866 modified on disk. This fixes core.img verification if core.img
32867 cannot be embedded.
32868
3aefa857 32869 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
32870 core_path to calculate the blocklist.
32871 Patch from Javier Martín <lordhabbit@gmail.com>
32872
5444088d 328732008-06-29 Robert Millan <rmh@aybabtu.com>
32874
32875 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
32876 block to disk block.
32877 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
32878 Patch from Niels Böhm <bitbucket@arcor.de>
32879
674835c8 328802008-06-29 Robert Millan <rmh@aybabtu.com>
32881
32882 * util/update-grub_lib.in (font_path): Search for fonts in
32883 /boot/grub first, which is more likely to be readable (we aren't
32884 deciding where fonts live, just looking for them).
32885
f527dbc8 328862008-06-26 Pavel Roskin <proski@gnu.org>
32887
6c2d8df6 32888 * util/biosdisk.c (read_device_map): Don't leave dead map
32889 entries for devices failing stat() check.
32890
f527dbc8 32891 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
32892 core_path_dev for the core.img path on the target device.
32893
aebe3d13 328942008-06-26 Robert Millan <rmh@aybabtu.com>
32895
32896 * disk/fs_uuid.c: New file.
32897 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
32898 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
32899 (fs_uuid_mod_LDFLAGS): New variables.
32900 * include/grub/disk.h (grub_disk_dev_id): Add
32901 `GRUB_DISK_DEVICE_UUID_ID'.
32902 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
32903 implement iterate().
32904
37aaf354 329052008-06-26 Robert Millan <rmh@aybabtu.com>
32906
32907 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
32908 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
32909 Linux image includes no initrd.
32910
25ff262a 329112008-06-21 Javier Martín <lordhabbit@gmail.com>
32912
32913 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
32914 call to resolve the core image location that effectively appended the
32915 name twice.
32916
76a2bd44 329172008-06-21 Robert Millan <rmh@aybabtu.com>
32918
32919 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
32920 call from here ...
32921
32922 * util/grub.d/10_hurd.in: ... to here ...
32923 * util/grub.d/10_linux.in: ... and here.
32924
650e1c79 329252008-06-19 Robert Millan <rmh@aybabtu.com>
32926
fe987087 32927 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 32928 after it has been set by grub_machine_set_prefix().
32929
6ce63911 329302008-06-19 Robert Millan <rmh@aybabtu.com>
32931
32932 * commands/search.c (search_label, search_fs_uuid, search_file): Print
32933 search result when not saving to variable, not the other way around.
32934 When saving to variable, abort iteration as soon as a match is found.
32935
73940cec 329362008-06-19 Robert Millan <rmh@aybabtu.com>
32937
32938 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
32939 check for partition that provides /boot/grub. Its logic is flawed,
32940 as it prevents prepare_grub_to_access_device() from being called
32941 multiple times.
32942
3c62a39d 329432008-06-19 Robert Millan <rmh@aybabtu.com>
32944
32945 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
32946 "insmod" command directly when abstraction modules are needed,
fe987087 32947 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 32948 since it had already been processed).
32949
47395a42 329502008-06-19 Pavel Roskin <proski@gnu.org>
32951
32952 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
32953 changed. This is needed in case GRUB_LIBDIR changes.
32954 * conf/i386-ieee1275.rmk: Likewise.
32955 * conf/i386-linuxbios.rmk: Likewise.
32956 * conf/i386-pc.rmk: Likewise.
32957 * conf/powerpc-ieee1275.rmk: Likewise.
32958
a145ac2d 329592008-06-18 Pavel Roskin <proski@gnu.org>
32960
32961 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
32962 kernel_elf_symlist.c to symlist.c for consistency with other
32963 architectures. Update all users.
32964 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
32965
7847c51e 329662008-06-18 Robert Millan <rmh@aybabtu.com>
32967
32968 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
32969 it in prefix.
32970
32971 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
32972 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
32973 a RAID device, run setup() for all members independently on whether
32974 LVM abstraction is being used.
32975 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
32976 If grub-mkimage has set `*install_dos_part == -2', don't override this
32977 value.
32978 Perform *install_dos_part adjustments independently on whether
32979 we're embedding or not.
32980 Clarify error message when image is too big for embedding.
32981 Remove duplicate *install_dos_part stanza.
32982
b23e5644 329832008-06-17 Robert Millan <rmh@aybabtu.com>
32984
32985 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
32986 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
32987 variables.
32988 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
32989 values in grub_ofconsole_normal_color and
32990 grub_ofconsole_highlight_color (they're not directly related to
32991 background and foreground).
32992 (grub_ofconsole_setcolorstate): Extract background and foreground
32993 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
32994
0aac2f79 329952008-06-17 Robert Millan <rmh@aybabtu.com>
32996
32997 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
32998 /boot/grub for the check in last commit, not /boot (they could be
32999 different partitions).
33000
3cca7ef3 330012008-06-16 Robert Millan <rmh@aybabtu.com>
33002
33003 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
33004 asked to setup access for the same partition that provides /boot,
33005 don't bother using UUIDs since our root already has the value we
33006 want.
33007
347396d8 330082008-06-16 Robert Millan <rmh@aybabtu.com>
33009
33010 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
33011 I2O devices.
33012 Patch from Sven Mueller <sven@debian.org>.
33013
991477f8 330142008-06-16 Robert Millan <rmh@aybabtu.com>
33015
33016 * util/update-grub.in: Check for $EUID instead of $UID.
33017 Reported by Vincent Zweije.
33018
d31a32a1 330192008-06-16 Bean <bean123ch@gmail.com>
33020
fe987087 33021 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 33022 (grub_ext2_read_block): Likewise.
33023 (grub_ext2_read_inode): Likewise.
33024 (grub_ext2_mount): Likewise.
33025 (grub_ext2_close): Likewise.
33026 (grub_ext3_get_journal): Removed.
33027
fe987087 33028 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 33029 (grub_reiserfs_read_symlink): Likewise.
33030 (grub_reiserfs_mount): Likewise.
33031 (grub_reiserfs_open): Likewise.
33032 (grub_reiserfs_read): Likewise.
33033 (grub_reiserfs_close): Likewise.
33034 (grub_reiserfs_get_journal): Removed.
33035
33036 * fs/fshelp.c (grub_fshelp_read): Removed.
33037 (grub_fshelp_map_block): Likewise.
33038
33039 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
33040 (grub_fshelp_journal): Likewise.
33041 (grub_fshelp_read): Likewise.
33042 (grub_fshelp_map_block): Likewise.
33043
3540a760 330442008-06-16 Pavel Roskin <proski@gnu.org>
33045
33046 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
33047 floating point anymore.
33048 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
33049
95614c84 330502008-06-15 Pavel Roskin <proski@gnu.org>
33051
33052 * commands/ls.c (grub_ls_list_files): Use integer calculations
33053 for human readable format, avoid floating point use.
33054 * kern/misc.c (grub_ftoa): Remove.
33055 (grub_vsprintf): Remove floating point support.
33056
50465dd6 330572008-06-15 Robert Millan <rmh@aybabtu.com>
33058
fe6b695a 33059 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 33060 devices.
33061 Reported by Max Vozeler.
33062
a9207284 330632008-06-15 Robert Millan <rmh@aybabtu.com>
33064
33065 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
33066 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
33067 skipped later.
33068 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
33069 the beginning of the prefix.
33070
33071 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
33072 It is assumed that if we have a memdisk, grub-mkimage has set
33073 grub_prefix to include the "(memdisk)" drive in it.
33074
a7cbd45a 330752008-06-15 Robert Millan <rmh@aybabtu.com>
33076
33077 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
33078 Initialize keyboard controller after registering the terminal, so that
33079 grub_printf() can be called from grub_keyboard_controller_init().
33080
21cf716a 330812008-06-15 Robert Millan <rmh@aybabtu.com>
33082
33083 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
33084 extent-btree which is written as big endian on disk.
33085 Reported by Alain Greppin <al@chilibi.org>.
33086
23a64d8e 330872008-06-14 Robert Millan <rmh@aybabtu.com>
33088
33089 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
33090 * util/i386/pc/grub-install.in (modules): Likewise.
33091
d687651c 330922008-06-13 Pavel Roskin <proski@gnu.org>
33093
33094 * commands/ls.c (grub_ls_list_files): Fix format warnings.
33095
dfe9ddd4 330962008-06-13 Bean <bean123ch@gmail.com>
33097
33098 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
33099
33100 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
33101
33102 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
33103 to indicate sparse block.
33104
16ae7781 331052008-06-12 Pavel Roskin <proski@gnu.org>
33106
e6d1a308 33107 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
33108 number, grub_fshelp_read() does it for us.
33109
16ae7781 33110 * fs/fshelp.c (grub_fshelp_read): New function. Implement
33111 linear disk read with journal translation.
33112 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
33113 * include/grub/fshelp.h: Declare grub_fshelp_read().
33114
40fd3a2b 331152008-06-09 Pavel Roskin <proski@gnu.org>
33116
33117 * fs/minix.c (grub_minix_mount): Handle error reading
33118 superblock.
33119
f5679726 331202008-06-08 Robert Millan <rmh@aybabtu.com>
33121
33122 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
33123 don't append the RAID prefix afterwards.
33124 Reported by Clint Adams.
33125
ce525529 331262008-06-08 Robert Millan <rmh@aybabtu.com>
33127
33128 Based on description from Pavel:
33129 * kern/disk.c (grub_disk_check_range): Rename to ...
33130 (grub_disk_adjust_range): ... this. Add a comment explaining the
33131 tasks performed by this function.
33132
ad4936a0 331332008-06-08 Robert Millan <rmh@aybabtu.com>
33134
33135 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
33136 `num_serial' (for consistency with other variables).
33137 (struct grub_ntfs_data): Add `uuid' member.
33138 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
33139 (grub_ntfs_uuid): New function.
33140 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
33141
dc20b0f9 331422008-06-07 Pavel Roskin <proski@gnu.org>
33143
33144 * util/biosdisk.c (open_device): Revert last change to the
33145 function, it broke installation. The sector needs to be
33146 different dependent on which device is opened.
33147
c5e3cfba 331482008-06-06 Robert Millan <rmh@aybabtu.com>
33149
33150 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
33151 rest of GRUB, and breakage doesn't happen if its value were modified.
33152
33153 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33154 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
33155 a constant (same value).
33156 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
33157 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
33158
26a1f8c4 331592008-06-06 Robert Millan <rmh@aybabtu.com>
33160
33161 * util/biosdisk.c (open_device): Do not modify sector offset when
33162 accessing a partition. kern/disk.c already handles this for us.
33163
25d6b327 331642008-06-06 Robert Millan <rmh@aybabtu.com>
33165
33166 * util/grub-emu.c (grub_machine_init): Move code in this function from
33167 here ...
33168 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
33169 segfault in case grub_printf() is called).
33170
33171 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
33172 grub_probe. Update all users not to explicitly add it again.
33173 (grub_device): New variable; contains corresponding device for grubdir.
33174 (fs_module, partmap_module, devabstraction_module): Pass
33175 `--device ${grub_device}' to grub_probe to avoid traversing /dev
33176 every time.
33177
9ece62fb 331782008-06-05 Robert Millan <rmh@aybabtu.com>
33179
33180 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
33181 is found, print it (same layout as with labels).
33182
1ad36d37 331832008-06-04 Robert Millan <rmh@aybabtu.com>
33184
33185 * util/biosdisk.c (get_drive): Rename to ...
33186 (find_grub_drive): ... this. Update all users.
33187
33188 (get_os_disk): Rename to ...
33189 (convert_system_partition_to_system_disk): ... this. Update all users.
33190
33191 (find_drive): Rename to ...
33192 (find_system_device): ... this. Update all users.
33193
e6a30859 331942008-06-04 Robert Millan <rmh@aybabtu.com>
33195
33196 * util/biosdisk.c (get_os_disk): Handle IDA devices.
33197 * util/grub-mkdevicemap.c (get_mmc_disk_name)
33198 (make_device_map): Likewise.
33199
00c108a4 332002008-06-01 Robert Millan <rmh@aybabtu.com>
33201
33202 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
33203 before dereferencing it.
33204
33205 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
33206 union with fat12/fat16-specific ones. Add some new fields, including
33207 `num_serial' for both versions.
33208 (struct grub_fat_data): Add `uuid' member.
33209 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
33210 names. Initialize `data->uuid' using `num_serial'.
33211 (grub_fat_uuid): New function.
33212 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
33213
33214 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
33215 (grub_reiserfs_uuid): New function.
33216 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
33217 member.
33218
33219 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
33220 (grub_xfs_uuid): New function.
33221 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
33222
1385c5bb 332232008-06-01 Robert Millan <rmh@aybabtu.com>
33224
33225 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
33226 code that is backward compatible with pre-uuid search command.
33227
c682dfd7 332282008-05-31 Robert Millan <rmh@aybabtu.com>
33229
33230 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
33231 floppies after everything else, to ensure floppy drive isn't accessed
33232 unnecessarily (patch from Bean).
33233
b7db5d47 332342008-05-31 Robert Millan <rmh@aybabtu.com>
33235
33236 * commands/search.c (search_label, search_fs_uuid, search_file): Do
33237 not print device names when we were asked to set a variable.
33238
6e037aa9 332392008-05-31 Robert Millan <rmh@aybabtu.com>
33240
33241 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
33242 using "cursor-on" and "cursor-off" commands (understood at least by
33243 the Open Firmware flavour on OLPC).
33244
41305bc8 332452008-05-31 Michael Gorven <michael@gorven.za.net>
33246
33247 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
33248 on and off sequences.
33249
69ba137e 332502008-05-31 Robert Millan <rmh@aybabtu.com>
33251
33252 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
33253 * util/update-grub.in: Likewise.
33254
520ae21b 332552008-05-30 Pavel Roskin <proski@gnu.org>
33256
33257 * util/biosdisk.c (linux_find_partition): Simplify logic and
33258 make the code more universal. Keep special processing for
33259 devfs, but use a simple rule for all other devices. If the
33260 device ends with a number, append 'p' and the partition number.
33261 Otherwise, append only the partition number.
33262
5786569b 332632008-05-30 Robert Millan <rmh@aybabtu.com>
33264
33265 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
33266 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
33267 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
33268 the `root' parameter to Linux.
33269
51500452 332702008-05-30 Robert Millan <rmh@aybabtu.com>
33271
33272 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
33273 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
33274 --fs_uuid with --fs-uuid.
33275 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
33276 all filesystems support them).
33277
811d3878 332782008-05-30 Robert Millan <rmh@aybabtu.com>
33279
33280 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 33281 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 33282
cab63c95 332832008-05-30 Robert Millan <rmh@aybabtu.com>
33284
33285 * util/grub.d/00_header.in: Remove obsolete comment referencing
33286 convert_system_path_to_grub_path().
33287 * util/update-grub.in: Likewise.
33288 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
33289 (convert_system_path_to_grub_path): Add a warning message explaining
33290 that this function is deprecated. Rely on is_path_readable_by_grub()
33291 for the readability checks.
33292 (font_path): Use is_path_readable_by_grub() for the readability
33293 check rather than convert_system_path_to_grub_path().
33294
972e2f7a 332952008-05-30 Robert Millan <rmh@aybabtu.com>
33296
33297 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
33298 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
33299 converting it first.
33300 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
33301 grub.cfg for access to font file, and afterwards call it again to set
33302 the root device.
33303
62191274 333042008-05-30 Robert Millan <rmh@aybabtu.com>
33305
33306 * commands/search.c (options): Add --fs_uuid option.
33307 (search_fs_uuid): New function.
33308 (grub_cmd_search): Fix --set argument passing.
33309 Use search_fs_uuid() when requested via --fs_uuid.
33310 (grub_search_init): Update help message.
33311 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
33312 and redeclare it as an array of 16-bit words.
33313 (grub_ext2_uuid): New function.
33314 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
33315 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
33316 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
33317 (GRUB_DEVICE_BOOT_UUID): New variables.
33318 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
33319 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
33320 whenever possible.
33321 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
33322 just assume `root' variable has the right value.
33323 * util/grub.d/10_linux.in: Likewise.
33324 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
33325 via PRINT_FS_UUID.
33326 (main): Recognise `-t fs_uuid' argument.
33327
01b73ec8 333282008-05-30 Robert Millan <rmh@aybabtu.com>
33329
33330 * util/biosdisk.c (map): Redefine structure to hold information
33331 about GRUB drive name.
fe6b695a 33332 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 33333 drive names.
33334 (call_hook): Remove.
33335 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
33336 member. Assume drive has partitions.
33337 (grub_util_biosdisk_open): Access device names via `.device' struct
33338 member.
33339 (open_device): Likewise.
33340 (find_drive): Likewise.
33341 (read_device_map): Adjust map[] usage to match the new struct
33342 definition. Don't check for duplicates (still possible, but not cheap
33343 anymore).
33344 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
33345 (make_device_name): Remove assumption of BIOS-like drive names.
33346
22f16596 333472008-05-30 Pavel Roskin <proski@gnu.org>
33348
33349 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
33350 compiling execute.c doesn't need grub_script.tab.h anymore.
33351 (normal/command.c_DEPENDENCIES): Likewise.
33352 (normal/function.c_DEPENDENCIES): Likewise.
33353 * conf/i386-ieee1275.rmk: Likewise.
33354 * conf/i386-linuxbios.rmk: Likewise.
33355 * conf/i386-pc.rmk: Likewise.
33356 * conf/powerpc-ieee1275.rmk: Likewise.
33357 * conf/sparc64-ieee1275.rmk: Likewise.
33358
528ad8f2 333592008-05-29 Pavel Roskin <proski@gnu.org>
33360
d1dff95d 33361 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
33362 when scanning metadata for volume group name.
33363
528ad8f2 33364 * include/grub/script.h: Don't include grub_script.tab.h. It's
33365 a generated file, which may only be included from the files with
33366 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
33367 use union YYSTYPE, as the later allows forward declaration.
33368 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
33369
47248e08 333702008-05-29 Robert Millan <rmh@aybabtu.com>
33371
33372 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
33373 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
33374 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
33375 (grub_console_checkkey): Add grub_dprintf() call to report unknown
33376 scan codes.
33377
ee632529 333782008-05-29 Robert Millan <rmh@aybabtu.com>
33379
33380 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
33381 control key combinations.
33382
eee96e08 333832008-05-29 Robert Millan <rmh@aybabtu.com>
33384
33385 * util/powerpc/ieee1275/grub-install.in: Move from here ...
33386 * util/ieee1275/grub-install.in: ... to here.
33387 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
33388 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
33389 (grub_install_SOURCES): Likewise.
33390
da9a6a94 333912008-05-29 Robert Millan <rmh@aybabtu.com>
33392
33393 * fs/affs.c: Update copyright year.
33394 * fs/ext2.c: Likewise.
33395 * fs/fshelp.c: Likewise.
33396 * fs/hfsplus.c: Likewise.
33397 * fs/ntfs.c: Likewise.
33398 * fs/xfs.c: Likewise.
33399 * include/grub/fshelp.h: Likewise.
33400 * util/grub-mkdevicemap.c: Likewise.
33401
12e65f3a 334022008-05-28 Robert Millan <rmh@aybabtu.com>
33403
33404 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
33405 might need to be fatfs to support some firmware implementations
33406 (e.g. OFW or EFI).
33407
23023641 334082008-05-28 Robert Millan <rmh@aybabtu.com>
33409
33410 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
33411 devices.
33412 * util/grub-mkdevicemap.c (get_mmc_disk_name)
33413 (make_device_map): Likewise.
33414
887d2619 334152008-05-20 Bean <bean123ch@gmail.com>
33416
33417 * fs/fshelp.c (grub_fshelp_map_block): New function.
33418 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
33419 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
33420
33421 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
33422 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
33423 (grub_fshelp_journal): New structure.
33424 (grub_fshelp_map_block): New function prototype.
33425 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
33426 (grub_fshelp_map_block): Likewise.
33427
33428 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
33429 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
33430 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
33431 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
33432 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
33433 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
33434 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
33435 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
33436 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
33437 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
33438 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
33439 (grub_ext2_sblock): New members for journal support.
33440 (grub_ext3_journal_header): New structure.
33441 (grub_ext3_journal_revoke_header): Likewise.
33442 (grub_ext3_journal_block_tag): Likewise.
33443 (grub_ext3_journal_sblock): Likewise.
33444 (grub_fshelp_node): New members logfile and journal.
33445 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
33446 grub_fshelp_map_block to get real block number.
33447 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
33448 number.
33449 (grub_ext2_read_inode): Likewise.
33450 (grub_ext3_get_journal): New function.
33451 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
33452 (grub_ext2_close): Release memory used by journal.
33453
33454 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
33455 (REISERFS_MAGIC_DESC_BLOCK): New macro.
33456 (grub_reiserfs_transaction_header): Renamed to
33457 grub_reiserfs_description_block, replace field data with real_blocks.
33458 (grub_reiserfs_commit_block): New structure.
33459 (grub_reiserfs_data): New member journal.
33460 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
33461 number.
33462 (grub_reiserfs_read_symlink): Likewise.
33463 (grub_reiserfs_iterate_dir): Likewise.
33464 (grub_reiserfs_open): Likewise.
33465 (grub_reiserfs_read): Likewise.
33466 (grub_reiserfs_get_journal): New function.
33467 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
33468 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
33469 using grub_reiserfs_get_journal.
33470 (grub_reiserfs_close): Release memory used by journal.
33471
33472 * fs/affs.c (grub_affs_read_block): Change block type to
33473 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
33474
33475 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
33476
33477 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
33478
33479 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
33480
33481 * fs/udf.c (grub_udf_read_block): Change block type to
33482 grub_disk_addr_t. Use type cast to avoid warning.
33483
33484 * fs/xfs.c (grub_xfs_read_block): Likewise.
33485
b7c6bed5 334862008-05-16 Christian Franke <franke@computer.org>
33487
33488 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
33489 to ensure that break with ESC will always work.
33490 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
33491 Remove ESC from keyboard queue.
33492
eedf167f 334932008-05-16 Christian Franke <franke@computer.org>
33494
33495 * util/biosdisk.c: [__CYGWIN__] Add includes.
33496 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
33497 (get_os_disk): Move variable declarations to OS specific
33498 parts to avoid warning.
33499 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
33500 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
33501 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
33502 Cygwin.
33503 * util/getroot.c: [__CYGWIN__] Add includes.
33504 (strip_extra_slashes): Fix "/" case.
33505 [__CYGWIN__] (get_win32_path): New function.
33506 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
33507 [__CYGWIN__] (find_root_device): Disable.
33508 [__CYGWIN__] (get_bootsec_serial): New function.
33509 [__CYGWIN__] (find_cygwin_root_device): Likewise.
33510 [__linux__] (grub_guess_root_device): Add early returns to simplify
33511 structure.
33512 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
33513 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
33514 check for Linux only.
33515
a079699e 335162008-05-15 Bean <bean123ch@gmail.com>
33517
33518 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
33519 keyboard hang problem in apple's intel mac.
33520
1cf4059a 335212008-05-09 Robert Millan <rmh@aybabtu.com>
33522
33523 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
33524 devices.
33525 * util/grub-mkdevicemap.c (get_virtio_disk_name)
33526 (make_device_map): Likewise.
33527 Reported by Aurelien Jarno <aurel32@debian.org>
33528
ed759390 335292008-05-07 Ian Campbell <ijc@hellion.org.uk>
33530
33531 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
33532 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
33533 (make_device_map): Output entries for xvd type disks.
33534
b56c4eaa 335352008-05-07 Robert Millan <rmh@aybabtu.com>
33536
33537 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
33538 devices.
33539 * util/grub-mkdevicemap.c (get_cciss_disk_name)
33540 (make_device_map): Likewise.
33541 Reported by Roland Dreier <rdreier@cisco.com>
33542
7f8866ed 335432008-05-07 Robert Millan <rmh@aybabtu.com>
33544
33545 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
33546 grub_strstr() call. Correct a few mistakes in failure path handling.
33547
b0346e0f 335482008-05-06 Robert Millan <rmh@aybabtu.com>
33549
33550 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
33551 Do not print a trailing slash (therefore, the root directory is an
33552 empty string).
33553 (convert_system_path_to_grub_path): Do not remove trailing slash
33554 from make_system_path_relative_to_its_root() output.
33555
33556 * util/i386/pc/grub-install.in: Add trailing slash to output from
33557 make_system_path_relative_to_its_root().
33558
6cf12cbd 335592008-05-06 Robert Millan <rmh@aybabtu.com>
33560
33561 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
33562 ensures that output lines aren't intermangled with those sent to
33563 stderr (via grub_util_info()).
33564 * util/grub-probe.c (grub_refresh): Likewise.
33565 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
33566
0fbb3117 335672008-05-05 Christian Franke <franke@computer.org>
33568
33569 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
33570 Add Cygwin device names.
33571 (get_ide_disk_name) [__CYGWIN__]: Likewise.
33572 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
33573 (check_device): Return error instead of success on empty name.
33574 (make_device_map): Move label inside linux specific code to
33575 prevent compiler warning.
33576
8124cdb7 335772008-04-30 Robert Millan <rmh@aybabtu.com>
33578
33579 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
33580 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
33581 first boot option.
33582 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
33583
094c01d0 335842008-04-29 Robert Millan <rmh@aybabtu.com>
33585
33586 * docs/grub.cfg: New file (example GRUB configuration).
33587
f4b1fc02 335882008-04-26 Robert Millan <rmh@aybabtu.com>
33589
329ce2a5 33590 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
33591 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
33592 and `disk/ieee1275/nand.c'.
f4b1fc02 33593
25f16ec1 335942008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 33595
25f16ec1 33596 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
33597 i386-linuxbios.
33598
33599 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
33600 change the buffer size to 4096 for cdrom device.
33601
33602 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
33603 and nand.mod.
33604 (_linux_mod_SOURCES): New variable.
33605 (_linux_mod_CFLAGS): Likewise.
33606 (_linux_mod_LDFLAGS): Likewise.
33607 (linux_mod_SOURCES): Likewise.
33608 (linux_mod_CFLAGS): Likewise.
33609 (linux_mod_LDFLAGS): Likewise.
33610 (nand_mod_SOURCES): Likewise.
33611 (nand_mod_CFLAGS): Likewise.
33612 (nand_mod_LDFLAGS): Likewise.
33613
33614 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
33615 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
33616 type property. (nand device in olpc don't have this property)
33617
33618 * include/grub/disk.h (grub_disk_dev_id): New macro
33619 GRUB_DISK_DEVICE_NAND_ID.
33620
33621 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
33622 function prototype.
33623 (grub_rescue_cmd_initrd): Likewise.
33624
33625 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
33626 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
33627 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 33628
25f16ec1 33629 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
33630 GRUB_MACHINE_IEEE1275 is defined.
33631
33632 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
33633 Use NESTED_FUNC_ATTR attribute on the hook parameter.
33634
33635 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
33636 on nested function heap_init.
33637 (grub_upper_mem): New variable for i386-ieee1275.
33638 (grub_get_extended_memory): New function for i386-ieee1275.
33639 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
33640
33641 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
33642 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
33643 property.
f19dbdb7 33644
25f16ec1 33645 * loader/i386/ieee1275/linux.c: New file.
33646
33647 * loader/i386/ieee1275/linux_normal.c: New file.
33648
33649 * disk/ieee1275/nand.c: New file.
33650
e89d61e9 336512008-04-18 Thomas Schwinge <tschwinge@gnu.org>
33652
33653 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
33654 value.
33655 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
33656
602566f6 336572008-04-18 Robert Millan <rmh@aybabtu.com>
33658
33659 Restructures early code path on ieee1275 to unify grub_main() as
33660 the first C function that is executed in every platform.
33661
33662 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
33663 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
33664 cmain().
33665 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
33666 * kern/ieee1275/cmain.c (cmain): Rename to ...
33667 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
33668 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
33669 at the beginning.
33670
57490c2b 336712008-04-18 Robert Millan <rmh@aybabtu.com>
33672
33673 * util/update-grub.in: Fix syntax error when setting
33674 `GRUB_PRELOAD_MODULES'.
33675 Reported by Stephane Chazelas <stephane@artesyncp.com>
33676
1977517d 336772008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
33678
33679 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
33680 section into account, newer toolchains generate unique build ids
33681 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 33682 we want build ids to be preserved
1977517d 33683 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
33684 far from other sections don't cause the raw binary images grow
33685 size
33686
bfb1f1a2 336872008-04-15 Robert Millan <rmh@aybabtu.com>
33688
33689 * disk/lvm.c: Update copyright year.
33690 * kern/misc.c: Likewise.
33691
01979850 336922008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
33693
33694 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 33695 there is no memory left for physical volume name.
01979850 33696
0a1150e2 336972008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
33698
33699 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
33700 volume name mapping to support bigger than 9 character names properly.
33701
82ead3fe 337022008-04-13 Robert Millan <rmh@aybabtu.com>
33703
33704 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
33705 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
33706
e54a72f5 337072008-04-13 Christian Franke <franke@computer.org>
33708
33709 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
33710 to create a floppy emulation boot CD when non emulation mode
33711 does not work.
33712 Enable Joliet CD filesystem extension.
33713
9fe86034 337142008-04-13 Robert Millan <rmh@aybabtu.com>
33715
33716 * kern/misc.c (grub_strncat): Fix off-by-one error.
33717 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
33718
33719 * kern/env.c (grub_env_context_close): Clear current context, not
33720 previous one.
33721 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
33722
33723 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
33724
7ceeee39 337252008-04-13 Robert Millan <rmh@aybabtu.com>
33726
33727 Improve robustness when handling LVM.
33728
33729 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 33730 (and leave `*p' unmodified).
7ceeee39 33731 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
33732 through it.
33733 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
33734 iterating through it.
33735 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
33736 through it.
fe6b695a 33737 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 33738 when due) on each grub_lvm_getvalue() or grub_strstr() call.
33739 Don't assume `vg->pvs != NULL' when iterating through it.
33740
58cd3d85 337412008-04-13 Robert Millan <rmh@aybabtu.com>
33742
33743 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
33744 * genmk.rb (partmap): New variable.
33745 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
33746 (#{partmap}): New target rule.
33747 * genpartmaplist.sh: New file.
33748 * Makefile.in (pkglib_DATA): Add partmap.lst.
33749 (partmap.lst): New target rule.
33750 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
33751 modules (including all partition maps), instead of preloading them.
33752
78b51059 337532007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
33754
33755 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
33756 `linux-boot-prober' (if installed) to detect other operating
33757 systems which are installed on the computer and add them to
33758 the boot menu.
33759 * conf/common.rmk: Build and install 30_os-prober.
33760
a91627b4 337612008-04-12 Robert Millan <rmh@aybabtu.com>
33762
33763 * kern/powerpc/ieee1275/init.c: Move from here ...
33764 * kern/ieee1275/init.c: ... to here. Update all users.
33765
33766 * kern/powerpc/ieee1275/cmain.c: Move from here ...
33767 * kern/ieee1275/cmain.c: ... to here. Update all users.
33768
33769 * kern/powerpc/ieee1275/openfw.c: Move from here ...
33770 * kern/ieee1275/openfw.c: ... to here. Update all users.
33771
33772 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
33773 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
33774
322562ea 337752008-04-10 Pavel Roskin <proski@gnu.org>
33776
33777 * configure.ac: Always use "_cv_" in cache variables for
33778 compatibility with Autoconf 2.62.
33779
a02a73c5 337802008-04-07 Robert Millan <rmh@aybabtu.com>
33781
33782 Revert grub/machine/init.h addition by Pavel (since it breaks on
33783 i386-ieee1275 and others):
33784 * util/i386/pc/misc.c: Remove grub/machine/init.h.
33785 * util/powerpc/ieee1275/misc.c: Likewise.
33786
25c024b1 337872008-04-07 Robert Millan <rmh@aybabtu.com>
33788
33789 * util/grub-probe.c (probe): Improve error message.
33790
3cbd2f98 337912008-04-07 Robert Millan <rmh@aybabtu.com>
33792
33793 * util/biosdisk.c (read_device_map): Skip devices that don't exist
33794 (this prevents the presence of a bogus entry from ruining the whole
33795 thing).
33796
87a297bf 337972008-04-06 Pavel Roskin <proski@gnu.org>
33798
36747a62 33799 * util/biosdisk.c: Include grub/util/biosdisk.h.
33800 * util/grub-fstest.c (execute_command): Make static.
33801 * util/grub-mkdevicemap.c (check_device): Likewise.
33802 * util/i386/pc/misc.c: Include grub/machine/init.h.
33803 * util/powerpc/ieee1275/misc.c: Likewise.
33804 * util/lvm.c: Include grub/util/lvm.h.
33805 * util/misc.c: Include grub/kernel.h, grub/misc.h and
33806 grub/cache.h.
33807 * util/raid.c: Include grub/util/raid.h.
33808 (grub_util_getdiskname): Make static.
33809
87a297bf 33810 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
33811 grub_hostfs_fini(), as they are called from grub_init_all() and
33812 grub_fini_all() respectively. This fixes an infinite loop in
33813 grub-fstest due to double registration of hostfs.
33814 Reported by Christian Franke <Christian.Franke@t-online.de>
33815
f6ce7629 338162008-04-05 Pavel Roskin <proski@gnu.org>
33817
33818 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
33819 all 8 functions. Otherwise, probe function 0 only.
33820
070e49e4 338212008-04-04 Pavel Roskin <proski@gnu.org>
33822
8b088a4c 33823 * commands/lspci.c (grub_lspci_iter): Print the bus number
33824 correctly.
33825
4f657021 33826 * commands/lspci.c (grub_pci_classes): Fix typos.
33827 (grub_lspci_iter): Don't print func twice. Print vendor ID
33828 before device ID, as it's normally done.
33829
070e49e4 33830 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
33831 Fix signedness warnings.
33832 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
33833 Likewise.
33834 * util/ieee1275/get_disk_name.c: Include config.h so that
33835 _GNU_SOURCE is defined and getline() is declared. Mark an
33836 unused argument as such. Fix a signedness warning.
33837
ba7328dc 338382008-04-02 Pavel Roskin <proski@gnu.org>
33839
26887f22 33840 * genkernsyms.sh.in: Use more robust assignments for CC and
33841 srcdir. Quote srcdir.
33842 * gensymlist.sh.in: Likewise. Assert at the compile time that
33843 the symbol table is not empty.
33844
ba7328dc 33845 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
33846 * fs/cpio.c (grub_cpio_read): Likewise.
33847
0f582c6b 338482008-04-01 Pavel Roskin <proski@gnu.org>
33849
4b6e1995 33850 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
33851 * disk/host.c (grub_host_open): Likewise.
33852 * disk/loopback.c (grub_loopback_open): Likewise.
33853 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
33854 disk->id as in disk/host.c, not a multi-character constant.
33855
828a2768 33856 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
33857 later is obsolete, potentially dangerous and sets a bad example.
33858 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
33859 * util/misc.c (grub_util_get_image_size): Likewise.
33860
2bb4fb47 33861 * disk/loopback.c (options): Improve help for "--partitions".
33862
0f582c6b 33863 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
33864 options to align them with the short options, e.g. "echo -e".
33865
a33224e0 338662008-03-31 Bean <bean123ch@gmail.com>
33867
33868 * video/reader/png.c (grub_png_data): New member is_16bit and
33869 image_data.
33870 (grub_png_decode_image_header): Detect 16 bit png image.
33871 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
33872 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
33873 (grub_video_reader_png): Release memory occupied by image_data.
33874
33875 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
33876 4096 bytes.
33877 (grub_nfs_mount): Skip the test for sector per cluster.
33878
33879 * include/grub/ntfs.h (MAX_SPC): Removed.
33880
86cb4f54 338812008-03-31 Bean <bean123ch@gmail.com>
33882
33883 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
33884 (grub_probe_SOURCES): Add fs/afs.c.
33885 (grub_fstest_SOURCES): Likewise.
33886 (afs_mod_SOURCES): New variable.
33887 (afs_mod_CFLAGS): Likewise.
33888 (afs_mod_LDFLAGS): Likewise.
33889
33890 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
33891 (grub_emu_SOURCES): Likewise.
33892
33893 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33894
33895 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33896
33897 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33898
33899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33900
33901 * fs/afs.c: New file.
33902
17c74c21 339032008-03-30 Pavel Roskin <proski@gnu.org>
33904
4cb68e89 33905 * disk/host.c: Include grub/misc.h to fix a warning.
33906 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
33907 warnings about implicit declarations.
33908
8790bb04 33909 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
33910 variable.
33911 * include/grub/i386/loader.h: Change declaration of
33912 grub_linux_boot() to match what grub_loader_set() expects.
33913 * util/getroot.c (grub_guess_root_device): Return const char* to
33914 fix a warning.
33915 * util/grub-probe.c (probe): Fix a warning about uninitialized
33916 abstraction_name variable.
33917 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
33918 second argument as unused to fix a warning.
33919
9a3f3296 33920 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
33921 missing grub_error() call.
33922
0ecef90d 33923 * util/update-grub_lib.in: Define datarootdir, since Autoconf
33924 2.60 and newer uses it to define datadir.
33925
0bf6d401 33926 * commands/sleep.c: Fix warning about implicit declaration.
33927 * disk/memdisk.c: Likewise.
33928 * loader/aout.c: Likewise.
33929 * loader/i386/bsd_normal.c: Likewise.
33930 * util/grub-probe.c: Likewise.
33931
7cdacf97 33932 * commands/i386/cpuid.c (has_longmode): Make static.
33933 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
33934 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
33935
17c74c21 33936 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
33937 GDT. This is more robust, as %ds can change.
33938 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
33939 calling real_to_prot().
33940 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
33941
80a3e68b 339422008-03-28 Pavel Roskin <proski@gnu.org>
33943
33944 * kern/i386/pc/startup.S: Assert that uncompressed functions
33945 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
33946 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
33947 code, as they push parts of the code (error handlers) beyond
33948 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
33949 code as correctness and size.
33950
77bcd272 339512008-03-28 Pavel Roskin <proski@gnu.org>
33952
33953 * kern/i386/pc/startup.S
33954 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
33955 data block address to the real mode, keep offset minimal. This
33956 works around a bug in AWARD BIOS on old Athlon systems, which
33957 makes CD detection hang.
33958
c5dfd43b 339592008-03-26 Pavel Roskin <proski@gnu.org>
33960
33961 * normal/color.c (grub_parse_color_name_pair): Make `name' a
33962 const.
33963 * include/grub/normal.h: Add grub_parse_color_name_pair()
33964 declaration.
33965
bf962df2 339662008-03-24 Bean <bean123ch@gmail.com>
33967
33968 * disk/i386/pc/biosdisk.c (cd_start): Removed.
33969 (cd_count): Removed.
33970 (cd_drive): New variable.
33971 (grub_biosdisk_get_drive): Don't check for (cdN) device.
33972 (grub_biosdisk_call_hook): Likewise.
33973 (grub_biosdisk_iterate): Change cdrom detection method.
33974 (grub_biosdisk_open): Replace cd_start with cd_drive.
33975 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
33976 detect cdrom device.
33977
33978 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
33979 Removed.
33980 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
33981 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
33982 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
33983 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
33984 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
33985 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
33986 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
33987 (grub_biosdisk_cdrp): New structure.
33988 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
33989
33990 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
33991
33992 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
33993 device.
33994
33995 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
33996 New function.
33997
68e7fc7a 339982008-03-20 Robert Millan <rmh@aybabtu.com>
33999
34000 Remove 2 TiB limit in ata.mod.
34001 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
34002 (grub_ata_dumpinfo): Print sector count with 0x%llx.
34003 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
34004 grub_uint64_t instead of grub_uint32_t.
34005
38ad2cf5 340062008-03-05 Bean <bean123ch@gmail.com>
34007
34008 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
34009 (grub_multiboot): Set boot device.
34010
34011 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
34012
2b89344e 340132008-03-02 Bean <bean123ch@gmail.com>
34014
34015 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
34016 symlink_buffer.
34017
87a95d1f 340182008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
34019
34020 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
34021 texinfo.tex.
34022
34023 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
34024 modified.
34025
34026 * docs/fdl.texi: New file.
f19dbdb7 34027
87a95d1f 34028 * docs/mdate-sh: New file. Copied from gnulib.
34029 * docs/texinfo.tex: Likewise.
34030
34031 * config.guess: Updated from gnulib.
34032 * install-sh: Likewise.
34033
7dc15d8e 340342008-02-28 Robert Millan <rmh@aybabtu.com>
34035
34036 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
34037 (aout_mod_SOURCES): New variable.
34038 (aout_mod_CFLAGS): Likewise.
34039 (aout_mod_LDFLAGS): Likewise.
34040
34041 * conf/i386-ieee1275.rmk: Likewise.
34042
b00ab696 340432008-02-28 Robert Millan <rmh@aybabtu.com>
34044
34045 * util/update-grub.in: Reorganise terminal validity check. Accept
34046 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
34047 Based on suggestion by Franklin PIAT.
34048
79ca2d78 340492008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
34050
34051 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
34052 function.
34053 * util/getroot.c (grub_util_check_block_device): New function that
34054 returns the given argument if it is a block device and returns NULL else.
34055 * util/grub-probe.c (argument_is_device): New variable.
34056 (probe): Promote device_name from a variable to an argument. Receive
34057 device_name from grub_util_check_block_device() if path is NULL and from
34058 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 34059 (options): Introduce new parameter '-d, --device'.
79ca2d78 34060 (main): Add description of the new parameter to the help screen.
34061 Rename path variable to argument. Set argument_is_device if the '-d'
34062 option is given. Pass argument to probe() depending on
34063 argument_is_device.
34064
0d16e571 340652008-02-24 Bean <bean123ch@gmail.com>
34066
34067 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
34068 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
34069 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
34070 (GRUB_ISO9660_VOLDESC_PART): Likewise.
34071 (GRUB_ISO9660_VOLDESC_END): Likewise.
34072 (grub_iso9660_primary_voldesc): New member escape.
34073 (grub_iso9660_data): New member joliet.
34074 (grub_iso9660_convert_string): New function.
34075 (grub_iso9660_mount): Detect joliet extension.
34076 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
34077 (grub_iso9660_iso9660_label): Likewise.
34078
34079 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
34080 (grub_setup_SOURCES): Add fs/udf.c.
34081 (grub_fstest_SOURCES): Likewise.
34082 (udf_mod_SOURCES): New variable.
34083 (udf_mod_CFLAGS): Likewise.
34084 (udf_mod_LDFLAGS): Likewise.
34085
34086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
34087 (grub_emu_SOURCES): Likewise.
34088
34089 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34090
34091 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34092
34093 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34094
34095 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34096
34097 * fs/udf.c: New file.
34098
8a594a17 340992008-02-24 Robert Millan <rmh@aybabtu.com>
34100
34101 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
34102 (normal/lexer.c_DEPENDENCIES): New variables.
34103 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34104 (normal/lexer.c_DEPENDENCIES): Likewise.
34105 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
34106 (normal/lexer.c_DEPENDENCIES): Likewise.
34107 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
34108 (normal/lexer.c_DEPENDENCIES): Likewise.
34109 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34110 (normal/lexer.c_DEPENDENCIES): Likewise.
34111 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
34112 (normal/lexer.c_DEPENDENCIES): Likewise.
34113
2dc33c03 341142008-02-23 Robert Millan <rmh@aybabtu.com>
34115
34116 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
34117 since they were intended to be in hex. This didn't break previously
34118 because of a bug in gpt_partition_map_iterate() (see below).
34119
34120 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
34121 when checking the validity of GPT header.
34122 Remove `partno', since it always provides the same information as `i'.
34123
f6f4cfb0 341242008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
34125
34126 * include/grub/efi/time.h: Fix a wrong comment.
34127
79ff665f 341282008-02-19 Pavel Roskin <proski@gnu.org>
34129
34130 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
34131 message.
34132
d38e24c2 341332008-02-19 Bean <bean123ch@gmail.com>
34134
34135 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
34136 (aout_mod_SOURCES): New variable.
34137 (aout_mod_CFLAGS): Likewise.
34138 (aout_mod_LDFLAGS): Likewise.
34139 (_bsd_mod_SOURCES): New variable.
34140 (_bsd_mod_CFLAGS): Likewise.
34141 (_bsd_mod_LDFLAGS): Likewise.
34142 (bsd_mod_SOURCES): New variable.
34143 (bsd_mod_CFLAGS): Likewise.
34144 (bsd_mod_LDFLAGS): Likewise.
34145
34146 * include/grub/aout.h: New file.
34147
34148 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
34149
34150 * include/grub/i386/bsd.h: New file.
34151
34152 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
34153 to make it public.
34154
34155 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
34156 function is called, so that it's possible to change it inside the hook.
34157 (grub_elf64_load): Likewise.
34158 (grub_elf_file): Don't close the file if elf header is not found.
34159 (grub_elf_close): Close the file if grub_elf_file fails (The new
34160 grub_elf_file won't close it).
34161 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
34162 (grub_elf64_size): Likewise.
34163
34164 * kern/i386/loader.S (grub_unix_real_boot): New function.
34165
34166 * loader/aout.c: New file.
34167
34168 * loader/i386/bsd.c: New file.
34169
34170 * loader/i386/bsd_normal.c: New file.
34171
34172 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
34173
34174 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 34175 can test other formats.
d38e24c2 34176
b93bdb0f 341772008-02-19 Robert Millan <rmh@aybabtu.com>
34178
34179 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
34180 (grub_gpt_partition_type_empty): Redefine with macro from
34181 `<grub/gpt_partition.h>'.
34182 (gpt_partition_map_iterate): Adjust partition type comparison.
34183
34184 Export `entry' as partmap-specific `part.data' struct.
34185 (grub_gpt_header, grub_gpt_partentry): Move from here ...
34186
34187 * include/grub/gpt_partition.h (grub_gpt_header)
34188 (grub_gpt_partentry): ... to here (new file).
34189
34190 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
34191
34192 (grub_gpt_partition_type_bios_boot): New const variable, defined
34193 with macro from `<grub/gpt_partition.h>'.
34194
34195 (setup): Replace `first_start' with `embed_region', which keeps
34196 track of the embed region (and is partmap-agnostic).
34197
34198 Replace find_first_partition_start() with find_usable_region(),
34199 which finds a usable region for embedding using partmap-specific
34200 knowledge (supports PC/MSDOS and GPT).
34201
34202 Fix all assumptions that the embed region start at sector 1, using
34203 `embed_region.start' from now on. Similarly, use `embed_region.end'
34204 rather than `first_start' to calculate available size.
34205
34206 In grub_util_info() message, replace "into after the MBR" with an
34207 indication of the specific sector our embed region starts at.
34208
66cb40f6 342092008-02-19 Robert Millan <rmh@aybabtu.com>
34210
34211 * DISTLIST: Replace `commands/ieee1275/halt.c' and
34212 `commands/ieee1275/reboot.c' with `commands/halt.c' and
34213 `commands/reboot.c'.
34214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
34215 (halt_mod_SOURCES): Likewise.
34216 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
34217 (halt_mod_SOURCES): Likewise.
34218
b7202015 342192008-02-17 Christian Franke <franke@computer.org>
34220
34221 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
34222
32b0fc49 342232008-02-17 Robert Millan <rmh@aybabtu.com>
34224
34225 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
34226 set `first_start' to 0 for non-PC/MSDOS partition maps.
34227
aca63502 342282008-02-16 Robert Millan <rmh@aybabtu.com>
34229
34230 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
34231 do not assume partition map is PC/MSDOS before performing checks that
34232 are specific to that layout.
34233
0de8be86 342342008-02-13 Robert Millan <rmh@aybabtu.com>
34235
34236 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
34237 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
34238 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
34239
c3db8364 342402008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
34241
34242 * configure.ac: Only a cosmetic change on the handling of
34243 -fno-stack-protector.
34244
f714229e 342452008-02-12 Alexandre Boeglin <alex@boeglin.org>
34246
c3db8364 34247 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
34248 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
34249 reboot.c.
f714229e 34250 (grub_install_SOURCES): Add halt.mod and reboot.mod.
34251 (halt_mod_SOURCES): New variable.
34252 (halt_mod_CFLAGS): Likewise.
34253 (halt_mod_LDFLAGS): Likewise.
34254 (reboot_mod_SOURCES): Likewise.
34255 (reboot_mod_CFLAGS): Likewise.
34256 (reboot_mod_LDFLAGS): Likewise.
34257
c3db8364 34258 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
34259 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
34260 reboot.c.
f714229e 34261 (halt_mod_SOURCES): Likewise.
34262 (reboot_mod_SOURCES): Likewise.
34263
c3db8364 34264 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
34265 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 34266 (reboot_mod_SOURCES): Likewise.
34267
34268 * commands/i386/pc/reboot.c: merge this file ...
34269
34270 * commands/ieee1275/reboot.c: ... and this file ...
34271
34272 * commands/reboot.c: ... to this file.
c3db8364 34273 Add some precompiler directive to include the correct header for
34274 each machine.
f714229e 34275
34276 * commands/ieee1275/halt.c: move this file ...
34277
34278 * commands/halt.c: ... to here.
c3db8364 34279 Add some precompiler directive to include the correct header for
34280 each machine.
f714229e 34281
34282 * include/grub/efi/efi.h (grub_reboot): New function declaration.
34283 (grub_halt): Likewise.
34284
34285 * kern/efi/efi.c (grub_reboot): New function.
34286 (grub_halt): Likewise.
34287
c74493e0 342882008-02-12 Robert Millan <rmh@aybabtu.com>
34289
34290 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
34291 /dev (like it is done for /dev/mapper). This doesn't provide support
34292 for EVMS, but at least it is now easy to identify the problem when it
34293 arises.
34294
d0db4b04 342952008-02-11 Robert Millan <rmh@aybabtu.com>
34296
34297 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
34298 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
34299 comparing it with -1, not 0.
34300
bf748642 343012008-02-10 Robert Millan <rmh@aybabtu.com>
34302
34303 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
34304 `disk/lvm.c'.
34305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34306 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
34307
34308 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
34309 `disk/lvm.c' to the end of the list.
34310 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34311 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34312
b5db202a 343132008-02-10 Robert Millan <rmh@aybabtu.com>
34314
34315 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
34316 grub_print_error() instead. This will let user know why we're entering
34317 rescue mode.
34318 Based on suggestions from Sam Morris.
34319
83abee31 343202008-02-10 Alexandre Boeglin <alex@boeglin.org>
34321
34322 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
34323 on remaining N args, instead of "--" arg N times.
34324
78d5a08b 343252008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
34326
34327 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
34328 (fill_with_default_glyph): Changed to use unknown_glyph for fill
34329 pattern for unknown glyphs.
34330
68807e5f 343312008-02-09 Robert Millan <rmh@aybabtu.com>
34332
34333 * configure.ac: Probe for `help2man'.
34334 * Makefile.in (builddir): New variable.
34335 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
34336 or otherwise add a few flags/options to it.
34337 (install-local): For every executable utility or script that is
34338 installed, invoke $(HELP2MAN) to install a manpage based on --help
34339 output.
34340
34341 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
34342 that it doesn't prevent --help from working in build tree.
34343
34344 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
34345 with `bug-grub@gnu.org'.
34346 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
34347 * util/update-grub.in (usage): New function.
34348 Implement proper argument check, with support for --help and --version
34349 (as well as existing -y).
34350
343512008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 34352
34353 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
34354 avoid overwriting previous output.
34355 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
34356
c1962162 343572008-02-09 Robert Millan <rmh@aybabtu.com>
34358
34359 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
34360 drawing the menu.
34361
3dac2e3f 343622008-02-09 Robert Millan <rmh@aybabtu.com>
34363
34364 * commands/sleep.c: New file.
34365 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
34366 (sleep_mod_SOURCES): New variable.
34367 (sleep_mod_CFLAGS): Likewise.
34368 (sleep_mod_LDFLAGS): Likewise.
34369
7a634e08 343702008-02-09 Robert Millan <rmh@aybabtu.com>
34371
34372 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
34373 situations in which we can deduce the RAID size and the superblock
34374 doesn't match it.
34375
b92f0c18 343762008-02-09 Robert Millan <rmh@aybabtu.com>
34377
34378 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
34379 and return a grub_diskmemberlist_t composed of LVM physical volumes.
34380 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
34381
34382 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
34383 and return a grub_diskmemberlist_t composed of physical array members.
34384 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
34385
34386 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
34387 prototype.
34388 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
34389 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
34390 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
34391
34392 * util/grub-probe.c (probe): Move partmap probing code from here ...
34393 (probe_partmap): ... to here.
34394 (probe): Use probe_partmap() once for the disk we're probing, and
34395 additionally, when such disk contains a memberlist() struct member,
34396 once for each disk that is contained in the structure returned by
34397 memberlist().
34398
91a4bf68 343992008-02-09 Robert Millan <rmh@aybabtu.com>
34400
34401 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
34402 environment variable to 'all' in order to obtain debug output from
34403 non-util/ code.
34404 * util/i386/pc/grub-setup.c (main): Likewise.
34405
a96f9caa 344062008-02-08 Robert Millan <rmh@aybabtu.com>
34407
34408 * disk/raid.c (grub_raid_scan_device): Check for
34409 `array->device[sb.this_disk.number]' rather than for
34410 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 34411 guaranteed to be accessible.
a96f9caa 34412
b37a9222 344132008-02-08 Robert Millan <rmh@aybabtu.com>
34414
34415 * disk/raid.c: Update copyright.
34416 * fs/cpio.c: Likewise.
34417 * include/grub/raid.h: Likewise.
34418 * loader/i386/pc/multiboot.c: Likewise.
34419 * util/hostfs.c: Likewise.
34420
5626aee1 344212008-02-08 Robert Millan <rmh@aybabtu.com>
34422
34423 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
34424 to a grub_disk_t array.
34425 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
34426 `device[x]'.
34427 (grub_raid_scan_device): Replace `device[x].name' accesses with
34428 `device[x]->name'. Simplify initialization of `array->device[x]'.
34429
554f0187 344302008-02-08 Robert Millan <rmh@aybabtu.com>
34431
34432 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
34433 grub_dprintf() calls.
34434 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
34435 error message.
34436
1ec8425d 344372008-02-07 Christian Franke <franke@computer.org>
34438
34439 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
34440 instead of fseek and ftell to support large files.
34441 (grub_hostfs_read): Likewise.
34442
f2156fda 344432008-02-07 Robert Millan <rmh@aybabtu.com>
34444
34445 Patch from Jeroen Dekkers.
34446 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 34447 failure, since successfully reading all array members might not be
f2156fda 34448 required.
34449
9216e0e7 344502008-02-06 Robert Millan <rmh@aybabtu.com>
34451
34452 * util/grub-probe.c (probe): Simplify partmap probing (with the
34453 assumption that the first word up to the underscore equals to
34454 the module name).
34455
b0dfd29a 344562008-02-06 Christian Franke <franke@computer.org>
34457
34458 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
34459 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
34460 last block of a cpio or tar stream.
34461 Check for "TRAILER!!!" instead of any empty data
34462 block to detect last block of a cpio stream.
34463 (grub_cpio_dir): Fix constness of variable np.
34464 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
34465 cpio or tar trailer is detected. This fixes a crash
34466 on open of a non existing file.
34467
c32865bf 344682008-02-05 Bean <bean123ch@gmail.com>
34469
34470 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
34471 address of entry.
34472 (grub_multiboot_load_elf64): Likewise.
34473 (grub_multiboot): Initialize mbi structure.
34474
34475 * util/grub-fstest.c: Don't include unused header file script.h.
34476
fe6b695a 34477 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 34478 of file.
34479 (grub_fstest_SOURCES): Likewise.
34480
409480b7 344812008-02-05 Robert Millan <rmh@aybabtu.com>
34482
34483 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
34484 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
34485 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
34486 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
34487
34488 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
34489 (translation_table): Replace hardcoded values with macros
34490 provided by `<grub/term.h>'.
34491
34492 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
34493 (keyboard_map): Correct/add a few values, with macros provided
34494 by `<grub/term.h>'.
34495 (keyboard_map_shift): Zero values that don't differ from their
34496 `keyboard_map' equivalents.
34497 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
34498 Discard the second scan code that is always sent by Caps lock.
34499 Only use `keyboard_map_shift' when it provides a non-zero value,
34500 otherwise fallback to `keyboard_map'.
34501
99fadbaa 345022008-02-04 Bean <bean123ch@gmail.com>
34503
34504 * Makefile.in (enable_grub_fstest): New variable.
34505
34506 * conf/common.rmk (grub_fstest_init.lst): New rule.
34507 (grub_fstest_init.h): Likewise.
34508 (grub_fstest_init.c): Likewise.
34509 (util/grub-fstest.c_DEPENDENCIES): New variable.
34510 (grub_fstest_SOURCES): Likewise.
34511
34512 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
34513
34514 * util/grub-fstest.c: New file.
34515
bf567c50 345162008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34517
34518 Make grub-setup handle a separate root device.
f19dbdb7 34519
bf567c50 34520 * util/i386/pc/grub-setup.c (setup): Always open the root device,
34521 so that the root device can be compared with the destination
34522 device.
34523 When embedding the core image, if the root and destination devices
34524 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
34525 0xFF.
34526 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 34527
9be6b98b 345282008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34529
34530 Add support for having a grub directory in a different drive. This
34531 is still only the data handling part.
f19dbdb7 34532
9be6b98b 34533 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
34534 (codestart): Save %dh in GRUB_ROOT_DRIVE.
34535 (grub_root_drive): New variable.
34536
34537 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
34538 instead of GRUB_BOOT_DRIVE to construct a device name. Set
34539 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
34540 as it was.
34541
34542 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
34543
34544 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
34545 macro.
34546 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
34547
34548 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
34549 is bogus, because PXE booting does not specify any drive
34550 correctly.
34551
34552 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
34553 am not sure if this is really correct.
34554
34555 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
34556 is always identical to the boot drive when booting from a CD.
34557
34558 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
34559 longer.
34560 (root_drive): New variable.
34561 (real_start): Unconditionally set %dh to ROOT_DRIVE.
34562 (setup_sectors): Push %dx right after popping it, because %dh will
34563 be modified later.
34564 (copy_buffer): Restore %dx.
34565
e0ca0677 345662008-02-03 Robert Millan <rmh@aybabtu.com>
34567
34568 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
34569 use `cdboot.img' for cdrom images.
34570
3b3f6629 345712008-02-03 Robert Millan <rmh@aybabtu.com>
34572
34573 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
34574 only setup gfxterm when `font' command has succeeded.
34575
d42b3672 345762008-02-03 Robert Millan <rmh@aybabtu.com>
34577
34578 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
34579 (grub_rescue_cmd_multiboot_loader)
34580 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
34581
fa370ea6 345822008-02-03 Pavel Roskin <proski@gnu.org>
34583
e0c5dacb 34584 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 34585 %edx and %esi from stack only after grub_gate_a20() is called.
34586 grub_gate_a20() clobbers %edx.
34587
f2a76e1d 345882008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
34589
34590 * configure.ac (AC_INIT): Bumped to 1.96.
34591
34592 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
34593 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
34594 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
34595 video/readers/png.c.
34596
90fd32d1 345972008-02-03 Bean <bean123ch@gmail.com>
9be665dd 34598
34599 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
34600 (cdboot_img_SOURCES): New variable.
34601 (cdboot_img_ASFLAGS): New variable.
34602 (cdboot_img_LDFLAGS): New variable.
34603
34604 * boot/i386/pc/cdboot.S: New file.
34605
34606 * disk/i386/pc/biosdisk.c (cd_start): New variable.
34607 (cd_count): Likewise.
34608 (grub_biosdisk_get_drive): Add support for cd device.
34609 (grub_biosdisk_call_hook): Likewise.
34610 (grub_biosdisk_iterate): Likewise.
34611 (grub_biosdisk_open): Likewise.
34612 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
34613 (grub_biosdisk_rw): Support reading from cd device.
34614 (GRUB_MOD_INIT): Iterate cd devices.
34615
34616 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
34617 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
34618 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
34619
34620 * kern/i386/pc/init.c (make_install_device): Check for cd device.
34621
4020aa53 346222008-02-02 Robert Millan <rmh@aybabtu.com>
34623
34624 * commands/read.c: New file.
34625 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
34626 (read_mod_SOURCES): New variable.
34627 (read_mod_CFLAGS): Likewise.
34628 (read_mod_LDFLAGS): Likewise.
34629
e03a1132 346302008-02-02 Robert Millan <rmh@aybabtu.com>
34631
34632 * normal/main.c (grub_normal_execute): Check for `menu->size' when
34633 determining whether menu has to be displayed.
34634
58c69220 346352008-02-02 Marco Gerards <marco@gnu.org>
34636
34637 * bus/pci.c: New file.
34638
34639 * include/grub/pci.h: Likewise.
34640
34641 * include/grub/i386/pc/pci.h: Likewise.
34642
34643 * commands/lspci.c: Likewise.
34644
34645 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
34646 `lspci.mod'.
34647 (pci_mod_SOURCES): New variable.
34648 (pci_mod_CFLAGS): Likewise.
34649 (pci_mod_LDFLAGS): Likewise.
34650 (lspci_mod_SOURCES): Likewise.
34651 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 34652 (lspci_mod_LDFLAGS): Likewise.
58c69220 34653
c004e1b4 346542008-02-02 Bean <bean123ch@gmail.com>
34655
34656 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
34657 (grub_ufs_get_file_block): Fix indirect block calculation problem.
34658
34659 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
34660 (grub_xfs_btree_node): New structure.
34661 (grub_xfs_btree_root): New structure.
34662 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
34663 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
34664 (GRUB_XFS_EXTENT_BLOCK): Likewise.
34665 (GRUB_XFS_EXTENT_SIZE): Likewise.
34666 (grub_xfs_read_block): Support btree format type.
34667 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
34668 Use directory block as basic unit.
34669
34670 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
34671
34672 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
34673 __attribute__ ((__regparm__ (1))).
34674
f95562bf 346752008-02-01 Robert Millan <rmh@aybabtu.com>
34676
34677 Correct a mistake in previous commit.
34678
34679 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
34680 top.
34681 (normal/command.c_DEPENDENCIES): New variable.
34682
7d31f41f 346832008-02-01 Robert Millan <rmh@aybabtu.com>
34684
34685 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
34686 top.
34687 (normal/command.c_DEPENDENCIES): New variable.
34688 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
34689 * conf/i386-ieee1275.rmk: Likewise.
34690 * conf/i386-linuxbios.rmk: Likewise.
34691 * conf/i386-pc.rmk: Likewise.
34692 * conf/sparc64-ieee1275.rmk: Likewise.
34693 * conf/powerpc-ieee1275.rmk: Likewise.
34694 (grub_emu_SOURCES): Add `fs/fshelp.c'.
34695
34696 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
34697
60b6be74 346982008-02-01 Robert Millan <rmh@aybabtu.com>
34699
34700 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
34701 call at beginning of function.
34702
078522ab 347032008-01-31 Pavel Roskin <proski@gnu.org>
34704
34705 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 34706 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
34707 (grub_mkrescue_SOURCES): Likewise.
078522ab 34708 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
34709
ccaa8a5f 347102008-01-30 Robert Millan <rmh@aybabtu.com>
34711
34712 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
34713 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
34714 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
34715 (grub_probe_SOURCES): ... to here.
34716
34717 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
34718 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
34719 * conf/i386-ieee1275.rmk: Likewise.
34720 * conf/i386-linuxbios.rmk: Likewise.
34721 * conf/powerpc-ieee1275.rmk: Likewise.
34722
ae5a9cd7 347232008-01-30 Tristan Gingold <gingold@free.fr>
34724
34725 * kern/rescue.c: Silently accept empty lines.
34726
70bc2ef2 347272008-01-29 Bean <bean123ch@gmail.com>
34728
34729 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
34730 (real_code_2): Code cleanup and change comment style.
34731 (move_memory): Avoid using 32-bit address mode.
34732
6a4d50ea 347332008-01-29 Bean <bean123ch@gmail.com>
34734
34735 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
34736 (png_mod_SOURCES): New variable.
34737 (png_mod_CFLAGS): Likewise.
34738 (png_mod_LDFLAGS): Likewise.
34739
34740 * video/readers/png.c: New file.
34741
11cc30ac 347422008-01-28 Robert Millan <rmh@aybabtu.com>
34743
34744 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
34745 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
34746 `ifndef GRUB_MOD_GAP' hack.
34747 * util/elf/grub-mkimage.c (add_segments): Likewise.
34748
3abc589f 347492008-01-27 Robert Millan <rmh@aybabtu.com>
34750
34751 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
34752 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 34753 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 34754
e1907778 347552008-01-27 Robert Millan <rmh@aybabtu.com>
34756
34757 Get grub-emu to build again (including parallel builds).
34758
34759 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
34760 Split into ...
34761 (util/grub-emu.c_DEPENDENCIES): ... this, ...
34762 (normal/execute.c_DEPENDENCIES): ... this, ...
34763 (grub-emu_DEPENDENCIES): ... and this.
34764
34765 * conf/i386-efi.rmk: Likewise.
34766 * conf/i386-linuxbios.rmk: Likewise.
34767 * conf/i386-ieee1275.rmk: Likewise.
34768 * conf/powerpc-ieee1275.rmk: Likewise.
34769 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
34770
2216b101 347712008-01-27 Robert Millan <rmh@aybabtu.com>
34772
34773 * NEWS: Add a few items.
34774
f75172d9 347752008-01-27 Robert Millan <rmh@aybabtu.com>
34776
34777 Fix parallel builds with grub-emu. Based on earlier commit for
34778 grub-probe and grub-setup.
34779
34780 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34781 (util/grub-emu.c_DEPENDENCIES): ... this.
34782 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34783 (util/grub-emu.c_DEPENDENCIES): ... this.
34784 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34785 (util/grub-emu.c_DEPENDENCIES): ... this.
34786 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34787 (util/grub-emu.c_DEPENDENCIES): ... this.
34788 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
34789 (util/grub-emu.c_DEPENDENCIES): ... this.
34790
3f51de77 347912008-01-27 Pavel Roskin <proski@gnu.org>
34792
34793 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
34794 to create a gap between _end and the modules added to the image
34795 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
34796 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
34797 * util/elf/grub-mkimage.c (add_segments): Likewise.
34798
2033f53e 347992008-01-26 Pavel Roskin <proski@gnu.org>
34800
34801 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
34802 just return an error.
34803
22da1f6f 348042008-01-26 Bean <bean123ch@gmail.com>
34805
34806 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
34807 (grub_reiserfs_get_item): Save offset of the next item.
34808 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
34809
2a9525e6 348102008-01-25 Robert Millan <rmh@aybabtu.com>
34811
34812 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
34813 make all filesystem sources appear together (possibly fixing omissions
34814 while at it).
34815 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34816 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34817 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34819
34820 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
34821 add `kern/file.c'.
34822 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
34823 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
34824 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
34825 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
34826
34827 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
34828 (probe): Add a sanity check to make sure of our ability to read
34829 requested files when probing for filesystem type.
34830
34831 * genmk.rb: Update copyright year (2007).
34832
34833 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
34834 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
34835 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
34836 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
34837 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
34838 : Remove function prototypes.
34839
b95f71b5 348402008-01-25 Robert Millan <rmh@aybabtu.com>
34841
34842 Revert my previous commits (based on wrong assumption of how grub_errno
34843 works).
34844
fe6b695a 34845 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 34846 * kern/file.c (grub_file_open): Likewise.
34847
d08bbb49 348482008-01-24 Pavel Roskin <proski@gnu.org>
34849
34850 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
34851 that hang if GRUB tries to setup colors.
34852 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
34853 colors for firmwares that don't support it.
34854 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
34855 Recognize Open Hack'Ware, set flags to work around its
34856 limitations.
34857
605e36ed 348582008-01-24 Robert Millan <rmh@aybabtu.com>
34859
34860 * kern/file.c (grub_file_open): Do not account previous failures of
34861 unrelated functions when grub_errno is checked for.
34862 Reported by Oleg Strikov.
34863
bac332a1 348642008-01-24 Bean <bean123ch@gmail.com>
34865
34866 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
34867 (grub_ufs_sblock): New member volume name.
34868 (grub_ufs_find_file): Fix string copy bug.
34869 (grub_ufs_label): Implement this function properly.
34870
34871 * fs/hfs.c (grub_hfs_cnid_type): New enum.
34872 (grub_hfs_iterate_records): Use the correct file number for extents
34873 and catalog file. Fix problem in next index calculation.
34874 (grub_hfs_find_node): Replace recursive function call with loop.
34875 (grub_hfs_iterate_dir): Replace recursive function call with loop.
34876
15c80c09 348772008-01-23 Robert Millan <rmh@aybabtu.com>
34878
34879 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
34880 `<grub/symbol.h>' and `<grub/multiboot.h>'.
34881 (grub_multiboot2_real_boot): New function prototype.
34882
34883 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
34884 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
34885
34886 * kern/i386/ieee1275/init.c (grub_os_area_addr)
34887 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
34888
305338fd 348892008-01-23 Robert Millan <rmh@aybabtu.com>
34890
34891 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
34892 #ifdef'ed out grub_printf().
34893
3ea52685 348942008-01-23 Robert Millan <rmh@aybabtu.com>
34895
34896 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
34897 grub_dprintf calls, since they make "debug=all" mode unusable.
34898 (grub_console_checkkey): Likewise.
34899
5882ae4b 349002008-01-23 Robert Millan <rmh@aybabtu.com>
34901
34902 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34903 `term/i386/pc/at_keyboard.c'.
34904 (pkglib_MODULES): Add `serial.mod'.
34905 (serial_mod_SOURCES): New variable.
34906 (serial_mod_CFLAGS): Likewise.
34907 (serial_mod_LDFLAGS): Likewise.
34908
34909 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
34910 `<grub/powerpc/ieee1275/console.h>'.
34911 (grub_keyboard_controller_init): New function prototype.
34912 (grub_console_checkkey): Likewise.
34913 (grub_console_getkey): Likewise.
34914
34915 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
34916 keyboard on i386.
34917
34918 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
34919 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
34920
06ab5303 349212008-01-23 Robert Millan <rmh@aybabtu.com>
34922
34923 * kern/i386/pc/init.c (make_install_device): When memdisk image is
34924 present, "(memdisk)/boot/grub" becomes the default prefix.
34925
34926 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
34927 a memdisk tarball with all the modules. Add --overlay=DIR option that
34928 allows users to overlay additional files into the image.
34929
dbb475a4 349302008-01-23 Robert Millan <rmh@aybabtu.com>
34931
34932 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
34933 and `machine/memory.h'.
34934 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
34935 (_multiboot_mod_SOURCES): New variable.
34936 (_multiboot_mod_CFLAGS): Likewise.
34937 (_multiboot_mod_LDFLAGS): Likewise.
34938 (multiboot_mod_SOURCES): Likewise.
34939 (multiboot_mod_CFLAGS): Likewise.
34940 (multiboot_mod_LDFLAGS): Likewise.
34941
34942 * include/grub/i386/ieee1275/loader.h: New file.
34943
34944 * include/grub/i386/ieee1275/machine.h: Likewise.
34945
34946 * include/grub/i386/ieee1275/memory.h: Likewise.
34947
34948 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
34949 variable declaration.
34950 (grub_os_area_size): Likewise.
34951
34952 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
34953 (grub_lower_mem, grub_upper_mem): New variables.
34954 (grub_stop_floppy): New function (just to make
34955 grub_multiboot2_real_boot() happy).
34956
34957 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
34958 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
34959 (grub_stop): New function.
34960 Include `"../realmode.S"' and `"../loader.S"'.
34961
34962 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
34963 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
34964
34965 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
34966 rely on grub_multiboot2_real_boot() for final boot.
34967
25638629 349682008-01-22 Robert Millan <rmh@aybabtu.com>
34969
34970 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
34971 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
34972 device that doesn't look like an SD card.
34973 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
34974 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
34975 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
34976 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
34977 found.
34978
9dad816d 349792008-01-22 Robert Millan <rmh@aybabtu.com>
34980
34981 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
34982 avoid claiming over our own code.
34983
34842f2d 349842008-01-22 Bean <bean123ch@gmail.com>
34985
34986 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
34987 (jpeg_mod_SOURCES): New variable.
34988 (jpeg_mod_CFLAGS): Likewise.
34989 (jpeg_mod_LDFLAGS): Likewise.
34990
34991 * video/readers/jpeg.c : New file.
34992
44023a28 349932008-01-22 Bean <bean123ch@gmail.com>
34994
34995 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
34996 there are no more items.
34997
bc2d8ac6 349982008-01-21 Robert Millan <rmh@aybabtu.com>
34999
35000 * kern/mm.c (grub_mm_init_region): Improve debug message.
35001
261bd4bc 350022008-01-21 Robert Millan <rmh@aybabtu.com>
35003
35004 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
35005 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
35006 address.
35007 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
35008 a C macro.
35009 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
35010 Indicates start of upper memory.
35011 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
35012 (generate_image): Abort when image size is big enough to corrupt
35013 upper memory.
35014
35015 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
35016 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
35017 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
35018 instead of hardcoding 0xA0000.
35019 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
35020 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
35021 instead of hardcoding 0xA0000.
35022
f970b55e 350232008-01-21 Robert Millan <rmh@aybabtu.com>
35024
35025 * disk/memdisk.c (memdisk_size): New variable.
35026 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
35027 `memdisk_size'.
35028 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
35029 image to dynamic memory.
35030 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
35031 `memdisk_size'. Free memdisk block.
35032
1a8b0526 350332008-01-21 Robert Millan <rmh@aybabtu.com>
35034
35035 Fix detection of very small filesystems (like tar).
35036
35037 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
35038 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
35039 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
35040 a problem with this disk).
35041
6e9b4aab 350422008-01-21 Robert Millan <rmh@aybabtu.com>
35043
35044 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
35045 on grub_biosdisk_rw_standard() error.
35046
0d8837b2 350472008-01-21 Robert Millan <rmh@aybabtu.com>
35048
35049 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
35050 recent changes.
35051 * kern/elf.c: Likewise.
35052 * kern/ieee1275/ieee1275.c: Likewise.
35053 * kern/powerpc/ieee1275/openfw.c: Likewise.
35054 * term/ieee1275/ofconsole.c: Likewise.
35055
ffd36e34 350562008-01-21 Robert Millan <rmh@aybabtu.com>
35057
35058 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
35059
3f0093d0 35060 * include/grub/kernel.h (grub_arch_memdisk_addr)
35061 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 35062
3f0093d0 35063 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
35064 (grub_arch_memdisk_size): ... to here.
ffd36e34 35065
6c391b21 350662008-01-21 Robert Millan <rmh@aybabtu.com>
35067
35068 Mostly based on bugfix from Bean.
35069
35070 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
35071 attribute with hook() parameter.
35072 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
35073 declaration.
35074 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
35075 attribute with hook() parameter.
35076 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
35077 declaration.
35078
55a581dc 350792008-01-21 Robert Millan <rmh@aybabtu.com>
35080
35081 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
35082 (pkglib_MODULES): Add `memdisk.mod'.
35083 (memdisk_mod_SOURCES): New variable.
35084 (memdisk_mod_CFLAGS): Likewise.
35085 (memdisk_mod_LDFLAGS): Likewise.
35086
35087 * disk/memdisk.c: New file.
35088
35089 * include/grub/disk.h (grub_disk_dev_id): Add
35090 `GRUB_DISK_DEVICE_MEMDISK_ID'.
35091
35092 * include/grub/i386/pc/kernel.h
35093 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
35094 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
35095 (grub_kernel_image_size): New variable declaration.
35096 (grub_total_module_size): Likewise.
35097 (grub_memdisk_image_size): Likewise.
35098
35099 * include/grub/i386/pc/memory.h
35100 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
35101
35102 * include/grub/kernel.h: Include `<grub/symbol.h>'.
35103 (grub_arch_memdisk_addr): New variable declaration.
35104 (grub_arch_memdisk_size): Likewise.
35105
35106 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
35107 (grub_arch_memdisk_size): Likewise.
35108
35109 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
35110 (codestart): Replace hardcoded `0x100000' with
35111 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
35112
35113 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
35114 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
35115 not NULL, append the contents of the file it refers to, at the end of
35116 the compressed kernel image. Initialize `grub_memdisk_image_size'
35117 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
35118 (options): Add "memdisk"|'m' option.
35119 (main): Parse --memdisk|-m option, and pass user-provided path as
35120 parameter to generate_image().
35121
3d7f54c9 351222008-01-20 Robert Millan <rmh@aybabtu.com>
35123
35124 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
35125 grub_dprintf() calls from here ...
35126 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
35127
0bf74728 351282008-01-20 Robert Millan <rmh@aybabtu.com>
35129
35130 Fix detection of "real mode" when /options/real-mode? doesn't exist.
35131
35132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
35133 declaration.
35134 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
35135 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
35136 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 35137 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 35138 property).
35139 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
35140 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
35141
33bf70a7 351422008-01-19 Robert Millan <rmh@aybabtu.com>
35143
fe6b695a 35144 Get rid of confusing function (superseded by
33bf70a7 35145 `grub_ieee1275_get_integer_property')
35146 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
35147 prototype.
35148 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
35149 function.
35150 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
35151 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 35152 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 35153
e2da7d26 351542008-01-19 Robert Millan <rmh@aybabtu.com>
35155
35156 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
35157 command after "shut-down", since implementations differ on which
35158 the command for halt is.
35159
59f1fd8d 351602008-01-19 Robert Millan <rmh@aybabtu.com>
35161
35162 * include/grub/i386/linuxbios/console.h: Add header protection.
35163 (grub_keyboard_controller_init): New function prototype.
35164 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
35165 (KEYBOARD_COMMAND_READ): Likewise.
35166 (KEYBOARD_COMMAND_WRITE): Likewise.
35167 (KEYBOARD_SCANCODE_SET1): Likewise.
35168 (grub_keyboard_controller_write): New function.
35169 (grub_keyboard_controller_read): Likewise.
35170 (grub_keyboard_controller_init): Likewise.
35171
35172 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
35173 (grub_console_init): On coreboot/LinuxBIOS, call
35174 grub_keyboard_controller_init().
35175
5f5a7c15 351762008-01-19 Robert Millan <rmh@aybabtu.com>
35177
35178 PowerPC changes provided by Pavel Roskin.
35179
35180 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
35181 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
35182 don't rely on cmain() doing it.
35183 * kern/i386/ieee1275/startup.S (_start): Store %eax in
35184 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
35185
1210e168 351862008-01-16 Robert Millan <rmh@aybabtu.com>
35187
35188 * include/grub/i386/linuxbios/memory.h
35189 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
35190 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
35191 receive `table_header' as argument. Instead, probe for it in the
35192 known memory ranges where it can be present.
35193 (grub_available_iterate): Do not pass a fixed `table_header' address
35194 to grub_linuxbios_table_iterate().
35195
3d04eab8 351962008-01-15 Robert Millan <rmh@aybabtu.com>
35197
35198 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
35199 * conf/i386-ieee1275.rmk: New file.
35200 * include/grub/i386/ieee1275/console.h: Likewise.
35201 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
35202 * include/grub/i386/ieee1275/kernel.h: Likewise.
35203 * include/grub/i386/ieee1275/time.h: Likewise.
35204 * kern/i386/ieee1275/init.c: Likewise.
35205 * kern/i386/ieee1275/startup.S: Likewise.
35206
d1bc1b73 352072008-01-15 Robert Millan <rmh@aybabtu.com>
35208
35209 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
35210 when pointers are 32-bit (but still do set it to one when they are
35211 64-bit).
35212
66a65807 352132008-01-15 Robert Millan <rmh@aybabtu.com>
35214
35215 * include/grub/ieee1275/ieee1275.h
35216 (grub_ieee1275_get_integer_property): New function prototype.
35217
35218 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
35219 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 35220 grub_ieee1275_get_property() to handle endianness.
66a65807 35221
35222 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
35223 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 35224 where appropriate.
66a65807 35225 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
35226 (grub_map): Likewise.
35227 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
35228
a83ccafd 352292008-01-15 Bean <bean123ch@gmail.com>
35230
35231 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
35232 (grub_script_execute_cmdline): Reset grub_errno.
35233
35234 * normal/main.c (read_config_file): Reset grub_errno.
35235
35236 * normal/parse.y (script_init): New.
35237 (script): Move function and menuentry here.
35238 (delimiter): New.
35239 (command): Add delimiter at the end of command.
35240 (commands): Adjust to match the new command.
35241 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 35242 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 35243 (if): Use the new commands.
35244
35245 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
35246
df6ecfc6 352472008-01-15 Robert Millan <rmh@aybabtu.com>
35248
35249 * normal/menu.c (run_menu): Move timeout message from here ...
35250 (print_timeout): ... to here.
35251 (run_menu): Use print_timeout() once during initial draw to print
35252 the whole message, and again in every clock tick to update only
35253 the number of seconds.
35254
87ae25eb 352552008-01-15 Robert Millan <rmh@aybabtu.com>
35256
35257 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
35258 actual size of `available' from grub_ieee1275_get_property(), and
35259 restrict parsing to that bound.
35260
47bf09a4 352612008-01-15 Christian Franke <franke@computer.org>
35262
35263 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
35264 (argp_program_version): Remove variable.
35265 (argp_program_bug_address): Likewise.
35266 (options): Convert from struct argp_option to struct option.
35267 (struct arguments): Remove.
35268 (parse_opt): Remove.
35269 (usage): New function.
35270 (main): Replace struct args members by simple variables.
35271 Replace argp_parse() by getopt_long().
35272 Add switch to evaluate options.
35273 Add missing "(...)" around root_dev in prefix string.
35274
c86f1469 352752008-01-14 Robert Millan <rmh@aybabtu.com>
35276
35277 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
35278 for grub_ieee1275_exit(), in order to improve portability.
35279
e622c559 352802008-01-14 Robert Millan <rmh@aybabtu.com>
35281
35282 * util/grub.d/10_linux.in (prefix): Define.
35283 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
35284
44cb1ec8 352852008-01-13 Pavel Roskin <proski@gnu.org>
35286
35287 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
35288 grub_errno if no errors have been detected.
35289
1eb8c802 352902008-01-12 Robert Millan <rmh@aybabtu.com>
35291
35292 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
35293 (grub_util_get_dev_abstraction): New function prototype.
35294
35295 * util/getroot.c: Include `<grub/util/getroot.h>'
35296 (grub_util_get_grub_dev): Move detection of abstraction type to ...
35297 (grub_util_get_dev_abstraction): ... here (new function).
35298
35299 * util/grub-probe.c: Convert PRINT_* to an enum. Add
35300 `PRINT_ABSTRACTION'.
35301 (probe): Probe for abstraction type when requested.
35302 (main): Understand `--target=abstraction'.
35303
35304 * util/i386/efi/grub-install.in: Add abstraction module to core
35305 image when it is found to be necessary.
35306 * util/i386/pc/grub-install.in: Likewise.
35307 * util/powerpc/ieee1275/grub-install.in: Likewise.
35308
35309 * util/update-grub_lib.in (font_path): Return system path without
35310 converting to GRUB path.
35311 * util/update-grub.in: Convert system path returned by font_path()
35312 to a GRUB path. Use `grub-probe -t abstraction' to determine what
35313 abstraction module is needed for loading fonts (if any). Export
35314 that as `GRUB_PRELOAD_MODULES'.
35315 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
35316 insmod commands).
35317
52bd3de9 353182008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
35319
35320 Remove some unused code from reiserfs.
f19dbdb7 35321
52bd3de9 35322 * fs/reiserfs.c (struct grub_reiserfs_key)
35323 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
35324 (struct grub_reiserfs_node_body): Removed.
35325 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
35326 Likewise.
35327 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35328 Likewise.
35329 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35330 Likewise.
35331 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
35332 Likewise.
35333 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
35334 Likewise.
35335 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
35336 Likewise.
35337 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35338 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35339 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
35340
2f80039d 353412008-01-10 Robert Millan <rmh@aybabtu.com>
35342
35343 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
35344 Determines if a file is garbage left by packaging systems, etc.
35345 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
35346 for processing /etc/grub.d scripts.
35347 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
35348 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
35349 as a condition for processing Linux images.
35350
87888032 353512008-01-10 Pavel Roskin <proski@gnu.org>
35352
35353 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
35354 to compile reiserfs.c on PowerPC.
35355
7e54fced 353562008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 35357
35358 * kern/device.c (grub_device_iterate): Do not abort device iteration
35359 when one of the devices cannot be opened.
35360 * kern/disk.c (grub_disk_open): Do not account previous failures of
35361 unrelated functions when grub_errno is checked for.
35362
5aa541e6 353632008-01-08 Robert Millan <rmh@aybabtu.com>
35364
35365 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
35366 `! grub_linux_is_bzimage', change order of address comparison to make
35367 it more intuitive, and improve "too big zImage" error message.
35368
7076340d 353692008-01-08 Robert Millan <rmh@aybabtu.com>
35370
35371 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
35372 `$(update-grub_DATA)'.
35373 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
35374 targets.
35375
9ca70333 353762008-01-07 Robert Millan <rmh@aybabtu.com>
35377
35378 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
35379 which instruction is modified by grub-setup during installation
35380 (since it wasn't obvious by only looking at this file).
35381
38ccf575 353822008-01-07 Robert Millan <rmh@aybabtu.com>
35383
35384 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
35385 listing actual TODO items.
35386
f5db4291 353872008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35388
868967cf 35389 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
35390 correctly.
35391 (grub_reiserfs_get_key_offset): Likewise.
35392 (grub_reiserfs_set_key_offset): Likewise.
35393 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 35394 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 35395
35396 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
35397 better to remove the bitfield version completely.
f19dbdb7 35398
868967cf 353992008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 35400
f5db4291 35401 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
35402 allocated from the heap, due to the fshelp implementation.
35403 (grub_reiserfs_dir): Free NODE, due to the same reason.
35404
492e6d9d 354052008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35406
35407 Mostly from Vincent Pelletier:
f19dbdb7 35408
492e6d9d 35409 * fs/reiserfs.c: New file.
f19dbdb7 35410
492e6d9d 35411 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
35412 (reiserfs_mod_SOURCES): New variable.
35413 (reiserfs_mod_CFLAGS): Likewise.
35414 (reiserfs_mod_LDFLAGS): Likewise.
35415
35416 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
35417 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
35418 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
35419 normal/color.c.
35420
9ce3e7c1 354212008-01-06 Robert Millan <rmh@aybabtu.com>
35422
35423 * normal/color.c: Remove `<grub/env.h>'.
35424
f3b58148 354252008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
35426
35427 * include/grub/normal.h: Include <grub/env.h>.
35428
7ac3bcfa 354292008-01-05 Robert Millan <rmh@aybabtu.com>
35430
35431 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
35432 usage example with `(hd0,1)'.
fb358190 35433 Reported by Samuel Thibault.
7ac3bcfa 35434
c8ee99d7 354352008-01-05 Robert Millan <rmh@aybabtu.com>
35436
35437 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
35438 (grub_linux_boot_zimage): Rename to ...
35439 (grub_linux_boot): ... this.
35440 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
35441 (grub_linux_boot_zimage): Conditionalize zImage copy.
35442
35443 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
35444 (grub_linux_boot_bzimage): Remove prototype.
35445 (grub_linux_boot_zimage): Rename to ...
35446 (grub_linux_boot): ... this.
35447
35448 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
35449 (grub_linux_boot): Remove function.
35450
0ece25b1 354512008-01-05 Robert Millan <rmh@aybabtu.com>
35452
35453 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
35454 (grub_env_write_color_highlight): Likewise.
35455 (grub_wait_after_message): Likewise.
35456
35457 * normal/color.c: New file.
35458
35459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35460 (normal_mod_DEPENDENCIES): Likewise.
35461
35462 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35463 (normal_mod_DEPENDENCIES): Likewise.
35464
35465 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35466 (normal_mod_DEPENDENCIES): Likewise.
35467
35468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
35469 (normal_mod_DEPENDENCIES): Likewise.
35470
35471 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
35472 for waiting after a message is printed.
35473 * normal/main.c (read_config_file): Likewise.
35474 (grub_normal_init): Register grub_env_write_color_normal() and
35475 grub_env_write_color_highlight() hooks. Mark `color_normal' and
35476 `color_highlight' variables as global.
35477
35478 * normal/menu.c (grub_wait_after_message): New function.
35479 (grub_color_menu_normal): New variable. Replaces ...
35480 (GRUB_COLOR_MENU_NORMAL): ... this macro.
35481 (grub_color_menu_highlight): New variable. Replaces ...
35482 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
35483 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
35484 `GRUB_TERM_COLOR_STANDARD'.
35485 (print_message): Use `grub_setcolorstate' to reload colors. Rename
35486 `normal_code' and `highlight_code' to `old_color_normal' and
35487 `old_color_highlight', respectively.
35488 (grub_menu_init_page): Update colors when drawing the menu, based on
35489 `menu_color_normal' and `menu_color_highlight' variables.
35490 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
35491 a message is printed.
35492
182dd4e5 354932008-01-05 Robert Millan <rmh@aybabtu.com>
35494
35495 * kern/env.c (grub_env_context_open): Propagate hooks for global
35496 variables to new context.
35497
35498 * kern/main.c (grub_set_root_dev): Export `root' variable.
35499
ddf8f6ad 355002008-01-05 Robert Millan <rmh@aybabtu.com>
35501
35502 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 35503 discs unconditionally, since udev and others have options to provide
ddf8f6ad 35504 them.
35505
d8b43d9b 355062008-01-05 Robert Millan <rmh@aybabtu.com>
35507
35508 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
35509
2bff2de3 355102008-01-04 Christian Franke <franke@computer.org>
35511
35512 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
35513 of eisa_mmap.
35514
97eab917 355152008-01-03 Pavel Roskin <proski@gnu.org>
35516
35517 * kern/i386/linuxbios/init.c: Put "void" to all function
35518 declarations with no arguments.
35519 * kern/powerpc/ieee1275/init.c: Likewise.
35520 * term/i386/pc/at_keyboard.c: Likewise.
35521 * term/i386/pc/vga_text.c: Likewise.
35522 * util/grub-mkdevicemap.c: Likewise.
35523
b9416d00 355242008-01-02 Robert Millan <rmh@aybabtu.com>
35525
35526 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
35527 message when loaded image is out of bounds.
35528 (grub_multiboot_load_elf64): Likewise.
35529
92695df9 355302008-01-02 Pavel Roskin <proski@gnu.org>
35531
35532 * util/grub.d/10_linux.in: Try version without ".old" when
35533 looking for initrd. It's better to use initrd from the newer
35534 kernel of the same version than no initrd at all.
35535
d98d9cad 355362008-01-01 Robert Millan <rmh@aybabtu.com>
35537
35538 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
35539
dbfdce36 355402008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
35541
f19dbdb7 35542 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 35543 grub_video_get_active_render_target.
35544 (grub_video_adapter): Added unmap_color and get_active_render_target.
35545
f19dbdb7 35546 * video/video.c: Added grub_video_unmap_color and
dbfdce36 35547 grub_video_get_active_render_target.
35548 (grub_video_get_info): Changed method to accept NULL pointer as an
35549 argument to allow detection of active video adapter.
35550
35551 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
35552 grub_video_vbe_unmap_color_int.
35553 Added grub_video_vbe_unmap_color and
35554 grub_video_vbe_get_active_render_target.
35555 (grub_video_vbe_adapter): Added unmap_color and
35556 get_active_render_target.
35557
f19dbdb7 35558 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 35559 with grub_video_vbe_unmap_color_int.
35560
35561 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
35562 (DEFAULT_NORMAL_COLOR): Likewise.
35563 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
35564 (DEFAULT_FG_COLOR): Removed.
35565 (DEFAULT_BG_COLOR): Likewise.
35566 (DEFAULT_CURSOR_COLOR): Changed value.
35567 (grub_virtual_screen): Added standard_color_setting,
35568 normal_color_setting, highlight_color_setting and term_color.
35569 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
35570 (bitmap_width): Added.
35571 (bitmap_height): Likewise.
35572 (bitmap): Likewise.
35573 (set_term_color): Likewise.
35574 (grub_virtual_screen_setup): Changed to use new terminal coloring
35575 settings.
35576 (grub_gfxterm_init): Added init for bitmap.
35577 (grub_gfxterm_fini): Added destroy for bitmap.
35578 (redraw_screen_rect): Updated to use background bitmap and new
35579 terminal coloring.
35580 (scroll_up): Added optimization for case when there is no bitmap.
35581 (grub_gfxterm_cls): Fixed to use correct background color.
35582 (grub_virtual_screen_setcolorstate): Changed to use new terminal
35583 coloring.
35584 (grub_virtual_screen_setcolor): Likewise.
35585 (grub_virtual_screen_getcolor): Added.
35586 (grub_gfxterm_background_image_cmd): Likewise.
35587 (grub_video_term): Added setcolor and getcolor.
35588 (MOD_INIT): Added registration of background_image command.
35589 (MOD_TERM): Added unregistration for background_image command.
35590
c3c20931 355912007-12-30 Pavel Roskin <proski@gnu.org>
35592
35593 * loader/multiboot_loader.c: Fix multiboot command
35594 unregistration. Fix all typos in the word "multiboot".
35595
df266716 355962007-12-29 Pavel Roskin <proski@gnu.org>
94239199 35597
35598 * util/grub.d/10_linux.in: Refactor search for initrd. Add
35599 support for initrd names used in Fedora.
35600
fc6e896c 356012007-12-26 Bean <bean123ch@gmail.com>
35602
35603 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
35604 (cpio_mod_SOURCES): New variable.
35605 (cpio_mod_CFLAGS): Likewise.
35606 (cpio_mod_LDFLAGS): Likewise.
35607
35608 * fs/cpio.c: New file.
35609
35610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
35611
35612 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35613
35614 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
35615
35616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35617
533110ad 356182007-12-25 Robert Millan <rmh@aybabtu.com>
35619
35620 * include/grub/term.h (struct grub_term): Add `getcolor' function.
35621 (grub_getcolor): New function.
35622
35623 * kern/term.c (grub_getcolor): New function.
35624 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
35625 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
35626 (print_entry): Set normal and highlight colors to
35627 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
35628 respectively, before printing and restore them to old
35629 values afterwards.
35630 (grub_menu_init_page): Likewise. Fill an additional colored space
35631 that would otherwise be left blank.
35632
35633 * term/efi/console.c (grub_console_getcolor): New function.
35634 (struct grub_console_term.getcolor): New variable.
35635 * term/i386/pc/console.c (grub_console_getcolor): New function.
35636 (struct grub_console_term.getcolor): New variable.
35637 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
35638 (struct grub_console_term.getcolor): New variable.
35639
35640 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
35641 (struct grub_console_term.setcolor): Remove variable.
35642 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
35643 (struct grub_console_term.setcolor): Remove variable.
35644 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
35645 (struct grub_console_term.setcolor): Remove variable.
35646 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
35647 (struct grub_console_term.setcolor): Remove variable.
35648
4931827f 356492007-12-25 Robert Millan <rmh@aybabtu.com>
35650
35651 * configure.ac: Search for possible unifont.hex locations, and
35652 define UNIFONT_HEX if found.
35653
35654 * Makefile.in (UNIFONT_HEX): Define variable.
35655 (DATA): Rename to ...
35656 (PKGLIB): ... this. Update all users.
35657 (PKGDATA): New variable.
35658 (pkgdata_IMAGES): Rename to ...
35659 (pkglib_IMAGES): ... this. Update all users.
35660 (pkgdata_MODULES): Rename to ...
35661 (pkglib_MODULES): ... this. Update all users.
35662 (pkgdata_PROGRAMS): Rename to ...
35663 (pkglib_PROGRAMS): ... this. Update all users.
35664 (pkgdata_DATA): Rename to ...
35665 (pkglib_DATA): ... this. Update all users.
35666 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
35667 (unicode.pff, ascii.pff): New rules.
35668 (all-local): Add `$(PKGDATA)' dependency.
35669 (install-local): Process `$(PKGDATA)'.
35670
35671 * util/update-grub_lib.in (font_path): Search for *.pff files in
35672 a few more locations, including `${pkgdata}'.
35673
57e57e31 356742007-12-23 Robert Millan <rmh@aybabtu.com>
35675
35676 Patch from Bean <bean123ch@gmail.com>:
35677 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
35678 `size'.
35679
4bc72aa9 356802007-12-21 Bean <bean123ch@gmail.com>
35681
35682 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
35683 (ntfscomp_mod_SOURCES): New variable.
35684 (ntfscomp_mod_CFLAGS): Likewise.
35685 (ntfscomp_mod_LDFLAGS): Likewise.
35686
35687 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
35688 (grub_probe_SOURCES): Likewise.
35689 (grub_emu_SOURCES): Likewise.
35690
35691 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35692 (grub_emu_SOURCES): Likewise.
35693
35694 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35695 (grub_emu_SOURCES): Likewise.
35696
35697 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
35698 (grub_emu_SOURCES): Likewise.
35699
35700 * fs/ntfs.c (grub_ntfscomp_func): New variable.
35701 (read_run_list): Renamed to grub_ntfs_read_run_list.
35702 (decomp_nextvcn): Moved to ntfscomp.c.
35703 (decomp_getch): Likewise.
35704 (decomp_get16): Likewise.
35705 (decomp_block): Likewise.
35706 (read_block): Likewise.
35707 (read_data): Partially moved to ntfscomp.c.
35708 (fixup): Change unsigned to grub_uint16_t.
35709 (read_mft): Change unsigned long to grub_uint32_t.
35710 (read_attr): Likewise.
35711 (read_data): Likewise.
35712 (read_run_data): Likewise.
35713 (read_run_list): Likewise.
35714 (read_mft): Likewise.
35715
35716 * fs/ntfscomp.c: New file.
35717
35718 * include/grub/ntfs.h: New file.
35719
af680a87 357202007-12-16 Robert Millan <rmh@aybabtu.com>
35721
35722 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
35723 IDE disk check, since Linux is known to support 20 IDE disks.
35724 Reported by Colin Watson.
35725
84be7599 357262007-12-15 Bean <bean123ch@gmail.com>
35727
35728 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
35729 (lnxboot_img_SOURCES): New variable.
35730 (lnxboot_img_ASFLAGS): Likewise.
35731 (lnxboot_img_LDFLAGS): Likewise.
35732
35733 * boot/i386/pc/lnxboot.S: New file.
35734
6af9db01 357352007-11-24 Pavel Roskin <proski@gnu.org>
35736
35737 * configure.ac: Test if '--build-id=none' is supported by the
35738 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
35739 objcopy to generate incorrect binary files (binutils
35740 2.17.50.0.18-1 as shipped by Fedora 8).
35741 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
35742 linking, so that build ID doesn't break the test.
35743
7361cfe6 357442007-11-24 Pavel Roskin <proski@gnu.org>
35745
35746 * include/grub/i386/time.h: use "void" in the argument list
35747 of grub_cpu_idle().
35748 * include/grub/powerpc/time.h: Likewise.
35749 * include/grub/sparc64/time.h: Likewise.
35750
1593e10c 357512007-11-18 Christian Franke <franke@computer.org>
35752
35753 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
35754 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
35755 This fixes the problem that function keys did not work in grub-emu.
35756
3b8db1a8 357572007-11-18 Christian Franke <franke@computer.org>
35758
35759 * disk/host.c (grub_host_open): Remove attribute unused from
35760 name parameter. Add check for "host". This fixes the problem
35761 that grub-emu does not find partitions.
35762
2e29408d 357632007-11-18 Christian Franke <franke@computer.org>
35764
35765 * util/hostfs.c (is_dir): New function.
35766 (grub_hostfs_dir): Handle missing dirent.d_type case.
35767 (grub_hostfs_read): Add missing fseek().
35768 (grub_hostfs_label): Clear label pointer. This fixes a crash
35769 of grub-emu on "ls (host)".
35770
398cd047 357712007-11-18 Christian Franke <franke@computer.org>
35772
35773 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
35774 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
35775 to 64 bit boundary by default.
35776
c405c391 357772007-11-18 Bean <bean123ch@gmail.com>
35778
35779 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
35780 (hexdump_mod_SOURCES): New variable.
35781 (hexdump_mod_CFLAGS): Likewise.
35782 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 35783
c405c391 35784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35785
35786 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35787
35788 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35789
35790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
35791
35792 * include/grub/hexdump.h: New file.
35793
35794 * commands/hexdump.c: New file.
35795
5cced7fd 357962007-11-10 Robert Millan <rmh@aybabtu.com>
35797
35798 * commands/i386/pc/play.c (beep_off): Switch order of arguments
35799 in grub_outb() calls.
35800 (beep_on): Likewise.
35801
8b714eb0 358022007-11-10 Christian Franke <franke@computer.org>
35803
35804 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
35805 (grub_menu_run): Likewise.
35806
ce0f1839 358072007-11-10 Robert Millan <rmh@aybabtu.com>
35808
35809 * include/grub/i386/efi/machine.h: New file.
35810 * include/grub/i386/linuxbios/machine.h: Likewise.
35811 * include/grub/i386/pc/machine.h: Likewise.
35812 * include/grub/powerpc/ieee1275/machine.h: Likewise.
35813 * include/grub/sparc64/ieee1275/machine.h: Likewise.
35814
35815 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
35816 (serial_hw_io_addr): New variable.
35817 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
35818 instead of `(unsigned short *) 0x400'.
35819
270c237d 358202007-11-10 Bean <bean123ch@gmail.com>
35821
35822 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
35823
a87783bf 358242007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
35825
35826 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
35827 (vga_mod_SOURCES): Added.
35828 (vga_mod_CFLAGS): Likewise.
35829 (vga_mod_LDFLAGS): Likewise.
35830
35831 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
35832 grub_outb() calls.
35833 (set_map_mask): Likewise.
35834 (set_read_map): Likewise.
35835 (set_read_address): Likewise.
35836 (vga_font): Removed variable.
35837 (get_vga_glyph): Removed function.
35838 (invalidate_char): Likewise.
35839 (write_char): Changed to use grub_font_get_glyph() for font
35840 information.
35841 (grub_vga_putchar): Likewise.
35842 (grub_vga_getcharwidth): Likewise.
35843
6433b448 358442007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
35845
35846 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
35847 flags.
35848 (pxeboot_img_LDFLAGS): Likewise.
35849 (diskboot_img_LDFLAGS): Likewise.
35850 (kernel_img_LDFLAGS): Likewise.
35851
49178511 358522007-11-06 Robert Millan <rmh@aybabtu.com>
35853
35854 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
35855 in grub_outb() calls.
35856 (serial_hw_init): Likewise.
35857
53b052de 358582007-11-05 Robert Millan <rmh@aybabtu.com>
35859
35860 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
35861 spaces. Skip non-regular files.
35862
5ab33bba 358632007-11-05 Robert Millan <rmh@aybabtu.com>
35864
35865 * kern/disk.c (grub_disk_firmware_fini)
35866 (grub_disk_firmware_is_tainted): New variables.
35867
35868 * include/grub/disk.h (grub_disk_firmware_fini)
35869 (grub_disk_firmware_is_tainted): Likewise.
35870
35871 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
35872 (grub_disk_biosdisk_fini): ... to here.
35873 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
35874 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
35875 is set. Register grub_disk_biosdisk_fini() in
35876 `grub_disk_firmware_fini'.
35877
35878 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
35879 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
35880 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
35881 to finish existing firmware disk interface.
35882
35883 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
35884 (ata_mod_SOURCES): New variable.
35885 (ata_mod_CFLAGS): Likewise.
35886 (ata_mod_LDFLAGS): Likewise.
35887
0149ab7c 358882007-11-05 Robert Millan <rmh@aybabtu.com>
35889
35890 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
35891 (grub_ata_wait): Reimplement using grub_millisleep().
35892
35893 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
35894 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
35895
be7ac41e 358962007-11-03 Marco Gerards <marco@gnu.org>
35897
35898 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
35899 (CRTC_ADDR_PORT): New macro.
35900 (CRTC_DATA_PORT): Likewise.
35901 (CRTC_CURSOR): Likewise.
35902 (CRTC_CURSOR_ADDR_HIGH): Likewise.
35903 (CRTC_CURSOR_ADDR_LOW): Likewise.
35904 (update_cursor): New function.
35905 (grub_console_real_putchar): Call `update_cursor'.
35906 (grub_console_gotoxy): Likewise.
35907 (grub_console_cls): Set the default color when clearing the
35908 screen.
35909 (grub_console_setcursor): Implemented.
35910
bb06ab2e 359112007-11-03 Marco Gerards <marco@gnu.org>
35912
35913 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
35914 become activate.
35915 (grub_ata_pio_write): Likewise.
35916
35917 (grub_atapi_identify): Wait after issuing an ATA command.
35918 (grub_atapi_packet): Likewise.
35919 (grub_ata_identify): Likewise.
35920 (grub_ata_readwrite): Likewise.
35921
cf8f780b 359222007-11-03 Marco Gerards <marco@gnu.org>
35923
35924 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
35925 (grub_ata_pio_write): Likewise.
35926 (grub_ata_readwrite): Use `grub_error', instead of
35927 returning `grub_errno'.
35928
ed649e54 359292007-11-03 Marco Gerards <marco@gnu.org>
35930
35931 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
35932 grub_ata_pio_write once for every single sector, instead of for
35933 multiple sectors.
35934
ca25d8f0 359352007-10-31 Robert Millan <rmh@aybabtu.com>
35936
35937 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
35938
35939 * conf/i386-linuxbios.rmk: New file.
35940
35941 * kern/i386/pc/hardware.c: Likewise.
35942 * term/i386/pc/at_keyboard.c: Likewise.
35943 * term/i386/pc/vga_text.c: Likewise.
35944
35945 * include/grub/i386/linuxbios/boot.h: Likewise.
35946 * include/grub/i386/linuxbios/console.h: Likewise.
35947 * include/grub/i386/linuxbios/init.h: Likewise.
35948 * include/grub/i386/linuxbios/kernel.h: Likewise.
35949 * include/grub/i386/linuxbios/loader.h: Likewise.
35950 * include/grub/i386/linuxbios/memory.h: Likewise.
35951 * include/grub/i386/linuxbios/serial.h: Likewise.
35952 * include/grub/i386/linuxbios/time.h: Likewise.
35953
35954 * kern/i386/linuxbios/init.c: Likewise.
35955 * kern/i386/linuxbios/startup.S: Likewise.
35956 * kern/i386/linuxbios/table.c: Likewise.
35957
e911ecc1 359582007-10-31 Marco Gerards <marco@gnu.org>
35959
35960 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
35961 (ata_mod_SOURCES): New variable.
35962 (ata_mod_CFLAGS): Likewise.
35963 (ata_mod_LDFLAGS): Likewise.
35964
35965 * disk/ata.c: New file.
35966
35967 * include/grub/disk.h (grub_disk_dev_id): Add
35968 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 35969
7f66d0e0 359702007-10-31 Robert Millan <rmh@aybabtu.com>
35971
35972 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
35973 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
35974
35975 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
35976 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
35977
35978 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
35979 `<grub/types.h>'.
35980
35981 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
35982
5cd7dd46 359832007-10-27 Robert Millan <rmh@aybabtu.com>
35984
3236ca65 35985 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 35986
2ebfc90f 359872007-10-22 Robert Millan <rmh@aybabtu.com>
35988
35989 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
35990 `"../realmode.S"'.
35991 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
35992
73fcb0f3 359932007-10-22 Robert Millan <rmh@aybabtu.com>
35994
35995 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
35996 (pkgdata_MODULES): Add `biosdisk.mod'.
35997 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
35998 variables.
35999
36000 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
36001 (grub_biosdisk_init): Replace with ...
36002 (GRUB_MOD_INIT(biosdisk)): ... this.
36003 (grub_biosdisk_fini): Replace with ...
36004 (GRUB_MOD_FINI(biosdisk)): ... this.
36005
36006 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
36007 (grub_machine_init): Remove call to grub_biosdisk_init().
36008 (grub_machine_fini): Remove call to grub_machine_fini().
36009
36010 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
36011
3381d274 360122007-10-22 Robert Millan <rmh@aybabtu.com>
36013
36014 * include/grub/time.h: New file.
36015 * include/grub/i386/time.h: Likewise.
36016 * include/grub/powerpc/time.h: Likewise.
36017 * include/grub/sparc64/time.h: Likewise.
36018
36019 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
36020 instances to ...
36021 (KERNEL_MACHINE_TIME_HEADER): ... this.
36022 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
36023 instances to ...
36024 (KERNEL_MACHINE_TIME_HEADER): ... this.
36025 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
36026 instances to ...
36027 (KERNEL_MACHINE_TIME_HEADER): ... this.
36028
36029 * kern/i386/efi/init.c: Include `<grub/time.h>'.
36030 (grub_millisleep): New function.
36031 * kern/i386/pc/init.c: Include `<grub/time.h>'.
36032 (grub_millisleep): New function.
36033 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
36034 Remove `grub/machine/time.h' include.
36035 (grub_millisleep): New function.
36036 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
36037 Remove `grub/machine/time.h' include.
36038 (grub_millisleep): New function.
36039
36040 * include/grub/misc.h (grub_div_roundup): New function.
36041
36042 * kern/misc.c: Include `<grub/time.h>'.
36043 (grub_millisleep_generic): New function.
36044
36045 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
36046 Add `time.h'.
36047 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
36048 Add `time.h'.
36049 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
36050 `machine/time.h'. Add `time.h'.
36051 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36052
a39a0312 360532007-10-21 Robert Millan <rmh@aybabtu.com>
36054
36055 * include/grub/misc.h (grub_max): New function.
36056
2aad70e2 360572007-10-21 Robert Millan <rmh@aybabtu.com>
36058
36059 * util/misc.c (grub_util_info): Call fflush() before returning.
36060
54b71c4b 360612007-10-20 Robert Millan <rmh@aybabtu.com>
36062
36063 * genmk.rb (Image): Copy `extra_flags' from here ...
36064 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
36065
36066 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
36067 to `argc' and `args' arguments.
36068
a979f513 360692007-10-17 Robert Millan <rmh@aybabtu.com>
36070
36071 * kern/i386/loader.S: New file.
36072
36073 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
36074 * kern/i386/loader.S (grub_linux_prot_size)... to here.
36075 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
36076 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
36077 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
36078 * kern/i386/loader.S (grub_linux_real_addr)... to here.
36079 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
36080 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
36081 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
36082 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
36083 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
36084 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
36085 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
36086 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
36087
36088 * kern/i386/realmode.S: New file.
36089
36090 * kern/i386/pc/startup.S (protstack): Moved from here ...
36091 * kern/i386/realmode.S (protstack)... to here.
36092 * kern/i386/pc/startup.S (gdt): Moved from here ...
36093 * kern/i386/realmode.S (gdt)... to here.
36094 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
36095 * kern/i386/realmode.S (prot_to_real)... to here.
36096
36097 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
36098 `kern/i386/realmode.S'.
36099
825fc8fd 361002007-10-17 Robert Millan <rmh@aybabtu.com>
36101
36102 * include/grub/i386/loader.h: New file.
36103
36104 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
36105 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
36106 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
36107 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
36108 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
36109 * include/grub/i386/loader.h (grub_linux_prot_size)
36110 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
36111 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
36112 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
36113 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
36114
36115 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
36116
e179b2f4 361172007-10-15 Robert Millan <rmh@aybabtu.com>
36118
36119 * normal/misc.c (grub_normal_print_device_info): Do not probe for
36120 filesystem when dev->disk is unset.
36121 Do probe for filesystem even when dev->disk->has_partitions is set.
36122 In case a filesystem is found, always report it.
36123 In case it isn't, if dev->disk->has_partitions is set, report that
36124 a partition table was found instead of reporting that no filesystem
36125 could be identified.
36126
5db82af6 361272007-10-12 Robert Millan <rmh@aybabtu.com>
36128
36129 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
36130 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
36131
68f6ac74 36132 * include/grub/types.h (grub_host_to_target16): New macro.
36133 (grub_host_to_target32): Likewise.
36134 (grub_host_to_target64): Likewise.
36135 (grub_target_to_host16): Likewise.
36136 (grub_target_to_host32): Likewise.
36137 (grub_target_to_host64): Likewise.
5db82af6 36138
36139 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36140 Renamed from to ...
36141 (GRUB_MOD_ALIGN): ...this. Update all users.
36142
68f6ac74 36143 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
36144 grub_host_to_target32.
36145 Replace grub_be_to_cpu32 with grub_target_to_host32.
36146 (load_modules): Likewise.
36147 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
36148 Replace grub_be_to_cpu32 with grub_target_to_host32.
36149 Replace grub_cpu_to_be16 with grub_host_to_target16.
36150 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 36151
3cf497cc 361522007-10-12 Robert Millan <rmh@aybabtu.com>
36153
36154 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
36155 * util/elf/grub-mkimage.c: ... here.
36156
36157 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
36158 `util/powerpc/ieee1275/grub-mkimage.c'.
36159
c8cc3692 361602007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 36161
c8cc3692 36162 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
36163 and make it easier to figure out.
36164 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
36165 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
36166 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
36167 leave us with less than HEAP_MIN_SIZE total heap.
36168 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 36169
5c58b791 361702007-10-03 Robert Millan <rmh@aybabtu.com>
36171
36172 * include/grub/i386/io.h: New file.
36173 * commands/i386/pc/play.c (inb): Removed.
36174 (outb): Removed.
36175 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36176 with grub_outb().
afcd2ef8 36177 * term/i386/pc/serial.c (inb): Removed.
36178 (outb): Removed.
36179 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36180 with grub_outb().
36181 * term/i386/pc/vga.c (inb): Removed.
36182 (outb): Removed.
36183 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
36184 with grub_outb().
5c58b791 36185
1a477ed6 361862007-10-02 Robert Millan <rmh@aybabtu.com>
36187
36188 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
36189 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36190 Reported by Marcin Kurek.
36191
6b5d80fa 361922007-09-07 Robert Millan <rmh@aybabtu.com>
36193
36194 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
36195 SmartFirmware version updates (as released by Sven Luther), and avoid
36196 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
36197 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
36198 known broken.
36199
5618afbf 362002007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36201
36202 From Hitoshi Ozeki:
36203 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
36204 when merging two regions.
36205
6139dcd9 362062007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36207
508e39ee 36208 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
36209 * normal/completion.c (grub_normal_do_completion): Likewise.
36210 Reported by Hitoshi Ozeki.
36211
362122007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 36213
6139dcd9 36214 Do not use devices at boot in chainloading.
f19dbdb7 36215
6139dcd9 36216 * loader/i386/pc/chainloader.c (boot_drive): New variable.
36217 (boot_part_addr): Likewise.
36218 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
36219 with BOOT_DRIVE and BOOT_PART_ADDR.
36220 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
36221 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
36222
38da6516 362232007-08-29 Robert Millan <rmh@aybabtu.com>
36224
36225 Patch from Simon Peter <dn.tlp@gmx.net>:
36226 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
36227 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
36228 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
36229 util/i386/pc/grub-setup.c_DEPENDENCIES.
36230 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
36231 util/grub-probe.c_DEPENDENCIES.
36232 * conf/powerpc-ieee1275.rmk: Likewise.
36233
29d0928c 362342007-08-28 Robert Millan <rmh@aybabtu.com>
36235
36236 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
36237 to tell grub-mkdevicemap how to name devices.
36238 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
36239 feature).
36240
36241 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
36242 util/i386/get_disk_name.c.
36243 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
36244 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
36245 util/ieee1275/get_disk_name.c.
36246
36247 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
36248
36249 * DISTLIST: Add util/i386/get_disk_name.c and
36250 util/ieee1275/get_disk_name.c.
36251
36252 * util/grub-mkdevicemap.c: Replace device naming logic with
36253 grub_util_get_disk_name() calls.
36254
5a0d3cca 362552007-08-20 Robert Millan <rmh@aybabtu.com>
36256
36257 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
36258 (so that it works for both plural and singular quantities).
36259
8b72db2f 362602007-08-05 Robert Millan <rmh@aybabtu.com>
36261
36262 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
36263 so that [xz] isn't taken into account when determining order.
36264
352466bf 362652007-08-02 Marco Gerards <marco@gnu.org>
36266
36267 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
36268 `include/multiboot2.h', `include/grub/elfload.h',
36269 `include/multiboot.h', `include/grub/multiboot.h',
36270 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
36271 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
36272 `kern/elf.c', `loader/multiboot_loader.c',
36273 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
36274 `loader/i386/pc/multiboot2.c',
36275 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
36276 `util/i386/pc/grub-mkrescue.in'. Remove
36277 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
36278 `include/grub/i386/pc/util/biosdisk.h' and
36279 `include/grub/powerpc/ieee1275/multiboot.h'.
36280
8f096014 362812007-08-02 Bean <bean123ch@gmail.com>
36282
36283 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
36284 (ntfs_mod_SOURCES): New variable.
36285 (ntfs_mod_CFLAGS): Likewise.
36286 (ntfs_mod_LDFLAGS): Likewise.
36287
36288 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
36289 (grub_probe_SOURCES): Likewise.
36290 (grub_emu_SOURCES): Likewise.
36291
36292 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
36293 (grub_emu_SOURCES): Likewise.
36294
36295 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
36296 (grub_emu_SOURCES): Likewise.
f19dbdb7 36297
8f096014 36298 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
36299
36300 * fs/ntfs.c: New file.
36301
9959f7db 363022007-08-02 Bean <bean123ch@gmail.com>
36303
36304 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
36305
36306 * file.h (grub_file): Likewise.
36307
36308 * fshelp.h (grub_fshelp_read_file): Likewise.
36309
36310 * util/i386/pc/grub-setup.c (setup): Likewise.
36311 (save_first_sector): Likewise.
36312 (save_blocklists): Likewise.
f19dbdb7 36313
9959f7db 36314 * fs/affs.c (grub_affs_read_file): Likewise.
36315
36316 * fs/ext2.c (grub_ext2_read_file): Likewise.
36317
36318 * fs/fat.c (grub_fat_read_data): Likewise.
36319
36320 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
36321
36322 * fs/hfs.c (grub_hfs_read_file): Likewise.
36323
36324 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36325
36326 * fs/jfs.c (grub_jfs_read_file): Likewise.
36327
36328 * fs/minix.c (grub_minix_read_file): Likewise.
36329
36330 * fs/sfs.c (grub_sfs_read_file): Likewise.
36331
36332 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 36333
9959f7db 36334 * fs/xfs.c (grub_xfs_read_file): Likewise.
36335
36336 * command/blocklist.c (read_blocklist): Likewise.
36337 (print_blocklist): Likewise.
36338
0a203f83 363392007-08-02 Marco Gerards <marco@gnu.org>
36340
36341 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
36342 `util/hostfs.c'.
36343
36344 * disk/host.c: New file.
36345
36346 * util/hostfs.c: Likewise.
36347
36348 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
36349 return `GRUB_ERR_BAD_FS'.
36350 * fs/sfs.c (grub_sfs_mount): Likewise.
36351 * fs/xfs.c (grub_xfs_mount): Likewise.
36352
36353 * include/grub/disk.h (enum grub_disk_dev_id): Add
36354 `GRUB_DISK_DEVICE_HOST_ID'.
36355
36356 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
36357
e5dfe777 363582007-07-24 Jerone Young <jerone@gmail.com>
36359
f19dbdb7 36360 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 36361 modules for compilation.
36362 * conf/powerpc-ieee1275.rmk: Likewise.
36363
36364 * include/multiboot.h: Move multiboot definitions to one file. Rename
36365 many definitions to not get grub specific.
36366 * include/multiboot2.h: Create header with multiboot 2 definitions.
36367 * include/grub/multiboot.h: Header for grub specific function
36368 prototypes and definitions.
36369 * include/grub/multiboot2.h: Likewise.
36370 * include/grub/multiboot_loader.h: Likewise.
36371 * include/grub/i386/pc/multiboot.h: Removed.
36372 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
36373
36374 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
36375 and 2 to allow for one multiboot and module commands.
36376 * loader/multiboot2.c: Add multiboot2 functionality.
36377 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
36378 and definition names.
36379 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
36380 2 functions.
36381 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
36382 ieee1275 specific multiboot2 code.
36383
36384 * kern/i386/pc/startup.S: Change headers and definition names for
36385 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
36386
daf0f0ba 363872007-07-22 Robert Millan <rmh@aybabtu.com>
36388
36389 * geninitheader.sh: Process file specified in first parameter rather
36390 than hardcoding grub_modules_init.lst.
fe6b695a 36391 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 36392 than hardcoding grub_modules_init.h.
36393
36394 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
36395 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
36396 grub_probe_init.[ch] and grub_setup_init.[ch].
36397
36398 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
36399 grub_modules_init.h with grub_emu_init.h.
36400 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
36401 grub_probe_init.[ch] files.
36402 * conf/i386-efi.rmk: Likewise.
36403 * conf/i386-pc.rmk: Likewise.
36404 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
36405 grub_setup_init.[ch] files.
36406
36407 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
36408 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
36409 to initialize modules rather than a list of hardcoded functions.
36410 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
36411 grub_init_all() to initialize modules rather than a list of hardcoded
36412 functions.
36413
54cdc1cc 364142007-07-22 Robert Millan <rmh@aybabtu.com>
36415
36416 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
36417 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
36418
ad0686cc 364192007-07-22 Robert Millan <rmh@aybabtu.com>
36420
36421 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
36422 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
36423 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
36424 flag when running on SmartFirmware.
36425 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
36426 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
36427 was set.
36428
36429 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36430 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
36431 rather than decreasing it.
36432
36433 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
36434 there's not enough space to do it, fail in the same way as when it
36435 can't be done because there are no partitions.
36436
36437 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
36438 when nvsetenv failed.
36439
969c02ec 364402007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
36441
36442 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
36443 because this rule is automatically generated.
36444 (grub-mkrescue): Removed for the same reason as above.
36445
5a79f472 364462007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
36447
36448 Migrate to GNU General Public License Version 3.
f19dbdb7 36449
5a79f472 36450 * COPYING: Replaced with the plain text version of GPLv3.
36451
36452 * config.guess: Updated from gnulib.
36453 * config.sub: Likewise.
36454
36455 * geninit.sh: Output a GPLv3 copyright notice.
36456 * geninitheader.sh: Likewise.
36457 * genmodsrc.sh: Likewise.
36458 * gensymlist.sh.in: Likewise.
36459
36460 * boot/i386/pc/boot.S: Upgraded to GPLv3.
36461 * boot/i386/pc/diskboot.S: Likewise.
36462 * boot/i386/pc/pxeboot.S: Likewise.
36463 * commands/blocklist.c: Likewise.
36464 * commands/boot.c: Likewise.
36465 * commands/cat.c: Likewise.
36466 * commands/cmp.c: Likewise.
36467 * commands/configfile.c: Likewise.
36468 * commands/echo.c: Likewise.
36469 * commands/help.c: Likewise.
36470 * commands/ls.c: Likewise.
36471 * commands/search.c: Likewise.
36472 * commands/terminal.c: Likewise.
36473 * commands/test.c: Likewise.
36474 * commands/videotest.c: Likewise.
36475 * commands/i386/cpuid.c: Likewise.
36476 * commands/i386/pc/halt.c: Likewise.
36477 * commands/i386/pc/play.c: Likewise.
36478 * commands/i386/pc/reboot.c: Likewise.
36479 * commands/i386/pc/vbeinfo.c: Likewise.
36480 * commands/i386/pc/vbetest.c: Likewise.
36481 * commands/ieee1275/halt.c: Likewise.
36482 * commands/ieee1275/reboot.c: Likewise.
36483 * commands/ieee1275/suspend.c: Likewise.
36484 * disk/loopback.c: Likewise.
36485 * disk/lvm.c: Likewise.
36486 * disk/raid.c: Likewise.
36487 * disk/efi/efidisk.c: Likewise.
36488 * disk/i386/pc/biosdisk.c: Likewise.
36489 * disk/ieee1275/ofdisk.c: Likewise.
36490 * font/manager.c: Likewise.
36491 * fs/affs.c: Likewise.
36492 * fs/ext2.c: Likewise.
36493 * fs/fat.c: Likewise.
36494 * fs/fshelp.c: Likewise.
36495 * fs/hfs.c: Likewise.
36496 * fs/hfsplus.c: Likewise.
36497 * fs/iso9660.c: Likewise.
36498 * fs/jfs.c: Likewise.
36499 * fs/minix.c: Likewise.
36500 * fs/sfs.c: Likewise.
36501 * fs/ufs.c: Likewise.
36502 * fs/xfs.c: Likewise.
36503 * hello/hello.c: Likewise.
36504 * include/grub/acorn_filecore.h: Likewise.
36505 * include/grub/arg.h: Likewise.
36506 * include/grub/bitmap.h: Likewise.
36507 * include/grub/boot.h: Likewise.
36508 * include/grub/cache.h: Likewise.
36509 * include/grub/device.h: Likewise.
36510 * include/grub/disk.h: Likewise.
36511 * include/grub/dl.h: Likewise.
36512 * include/grub/elfload.h: Likewise.
36513 * include/grub/env.h: Likewise.
36514 * include/grub/err.h: Likewise.
36515 * include/grub/file.h: Likewise.
36516 * include/grub/font.h: Likewise.
36517 * include/grub/fs.h: Likewise.
36518 * include/grub/fshelp.h: Likewise.
36519 * include/grub/gzio.h: Likewise.
36520 * include/grub/hfs.h: Likewise.
36521 * include/grub/kernel.h: Likewise.
36522 * include/grub/loader.h: Likewise.
36523 * include/grub/lvm.h: Likewise.
36524 * include/grub/misc.h: Likewise.
36525 * include/grub/mm.h: Likewise.
36526 * include/grub/net.h: Likewise.
36527 * include/grub/normal.h: Likewise.
36528 * include/grub/parser.h: Likewise.
36529 * include/grub/partition.h: Likewise.
36530 * include/grub/pc_partition.h: Likewise.
36531 * include/grub/raid.h: Likewise.
36532 * include/grub/rescue.h: Likewise.
36533 * include/grub/script.h: Likewise.
36534 * include/grub/setjmp.h: Likewise.
36535 * include/grub/symbol.h: Likewise.
36536 * include/grub/term.h: Likewise.
36537 * include/grub/terminfo.h: Likewise.
36538 * include/grub/tparm.h: Likewise.
36539 * include/grub/types.h: Likewise.
36540 * include/grub/video.h: Likewise.
36541 * include/grub/efi/api.h: Likewise.
36542 * include/grub/efi/chainloader.h: Likewise.
36543 * include/grub/efi/console.h: Likewise.
36544 * include/grub/efi/console_control.h: Likewise.
36545 * include/grub/efi/disk.h: Likewise.
36546 * include/grub/efi/efi.h: Likewise.
36547 * include/grub/efi/pe32.h: Likewise.
36548 * include/grub/efi/time.h: Likewise.
36549 * include/grub/i386/linux.h: Likewise.
36550 * include/grub/i386/setjmp.h: Likewise.
36551 * include/grub/i386/types.h: Likewise.
36552 * include/grub/i386/efi/kernel.h: Likewise.
36553 * include/grub/i386/efi/loader.h: Likewise.
36554 * include/grub/i386/efi/time.h: Likewise.
36555 * include/grub/i386/pc/biosdisk.h: Likewise.
36556 * include/grub/i386/pc/boot.h: Likewise.
36557 * include/grub/i386/pc/chainloader.h: Likewise.
36558 * include/grub/i386/pc/console.h: Likewise.
36559 * include/grub/i386/pc/init.h: Likewise.
36560 * include/grub/i386/pc/kernel.h: Likewise.
36561 * include/grub/i386/pc/loader.h: Likewise.
36562 * include/grub/i386/pc/memory.h: Likewise.
36563 * include/grub/i386/pc/multiboot.h: Likewise.
36564 * include/grub/i386/pc/serial.h: Likewise.
36565 * include/grub/i386/pc/time.h: Likewise.
36566 * include/grub/i386/pc/vbe.h: Likewise.
36567 * include/grub/i386/pc/vbeblit.h: Likewise.
36568 * include/grub/i386/pc/vbefill.h: Likewise.
36569 * include/grub/i386/pc/vbeutil.h: Likewise.
36570 * include/grub/i386/pc/vga.h: Likewise.
36571 * include/grub/ieee1275/ieee1275.h: Likewise.
36572 * include/grub/ieee1275/ofdisk.h: Likewise.
36573 * include/grub/powerpc/libgcc.h: Likewise.
36574 * include/grub/powerpc/setjmp.h: Likewise.
36575 * include/grub/powerpc/types.h: Likewise.
36576 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
36577 * include/grub/powerpc/ieee1275/console.h: Likewise.
36578 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
36579 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
36580 * include/grub/powerpc/ieee1275/loader.h: Likewise.
36581 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
36582 * include/grub/powerpc/ieee1275/time.h: Likewise.
36583 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
36584 * include/grub/sparc64/libgcc.h: Likewise.
36585 * include/grub/sparc64/setjmp.h: Likewise.
36586 * include/grub/sparc64/types.h: Likewise.
36587 * include/grub/sparc64/ieee1275/console.h: Likewise.
36588 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
36589 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
36590 * include/grub/sparc64/ieee1275/time.h: Likewise.
36591 * include/grub/util/biosdisk.h: Likewise.
36592 * include/grub/util/getroot.h: Likewise.
36593 * include/grub/util/lvm.h: Likewise.
36594 * include/grub/util/misc.h: Likewise.
36595 * include/grub/util/raid.h: Likewise.
36596 * include/grub/util/resolve.h: Likewise.
36597 * io/gzio.c: Likewise.
36598 * kern/device.c: Likewise.
36599 * kern/disk.c: Likewise.
36600 * kern/dl.c: Likewise.
36601 * kern/elf.c: Likewise.
36602 * kern/env.c: Likewise.
36603 * kern/err.c: Likewise.
36604 * kern/file.c: Likewise.
36605 * kern/fs.c: Likewise.
36606 * kern/loader.c: Likewise.
36607 * kern/main.c: Likewise.
36608 * kern/misc.c: Likewise.
36609 * kern/mm.c: Likewise.
36610 * kern/parser.c: Likewise.
36611 * kern/partition.c: Likewise.
36612 * kern/rescue.c: Likewise.
36613 * kern/term.c: Likewise.
36614 * kern/efi/efi.c: Likewise.
36615 * kern/efi/init.c: Likewise.
36616 * kern/efi/mm.c: Likewise.
36617 * kern/i386/dl.c: Likewise.
36618 * kern/i386/efi/init.c: Likewise.
36619 * kern/i386/efi/startup.S: Likewise.
36620 * kern/i386/pc/init.c: Likewise.
36621 * kern/i386/pc/lzo1x.S: Likewise.
36622 * kern/i386/pc/startup.S: Likewise.
36623 * kern/ieee1275/ieee1275.c: Likewise.
36624 * kern/powerpc/cache.S: Likewise.
36625 * kern/powerpc/dl.c: Likewise.
36626 * kern/powerpc/ieee1275/cmain.c: Likewise.
36627 * kern/powerpc/ieee1275/crt0.S: Likewise.
36628 * kern/powerpc/ieee1275/init.c: Likewise.
36629 * kern/powerpc/ieee1275/openfw.c: Likewise.
36630 * kern/sparc64/cache.S: Likewise.
36631 * kern/sparc64/dl.c: Likewise.
36632 * kern/sparc64/ieee1275/init.c: Likewise.
36633 * kern/sparc64/ieee1275/openfw.c: Likewise.
36634 * loader/efi/chainloader.c: Likewise.
36635 * loader/efi/chainloader_normal.c: Likewise.
36636 * loader/i386/efi/linux.c: Likewise.
36637 * loader/i386/efi/linux_normal.c: Likewise.
36638 * loader/i386/pc/chainloader.c: Likewise.
36639 * loader/i386/pc/chainloader_normal.c: Likewise.
36640 * loader/i386/pc/linux.c: Likewise.
36641 * loader/i386/pc/linux_normal.c: Likewise.
36642 * loader/i386/pc/multiboot.c: Likewise.
36643 * loader/i386/pc/multiboot_normal.c: Likewise.
36644 * loader/powerpc/ieee1275/linux.c: Likewise.
36645 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36646 * normal/arg.c: Likewise.
36647 * normal/cmdline.c: Likewise.
36648 * normal/command.c: Likewise.
36649 * normal/completion.c: Likewise.
36650 * normal/execute.c: Likewise.
36651 * normal/function.c: Likewise.
36652 * normal/lexer.c: Likewise.
36653 * normal/main.c: Likewise.
36654 * normal/menu.c: Likewise.
36655 * normal/menu_entry.c: Likewise.
36656 * normal/misc.c: Likewise.
36657 * normal/parser.y: Likewise.
36658 * normal/script.c: Likewise.
36659 * normal/i386/setjmp.S: Likewise.
36660 * normal/powerpc/setjmp.S: Likewise.
36661 * normal/sparc64/setjmp.S: Likewise.
36662 * partmap/acorn.c: Likewise.
36663 * partmap/amiga.c: Likewise.
36664 * partmap/apple.c: Likewise.
36665 * partmap/gpt.c: Likewise.
36666 * partmap/pc.c: Likewise.
36667 * partmap/sun.c: Likewise.
36668 * term/gfxterm.c: Likewise.
36669 * term/terminfo.c: Likewise.
36670 * term/efi/console.c: Likewise.
36671 * term/i386/pc/console.c: Likewise.
36672 * term/i386/pc/serial.c: Likewise.
36673 * term/i386/pc/vesafb.c: Likewise.
36674 * term/i386/pc/vga.c: Likewise.
36675 * term/ieee1275/ofconsole.c: Likewise.
36676 * util/biosdisk.c: Likewise.
36677 * util/console.c: Likewise.
36678 * util/genmoddep.c: Likewise.
36679 * util/getroot.c: Likewise.
36680 * util/grub-emu.c: Likewise.
36681 * util/grub-mkdevicemap.c: Likewise.
36682 * util/grub-probe.c: Likewise.
36683 * util/lvm.c: Likewise.
36684 * util/misc.c: Likewise.
36685 * util/raid.c: Likewise.
36686 * util/resolve.c: Likewise.
36687 * util/update-grub.in: Likewise.
36688 * util/update-grub_lib.in: Likewise.
36689 * util/grub.d/00_header.in: Likewise.
36690 * util/grub.d/10_hurd.in: Likewise.
36691 * util/grub.d/10_linux.in: Likewise.
36692 * util/i386/efi/grub-install.in: Likewise.
36693 * util/i386/efi/grub-mkimage.c: Likewise.
36694 * util/i386/pc/grub-install.in: Likewise.
36695 * util/i386/pc/grub-mkimage.c: Likewise.
36696 * util/i386/pc/grub-mkrescue.in: Likewise.
36697 * util/i386/pc/grub-setup.c: Likewise.
36698 * util/i386/pc/misc.c: Likewise.
36699 * util/powerpc/ieee1275/grub-install.in: Likewise.
36700 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
36701 * util/powerpc/ieee1275/misc.c: Likewise.
36702 * video/bitmap.c: Likewise.
36703 * video/video.c: Likewise.
36704 * video/i386/pc/vbe.c: Likewise.
36705 * video/i386/pc/vbeblit.c: Likewise.
36706 * video/i386/pc/vbefill.c: Likewise.
36707 * video/i386/pc/vbeutil.c: Likewise.
36708 * video/readers/tga.c: Likewise.
36709
3572d015 367102007-07-02 Robert Millan <rmh@aybabtu.com>
36711
36712 * conf/i386-efi.rmk: Replace obsolete reference to
36713 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
36714 with util/getroot.c.
36715 * conf/powerpc-ieee1275.rmk: Likewise.
36716 * conf/sparc64-ieee1275.rmk: Likewise.
36717
36718 * util/grub-emu.c (main): Fix unchecked pointer handling.
36719
2c2a681b 367202007-07-02 Robert Millan <rmh@aybabtu.com>
36721
36722 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
36723 invocation to fail, in order to support partition-less media.
36724
36725 * util/i386/pc/grub-install.in: Likewise.
36726
36727 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
36728 which fs or partmap modules are needed (akin to its sister scripts).
36729
36730 Also use grub-probe to get rid of unportable /proc/mounts check.
36731
36732 Print the same informational message that the other scripts do, before
fe6b695a 36733 exiting.
2c2a681b 36734
6193defe 367352007-06-23 Robert Millan <rmh@aybabtu.com>
36736
fe6b695a 36737 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 36738 a font file can be found and, if so, echo the GRUB path to it.
36739
36740 * util/update-grub.in: Handle multiple terminals depending on user
36741 input, platform availability and font file presence. Propagate
36742 variables of our findings to /etc/grub.d/ children.
36743
36744 * util/grub.d/00_header.in: Handle multiple terminals, based on
36745 environment setup by update-grub.
36746
eface1dc 367472007-06-23 Robert Millan <rmh@aybabtu.com>
36748
ba50d28f 36749 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 36750
bf697e28 367512007-06-21 Robert Millan <rmh@aybabtu.com>
36752
36753 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
36754 indicate end of data section in kernel image.
36755 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
36756 GRUB_KERNEL_MACHINE_DATA_END.
36757
36758 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
36759 space for it.
36760 * kern/i386/efi/startup.S: Likewise.
36761
36762 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
36763 during image generation. Implement --prefix option to override this
36764 patch.
36765 * util/i386/efi/grub-mkimage.c: Likewise.
36766
36767 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
36768 code to make path relative to its root into a separate function.
36769
36770 * util/i386/pc/grub-install.in: Use newly provided
36771 make_system_path_relative_to_its_root() to convert ${grubdir}, then
36772 pass the result to grub-install --prefix.
36773
baa574b4 367742007-06-13 Robert Millan <rmh@aybabtu.com>
36775
36776 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
36777 DEFAULT_DEVICE_MAP.
36778 * util/grub-emu.c: Use above definitions from misc.h instead of
36779 defining them.
36780 * util/grub-mkdevicemap.c: Likewise.
36781 * util/i386/pc/grub-setup.c: Likewise.
36782 * util/grub-probe.c: Likewise.
36783 (probe): Abort with grub_util_error() when either
36784 grub_guess_root_device or grub_util_get_grub_dev fails.
36785
0215dcbf 367862007-06-12 Robert Millan <rmh@aybabtu.com>
36787
36788 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
36789 "pager" assignment.
36790 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
36791 "pcdata".
36792 * util/grub-probe.c (probe): Likewise for "drive_name".
36793
8af2ab7b 367942007-06-11 Robert Millan <rmh@aybabtu.com>
36795
36796 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
36797 not just the cdrom one.
36798
59d31694 367992007-06-11 Robert Millan <rmh@aybabtu.com>
36800
36801 * util/i386/pc/grub-mkrescue.in: Add "set -e".
36802 Add --pkglibdir=DIR option to override pkglibdir.
36803 Mention --image-type=TYPE in help output.
36804 Fix --grub-mkimage (it was a no-op).
fe6b695a 36805 Abort gracefully when no parameter is given.
59d31694 36806
7ee367e4 368072007-06-11 Robert Millan <rmh@aybabtu.com>
36808
36809 * util/i386/pc/grub-mkrescue.in: New file.
36810 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
36811 * Makefile.in: Handle bin_SCRIPTS.
36812
29b0ed46 368132007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
36814
36815 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
36816 list of video modes.
36817
c0f90770 368182007-06-06 Robert Millan <rmh@aybabtu.com>
36819
36820 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
36821 file doesn't exist, or if it is in a filesystem grub can't read.
36822
36823 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
36824 not abort if GRUB_DRIVE could not be defined. Rearrange generated
36825 header comment to fit in 80 columns when the variables are resolved.
36826
36827 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
36828 could be identified by update-grub. Remove redundant check for
fe6b695a 36829 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 36830 handles that).
36831
fb36dc26 368322007-06-04 Robert Millan <rmh@aybabtu.com>
36833
36834 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
36835
36836 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
36837
36838 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
36839
0c68c93e 368402007-06-04 Robert Millan <rmh@aybabtu.com>
36841
36842 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
36843
36844 * include/grub/partition.h: Declare grub_apple_partition_map_init and
36845 grub_apple_partition_map_fini.
36846
36847 * util/biosdisk.c
36848 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
36849 to access >2 TiB disks).
36850
36851 Print disk->total_sectors with %llu instead of %lu, since this
36852 variable is always 64-bit (prevents wrong disk size from being displayed
36853 on either >2 TiB disk or big-endian CPU).
36854
36855 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
36856 into a generic case that supports all (sane) partition maps.
36857
36858 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
36859 breaks big-endian.
36860
36861 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
36862 and grub_apple_partition_map_fini() after that.
36863
0f23eb74 368642007-06-01 Robert Millan <rmh@aybabtu.com>
36865
36866 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
36867
36868 * util/grub.d/00_header.in: Only enable gfxterm when
36869 convert_system_path_to_grub_path() succeeds.
36870
42c71976 368712007-05-20 Robert Millan <rmh@aybabtu.com>
36872
36873 * util/update-grub_lib.in: New file.
36874 * DISTLIST: Add update-grub_lib.in.
36875 * conf/common.rmk: Generate update-grub_lib and install it in
36876 $(lib_DATA).
36877 * Makefile.in: Add install routine for $(lib_DATA).
36878
36879 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
36880 function provided by update-grub_lib to support arbitrary paths of
36881 unifont.pff.
36882 * util/update-grub.in: Use convert_system_path_to_grub_path() to
36883 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
36884
5beb2291 368852007-05-19 Robert Millan <rmh@aybabtu.com>
36886
36887 * commands/i386/cpuid.c: New module.
36888 * DISTLIST: Add it.
36889 * conf/i386-efi.rmk: Enable cpuid.mod.
36890 * conf/i386-pc.rmk: Likewise.
36891
7262eca1 368922007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
36893
36894 * kern/disk.c (grub_disk_read): Check return value of
36895 grub_realloc().
36896
260ba823 368972007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
36898
36899 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
36900 arrays.
36901 * disk/raid.c (grub_raid_open): Likewise.
36902
1ecb6cf2 369032007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36904
36905 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
36906 stack instead of on the heap.
36907
36908 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
36909 before doing a read on it.
36910
36911 * configure.ac: Only use -fno-stack-protector for the target
36912 environment.
f19dbdb7 36913
21c8cbb1 369142007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36915
36916 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
36917 __attribute_ ((unused)) to mode_type argument.
36918
36919 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 36920
21c8cbb1 36921 * kern/misc.c (memcmp): Fix prototype.
36922
36923 * include/grub/partition.h [GRUB_UTIL]
36924 (grub_gpt_partition_map_init): Add prototype.
36925 (grub_gpt_partition_map_fini): Likewise.
36926
36927 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
36928 at the right place.
36929
36930 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
36931 (grub_fat_read_data): Likewise.
36932 (grub_fat_find_dir): Likewise.
36933
36934 * font/manager.c (find_glyph): Make table a const.
36935 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 36936
849d55d3 369372007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
36938
36939 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
36940 code, first search for device in /dev/mapper, then in /dev.
36941 (grub_util_get_grub_dev): New function.
36942 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
36943 prototype.
36944 * util/grub-probe.c (probe): Remove check for RAID, call
36945 grub_util_get_grub_dev() instead of
36946 grub_util_biosdisk_get_grub_dev().
36947 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
36948 grub_util_biosdisk_get_grub_dev().
36949 * util/i386/pc/grub-setup.c (main): Likewise.
36950
8fff7c2f 369512007-05-16 Robert Millan <rmh@aybabtu.com>
36952
36953 * DISTLIST: Update for the latest changes.
36954 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
36955 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
36956 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
36957 grub/util/biosdisk.h.
36958 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
36959 grub/util/biosdisk.h.
36960
48e12b52 369612007-05-16 Robert Millan <rmh@aybabtu.com>
36962
36963 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
36964
46b9d128 369652007-05-16 Robert Millan <rmh@aybabtu.com>
36966
36967 * util/i386/efi/grub-install.in: New.
36968 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
36969 newly added grub-install.
36970 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
36971 include.
36972 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
36973 grub/util/biosdisk.h.
36974 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
36975 grub/util/biosdisk.h.
36976
2d1a40a9 369772007-05-16 Robert Millan <rmh@aybabtu.com>
36978
36979 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
36980 * include/grub/util/biosdisk.h: ... here.
36981 * util/i386/pc/biosdisk.c: Moved to ...
36982 * util/biosdisk.c: ... here.
36983 * util/i386/pc/getroot.c: Moved to ...
36984 * util/getroot.c: ... here.
36985 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
36986 * util/grub-mkdevicemap.c: ... here.
36987 * util/i386/pc/grub-probe.c: Moved to ...
36988 * util/grub-probe.c: ... here.
36989
9e26e3bc 369902007-05-15 Robert Millan <rmh@aybabtu.com>
36991
36992 * util/update-grub.in: Remove duplicated line in grub.cfg header
36993 message.
36994
57f96397 369952007-05-13 Robert Millan <rmh@aybabtu.com>
36996
36997 * util/update-grub.in: Fix a few assumptions about the devices holding
36998 /, /boot and /boot/grub being the same.
36999 * util/grub.d/00_header.in: Likewise.
37000 * util/grub.d/10_hurd.in: Likewise.
37001 * util/grub.d/10_linux.in: Likewise.
37002
37003 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
37004 patterns. Use that to define the `.old' suffix as older than `'.
37005
37006 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
37007
37008 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
37009 the grub.cfg header message.
37010
2e610d62 370112007-05-11 Robert Millan <rmh@aybabtu.com>
37012
37013 * util/update-grub.in: Create device.map if it doesn't already exist,
37014 before attempting to run grub-probe.
37015 Check for grub-probe and grub-mkdevicemap with the same code
37016 grub-install is using.
37017 Remove test mode.
37018
3f6a10ef 370192007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
37020
37021 * Makefile.in: Add the datarootdir autoconf variable.
37022
02e7b75e 370232007-05-09 Robert Millan <rmh@aybabtu.com>
37024
37025 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 37026 fail gracefully if dev->disk->partition == NULL.
02e7b75e 37027
75f396cc 370282007-05-07 Robert Millan <rmh@aybabtu.com>
37029
37030 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
37031 determine partition map module.
37032 * util/i386/pc/grub-install.in: Use this feature to decide which
37033 partition module to load, instead of hardcoding pc and gpt.
37034
da65cb36 370352007-05-07 Robert Millan <rmh@aybabtu.com>
37036
37037 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
37038 source directory differs from build directory.
37039
b57d6a91 370402007-05-05 Robert Millan <rmh@aybabtu.com>
37041
37042 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
37043 initialisation.
37044
509d00f1 370452007-05-05 Robert Millan <rmh@aybabtu.com>
37046
37047 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
37048
c48f23ef 370492007-05-05 Robert Millan <rmh@aybabtu.com>
37050
37051 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
37052 command-line arguments via ${GRUB_CMDLINE_LINUX}.
37053
20b97658 370542007-05-05 Robert Millan <rmh@aybabtu.com>
37055
37056 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
37057 (grub_probe_SOURCES): Likewise.
37058 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
37059 GPT and initialize dos_part and bsd_part accordingly.
37060 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
37061 install_bsd_part.
37062 (main): Activate gpt module for use during partition identification,
37063 and deactivate it afterwards.
37064 * util/i386/pc/grub-install.in: Add gpt module to core.img.
37065 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
37066 partition identification, and deactivate it afterwards.
37067
99123174 370682007-05-05 Robert Millan <rmh@aybabtu.com>
37069
37070 * term/i386/pc/console.c (grub_console_fini): Call
37071 grub_term_set_current() before grub_term_unregister().
37072
ebd97f6e 370732007-05-04 Robert Millan <rmh@aybabtu.com>
37074
37075 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
37076 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
37077 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
37078 and update-grub_DATA.
37079 * conf/common.rmk: Build and install update-grub components.
37080 * conf/common.mk: Regenerate.
37081 * util/update-grub.in: New. Core of update-grub.
37082 * util/grub.d/00_header.in: New. Generates grub.cfg header.
37083 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
37084 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
37085 * util/grub.d/README: New. Document grub.d directory layout.
37086
b06a264d 370872007-05-01 Robert Millan <rmh@aybabtu.com>
37088
37089 * util/grub-emu.c: Move initialization functions
37090 grub_util_biosdisk_init() and grub_init_all() before
37091 grub_util_biosdisk_get_grub_dev(), which relies on them.
37092
41f0050e 370932007-04-19 Robert Millan <rmh@aybabtu.com>
37094
37095 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
37096 it is used later.
37097
04582bb3 370982007-04-18 Jerone Young <jerone@gmail.com>
37099
f19dbdb7 37100 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 37101 stanza.
37102
08db4632 371032007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 37104
08db4632 37105 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
37106 continue on and look for device node with real device name.
37107
801b76be 371082007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 37109
fe6b695a 37110 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 37111 ability.
37112 * Makefile.in: Add autoconf package transformation code.
37113 * util/i386/pc/grub-install.in: Likewise.
37114 * util/powerpc/ieee1275/grub-install.in: Likewise.
37115
6795c4e1 371162007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
37117
37118 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
37119 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
37120 (EXT2_REVISION): Likewise.
37121 (EXT2_INODE_SIZE): Likewise.
37122 (struct grub_ext2_block_group): Added a missing member
37123 "used_dirs".
37124 (grub_ext2_read_inode): Divide by the inode size in a superblock
37125 instead of 128 to obtain INODES_PER_BLOCK.
37126 Use the macro EXT2_INODE_SIZE instead of directly using
37127 SBLOCK->INODE_SIZE.
37128
d70af616 371292007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
37130
37131 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
37132 superblock instead of the structure size to compute an
37133 offset. This fixes the problem that GRUB could not read a
37134 filesystem when inode size is different from 128-byte.
37135
3b801603 371362007-03-05 Marco Gerards <marco@gnu.org>
37137
37138 * normal/main.c (read_config_file): When "menu" is not set, create
37139 an initial context.
37140
4785bfe4 371412007-02-21 Hollis Blanchard <hollis@penguinppc.org>
37142
37143 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
37144 (HEAP_LIMIT): New macro.
37145 (grub_claim_heap): Claim memory up to `heaplimit'.
37146
a0cbb023 371472007-02-21 Hollis Blanchard <hollis@penguinppc.org>
37148
37149 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
37150 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
37151 (_start): Likewise.
37152 (grub_arch_modules_addr): Return address after `_end'.
37153 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
37154 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
37155 (add_segments): Calculate `_end' from phdr size and location.
37156 (ALIGN_UP): Moved to ...
37157 * include/grub/misc.h: here.
37158 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
37159 New macro.
37160 (GRUB_IEEE1275_MODULE_BASE): Removed.
37161
fd7d8eba 371622007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37163
37164 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
37165 loop boundary.
37166
9b09e6fc 371672007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37168
37169 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
37170 All users updated.
37171 (grub_elf64_load_hook_t): Likewise.
37172 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
37173 debug output.
37174
3ce27299 371752007-02-20 Hollis Blanchard <hollis@penguinppc.org>
37176
37177 * kern/mm.c: Update copyright.
37178 (grub_mm_debug): Correct syntax error.
37179 (grub_mm_dump_free): New function.
37180 (grub_debug_free): Call `grub_free'.
37181 * include/grub/mm.h: Update copyright.
37182 (grub_mm_dump_free): Add declaration.
37183
077d5fee 371842007-02-12 Hollis Blanchard <hollis@penguinppc.org>
37185
37186 * include/grub/ieee1275/ieee1275.h: Update copyright.
37187 * kern/powerpc/ieee1275/init.c: Likewise.
37188 * kern/powerpc/ieee1275/openfw.c: Likewise.
37189
37190 * loader/powerpc/ieee1275/linux.c: Likewise.
37191 * include/grub/elfload.h: Likewise.
37192 * kern/elf.c: Likewise.
37193 (grub_elf32_load): Pass `base' and `size' parameters. Update all
37194 callers.
37195 (grub_elf64_load): Likewise.
37196 (grub_elf32_load_segment): Move to a nested function.
37197 (grub_elf64_load_segment): Likewise.
37198
dc946850 371992007-02-12 Hollis Blanchard <hollis@penguinppc.org>
37200
37201 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
37202 prototype.
37203 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
37204 (grub_heap_len): Likewise.
37205 (HEAP_SIZE): New macro.
37206 (grub_claim_heap): New function.
37207 (grub_machine_init): Don't claim heap directly. Call
37208 `grub_claim_heap'.
37209 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
37210 (grub_available_iterate): New function.
37211
baa2a121 372122007-02-03 Thomas Schwinge <tschwinge@gnu.org>
37213
37214 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
37215 * configure.ac: Use it for testing the HOST and TARGET compilers.
37216
4fe9862e 372172006-12-13 Thomas Schwinge <tschwinge@gnu.org>
37218
37219 * Makefile.in (enable_grub_emu): New variable.
37220 * configure.ac (--enable-grub-emu): New option.
37221 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
37222 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
37223 * conf/i386-pc.rmk: Likewise.
37224 * conf/powerpc-ieee1275.rmk: Likewise.
37225 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
37226
a8aa5762 372272006-12-12 Marco Gerards <marco@gnu.org>
37228
37229 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
37230
37231 * kern/env.c (grub_env_unset): Don't free the member `value' when
37232 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
37233 pointer.
37234
37235 * normal/main.c (current_menu): Removed.
37236 (free_menu): Unset the `menu' environment variable.
37237 (grub_normal_menu_addentry): Make use of the environment variable
37238 `menu', instead of using the global `current_menu'. Allocate
37239 memory for the sourcecode of this entry.
37240 (read_config_file): New argument `nested', changed all callers.
37241 Only in the case of a new context, initialize a new menu. Set the
37242 `menu' environment variable.
37243 (grub_normal_execute): Don't set and unset the environment
37244 variable `menu' here anymore. Only free the menu when leaving the
37245 context.
37246
37247 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
37248 leak.
37249
957b3a3e 372502006-12-11 Marco Gerards <marco@gnu.org>
37251
37252 * normal/menu_entry.c (run): Fix off by one bug so the last line
37253 is executed. Move the loader check to outside the loop.
37254
ef875714 372552006-12-08 Hollis Blanchard <hollis@penguinppc.org>
37256
37257 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
37258
4e739985 372592006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
37260
37261 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
37262 the number of sectors. Reported by Andrey Shuvikov
37263 <mr_hyro@yahoo.com>.
f19dbdb7 37264
790707f2 372652006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
37266
37267 * kern/disk.c (grub_disk_read): When there is a read error, always
37268 try to read only the necessary data.
f19dbdb7 37269
790707f2 37270 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
37271 disk/raid.c.
37272 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
37273 prototype.
37274 [GRUB_UTIL] (grub_raid_fini): Likewise.
37275 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 37276 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 37277 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
37278 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
37279 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
37280 and grub_raid_fini().
f19dbdb7 37281
03e58196 372822006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
37283
37284 * include/grub/types.h (__unused): Rename to UNUSED.
37285 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
37286 (grub_elf64_size): Likewise.
f19dbdb7 37287
ae4f23bf 372882006-11-03 Hollis Blanchard <hollis@penguinppc.org>
37289
37290 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
37291 grub_error_push and grub_error_pop in the error-handling path.
37292 (grub_elf32_load_segment): Only call grub_file_read with non-zero
37293 length.
37294
2166cc83 372952006-11-03 Hollis Blanchard <hollis@penguinppc.org>
37296
37297 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
37298 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37300 (kernel_elf_SOURCES): Likewise.
37301 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
37302 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
37303 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
37304 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
37305 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
37306 (elf_mod_SOURCES): New variable.
37307 (elf_mod_CFLAGS): Likewise.
37308 (elf_mod_LDFLAGS): Likewise.
37309 * include/grub/types.h (__unused): New macro.
37310 * include/grub/elfload.h: New file.
37311 * kern/elf.c: Likewise.
37312 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
37313 (ELF32_LOADMASK): New macro.
37314 (ELF64_LOADMASK): Likewise.
37315 (vmlinux): Removed.
37316 (grub_linux_load32): New function.
37317 (grub_linux_load64): Likewise.
37318 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
37319 Use grub_elf_t instead of grub_file_t.
37320
a09d5aa5 373212006-11-02 Hollis Blanchard <hollis@penguinppc.org>
37322
37323 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
37324 `catch_result' to struct set_color_args.
37325
d976fc51 373262006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
37327
37328 * normal/menu.c: Include grub/script.h.
37329 * normal/menu_entry.c: Likewise.
37330 * include/grub/normal.h: Do not include grub/script.h.
37331
67507549 373322006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37333
37334 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
37335
69203a99 373362006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37337
37338 * kern/disk.c (grub_disk_open): Print debug messages when opening a
37339 disk.
37340 (grub_disk_close): Print debug messages when closing a disk.
37341 (grub_disk_read): Print debug messages when disk read fails.
37342 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
37343 filesystem type.
37344 * kern/partition.c: Include misc.h.
37345 (grub_partition_iterate): Print debug messages when detecting
37346 partition type.
37347
e2b8278c 373482006-10-27 Hollis Blanchard <hollis@penguinppc.org>
37349
37350 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
37351 is negative.
37352 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
37353
97b2f2ff 373542006-10-26 Hollis Blanchard <hollis@penguinppc.org>
37355
37356 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
37357 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
37358
6555d655 373592006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
37360
37361 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
37362 instead of sizeof(lv). Patch by Michael Guntsche.
37363
4d42b77f 373642006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
37365
37366 * disk/lvm.c: Rename VGS to VG_LIST.
37367 (grub_lvm_iterate): Change VGS->LV to VG-LV.
37368 (grub_lvm_open): Likewise.
37369 Thanks to Michael Guntsche for finding this bug.
37370
5d74d927 373712006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37372
37373 * configure.ac (AC_INIT): Bumped to 1.95.
37374
a1bb27e4 373752006-10-14 Robert Millan <rmh@aybabtu.com>
37376
37377 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
37378 with "/dev/.static/dev/md".
37379
e0994b8b 373802006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
37381
37382 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
37383 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
37384 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
37385 DRIVE_NAME are always freed.
37386
37387 * util/i386/pc/biosdisk.c (make_device_name): Add one into
37388 DOS_PART, as a DOS partition is counted from one instead of zero
37389 now. Reported by Robert Millan.
37390
ddd5cee9 373912006-10-14 Robert Millan <rmh@aybabtu.com>
37392
37393 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
37394 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
37395 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
37396 string returned by grub_guess_root_device.
37397 * util/i386/pc/grub-setup.c: Likewise.
37398 * util/i386/pc/grub-probefs.c: Likewise.
37399
37400 * util/i386/pc/grub-probefs.c: Rename to ...
37401 * util/i386/pc/grub-probe.c: ... this.
37402 * DISTLIST: Remove grub-probefs, add grub-probe.
37403 * conf/i386-efi.rmk: Likewise.
37404 * conf/i386-pc.rmk: Likewise.
37405 * util/i386/pc/grub-install.in: Likewise.
37406
37407 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
37408 choose which information we want to print.
37409
2b002173 374102006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
37411
37412 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
37413 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
37414 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
37415 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
37416 video/readers/tga.c and video/i386/pc/vbeutil.c.
37417
374182006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
37419
37420 Added support for RAID and LVM.
f19dbdb7 37421
2b002173 37422 * disk/lvm.c: New file.
37423 * disk/raid.c: Likewise.
37424 * include/grub/lvm.h: Likewise.
f19dbdb7 37425 * include/grub/raid.h: Likewise.
2b002173 37426 * include/grub/util/lvm.h: Likewise.
37427 * include/grub/util/raid.h: Likewise.
37428 * util/lvm.c: Likewise.
37429 * util/raid.c: Likewise.
37430
37431 * include/grub/disk.h (grub_disk_dev_id): Add
37432 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
37433 (grub_disk_get_size): New prototype.
37434 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
37435 returns a partition.
37436 (grub_disk_get_size): New function.
f19dbdb7 37437
2b002173 37438 * kern/i386/pc/init.c (make_install_device): Copy the prefix
37439 verbatim if grub_install_dos_part is -2.
37440
37441 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
37442 and LVM devices.
37443
37444 * util/i386/pc/grub-setup.c (setup): New argument
37445 MUST_EMBED. Force embedding of GRUB when the argument is
37446 true. Close FILE before returning.
37447 (main): Add support for RAID and LVM.
f19dbdb7 37448
2b002173 37449 * conf/common.rmk: Add RAID and LVM modules.
37450 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
37451 util/lvm.c.
37452 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
37453
37454 * kern/misc.c (grub_strstr): New function.
37455 * include/grub/misc.h (grub_strstr): New prototype.
37456
050548d0 374572006-10-10 Tristan Gingold <tristan.gingold@bull.net>
37458
37459 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
37460
da849d2d 374612006-10-05 Tristan Gingold <tristan.gingold@bull.net>
37462
37463 * kern/misc.c (grub_strtoull): Guess the base only if not
37464 specified.
37465
97b2f2ff 374662006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 37467
37468 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
37469 PowerMac support.
37470
97b2f2ff 374712006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 37472
37473 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
37474
37475 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
37476 Remove `flags' argument. All callers changed.
37477 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
37478 (IEEE1275_IHANDLE_INVALID): New variable.
37479 (IEEE1275_CELL_INVALID): New variable.
37480 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
37481 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
37482 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
37483 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
37484 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
37485 codes from Open Firmware. All callers updated.
37486 (grub_ieee1275_next_property): Directly return Open Firmware return
37487 code.
37488 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37489 Standardize error checking from `grub_ieee1275_get_property'.
37490 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
37491 `devalias' to `aliases'. Correct comments. Consolidate error paths.
37492
97b2f2ff 374932006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 37494
37495 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
37496 `instance_to_package_args' to `instance_to_path_args'.
37497
37498 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
37499 `grub_ieee1275_chosen'.
37500
37501 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
37502 `grub_ieee1275_interpret'.
37503
97b2f2ff 375042006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 37505
37506 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
37507
97b2f2ff 375082006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 37509
37510 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
37511 (__cmpdi): Likewise.
37512
37513 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
37514 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
37515 `grub_ssize_t'.
37516
02bb8acc 37517 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 37518
37519 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
37520 to type `grub_ssize_t'.
37521 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
37522
7f9a8531 375232006-09-22 Marco Gerards <marco@gnu.org>
37524
37525 * normal/script.c (grub_script_create_cmdmenu): Skip leading
37526 newlines.
37527
b5ef1102 375282006-09-22 Marco Gerards <marco@gnu.org>
37529
37530 * commands/echo.c: New file.
37531
37532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
37533
37534 * conf/common.rmk (echo_mod_SOURCES): New variable.
37535 (echo_mod_CFLAGS): Likewise.
37536 (echo_mod_LDFLAGS): Likewise.
37537
2cff3677 375382006-09-22 Marco Gerards <marco@gnu.org>
37539
37540 * normal/main.c (get_line): Malloc memory instead of using
37541 preallocated memory. Removed the arguments `cmdline' and
37542 `max_len'. Updated all callers.
37543
6ba4688b 375442006-09-22 Marco Gerards <marco@gnu.org>
37545
37546 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
37547 (normal_mod_DEPENDENCIES): Likewise.
37548
37549 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
37550 (normal_mod_DEPENDENCIES): Likewise.
37551
37552 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
37553
e02ac02c 375542006-09-22 Johan Rydberg <jrydberg@gnu.org>
37555
37556 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
37557 programs.
37558 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
37559 (normal_mod_DEPENDENCIES): Likewise.
37560 * conf/i386-pc.mk: Regenerate.
37561 * conf/i386-efi.mk: Likewise
37562 * conf/common.mk: Likewise.
37563 * conf/powerpc-ieee1275.mk: Likewise.
37564 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 37565
8d252e44 375662006-09-22 Robert Millan <rmh@aybabtu.com>
37567
37568 Sync with i386 version.
37569 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
37570 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
37571
209bf7ac 375722006-09-21 Robert Millan <rmh@aybabtu.com>
37573
37574 Import from GRUB Legacy (lib/device.c):
37575 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
37576 (init_device_map) [__linux__]: Add support for I2O devices.
37577
6b146090 375782006-09-14 Marco Gerards <marco@gnu.org>
37579
37580 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
37581 `-melf_i386'.
37582
e38600a8 375832006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 37584
37585 * util/i386/pc/grub-install.in: Skip menu.lst when removing
37586 /boot/grub/*.lst.
78fa1790 37587
2952da5d 37588 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 37589
2952da5d 37590 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
37591 before adding it to device.map.
37592
01b82a64 375932006-08-15 Johan Rydberg <jrydberg@gnu.org>
37594
fe6b695a 37595 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 37596 compiles a file; using the -MD option.
37597 * conf/common.mk: Regenerate.
37598 * conf/i386-pc.mk: Likewise.
37599 * conf/i386-efi.mk: Likewise.
37600 * conf/powerpc-ieee1275.mk: Likewise.
37601 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 37602
1064790d 376032006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
37604
37605 Move the prototypes of grub_setjmp and grub_longjmp to
37606 cpu/setjmp.h, so that each architecture may specify different
37607 attributes.
f19dbdb7 37608
1064790d 37609 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
37610 (grub_longjmp): Likewise.
37611 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
37612 (grub_longjmp): Likewise.
37613 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
37614 (grub_longjmp): Likewise.
37615
37616 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
37617 [!GRUB_UTIL] (grub_longjmp): Removed.
37618
29dda3ed 376192006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
37620
37621 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
37622 "color!" method does not return any value.
37623
ad2a06ed 376242006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37625
37626 * include/grub/bitmap.h: New file.
37627
37628 * include/grub/i386/pc/vbeutil.h: Likewise.
37629
37630 * video/bitmap.c: Likewise.
37631
37632 * video/readers/tga.c: Likewise.
37633
37634 * video/i386/pc/vbeutil.c: Likewise.
37635
37636 * commands/videotest.c: Code cleanup and updated to reflect to new
37637 video API.
37638
37639 * term/gfxterm.c: Likewise.
37640
37641 * video/video.c: Likewise.
37642
37643 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
37644 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
37645 (bitmap_mod_SOURCES): New entry.
37646 (bitmap_mod_CFLAGS): Likewise.
37647 (bitmap_mod_LDFLAGS): Likewise.
37648 (tga_mod_SOURCES): Likewise.
37649 (tga_mod_CFLAGS): Likewise.
37650 (tga_mod_LDFLAGS): Likewise.
37651
37652 * include/grub/video.h (grub_video_blit_operators): New enum type.
37653 (grub_video_render_target): Changed as forward declaration and moved
37654 actual definition to be video driver specific.
37655 (grub_video_adapter.blit_bitmap): Added blitting operator.
37656 (grub_video_adapter.blit_render_target): Likewise.
37657 (grub_video_blit_bitmap): Likewise.
37658 (grub_video_blit_render_target): Likewise.
37659
37660 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
37661 driver specific render target definition.
37662 (grub_video_vbe_map_rgba): Added driver internal helper.
37663 (grub_video_vbe_unmap_color): Updated to use
37664 grub_video_i386_vbeblit_info.
37665 (grub_video_vbe_get_video_ptr): Likewise.
37666
37667 * include/grub/i386/pc/vbeblit.h
37668 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
37669 grub_video_i386_vbeblit_info.
37670 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37671 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37672 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37673 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37674 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37675 (grub_video_i386_vbeblit_index_index): Likewise.
37676 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
37677 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37678 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37679 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
37680 operator.
37681 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
37682 operator.
37683
37684 * video/i386/pc/vbeblit.c: Updated to reflect changes on
37685 include/grub/i386/pc/vbeblit.h.
37686
37687 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
37688 Updated to use grub_video_i386_vbeblit_info.
37689 (grub_video_i386_vbefill_R8G8B8): Likewise.
37690 (grub_video_i386_vbefill_index): Likewise.
37691 (grub_video_i386_vbefill): Added generic filler.
37692
37693 * video/i386/pc/vbefill.c: Updated to reflect changes on
37694 include/grub/i386/pc/vbefill.h.
37695
37696 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
37697 grub_video_i386_vbeblit_info.
37698 (grub_video_vbe_unmap_color): Likewise.
37699 (grub_video_vbe_blit_glyph): Likewise.
37700 (grub_video_vbe_scroll): Likewise.
37701 (grub_video_vbe_draw_pixel): Removed function.
37702 (grub_video_vbe_get_pixel): Likewise.
37703 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
37704 updated code to use it.
37705 (common_blitter): Added common blitter for render target and bitmap.
37706 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
37707 (grub_video_vbe_blit_render_target): Likewise.
37708
bc8c036d 377092006-07-30 Johan Rydberg <jrydberg@gnu.org>
37710
37711 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
37712 is in text mode if there is no console control protocol instance
37713 available.
37714
684a8eff 377152006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37716
37717 * include/grub/video.h: Code cleanup.
37718
37719 * include/grub/i386/pc/vbe.h: Likewise.
37720
37721 * video/i386/pc/vbe.c: Likewise.
37722
37723 * video/i386/pc/vbeblit.c: Likewise.
37724
37725 * video/i386/pc/vbefill.c: Likewise.
37726
37727 * video/video.c: Likewise. Also added more comments.
37728
5915059b 377292006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
37730
37731 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
37732 (struct grub_biosdisk_dap): Likewise.
37733
37734 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
37735 linkage settings for all functions.
37736
90ce5d56 377372006-07-12 Marco Gerards <marco@gnu.org>
37738
37739 * configure.ac (--enable-mm-debug): Fix typo.
37740
37741 * genkernsyms.sh.in: Use proper quoting for `CC'.
37742
43e7f879 377432006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
37744
37745 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
37746 (normal_mod_ASFLAGS): Remove "-m32".
37747
4889bdec 377482006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
37749
37750 * util/misc.c: Include config.h.
37751 [!HAVE_MEMALIGN]: Do not include malloc.h.
37752 (grub_memalign): Use posix_memalign, if present. Then, use
37753 memalign, if present. Otherwise, emit an error.
37754
37755 * util/grub-emu.c: Do not include malloc.h.
37756
37757 * include/grub/util/misc.h: Include unistd.h. This is required for
37758 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
37759 D. Eades III <hde@foobar-qux.org>.
37760
37761 * configure.ac (AC_GNU_SOURCE): Added.
37762 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
37763 type.
37764
fd39d4da 377652006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
37766
37767 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
37768 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
37769
b786f3b5 377702006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
37771
37772 * include/grub/types.h (grub_host_addr_t): Rename to
37773 grub_target_addr_t.
37774 (grub_host_off_t): Rename to grub_target_off_t.
37775 (grub_host_size_t): Rename to grub_target_size_t.
37776 (grub_host_ssize_t): Rename to grub_target_ssize_t.
37777 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
37778
37779 * include/grub/kernel.h (struct grub_module_header): Change type
37780 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
37781 (grub_module_info): Likewise.
f19dbdb7 37782
051988bb 377832006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
37784
37785 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
37786 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
37787 Velazquez <jesus.velazquez@gmail.com>.
37788
deae281b 377892006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
37790
37791 Count partitions from 1 instead of 0 in the string representation
37792 of partitions. Still use 0-based internally.
f19dbdb7 37793
deae281b 37794 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
37795 (sun_partition_map_iterate): Use grub_partition_t instead of
37796 struct grub_partition *. Cast DESC->START_CYLINDER to
37797 grub_uint64_t after converting the endian.
37798 (sun_partition_map_probe): Subtract 1 for PARTNUM.
37799 (sun_partition_map_get_name): Add 1 to P->INDEX.
37800
37801 * partmap/pc.c (grub_partition_parse): Subtract 1 for
37802 PCDATA->DOS_PART.
37803 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
37804
37805 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
37806 zero instead of one.
37807 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
37808 (gpt_partition_map_get_name): Add 1 into P->INDEX.
37809
37810 * partmap/apple.c (apple_partition_map_iterate): Change the type
37811 of POS to unsigned.
37812 (apple_partition_map_probe): Subtract 1 for PARTNUM.
37813 (apple_partition_map_get_name): Add 1 into P->INDEX.
37814
37815 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
37816 of POS to unsigned.
37817 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
37818 calculate the offset of a partition.
37819 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
37820 (amiga_partition_map_get_name): Add 1 into P->INDEX.
37821
37822 * partmap/acorn.c (acorn_partition_map_find): Change the type of
37823 SECTOR to grub_disk_addr_t.
37824 (acorn_partition_map_iterate): Likewise.
37825 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
37826 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
37827 top.
37828 (acorn_partition_map_get_name): Add 1 into P->INDEX.
37829
37830 * kern/i386/pc/init.c (make_install_device): Add 1 into
37831 GRUB_INSTALL_DOS_PART.
37832
37833 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
37834 conditional.
37835
524a1e6a 378362006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37837
37838 Clean up the code to support 64-bit addressing in disks and
37839 files. This change is not enough for filesystems yet.
f19dbdb7 37840
524a1e6a 37841 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
37842 type of "start" to grub_uint64_t.
37843 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
37844 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
37845 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
37846 convert addresses.
37847
37848 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
37849 to grub_disk_addr_t.
37850
37851 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
37852 string.
37853
37854 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37855
37856 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
37857 to char *.
37858
37859 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
37860
37861 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
37862
37863 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
37864
37865 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
37866 to grub_off_t, to detect an error from grub_file_seek.
37867 (grub_multiboot_load_elf32): Likewise.
37868
37869 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
37870 maximum unsigned long value when an overflow is detected.
37871 (grub_strtoull): New function.
37872 (grub_divmod64): Likewise.
37873 (grub_lltoa): use grub_divmod64.
37874
37875 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
37876 grub_disk_addr_t.
37877 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
37878 the pointer to next character. Use grub_strtoull instead of
37879 grub_strtoul.
37880 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
37881 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
37882 respectively.
37883
fe6b695a 37884 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 37885 return value is signed.
37886 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
37887 test if OFFSET is less than zero, as OFFSET is unsigned now.
37888
37889 * kern/disk.c (struct grub_disk_cache): Change the type of
37890 "sector" to grub_disk_addr_t.
37891 (grub_disk_cache_get_index): Change the type of SECTOR to
37892 grub_disk_addr_t. Calculate the hash with SECTOR casted to
37893 unsigned after shifting.
37894 (grub_disk_cache_invalidate): Change the type of SECTOR to
37895 grub_disk_addr_t.
37896 (grub_disk_cache_unlock): Likewise.
37897 (grub_disk_cache_store): Likewise.
37898 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
37899 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
37900 grub_disk_addr_t and grub_uint64_t, respectively.
37901 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
37902 body, as the value of OFFSET is tweaked by
37903 grub_disk_check_range. Change the types of START_SECTOR, LEN and
37904 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
37905 respectively.
37906 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
37907 body, as the value of OFFSET is tweaked by
37908 grub_disk_check_range. Change the types of LEN and N to
37909 grub_size_t.
37910
37911 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
37912 and "saved_offset" to grub_off_t.
37913 (test_header): Cast BUF to char *.
37914 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
37915 to char *.
37916 (grub_gzio_read): Change the types of OFFSET and SIZE to
37917 grub_off_t and grub_size_t, respectively.
37918
37919 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
37920 Removed.
37921 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
37922 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
37923 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
37924 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
37925 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
37926
37927 * include/grub/types.h (grub_off_t): Unconditionally set to
37928 grub_uint64_t.
37929 (grub_disk_addr_t): Changed to grub_uint64_t.
37930
37931 * include/grub/partition.h (struct grub_partition): Change the
37932 types of "start", "len" and "offset" to grub_disk_addr_t,
37933 grub_uint64_t and grub_disk_addr_t, respectively.
37934 (grub_partition_get_start): Return grub_disk_addr_t.
37935 (grub_partition_get_len): Return grub_uint64_t.
37936
37937 * include/grub/misc.h (grub_strtoull): New prototype.
37938 (grub_divmod64): Likewise.
37939
37940 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
37941 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
37942 grub_off_t, respectively.
37943 All callers and references changed.
37944
37945 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
37946 grub_size_t in "read".
37947 All callers and references changed.
37948
37949 * include/grub/file.h (struct grub_file): Change the types of
37950 "offset" and "size" to grub_off_t and grub_off_t,
37951 respectively. Change the type of SECTOR to grub_disk_addr_t in
37952 "read_hook".
37953 (grub_file_read): Change the type of LEN to grub_size_t.
37954 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
37955 grub_off_t.
37956 (grub_file_size): Return grub_off_t.
37957 (grub_file_tell): Likewise.
37958 All callers and references changed.
37959
37960 * include/grub/disk.h (struct grub_disk_dev): Change the types of
37961 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
37962 "write".
37963 (struct grub_disk): Change the type of "total_sectors" to
37964 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 37965 "read_hook".
524a1e6a 37966 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
37967 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
37968 (grub_disk_write): Likewise.
37969 All callers and references changed.
37970
37971 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
37972 char * for grub_strncmp to silence gcc.
37973 (grub_iso9660_mount): Likewise.
37974 (grub_iso9660_mount): Likewise.
37975 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
37976 return statement.
37977 (grub_iso9660_iterate_dir): Likewise.
37978 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
37979
37980 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
37981 LEN to grub_disk_addr_t and grub_size_t, respectively.
37982
37983 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
37984
37985 * fs/jfs.c (grub_jfs_read_file): Likewise.
37986
37987 * fs/minix.c (grub_jfs_read_file): Likewise.
37988
37989 * fs/sfs.c (grub_jfs_read_file): Likewise.
37990
37991 * fs/ufs.c (grub_jfs_read_file): Likewise.
37992
37993 * fs/xfs.c (grub_jfs_read_file): Likewise.
37994
37995 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
37996 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
37997 respectively.
37998
37999 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
38000 BLKNR to -1 instead of returning GRUB_ERRNO.
38001 (grub_ext2_read_file): Change the types of SECTOR and
38002 LEN to grub_disk_addr_t and grub_size_t, respectively.
38003
38004 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
38005 LEN to grub_disk_addr_t and grub_size_t, respectively.
38006
38007 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
38008 grub_file_read.
38009
38010 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
38011 string. Do not cast SECTOR explicitly.
38012
38013 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
38014 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
38015 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
38016 grub_disk_addr_t and grub_size_t, respectively. If the sector is
38017 over 2TB and LBA mode is not supported, raise an error.
38018 (get_safe_sectors): New function.
38019 (grub_biosdisk_read): Use get_safe_sectors.
38020 (grub_biosdisk_write): Likewise.
38021
38022 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
38023 (grub_efidisk_write): Likewise.
38024
38025 * disk/loopback.c (delete_loopback): Cosmetic changes.
38026 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
38027 correctly.
38028 (grub_loopback_open): Likewise.
38029 (grub_loopback_read): Likewise. Also, change the type of POS to
38030 grub_off_t, and fix the usage of grub_memset.
38031
38032 * commands/i386/pc/play.c: Include grub/machine/time.h.
38033
38034 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
38035 print FILE->SIZE.
38036
38037 * commands/configfile.c: Include grub/env.h.
38038
38039 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
38040 GRUB_ERRNO directly instead. Change the type of POS to
38041 grub_off_t. Follow the coding standard.
38042
38043 * commands/blocklist.c: Include grub/partition.h.
38044 (grub_cmd_blocklist): Return an error if the underlying device is
38045 not a disk. Take the starting sector of a partition into account,
38046 if a partition is used.
38047
38048 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
38049 a length field.
38050 (lba_mode): Support 64-bit addresses.
38051 (chs_mode): Likewise.
38052 (copy_buffer): Adapted to the new offsets of a length field and a
38053 segment field.
38054 (blocklist_default_start): Allocate 64-bit space.
38055
38056 * boot/i386/pc/boot.S (force_lba): Removed.
38057 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 38058 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 38059 space.
38060 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
38061 is useless.
38062 (lba_mode): Refactored to support a 64-bit address. More size
38063 optimization.
38064 (setup_sectors): Likewise.
38065
53af98ad 380662006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
38067
38068 * DISTLIST: Added include/grub/i386/linux.h. Removed
38069 include/grub/i386/pc/linux.h
38070
38071 * configure.ac (AC_INIT): Bumped to 1.94.
38072
38073 * config.guess: Updated from gnulib.
38074 * config.sub: Likewise.
38075 * install-sh: Likewise.
38076 * mkinstalldirs: Likewise.
38077
b4c1940a 380782006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
38079
38080 * conf/common.rmk (grub_modules_init.lst): Depended on
38081 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
38082 MODSRCFILES.
38083
38084 * genmk.rb (PModule::rule): Reverted the previous change.
38085
cfca1cfd 380862006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
38087
38088 * conf/common.rmk (grub_modules_init.lst): Depends on
38089 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
38090 that the target does not exist before producing.
38091 (grub_modules_init.h): Remove the target before generating.
38092 (grub_emu_init.c): Likewise.
38093
38094 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
38095
aa6d7826 380962006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
38097
38098 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
38099 for the target-specific tests. Make sure that we also have the
38100 up-to-date target variables for those tests.
38101
26c607b9 381022006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
38103
38104 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
38105 (PModule::rule): Likewise.
38106
0162321a 381072006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
38108
38109 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
38110 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
38111 target-specific flags should be prefixed.
38112 (PModule::rule): Likewise.
38113
6c826348 381142006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
38115
38116 * configure.ac (CMP): Check if cmp is available explicitly.
38117
b977bf01 381182006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
38119
38120 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
38121 (target_cpu): New variable.
38122 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 38123
b977bf01 38124 * util/i386/pc/grub-install.in (host_cpu): Removed.
38125 (target_cpu): New variable.
38126 (pkglibdir): Use target_cpu instead of host_cpu.
38127
38128 * util/genmoddep.c: Removed.
f19dbdb7 38129
b977bf01 38130 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
38131 instead of GRUB_HOST_SIZEOF_VOID_P.
38132 * kern/dl.c: Likewise.
38133
38134 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
38135 ...
38136 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38137 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38138 (GRUB_TARGET_SIZEOF_LONG): ... this.
38139 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38140 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38141 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
38142 to ...
38143 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38144 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38145 (GRUB_TARGET_SIZEOF_LONG): ... this.
38146 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38147 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38148 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
38149 to ...
38150 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
38151 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
38152 (GRUB_TARGET_SIZEOF_LONG): ... this.
38153 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
38154 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
38155
38156 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
38157 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
38158 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
38159 instead of GRUB_HOST_SIZEOF_LONG.
38160 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
38161 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
38162 GRUB_CPU_WORDS_BIGENDIAN.
38163 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
38164 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
38165 grub_host_ssize_t.
38166
38167 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
38168 (genmoddep_SOURCES): Likewise.
38169 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
38170 (genmoddep_SOURCES): Likewise.
38171 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
38172 (genmoddep_SOURCES): Likewise.
38173 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
38174 Likewise.
38175 (genmoddep_SOURCES): Likewise.
38176
38177 * genmoddep.awk: New file.
38178
38179 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
38180 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
38181 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
38182 (PModule::rule): Likewise.
38183 (Program::rule): Likewise.
38184 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
38185 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
38186 respectively.
38187
38188 * configure.ac: Rewritten intensively to use host and target
38189 instead of build and host, respectively.
38190
38191 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
38192 (host_cpu): Removed.
38193 (target_cpu): New variable.
38194 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
38195 (BUILD_CC): Removed.
38196 (BUILD_CFLAGS): Likewise.
38197 (BUILD_CPPFLAGS): Likewise.
38198 (TARGET_CC): New variable.
38199 (TARGET_CFLAGS): Likewise.
38200 (TARGET_CPPFLAGS): Likewise.
38201 (TARGET_LDFLAGS): Likewise.
38202 (AWK): Likewise.
38203 (include): Use target_cpu instead of host_cpu.
38204 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 38205
b977bf01 38206 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
38207
f09771a1 382082006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
38209
38210 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
38211 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
38212 field 'false' to 'exec_on_false'.
38213 (grub_script_create_cmdif): Renamed argument names to reflect above
38214 changes.
38215
38216 * normal/execute.c (grub_script_execute_cmdif): Likewise.
38217
38218 * normal/script.c (grub_script_create_cmdif): Likewise.
38219
118f4fb3 382202006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
38221
38222 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
38223 top.
38224 (grub_hfsplus_btree_recptr): Likewise.
38225 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
38226 FILEBLOCK both to pass a block number and store next block
38227 number.
38228 (grub_hfsplus_read_block): Rewritten heavily to support an extent
38229 overflow file correctly. Specify errors appropriately, because
38230 fshelp expects that GRUB_ERRNO is set when fails. Reuse
38231 grub_hfsplus_btree_recptr to get the pointer to a found key.
38232 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
38233 is found.
38234
38235 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
38236 linux.mod.
38237 (_linux_mod_SOURCES): New variable.
38238 (_linux_mod_CFLAGS): Likewise.
38239 (_linux_mod_LDFLAGS): Likewise.
38240 (linux_mod_SOURCES): Likewise.
38241 (linux_mod_CFLAGS): Likewise.
38242 (linux_mod_LDFLAGS): Likewise.
38243
38244 * DISTLIST: Added loader/i386/efi/linux.c,
38245 loader/i386/efi/linux_normal.c and
38246 include/grub/i386/efi/loader.h.
38247
38248 * loader/i386/efi/linux.c: New file.
38249 * loader/i386/efi/linux_normal.c: Likewise.
38250 * include/grub/i386/efi/loader.h: Likewise.
38251
89a7d726 382522006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
38253
38254 * commands/blocklist.c: New file.
38255
38256 * DISTLIST: Added commands/blocklist.c.
38257
38258 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 38259 color for the background, and a darker color for the foreground.
89a7d726 38260 (grub_console_checkkey): Return READ_KEY.
38261 (grub_console_cls): Set the background to
38262 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
38263
38264 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
38265
38266 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
38267 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
38268
38269 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
38270 prototype.
38271
38272 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
38273 BG. The spec is wrong again.
38274
38275 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
38276 prototype.
38277 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
38278
38279 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38280 commands/blocklist.c.
38281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 38282
89a7d726 38283 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
38284 (blocklist_mod_SOURCES): New variable.
38285 (blocklist_mod_CFLAGS): Likewise.
38286 (blocklist_mod_LDFLAGS): Likewise.
38287
75c8f258 382882006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
38289
38290 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
38291 duplication.
38292 (lba_mode): Use %eax more intensively to reduce the code size.
38293
da2eb181 382942006-05-20 Marco Gerards <marco@gnu.org>
38295
38296 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
38297
38298 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
38299 for `menuentry'.
38300 (script): Accept leading newlines.
38301 (newlines): New rule to describe 0 or more newlines.
38302 (commands): Accept `command' with trailing newline. Fixed the
38303 order in which arguments were passed to `grub_script_add_cmd'.
38304 Accept commands separated by newlines.
38305 (function): Changed to accept newlines.
38306 (menuentry) Rewritten.
38307
38308 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
38309 front of the list, instead of to the end.
38310
577b4050 383112006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
38312
38313 * util/i386/pc/grub-install.in (bindir): New variable.
38314 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
38315 Shaver <lbgwjl@gmail.com>.
38316
0d6e1189 383172006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
38318
38319 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
38320 grub/machine/linux.h
38321 * loader/i386/pc/linux.c: Likewise.
38322
38323 * include/grub/i386/pc/linux.h: Moved to ...
38324 * include/grub/i386/linux.h: ... here.
38325
38326 * include/grub/i386/linux.h (struct linux_kernel_params): New
38327 struct.
f19dbdb7 38328
31b86e9f 383292006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
38330
38331 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
38332 checking.
38333 (grub_video_vbe_blit_glyph): Likewise.
38334 (grub_video_vbe_blit_bitmap): Likewise.
38335 (grub_video_vbe_blit_render_target): Likewise.
38336
83b984de 383372006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
38338
38339 * configure.ac (--with-platform): Properly quote the square
38340 brackets.
38341
5f0413bd 383422006-05-08 Marco Gerards <marco@gnu.org>
38343
38344 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
38345 this...
38346 (kernel_elf_HEADERS): ...to this. Updated all users.
38347 (grubof_symlist.c): Renamed from this...
38348 (kernel_elf_symlist.c): ...to this. Updated all users.
38349 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
38350 (grubof_SOURCES): Renamed from this...
38351 (kernel_elf_SOURCES): ...to this.
38352 (grubof_HEADERS): Renamed from this...
38353 (kernel_elf_HEADERS): ...to this.
38354 (grubof_CFLAGS): Renamed from this...
38355 (kernel_elf_CFLAGS): ...to this.
38356 (grubof_ASFLAGS): Renamed from this...
38357 (kernel_elf_ASFLAGS): ...to this.
38358 (grubof_LDFLAGS): Renamed from this...
38359 (kernel_elf_LDFLAGS): ...to this.
38360
38361 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
38362 this...
38363 (kernel_elf_HEADERS): ...to this. Updated all users.
38364 (grubof_symlist.c): Renamed from this...
38365 (kernel_elf_symlist.c): ...to this. Updated all users.
38366 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
38367 (grubof_SOURCES): Renamed from this...
38368 (kernel_elf_SOURCES): ...to this.
38369 (grubof_HEADERS): Renamed from this...
38370 (kernel_elf_HEADERS): ...to this.
38371 (grubof_CFLAGS): Renamed from this...
38372 (kernel_elf_CFLAGS): ...to this.
38373 (grubof_ASFLAGS): Renamed from this...
38374 (kernel_elf_ASFLAGS): ...to this.
38375 (grubof_LDFLAGS): Renamed from this...
38376 (kernel_elf_LDFLAGS): ...to this.
38377
38378 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
38379 `kernel.elf' instead of `grubof'.
38380
05568c2e 383812006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
38382
38383 Add --with-platform to configure. Use pkglibdir instead of
38384 pkgdatadir. This is reported by Roger Leigh.
38385
38386 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
38387 (host_vendor): Likewise.
38388 (host_os): Likewise.
38389 (pkgdatadir): Likewise.
38390 (platform): New variable.
38391 (pkglibdir): Likewise.
38392 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 38393
05568c2e 38394 * util/i386/pc/grub-install.in (datadir): Removed.
38395 (host_vendor): Likewise.
38396 (host_os): Likewise.
38397 (pkgdatadir): Likewise.
38398 (platform): New variable.
38399 (pkglibdir): Likewise.
38400 Use PKGLIBDIR instead of PKGDATADIR.
38401
38402 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
38403 instead of GRUB_DATADIR.
38404 (main): Likewise.
38405 * util/i386/pc/grub-mkimage.c (usage): Likewise.
38406 (main): Likewise.
38407 * util/i386/efi/grub-mkimage.c (usage): Likewise.
38408 (main): Likewise.
38409
38410 * configure.ac (--with-platform): New option.
38411 Use PLATFORM instead of HOST_VENDOR to specify a platform.
38412
38413 * Makefile.in: Include a makefile based on PLATFORM instead of
38414 HOST_VENDOR.
38415 (pkgdatadir): Not appended by the machine type.
38416 (pkglibdir): Appended by the machine type.
38417 (host_vendor): Removed.
38418 (platform): New variable.
38419 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
38420 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
38421 (uninstall): Likewise.
38422
4e93851c 384232006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
38424
38425 Use the environment context in the menu. Remove the commands
38426 "default" and "timeout", and use variables instead.
f19dbdb7 38427
4e93851c 38428 * normal/menu.c: Include grub/env.h.
38429 (print_entry): Cast TITLE to silence gcc.
38430 (get_timeout): New function.
38431 (set_timeout): Likewise.
38432 (get_entry_number): Likewise.
38433 (run_menu): Use a default entry, a fallback entry and a timeout
38434 in the environment variables "default", "fallback" and
38435 "timeout". Also, tweak the default entry if it is not within the
38436 current menu entries.
38437 (grub_menu_run): Use a fallback entry in the environment variable
38438 "fallback".
38439
38440 * normal/main.c (read_config_file): Do not initialize
38441 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
38442 NEWMENU->TIMEOUT.
38443 (grub_normal_execute): Use a data slot to store the menu.
38444
38445 * include/grub/normal.h (struct grub_menu): Removed default_entry,
38446 fallback_entry and timeout.
38447 (struct grub_menu_list): Removed.
38448 (grub_menu_list_t): Likewise.
38449 (struct grub_context): Likewise.
38450 (grub_context_t): Likewise.
38451 (grub_context_get): Likewise.
38452 (grub_context_get_current_menu): Likewise.
38453 (grub_context_push_menu): Likewise.
38454 (grub_context_pop_menu): Likewise.
38455 (grub_default_init): Likewise.
38456 (grub_default_fini): Likewise.
38457 (grub_timeout_init): Likewise.
38458 (grub_timeout_fini): Likewise.
38459
38460 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
38461 and timeout.mod.
38462 (normal_mod_SOURCES): Removed normal/context.c.
38463
38464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
38465 commands/default.c, commands/timeout.c and normal/context.c.
38466 (normal_mod_SOURCES): Removed normal/context.c.
38467
38468 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
38469 commands/timeout.c and normal/context.c.
38470 (normal_mod_SOURCES): Removed normal/context.c.
38471
38472 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
38473 commands/default.c, commands/timeout.c and normal/context.c.
38474 (normal_mod_SOURCES): Removed normal/context.c.
38475
38476 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
38477 timeout.mod.
38478 (default_mod_SOURCES): Removed.
38479 (default_mod_CFLAGS): Likewise.
38480 (default_mod_LDFLAGS): Likewise.
38481 (timeout_mod_SOURCES): Removed.
38482 (timeout_mod_CFLAGS): Likewise.
38483 (timeout_mod_LDFLAGS): Likewise.
38484
38485 * DISTLIST: Removed commands/default.c, commands/timeout.c and
38486 normal/context.c.
38487
38488 * commands/default.c: Removed.
38489 * commands/timeout.c: Likewise.
38490 * normal/context.c: Likewise.
38491
1eb9cc1d 384922006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
38493
38494 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
38495
385bd9c1 384962006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
38497
38498 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
38499 "next" to "prev" for readability.
38500 (struct grub_env_sorted_var): New struct.
38501 (grub_env_context): Renamed to ...
38502 (initial_context): ... this.
38503 (grub_env_var_context): Renamed to ...
38504 (current_context): ... this.
38505 (grub_env_find): Look only at CURRENT_CONTEXT.
38506 (grub_env_context_open): Rewritten to copy exported variables from
38507 previous context.
38508 (grub_env_context_close): Rewritten according to the new
38509 scheme. Also, add an assertion to prevent the initial context from
38510 removed.
38511 (grub_env_insert): Removed the code for the sorted list.
38512 (grub_env_remove): Likewise.
38513 (grub_env_export): Simply mark the variable with
38514 GRUB_ENV_VAR_GLOBAL.
38515 (grub_env_set): A cosmetic change for naming consistency.
38516 (grub_env_get): Likewise.
38517 (grub_env_unset): Likewise.
38518 (grub_env_iterate): Rewritten to sort variables within this
38519 function.
38520 (grub_register_variable_hook): Fixed for naming consistency. Call
38521 grub_env_find again, only if NAME is not found at the first time.
38522 (mangle_data_slot_name): New function.
38523 (grub_env_set_data_slot): Likewise.
38524 (grub_env_get_data_slot): Likewise.
38525 (grub_env_unset_data_slot): Likewise.
38526
38527 * include/grub/env.h (grub_env_var_type): New enum.
38528 (GRUB_ENV_VAR_LOCAL): New constant.
38529 (GRUB_ENV_VAR_GLOBAL): Likewise.
38530 (GRUB_ENV_VAR_DATA): Likewise.
38531 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
38532 "type".
38533 (grub_env_set): Replace VAR with NAME for consistency.
38534 (grub_register_variable_hook): Likewise.
38535 (grub_env_export): Specify the name of the argument.
38536 (grub_env_set_data_slot): New prototype.
38537 (grub_env_get_data_slot): Likewise.
38538 (grub_env_unset_data_slot): Likewise.
38539
7f362539 385402006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
38541
38542 Extend the loader so that GRUB can accept a loader which comes
38543 back to GRUB when a loaded image exits. Also, this change adds
38544 support for a chainloader on EFI.
f19dbdb7 38545
7f362539 38546 * term/efi/console.c: Include grub/misc.h.
38547 (grub_console_checkkey): Display a scan code on the top for
38548 debugging. This will be removed once the EFI port gets stable.
38549 Correct the scan code mapping.
38550
38551 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
38552 allocate memory from larger regions, in order to reduce the number
38553 of allocated regions. Otherwise, the MacOSX loader panics.
38554 (filter_memory_map): Avoid less than 1MB for compatibility with
38555 other loaders.
38556 (add_memory_regions): Allocate from the tail of a region, if
38557 possible, to avoid allocating a region near to 1MB, for the MacOSX
38558 loader.
38559
38560 * kern/efi/init.c (grub_efi_set_prefix): Specify
38561 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
38562
38563 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
38564 argument IMAGE_HANDLE and specify it to get a loaded image.
38565 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
38566 grub_efi_get_loaded_image.
fe6b695a 38567 (grub_efi_get_filename): Divide the length by the size of
7f362539 38568 grub_efi_char16_t.
38569 (grub_efi_get_device_path): New function.
38570 (grub_efi_print_device_path): Print End Device Path nodes. Divide
38571 the length by the size of grub_efi_char16_t for a file path device
38572 path node.
38573
38574 * kern/loader.c (grub_loader_noreturn): New variable.
38575 (grub_loader_set): Accept a new argument NORETURN. Set
38576 GRUB_LOADER_NORETURN to NORETURN.
38577 All callers changed.
38578 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
38579 grub_machine_fini.
38580
38581 * include/grub/efi/efi.h (grub_efi_get_device_path): New
38582 prototype.
38583 (grub_efi_get_loaded_image): Take an argument to specify an image
38584 handle.
38585
38586 * include/grub/loader.h (grub_loader_set): Added one more argument
38587 NORETURN.
38588
38589 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
38590 instead of grub_efi_open_protocol.
38591 (grub_efidisk_get_device_name): Likewise.
38592 (grub_efidisk_close): Print a newline.
38593 (grub_efidisk_get_device_handle): Fixed to use
38594 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
38595 GRUB_EFI_DEVICE_PATH_TYPE.
38596
38597 * disk/efi/efidisk.c (device_path_guid): Moved to ...
38598 * kern/efi/efi.c (device_path_guid): ... here.
38599
38600 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
38601 chain.mod.
38602 (kernel_mod_HEADERS): Added efi/disk.h.
38603 (_chain_mod_SOURCES): New variable.
38604 (_chain_mod_CFLAGS): Likewise.
38605 (_chain_mod_LDFLAGS): Likewise.
38606 (chain_mod_SOURCES): Likewise.
38607 (chain_mod_CFLAGS): Likewise.
38608 (chain_mod_LDFLAGS): Likewise.
38609
38610 * DISTLIST: Added include/grub/efi/chainloader.h,
38611 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
38612
38613 * include/grub/efi/chainloader.h: New file.
38614 * loader/efi/chainloader.c: Likewise.
38615 * loader/efi/chainloader_normal.c: Likewise.
38616
c0111d6e 386172006-04-30 Marco Gerards <marco@gnu.org>
38618
38619 * commands/configfile.c (grub_cmd_source): New function.
38620 (GRUB_MOD_INIT): Register the commands `source' and `.'.
38621 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
38622
df5341da 386232006-04-30 Marco Gerards <marco@gnu.org>
38624
38625 * normal/execute.c (grub_script_execute_cmd): Change the return
38626 type to `grub_err_t'. Correctly return the error.
38627 (grub_script_execute_cmdline): In case a command line is not a
38628 command or a function, try to interpret it as an assignment.
38629
f85934bd 386302006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
38631
38632 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
38633 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
38634 skip a node whose name is obviously invalid as UTF-16,
38635 i.e. contains a NUL character. Stop the iteration when the last
38636 directory entry is found. Instead of using the return value of
38637 grub_hfsplus_btree_iterate_node, store the value in RET and use
38638 it, because the iterator can be stopped by the last directory
38639 entry.
38640
8f8a2cf8 386412006-04-30 Marco Gerards <marco@gnu.org>
38642
38643 * include/grub/env.h (grub_env_export): New prototype. Reported
38644 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
38645
a27e84ce 386462006-04-30 Marco Gerards <marco@gnu.org>
38647
38648 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
38649 size of the extents in a catalog file record.
38650
eaef0553 386512006-04-29 Marco Gerards <marco@gnu.org>
38652
38653 * commands/configfile.c (grub_cmd_configfile): Execute the
38654 configfile within its own context.
38655
38656 * include/grub/env.h (grub_env_context_open): New prototype.
38657 (grub_env_context_close): Likewise.
38658
38659 * kern/env.c (grub_env): Removed.
38660 (grub_env_sorted): Likewise.
38661 (grub_env_context): New variable.
38662 (grub_env_var_context): Likewise.
38663 (grub_env_find): Search both the active context and the global
38664 context.
38665 (grub_env_context_open): New function.
38666 (grub_env_context_close): Likewise.
38667 (grub_env_insert): Likewise.
38668 (grub_env_remove): Likewise.
38669 (grub_env_export): Likewise.
38670 (grub_env_set): Changed to use helper functions to avoid code
38671 duplication.
38672 (grub_env_iterate): Rewritten so both the current context and the
38673 global context are being used.
38674
38675 * normal/command.c (export_command): New function.
38676 (grub_command_init): Register the `export' function.
38677
7b455f4d 386782006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
38679
38680 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
38681 explicitly to suppress gcc's warnings.
38682 * fs/fat.c (grub_fat_find_dir): Likewise.
38683 (grub_fat_label): Likewise.
38684 * fs/xfs.c (grub_xfs_read_inode): Likewise.
38685 (grub_xfs_mount): Likewise.
38686 (grub_xfs_label): Likewise.
38687 * fs/affs.c (grub_affs_mount): Likewise.
38688 (grub_affs_label): Likewise.
38689 (grub_affs_iterate_dir): Likewise.
38690 * fs/sfs.c (grub_sfs_mount): Likewise.
38691 (grub_sfs_iterate_dir): Likewise.
38692 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
38693 * fs/hfs.c (grub_hfs_mount): Likewise.
38694 (grub_hfs_cmp_catkeys): Likewise.
38695 (grub_hfs_find_dir): Likewise.
38696 (grub_hfs_dir): Likewise.
38697 (grub_hfs_label): Likewise.
38698 * fs/jfs.c (grub_jfs_mount): Likewise.
38699 (grub_jfs_opendir): Likewise.
38700 (grub_jfs_getent): Likewise.
38701 (grub_jfs_lookup_symlink): Likewise.
38702 (grub_jfs_label): Likewise.
38703 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
38704 (grub_hfsplus_iterate_dir): Likewise.
38705 (grub_hfsplus_btree_iterate_node): Made static.
38706
38707 * util/grub-emu.c (prefix): New variable.
38708 (grub_machine_set_prefix): New function.
38709 (main): Do not set the environment variable "prefix" here. Only
38710 set PREFIX, which is used later by grub_machine_set_prefix.
38711
38712 * include/grub/video.h: Do not include grub/symbol.h.
38713 (grub_video_register): Not exported. This symbol is not defined in
38714 the kernel.
38715 (grub_video_unregister): Likewise.
38716 (grub_video_iterate): Likewise.
38717 (grub_video_setup): Likewise.
38718 (grub_video_restore): Likewise.
38719 (grub_video_get_info): Likewise.
38720 (grub_video_get_blit_format): Likewise.
38721 (grub_video_set_palette): Likewise.
38722 (grub_video_get_palette): Likewise.
38723 (grub_video_set_viewport): Likewise.
38724 (grub_video_get_viewport): Likewise.
38725 (grub_video_map_color): Likewise.
38726 (grub_video_map_rgb): Likewise.
38727 (grub_video_map_rgba): Likewise.
38728 (grub_video_fill_rect): Likewise.
38729 (grub_video_blit_glyph): Likewise.
38730 (grub_video_blit_bitmap): Likewise.
38731 (grub_video_blit_render_target): Likewise.
38732 (grub_video_scroll): Likewise.
38733 (grub_video_swap_buffers): Likewise.
38734 (grub_video_create_render_target): Likewise.
38735 (grub_video_delete_render_target): Likewise.
38736 (grub_video_set_active_render_target): Likewise.
38737
38738 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
38739 Undefined.
38740 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
38741
38742 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
38743 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38744 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38745 instead of $(srcdir)/genkernsyms.sh.
38746
38747 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
38748 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38749 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38750 instead of $(srcdir)/genkernsyms.sh.
38751
38752 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
38753 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38754 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38755 instead of $(srcdir)/genkernsyms.sh.
38756
38757 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
38758 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
38759 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
38760 instead of $(srcdir)/genkernsyms.sh.
38761
38762 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
38763 genkernsyms.sh.
38764
38765 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
38766 genkernsyms.sh.
38767 (gensymlist.sh): New target.
38768 (genkernsyms.sh): Likewise.
38769
38770 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
38771 genkernsyms.sh.in and gensymlist.sh.in.
38772
38773 * genkernsyms.sh: Removed.
38774 * gensymlist.sh: Likewise.
f19dbdb7 38775
7b455f4d 38776 * genkernsyms.sh.in: New file.
38777 * gensymlist.sh.in: Likewise.
38778
1885bb27 387792006-04-25 Hollis Blanchard <hollis@penguinppc.org>
38780
38781 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
38782 clobber "prefix", since we may have already set it manually.
38783
71538dff 387842006-04-25 Hollis Blanchard <hollis@penguinppc.org>
38785
38786 * kern/misc.c (abort): New alias for grub_abort.
38787
2965c7cc 387882006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
38789
38790 A new machine-specific function "grub_machine_set_prefix" is
38791 defined. This is called after loading modules, so that a prefix
38792 initialization can use modules. Also, this change adds an
38793 intensive debugging feature for the memory manager via the
38794 configure option "--enable-mm-debug".
f19dbdb7 38795
2965c7cc 38796 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
38797 PART.LEN.
38798
38799 * kern/sparc64/ieee1275/init.c (abort): Removed.
38800 (grub_stop): Likewise.
38801 (grub_exit): New function.
38802 (grub_set_prefix): Renamed to ...
38803 (grub_machine_set_prefix): ... this.
38804 (grub_machine_init): Do not call grub_set_prefix.
38805
38806 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
38807 (grub_machine_set_prefix): ... this.
38808 (grub_machine_init): Do not call grub_set_prefix.
38809
38810 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
38811 (grub_machine_init): Do not set the prefix here.
38812
38813 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
38814
38815 * kern/efi/init.c: Include grub/mm.h.
38816 (grub_efi_set_prefix): New function.
38817
38818 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
38819 (grub_efi_get_filename): New function.
38820 (grub_print_device_path): Renamed to ...
38821 (grub_efi_print_device_path): ... this.
38822
38823 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
38824 [MM_DEBUG] (grub_realloc): Likewise.
38825 [MM_DEBUG] (grub_free): Likewise.
38826 [MM_DEBUG] (grub_memalign): Likewise.
38827 [MM_DEBUG] (grub_mm_debug): New variable.
38828 [MM_DEBUG] (grub_debug_malloc): New function.
38829 [MM_DEBUG] (grub_debug_free): New function.
38830 [MM_DEBUG] (grub_debug_realloc): New function.
38831 [MM_DEBUG] (grub_debug_memalign): New function.
38832
38833 * kern/misc.c (grub_abort): Print a newline to distinguish
38834 the message.
38835
38836 * kern/main.c (grub_main): Call grub_machine_set_prefix and
38837 grub_set_root_dev after loading modules. This is necessary when
38838 setting a prefix depends on modules.
38839
38840 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
38841 (grub_efi_print_device_path): ... this.
38842 (grub_efi_get_filename): New prototype.
38843 (grub_efi_set_prefix): Likewise.
38844
38845 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
38846 and grub/disk.h.
38847 (grub_efidisk_get_device_handle): New prototype.
38848 (grub_efidisk_get_device_name): Likewise.
38849
38850 * include/grub/mm.h: Include config.h.
38851 (MM_DEBUG): Removed.
38852 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
38853 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
38854 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
38855 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
38856 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
38857 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
38858 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
38859 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
38860 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
38861
38862 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
38863
38864 * disk/efi/efidisk.c: Include grub/partition.h.
38865 (iterate_child_devices): New function.
38866 (add_device): First, compare only last device path nodes, so that
38867 devices are sorted by the types.
38868 (grub_efidisk_get_device_handle): New function.
38869 (grub_efidisk_get_device_name): Likewise.
38870
38871 * configure.ac (--enable-mm-debug): New option to enable the
38872 memory manager debugging feature. This makes the binary much
38873 bigger, so is disabled by default.
38874
9cacaa17 388752006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
38876
38877 Use grub_abort instead of grub_stop, and grub_exit must be
38878 define in each architecture now. Also, this change adds support
38879 for EFI disks.
f19dbdb7 38880
9cacaa17 38881 * util/i386/pc/grub-probefs.c: Include grub/term.h.
38882 (grub_getkey): New function.
38883 (grub_term_get_current): Likewise.
38884
38885 * util/i386/pc/grub-setup.c: Include grub/term.h.
38886 (grub_getkey): New function.
38887 (grub_term_get_current): Likewise.
38888
38889 * util/misc.c (grub_stop): Renamed to ...
38890 (grub_exit): ... this.
38891
38892 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
38893 (grub_exit): ... this.
38894 (grub_machine_init): Use grub_abort instead of abort.
38895 (grub_stop): Removed.
38896
38897 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
38898 abort.
38899
38900 * kern/i386/pc/startup.S (grub_exit): New function.
38901 (cold_reboot): New label.
38902
38903 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
38904 (grub_efi_init): Call grub_efidisk_init.
38905 (grub_efi_fini): Call grub_efidisk_fini.
38906
38907 * kern/efi/efi.c: Include grub/mm.h.
38908 (grub_efi_console_control_guid): Renamed to ...
38909 (console_control_guid): ... this.
38910 (grub_efi_loaded_image_guid): Renamed to ...
38911 (loaded_image_guid): ... this.
38912 (grub_efi_locate_handle): New function.
38913 (grub_efi_open_protocol): Likewise.
38914 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
38915 GRUB_EFI_CONSOLE_CONTROL_GUID.
38916 (grub_efi_exit): Removed.
38917 (grub_stop): Likewise.
38918 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
38919 (grub_exit): New function.
38920 (grub_print_device_path): Likewise.
38921
38922 * kern/rescue.c (grub_rescue_cmd_exit): New function.
38923 (grub_enter_rescue_mode): Register "exit".
38924
38925 * kern/misc.c (grub_real_dprintf): A cosmetic change.
38926 (grub_abort): New function.
38927
38928 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
38929
38930 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
38931
38932 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
38933
38934 * include/grub/efi/efi.h (grub_efi_exit): Removed.
38935 (grub_print_device_path): New prototype.
38936 (grub_efi_locate_handle): Likewise.
38937 (grub_efi_open_protocol): Likewise.
38938
38939 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
38940 * disk/efi/efidisk.c: Likewise.
38941
38942 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
38943
38944 * include/grub/efi/console_control.h
38945 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
38946
38947 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
38948 last 8 bytes as an array.
38949 (GRUB_EFI_DISK_IO_GUID): New macro.
38950 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
38951 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
38952 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
38953 grub_uint8_t.
38954 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
38955 (struct grub_efi_device_path): Rename the member "sub_type" to
38956 "subtype".
38957 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
38958 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
38959 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
38960 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
38961 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
38962 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
38963 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
38964 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
38965 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
38966 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
38967 (struct grub_efi_pci_device_path): New structure.
38968 (grub_efi_pci_device_path_t): New type.
38969 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
38970 (struct grub_efi_pccard_device_path): New structure.
38971 (grub_efi_pccard_device_path_t): New type.
38972 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
38973 (struct grub_efi_memory_mapped_device_path): New structure.
38974 (grub_efi_memory_mapped_device_path_t): New type.
38975 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
38976 (struct grub_efi_vendor_device_path): New structure.
38977 (grub_efi_vendor_device_path_t): New type.
38978 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
38979 (struct grub_efi_controller_device_path): New structure.
38980 (grub_efi_controller_device_path_t): New type.
38981 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
38982 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
38983 (struct grub_efi_acpi_device_path): New structure.
38984 (grub_efi_acpi_device_path_t): New type.
38985 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
38986 (struct grub_efi_expanded_acpi_device_path): New structure.
38987 (grub_efi_expanded_acpi_device_path_t): New type.
38988 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
38989 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
38990 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
38991 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
38992 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
38993 (struct grub_efi_atapi_device_path): New structure.
38994 (grub_efi_atapi_device_path_t): New type.
38995 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
38996 (struct grub_efi_fibre_channel_device_path): New structure.
38997 (grub_efi_fibre_channel_device_path_t): New type.
38998 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
38999 (struct grub_efi_1394_device_path): New structure.
39000 (grub_efi_1394_device_path_t): New type.
39001 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
39002 (struct grub_efi_usb_device_path): New structure.
39003 (grub_efi_usb_device_path_t): New type.
39004 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
39005 (struct grub_efi_usb_class_device_path): New structure.
39006 (grub_efi_usb_class_device_path_t): New type.
39007 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
39008 (struct grub_efi_i2o_device_path): New structure.
39009 (grub_efi_i2o_device_path_t): New type.
39010 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
39011 (struct grub_efi_mac_address_device_path): New structure.
39012 (grub_efi_mac_address_device_path_t): New type.
39013 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
39014 (struct grub_efi_ipv4_device_path): New structure.
39015 (grub_efi_ipv4_device_path_t): New type.
39016 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
39017 (struct grub_efi_ipv6_device_path): New structure.
39018 (grub_efi_ipv6_device_path_t): New type.
39019 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
39020 (struct grub_efi_infiniband_device_path): New structure.
39021 (grub_efi_infiniband_device_path_t): New type.
39022 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
39023 (struct grub_efi_uart_device_path): New structure.
39024 (grub_efi_uart_device_path_t): New type.
39025 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
39026 (struct grub_efi_vendor_messaging_device_path): New structure.
39027 (grub_efi_vendor_messaging_device_path_t): New type.
39028 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
39029 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
39030 (struct grub_efi_hard_drive_device_path): New structure.
39031 (grub_efi_hard_drive_device_path_t): New type.
39032 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
39033 (struct grub_efi_cdrom_device_path): New structure.
39034 (grub_efi_cdrom_device_path_t): New type.
39035 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
39036 (struct grub_efi_vendor_media_device_path): New structure.
39037 (grub_efi_vendor_media_device_path_t): New type.
39038 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
39039 (struct grub_efi_file_path_device_path): New structure.
39040 (grub_efi_file_path_device_path_t): New type.
39041 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
39042 (struct grub_efi_protocol_device_path): New structure.
39043 (grub_efi_protocol_device_path_t): New type.
39044 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
39045 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
39046 (struct grub_efi_bios_device_path): New structure.
39047 (grub_efi_bios_device_path_t): New type.
39048 (struct grub_efi_disk_io): New structure.
39049 (grub_efi_disk_io_t): New type.
39050 (struct grub_efi_block_io_media): New structure.
39051 (grub_efi_block_io_media_t): New type.
39052 (struct grub_efi_block_io): New structure.
39053 (grub_efi_block_io_t): New type.
39054
39055 * include/grub/misc.h (grub_stop): Removed.
39056 (grub_exit): New prototype.
39057 (grub_abort): Likewise.
39058
39059 * include/grub/disk.h (enum grub_disk_dev_id): Added
39060 GRUB_DISK_DEVICE_EFIDISK_ID.
39061
39062 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
39063 disk/efi/efidisk.c.
39064 (kernel_syms.lst): Remove the target if an error occurs.
39065
49986a9f 390662006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
39067
39068 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
39069 as it was simply too buggy.
39070
970d3b8a 390712006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
39072
39073 * kern/misc.c (grub_lltoa): New function.
39074 (grub_vsprintf): Added support for the long long suffix,
39075 i.e. "ll".
39076
ff04ec24 390772006-04-20 Hollis Blanchard <hollis@penguinppc.org>
39078
39079 * Makefile.in (LDFLAGS): Add variable.
39080 (LD): Remove variable.
39081 * configure.ac: Add -m32 to LDFLAGS.
39082 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
39083 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
39084 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
39085 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
39086 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
39087 variables.
39088 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
39089 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
39090 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
39091
37e5e1a4 390922006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
39093
39094 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
39095 length for unknown glyph.
39096
c352d8dd 390972006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
39098
2eab1c0d 39099 Add support for pre-loaded modules into the EFI port.
f19dbdb7 39100
2eab1c0d 39101 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
39102 completely. Accept one more argument DIR. The caller has changed.
39103
39104 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
39105
39106 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
39107 (grub_efi_loaded_image_guid): New variable.
39108 (grub_efi_get_loaded_image): New function.
39109 (grub_arch_modules_addr): Likewise.
39110
39111 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
39112 prototype.
39113
39114 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
39115 (struct grub_efi_loaded_image): New structure.
39116 (grub_efi_loaded_image_t): New type.
39117
391182006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39119
c352d8dd 39120 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
39121 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
39122 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
39123
6d01d6b4 391242006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
39125
39126 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
39127
976a4ea0 391282006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
39129
39130 * DISTLIST: Added include/grub/efi/console.h,
39131 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
39132 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
39133
39134 * include/grub/efi/console.h: New file.
39135 * include/grub/efi/time.h: Likewise.
39136 * include/grub/i386/efi/kernel.h: Likewise.
39137 * kern/efi/init.c: Likewise.
39138 * kern/efi/mm.c: Likewise.
39139 * term/efi/console.c: Likewise.
f19dbdb7 39140
976a4ea0 39141 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
39142 (grub_stop): Removed.
39143 (grub_get_rtc): Likewise.
39144 (grub_machine_init): Simply call grub_efi_init.
39145 (grub_machine_fini): Call grub_efi_fini.
39146
39147 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
39148 (grub_efi_output_string): Removed.
39149 (grub_efi_stall): New function.
39150 (grub_stop): Likewise.
39151 (grub_get_rtc): Likewise.
39152
39153 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
39154 (grub_efi_stall): New prototype.
39155 (grub_efi_allocate_pages): Likewise.
39156 (grub_efi_free_pages): Likewise.
39157 (grub_efi_get_memory_map): Likewise.
39158 (grub_efi_mm_init): Likewise.
39159 (grub_efi_mm_fini): Likewise.
39160 (grub_efi_init): Likewise.
39161 (grub_efi_fini): Likewise.
39162
39163 * include/grub/i386/efi/time.h: Do not include
39164 grub/symbol.h. Include grub/efi/time.h.
39165 (GRUB_TICKS_PER_SECOND): Removed.
39166 (grub_get_rtc): Likewise.
39167
39168 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
39169 Added padding. The EFI spec is buggy.
39170 (GRUB_EFI_BLACK): New macro.
39171 (GRUB_EFI_BLUE): Likewise.
39172 (GRUB_EFI_GREEN): Likewise.
39173 (GRUB_EFI_CYAN): Likewise.
39174 (GRUB_EFI_RED): Likewise.
39175 (GRUB_EFI_MAGENTA): Likewise.
39176 (GRUB_EFI_BROWN): Likewise.
39177 (GRUB_EFI_LIGHTGRAY): Likewise.
39178 (GRUB_EFI_BRIGHT): Likewise.
39179 (GRUB_EFI_DARKGRAY): Likewise.
39180 (GRUB_EFI_LIGHTBLUE): Likewise.
39181 (GRUB_EFI_LIGHTGREEN): Likewise.
39182 (GRUB_EFI_LIGHTCYAN): Likewise.
39183 (GRUB_EFI_LIGHTRED): Likewise.
39184 (GRUB_EFI_LIGHTMAGENTA): Likewise.
39185 (GRUB_EFI_YELLOW): Likewise.
39186 (GRUB_EFI_WHITE): Likewise.
39187 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
39188 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
39189 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
39190 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
39191 (GRUB_EFI_BACKGROUND_RED): Likewise.
39192 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
39193 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
39194 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
39195 (GRUB_EFI_TEXT_ATTR): Likewise.
39196
39197 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
39198 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
39199 (kernel_mod_HEADERS): Added efi/time.h.
39200
83709125 392012006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
39202
39203 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
39204 include/grub/efi/api.h, include/grub/efi/console_control.h,
39205 include/grub/efi/efi.h, include/grub/efi/pe32.h,
39206 include/grub/i386/efi/time.h, kern/efi/efi.c,
39207 kern/i386/efi/init.c, kern/i386/efi/startup.S,
39208 and util/i386/efi/grub-mkimage.c.
39209
39210 * Makefile.in (RMKFILES): Added i386-efi.rmk.
39211
39212 * genmk.rb (PModule#rule): Do not export symbols if
39213 #{prefix}_EXPORTS is set to "no".
39214
39215 * conf/i386-efi.mk: New file.
39216 * conf/i386-efi.rmk: Likewise.
39217 * include/grub/efi/api.h: Likewise.
39218 * include/grub/efi/console_control.h: Likewise.
39219 * include/grub/efi/efi.h: Likewise.
39220 * include/grub/efi/pe32.h: Likewise.
39221 * include/grub/i386/efi/time.h: Likewise.
39222 * kern/efi/efi.c: Likewise.
39223 * kern/i386/efi/init.c: Likewise.
39224 * kern/i386/efi/startup.S: Likewise.
39225 * util/i386/efi/grub-mkimage.c: Likewise.
39226
392272006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 39228
39229 * include/grub/script.h: Include <grub/parser.h> and
39230 "grub_script.tab.h".
39231 (struct grub_lexer_param): New struct.
39232 (struct grub_parser_param): Likewise.
39233 (grub_script_create_arglist): Pass the state in an argument.
39234 (grub_script_add_arglist): Likewise.
39235 (grub_script_create_cmdline): Likewise.
39236 (grub_script_create_cmdblock): Likewise.
39237 (grub_script_create_cmdif): Likewise.
39238 (grub_script_create_cmdmenu): Likewise.
39239 (grub_script_add_cmd): Likewise.
39240 (grub_script_arg_add): Likewise.
39241 (grub_script_lexer_ref): Likewise.
39242 (grub_script_lexer_deref): Likewise.
39243 (grub_script_lexer_record_start): Likewise.
39244 (grub_script_lexer_record_stop): Likewise.
39245 (grub_script_mem_record): Likewise.
39246 (grub_script_mem_record_stop): Likewise.
39247 (grub_script_malloc): Likewise.
39248 (grub_script_yylex): Likewise.
39249 (grub_script_yyparse): Likewise.
39250 (grub_script_yyerror): Likewise.
39251 (grub_script_yylex): Likewise.
39252 (grub_script_lexer_init): Return the state.
39253
39254 * normal/lexer.c (grub_script_lexer_state): Removed variable.
39255 (grub_script_lexer_done): Likewise.
39256 (grub_script_lexer_getline): Likewise.
39257 (grub_script_lexer_refs): Likewise.
39258 (script): Likewise.
39259 (newscript): Likewise.
39260 (record): Likewise.
39261 (recording): Likewise.
39262 (recordpos): Likewise.
39263 (recordlen): Likewise.
39264 (grub_script_lexer_init): Return the state instead of setting
39265 global variables.
39266 (grub_script_lexer_ref): Use the newly added argument for state
39267 instead of globals.
39268 (grub_script_lexer_deref): Likewise.
39269 (grub_script_lexer_record_start): Likewise.
39270 (grub_script_lexer_record_stop): Likewise.
39271 (recordchar): Likewise.
39272 (nextchar): Likewise.
39273 (grub_script_yylex2): Likewise.
39274 (grub_script_yylex): Likewise.
39275 (grub_script_yyerror): Likewise.
39276
39277 * normal/parser.y (func_mem): Removed variable.
39278 (menu_entry): Likewise.
39279 (err): Likewise.
39280 (%lex-param): New parser option.
39281 (%parse-param): Likewise.
39282 (script): Always return the AST.
39283 (argument): Pass the state around.
39284 (arguments): Likewise.
39285 (grubcmd): Likewise.
39286 (commands): Likewise.
39287 (function): Likewise.
39288 (menuentry): Likewise.
39289 (if_statement): Likewise.
39290 (if): Likewise.
39291
39292 * normal/script.c (grub_script_memused): Removed variable.
39293 (grub_script_parsed): Likewise.
39294 (grub_script_malloc): Added a state argument. Use that instead of
39295 global variables.
39296 (grub_script_mem_record): Likewise.
39297 (grub_script_mem_record_stop): Likewise.
39298 (grub_script_arg_add): Likewise.
39299 (grub_script_add_arglist): Likewise.
39300 (grub_script_create_cmdline): Likewise.
39301 (grub_script_create_cmdif): Likewise.
39302 (grub_script_create_cmdmenu): Likewise.
39303 (grub_script_add_cmd): Likewise.
39304 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 39305
e2a8c904 393062006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 39307
39308 * normal/command.c (grub_command_init): Remove the title command.
39309
39310 * normal/lexer.c (grub_script_yylex): Renamed from this...
39311 (grub_script_yylex2): ... to this.
39312 (grub_script_yylex): New function. Temporary
39313 introduced to filter some tokens.
39314 (grub_script_yyerror): Print a newline.
39315
39316 * normal/main.c (read_config_file): Output information about the
39317 lines that contain errors. Wait for a key after all lines have
39318 been processed. Don't return an empty menu.
39319
39320 * normal/parser.y (func_mem): Don't initialize.
39321 (menu_entry): Likewise.
39322 (err): New variable.
39323 (script): Don't return anything when an error was encountered.
39324 (ws, returns): Removed rules.
39325 (argument): Disabled concatenated variable support.
39326 (arguments): Remove explicit separators.
39327 (grubcmd): Likewise.
39328 (function): Likewise.
39329 (menuentry): Likewise.
39330 (if): Likewise.
39331 (commands): Likewise. Add error handling.
39332
39333 * normal/script.c (grub_script_create_cmdline): If
39334 `grub_script_parsed' is 0, assume the parser encountered an error.
39335
c9a86192 393362006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
39337
39338 * configure.ac: Add support for EFI. Fix the typo
39339 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
39340
70f3b243 393412006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
39342
39343 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
39344 foreign multibyte characters should be shown correctly.
39345
65f201ad 393462006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
39347
39348 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
39349 calculation.
39350 (read_config_file): Made it to close file before returning.
39351
b4b93674 393522006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
39353
39354 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
39355 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
39356 video/i386/pc/vbefill.c.
39357
39358 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
39359 video/i386/pc/vbefill.c.
39360
39361 * include/grub/video.h (grub_video_blit_format): New enum.
39362 (grub_video_mode_info): Added new member blit_format.
39363 (grub_video_get_blit_format): New function prototype.
39364
39365 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
39366 function prototype.
39367 (grub_video_vbe_map_rgb): Likewise.
39368 (grub_video_vbe_unmap_color): Likewise.
39369
39370 * include/grub/i386/pc/vbeblit.h: New file.
39371
39372 * include/grub/i386/pc/vbefill.h: New file.
39373
39374 * video/video.c (grub_video_get_blit_format): New function.
39375 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
39376 (grub_video_vbe_map_rgb): Likewise.
39377 (grub_video_vbe_unmap_color): Likewise.
39378
39379 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
39380 optimized fills.
39381 (grub_video_vbe_blit_render_target): Changed to use more optimized
39382 blits.
39383 (grub_video_vbe_setup): Added detection for optimized settings.
39384 (grub_video_vbe_create_render_target): Likewise.
39385
39386 * video/i386/pc/vbeblit.c: New file.
39387
39388 * video/i386/pc/vbefill.c: New file.
39389
c2379b9c 393902006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
39391
39392 * font/manager.c (grub_font_get_glyph): Removed font fixup from
39393 here...
39394
39395 * util/unifont2pff.rb: ... and moved it to here. Improved argument
39396 parsing to support both hex and dec ranges. If filename was missing
39397 show usage information.
39398
bd0d7896 393992006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
39400
39401 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
39402 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
39403
39404 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
39405 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
39406 (video_mod_SOURCES): Added.
39407 (video_mod_CFLAGS): Likewise.
39408 (video_mod_LDFLAGS): Likewise.
39409 (gfxterm_mod_SOURCES): Likewise.
39410 (gfxterm_mod_CFLAGS): Likewise.
39411 (gfxterm_mod_LDFLAGS): Likewise.
39412 (videotest_mod_SOURCES): Likewise.
39413 (videotest_mod_CFLAGS): Likewise.
39414 (videotest_mod_LDFLAGS): Likewise.
39415 (vesafb_mod_SOURCES): Removed.
39416 (vesafb_mod_CFLAGS): Likewise.
39417 (vesafb_mod_LDFLAGS): Likewise.
39418 (vga_mod_SOURCES): Likewise.
39419 (vga_mod_CFLAGS): Likewise.
39420 (vga_mod_LDFLAGS): Likewise.
39421
39422 * commands/videotest.c: New file.
39423
39424 * font/manager.c (fill_with_default_glyph): Modified to use
39425 grub_font_glyph.
39426 (grub_font_get_glyph): Likewise.
39427 (fontmanager): Renamed from this...
39428 (font_manager): ... to this.
39429
39430 * include/grub/font.h (grub_font_glyph): Added new structure.
39431 (grub_font_get_glyph): Modified to use grub_font_glyph.
39432
39433 * include/grub/misc.h (grub_abs): Added as inline function.
39434
39435 * include/grub/video.h: New file.
39436
39437 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
39438 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
39439 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
39440 (grub_vbe_get_controller_info): Renamed from this...
39441 (grub_vbe_bios_get_controller_info): ... to this.
39442 (grub_vbe_get_mode_info): Renamed from this...
39443 (grub_vbe_bios_get_mode_info): ... to this.
39444 (grub_vbe_set_mode): Renamed from this...
39445 (grub_vbe_bios_set_mode): ... to this.
39446 (grub_vbe_get_mode): Renamed from this...
39447 (grub_vbe_bios_get_mode): ... to this.
39448 (grub_vbe_set_memory_window): Renamed from this...
39449 (grub_vbe_bios_set_memory_window): ... to this.
39450 (grub_vbe_get_memory_window): Renamed from this...
39451 (grub_vbe_bios_get_memory_window): ... to this.
39452 (grub_vbe_set_scanline_length): Renamed from this...
39453 (grub_vbe_set_scanline_length): ... to this.
39454 (grub_vbe_get_scanline_length): Renamed from this...
39455 (grub_vbe_bios_get_scanline_length): ... to this.
39456 (grub_vbe_set_display_start): Renamed from this...
39457 (grub_vbe_bios_set_display_start): ... to this.
39458 (grub_vbe_get_display_start): Renamed from this...
39459 (grub_vbe_bios_get_display_start): ... to this.
39460 (grub_vbe_set_palette_data): Renamed from this...
39461 (grub_vbe_bios_set_palette_data): ... to this.
39462 (grub_vbe_set_pixel_rgb): Removed.
39463 (grub_vbe_set_pixel_index): Likewise.
39464
39465 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
39466 from this...
39467 (grub_vbe_bios_get_controller_info): ... to this.
39468 (grub_vbe_get_mode_info): Renamed from this...
39469 (grub_vbe_bios_get_mode_info): ... to this.
39470 (grub_vbe_set_mode): Renamed from this...
39471 (grub_vbe_bios_set_mode): ... to this.
39472 (grub_vbe_get_mode): Renamed from this...
39473 (grub_vbe_bios_get_mode): ... to this.
39474 (grub_vbe_set_memory_window): Renamed from this...
39475 (grub_vbe_bios_set_memory_window): ... to this.
39476 (grub_vbe_get_memory_window): Renamed from this...
39477 (grub_vbe_bios_get_memory_window): ... to this.
39478 (grub_vbe_set_scanline_length): Renamed from this...
39479 (grub_vbe_set_scanline_length): ... to this.
39480 (grub_vbe_get_scanline_length): Renamed from this...
39481 (grub_vbe_bios_get_scanline_length): ... to this.
39482 (grub_vbe_set_display_start): Renamed from this...
39483 (grub_vbe_bios_set_display_start): ... to this.
39484 (grub_vbe_get_display_start): Renamed from this...
39485 (grub_vbe_bios_get_display_start): ... to this.
39486 (grub_vbe_set_palette_data): Renamed from this...
39487 (grub_vbe_bios_set_palette_data): ... to this.
39488 (grub_vbe_bios_get_controller_info): Fixed problem with registers
39489 getting corrupted after calling it. Added more pushes and pops.
39490 (grub_vbe_bios_set_mode): Likewise.
39491 (grub_vbe_bios_get_mode): Likewise.
39492 (grub_vbe_bios_get_memory_window): Likewise.
39493 (grub_vbe_bios_set_scanline_length): Likewise.
39494 (grub_vbe_bios_get_scanline_length): Likewise.
39495 (grub_vbe_bios_get_display_start): Likewise.
39496 (grub_vbe_bios_set_palette_data): Likewise.
39497
39498 * normal/cmdline.c (cl_set_pos): Refresh the screen.
39499 (cl_insert): Likewise.
39500 (cl_delete): Likewise.
39501
39502 * term/gfxterm.c: New file.
39503
39504 * term/i386/pc/vesafb.c: Removed file.
39505
39506 * video/video.c: New file.
39507
39508 * video/i386/pc/vbe.c (real2pm): Added new function.
39509 (grub_video_vbe_draw_pixel): Likewise.
39510 (grub_video_vbe_get_video_ptr): Likewise.
39511 (grub_video_vbe_get_pixel): Likewise
39512 (grub_video_vbe_init): Likewise.
39513 (grub_video_vbe_fini): Likewise.
39514 (grub_video_vbe_setup): Likewise.
39515 (grub_video_vbe_get_info): Likewise.
39516 (grub_video_vbe_set_palette): Likewise.
39517 (grub_video_vbe_get_palette): Likewise.
39518 (grub_video_vbe_set_viewport): Likewise.
39519 (grub_video_vbe_get_viewport): Likewise.
39520 (grub_video_vbe_map_color): Likewise.
39521 (grub_video_vbe_map_rgb): Likewise.
39522 (grub_video_vbe_map_rgba): Likewise.
39523 (grub_video_vbe_unmap_color): Likewise.
39524 (grub_video_vbe_fill_rect): Likewise.
39525 (grub_video_vbe_blit_glyph): Likewise.
39526 (grub_video_vbe_blit_bitmap): Likewise.
39527 (grub_video_vbe_blit_render_target): Likewise.
39528 (grub_video_vbe_scroll): Likewise.
39529 (grub_video_vbe_swap_buffers): Likewise.
39530 (grub_video_vbe_create_render_target): Likewise.
39531 (grub_video_vbe_delete_render_target): Likewise.
39532 (grub_video_vbe_set_active_render_target): Likewise.
39533 (grub_vbe_set_pixel_rgb): Remove function.
39534 (grub_vbe_set_pixel_index): Likewise.
39535 (index_color_mode): Remove static variable.
39536 (active_mode): Likewise.
39537 (framebuffer): Likewise.
39538 (bytes_per_scan_line): Likewise.
39539 (grub_video_vbe_adapter): Added new static variable.
39540 (framebuffer): Likewise.
39541 (render_target): Likewise.
39542 (initial_mode): Likewise.
39543 (mode_in_use): Likewise.
39544 (mode_list): Likewise.
39545
5f97350b 395462006-03-10 Marco Gerards <marco@gnu.org>
39547
39548 * configure.ac (AC_INIT): Bumped to 1.93.
39549
39550 * DISTLIST: Added `include/grub/hfs.h'.
39551
a3c5c6f8 395522006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
39553
39554 * boot/i386/pc/boot.S (general_error): Before looping, try INT
39555 18H, which might help the BIOS falling back to next boot media.
39556
6de53d26 395572006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
39558
39559 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
39560 Poe Chen <poe.poechen@gmail.com>.
39561
77c4a393 395622006-01-17 Marco Gerards <marco@gnu.org>
39563
39564 * include/grub/normal.h: Include <grub/script.h>.
39565 (grub_command_list): Removed struct.
39566 (grub_command_list_t): Removed type.
39567 (grub_menu_entry): Remove members `num' and `command_list'. Add
39568 members `commands' and `sourcecode'.
39569 * include/grub/script.h: Add inclusion guards.
39570 (grub_script_cmd_menuentry): New struct.
39571 (grub_script_execute_menuentry): New prototype.
39572 (grub_script_lexer_record_start): Likewise.
39573 (grub_script_lexer_record_stop): Likewise.
39574 * normal/execute.c (grub_script_execute_menuentry): New function.
39575 * normal/lexer.c (record, recording, recordpos, recordlen): New
39576 variables.
39577 (grub_script_lexer_record_start): New function.
39578 (grub_script_lexer_record_stop): Likewise.
39579 (recordchar): Likewise.
39580 (nextchar): Likewise.
39581 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
39582 2048 as the buffer size. Add the tokens `menuentry' and `@'.
39583 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
39584 (current_menu): New variable.
39585 (free_menu): Mainly rewritten.
39586 (grub_normal_menu_addentry): New function.
39587 (read_config_file): Rewritten.
39588 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 39589 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 39590 the menu entry.
39591 (run): Mainly rewritten.
39592 * normal/parser.y (menu_entry): New variable.
39593 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
39594 (menuentry): New rule.
39595 (command): Add `menuentry'.
39596 (if_statement): Allow additional returns before `fi'.
39597 * normal/script.c (grub_script_create_cmdmenu): New function.
39598
144f1f98 395992006-01-03 Marco Gerards <marco@gnu.org>
39600
39601 * INSTALL: GNU Bison is required.
39602 * configure.ac: Rewritten the test to detect Bison.
39603 * Makefile.in (YACC): New variable. Reported by Xun Sun
39604 <xun.sun.cn@gmail.com>.
39605
af4b2d89 396062006-01-03 Marco Gerards <marco@gnu.org>
39607
39608 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
39609 the HFS+ filesystem to filesystem blocks.
39610 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
39611 GCC warning is silenced.
39612
15643b71 396132006-01-03 Marco Gerards <marco@gnu.org>
39614
39615 * partmap/apple.c (apple_partition_map_iterate): Convert the data
39616 read from disk from big endian to host byte order.
39617
00905879 396182006-01-03 Hollis Blanchard <hollis@penguinppc.org>
39619
39620 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
39621 documentation.
39622 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
39623 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
39624 embedded HFS+ filesystem.
39625 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
39626 (grub_hfs_sblock): Move from here...
39627 * include/grub/hfs.h: To here... New file.
39628 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
39629 documentation.
39630 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
39631 New macros.
39632 (grub_hfsplus_volheader): Change type of member `magic' to
39633 `grub_uint16_t'.
39634 (grub_hfsplus_data): Add new member `embedded_offset'.
39635 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
39636 returned block.
39637 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
39638 Calculate the offset.
39639
8899bc3e 396402005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39641
39642 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
39643 Removed.
39644 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
39645
ae8c0277 396462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39647
39648 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
39649 ENV->NAME is NULL after allocating ENV->VALUE.
39650
07084456 396512005-12-25 Marco Gerards <marco@gnu.org>
39652
39653 * kern/env.c (grub_env_set): Rewritten the error handling code.
39654
4750f5f1 396552005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39656
39657 * geninit.sh: Made more robust, and more portable.
39658
50214199 396592005-12-25 Marco Gerards <marco@gnu.org>
39660
39661 Add support for Apple HFS+ filesystems.
f19dbdb7 39662
50214199 39663 * fs/hfsplus.c: New file.
39664
39665 * DISTLIST: Added `fs/hfsplus.c'.
39666
39667 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
39668 (hfsplus_mod_SOURCES): New variable.
39669 (hfsplus_mod_CFLAGS): Likewise.
39670 (hfsplus_mod_LDFLAGS): Likewise.
39671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
39672 (grub_setup_SOURCES): Likewise.
39673 (grub_mkdevicemap_SOURCES): Likewise.
39674 (grub_emu_SOURCES): Likewise.
39675 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39676
39677 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
39678
39679 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
39680
befaed6c 396812005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
39682
39683 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
39684 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
39685 include/grub/parser.h, include/grub/script.h, kern/parser.c,
39686 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
39687 normal/lexer.c, normal/parser.y, normal/script.c, and
39688 partmap/gpt.c.
39689 Removed kern/sparc64/cache.c.
39690
39691 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
39692 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
39693 grub_emu_init.c.
39694
39695 * configure.ac (AC_INIT): Bumped to 1.92.
39696
6a124103 396972005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
39698
39699 * kern/err.c (grub_error_push): Added new function to support error
39700 stacks.
39701 (grub_error_pop): Likewise.
39702 (grub_error_stack_items): New local variable to support error stacks.
39703 (grub_error_stack_pos): Likewise.
39704 (grub_error_stack_assert): Likewise.
39705 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
39706 stack depth.
39707 (grub_print_error): Added support to print errors from error stack.
39708
39709 * include/grub/err.h (grub_error_push): Added function prototype.
39710 (grub_error_pop): Likewise.
39711
be973c1b 397122005-12-09 Hollis Blanchard <hollis@penguinppc.org>
39713
39714 * configure.ac: Accept `powerpc64' as host_cpu.
39715 (amd64): Rename to `biarch32'.
39716
39717 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
39718 non-cacheline-aligned addresses.
39719
39720 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
39721 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
39722 if `size' is non-zero.
39723
b04216ab 397242005-12-03 Marco Gerards <mgerards@xs4all.nl>
39725
39726 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
39727 and `cd' to make sure the filename is not prefixed with a
39728 directory name.
39729 (pkgdata_MODULES): Add `gpt.mod'.
39730 (gpt_mod_SOURCES): New variable.
39731 (gpt_mod_CFLAGS): Likewise.
39732 (gpt_mod_LDFLAGS): Likewise.
39733
39734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
39735
39736 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
39737 New macro.
39738
39739 * partmap/gpt.c: New file.
39740
39741 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
39742 GPT partition map is detected.
39743
41730ed9 397442005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
39745
39746 * commands/i386/pc/play.c: New file.
39747 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
39748 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
39749 macros.
f19dbdb7 39750
95dc3643 397512005-11-27 Marco Gerards <mgerards@xs4all.nl>
39752
39753 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
39754 ((unused))' to silence gcc warning.
39755
1569ec51 397562005-11-26 Hollis Blanchard <hollis@penguinppc.org>
39757
39758 * configure.ac: Correct `AC_PROG_YACC' test.
39759
9abde152 397602005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39761
39762 * util/powerpc/ieee1275/grub-install.in: Run the mount point
39763 check before installing files.
39764
44b83271 397652005-11-22 Mike Small <smallm@panix.com>
39766
39767 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
39768 number regex so multidigit numbers are recognized correctly.
39769
397702005-11-22 Mike Small <smallm@panix.com>
39771
39772 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
39773 debugging message before attempting to claim memory.
39774 (grub_rescue_cmd_initrd): Add a claim debugging message and try
39775 multiple addresses in case of failure.
39776
9c12956b 397772005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39778
39779 * term/tparm.c (get_space): Remove empty `if' statement.
39780
39781 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
39782
39783 * kern/parser.c (check_varstate): Rename `state' to 's'.
39784
aeaf81d9 397852005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39786
39787 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
39788 variable definitions to the beginning of each function. Sort stack
39789 variables by size.
39790 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
39791 `buf' argument to `char *'.
39792
79bbb63f 397932005-11-22 Hollis Blanchard <hollis@penguinppc.org>
39794
39795 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
39796 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 39797 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 39798 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
39799 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
39800 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
39801 configfile.mod, search.mod, gzio.mod and test.mod.
39802 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
39803 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
39804 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
39805 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
39806 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
39807 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
39808 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
39809 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
39810 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
39811 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
39812 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39813 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39814 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
39815 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
39816 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
39817 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
39818 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39819 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
39820 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
39821 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
39822 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
39823 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
39824 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
39825
39826 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
39827 `grep --include'.
39828 (pkgdata_MODULES): Add test.mod.
39829
233b1628 398302005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39831
39832 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
39833 appending to variables with "+=".
39834 (PModule): Use full pathname to generate *.lst filenames.
39835
39836 * Makefile.in: Fixed list rules moved from genmk.rb.
39837 (.DELETE_ON_ERROR): New special target.
39838 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
39839
39840 * conf/i386-pc.rmk: Include conf/common.mk.
39841 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 39842 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 39843 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
39844 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
39845 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
39846 configfile.mod, search.mod, gzio.mod and test.mod.
39847 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
39848 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
39849 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
39850 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
39851 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
39852 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
39853 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
39854 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
39855 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
39856 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
39857 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39858 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39859 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
39860 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
39861 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
39862 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
39863 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39864 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
39865 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
39866 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
39867 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
39868 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
39869 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
39870 here...
39871 * conf/common.rmk: ... to here. New file.
39872
39873 * conf/common.mk: New file.
39874
16f820c8 398752005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
39876
39877 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
39878 (grub_script.tab.c): ... here.
39879
39880 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
39881 (grub_script.tab.c): ... here.
39882
39883 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
39884 (grub_script.tab.c): ... here.
39885
39886 * normal/command.c (grub_command_find): Fixed a memory leak of
39887 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
39888
63ba1554 398892005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39890
39891 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
39892 "@" which marks the start of a comment on ARM.
39893 (VARIABLE): Likewise.
39894
7f67dc13 398952005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39896
79bbb63f 39897 Add support for Linux/ADFS partition tables.
7f67dc13 39898
39899 * partmap/acorn.c: New file.
39900
39901 * include/grub/acorn_filecore.h: Likewise.
39902
39903 * DISTLIST: Added `partmap/acorn.c' and
39904 `include/grub/acorn_filecore.h'.
f19dbdb7 39905
7f67dc13 39906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39907 `partmap/acorn.c'.
39908 (pkgdata_MODULES): Add `acorn.mod'.
39909 (acorn_mod_SOURCES): New variable.
39910 (acorn_mod_CFLAGS): Likewise.
39911
39912 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39913 `partmap/acorn.c'.
39914 (pkgdata_MODULES): Add `acorn.mod'.
39915 (acorn_mod_SOURCES): New variable.
39916 (acorn_mod_CFLAGS): Likewise.
39917
39918 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
39919 (pkgdata_MODULES): Add `acorn.mod'.
39920 (acorn_mod_SOURCES): New variable.
39921 (acorn_mod_CFLAGS): Likewise.
39922 (acorn_mod_LDFLAGS): Likewise.
39923
39924 * include/types.h (grub_disk_addr_t): New typedef.
39925
6d099807 399262005-11-13 Marco Gerards <mgerards@xs4all.nl>
39927
39928 * geninit.sh: New file.
39929
39930 * geninitheader.sh: Likewise.
39931
39932 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
39933 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
39934 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
39935 * commands/configfile.c (grub_configfile_init)
39936 (grub_configfile_fini): Likewise.
39937 * commands/default.c (grub_default_init, grub_default_fini):
39938 Likewise.
39939 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
39940 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
39941 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
39942 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
39943 Likewise.
39944 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
39945 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
39946 Likewise.
39947 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 39948 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 39949 Likewise.
39950 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
39951 Likewise.
fe6b695a 39952 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 39953 Likewise.
39954 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
39955 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
39956 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
39957 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
39958 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
39959 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
39960 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
39961 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
39962 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
39963 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
39964 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
39965 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
39966 * partmap/amiga.c (grub_amiga_partition_map_init)
39967 (grub_amiga_partition_map_fini): Likewise.
39968 * partmap/apple.c (grub_apple_partition_map_init)
39969 (grub_apple_partition_map_fini): Likewise.
39970 * partmap/pc.c (grub_pc_partition_map_init)
39971 (grub_pc_partition_map_fini): Likewise.
39972 * partmap/sun.c (grub_sun_partition_map_init,
39973 grub_sun_partition_map_fini): Likewise.
39974 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
39975 Likewise.
39976
39977 * util/grub-emu.c: Include <grub_modules_init.h>.
39978 (main): Don't initialize and de-initialize any modules directly,
39979 use `grub_init_all' and `grub_fini_all' instead.
39980
39981 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
39982 `grub_vesafb_mod_init'.
39983 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
39984 all users.
39985 * term/i386/pc/vga.c (grub_vga_init): Renamed to
39986 `grub_vga_mod_init'. Updated all users.
39987 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 39988
6d099807 39989 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
39990 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
39991 rules.
39992
39993 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
39994 Generate a function to initialize the module in utilities.
39995 Updated all callers.
39996 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
39997 initialize the module in utilities. Updated all callers.
39998
9046bcf0 399992005-11-09 Hollis Blanchard <hollis@penguinppc.org>
40000
40001 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
40002 escape sequence and a literal ^L to clear the screen.
40003
40004 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
40005 when returning from Open Firmware.
40006
d13ea639 400072005-11-09 Hollis Blanchard <hollis@penguinppc.org>
40008
40009 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
40010 (grub_ofconsole_height): Likewise.
40011 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
40012 manually insert a '\n'.
40013 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
40014 `grub_ofconsole_height'. Return early if these are already set.
40015
a8fcf206 400162005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
40017
40018 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
40019 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
40020 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
40021 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
40022 and `normal/script.c'.
40023 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
40024 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
40025 (test_mod_SOURCES): New variable.
40026 (test_mod_CFLAGS): Likewise.
40027 (test_mod_LDFLAGS): Likewise.
40028 (pkgdata_MODULES): Add `test.mod'.
40029 (grub_script.tab.c): New rule.
40030 (grub_script.tab.h): Likewise.
40031
b6b32745 400322005-11-07 Marco Gerards <mgerards@xs4all.nl>
40033
40034 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40035 `commands/test.c', `normal/execute.c', `normal/lexer.c',
40036 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
40037 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
40038 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
40039 (test_mod_SOURCES): New variable.
40040 (test_mod_CFLAGS): Likewise.
40041 (pkgdata_MODULES): Add `test.mod'.
40042 (grub_script.tab.c): New rule.
40043 (grub_script.tab.h): Likewise.
40044
daac212a 400452005-11-06 Marco Gerards <mgerards@xs4all.nl>
40046
40047 Add initial scripting support.
40048
40049 * commands/test.c: New file.
40050 * include/grub/script.h: Likewise.
40051 * normal/execute.c: Likewise.
40052 * normal/function.c: Likewise.
40053 * normal/lexer.c: Likewise.
40054 * normal/parser.y: Likewise.
40055 * normal/script.c: Likewise.
40056
40057 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 40058
daac212a 40059 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
40060 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
40061 `normal/function.c' and `normal/script.c'.
40062 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
40063 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 40064 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
40065 variables.
daac212a 40066 (pkgdata_MODULES): Add `test.mod'.
40067 (grub_script.tab.c): New rule.
40068 (grub_script.tab.h): Likewise.
40069
40070 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
40071
40072 * include/grub/normal.h (grub_test_init): New prototype.
40073 (grub_test_fini): Likewise.
f19dbdb7 40074
daac212a 40075 * normal/command.c: Include <grub/script.h>.
40076 (grub_command_execute): Rewritten.
f19dbdb7 40077
daac212a 40078 * util/grub-emu.c (main): Call `grub_test_init' and
40079 `grub_test_fini'.
40080
77500b2b 400812005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40082
40083 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
40084 to 0.
40085 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
40086 there are no pending characters.
40087
e45deb9e 400882005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40089
40090 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
40091 `grub_strndup' to drop device arguments. Replace unnecessary
40092 `grub_strndup' with `grub_strdup'.
40093
4ce32619 400942005-11-03 Hollis Blanchard <hollis@penguinppc.org>
40095
40096 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
40097 `debug' environment variable has been set.
40098
400992005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 40100
4ce32619 40101 * Makefile.in (install-local): Use $(DATA).
40102 (uninstall): Likewise.
40103 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
40104 (sbin_UTILITIES): ... to here.
40105 (sbin_SCRIPTS): New variable.
40106 (grub_install_SOURCES): New variable.
40107 * util/powerpc/ieee1275/grub-install.in: New file.
40108 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
40109 variable.
40110 (add_segments): Call `grub_util_get_path'.
40111
25fe6f03 401122005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40113
40114 From Timothy Baldwin:
40115 * commands/ls.c (grub_ls_list_files): Close FILE with
40116 grub_file_close.
40117 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
40118
04ccf3ec 401192005-10-24 Marco Gerards <mgerards@xs4all.nl>
40120
40121 * include/grub/parser.h: New file.
40122
40123 * kern/parser.c: Likewise.
40124
40125 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
40126 (grub_setup_SOURCES): Likewise.
40127 (grub_probefs_SOURCES): Likewise.
40128 (grub_emu_SOURCES): Likewise.
40129 (kernel_img_HEADERS): Add `parser.h'.
40130
40131 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
40132 (grub_emu_SOURCES): Add `kern/parser.c'.
40133 (grubof_SOURCES): Likewise.
40134
40135 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
40136 (grubof_SOURCES): Add `kern/parser.c'.
40137
40138 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
40139
40140 * kern/misc.c (grub_split_cmdline): Removed function.
40141
40142 * kern/rescue.c: Include <grub/parser.h>.
40143 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
40144 of `grub_split_cmdline'.
40145
40146 * normal/command.c: Include <grub/parser.h>.
40147 (grub_command_execute): Use `grub_parser_split_cmdline' instead
40148 of `grub_split_cmdline'.
40149
40150 * normal/completion.c: Include <grub/parser.h>.
40151 (cmdline_state): New variable.
40152 (iterate_dir): End the filename with a quote depending on the
40153 command line state.
40154 (get_state): new function.
40155 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
40156 split the arguments and determine the current argument. When the
40157 argument string is not quoted, escape all spaces.
40158
6d8f4b0e 401592005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40160
40161 * normal/sparc64/setjmp.S: New file.
40162
15cf03ed 401632005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40164
40165 * include/grub/sparc64/libgcc.h: New file.
40166 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
40167 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
40168 normal/sparc64/setjmp.c.
40169
03e8661a 401702005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
40171
40172 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
40173 * kern/sparc64/cache.S: New file.
40174 * kern/sparc64/cache.c: Removed.
40175 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
40176 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
40177 -mtune=ultrasparc.
40178 (COMMON_LDFLAGS): Add -melf64_sparc.
40179 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
40180 (grubof_SOURCES): Use cache.S instead of cache.c.
40181 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
40182 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
40183 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
40184 commented though.
40185 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
40186 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
40187 (linux_mod_CFLAGS): Commented out.
40188 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
40189 out because module isn't built.
40190 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
40191 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
40192 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
40193 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
40194 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
40195 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
40196 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
40197 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
40198 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
40199 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
40200 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
40201 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
40202 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
40203 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
40204
34eeec8a 402052005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
40206
40207 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
40208 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
40209 longer, because HFS should not be used on PC.
40210
708367a3 402112005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
40212
40213 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
40214 consistently within the loop.
40215
6fa1251a 402162005-10-15 Marco Gerards <mgerards@xs4all.nl>
40217
40218 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
40219 directory can not be read.
40220
4801580b 402212005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40222
40223 * configure.ac (AC_INIT): Increase the version number to 1.91.
40224
40225 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
40226 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
40227 term/i386/pc/serial.c.
40228
219ad426 402292005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40230
40231 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
40232 file size must be permitted.
40233
40234 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
40235 between %ah and %al.
40236
688e5699 402372005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40238
40239 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
40240 grub_uint64_t.
40241 Call the hook with a NUL-terminated filename.
40242 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
40243 grub_cpu_to_be32.
40244
40245 * kern/term.c (cursor_state): New variable.
40246 (grub_term_set_current): Reset the cursor state on a new
40247 terminal.
40248 (grub_setcursor): Rewritten to use CURSOR_STATE.
40249 (grub_getcursor): New function.
40250
40251 * include/grub/term.h (grub_getcursor): New prototype.
40252
40253 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
40254 integers on ARM. Reported by Timothy Baldwin
40255 <T.E.Baldwin99@members.leeds.ac.uk>.
40256
bb34586c 402572005-10-11 Marco Gerards <mgerards@xs4all.nl>
40258
40259 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
40260 allocated.
40261 (grub_sfs_dir): Likewise.
40262
9a909877 402632005-10-09 Marco Gerards <mgerards@xs4all.nl>
40264
40265 Add support for the SFS filesystem.
40266
40267 * fs/sfs.c: New file.
40268
40269 * DISTLIST: Added `fs/sfs.c'.
40270
40271 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
40272 (grub_probefs_SOURCES): Likewise.
40273 (grub_emu_SOURCES): Likewise.
40274 (pkgdata_MODULES): Add `sfs.mod'.
40275 (sfs_mod_SOURCES): New variable.
40276 (sfs_mod_CFLAGS): Likewise.
40277 (sfs_mod_LDFLAGS): Likewise.
40278
40279 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
40280 (pkgdata_MODULES): Add `sfs.mod'.
40281 (sfs_mod_SOURCES): New variable.
40282 (sfs_mod_CFLAGS): Likewise.
40283
40284 * util/grub-emu.c (main): Call `grub_sfs_init' and
40285 `grub_sfs_fini'.
40286
40287 * include/grub/fs.h (grub_sfs_init): New prototype.
40288 (grub_sfs_fini): Likewise.
40289
57bdbde3 402902005-10-07 Marco Gerards <mgerards@xs4all.nl>
40291
40292 Add support for the AFFS filesystem.
40293
40294 * fs/affs.c: New file.
40295
40296 * DISTLIST: Added `fs/affs.c'.
40297
40298 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
40299 (grub_probefs_SOURCES): Likewise.
40300 (grub_emu_SOURCES): Likewise.
40301 (pkgdata_MODULES): Add `affs.mod'.
40302 (affs_mod_SOURCES): New variable.
40303 (affs_mod_CFLAGS): Likewise.
40304 (affs_mod_LDFLAGS): Likewise.
40305
40306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
40307 (pkgdata_MODULES): Add `affs.mod'.
40308 (affs_mod_SOURCES): New variable.
40309 (affs_mod_CFLAGS): Likewise.
40310
40311 * util/grub-emu.c (main): Call `grub_affs_init' and
40312 `grub_affs_fini'.
40313
40314 * include/grub/fs.h (grub_affs_init): New prototype.
40315 (grub_affs_fini): Likewise.
40316
047b67e0 403172005-10-01 Marco Gerards <mgerards@xs4all.nl>
40318
40319 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
40320
59b8208a 403212005-10-01 Marco Gerards <mgerards@xs4all.nl>
40322
40323 * configure.ac: Accept `x86_64' as host_cpu. In that case add
40324 `-m32' to CFLAGS.
40325
40326 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
40327 linking.
f19dbdb7 40328
59b8208a 40329 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
40330 (COMMON_LDFLAGS): New variable.
40331 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
40332 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
40333 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
40334 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
40335 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
40336 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
40337 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
40338 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
40339 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
40340 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
40341 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
40342 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
40343 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
40344 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
40345 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
40346 variables.
40347 (normal_mod_ASFLAGS): Add `-m32'.
40348
40349 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
40350 (grub_host_size_t, grub_host_ssize_t): New types.
40351 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 40352 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 40353 `GRUB_HOST_SIZEOF_VOID_P'.
40354
40355 * include/grub/kernel.h (struct grub_module_header): Type of
40356 member offset changed to `grub_host_off_t'. Type of member size
40357 changed to `grub_host_size_t'.
40358 (struct grub_module_info): Type of member offset changed to
40359 `grub_host_off_t'. Type of member size changed to
40360 `grub_host_size_t'.
40361
b4093103 403622005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
40363
40364 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 40365
b4093103 40366 * kern/i386/pc/startup.S (multiboot_header): New label.
40367 (multiboot_entry): Likewise.
40368 (multiboot_trampoline): Likewise.
40369
40370 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40371 Increased to 0x4A0.
40372
40373 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
40374 put parentheses after a question mark.
40375 [!GRUB_UTIL] (my_mod): New variable.
40376
40377 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
40378
b2499b29 403792005-09-28 Marco Gerards <mgerards@xs4all.nl>
40380
40381 Adds support for the XFS filesystem. Btrees are not supported
40382 yet.
40383
40384 * fs/xfs.c: New file.
40385
40386 * DISTLIST: Added `fs/xfs.c'.
40387
40388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
40389 (grub_probefs_SOURCES): Likewise.
40390 (grub_emu_SOURCES): Likewise.
40391 (pkgdata_MODULES): Add `xfs.mod'.
40392 (xfs_mod_SOURCES): New variable.
40393 (xfs_mod_CFLAGS): Likewise.
40394
40395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
40396 (pkgdata_MODULES): Add `xfs.mod'.
40397 (xfs_mod_SOURCES): New variable.
40398 (xfs_mod_CFLAGS): Likewise.
40399
40400 * util/grub-emu.c (main): Call `grub_xfs_init' and
40401 `grub_xfs_fini'.
40402
40403 * include/grub/fs.h (grub_xfs_init): New prototype.
40404 (grub_xfs_fini): Likewise.
40405
f19dbdb7 40406
83d37a62 404072005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
40408
40409 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
40410 color modes, allow greater than 16 colors to be configured as
40411 a default palette.
40412
47d2d65e 404132005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40414
40415 * normal/completion.c (complete_arguments): Add the qualifier
40416 const into OPTIONS.
40417
40418 From Omniflux <omniflux+lists@omniflux.com>:
40419 * include/grub/terminfo.h: New file.
40420 * include/grub/tparm.h: Likewise.
40421 * include/grub/i386/pc/serial.h: Likewise.
40422 * term/terminfo.c: Likewise.
40423 * term/tparm.c: Likewise.
40424 * term/i386/pc/serial.c: Likewise.
40425 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
40426 serial.mod.
40427 (terminfo_mod_SOURCES): New variable.
40428 (terminfo_mod_CFLAGS): Likewise.
40429 (serial_mod_SOURCES): Likewise.
40430 (serial_mod_CFLAGS): Likewise.
40431
48b671ff 404322005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
40433
40434 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
40435 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
40436 and kern/powerpc/ieee1275/cmain.c, respectively.
40437
40438 * boot/powerpc/ieee1275/crt0.S: Moved to ...
40439 * kern/powerpc/ieee1275/crt0.S: ... here.
40440
40441 * boot/powerpc/ieee1275/cmain.c: Moved to ...
40442 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 40443
48b671ff 40444 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
40445 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
40446 instead of boot/powerpc/ieee1275/crt0.S and
40447 boot/powerpc/ieee1275/cmain.c, respectively.
40448
40449 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
40450 sectors. It was not used anyway.
40451
09fc77a7 404522005-08-30 Hollis Blanchard <hollis@penguinppc.org>
40453
40454 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
40455 `unused parameter' warning.
40456
003789c7 404572005-08-30 Hollis Blanchard <hollis@penguinppc.org>
40458
40459 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
40460 function.
40461 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
40462 getcharwidth.
40463
67f44c86 404642005-08-28 Marco Gerards <metgerards@student.han.nl>
40465
40466 * include/grub/normal.h (enum grub_completion_type): Added
40467 `GRUB_COMPLETION_TYPE_ARGUMENT'.
40468
40469 * normal/cmdline.c (print_completion): Handle
40470 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
40471 * normal/menu_entry.c (store_completion): Likewise.
40472
40473 * normal/completion.c (complete_arguments): New function.
40474 (grub_normal_do_completion): Call `complete_arguments' when the
40475 current words start with a dash.
40476
0b5abe02 404772005-08-27 Marco Gerards <metgerards@student.han.nl>
40478
40479 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
40480 `gzio.mod' instead of `io.mod').
40481
d9864ee1 404822005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
40483
40484 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
40485 (DISTDIRS): Added io and video.
40486 Rewrite the search routine to make an output consistently.
40487
40488 * DISTLIST: Added conf/sparc64-ieee1275.mk,
40489 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
40490 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
40491 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
40492 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
40493 util/powerpc/ieee1275/misc.c.
f19dbdb7 40494
d9864ee1 40495 * include/grub/gzio.h: New file.
40496 * io/gzio.c: Likewise.
f19dbdb7 40497
d9864ee1 40498 * kern/file.c (grub_file_close): Call grub_device_close only if
40499 FILE->DEVICE is not NULL.
40500
40501 * include/grub/mm.h [!NULL] (NULL): New macro.
40502
40503 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
40504
40505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
40506 (pkgdata_MODULES): Added gzio.mod.
40507 (gzio_mod_SOURCES): New variable.
40508 (gzio_mod_CFLAGS): Likewise.
40509
40510 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
40511 (pkgdata_MODULES): Added gzio.mod.
40512 (gzio_mod_SOURCES): New variable.
40513 (gzio_mod_CFLAGS): Likewise.
40514
40515 * commands/cat.c: Include grub/gzio.h.
40516 (grub_cmd_cat): Use grub_gzfile_open instead of
40517 grub_file_open.
f19dbdb7 40518
d9864ee1 40519 * commands/cmp.c: Include grub/gzio.h.
40520 (grub_cmd_cmp): Use grub_gzfile_open instead of
40521 grub_file_open.
40522
40523 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
40524 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
40525 grub_file_open.
40526 (grub_rescue_cmd_module): Likewise.
40527
fa46f4b5 405282005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
40529
40530 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
40531 kern/sparc64/ieee1275/init.c because it contains _start.
40532 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
40533
e9211b5d 405342005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
40535
40536 * configure.ac: Add support for sparc64 host with ieee1275
40537 firmware.
40538 * configure: Generated from configure.ac.
40539 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
40540 instead of int.
40541 (grub_ofdisk_read): Likewise.
40542 (grub_ofdisk_open): Use %p to print pointer values, and cast the
40543 pointers as (void *) to remove a warning.
40544 (grub_ofdisk_close): Likewise.
40545 (grub_ofdisk_read): Likewise.
40546 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
40547 returns, so make it return void to remove a warning.
40548 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
40549 Corresponding prototype change.
40550 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
40551 values, and cast the pointers as (void *) to remove a warning.
40552 (grub_mm_dump): Likewise.
40553 * conf/sparc64-ieee1275.mk: New file.
40554 * conf/sparc64-ieee1275.rmk: Likewise.
40555 * include/grub/sparc64/setjmp.h: Likewise.
40556 * include/grub/sparc64/types.h: Likewise.
40557 * include/grub/sparc64/ieee1275/console.h: Likewise.
40558 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40559 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40560 * include/grub/sparc64/ieee1275/time.h: Likewise.
40561 * kern/sparc64/cache.c: Likewise.
40562 * kern/sparc64/dl.c: Likewise.
40563 * kern/sparc64/ieee1275/init.c: Likewise.
40564 * kern/sparc64/ieee1275/openfw.c: Likewise.
40565
385c6a92 405662005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
40567
40568 * util/console.c (grub_ncurses_putchar): If C is greater than
40569 0x7f, set C to a question mark.
40570 (grub_ncurses_getcharwidth): New function.
40571 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
40572 getcharwidth.
40573
40574 * normal/menu.c (print_entry): Made aware of Unicode. First,
40575 convert TITLE to UCS-4, and predict the cursor position by
40576 grub_getcharwidth.
40577
40578 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
40579 const to SRC.
40580 * kern/misc.c (grub_utf16_to_utf8): Likewise.
40581
16ccb8b1 405822005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40583
40584 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
40585 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
40586 grub_strcat.
40587
40588 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
40589 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
40590 grub_strcpy and grub_strlen. Take it into account that a space
40591 character is inserted as a delimiter.
40592
6a85ce79 405932005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40594
40595 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 40596 invalid magic in the error.
6a85ce79 40597
40598 * commands/search.c: New file.
f19dbdb7 40599
6a85ce79 40600 * util/grub-emu.c (main): Call grub_search_init and
40601 grub_search_fini.
40602
40603 * kern/rescue.c (grub_rescue_print_disks): Removed.
40604 (grub_rescue_print_devices): New function.
40605 (grub_rescue_cmd_ls): Use grub_device_iterate with
40606 grub_rescue_print_devices instead of grub_disk_dev_iterate with
40607 grub_rescue_print_disks.
40608
40609 * kern/partition.c (grub_partition_iterate): Return the result of
40610 PARTMAP->ITERATE instead of GRUB_ERRNO.
40611
40612 * kern/device.c: Include grub/partition.h.
40613 (grub_device_iterate): New function.
40614
40615 * include/grub/partition.h (grub_partition_iterate): Return int
40616 instead of grub_err_t.
40617
40618 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
40619 prototype.
40620 [GRUB_UTIL] (grub_search_fini): Likewise.
40621
40622 * include/grub/device.h (grub_device_iterate): New prototype.
40623
40624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40625 commands/search.c.
40626 (pkgdata_MODULES): Added search.mod.
40627 (search_mod_SOURCES): New variable.
40628 (search_mod_CFLAGS): Likewise.
40629
40630 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
40631 (pkgdata_MODULES): Added search.mod.
40632 (search_mod_SOURCES): New variable.
40633 (search_mod_CFLAGS): Likewise.
40634
40635 * commands/ls.c (grub_ls_list_disks): Renamed to ...
40636 (grub_ls_list_devices): ... this, and use grub_device_iterate.
40637 All callers changed.
40638
40639 * DISTLIST: Added commands/search.c.
40640
ef095434 406412005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
40642
40643 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
40644 conversion.
40645 (grub_getcharwidth): New function.
40646
40647 * kern/misc.c (grub_utf8_to_ucs4): New function.
40648
40649 * include/grub/term.h (struct grub_term): Added a new member
40650 "getcharwidth".
40651 (grub_getcharwidth): New prototype.
40652
40653 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
40654
40655 * term/i386/pc/console.c (map_char): New function. Segregated from
40656 grub_console_putchar.
40657 (grub_console_putchar): Use map_char.
40658 (grub_console_getcharwidth): New function.
40659 (grub_console_term): Specified grub_console_getcharwidth as
40660 getcharwidth.
40661
40662 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
40663 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
40664
40665 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
40666 GRUB_ERRNO.
40667 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
40668 on grub_strtoul completely.
40669 (write_char): Declare local variables in the beginning of the
40670 function.
40671 (grub_vesafb_getcharwidth): New function.
40672 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
40673 getcharwidth.
40674
1f0a95e4 406752005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
40676
40677 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
40678 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
40679 commands/i386/pc/vbetest.c.
40680
40681 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
40682 call grub_vbe_get_controller_info again, because the returned
40683 information is volatile.
40684 (grub_vbe_set_video_mode): Mostly rewritten.
40685 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
40686 grub_vbe_status_t correctly.
40687 (grub_vbe_get_video_mode_info): Likewise.
40688 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
40689 several if statements.
40690
40691 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
40692 * commands/i386/pc/vbeinfo.c: ... this.
40693
40694 * commands/i386/pc/vbe_test.c: Renamed to ...
40695 * commands/i386/pc/vbetest.c: ... this.
40696
40697 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
40698 ...
40699 (grub_cmd_vbeinfo): ... this. Save video modes before
40700 iterating. Skip a video mode, if it is not available, not enough
40701 information is given or it is monochrome. Show the memory
40702 model. Leave the interpretation of MODEVAR to grub_strtoul
40703 completely.
40704 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
40705 (GRUB_MOD_FINI): Likewise.
40706
40707 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
40708 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
40709 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
40710 duplicated grub_env_get. Leave the interpretation of MODEVAR to
40711 grub_strtoul completely.
40712 (real2pm): Removed.
40713 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
40714 (GRUB_MOD_FINI): Likewise.
40715
40716 * normal/misc.c: Include grub/mm.h.
40717
40718 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
40719 vbe_list_modes with vbetest.mod and vbeinfo.mod.
40720 (vbe_list_modes_mod_SOURCES): Removed.
40721 (vbe_list_modes_mod_CFLAGS): Likewise.
40722 (vbe_test_mod_SOURCES): Likewise.
40723 (vbe_test_mod_CFLAGS): Likewise.
40724 (vbeinfo_mod_SOURCES): New variable.
40725 (vbeinfo_mod_CFLAGS): Likewise.
40726 (vbetest_mod_SOURCES): Likewise.
40727 (vbetest_mod_CFLAGS): Likewise.
40728
992ffbbe 407292005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
40730
40731 * normal/misc.c: New file.
40732
40733 * DISTLIST: Added normal/misc.c.
f19dbdb7 40734
992ffbbe 40735 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
40736 DISK to HOOK. Call HOOK with DISK.
40737 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40738 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40739 * partmap/sun.c (sun_partition_map_iterate): Likewise.
40740
40741 * normal/menu_entry.c (struct screen): Added a new member
40742 "completion_shown".
40743 (completion_buffer): New global variable.
40744 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
40745 (store_completion): New function.
40746 (complete): Likewise.
40747 (clear_completions): Likewise.
40748 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
40749 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
40750 a tab, call complete.
40751
40752 * normal/completion.c (disk_dev): Removed.
40753 (print_simple_completion): Likewise.
40754 (print_partition_completion): Likewise.
40755 (print_func): New global variable.
40756 (add_completion): Do not take the arguments WHAT or PRINT any
40757 longer. Added a new argument TYPE. Instead of printing directly,
40758 call PRINT_FUNC if not NULL.
40759 All callers changed.
40760 (complete_device): Use a local variable DEV instead of
40761 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
40762 (grub_normal_do_completion): Take a new argument HOOK. Do not
40763 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
40764 empty string, return NULL instead.
40765 All callers changed.
40766
40767 * normal/cmdline.c (print_completion): New function.
40768
40769 * kern/partition.c (grub_partition_iterate): Add an argument DISK
40770 to HOOK.
40771 All callers changed.
40772
40773 * kern/disk.c (grub_print_partinfo): Removed.
40774
40775 * include/grub/partition.h (struct grub_partition_map): Add a new
40776 argument DISK into HOOK of ITERATE.
40777 (grub_partition_iterate): Add a new argument DISK to HOOK.
40778
40779 * include/grub/normal.h (enum grub_completion_type): New enum.
40780 (grub_completion_type_t): New type.
40781 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
40782 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
40783 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
40784 (GRUB_COMPLETION_TYPE_FILE): Likewise.
40785 (grub_normal_do_completion): Added a new argument HOOK.
40786 (grub_normal_print_device_info): New prototype.
40787
40788 * include/grub/disk.h (grub_print_partinfo): Removed.
40789
40790 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
40791 (normal_mod_SOURCES): Likewise.
40792 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40793 (normal_mod_SOURCES): Likewise.
40794
40795 * commands/ls.c (grub_ls_list_disks): Use
40796 grub_normal_print_device_info instead of grub_print_partinfo. Free
40797 PNAME.
40798 (grub_ls_list_files): Use grub_normal_print_device_info instead of
40799 duplicating the code.
40800
0bd41162 408012005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
40802
40803 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 40804 follow GCS more precisely.
40805 * commands/i386/pc/vbe_test.c: Likewise.
40806 * include/grub/i386/pc/vbe.h: Likewise.
40807 * term/i386/pc/vesafb.c: Likewise.
40808 * video/i386/pc/vbe.c: Likewise.
0bd41162 40809
6323696a 408102005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
40811
40812 * DISTLIST: Added term/i386/pc/vesafb.c
40813 DISTLIST: Added video/i386/pc/vbe.c
40814 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
40815 DISTLIST: Added commands/i386/pc/vbe_test.c.
40816 * commands/i386/pc/vbe_list_modes.c: New file.
40817 * commands/i386/pc/vbe_test.c: Likewise.
40818 * term/i386/pc/vesafb.c: Likewise.
40819 * video/i386/pc/vbe.c: Likewise.
40820 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
40821 (grub_vbe_probe) Added prototype.
40822 (grub_vbe_set_video_mode) Likewise.
40823 (grub_vbe_get_video_mode) Likewise.
40824 (grub_vbe_get_video_mode_info) Likewise.
40825 (grub_vbe_set_pixel_rgb) Likewise.
40826 (grub_vbe_set_pixel_index) Likewise.
40827 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
40828 (pkgdata_MODULES): Added vesafb.mod.
40829 (pkgdata_MODULES): Added vbe_list_modes.mod.
40830 (pkgdata_MODULES): Added vbe_test.mod.
40831 (vbe_mod_SOURCES): Added.
40832 (vbe_mod_CFLAGS): Likewise.
40833 (vesafb_mod_SOURCES): Likewise.
40834 (vesafb_mod_CFLAGS): Likewise.
40835 (vbe_list_modes_mod_SOURCES): Likewise.
40836 (vbe_list_modes_mod_CFLAGS): Likewise.
40837 (vbe_test_mod_SOURCES): Likewise.
40838 (vbe_test_mod_CFLAGS): Likewise.
40839
0a74e62f 408402005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
40841
0a74e62f 40842 * normal/command.c (grub_command_execute): If INTERACTIVE is
40843 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
40844 CMDLINE. Disable the pager if INTERACTIVE is true.
40845 All callers are changed.
40846
40847 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
40848 before reading a config file.
40849 * normal/main.c (read_config_file): Even if a command is not
40850 found, register it if it is within an entry.
40851
40852 * util/grub-emu.c: Include sys/types.h and unistd.h.
40853 (options): Added --hold.
40854 (struct arguments): Added a new member "hold".
40855 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
40856 missing.
40857 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
40858 cleared by a debugger, if it is not zero.
40859
40860 * include/grub/normal.h (grub_command_execute): Add an argument
40861 INTERACTIVE.
40862
e51f85ae 408632005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
40864
40865 * DISTLIST: Added include/grub/i386/pc/vbe.h.
40866
e9c6f39b 408672005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
40868
40869 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
40870 program with another one, because the old one didn't detect a bug
40871 in gcc-3.4. Always use regparm 2, because the new test is still
40872 not enough for gcc-4.0. Someone must investigate a simple test
40873 case which detects a bug in gcc-4.0.
40874
8de3495c 408752005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
40876
40877 * DISTLIST: Added normal/completion.c.
40878
40879 * normal/completion.c: New file.
f19dbdb7 40880
8de3495c 40881 * term/i386/pc/console.c (grub_console_getwh): New function.
40882 (grub_console_term): Assign grub_console_getwh to getwh.
40883
40884 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
40885 function is defined in normal/completion.c as
40886 grub_normal_do_completion.
40887 (grub_cmdline_get): Use grub_normal_do_completion instead of
40888 grub_tab_complete.
40889
40890 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
40891 returns non-zero, otherwise return 0.
40892 (grub_partition_iterate): First, probe the partition map. Then,
40893 call ITERATE only for this partition map.
40894
40895 * kern/misc.c (grub_strncmp): Rewritten.
40896
40897 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
40898 returns non-zero. Otherwise return 0.
40899
40900 * include/grub/partition.h (grub_partition_map_iterate): Return
40901 int instead of void.
40902
40903 * include/grub/normal.h (grub_normal_do_completion): New prototype.
40904
40905 * include/grub/misc.h (grub_strncmp): Change the type of N to
40906 grub_size_t.
40907
40908 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
40909 of void.
40910
40911 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 40912 unsigned explicitly before comparing it with I.
8de3495c 40913
40914 * kern/main.c (grub_env_write_root): Add the attribute unused into
40915 VAR.
40916
40917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40918 normal/completion.c.
40919 (normal_mod_SOURCES): Likewise.
40920 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40921 (normal_mod_SOURCES): Likewise.
40922
40923 * normal/command.c (grub_iterate_commands): If ITERATE returns
40924 non-zero, return one immediately.
40925
e85e144b 409262005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
40927
40928 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
40929 * kern/i386/pc/startup.S: Updated Global Descriptor table's
40930 descriptions.
40931 (grub_vbe_get_controller_info): New function.
40932 (grub_vbe_get_mode_info): Likewise.
40933 (grub_vbe_set_mode): Likewise.
40934 (grub_vbe_get_mode): Likewise.
40935 (grub_vbe_set_memory_window): Likewise.
40936 (grub_vbe_get_memory_window): Likewise.
40937 (grub_vbe_set_scanline_length): Likewise.
40938 (grub_vbe_get_scanline_length): Likewise.
40939 (grub_vbe_set_display_start): Likewise.
40940 (grub_vbe_get_display_start): Likewise.
40941 (grub_vbe_set_palette_data): Likewise.
40942 * include/grub/i386/pc/vbe.h: New file.
40943
c46153d2 409442005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40945
40946 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40947 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
40948 * DISTLIST: Likewise.
40949 * kern/ieee1275/of.c: Moved to ...
40950 * kern/ieee1275/ieee1275.c: ... here.
40951
0cb90c45 409522005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40953
40954 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
40955 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
40956 Pass 0 as `end' parameter to grub_strtoul().
40957
a19fb360 409582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40959
40960 * include/grub/powerpc/ieee1275/console.h: Do not include
40961 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
40962 ifdef.
40963 (grub_console_cur_color): Remove i386-specific prototype.
40964 (grub_console_real_putchar): Likewise.
40965 (grub_console_checkkey): Likewise.
40966 (grub_console_getkey): Likewise.
40967 (grub_console_getxy): Likewise.
40968 (grub_console_gotoxy): Likewise.
40969 (grub_console_cls): Likewise.
40970 (grub_console_setcursor): Likewise.
40971 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
40972 Include <grub/machine/console.h>.
40973 * term/ieee1275/ofconsole.c: Likewise.
40974
4ac9bd04 409752005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
40976
40977 * Makefile.in (LIBLZO): New variable.
40978
40979 * configure.ac: Check for LZO version 2.
40980
40981 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
40982 lzo/lzo1x.h instead of lzo1x.h.
40983
40984 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
40985 of -llzo.
40986
40987 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
40988 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
40989
40990 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
40991 copying the data from PARTITION to P.
40992
f4917dfd 409932005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40994
40995 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
40996 negative, unload the module.
40997
40998 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
40999 map is "pc_partition_map" but not "pc".
41000 (usage): Fix the description. The options are --boot-image and
41001 --core-image but not --boot-file or --core-file.
41002 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
41003 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
41004 DEFAULT_DIRECTORY.
41005
41006 * util/i386/pc/grub-install.in: Do not specify --boot-file or
41007 --core-file. Specify INSTALL_DEVICE as an argument.
41008
41009 * util/console.c: Include config.h.
41010 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
41011 [HAVE_NCURSES_H]: Include ncurses.h.
41012 [HAVE_CURSES_H]: Include curses.h.
41013 [!A_NORMAL] (A_NORMAL): Defined as zero.
41014 [!A_STANDOUT] (A_STANDOUT): Likewise.
41015
41016 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
41017 -lncurses.
41018 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
41019
41020 * configure.ac: Check for curses libraries and headers.
41021
41022 * Makefile.in (LIBCURSES): New variable.
41023
41024 * genmk.rb (Script::rule): Set the executable bits.
41025
41026 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
41027 name of the PC partition map is "pc_partition_map" but not "pc".
41028
0e143073 410292005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
41030
41031 * util/i386/pc/grub-install.in (grub_probefs): New variable.
41032 (modules): Likewise.
41033 (usage): Added descriptions for --modules and --grub-probefs.
41034 Handle --modules and --grub-probefs. Save the arguments in MODULES
41035 and GRUB_PROBEFS, respectively.
41036 Auto-detect a filesystem module against GRUBDIR. If the result is
41037 empty and modules are not specified explicitly, abort the
41038 installation. Add the result to MODULES.
41039
41040 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
41041 disk/powerpc/ieee1275/ofdisk.c,
41042 include/grub/powerpc/ieee1275/init.h and
41043 term/powerpc/ieee1275/ofconsole.c.
41044 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
41045 term/ieee1275/ofconsole.c.
41046
41047 * include/grub/powerpc/ieee1275/console.h: Resurrected.
41048
41049 * COPYING: Upgraded to the latest version. Only the address of the
41050 FSF office has changed.
f19dbdb7 41051
efd6e6d5 410522005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
41053
41054 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
41055 kern/ieee1275.c with kern/ieee1275/of.c.
41056
41057 * kern/ieee1275.c: Moved to ...
41058 * kern/ieee1275/of.c: ... here.
41059
8ceafda2 410602005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
41061
41062 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 41063 readability.
8ceafda2 41064
41065 * config.guess: Updated to the latest version from gnulib.
41066 * config.sub: Likewise.
41067 * install.sh: Likewise.
41068 * mkinstalldirs: Likewise.
41069
41070 * include/grub/console.h: Removed. This file is arch-specific. Do
41071 not put this in include/grub.
41072
41073 * include/grub/i386/pc/console.h: Resurrected.
41074
41075 * util/console.c: Include grub/machine/console.h instead of
41076 grub/console.h.
41077 * util/grub-emu.c: Likewise.
41078
267f6cd9 410792005-08-04 Marco Gerards <metgerards@student.han.nl>
41080
41081 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
41082 hardcoded value.
f19dbdb7 41083
267f6cd9 41084 From Vincent Pelletier <subdino2004@yahoo.fr>
41085 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
41086 Redefined to use grub_getwh.
41087 (grub_term): New member named getwh.
41088 (grub_getwh): New prototype.
41089 * kern/term.c (grub_getwh): New function.
41090 * term/i386/pc/console.c (grub_console_getwh): New function.
41091 (grub_console_term): New member `getwh'.
41092 * term/i386/pc/vga.c (grub_vga_getwh): New function.
41093 (grub_vga_term): New member `getwh'.
0b5abe02 41094 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 41095 grub_ssize_t.
41096 (grub_ofconsole_getw): New function.
41097 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
41098 (grub_ofconsole_term): New field named getwh and new initial
41099 value.
41100
3be7266d 411012005-08-03 Hollis Blanchard <hollis@penguinppc.org>
41102
41103 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
41104 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
41105 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
41106 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
41107 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
41108 of <grub/machine/ieee1275.h>.
41109 * commands/ieee1275/reboot.c: Likewise.
41110 * boot/powerpc/ieee1275/ieee1275.c: Move ...
41111 * kern/ieee1275.c: ... to here. All users updated. Change all
41112 parameter structs to use new type `grub_ieee1275_cell_t'.
41113 * term/powerpc/ieee1275/ofconsole.c: Move ...
41114 * term/ieee1275/ofconsole.c: ... to here. All users updated.
41115 * disk/powerpc/ieee1275/ofdisk.c: Move ...
41116 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
41117 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
41118 to return int.
41119 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
41120 Remove unused prototypes. All users updated.
41121 * include/grub/powerpc/ieee1275/console.h: Removed.
41122 * include/grub/powerpc/ieee1275/ieee1275.h: Define
41123 `grub_ieee1275_cell_t'.
41124 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
41125 Cast comparisons with -1 to the correct type.
41126 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
41127 type to match `grub_ieee1275_entry_fn'.
41128
8b5f3938 411292005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
41130
41131 * DISTLIST: Added util/i386/pc/grub-probefs.c.
41132
41133 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
41134 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
41135 partmap/sun.c.
41136 (grub_probefs_SOURCES): New variable.
41137
41138 * util/i386/pc/grub-probefs.c: New file.
41139
41140 * util/i386/pc/grub-setup.c (main): Call
41141 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
41142 grub_hfs_init and grub_jfs_init to initialize the system. Call
41143 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
41144 grub_pc_partition_map_fini to finish the system.
41145
ea409713 411462005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
41147
41148 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
41149 function.
41150 (grub_multiboot_load_elf32): Likewise.
41151 (grub_multiboot_is_elf64): Likewise.
41152 (grub_multiboot_load_elf64): Likewise.
41153 (grub_multiboot_load_elf): Likewise.
41154 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
41155 an ELF32 or ELF64 file.
41156 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
41157
41158 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
41159 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
41160 NULL before calling FS->LABEL.
41161 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
41162 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
41163 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
41164 before calling FS->LABEL.
41165
141a288b 411662005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
41167
41168 * util/i386/pc/grub-install.in (datadir): New variable.
41169 (libdir): Removed.
41170 (pkgdatadir): New variable.
41171 (pkglibdir): Removed.
41172
0d5f8a54 411732005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
41174
41175 * DISTLIST: Added util/i386/pc/grub-install.in.
41176
41177 * util/i386/pc/grub-install.in: New file.
41178
41179 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
41180 (grub_install_SOURCES): Likewise.
41181
41182 * genmk.rb: Added support for scripts.
41183 (Script): New class.
41184 (scripts): New variable.
41185
41186 * Makefile.in (install-local): Install sbin_SCRIPTS by
41187 INSTALL_SCRIPT.
41188 (uninstall): Remove sbin_SCRIPTS.
41189
41190 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
41191 device, try to get a GRUB device by
41192 grub_util_biosdisk_get_grub_dev.
41193 Free DEST_DEV.
41194
41195 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
41196 description for --device-map.
41197
5f968e1e 411982005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
41199
41200 Change the semantics of variable hooks. They now return strings
41201 instead of error values.
f19dbdb7 41202
5f968e1e 41203 * util/i386/pc/grub-setup.c: Include grub/env.h.
41204 (setup): Use grub_device_set_root instead of grub_env_set.
41205
41206 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
41207 grub_env_get instead of grub_device_set_root and
41208 grub_device_get_root, respectively.
41209
41210 * kern/main.c (grub_env_write_root): New function.
41211 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
41212 grub_env_set instead of grub_device_set_root.
41213
41214 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
41215 many variables.
41216 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
41217 rather than calling ENV->WRITE_HOOK afterwards.
41218 (grub_env_get): Return the result of ENV->READ_HOOK rather than
41219 passing a pointer of a pointer.
41220 (grub_register_variable_hook): Change the types of "read_hook" and
41221 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
41222 respectively.
41223 Allocate the default empty string on the heap, because this string
41224 may be freed later.
41225
41226 * kern/device.c: Include grub/env.h.
41227 (grub_device_set_root): Removed.
41228 (grub_device_get_root): Likewise.
41229 (grub_device_open): Use grub_env_get instead of
41230 grub_device_get_root.
41231
41232 * include/grub/env.h (grub_env_read_hook_t): New type.
41233 (grub_env_write_hook_t): Likewise.
41234 (grub_env_var): Change the types of "read_hook" and "write_hook"
41235 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
41236 (grub_register_variable_hook): Likewise.
41237
41238 * include/grub/device.h (grub_device_set_root): Removed.
41239 (grub_device_set_root): Likewise.
41240
41241 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
41242 make sure that DIRNAME terminates with '/', so that
41243 grub_fat_find_dir will fail if PATH is not a directory.
41244
41245 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
41246 from DIRNAME.
41247 Use the qualifier auto for print_files and print_files_long.
41248 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
41249 as a regular file.
41250 Put a newline only if there is no error.
41251 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
41252 used.
41253
896f0afd 412542005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
41255
41256 * kern/partition.c (grub_partition_probe): Initialize PART to
41257 NULL. Otherwise, when no partition map is registered, this returns
41258 a garbage.
41259
b28b81b2 412602005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
41261
41262 * partmap/apple.c (apple_partition_map_iterate): Check if POS
41263 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
41264 valid.
41265
5f3607e0 412662005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
41267
41268 * commands/ls.c (grub_ls_list_disks): Print the filesystem
41269 information on each device, if it does not have partitions. Print
41270 "Device" instead of "Disk", because this function is not specific
41271 to disk devices.
41272
41273 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
41274 static to ensure that it is put on the memory rather than a
41275 register.
41276
502c87e8 412772005-07-17 Yoshinori Okuji <okuji@enbug.org>
41278
41279 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
41280 (grub_cat_init): Likewise.
41281 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
41282 (options): Likewise.
41283 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
41284 (grub_configfile_init): Likewise.
41285 * font/manager.c (GRUB_MOD_INIT): Likewise.
41286 * commands/help.c (GRUB_MOD_INIT): Likewise.
41287 (grub_help_init): Likewise.
41288 * normal/command.c (grub_command_init): Likewise.
41289 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
41290 * disk/loopback.c (grub_loop_init): Likewise.
41291 (GRUB_MOD_INIT): Likewise.
41292 * commands/ls.c (grub_ls_init): Likewise.
41293 (GRUB_MOD_INIT): Likewise.
41294 (options): Likewise.
41295 * commands/boot.c (grub_boot_init): Likewise.
41296 (GRUB_MOD_INIT): Likewise.
41297 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
41298 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
41299 (GRUB_MOD_INIT): Likewise.
41300 * commands/cmp.c (grub_cmp_init): Likewise.
41301 (GRUB_MOD_INIT): Likewise.
41302
41303 * normal/arg.c: Use <> instead of "" to include header files.
41304 (SHORT_ARG_HELP): New macro.
41305 (SHORT_ARG_USAGE): Likewise.
41306 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
41307 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
41308 descriptions.
41309 (find_short): Check if C is 'h' or 'u' explicitly.
41310 (grub_arg_show_help): Use space characters instead of tabs. Treat
41311 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
41312 are shown with --help and --usage only if they are not used for
41313 the command itself.
41314 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
41315 'h' and 'u'.
41316
41317 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
41318 const into "longarg". Change the type of "shortarg" to int.
41319
f806d18e 413202005-07-17 Yoshinori Okuji <okuji@enbug.org>
41321
41322 * boot/i386/pc/boot.S (boot_drive_check): New label.
41323
41324 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
41325 macro.
41326
41327 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
41328 which do not pass a boot drive correctly. Copied from GRUB Legacy.
41329
e293232b 413302005-07-17 Yoshinori Okuji <okuji@enbug.org>
41331
41332 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
41333 When turning off Gate A20, skip the check and return immediately,
41334 because this is not fatal usually.
41335
ebedfd00 413362005-07-17 Yoshinori Okuji <okuji@enbug.org>
41337
41338 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
41339 be 0x7C00 instead of 0x8000.
41340
41341 * boot/i386/pc/pxeboot.S: Rewritten.
41342
41343 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
41344 EXT_C.
41345 (gate_a20_check_state): Read a byte from 0x108000. Invert the
41346 result.
41347
654fc59f 413482005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
41349
41350 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
41351 robustness. This routine now supports a BIOS call and System
41352 Control Port A to modify the gate A20.
41353
41354 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41355 Increased to 0x440.
41356
09f9923f 413572005-07-12 Hollis Blanchard <hollis@penguinppc.org>
41358
41359 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
41360 device path and resulting ihandle.
41361 (grub_ofdisk_close): dprintf the ihandle being closed.
41362 (grub_ofdisk_read): dprintf function parameters.
41363 * kern/mm.c (grub_mm_init_region): Likewise.
41364 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
41365 (grub_linux_boot): dprintf the Linux entry point, initrd address and
41366 size, and boot arguments.
41367 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
41368 before loading into memory.
41369 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
41370 before loading into memory.
41371
7ef504d8 413722005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
41373
41374 * kern/mm.c: Added much documentation.
41375 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
41376 8, set to 5 instead of 8.
41377
e0f050c2 413782005-07-10 Yoshinori Okuji <okuji@enbug.org>
41379
41380 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
41381
41382 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
41383 (grub_mkdevicemap_SOURCES): New variable.
41384
41385 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
41386 lib/device.c of GRUB Legacy.
41387
7224189a 413882005-07-10 Yoshinori Okuji <okuji@enbug.org>
41389
41390 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
41391 instead of PATH is NULL.
41392
68c864eb 413932005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
41394
41395 * commands/cmp.c (BUFFER_SIZE): New macro.
41396 (grub_cmd_cmp): Close the right file at the right time. Compare
41397 only data just read. Don't report files of different size as
41398 identical. Dynamically allocate buffers. Move variable
41399 declarations at the beginning of function.
41400
e6f3e614 414012005-07-09 Yoshinori Okuji <okuji@enbug.org>
41402
41403 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
41404 reverse.
41405
f8f1559a 414062004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
41407
41408 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
41409 when backspace is pressed at beginning of line.
41410
39c9d41d 414112005-07-03 Yoshinori Okuji <okuji@enbug.org>
41412
41413 * DISTLIST: Added genfslist.sh.
41414
41415 * normal/main.c (fs_module_list): New variable.
41416 (autoload_fs_module): New function.
41417 (read_fs_list): Likewise.
41418 (grub_normal_execute): Call read_fs_list.
41419
41420 * kern/fs.c (grub_fs_autoload_hook): New variable.
41421 (grub_fs_probe): Added support for auto-loading.
41422
41423 * include/grub/normal.h (struct grub_fs_module_list): New struct.
41424 (grub_fs_module_list_t): New type.
41425
41426 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
41427 (grub_fs_autoload_hook): New prototype.
41428
41429 * genfslist.sh: New file.
f19dbdb7 41430
39c9d41d 41431 * genmk.rb: Added a rule to generate a filesystem list.
41432
121c1d83 414332005-06-30 Marco Gerards <metgerards@student.han.nl>
41434
41435 * configure.ac: Fix the test for cross-compiling.
41436
41437 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
41438 define GRUB_UTIL anymore.
41439
41440 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
41441 so this function works on other systems than just big endian.
41442 (load_modules): Likewise.
41443 (add_segments): Likewise.
41444
e75d76e1 414452005-06-23 Hollis Blanchard <hollis@penguinppc.org>
41446
41447 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
41448 contains `l' modifier, get a long from va_arg().
41449
50b5a0a7 414502005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
41451
41452 * kern/mm.c (grub_free): If the next free block which is being
41453 merged is the first free block, set the first block to the block
41454 being freed.
41455 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
41456
89371b20 414572005-05-08 Hollis Blanchard <hollis@penguinppc.org>
41458
41459 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
41460 `grub_ieee1275_chosen'.
41461
168d6e58 414622005-05-08 Hollis Blanchard <hollis@penguinppc.org>
41463
41464 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
41465 (grub_ieee1275_chosen): New variable.
41466 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
41467 `chosen'.
41468 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
41469 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41470 Rename first argument to `phandle' for consistency.
41471 (grub_ieee1275_get_property_length): Likewise.
41472 (grub_ieee1275_next_property): Likewise. Change type of first argument
41473 to grub_ieee1275_phandle_t.
41474 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
41475 Move export next to declaration.
41476 (grub_ieee1275_chosen): New variable.
41477 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
41478 Correct cosmetic typo.
41479 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
41480 `grub_ieee1275_chosen'.
41481 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
41482 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
41483 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
41484 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
41485 `grub_ieee1275_chosen'.
41486
ca5baa3f 414872005-05-10 Hollis Blanchard <hollis@penguinppc.org>
41488
41489 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
41490 /chosen/bootargs.
41491 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
41492 /chosen/bootargs as "variable=value" pairs.
41493
708b345f 414942005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
41495
41496 * include/grub/misc.h (grub_dprintf): New macro.
41497 (grub_real_dprintf): New prototype.
41498 (grub_strword): Likewise.
41499 (grub_iswordseparator): Likewise.
41500 * kern/misc.c (grub_real_dprintf): New function.
41501 (grub_strword): Likewise.
41502 (grub_iswordseparator): Likewise.
41503
f4c5e67c 415042005-04-30 Hollis Blanchard <hollis@penguinppc.org>
41505
41506 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
41507 (roundup): Remove macro.
41508 (grub_ieee1275_flags): Make static.
41509 (grub_ieee1275_realmode): Remove.
41510 (grub_ieee1275_test_flag): New function.
41511 (grub_ieee1275_set_flag): Likewise.
41512 (find_options): Rename to `grub_ieee1275_find_options'; update
41513 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
41514 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
41515 (cmain): New prototype.
41516 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
41517 `grub_ieee1275_flags' directly.
41518 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
41519 machine/biosdisk.h.
41520 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
41521 Don't include grub/machine/init.h.
41522 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
41523 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41524 Remove prototype.
41525 (grub_ieee1275_realmode): Likewise.
41526 (grub_ieee1275_flag): New enum.
41527 (grub_ieee1275_test_flag): New prototype.
41528 (grub_ieee1275_set_flag): New prototype.
41529 * include/grub/powerpc/ieee1275/init.h: Remove file.
41530 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
41531 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
41532 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
41533 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
41534 comment.
41535 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
41536 `grub_ieee1275_test_flag'.
41537 (grub_ieee1275_encode_devname): Likewise.
41538
ed16607e 415392005-04-21 Hollis Blanchard <hollis@penguinppc.org>
41540
41541 * include/grub/powerpc/ieee1275/ieee1275.h
41542 (grub_ieee1275_encode_devname): New prototype.
41543 (grub_ieee1275_get_filename): Likewise.
41544 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
41545 function.
41546 (grub_set_prefix): Likewise.
41547 (grub_machine_init): Call grub_set_prefix.
41548 * kern/powerpc/ieee1275/openfw.c: Fix typos.
41549 (grub_parse_type): New enum.
41550 (grub_ieee1275_get_devargs): New function.
41551 (grub_ieee1275_get_devname): Likewise.
41552 (grub_ieee1275_parse_args): Likewise.
41553 (grub_ieee1275_get_filename): Likewise.
41554 (grub_ieee1275_encode_devname): Likewise.
41555
be369920 415562005-03-30 Marco Gerards <metgerards@student.han.nl>
41557
41558 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
41559 `grub_loader_unset'.
41560
a5ce3a4a 415612005-03-26 Hollis Blanchard <hollis@penguinppc.org>
41562
41563 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
41564 instead of grub_ieee1275_interpret.
41565 (grub_halt_init): New function.
41566 (grub_halt_fini): Likewise.
41567 (GRUB_MOD_INIT): Correct message grammar.
41568 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
41569 instead of grub_ieee1275_interpret.
41570 (grub_reboot_init): New function.
41571 (grub_reboot_fini): Likewise.
41572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
41573 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
41574 util/i386/pc/misc.c with commands/ieee1275/halt.c,
41575 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
41576 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
41577 function.
41578 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
41579 Add prototype.
41580 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
41581 prototype.
41582 (grub_halt): Likewise.
41583 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
41584 (cmain): Remove __attribute__((unused)).
41585 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
41586 (grub_heap_len): Likewise.
41587 (grub_machine_fini): New function.
41588 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
41589 (grub_halt): Likewise.
41590 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
41591 function.
41592 * util/powerpc/ieee1275/misc.c: New file.
41593
0058f771 415942005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41595
41596 * DISTLIST: New file.
41597 * gendistlist.sh: Likewise.
f19dbdb7 41598
0058f771 41599 * Makefile.in (COMMON_DISTFILES): Removed.
41600 (BOOT_DISTFILES): Likewise.
41601 (CONF_DISTFILES): Likewise.
41602 (DISK_DISTFILES): Likewise.
41603 (FS_DISTFILES): Likewise.
41604 (INCLUDE_DISTFILES): Likewise.
41605 (KERN_DISTFILES): Likewise.
41606 (LOADER_DISTFILES): Likewise.
41607 (TERM_DISTFILES): Likewise.
41608 (UTIL_DISTFILES): Likewise.
41609 (DISTFILES): Likewise.
41610 (uninstall): Uninstall files in $(pkgdata_DATA).
41611 (DISTLIST): New target.
41612 (distdir): Use the contents of the file DISTLIST to get a list of
41613 distributed files.
41614
46b3b8a5 416152005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41616
41617 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
41618 descriptor. This is ported from GRUB Legacy.
41619
41620 * gencmdlist.sh: Added an extra semicolon to make it work with
41621 old sed versions. Reported by Robert Bihlmeyer
41622 <robbe@orcus.priv.at>.
41623
5822ff87 416242005-03-08 Yoshinori Okuji <okuji@enbug.org>
41625
41626 Automatic loading of commands is supported.
f19dbdb7 41627
5822ff87 41628 * normal/main.c (read_command_list): New function.
41629 (grub_normal_execute): Call read_command_list.
41630
41631 * normal/command.c (grub_register_command): Return zero or CMD.
41632 Allocate CMD->NAME from the heap.
41633 Initialize CMD->MODULE_NAME to zero.
41634 Find the same name as well. If the same command is found and it is
41635 a dummy command, overwrite members. If it is not a dummy command,
41636 return zero.
41637 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
41638 (grub_command_find): If a dummy command is found, load a module
41639 and retry to find a command only once.
41640
41641 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
41642 make sure that each command is loaded.
41643
41644 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
41645 macro.
41646 (struct grub_command): Remove const from the member `name'.
41647 Add a new member `module_name'.
41648 (grub_register_command): Return grub_command_t.
41649
41650 * commands/help.c (grub_cmd_help): Call grub_command_find to make
41651 sure that each command is loaded.
41652
41653 * genmk.rb (PModule::rule): Specify a module name without the
41654 suffix ".mod" to gencmdlist.sh.
41655
7b1f4b57 416562005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
41657
41658 * gencmdlist.sh: New file.
f19dbdb7 41659
7b1f4b57 41660 * genmk.rb (PModule::rule): Generate a rule for a command list.
41661 Clean command.lst.
41662 Generate command.lst from $(COMMANDFILES).
41663
41664 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
41665 (DATA): Added $(pkgdata_DATA).
41666 (install-local): Install files in $(pkgdata_DATA).
41667
062aaf39 416682005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
41669
41670 * term/i386/pc/vga.c (debug_command): Removed.
41671 (GRUB_MOD_INIT): Do not register the command "debug".
41672
41673 From Hollis Blanchard:
41674 * commands/configfile.c: New file.
41675 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41676 commands/configfile.c.
41677 (pkgdata_MODULES): Added configfile.mod.
41678 (configfile_mod_SOURCES): New variable.
41679 (configfile_mod_CFLAGS): Likewise.
41680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
41681 commands/configfile.c.
41682 (pkgdata_MODULES): Added configfile.mod.
41683 (configfile_mod_SOURCES): New variable.
41684 (configfile_mod_CFLAGS): Likewise.
41685 * util/grub-emu.c (main): Call grub_configfile_init and
41686 grub_configfile_fini.
41687 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
41688 prototype.
41689 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 41690
cee01aa6 416912005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
41692
41693 * normal/arg.c (grub_arg_show_help): Do not show the bug report
41694 address.
41695
41696 * commands/help.c (grub_cmd_help): Do not print newlines after
41697 the last command in print_command_help.
41698
93f3a1d8 416992005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
41700
41701 * commands/default.h: New file.
41702 * commands/timeout.h: Likewise.
41703 * normal/context.c: Likewise.
f19dbdb7 41704
93f3a1d8 41705 * util/misc.c: Do not include sys/times.h.
41706 Include sys/time.h and grub/machine/time.h.
41707 (grub_get_rtc): Rewritten with gettimeofday.
41708
41709 * util/grub-emu.c (main): Call grub_default_init and
41710 grub_timeout_init before grub_normal_init, and call
41711 grub_timeout_fini and grub_default_fini after grub_main.
41712
41713 * util/console.c (grub_ncurses_checkkey): Return the read
41714 character or -1.
41715
41716 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
41717 timeouts.
41718
41719 * normal/main.c (read_config_file): Push MENU. If this fails,
41720 print an error and wait for a user input.
41721 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
41722 If a menu is empty or an error occurs, pop MENU.
41723 (grub_normal_execute): Pop and free MENU after grub_menu_run
41724 returns.
41725
41726 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
41727
41728 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
41729 include time.h.
41730 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
41731 without GRUB_UTIL.
41732 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
41733 time.h.
41734 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
41735 without GRUB_UTIL.
41736
41737 * include/grub/normal.h (struct grub_menu_list): New struct.
41738 (grub_menu_list_t): New type.
41739 (struct grub_context): New struct.
41740 (grub_context_t): New type.
41741 (grub_register_command): Got rid of EXPORT_FUNC.
41742 (grub_unregister_command): Likewise.
41743 (grub_context_get): New prototype.
41744 (grub_context_get_current_menu): Likewise.
41745 (grub_context_push_menu): Likewise.
41746 (grub_context_pop_menu): Likewise.
41747 [GRUB_UTIL] (grub_default_init): Likewise.
41748 [GRUB_UTIL] (grub_default_fini): Likewise.
41749 [GRUB_UTIL] (grub_timeout_init): Likewise.
41750 [GRUB_UTIL] (grub_timeout_fini): Likewise.
41751
41752 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
41753 commands/timeout.c and normal/context.c.
41754 (pkgdata_MODULES): Added default.mod and timeout.mod.
41755 (normal_mod_SOURCES): Added normal/context.c.
41756 (default_mod_SOURCES): New variable.
41757 (default_mod_CFLAGS): Likewise.
41758 (timeout_mod_SOURCES): Likewise.
41759 (timeout_mod_CFLAGS): Likewise.
41760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
41761 conf/i386-pc.rmk.
41762 (pkgdata_MODULES): Added default.mod and timeout.mod.
41763 (normal_mod_SOURCES): Added normal/context.c.
41764 (default_mod_SOURCES): New variable.
41765 (default_mod_CFLAGS): Likewise.
41766 (timeout_mod_SOURCES): Likewise.
41767 (timeout_mod_CFLAGS): Likewise.
41768
41769 * Makefile.in (all-local): Added $(MKFILES).
41770
4ed2e1dd 417712005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
41772
41773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
41774 (grub_emu_SOURCES): Likewise.
41775 (pkgdata_MODULES): Add `sun.mod'.
41776 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
41777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41778 `partmap/sun.c'.
41779 (pkgdata_MODULES): Add `sun.mod'.
41780 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
41781 * include/grub/partition.h (grub_sun_partition_map_init): New
41782 prototype.
41783 (grub_sun_partition_map_fini): Likewise.
41784 * partmap/sun.c: New file.
41785 * util/grub-emu.c (main): Initialize and de-initialize the sun
41786 partitionmap support.
41787
4d4e372e 417882005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
41789
41790 This implements an Emacs-like menu entry editor.
f19dbdb7 41791
4d4e372e 41792 * normal/menu_entry.c: New file.
f19dbdb7 41793
4d4e372e 41794 * util/console.c (grub_ncurses_putchar): Translate some Unicode
41795 characters to ASCII.
41796 (saved_char): New variable.
41797 (grub_ncurses_checkkey): Rewritten completely.
41798 (grub_ncurses_getkey): Likewise.
41799 (grub_ncurses_init): Call raw instead of cbreak.
41800
41801 * normal/menu.c (print_entry): Do not put a space.
41802 (init_page): Renamed to ...
41803 (grub_menu_init_page): ... this. All callers changed.
41804 (edit_menu_entry): Removed.
41805 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
41806
41807 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
41808
41809 * kern/misc.c (grub_vprintf): Call grub_refresh.
41810
41811 * normal/menu.c (DISP_LEFT): Renamed to ...
41812 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
41813 * normal/menu.c (DISP_UP): Renamed to ...
41814 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
41815 * normal/menu.c (DISP_RIGHT): Renamed to ...
41816 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
41817 * normal/menu.c (DISP_DOWN): Renamed to ...
41818 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
41819 * normal/menu.c (DISP_HLINE): Renamed to ...
41820 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
41821 * normal/menu.c (DISP_VLINE): Renamed to ...
41822 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
41823 * normal/menu.c (DISP_UL): Renamed to ...
41824 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
41825 * normal/menu.c (DISP_UR): Renamed to ...
41826 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
41827 * normal/menu.c (DISP_LL): Renamed to ...
41828 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
41829 * normal/menu.c (DISP_LR): Renamed to ...
41830 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
41831 * normal/menu.c (TERM_WIDTH): Renamed to ...
41832 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
41833 * normal/menu.c (TERM_HEIGHT): Renamed to ...
41834 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
41835 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
41836 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
41837 * normal/menu.c (TERM_MARGIN): Renamed to ...
41838 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
41839 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
41840 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
41841 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
41842 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
41843 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
41844 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
41845 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
41846 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
41847 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
41848 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
41849 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
41850 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
41851 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
41852 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
41853 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
41854 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
41855 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
41856 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
41857 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
41858 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
41859 All callers changed.
41860
41861 * include/grub/normal.h: New prototype.
41862
41863 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41864 normal/menu_entry.c.
41865 (normal_mod_SOURCES): Likewise.
41866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41867 (normal_mod_SOURCES): Likewise.
41868
e6b92c8a 418692005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
41870
41871 * include/grub/normal.h (grub_halt_init): New prototype.
41872 (grub_halt_fini): Likewise.
41873 (grub_reboot_init): Likewise.
41874 (grub_reboot_fini): Likewise.
41875
41876 * util/grub-emu.c: Include signal.h.
41877 (main_env): New global variable.
41878 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
41879 catch C-c.
41880 (grub_machine_fini): New function.
41881 (main): Call grub_halt_init and grub_reboot_init before
41882 grub_main, and grub_reboot_fini and grub_halt_fini after it.
41883 Call setjmp with MAIN_ENV to go back afterwards.
41884 Call grub_machine_fini right before return.
41885
41886 * include/grub/util/misc.h: Include setjmp.h.
41887 (main_env): New prototype.
41888
41889 * include/grub/kernel.h (grub_machine_fini): New prototype.
41890 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
41891 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
41892
41893 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
41894 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
41895 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 41896
e6b92c8a 41897 * util/i386/pc/misc.c: New file.
f19dbdb7 41898
e6b92c8a 41899 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41900 util/i386/pc/misc.c, commands/i386/pc/halt.c and
41901 commands/i386/pc/reboot.c.
41902
c642636f 419032005-02-14 Guillem Jover <guillem@hadrons.org>
41904
41905 * include/grub/dl.h (grub_dl_check_header): New prototype.
41906 (grub_arch_dl_check_header): Change return type to grub_err_t,
41907 remove size parameter and export function. Update all callers.
41908 * kern/dl.c (grub_dl_check_header): New function.
41909 (grub_dl_load_core): Use `grub_dl_check_header' instead of
41910 `grub_arch_dl_check_header'. Check ELF type. Check if sections
41911 are inside the core.
41912 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
41913 independent ELF header checks.
41914 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41915 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
41916 `grub_dl_check_header' instead of explicit checks. Check for the
41917 ELF type.
41918 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
41919 `grub_dl_check_header' instead of explicit checks. Remove arch
41920 specific ELF header checks.
41921
e6b92c8a 41922 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
41923 argument SIZE.
41924
5eabe94b 419252005-02-13 Hollis Blanchard <hollis@penguinppc.org>
41926
41927 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
41928 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
41929
1b14a681 419302005-02-12 Hollis Blanchard <hollis@penguinppc.org>
41931
41932 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 41933 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 41934 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 41935 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 41936 * partmap/amiga.c (amiga_partition_map_iterate): Return
41937 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
41938 * partmap/apple.c (apple_partition_map_iterate): Likewise.
41939
aca108aa 419402005-02-01 Guillem Jover <guillem@hadrons.org>
41941
41942 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
41943 help info.
41944
c9f9c556 419452005-01-31 Marco Gerards <metgerards@student.han.nl>
41946
41947 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
41948 Removed prototype.
41949 (grub_rescue_cmd_linux): New prototype.
41950 (grub_rescue_cmd_initrd): Likewise.
41951 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
41952 `bi_rec'.
41953 (grub_linux_release_mem): Release the memory for the initrd.
41954 (grub_load_linux): Renamed from this...
41955 (grub_rescue_cmd_linux): ...To this. Changed all callers.
41956 Changed `entry' not to be static. Loop over memory regions to
41957 find another one when the default fails.
41958 (grub_rescue_cmd_initrd): New function.
41959 (grub_linux_init): Remove function.
41960 (grub_linux_fini): Likewise.
41961 (GRUB_MOD_INIT): Register `initrd'.
41962 (GRUB_MOD_FINI): Unregister `initrd'.
41963 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
41964 Function removed.
41965 (grub_linux_normal_fini): Likewise.
41966 (GRUB_MOD_INIT): Register `initrd'.
41967 (GRUB_MOD_FINI): Unregister `initrd'.
41968
990cf3aa 419692005-01-31 Marco Gerards <metgerards@student.han.nl>
41970
41971 * commands/help.c: New file.
41972 * normal/arg.c (show_help): Renamed to...
41973 (grub_arg_show_help): ... this.
41974 * commands/i386/pc/halt.c: New file.
41975 * commands/i386/pc/reboot.c: Likewise.
41976 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
41977 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
41978 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
41979 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
41980 variables.
41981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41982 `commands/help.c'.
41983 (pkgdata_MODULES): Add `help.mod'.
41984 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
41985 * grub/i386/pc/init.h (grub_reboot): New prototype.
41986 (grub_halt): Likewise.
41987 * include/grub/normal.h (grub_arg_show_help): New prototype.
41988 (grub_help_init): Likewise.
41989 (grub_help_fini): Likewise.
41990 * util/grub-emu.c (main): Initialize and deinitialize the help
41991 command.
41992
41993 * normal/cmdline.c (grub_cmdline_get): Doc fix.
41994
41995 * normal/command.c (grub_command_init): Fixed the description of
41996 the `set' and `unset' commands.
41997
419982005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 41999
42000 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
42001 function.
42002 * commands/ieee1275/halt.c: New file.
42003 * commands/ieee1275/reboot.c: Likewise.
42004 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
42005 `__attribute__ ((unused))'. Some GCS related fixed.
42006 (grub_suspend_init) [GRUB_UTIL]: Function removed.
42007 (grub_suspend_fini): Likewise.
42008 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
42009 and `halt.mod'.
42010 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
42011 (halt_mod_CFLAGS): New variables.
42012 * include/grub/powerpc/ieee1275/ieee1275.h
42013 (grub_ieee1275_interpret): New prototype.
42014
1ab09cc7 420152005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
42016
42017 * include/grub/misc.h (memmove): New prototype.
42018 (memcpy): Likewise.
42019
8b8cbdb2 420202005-01-22 Hollis Blanchard <hollis@penguinppc.org>
42021
42022 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
42023 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
42024
e3741a27 420252005-01-22 Marco Gerards <metgerards@student.han.nl>
42026
42027 * kern/misc.c (grub_strndup): Function rewritten.
42028
776bd780 420292005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
42030
42031 * normal/menu.c (TERM_WIDTH): Macro redefined.
42032 (TERM_TOP_BORDER_Y): Likewise.
42033 (draw_border): Replaced while-loop by a for-loop. Make the number
42034 of lines consistent with the number of lines displayed in
42035 print_entries. Added a margin below the rectangle.
42036 (print_entry): Make the entry fit in the rectangle.
42037 (print_entries): Display the scroll arrows next to the right
42038 border.
42039
78026bce 420402005-01-21 Marco Gerards <metgerards@student.han.nl>
42041
42042 * fs/minix.c (grub_minix_find_file): Reserve more space for
42043 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
42044 `grub_strncpy' to copy `path' into it.
42045
67bbaf0f 420462005-01-21 Marco Gerards <metgerards@student.han.nl>
42047
42048 Add the loopback device, a device via which files can be accessed
42049 as devices.
f19dbdb7 42050
67bbaf0f 42051 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
42052 (pkgdata_MODULES): Add loopback.mod.
42053 (loopback_mod_SOURCES): New variable.
42054 (loopback_mod_CFLAGS): Likewise.
42055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
42056 `disk/loopback.c'.
42057 (pkgdata_MODULES): Add loopback.mod.
42058 (loopback_mod_SOURCES): New variable.
42059 (loopback_mod_CFLAGS): Likewise.
42060 * disk/loopback.c: new file.
42061 * include/grub/normal.h (grub_loop_init): New prototype.
42062 (grub_loop_fini): New prototype.
42063 * util/grub-emu.c (main): Initialize and de-initialize loopback
42064 support.
42065 * include/grub/disk.h (grub_disk_dev_id): Add
42066 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
42067
6f1c18bd 420682005-01-20 Hollis Blanchard <hollis@penguinppc.org>
42069
42070 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
42071 function.
42072 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
42073 (suspend_mod_SOURCES): New variable.
42074 (suspend_mod_CFLAGS): Likewise.
42075 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
42076 New prototype.
42077 * commands/ieee1275/suspend.c: New file.
42078
b38551da 420792005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42080
42081 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 42082 ((unused))' to `__attribute__ ((used))'.
b38551da 42083 (GRUB_MOD_FINI): Likewise.
42084 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
42085 * genmk.rb (PModule): Assign space to common symbols when linking
42086 modules.
42087
777aff39 420882005-01-20 Marco Gerards <metgerards@student.han.nl>
42089
42090 * include/grub/mm.h (grub_mm_init_region): Change the type of the
42091 `unsigned' arguments to `grub_size_t'.
42092 (grub_malloc): Likewise.
42093 (grub_realloc): Likewise.
42094 (grub_memalign): Likewise.
42095 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
42096 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
42097 * util/misc.c (grub_malloc): Likewise.
42098 (grub_realloc): Likewise.
42099 * kern/mm.c (get_header_from_pointer): Change the casts to
42100 `unsigned' into a cast to `grub_size_t'.
42101
42102 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
42103 point to `currnode' when `currnode' is changed.
42104
42105 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
42106 Schottelius <nico-linux@schottelius.org>.
42107
d0ff18e1 421082005-01-09 Hollis Blanchard <hollis@penguinppc.org>
42109
42110 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
42111 (note_path): Remove variable.
42112 (GRUB_IEEE1275_NOTE_NAME): New macro.
42113 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
42114 (grub_ieee1275_note_hdr): New structure.
42115 (grub_ieee1275_note_desc): Likewise.
42116 (grub_ieee1275_note): Likewise.
42117 (load_note): Remove `dir' argument. All callers updated. Remove
42118 `note_img' and `path'. Do not load a file from `note_path'.
42119 Initialize a struct grub_ieee1275_note and write that to `out'.
42120 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
42121
4ca7004c 421222005-01-05 Marco Gerards <metgerards@student.han.nl>
42123
42124 * util/misc.c (grub_util_read_image): Revert last change. It
42125 called `grub_util_read_at', which seeks from the beginning of the
42126 file.
42127
0b412211 421282005-01-04 Hollis Blanchard <hollis@penguinppc.org>
42129
42130 * TODO: Add note about endianness in grub-mkimage.
42131 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
42132 section.
42133 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
42134 (grub_mkimage_SOURCES): New target.
42135 * include/grub/kernel.h (grub_start_addr): Remove variable.
42136 (grub_end_addr): Likewise.
42137 (grub_total_module_size): Likewise.
42138 (grub_kernel_image_size): Likewise.
42139 (GRUB_MODULE_MAGIC): New constant.
42140 (grub_module_info): New structure.
42141 (grub_arch_modules_addr): New prototype.
42142 (grub_get_end_addr): Remove prototype.
42143 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
42144 * include/grub/powerpc/ieee1275/kernel.h: New file.
42145 * include/grub/util/misc.h (grub_util_get_fp_size): New
42146 prototype.
42147 (grub_util_read_at): Likewise.
42148 (grub_util_write_image_at): Likewise.
42149 * kern/main.c (grub_get_end_addr): Remove function.
42150 (grub_load_modules): Call grub_arch_modules_addr instead of using
42151 grub_end_addr. Look for a grub_module_info struct in memory. Use
42152 the grub_module_info fields instead of calling grub_get_end_addr
42153 as loop conditions. Move grub_add_unused_region code here.
42154 (grub_add_unused_region): Remove function.
42155 * kern/i386/pc/init.c: Include grub/cache.h.
42156 (grub_machine_init): Remove call to grub_get_end_addr. Remove
42157 one call to add_mem_region.
42158 (grub_arch_modules_addr): New function.
42159 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
42160 (grub_total_module_size): Likewise.
42161 Include grub/machine/kernel.h.
42162 (grub_arch_modules_addr): New function.
42163 * util/grub-emu.c (grub_end_addr): Remove variable.
42164 (grub_total_module_size): Likewise.
42165 (grub_arch_modules_addr): New function.
42166 * util/misc.c: Include unistd.h.
42167 (grub_util_get_fp_size): New function.
42168 (grub_util_read_at): Likewise.
42169 (grub_util_write_image_at): Likewise.
42170 (grub_util_read_image): Call grub_util_read_at.
42171 (grub_util_write_image): Call grub_util_write_image_at.
42172 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
42173 additional memory in kernel_img for a struct grub_module_info.
42174 Fill in that grub_module_info.
42175 * util/powerpc/ieee1275/grub-mkimage.c: New file.
42176
458786f8 421772005-01-03 Hollis Blanchard <hollis@penguinppc.org>
42178
42179 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
42180 New function.
42181 * include/grub/powerpc/ieee1275/ieee1275.h
42182 (grub_ieee1275_milliseconds): New prototype.
42183 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
42184 Change to 1000.
42185 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
42186 grub_ieee1275_milliseconds.
42187
ac507d1b 421882005-01-03 Hollis Blanchard <hollis@penguinppc.org>
42189
42190 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
42191 variable.
42192 (find_options): New function.
42193 (cmain): Call find_options.
42194 * include/grub/powerpc/ieee1275/ieee1275.h
42195 (grub_ieee1275_realmode): New extern variable.
42196 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
42197 grub_map if grub_ieee1275_realmode is false.
42198
6b8fd1c4 421992004-12-29 Marco Gerards <metgerards@student.han.nl>
42200
42201 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
42202 lines are inserted and make it work like readline. Reported by
42203 Vincent Pelletier <subdino2004@yahoo.fr>.
42204
8514a1e0 422052004-12-28 Marco Gerards <metgerards@student.han.nl>
42206
42207 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
42208
42209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
42210 `kern/powerpc/cache.S'.
42211
924b6140 422122004-12-27 Marco Gerards <metgerards@student.han.nl>
42213
42214 * genmk.rb: Handle the `Program' class in the main loop. Written
42215 by Johan Rydberg <jrydberg@gnu.org>.
42216 (Program): New class.
42217 (programs): New variable.
42218 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
42219 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
42220 instead of "grub/kernel.h". Include <grub/machine/init.h>.
42221 (help_arch): Function removed.
42222 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
42223 `powerpc/libgcc.h' and `loader.h'.
42224 (pkgdata_PROGRAMS): New variable.
42225 (sbin_UTILITIES): Variable removed.
42226 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
42227 (grubof_SOURCES): Variable re-defined so it only includes the
42228 core functionality.
42229 (grubof_CFLAGS): Remove `-DGRUBOF'.
42230 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
42231 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
42232 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
42233 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
42234 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
42235 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
42236 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
42237 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
42238 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
42239 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
42240 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42241 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
42242 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
42243 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
42244 (pc_mod_CFLAGS): New variables.
42245 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
42246 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
42247 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
42248 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
42249 Moved from here...
42250 * include/grub/i386/pc/init.h (grub_os_area_addr)
42251 (rub_os_area_size): ... to here.
42252 * include/grub/powerpc/ieee1275/ieee1275.h
42253 (grub_ieee1275_entry_fn): Export symbol.
42254 * include/grub/powerpc/ieee1275/init.h: New file.
42255 * include/grub/powerpc/libgcc.h: Likewise.
42256 * include/grub/cache.h: Likewise.
42257 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
42258 <hollis@penguinppc.org>.
42259 * kern/dl.c: Include <grub/cache.h>.
42260 (grub_dl_flush_cache): New function.
42261 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
42262 for this module.
42263 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
42264 (grub_console_init): Removed prototypes.
42265 (grub_machine_init): Don't initialize the modules anymore.
42266 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
42267 static.
42268 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
42269 Macro undef removed.
42270 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
42271 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
42272 relocation `R_PPC_REL32'. Return an error when the relocation is
42273 unknown.
42274 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
42275 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
42276 * util/misc.c (grub_arch_sync_caches): Likewise.
42277
e4b47e0c 422782004-12-19 Marco Gerards <metgerards@student.han.nl>
42279
42280 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
42281 `symlist.c', add `grubof_symlist.c'.
42282 (symlist.c): Variable removed.
42283 (grubof_HEADERS): Variable added.
42284 (grubof_symlist.c): New target.
42285 (kernel_syms.lst): Use `grubof_HEADERS' instead of
42286 `kernel_img_HEADERS'.
42287 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
42288 * kern/powerpc/dl.c: New file.
42289 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
42290 Function removed.
42291 (grub_arch_dl_relocate_symbols): Likewise.
42292 (grub_register_exported_symbols): Likewise.
42293
4ceb3636 422942004-12-13 Marco Gerards <metgerards@student.han.nl>
42295
42296 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
42297 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
42298 to fail instead. Reported by Vincent Pelletier
42299 <subdino2004@yahoo.fr>.
42300
42301 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
42302 it is not allocated. Reported by Vincent Pelletier
42303 <subdino2004@yahoo.fr>.
42304
42305 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
42306 output so the output looks better.
f19dbdb7 42307
3f1578fe 423082004-12-04 Marco Gerards <metgerards@student.han.nl>
42309
42310 Modulize the partition map support and add support for the amiga
42311 partition map.
f19dbdb7 42312
3f1578fe 42313 * commands/ls.c: Include <grub/partition.h> instead of
42314 <grub/machine/partition.h>.
42315 * kern/disk.c: Likewise.
42316 * kern/rescue.c: Likewise.
42317 * loader/i386/pc/chainloader.c: Likewise.
42318 * normal/cmdline.c: Likewise.
42319 * kern/powerpc/ieee1275/init.c: Likewise.
42320 (grub_machine_init): Call `grub_pc_partition_map_init',
42321 `grub_amiga_partition_map_init' and
42322 `grub_apple_partition_map_init'.
42323 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
42324 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
42325 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
42326 `partition.h' and `pc_partition.h'.
42327 (grub_setup_SOURCES): Remove
42328 `disk/i386/pc/partition.c'. Add `kern/partition.c',
42329 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
42330 (grub_emu_SOURCES): Likewise.
42331 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
42332 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
42333 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
42334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
42335 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
42336 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
42337 (grubof_SOURCES): Likewise.
42338 * disk/i386/pc/partition.c: File removed.
42339 * disk/powerpc/ieee1275/partition.c: Likewise.
42340 * include/grub/powerpc/ieee1275/partition.h: Likewise.
42341 * include/grub/i386/pc/partition.h: Likewise.
42342 * kern/partition.c: New file.
42343 * partmap/amiga.c: Likewise.
42344 * partmap/apple.c: Likewise.
42345 * partmap/pc.c: Likewise.
42346 * include/grub/partition.h: Likewise..
42347 * include/grub/pc_partition.h: Likewise.
42348 * util/grub-emu.c: Include <grub/partition.h> instead of
42349 <grub/machine/partition.h>.
42350 (main): Call `grub_pc_partition_map_init',
42351 `grub_amiga_partition_map_init' and
42352 `grub_apple_partition_map_init' and deinitialize afterwards.
42353 * util/i386/pc/biosdisk.c: Include `#include
42354 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
42355 `<grub/machine/partition.h>'.
42356 * util/i386/pc/grub-setup.c: Likewise.
42357 * util/i386/pc/biosdisk.c: Likewise.
42358 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
42359 partition information in case of a PC partition.
42360 * util/i386/pc/grub-setup.c: Include `#include
42361 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
42362 `<grub/machine/partition.h>'.
42363 (setup): Only access the PC specific partition information in case
42364 of a PC partition.
42365
0ef4ced9 423662004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 42367
0ef4ced9 42368 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
42369 (grub_longjmp): Likewise.
42370 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
42371 20.
42372 * normal/powerpc/setjmp.S: New file.
42373 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
42374 `normal/powerpc/setjmp.S'.
42375 (grubof_CFLAGS): Add `-DGRUBOF'.
42376 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
42377 [GRUB_UTIL && !GRUBOF].
f19dbdb7 42378
19950e29 423792004-11-16 Marco Gerards <metgerards@student.han.nl>
42380
42381 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
42382 property named `name'. Correctly handle the error returned by
42383 `grub_ieee1275_finddevice' if a device can not be opened.
42384
a2fea427 423852004-11-02 Hollis Blanchard <hollis@penguinppc.org>
42386
42387 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
42388 `actual' for negativity.
42389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
42390 kern/fshelp.c.
42391
41ea0ea3 423922004-11-01 Marco Gerards <metgerards@student.han.nl>
42393
42394 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
42395 (PAGE_OFFSET): New macro.
42396 (CRTC_ADDR_PORT): Likewise.
42397 (CRTC_DATA_PORT): Likewise.
42398 (START_ADDR_HIGH_REGISTER): Likewise.
42399 (START_ADDR_LOW_REGISTER): Likewise.
42400 (GRAPHICS_ADDR_PORT): Likewise.
42401 (GRAPHICS_DATA_PORT): Likewise.
42402 (READ_MAP_REGISTER): Likewise.
42403 (INPUT_STATUS1_REGISTER): Likewise.
42404 (INPUT_STATUS1_VERTR_BIT): Likewise.
42405 (page): New variable.
42406 (wait_vretrace): New function.
42407 (set_read_map): Likewise.
42408 (set_start_address): Likewise.
42409 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
42410 the right page.
42411 (check_vga_mem): Take the page into account.
42412 (write_char): Likewise.
42413 (write_cursor): Likewise.
42414 (scroll_up): Likewise. Copy the page to the page that is not
42415 shown and switch between both pages.
42416 (grub_vga_putchar): Fix off by one error.
42417 (grub_vga_cls): Wait for the vertical retrace. Take the page into
42418 account.
42419
ad0bd20b 424202004-11-01 Marco Gerards <metgerards@student.han.nl>
42421
42422 Add support for iso9660 (including rockridge).
f19dbdb7 42423
ad0bd20b 42424 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
42425 (iso9660_mod_SOURCES): New variable.
42426 (iso9660_mod_CFLAGS): Likewise.
42427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
42428 * include/grub/fs.h (grub_iso9660_init): New prototype.
42429 * util/grub-emu.c (main): Call `grub_iso9660_init'.
42430 * fs/iso9660.c: New file.
42431
42432 * include/grub/misc.h (grub_strncat): New prototype.
42433 * kern/misc.c (grub_strncat): New function.
f19dbdb7 42434
ad0bd20b 42435 * fs/hfs.c (grub_hfs_mount): Translate the error
42436 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
42437 * fs/jfs.c (grub_jfs_mount): Likewise.
42438 * fs/ufs.c (grub_ufs_mount): Likewise.
42439
a5477a59 424402004-10-28 Hollis Blanchard <hollis@penguinppc.org>
42441
42442 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
42443 which initialized BAT registers.
42444 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
42445 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
42446 Move from here...
42447 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
42448 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
42449 ... to here.
42450 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
42451 (grub_mapclaim): Likewise.
42452 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
42453 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
42454 hand.
42455
9304c1f8 424562004-10-19 Hollis Blanchard <hollis@penguinppc.org>
42457
42458 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
42459 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
42460 -ffreestanding and -msoft-float.
42461
86f4ae25 424622004-10-15 Hollis Blanchard <hollis@penguinppc.org>
42463
42464 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
42465 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
42466 set in grub_ieee1275_flags.
42467
38912228 424682004-10-14 Hollis Blanchard <hollis@penguinppc.org>
42469
42470 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
42471 prototype.
42472 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
42473 grub_console_init first.
42474 Change the memory range used for grub_ieee1275_claim and
42475 grub_mm_init_region.
42476 Print an error message if the claim fails.
42477 Include <grub/misc.h>.
42478
d1923dc8 424792004-10-13 Hollis Blanchard <hollis@penguinppc.org>
42480
42481 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
42482 Call grub_children_iterate for device nodes of type `scsi',
42483 `ide', or `ata'.
42484 (grub_ofdisk_open): Remove manual device alias resolution.
42485 Fix memory leak when device cannot be opened.
f19dbdb7 42486 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 42487 (grub_children_iterate): New prototype.
42488 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
42489 New function.
42490 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
42491 Return -1 if args.size was -1.
42492
4512e4f3 424932004-10-11 Hollis Blanchard <hollis@penguinppc.org>
42494
42495 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
42496 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
42497 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
42498 Open Firmware's memory for it; claim memory from _start to _end.
42499 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
42500 (_end): New extern.
42501 (_start): Zero BSS from __bss_start to _end.
42502 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
42503 New extern.
42504 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
42505
4d61feb0 425062004-10-11 Hollis Blanchard <hollis@penguinppc.org>
42507
ad0bd20b 42508 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
42509 -1 if args.base was -1.
4d61feb0 42510
026fa2f9 425112004-10-08 Hollis Blanchard <hollis@penguinppc.org>
42512
42513 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
42514 escape sequence instead of a literal ^L. Also call
42515 grub_ofconsole_gotoxy.
42516
9f2220ef 425172004-10-03 Hollis Blanchard <hollis@penguinppc.org>
42518
42519 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
42520 void * arguments to grub_addr_t. All callers updated. Also make
42521 the `result' argument optional.
42522 (grub_ieee1275_release): change void * arguments to grub_addr_t.
42523 All callers updated.
42524
8a572cd7 425252004-09-22 Hollis Blanchard <hollis@penguinppc.org>
42526
42527 * commands/ls.c (grub_ls_list_files): Use the string following the
42528 initial ')', if present, as the filesystem path.
42529 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
42530
42531 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
42532
18aa81f2 425332004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
42534
42535 Make the source code of the menu interface more readable.
f19dbdb7 42536
18aa81f2 42537 * normal/menu.c: Include grub/mm.h.
42538 (TERM_WIDTH): New macro.
42539 (TERM_HEIGHT): Likewise.
42540 (TERM_INFO_HEIGHT): Likewise.
42541 (TERM_MARGIN): Likewise.
42542 (TERM_SCROLL_WIDTH): Likewise.
42543 (TERM_TOP_BORDER_Y): Likewise.
42544 (TERM_LEFT_BORDER_X): Likewise.
42545 (TERM_BORDER_WIDTH): Likewise.
42546 (TERM_MESSAGE_HEIGHT): Likewise.
42547 (TERM_BORDER_HEIGHT): Likewise.
42548 (TERM_NUM_ENTRIES): Likewise.
42549 (TERM_FIRST_ENTRY_Y): Likewise.
42550 (TERM_ENTRY_WIDTH): Likewise.
42551 (TERM_CURSOR_X): Likewise.
42552 (draw_border): Use macros instead of magic numbers.
42553 (print_entry): Likewise.
42554 (print_entries): Likewise.
42555 (run_menu): Likewise. Also, handle the key 'e'.
42556 (run_menu_entry): Ignore empty command lines.
42557 (print_message): Added a new argument EDIT. If EDIT is true,
42558 print a different message.
42559 (init_page): Likewise.
42560 (edit_menu_entry): New function. Not implemented yet.
42561
b47efe30 425622004-09-17 Marco Gerards <metgerards@student.han.nl>
42563
42564 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
42565 can be loaded from normal mode.
f19dbdb7 42566
b47efe30 42567 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
42568 `multiboot.mod'.
42569 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
42570 (multiboot_mod_CFLAGS): New variables.
42571 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 42572 * loader/i386/pc/multiboot_normal.c: Likewise.
42573
b47efe30 42574 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
42575 attribute `unused'.
f19dbdb7 42576
b47efe30 42577 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
42578 `fdiro' to read the mode information from instead of `diro'.
42579
42580 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
42581 looking up a symlink.
42582
42583 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
42584 macro.
42585 * normal/command.c (grub_command_execute): Don't parse the
42586 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
42587 flags of the command.
42588
42589 * normal/menu.c (grub_menu_run): Fix typo.
42590
da75ac71 425912004-09-14 Hollis Blanchard <hollis@penguinppc.org>
42592
42593 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
42594
42595 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
42596 `y + 1' instead of `y - 1'.
42597
42598 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 42599
062b24c2 426002004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
42601
42602 From Hollis Blanchard <hollis@penguinppc.org>:
42603 * kern/misc.c (memmove): New alias for grub_memmove.
42604 (memcmp): New alias for grub_memcmp.
42605 (memset): New alias for grub_memset.
f19dbdb7 42606 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 42607 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 42608 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 42609 (grub_ieee1275_get_property): Likewise.
f19dbdb7 42610
8ddad845 426112004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
42612
42613 Added normal mode command `chainloader' as module chain.mod, which
42614 depends on normal.mod and _chain.mod.
f19dbdb7 42615
8ddad845 42616 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
42617 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
42618 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
42619 Deleted prototype.
42620 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
42621 but arguments parsing moved to ...
42622 (grub_chainloader_cmd): ... here. New function.
42623 * include/grub/i386/pc/chainloader.h: New file.
42624 * loader/i386/pc/chainloader_normal.c: Likewise.
42625
2c1f4ce3 426262004-09-11 Marco Gerards <metgerards@student.han.nl>
42627
42628 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
42629 (grub_mkimage_LDFLAGS): Likewise.
42630 (grub_emu_SOURCES): Likewise.
42631 (kernel_img_HEADERS): Added fshelp.h.
42632 * fs/ext2.c: Include <grub/fshelp.h>.
42633 (FILETYPE_REG): New macro.
42634 (FILETYPE_INO_REG): Likewise.
42635 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
42636 Changed all users.
42637 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
42638 all users.
42639 (grub_fshelp_node): New struct.
42640 (grub_ext2_data): Added member `diropen'. Changed member `inode'
42641 to a pointer.
42642 (grub_ext2_get_file_block): Removed function.
42643 (grub_ext2_read_block): New function.
42644 (grub_ext2_read_file): Replaced parameter `data' by `node'.
42645 This function was written.
42646 (grub_ext2_mount): Read the root inode. Create a diropen struct.
42647 (grub_ext2_find_file): Removed function.
42648 (grub_ext2_read_symlink): New function.
42649 (grub_ext2_iterate_dir): Likewise.
42650 (grub_ext2_open): Rewritten.
42651 (grub_ext2_dir): Rewritten.
42652 * include/grub/fshelp.h: New file.
42653 * fs/fshelp.c: Likewise.
42654
3c52136a 426552004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
42656
42657 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
42658 (print_message): Add a missing newline.
42659 (run_menu): Added timeout support.
42660 (run_menu_entry): New local function.
42661 (grub_menu_run): Added support for booting.
42662
42663 * kern/loader.c (grub_loader_is_loaded): New function.
42664
42665 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
42666 (grub_get_rtc): Exported.
42667
42668 * include/grub/i386/pc/time.h: Include grub/symbol.h.
42669 (grub_get_rtc): Exported.
42670
42671 * include/grub/normal.h (struct grub_command_list): Remove
42672 constant from the member `command'.
42673
42674 * include/grub/loader.h (grub_loader_is_loaded): Declared.
42675
42676 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
42677
42678 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
42679
aa033560 426802004-08-28 Marco Gerards <metgerards@student.han.nl>
42681
42682 Add support for the JFS filesystem.
42683
42684 * fs/jfs.c: New file.
42685 * include/grub/fs.h (grub_jfs_init): New prototype.
42686 (grub_jfs_fini): New prototype.
42687 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
42688 (grub_emu_SOURCES): Likewise.
42689 (pkgdata_MODULES): Add jfs.mod.
42690 (jfs_mod_SOURCES): New variable.
42691 (jfs_mod_CFLAGS): Likewise.
42692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
42693 (grubof_SOURCES): Likewise.
42694 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
42695
42696 * fs/fat.c (grub_fat_find_dir): Convert the filename little
42697 endian to the host endian.
42698 (grub_fat_utf16_to_utf8): Move function from there...
42699 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 42700 the endianness of the source string anymore.
aa033560 42701 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
42702
94bc45af 427032004-08-24 Marco Gerards <metgerards@student.han.nl>
42704
42705 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
42706 (grub_boot_fini) [GRUB_UTIL]: Likewise.
42707 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
42708 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 42709
94bc45af 42710 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
42711 (grub_hfs_iterate_dir): Make the function static. Add prototypes
42712 for `node_found' and `it_dir'.
42713 (grub_hfs_dir): Add prototype for `dir_hook'.
42714
42715 * fs/minix.c (grub_minix_get_file_block): Add prototype for
42716 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
42717 and `indir32' to silence a gcc warning.
42718
42719 * include/grub/fs.h (grub_hfs_init): New prototype.
42720 (grub_hfs_fini): Likewise.
f19dbdb7 42721
42722
97543f08 427232004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
42724
42725 Each disk device has its own id now. This is useful to make use
42726 of multiple disk devices.
f19dbdb7 42727
97543f08 42728 * include/grub/disk.h (grub_disk_dev_id): New enum.
42729 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
42730 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
42731
42732 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
42733 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
42734
42735 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
42736 GRUB_DISK_DEVICE_OFDISK_ID as an id.
42737
42738 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
42739 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
42740
42741 * include/grub/disk.h (struct grub_disk_dev): Added a new member
42742 "id" which is used by the cache manager.
42743
42744 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
42745 of just "GRUB".
42746
64372eb4 427472004-08-18 Marco Gerards <metgerards@student.han.nl>
42748
42749 * fs/hfs.c: New file.
42750 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
42751 (grub_emu_SOURCES): Likewise.
42752 (pkgdata_MODULES): Add hfs.mod.
42753 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
42754 (grubof_SOURCES): Likewise.
42755 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
42756
42757 * include/grub/misc.h (grub_strncasecmp): Add prototype.
42758 * kern/misc.c (grub_strncasecmp): Add function.
42759
cc61b58f 427602004-08-14 Marco Gerards <metgerards@student.han.nl>
42761
42762 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
42763 with parentheses.
42764
42765 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
42766 (grub_ext2_dir): In case the directory entry type is unknown, read
42767 it from the inode.
42768
0ef123f6 427692004-08-02 Peter Bruin <pjbruin@dds.nl>
42770
42771 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
42772 grub_load_linux instead of grub_rescue_cmd_linux as second
42773 argument of grub_rescue_register_command.
42774
42775 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
42776
a447c5df 427772004-07-27 Marco Gerards <metgerards@student.han.nl>
42778
42779 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
42780 function.
42781 * commands/boot.c: Remove the check for `GRUB_UTIL'.
42782 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
42783 `loader/powerpc/ieee1275/linux.c',
42784 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
42785 * include/grub/powerpc/ieee1275/ieee1275.h
42786 (grub_ieee1275_release): New prototype.
42787 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
42788 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
42789 normal, boot, linux and linux_normal.
42790 * loader/powerpc/ieee1275/linux.c: New file.
42791 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42792
5a9e3546 427932004-07-12 Marco Gerards <metgerards@student.han.nl>
42794
42795 * normal/arg.c (grub_arg_parse): Correct error handling after
42796 reallocating the argumentlist (check if `argl' is not null instead
42797 of checking if `args' is not null).
42798 * kern/mm.c (grub_realloc): Return the same pointer when using the
42799 same region, instead of returning the header address.
42800
e15199cb 428012004-07-11 Marco Gerards <metgerards@student.han.nl>
42802
42803 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
42804 one block instead of two when looking for the initial partition.
42805 (grub_partition_probe): Initialize the local variable `p' with 0.
42806 Use base 10 for the grub_strtoul call.
42807 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
42808 need for one local variable.
42809 (grub_strtoul): Don't add the new value to `num', instead of that
42810 just assign it.
42811
020616c2 428122004-07-11 Marco Gerards <metgerards@student.han.nl>
42813
42814 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
42815 (pxeboot_img_SOURCES): New variable.
42816 (pxeboot_img_ASFLAGS): Likewise.
42817 (pxeboot_img_LDFLAGS): Likewise.
42818 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
42819 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
42820 <lode_leroy@hotmail.com>.
42821
6c51eb64 428222004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42823
42824 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
42825 there was no input.
42826
cfb12aff 428272004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42828
42829 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
42830 the history buffer logic.
42831
6eabba74 428322004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
42833
42834 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
42835 (FILETYPE_INO_SYMLINK): New macros.
42836 (grub_ext2_find_file): Check if the node is a directory using the
42837 inode stat information instead of using the filetype in the
42838 dirent. Exclude the first character of an absolute symlink.
42839 (grub_ext2_dir): Mask out the filetype part of the mode member of
42840 the inode.
42841
66e19ef8 428422004-05-24 Marco Gerards <metgerards@student.han.nl>
42843
42844 Add support for UFS version 1 and 2. Add support for the minix
42845 filesystem version 1 and 2, both the variants with 14 and 30 long
42846 filenames.
f19dbdb7 42847
66e19ef8 42848 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
42849 fs/minix.c.
42850 (grub_emu_SOURCES): Likewise.
42851 (pkgdata_MODULES): Add ufs.mod and minix.mod.
42852 (ufs_mod_SOURCES): New variable.
42853 (ufs_mod_CFLAGS): Likewise.
42854 (minix_mod_SOURCES): Likewise.
42855 (minix_mod_CFLAGS): Likewise.
42856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
42857 fs/minix.c.
42858 (grubof_SOURCES): Likewise.
42859 * fs/ufs.c: New file.
42860 * fs/minix.c: New file.
42861 * include/grub/fs.h (grub_ufs_init): New prototype.
42862 (grub_ufs_fini): Likewise.
42863 (grub_minix_init): Likewise.
42864 (grub_minix_fini): Likewise.
42865 * util/grub-emu.c (main): Initialize and deinitialize UFS and
42866 minix fs.
42867
cc2e748a 428682004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
42869
42870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
42871 commands/ls.c, commands/terminal.c, commands/boot.c,
42872 commands/cmp.c and commands/cat.c.
42873 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
42874
42875 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
42876 "env.h"
42877
4b13b216 428782004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
42879
42880 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
42881 and grub_, respectively. Because the conversion is trivial and
42882 mechanical, I omit the details here. Please refer to the CVS
42883 if you need more information.
42884
6a142551 428852004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
42886
42887 * include/pupa: Renamed to ...
42888 * include/grub: ... this.
42889 * util/i386/pc/pupa-mkimage.c: Renamed to ...
42890 * util/i386/pc/grub-mkimage.c: ... this.
42891 * util/i386/pc/pupa-setup.c: Renamed to ...
42892 * util/i386/pc/grub-setup.c: ... this.
42893 * util/pupa-emu.c: Renamed to ...
42894 * util/grub-emu.c: ... this.
42895
e56cdf21 428962004-03-29 Marco Gerards <metgerards@student.han.nl>
42897
42898 Add support for the newworld apple macintosh (PPC). This has been
42899 tested on the powerbook 2000 only. It only adds support for
42900 generic ieee1275 functions, console and disk support. This should
42901 be easy to port to other architectures with support for Open
42902 Firmware.
f19dbdb7 42903
e56cdf21 42904 * configure.ac: Accept the powerpc as host_cpu. In the case of
42905 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
42906 specific tests are only executed while building for the i386.
42907 Inverse test for crosscompile.
42908 * genmk.rb (Utility): Allow assembler files.
42909 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
42910 * conf/powerpc-ieee1275.rmk: New file.
42911 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
42912 * disk/powerpc/ieee1275/partition.c: Likewise.
42913 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
42914 * include/pupa/powerpc/ieee1275/console.h: Likewise.
42915 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
42916 * include/pupa/powerpc/ieee1275/time.h: Likewise.
42917 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
42918 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
42919 * include/pupa/powerpc/ieee1275/loader.h
42920 * include/pupa/powerpc/setjmp.h: Likewise.
42921 * include/pupa/powerpc/types.h: Likewise.
42922 * kern/powerpc/ieee1275/init.c: Likewise.
42923 * kern/powerpc/ieee1275/openfw.c: Likewise.
42924 * term/powerpc/ieee1275/ofconsole.c: Likewise.
42925
42926 These files were written by Johan Rydberg
42927 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 42928
e56cdf21 42929 * boot/powerpc/ieee1275/cmain.c: New file.
42930 * boot/powerpc/ieee1275/crt0.S: Likewise.
42931 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
42932 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
42933
8c8cc205 429342004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
42935
42936 * Makefile.in: Update copyright.
42937 * genmodsrc.sh: Likewise.
42938 * gensymlist.sh: Likewise.
42939 * term/i386/pc/vga.c: Indent correctly.
42940
42941 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
42942 bugreporting address.
42943 * util/i386/pc/pupa-setup.c (usage): Likewise,
42944 (main): Call pupa_ext2_init and pupa_ext2_fini.
42945
f19dbdb7 42946 * fs/fat.c (log2): Renamed to ...
8c8cc205 42947 (fat_log2): ... this.
42948 All callers changed.
42949 * kern/misc.c (memcpy): Alias to pupa_memmove.
42950 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
42951 lvalue cast.
42952 * util/console.c (pupa_ncurses_fini): Return 0.
42953
42954 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
42955 Move fail label here.
42956 [__GNU__]: Don't warn when using stat.
42957 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
42958 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
42959 long int. Use strtol instead of strtoul.
f19dbdb7 42960
db1771cf 429612004-03-14 Marco Gerards <metgerards@student.han.nl>
42962
42963 * commands/boot.c: New file.
42964 * commands/cat.c: Likewise.
42965 * commands/cmp.c: Likewise.
42966 * commands/ls.c: Likewise.
42967 * commands/terminal.c: Likewise.
42968 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
42969 (pupa_register_command): Changed interface to match the new
42970 argument parser.
42971 (pupa_command_execute): Changed (almost rewritten) so it uses
42972 pupa_split_command. Added support for setting variables using the
42973 syntax `foo=bar'.
42974 (rescue_command): Changed to work with the new argument parser.
42975 (terminal_command): Moved from here to commands/terminal.c.
42976 (set_command): New function.
42977 (unset_command): New function.
42978 (insmod_command): New function.
42979 (rmmod_command): New function.
42980 (lsmod_command): New function.
42981 (pupa_command_init): Don't initialize the command terminal
42982 anymore. Initialize the commands set, unset, insmod, rmmod and
42983 lsmod.
42984 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
42985 (kernel_img_HEADERS): Add arg.h and env.h.
42986 (pupa_mkimage_LDFLAGS): Add kern/env.c.
42987 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
42988 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
42989 normal/arg.c.
42990 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
42991 terminal.mod.
42992 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
42993 (boot_mod_SOURCES): New variable.
42994 (terminal_mod_SOURCES): Likewise.
42995 (ls_mod_SOURCES): Likewise.
42996 (cmp_mod_SOURCES): Likewise.
42997 (cat_mod_SOURCES): Likewise.
42998
42999 * normal/arg.c: New file.
43000 * kern/env.c: Likewise.
43001 * include/pupa/arg.h: Likewise.
43002 * include/pupa/env.h: Likewise.
43003 * font/manager.c (font_command): Changed to match argument parsing
43004 interface changes.
43005 (PUPA_MOD_INIT): Likewise.
43006 * hello/hello.c (pupa_cmd_hello): Likewise.
43007 (PUPA_MOD_INIT): Likewise.
43008 * include/pupa/disk.h: Include <pupa/device.h>.
43009 (pupa_print_partinfo): New prototype.
43010 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
43011 (pupa_dl_get_prefix): Likewise.
43012 * include/pupa/misc.h: Include <pupa/err.h>.
43013 (pupa_isgraph): New prototype.
43014 (pupa_isdigit): Likewise.
43015 (pupa_split_cmdline): Likewise.
43016 * include/pupa/normal.h: Include <pupa/arg.h>.
43017 (pupa_command): Changed the prototype of the member `func' to
43018 match the argument parsing interface. Added member `options'.
43019 (pupa_register_command): Updated to match function.
43020 (pupa_arg_parse): New prototype.
43021 (pupa_hello_init) [PUPA_UTIL]: New prototype.
43022 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
43023 (pupa_ls_init) [PUPA_UTIL]: Likewise.
43024 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
43025 (pupa_cat_init) [PUPA_UTIL]: Likewise.
43026 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
43027 (pupa_boot_init) [PUPA_UTIL]: Likewise.
43028 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
43029 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
43030 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
43031 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
43032 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
43033 * kern/disk.c: Include <pupa/file.h>.
43034 (pupa_print_partinfo): New function.
43035 * kern/dl.c: Include <pupa/env.h>.
43036 (pupa_dl_dir): Variable removed.
43037 (pupa_dl_load): Use the environment variable `prefix' instead of
43038 the variable pupa_dl_dir.
43039 (pupa_dl_set_prefix): Function removed.
43040 (pupa_dl_get_prefix): Likewise.
43041 * kern/i386/pc/init.c: Include <pupa/env.h>.
43042 (pupa_machine_init): Use the environment variable `prefix' instead of
43043 using pupa_dl_set_prefix to set the prefix.
43044 * kern/main.c: Include <pupa/env.h>.
43045 (pupa_set_root_dev): Use the environment variable `prefix' instead of
43046 using pupa_dl_get_prefix to get the prefix.
43047 * kern/misc.c: Include <pupa/env.h>.
43048 (pupa_isdigit): New function.
43049 (pupa_isgraph): Likewise.
43050 (pupa_ftoa): Likewise.
43051 (pupa_vsprintf): Added support for printing values of the type
43052 `double'. Make it possible to format variable output when using
43053 formatting like `%1.2%f'.
43054 (pupa_split_cmdline): New function.
43055 * kern/rescue.c: Include <pupa/env.h>.
43056 (next_word): Removed function.
43057 (pupa_rescue_cmd_prefix): Likewise.
43058 (pupa_rescue_cmd_set): New function.
43059 (pupa_rescue_cmd_unset): New function.
43060 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
43061 split the command line instead of splitting it here. Added
43062 support for setting variables using the syntax `foo=bar'. Don't
43063 initialize the prefix command anymore. Initialized the set and
43064 unset commands.
43065 * normal/cmdline.c: Include <pupa/env.h>.
43066 (pupa_tab_complete): Added prototypes for print_simple_completion,
43067 print_partition_completion, add_completion, iterate_commands,
43068 iterate_dev, iterate_part and iterate_dir. Moved code to print
43069 partition information from here to kern/disk.c.
fe6b695a 43070 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 43071 * normal/main.c: Include <pupa/env.h>.
43072 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
43073 instead of using pupa_dl_get_prefix to get the prefix.
43074 * term/i386/pc/vga.c: Include <pupa/arg.h>.
43075 (check_vga_mem): Cast pointers to `void *' to silence a gcc
43076 warning.
43077 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
43078 (pupa_vga_setcolor): Declare unused variables with `__attribute__
43079 ((unused))' to silence a gcc warning.
43080 (pupa_vga_setcolor): Likewise.
43081 (debug_command): Changed to match argument parsing
43082 interface changes.
43083 * util/pupa-emu.c: Include <pupa/env.h>.
43084 (options): Added 0's for unused fields to silence a gcc warning.
43085 (argp): Likewise.
43086 (main): Use the environment variable `prefix' instead of using
43087 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
43088 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
43089 and terminal.
43090
43091 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
43092 * util/misc.c: Include <malloc.h>.
43093 (pupa_malloc): Rewritten so errors are correctly reported.
43094 (pupa_realloc): Likewise.
43095 (pupa_memalign): Likewise.
43096 (pupa_mm_init_region): Declare unused variables with
43097 `__attribute__ ((unused))' to silence a gcc warning.
43098 * normal/i386/setjmp.S: Remove tab at the end of the file to
43099 silence a gcc warning.
43100 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
43101 variables with `__attribute__ ((unused))' to silence a gcc
43102 warning.
43103 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
43104 local variable i unsigned to silence a gcc warning.
43105
43106 * kern/term.c: Include <pupa/misc.h>.
43107 (pupa_more_lines): New variable.
43108 (pupa_more): Likewise.
43109 (pupa_putcode): When the pager is active pause at the end of every
43110 screen.
43111 (pupa_set_more): New function.
43112 * include/pupa/term.h (pupa_set_more): New prototype.
43113
43114
3b1139cb 431152004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
43116
43117 Now this project is GRUB 2 rather than PUPA. The location of
43118 the CVS repository was moved to GRUB's.
f19dbdb7 43119
3b1139cb 43120 * configure.ac: Use bug-grub as the reporting address.
43121 Use GRUB instead of PUPA.
43122 Change the version number to 1.90.
43123
8367695c 431242004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
43125
43126 * genkernsyms.sh: Updated copyright information.
43127 * genmk.rb: Likewise.
43128 * genmodsrc.sh: Likewise.
43129 * gensymlist.sh: Likewise.
43130 * boot/i386/pc/boot.S: Likewise.
43131 * boot/i386/pc/diskboot.S: Likewise.
43132 * disk/i386/pc/biosdisk.c: Likewise.
43133 * disk/i386/pc/partition.c: Likewise.
43134 * font/manager.c: Likewise.
43135 * fs/ext2.c: Likewise.
43136 * fs/fat.c: Likewise.
43137 * include/pupa/boot.h: Likewise.
43138 * include/pupa/device.h: Likewise.
43139 * include/pupa/disk.h: Likewise.
43140 * include/pupa/dl.h: Likewise.
43141 * include/pupa/elf.h: Likewise.
43142 * include/pupa/err.h: Likewise.
43143 * include/pupa/file.h: Likewise.
43144 * include/pupa/font.h: Likewise.
43145 * include/pupa/fs.h: Likewise.
43146 * include/pupa/kernel.h: Likewise.
43147 * include/pupa/loader.h: Likewise.
43148 * include/pupa/misc.h: Likewise.
43149 * include/pupa/mm.h: Likewise.
43150 * include/pupa/net.h: Likewise.
43151 * include/pupa/normal.h: Likewise.
43152 * include/pupa/rescue.h: Likewise.
43153 * include/pupa/setjmp.h: Likewise.
43154 * include/pupa/symbol.h: Likewise.
43155 * include/pupa/term.h: Likewise.
43156 * include/pupa/types.h: Likewise.
43157 * include/pupa/i386/setjmp.h: Likewise.
43158 * include/pupa/i386/types.h: Likewise.
43159 * include/pupa/i386/pc/biosdisk.h: Likewise.
43160 * include/pupa/i386/pc/boot.h: Likewise.
43161 * include/pupa/i386/pc/console.h: Likewise.
43162 * include/pupa/i386/pc/init.h: Likewise.
43163 * include/pupa/i386/pc/kernel.h: Likewise.
43164 * include/pupa/i386/pc/linux.h: Likewise.
43165 * include/pupa/i386/pc/loader.h: Likewise.
43166 * include/pupa/i386/pc/memory.h: Likewise.
43167 * include/pupa/i386/pc/multiboot.h: Likewise.
43168 * include/pupa/i386/pc/partition.h: Likewise.
43169 * include/pupa/i386/pc/time.h: Likewise.
43170 * include/pupa/i386/pc/vga.h: Likewise.
43171 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
43172 * include/pupa/util/getroot.h: Likewise.
43173 * include/pupa/util/misc.h: Likewise.
43174 * include/pupa/util/resolve.h: Likewise.
43175 * kern/device.c: Likewise.
43176 * kern/disk.c: Likewise.
43177 * kern/dl.c: Likewise.
43178 * kern/err.c: Likewise.
43179 * kern/file.c: Likewise.
43180 * kern/fs.c: Likewise.
43181 * kern/loader.c: Likewise.
43182 * kern/main.c: Likewise.
43183 * kern/misc.c: Likewise.
43184 * kern/mm.c: Likewise.
43185 * kern/rescue.c: Likewise.
43186 * kern/term.c: Likewise.
43187 * kern/i386/dl.c: Likewise.
43188 * kern/i386/pc/init.c: Likewise.
43189 * kern/i386/pc/lzo1x.S: Likewise.
43190 * kern/i386/pc/startup.S: Likewise.
43191 * loader/i386/pc/chainloader.c: Likewise.
43192 * loader/i386/pc/linux.c: Likewise.
43193 * loader/i386/pc/multiboot.c: Likewise.
43194 * normal/cmdline.c: Likewise.
43195 * normal/command.c: Likewise.
43196 * normal/main.c: Likewise.
43197 * normal/menu.c: Likewise.
43198 * normal/i386/setjmp.S: Likewise.
43199 * term/i386/pc/console.c: Likewise.
43200 * term/i386/pc/vga.c: Likewise.
43201 * util/console.c: Likewise.
43202 * util/genmoddep.c: Likewise.
43203 * util/misc.c: Likewise.
43204 * util/pupa-emu.c: Likewise.
43205 * util/resolve.c: Likewise.
43206 * util/unifont2pff.rb: Likewise.
43207 * util/i386/pc/biosdisk.c: Likewise.
43208 * util/i386/pc/getroot.c: Likewise.
43209 * util/i386/pc/pupa-mkimage.c: Likewise.
43210 * util/i386/pc/pupa-setup.c: Likewise.
43211
e6eced71 432122004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
43213
43214 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
43215 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
43216 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
43217 reading and reset it after reading.
43218 (pupa_ext2_close): Return PUPA_ERR_NONE.
43219
43220 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
43221 Correct value.
43222 (struct linux_kernel_header): Add kernel_version and
43223 initrd_addr_max.
43224 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
43225 pupa_file_read succeeds.
43226 (pupa_rescue_cmd_initrd): Implement.
43227
5aded270 432282003-12-03 Marco Gerards <metgerards@student.han.nl>
43229
43230 * fs/ext2.c (pupa_ext2_label): New function.
43231 (pupa_ext2_fs): Added label.
43232 * fs/fat.c (pupa_fat_label): New function.
43233 (pupa_fat_fs): Added label.
43234 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
43235
43236 * kern/misc.c (pupa_strndup): New function.
43237 * include/pupa/misc.h (pupa_strndup): New prototype.
43238
43239 * include/pupa/normal.h: Include <pupa/err.h>.
43240 (pupa_set_history): New prototype.
43241 (pupa_iterate_commands): New prototype.
43242 * normal/cmdline.c: Include <pupa/machine/partition.h>,
43243 <pupa/disk.h>, <pupa/file.h>.
43244 (hist_size): New variable.
43245 (hist_lines): Likewise.
43246 (hist_end): Likewise.
43247 (hist_used): Likewise.
43248 (pupa_set_history): New function.
43249 (pupa_history_get): Likewise.
43250 (pupa_history_add): Likewise.
43251 (pupa_history_replace): Likewise.
43252 (pupa_tab_complete): Likewise.
43253 (pupa_cmdline_run): Added tab completion and history buffer. Tab
43254 completion shows partitionnames while completing partitions, this
43255 feature was suggested by Jeff Bailey.
43256 * normal/command.c (pupa_iterate_commands): New function.
43257 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
43258 (pupa_normal_init): Initialize history buffer.
43259 (PUPA_MOD_INIT): Likewise.
43260 (pupa_normal_fini): Free the history buffer.
43261 (PUPA_MOD_FINI): Likewise.
43262
43263 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
43264 key.
43265
43266 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
43267 * configure.ac [i386]: Check for regparam bug.
43268 (NESTED_FUNC_ATTR) [! i386]: Defined.
43269
1f7315a3 432702003-11-17 Marco Gerards <metgerards@student.han.nl>
43271
43272 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
43273 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
43274 (pupa_emu_SOURCES): New variable.
43275 (pupa_emu_LDFLAGS): Likewise.
43276 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
43277 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
43278 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
43279 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
43280 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
43281 (pupa_jmp_buf): New typedef.
43282 (pupa_setjmp) [PUPA_UTIL]: New macro.
43283 (pupa_longjmp) [PUPA_UTIL]: Likewise.
43284 * include/pupa/term.h (struct pupa_term): New member `refresh'.
43285 (pupa_refresh): New prototype.
43286 * include/pupa/util/getroot.h: New file.
43287 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
43288 it.
43289 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
43290 (pupa_rescue_cmd_cat): Likewise.
43291 (pupa_rescue_cmd_ls): Likewise.
43292 (pupa_rescue_cmd_testload): Likewise.
43293 (pupa_rescue_cmd_lsmod): Likewise.
43294 * normal/cmdline.c (pupa_cmdline_get): Likewise.
43295 * normal/menu.c (run_menu): Likewise.
43296 * kern/term.c (pupa_cls): Likewise.
43297 (pupa_refresh): New function.
43298 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
43299 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
43300 * util/console.c: New file.
f19dbdb7 43301
1f7315a3 43302 * util/i386/pc/getroot.c: New file.
43303 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
43304 (pupa_putchar): New function.
43305 (pupa_refresh): Likewise.
43306 (xgetcwd): Function moved to ...
43307 (strip_extra_slashes): Likewise.
43308 (get_prefix): Likewise.
f19dbdb7 43309 * util/i386/pc/getroot.c: ... here.
1f7315a3 43310 (find_root_device): Function moved and renamed to...
43311 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
43312 Changed all callers.
43313 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
43314 and renamed to...
43315 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
43316 Changed all callers.
43317 * util/misc.c (pupa_memalign): New function.
43318 (pupa_mm_init_region): Likewise.
43319 (pupa_register_exported_symbols): Likewise.
43320 (pupa_putchar): Function removed.
43321 * util/pupa-emu.c: New file.
43322
9a5c1ade 433232003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
43324
43325 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
43326 (_multiboot_mod_SOURCES): New variable.
43327 (_multiboot_mod_CFLAGS): Likewise.
43328 * loader/i386/pc/multiboot.c: New file.
43329 * include/pupa/i386/pc/multiboot.h: Likewise.
43330 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
43331 (pupa_multiboot_real_boot): New function.
43332 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
43333 (pupa_multiboot_real_boot): New prototype.
43334 (pupa_rescue_cmd_multiboot): Likewise
43335 (pupa_rescue_cmd_module): Likewise.
43336
43337 * kern/loader.c (pupa_loader_set): Continue when
43338 pupa_loader_unload_func() fails.
43339 (pupa_loader_unset): New function.
43340 * include/pupa/loader.h (pupa_loader_unset): New prototype.
43341
43342 * kern/misc.c (pupa_stpcpy): New function.
43343 * include/pupa/misc.h (pupa_stpcpy): New prototype.
43344
8e72a9c0 433452003-11-12 Marco Gerards <metgerards@student.han.nl>
43346
43347 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
43348 for available extensions.
43349
43350 * include/pupa/i386/pc/time.h: New file.
43351 * kern/disk.c: Include <pupa/machine/time.h>.
43352 (PUPA_CACHE_TIMEOUT): New macro.
43353 (pupa_last_time): New variable.
43354 (pupa_disk_open): Flush the cache when there was a timeout.
43355 (pupa_disk_close): Reset the timer.
43356 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
43357 pupa_currticks.
43358 * util/misc.c: Include <sys/times.h>
43359 (pupa_get_rtc): New function.
43360
c4adbd32 433612003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43362
43363 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
43364 as blocks.
43365 (pupa_ext2_get_file_block): Use blocks member.
43366
43367 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
43368 first block. Return -1 instead of pupa_errno on error.
43369
bfd30f06 433702003-10-27 Marco Gerards <metgerards@student.han.nl>
43371
43372 * README: In the pupa-mkimage example use _chain instead of chain
43373 and ext2 instead of fat.
43374 * TODO: Replace ext2fs with jfs as an example. Add an item for
43375 adding journal playback for ext2fs.
43376 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
43377 (pkgdata_MODULES): Added ext2.mod.
43378 (ext2_mod_SOURCES): New variable.
43379 (ext2_mod_CFLAGS): Likewise.
43380 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
43381 * include/pupa/misc.h (pupa_strncpy): New prototype.
43382 (pupa_strcat): Likewise.
43383 (pupa_strncmp): Likewise.
43384 * kern/misc.c (pupa_strcat): Enable function.
43385 (pupa_strncpy): New function.
43386 (pupa_strncmp): Likewise.
43387 * fs/ext2.c: New file.
f19dbdb7 43388
bfd30f06 43389 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
43390 when the read failed before retrying.
43391 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
43392 (_FILE_OFFSET_BITS): Likewise.
43393 * configure.ac: Added AC_SYS_LARGEFILE.
43394
98d15063 433952003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
43396
43397 * genmk.rb (PModule#rule): Make sure to get only symbol names
43398 from the output of nm.
59cad637 43399 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 43400
18d9c7cd 434012003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
43402
43403 I forgot to check in these changes for a long time. This adds
43404 incomplete support for VGA console, and this is still very
43405 buggy. Also, a lot of consideration is required for I18N,
43406 UNICODE, and VGA font issues. Therefore, assume that this is
43407 such that "better than nothing".
f19dbdb7 43408
18d9c7cd 43409 * font/manager.c: New file.
43410 * include/pupa/font.h: Likewise.
43411 * include/pupa/i386/pc/vga.h: Likewise.
43412 * term/i386/pc/vga.c: Likewise.
43413 * util/unifont2pff.rb: Likewise.
43414
43415 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
43416 (pkgdata_MODULES): Added vga.mod and font.mod.
43417 (vga_mod_SOURCES): New variables.
43418 (vga_mod_CFLAGS): Likewise.
43419 (font_mod_SOURCES): Likewise.
43420 (font_mod_CFLAGS): Likewise.
43421
43422 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
43423
43424 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 43425 (struct pupa_term): Added init and fini.
18d9c7cd 43426 Changed the argument of putchar to pupa_uint32_t.
43427
43428 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
43429 (pupa_console_real_putchar): New prototype.
43430 (pupa_console_putchar): Removed.
43431 (pupa_console_checkkey): Exported.
43432 (pupa_console_getkey): Likewise.
43433
43434 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
43435 characters.
43436
43437 * kern/term.c (pupa_term_set_current): Rewritten.
43438 (pupa_putchar): Likewise.
43439 (pupa_putcode): New function.
43440
43441 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
43442 (pupa_console_real_putchar): ... this.
43443 (pupa_vga_set_mode): New function.
43444 (pupa_vga_get_font): Likewise.
43445
43446 * normal/command.c: Include pupa/term.h.
43447 (terminal_command): New function.
43448 (pupa_command_init): Register the command "terminal".
43449
43450 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
43451 (DISP_UP): Likewise.
43452 (DISP_RIGHT): Likewise.
43453 (DISP_DOWN): Likewise.
43454 (DISP_HLINE): Likewise.
43455 (DISP_VLINE): Likewise.
43456 (DISP_UL): Likewise.
43457 (DISP_UR): Likewise.
43458 (DISP_LL): Likewise.
43459 (DISP_LR): Likewise.
43460
43461 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 43462
977329f5 434632003-02-08 NIIBE Yutaka <gniibe@m17n.org>
43464
43465 * util/resolve.c (pupa_util_resolve_dependencies): BUG
43466 FIX. Reverse the path_list.
43467
43468 * include/pupa/normal.h: Export pupa_register_command and
43469 pupa_unregister_command.
43470
43471 * hello/hello.c (pupa_cmd_hello): New module.
43472 * conf/i386-pc.rmk: Added hello.mod.
43473
1f5ab428 434742003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
43475
43476 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 43477
1f5ab428 43478 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
43479 (compress_kernel): New variable.
43480 (generate_image): Heavily modified to support compressing a
43481 large part of the core image.
43482
43483 * util/misc.c (pupa_util_read_image): Fix a file descriptor
43484 leak.
43485 (pupa_util_load_image): New function.
43486
43487 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
43488 (pupa_compressed_size): New variable.
43489 (codestart): Enable Gate A20 here.
43490 Decompress the compressed part of the core image.
43491 Rearrange the code to put functions and variables which are
43492 required for initialization in the non-compressed part.
43493 Include lzo1x.S.
43494
43495 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
43496 here.
43497
43498 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
43499
f19dbdb7 43500 * include/pupa/i386/pc/kernel.h
1f5ab428 43501 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
43502 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
43503 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
43504 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
43505 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
43506
43507 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
43508
43509 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
43510 (Utility#rule): Likewise.
43511
43512 * configure.ac: Check if LZO is available.
43513
ce5bf700 435142003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
43515
43516 * include/pupa/normal.h: New file.
43517 * include/pupa/setjmp.h: Likewise.
43518 * include/pupa/i386/setjmp.h: Likewise.
43519 * normal/cmdline.c: Likewise.
43520 * normal/command.c: Likewise.
43521 * normal/main.c: Likewise.
43522 * normal/menu.c: Likewise.
43523 * normal/i386/setjmp.S: Likewise.
f19dbdb7 43524
ce5bf700 43525 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
43526 (pupa_rescue_cmd_initrd): Likewise.
43527
43528 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
43529 Likewise.
43530
43531 * kern/i386/pc/startup.S (translation_table): New variable.
43532 (translate_keycode): New function.
43533 (pupa_console_getkey): Call translate_keycode.
43534
43535 * kern/rescue.c (attempt_normal_mode): New function.
43536 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
43537 it failed, print a message.
43538
43539 * kern/mm.c (pupa_real_malloc): Print more information when a
43540 free magic is broken.
43541 (pupa_free): If the first free header is not free actually, set
43542 it to P.
43543
43544 * kern/main.c (pupa_load_normal_mode): Just load the module
43545 "normal".
43546 (pupa_main): Don't print the message
43547 "Entering into rescue mode..." here.
43548
43549 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
43550 Declared.
43551 (pupa_rescue_cmd_initrd): Likewise.
43552 (pupa_rescue_cmd_initrd): Likewise.
43553
43554 * include/pupa/symbol.h (FUNCTION): Specify the type.
43555 (VARIABLE): Likewise.
43556
43557 * include/pupa/err.h (pupa_err_t): Added
43558 PUPA_ERR_UNKNOWN_COMMAND.
43559
43560 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
43561 (pupa_dl_get_prefix): Likewise.
43562
43563 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
43564 Added _chain.mod and _linux.mod instead of chain.mod and
43565 linux.mod.
43566 (chain_mod_SOURCES): Renamed to ...
43567 (_chain_mod_SOURCES): ... this.
43568 (chain_mod_CFLAGS): Renamed to ...
43569 (_chain_mod_CFLAGS): ... this.
43570 (linux_mod_SOURCES): Renamed to ...
43571 (_linux_mod_SOURCES): ... this.
43572 (linux_mod_CFLAGS): Renamed to ...
43573 (_linux_mod_CFLAGS): ... this.
43574 (normal_mod_SOURCES): New variable.
43575 (normal_mod_CFLAGS): Likewise.
43576 (normal_mod_ASFLAGS): Likewise.
43577
435782003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
43579
43580 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
43581 possible.
43582
fe6b695a 43583 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 43584 recursively.
43585 (pupa_dl_unref): Unrefer depending modules recursively.
43586 Don't call pupa_dl_unload implicitly, because PUPA can crash if
43587 a module is unloaded before one depending on that module is
43588 unloaded.
43589 (pupa_dl_unload): Unload depending modules explicitly,
43590 if possible.
43591
c04da074 435922003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
43593
43594 * include/pupa/i386/pc/linux.h: New file.
43595 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 43596
c04da074 43597 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
43598 Removed.
43599 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
43600 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
43601 of PUPA_CHAINLOADER_BOOT_SECTOR.
43602
43603 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
43604 (pupa_linux_prot_size): New variable.
43605 (pupa_linux_tmp_addr): Likewise.
43606 (pupa_linux_real_addr): Likewise.
43607 (pupa_linux_boot_zimage): New function.
43608 (pupa_linux_boot_bzimage): Likewise.
43609
43610 * kern/i386/pc/init.c (struct mem_region): New structure.
43611 (MAX_REGIONS): New macro.
43612 (mem_regions): New variable.
43613 (num_regions): Likewise.
43614 (pupa_os_area_addr): Likewise.
43615 (pupa_os_area_size): Likewise.
43616 (pupa_lower_mem): Likewise.
43617 (pupa_upper_mem): Likewise.
43618 (add_mem_region): New function.
43619 (compact_mem_regions): Likewise.
43620 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
43621 the size of the conventional memory and that of so-called upper
43622 memory (before the first memory hole).
43623 Instead of adding each found region to free memory, use
43624 add_mem_region and add them after removing overlaps.
43625 Also, add only 1/4 of the upper memory to free memory. The rest
43626 is used for loading OS images. Maybe this is ad hoc, but this
43627 makes it much easier to relocate OS images when booting.
43628
43629 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
43630 (pupa_enter_rescue_mode): Don't register initrd and module.
43631
43632 * kern/mm.c: Include pupa/dl.h.
43633
43634 * kern/main.c: Include pupa/file.h and pupa/device.h.
43635
43636 * kern/loader.c (pupa_loader_load_module_func): Removed.
43637 (pupa_loader_load_module): Likewise.
43638
43639 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
43640 ``.o''.
43641
43642 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
43643 (pupa_linux_tmp_addr): Likewise.
43644 (pupa_linux_real_addr): Likewise.
43645 (pupa_linux_boot_zimage): Likewise.
43646 (pupa_linux_boot_bzimage): Likewise.
43647
43648 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
43649 (pupa_upper_mem): Likewise.
43650 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
43651 module is too dangerous.
43652
43653 * include/pupa/loader.h (pupa_os_area_addr): Declared.
43654 (pupa_os_area_size): Likewise.
43655 (pupa_loader_set): Remove the first argument. Loader doesn't
43656 manage modules or initrd any longer.
43657 (pupa_loader_load_module): Removed.
43658
43659 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
43660 (linux_mod_SOURCES): New variable.
43661 (linux_mod_CFLAGS): Likewise.
43662
a13f9237 436632003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
43664
43665 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
43666 the length of a blocklist correctly.
43667
43668 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
43669 Use ioctl only if the OS file is a block device.
43670 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
43671 not very useful for normal files.
43672
43673 * kern/main.c (pupa_set_root_dev): New function.
43674 (pupa_load_normal_mode): Likewise.
43675 (pupa_main): Call those above.
43676
43677 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
43678 pupa_uint16_t.
43679
43680 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
43681
a5ffe966 436822003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43683
43684 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
43685 (setup): Configure the installed partition information and the
43686 dl prefix.
43687
43688 * loader/i386/pc/chainloader.c (my_mod): New variable.
43689 (pupa_chainloader_unload): New function.
43690 (pupa_rescue_cmd_chainloader): Refer itself.
43691 (PUPA_MOD_INIT): Save its own module in MY_MOD.
43692
43693 * kern/i386/pc/startup.S (install_partition): Removed.
43694 (version_string): Likewise.
43695 (config_file): Likewise.
43696 (pupa_install_dos_part): New variable.
43697 (pupa_install_bsd_part): Likewise.
43698 (pupa_prefix): Likewise.
43699 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
43700
43701 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
43702 and pupa/misc.h.
43703 (make_install_device): New function.
43704 (pupa_machine_init): Set the dl prefix.
43705
43706 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
43707 (buf): Renamed to ...
43708 (linebuf): ... this.
43709 (pupa_rescue_cmd_prefix): New function.
43710 (pupa_rescue_cmd_insmod): Likewise.
43711 (pupa_rescue_cmd_rmmod): Likewise.
43712 (pupa_rescue_cmd_lsmod): Likewise.
43713 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
43714 rmmod and lsmod.
43715
43716 * kern/mm.c (pupa_memalign): If failed even after invalidating
43717 disk caches, unload unneeded modules and retry.
43718
43719 * kern/misc.c (pupa_memmove): New function.
43720 (pupa_memcpy): Removed.
43721 (pupa_strcpy): New function.
43722 (pupa_itoa): Made static.
43723
43724 * kern/dl.c (pupa_dl_iterate): New function.
43725 (pupa_dl_ref): Likewise.
43726 (pupa_dl_unref): Likewise.
43727 (pupa_dl_unload): Return if succeeded or not.
43728 (pupa_dl_unload_unneeded): New function.
43729 (pupa_dl_unload_all): Likewise.
43730 (pupa_dl_init): Renamed to ...
43731 (pupa_dl_set_prefix): ... this.
43732 (pupa_dl_get_prefix): New function.
43733
43734 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
43735 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
43736 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
43737 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
43738 (pupa_install_dos_part): Declared.
43739 (pupa_install_bsd_part): Likewise.
43740 (pupa_prefix): Likewise.
43741 (pupa_boot_drive): Likewise.
43742
43743 * include/pupa/types.h: Fix a typo.
43744
43745 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
43746 pupa_memmove.
43747 (pupa_memmove): Declared.
43748 (pupa_strcpy): Likewise.
43749
43750 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
43751 pupa_mod_init takes one argument, its own module.
43752 (pupa_dl_unload_unneeded): Declared.
43753 (pupa_dl_unload_all): Likewise.
43754 (pupa_dl_ref): Likewise.
43755 (pupa_dl_unref): Likewise.
43756 (pupa_dl_iterate): Likewise.
43757 (pupa_dl_init): Renamed to ...
43758 (pupa_dl_set_prefix): ... this.
43759 (pupa_dl_get_prefix): Declared.
43760
43761 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 43762 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 43763 unloaded.
43764 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
43765 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
43766
43767 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
43768 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
43769
012d7999 437702003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
43771
43772 * util/i386/pc/pupa-setup.c (setup): Define the internal
43773 function find_first_partition_start at the top level, because GCC
43774 3.0.x cannot compile internal functions in deeper scopes
43775 correctly.
43776 (find_root_device): Use lstat instead of stat.
43777 Don't follow symbolic links.
43778 Fix the path-constructing code.
43779
43780 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
43781 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
43782 by a BLKGETSIZE ioctl first, because block devices don't fill
43783 the member st_mode of the structure stat on Linux.
43784 [__linux__] (linux_find_partition): Use a temporary buffer
43785 REAL_DEV for the working space. Copy it to DEV before returning.
43786 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
43787 buffer cache consistent.
43788 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
43789 strncmp. The previous value was merely wrong.
43790 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
43791
43792 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
43793 FAT size is 12. The previous value was merely wrong.
43794
43795 * kern/main.c (pupa_main): Don't split the starting message from
43796 newlines.
43797
43798 * kern/term.c (pupa_putchar): Put CR after LF instead of before
43799 LF, because BIOS goes crazy about character attributes in this
43800 case.
43801
1cc73a62 438022003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
43803
43804 * include/i386/pc/util/biosdisk.h: New file.
43805 * util/i386/pc/biosdisk.c: Likewise.
43806 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 43807
1cc73a62 43808 * Makefile.in (INCLUDE_DISTFILES): Added
43809 include/pupa/i386/pc/util/biosdisk.h.
43810 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
43811 directory util/i386/pc.
43812 (install-local): Added a rule for sbin_UTILITIES.
43813 (uninstall): Likewise.
43814
43815 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
43816
43817 * util/misc.c (xrealloc): New function.
43818 (pupa_malloc): Likewise.
43819 (pupa_free): Likewise.
43820 (pupa_realloc): Likewise.
43821 (pupa_stop): Likewise.
43822 (pupa_putchar): Likewise.
43823
43824 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
43825
43826 * include/pupa/util/misc.h (xrealloc): Declared.
43827
43828 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
43829 macro.
43830 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
43831 (PUPA_BOOT_MACHINE_BPB_END): ... this.
43832
43833 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
43834 [PUPA_UTIL] (pupa_fat_fini): Likewise.
43835
43836 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
43837 way should be implemented.
43838 [PUPA_UTIL] (pupa_fat_fini): Likewise.
43839
43840 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
43841 the size of NAME for safety.
43842 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
43843 0x88.
43844
43845 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
43846 (pupa_setup_SOURCES): Likewise.
43847
43848 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
43849
08b70fe8 438502002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
43851
43852 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
43853 bunch of pushl's from pusha, because this destroys the return
43854 value.
43855
62ddcc8f 438562002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
43857
43858 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
43859 This means that any missing prototypes could be fatal. Also, you
43860 must take care when writing assembly code. See the comments at
43861 the beginning of startup.S, for more details.
f19dbdb7 43862
62ddcc8f 43863 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
43864 compilation mechanism.
43865 (pupa_chainloader_real_boot): Likewise.
43866 (pupa_biosdisk_rw_int13_extensions): Likewise.
43867 (pupa_biosdisk_rw_standard): Likewise.
43868 (pupa_biosdisk_check_int13_extensions): Likewise.
43869 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
43870 (pupa_biosdisk_get_diskinfo_standard): Likewise.
43871 (pupa_get_memsize): Likewise.
43872 (pupa_get_mmap_entry): Likewise.
43873 (pupa_console_putchar): Likewise.
43874 (pupa_console_setcursor): Likewise.
43875 (pupa_getrtsecs): Use pushl instead of push.
43876
43877 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
43878 memory instead of the stack for a mmap entry, because some
43879 BIOSes may ignore the maximum size and overflow.
43880
43881 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
43882
43883 * genmk.rb (PModule#rule): Compile automatically generated
43884 sources with module-specific CFLAGS as well as other sources.
43885
9962ed99 438862002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43887
43888 * configure.ac: Check ld.
43889 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
43890 respectively, before checking endianness and sizes.
43891
43892 * Makefile.in (LD): New variable.
f19dbdb7 43893
abdfc3c5 438942002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43895
43896 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
43897
6a161fa9 438982002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
43899
43900 * Changelog: New file.
43901