]> git.proxmox.com Git - grub2.git/blob - ChangeLog
527e9d17c47424b1ce3a48a42ee9abad3f2b98d5
[grub2.git] / ChangeLog
1 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
4 a const pointer.
5 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
6 const pointer.
7 (efiemu_set_variable): Make vendor_guid a const pointer.
8
9 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Don't require grub-mkconfig_lib to generate manpages for programs.
12
13 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
14 dependencies, don't add grub-mkconfig_lib.
15 (program): Pass empty adddeps.
16 (script): Pass grub-mkconfig_lib as adddeps.
17
18 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
21 * util/getroot.c (grub_find_device): Likewise.
22 (get_mdadm_uuid): Likewise.
23 (grub_util_is_imsm): Likewise.
24 (grub_util_pull_device): Likewise.
25 * util/grub-probe.c (probe): Likewise.
26
27 2012-09-10 Benoit Gschwind <gschwind>
28
29 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
30 (devs): Add devpath_8.
31
32 2012-09-08 Peter Jones <pjones@redhat.com>
33
34 * grub-core/Makefile.core.def (efifwsetup): New module.
35 * grub-core/commands/efi/efifwsetup.c: New file.
36 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
37 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
38 New define.
39 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
40
41 2012-09-05 Jiri Slaby <jslaby@suse.cz>
42
43 * configure.ac: Add SuSe path.
44
45 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
46
47 * NEWS: Fix typo.
48
49 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
50
51 * util/import_gcry.py: Sort cipher_files, to make build system
52 generation more deterministic.
53
54 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
57 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
58 (grub_set_datetime): Likewise.
59
60 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
63 warnings.
64
65 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
68
69 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
72
73 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
74
75 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
76 required for checkouts from bzr, but it may be useful for users or
77 distributors wishing to update translations against a tarball
78 distribution, and it can be helpful for the tarball to be a superset
79 of what's in bzr.
80
81 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
82
83 * Makefile.am (EXTRA_DIST): Add
84 grub-core/tests/boot/linux.init-mips.S,
85 grub-core/tests/boot/linux.init-ppc.S, and
86 grub-core/tests/boot/linux-ppc.cfg.
87
88 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
89
90 * grub-core/mmap/mips/loongson: Remove empty directory.
91
92 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
93
94 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
95 gone.
96
97 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
98
99 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
100 grub-sparc64-setup.
101
102 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
103
104 * configure.ac: Strengthen the test for working -nostdinc -isystem.
105
106 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
107
108 * po/POTFILES.in: Regenerated.
109
110 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
111
112 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
113 (NetBSD): New subsection.
114
115 2012-07-22 Ales Nesrsta <starous@volny.cz>
116
117 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
118 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
119
120 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
121
122 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
123 * util/grub.d/10_hurd.in: Add missing quoting.
124 * util/grub.d/10_illumos.in: Likewise.
125 * util/grub.d/10_kfreebsd.in: Likewise.
126 * util/grub.d/10_linux.in: Likewise.
127 * util/grub.d/20_linux_xen.in: Likewise.
128
129 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
130
131 New command `lsefi'.
132
133 * grub-core/Makefile.core.def (lsefi): New module.
134 * grub-core/commands/efi/lsefi.c: New file.
135 * include/grub/efi/api.h: Add more GUIDs.
136
137 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
138
139 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
140 (grub_bsd_elf32_hook): Likewise.
141 (grub_bsd_elf64_size_hook): Likewise.
142 (grub_bsd_elf64_hook): Likewise.
143 (grub_bsd_load_elf): Likewise.
144
145 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
148 if hash function is unavailable.
149 (dec_stream_header): Likewise.
150
151 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
152
153 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
154 filter state.
155
156 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
157
158 Fix coreboot compilation.
159
160 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
161 (grub_vga_text_init_real): ... this.
162 (grub_vga_text_fini): Rename to ...
163 (grub_vga_text_fini_real): ... this.
164
165 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
168
169 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
170
171 * grub-core/lib/legacy_parse.c: Support clear and testload.
172
173 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
176
177 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
178
179 * grub-core/fs/ext2.c: Experimental support for 64-bit.
180
181 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
182
183 * grub-core/net/tftp.c (ack): Fix endianness problem.
184 (tftp_receive): Likewise.
185 Reported by: Michael Davidsaver.
186
187 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
188
189 * gentpl.py: Make mans depend on grub-mkconfig_lib.
190
191 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
194 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
195 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
196
197 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
200 efi_mmap_size.
201 Reported by: Stuart Hayes.
202
203 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
204
205 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
206
207 * grub-core/Makefile.core.def (mda_text): New module.
208 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
209 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
210 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
211 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
212 here.
213 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
214 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
215 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
216 here.
217 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
218 to ..
219 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
220 ... here
221 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
222 here.
223 * grub-core/term/i386/vga_common.c: Removed.
224 * include/grub/i386/vga_common.h: Likewise.
225 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
226 (grub_vga_cr_bw_read): Likewise.
227 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
228 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
229 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
230 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
231 grub_vga_cr_read/grub_vga_cr_write.
232 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
233
234 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * configure.ac: Bump version to 2.00.
237 * grub-core/normal/main.c (features): Add feature_200_final.
238
239 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
240 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
241
242 * NEWS: Fix unclarity and language mistakes.
243
244 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
247 additional size to 3 pages.
248 Reported by: Stuart Hayes.
249
250 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * NEWS: Add 2.00 entry.
253
254 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
257 put explicit "/" for empty path.
258 (wildcard_expand): Improve dprintf.
259
260 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
263 it's equal to currnode. This can happen with "" symlink.
264
265 2012-06-27 Yves Blusseau <blusseau@zetam.org>
266
267 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
268 echo shell command by printf command.
269
270 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
273 the value returned by firmware is the maximal position, not diumension.
274 (grub_terminfo_output_state): Use a more sane fallback.
275
276 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
279
280 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
283 frequency to 150 MHz.
284
285 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
286
287 Apple fixes.
288
289 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
290 __APPLE_
291 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
292 definition.
293 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
294
295 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
296
297 Handle slash in HFS label.
298
299 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
300 (grub_hfs_dir): Tanslate slash.
301 (grub_hfs_label): Don't translate slash.
302
303 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
306 network protocol listing since it introduces problematic dependency on
307 net module.
308
309 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
312
313 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
314
315 Init video early on yeeloong to avoid being rebooted by watchdog.
316
317 * grub-core/Makefile.am (gensm712): New target.
318 (sm712_start.S): Likewise.
319 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
320 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
321 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
322 description.
323 * include/grub/vga.h: Move registry definitions to...
324 * include/grub/vgaregs.h: ... here.
325
326 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
327
328 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
329 signedness.
330
331 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
334 platforms with firmware disk drivers in the core.
335
336 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
339 informative verbose message.
340 (read_lv): Handle 64-bit segment size.
341
342 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
345
346 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
349 character but still remove trainling spaces.
350 (grub_fat_label): Ignore archive flag.
351
352 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
355 cast between linux_kernel_header and linux_kernel_params.
356
357 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
360 type for size.
361 (grub_raid6_recover_func_t): Likewise.
362 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
363 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
364
365 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
368
369 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
370
371 Fix overflow.
372
373 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
374 [__NetBSD__]: Add explicit cast before bitshift.
375
376 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * configure.ac: Bump to 2.00~rc1.
379
380 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
383 half of $a0.
384
385 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
386 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
387
388 * docs/grub.texi: Fix search syntax.
389 (Multi-boot manual config): Put msdos rather than GPT example.
390 Grammar corrections.
391
392 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
395
396 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
399
400 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
403 message on double free. Put the value of magic in case of mismatch.
404
405 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
406
407 Speed-up video on yeeloong.
408
409 * grub-core/video/sm712.c (framebuffer): Remove render_target and
410 add cached_ptr.
411 (grub_video_sm712_video_fini): Unmap cached_ptr.
412 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
413 (grub_video_sm712_set_active_render_target): Removed.
414 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
415 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
416 sync caches.
417
418 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
419
420 Avoid flushing the same line multiple times on loongson.
421
422 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
423 Step in 32 bytes and not 1 byte.
424 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
425 Likewise.
426
427 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
430 subvolumes.
431
432 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
433
434 Implement flow control for http.
435
436 * grub-core/net/http.c (parse_line): Handle response 206.
437 (http_receive): Stall if too many packets are in the queue.
438 (http_establish): Fix range header.
439 (http_seek): Fix double free.
440 (http_close): Likewise.
441 (http_packets_pulled): New function.
442 (grub_http_protocol): Set http_seek
443 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
444 (ack_real): Set window depending on i_stall.
445 (grub_net_send_tcp_packet): Likewise.
446 (grub_net_tcp_stall): New function.
447 (grub_net_tcp_unstall): Likewise.
448 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
449 (grub_net_tcp_unstall): Likewise.
450
451 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * grub-core/net/tftp.c: Decrease stall to 50 packets.
454
455 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
458
459 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * tests/util/grub-shell.in: Fix a typo.
462
463 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
464
465 Implement flow control for tftp.
466
467 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
468 packets but stop only if stop condition is satisfied.
469 (grub_net_fs_read_real): Call packets_pulled after real read. Use
470 `stall' instead of `eof' as stop condition.
471 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
472 (http_err): Likewise.
473 * grub-core/net/tftp.c (ack): Replace the first argument with data
474 instead of socket.
475 (tftp_receive): Stall if too many packets are in wait queue.
476 (tftp_packets_pulled): New function.
477 (grub_tftp_protocol): Set packets_pulled.
478 * include/grub/net.h (grub_net_packets): New field count.
479 (grub_net_put_packet): Increment count.
480 (grub_net_remove_packet): Likewise.
481 (grub_net_app_protocol): New field `packets_pulled'.
482 (grub_net): New field `stall'.
483
484 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
487 sync part to handle them.
488
489 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
492 * grub-core/net/drivers/ieee1275/ofnet.c
493 (grub_ieee1275_net_config_real): Likewise.
494
495 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
498 the direct route for server/gateway.
499
500 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
503 IP address to server name since we may not hame the DNS.
504
505 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
506
507 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
508 freeing random buffer on failure.
509 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
510
511 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
512
513 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
514
515 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
518 reserved bytes.
519 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
520 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
521 Handle malloc error correctly.
522
523 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
526 blocks.
527
528 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
531 increment.
532
533 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
536 none is explicitly specified.
537
538 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
541 while reallocating.
542
543 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
544
545 Respect netmask from bootp/dhcp.
546
547 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
548 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
549 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
550 into ...
551 (grub_net_add_ipv4_local): ... this.
552 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
553 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
554 (grub_net_add_ipv4_local): New proto.
555
556 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
559 determining EFI memory map size.
560
561 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
564
565 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
566
567 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
568 when looking for partition separator.
569
570 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
573 Escape commas.
574
575 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
576
577 Restructure FAT driver to avoid hook in label reading as it hits a
578 GCC bug.
579
580 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
581 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
582 (grub_fat_iterate_dir): Split into ...
583 (grub_fat_iterate_init): ... this, ...
584 (grub_fat_iterate_fini): ... this, ...
585 (grub_fat_iterate_dir_next): ... and this. All users updated.
586
587 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
590 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
591 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
592 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
593 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
594 New fields last_key and last_key_time.
595 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
596 extended key-esc into extended key-extended key.
597
598 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
599
600 Avoid unnecessary memcpy of whole video buffer.
601
602 * grub-core/video/fb/video_fb.c (dirty): New struct.
603 (framebuffer): Add members current_dirty and previous_dirty.
604 (dirty): New function.
605 (grub_video_fb_fill_rect): Update dirty.
606 (common_blitter): Likewise.
607 (grub_video_fb_scroll): Likewise.
608 (doublebuf_blit_update_screen): Copy only dirty part.
609 (doublebuf_pageflipping_update_screen): Likewise.
610 (grub_video_fb_doublebuf_blit_init): Init dirty.
611 (doublebuf_pageflipping_init): Likewise.
612 (grub_video_fb_setup): Likewise.
613
614 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
617 poll rate.
618
619 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Fix wildcard regexp dot and other special characters handling.
622 Reported by: Robert Mabee.
623
624 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
625 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
626 (split_path): Trigger expansion on '?'.
627 (unescape): New function.
628 (wildcard_expand): Unescape parts copied without globbing.
629 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
630 (grub_script_arglist_to_argv): Don't unescape expansions.
631
632 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
633
634 * include/grub/net.h (grub_net_card): New member txbufsize.
635 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
636 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
637 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
638 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
639 txbufsize.
640 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
641 compatible property to check for macs. Set
642 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
643 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
644 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
645 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
646 (send_card_buffer): Use txbuf.
647 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
648 nested function out of the parent while on it.
649
650 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
653 presence check.
654 (grub_ieee1275_net_config_real): Fix config pointer.
655
656 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
659 filename parsing to non-block devices.
660
661 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * grub-core/kern/device.c (grub_device_open): Remove dead code.
664
665 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
668 All users updated.
669
670 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
673 UUID search command even if hints probing failed.
674
675 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * po/POTFILES.in: Regenerated.
678
679 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
680
681 Speed-up video on fuloong.
682
683 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
684 New function.
685 (grub_pci_device_unmap_range): Handle non-cached address.
686 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
687 add direct_ptr.
688 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
689 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
690 (grub_video_sis315pro_set_active_render_target): Removed.
691 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
692 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
693 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
694 sync caches.
695 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
696 New proto.
697
698 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * docs/grub.texi (Multi-boot manual config): New section.
701
702 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
703
704 Avoid slow read-back from VRAM.
705
706 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
707 Move from here ...
708 * grub-core/video/fb/video_fb.c
709 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
710 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
711 (front_target): Remove front_target. Add pages.
712 (grub_video_fb_init): Skip setting front_pages.
713 (grub_video_fb_fini): Likewise.
714 (doublebuf_blit_update_screen): Use pages.
715 (grub_video_fb_doublebuf_blit_init): Likewise.
716 (doublebuf_pageflipping_init): Allocate offscreen buffer.
717 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
718 (grub_video_fb_setup): Prefer doublebuffing.
719
720 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
723 gzio.
724
725 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
726
727 Add loongson tests.
728
729 * tests/util/grub-shell.in: Handle loongson.
730 * tests/partmap_test.in: Add loongson to the list of platform using ATA
731 drivers.
732 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
733 Reboot instead of shutdown if REBOOT is defined.
734
735 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
738 sized ports since unlike on real hardware qemu supports only 32-bit
739 regs.
740
741 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
742
743 * Makefile.util.def (grub-mkrescue): Enable on loongson.
744 * util/grub-mkrescue.in: Handle loongson.
745
746 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
749 Set is_part appropriately.
750 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
751 names. Canonicalize partition without full disk.
752
753 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
754
755 Revert usb-quiesce since it's wrong.
756
757 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
758 (grub_ofdisk_init): Don't do quiesce.
759
760 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
763 PowerMac workaround to Xserves as well.
764 Information supplied by: Benjamin Herrenschmidt.
765
766 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
767
768 Don't assume that beginning address is also the entry point on ppc.
769
770 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
771 (grub_linux_boot): Use linux_entry.
772 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
773 (grub_linux_load64): Likewise.
774
775 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
778
779 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
782 needlessly lose the console.
783
784 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
787 space.
788
789 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
790
791 Remove non-functional EFI grub_get_rtc. Put a better fatal message
792 than current grub_get_rtc() not implemented when booted with
793 coreboot without TSC.
794
795 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
796 Add machine/time.h to kernel headers on loongson.
797 * grub-core/Makefile.core.def (kernel): Remove
798 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
799 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
800 (grub_get_rtc): Likewise.
801 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
802 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
803 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
804 * grub-core/kern/i386/tsc.c (grub_tsc_init)
805 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
806 rather than installing known non-working time source.
807 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
808 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
809 * include/grub/time.h: Don't include machine/time.h.
810 * include/grub/efi/time.h: Removed.
811 * include/grub/i386/efi/time.h: Likewise.
812 * include/grub/i386/ieee1275/time.h: Likewise.
813 * include/grub/powerpc/ieee1275/time.h: Likewise.
814 * include/grub/sparc64/ieee1275/time.h: Likewise.
815 * include/grub/x86_64/efi/time.h: Likewise.
816
817 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
818
819 Remove dot on i and j when combining with above diacritics.
820
821 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
822 value.
823 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
824 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
825 with dotless variants when any combining above is present.
826
827 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
828
829 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
830 text and not binary.
831
832 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
833
834 Stop polling as soon as we have the packet we were waiting for.
835
836 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
837 All users updated.
838 * grub-core/net/arp.c (have_pending): New var.
839 (pending_req): Likewise.
840 (grub_net_arp_send_request): Fill pending_req and use have_pending as
841 stop indicator.
842 (grub_net_arp_receive): Set have_pending.
843 * grub-core/net/dns.c (recv_data): New field stop.
844 (recv_hook): Set stop.
845 (grub_net_dns_lookup): Init stop and use as stop condition.
846 * grub-core/net/http.c (http_establish): Use headers_recv as stop
847 condition.
848 * grub-core/net/net.c (grub_net_poll_cards): New argument
849 stop_condition. Stop when it goes true.
850 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
851 indicator.
852 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
853
854 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
855
856 Keep TX and RX buffers on EFI rather than always allocate new ones.
857
858 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
859 card. All users updated.
860 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
861 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
862 (get_card_packet): Likewise.
863 (grub_efinet_findcards): Init new fields.
864
865 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
866
867 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
868 compilation error on sparc64.
869
870 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Use ITC on IA64 rather than broken routine based on daytime.
873
874 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
875 ia64.
876 (grub_get_rtc) [__ia64__]: Likewise.
877 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
878 (get_itc): New function.
879 (grub_rtc_get_time_ms): Likewise.
880 (grub_machine_init): Calibrate ITC.
881 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
882 Keep only on non-ia64. Don't export since it's broken and used only
883 if TSC is unavailable.
884
885 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
888 even if it's used.
889 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
890 Skip if parent is unused.
891
892 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
895
896 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
897
898 Fix wildcard escaping.
899
900 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
901 * grub-core/script/execute.c (wildcard_escape): .. to here.
902 Don't escape dot.
903 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
904 * grub-core/script/execute.c (wildcard_unescape): .. to here.
905 Don't escape dot.
906 * grub-core/script/execute.c (gettext_append): Always escape.
907 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
908 * grub-core/script/yylex.l: Don't cut away the escaping.
909 * tests/grub_script_echo1.in: Add tests with wildcard.
910
911 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
914 (ftdi_hw_configure): Likewise.
915 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
916 define.
917 (real_config): Handle 1.5 stop bits.
918 (pl2303_hw_configure): Likewise.
919
920 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
921
922 * Makefile.am: Add ppc linux bootcheck.
923 * grub-core/tests/boot/linux-ppc.cfg: New file.
924 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
925
926 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * tests/grub_script_expansion.in: Skip network protocols.
929
930 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
933
934 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
937 --rom-directory.
938 Add -graft-points.
939
940 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
941
942 ESCC serial driver for conducting sautomated tests in qemu.
943 Not tested on real hardware.
944
945 * include/grub/serial.h (grub_serial_port): New field escc_desc.
946 * grub-core/term/ieee1275/escc.c: New file.
947 * grub-core/Makefile.core.def (escc): New module.
948
949 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
952 invalid on error.
953 (serial_hw_fetch): Don't read invalid handle.
954 (serial_hw_put): Don't write into invalid handle.
955
956 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
957
958 Add a 1.5 stop bits value.
959
960 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
961 * include/grub/serial.h (grub_serial_stop_bits_t): Add
962 GRUB_SERIAL_STOP_BITS_1_5.
963
964 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
967 value rather than let it uninited.
968
969 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * grub-core/commands/wildcard.c (+check_file): New function.
972 (wildcard_expand): Don't expand to non-existing files, expand with
973 suffix and not attempt to expand if not needed.
974
975 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
978 out of partitions containing other partitions.
979
980 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
981
982 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
983 on some qemu versions with GRUB.
984
985 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
986 define.
987 (grub_openbsd_bootarg_pcibios): New struct.
988 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
989 Add PCIINFO.
990
991 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * tests/util/grub-shell.in: Trim firmware output on EFI.
994
995 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
998 and coreboot since it's already in kernel.
999
1000 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1003 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1004 to here. New return value start. All users updated.
1005 Recursively scan linear mappings.
1006 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1007 proto.
1008 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1009 Use grub_util_get_dm_node_linear_info.
1010 * util/getroot.c (convert_system_partition_to_system_disk): Use
1011 grub_util_info rather than grub_dprintf.
1012 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1013
1014 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1017
1018 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1019 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1020
1021 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * include/grub/types.h (grub_set_unaligned64): New function.
1024 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1025 (setup): Likewise.
1026
1027 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1030 (grub_ofdisk_fini): Quiesce USB devices.
1031
1032 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1035 caches.
1036
1037 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1040
1041 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 * grub-core/disk/pata.c (grub_pata_pio_read)
1044 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1045 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1046
1047 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 Extend automated tests to qemu-mips.
1050
1051 * Makefile.am: reorganise tests and enable qemu-mips.
1052 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1053 * grub-core/tests/boot/linux.init-mips.S: New file.
1054 * tests/partmap_test.in: Handle ata0 disks.
1055 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1056 non-pc i386.
1057
1058 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1061 ia64.
1062 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1063 quotes while on it.
1064
1065 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1068 (grub_halt): Likewise.
1069 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1070
1071 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/term/serial.c (grub_serial_register)
1074 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1075 the behaviour in line with x86 platforms.
1076
1077 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1080 (grub_ata_strncpy): Likewise.
1081 (grub_ata_identify): Add missing byteswaps.
1082
1083 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1086 byte-swap.
1087 (screen_read_char): Likewise.
1088 (grub_vga_text_cls): Likewise.
1089
1090 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1093 filenames.
1094 (make_file_path): Likewise.
1095
1096 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1099 machines.
1100 Tested by: Paulo Flabiano Smorigo.
1101 Crucial information about API supplied by: Coleen <Last name unknown>.
1102 Reviewed by: Coleen <Last name unknown>.
1103
1104 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * util/grub-mkimage.c: Disable -Wcast-align.
1107
1108 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1111 as they are fatal.
1112
1113 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1116
1117 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 * util/grub-probe.c (escape_of_path): Fix double free.
1120
1121 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/commands/videoinfo.c (hook): Show pitch.
1124
1125 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1128
1129 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1132 (probe): Add ieee1275 to OFW devices.
1133
1134 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1137
1138 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Handle IBM OFW path.
1141
1142 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1143 available.
1144 (of_path_of_scsi): Handle vdevice.
1145
1146 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1149 Allocate in multiples of 16 to avoid adding a few bytes free region the
1150 windows bugs upon.
1151
1152 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1155 Allocate in multiples of 16 to avoid adding a few bytes free region the
1156 windows bugs upon.
1157 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1158
1159 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1162 resolutions.
1163 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1164 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1165
1166 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1167
1168 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1169
1170 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1173 resulted in \\ at the end of the line.
1174
1175 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1178 (grub_parser_cmdline_state): Likewise.
1179 (grub_parser_split_cmdline): Likewise.
1180
1181 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1184 /dev/root and /dev/dm-*.
1185
1186 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1189 fix partially stale display.
1190
1191 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1192
1193 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1194 substraction.
1195
1196 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1199 Fix MBR remapping workaround.
1200 (grub_util_biosdisk_read) [__linux__]: Likewise.
1201
1202 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1205
1206 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * configure.ac: Bump to beta6.
1209
1210 2012-05-31 Christer Weinigel <christer@weinigel.se>
1211
1212 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1213
1214 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1217 (grub_cmd_linux): Likewise.
1218
1219 2012-05-31 Christer Weinigel <christer@weinigel.se>
1220
1221 Fix EHCI low-speed.
1222
1223 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1224 (GRUB_EHCI_MULT_TWO): Likewise.
1225 (GRUB_EHCI_MULT_THREE): Likewise.
1226 (GRUB_EHCI_CMASK_MASK): New enum value.
1227 (GRUB_EHCI_SMASK_MASK): Likewise.
1228 (GRUB_EHCI_CMASK_OFF): Likewise.
1229 (GRUB_EHCI_SMASK_OFF): Likewise.
1230 (grub_ehci_pci_iter): Enable periodic schedule.
1231 (grub_ehci_parse_notrun): Likewise.
1232 (grub_ehci_restore_hw): Likewise.
1233 (grub_ehci_setup_qh): Set flags for low speed transfers.
1234 (grub_ehci_find_qh): Use periodic list for low speed.
1235 (grub_ehci_setup_transfer): Check periodic queue as well.
1236 (grub_ehci_check_transfer): Likewise.
1237 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1238
1239 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1240
1241 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1242 parameter is used.
1243
1244 2012-05-31 Peter Jones <pjones@redhat.com>
1245
1246 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1247 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1248 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1249
1250 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1253 uninited variable. Allocate at least setup_sects.
1254
1255 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 Fix handling of EFI with big memory maps.
1258
1259 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1260 (real_mode_mem): Likewise.
1261 (real_mode_target): Likewise.
1262 (real_mode_pages): Likewise.
1263 (prot_mode_pages): Likewise.
1264 (linux_params): New var.
1265 (linux_cmdline): Likewise.
1266 (free_pages): Don't set real mode variables.
1267 (allocate_pages): Don't allocate real mode memory.
1268 (grub_e820_add_region): Remove the limit.
1269 (grub_linux_boot): Allocate and copy real mode memory.
1270 (grub_linux_unload): Free linux_cmdline.
1271 (grub_cmd_linux): Use temporary storage for parameters.
1272 (grub_cmd_initrd): Likewise.
1273 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
1274 (linux_kernel_params): Make it 1K big.
1275
1276 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 * Makefile.util.def: Remove -Wno-format.
1279 * grub-core/Makefile.core.def: Likewise.
1280
1281 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * tests/cmp_unit_test.c: Add missing failure message.
1284 * tests/example_unit_test.c: Likewise.
1285 * tests/printf_unit_test.c: Likewise.
1286
1287 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
1290 relaxation of protective MBR requirements.
1291
1292 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * configure.ac: Add condition for COND_HOST_XNU.
1295 * Makefile.util.def (10_xnu): New script.
1296 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
1297
1298 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
1301 objconv bug.
1302
1303 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
1306 Binary on other platforms stays identical.
1307
1308 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
1311 Apple.
1312
1313 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
1316
1317 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
1320 rather than defining size_t ourselves to avoid conflict.
1321
1322 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
1325 initialisation to avoid __bzero reference.
1326
1327 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
1330 version.
1331 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
1332 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
1333 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
1334 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
1335 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
1336
1337 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
1340 * grub-core/kern/misc.c: Likewise.
1341 * grub-core/loader/i386/xnu.c: Likewise.
1342 * include/grub/i386/tsc.h: Likewise.
1343 * include/grub/symbol.h: Likewise.
1344
1345 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1346
1347 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
1348 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
1349 on older compiler.
1350
1351 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1354 Implement Apple flavour.
1355 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
1356
1357 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
1360 (memmove) [__APPLE__]: Likewise.
1361 (memcpy) [__APPLE__]: Likewise.
1362 (memset) [__APPLE__]: Likewise.
1363 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
1364 (memmove) [__APPLE__]: Likewise.
1365 (memcpy) [__APPLE__]: Likewise.
1366 (memset) [__APPLE__]: Likewise.
1367
1368 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
1371 dependency discard.
1372
1373 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/normal/main.c (read_config_file): Provide config_file and
1376 config_directory.
1377 * util/grub.d/41_custom.in: Use config_directoy when available.
1378
1379 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
1382 (grub_bfs_dir): Likewise.
1383
1384 2012-05-27 Peter Jones <pjones@redhat.com>
1385
1386 The old code gives arguments to a printf function which can't work
1387 correctly, and the compiler complains.
1388
1389 * grub-core/tests/example_functional_test.c (example_test): Add
1390 missing text.
1391 * grub-core/tests/lib/test.c (add_failure): Rewrite.
1392 * include/grub/test.h (grub_test_assert_helper): New declaration.
1393 (grub_test_assert): Use grub_test_assert_helper.
1394
1395 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
1398 (exfctest): ... this to avoid overlong filenames.
1399 All users updated.
1400
1401 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Handle "." and ".." on squashfs.
1404
1405 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
1406 Make inode numbers into stack.
1407 (grub_squash_read_symlink): Use stack.
1408 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
1409 (make_root_node): Fill stack.
1410 (grub_squash_open): Use stack.
1411
1412 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
1415 freeing.
1416
1417 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
1420 stderr on test calls.
1421
1422 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
1425
1426 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
1429
1430 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
1433 "..".
1434
1435 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
1438 (grub_hfsplus_iterate_dir): Add "." and "..".
1439
1440 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * grub-core/fs/cpio.c (canonicalize): Handle "..".
1443 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
1444
1445 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
1448 (find_path): Handle "." and "..".
1449
1450 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
1453 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
1454 (grub_affs_iterate_dir): Handle hardlinks.
1455
1456 2012-05-26 Matthew Garrett <mjg@redhat.com>
1457
1458 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
1459 (grub_efi_console_fini): Likewise.
1460 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
1461 (grub_video_gop_fill_mode_info): Rename to ...
1462 (grub_video_gop_fill_real_mode_info): ... this.
1463 (grub_video_gop_fill_mode_info): New function.
1464 (grub_video_gop_setup): Setup double framebuffer.
1465 (grub_video_gop_get_info_and_fini): Use original framebuffer.
1466 Free offscreen.
1467 (grub_video_gop_swap_buffers): Copy framebuffer.
1468 (grub_video_gop_fini): Free offscreen buffer.
1469 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
1470 New enum.
1471 (grub_efi_gop_blt_pixel): New struct.
1472
1473 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * gentpl.py: Remove error disabling for objconv.
1476
1477 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * configure.ac: Remove -Wunitialized as it's not available on older
1480 compilers.
1481
1482 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 Fix extent overflow comparator.
1485
1486 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
1487 (grub_hfsplus_read_block): Set type.
1488 (grub_hfsplus_cmp_extkey): Compare type.
1489
1490 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
1493
1494 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
1497 than 0.
1498
1499 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
1502 (dejavu_bold_14.pf2): New target.
1503
1504 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * configure.ac: Fix djvu font detection.
1507
1508 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
1511 ext* instead of ext2.
1512
1513 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
1516 name with \0.
1517
1518 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
1519
1520 * docs/grub-dev.texi: Remove dot from .png.
1521
1522 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
1525 protective entry in any slot.
1526 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
1527 if protective entry is found in any slot.
1528
1529 Protective entry in non-first slot make no sense but is a widespread
1530 brain damage.
1531
1532 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
1535
1536 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
1539 with old reiserfs.
1540 (grub_reiserfs_open): Don't free root.
1541
1542 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
1545 after freeing for safety.
1546
1547 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
1550 Reported by: Jordan Uggla.
1551
1552 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
1553
1554 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
1555 actual implementation. Specifically, clarify that the grub menu will
1556 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
1557 passed.
1558
1559 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
1560
1561 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
1562 of r0.
1563
1564 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 Remove unjustified hard dependency of normal.mod on gfxterm.
1567
1568 * include/grub/term.h (grub_term_output): New member fullscreen.
1569 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
1570 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
1571 (grub_gfxterm): Set .fullscreen.
1572 * grub-core/normal/menu.c (menu_init): Use fullscreen.
1573 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
1574
1575 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
1578 mentioning possible problems with non-ASCII (non-compliant) ISOs.
1579 Mention case-insensitive AFFS, SFS and JFS.
1580
1581 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
1584
1585 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1588 a bad FS.
1589
1590 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
1593 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
1594
1595 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
1598 (grub_jfs_mount): Fill caseins.
1599 (grub_jfs_find_file): Respect caseins.
1600
1601 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
1604 through UTF-16.
1605
1606 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
1609 New argument origpath. All users updated.
1610
1611 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
1614 (read_attr): Ensure that we read start of possibly compressed block.
1615
1616 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
1619 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
1620 All users updated.
1621
1622 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
1625 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
1626 (dejavu.pf2): Replace with ...
1627 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
1628 this.
1629
1630 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * util/grub.d/20_linux_xen.in: Add missing line.
1633
1634 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
1637 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
1638 (grub_utf16_to_utf8): Likewise.
1639
1640 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
1643 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
1644 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1645 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
1646 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1647 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
1648
1649 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1652 a bad FS.
1653
1654 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * grub-core/fs/udf.c (read_string): Bail out on size=0.
1657 (grub_udf_read_symlink): Handle read_string failure.
1658
1659 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
1662 comment.
1663
1664 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 Fix handling of UDF symlinks.
1667
1668 * grub-core/fs/udf.c (read_string): New argument outbuf.
1669 All users updated.
1670 (grub_ufs_read_symlink): Rename to ...
1671 (grub_udf_read_symlink): ... this. All users updated.
1672 Handle symlinks with more than one component.
1673
1674 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
1677 symlinks. Replace leading colon with a slash.
1678
1679 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
1682 filename.
1683
1684 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
1687 match in inner node.
1688
1689 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
1692 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
1693 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
1694 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
1695 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
1696 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
1697 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
1698 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
1699 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
1700
1701 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 Use grub-probe and not cmp to check that disk is empty.
1704
1705 * util/grub-install.in: Use grub-probe for zero-check.
1706 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
1707 (probe): Handle PRINT_ZERO_CHECK.
1708 (argp_parser): Handle -t zero_check.
1709
1710 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 Flush block cache on adding disk to device map.
1713
1714 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
1715 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
1716 adding.
1717 (read_device_map): Likewise.
1718 (open_device): Flush on opening.
1719
1720 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
1723 (handle_symlink): Fix off-by-one error.
1724 Canonicalize the target.
1725 (grub_cpio_dir): Canonicalize the name.
1726 Fix memory leak.
1727 Set directory.
1728 (grub_cpio_open): Canonicalize the name.
1729
1730 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
1733 handling.
1734
1735 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
1738 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
1739
1740 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
1743 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
1744 All users updated.
1745
1746 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
1749 counterpart.
1750
1751 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Fix UFS1 big file support.
1754
1755 * grub-core/fs/ufs.c (INODE): Removed.
1756 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
1757 64-bit.
1758 (INODE_MODE): Simplify.
1759 (grub_ufs_inode): Use uint64_t for size and not int64_t.
1760 (grub_ufs_lookup_symlink): Don't use INODE.
1761
1762 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 Fix minixfs with non-power-of-two blocks since it's supported by minix.
1765
1766 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
1767 (grub_minix_data): Replace log_block_size with block_size.
1768 (grub_minix_read_file): Use block_size but avoid 64-bit division.
1769 (grub_minix_mount): Fill block_size.
1770
1771 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 * configure.ac: Bump to beta5.
1774
1775 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 Fix wrapped HFS+ handling.
1778
1779 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
1780 blocks_start. All users updated.
1781 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
1782 wrapping offset.
1783 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
1784
1785 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Fix long symlinks on reiserfs.
1788
1789 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
1790 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
1791 (grub_reiserfs_iterate_dir): Save size for non-directories.
1792 (grub_reiserfs_open): Don't reread stat block as we already know the
1793 size.
1794 (grub_reiserfs_read): Split into...
1795 (grub_reiserfs_read_real): ... and ...
1796 (grub_reiserfs_read): ...this.
1797
1798 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 Fix non-indexed JFS.
1801
1802 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
1803 (grub_jfs_data): New field namecomponentlen.
1804 (grub_jfs_mount): Fill namecomponentlen.
1805 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
1806
1807 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
1810 * tests/grub_script_echo1.in: Add tests.
1811
1812 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * util/grub-install.in: Ignore empty devicetree directory.
1815
1816 2012-05-08 Bean <bean123ch@gmail.com>
1817
1818 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
1819 All users updated.
1820 (free_rsm): Free header as well.
1821 (free_old_fragments): Fix memory leak.
1822 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
1823 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
1824 (destroy_pq): Likewise.
1825 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
1826
1827 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
1830 resulting hash as a precaution.
1831
1832 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
1835 '_' in variable names.
1836 * grub-core/net/net.c (grub_net_network_level_interface_register):
1837 Likewise.
1838
1839 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 Fix AFFS with non-512B blocks.
1842
1843 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
1844 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
1845 (grub_affs_data): Replace blocksize with log_blocksize.
1846 (grub_affs_read_block): Fix non-512B blocks.
1847 (grub_affs_read_symlink): Likewise.
1848 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
1849 (grub_affs_read): Fix non-512B blocks.
1850 (grub_affs_label): Likewise.
1851 (grub_affs_mtime): Likewise.
1852 (grub_affs_mount): Fix block detection routine.
1853
1854 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 Add filesystem mtime to AFFS.
1857
1858 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
1859 (aftime2ctime): New function.
1860 (grub_affs_dir): Use aftime2ctime.
1861 (grub_affs_label): Fix return value.
1862 (grub_affs_mtime): New function.
1863 (grub_affs_fs): Add mtime.
1864
1865 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
1868 UTF-8.
1869
1870 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
1873 UTF-8.
1874
1875 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
1878
1879 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
1882 flags.
1883 (FLAGS_CASE_SENSITIVE): New enum value.
1884 (cache_entry): New struct.
1885 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
1886 cache_size and cache.
1887 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
1888 Add log_blocksize and fshelp_flags.
1889 (grub_sfs_read_extent): Handle non-512 blocks.
1890 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
1891 (grub_sfs_read_file): Handle non-512 blocks.
1892 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
1893 fshelp_flags.
1894 (grub_sfs_read_symlink): Handle non-512 blocks.
1895 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
1896 (grub_sfs_dir): Free cache.
1897 (grub_sfs_close): Likewise.
1898
1899 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
1902 filesystems.
1903
1904 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
1907
1908 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
1911
1912 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
1915 (grub_sfs_read_extent): Likewise.
1916 (grub_sfs_read_block): Likewise.
1917 (grub_sfs_mount): Likewise.
1918 (grub_sfs_iterate_dir): Likewise.
1919 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
1920 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
1921
1922 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 Fix errors on compressed NTFS with 512B clusters.
1925
1926 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
1927 types.
1928 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
1929 not 0.
1930 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
1931 Relax check for inline extents.
1932 (ntfscomp): Return correct -1 on error and not 0.
1933
1934 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * util/grub-install.in: Fix handling of prefix containing spaces.
1937
1938 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
1941 (grub_squash_read_data): Fix offset byte-swapping.
1942
1943 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
1946 per common usage and preffered in several parts of code.
1947 (grub_memcmp): Likewise.
1948 (grub_strncmp): Likewise.
1949 * include/grub/misc.h (grub_strcasecmp): Likewise.
1950 (grub_strncasecmp): Likewise.
1951 * Makefile.util.def (cmp_test): New test.
1952 (grub_script_strcmp): Likewise.
1953 * tests/cmp_unit_test.c: New file.
1954 * tests/grub_script_strcmp.in: Likewise.
1955 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
1956
1957 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 * include/grub/pci.h: Move enums into no-asm part.
1960
1961 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
1964
1965 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1966
1967 * util/getroot.c (find_hurd_root_device): Try to make error message
1968 and comments to translators clearer.
1969
1970 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
1973
1974 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
1977 btrfs.
1978
1979 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 * docs/grub.cfg: Update.
1982
1983 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * docs/grub.texi (PXE): Remove not present variables.
1986
1987 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 * grub-core/net/net.c (defserver_set_env): New function.
1990 (defserver_get_env): Likewise.
1991 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
1992
1993 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
1996 entries.
1997
1998 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2001 * grub-core/kern/emu/hostdisk.c: Likewise.
2002
2003 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2004
2005 Handle hurd userspace partitions.
2006
2007 * util/getroot.c (find_hurd_root_device): New function.
2008 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2009
2010 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2013 names.
2014 Reported by: Bastian Blank.
2015
2016 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2019 crossing page boundary.
2020
2021 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 Fix B-tree search in BFS, especially in presence of non-ASCII
2024 characters.
2025
2026 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2027 (find_in_b_tree): Use standard bsearch + btree algorithm.
2028
2029 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2032 and so on.
2033
2034 2012-05-03 Matthew Garrett <mjg@redhat.com>
2035 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 Suspend broadcom cards in order to stop their DMA.
2038
2039 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2040 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2041 (pci): Don't build on x86 EFI.
2042 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2043 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2044 New function.
2045 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2046 stop_broadcom if running on EFI.
2047 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2048 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2049 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2050 (grub_pci_find_capability): New proto.
2051
2052 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * docs/grub.texi: Remove dot from the extension as it apparently
2055 doesn't work with some makeinfo versions.
2056
2057 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2060 with GRUB expectance.
2061
2062 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2065
2066 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2069 zero after directory block since last entry may be not 0-terminated if
2070 it ends on block boundary. Use continue instead of if spanning whole
2071 loop.
2072
2073 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Support 4K sectors UDF inline files.
2076
2077 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2078 (grub_udf_extended_file_entry): Likewise.
2079 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2080 All users updated.
2081 (get_fshelp_size): New function.
2082 (grub_udf_read_icb): Read whole block.
2083 (grub_udf_iterate_dir): Likewise.
2084 (grub_udf_dir): Likewise.
2085 (grub_udf_open): Likewise.
2086
2087 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2090
2091 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2092
2093 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2094 inline symlinks in addition to workaround.
2095
2096 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2099
2100 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2103
2104 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2105
2106 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2107
2108 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 Fix reiserfs big seek times.
2111
2112 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2113 exact. All users updated.
2114 (grub_reiserfs_read): Use nearest btree search for seeking.
2115 Fix return value on error.
2116
2117 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2120 entries.
2121 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2122 * docs/grub.texi: Update menuentry description.
2123
2124 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2127 crash when embedding onto filesystem.
2128
2129 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2132 name.
2133
2134 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2137
2138 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2141 commit.
2142
2143 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2144 2012-05-01 Bean <bean123ch@gmail.com>
2145
2146 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2147
2148 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2151 Special behaviour for len = 0 to read whole file isn't used anywhere and
2152 can cause buffer ovewrflows in several places.
2153
2154 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2157
2158 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 Handle RAIDZ on non-512B sectors.
2161
2162 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2163 max_children_ashift.
2164 (fill_vdev_info_real): Fill max_children_ashift.
2165 (read_device): Use max_children_ashift.
2166
2167 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2170
2171 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2174 disk names.
2175 * docs/grub.texi: Update device.map parts.
2176
2177 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Don't scan into non-diskfilter devices having diskfilter names.
2180
2181 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2182 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2183 handling.
2184 (scan_disk_hook): New function.
2185
2186 2012-04-29 Bean <bean123ch@gmail.com>
2187
2188 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2189 allocation.
2190
2191 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2192
2193 * configure.ac: Detect starfield theme font path
2194 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2195
2196 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2199 geometry on serial consoles.
2200
2201 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2204 because of network consoles.
2205
2206 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2209 handling.
2210
2211 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2214 falls on Q syndrom.
2215
2216 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2219 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2220
2221 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2224 Allocate at lest 8192 for temporary buffer as required for lzo.
2225
2226 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2229 to cluster_bits, since it's already added in.
2230 (grub_fat_read_data): Likewise.
2231
2232 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2235 as long as cluster size is multiple of 512 bytes.
2236
2237 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * util/grub-mkrescue.in: Fix locale directory.
2240
2241 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * grub-core/kern/emu/hostdisk.c (map): Make static.
2244
2245 2012-04-23 Bean <bean123ch@gmail.com>
2246
2247 * util/grub-fstest.c (fstest): Add missing break.
2248
2249 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2250
2251 Fix hurd build.
2252
2253 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2254 not define nr variable.
2255 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2256 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2257 grub_find_device): Do not define.
2258
2259 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 Fix kfreebsd compile and behaviour.
2262
2263 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2264 format-security.
2265 * util/getroot.c: Fix wait.h include.
2266 (grub_guess_root_devices): Error if grub_find_device fails.
2267 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
2268 (grub_util_get_dev_abstraction): Likewise.
2269 (grub_util_pull_device): Likewise.
2270 (grub_util_get_grub_dev): Likewise.
2271 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
2272
2273 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 Fix and unify wholedisk detection.
2276
2277 * util/getroot.c (convert_system_partition_to_system_disk): New argument
2278 is_part. All users updated.
2279 (device_is_wholedisk): Removed.
2280 (grub_util_biosdisk_get_grub_dev): Use is_part.
2281
2282 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
2285 mode.
2286
2287 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * configure.ac: Bump to beta4.
2290
2291 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
2294 --fs-uuid --set UUID syntax.
2295
2296 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
2299 disunification.
2300
2301 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
2304
2305 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
2306
2307 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2308
2309 2012-04-18 Mike Gilbert <floppym@gentoo.org>
2310
2311 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
2312
2313 2012-04-18 Bean <bean123ch@gmail.com>
2314
2315 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
2316 place.
2317
2318 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
2321 users updated.
2322 (grub_util_biosdisk_read): Handle Linux partitions not exactly
2323 corresponding to GRUB partitions.
2324 (grub_util_biosdisk_write): Likewise.
2325
2326 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 Scan mdraid before LVM.
2329
2330 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
2331 (grub_diskfilter_register_front): ... this.
2332 (grub_diskfilter_register_back): New function.
2333 All users of grub_diskfilter_register updated.
2334
2335 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * util/grub-install.in: Fix an automatic target detection bug.
2338
2339 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * util/grub-install.in: New option --efi-directory.
2342
2343 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
2346 boot services if we have no other choice.
2347
2348 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * util/grub-mknetdir.in: Rename --override-directory to --directory and
2351 document it.
2352 * tests/util/grub-shell.in: Update to --directory.
2353
2354 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
2357
2358 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
2361 (grub_minix_read_file): Likewise.
2362 (grub_minix_read_inode): Likewise.
2363 (grub_minix_find_file): Likewise.
2364 (grub_minix_dir): Likewise.
2365
2366 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * util/grub-setup.c (setup): Fix partition handling and blocklist
2369 check.
2370
2371 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
2374 redundant buggy overlap check.
2375
2376 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
2379 and grub-mknetdir.
2380
2381 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
2384 kh.loadflags on pre-2.00 kernels.
2385
2386 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 Terminate UNDI and PXE before launching the payload to avoid problems
2389 with DMA.
2390
2391 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
2392 (grub_loader_flags): ... this. All users updated.
2393 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
2394 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
2395 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
2396 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
2397 function.
2398 (grub_pxe_restore): Likewise.
2399 (fini_hnd): New var.
2400 (GRUB_MOD_INIT): Register shutdown hook.
2401 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
2402 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
2403 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
2404 (grub_loader_set): Rename second argument to flags.
2405
2406 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
2409 written bytes.
2410 (grub_get_num_of_utf8_bytes): New function.
2411 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
2412 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
2413 executing it.
2414 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
2415 (grub_ucs4_to_utf8): Change return type.
2416
2417 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2418
2419 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
2420 warning.
2421 * grub-core/fs/bfs.c (hop_level): Likewise.
2422 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
2423
2424 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/lib/adler32.c: Recode due to license unclearness.
2427
2428 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
2431 (test_header): Likewise.
2432
2433 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 Fix --help formatting.
2436
2437 * util/grub-mkconfig_lib.in (print_option_help): New function.
2438 (grub_fmt): Likewise.
2439 * util/grub-install.in: Use print_option_help and grub_fmt.
2440 * util/grub-kbdcomp.in: Likewise.
2441 * util/grub-mkconfig.in: Likewise.
2442 * util/grub-mknetdir.in: Likewise.
2443 * util/grub-mkrescue.in: Likewise.
2444 * util/grub-mkstandalone.in: Likewise.
2445 * util/grub-reboot.in: Likewise.
2446 * util/grub-set-default.in: Likewise.
2447 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2448
2449 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * linguas.sh: Remove autogenerated *.po.
2452
2453 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * po/README: Move language fetcing to ...
2456 * linguas.sh: ... here.
2457 * po/README: Point to linguas.sh.
2458
2459 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * po/README: Exclude ko.po due to disclaimer problems.
2462
2463 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
2466 len = 0.
2467 (grub_gettext_translate_real): Handle 0th string.
2468 (grub_gettext_translate): Ensure that "" isn't translated.
2469
2470 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
2473 TRANSLATORS comment.
2474 (grub_diskfilter_print_partmap): Propagate changing of error into
2475 warning.
2476
2477 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
2480 to uint64_t to prevent overflow.
2481 (grub_diskfilter_lv): Increase start_extent and extent_count
2482 to uint64_t to prevent overflow.
2483
2484 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * configure.ac: Increase version.
2487
2488 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
2491
2492 * po/Rules-translit: New file.
2493 * po/arabic.sed: Likewise.
2494 * po/cyrillic.sed: Likewise.
2495 * po/greek.sed: Likewise.
2496 * po/hebrew.sed: Likewise.
2497 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
2498 * po/Makefile.in.in: Add extra_dist4.
2499
2500 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 Handle big-endian minixfs (fixes minixfs tests on bigendian).
2503
2504 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
2505 modify names. Introduce MODE_BIGENDIAN.
2506 * grub-core/fs/minix_be.c: New file.
2507 * grub-core/fs/minix2_be.c: Likewise
2508 * grub-core/fs/minix3_be.c: Likewise.
2509 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
2510 minix3_be.
2511 * grub-core/Makefile.core.def (minix_be): New module.
2512 (minix2_be): Likewise.
2513 (minix3_be): Likewise.
2514
2515 2012-04-01 Felix <email@hamburg.de>
2516
2517 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
2518 (devs): Add MBP 2011.
2519
2520 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
2523
2524 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/normal/cmdline.c (print_completion): New field
2527 prompt_len.
2528 (grub_cmdline_get): Handle width properly.
2529
2530 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * grub-core/commands/lsacpi.c (options): Add missing terminator.
2533
2534 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
2537 after 29th of February.
2538
2539 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Fix exfat endianness handling.
2542
2543 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
2544 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
2545 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
2546 Byte-swap utf16 when necessary.
2547 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
2548
2549 2012-03-31 Anton Blanchard <anton@samba.org>
2550 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 Fix btrfs endianness handling.
2553
2554 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
2555 (lower_bound): Make root uint64_t. Use root in le.
2556 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
2557 (find_path): Fix template key init.
2558 (grub_btrfs_dir): Fix mtime byteswap.
2559 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
2560
2561 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
2564 recursion_depth. Break infinite resursions. All users updated.
2565
2566 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
2569 after free.
2570 Reported by: Peter Jones.
2571
2572 2012-03-31 Anton Blanchard <anton@samba.org>
2573
2574 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
2575 8 bit values.
2576
2577 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * util/grub-install.in: Fix nvram call for PreP.
2580
2581 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
2584 the error when some elements are missing into a warning.
2585
2586 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2589
2590 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
2591
2592 * docs/grub.texi (Invoking grub-probe): New section.
2593 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
2594
2595 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 Fix tab and wide character handling in editor and menu.
2598
2599 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
2600 agglomerate control characters with combining marks.
2601 (bidi_line_wrap): Allow break on tab.
2602 (grub_unicode_get_comb_start): New function.
2603 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
2604 and tab correctly.
2605 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
2606 with a space.
2607 * grub-core/normal/term.c (print_ucs4_terminal): New argument
2608 fixed_tab_size. All users updated.
2609 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
2610 (grub_term_getcharwidth): Handle \t.
2611 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
2612 and copy.
2613
2614 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 Handle big-endian mdraid.
2617
2618 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
2619 * grub-core/Makefile.core.def (mdraid09_be): New module.
2620 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
2621 rather than grub_le_to_cpu* and grub_cpu_to_le*.
2622 * grub-core/disk/mdraid_linux_be.c: New file.
2623
2624 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
2627
2628 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
2631 missing quotes which caused confusion among translators.
2632
2633 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * util/grub-mkconfig_lib.in: Fix typo.
2636
2637 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
2640 spaces.
2641 * tests/grub_script_leading_whitespace.in: New file.
2642 * Makefile.util.def (grub_script_leading_whitespace): New test.
2643
2644 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
2647 to work.
2648
2649 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
2652 starts with control character.
2653
2654 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
2657 overflow.
2658 (grub_gdb_outbuf): Likewise.
2659
2660 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
2663 zero terminator. Fixes a crash.
2664
2665 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
2668 beyond 4 GiB.
2669 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
2670 images independently of preffered adderss field.
2671
2672 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
2675 * grub-core/commands/regexp.c: Likewise.
2676 * grub-core/loader/i386/linux.c: Likewise.
2677 * grub-core/partmap/msdos.c: Likewise.
2678 * grub-core/script/execute.c: Likewise.
2679 * grub-core/term/gfxterm.c: Likewise.
2680
2681 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 Add variable parsing in $"..." and fix several mismatches with bash.
2684
2685 * Makefile.util.def (grub_script_gettext): New test.
2686 * grub-core/script/execute.c (parse_string): New function.
2687 (gettext_append): Likewise.
2688 (grub_script_arglist_to_argv): Use gettext_append.
2689 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
2690 * tests/grub_script_gettext.in: New file.
2691
2692 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 Fix handling of leading spaces in scripts.
2695
2696 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
2697 spaces.
2698 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
2699 other than skipping \r. All users updated.
2700 * tests/grub_script_echo1.in: Add space-related tests.
2701 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
2702
2703 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2706
2707 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * configure.ac: Bump up the version to beta2.
2710
2711 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 Fix gettext reload bugs (e.g. inability to disable gettext
2714 once enabled).
2715
2716 * grub-core/gettext/gettext.c: Encapsulate all static variables in
2717 main_context and secondary_context. All functions updated.
2718 (grub_gettext_translate): Rename to ...
2719 (grub_gettext_translate_real): ... this. Return NULL on failed
2720 translate.
2721 (grub_gettext_translate): Handle secondary context.
2722 (grub_gettext_delete_list): Close file and zero-out the context.
2723 (grub_mofile_open): Don't call grub_gettext_delete_list.
2724 Don't close file.
2725 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
2726 if locale="" to avoid pointless error message.
2727 (grub_gettext_env_write_lang): Update lang even if load fails.
2728 Handle secondary context.
2729 (grub_gettext_reread_prefix): New function.
2730 (read_main): Likewise.
2731 (read_secondary): Likewise.
2732 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
2733 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
2734 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
2735 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
2736
2737 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * configure.ac: Decrease warning level to avoid spurious warnings and
2740 to be able to compile with GCC 4.2.
2741 * Makefile.util.def: Remove -Wno-error=logical-op.
2742
2743 2012-03-10 William Bittner <william.bittner@gmail.com>
2744
2745 * util/import_unicode.py: Add missing brackets around string for
2746 python 3 support.
2747
2748 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 Fix efi chainloader on network root.
2751
2752 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
2753 network devices.
2754 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
2755 New function.
2756
2757 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
2760 unused show_text member.
2761 * docs/grub.texi: Document "text" property.
2762
2763 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
2766 in dprintf.
2767
2768 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 Fix IMSM handling on Fedora.
2771
2772 * util/getroot.c (grub_util_is_imsm): New function.
2773 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
2774
2775 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * Makefile.am: Strip gold section.
2778 * conf/Makefile.common: Likewise.
2779 * gentpl.py: Likewise.
2780 * grub-core/Makefile.core.def: Likewise.
2781 * grub-core/genmod.sh.in: Likewise.
2782
2783 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
2786 * util/grub.d/20_linux_xen.in: Likewise.
2787 Based on Debian patch.
2788
2789 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * util/grub.d/10_linux.in: Fix syntax error resulting in
2792 Richard Laager's patch.
2793 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
2794
2795 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
2798 dependencies.
2799
2800 2012-03-10 Richard Laager <rlaager@wiktel.com>
2801
2802 * util/grub.d/10_linux.in: Fix ZFS root passing.
2803
2804 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
2807 * grub-core/commands/xnu_uuid.c: Likewise.
2808 * grub-core/loader/efi/appleloader.c: Likewise.
2809 * grub-core/script/execute.c: Likewise.
2810 * grub-core/script/main.c: Likewise.
2811 * util/grub-mkfont.c: Likewise.
2812
2813 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * util/grub-mkfont.c (options): Use more appropriate "select" that
2816 "set" for face index.
2817
2818 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * util/grub-editenv.c (options): Gettextize command summaries.
2821
2822 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
2825 "out of memory" error messagge.
2826
2827 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
2830 of diskfilter for diskfilter on diskfilter support.
2831
2832 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
2835
2836 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 * util/grub-install.in: Check for themes/starfield/theme.txt and not
2839 themes/starfield.
2840
2841 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
2844
2845 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
2848
2849 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
2852 of error message.
2853
2854 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
2857
2858 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
2861 message.
2862 * util/grub-install.in: Fix and gettextize error message.
2863
2864 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
2867 Gettextize.
2868 * util/grub-mount.c (options): Likewise.
2869
2870 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
2873 gettextize.
2874 * grub-core/commands/search_wrap.c (options): Likewise.
2875
2876 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
2879
2880 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
2883 size calculation.
2884 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
2885 none is known.
2886
2887 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
2890 "temporary" since it's used in identifier and is limited in space.
2891
2892 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * po/POTFILES.in: Regenerate. Include *.h since they contain
2895 translatable strings as well.
2896
2897 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2900 byte-swap on big-endian.
2901 Reported by: Lennart Sorensen
2902
2903 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
2906 (allocate_pages): Improve dprintf.
2907 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
2908 code32_start. Fill code32_start and kernel_alignment in params.
2909 (grub_cmd_initrd): Use prot_init_space.
2910
2911 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
2914
2915 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * util/grub-install.in: Add missing dot at the end of sentence.
2918
2919 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
2922 * grub-core/commands/videotest.c: Likewise.
2923 * grub-core/loader/i386/linux.c: Likewise.
2924
2925 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
2928 sentence.
2929 Reported by: Milo Casagrande.
2930
2931 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
2934 * grub-core/commands/gptsync.c: Likewise.
2935 * grub-core/commands/hashsum.c: Likewise.
2936 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2937 * grub-core/commands/legacycfg.c: Likewise.
2938 * grub-core/io/gzio.c: Likewise.
2939 * grub-core/net/net.c: Likewise.
2940 * grub-core/term/gfxterm.c: Likewise.
2941 * grub-core/term/terminfo.c: Likewise.
2942 * grub-core/tests/test_blockarg.c: Likewise.
2943 * grub-core/video/video.c: Likewise.
2944 * util/grub-install.in: Likewise.
2945 * util/grub-mkfont.c: Likewise.
2946
2947 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
2950
2951 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/commands/search_wrap.c (options): Fix a typo.
2954 Reported by: David Prévot.
2955
2956 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
2959 description.
2960
2961 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * util/grub-script-check.c (main): Fix a syntax error message which was
2964 unclear.
2965
2966 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
2969
2970 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
2973 messages.
2974
2975 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
2978 without argument.
2979 * util/grub-mount.c (options): Likewise.
2980
2981 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
2984
2985 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * grub-core/net/http.c: Add TRANSLATORS comments.
2988 * grub-core/normal/cmdline.c: Likewise.
2989 * grub-core/normal/misc.c: Likewise.
2990 * grub-core/partmap/msdos.c: Likewise.
2991 * grub-core/parttool/msdospart.c: Likewise.
2992 * grub-core/script/execute.c: Likewise.
2993 * grub-core/script/main.c: Likewise.
2994 * grub-core/term/terminfo.c: Likewise.
2995 * grub-core/video/bitmap.c: Likewise.
2996 * util/grub-install.in: Likewise.
2997 * util/grub-mkimage.c: Likewise.
2998 * util/grub-mklayout.c: Likewise.
2999 * util/grub-setup.c: Likewise.
3000
3001 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3004 with similar messages in grub-fstest.
3005
3006 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * util/grub-install.in: Unify "option requires an argument" message
3009 with similar messages in other files.
3010 * util/grub-mkconfig.in: Likewise.
3011
3012 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * util/grub-set-default.in: Replace printf with gettext_printf (the
3015 string in in question is already translated from grub-reboot)
3016
3017 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * configure.ac: Bump up the version to beta1.
3020
3021 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3024 case when min_align = 0.
3025
3026 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3029 and fix a case when line_start overflows.
3030
3031 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * util/grub-reboot.in (usage): Mention id posibility.
3034 * util/grub-set-default.in (usage): Likewise.
3035
3036 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3039 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3040 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3041 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3042 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3043 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3044 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3045
3046 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * grub-core/commands/menuentry.c (options): Remove
3049 GRUB_ARG_OPTION_REPEATABLE.
3050 Reported by: Andreas Vogel
3051
3052 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3053
3054 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3055
3056 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3057
3058 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3059 error.
3060
3061 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Use sort -V by the idea of Georgi Georgiev.
3064
3065 * util/grub-mkconfig_lib.in (version_sort): New function.
3066 (version_test_numeric): Use version_sort.
3067
3068 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 Use submenus in grub-mkconfig.
3071
3072 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3073 * util/grub-mkconfig_lib.in (grub_quote): New function.
3074 (gettext_printf): Use gettext and not gettext_quoted to fix several
3075 messages.
3076 * util/grub.d/10_hurd.in: Use submenus.
3077 * util/grub.d/10_kfreebsd.in: Likewise.
3078 * util/grub.d/10_linux.in: Likewise.
3079 * util/grub.d/10_netbsd.in: Likewise.
3080 * util/grub.d/20_linux_xen.in: Likewise.
3081 * util/grub.d/30_os-prober.in: Likewise.
3082 * util/grub.d/10_illumos.in: Add missing quoting.
3083 * util/grub.d/10_windows.in: Likewise.
3084
3085 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 Fix menu title instability bug.
3088
3089 * grub-core/commands/menuentry.c (options): New option --id.
3090 (grub_normal_add_menu_entry): New argument id. All users updated.
3091 (grub_cmd_menuentry): Handle --id.
3092 (grub_menu_init): Accept unknown arguments.
3093 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3094 feature_menuentry_options.
3095 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3096 saved_entry.
3097 (get_entry_number): Match with id as well.
3098 * include/grub/menu.h (grub_menu_entry): New member id.
3099 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3100 * util/grub.d/00_header.in: Define menuentry_id_option.
3101 * util/grub.d/10_hurd.in: Define id.
3102 * util/grub.d/10_illumos.in: Likewise.
3103 * util/grub.d/10_kfreebsd.in: Likewise.
3104 * util/grub.d/10_linux.in: Likewise.
3105 * util/grub.d/10_netbsd.in: Likewise.
3106 * util/grub.d/10_windows.in: Likewise.
3107 * util/grub.d/20_linux_xen.in: Likewise.
3108 * util/grub.d/30_os-prober.in: Likewise.
3109
3110 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3113 "scope" with "body".
3114
3115 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3118 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3119 prot_size and prot_file_size.
3120
3121 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3124 All users updated. If easily=1 require raid-5/-6 to be full.
3125 (is_node_readable): Likewise.
3126 (scan_devices): Scan incomplete but readable LVs at the end.
3127 (grub_diskfilter_memberlist): Pull missing devices.
3128 (insert_array): Skip scanning until device is complete or scan is
3129 done otherwise.
3130 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3131 check.
3132 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3133 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3134
3135 2012-03-03 Matthew Garrett <mjg@redhat.com>
3136 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 Avoid EFI boot services when loading Linux.
3139
3140 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3141 avoid_efi_bootservices. All users updated.
3142 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3143 argument avoid_efi_bootservices. All users updated.
3144 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3145 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3146 align, min_align, relocatable, prefered_address. All users updated.
3147 Allocate avoiding boot services if kernel is relocatable.
3148 (grub_cmd_linux): Check if kernel is relocatable.
3149 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3150 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3151 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3152 avoid_efi_boot_services.
3153 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3154 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3155 (linux_kernel_params): Likewise.
3156
3157 2012-03-03 Matthew Garrett <mjg@redhat.com>
3158 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 Use EDID on EFI.
3161
3162 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3163 datasize_out.
3164 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3165 modes. Set gop_handle.
3166 (grub_video_gop_get_edid): New function.
3167 (grub_gop_get_preferred_mode): Likewise.
3168 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3169 (grub_video_efi_gop_adapter): Set .get_edid.
3170 * include/grub/efi/edid.h: New file.
3171 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3172
3173 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3174
3175 * util/grub-install.in: Load efivars unconditionally.
3176
3177 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * po/Rules-piglatin: Change suffix from .po-update-en to
3180 .po-update-en-piglatin.
3181
3182 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 Add a pig farm.
3185
3186 * po/piglatin.sed: New file.
3187 * po/en@piglatin.header: Likewise.
3188 * po/Rules-piglatin: Likewise.
3189 * po/README: Add en@piglatin to autogenerated languages.
3190
3191 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3194 "Command for ...".
3195 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3196 "Check" since we don't check anything.
3197 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3198 is 64-bit one.
3199 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3200 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3201 (grub_md_sha512_real): Likewise.
3202
3203 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/commands/gptsync.c: Fix typographic quoting.
3206 * grub-core/commands/ieee1275/suspend.c: Likewise.
3207 * grub-core/commands/parttool.c: Likewise.
3208 * grub-core/commands/search_wrap.c: Likewise.
3209 * grub-core/commands/videoinfo.c: Likewise.
3210 * grub-core/gfxmenu/gui_label.c: Likewise.
3211 * grub-core/hello/hello.c: Likewise.
3212 * grub-core/kern/emu/main.c: Likewise.
3213 * grub-core/net/net.c: Likewise.
3214 * grub-core/normal/menu.c: Likewise.
3215 * grub-core/normal/menu_text.c: Likewise.
3216 * grub-core/normal/misc.c: Likewise.
3217 * util/grub-editenv.c: Likewise.
3218 * util/grub-install.in: Likewise.
3219 * util/grub-kbdcomp.in: Likewise.
3220 * util/grub-mkconfig.in: Likewise.
3221 * util/grub-mknetdir.in: Likewise.
3222 * util/grub-mkrescue.in: Likewise.
3223 * util/grub-mkstandalone.in: Likewise.
3224 * util/grub-reboot.in: Likewise.
3225 * util/grub-set-default.in: Likewise.
3226 * util/grub-setup.c: Likewise.
3227 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3228
3229 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3232 * grub-core/commands/keystatus.c: Likewise.
3233 * grub-core/commands/loadenv.c: Likewise.
3234 * grub-core/commands/probe.c: Likewise.
3235 * grub-core/commands/regexp.c: Likewise.
3236 * grub-core/commands/true.c: Likewise.
3237 * grub-core/commands/videoinfo.c: Likewise.
3238 * grub-core/disk/cryptodisk.c: Likewise.
3239 * grub-core/disk/ldm.c: Likewise.
3240 * grub-core/disk/loopback.c: Likewise.
3241 * grub-core/disk/luks.c: Likewise.
3242 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3243 * grub-core/kern/disk.c: Likewise.
3244 * grub-core/kern/emu/hostdisk.c: Likewise.
3245
3246 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3249 * util/grub-install.in: Add missing quote in the comment.
3250
3251 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3254 * grub-core/commands/lsmmap.c: Likewise.
3255 * grub-core/commands/minicmd.c: Likewise.
3256 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3257 * grub-core/commands/regexp.c: Likewise.
3258 * grub-core/gdb/gdb.c: Likewise.
3259 * grub-core/term/gfxterm.c: Likewise.
3260 * util/grub-mkconfig.in: Likewise.
3261 * util/grub-mkfont.c: Likewise.
3262 * util/grub-mklayout.c: Likewise.
3263 * util/grub-mknetdir.in: Likewise.
3264 * util/grub-mkrescue.in: Likewise.
3265 * util/grub.d/30_os-prober.in: Likewise.
3266
3267 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
3270 with "Direct color" and "Packed" with "Packed pixel".
3271 (grub_cmd_videoinfo): Simplify legend.
3272
3273 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3276 absolutely unclear error message.
3277
3278 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * util/grub-mkstandalone.in: Remove confusing leftover print.
3281
3282 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
3285 comments.
3286 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
3287 (GRUB_MOD_INIT): Likewise.
3288 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
3289 VGA mode.
3290 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
3291 comments.
3292 * util/grub-install.in (usage): Likewise.
3293 Spell ID in whole letters.
3294 Add missing ending dot.
3295 Quote variables.
3296 * util/grub-reboot.in: Fix capitalisation.
3297 * util/grub-set-default.in: Likewise.
3298
3299 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
3302 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
3303 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
3304 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
3305 Disable -Werror for -Wdeprecated-declarations.
3306 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
3307 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
3308 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
3309 (grub_util_get_grub_dev): Make luks handling dependent on
3310 HAVE_DEVICE_MAPPER and not __linux__.
3311 (get_win32_path): Fix format security.
3312 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
3313 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
3314 Don't try grub_find_zpool_from_dir.
3315 (grub_make_system_path_relative_to_its_root) [!__linux__]:
3316 #ifdef-out paresdir.
3317
3318 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * util/grub-pe2elf.c (usage): Add missing noreturn.
3321 (write_section_data): Rename name to shname to avoid shadowing.
3322 (write_symbol_table): Rename name to symname to avoid shadowing.
3323 Fix write_reloc_section call.
3324
3325 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
3328 to ensure that it's after the last byte of .text.
3329
3330 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * util/ieee1275/ofpath.c (my_isdigit): New function.
3333 (trailing_digits): Use my_isdigit.
3334 (strip_trailing_digits): Likewise.
3335
3336 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
3339 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
3340
3341 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/kern/i386/pc/startup.S: Define __start.
3344
3345 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
3348 strip already transforms he format.
3349
3350 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
3353
3354 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * util/grub-install.in: Add missing gettext init.
3357 * util/grub-kbdcomp.in: Likewise.
3358 * util/grub-mkconfig.in: Likewise.
3359 * util/grub-mknetdir.in: Likewise.
3360 * util/grub-mkrescue.in: Likewise.
3361 * util/grub-mkstandalone.in: Likewise.
3362 * util/grub-reboot.in: Likewise.
3363 * util/grub-set-default.in: Likewise.
3364 * util/grub.d/00_header.in: Likewise.
3365 * util/grub.d/10_hurd.in: Likewise.
3366 * util/grub.d/10_windows.in: Likewise.
3367 * util/grub.d/30_os-prober.in: Likewise.
3368 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3369
3370 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * po/Rules-swiss: Fix header comment.
3373
3374 2012-02-29 Andreas Vogel <anvoit>
3375
3376 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
3377 resulted in leak of arguments.
3378
3379 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/boot/i386/pc/startup_raw.S: Use separate
3382 reed_solomon_size const definition instead of computing it since
3383 Apple assembler doesn't support the later.
3384
3385 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * gentpl.py (kernel): Rewrite Apple part.
3388
3389 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * include/grub/kernel.h (FOR_MODULES): Check module magic.
3392
3393 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * util/grub-mkimagexx.c (locate_sections): Support non-standard
3396 ELF section gap.
3397 (load_image): Likewise.
3398
3399 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * configure.ac: Fix a typo in previous commit.
3402
3403 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 Don't add -Wl,-N on Apple platform.
3406
3407 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
3408 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
3409
3410 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/Makefile.core.def (lzma_decompress): Use
3413 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
3414
3415 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * grub-core/genmod.sh.in: Rewrite the Apple part.
3418
3419 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
3422 comparison.
3423
3424 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * acinclude.m4 (grub_CHECK_PIC): New test.
3427 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
3428
3429 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
3432 to avoid the warning.
3433
3434 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
3437 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
3438 after. All users updated.
3439
3440 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 Use the common size routine in hostfs so we can read disks as well.
3443
3444 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
3445 (grub_util_get_fd_size): ... this. Return size in bytes.
3446 All users updated.
3447 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
3448 grub_util_get_fd_size.
3449
3450 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
3453 Add blocksize retrieval.
3454
3455 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * configure.ac: Restore CFLAGS after efiemu check.
3458
3459 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
3462 Apple bug.
3463
3464 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
3467
3468 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
3471 (grub_cmd_halt): Likewise.
3472
3473 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
3476 for local arithmetics.
3477 Break %sp init into 2 instructions.
3478 Add 0 byte at the end.
3479
3480 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 * grub-core/disk/diskfilter.c (read_segment): Initialise err
3483 before loops.
3484
3485 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
3488 for context.
3489
3490 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * grub-core/disk/ldm.c (make_vg): Init part.name.
3493 (grub_ldm_detect): Silence spurious warning.
3494 (grub_util_is_ldm): Likewise.
3495
3496 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
3499 sane value to avoid a spurious warning.
3500
3501 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
3504 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
3505
3506 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
3509 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
3510
3511 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
3514 hardcoding the relevant info.
3515
3516 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
3519 missing const qualifiers.
3520 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
3521
3522 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * util/getroot.c [__APPLE__]: Add missing includes.
3525 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
3526
3527 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * util/grub-mkimage.c (generate_image): Silence spurious warning.
3530
3531 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
3534 avoid conflicts.
3535
3536 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
3539
3540 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
3543 and grub_file_close call.
3544
3545 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 Add LZSS Mach-O support (needed for new xnu kernelcache).
3548
3549 * grub-core/Makefile.core.def (xnu): Add file lzss.c
3550 * grub-core/loader/lzss.c: New file.
3551 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
3552 on Mach-O open failure.
3553 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
3554 Don't free cmdsXX in uncompressedXX is set.
3555 (grub_macho_file): Init new fields.
3556 New argument is_64bit. All users updated.
3557 Handle compressed. Error out if no suitable architecture is found.
3558 Don't close file.
3559 (grub_macho_open): New argument is_64bit. All users updated.
3560 * grub-core/loader/macho32.c: Add defines for new fields.
3561 * grub-core/loader/macho64.c: Likewise.
3562 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
3563 (grub_macho_parse): Handle compressed.
3564 Defer actual processing if compressed.
3565 (grub_macho_cmds_iterate): Decompress if compressed. New argument
3566 "filename". All users updated.
3567 (grub_macho_size): New argument "filename". All users updated.
3568 (grub_macho_get_entry_point): Likewise.
3569 (grub_macho_load): Handle compressed.
3570 * include/grub/macho.h (grub_macho_lzss_header): New struct.
3571 (GRUB_MACHO_LZSS_OFFSET): New define.
3572 (grub_decompress_lzss): New proto.
3573 * include/grub/machoload.h (grub_macho_file): New fields to handle
3574 compressed.
3575 (grub_macho_contains_macho64): Remove proto.
3576 (grub_macho_contains_macho32): Likewise.
3577 * util/grub.d/30_os-prober.in: Use kernel cache if available.
3578
3579 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
3582
3583 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 Fix make dist.
3586
3587 * Makefile.am (starfield_theme_files): New var.
3588 (starfield_DATA): Use starfield_theme_files.
3589 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
3590 Add bootcheck-related files.
3591 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
3592 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
3593 and font_char_metrics.txt.
3594 * grub-core/Makefile.core.def (kernel): Update extra_dist.
3595 (setjmp): Add lib/ia64/longjmp.S.
3596 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
3597 * po/POTFILES.in: Regenerate.
3598 * po/Rules-swiss: use DISTFILES.common.extra2 and not
3599 DISTFILES.common.extra1.
3600 * util/devicemap.c: Removed.
3601 * grub-core/lib/i386/relocator_backward.S: Likewise.
3602 * util/import_gcry.py: Remove unused files. Add extra_dist for
3603 ChangeLog.
3604
3605 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/gettext/gettext.c (grub_mofile_open): Call
3608 grub_gettext_delete_list before changing grub_gettext_max to avoid
3609 running out of array bounds.
3610
3611 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
3614 grub_vga_text_init/grub_vga_text_fini.
3615
3616 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
3619
3620 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * configure.ac: Bump to 2.00~beta0.
3623
3624 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
3627 missing initialisation.
3628
3629 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
3632
3633 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 Support v2 xnu boot arguments.
3636
3637 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
3638 New argument fsbfreq_out.
3639 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
3640 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
3641 be used.
3642 * grub-core/loader/machoXX.c (grub_macho_load): New argument
3643 darwin_version.
3644 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
3645 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
3646 (grub_xnu_boot_params): Rename to ...
3647 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
3648 (grub_xnu_boot_params_v2): New struct.
3649
3650 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
3653 zeroing of CRC field before computing CRC.
3654
3655 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
3658 Change order of allocations to decrease fragmentation.
3659
3660 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
3663
3664 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3665
3666 Use write-combining MTRR to speed up video with buggy BIOSes.
3667
3668 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
3669 (cpuid): New define.
3670 (rdmsr): Likewise.
3671 (wrmsr): Likewise.
3672 (mtrr_base): Likewise.
3673 (mtrr_mask): Likewise.
3674 (grub_vbe_enable_mtrr_entry): New function.
3675 (grub_vbe_enable_mtrr): Likewise.
3676 (grub_vbe_disable_mtrr): Likewise.
3677 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
3678 control off to BIOS.
3679 (grub_video_vbe_init): Fill mtrr.
3680 (grub_video_vbe_fini): Disable mtrr.
3681 (grub_video_vbe_get_info_and_fini): Likewise.
3682 (grub_video_vbe_setup): Enable mtrr.
3683
3684 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3685
3686 * include/grub/partition.h (grub_partition_map): Change prototype of
3687 embed to take a maximum value for nsectors.
3688 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
3689 * include/grub/fs.h (grub_fs): Likewise.
3690 * grub-core/partmap/msdos.c (embed_signatures): New array.
3691 (pc_partition_map_embed): Check for and avoid sectors matching any
3692 of the signatures in embed_signatures, up to max_nsectors.
3693 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
3694 returned sector map to max_nsectors.
3695 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
3696 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
3697 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
3698 * util/grub-setup.c (setup): Allow for the embedding area being
3699 split into multiple blocklists. Tell dest_partmap->embed the
3700 maximum number of sectors we care about.
3701
3702 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
3705 Specify blocklist_install and reserver_first_sector for all fs.
3706 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
3707 blocklists.
3708
3709 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * util/grub-install.in: Clarify strings.
3712 Fix source dir check.
3713
3714 2012-02-27 Richard Laager <rlaager@wiktel.com>
3715
3716 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
3717 "zfs" and "fuse.zfs" as synonyms.
3718
3719 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * configure.ac: Put platform and target_cpu substitutions back since
3722 they are used for directories.
3723
3724 2012-02-27 Richard Laager <rlaager@wiktel.com>
3725 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * util/grub.d/10_linux.in: Add ZFS-related arguments.
3728 * util/grub.d/20_linux_xen.in: Likewise.
3729
3730 2012-02-27 Richard Laager <rlaager@wiktel.com>
3731
3732 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
3733 with full paths.
3734
3735 2012-02-27 Richard Laager <rlaager@wiktel.com>
3736
3737 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
3738 unescape.
3739
3740 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 Don't use insecure popen in getroot.
3743
3744 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
3745 (exec_pipe): ... here.
3746 (find_root_devices_from_poolname): Use exec_pipe.
3747
3748 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 Remove platform and target_cpu replacement.
3751
3752 * configure.ac: Remove platform and target_cpu substitutions.
3753 * tests/util/grub-shell.in: Use modinfo.
3754 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
3755 explicitly.
3756
3757 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 Autodetect platform in grub-install but allow override.
3760
3761 * util/grub-install.in: Autodetect platform. Support --target and
3762 --directory. Read platform from modinfo.sh.
3763
3764 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 Support btrfs multi-volume probe.
3767
3768 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
3769 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
3770 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
3771 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
3772 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
3773 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
3774 grub_find_root_devices_from_btrfs if on btrfs.
3775
3776 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 Remove any awareness of *.c util files about target.
3779
3780 * Makefile.util.def (grub-setup): Split to ...
3781 (grub-bios-setup): ... and this.
3782 (grub-sparc64-setup): ... and this.
3783 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
3784 * docs/man/grub-setup.h2m: Split into ...
3785 * docs/man/grub-sparc64-setup.h2m: ... this.
3786 * docs/man/grub-bios-setup.h2m: ... and this.
3787 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
3788 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
3789 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
3790 (grub_target_addr_t): Remove.
3791 (grub_target_size_t): Remove.
3792 (grub_target_ssize_t): Remove.
3793 * util/grub-install.in: Use new grub-*-setup.
3794 * util/grub-mkimagexx.c (Elf_Word): New define.
3795 (Elf_Half): Likewise.
3796 (Elf_Section): Likewise.
3797 (ELF_ST_TYPE): Likewise.
3798 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
3799 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
3800
3801 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 Replace grub_target_addr with more appropriate types.
3804
3805 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
3806 grub_target_addr with grub_addr.
3807 * grub-core/commands/iorw.c (grub_cmd_read): Replace
3808 grub_target_addr with grub_port.
3809 (grub_cmd_write): Likewise.
3810 * grub-core/commands/memrw.c (grub_cmd_read): Replace
3811 grub_target_addr with grub_addr.
3812 (grub_cmd_write): Likewise.
3813 * grub-core/video/efi_uga.c (find_line_len): Likewise.
3814
3815 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
3818 const qualifier for vendor_guid.
3819
3820 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
3823 const qualifier.
3824 (efiemu_memequal): Likewise.
3825 (find_variable): Likewise.
3826
3827 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 Fix missing console prototype on qemu-mips.
3830
3831 * include/grub/mips/qemu_mips/console.h: New file.
3832
3833 2012-02-27 Matthew Garrett <mjg@redhat.com>
3834 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
3837 * include/grub/efi/efi.h: Likewise.
3838 * include/grub/efi/api.h: Add guid for EFI-specified variables.
3839 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
3840 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
3841 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
3842 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
3843 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
3844
3845 2012-02-27 Matthew Garrett <mjg@redhat.com>
3846
3847 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
3848
3849 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
3852 error.
3853
3854 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * configure.ac: Remove inappropriate use of program_transform_name
3857 on grubdir and bootdir but allow explicit specification of those
3858 variables.
3859
3860 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * util/grub-mknetdir.in (grub_prefix): Removed.
3863 (subdir): Use @bootdirname@ and @grubdirname@.
3864
3865 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
3868
3869 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * po/POTFILES.in: Regenerated.
3872
3873 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Remove improper use of program_transform_name on pkglibrootdir.
3876
3877 * configure.ac (pkglibrootdir): Removed.
3878 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
3879 * util/grub-mkimage.c: Likewise.
3880
3881 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
3884 warning.
3885
3886 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * util/grub-install.in: Use file identifier if no UUID is available
3889 or user explicitly prompted for it.
3890
3891 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
3892
3893 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
3894 (freebsd_get_zfs): New function.
3895 (grub_freebsd_boot): Pass zfs UUID.
3896 (grub_cmd_freebsd): Set zfs UUID.
3897
3898 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * conf/Makefile.common (platformdir): Base on pkglibdir and not
3901 pkglibrootdir.
3902
3903 2012-02-27 Mike Gilbert <floppym@gentoo.org>
3904
3905 Add configure flag to control libzfs integration.
3906
3907 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
3908
3909 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
3912 device.
3913 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
3914 small devices.
3915
3916 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 Remove grub_{modname}_init and grub_{modname}_fini. They should never
3919 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
3920 be used on non-modules.
3921
3922 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
3923 Rename to grub_boot_init.
3924 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
3925 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
3926 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
3927 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
3928 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
3929 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
3930 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
3931 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
3932 includes.
3933 (grub_machine_init): Remove empty inits.
3934 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
3935 includes.
3936 (grub_machine_init): Remove empty inits.
3937 * grub-core/term/arc/console.c: Remove explicit proto.
3938 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
3939 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
3940 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3941 grub_at_keyboard_fini.
3942 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
3943 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
3944 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3945 grub_gfxterm_fini.
3946 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
3947 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
3948 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3949 grub_vgatext_fini.
3950 * grub-core/term/ieee1275/console.c: Remove explicit proto.
3951 * grub-core/term/serial.c (GRUB_MOD_INIT)
3952 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
3953 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3954 grub_serial_fini.
3955 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
3956 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
3957 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3958 grub_terminfo_fini.
3959 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
3960 (GRUB_MOD_FINI): Likewise.
3961 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
3962 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
3963 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3964 grub_video_radeon_fuloong2e_fini.
3965 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
3966 [LOONGSON]: Rename to grub_video_sis315pro_init.
3967 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3968 grub_video_sis315pro_fini.
3969 * grub-core/video/sm712.c (GRUB_MOD_INIT)
3970 [LOONGSON]: Rename to grub_video_sm712_init.
3971 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3972 grub_video_sm712_fini.
3973 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
3974 (grub_at_keyboard_fini): Likewise.
3975 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
3976 Don't declare grub_{modname}_init.
3977 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
3978 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
3979 New proto.
3980 (grub_keylayouts_fini) [!EMU]: Likewise.
3981 * include/grub/serial.h (grub_serial_init) [!EMU]:
3982 New proto.
3983 (grub_serial_fini) [!EMU]: Likewise.
3984 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
3985 New proto.
3986 (grub_terminfo_fini) [!EMU]: Likewise.
3987 * include/grub/video.h (grub_font_init) [!EMU]:
3988 New proto.
3989 (grub_font_fini) [!EMU]: Likewise.
3990 (grub_gfxterm_init) [!EMU]: Likewise.
3991 (grub_gfxterm_fini) [!EMU]: Likewise.
3992 (grub_video_sm712_init) [!EMU]: Likewise.
3993 (grub_video_sm712_fini) [!EMU]: Likewise.
3994 (grub_video_sis315pro_init) [!EMU]: Likewise.
3995 (grub_video_sis315pro_fini) [!EMU]: Likewise.
3996 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
3997 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
3998
3999 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 Make nand a prefix for nand devices.
4002
4003 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4004
4005 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4008 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4009
4010 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * include/grub/env.h (grub_env_find): Remove prototype.
4013 * grub-core/kern/env.c (grub_env_find): Make static.
4014 (grub_env_set): Remove useless set.
4015
4016 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/kern/i386/realmode.S: Remove useless align.
4019
4020 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * include/grub/dl.h (grub_dl_load_file): Don't export.
4023
4024 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4025
4026 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4027 grub_dprintf.
4028
4029 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4032 grub_errors.
4033 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4034 not reloading whole superblock but only the part which is really needed.
4035 Remove useless grub_errors.
4036 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4037 grub_errors.
4038
4039 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 Don't export grub_get_rtc.
4042
4043 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4044 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4045
4046 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4049
4050 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4053 argument since it can be deduced from diskfilter. All users updated.
4054
4055 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 Remove prio_list.
4058
4059 * include/grub/list.h (grub_prio_list): Removed.
4060 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4061 GRUB_COMMAND_PRIO_MASK.
4062 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4063 GRUB_COMMAND_FLAG_ACTIVE.
4064 (grub_prio_list_insert): Removed.
4065 (grub_prio_list_remove): Likewise.
4066 (GRUB_AS_PRIO_LIST): Likewise.
4067 (GRUB_AS_PRIO_LIST_P): Likewise.
4068 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4069 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4070 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4071 * grub-core/kern/command.c (grub_register_command_prio): Inline
4072 the prio_list code.
4073 (grub_unregister_command): Likewise.
4074
4075 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 Fix interrupt mixup from previous commit.
4078
4079 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4080 (grub_realidt): New var.
4081 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4082 Load idt.
4083 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4084 New declaration.
4085 (grub_relocator16_boot): Set grub_relocator16_idt.
4086 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4087 (LOCAL(realidt)): ... this.
4088 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4089 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4090 (grub_realidt): New variable.
4091
4092 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4095 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4096 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4097 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4098 Gettextize.
4099 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4100 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4101 * po/POTFILES.in: Regenerate.
4102
4103 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4106 errors.
4107
4108 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4111 \0.
4112 (add_length): Likewise.
4113
4114 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4115 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4116
4117 GDB serial and backtrace support.
4118
4119 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4120 (prot_to_real): Likewise.
4121 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4122 * grub-core/Makefile.core.def (backtrace): New module.
4123 (gdb): Likewise.
4124 * grub-core/gdb/cstub.c: New file.
4125 * grub-core/gdb/gdb.c: Likewise.
4126 * grub-core/gdb/i386/idt.c: Likewise.
4127 * grub-core/gdb/i386/machdep.S: Likewise.
4128 * grub-core/gdb/i386/signal.c: Likewise.
4129 * grub-core/lib/i386/backtrace.c: Likewise.
4130 * grub-core/lib/backtrace.c: Likewise.
4131 * include/grub/backtrace.h: Likewise.
4132 * include/grub/gdb.h: Likewise.
4133 * include/grub/i386/gdb.h: Likewise.
4134
4135 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4138 New function.
4139 (add_length): Likewise.
4140 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4141 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4142 proto.
4143 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4144 __argp_get_display_len.
4145
4146 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 $"..." support in scripts.
4149
4150 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4151 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4152 * grub-core/script/yylex.l: Likewise.
4153 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4154 value.
4155
4156 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * gentpl.py: Remove obsolete pkglib_DATA handling.
4159
4160 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4163 mailing list.
4164
4165 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4166 * util/grub-kbdcomp.in: Likewise.
4167 * util/grub-mkconfig.in: Likewise.
4168 * util/grub-mkconfig_lib.in: Likewise.
4169 * util/grub-mknetdir.in: Likewise.
4170 * util/grub-mkrescue.in: Likewise.
4171 * util/grub-mkstandalone.in: Likewise.
4172 * util/grub-reboot.in: Likewise.
4173 * util/grub-set-default.in: Likewise.
4174 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4175
4176 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 Remove GRUB_PREFIX.
4179
4180 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4181 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4182 used for backward compatibility.
4183
4184 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 Add new all_video module.
4187
4188 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4189 * grub-core/Makefile.core.def (all_video): New module.
4190 * grub-core/genmoddep.awk: Generate dependency of all_video from
4191 video.lst.
4192 * grub-core/lib/fake_module.c: New file.
4193 * grub-core/normal/main.c (features): Add feature_all_video_module.
4194 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4195 don't do explicit search again.
4196 insmod all_video in load_video if available.
4197
4198 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4199
4200 Another round of string clarification and adding TRANSLATORS comments.
4201
4202 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4205
4206 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4209 to grub_ssize_t.
4210 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4211 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4212
4213 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4214
4215 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4216 trailing newline implicitly. All users updated.
4217
4218 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 Implement serial on IEEE1275 and EFI.
4221
4222 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4223 on emu. Mention arc and emu as the only platforms without serial
4224 support.
4225 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4226 ieee1275 platforms.
4227 * grub-core/term/efi/serial.c: New file.
4228 * grub-core/term/ieee1275/serial.c: Likewise.
4229 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4230 specification if no ns8250 driver is available.
4231 (grub_cmd_serial): Likewise.
4232 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4233 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4234 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4235 (grub_efi_parity_type_t): New type.
4236 (grub_efi_stop_bits_t): Likewise.
4237 (grub_efi_serial_io_interface): New struct.
4238 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4239 available for all interfaces.
4240 Add EFI and IEEE1275 fields.
4241 (grub_ofserial_init): New proto.
4242 (grub_efiserial_init): Likeiwse.
4243 * util/grub.d/00_header.in: Don't check for the presence of serial
4244 module.
4245
4246 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4247
4248 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4249 name as if it was an alias.
4250
4251 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/commands/lsacpi.c (options): Fix typo.
4254
4255 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 Convert grub-emu to argp.
4258
4259 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4260 emu.
4261 * util/argp_common.c: Rename to ...
4262 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4263 Add missing includes.
4264 * grub-core/kern/emu/main.c: Convert to argp.
4265 * po/POTFILES.in: Regenerate.
4266 * util/grub-install.in (usage): Make first letter lowcase in messages
4267 for uniformity.
4268 * util/grub-setup.c (options): Likewise.
4269
4270 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
4273 Put back accidently commented-out code.
4274
4275 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
4278 loop check using Brent algorithm.
4279 (grub_hfsplus_btree_search): Likewise.
4280
4281 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * util/grub-install.in: Fix usage of wrong device for PreP install.
4284
4285 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * conf/Makefile.common (CFLAGS_GNULIB): Add
4288 -Wno-unsafe-loop-optimizations.
4289 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
4290 on tools.
4291 * grub-core/commands/legacycfg.c: Add pragma to skip
4292 -Wunsafe-loop-optimizations.
4293 (check_password_md5_real): Fix loop counter type.
4294 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
4295 reading.
4296 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
4297 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
4298 loop condition.
4299 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
4300 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
4301 * grub-core/net/net.c (grub_net_route_address): Add safety loop
4302 condition.
4303 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
4304 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
4305 avoid possible infinite loops.
4306 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
4307 and -Wunsafe-loop-optimizations.
4308 * grub-core/script/yylex.l: Likewise.
4309 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
4310 (print_glyphs): Avoid infinite loops.
4311 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
4312
4313 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
4314
4315 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
4316 to avoid infinite loop.
4317 (disp_acpi_rsdt_table): Likewise.
4318
4319 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/font/font.c (grub_font_load): Add support for default
4322 path for fonts ($prefix/fonts).
4323 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
4324 for checking if string is a path.
4325 * grub-core/normal/main.c (features): Add feature_default_font_path.
4326 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
4327 * util/grub.d/00_header.in: Use default directory if possible.
4328 * util/grub-install.in: Install unicode.pf2.
4329
4330 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
4333 * po/Rules-swiss: New file.
4334 * po/swiss.sed: Likewise.
4335
4336 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * grub-core/fs/btrfs.c (find_device): Fix typos.
4339 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
4340 * util/grub-mkrelpath.c (argp_parser): Likewise.
4341 Reported by: Yuri Chornoivan.
4342
4343 2012-02-23 Dalet Omega <daletomega@gmail.com>
4344
4345 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
4346 for usual informative messages.
4347
4348 2012-02-23 Dalet Omega <daletomega@gmail.com>
4349
4350 Starfield theme.
4351
4352 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
4353 * conf/Makefile.common: Define starfielddir.
4354 * configure.ac: Configure starfield.
4355 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
4356 * themes/starfield/README: Likewise.
4357 * themes/starfield/blob_w.png: Likewise.
4358 * themes/starfield/boot_menu_c.png: Likewise.
4359 * themes/starfield/boot_menu_e.png: Likewise.
4360 * themes/starfield/boot_menu_n.png: Likewise.
4361 * themes/starfield/boot_menu_ne.png: Likewise.
4362 * themes/starfield/boot_menu_nw.png: Likewise.
4363 * themes/starfield/boot_menu_s.png: Likewise.
4364 * themes/starfield/boot_menu_se.png: Likewise.
4365 * themes/starfield/boot_menu_sw.png: Likewise.
4366 * themes/starfield/boot_menu_w.png: Likewise.
4367 * themes/starfield/slider_c.png: Likewise.
4368 * themes/starfield/slider_n.png: Likewise.
4369 * themes/starfield/slider_s.png: Likewise.
4370 * themes/starfield/src/blob_nw.xcf: Likewise.
4371 * themes/starfield/src/bootmenu/: Likewise.
4372 * themes/starfield/src/bootmenu/center.xcf: Likewise.
4373 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
4374 * themes/starfield/src/bootmenu/side.xcf: Likewise.
4375 * themes/starfield/src/slider_c.xcf: Likewise.
4376 * themes/starfield/src/slider_n.xcf: Likewise.
4377 * themes/starfield/src/slider_s.xcf: Likewise.
4378 * themes/starfield/src/terminalbox/: Likewise.
4379 * themes/starfield/src/terminalbox/center.xcf: Likewise.
4380 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
4381 * themes/starfield/src/terminalbox/side.xcf: Likewise.
4382 * themes/starfield/starfield.png: Likewise.
4383 * themes/starfield/terminal_box_c.png: Likewise.
4384 * themes/starfield/terminal_box_e.png: Likewise.
4385 * themes/starfield/terminal_box_n.png: Likewise.
4386 * themes/starfield/terminal_box_ne.png: Likewise.
4387 * themes/starfield/terminal_box_nw.png: Likewise.
4388 * themes/starfield/terminal_box_s.png: Likewise.
4389 * themes/starfield/terminal_box_se.png: Likewise.
4390 * themes/starfield/terminal_box_sw.png: Likewise.
4391 * themes/starfield/terminal_box_w.png: Likewise.
4392 * themes/starfield/theme.txt: Likewise.
4393
4394 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * util/grub.d/00_header.in: Add missing export theme.
4397
4398 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
4401 already included.
4402 Reported by: Eren D.
4403
4404 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 * conf/Makefile.common (grubdatadir): Removed.
4407 (Makefile.am): Move eveything grubdata to pkgdata.
4408
4409 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 * grub-core/commands/acpihalt.c (get_sleep_type):
4412 Remove unused variable.
4413
4414 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
4417 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
4418 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
4419 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
4420 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
4421 i18n with gettext no-op.
4422 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
4423 GRUB_ACPI_OPCODE_STRING_CONST.
4424 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
4425 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
4426
4427 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * po/POTFILES.in: Regenerate.
4430
4431 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
4434 -Wno-error=missing-noreturn.
4435
4436 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
4439 condition to avoid possibly infinite loops.
4440 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
4441 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
4442
4443 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
4446 condition to avoid possibly infinite loops.
4447
4448 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
4451 on show_error.
4452
4453 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
4456
4457 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
4460
4461 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * util/bin2h.c (usage): Add missing attribute noreturn.
4464
4465 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
4468 if the size isn't divisible by 512.
4469
4470 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 Make list_push and list_remove functions rather than inline functions
4473 to decrease size and avoid aliasing violations.
4474
4475 * include/grub/list.h (grub_list_push): Move to ...
4476 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
4477 * include/grub/list.h (grub_list_remove): Move to ...
4478 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
4479
4480 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
4483 and -Wunused-result.
4484
4485 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
4488 Reported by: Seth Goldberg
4489
4490 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
4493
4494 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4495
4496 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
4497 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
4498 command line.
4499 * docs/grub.texi (Simple configuration): Document
4500 GRUB_CMDLINE_GNUMACH.
4501
4502 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * conf/Makefile.common (platform_SCRIPTS): New variable.
4505 (platform_PROGRAMS): Likewise.
4506 * gentpl.py: Mark *,module and *.image for install.
4507 * grub-core/gdb_grub.in: Add a notice of expected environment.
4508 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
4509 (gmodule.pl): Likewise.
4510
4511 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 Replace grub_checkkey with grub_getkey_noblock.
4514
4515 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
4516 (grub_getkey_noblock): ... this. All users updated.
4517
4518 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 * grub-core/kern/emu/console.c: Move to ...
4521 * grub-core/term/emu/console.c: ...here.
4522 (grub_ncurses_getkey): Fix return value if no key is detected.
4523
4524 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
4527 (grub_unit_test_fini): Likewise.
4528 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
4529
4530 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * include/grub/test.h (GRUB_UNIT_TEST)
4533
4534 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * grub-core/script/execute.c (grub_script_break): Clarify logic.
4537 Better error handling.
4538 (grub_script_return): Likewise.
4539 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4540
4541 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
4544 rimplicit redifinition.
4545
4546 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
4549 GRUB.
4550
4551 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
4554 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
4555 prompt here.
4556
4557 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
4560 as GRUB_ERR_BUG. Don't malloc if no device is available.
4561
4562 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
4565 Mark calling with invalid term as GRUB_ERR_BUG.
4566
4567 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
4570 packets rather than raising an error.
4571
4572 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
4575 in if.
4576
4577 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
4580 diagnostic to dprintf.
4581 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4582
4583 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
4586 device name.
4587
4588 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
4591 (grub_ntfs_iterate_dir): Likewise.
4592
4593 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 Efiemu stylistic fixes and gettext.
4596
4597 * grub-core/efiemu/i386/loadcore32.c
4598 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
4599 * grub-core/efiemu/i386/loadcore64.c
4600 (grub_arch_efiemu_relocate_symbols64): Likewise.
4601 * grub-core/efiemu/i386/pc/cfgtables.c
4602 (grub_machine_efiemu_init_tables): Likewise.
4603 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
4604 (grub_efiemu_loadcore_initXX): Add a filename argument.
4605 All users updated.
4606 Improved error message.
4607 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
4608 Add a filename argument.
4609 All users updated.
4610 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
4611 Reclassify double relocation as GRUB_ERR_BUG.
4612
4613 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
4616 handling.
4617
4618 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
4621 on partition.
4622
4623 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
4626
4627 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 Improve string. Gettextize.
4630
4631 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
4634 utils.
4635 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
4636
4637 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
4640 [GRUB_UTIL]: New function.
4641 (insert_array) [GRUB_UTIL]: Store partmaps.
4642 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
4643 partmaps.
4644 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
4645 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
4646 (probe_abstraction): Print diskfilter and not raid.
4647 Reported by: Lennart Sorensen
4648
4649 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
4652 * util/grub-mkimagexx.c (MASK3): New define.
4653 (add_value_to_slot_20b): Use MASK3.
4654 (add_value_to_slot_21): Likewise.
4655 (relocate_addresses): Fix format specification.
4656 (load_image): Explicitly init symtab_section.
4657
4658 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
4661 (grub_util_biosdisk_get_grub_dev): Fix format specification.
4662
4663 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
4666 on powerpc.
4667 Reported by: Lennart Sorensen
4668
4669 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * gentpl.py: Add missing license header.
4672 * docs/grub.texi: Update copyright year.
4673
4674 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
4675
4676 Source grub-mkconfig_lib from the build directory at build time.
4677 Suggested by: Vladimir Serbinenko.
4678
4679 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
4680 * util/grub-install.in: Define pkgdatadir if not already set, and source
4681 grub-mkconfig_lib from there.
4682 * util/grub-kbdcomp.in: Likewise.
4683 * util/grub-mkconfig.in: Likewise.
4684 * util/grub-mknetdir.in: Likewise.
4685 * util/grub-mkrescue.in: Likewise.
4686 * util/grub-mkstandalone.in: Likewise.
4687 * util/grub-reboot.in: Likewise.
4688 * util/grub-set-default.in: Likewise.
4689 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4690
4691 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 Increase warning level.
4694
4695 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
4696 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
4697 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
4698 (TARGET_CFLAGS): Likewise.
4699 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
4700 * grub-core/Makefile.core.def (decompressor_xz): Add
4701 -Wno-unreachable-code.
4702 (normal): Add -Wno-redundant-decls.
4703 (xzio): Add -Wno-unreachable-code.
4704 (lzopio): Add -Wno-redundant-decls -Wno-error.
4705 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
4706 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
4707 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
4708 * grub-core/kern/dl.c: Add exception to -Wcast-align.
4709 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
4710 * grub-core/kern/i386/coreboot/init.c: Add exception to
4711 -Wsuggest-attribute=noreturn.
4712 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
4713 * grub-core/kern/ia64/dl_helper.c: Likewise.
4714 * grub-core/kern/mips/dl.c: Likewise.
4715 * grub-core/kern/sparc64/dl.c: Likewise.
4716 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
4717 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
4718 (memcmp): Likewise.
4719 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
4720 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
4721 * grub-core/loader/mips/linux.c: Likewise.
4722 * grub-core/loader/multiboot_elfxx.c: Likewise.
4723 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
4724 * grub-core/video/sm712.c: Add exception to -Wcast-align.
4725 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
4726 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
4727 fixme.
4728 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
4729 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
4730 Fix prototype.
4731
4732 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
4735 address.
4736
4737 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
4740 Avoid improper use of strings.
4741 (grub_cmd_legacy_initrdnounzip): Likewise.
4742
4743 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * include/grub/emu/misc.h (grub_util_warn): Add missing format
4746 attribute.
4747 (grub_util_info): Likewise.
4748 (grub_util_error): Likewise.
4749
4750 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
4753 * util/grub-fstest.c (fstest): Likewise.
4754
4755 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
4758 (grub_md_sha512_real): Likewise.
4759 (grub_util_get_geli_uuid): Likewise.
4760 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
4761 (grub_util_biosdisk_open): Fix format specification.
4762 Respect format security.
4763 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
4764 (xrealloc): Likewise.
4765 (xasprintf): Likewise.
4766
4767 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * util/import_gcry.py: Include grub/crypto.h in init.c.
4770
4771 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4772
4773 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
4774 (generate_image): Make prefix a const char *.
4775 Fix format specifications. Respect format security.
4776 Avoid void * arithmetics.
4777 Avoid shadowing.
4778 (argp_parser): Remove unused variable. Respect format security.
4779 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
4780 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
4781 (count_funcs): Remove unused variable.
4782 (relocate_addresses): Fix format specification.
4783 Disable x86-64 with elf32. Remove unused variables.
4784 (add_fixup_entry): Avoid shadowing.
4785 (make_reloc_section): Fix format specification.
4786 Use assert.
4787 (locate_sections): Fix format specifications.
4788 (load_image): Avoid shadowing.
4789
4790 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
4793 Fix format specifications. Respect format security.
4794 Don't translate already translated grub_errmsg.
4795 (argp_parser): Remove unused variable
4796
4797 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
4800
4801 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
4804 (main): Likewise. Use xmalloc. Respect format security.
4805
4806 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
4809 a const char *.
4810 (argp_parser): Remove unused variable.
4811
4812 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
4815 (add_pixel): Make static.
4816 (add_font): Likewise.
4817 (write_string_section): Make name and str a const char *.
4818 (write_be16_section): Make name a const char *.
4819 (print_glyphs): Make static.
4820 (write_font_ascii_bitmap): Likewise.
4821 (write_font_width_spec): Likewise.
4822 (write_font_pf2): Likewise.
4823 (argp_parser): Remove unused variable.
4824 Respect format security.
4825 (main): Avoid shadowing. Respect format security.
4826
4827 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * util/grub-editenv.c (argp_parser): Make static.
4830 (create_envblk_file): Use xmalloc.
4831 (open_envblk_file): Likewise.
4832 Resepect format security.
4833 (set_variables): Respect format security.
4834
4835 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * util/getroot.c (grub_find_device): Respect format security.
4838 (get_mdadm_uuid): Remove unused variable.
4839 (grub_util_pull_device): Dont call gettext on already translated
4840 grub_errmsg.
4841 (find_system_device): Remove unused variable.
4842 (grub_util_get_grub_dev): Likewise.
4843 (grub_make_system_path_relative_to_its_root): Respect format security.
4844
4845 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * util/grub-fstest.c (execute_command): Make first argument
4848 a const char *.
4849 (read_file): Avoid shadowing.
4850 Reuse underlying error message if device open fails.
4851 (cmd_cmp): Respect format security.
4852 (root): Make const char *.
4853 (fstest): Remove args argument and use global copy.
4854 Respect format security.
4855 (argp_parser): Make static.
4856 (main): Make default_root const char *.
4857
4858 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * util/grub-mount.c (root): Make const char *.
4861 (execute_command): Make first argument a const char *.
4862 (fuse_init): Respect format security.
4863 (argp_parser): Make static. Remove unused variable.
4864 (main): Make default_root a const char *.
4865 Respect format security.
4866
4867 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * util/grub-probe.c (probe): Don't call gettext on already translated
4870 grub_errmsg.
4871 Remove unused variables.
4872 (argp_parser): Remove unused variable.
4873
4874 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * util/grub-script-check.c (argp_parser): Remove unused variable.
4877 (main): Rename read to curread to avoid shadowing.
4878
4879 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * util/misc.c (grub_util_write_image_at): Fix format specification.
4882 (grub_util_write_image): Likewise.
4883 (grub_script_execute_argument_to_string): Removed (unused).
4884 (grub_script_execute_menuentry): Likewise.
4885 (grub_putchar): Likewise.
4886
4887 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
4890 (FUNCTION) [GRUB_UTIL]: Likewise.
4891 (VARIABLE) [GRUB_UTIL]: Likewise.
4892
4893 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
4896 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
4897
4898 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
4901 buffer.
4902
4903 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
4906 (LzmaEnc_SaveState): Removed (unused).
4907 (LzmaEnc_RestoreState): Likewise.
4908 (LzmaEnc_InitPriceTables): Made static.
4909 (LzmaEnc_Construct): Likewise.
4910 (LzmaEnc_FreeLits): Likewise.
4911 (LzmaEnc_Destruct): Likewise.
4912 (LzmaEnc_Init): Likewise.
4913 (LzmaEnc_InitPrices): Likewise.
4914 (LzmaEnc_Finish): Likewise.
4915 (LzmaEnc_PrepareForLzma2): Removed (unused).
4916 (LzmaEnc_MemPrepare): Likewise.
4917 (LzmaEnc_GetNumAvailableBytes): Likewise.
4918 (LzmaEnc_GetCurBuf): Likewise.
4919 (LzmaEnc_CodeOneMemBlock): Likewise.
4920
4921 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4922
4923 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
4924 (grub_util_ldm_embed): Likewise.
4925
4926 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * util/grub-editenv.c (print_var): Rename name to varname to
4929 avoid shadowing.
4930 (main): Rename index to curindex to avoid shadowing.
4931 Make filename a const char *.
4932
4933 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4936 to arg_getline to avoid shadowing.
4937
4938 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
4941 disk_ to avoid shadowing.
4942
4943 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
4946 curindex to avoid shadowing.
4947 Make static.
4948 (MatchFinder_GetNumAvailableBytes): Make static.
4949
4950 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
4953 avoid shadowing.
4954
4955 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4956
4957 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
4958 argument from encrypt to do_encrypt to avoid shadowing.
4959
4960 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
4963 incorrect nesting of #if's.
4964
4965 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
4968 checks which are always false on some platforms.
4969 (grub_cmd_lsacpi): Likewise.
4970 * grub-core/kern/misc.c (grub_strtoul): Likewise.
4971 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
4972 Likewise.
4973
4974 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
4977 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
4978
4979 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
4982 re_dfa_t to avoid breaking alignment invariants.
4983 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
4984 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
4985
4986 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
4989 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
4990
4991 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
4994 Fix declaration.
4995
4996 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
4999 conserve alignment invariants.
5000 (grub_ehci_ehcc_read16): Likewise.
5001 (grub_ehci_oper_read32): Likewise.
5002 (grub_ehci_oper_write32): Likewise.
5003 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5004 Conserve alignment invariants.
5005
5006 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5009 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5010 declarations.
5011
5012 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5013
5014 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5015 Remove unused variable.
5016
5017 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5020 Remove set in if.
5021
5022 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * include/grub/net.h: Remove double declarations.
5025
5026 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 Remove "payload" command in ia64 Linux loader since I couldn't
5029 find any evidence of it being used for anything.
5030 Replace "relocate" command with an environment variable
5031
5032 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5033 fields.
5034 (ia64_boot_payload): Removed.
5035 (last_payload): Likewise.
5036 (RELOCATE_OFF): Likewise.
5037 (RELOCATE_ON): Likewise.
5038 (RELOCATE_FORCE): Likewise.
5039 (relocate): Likewise.
5040 (free_pages): Don't free payloads.
5041 (grub_load_elf64): Use common error messages.
5042 Use "linux_relocate" variable.
5043 Increase the space after boot_params.
5044 (grub_cmd_payload): Removed.
5045 (grub_cmd_relocate): Likewise.
5046 (grub_cmd_fpswa): Improve messages.
5047 (cmd_payload): Removed.
5048 (cmd_relocate): Likewise.
5049 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5050 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5051
5052 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 Convert UHCI to DMA framework.
5055
5056 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5057 (grub_uhci_pci_iter): Fill new members
5058 (grub_alloc_td): Use P2V and V2P functions.
5059 (grub_free_queue): Likewise.
5060 (grub_alloc_qh): Likewise.
5061 (grub_uhci_setup_transfer): Likewise.
5062 (grub_uhci_check_transfer): Likewise.
5063
5064 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5067 Remove assignment in if while on it.
5068
5069 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * util/grub-mkstandalone.in: Fix modules directory.
5072
5073 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5076 on i386-pc target.
5077 (argp_parser): Accept "auto" as compression specification.
5078
5079 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 Fix `help' with unloaded modules.
5082
5083 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5084 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5085 (grub_dyncmd_dispatcher): Small stylistic fix.
5086 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5087 explicit help is requested.
5088
5089 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5092 Explicitly init restart while on it.
5093
5094 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5097 uninited variable.
5098
5099 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * util/grub-mknetdir.in: Use . rather than source for POSIX
5102 compatibility.
5103
5104 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5107
5108 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5111 variable.
5112
5113 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5116 without quotes.
5117
5118 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5121
5122 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5125 iteration of partitions.
5126
5127 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 Improve gettext support. Stylistic fixes and error handling fixes while
5130 on it.
5131
5132 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5135 part. Instead setup the correct stack in RM.
5136 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5137 for stack.
5138 * include/grub/i386/relocator_private.h: New file.
5139
5140 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5143 argument.
5144 * util/grub-fstest.c (options): Add missing DEVICE part.
5145
5146 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 Clarify and unify messages.
5149
5150 * grub-core/commands/hashsum.c (options): Unify messages.
5151 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5152 literal-only message as translatable.
5153 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5154 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5155 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5156 commands.
5157 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5158 key, not the key used to unlock. Clarify what it's used for.
5159 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5160 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5161 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5162 * util/grub-editenv.c (options): Unify "verbose" message.
5163 * util/grub-fstest.c (read_file): Unify error message.
5164 (fstest): Add quotes around commands.
5165 (options): Unify "verbose" message.
5166 * util/grub-install.in: Add quotes around variable name.
5167 * util/grub-kbdcomp.in: Unify error message.
5168 * util/grub-mkfont.c (main): Likewise.
5169 * util/grub-mkrescue.in: Likewise.
5170 * util/grub-mklayout.c (options): Unify "verbose" message.
5171 * util/grub-mkstandalone.in: Unify help and verbose messages.
5172 * util/grub-mount.c (options): Unify "verbose" message.
5173 * util/grub-probe.c (options): Likewise.
5174 * util/grub-script-check.c (options): Likewise.
5175 * util/grub-setup.c (setup): Unify no-terminator message.
5176 (options): Use DEVICE and not DEV.
5177 Unify "verbose" message.
5178 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5179
5180 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 Improve and unify messages.
5183
5184 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5185 name. All users updated.
5186 Print filename in error.
5187 (read_device_map): Print filename in error.
5188 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5189 (grub_util_get_os_disk): Likewise.
5190 (grub_util_biosdisk_get_grub_dev): Likewise.
5191 (grub_util_check_block_device): Likewise.
5192 (grub_util_check_char_device): Likewise.
5193 (grub_make_system_path_relative_to_its_root): Likewise.
5194 * util/grub-editenv.c (create_envblk_file): Likewise.
5195 (open_envblk_file): Likewise.
5196 (write_envblk): Likewise.
5197 * util/grub-fstest.c (cmd_cp): Likewise.
5198 (cmd_cat): Likewise.
5199 (cmd_cmp): Likewise.
5200 * util/grub-menulst2cfg.c (main): Likewise.
5201 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5202 (write_font_width_spec): Likewise.
5203 (write_font_pf2): Likewise.
5204 * util/grub-mkimage.c (generate_image): New argument outname.
5205 All users updated.
5206 Remove unreacheable message.
5207 (options): Unify messages.
5208 (help_filter): Likewise.
5209 * util/grub-mklayout.c (usage): Removed (unused).
5210 (main): Print filename in error.
5211 * util/grub-mkrescue.in: Fix wrong quoting.
5212 * util/grub-setup.c (setup): Print filename in error.
5213 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5214 (check_sas): Likewise.
5215 * util/misc.c (grub_util_get_fp_size): Removed.
5216 (grub_util_get_image_size): Print filename in error.
5217 (grub_util_read_at): Removed.
5218 (grub_util_read_image): Print filename in error.
5219 (grub_util_load_image): Likewise.
5220 (grub_util_write_image_at): New argument filename. All users updated.
5221 Print filename in error.
5222 (grub_util_write_image): New argument filename. All users updated.
5223 Print filename in error.
5224 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5225 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5226
5227 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/Makefile.core.def (pxechain): New module.
5230 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5231 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5232 function.
5233 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5234 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5235
5236 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5239 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5240 * include/grub/err.h (grub_error_saved): New struct.
5241 (grub_errmsg): Make array size explicit.
5242 * include/grub/misc.h (grub_error_save): New function.
5243 (grub_error_load): Likewise.
5244 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5245 (grub_error_push): Update `errno' member name.
5246 (grub_error_pop): Likewise
5247 * grub-core/net/tftp.c (tftp_data): New member save_err.
5248 (tftp_receive): Save error.
5249 (tftp_open): Restore error.
5250
5251 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5254 to real mode down to execute A20-related code in protected mode as
5255 intended.
5256
5257 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5258
5259 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5260 NULL when the argument `level' has an unexpected value.
5261
5262 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 Move platform-dependent files from $prefix to $prefix/$platform.
5265
5266 * config.h.in (GRUB_TARGET_CPU): New definition.
5267 (GRUB_PLATFORM): Likewise.
5268 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
5269 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
5270 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
5271 * grub-core/kern/dl.c (grub_dl_load): Likewise.
5272 * grub-core/normal/autofs.c (read_fs_list): Likewise.
5273 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
5274 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
5275 * grub-core/normal/term.c (read_terminal_list): Likewise.
5276 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
5277 $prefix/locale.
5278 (grub_gettext_init_ext): Likewise.
5279 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
5280 grub_platform.
5281 * util/grub-install.in: Update directories.
5282 * util/grub-mknetdir.in: Likewise.
5283 * util/grub-mkrescue.in: Likewise.
5284
5285 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
5288 grub_error framework. All users updated.
5289
5290 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
5293 lists (by always binsearching), improve caching (cache strings
5294 used for binsearch, not only results), improve
5295 maintainability (by using more structured binary search) and correct
5296 error handling.
5297
5298 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 * grub-core/script/execute.c (grub_script_return): Fix warning.
5301
5302 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * grub-core/script/execute.c (grub_script_return): Fix potential
5305 NULL-dereference.
5306 Reported by: Jim Meyering.
5307
5308 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * po/POTFILES.in: Regenerate.
5311 * util/grub-install.in: Gettextize the strings missed in first pass.
5312
5313 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * Makefile.util.def (grub-mkdevicemap): Removed.
5316 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
5317 * include/grub/util/deviceiter.h: Removed.
5318 * util/deviceiter.c: Likewise.
5319 * util/getroot.c (grub_util_get_os_disk): New function.
5320 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
5321 replacement for EFI.
5322 * util/grub-mkdevicemap.c: Removed.
5323 * util/grub-probe.c (probe): Handle PRINT_DISK.
5324 (argp_parser): Handle -t disk.
5325
5326 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5327
5328 * util/grub-mkfont.c: Migrate to argp.
5329 * util/grub-mklayout.c: Likewise.
5330 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5331 * util/grub-mkrelpath.c: Likewise.
5332 * util/grub-probe.c: Likewise.
5333 * util/grub-script-check.c: Likewise.
5334
5335 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5336
5337 * util/grub-reboot.in: Add missing datarootdir.
5338 Add missing newline.
5339 * util/grub-set-default.in: Add missing datarootdir.
5340 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
5341 * util/grub-mkrescue.in: Likewise.
5342
5343 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
5346
5347 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 * util/grub-kbdcomp.in: Add decent help and gettextize.
5350 * docs/man/grub-kbdcomp.h2m: New file.
5351
5352 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 Migrate grub-mkimage.c to argp.
5355
5356 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
5357 (grub-setup): Likewise.
5358 * util/grub-setup.c (print_version): Move to ...
5359 * util/argp_common.c (print_version): ... here.
5360 * util/grub-setup.c (argp_program_version_hook): Move to ...
5361 * util/argp_common.c (argp_program_version_hook): ... here.
5362 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
5363 safety.
5364 * util/grub-mkimage.c (main): Migrate to argp.
5365
5366 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 * util/grub-mkrescue.in: Use same message as
5369 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
5370 for better translations.
5371
5372 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
5375 options with generic grub-mkrescue.in with the goal of future
5376 merge.
5377
5378 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 * grub-core/kern/mm.c: Add missing include of i18n.h
5381 * grub-core/lib/relocator.c: Likewise.
5382
5383 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
5386 error.
5387 (allocate_pages): Check return value.
5388 Replace fatal with error.
5389 (grub_linux_boot): Replace printf with dprintf.
5390 Check find_mmap_size return value.
5391 Replace fatal with error.
5392 Don't call grub_machine_fini.
5393 (grub_load_elf64): Replace printf with dprintf.
5394 (grub_cmd_linux): Likewise.
5395 (grub_cmd_initrd): Likewise.
5396 (grub_cmd_payload): Likewise.
5397
5398 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
5401 message.
5402 * grub-core/video/radeon_fuloong2e.c
5403 (grub_video_radeon_fuloong2e_setup): Likewise.
5404 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
5405 * grub-core/video/video.c (grub_video_set_mode): Don't override
5406 standard out of memory message.
5407
5408 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5409
5410 NetBSD disk wedge support.
5411
5412 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
5413 [__NetBSD__]: Handle NetBSD disk wedges.
5414 * util/getroot.c (convert_system_partition_to_system_disk)
5415 [__NetBSD__]: Likewise.
5416
5417 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
5418
5419 * util/grub-mkconfig.in: Use umask rather than chmod to create
5420 grub.cfg.new to avoid insecure grub.cfg.
5421
5422 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/commands/ls.c: Gettextize.
5425 * grub-core/commands/setpci.c: Likewise.
5426 * grub-core/commands/videotest.c: Likewise.
5427 * grub-core/disk/geli.c: Likewise.
5428 * grub-core/kern/mm.c: Likewise.
5429 * grub-core/lib/relocator.c: Likewise.
5430 * grub-core/loader/efi/appleloader.c: Likewise.
5431 * grub-core/loader/i386/xnu.c: Likewise.
5432 * grub-core/loader/ia64/efi/linux.c: Likewise.
5433 * grub-core/loader/xnu.c: Likewise.
5434 * grub-core/net/dns.c: Likewise.
5435 * grub-core/net/net.c: Likewise.
5436 * grub-core/script/lexer.c: Likewise.
5437 * grub-core/script/parser.y: Likewise.
5438 * grub-core/script/yylex.l: Likewise.
5439 * util/getroot.c: Likewise.
5440 * util/grub-setup.c: Likewise.
5441
5442 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
5445 number.
5446
5447 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
5450
5451 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
5454 macro.
5455 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
5456 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
5457
5458 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
5461 * util/grub-install.in: Gettextize.
5462 * util/grub-mkconfig.in: Likewise.
5463 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
5464 if not available.
5465 (grub_warn): Gettextize.
5466 * util/grub-mknetdir.in: Gettextize.
5467 * util/grub-mkrescue.in: Likewise.
5468 * util/grub-mkstandalone.in: Likewise.
5469 * util/grub-reboot.in: Likewise.
5470 * util/grub-set-default.in: Likewise.
5471 * util/grub.d/00_header.in: Likewise.
5472 * util/grub.d/10_hurd.in: Likewise.
5473 * util/grub.d/10_kfreebsd.in: Likewise.
5474 * util/grub.d/10_linux.in: Likewise.
5475 * util/grub.d/10_netbsd.in: Likewise.
5476 * util/grub.d/10_windows.in: Likewise.
5477 * util/grub.d/20_linux_xen.in: Likewise.
5478 * util/grub.d/30_os-prober.in: Likewise.
5479 * po/POTFILES-shell.in: Regenerate.
5480
5481 2012-02-03 Richard Laager <rlaager@wiktel.com>
5482
5483 * util/grub-mkimage.c (main): Fix format-security warning.
5484 * util/grub-mkrelpath.c (main): Likewise.
5485 * util/grub-probe.c (main): Likewise.
5486
5487 2012-02-03 Richard Laager <rlaager@wiktel.com>
5488
5489 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
5490 failure.
5491 Put back lost PRINT_DRIVE.
5492
5493 2012-02-03 Richard Laager <rlaager@wiktel.com>
5494
5495 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
5496 (grub_guess_root_devices): Replace strlen with sizeof.
5497 Avoid crash.
5498 (find_root_devices_from_poolname): Remove unused variable.
5499 Handle raidzN.
5500
5501 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 Support install on multi-device filesystems.
5504
5505 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
5506 (grub_guess_root_devices): ...this. Return char **. All users updated.
5507 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
5508 Removed.
5509 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
5510 (find_root_devices_from_poolname): ... here.
5511 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
5512 Support zfs-fuse.
5513 (grub_guess_root_device): Rename to ...
5514 (grub_guess_root_devices): ... this. Return char **. All users updated.
5515 * util/grub-install.in: Handle multi-device filesystems.
5516 * util/grub-probe.c (probe). Make device_names a char **. Add delim
5517 argument. All users updated.
5518 Handle multi-device filesystems.
5519 Use 'delim' as separator.
5520 Remove device check to allow filesystems on file.
5521 (main): Support -0 argument. Handle multi-device.
5522 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
5523 Fix a cross-device check while on it.
5524 (arguments): Remove root_dev.
5525 (argp_parser): Remove -r.
5526 (main): Remove root_dev.
5527
5528 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
5531
5532 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
5535 symbol.
5536 Reported by: NODA, Kai <nodakai>.
5537
5538 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 Fix ehci on amd64.
5541
5542 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
5543 pointers.
5544 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
5545 (grub_ehci_setup_qh): Likewise.
5546 (grub_ehci_find_qh): Likewise.
5547 (grub_ehci_transaction): Likewise.
5548 (grub_ehci_setup_transfer): Likewise.
5549 (grub_ehci_check_transfer): Likewise.
5550 (grub_ehci_portstatus): Likewise.
5551 (grub_ehci_detect_dev): Likewise.
5552 (grub_ehci_transfer_controller_data): New field td_last_phys.
5553 (grub_ehci_setup_transfer): Fill td_last_phys.
5554 (grub_ehci_check_transfer): Use td_last_phys.
5555
5556 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
5557
5558 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
5559 if no submenu is present.
5560
5561 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5562
5563 CBI support.
5564
5565 * include/grub/usb.h (grub_usbms_protocol_t): New values
5566 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
5567 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
5568 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
5569 (grub_usbms_dev): Add subclass, protocol and intrpt.
5570 Remove in_maxsz and out_maxsz.
5571 (grub_usbms_reset): Rename to ...
5572 (grub_usbms_bo_reset): .. this.
5573 (grub_usbms_cbi_cmd): New function.
5574 (grub_usbms_cbi_reset): Likewise.
5575 (grub_usbms_reset): Likewise.
5576 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
5577 (grub_usbms_transfer): Rename to ...
5578 (grub_usbms_transfer_bo): ... this.
5579 (grub_usbms_transfer_cbi): Likewise.
5580 (grub_usbms_transfer): Likewise.
5581
5582 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5583 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
5586 the support for the CS5536 modification thereos and few bugfixes.
5587
5588 * grub-core/Makefile.core.def (ehci): New module.
5589 * grub-core/bus/usb/ehci.c: New file.
5590 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
5591 port and hubaddr. All users updated.
5592 Save port and hubaddr into dev structure.
5593 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
5594 define.
5595 * include/grub/pci.h (grub_dma_phys2virt): New function.
5596 (grub_dma_virt2phys): Likewise.
5597 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
5598
5599 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
5602 check as some mkfs implementations omit it.
5603
5604 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * docs/grub.texi (Unicode): Mention identifier and space limitations.
5607
5608 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
5611 Add new member volname2.
5612 (grub_jfs_label): Use volname2 if available.
5613
5614 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
5617 over last_mounted as seen in image generated by mkfs.nilfs2.
5618 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
5619
5620 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
5623 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
5624 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
5625
5626 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
5629 over the sector.
5630
5631 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
5634 subvolume name (by removing a bogus and useless check).
5635
5636 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
5639 sizeof while on it.
5640
5641 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
5644 (grub_scsi_read_capacity10): ... this.
5645 (grub_scsi_read_capacity16): New function.
5646 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
5647 0xffffffff.
5648 Fix off-by-one error.
5649 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
5650 64-bit unsigned.
5651 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
5652 (grub_scsi_read_capacity10): ... this.
5653 (grub_scsi_read_capacity_data): Rename to ...
5654 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
5655 (grub_scsi_read_capacity16): New struct.
5656 (grub_scsi_read_capacity16_data): Likewise.
5657 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
5658 grub_scsi_cmd_read_capacity10.
5659 New command grub_scsi_cmd_read_capacity16.
5660
5661 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 SCSI >2TiB support.
5664
5665 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
5666 (grub_scsi_write16): Likewise.
5667 (grub_scsi_read): Use read16 when necessary.
5668 (grub_scsi_write): Likewise.
5669 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
5670 (grub_scsi_write16): Likewise.
5671 (grub_scsi_cmd_t): Add READ16 and WRITE16.
5672
5673 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 SCSI write support (for usbms mainly).
5676
5677 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
5678 a const pointer.
5679 (grub_scsi_write): Implement.
5680 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
5681
5682 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
5685 variable.
5686
5687 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * grub-core/lib/posix_wrap/string.h (memchr): New function.
5690
5691 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 * po/POTFILES.in: Regenerate.
5694
5695 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
5698 with grub_printf to avoid unnecessary fatal failure.
5699
5700 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
5703 (INT_MAX): Likewise.
5704 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
5705 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
5706 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
5707 (strcpy): Likewise.
5708 (strstr): Likewise.
5709 (strchr): Likewise.
5710 (strncpy): Likewise.
5711 (strcat): Likewise.
5712 (strncat): Likewise.
5713 (strcoll): Likewise.
5714 * include/grub/types.h (GRUB_SHRT_MAX): New define.
5715 (GRUB_INT_MAX): Likewise.
5716
5717 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5718
5719 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
5720 unexpected error.
5721 (optimize_utf8): Likewise.
5722 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
5723
5724 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * grub-core/boot/i386/pc/lnxboot.S: Use
5727 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
5728 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
5729 location.
5730 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
5731 definition.
5732 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
5733
5734 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
5737 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
5738 now to avoid double free.
5739 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
5740 hostdisk.
5741 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
5742 * util/grub-probe.c (escape_of_path): Always return a new copy.
5743 (print_full_name): Escape path.
5744 (probe): Don't call grub_util_devname_to_ofpath on NULL.
5745 Fix hints on abstractions.
5746
5747 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
5750 Don't add "root" line if no compatibility hont is available.
5751 Suggested by: Seth Goldberg.
5752
5753 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5754
5755 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
5756 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
5757 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
5758 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
5759
5760 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
5763
5764 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5765
5766 * util/grub-pe2elf.c (ehdr): Make static.
5767 (shdr): Likewise.
5768 (num_sections): Likewise.
5769 (offset): Likewise.
5770
5771 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 Eliminate ofpath limits and possible overflows.
5774
5775 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
5776 (OF_PATH_MAX): Removed.
5777 (MAX_DISK_CAT): New const.
5778 (find_obppath): Use allocated rather than preallocated buffer.
5779 Return result. Argument of_path removed. All users updated.
5780 Add missing fdstat.
5781 (xrealpath): New function.
5782 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
5783 Allocate rather than use preallocated buffer. All users updated.
5784 (__of_path_common): Use allocated rather than preallocatecd buffer.
5785 Return result. Argument of_path removed. All users updated.
5786 (vendor_is_ATA): Read only needed part form the file.
5787 (check_sas): Allocate depending on contents rather than fixed.
5788 (main) [STANDALONE]: Handle NULL result.
5789
5790 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * grub-core/normal/completion.c (iterate_dev): Close the disk.
5793
5794 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 Cryptodisk write support.
5797
5798 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
5799 (grub_cryptodisk_decrypt): Moved logic to ...
5800 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
5801 (grub_cryptodisk_write): Implement.
5802 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
5803 (grub_util_fd_write): ... this. Make global.
5804 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
5805
5806 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * include/grub/list.h (grub_list_remove): Don't crash if element is
5809 removed twice.
5810
5811 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 Rename ofconsole to console.
5814
5815 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
5816 as sysnonym to console.
5817 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
5818 * grub-core/term/ieee1275/console.c: ... this. All users updated.
5819 Rename grub_ofconsole_ to grub_console_. All users updated
5820 (grub_console_term_output): Rename "ofconsole" to "console".
5821 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
5822 as "console".
5823
5824 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
5827 handling.
5828 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
5829 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
5830 GRUB_DISK_DEVICE_FILE_ID.
5831
5832 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
5835 and improve performance.
5836
5837 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
5840 missing ieee1275/ prefix on whole disk.
5841
5842 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
5845 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
5846
5847 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
5850
5851 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 Merge common RAID and LVM logic to an abstract diskfilter.
5854 Add LDM support using the same framework.
5855
5856 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
5857 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
5858 (libgrubmods): Remove grub-core/disk/raid.c and
5859 grub-core/partmap/gpt.c.
5860 * grub-core/Makefile.core.def (ldm): New module.
5861 (raid): Renamed to diskfilter. All users updated.
5862 * grub-core/disk/raid.c: Moved to ...
5863 * grub-core/disk/diskfilter.c: ... here.
5864 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
5865 (lv_num): New var.
5866 (find_array): Renamed to ...
5867 (find_lv): ... this. Support multi-LV. Skip nameless LVs
5868 (grub_is_array_readable): Renamed to ...
5869 (grub_is_lv_readable): ... this. Support multinode hierarchy.
5870 (insert_array): New argument id.
5871 (is_node_readable): New function.
5872 (scan_device): Rename to ...
5873 (scan_disk): .. this. Restrict to one disk.
5874 (scan_devices): New function.
5875 (grub_diskfilter_iterate): Support multi-LV.
5876 Skip invisible and nameless LVs.
5877 (grub_diskfilter_memberlist): Support multi-LV.
5878 (grub_diskfilter_read_node): New function.
5879 (grub_raid_read): Most of logic moved to ...
5880 (read_segment): ... here
5881 (read_lv): New function.
5882 (grub_diskfilter_get_vg_by_uuid): New function.
5883 (grub_diskfilter_make_raid): Likewise.
5884 * grub-core/disk/ldm.c: New file.
5885 * grub-core/disk/lvm.c (vg_list): Removed.
5886 (lv_count): Likewise.
5887 (scan_depth): Likewise.
5888 (is_lv_readable): Likewise.
5889 (grub_lvm_getvalue): Advance pointer past the number.
5890 (find_lv): Removed.
5891 (do_lvm_scan): Refactored into ...
5892 (grub_lvm_detect): ... this. Support raid.
5893 (grub_lvm_iterate): Removed.
5894 (grub_lvm_memberlist): Likewise.
5895 (grub_lvm_open): Likewise.
5896 (grub_lvm_close): Likewise.
5897 (read_lv): Likewise.
5898 (read_node): Likewise.
5899 (is_node_readable): Likewise.
5900 (is_lv_readable): Likewise.
5901 (grub_lvm_read): Likewise.
5902 (grub_lvm_write): Likewise.
5903 (grub_lvm_dev): Use diskfilter
5904 (GRUB_MOD_INIT): Likewise.
5905 (GRUB_MOD_FINI): Likewise.
5906 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
5907 new interface.
5908 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
5909 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5910 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
5911 grub_diskfilter_read_node.
5912 Fix a bug with xor.
5913 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
5914 grub_diskfilter_read_node.
5915 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
5916 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
5917 (grub_disk_dev_iterate): Move from here...
5918 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
5919 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
5920 Make global.
5921 (grub_hostdisk_find_partition_start): Likewise.
5922 (grub_hostdisk_os_dev_to_grub_drive): New function.
5923 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
5924 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
5925 * util/getroot.c (make_device_name): ... here.
5926 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5927 Move to ...
5928 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
5929 * grub-core/kern/emu/hostdisk.c
5930 (convert_system_partition_to_system_disk): Move to ...
5931 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
5932 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
5933 * util/getroot.c (device_is_wholedisk): ... here.
5934 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
5935 * util/getroot.c (find_system_device): ... here.
5936 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
5937 Move to ...
5938 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
5939 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
5940 Move to ...
5941 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
5942 Handle LDM.
5943 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5944 Move to ...
5945 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
5946 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
5947 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
5948 DISKFILTER.
5949 * include/grub/raid.h: Renamed to ...
5950 * include/grub/diskfilter.h: ... this.
5951 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
5952 (GRUB_RAID_LAYOUT_*): Make into array.
5953 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
5954 (grub_diskfilter_vg): New struct.
5955 (grub_diskfilter_pv_id): Likewise.
5956 (grub_raid_member): Removed.
5957 (grub_raid_array): Likewise.
5958 (grub_diskfilter_pv): New struct.
5959 (grub_diskfilter_lv): Likewise.
5960 (grub_diskfilter_segment): Likewise.
5961 (grub_diskfilter_node): Likewise.
5962 (grub_diskfilter_get_vg_by_uuid): New proto.
5963 (grub_raid_register): Inline.
5964 (grub_diskfilter_unregister): Likewise.
5965 (grub_diskfilter_make_raid): New proto.
5966 (grub_diskfilter_vg_register): Likewise.
5967 (grub_diskfilter_read_node): Likewise.
5968 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
5969 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
5970 (grub_util_is_ldm): Likewise.
5971 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
5972 (grub_hostdisk_find_partition_start): Likewise.
5973 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
5974 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
5975 New definition.
5976 (grub_gpt_partition_map_iterate): New proto.
5977 * include/grub/lvm.h (grub_lvm_vg): Removed.
5978 (grub_lvm_pv): Likewise.
5979 (grub_lvm_lv): Likewise.
5980 (grub_lvm_segment): Likewise.
5981 (grub_lvm_node): Likewise.
5982 * util/getroot.c [...]
5983 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
5984 (probe_abstraction): Likewise.
5985 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
5986 (main): Remove dead logic.
5987
5988 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
5989
5990 Simplify root device discover and don't fail when trying to open
5991 incorrect devices.
5992
5993 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
5994 function.
5995 (get_diskname_from_path): Likewise.
5996 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
5997 of iterating.
5998
5999 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6002
6003 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6006 pastthe end.
6007
6008 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * util/grub-install.in: Add missing \.
6011 Reported by: gentoofan
6012
6013 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6016 (direct_read): Use correct compressed size.
6017 (grub_squash_read_data): Likewise.
6018
6019 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * docs/grub.texi (Platform limitations): New section.
6022 (Platform-specific operations): Likewise.
6023 * docs/grub-dev.texi (Porting): Likewise.
6024
6025 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 IEEE1275 disk write support.
6028
6029 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6030 const void *.
6031 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6032 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6033 and seek loginc to ...
6034 (grub_ofdisk_prepare): ... here.
6035 (grub_ofdisk_write): Implement.
6036
6037 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 ARC disk write support.
6040
6041 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6042 (reopen): New argument writable. All users updated.
6043 Handle required access mode.
6044 (grub_arcdisk_write): Implement.
6045 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6046 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6047
6048 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6051 (read_sblock): Don't attempt to read superblocks outside the disk size.
6052
6053 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6056 first superblock to find the second one when possible.
6057
6058 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * util/grub-install.in: Fix an ARC bug.
6061 Print a warning if no platform-specific setup is available.
6062
6063 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 Use static allocation rather than scratch pointer in reed_solomon.
6066 It decreases its size significantly and avoids a variable in .text.
6067
6068 * grub-core/lib/reed_solomon.c (scratch): Removed.
6069 (chosenstat): New const or static array.
6070 (sigma): Likewise.
6071 (errpot): Likewise.
6072 (errpos): Likewise.
6073 (sy): Likewise.
6074 (mstat): Likewise.
6075 (errvals): Likewise.
6076 (eqstat): Likewise.
6077 (pol_evaluate): Replace x with log_x argument. All users updated.
6078 (syndroms): Removed.
6079 (gauss_solve): Use statically allocated arrays.
6080 (rs_recover): Likewise.
6081 Calculate syndroms directly.
6082 (decode_block): Use statically allocated arrays.
6083 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6084 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6085
6086 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 Eliminate fixed limit on reed solomon decoder length.
6089
6090 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6091 rather than hardcoding the address.
6092 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6093 no_reed_solomon_length.
6094 Move gate_a20 to no-reed-solomon part.
6095 Don't force a particular size of no reed-solomon part.
6096 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6097 Removed.
6098 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6099 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6100
6101 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * grub-core/commands/wildcard.c (match_files): Handle filenames
6104 without explicit device.
6105 (wildcard_expand): Don't add explicit device if not already present.
6106 * tests/grub_script_echo1.in: Add a new expansion test.
6107
6108 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Replace single-linked with double-linked lists. It results in more
6111 compact and more efficient code.
6112
6113 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6114 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6115 (grub_list_remove): Moved from here ...
6116 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6117 (grub_prio_list_insert): Set prev.
6118 * include/grub/list.h (grub_list): Add prev. All users updated.
6119
6120 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 Handle newer autotools. Add some missing quotes while on it.
6123
6124 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6125 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6126 (pkgdata_DATA): ... here.
6127 * Makefile.util.def (update-grub_lib): Removed.
6128 * conf/Makefile.common (pkglib_DATA): Removed.
6129 (pkglib_SCRIPTS): Likewise.
6130 (pkgdata_DATA): New variable.
6131 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6132 needed.
6133 Add missing quotes.
6134 Remove unused variable while on it.
6135 * tests/util/grub-shell.in: Likewise.
6136 * util/grub-install.in: Likewise.
6137 * util/grub-mkconfig.in: Likewise.
6138 * util/grub-mknetdir.in: Likewise.
6139 * util/grub-mkrescue.in: Likewise.
6140 * util/grub-mkstandalone.in: Likewise.
6141 * util/grub.d/00_header.in: Likewise.
6142 * util/grub.d/10_hurd.in: Likewise.
6143 * util/grub.d/10_illumos.in: Likewise.
6144 * util/grub.d/10_kfreebsd.in: Likewise.
6145 * util/grub.d/10_linux.in: Likewise.
6146 * util/grub.d/10_netbsd.in: Likewise.
6147 * util/grub.d/10_windows.in: Likewise.
6148 * util/grub.d/20_linux_xen.in: Likewise.
6149 * util/grub.d/30_os-prober.in: Likewise.
6150 * util/update-grub_lib.in: Removed.
6151
6152 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6153
6154 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6155 a workaround for intel problem.
6156
6157 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6158 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6159 2012-01-23 pfsmorigo
6160
6161 * util/grub-install.in: Support dd'in into PreP partition.
6162 * util/grub-probe.c (probe): Support discovering partition type.
6163 (main): Support -t msdos_parttype.
6164
6165 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6168 infinite recursion using counter.
6169 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6170 init to skip it if the magic check fails.
6171 (dec_stream_header): Init s->crc32.
6172
6173 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6174 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6175 2012-01-22 Richard Laager <rlaager@wiktel.com>
6176
6177 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6178 All users updated.
6179 (find_bestub): Determine correct size.
6180 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6181 (scan_disk): Align the size down.
6182 Call check pool before find_bestub to have ashift.
6183
6184 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6187 dprintf in no-malloc zone.
6188
6189 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6190
6191 * configure.ac: Add back in test for limits.h.
6192
6193 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 Support 4K-sector NTFS.
6196
6197 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6198 (grub_ntfs_data): Remove blocksize.
6199 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6200 Remove data argument. All users updated.
6201
6202 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6205 being in .text to avoid dprel references.
6206 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6207 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6208 (grub_arch_highmemsize): Likewise.
6209 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6210 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6211 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6212
6213 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6216
6217 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6218 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6219
6220 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6223 GRUB_UTIL.
6224 (grub_set_datetime_cmos): Likewise.
6225
6226 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 Make XZ compression parameters dependent on target and not host CPU.
6229
6230 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6231 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6232
6233 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6236 set but not used variable.
6237
6238 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6241 created when no uuid support is compiled into mkfs.reiser.
6242
6243 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6246 (utf8_to_macroman): Do the opposite.
6247 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6248
6249 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 * configure.ac: Refise build qemu_mips w/o unifont.
6252
6253 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 Eliminate grub_min/grub_max prone to overflow usage.
6256
6257 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6258 (poll_nonroot_hub): Likewise.
6259 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6260 (grub_affs_label): Likewise.
6261 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6262 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6263 (grub_hfs_label): Likewise.
6264 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6265 * grub-core/fs/zfs/zfs.c (MIN): Remove.
6266 (zap_leaf_array_equal): Use grub_size. Remove MIN.
6267 (zap_leaf_array_get): Likewise.
6268 (dnode_get_path): Likewise.
6269 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
6270 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
6271 * grub-core/script/execute.c (grub_script_break): Likewise.
6272 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
6273 grub_max.
6274 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
6275 * include/grub/misc.h (grub_min): Removed.
6276 (grub_max): Likewise.
6277
6278 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6279
6280 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
6281 direct.inode = 0.
6282
6283 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
6286
6287 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
6290
6291 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
6294 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
6295
6296 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
6299 rather than a hack for grub_strncasemap.
6300
6301 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 Support multiple initrds
6304 Note: part of this was accidently committed in r3739.
6305
6306 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
6307 initrd.
6308 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6309 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6310 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6311 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6312 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6313
6314 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
6317 disks with unknown size.
6318 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
6319
6320 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 Remove defines pertaining to arbitrary limits not affecting GRUB
6323 anymore.
6324
6325 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
6326 (EXT2_MAX_SYMLINKCNT): Likewise.
6327 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
6328 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
6329 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
6330 (GRUB_PXE_MAX_BLKSIZE): Likewise.
6331 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
6332 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
6333 (DN_MAX_OBJECT_SHIFT): Likewise.
6334 (DN_MAX_OFFSET_SHIFT): Likewise.
6335 (DN_MAX_OBJECT): Likewise.
6336 (DNODES_PER_LEVEL_SHIFT): Likewise.
6337 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
6338 (SPA_MAXBLOCKSIZE): Likewise.
6339 (SPA_BLOCKSIZES): Likewise.
6340 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
6341 (MZAP_MAX_BLKSZ): Likewise.
6342
6343 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
6346 handle NULL appropriately.
6347 Remove MIN.
6348
6349 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 Fix efiemu.
6352
6353 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
6354 cpu/types.h.
6355 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
6356 * configure.ac: Fix efiemu check.
6357
6358 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
6361 grub_probe.
6362 Reported by: adamwill
6363
6364 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
6365
6366 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
6367
6368 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 Fix handling of wide characters in gfxterm.
6371
6372 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
6373 (clear_char): Likewise.
6374 (paint_char): Skip code == NULL chars.
6375 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
6376
6377 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6378
6379 * grub-core/normal/charset.c: Move comment to right place.
6380
6381 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
6384 (GRUB_AFFS_FLAG_FFS): Put back where it was.
6385 (grub_affs_mount): Revert the correct version checking.
6386
6387 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * docs/grub.texi (Unicode): Mention several other unsupported features.
6390
6391 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
6394 case statements as compile-time one.
6395 (direct_read): Prevent spurious warnings.
6396 (grub_squash_read_data): Likewise.
6397
6398 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 Various squash4 fixes and LZO and XZ support.
6401
6402 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
6403 Add xzembed source files.
6404 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
6405 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
6406 (grub_squash_inode): New subtype long_dir.
6407 (SQUASH_TYPE_LONG_DIR): New inode type.
6408 (COMPRESSION): New enum.
6409 (XZBUFSIZ): New const.
6410 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
6411 (read_chunk): Use data->decompress.
6412 (zlib_decompress): New function.
6413 (lzo_decompress): Likewise.
6414 (xz_decompress): Likewise.
6415 (squash_mount): Set new data fields.
6416 (grub_squash_iterate_dir): Handle long dir.
6417 (squash_unmount): Free xzdec and xzbuf.
6418 (grub_squash_open): Check ino type.
6419 (direct_read): Stylistic fixes. Use data->decompress.
6420 (grub_squash_read_data): Likewise.
6421 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
6422 (get_byte): Likewise.
6423 (grub_zlib_disk_read): Removed.
6424 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
6425 (GRUB_POSIX_BOOL_DEFINED): New define.
6426 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
6427 * grub-core/lib/xzembed/xz.h: Addmissing includes.
6428 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
6429 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
6430
6431 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 Don't override more informative errors.
6434
6435 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
6436 * grub-core/font/font.c (open_section): Likewise.
6437 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
6438 filename. Don't override errors.
6439 (grub_cmd_openbsd_ramdisk): Don't override errors.
6440 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
6441 (grub_cmd_initrd): Likewise.
6442 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6443 (grub_cmd_initrd): Likewise.
6444 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
6445 (grub_cmd_linux): Likewise.
6446 (grub_cmd_initrd): Likewise.
6447 (grub_cmd_payload): Likewise.
6448 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6449 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
6450 (grub_cmd_module): Likewise.
6451 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6452 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6453 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
6454 (grub_cmd_xnu_mkext): Likewise.
6455 (grub_cmd_xnu_ramdisk): Likewise.
6456 (grub_xnu_check_os_bundle_required): Likewise.
6457 (grub_xnu_load_kext_from_dir): Likewise.
6458 (grub_cmd_xnu_kextdir): Likewise.
6459 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
6460
6461 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
6464 as 1024 in block size field. Found on one of my test images.
6465 Small optimisation while on it.
6466
6467 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
6470 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
6471 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
6472 performance fixes while on it.
6473 (grub_sfs_close): Fix memory leak while on it.
6474 (grub_sfs_label): Convert Latin1 to UTF-8.
6475
6476 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
6479 space to avoid overflows.
6480 (grub_hfs_label): Convert from macroman to UTF-8.
6481
6482 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
6485
6486 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
6489
6490 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 * unicode: Import Unicode 6.0 data.
6493
6494 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
6497 outside of range.
6498
6499 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 Avoid cutting in the middle of UTF-8 character.
6502
6503 * include/grub/charset.h (grub_getend): New function.
6504 * grub-core/script/function.c (grub_script_function_find): Use
6505 grub_getend.
6506 * grub-core/normal/completion.c (add_completion): Likewise.
6507
6508 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
6511 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
6512 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
6513 (GRUB_UNICODE_TAG_END): Likewise.
6514 (GRUB_UNICODE_LAST_VALID): Likewise.
6515
6516 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
6519 len and make it smaller. All users updated.
6520 * util/import_unicode.py: Put length and not end character.
6521 Check length.
6522
6523 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 Make better Unicode-compliant and unify some UTF-8 code pathes.
6526
6527 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
6528 valid character.
6529 (grub_is_valid_utf8): Use grub_utf8_process.
6530 Check resulting code range.
6531 (grub_utf8_to_ucs4): Use grub_utf8_process.
6532 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
6533 valid character.
6534
6535 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
6538
6539 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * docs/grub.texi (Filesystems): Mention AFS.
6542
6543 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 * docs/grub.texi (Filesystems): Clarify restrictions.
6546 (Regexp): Mention non-Unicode regexp behaviour.
6547 (Other): Mention non-Unicode matching behaviour.
6548
6549 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 Make HFS implementation use MacRoman.
6552
6553 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
6554 (macroman): New const array.
6555 (macroman_to_utf8): New function.
6556 (utf8_to_macroman): Likewise.
6557 (grub_hfs_find_dir): Use utf8_to_macroman.
6558 (grub_hfs_dir): Use macroman_to_utf8.
6559 Set case_insensitive.
6560
6561 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
6564
6565 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 Integrate hints into autogeneration scripts.
6568
6569 * docs/grub.texi (Filesystems): Add a hostdisk example.
6570 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
6571 (grub-probe): Add ofpath.
6572 * gentpl.py: Remove group nosparc64.
6573 * grub-core/commands/search.c (cache_entry): New struct.
6574 (cache): New var.
6575 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
6576 * grub-core/commands/search_wrap.c (options): Add platform-specific
6577 hint options.
6578 (grub_cmd_search): Handle platform-specific hints.
6579 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
6580 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
6581 (grub_util_biosdisk_data): Likewise.
6582 (grub_util_biosdisk_open): Set device_map.
6583 (read_device_map): Handle "" as indication of no map.
6584 Set device_map.
6585 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
6586 (grub_util_biosdisk_get_compatibility_hint): New function.
6587 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
6588 * include/grub/emu/hostdisk.h
6589 (grub_util_biosdisk_get_compatibility_hint): New proto.
6590 * util/grub-install.in: Don't call grub-mkdevicemap.
6591 Add platform-specific hint to load.cfg.
6592 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
6593 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6594 hints. Set root preliminary to compatibility hint, not to OS name.
6595 * util/grub-probe.c (PRINT_*): Add hints.
6596 (print): Make static.
6597 (escape_of_path): New function.
6598 (guess_bios_drive): Likewise.
6599 (guess_efi_drive): Likewise.
6600 (guess_baremetal_drive): Likewise.
6601 (print_full_name): Likewise.
6602 (probe): Handle hints.
6603 (main): Likewise.
6604 * util/ieee1275/devicemap.c: Removed.
6605 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
6606 updated.
6607 (grub_util_devname_to_ofpath): Return NULL on failure.
6608
6609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
6610 resource leak.
6611 * util/getroot.c (grub_util_pull_device): Fix memory leak.
6612
6613 * po/POTFILES.in: Regenerated.
6614
6615 Allow purely long options
6616
6617 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
6618 (SHORT_ARG_USAGE): Likewise.
6619 (grub_arg_show_help): Compare opt with help_options.
6620 (parse_option): Receive opt as argument. If makes big simplificatons.
6621 All users updated
6622
6623 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
6626 Restructure to avoid warning.
6627
6628 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * util/grub-install.in: Account for possible escaped comma in device
6631 name.
6632
6633 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6634
6635 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
6636 channel.
6637
6638 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
6641 allocation and zero-setting.
6642 (grub_ieee1275_get_devname): Check that alias is complete.
6643
6644 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
6647 unaligned segments.
6648
6649 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
6652 prefix.
6653 (grub_ofdisk_open): Check and discard ieee1275 prefix.
6654 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6655 Add ieee1275 prefix.
6656
6657 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * docs/grub.texi (Filesystems): Update.
6660
6661 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 Support odc, newc and bigendian cpio formats.
6664
6665 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
6666 * grub-core/Makefile.core.def (newc): New module.
6667 (odc): Likewise.
6668 (cpio_be): Likewise.
6669 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
6670 (MAGIC): Likewise.
6671 (MAGIC2): Likewise.
6672 (head) [MODE_ODC]: Adapt for the format.
6673 (head) [MODE_NEWC]: Likewise.
6674 (head) [!MODE_*]: Write fields of interest as arrays.
6675 (MAGIC_USTAR): Removed.
6676 (read_number) [MODE_NEWC]: Change to hex.
6677 (read_number) [!MODE_*]: Parse binary arrays.
6678 (grub_cpio_find_file): Factor out the code for better structure and
6679 always use read_number.
6680 (grub_cpio_mount): Use MAGIC and MAGIC2.
6681 (grub_cpio_dir): Exit on first hook non-0 return.
6682 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
6683 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
6684 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
6685 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
6686 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
6687 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
6688 * grub-core/fs/newc.c: New file.
6689 * grub-core/fs/odc.c: Likewise.
6690 * grub-core/fs/cpio_be.c: Likewise.
6691
6692 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 Fix handling of tar numbers occupying the whole field.
6695
6696 * grub-core/fs/cpio.c (read_number): New function.
6697 (grub_cpio_find_file): Use read_number instead of strtoull.
6698
6699 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
6702 occupying the whole field size.
6703
6704 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
6705
6706 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
6707
6708 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
6711
6712 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
6713
6714 * grub-core/Makefile.core.def (lzma_decompress): Add missing
6715 TARGET_IMG_LDFLAGS.
6716
6717 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * util/getroot.c (ESCAPED_PATH_MAX): New define.
6720 (mountinfo_entry): Increase the field size to take escaping into
6721 account.
6722 (find_root_device_from_libzfs): Add one byte to size of strings for
6723 security.
6724
6725 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
6728 an assert.
6729 * util/grub-setup.c (setup): Likewise.
6730
6731 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
6734 _LzmaDecodeA.
6735
6736 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * docs/grub.texi (Internationalisation): New section.
6739
6740 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * docs/grub.texi (Loopback booting): New section.
6743
6744 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
6745
6746 * util/grub-mkstandalone.in: Fix minor typo errors.
6747
6748 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
6751
6752 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
6753 net/icmp.c and net/icmp6.c.
6754 (http): New module.
6755 (priority_queue): Likewise.
6756 * grub-core/io/bufio.c: Rewritten.
6757 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
6758 TYPE_WITH_CONFIGFILE_OPTION.
6759 (legacy_commands): Add bootp and dhcp.
6760 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
6761 (grub_legacy_parse): Likewise.
6762 * grub-core/lib/priority_queue.c: New file.
6763 * grub-core/net/arp.c: Add missing license header.
6764 (arp_find_entry): Removed.
6765 (arp_find_entry): Likewise.
6766 (grub_net_arp_resolve): Rename to ...
6767 (grub_net_arp_send_request): ...this.
6768 (grub_net_arp_receive): New card argument.
6769 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
6770 Set router and DNS server.
6771 (grub_net_configure_by_dhcp_ack): Handle routing information.
6772 (grub_cmd_bootp): Set checksum.
6773 (grub_bootp_init): Remove net_dhcp.
6774 * grub-core/net/dns.c: New file.
6775 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
6776 completion.
6777 (get_card_packet): Handle allocation.
6778 (grub_efinet_findcards): Set mtu.
6779 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
6780 (get_card_packet): Handle allocation.
6781 (emucard): Set mtu.
6782 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
6783 (GRUB_MOD_INIT): Set mtu.
6784 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
6785 mtu.
6786 (get_card_packet): Handle allocation.
6787 (grub_ofnet_findcards): Set mtu.
6788 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
6789 assert.
6790 (grub_net_recv_ethernet_packet): Handle IPv6.
6791 * grub-core/net/http.c: New file.
6792 * grub-core/net/icmp.c: Likewise.
6793 * grub-core/net/icmp6.c: Likewise.
6794 * grub-core/net/ip.c (ip6addr): New type.
6795 (ip6hdr): Likewise.
6796 (reassemble): Likewise.
6797 (cmp): New function.
6798 (reassembles): New variable.
6799 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
6800 (id): New variable.
6801 (send_fragmented): New function.
6802 (grub_net_send_ip_packet): Rename to ...
6803 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
6804 Handle non-UDP.
6805 (grub_net_recv_ip_packets): Rename to ...
6806 (handle_dgram): ... this. Check checksum. Handle non-UDP.
6807 (free_rsm): New function.
6808 (free_old_fragments): Likewise.
6809 (grub_net_recv_ip4_packets): New function.
6810 (grub_net_send_ip6_packet): Likewise.
6811 (grub_net_send_ip_packet): Likewise.
6812 (grub_net_recv_ip6_packets): Likewise.
6813 (grub_net_recv_ip_packets): Likewise.
6814 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
6815 (LINK_LAYER_CACHE_SIZE): New const.
6816 (link_layer_find_entry): New function.
6817 (grub_net_link_layer_add_address): Likewise.
6818 (grub_net_link_layer_resolve_check): Likewise.
6819 (grub_net_link_layer_resolve): Likewise.
6820 (grub_net_ipv6_get_slaac): Likewise.
6821 (grub_net_ipv6_get_link_local): Likewise.
6822 (grub_cmd_ipv6_autoconf): Likewise.
6823 (parse_ip): Handle one number representation.
6824 (parse_ip6): New functoion.
6825 (match_net): Handle IPv6.
6826 (grub_net_resolve_address): Handle IPv6 and DNS.
6827 (grub_net_resolve_net_address): Handle IPv6.
6828 (route_cmp): New function.
6829 (grub_net_route_address): Find best route.
6830 (grub_net_addr_to_str): Handle IPv6.
6831 (grub_net_addr_cmp): New function.
6832 (grub_net_add_addr): Register local route.
6833 (print_net_address): Handle net address.
6834 (grub_net_poll_cards): Retransmit TCP.
6835 (grub_net_poll_cards_idle_real): Likewise.
6836 (have_ahead): New function.
6837 (grub_net_seek_real): Use underlying seek.
6838 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
6839 * grub-core/net/tcp.c: New file.
6840 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
6841 (cmp): New function.
6842 (ack): Likewise.
6843 (tftp_receive): Handle unordered input.
6844 (destroy_pq): New function.
6845 (tftp_close): Close pq.
6846 * grub-core/net/udp.c: Put missing license header.
6847 (grub_net_udp_socket): New function.
6848 (udp_socket_register): Likewise.
6849 (grub_net_udp_close): Likewise.
6850 (grub_net_recv_udp_packet): Check checksum.
6851 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
6852 * include/grub/misc.h (grub_memchr): New function.
6853 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
6854 (grub_net_card_driver): Return buf in recv.
6855 (grub_net_slaac_mac_list): New struct.
6856 (grub_network_level_protocol_id): Add ipv6.
6857 (grub_net_network_level_addr): Likewise.
6858 (grub_net_network_level_net_addr): Likewise.
6859 (grub_net_app_protocol): Add seek.
6860 (grub_net_socket): Removed.
6861 (grub_net_sockets): Likewise.
6862 (grub_net_socket_register): Likewise.
6863 (grub_net_socket_unregister): Likewise.
6864 (FOR_NET_SOCKETS): Likewise.
6865 (grub_net_add_addr): Add const.
6866 (GRUB_NET_BOOTP_*): New enum.
6867 (grub_net_addr_cmp): New proto.
6868 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
6869 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
6870 (grub_net_hwaddr_to_str): NEw proto.
6871 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
6872 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
6873 (grub_dns_init): New proto.
6874 (grub_dns_fini): Likewise.
6875 (grub_net_tcp_retransmit): Likewise.
6876 (grub_net_link_layer_add_address): Likewise.
6877 (grub_net_link_layer_resolve_check): Likewise.
6878 (grub_net_link_layer_resolve): Likewise.
6879 (grub_net_dns_lookup): Likewise.
6880 (grub_net_add_dns_server): Likewise.
6881 (grub_net_remove_dns_server): Likewise.
6882 (GRUB_NET_TRIES): New const.
6883 (GRUB_NET_INTERVAL): Likewise.
6884 * include/grub/net/arp.h: Mostly rewritten.
6885 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
6886 * include/grub/net/ip.h: Mostly rewritten.
6887 * include/grub/net/netbuff.h: Indent.
6888 * include/grub/net/tcp.h: New file.
6889 * include/grub/net/udp.h: Mostly rewritten.
6890 * include/grub/priority_queue.h: New file.
6891 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
6892 (grub_swap_bytes64_compile_time): Likewise.
6893 (grub_cpu_to_be16_compile_time): Likewise.
6894 (grub_cpu_to_be32_compile_time): Likewise.
6895 (grub_cpu_to_be64_compile_time): Likewise.
6896 (grub_be_to_cpu64_compile_time): Likewise.
6897
6898 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
6901 UINT_TO_PTR with cast.
6902
6903 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
6906 don't use them.
6907
6908 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
6911 already there.
6912
6913 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
6916 confusing ipxe.
6917
6918 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
6921 Add missing const attribute.
6922 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
6923 Likewise.
6924 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
6925 Likewise.
6926
6927 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
6930 misaligned access.
6931 (serpent_setkey): Likewise.
6932 (serpent_encrypt_internal): Likewise.
6933 (serpent_decrypt_internal): Likewise.
6934 (serpent_encrypt): Don't put an alignment-increasing cast.
6935 (serpent_decrypt): Likewise.
6936 (serpent_test): Likewise.
6937
6938 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
6941
6942 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
6945
6946 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
6947 grub_addr_t casts.
6948 (PTR_TO_UINT64): Likewise.
6949 (PTR_TO_UINT32): Likewise.
6950
6951 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * util/grub-mkimage.c (generate_image): Decrease the higher limit
6954 because of stack.
6955 * util/grub-setup.c (setup): Don't add redundancy past the higher load
6956 limit.
6957
6958 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
6961 text_width > available width a bit more gracefully.
6962
6963 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
6966 current address calculation.
6967
6968 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
6971 stack.
6972 (encode_block): Likewise.
6973
6974 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
6977 certainety.
6978
6979 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
6982 non-RS part to avoid RS messing with GDT.
6983 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6984 Increase to suit in realmode routines.
6985
6986 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * grub-core/kern/i386/realmode.S: Increase alignment.
6989 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
6990
6991 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
6994 be deterministic.
6995 (syndroms): Compute 0 syndrom.
6996 (rs_recover): Use 0 syndrom.
6997
6998 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7001
7002 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7003
7004 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7005 brackets.
7006
7007 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7010 account.
7011 (get_top_pad): Likewise.
7012 (get_right_pad): Likewise.
7013 (get_bottom_pad): Likewise.
7014
7015 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7018
7019 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7022 attribute as the structure isn't guaranteed to be properly aligned.
7023 (grub_efi_pci_device_path): Likewise.
7024 (grub_efi_pccard_device_path): Likewise.
7025 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7026 specify the size of `memory_type'.
7027 (grub_efi_vendor_device_path): Likewise.
7028 (grub_efi_controller_device_path): Likewise.
7029 (grub_efi_acpi_device_path): Likewise.
7030 (grub_efi_expanded_acpi_device_path): Likewise.
7031 (grub_efi_atapi_device_path): Likewise.
7032 (grub_efi_scsi_device_path): Likewise.
7033 (grub_efi_fibre_channel_device_path): Likewise.
7034 (grub_efi_1394_device_path): Likewise.
7035 (grub_efi_usb_device_path): Likewise.
7036 (grub_efi_usb_class_device_path): Likewise.
7037 (grub_efi_i2o_device_path): Likewise.
7038 (grub_efi_mac_address_device_path): Likewise.
7039 (grub_efi_ipv4_device_path): Likewise.
7040 (grub_efi_ipv6_device_path): Likewise.
7041 (grub_efi_infiniband_device_path): Likewise.
7042 (grub_efi_uart_device_path): Likewise.
7043 (grub_efi_vendor_messaging_device_path): Likewise.
7044 (grub_efi_hard_drive_device_path): Likewise.
7045 (grub_efi_cdrom_device_path): Likewise.
7046 (grub_efi_vendor_media_device_path): Likewise.
7047 (grub_efi_file_path_device_path): Likewise.
7048 (grub_efi_protocol_device_path): Likewise.
7049 (grub_efi_piwg_device_path): Likewise.
7050 (grub_efi_bios_device_path): Likewise.
7051
7052 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7055 (grub_ucs4_to_utf8_alloc): Likewise.
7056 (grub_ucs4_to_utf8): Likewise.
7057 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7058 (grub_ucs4_to_utf8_alloc): Likewise.
7059
7060 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 AFFS never uses unicode.
7063
7064 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7065 (grub_latin1_to_utf8): New inline function.
7066 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7067
7068 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7071 overflow.
7072
7073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7076 (grub_squash_dirent_header): Likewise.
7077 (read_chunk): Don't double swap.
7078 (grub_squash_iterate_dir): Fix swap sizes.
7079
7080 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7083
7084 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7087 (grub_hfs_iterate_dir): Likewise.
7088
7089 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 Fix video on platforms where unaligned access is forbidden.
7092 Make several optimisations while on it.
7093
7094 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7095 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7096 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7097 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7098 Disable.
7099 (grub_video_fbblit_replace_16bit_1bit):
7100 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7101 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7102 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7103 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7104 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7105 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7106 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7107 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7108 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7109 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7110 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7111 (grub_video_fbblit_replace_index_RGB888): Likewise.
7112 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7113 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7114 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7115 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7116 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7117 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7118 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7119 Disable.
7120 (grub_video_fbblit_blend_XXX565_1bit):
7121 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7122 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7123 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7124 void *.
7125 * grub-core/video/fb/video_fb.c (common_blitter)
7126 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7127 (grub_video_fb_create_render_target_from_pointer)
7128 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7129 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7130 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7131 definition.
7132 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7133
7134 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7137 HH22 and HM10 relocations.
7138
7139 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7142
7143 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7146 allocation succeeded.
7147
7148 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7151 argument a u8 pointer. All users updated.
7152 Handle unaligned buffers.
7153
7154 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7157 add_part to workaround compiler bug.
7158
7159 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7162
7163 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7164
7165 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7166 Reserve alignment invariants.
7167 (grub_multiboot_load): Likewise.
7168 (retrieve_video_parameters): Likewise.
7169 (grub_multiboot_make_mbi): Likewise.
7170
7171 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7174 incorrect pointer.
7175
7176 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7179 (grub_pata_pio_write): Likewise.
7180
7181 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 Add noreturn attributes and remove unreachable code.
7184
7185 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7186 code.
7187 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7188 code. Mark as noreturn.
7189 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7190 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7191 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7192 unreachable code.
7193 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7194 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7195 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7196 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7197 * include/grub/kernel.h (grub_main): Mark as noreturn.
7198 * include/grub/reader.h (grub_rescue_run): Likewise.
7199
7200 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7203 redundant declaration.
7204
7205 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7208 redundant declaration.
7209 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7210
7211 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7214 to ensure alignment.
7215 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7216 alignment. Ensure tmp alignment.
7217 (grub_cmd_hdparm): Ensure buf alignment.
7218 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7219 to ensure alignment.
7220 (grub_ata_dumpinfo): Ensure text alignment.
7221 (grub_atapi_identify): Preserve alignment invariant.
7222 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7223
7224 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7227 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7228 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7229 * include/grub/misc.h (grub_reboot)
7230 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7231 (grub_halt) [__mips__]: Likewise.
7232
7233 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7236 Remove redundant declaration.
7237 (grub_mmap_get_post64): Likewise.
7238 (grub_mmap_get_upper): Likewise.
7239 (grub_mmap_get_lower): Likewise.
7240
7241 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7244 uint32_t * to ensure alignment.
7245 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7246
7247 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7250 uint16_t * to ensure alignment.
7251 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7252 alignment.
7253
7254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7257 to ensure alignment.
7258 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7259
7260 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7263 Handle unaligned pointers.
7264 (u32at): Likewise.
7265 (u64at): Likewise.
7266 (fixup): Use byte access instead of v16at.
7267 (find_attr): Fix imporper usage of v32at.
7268 (read_data): Likewise.
7269 (list_file): Handle byte-swapping and unaligned strings.
7270 (grub_ntfs_label): Likewise.
7271
7272 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
7275 as it's not necessarily aligned.
7276
7277 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
7280 redundant declaration.
7281 (grub_serial_init): Likewise.
7282 (grub_terminfo_init): Likewise.
7283
7284 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
7287 function.
7288 (ZAP_HASH_IDX): Likewise.
7289 (ZAP_LEAF_HASH_SHIFT): Likewise.
7290 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
7291 (LEAF_HASH): Likewise.
7292 (ZAP_LEAF_NUMCHUNKS): Likewise.
7293 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
7294 alignment invariants. Return pointer. All users updated.
7295 (ZAP_LEAF_ENTRY): Make into inline function.
7296 (NBBY): Removed.
7297 (xor): LIkewise.
7298 (xor_out): Use grub_crypto_xor.
7299 (dnode_get_path): Use grub_get_unaligned.
7300 (nvlist_find_value): Likewise.
7301 (grub_zfs_nvlist_lookup_uint64): Likewise.
7302 (grub_zfs_nvlist_lookup_string): Likewise.
7303 (get_nvlist_size): Likewise.
7304 (grub_zfs_open): Likewise.
7305 (fill_fs_info): Likewise.
7306 (grub_zfs_dir): Likewise.
7307 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
7308 alignment invariants.
7309 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
7310 necessarily aligned.
7311
7312 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
7315
7316 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
7319 arithmetic to conserve alignment invariants.
7320
7321 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7322
7323 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
7324 redundant declaration.
7325 (grub_efiemu_mm_obtain_request): Likewise.
7326 (grub_efiemu_prepare): Likewise.
7327
7328 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
7331 to match types.
7332
7333 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
7336 case of aunaligned recptr.
7337 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
7338 alignment.
7339 (grub_hfsplus_btree_search): Handle unaligned index.
7340
7341 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
7344 to get freetag and skip.
7345
7346 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
7349 array.
7350 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
7351 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
7352
7353 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
7356 name for checksum and fix allocation algorithm.
7357
7358 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * include/grub/types.h (grub_properly_aligned_t): New type.
7361 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
7362 (grub_get_unaligned16): Add explicit casts.
7363 (grub_get_unaligned32): Likewise.
7364 (grub_get_unaligned64): Likewise.
7365 (grub_set_unaligned16): New function.
7366 (grub_set_unaligned32): Likewise.
7367
7368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7371
7372 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
7375 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
7376 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
7377
7378 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
7381 conditionals.
7382
7383 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
7386 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
7387
7388 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 Unify and improve RAID and crypto xor.
7391
7392 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
7393 changed to grub_crypto_xor
7394 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
7395 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
7396 Use bigger types when possible.
7397
7398 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/disk/raid.c (scan_devices): Fix condition.
7401
7402 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
7405 Make name a const ptr.
7406
7407 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
7410 first argument a const pointer.
7411 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
7412 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
7413 proto.
7414 (grub_children_iterate): Likewise.
7415 (grub_machine_mmap_iterate): Remove redundant declaration.
7416
7417 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
7420 (grub_cmd_acpi) [!x86]: Disable EBDA.
7421
7422 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 Enable UTF8 in gnulib regexp.
7425
7426 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
7427 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
7428 (isupper): Use grub_isupper.
7429 (isascii): New inline function.
7430 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
7431 * grub-core/lib/posix_wrap/wctype.h: Likewise.
7432 * grub-core/normal/charset.c (grub_utf8_process): New function.
7433 (grub_utf8_to_utf16): Use grub_utf8_process.
7434 (grub_encode_utf8_character): New function.
7435 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
7436 * include/grub/charset.h (grub_utf8_process): New declaration.
7437 (grub_encode_utf8_character): Likewise.
7438 * include/grub/misc.h (grub_islower): New inline function.
7439 (grub_isupper): Likewise.
7440 (grub_strchrsub): Moved down to fix the definitions.
7441
7442 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
7445 specification.
7446
7447 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * include/grub/loader.h (grub_loader_register_preboot_hook):
7450 Use struct preboot * and not void * for handle. All users updated.
7451 (grub_loader_unregister_preboot_hook): Likewise.
7452
7453 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
7456 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
7457 UTF-16-BE. All users updated.
7458 (grub_hfsplus_cmp_catkey): Fix unicode handling.
7459 (grub_hfsplus_iterate_dir): Likewise.
7460 (grub_hfsplus_label): Likewise.
7461
7462 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
7465
7466 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 Add missing const qualifiers.
7469
7470 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
7471 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
7472 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
7473 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
7474 (grub_lvm_check_flag): Likewise.
7475 * grub-core/efiemu/i386/coredetect.c
7476 (grub_efiemu_get_default_core_name): Likewise
7477 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7478 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
7479 * grub-core/fs/ntfs.c (fixup): Likewise.
7480 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
7481 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
7482 (fzap_lookup): Likewise.
7483 (zap_lookup): Likewise.
7484 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
7485 * grub-core/lib/legacy_parse.c (check_option): Likewise.
7486 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
7487 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
7488 (grub_freebsd_add_meta_module): Likewise.
7489 (grub_cmd_freebsd_module): Likewise.
7490 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
7491 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
7492 (grub_xnu_writetree_get_size): Likewise.
7493 (grub_xnu_writetree_toheap_real): Likewise.
7494 (grub_xnu_find_key): Likewise.
7495 (grub_xnu_create_key): Likewise.
7496 (grub_xnu_create_value): Likewise.
7497 (grub_xnu_register_memory): Likewise.
7498 (grub_xnu_check_os_bundle_required): Likewise.
7499 (grub_xnu_scan_dir_for_kexts): Likewise.
7500 (grub_xnu_load_kext_from_dir): Likewise.
7501 * grub-core/normal/color.c (color_list): Likewise.
7502 * grub-core/normal/completion.c (current_word): Likewise.
7503 * grub-core/normal/menu_entry.c (insert_string): Likewise.
7504 * grub-core/term/serial.c (grub_serial_find): Likewise.
7505 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
7506 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
7507 Likewise.
7508 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
7509 (grub_freebsd_add_meta_module): Likewise.
7510 * include/grub/lib/arg.h (grub_arg_option): Likewise.
7511 * include/grub/net.h (grub_net_card_driver): Likewise.
7512 (grub_net_card): Likewise.
7513 (grub_net_app_protocol): Likewise.
7514 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
7515 * include/grub/serial.h (grub_serial_find): Likewise.
7516 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
7517 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
7518 (grub_xnu_create_value): Likewise.
7519 (grub_xnu_find_key): Likewise.
7520 (grub_xnu_scan_dir_for_kexts): Likewise.
7521 (grub_xnu_load_kext_from_dir): Likewise.
7522
7523 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
7524 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
7525 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
7526 Moved from here ...
7527 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
7528
7529 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
7530
7531 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
7532
7533 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
7536 (read_device): Fix size calculation.
7537
7538 2011-11-25 Robert Millan <rmh@gnu.org>
7539
7540 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
7541 (find_root_device_from_libzfs): Add zpool output parser to be used
7542 as fallback when libzfs isn't available.
7543
7544 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
7545
7546 * po/Makefile.in.in: Add missing escape-continuation.
7547
7548 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
7551
7552 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
7555
7556 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
7559
7560 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
7563
7564 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * grub-core/lib/adler32.c: Add missing license specification.
7567 * grub-core/lib/crc64.c: Likewise.
7568 * grub-core/loader/i386/pc/plan9.c: Likewise.
7569 * grub-core/partmap/plan.c: Likewise.
7570
7571 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
7572
7573 Add facility to debug GRUB with gdb under qemu.
7574
7575 * grub-core/gdb_grub.in: New file.
7576 * grub-core/gmodule.pl.in: Likewise.
7577 * grub-core/Makefile.core.def (gmodule.pl): New script.
7578 (gdb_grub): Likewise.
7579
7580 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * util/grub-mount.c (argp_parser): Accept relative pathes.
7583 * util/grub-fstest.c (argp_parser): Likewise.
7584
7585 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 Plan9 support.
7588
7589 * Makefile.util.def (libgrubmods): Add
7590 grub-core/partmap/plan.c.
7591 * docs/grub.texi: Notice Plan9 support.
7592 * grub-core/Makefile.core.def (plan9): New module.
7593 (part_plan): Likewise.
7594 * grub-core/loader/i386/pc/plan9.c: New file.
7595 * grub-core/partmap/plan.c: Likewise.
7596 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
7597 define.
7598 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
7599 * include/grub/mm.h (grub_extend_alloc): New inline function.
7600
7601 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7602
7603 Make Reed-Solomon faster by using power of generator representation of
7604 GF(256)*.
7605
7606 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
7607 (gf_double_t): Likewise.
7608 (gf_invert): Removed.
7609 (gf_powx): New array.
7610 (gf_powx_inv): Likewise.
7611 (scratch): Move higher.
7612 (gf_reduce): Removed.
7613 (gf_mul): Use powx.
7614 (gf_invert): Likewise.
7615 (init_inverts): Replaced with ...
7616 (init_powx): ...this. All users updated.
7617 (pol_evaluate): Replace multiplications with additions.
7618 (rs_encode): Likewise.
7619 (gauss_eliminate): Call gf_invert.
7620 (grub_reed_solomon_add_redundancy): Call init_powx.
7621 (grub_reed_solomon_recover): Call init_powx unconditionally.
7622
7623 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
7626
7627 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
7630 disk->partiton for safety.
7631
7632 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7635 Fix a memory leak.
7636 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
7637
7638 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
7641
7642 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
7645
7646 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7647
7648 Fix spaces handling in proc/self/mountinfo.
7649
7650 * util/getroot.c (unescape): New function.
7651 (grub_find_root_device_from_mountinfo): Use unescape.
7652
7653 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 Support ZFS embedding.
7656
7657 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
7658 (grub_zfs_fs): Register grub_zfs_embed.
7659
7660 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 Fix MIPS compilation.
7663
7664 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
7665 * include/grub/offsets.h: Rename decompressor fields from
7666 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
7667 * util/grub-mkimage.c (image_targets): Use new names.
7668
7669 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 Defer multiboot device parsing until we're in compressed part.
7672
7673 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
7674 bsd_part. setdevice has fallen into disuse.
7675 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
7676 (bsd_part): Likewise.
7677 (boot_dev): New variable.
7678 (multiboot_trampoline): Don't parse multiboot device.
7679 Pass multiboot device in %edx.
7680 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
7681 grub_boot_device.
7682 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
7683 Likewise.
7684 * grub-core/kern/i386/pc/startup.S: Save edx.
7685 (grub_boot_drive): Removed.
7686 (grub_install_dos_part): Likewise.
7687 (grub_install_bsd_part): Likewise.
7688 (grub_boot_device): New variable.
7689 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
7690 (grub_install_bsd_part): Likewise.
7691 (grub_boot_drive): Likewise.
7692 (grub_boot_device): New variable.
7693 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
7694 Removed.
7695 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
7696 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
7697 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
7698 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
7699 * util/grub-install.in: Remove redundant condition.
7700
7701 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 Fix bug introduced by previous commit.
7704
7705 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
7706
7707 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 Use decompressors framework on i386-pc. It increases core size
7710 by 46 bytes but improves compatibility and maintainability.
7711
7712 * grub-core/Makefile.core.def (lzma_decompress): New image.
7713 (kernel): Add i386_pc_ldflags.
7714 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
7715 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
7716 to real_to_prot, prot_to_real and device info.
7717 * include/grub/offsets.h: Renamed decompressor offsets.
7718 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
7719 (image_target_desc): Remove raw_size and rename decompressor fields.
7720 (compress_kernel): Handle lzma.
7721 (generate_image): Handle decompressors on i386-pc.
7722
7723 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * configure.ac: Add -fno-asynchronous-unwind-tables.
7726
7727 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Move assembly code to C by using intwrap. It increases core size
7730 by 88 bytes but improves compatibility and maintainability.
7731
7732 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
7733 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
7734 ... here. Translated to C.
7735 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
7736 * grub-core/term/i386/pc/console.c (grub_console_getkey):
7737 ... here. Translated to C.
7738 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
7739 * grub-core/term/i386/pc/console.c (grub_console_getxy):
7740 ... here. Translated to C.
7741 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
7742 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
7743 ... here. Translated to C.
7744 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
7745 * grub-core/term/i386/pc/console.c (grub_console_cls):
7746 ... here. Translated to C.
7747 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
7748 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
7749 ... here. Translated to C.
7750 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
7751 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
7752 Translated to C.
7753 * grub-core/term/i386/pc/console.c (int10_9): New function.
7754 (grub_console_putchar): Likewise.
7755 * include/grub/i386/pc/console.h: Removed the not anymore shared
7756 functions.
7757
7758 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 Move grub_chainloader_real_boot out of the kernel.
7761
7762 * grub-core/Makefile.am: Remove machine/loader.h.
7763 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
7764 Removed.
7765 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
7766 variable.
7767 (grub_relocator16_keep_a20_enabled): Likewise.
7768 (grub_relocator16_boot): Fill new variables.
7769 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
7770 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
7771 relocator.
7772 (grub_chainloader_unload): Likewise.
7773 (grub_chainloader_cmd): Likewise.
7774 * include/grub/i386/pc/loader.h: Removed.
7775 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
7776 and esi. All initialisers updated.
7777
7778 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7779 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
7780
7781 * Makefile.util.def (grub-mount): New util.
7782 * .bzrignore: Add grub-mount.
7783 * configure.ac: Check for fuse and enable grub-mount if available.
7784 * docs/man/grub-mount.h2m: New file.
7785 * util/grub-mount.c: Likewise.
7786
7787 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * grub-core/commands/efi/fixvideo.c: Gettextize.
7790 * grub-core/commands/hashsum.c: Likewise.
7791 * grub-core/commands/i386/cmostest.c: Likewise.
7792 * grub-core/commands/i386/pc/drivemap.c: Likewise.
7793 * grub-core/commands/i386/pc/lsapm.c: Likewise.
7794 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7795 * grub-core/commands/lsmmap.c: Likewise.
7796 * grub-core/commands/menuentry.c: Likewise.
7797 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
7798 * grub-core/commands/setpci.c: Likewise.
7799 * grub-core/loader/i386/bsd.c: Likewise.
7800 * grub-core/loader/i386/linux.c: Likewise.
7801 * util/getroot.c: Likewise.
7802 * util/grub-editenv.c: Likewise.
7803 * util/grub-fstest.c: Likewise.
7804 * util/grub-mkfont.c: Likewise.
7805 * util/grub-mkimage.c: Likewise.
7806 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7807 * util/grub-pe2elf.c: Likewise.
7808 * util/grub-probe.c: Likewise.
7809 * util/grub-setup.c: Likewise.
7810 * util/ieee1275/ofpath.c: Likewise.
7811 * util/misc.c: Likewise.
7812 * util/raid.c: Likewise.
7813
7814 2011-11-11 Robert Millan <rmh@gnu.org>
7815
7816 * util/getroot.c (grub_util_get_geom_abstraction): Remove
7817 __attribute__((unused)) from `os_dev', which *is* being used.
7818
7819 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
7822 forgotten define.
7823 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
7824 GRUB_IA64_DL_GOT_ALIGN.
7825 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
7826 GRUB_IA64_DL_TRAMP_ALIGN.
7827
7828 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 Replace grub_fatal with normal errors in i386 linux loader.
7831
7832 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
7833 (allocate_pages): Check find_efi_mmap_size return value.
7834 (grub_e820_add_region): Return error.
7835 (grub_linux_boot): Check mmap return value.
7836
7837 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7838
7839 * grub-core/commands/acpihalt.c: Gettextized.
7840 * grub-core/commands/cacheinfo.c: Likewise.
7841 * grub-core/commands/cmp.c: Likewise.
7842 * grub-core/commands/efi/loadbios.c: Likewise.
7843 * grub-core/commands/gptsync.c: Likewise.
7844 * grub-core/commands/ieee1275/suspend.c: Likewise.
7845 * grub-core/commands/legacycfg.c: Likewise.
7846 * grub-core/commands/memrw.c: Likewise.
7847 * grub-core/commands/minicmd.c: Likewise.
7848 * grub-core/commands/parttool.c: Likewise.
7849 * grub-core/commands/time.c: Likewise.
7850 * grub-core/commands/videoinfo.c: Likewise.
7851 * grub-core/disk/geli.c: Likewise.
7852 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
7853 * grub-core/disk/luks.c: Likewise.
7854 * grub-core/disk/lvm.c: Likewise.
7855 * grub-core/font/font_cmd.c: Likewise.
7856 * grub-core/fs/zfs/zfscrypt.c: Likewise.
7857 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7858 * grub-core/gfxmenu/view.c: Likewise.
7859 * grub-core/kern/emu/hostdisk.c: Likewise.
7860 * grub-core/kern/emu/main.c: Likewise.
7861 * grub-core/kern/emu/misc.c: Likewise.
7862 * grub-core/kern/emu/mm.c: Likewise.
7863 * grub-core/kern/mips/arc/init.c: Likewise.
7864 * grub-core/kern/mips/loongson/init.c: Likewise.
7865 * grub-core/kern/partition.c: Likewise.
7866 * grub-core/lib/i386/halt.c: Likewise.
7867 * grub-core/lib/mips/arc/reboot.c: Likewise.
7868 * grub-core/lib/mips/loongson/reboot.c: Likewise.
7869 * grub-core/loader/i386/pc/chainloader.c: Likewise.
7870 * grub-core/loader/i386/xnu.c: Likewise.
7871 * grub-core/loader/multiboot.c: Likewise.
7872 * grub-core/net/bootp.c: Likewise.
7873 * grub-core/net/net.c: Likewise.
7874 * grub-core/normal/term.c: Likewise.
7875 * grub-core/partmap/bsdlabel.c: Likewise.
7876 * grub-core/parttool/msdospart.c: Likewise.
7877 * grub-core/term/gfxterm.c: Likewise.
7878 * grub-core/term/terminfo.c: Likewise.
7879 * grub-core/video/i386/pc/vbe.c: Likewise.
7880 * util/grub-menulst2cfg.c: Likewise.
7881 * util/grub-mkdevicemap.c: Likewise.
7882 * util/grub-mklayout.c: Likewise.
7883 * util/grub-mkrelpath.c: Likewise.
7884 * util/grub-script-check.c: Likewise.
7885 * util/ieee1275/grub-ofpathname.c: Likewise.
7886 * util/resolve.c: Likewise.
7887
7888 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 Support %1$d syntax.
7891
7892 * tests/printf_unit_test.c: New file.
7893 * Makefile.util.def (printf_test): New test.
7894 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
7895
7896 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
7899 fix.
7900
7901 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7902
7903 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
7904 dprintf.
7905 * grub-core/font/font.c (grub_font_load): Likewise.
7906
7907 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * util/grub-macho2img.c: Add comment concerning gettext.
7910 * grub-core/lib/legacy_parse.c: Likewise.
7911
7912 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7913
7914 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
7915 (grub_xvasprintf): Likewise.
7916
7917 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 Add const keyword to grub_env_get and gettextize week days.
7920
7921 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
7922 (grub_read_hook_datetime): Return const char *.
7923 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
7924 updated.
7925 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7926 Mark for gettext.
7927 (grub_get_weekday_name): Return const char *. Call gettext.
7928 * grub-core/script/argv.c (grub_script_argv_append): Receive const
7929 char * and len as the argument. All users updated.
7930 (grub_script_argv_split_append): Receive const char *.
7931 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
7932 * include/grub/env.h (grub_env_get): Likewise.
7933 (grub_env_read_hook_t): Return const char *.
7934 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
7935 (grub_script_argv_split_append): Likewise.
7936
7937 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
7940
7941 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
7944 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
7945
7946 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
7949 Fix prototype.
7950
7951 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 Fix mips compilation.
7954
7955 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
7956 normal decoder.
7957 (hashes): Use in embed decoder as well (for sizes).
7958 (dec_stream_header): Fix embed decompressor logic.
7959 (dec_stream_footer): Likewise.
7960
7961 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7962
7963 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
7964 an error and not a fatal on unrecognised relocation types.
7965
7966 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7967
7968 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
7969 Issue error rather than printf on unknown arguments.
7970
7971 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
7974 Make buf a const.
7975
7976 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
7979 Fix module name.
7980
7981 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
7984 leftover debug printf.
7985
7986 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
7989
7990 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
7993 A stylistic fix.
7994
7995 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
7998
7999 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8000
8001 Allow all modules to perform serial IO
8002
8003 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8004 * include/grub/serial.h (grub_serial_port_configure): New inline
8005 function.
8006 (grub_serial_port_fetch): Likewise.
8007 (grub_serial_port_put): Likewise.
8008 (grub_serial_port_fini): Likewise.
8009 (grub_serial_find): New proto.
8010
8011 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 Put symlink at the end of the node and fix a potential
8014 memory corruption.
8015
8016 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8017 Make symlink into an array.
8018 (set_rockridge): Set have_symlink and alloc_dirents.
8019 (grub_iso9660_read_symlink): Use new layout.
8020 (grub_iso9660_iterate_dir): Fix memory corruption.
8021 Use new layout.
8022 (grub_iso9660_dir): Set have_symlink.
8023 (grub_iso9660_open): Likewise.
8024
8025 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 Remove local keyword.
8028
8029 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8030 (version_test_gt): Likewise.
8031 (version_find_latest): Likewise.
8032 (gettext_printf): Likewise.
8033 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8034
8035 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8038
8039 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 Fix ZFS memory and resource leaks.
8042
8043 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8044 All users updated.
8045 Free type on exit.
8046 (fill_vdev_info): New parameter inserted. All users updated.
8047 (check_pool_label): Likewise.
8048 (scan_disk): Likewise.
8049 (scan_devices): Close non-inserted disks.
8050 (fzap_iterate): Free l.
8051 (unmount_device): Free children descripto memory.
8052
8053 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8054
8055 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8056 argument (access out of bounds).
8057
8058 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8061 >= 6 drives.
8062
8063 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8066 Fix declaration.
8067
8068 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 Fix several memory leaks.
8071
8072 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8073 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8074 (grub_cpio_dir): Likewise.
8075 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8076 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8077 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8078 (grub_romfs_label): Likewise.
8079 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8080 (squash_unmount): New function.
8081 (grub_squash_dir): Fix memory leak.
8082 (grub_squash_open): Likewise.
8083 (grub_squash_read): Likewise.
8084 (grub_squash_mtime): Likewise.
8085 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8086 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8087 * util/grub-fstest.c (fstest): Likewise.
8088
8089 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8090
8091 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8092 avoid accessing beyond the array.
8093
8094 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8097
8098 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 Several AFFS fixes.
8101
8102 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8103 (GRUB_AFFS_FLAG_FFS): Removed.
8104 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8105 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8106 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8107 (grub_fshelp_node): Make block 32-bit.
8108 Add block_cache and last_block_cache.
8109 (grub_affs_read_block): Fill and use block cache.
8110 (grub_affs_read_file): Removed.
8111 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8112 boot block.
8113 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8114 safety.
8115 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8116 space.
8117 (grub_affs_close): Free block cache.
8118 (grub_affs_read): Use grub_fshelp_read_file directly.
8119
8120 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8123 with no error set.
8124
8125 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8126
8127 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8128 used variable.
8129 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8130 Likewise.
8131
8132 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8135
8136 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8137 byteswap when needed.
8138
8139 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 Fix FreeBSD compilation.
8142
8143 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8144 to avoid circular dependency.
8145 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8146 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8147 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8148
8149 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 Fix ZFS crypto error types.
8152
8153 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8154 (grub_gcm_decrypt): Likewise.
8155 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8156 from PBKDF2.
8157
8158 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 Illumos support.
8161
8162 * Makefile.util.def (10_illumos): New script.
8163 * configure.ac: Set COND_HOST_ILLUMOS.
8164 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8165 Support Illumos calls.
8166 (find_partition_start) [__sun__]: Likewise.
8167 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8168 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8169 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8170 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8171 device.
8172 * util/grub-probe.c (probe) [__sun__]: Do character check.
8173 * util/grub.d/10_illumos.in: New file.
8174
8175 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 Support escaped commas in hostdisk.
8178
8179 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8180 (find_grub_drive): Use unescape_cmp.
8181 (make_device_name): Escape commas.
8182
8183 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8186
8187 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8190 variable.
8191
8192 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 Support trampoline jumps on powerpc.
8195
8196 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8197 __ia64__ path.
8198 (grub_dl_load_segments): Set mod->sz.
8199 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8200 segments.
8201 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8202 (jump): Likewise.
8203 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8204 function.
8205 (trampoline): New struct.
8206 (trampoline_template): New const.
8207 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8208 * include/grub/dl.h (grub_dl): Add sz element.
8209 [__powerpc__]: Follow __ia64__.
8210 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8211 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8212 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8213 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8214
8215 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 ZFS crypto support.
8218
8219 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8220 * grub-core/Makefile.core.def (zfscrypt): New module.
8221 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8222 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8223 it. All users updated.
8224 (grub_zfs_decrypt): New var.
8225 (grub_zfs_load_key): Likewise.
8226 (zio_checksum_functions): Add SHA256+MAC.
8227 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8228 (zio_read): Handle encrypted blocks.
8229 (zap_verify): Remove incorrect check.
8230 (fzap_iterate): Handle non-standard fzap.
8231 (zap_iterate): Likewise.
8232 (zap_iterate_u64): New function.
8233 (dnode_get_fullpath): Load keys.
8234 * grub-core/fs/zfs/zfscrypt.c: New file.
8235 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8236 (grub_crypto_ecb_encrypt): Make input const.
8237 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8238 (grub_crypto_ecb_encrypt): Make input const.
8239 (GRUB_CIPHER_AES): New macro.
8240 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8241 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8242 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8243 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8244 prefix. All users updated.
8245 (grub_zfs_add_key): New proto.
8246 (grub_zfs_decrypt): Likewise.
8247 (grub_zfs_load_key): Likewise.
8248 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8249 * util/grub-fstest.c (options): Add -K option.
8250 (argp_parser): Likewise.
8251
8252 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 Support zle compression on ZFS.
8255
8256 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8257 (decomp_table): Add zle.
8258 * include/grub/zfs/zio.h (zio_compress): Add zle.
8259
8260 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 Support BtrFS embedding.
8263
8264 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8265 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
8266 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
8267 * util/grub-setup.c (setup): Use fs embedding if available.
8268 Add additional sanity check.
8269
8270 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * util/grub-install.in: Fix condition for config_opt.
8273
8274 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 Support third redundancy strip on raidz3.
8277
8278 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
8279 Return error on singularity. All users updated.
8280 (read_device): Don't stop on 3rd failure on raidz3.
8281
8282 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 Support case-insensitive ZFS subvolumes.
8285
8286 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
8287 All users updated.
8288 (zap_hash): Likewise.
8289 (name_cmp): New function.
8290 (zap_leaf_array_equal): New parameter case_insensitive.
8291 All users updated.
8292 (zap_leaf_lookup): Likewise.
8293 (fzap_lookup): Likewise.
8294 (zap_lookup): Likewise.
8295 (dnode_get_path): New parameter case_insensitive. Retrieve case
8296 sensitiviness of a volume. All users updated.
8297 (dnode_get_fullpath): New parameter case_insensitive.
8298 All users updated.
8299 (grub_zfs_dir): Set info.case_insensitiveness.
8300
8301 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 Support second redundancy strip on raidz(2,3).
8304
8305 * grub-core/fs/zfs/zfs.c (powx): New array.
8306 (powx_inv): Likewise.
8307 (poly): New const.
8308 (xor_out): New function.
8309 (gf_mul): Likewise.
8310 (recovery): Likewise.
8311 (read_device): Use second redundancy strip.
8312
8313 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8314
8315 Use a power of generator representation of GF(256) multiplication group
8316 to save space time and complexity.
8317
8318 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
8319 (raid6_table2): Likewise.
8320 (powx): New array.
8321 (powx_inv): Likewise.
8322 (poly): New const.
8323 (grub_raid_block_mul): Replace with ...
8324 (grub_raid_block_mulx): ...this.
8325 (grub_raid6_init_table): Rewritten.
8326 (grub_raid6_recover): Use power of generator representation.
8327
8328 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
8331 for the right device.
8332
8333 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
8336 expected by grub-mkimage and it's more clear since there is no implicit
8337 padding.
8338
8339 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
8342 disk.
8343 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8344
8345 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
8346
8347 * util/grub-mkrescue.in: Fix handling xorriso option.
8348
8349 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
8352 NULL.
8353
8354 2011-11-03 crocket <crockabiscuit@gmail.com>
8355
8356 * util/grub.d/10_linux.in: Add Slackware initrd naming.
8357
8358 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 XZ CRC64 and SHA256 support.
8361
8362 * Makefile.util.def (libgrubmods): Add crc64.c.
8363 * grub-core/Makefile.core.def (crc64): New module.
8364 * grub-core/lib/crc64.c: New file.
8365 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
8366 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
8367 Fix the type.
8368 (MAX_HASH_SIZE): New define.
8369 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
8370 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
8371 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8372 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8373 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
8374 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
8375 Handle non-crc32 hashes.
8376 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
8377 (dec_stream_header): Handle non-crc32 hashes.
8378 (dec_stream_footer): Likewise.
8379 (dec_block_header): Likewise.
8380 (dec_main): Likewise.
8381 (xz_dec_init): Likewise.
8382 (xz_dec_reset): Likewise.
8383 (xz_dec_end): Likewise.
8384 * util/import_gcry.py: Add CRC64 line.
8385
8386 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8387
8388 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
8389 as well.
8390
8391 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 Make reiserfs label retrieval similar to other *_label functions.
8394
8395 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
8396 (REISERFS_MAX_LABEL_LENGTH): Removed.
8397 (REISERFS_LABEL_OFFSET): Likewise.
8398 (grub_reiserfs_label): Rewritten.
8399
8400 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
8403 field.
8404
8405 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
8408
8409 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8412 drive failure on both raidz and raidz2.
8413
8414 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 Fix RAIDZ(2) for >= 5 devices.
8417
8418 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
8419 asize argument. All users updated.
8420
8421 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 Fix RAIDZ(2).
8424
8425 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
8426 (fill_vdev_info_real): Set ashift.
8427 (read_device): Rewrite RAIDZ part based on reverse engineering.
8428
8429 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
8432 don't report potentially unavialiable fields in debug output.
8433 (find_path): Fix double-free and memory leak.
8434
8435 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 Read label on UFS1.
8438
8439 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
8440 (grub_ufs_fs): Always set .label.
8441
8442 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 Use shifts in UFS.
8445
8446 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
8447 (grub_ufs_data): New field log2_blksz.
8448 (grub_ufs_read_file): Use shifts.
8449 (grub_ufs_mount): Check block size and logarithm it.
8450
8451 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
8454 long symlinks.
8455
8456 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 Handle symlinks and long names on tar and cpio.
8459
8460 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
8461 (ATTR_FILE): Likewise.
8462 (ATTR_DIR): Likewise.
8463 (ATTR_LNK): Likewise.
8464 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
8465 (grub_cpio_find_file): Fill mode, handle linkname field as well as
8466 L and K entries.
8467 (grub_cpio_mount): Zero-fill data.
8468 (handle_symlink): New function.
8469 (grub_cpio_dir): Handle symlinks.
8470 (grub_cpio_open): Likewise.
8471 (grub_cpio_close) [MODE_USTAR]: Free linkname.
8472
8473 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 Fix iso9660 filename limitations and fix memory leaks.
8476
8477 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
8478 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
8479
8480 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 Fix JFS file name length limitations.
8483
8484 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
8485 (grub_jfs_diropen): Fix maximum filename length.
8486 (grub_jfs_getent): Fix filename length.
8487 (grub_jfs_lookup_symlink): Fix size checks.
8488
8489 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
8492 string.
8493
8494 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 Leverage BFS implementation to read AFS.
8497
8498 * Makefile.util.def (libgrubmods): Add afs.c.
8499 * grub-core/Makefile.core.def (afs): New module
8500 * grub-core/fs/afs.c: New file.
8501 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
8502
8503 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8504
8505 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
8506
8507 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * grub-core/fs/bfs.c: Run indent.
8510
8511 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8512
8513 BFS implementation based on the specification.
8514
8515 * grub-core/fs/bfs.c: New file.
8516 * Makefile.util.def (libgrubmods): Add bfs.c.
8517 * grub-core/Makefile.core.def (bfs): New module.
8518
8519 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * util/grub-fstest.c (cmd_cp): Clarify error message.
8522 (cmd_cmp): Likewise.
8523
8524 2011-10-30 Yves Blusseau <blusseau@zetam.org>
8525
8526 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
8527 and befs_be.
8528
8529 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 Remove afs and befs because of copyright problem.
8532
8533 * grub-core/fs/afs.c: Removed.
8534 * grub-core/fs/afs_be.c: Removed.
8535 * grub-core/fs/befs.c: Removed.
8536 * grub-core/fs/befs_be.c: Removed.
8537 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
8538 * grub-core/Makefile.core.def (afs): Removed.
8539 (afs_be): Likewise.
8540 (befs): Likewise.
8541 (befs_be): Likewise.
8542
8543 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 Prefer rockridge over Joliet.
8546
8547 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
8548 to ...
8549 (set_rockridge): ... here.
8550 (grub_iso9660_mount): Check rockridge on the primary label when
8551 discovering. Ignore Joliet if Rockridge is present.
8552
8553 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 Use shifts in nilfs2.
8556
8557 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
8558 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
8559 (grub_nilfs2_palloc_entries_per_group): Replace with ...
8560 (grub_nilfs2_log_palloc_entries_per_group): ... this.
8561 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
8562 (grub_nilfs2_entries_per_block): Replaced with ...
8563 (grub_nilfs2_log_entries_per_block_log): ... this.
8564 (grub_nilfs2_blocks_per_group): Replaced with ...
8565 (grub_nilfs2_blocks_per_group_log): ... this.
8566 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
8567 (grub_nilfs2_blocks_per_desc_block_log): ... this.
8568 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
8569 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
8570 (grub_nilfs2_palloc_entry_offset): Replaced ...
8571 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
8572 (grub_nilfs2_dat_translate): Use shifts.
8573 (grub_nilfs2_read_inode): Likewise.
8574 (GRUB_MOD_INIT): Ensure that logs are correct.
8575
8576 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8577
8578 Use shifts in minix filesystem.
8579
8580 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
8581 (GRUB_MINIX_ZONE2SECT): Likewise.
8582 (grub_minix_data): Replace block_size with log_block_size.
8583 (grub_minix_read_file): Use shifts.
8584 (grub_minix_mount): Check block size and take a logarithm.
8585
8586 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 Use shifts in squash4.
8589
8590 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
8591 (squash_mount): Check block size and take logarithm.
8592 (direct_read): Use shifts.
8593
8594 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 Correct befs block counting logic.
8597
8598 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
8599 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
8600 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
8601 (grub_afs_read_inode): Use block_shift.
8602 (RANGE_SHIFT): New definition.
8603 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
8604 unexpected conditions, use shifts and appropriate types.
8605 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
8606
8607 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8608
8609 * grub-core/disk/raid.c (scan_devices): Check partition.
8610 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8611
8612 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 Support BFS (befs) UUID.
8615
8616 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
8617 (grub_afs_small_data_element_header): New struct.
8618 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
8619 (grub_afs_read_attribute) [MODE_BFS]: New function.
8620 (grub_afs_iterate_dir): Allocate for complete inode.
8621 (grub_afs_mount): Likewise.
8622 (grub_afs_uuid) [MODE_BFS]: New function.
8623 (grub_afs_fs) [MODE_BFS]: Add .uuid.
8624
8625 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
8628 (zfs_unmount): Fix memory leak.
8629
8630 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 Support NTFS reparse points.
8633
8634 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
8635 (symlink_descriptor): New struct.
8636 (grub_ntfs_read_symlink): New function.
8637 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
8638 (grub_ntfs_open): Likewise.
8639
8640 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
8643
8644 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 fstest xnu_uuid subcommand.
8647
8648 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
8649 grub-core/commands/xnu_uuid.c.
8650 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
8651 (fstest): Handle xnu_uuid.
8652 (options): Document xnu_uuid.
8653 (argp_parser): Parse xnu_uuid.
8654
8655 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
8658 -l argument. Add newline at the end if printing.
8659 (GRUB_MOD_INIT): Document -l.
8660
8661 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
8664
8665 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 ZFS multi-device and version 33 support.
8668
8669 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
8670 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
8671 (grub_zfs_data): Add multidev-ice-related fields.
8672 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
8673 (dva_get_offset): Make dva const.
8674 (zfs_fetch_nvlist): New function.
8675 (fill_vdev_info_real): Likewise.
8676 (fill_vdev_info): Likewise.
8677 (check_pool_label): Likewise.
8678 (scan_disk): Likewise.
8679 (scan_devices): Likewise.
8680 (read_device): Likewise.
8681 (read_dva): Likewise.
8682 (zio_read_gang): Use read_dva.
8683 (zio_read_data): Likewise.
8684 (zap_leaf_lookup): Add missing endian conversion.
8685 (zap_verify): Add missing endian conversion. All users updated.
8686 (fzap_lookup): Likewise.
8687 (fzap_iterate): Likewise.
8688 (dnode_get_path): Handle SA bonus.
8689 (nvlist_find_value): Make input const. All users updated.
8690 (unmount_device): New function.
8691 (zfs_unmount): Use unmount_device.
8692 (zfs_mount): Use scan_disk.
8693 (zfs_mtime): New function.
8694 (grub_zfs_open): Handle system attributes.
8695 (fill_fs_info): Likewise.
8696 (grub_zfs_dir): Likewise.
8697 (grub_zfs_fs): Add mtime.
8698 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
8699 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
8700 (SA_MTIME_OFFSET): Likewise.
8701 (SA_SYMLINK_OFFSET): Likewise.
8702 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
8703 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
8704 (fstest): Support zfsinfo.
8705 (argp_parser): Likewise.
8706
8707 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
8710 error.
8711
8712 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 ZFS fixes.
8715
8716 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
8717 sharing the same block. Iterate over correct number of indices.
8718 (dnode_get_path): Handle symlinks correctly.
8719
8720 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8721
8722 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
8723
8724 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8725
8726 Read label on HFS+.
8727
8728 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
8729 (grub_hfsplus_btree_search): Fix types.
8730 (grub_hfsplus_label): Implement.
8731
8732 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
8735
8736 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8737
8738 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
8739
8740 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 Fix symlink handling on iso9660.
8743
8744 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
8745 All users updated.
8746 (grub_iso9660_susp_iterate): Accept zero-size iterate.
8747 (grub_iso9660_read_symlink): Moved most of code ...
8748 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
8749
8750 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
8753 Use union to avoid breaking strict-aliasing rules.
8754
8755 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 Support multi-extent iso files.
8758
8759 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
8760 Add node.
8761 (grub_fshelp_node): Revamp. All users updated.
8762 (FLAG_*): New enum.
8763 (read_node): New function.
8764 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
8765 All users updated.
8766 (grub_iso9660_mount): Don't attempt to read sua when there is none.
8767 (get_node_size): New function.
8768 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
8769 entries.
8770 Fix memory leak on . and ..
8771 (grub_iso9660_read): Use read_node.
8772 (grub_iso9660_close): Free node.
8773
8774 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 Fix tar 4G limit and handle paths containing dot.
8777
8778 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
8779 (canonicalize): New function.
8780 (grub_cpio_find_file): Use canonicalize. Store offs in
8781 grub_disk_addr_t.
8782 (grub_cpio_dir): Use grub_disk_addr_t.
8783 (grub_cpio_open): Likewise.
8784
8785 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 Fix handling of uncompressed blocks on squashfs and break 4G limit.
8788
8789 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
8790 unused flags.
8791 (grub_squash_inode): Add long_file and block_size.
8792 (grub_squash_cache_inode): New struct.
8793 (grub_squash_dirent): Make types into enum.
8794 (SQUASH_TYPE_LONG_REGULAR): New type.
8795 (grub_squash_frag_desc): Add field size.
8796 (SQUASH_BLOCK_FLAGS): New enum.
8797 (grub_squash_data): Use grub_squash_cache_inode.
8798 (grub_fshelp_node): Make ino_chunk 64-bit.
8799 (read_chunk): Minor argument change. All users updated.
8800 (squash_mount): Use correct le_to_cpu.
8801 (grub_squash_open): Handle LONG_REGULAR.
8802 (direct_read): New function.
8803 (grub_squash_read_data): Handle blocks correctly.
8804
8805 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
8808
8809 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
8812
8813 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 Fix 2G limit on ZFS.
8816
8817 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
8818 types.
8819 (uberblock_verify): Likewise.
8820 (dmu_read): Likewise.
8821 (grub_zfs_read): Likewise. Remove invalid cast.
8822
8823 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
8826 (grub_jfs_blkno): Fix incorrect shift.
8827 (grub_jfs_read_file): Use more appropriate types.
8828
8829 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 Support triple indirect on minix2 and minix3.
8832
8833 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
8834 Declare triple_indir_zone.
8835 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
8836 indirect.
8837
8838 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 Minix FS fixes.
8841
8842 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
8843 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
8844 Rename ctime to mtime. All users updated.
8845 (grub_minix_get_file_block): Fix types and double indirect computations.
8846
8847 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
8850 if no label is found.
8851 (grub_fat_iterate_dir): Fix file size type.
8852 (grub_fat_iterate_dir): Likewise.
8853
8854 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
8857 save some space.
8858 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
8859 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8860
8861 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
8864
8865 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * util/import_gcry.py: Accept space between # and include.
8868
8869 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
8872
8873 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 Fine grainely disable warnings on lexer. Remove Wno-error on it.
8876
8877 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
8878 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
8879 yylex_strncpy.
8880 * grub-core/script/yylex.l: Add fine-grained #pragma.
8881
8882 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
8885 New inline function.
8886 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
8887 Likewise.
8888 (memset) [GRUB_UTIL]: Likewise.
8889 (memcmp) [GRUB_UTIL]: Likewise.
8890
8891 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
8894 inline function rather than a define.
8895
8896 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * util/grub-setup.c: Add missing include.
8899
8900 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 * util/ieee1275/grub-ofpathname.c: Add missing include.
8903
8904 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
8907 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
8908 Likewise.
8909
8910 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
8913 grub_memcmp usage.
8914
8915 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * util/grub-install.in: Add datarootdir as per automake manual
8918 suggestion.
8919 * util/grub-mknetdir.in: Likewise.
8920
8921 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
8924 suggestion.
8925 * util/grub.d/10_kfreebsd.in: Likewise.
8926 * util/grub.d/10_linux.in: Likewise.
8927 * util/grub.d/10_netbsd.in: Likewise.
8928 * util/grub.d/10_windows.in: Likewise.
8929 * util/grub.d/20_linux_xen.in: Likewise.
8930
8931 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 Remove redundant grub_kernel_image_size.
8934
8935 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
8936 _edata and _start.
8937 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
8938 the small code. It moves it only by few bytes but simplifies the code.
8939 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
8940 _start.
8941 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
8942 (grub_kernel_image_size): Removed.
8943 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
8944 (grub_kernel_image_size): Removed.
8945 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
8946 compiled with Apple toolchain.
8947 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
8948 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
8949 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
8950 (grub_total_module_size): Likewise.
8951 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
8952 Removed.
8953 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
8954 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
8955 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8956 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
8957 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
8958 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
8959 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
8960 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
8961 Removed.
8962 (grub_total_module_size): Removed.
8963 * util/grub-mkimage.c (image_target_desc): Remove image_size.
8964 (image_targets): Likewise.
8965 Set .compressed_size to no field on sparc.
8966 (generate_image): Remove kernel_image_size handling.
8967
8968 2011-10-19 Szymon Janc <szymon@janc.net.pl>
8969
8970 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
8971 NULL pointer dereference.
8972
8973 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
8976 done with a dedicated section.
8977
8978 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
8979 Ensure the correct position of boot_path.
8980 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
8981 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
8982 other fields.
8983 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
8984 * include/grub/boot.h: Removed. All references removed.
8985 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
8986 Removed.
8987 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
8988
8989 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
8992 name.
8993
8994 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
8997
8998 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9001 Don't add the bogus brackets.
9002
9003 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 ExFAT support.
9006
9007 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9008 * grub-core/Makefile.core.def (exfat): New module.
9009 * grub-core/fs/exfat.c: New file.
9010 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9011 (GRUB_FAT_ATTR_*): Make into an enum.
9012 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9013 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9014 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9015 (GRUB_FAT_MAXFILE): Removed.
9016 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9017 (grub_current_fat_bpb_t): New type.
9018 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9019 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9020 (grub_fat_dir_node_t): New type.
9021 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9022 (fat_log2) [MODE_EXFAT]: Removed.
9023 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9024 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9025 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9026 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9027 (grub_fat_label) [MODE_EXFAT]: New function.
9028 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9029 reserved_first_sector to 0.
9030
9031 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 Move grub_reboot out of the kernel.
9034
9035 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9036 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9037 * grub-core/lib/efi/reboot.c: ... here.
9038 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9039 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9040 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9041 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9042 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9043 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9044 * grub-core/lib/ieee1275/reboot.c: ... here.
9045 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9046 * grub-core/lib/mips/arc/reboot.c: ... here.
9047 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9048 * grub-core/lib/mips/loongson/reboot.c: ...here.
9049 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9050 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9051 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9052 * include/grub/i386/reboot.h: New file.
9053 * include/grub/mips/loongson/ec.h: Fix includes.
9054 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9055 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9056 * grub-core/lib/i386/reboot.c: New file.
9057
9058 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 Make grub_prefix into module to fix the arbitrary limit and save
9061 some space.
9062
9063 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9064 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9065 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9066 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9067 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9068 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9069 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9070 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9071 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9072 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9073 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9074 * include/grub/ia64/efi/kernel.h: Removed.
9075 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9076 (grub_prefix): Removed.
9077 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9078 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9079 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9080 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9081 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9082 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9083 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9084 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9085 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9086 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9087 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9088 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9089 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9090 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9091 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9092 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9093 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9094 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9095 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9096 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9097 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9098 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9099 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9100 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9101 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9102 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9103 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9104 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9105 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9106 from module.
9107 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9108 prefix_end.
9109 (image_targets): Likewise.
9110 (generate_image): Put prefix as a module.
9111
9112 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 Replace grub_module_iterate with FOR_MODULES.
9115
9116 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9117 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9118 (grub_efi_modules_addr): ...this.
9119 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9120 (grub_efi_init): Set grub_modbase.
9121 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9122 (grub_modbase): New variable.
9123 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9124 (grub_modbase): New variable.
9125 (grub_machine_init): Set grub_modbase.
9126 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9127 (grub_modbase): New variable.
9128 (grub_machine_init): Set grub_modbase.
9129 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9130 (grub_modbase): New variable.
9131 (grub_machine_init): Set grub_modbase.
9132 * grub-core/kern/main.c (grub_module_iterate): Remove.
9133 (grub_modules_get_end): Use grub_modbase.
9134 (grub_load_modules): Use FOR_MODULES.
9135 (grub_load_config): Likewise.
9136 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9137 (grub_modbase): New variable.
9138 (grub_machine_init): Set grub_modbase.
9139 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9140 (grub_modbase): New variable.
9141 (grub_machine_init): Set grub_modbase.
9142 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9143 Removed.
9144 (grub_modbase): New variable.
9145 (grub_machine_init): Set grub_modbase.
9146 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9147 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9148 (grub_module_iterate): Likewise.
9149 (grub_modbase): New variable declaration.
9150 (FOR_MODULES): New macro.
9151
9152 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9155 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9156
9157 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 Fix few obvious type discrepancies.
9160
9161 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9162 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9163 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9164 variable.
9165 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9166 and connected types.
9167 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9168 offset.
9169 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9170 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9171 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9172 and connected types.
9173
9174 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 Fix python 3.x incompatibilities.
9177
9178 * gentpl.py: Put brackets around print strings.
9179 * util/import_gcry.py: Open explicitly as utf-8.
9180 Use in instead of has_key.
9181
9182 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9185 (GRUB_XFS_INO_AGBITS): Make into inline function.
9186 (GRUB_XFS_INO_INOINAG): Likewise.
9187 (GRUB_XFS_INO_AG): Likewise.
9188 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9189 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9190 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9191 (GRUB_XFS_EXTENT_SIZE): Likewise.
9192 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9193 (GRUB_XFS_NEXT_DIRENT): Likewise.
9194 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9195 (grub_xfs_read_file): Fix offset type.
9196
9197 2011-10-15 Robert Millan <rmh@gnu.org>
9198
9199 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9200
9201 2011-10-15 Robert Millan <rmh@gnu.org>
9202
9203 Fix build problem on FreeBSD and GNU/kFreeBSD.
9204
9205 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9206
9207 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9210
9211 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9212 types.
9213 (grub_hfsplus_btree_recoffset): Likewise.
9214 (grub_hfsplus_btree_recptr): Likewise.
9215 (grub_hfsplus_find_block): Likewise.
9216 (grub_hfsplus_btree_search): Likewise.
9217 (grub_hfsplus_read_block): Likewise.
9218 (grub_hfsplus_read_file): Likewise.
9219 (grub_hfsplus_mount): Likewise.
9220 (grub_hfsplus_btree_iterate_node): Likewise.
9221 (grub_hfsplus_btree_search): Likewise.
9222 (grub_hfsplus_iterate_dir): Likewise.
9223 (grub_hfsplus_read): A small code simplification.
9224
9225 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * grub-core/kern/emu/hostdisk.c
9228 (convert_system_partition_to_system_disk): Don't assume that children
9229 of mapper nodes are mapper nodes.
9230
9231 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9232
9233 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9234 * include/grub/misc.h (grub_isxdigit): New function.
9235 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9236 switched to grub_isxdigit.
9237 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9238 number starting with a letter.
9239
9240 2011-10-09 Robert Millan <rmh@gnu.org>
9241
9242 LVM support for FreeBSD and GNU/kFreeBSD.
9243
9244 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9245 GNU/kFreeBSD.
9246 (LVM_DEV_MAPPER_STRING): Move from here ...
9247 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9248 * util/getroot.c: Include `<grub/util/lvm.h>'.
9249 (grub_util_get_dev_abstraction): Enable
9250 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9251 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9252 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9253 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9254 support it.
9255 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9256 GNU/kFreeBSD.
9257 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9258 when LVM abstraction is required for ${GRUB_DEVICE}.
9259
9260 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9261
9262 Add support for LZO compression in GRUB:
9263 - import of minilzo library,
9264 - LZO decompression for btrfs,
9265 - lzop files decompression.
9266
9267 * grub-core/io/lzopio.c: New file.
9268 * grub-core/lib/adler32.c: Likewise.
9269 * grub-core/lib/minilzo/lzoconf.h: Likewise.
9270 * grub-core/lib/minilzo/lzodefs.h: Likewise.
9271 * grub-core/lib/minilzo/minilzo.c: Likewise.
9272 * grub-core/lib/minilzo/minilzo.h: Likewise.
9273 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
9274 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
9275 grub-core/lib/minilzo/minilzo.c to common.
9276 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
9277 cflags in cppflags.
9278 * grub-core/Makefile.core.def (btrfs): Likewise.
9279 * grub-core/Makefile.core.def (lzopio): New module.
9280 (adler32): Likewise.
9281 * grub-core/fs/btrfs.c: Include minilzo.h.
9282 (GRUB_BTRFS_COMPRESSION_LZO): New define.
9283 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
9284 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
9285 (grub_btrfs_lzo_decompress): New function.
9286 (grub_btrfs_extent_read): Add support for LZO compression type.
9287 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
9288 (GRUB_USHRT_MAX): Likewise.
9289 (GRUB_UINT_MAX): Likewise.
9290 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
9291 (UINT_MAX): Likewise.
9292 (CHAR_BIT): Likewise.
9293 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
9294 grub-core/lib/posix_wrap/limits.h
9295 (UCHAR_MAX): Likewise.
9296 * include/grub/file.h (grub_file_filter_id): New compression filter
9297 GRUB_FILE_FILTER_LZOPIO.
9298 * include/grub/file.h (grub_file_filter_id): Set
9299 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
9300 * include/grub/types.h (grub_get_unaligned16): New function.
9301 (grub_get_unaligned32): Likewise.
9302 (grub_get_unaligned64): Likewise.
9303 * util/import_gcry.py (cryptolist): Add adler32.
9304
9305 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
9308 in perspective decreases the complexity of build system and fixes
9309 compilation right now.
9310
9311 2011-10-01 Ales Nesrsta <starous@volny.cz>
9312
9313 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
9314 (fixed problem related to using UHCI with coreboot).
9315
9316 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9317
9318 * gentpl.py: Use Autogen macros so that the output template file
9319 (Makefile.tpl) size is reduced.
9320
9321 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
9322
9323 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
9324 extra_dist.
9325
9326 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9327
9328 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
9329 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
9330
9331 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9332
9333 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
9334 _fullpath.
9335
9336 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9337
9338 Remove extra declaration of sleep for mingw32.
9339
9340 * util/misc.c (sleep) [__MINGW32__]: Removed.
9341 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
9342
9343 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
9344
9345 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
9346 type and packname.
9347 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
9348 Resurrected.
9349 (NETBSD_BTINFO_BOOTWEDGE): New definition.
9350 (grub_netbsd_btinfo_bootwedge): New struct.
9351 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9352 New function.
9353 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
9354
9355 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
9356
9357 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
9358 loader.
9359
9360 2011-09-28 Andreas Born <futur.andy@googlemail.com>
9361
9362 Fix incorrect identifiers in bash-completion.
9363
9364 * util/bash-completion.d/grub-completion.bash.in
9365 (_grub_mkpasswd-pbkdf2): Rename to ...
9366 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
9367 (_grub_script-check): Rename to ...
9368 (_grub_script_check): ... this. All users updated.
9369
9370 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9373 Return 0 if disk isn't biosdisk.
9374
9375 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9376
9377 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
9378 on NetBSD.
9379 * Makefile.util.def (grub-fstest): Likewise.
9380
9381 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9382
9383 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
9384 Get sector size from disk label.
9385
9386 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
9387
9388 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
9389 */README* as well as README*.
9390 Reported by: Axel Beckert.
9391
9392 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
9395 case of less than 256 MiB of RAM.
9396
9397 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9398
9399 * grub-core/commands/wildcard.c (make_regex): Handle @.
9400
9401 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9402
9403 * util/grub-install.in: Move cryptodisk logic to appropriate place.
9404
9405 2011-08-21 Szymon Janc <szymon@janc.net.pl>
9406
9407 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
9408 AC_LANG_CONFTEST macros.
9409
9410 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9411
9412 Add grub-fstest option to uncompress data for commands.
9413
9414 * util/grub-fstest.c (uncompress): New var.
9415 (options): New option -u.
9416
9417 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9418
9419 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
9420 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
9421
9422 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9423
9424 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
9425 file type was not recognized correctly (not gzip or corrupted).
9426
9427 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
9430 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
9431
9432 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
9435 loongson.
9436 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
9437 video_radeon_fuloong2e.
9438 * grub-core/video/radeon_fuloong2e.c: New file.
9439 * include/grub/video.h (grub_video_id_t): Add new ID
9440 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
9441
9442 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
9445 define.
9446 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
9447 that PRID matches the detected subplatform and reset the subplatform
9448 if it doesn't.
9449
9450 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
9453
9454 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9455
9456 Fix PCI iterating on functions >= 4.
9457
9458 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
9459 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
9460 Removed.
9461 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
9462 (grub_pci_read): Fix bitmask.
9463 (grub_pci_read_word): Likewise.
9464 (grub_pci_read_byte): Likewise.
9465 (grub_pci_write): Likewise.
9466 (grub_pci_write_word): Likewise.
9467 (grub_pci_write_byte): Likewise.
9468
9469 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
9472 can still be specified in TARGET_CFLAGS)
9473
9474 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
9477
9478 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
9479 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
9480 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
9481 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
9482 (FULOONG): Rename to ...
9483 (FULOONG2F): ... this. All users updated.
9484 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
9485 (machtype_fuloong2f_str): ... this.
9486 (machtype_fuloong2e_str): New string.
9487 Check for machtype_fuloong2e_str.
9488 * grub-core/loader/mips/linux.c (loongson_machtypes)
9489 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
9490 * grub-core/term/serial.c (loongson_defserial)
9491 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
9492 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
9493 loongson_defserial.
9494 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
9495 Rename to ...
9496 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
9497 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
9498 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
9499 to IMAGE_FULOONG2F_FLASH. All users updated.
9500 (image_targets): Rename images.
9501 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
9502
9503 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9504
9505 Make enable of disk cache statistics code configurable.
9506
9507 * configure.ac: --enable-cache-stats added.
9508 * config.h.in (DISK_CACHE_STATS): New define.
9509 * grub-core/Makefile.core.def (cacheinfo): New command.
9510 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
9511 * grub-core/commands/cacheinfo.c: New file.
9512 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
9513 moved to cacheinfo.c.
9514 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
9515 debug code.
9516 * include/grub/disk.h: Likewise.
9517
9518 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9519
9520 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
9521 * grub-core/Makefile.am: Likewise.
9522
9523 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
9526 non-zero pull.
9527
9528 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
9531 All users updated.
9532 (grub_jfs_lookup_symlink): Use correct starting inode.
9533
9534 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * util/grub-setup.c (main): Add missing gcry initialisation.
9537
9538 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 Don't accept text modes on EFI when booting Linux.
9541
9542 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
9543 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
9544
9545 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
9546 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9547
9548 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
9549 use of "/path/.." as in grub-install for EFI as well as handling
9550 symlinks correctly.
9551 Fixes Debian bug #637768.
9552
9553 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9554
9555 * util/grub-probe.c: Remove duplicate #include.
9556
9557 2011-08-10 Robert Millan <rmh@gnu.org>
9558
9559 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
9560
9561 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
9562 function.
9563 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
9564 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
9565
9566 2011-08-03 Robert Millan <rmh@gnu.org>
9567
9568 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
9569 la_array as packed.
9570 Reported by: Zachary Bedell
9571
9572 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9573
9574 * configure.ac: The Loongson port requires grub-mkfont due to its
9575 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
9576 be built.
9577
9578 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9579
9580 * util/grub-install.in: Don't source grub-mkconfig_lib until after
9581 processing arguments (otherwise help2man fails when GRUB has not yet
9582 been installed).
9583
9584 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 New script grub-mkstandalone.
9587
9588 * Makefile.util.def (grub-mkstandalone): New script.
9589 * docs/man/grub-mkstandalone.h2m: New file.
9590 * util/grub-mkstandalone.in: Likewise.
9591
9592 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9593
9594 Support ATA disks with 4K sectors.
9595
9596 * include/grub/ata.h (grub_ata): New member log_sector_size.
9597 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
9598 (grub_ata_identify): Read sector size.
9599 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
9600
9601 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * util/grub-install.in: Don't use uhci outside of x86.
9604
9605 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 * util/grub-mkrescue.in: Add missing quotes.
9608
9609 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
9612 dereference.
9613
9614 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
9617
9618 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * include/grub/video.h: add missing EXPORT_FUND on
9621 grub_video_edid_checksum and grub_video_edid_preferred_mode.
9622
9623 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * include/grub/mips/kernel.h: Fix define conflict.
9626
9627 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
9630 all four ways.
9631
9632 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
9633
9634 Preferred resolution detection for VBE.
9635
9636 * grub-core/video/video.c (grub_video_edid_checksum): New function.
9637 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
9638 the Flat Panel extension, in line with the X.org VESA driver.
9639 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
9640 New function.
9641 (grub_vbe_bios_get_ddc_capabilities): Likewise.
9642 (grub_vbe_bios_read_edid): Likewise.
9643 (grub_vbe_get_preferred_mode): Likewise.
9644 (grub_video_vbe_setup): When the mode is "auto", try to get the
9645 preferred mode from VBE, and use the largest mode that is no larger
9646 than the preferred mode (some BIOSes expose a preferred mode that is
9647 not in their mode list!). If this fails, fall back to 640x480 as a
9648 safe conservative choice.
9649 (grub_video_vbe_get_edid): New function.
9650 (grub_video_vbe_adapter): Add get_edid.
9651 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
9652 (struct grub_video_adapter): Add get_edid.
9653 (grub_video_edid_checksum): Add prototype.
9654 (grub_video_edid_preferred_mode): Likewise.
9655 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
9656 structure.
9657
9658 * grub-core/commands/videoinfo.c (print_edid): New function.
9659 (grub_cmd_videoinfo): Print EDID if available.
9660
9661 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
9662 is more appropriate on a wider range of platforms than 640x480.
9663 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
9664 documentation.
9665
9666 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
9669
9670 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * po/POTFILES.in: Regenerate.
9673
9674 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
9677 incorrect memory usage.
9678
9679 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 * util/grub-install.in: Source grub-mkconfig_lib.
9682
9683 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 Remove getroot.c from core on emu platform.
9686
9687 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
9688 kern/emu/raid.c.
9689 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
9690 useless.
9691 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
9692 * util/getroot.c (get_win32_path): ... here.
9693 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
9694 * util/getroot.c (fini_libzfs): ... here.
9695 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
9696 * util/getroot.c (grub_get_libzfs_handle): ... here.
9697 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
9698 Moved from here...
9699 * util/getroot.c (grub_find_zpool_from_dir): ... here.
9700 * grub-core/kern/emu/misc.c
9701 (grub_make_system_path_relative_to_its_root): Moved from here...
9702 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
9703 * grub-core/kern/emu/getroot.c: Moved from here ...
9704 * util/getroot.c: ... here. All users updated.
9705 * grub-core/kern/emu/raid.c: Moved from here ...
9706 * util/raid.c: ... here. All users updated.
9707
9708 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9709
9710 * po/POTFILES.in: Regenerate.
9711
9712 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9713
9714 Fix compilation on GNU/Linux.
9715
9716 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
9717 Disable geli.
9718 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
9719 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
9720 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
9721
9722 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9723 2011-07-07 Michael Gorven <michael@gorven.za.net>
9724 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
9725
9726 LUKS and GELI support.
9727
9728 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
9729 grub-core/disk/luks.c, grub-core/disk/geli.c,
9730 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
9731 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
9732 grub-core/lib/arg.c.
9733 (libgrubmods.a): Remove gcrypts cflags and cppflags.
9734 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
9735 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
9736 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
9737 (grub-bin2h): Add libgcry.a.
9738 (grub-mkimage): Likewise.
9739 (grub-mkrelpath): Likewise.
9740 (grub-script-check): Likewise.
9741 (grub-editenv): Likewise.
9742 (grub-mkpasswd-pbkdf2): Likewise.
9743 (grub-pe2elf): Likewise.
9744 (grub-fstest): Likewise.
9745 (grub-mkfont): Likewise.
9746 (grub-mkdevicemap): Likewise.
9747 (grub-probe): Likewise.
9748 (grub-ofpath): Likewise.
9749 (grub-mklayout): Likewise.
9750 (example_unit_test): Likewise.
9751 (grub-menulst2cfg): Likewise.
9752 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
9753 * grub-core/Makefile.core.def (cryptodisk): New module.
9754 (luks): Likewise.
9755 (geli): Likewise.
9756 * grub-core/disk/AFSplitter.c: New file.
9757 * grub-core/disk/cryptodisk.c: Likewise.
9758 * grub-core/disk/geli.c: Likewise.
9759 * grub-core/disk/luks.c: Likewise.
9760 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
9761 grub_util_is_lvm.
9762 (grub_util_get_dm_abstraction): New function.
9763 (grub_util_follow_gpart_up): Likewise.
9764 (grub_util_get_geom_abstraction): Likewise.
9765 (grub_util_get_dev_abstraction): Use new functions.
9766 (grub_util_pull_device): Pull GELI and LUKS.
9767 (grub_util_get_grub_dev): Handle LUKS and GELI.
9768 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
9769 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
9770 (follow_geom_up): Removed.
9771 (grub_util_fd_seek): New function.
9772 (open_device): Use grub_util_fd_seek.
9773 (nread): Rename to ..
9774 (grub_util_fd_read): ... this. All users updated.
9775 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
9776 (grub_crypto_cbc_decrypt): Likewise.
9777 (grub_crypto_hmac_write): Likewise.
9778 (grub_crypto_hmac_buffer): Likewise.
9779 (grub_password_get): Extend to util.
9780 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
9781 New member modname.
9782 (gcry_md_spec) [GRUB_UTIL]: Likewise.
9783 * include/grub/cryptodisk.h: New file.
9784 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
9785 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
9786 LUKS and GELI.
9787 (grub_util_follow_gpart_up): New proto.
9788 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
9789 (grub_util_fd_read): Likewise.
9790 (grub_cryptodisk_cheat_mount): Likewise.
9791 (grub_util_cryptodisk_print_uuid): Likewise.
9792 (grub_util_get_fd_sectors): Likewise.
9793 * util/grub-fstest.c (mount_crypt): New var.
9794 (fstest): Mount crypto if requested.
9795 (options): New option -C.
9796 (argp_parser): Parse -C.
9797 (main): Init and fini gcry.
9798 * util/grub-install.in: Support cryptodisk install.
9799 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
9800 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
9801 cryptodisk.
9802 (prepare_grub_to_access_device): Likewise.
9803 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
9804 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
9805 (probe_cryptodisk_uuid): New function.
9806 (probe_abstraction): Likewise.
9807 (probe): Use new functions.
9808 * util/import_gcry.py: Create Makefile.utilgcry.def.
9809 Add modname member.
9810
9811 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 Lazy device scanning.
9814
9815 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
9816 (grub-setup): Remove util/raid.c.
9817 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
9818 * grub-core/disk/lvm.c (scan_depth): New variable.
9819 (grub_lvm_iterate): Rescan if necessary.
9820 (find_lv): New function based on grub_lvm_open.
9821 (grub_lvm_open): Use find_lv. Rescan on error.
9822 (is_node_readable): New function.
9823 (is_lv_readable): Likewise.
9824 (grub_lvm_scan_device): Skip already found disks.
9825 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
9826 Stop if searched device is found and readable.
9827 * grub-core/disk/raid.c (inscnt): New variable.
9828 (scan_depth): Likewise.
9829 (scan_devices): New function based on grub_raid_register. Abort if
9830 looked for device is found.
9831 (grub_raid_iterate): Rescan if needed.
9832 (find_array): NEw function based on -grub_raid_open.
9833 (grub_raid_open): Use find_array and rescan.
9834 (insert_array): Set became_readable_at.
9835 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
9836 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
9837 New function.
9838 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
9839 (grub_util_pull_device): New function.
9840 (grub_util_get_grub_dev): Call grub_util_pull_device.
9841 * util/raid.c: Moved to ..
9842 * grub-core/kern/emu/raid.c: ... here.
9843 (grub_util_raid_getmembers): New parameter "bootable".
9844 All users updated. Support 1.x.
9845 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
9846 All users updated.
9847 * include/grub/disk.h (grub_disk_pull_t): New enum.
9848 (grub_disk_dev): Change iterate prototype.
9849 All users updated.
9850 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
9851 New proto.
9852 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
9853 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
9854 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
9855 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
9856 All users updated.
9857 * include/grub/util/raid.h: Removed.
9858
9859 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
9860
9861 * po/POTFILES.in: Regenerate.
9862
9863 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 Unify sparc init with other ieee1275.
9866
9867 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
9868 instead of kern/sparc64/ieee1275/init.c.
9869 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
9870 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
9871 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
9872 grub/machine/kernel.h.
9873 (grub_ieee1275_original_stack) [__sparc__]: New variable.
9874 (grub_claim_heap) [__sparc__]: Use sparc version.
9875 (grub_machine_init): Moved args parsing to
9876 (grub_parse_cmdline): ...this.
9877 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
9878 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
9879 New definition.
9880 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
9881
9882 Move BOOTP to separate file.
9883
9884 * grub-core/Makefile.core.def (net): Add net/bootp.c.
9885 * grub-core/net/net.c: Move all BOOTP functions to
9886 * grub-core/net/bootp.c: ... here.
9887
9888 Use frame interface on PXE.
9889
9890 * grub-core/Makefile.core.def (pxecmd): Removed.
9891 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
9892 * grub-core/commands/i386/pc/pxecmd.c: Removed.
9893 * grub-core/i386/pc/pxe.c: Moved from here ...
9894 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
9895 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
9896 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
9897
9898 EFI network support.
9899
9900 * grub-core/Makefile.core.def (efinet): New module.
9901 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
9902 here...
9903 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
9904 All users updated.
9905 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
9906 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
9907 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
9908 * grub-core/net/drivers/efi/efinet.c: New file.
9909 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
9910 (grub_efi_net_config): New extern var.
9911
9912 Various cleanups and bugfixes.
9913
9914 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
9915 error.
9916 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
9917 disk declared as partition.
9918 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
9919 leak on failure.
9920 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
9921 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
9922 (grub_debug_zalloc): Likewise.
9923 (grub_debug_realloc): Likewise.
9924 (grub_debug_memalign): Likewise.
9925 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
9926 Check that target is IPv4.
9927 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
9928 local-mac-address as fallback.
9929 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
9930 memory leak.
9931 * grub-core/net/ip.c (ipchksum): Rename to ...
9932 (grub_net_ip_chksum): ... this. All users updated.
9933 (grub_net_recv_ip_packets): Special handling for DHCP.
9934 * util/grub-mkimage.c (generate_image): Zero-out aout header.
9935
9936 Unify prefix handling
9937
9938 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
9939 (grub_machine_get_bootlocation): ... this.
9940 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
9941 (grub_machine_get_bootlocation): ... this.
9942 (grub_prefix): New variable.
9943 (prefix): Removed.
9944 (root_dev): New variable.
9945 (dir): Likewise.
9946 (main): Use new variables.
9947 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
9948 Revamped into ...
9949 (grub_machine_get_bootlocation): ... this.
9950 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
9951 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
9952 (grub_machine_get_bootlocation): ... this.
9953 (grub_machine_set_prefix): Removed.
9954 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
9955 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
9956 Revamped into ...
9957 (grub_machine_get_bootlocation): ... this.
9958 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
9959 (grub_set_prefix_and_root): ... this. All users updated.
9960 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
9961 Revamped into ...
9962 (grub_machine_get_bootlocation): ... this.
9963 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
9964 (grub_machine_get_bootlocation): New proto.
9965 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
9966
9967 Less intrusive and more reliable seek on network implementation.
9968
9969 * grub-core/kern/file.c (grub_file_net_seek): Removed.
9970 (grub_file_seek): Don't call grub_file_net_seek.
9971 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
9972 (grub_net_fs_read_real): .. this.
9973 (grub_net_seek_real): Use net->offset.
9974 (grub_net_fs_read): Seek if necessary.
9975
9976 Unify IEEE1275 netwotk config with the other platforms.
9977
9978 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
9979 New variable.
9980 (grub_machine_get_bootlocation): Support network.
9981 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9982 Support type and device parsing.
9983 (grub_ieee1275_get_device_type): New function.
9984 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
9985 into ...
9986 (grub_ieee1275_net_config_real): ... this.
9987 (grub_ofnet_probecards): Removed.
9988 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
9989 * include/grub/ieee1275/ofnet.h: Removed.
9990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
9991 extern var.
9992 (grub_ieee1275_get_device_type): New function.
9993
9994 Unify network device closing across platforms and make more robust.
9995
9996 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
9997 grub_grubnet_fini.
9998 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
9999 already.
10000 * grub-core/net/net.c (grub_net_network_level_interface_register):
10001 Update num_ifaces.
10002 (grub_net_card_unregister): Close all interfaces.
10003 (receive_packets): Don't poll if no iterfaces are registered.
10004 Open if necessary.
10005 (grub_net_fini_hw): New function.
10006 (grub_net_restore_hw): Likewise.
10007 (fini_hnd): New variable.
10008 (GRUB_MOD_INIT): Register preboot hook.
10009 (GRUB_MOD_FINI): Run and unregister preboot hook.
10010
10011 Poll network cards when idle.
10012
10013 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10014 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10015 * grub-core/net/net.c (receive_packets): Save last poll time.
10016 (grub_net_poll_cards_idle_real): New function.
10017 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10018 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10019 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10020
10021 Rename ofnet interfaces.
10022
10023 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10024 (grub_ofnet_findcards): Use ofnet_%s names.
10025
10026 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10027
10028 Cleanup socket opening.
10029
10030 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10031 (grub_net_fs_close): Likewise.
10032 (grub_net_fs_read_real): Use eof member.
10033 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10034 (+grub_net_udp_close): New inline function.
10035
10036 * include/grub/net/tftp.h: Moved to the top of ...
10037 * grub-core/net/tftp.c: ... here.
10038 * include/grub/net/ip.h: Moved mostly to the top of ...
10039 * grub-core/net/ip.c: ... here.
10040 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10041 * grub-core/net/ethernet.c: ... here.
10042
10043 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10044
10045 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10046 FS name.
10047
10048 * include/grub/net/ip.h (ipv4_ini): Removed.
10049 (ipv4_fini): Likewise.
10050
10051 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10052 (grub_net_send_ip_packets): Likewise.
10053
10054 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10055
10056 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10057 grub_read_cmos prototype.
10058
10059 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10060
10061 VGA text support in qemu-mips
10062
10063 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10064 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10065 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10066 text.
10067 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10068 * grub-core/kern/vga_init.c: ... this.
10069 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10070 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10071 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10072 Adjust.
10073 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10074 GRUB_MACHINE_PCI_IO_BASE.
10075
10076 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 MIPS qemu flash support.
10079
10080 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10081 magic.
10082 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10083 (grub_machine_init): Probe memory if its size isn't known.
10084 * util/grub-mkimage.c (image_targets): Add flash targets.
10085 (generate_image): Handle flash targets.
10086
10087 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 MIPS qemu at_keyboard support.
10090
10091 * gentpl.py (videoinkernel): Add qemu-mips.
10092 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10093 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10094 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10095 modules.
10096 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10097 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10098 * grub-core/term/serial.c (grub_serial_register)
10099 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10100
10101 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 CMOS support on sparc.
10104
10105 * gentpl.py (cmos): Add powerpc and sparc.
10106 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10107 powerpc and sparc.
10108 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10109 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10110 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10111 grub_set_datetime_cmos.
10112 * grub-core/lib/ieee1275/cmos.c: New file.
10113 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10114 (find_rtc): Set no_ieee1275_rtc on error.
10115 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10116 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10117 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10118 fail. Move value to argument. All users updated
10119 (grub_cmos_write): Likewise.
10120 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10121 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10122 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10123 grub_get_datetime_cmos and grub_set_datetime_cmos.
10124
10125 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10126
10127 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10128 sourcing grub-mkconfig_lib.
10129 * util/update-grub_lib.in: Likewise.
10130 * util/grub.d/00_header.in: Likewise.
10131 * util/grub.d/10_hurd.in: Likewise.
10132 * util/grub.d/10_kfreebsd.in: Likewise.
10133 * util/grub.d/10_linux.in: Likewise.
10134 * util/grub.d/10_netbsd.in: Likewise.
10135 * util/grub.d/10_windows.in: Likewise.
10136 * util/grub.d/20_linux_xen.in: Likewise.
10137 * util/grub.d/30_os-prober.in: Likewise.
10138
10139 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10140
10141 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10142 default_bg_color rather than black.
10143 (grub_gfxterm_fullscreen): Likewise.
10144 (grub_gfxterm_background_color_cmd): Save new background color in
10145 default_bg_color.
10146
10147 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10150
10151 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10154 mismerge.
10155
10156 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 Chainloading on coreboot support.
10159
10160 * grub-core/Makefile.core.def (chain): Add coreboot.
10161 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10162
10163 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10166 if it happens.
10167
10168 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10169
10170 Implement time command.
10171
10172 * grub-core/Makefile.core.def (time): New module.
10173 * grub-core/commands/time.c: New file.
10174 * grub-core/script/parser.y: Remove "time" keyword.
10175 * grub-core/script/yylex.l: Likewise.
10176
10177 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10180
10181 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10184 when handling leftovers.
10185
10186 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10189 so that help2man doesn't fail.
10190
10191 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10194 type in pointers on sparc64.
10195 (get_card_packet): Likewise.
10196
10197 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10198
10199 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10200 with `*'.
10201 (grub_cmd_videoinfo): Fetch current video mode.
10202
10203 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10206 because of underlying system restrictions.
10207
10208 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10211 necessary.
10212
10213 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 Coreboot video support.
10216
10217 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10218 (vbe): Likewise.
10219 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10220 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10221 here ...
10222 * grub-core/kern/i386/int.S: ... here.
10223 * grub-core/video/i386/pc/vbe.c: Updated includes.
10224 * grub-core/video/i386/pc/vga.c: Likewise.
10225 * include/grub/i386/coreboot/memory.h
10226 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10227 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10228 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10229 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10230 Disable interrupts.
10231 * include/grub/i386/pc/vga.h: Removed. All users updated.
10232
10233 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10236 definitions for dprintf.
10237 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10238
10239 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10242 prototype.
10243 (get_card_packet): Likewise.
10244
10245 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10246
10247 Display the path of the file when file is not found
10248
10249 * grub-core/fs/fat.c: Display the filename when file is not found.
10250 * grub-core/fs/fshelp.c: Likewise.
10251 * grub-core/fs/hfs.c: Likewise.
10252 * grub-core/fs/jfs.c: Likewise.
10253 * grub-core/fs/minix.c: Likewise.
10254 * grub-core/fs/ufs.c: Likewise.
10255 * grub-core/fs/btrfs.c: Likewise.
10256 * grub-core/commands/i386/pc/play.c: Likewise.
10257
10258 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10259
10260 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10261 pointer checks before calling grub_free().
10262 * grub-core/commands/wildcard.c (match_devices): Likewise.
10263 * grub-core/commands/wildcard.c (match_files): Likewise.
10264 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10265 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
10266 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
10267 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
10268 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
10269 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
10270 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
10271 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10272 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
10273
10274 2011-06-25 Patrick <p55@mailinator.com>
10275
10276 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
10277
10278 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
10279
10280 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
10281 (grub_pxe_send): Likewise.
10282 (GRUB_MOD_INIT): Fix types.
10283
10284 2011-06-24 Szymon Janc <szymon@janc.net.pl>
10285
10286 * grub-core/io/xzio.c: Fix code style issues
10287
10288 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10289 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
10290
10291 Network infrastructure.
10292 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
10293
10294 * include/grub/net/arp.h: New file.
10295 * include/grub/net/device.h: Likewise.
10296 * include/grub/net/ethernet.h: Likewise.
10297 * include/grub/net/ip.h: Likewise.
10298 * include/grub/net/netbuff.h: Likewise.
10299 * include/grub/net/tftp.h: Likewise.
10300 * include/grub/net/udp.h: Likewise.
10301 * include/grub/ieee1275/ofnet.h: Likewise.
10302 * include/grub/emu/export.h: Likewise.
10303 * include/grub/net.h: Likewise.
10304 * grub-core/net/arp.c: Likewise.
10305 * grub-core/net/ethernet.c: Likewise.
10306 * grub-core/net/ip.c: Likewise.
10307 * grub-core/net/udp.c: Likewise.
10308 * grub-core/net/tftp.c: Likewise.
10309 * grub-core/net/netbuff.c: Likewise.
10310 * grub-core/net/net.c: Likewise.
10311 * grub-core/net/drivers/emu/emunet.c: Likewise.
10312 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
10313 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
10314 export.h.
10315 * grub-core/Makefile.core.def (net): New module.
10316 (tftp): Likewise.
10317 (ofnet): Likewise.
10318 (emunet): Likewise.
10319 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
10320 network protocols.
10321 * grub-core/kern/device.c (grub_net_open) : New variable.
10322 (grub_device_open): Handle network device.
10323 (grub_device_close): Likewise.
10324 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
10325 (grub_grubnet_fini): Likewise.
10326 (grub_file_seek): Seek in network device.
10327 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
10328 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
10329 network root.
10330 (grub_machine_fini): Call grub_grubnet_fini.
10331 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
10332 network.
10333 (grub_ieee1275_get_aliasdevname): New function.
10334 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10335 Add unofficial Solaris network info.
10336 (grub_multiboot_make_mbi): Likewise.
10337 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
10338 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
10339 * include/grub/device.h (grub_fs): Removed.
10340 * include/grub/err.h (grub_err_t): Add network-related values.
10341 * include/grub/i386/pc/pxe.h: Removed bootp parts.
10342 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
10343 (grub_ieee1275_get_aliasdevname): New proto.
10344 * include/grub/net.h: Rewritten.
10345
10346 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
10349 names.
10350
10351 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
10354 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
10355 it truncates the output.
10356 Reported by: Ximin Luo.
10357
10358 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
10361
10362 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
10365 partmap before abstraction.
10366
10367 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
10368
10369 * util/grub-mkconfig_lib.in: Add missing quotes.
10370
10371 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
10374 old method if mountinfo would return /dev/root and /dev/root doesn't
10375 exist.
10376
10377 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10378
10379 ZFS zlib support
10380
10381 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
10382 (decomp_table): Add zlib entries.
10383 (zio_read): USe 8 bits for compression function rather than 3.
10384 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
10385
10386 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * grub-core/disk/ahci.c: Add missing license statements.
10389 * grub-core/fs/romfs.c: Likewise.
10390 * grub-core/lib/ia64/setjmp.S: Likewise.
10391 * grub-core/loader/i386/pc/freedos.c: Likewise.
10392 * grub-core/loader/ia64/efi/linux.c: Likewise.
10393 * grub-core/video/colors.c: Likewise.
10394 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
10395
10396 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 AHCI support.
10399
10400 * grub-core/Makefile.core.def (ata_pthru): Removed.
10401 (ahci): New module.
10402 (pata): Likewise.
10403 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
10404 on unload.
10405 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
10406 readwrite.
10407 (grub_hdparm_do_check_powermode_cmd): Likewise.
10408 (grub_hdparm_do_smart_cmd): Likewise.
10409 (grub_hdparm_set_val_cmd): Likewise.
10410 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
10411 * grub-core/disk/ahci.c: New file.
10412 * grub-core/disk/ata.c: Factor out the low-level part into ...
10413 * grub-core/disk/pata.c: ... here.
10414 * grub-core/disk/ata_pthru.c: Contents moved to ...
10415 * grub-core/disk/pata.c: ... here.
10416 * grub-core/disk/scsi.c (grub_scsi_names): New array.
10417 (grub_scsi_iterate): Use grub_scsi_names.
10418 (grub_scsi_open): Likewise.
10419 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
10420 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
10421 (grub_ata_regs_t): New struct.
10422 (grub_disk_ata_pass_through_parms): Likewise.
10423 (grub_ata_device): Renamed to ...
10424 (grub_ata): ... this.
10425 (grub_ata_dev): New struct.
10426 Removed all low-level inline functions.
10427 * include/grub/scsi.h: Add PATA and AHCI subsystems.
10428 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
10429 iterate hooks and open. All users updated.
10430 * util/grub-install.in: Handle AHCI disk module.
10431
10432 2011-06-23 Szymon Janc <szymon@janc.net.pl>
10433
10434 Add support for DRI and RSTn markers in JPEG files.
10435
10436 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
10437 (JPEG_MARKER_RST0): Likewise.
10438 (JPEG_MARKER_RST1): Likewise.
10439 (JPEG_MARKER_RST2): Likewise.
10440 (JPEG_MARKER_RST3): Likewise.
10441 (JPEG_MARKER_RST4): Likewise.
10442 (JPEG_MARKER_RST5): Likewise.
10443 (JPEG_MARKER_RST6): Likewise.
10444 (JPEG_MARKER_RST7): Likewise.
10445 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
10446 (grub_jpeg_decode_dri): New function.
10447 (grub_jpeg_decode_sos): Move image data related part into
10448 grub_jpeg_decode_data function.
10449 (grub_jpeg_decode_data): New function.
10450 (grub_jpeg_reset): New function.
10451 (grub_jpeg_decode_jpeg): Handle new markers.
10452
10453 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10454
10455 * util/ieee1275/ofpath.c (check_sas): Close fd.
10456 (main): Free of_path.
10457 Reported by: David Volgyes <dvolgyes>.
10458
10459 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
10462 Reported by: David Volgyes <dvolgyes>.
10463
10464 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10465
10466 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
10467 file after stat.
10468 Reported by: David Volgyes <dvolgyes>.
10469
10470 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
10473
10474 Reported by: David Volgyes <dvolgyes>.
10475
10476 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
10479 Prevent memory leak.
10480
10481 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10482
10483 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
10484 (main): Close file.
10485 Reported by: David Volgyes <dvolgyes>.
10486
10487 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
10490 to continue if allocation is failed.
10491
10492 Reported by: David Volgyes <dvolgyes>.
10493
10494 2011-06-23 David Volgyes <dvolgyes>
10495
10496 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
10497 dereference.
10498
10499 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10500
10501 Fix spurious warning.
10502
10503 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
10504 (acorn_partition_map_find): Use .bin member.
10505
10506 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
10509 /dev/root as a valid device.
10510
10511 2011-06-23 Jim Meyering <meyering@redhat.com>
10512
10513 Avoid NULL deref in grub_device_open.
10514
10515 * grub-core/kern/device.c (grub_device_open): Don't dereference
10516 a NULL pointer upon failed grub_env_get.
10517
10518 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 Support non-512B sectors and agglomerate reads.
10521
10522 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
10523 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
10524 (disk_io_guid): Removed.
10525 (make_devices): Locate solely by BlockIO.
10526 (grub_efidisk_open): Fill log_sector_size and total_sectors.
10527 (grub_efidisk_read): Use read_blocks.
10528 (grub_efidisk_write): Use write_blocks.
10529 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
10530 log_sector_size.
10531 (get_safe_sectors): Handle non-512B sectors.
10532 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
10533 sectors.
10534 (grub_biosdisk_write): Handle non-512B sectors.
10535 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
10536 (grub_scsi_read): Remove special non-512B block handling (now handled
10537 one level up).
10538 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
10539 and do sanity checks.
10540 (grub_disk_adjust_range): Handle non-512B sectors.
10541 (transform_sector): New function.
10542 (grub_disk_read_small): Likewise.
10543 (grub_disk_read): Rewritten.
10544 (grub_disk_write): Handle non-512B sectors.
10545 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
10546 log_sector_size.
10547 (open_device): Use log_sector_size.
10548 (grub_util_biosdisk_read): Likewise.
10549 (grub_util_biosdisk_write): Likewise.
10550 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
10551 non-512B sectors.
10552 (pc_partition_map_embed): Likewise.
10553 * include/grub/disk.h (grub_disk): New field log_sector_size.
10554 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
10555 (GRUB_DISK_CACHE_BITS): Increased to 6.
10556 * util/grub-fstest.c (fstest): New command testload.
10557 (argp_parser): Likewise.
10558
10559 2011-06-16 Robert Millan <rmh@gnu.org>
10560
10561 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
10562 `ata' driver on kernel of FreeBSD 9.
10563
10564 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
10565 (get_ataraid_disk_name): New functions.
10566 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
10567 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
10568 get_ataraid_disk_name() and get_ada_disk_name().
10569
10570 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
10571
10572 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
10573 input format.
10574
10575 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
10576
10577 * docs/grub.texi (Obtaining and Building GRUB): Substitute
10578 `ftp.gnu.org' for `alpha.gnu.org'.
10579
10580 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10581
10582 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
10583 partitions under /dev/disk/by-id/.
10584
10585 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10586
10587 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
10588 after ten consecutive open failures. Scanning all the way up to
10589 10000 is excessive and can cause serious performance problems in
10590 some configurations.
10591 Fixes Ubuntu bug #787461.
10592
10593 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
10596 opening new one.
10597
10598 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
10599 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 Don't stat devices unless we have to.
10602
10603 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
10604 dir == /dev/mapper.
10605 (grub_guess_root_device): Use already known os_dev if possible.
10606 * grub-core/kern/emu/hostdisk.c
10607 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
10608 if device is known to be a dm one.
10609
10610 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
10611
10612 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
10613 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
10614 Reported by: Pawel Tecza.
10615
10616 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
10619 (lsefisystab): Likewise.
10620 (lssal): Likewise.
10621 (lsefimmap): Likewise.
10622 (hdparm): Enable on qemu-mips.
10623 (setjmp): Add ia64 nodist.
10624 (serial): Simplify tags.
10625
10626 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10627
10628 * Makefile.util.def (grub-ofpathname): Install manual page.
10629
10630 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10631
10632 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
10633
10634 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10635
10636 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
10637
10638 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
10641 into dprintf.
10642
10643 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 Use full 64-bit division.
10646
10647 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
10648 (grub_divmod64): ... this.
10649 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
10650 version.
10651
10652 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10653
10654 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
10655 `source'.
10656
10657 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10658
10659 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
10660 to avoid accidents when debugging with 'sh -x'.
10661 * grub-core/gensyminfo.sh.in: Likewise.
10662 * tests/example_scripted_test.in: Likewise.
10663 * tests/grub_cmd_regexp.in: Likewise.
10664 * tests/grub_script_blanklines.in: Likewise.
10665 * tests/grub_script_dollar.in: Likewise.
10666 * tests/grub_script_expansion.in: Likewise.
10667 * tests/grub_script_final_semicolon.in: Likewise.
10668 * tests/partmap_test.in: Likewise.
10669 * tests/util/grub-shell-tester.in: Likewise.
10670 * tests/util/grub-shell.in: Likewise.
10671
10672 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10673
10674 Move gfxmenu color handling to video, so that gfxterm can use it
10675 too.
10676
10677 * grub-core/gfxmenu/named_colors.c: Move to ...
10678 * grub-core/video/colors.c: ... here. Rename
10679 grub_gui_get_named_color to grub_video_get_named_color.
10680 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
10681 * grub-core/video/colors.c (my_isxdigit): ... here.
10682 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
10683 Move to ...
10684 * grub-core/video/colors.c (parse_hex_color_component): ... here.
10685 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
10686 to ...
10687 * grub-core/video/colors.c (grub_video_parse_color): ... here.
10688
10689 * include/grub/gui.h (grub_gui_color_t): Move to ...
10690 * include/grub/video.h (grub_video_rgba_color_t): ... here.
10691 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
10692 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
10693 * include/grub/gui.h (grub_gui_map_color): Move to ...
10694 * include/grub/video.h (grub_video_map_rgba_color): ... here.
10695 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
10696 to ...
10697 * include/grub/video.h (grub_video_get_named_color): ... here.
10698 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
10699 * include/grub/video.h (grub_video_parse_color): ... here.
10700
10701 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
10702 video/colors.c.
10703 (gfxmenu): Remove gfxmenu/named_colors.c.
10704 (video) [videomodules]: Add video/colors.c.
10705
10706 Add a background_color command.
10707
10708 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
10709 function.
10710 (GRUB_MOD_INIT): Register background_color command.
10711 (GRUB_MOD_FINI): Unregister background_color command.
10712 (redraw_screen_rect): Allow blend/replace of text layer to be
10713 controlled independently from whether there is a background bitmap.
10714 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
10715 changing bitmap.
10716
10717 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 Patch BPB in ntldr and chainloader --bpb.
10720
10721 * grub-core/fs/fat.c: Include grub/fat.h.
10722 (grub_fat_bpb): Moved to ...
10723 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
10724 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
10725 grub/ntfs.h.
10726 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
10727 Moved from here...
10728 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
10729 here.
10730 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
10731 New function.
10732 (grub_chainloader_cmd): Patch BPB if --bpb is given.
10733 (GRUB_MOD_INIT): Show --bpb.
10734 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
10735 * grub-core/normal/main.c (features): New variable.
10736 (GRUB_MOD_INIT): Set feature_* variables.
10737 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
10738 proto.
10739 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
10740
10741 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10742
10743 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
10744 for cleanness.
10745
10746 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 FreeDOS direct loading support.
10749
10750 * docs/grub.texi (Supported OS): Add FreeDOS.
10751 * grub-core/Makefile.core.def (freedos): New module.
10752 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
10753 variable.
10754 (grub_relocator16_boot): Handle %ebx.
10755 * grub-core/lib/i386/relocator16.S: Likewise.
10756 * grub-core/loader/i386/pc/freedos.c: New file.
10757
10758 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 Long Linux command line support.
10761
10762 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
10763 (maximal_cmdline_size): New variable.
10764 (allocate_pages): Use maximal_cmdline_size.
10765 (grub_cmd_linux): Set and use maximal_cmdline_size.
10766 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
10767 (allocate_pages): Use maximal_cmdline_size.
10768 (grub_cmd_linux): Set and use maximal_cmdline_size.
10769 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
10770 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
10771 and cmdline_size.
10772
10773 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10774 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10775
10776 Improve devmapper support
10777
10778 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
10779 (grub_util_is_lvm): New function.
10780 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
10781 than lvm if not dmraid.
10782 Handle mapped md nodes.
10783 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
10784 (grub_util_device_is_mapped): ... this. Make always available. All users
10785 updated.
10786 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
10787 (convert_system_partition_to_system_disk): Handle lvm, mpath and
10788 dmraid nodes.
10789 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
10790
10791 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10792
10793 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
10794
10795 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
10796 * grub-core/modinfo.sh.in: New file.
10797 * grub-core/Makefile.core.def (modinfo.sh): New script.
10798 * util/grub-mknetdir.in: Use modinfo.sh.
10799 * util/grub-mkrescue.in: Likewise.
10800
10801 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10804 Fix potential usage of Elf32 instead of Elf64 when compiling on
10805 32-bit architecture. Add endianness macros while on it.
10806
10807 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 Use mipsel- rather than mips- in directories involving mipsel ports to
10810 allow both endiannesses coexist.
10811
10812 * configure.ac: proparate target_cpu=mipsel rather than resetting to
10813 mips. All conditions adjusted.
10814 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
10815 variable.
10816 * util/grub-install.in: Adjust conditions to take renaming into account.
10817 * util/grub-mkimage.c (image_targets): Likewise. New target
10818 mips-qemu_mips-elf for bigendian mips.
10819
10820 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10821
10822 Avoid unnecessary copying on MIPS.
10823
10824 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
10825 early if src == dest.
10826 * util/grub-mkimage.c (generate_image): Arange for src == dest if
10827 compression is none.
10828
10829 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 Reduce memory footprint on SGI by putting modules before the kernel
10832 as opposed to after.
10833
10834 * grub-core/Makefile.core.def (kernel): Increase linking address.
10835 (none_decompress): Likewise.
10836 (xz_decompress): Likewise.
10837 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
10838 address.
10839 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
10840 layout change.
10841 (grub_arch_modules_addr): New function.
10842 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
10843 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
10844 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
10845 here.
10846 * grub-core/kern/mips/startup.S (total_size): Rename to ...
10847 (grub_total_modules_size): ... this. Make global.
10848 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
10849 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
10850 New definition.
10851 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
10852 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
10853 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
10854 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
10855 * util/grub-mkimage.c (image_target_desc): New flag
10856 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
10857 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
10858 (generate_image): Handle images with modules before kernel.
10859
10860 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 Prevent potential loss of memory map by overwrite on qemu-mips.
10863
10864 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
10865 Save ram size in $s4.
10866 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
10867 All users changed to grub_arch_memsize.
10868 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
10869 Loongson.
10870 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
10871 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
10872 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
10873 external variable.
10874
10875 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10876
10877 * .bzrignore: Remove grub-dumpbios.
10878
10879 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10880
10881 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
10882 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
10883 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
10884 existing options which append).
10885 * docs/grub.texi (Simple configuration): Document new options.
10886 Reported by: Ian Jackson. Fixes Debian bug #617538.
10887
10888 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10889
10890 * util/grub-fstest.c (cmd_cat): New function.
10891 (fstest): Handle CMD_CAT.
10892 (options): Add cat.
10893 (argp_parser): Handle cat.
10894
10895 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10896
10897 * Makefile.util.def (grub-bin2h): Don't install.
10898 * docs/man/grub-bin2h.h2m: Remove.
10899
10900 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
10903 place.
10904
10905 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 Reenable qemu-mips port.
10908
10909 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
10910 Fix small arc bug while on it.
10911 * gentpl.py: Handle qemu_mips.
10912 * grub-core/Makefile.am: Likewise.
10913 * grub-core/Makefile.core.def: Likewise.
10914 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
10915 inappropriate includes.
10916 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
10917 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
10918 * grub-core/kern/main.c (grub_modules_get_end)
10919 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
10920 * grub-core/kern/mips/qemu-mips: Moved to ..
10921 * grub-core/kern/mips/qemu_mips: ... this.
10922 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
10923 (grub_machine_init): Call terminfo_init and serial_init.
10924 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
10925 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
10926 New variable.
10927 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
10928 parameter passing.
10929 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
10930 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
10931 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
10932 * include/grub/mips/qemu_mips/cmos.h: New file.
10933 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
10934 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
10935 Removed.
10936 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
10937 Use correct mips-style address.
10938 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
10939 (GRUB_TICKS_PER_SECOND): Removed.
10940 (grub_get_rtc): Likewise.
10941 (grub_cpu_idle): Likewise.
10942 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
10943 New definition.
10944 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
10945 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
10946 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
10947 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
10948 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10949 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10950 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
10951 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
10952
10953 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10954
10955 SGI ARCS port.
10956
10957 * Makefile.util.def (libgrubmods.a): Add dvh.c.
10958 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
10959 platforms.
10960 * configure.ac: New target mips-arc.
10961 * gentpl.py: Likewise.
10962 * grub-core/Makefile.am: Likewise.
10963 * grub-core/Makefile.core.def: Likewise.
10964 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
10965 (none_decompress): Likewise.
10966 (lsdev): New module.
10967 (datetime): Use lib/arc/datetime.c on ARC.
10968 (part_dvh): New module.
10969 * grub-core/commands/arc/lsdev.c: New file.
10970 * grub-core/disk/arc/arcdisk.c: Likewise.
10971 * grub-core/kern/mips/arc/init.c: Likewise.
10972 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
10973 aligned addresses.
10974 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
10975 support.
10976 (grub_arch_dl_relocate_symbols): Likewise.
10977 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
10978 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
10979 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
10980 platforms.
10981 * grub-core/lib/arc/datetime.c: New file.
10982 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
10983 pci.h on non-loongson.
10984 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
10985 (grub_linux_boot): Set unused registers to 0.
10986 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
10987 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
10988 * grub-core/mmap/mips/uppermem.c: ...here.
10989 * grub-core/partmap/dvh.c: New file.
10990 * grub-core/term/arc/console.c: Likewise.
10991 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
10992 (grub_terminfo_set_current): Add terminal "arc".
10993 (grub_terminfo_readkey): Support ARC sequences.
10994 * include/grub/arc/arc.h: New file.
10995 * include/grub/arc/console.h: Likewise.
10996 * include/grub/disk.h (grub_disk_dev_id): Add
10997 GRUB_DISK_DEVICE_ARCDISK_ID.
10998 * include/grub/mips/arc/kernel.h: New file.
10999 * include/grub/mips/arc/memory.h: Likewise.
11000 * include/grub/mips/arc/time.h: Likewise.
11001 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11002 * include/grub/mips/kernel.h (grub_halt): ... here.
11003 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11004 here...
11005 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11006 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11007 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11008 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11009 proto.
11010 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11011 from here ...
11012 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11013 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11014 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11015 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11016 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11017 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11018 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11019 (grub_phys_addr_t): Moved from here ...
11020 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11021 (grub_vtop): Moved from here ...
11022 * include/grub/mips/memory.h (grub_vtop): ... here.
11023 (grub_map_memory): Moved from here ...
11024 * include/grub/mips/memory.h (grub_map_memory): ... here.
11025 (grub_unmap_memory): Moved from here ...
11026 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11027 (grub_machine_mmap_iterate): Moved from here ...
11028 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11029 (grub_mmap_get_lower): Moved from here ...
11030 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11031 (grub_mmap_get_upper): Moved from here ...
11032 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11033 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11034 here ...
11035 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11036 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11037 here ...
11038 * include/grub/mips/time.h (grub_get_rtc): ... here.
11039 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11040 here ...
11041 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11042 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11043 here ...
11044 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11045 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11046 definition.
11047 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11048 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11049 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11050 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11051 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11052 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11053 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11054 (GRUB_MACHINE_LINK_ADDR): Likewise.
11055 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11056 to 6.
11057 * util/grub-install.in: Run dvhtool on ARC.
11058 * util/grub-mkimage.c (image_targets): Add mips-arc.
11059 (generate_image): Handle ECOFF output for mips-arc.
11060
11061 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11064 blocks.
11065
11066 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11069 after enabling port.
11070
11071 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 Skip incorrect USB devices.
11074
11075 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11076 configcnt == 0.
11077 * include/grub/usb.h (grub_usb_err_t): New enum value
11078 GRUB_USB_ERR_BADDEVICE.
11079
11080 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 Fuloong video init support.
11083
11084 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11085 well.
11086 (grub_vga_read_arx): New function.
11087 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11088 definition.
11089 (framebuffer): New members io, mmioptr and mmiobase.
11090 (read_sis_cmd): New function.
11091 (write_sis_cmd): Likewise.
11092 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11093 rather than 640x400.
11094 * grub-core/video/sis315_init.c: New file.
11095
11096 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11097
11098 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11099 non-loongson.
11100 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11101 to grub_dl_register_symbol.
11102
11103 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 Fix compilation errors.
11106
11107 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11108 potentially unused.
11109 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11110 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11111 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11112 to loongson machines.
11113
11114 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 Several FS mtime support.
11117
11118 * grub-core/fs/affs.c (grub_affs_time): New struct.
11119 (grub_affs_file): New field mtime.
11120 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11121 type. Removed 'size'. New field 'di'. All users updated.
11122 (grub_affs_mount): Simplify checsum checking.
11123 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11124 (grub_affs_dir): Handle mtime.
11125 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11126 (grub_cpio_dir): Likewise.
11127 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11128 (grub_hfs_filerec): New field mtime.
11129 (grub_hfs_dir): Handle mtime.
11130 (grub_hfs_mtime): New function.
11131 (grub_hfs_fs): Register grub_hfs_mtime.
11132 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11133 (grub_iso9660_dir): New field mtime.
11134 (grub_fshelp_node): New field dirent.
11135 (iso9660_to_unixtime): New function.
11136 (iso9660_to_unixtime2): Likewise.
11137 (grub_iso9660_read_symlink): Use node->dirent.
11138 (grub_iso9660_iterate_dir): Likewise.
11139 (grub_iso9660_dir): Set mtime.
11140 (grub_iso9660_mtime): New function.
11141 (grub_iso9660_fs): Register grub_iso9660_mtime.
11142 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11143 (grub_jfs_inode): New fields atime, ctime and mtime.
11144 (grub_jfs_dir): Set mtime.
11145 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11146 * grub-core/fs/ntfs.c (list_file): Set mtime.
11147 (grub_ntfs_dir): Likewise.
11148 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11149 (grub_reiserfs_iterate_dir): Set mtime.
11150 (grub_reiserfs_dir): Likewise.
11151 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11152 (grub_fshelp_node): Likewise.
11153 (grub_sfs_iterate_dir): Set mtime.
11154 (grub_sfs_dir): Likewise.
11155 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11156 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11157 (grub_xfs_inode): New fields atime, mtime, ctime.
11158 (grub_xfs_dir): Set mtime.
11159 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11160 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11161 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11162
11163 Support UDF symlinks.
11164
11165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11166 (grub_ufs_read_symlink): New function. All users updated.
11167
11168 Check amiga partmap checksum.
11169
11170 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11171 (grub_amiga_partition): Likewise.
11172 (amiga_partition_map_checksum): New function.
11173 (amiga_partition_map_iterate): Check checksum.
11174
11175 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 ROMFS support.
11178
11179 * Makefile.util.def (libgrubmods.a): Add romfs.
11180 * grub-core/Makefile.core.def (romfs): New module.
11181 * grub-core/fs/romfs.c: New file.
11182
11183 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 Squashfs v4 support.
11186
11187 * Makefile.util.def (libgrubmods.a): Add squash4.
11188 * grub-core/Makefile.core.def (squash4): New module.
11189 * grub-core/fs/squash4.c: New file.
11190 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11191 disk_input_start, disk_input.
11192 (get_byte): Handle disk_input.
11193 (grub_zlib_disk_read): New function.
11194 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11195
11196 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11197 2011-05-15 Feiran Zheng <famcool@gmail.com>
11198
11199 * Makefile.util.def (libgrubmods.a): Add minix3.
11200 * grub-core/Makefile.core.def (minix3): New module.
11201 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11202 (GRUB_MINIX_BSIZE): Removed.
11203 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11204 (grub_minix_ino_t): New type.
11205 (grub_minix_le_to_cpu_ino): New macro.
11206 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11207 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11208 (grub_minix_data): New field block_size.
11209 (grub_minix_read_file): Handle 64-bit correctly.
11210 * grub-core/fs/minix3.c: New file.
11211
11212 2011-05-15 Tristan Gingold <gingold@free.fr>
11213 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11214 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 IA64 support.
11217
11218 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11219 * configure.ac: Add ia64-efi target.
11220 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11221 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11222 * gentpl.py: Add ia64_efi platform.
11223 Rename x86_efi to efi and Add ia64-efi. All users updated.
11224 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11225 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11226 Remove kern/generic/rtc_get_time_ms.c on EFI.
11227 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11228 kern/ia64/dl_helper.c on ia64-efi.
11229 Add kern/emu/cache.c on emu.
11230 (linux): Use on loader/ia64/efi/linux.c on ia64.
11231 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11232 whether symbol is a function.
11233 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11234 (grub_symbol): New field 'isfunc'.
11235 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11236 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11237 (grub_dl_load_segments): Place all sections into the same region.
11238 [__ia64__]: Create trampolines and got.
11239 [GRUB_MACHINE_EMU]: Call mprotect.
11240 (grub_dl_resolve_symbols): Resolve symbol type as well.
11241 [__ia64__]: Create function descriptors.
11242 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11243 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11244 (grub_get_rtc): New function.
11245 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11246 * grub-core/kern/emu/cache.S: Renamed to ...
11247 * grub-core/kern/emu/cache_s.S: ... this.
11248 [__ia64__]: Add a nop.
11249 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11250 [__ia64__]: New function.
11251 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11252 * grub-core/kern/ia64/dl.c: New file.
11253 * grub-core/kern/ia64/dl_helper.c: Likewise.
11254 * grub-core/kern/ia64/efi/init.c: New file.
11255 * grub-core/kern/ia64/efi/startup.S: Likewise.
11256 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11257 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11258 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11259 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11260 * grub-core/loader/ia64/efi/linux.c: New file.
11261 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11262 (GRUB_MOD_DEP): Likewise.
11263 (grub_dl) [__ia64__]: New fields got and tramp.
11264 (grub_dl): New field 'base'.
11265 (grub_dl_register_symbol): New argument isfunc. All users updated.
11266 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
11267 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
11268 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
11269 (grub_ia64_dl_get_tramp_got_size): New proto.
11270 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
11271 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
11272 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
11273 * include/grub/efi/api.h: Skip call wrappers on ia64.
11274 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
11275 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
11276 * include/grub/elf.h (ELF_ST_INFO): New definition.
11277 * include/grub/ia64/efi/kernel.h: New file.
11278 * include/grub/ia64/efi/memory.h: Likewise.
11279 * include/grub/ia64/efi/time.h: Likewise.
11280 * include/grub/ia64/kernel.h: Likewise.
11281 * include/grub/ia64/setjmp.h: Likewise (from glibc).
11282 * include/grub/ia64/time.h: New file.
11283 * include/grub/ia64/types.h: Likewise.
11284 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
11285 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
11286 New protos.
11287 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
11288 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11289 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
11290 * util/grub-mkimage.c (image_target_desc): New field pe_target.
11291 All users updated.
11292 (EFI64_HEADER_SIZE): New definition. All users updated.
11293 (image_targets): Add ia64-efi.
11294 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
11295 jumpers_addr. All users updated.
11296 Create function descriptors.
11297 (count_funcs): New function.
11298 (unaligned_uint32): New struct.
11299 (MASK20): New definition.
11300 (MASK19): Likewise.
11301 (MASKF21): Likewise.
11302 (add_value_to_slot_20b): New function.
11303 (add_value_to_slot_21_real): Likewise.
11304 (add_value_to_slot_21): Likewise.
11305 (ia64_kernel_trampoline): New struct.
11306 (nopm): New variable.
11307 (jump): Likewise.
11308 (make_trampoline): New function.
11309 (relocate_addresses): Handle ia64.
11310 (make_reloc_section): Likewise.
11311 (load_image): Likewise.
11312
11313 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
11316 warning. Move variables before code while on it.
11317
11318 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 Fuloong support.
11321
11322 * configure.ac: Rename yeeloong platform to loongson. All users updated.
11323 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
11324 * grub-core/boot/mips/loongson/fuloong.S: New file.
11325 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
11326 Explicitly init CS5536.
11327 [FULOONG]: Don't use serial until CS5536 is available.
11328 Set GPIO based on dumps.
11329 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
11330 [FULOONG]: Handle GPIO and memory controller differences.
11331 Parse machine type in $a2.
11332 * grub-core/boot/mips/startup_raw.S: Determine and save the
11333 architecture.
11334 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
11335 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
11336 init on architecture type.
11337 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11338 SIS315E. Don't init at_keyboard on fuloong.
11339 (grub_halt): Support Fuloong.
11340 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
11341 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
11342 (loongson_machtypes): New array.
11343 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
11344 type.
11345 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
11346 config. All users updated. Handle CS5536 serial.
11347 * grub-core/term/serial.c (grub_serial_register): Conditionalise
11348 default port on machine type. Register serial as inactive.
11349 * grub-core/video/sis315pro.c: New file.
11350 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
11351 definition.
11352 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
11353 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
11354 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
11355 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
11356 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
11357 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
11358 to ...
11359 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
11360 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
11361 definition.
11362 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
11363 (grub_arch_machine): New extern var.
11364 * include/grub/mips/loongson/serial.h
11365 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
11366 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
11367 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
11368 (GRUB_MACHINE_SERIAL_PORT0): ... this.
11369 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
11370 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
11371 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
11372 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
11373 * include/grub/term.h (grub_term_register_input_inactive): New inline
11374 function.
11375 (grub_term_register_output_inactive): Likewise.
11376 * include/grub/video.h (grub_video_driver_id): New value
11377 GRUB_VIDEO_DRIVER_SIS315PRO.
11378 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
11379 New field "names". All users updated.
11380 New field value IMAGE_FULOONG_FLASH.
11381 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
11382
11383 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
11384
11385 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
11386 and add some clarification.
11387
11388 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
11391 platforms if kernel is compressed.
11392
11393 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
11396 unused modules since currently referrence counter isn't reliable and
11397 there isn't much memory to recover there anyway.
11398
11399 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11400
11401 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
11402 rather than resetting it to allow modules to reference themselves
11403 in init.
11404
11405 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11406
11407 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
11408 counter on dependencies since grub_dl_unref already handles this.
11409
11410 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
11413 on error if not already done.
11414
11415 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 Fix few potential memory misusage.
11418
11419 * grub-core/font/font.c (load_font_index): Don't free char_index to
11420 avoid double free.
11421 (grub_font_load): Zero-fill font at alloc for safety.
11422 Close file on error.
11423 (free_font): Free bmp_idx.
11424
11425 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11426
11427 * docs/grub.texi (Installation): Fix several outdated claims.
11428
11429 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 Handle module_license on windows.
11432
11433 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
11434 sections shifted.
11435 (insert_string): Make argument const char * instead of char *.
11436 (write_section_data): Handle long section names.
11437 Handle module_license.
11438
11439 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
11442 handle class-free menuentries.
11443 (grub_normal_add_menu_entry): Add a check to be sure.
11444
11445 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
11448 PgUp and PgDown.
11449
11450 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * configure.ac: Bump version to 1.99.
11453
11454 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 Give ATA device a bit more time on first try in order to allow disks
11457 to spin up.
11458
11459 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
11460 if dev->present is 1. Reset dev->present on failure.
11461 (grub_ata_device_initialize): Set dev->present to 1.
11462 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
11463 (grub_ata_device): New member 'present'.
11464
11465 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * util/grub-mkimage.c (generate_image): Update hash.
11468
11469 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 Flush caches on DMA memory.
11472
11473 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
11474 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
11475 (grub_dma_free): Likewise.
11476 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
11477
11478 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
11481 to avoid asm treating ld and sd as macros.
11482
11483 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
11486 decompressor.
11487
11488 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
11491 grub_decompress_core since later would fail if grub_decompress_core
11492 is too far.
11493
11494 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
11497 R_MIPS_JALR since it's used by newer compiler.
11498
11499 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
11500
11501 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
11502
11503 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
11506 file_path to 0 for surety.
11507 (grub_chainloader_boot): Set exit_data to NULL.
11508 Unset the loader once done.
11509 (grub_cmd_chainloader): Fix confusing error message if file is empty.
11510
11511 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11512
11513 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
11514 unknown key into a dprintf.
11515
11516 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
11519 on first non-existant partition.
11520
11521 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
11524 openning fails.
11525 Reported by: Mark Korenberg.
11526
11527 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
11530 overflow.
11531
11532 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * util/grub-mkimage.c (main): Explicitely flush and sync the output
11535 before closing to ensure that it will be readable by grub-setup.
11536
11537 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
11540 (devpath_1): Use MAKE_PIWG_PATH.
11541 (devpath_2): Likewise.
11542 (devpath_3): Likewise.
11543 (devpath_4): Likewise.
11544 (devpath_5): Likewise.
11545 (devpath_6): Likewise.
11546
11547 The appleldr.mod was checked that to be binary identical to previous
11548 version.
11549
11550 2011-05-05 Zach <mikezackles>
11551
11552 Support 2010 Macbooks.
11553
11554 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
11555 (devs): Add devpath_6.
11556
11557 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11558
11559 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
11560 /dev/random. /dev/urandom is good enough for our purposes (salting).
11561
11562 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
11565
11566 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11567
11568 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
11569 hexadecimal.
11570
11571 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
11574 and not 0 on failure.
11575
11576 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11577
11578 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
11579 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
11580 disk; otherwise grub_fs_probe will not fall back to the next
11581 filesystem.
11582 (grub_pxefs_open): Likewise, for consistency.
11583 Reported and tested by: Ezekiel Grave.
11584
11585 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11586
11587 * tests/partmap_test.in: Don't hardcode path to parted.
11588 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
11589
11590 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
11591
11592 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
11593 of `ls' to find out which devices are available.
11594
11595 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
11598 than source address for efi mmap buffer.
11599
11600 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
11603 wrong action on non-detecting the magic.
11604
11605 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
11608 already supplied by another part of the module (fixes compilation on
11609 FreeBSD).
11610
11611 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
11614 match the one used by mdadm.
11615
11616 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11617
11618 * po/README: Add instructions for creating po/LINGUAS.
11619
11620 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11621
11622 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
11623 #551428.
11624
11625 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
11626 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
11627 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
11628 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
11629 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
11630 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
11631 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
11632 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
11633 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
11634 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
11635 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
11636 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
11637 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
11638 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
11639 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
11640 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
11641 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
11642 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
11643 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
11644 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
11645 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
11646 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
11647
11648 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11649
11650 * grub-core/kern/emu/getroot.c
11651 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
11652 test that was incorrectly reintroduced in r3214.
11653 Reported by: Ian Dall. Fixes Savannah bug #33133.
11654
11655 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11656
11657 Fix stack pointer handling in 16-bit relocator.
11658
11659 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
11660 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
11661 Fixes Ubuntu bug #683904.
11662
11663 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * configure.ac: Bump version to 1.99~rc2.
11666
11667 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11668
11669 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
11670 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
11671 * grub-core/lib/x86_64/setjmp.S: Likewise.
11672 * grub-core/lib/mips/setjmp.S: Likewise.
11673 * grub-core/lib/powerpc/setjmp.S: Likewise.
11674 * grub-core/lib/sparc64/setjmp.S: Likewise.
11675
11676 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11677
11678 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
11679 * grub-core/lib/efi/datetime.c: Likewise.
11680
11681 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
11684 New function.
11685 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
11686 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
11687 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
11688
11689 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
11692 bitmap.
11693 (grub_gfxterm_term_init): Likewise.
11694
11695 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 Take into account the decorations the computing menu entry width.
11698
11699 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
11700 (grub_gfxmenu_create_box): Register get_border_width.
11701 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
11702 if available.
11703 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
11704 get_border_width.
11705
11706 2011-04-18 Endres Puschner <code@e7p.de>
11707
11708 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
11709 Don't skip first class.
11710
11711 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
11714 chunks.
11715 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
11716
11717 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11718
11719 Complete 64-bit division support.
11720
11721 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
11722 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
11723 * include/grub/misc.h (grub_divmod64): Rename to ...
11724 (grub_divmod64_full): ... this.
11725 (grub_divmod64): New inline function.
11726
11727 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 * util/grub-mkimage.c (generate_image): Add forgotten comma.
11730
11731 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
11734 performing the necessary test.
11735
11736 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11737
11738 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
11739 (kfreebsd.elf): Likewise.
11740 (pc-chainloader.elf): Likewise.
11741 (ntldr.elf): Likewise.
11742
11743 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11744
11745 Identify RAID by its UUID rather than (guessed) name.
11746
11747 * grub-core/disk/raid.c (ascii2hex): New function.
11748 (grub_raid_open): Accept mduuid/%s specification.
11749 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
11750 (get_mdadm_uuid): ... this.
11751 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
11752
11753 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
11756 to negative size.
11757
11758 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
11759
11760 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
11761 btrfs subvolume.
11762 * util/grub.d/20_linux_xen.in: Likewise.
11763
11764 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
11765
11766 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
11767 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
11768
11769 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
11770 Build a list of relevant visible mounts using the mnt_id and
11771 parent_mnt_id fields, and then scan that list at the end.
11772
11773 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11774
11775 * docs/grub.texi (normal): New section.
11776 (normal_exit): New section.
11777 (Embedded configuration): Add reference to normal.
11778 (GRUB only offers a rescue shell): Likewise.
11779 * docs/grub-dev.texi (Error Handling): Fix typo.
11780
11781 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11782
11783 * NEWS: Drop obsolete entry about probe-only btrfs support.
11784
11785 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11786
11787 * util/import_gcry.py: Fix typo.
11788
11789 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11790
11791 * NEWS: Add btrfs support.
11792
11793 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11794 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
11795
11796 BtrFS support. Written by me (Vladimir) with important bugfixes and
11797 even more important testing by Colin.
11798
11799 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
11800 * grub-core/Makefile.core.def (btrfs): Add crc.c.
11801 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
11802 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
11803 mem_input_off and mem_input. All users updated to accept in-RAM input.
11804 (gzio_seek): New function.
11805 (test_zlib_header): Likewise.
11806 (grub_gzio_read): Likewise.
11807 (grub_zlib_decompress): Likewise.
11808 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
11809 Accept partial and non-virtual mounts.
11810 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
11811 avoid receiving /dev/dm-X as device.
11812 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
11813 Handle bind and partial mounts.
11814 * grub-core/lib/crc.c: New file.
11815 * include/grub/deflate.h: Likewise.
11816 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
11817 proto.
11818 * include/grub/lib/crc.h: New file.
11819
11820 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 Implement automatic module license checking according to new GNU
11823 guidelines.
11824
11825 * grub-core/kern/dl.c (grub_dl_check_license): New function.
11826 (grub_dl_load_core): Use grub_dl_check_license.
11827 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
11828 (GRUB_MOD_LICENSE): Likewise.
11829 (GRUB_MOD_DUAL_LICENSE): Likewise.
11830 All modules updated.
11831
11832 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
11833
11834 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
11835 reserved_first_sector to 1. btrfs reserves plenty of space for boot
11836 loaders.
11837 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
11838
11839 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11840
11841 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
11842
11843 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11844
11845 * util/grub-fstest.c (read_file): Report GRUB error if file opening
11846 failed.
11847
11848 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11849
11850 * grub-core/kern/file.c (grub_file_open): Don't take into account the
11851 parenthesis in the middle of the filename.
11852
11853 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
11856 rather than trying to put initrd way too high.
11857 Reported by: Ryan Lortie <desrt@desrt.ca>
11858
11859 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
11862 improperly removed string.
11863
11864 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
11867 is_disk.
11868 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
11869 (open_device) Likewise.
11870 (grub_util_biosdisk_close): Likewise.
11871 Reported by: Mark Korenberg.
11872
11873 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
11874
11875 * util/grub-mkconfig_lib.in: Add missing quotes.
11876
11877 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
11878
11879 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
11880 is NULL.
11881
11882 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 Dynamically count the number of lines for the lower banner.
11885
11886 * grub-core/normal/menu_entry.c (per_term_screen): New member
11887 num_entries.
11888 (print_down): Use num_entries.
11889 (update_screen): Likewise.
11890 (grub_menu_entry_run): Set num_entries.
11891 * grub-core/normal/menu_text.c (menu_viewer_data): New member
11892 num_entries.
11893 (grub_print_message_indented): Move real part to ...
11894 (grub_print_message_indented_real): ... here. Additional argument
11895 dry_run.
11896 (draw_border): Additional argument num_entries.
11897 (print_message): Additional argument dry_run.
11898 (print_entries): Receive menu viewer data.
11899 (grub_menu_init_page): New argment num_entries.
11900 (menu_text_set_chosen_entry): Use num_entries.
11901 (grub_menu_try_text): Likewise.
11902 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
11903 All users updated.
11904 (grub_ucs4_count_lines): New function.
11905 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
11906 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
11907 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
11908 (grub_term_border_height): Likewise.
11909 (grub_term_num_entries): Likewise.
11910
11911 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
11914 Remove now unused string.
11915
11916 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
11917
11918 * docs/grub-dev.texi (Finding your way around): Update for 1.99
11919 build system.
11920 (Getting started): GRUB is developed in Bazaar now, not Subversion.
11921
11922 (Comment): Fix typo.
11923 (Getting started): General copy-editing.
11924 (Typical Development Experience): Likewise.
11925 (Error Handling): Likewise.
11926 (Video API): Likewise.
11927
11928 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
11929
11930 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
11931 throughout.
11932
11933 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * util/grub-mkimage.c (main): Handle special naming of yeeloong
11936 directory.
11937
11938 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
11939
11940 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
11941 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
11942 "development".
11943
11944 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
11947 grub_strcpy since the lines aren't necessarily 0-terminated.
11948
11949 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
11952 root on legacy.
11953
11954 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * grub-core/commands/probe.c (options): Argument to set isn't optional.
11957 (GRUB_MOD_INIT): DEVICE isn't optional.
11958
11959 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11960
11961 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
11962 word on new line if it's too long anyway. Fixes a hang.
11963
11964 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
11967 const.
11968 * util/grub-setup.c (main): Reuse md device name if available.
11969 * util/raid.c (grub_util_raid_getmembers): Receive device name and
11970 not GRUB name as argument.
11971 Based on patch by: Florian Wagner <fwagner>.
11972
11973 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
11976 Place mbi on low memory for better compatibility.
11977
11978 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
11981
11982 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11983 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
11984
11985 * autogen.sh: Ensure that collate and ctype locale is C.
11986 * conf/Makefile.common: Likewise.
11987
11988 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * grub-core/normal/menu.c: Add missing include.
11991
11992 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
11995
11996 2011-04-08 Martin Zuther <mzuther@mzuther.de>
11997
11998 * util/grub-mkconfig.in: Ignore emacsen backup.
11999
12000 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12003 on open.
12004 (grub_util_biosdisk_close): Likewise.
12005
12006 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12007
12008 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12009 const attribute and use grub_isdigit.
12010
12011 2011-04-06 Andrey <dev_null@ukr.net>
12012
12013 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12014 gcc warning.
12015
12016 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12019 useful grub_dprintf's.
12020
12021 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12024
12025 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12028
12029 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12030
12031 Output errors if theme loading failed.
12032
12033 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12034 grub_gfxterm_fullscreen on error paths to ...
12035 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12036 theme loading error.
12037
12038 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12039
12040 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12041 space for older compilers.
12042 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12043
12044 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12047 and report them as not RAID members since they are useless for GRUB.
12048 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12049
12050 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 Increase LVM implementation robustness in order not to crash on
12053 configurations like pvmove. Previously code assumed that in some places
12054 only lvs or only pvs are used whereas it seems that they are used
12055 interchangeably.
12056
12057 * grub-core/disk/lvm.c (read_node): New function.
12058 (read_lv): Use read_node.
12059 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12060 Match volumes only at the end when all lvs are found. Take both
12061 pvs (first) and lvs (second) into account.
12062 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12063 mirror_* into node_*. All users updated.
12064 (grub_lvm_stripe): Merge this ...
12065 (grub_lvm_mirror): ... and this ...
12066 (grub_lvm_node): ... into this. All users updated.
12067
12068 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12071 of function to allow further scanning for LVMs.
12072
12073 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12074
12075 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12076 on failed seek as it breaks open fd reusage.
12077
12078 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12079
12080 * util/grub-install.in: Add a recommendation to use --recheck before
12081 reporting bugs.
12082
12083 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12086 are obtained.
12087
12088 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 GRUB developper manual based on existing Internals section and
12091 contributions by the various authors with active copyright assignment.
12092
12093 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12094 * docs/font_char_metrics.png: New file.
12095 * docs/font_char_metrics.txt: Likewise.
12096 * docs/grub-dev.texi: Likewise.
12097 * docs/grub.texi (Internals): Move from here ...
12098 * docs/grub-dev.texi: ... here.
12099
12100 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12101
12102 Store the loopback device as data on loopback grub_disk structures,
12103 rather than the file it points to. This fixes use of freed memory
12104 if an existing loopback device is replaced.
12105
12106 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12107 disk->data, not dev->file.
12108 (grub_loopback_read): Adjust file assignment to match.
12109 Fixes Ubuntu bug #742967.
12110
12111 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12112
12113 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12114 when replacing an existing device.
12115
12116 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12119 memory corruptions.
12120
12121 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12122 unsigned.
12123 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12124 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12125 (grub_jfs_read_inode): Likewise.
12126 (grub_jfs_opendir): Likewise. Remove now useless casts.
12127 (grub_jfs_getent): Likewise.
12128 Make ino a grub_uint32_t rather than int.
12129 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12130 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12131 division and module with bit operations.
12132 (grub_jfs_find_file): Make ino a grub_uint32_t.
12133 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12134
12135 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12136
12137 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12138 warning. (This was in fact always initialised before use, but GCC
12139 wasn't smart enough to prove that.)
12140 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12141
12142 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12145 stack alignment.
12146 (efi_wrap_1): Likewise.
12147 (efi_wrap_2): Likewise.
12148 (efi_wrap_3): Likewise.
12149 (efi_wrap_4): Likewise.
12150 (efi_wrap_5): Likewise.
12151 (efi_wrap_6): Likewise.
12152 (efi_wrap_10): Likewise.
12153 Based on information by: Red Hat/Peter Jones.
12154
12155 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12156
12157 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12158 set-but-not-used variable.
12159
12160 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12161
12162 * docs/grub.texi (Simple configuration): Be more explicit about
12163 GRUB_DEFAULT, and add an example.
12164 Reported by: Leslie Rhorer.
12165
12166 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12167
12168 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12169 shell".
12170
12171 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12172
12173 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12174 * util/grub.d/20_linux_xen.in: Likewise.
12175
12176 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 * util/grub.d/10_linux.in: Try alternative config filenames where
12179 we parse config file.
12180 * util/grub.d/20_linux_xen.in: Likewise.
12181
12182 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12183
12184 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12185 * util/grub.d/20_linux_xen.in: Likewise.
12186
12187 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * grub-core/disk/raid.c (insert_array): Add few potentially
12190 useful grub_util_info.
12191 (grub_raid_register): Likewise.
12192
12193 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12194
12195 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12196 Preserve partition number in mdadm code path.
12197
12198 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12201 few potentially useful grub_util_info.
12202
12203 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12206
12207 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12208
12209 * docs/grub.texi (default): Use @example rather than nested
12210 itemized lists to avoid breaking gendocs.
12211
12212 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12213
12214 * docs/grub.texi (Future): Update.
12215
12216 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12217
12218 * docs/grub.texi (Environment): New chapter.
12219 (Changes from GRUB Legacy): Link to "Environment block" section for
12220 details of limitations.
12221 (Simple configuration): Likewise. Link to documentation of gfxmode
12222 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12223 respectively.
12224 (Shell-like scripting): Note that normal variables are stored in the
12225 environment.
12226 (gettext): Link to documentation of lang and locale_dir.
12227 (list_env): New section.
12228 (load_env): New section.
12229 (save_env): New section.
12230
12231 (Reporting bugs): Fix typo.
12232
12233 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12236 the example.
12237
12238 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 * grub-core/term/at_keyboard.c (set_scancodes)
12241 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12242
12243 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12244
12245 * docs/grub.texi (Menu-specific commands): Remove some semantics
12246 that were true in GRUB Legacy but not in GRUB 2.
12247 (submenu): New section.
12248 (false): New section.
12249 (read): New section.
12250 (true): New section.
12251
12252 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12253
12254 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12255
12256 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12257
12258 * docs/grub.texi (Simple configuration): Explain some of the
12259 current limitations of grub-mkconfig.
12260 Reported by: Leslie Rhorer.
12261
12262 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12263
12264 Old macs search for boot.efi rather than for bootia32.efi.
12265
12266 * util/grub-install.in: Copy bootia32.efi to boot.efi.
12267 * util/grub-mkrescue.in: Likewise.
12268 Suggested by: Peter Jones.
12269
12270 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12271
12272 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
12273
12274 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12275
12276 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
12277 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
12278 (grub_lvm_mirror): New struct.
12279 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
12280 (grub_lvm_iterate): Iterate only visible volumes.
12281 (grub_lvm_read): Factor out to ..
12282 (read_lv): ... this. Support mirrors.
12283 (grub_lvm_read): New wrapper function.
12284 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
12285 stripped or mirrored.
12286
12287 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12288
12289 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
12290
12291 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12292
12293 * docs/grub.texi (loopback): New section.
12294
12295 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12296
12297 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
12298 removed -p option.
12299
12300 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12301
12302 * docs/grub.texi (BIOS installation): New section, partly based on
12303 previous text in other sections.
12304 (Installing GRUB using grub-install): Replace BIOS discussion with a
12305 cross-reference.
12306 (Images): Likewise.
12307
12308 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12309
12310 * grub-core/kern/emu/hostdisk.c (find_partition_start)
12311 [HAVE_DIOCGDINFO]: Add safety checks.
12312
12313 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
12316 per default compiled in kernel and prior to 8.0 isn't shipped at all.
12317
12318 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12319
12320 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
12321 real_sb->size is zero (e.g. RAID-0), get the disk size from
12322 real_sb->data_size instead.
12323 Fixes Ubuntu bug #743136.
12324
12325 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
12328 printf clauses for printing size and start.
12329
12330 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12331
12332 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
12333 Reported and tested by: Timothy Nikkel.
12334
12335 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
12338 (dirty_region_add_real): ... this.
12339 (dirty_region_add): Don't discard margin refresh when performing
12340 scheduled repaint.
12341
12342 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 * grub-core/lib/relocator.c (allocate_regstart)
12345 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
12346 terminals are capabple of malloc-free operation.
12347 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12348 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12349
12350 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
12351
12352 * util/grub-setup.c: Copy the partition table zone if floppy support
12353 is disabled, even if no partition table is found.
12354
12355 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
12356 during POST if an invalid partition table is contained in the PBR
12357 of the active partition when GRUB is installed to a partition.
12358
12359 2011-03-28 Colin Watson <cjwatson@debian.org>
12360
12361 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
12362 comment.
12363
12364 2011-03-28 Colin Watson <cjwatson@debian.org>
12365
12366 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
12367 to be specific about what kind of RAID device we're scanning for.
12368
12369 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
12370
12371 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
12372 return freed string.
12373
12374 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
12377
12378 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12379
12380 Use libgeom on FreeBSD to detect partitions.
12381
12382 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
12383 (grub-mkrelpath): Likewise.
12384 (grub-script-check): Likewise.
12385 (grub-editenv): Likewise.
12386 (grub-mkpasswd-pbkdf2): Likewise.
12387 (grub-fstest): Likewise.
12388 (grub-mkfont): Likewise.
12389 (grub-mkdevicemap): Likewise.
12390 (grub-probe): Likewise.
12391 (grub-setup): Likewise.
12392 (grub-ofpathname): Likewise.
12393 (grub-mklayout): Likewise.
12394 (example_unit_test): Likewise.
12395 (grub-menulst2cfg): Likewise.
12396 * grub-core/Makefile.core.def (grub-emu): Likewise.
12397 (grub-emu-lite): Likewise.
12398 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
12399 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
12400 define HAVE_DIOCGDINFO.
12401 (follow_geom_up) [FreeBSD]: New function.
12402 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
12403 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
12404 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
12405 unconditionally of HAVE_DIOCGDINFO.
12406
12407 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 Fix FreeBSD compilation problem.
12410
12411 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
12412 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
12413
12414 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
12415
12416 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
12417 Switch back to page zero before loading a kernel, since some kernel
12418 drivers expect that.
12419 Thanks to: Felix Kuehling.
12420
12421 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12422
12423 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
12424 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
12425 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
12426
12427 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12428
12429 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
12430 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
12431
12432 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12433
12434 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
12435 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
12436 malloc is disabled.
12437
12438 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
12441 for modules headers when counting the needed allocation size.
12442
12443 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
12446 if no ASCII character is found to prevent crash.
12447
12448 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
12449
12450 * grub-core/video/bitmap.c (match_extension): Ignore case.
12451
12452 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
12455
12456 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 * grub-core/script/parser.y: Declare "time" as valid argument.
12459
12460 2011-03-23 Peter Jones <pjones@redhat.com>
12461
12462 Fix incorrect assert failure reporting.
12463
12464 * grub-core/tests/example_functional_test.c (example_test): Add
12465 a failure comment.
12466 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
12467 (failure_start): ...this. Check that malloc succeeded.
12468 Don't call xvasprintf. Return failure struct.
12469 (failure_append_vtext): New function.
12470 (failure_append_text): Likewise.
12471 (add_failure): Likewise.
12472 (grub_test_assert_helper): Likewise.
12473 * include/grub/test.h (grub_test_assert_helper): New declaration.
12474 (grub_test_assert): Macro rewritten.
12475
12476 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12477
12478 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
12479
12480 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
12483
12484 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
12487 into GRUB-style one.
12488
12489 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
12492 error and not grub_errno.
12493 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
12494
12495 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
12498 GRUB_USB_SPEED_NONE in case of failure and not the error code.
12499
12500 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * grub-core/efiemu/i386/pc/cfgtables.c
12503 (grub_machine_efiemu_init_tables): Make declaration a prototype.
12504 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
12505 (grub_xnu_unlock): Likewise.
12506 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
12507
12508 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12509
12510 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
12511 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
12512 * grub-core/commands/hashsum.c (aliases): Likewise.
12513 * grub-core/commands/setpci.c (pci_registers): Likewise.
12514 * grub-core/disk/usbms.c (attach_hook): Likewise.
12515 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
12516 (zio_checksum_table): Likewise.
12517 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
12518 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
12519 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
12520 * grub-core/lib/relocator.c (leftovers): Likewise.
12521 (extra_blocks): Likewise.
12522 * grub-core/loader/i386/bsd.c (relocator): Likewise.
12523 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
12524 (modules_last): Likewise.
12525 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
12526 (devices): Likewise.
12527 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
12528 (modules_last): Likewise.
12529 * grub-core/normal/auth.c (users): Likewise.
12530 * grub-core/normal/context.c (initial_menu): Likewise.
12531 (current_menu): Likewise.
12532 * grub-core/normal/crypto.c (crypto_specs): Likewise.
12533 * grub-core/term/serial.c (grub_serial_ports): Likewise.
12534 (grub_serial_terminfo_input_template): Likewise.
12535 (grub_serial_terminfo_output_template): Likewise.
12536 (grub_serial_terminfo_input): Likewise.
12537 (grub_serial_terminfo_output): Likewise.
12538 (registered): Likewise.
12539 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
12540
12541 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
12544 grub_video_mode_type_t.
12545 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
12546 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
12547 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
12548
12549 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12550
12551 * util/grub-install.in: Correct the x86-64 name as x86_64.
12552
12553 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
12554
12555 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
12556 initial chunk read from the kernel always includes GRUB's multiboot
12557 header, which is now outside the first sector.
12558
12559 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12560
12561 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
12562 cached mmap_size, so that this works correctly when called multiple
12563 times.
12564 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
12565
12566 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12567
12568 * docs/grub.texi (Simple configuration): Tidy up formatting.
12569
12570 2011-03-07 Szymon Janc <szymon@janc.net.pl>
12571
12572 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
12573 Set-but-not-used variable removed.
12574
12575 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12576
12577 Workaround yet another IEEE1275 bug.
12578
12579 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
12580 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
12581 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
12582 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
12583 is set.
12584 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12585 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
12586
12587 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
12590 error.
12591
12592 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
12593
12594 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
12595 empty, since in that case we can only generate either nothing or a
12596 syntactically invalid configuration file.
12597 Reported by: Michal Suchanek. Fixes Debian bug #612898.
12598
12599 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12600
12601 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
12602 (Making a GRUB bootable CD-ROM): Likewise.
12603 (Invoking grub-mkrescue): New section.
12604 Reported by: Yann Dirson. Fixes Debian bug #612585.
12605
12606 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12607
12608 * util/grub-install.in: Remove unnecessary brackets from tr
12609 arguments.
12610 * util/grub.d/10_hurd.in: Likewise.
12611 * util/grub.d/10_kfreebsd.in: Likewise.
12612 * util/grub.d/10_linux.in: Likewise.
12613 * util/grub.d/20_linux_xen.in: Likewise.
12614 Reported by: Jamie Heilman. Fixes Debian bug #612564.
12615
12616 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
12617
12618 * include/grub/file.h (not_easly_seekable): Rename to ...
12619 (not_easily_seekable): ... this. Update all users.
12620
12621 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
12622
12623 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
12624 grub-mkrescue.
12625
12626 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
12627
12628 * util/grub-mkimage.c (generate_image): Refuse to create the images
12629 bigger than the actual flash (512K) in Loongson machines. 512K is also
12630 the biggest chip supported by them.
12631
12632 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
12635
12636 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
12637
12638 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
12639 super_offset field.
12640
12641 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12642
12643 * util/grub-install.in: Ignore install device on platforms
12644 where it doesn't make sense. Always use UUIDs except on pc, efi and
12645 sparc64.
12646 Reported by: Daniel Kahn Gillmor.
12647
12648 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12649
12650 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
12651
12652 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
12655 (iterate_real): Don't rely on partition being non-NULL.
12656
12657 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
12660 supported platforms. Put a compile time assert for this rather than
12661 generate a warning with 32-bit shift.
12662
12663 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
12666 logical expression more readable.
12667
12668 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
12671 even if some elements have a name.
12672 Reported by: Alexander GQ Gerasiov.
12673
12674 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12675
12676 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
12677 path unreadable if `grub-probe -t abstraction' fails, for example if
12678 memberlist fails on an LVM volume group.
12679 Reported by: Darius Jahandarie.
12680
12681 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12682
12683 * docs/grub.texi (Simple configuration): Document
12684 GRUB_PRELOAD_MODULES.
12685
12686 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
12687
12688 * .bzrignore: Remove nonexistent grub-pbkdf2.
12689
12690 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
12691
12692 * configure.ac: Bump version to 1.99~rc1.
12693
12694 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12695
12696 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
12697 for safety.
12698
12699 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
12702 module.
12703
12704 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
12707
12708 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12709
12710 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
12711 diskdevid.
12712
12713 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12714
12715 Fix compilation on cygwin.
12716
12717 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
12718 -R .drectve on cygwin.
12719 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
12720 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
12721 (COND_CYGWIN): New condition.
12722 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
12723 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
12724 not @TARGET_OBJ2ELF@.
12725 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
12726 type to determine whether aux is to be used.
12727
12728 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12729
12730 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
12731 realpath'ed device string.
12732 Handle floppy (somewhat).
12733 Issue error in unknown case rather than garbage.
12734 Reported by: Axel Beckert.
12735
12736 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12737
12738 * util/grub.d/00_header.in (load_video): Handle the case when no video
12739 drivers available.
12740 Thanks to: Axel Beckert.
12741
12742 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12743
12744 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
12745 variable. Fixes problem on big endian platforms.
12746
12747 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12748
12749 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
12750 It doesn't work well there.
12751
12752 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12753
12754 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
12755 warning.
12756 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
12757 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
12758 counter.
12759
12760 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12761
12762 Use alias->path rather than buggy "canon".
12763
12764 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
12765 (ofdisk_hash_add): New argument curcan. All users updated.
12766
12767 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
12768
12769 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
12770
12771 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12772
12773 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
12774 loadmask before doing any calculations. Use correct type for offset.
12775 (grub_linux_load64): Likewise.
12776
12777 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
12778
12779 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
12780 with NULL.
12781 (console_grub_equivalences_unshift): Likewise.
12782 Reported by: Daniel Dehennin.
12783
12784 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
12787 (set_env_limn_ro): Likewise.
12788 (GRUB_MOD_INIT): Likewise.
12789 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
12790 ARRAY_SIZE while on it.
12791 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
12792 * grub-core/normal/context.c (grub_env_export): Move from here ...
12793 * grub-core/kern/env.c (grub_env_export): ... here.
12794 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
12795 prefix.
12796 * grub-core/kern/main.c (grub_main): Export root and prefix.
12797 * include/grub/env.h (grub_env_export): Export.
12798 Reported by: Seth Goldberg.
12799
12800 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12801
12802 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12803 Take into account space used by ELF sections and multiboot palette.
12804 Reported by: Grégoire Sutre.
12805
12806 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * BUGS: New file.
12809
12810 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 Pass more appropriate video id to Linux.
12813
12814 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
12815 grub_video_get_driver_id and variable gfxpayloadforcelfb to
12816 fill have_vga.
12817 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
12818 shift params->lfb_size.
12819 * include/grub/i386/linux.h: Make an enume out of have_vga values.
12820
12821 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12822
12823 * util/grub-menulst2cfg.c: Add missing include of misc.h.
12824
12825 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
12828 separator and pass bootpath/devid even if only one of them is available.
12829 Reported by: Seth Goldberg.
12830
12831 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12832
12833 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
12834 implementations bug on them.
12835
12836 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
12837 memory.
12838 (filter_memory_map): Likewise.
12839
12840 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
12843 Reported by: nebuchadnezzar.
12844
12845 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
12848 Reported by: nebuchadnezzar.
12849
12850 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 Submenu default support.
12853
12854 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
12855 auto_boot. All users updated.
12856 Declared static.
12857 Handle chosen and default with submenus.
12858 (grub_menu_execute_with_fallback): Declared static.
12859 Don't notify failure if autobooted. Upper level does it.
12860 (menuentry_eq): New function.
12861 (get_entry_number): Use menuentry_eq.
12862 (show_menu): New parameter "autobooted". All users updated.
12863 (grub_show_menu): Likewise.
12864 * include/grub/normal.h (grub_show_menu): Likewise.
12865 * include/grub/menu.h (grub_menu_execute_entry): Removed.
12866 (grub_menu_execute_with_fallback): Likewise.
12867
12868 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 * util/grub-mklayout.c (usage): Update help text.
12871
12872 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
12875
12876 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * util/grub-menulst2cfg.c (main): Trim the line.
12879
12880 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
12883 (grub_machine_init): Don't check amount of low memory as reportedly
12884 INT 12h can be broken and if low memory is too low we wouldn't have
12885 gotten into grub_machine_init anyway.
12886
12887 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
12890 (grub_machine_mmap_iterate): Take low memory into account
12891
12892 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
12895 badfs.
12896 Reported by: TiCPU.
12897
12898 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
12901 members errors.
12902
12903 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
12904
12905 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
12906 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
12907
12908 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
12909
12910 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
12911 openbsd and netbsd types being in part_bsd module.
12912
12913 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
12916 (_FILE_OFFSET_BITS): Likewise.
12917 Reported by: Seth Goldberg.
12918
12919 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12920
12921 * configure.ac: Check for libdevmapper header.
12922
12923 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
12926 avoid aliasing.
12927 (fzap_lookup): Likewise.
12928 (dnode_get): Likewise.
12929 (make_mdn): Likewise.
12930 (zfs_mount): Likewise.
12931 (fzap_iterate): Use temporary pointer to avoid aliasing.
12932 (grub_zfs_read): Likewise.
12933 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
12934 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
12935 pointers to avoid aliasing.
12936 (grub_cmd_xnu_kernel64): Likewise.
12937 (grub_xnu_load_driver): Likewise.
12938
12939 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
12942 aliasing warning.
12943 (grub_cmd_terminal_output): Likewise.
12944 Reported and tested by: Grégoire Sutre.
12945
12946 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
12949 warning.
12950 Reported and tested by: Grégoire Sutre.
12951
12952 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * configure.ac: Do CPU substitution even if it's specified explicitly.
12955 Reported and tested by: Alain Greppin.
12956
12957 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
12960 Reported and tested by: Alain Greppin.
12961
12962 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12963
12964 Satisfy some bison versions need for inttypes.h.
12965
12966 * grub-core/lib/posix_wrap/inttypes.h: New file.
12967 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
12968 (int16_t): Likewise.
12969 (int32_t): Likewise.
12970 (int64_t): Likewise.
12971 Reported and tested by: Alain Greppin.
12972
12973 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
12976 Silence spurious warning.
12977 Reported and tested by: Alain Greppin.
12978
12979 2011-01-07 Szymon Janc <szymon@janc.net.pl>
12980
12981 * docs/grub.texi (Support automatic decompression): Update with xz
12982 decompression support.
12983
12984 2011-01-07 Szymon Janc <szymon@janc.net.pl>
12985
12986 Improve loaders' kernel command line handling.
12987
12988 * grub-core/lib/cmdline.c: New file.
12989 * include/grub/lib/cmdline.h: Likewise.
12990 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
12991 grub_create_loader_cmdline to create kernel command line.
12992 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12993 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
12994 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
12995 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
12996 (linux): Add lib/cmdline.c on common.
12997
12998 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12999
13000 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13001 inopos might be unaligned.
13002
13003 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13004
13005 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13006 endian transformations.
13007 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13008 Based on report by: Doug Nazar.
13009
13010 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13011
13012 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13013 array->members[i].start_sector.
13014 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13015
13016 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13017
13018 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13019 Reported and tested by: Grégoire Sutre.
13020
13021 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13022
13023 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13024 avoid causing test failures by clearing the screen.
13025
13026 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13027
13028 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13029 Fix prefix check to handle the case where dir ends with a slash
13030 (most significantly, "/" itself).
13031 Reported by: Michael Vogt.
13032
13033 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 Run terminfo_cls on initing terminfo output to clear the screen and
13036 move the cursor to (0,0).
13037
13038 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13039 Call grub_terminfo_output_init.
13040 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13041 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13042 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13043
13044 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13047 only when needed.
13048
13049 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13052 CTRL.
13053
13054 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13055
13056 The E820 type 5 is BADRAM, not EXEC_CODE.
13057
13058 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13059 (GRUB_E820_BADRAM): New define.
13060 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13061 into reserved. Propagate BADRAM.
13062 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13063 (GRUB_E820_BADRAM): New define.
13064
13065 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13068 Ignore the memory post-4G.
13069 (grub_relocator_firmware_alloc_region): Additional debug statement.
13070
13071 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13074 names.
13075 Reported by: David Pravec.
13076
13077 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13080 BIOSes.
13081
13082 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13085 Prevent overflow.
13086 (grub_reed_solomon_recover): Likewise.
13087
13088 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13089
13090 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13091
13092 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13095 variable.
13096
13097 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13098
13099 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13100 descriptions of extract_legacy_entries_source and
13101 extract_legacy_entries_configfile.
13102 Reported by: Seung Soo, Ha.
13103
13104 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13105
13106 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13107 on devices that do not implement function 0.
13108
13109 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13110
13111 * grub-core/fs/hfsplus.c: Make parent unsigned.
13112 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13113 overflows.
13114 (grub_hfsplus_cmp_extkey): Likewise
13115
13116 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13117
13118 * util/grub-install.in: Correctly use bootloader_id and not
13119 GRUB_DISTRIBUTOR on efibootmgr line.
13120
13121 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13124
13125 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13126
13127 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13128 Xen and reorder menu item wording to make it clearer that this entry
13129 will launch Xen. Print separate messages when loading Xen and
13130 Linux.
13131
13132 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13133
13134 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13135 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13136 loop in case of incorrect amiga partmap.
13137
13138 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13141 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13142 Reported by:EHeM.
13143
13144 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13147 spurious warning.
13148 Reported by: crocket
13149
13150 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13153 Preload EFIemu.
13154 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13155
13156 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13159 is loaded
13160 (grub_cmd_xnu_kextdir): Likewise.
13161 (grub_cmd_xnu_splash): Likewise.
13162
13163 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Avoid using Reed-Solomon with 0 redundancy.
13166
13167 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13168 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13169 or 0 redundancy.
13170 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13171 (grub_reed_solomon_recover): Likewise.
13172
13173 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 Don't use disk subsystem in freebsd_boot.
13176
13177 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13178 (freebsd_biosdev): Likewise.
13179 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13180 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13181
13182 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13183
13184 Handling of files of unknown size is currently limited. They can't be
13185 used e.g. for initrd or modules. Moreover gzip handling of not
13186 easily seekable files is buggy. Disable unknown file size for now. May
13187 be inefficient but works.
13188
13189 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13190 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13191
13192 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13193
13194 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13195 floppy probe.
13196
13197 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13198
13199 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13200
13201 2010-12-25 Shea Levy <shlevy>
13202
13203 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13204
13205 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13208 Windows Server 2008.
13209 Reported by: Devin Giddings.
13210
13211 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13214 writing an error message because of async power management.
13215 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13216 (grub_reboot): Likewise.
13217
13218 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13219
13220 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13221 keep unit tests from failing when they shouldn't.
13222
13223 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13224
13225 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13226 previous patch increased the size of the RS code by 20 bytes (at
13227 least with gcc-4.4), so increase this by 20 bytes to match.
13228 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13229
13230 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13231
13232 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13233 scratch area. Make sure to initialise chosen in standalone mode as
13234 well as non-standalone.
13235 Reported by: Robert Hooker and Andy Whitcroft.
13236 Tested by: Andy Whitcroft.
13237
13238 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13239
13240 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13241 constructing a new unescaped string and passing it to grub_xputs in
13242 one go, rather than passing characters to grub_printf one at a time.
13243
13244 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13245
13246 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13247 initialising utf16.
13248
13249 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13250
13251 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13252 comment. Add an extra layer of quotation, requiring the output of
13253 this function to be used in a printf format string.
13254 (gettext_printf): New function.
13255 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13256 Extract translatable strings from here-documents and use a temporary
13257 variable instead, so that xgettext can find them.
13258 * util/grub.d/10_kfreebsd.in: Likewise.
13259 * util/grub.d/10_linux.in: Likewise.
13260 * util/grub.d/20_linux_xen.in: Likewise.
13261
13262 * po/grub.d.sed: New file.
13263 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13264 arguments. Set c-format flags on all strings extracted from
13265 util/grub.d/ (xgettext refuses to include these itself for strings
13266 it extracted from a shell file, but these really are c-format).
13267
13268 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13269
13270 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
13271 Avoid next pointing to nowhere.
13272
13273 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
13276 rather than assuming than rootblock is exactly in the middle.
13277 (grub_affs_label): Likewise.
13278
13279 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
13282 reserved_first_sector to 0.
13283 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
13284 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
13285 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
13286
13287 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 Fix handling of UTF-16 UDF labels.
13290
13291 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
13292 (read_string): .. here.
13293 (grub_udf_label): Use read_string.
13294
13295 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
13296
13297 * grub-core/normal/menu_entry.c (run): Execute commands from menu
13298 editor under argument scope.
13299 Reported by: Jordan Uggla
13300
13301 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
13304
13305 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
13306
13307 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
13308 line, and other keys scroll an entire page (previous handling was
13309 for \r and \n to scroll a page and other keys to scroll two lines).
13310
13311 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13314 Set ptrdest to correct get_physical_target_address rather than
13315 incorrect get_virtual_current_address.
13316
13317 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
13318
13319 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
13320 correct cat to grub_uint8_t * rather than grub_uint32_t *.
13321
13322 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13323
13324 * .bzrignore: Ignore grub-core/rs_decoder.S.
13325
13326 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13327
13328 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
13329 .mo/.mo.gz opening sequence to ...
13330 (grub_mofile_open_lang): ... here.
13331 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
13332 * util/grub.d/00_header.in (grub_lang): Include country part of
13333 locale.
13334 Reported by: Mario Limonciello.
13335
13336 2010-12-09 Robert Millan <rmh@gnu.org>
13337
13338 * NEWS: Document addition of ZFS support.
13339
13340 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
13341
13342 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
13343 rather than `/ 2', as the latter requires -Wa,--divide which would
13344 require bumping our minimum binutils version.
13345
13346 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
13347
13348 * util/grub-script-check.c (main): Print script line number on
13349 error.
13350
13351 2010-12-01 Robert Millan <rmh@gnu.org>
13352
13353 * grub-core/fs/zfs/zfs.c: New file.
13354 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
13355 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
13356 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
13357 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13358
13359 * include/grub/zfs/dmu.h: Likewise.
13360 * include/grub/zfs/dmu_objset.h: Likewise.
13361 * include/grub/zfs/dnode.h: Likewise.
13362 * include/grub/zfs/dsl_dataset.h: Likewise.
13363 * include/grub/zfs/dsl_dir.h: Likewise.
13364 * include/grub/zfs/sa_impl.h: Likewise.
13365 * include/grub/zfs/spa.h: Likewise.
13366 * include/grub/zfs/uberblock_impl.h: Likewise.
13367 * include/grub/zfs/vdev_impl.h: Likewise.
13368 * include/grub/zfs/zap_impl.h: Likewise.
13369 * include/grub/zfs/zap_leaf.h: Likewise.
13370 * include/grub/zfs/zfs.h: Likewise.
13371 * include/grub/zfs/zfs_acl.h: Likewise.
13372 * include/grub/zfs/zfs_znode.h: Likewise.
13373 * include/grub/zfs/zil.h: Likewise.
13374 * include/grub/zfs/zio.h: Likewise.
13375 * include/grub/zfs/zio_checksum.h: Likewise.
13376
13377 * Makefile.util.def: Build ZFS into libgrubmods.
13378 * grub-core/Makefile.core.def: Build zfs.mod.
13379
13380 2010-11-30 Szymon Janc <szymon@janc.net.pl>
13381
13382 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
13383 variable.
13384 * grub-core/commands/wildcard.c (match_files): Likewise.
13385
13386 2010-11-30 Robert Millan <rmh@gnu.org>
13387
13388 * grub-core/loader/i386/bsd.c
13389 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
13390 whether kernel is loaded using grub_loader_is_loaded(), rather
13391 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
13392 certain error conditions.
13393
13394 2010-11-30 Robert Millan <rmh@gnu.org>
13395
13396 * grub-core/commands/echo.c: Include `<grub/term.h>'.
13397 (grub_cmd_echo): Call grub_refresh() after printing a message.
13398
13399 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 Avoid using tricks for initialising endian variables.
13402
13403 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
13404 Make const.
13405 (GRUB_MOD_INIT): Don't byte-swap.
13406 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13407 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
13408 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
13409 (grub_swap_bytes32_compile_time): Likewise.
13410 (grub_cpu_to_le32_compile_time): Likewise.
13411 (grub_cpu_to_le16_compile_time): Likewise.
13412
13413 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13414
13415 * util/grub-setup.c (setup): Stop recommending --force. People who
13416 understand the dangers of blocklists are able to find this option
13417 anyway and the ones who don't shouldn't use it anyway.
13418
13419 2010-11-26 Robert Millan <rmh@gnu.org>
13420
13421 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
13422 Update all users.
13423
13424 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
13425
13426 Fix LVM-on-RAID probing.
13427
13428 * util/grub-probe.c (probe): Remember which disk was detected as
13429 RAID (perhaps an LVM physical volume). Use that disk's raidname
13430 rather than that of the top-level disk.
13431
13432 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
13433
13434 Fix cmdline argument quotes for setparams command of menuentry
13435 definitions.
13436
13437 * grub-core/commands/menuentry.c (setparams_prefix): Use single
13438 quotes for arguments.
13439 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
13440 grub_strchrsub function instead.
13441
13442 * include/grub/misc.h (grub_strchrsub): New function.
13443
13444 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13445
13446 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
13447 effort by skipping "." and ".." entries up-front.
13448 Suggested by: Michael Lazarev.
13449
13450 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13451
13452 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
13453 ldflags to ldadd, to fix link line ordering.
13454 (none_decompress): Likewise.
13455
13456 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13457
13458 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
13459 platforms.
13460 (grub-emu-lite): Remove kern/emu/cache.S.
13461
13462 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13463
13464 * util/deviceiter.c (compare_devices): If the by-id link for a
13465 device couldn't be resolved, fall back to sorting by the by-id link
13466 rather than segfaulting.
13467 Reported and tested by: Daniel Mierswa.
13468
13469 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13470
13471 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
13472 ldflags, to fix link line ordering.
13473
13474 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13475
13476 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
13477 linkers are picky about this.
13478
13479 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13480
13481 * grub-core/Makefile.am (command.lst): Adjust sed expression
13482 ordering so that extended and priority commands aren't treated as
13483 ordinary commands.
13484
13485 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13486
13487 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13488 Remove byte-swapping function calls, which are not valid in
13489 structure initialisers.
13490 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
13491 non-const.
13492 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
13493 grub_gpt_partition_type_bios_boot.
13494
13495 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13496
13497 Fix test program build on GNU/kFreeBSD.
13498
13499 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
13500 $(LIBNVPAIR)' library dependencies.
13501
13502 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13503
13504 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
13505
13506 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13507
13508 * util/grub-install.in: Remove excessive quoting that broke
13509 installations to RAID devices.
13510
13511 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
13514 bootloader version instead of 0.
13515
13516 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
13519 warning.
13520
13521 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
13524 retrieve the metadat sector if size isn't known.
13525 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13526
13527 2010-11-18 Robert Millan <rmh@gnu.org>
13528
13529 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
13530 with grub_memcmp().
13531
13532 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
13535 arrow.
13536 Reported by: Jordan Uggla.
13537
13538 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 Make better UTF compliant.
13541
13542 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
13543 sequences as incorrect.
13544 (grub_is_valid_utf8): Likewise.
13545 (grub_utf8_to_ucs4): Likewise.
13546 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
13547 (grub_ucs4_to_utf8_alloc): Likewise.
13548 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
13549
13550 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13551
13552 Make legacy_source behave like source.
13553
13554 * grub-core/commands/legacycfg.c (legacy_file): Don't call
13555 grub_show_menu.
13556 (grub_cmd_legacy_source): Call grub_show_menu if needed.
13557
13558 2010-11-16 Colin Watson <cjwatson@debian.org>
13559
13560 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
13561 (-Wunused implies -Wunused-parameter, but not vice versa).
13562
13563 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
13564
13565 * configure.ac: Make error messages less confusing by testing for
13566 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
13567 accepted, but produces a diagnostic if something else is wrong).
13568
13569 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13570
13571 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
13572 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
13573 (now unused).
13574 (grub_keyboard_controller_init)
13575 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
13576 read the initial state since controller isn't inited yet.
13577
13578 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
13581 allocate_regbeg may need to create new chunk header.
13582
13583 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 Fix quoting in legacy parser.
13586
13587 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
13588 single quotes.
13589 (grub_legacy_parse): Likewise.
13590 Reported by: Jordan Uggla.
13591 Tested by: Jordan Uggla.
13592
13593 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 Don't add -lgcc on i386 and x86_64.
13596
13597 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
13598 * conf/Makefile.common (LDADD_KERNEL): Likewise.
13599 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
13600
13601 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 * configure.ac: Add -Wno-trampolines when supported.
13604
13605 2010-11-14 Modestas Vainius <modax@debian.org>
13606
13607 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
13608 fakeraid.
13609
13610 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13611
13612 Add generic logical block size support for UDF.
13613
13614 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
13615 (GRUB_UDF_BLKSZ): Removed.
13616 (struct grub_udf_data): New field "lbshift" to hold the logical block
13617 size of the file system in log2 format. All users updated.
13618 (sblocklist): Change type to unsigned.
13619 (grub_udf_mount): Change type of "sblklist" to unsigned.
13620 Move AVDP search before VRS recognition, because the latter requires
13621 knowledge of the logical block size, which is detected during the
13622 former.
13623 Detect and validate logical block size during AVDP search, adding
13624 support for block sizes 512, 1024 and 4096.
13625 Make VRS recognition independent of block size.
13626
13627 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13628
13629 Properly handle deleted files on UDF.
13630
13631 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
13632 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
13633 set.
13634
13635 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13636
13637 Support reading files larger than 2 GiB.
13638
13639 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
13640 "offset" to grub_off_t.
13641 (grub_udf_read_file): Likewise for parameter "pos".
13642
13643 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13644
13645 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
13646 unavailable.
13647 (Simple configuration): Refer to Changes from GRUB Legacy about
13648 save_env availability.
13649
13650 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13651
13652 * util/grub-install.in: Ignore empty partition table detection
13653 instead of trying to include part_ module.
13654
13655 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
13658 LVM on RAID support.
13659
13660 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 Properly define WORDS_BIGENDIAN in wrapped environments.
13663
13664 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
13665 definition.
13666 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
13667
13668 Reported by: Manoel Rebelo Abranches.
13669 Tested by: Manoel Rebelo Abranches.
13670
13671 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13672
13673 * util/grub-mkconfig.in: Fix quoting.
13674
13675 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 Support big ext2 files.
13678
13679 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
13680 (grub_ext2_read_block): Support triple indirect blocks.
13681 (grub_ext2_read_file): Use 64-bit types and read size_high.
13682 (grub_ext2_open): Read size_high.
13683 Reported by: Ximin Luo.
13684 Tested by: Manoel Rebelo Abranches.
13685
13686 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * util/grub-install.in: Handle filenames containing spaces.
13689 Reported by: Jordan Uggla.
13690 Tested by: Jordan Uggla.
13691
13692 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * util/grub-mkconfig.in (grub_script_check): New variable.
13695 Use grub_script_check instead of grub-script-check.
13696 Reported by: Barry Jackson.
13697
13698 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13699
13700 * docs/grub.texi (menu): Correct the order.
13701 Reported by: D. Hugh Redelmeier.
13702
13703 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
13706 jump.
13707
13708 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13709
13710 * include/grub/elfload.h (grub_elf32_size): New parameter.
13711 All users updated.
13712 Return maximum segments alignment.
13713 (grub_elf64_size): Likewise.
13714 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
13715 Return maximum segments alignment.
13716 (grub_elf64_size): Likewise.
13717 * grub-core/loader/powerpc/ieee1275/linux.c:
13718 (grub_linux_claimmap_iterate): New function. Uses the
13719 "available" property in the "memory" node for memory allocation
13720 for kernel in the PowerPC loader.
13721 (grub_linux_load32): Correctly find linux entry point offset.
13722 (grub_linux_load64): Likewise.
13723
13724 2010-11-07 Robert Millan <rmh@gnu.org>
13725
13726 On mips-yeeloong, build with -march=loongson2f when this flag is
13727 available (GCC >= 4.4).
13728 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
13729 `-march=mips3'.
13730 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
13731 or otherwise add -march=mips3.
13732
13733 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
13734
13735 Suppress shell expansion on echo '*' and echo "*" like cases.
13736 Reported by: Jordan Uggla.
13737
13738 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
13739 string arguments before shell expansion.
13740 * tests/grub_cmd_echo.in: New testcases.
13741
13742 2010-11-07 Robert Millan <rmh@gnu.org>
13743
13744 * conf/mips-qemu-mips.rmk: Remove stale file from previous
13745 transition.
13746
13747 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * grub-core/kern/emu/hostdisk.c
13750 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
13751
13752 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13753
13754 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
13755 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
13756 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
13757
13758 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13759
13760 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
13761
13762 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 * util/grub-install.in: Replace useless recomendation to pass
13765 --modules with a recomendation to report a bug.
13766
13767 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13768
13769 Properly register serial terminfo.
13770 Reported by: Jordan Uggla
13771
13772 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
13773 const.
13774 (grub_serial_terminfo_output_template): Likewise.
13775 (grub_cmd_serial): Register "serial" with terminfo.
13776 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
13777 grub_serial_terminfo_output.
13778
13779 2010-11-05 Robert Millan <rmh@gnu.org>
13780
13781 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
13782 needed).
13783
13784 2010-11-05 Robert Millan <rmh@gnu.org>
13785
13786 On Yeeloong, pass machine type information to Linux.
13787
13788 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
13789 (LOONGSON_MACHTYPE): New macro, set to
13790 "machtype=lemote-yeeloong-2f-8.9inches".
13791 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
13792 additional argument to Linux.
13793
13794 2010-11-04 Robert Millan <rmh@gnu.org>
13795
13796 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
13797 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
13798 (its SATA disks are detected as slaveless IDE master drives on
13799 kFreeBSD).
13800 Reported by Carsten Aulbert.
13801
13802 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
13803
13804 * util/bin2h.c (main): Fix spelling error in generated output.
13805
13806 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
13807
13808 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
13809
13810 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13811
13812 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
13813 vga= option is supplied.
13814
13815 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
13818 * util/grub.d/10_kfreebsd.in: Likewise.
13819 * util/grub.d/10_linux.in: Likewise.
13820 * util/grub.d/20_linux_xen.in: Likewise.
13821
13822 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
13825 argument as an argument to no-argument option.
13826
13827 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * util/grub.d/10_linux.in: Add missing load_video with explicit
13830 GRUB_GFXPAYLOAD_LINUX.
13831
13832 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
13835
13836 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
13839 elements with invlid index.
13840 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13841 * grub-core/disk/raid.c (insert_array): Automatically reallocate
13842 members.
13843 * include/grub/raid.h (grub_raid_member): New struct.
13844 (grub_raid_array): Transform devices and start_sector into usage of
13845 grub_raid_member. All users updated
13846 (allocated_devs): New member.
13847
13848 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13849
13850 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
13851 is modified
13852
13853 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
13854
13855 NetBSD build fix for getline function conflict from gnulib.
13856
13857 * Makefile.util.def (libgrubkern.a): New library for grub kernel
13858 components that depend on gnulib headers.
13859 (libgrubmods.a): Renamed from earlier libgrub.a.
13860 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
13861
13862 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13863
13864 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
13865 install rather than creating a broken install.
13866
13867 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * util/grub-setup.c (argp): Remove misleading example of installing to
13870 a partition.
13871
13872 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * util/grub-setup.c (setup): Clarify the error message.
13875
13876 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
13879
13880 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13881
13882 * grub-core/kern/emu/misc.c
13883 (grub_make_system_path_relative_to_its_root)
13884 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
13885
13886 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13887
13888 * grub-core/kern/emu/misc.c
13889 (grub_make_system_path_relative_to_its_root): Revert r2882.
13890
13891 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
13894 useless field head. All users updated.
13895 (free_subchunk): Correct handling of IN_REGION subchunk.
13896
13897 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
13898
13899 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
13900 (Supported kernels): Likewise.
13901
13902 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
13903
13904 Make mktemp invocations portable.
13905
13906 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
13907 exit if mktemp fails.
13908 * tests/grub_script_blockarg.in: Likewise.
13909 * tests/partmap_test.in: Likewise.
13910 * tests/util/grub-shell-tester.in: Likewise.
13911 * tests/util/grub-shell.in: Likewise.
13912 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13913 * Makefile.am: Likewise, and chain shell commands with `&&'
13914 instead of ';'.
13915 * util/grub-mkrescue.in: Use the same explicit template as above, and
13916 exit if mktemp fails.
13917
13918 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
13919
13920 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
13921 Linux kernel, reported by Dennis Schridde.
13922
13923 2010-10-17 Szymon Janc <szymon@janc.net.pl>
13924
13925 * grub-core/normal/auth.c (grub_auth_check_authentication):
13926 Set-but-not-used variable removed.
13927
13928 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13929
13930 * docs/grub.texi (GNU/Linux): Document APM unavailability with
13931 32-bit linux protocol.
13932
13933 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13934
13935 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
13936 cursor shape for sanity.
13937
13938 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13939
13940 * docs/grub.texi (Installation): Document buggy BIOS install.
13941
13942 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * docs/grub.texi (Installation): Indent.
13945
13946 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 * util/grub-setup.c (setup): New parameter allow_floppy.
13949 (arguments): New member allow_floppy.
13950 (argp_parser): Handle --allow-floppy.
13951 (main): Pass allow_floppy.
13952 * util/grub-install.in: New option --allow-floppy passed though to
13953 grub-setup.
13954
13955 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13956
13957 * util/grub-install.in: Handle partitionless disks.
13958
13959 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * util/grub-setup.c (setup): Don't clean blocklists before readability
13962 verfification.
13963
13964 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * docs/grub.texi (Installation): Document embedding zone. Remove
13967 obsolete grub-install example.
13968
13969 2010-10-16 Szymon Janc <szymon@janc.net.pl>
13970
13971 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13972 Set-but-not-used variable ifdef'ed.
13973 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
13974 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
13975 variable removed.
13976 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
13977 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
13978 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13979 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
13980 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
13981 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13982 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
13983 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
13984 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
13985 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
13986 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
13987 Likewise.
13988
13989 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13990
13991 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
13992 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
13993 enum value.
13994
13995 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
13998 synonym to _S5_. Needed for some DSDTs.
13999
14000 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 Userspace ACPI parser debugging.
14003
14004 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14005 headers and add relevant defines. Don't include standard headers.
14006 (main) [GRUB_DSDT_TEST]: New function.
14007 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14008 Don't declare functions.
14009
14010 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 Remove dead grub_efi_mm_fini.
14013
14014 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14015 (ALLOCATED_PAGES_SIZE): Likewise.
14016 (MAX_ALLOCATED_PAGES): Likewise.
14017 (allocated_pages): Likewise.
14018 (grub_efi_allocate_pages): Don't record allocated pages.
14019 (grub_efi_free_pages): Likewise.
14020 (grub_efi_mm_init): Likewise.
14021 (grub_efi_mm_fini): Removed.
14022
14023 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14024
14025 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14026 (grub_efi_mm_init): Take into account the memory map size increase.
14027
14028 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14031 (serial_hw_put): Wait based on real time rather than port reads. Don't
14032 roken ports.
14033 * include/grub/serial.h (grub_serial_port): New field broken.
14034
14035 2010-10-16 Robert Millan <rmh@gnu.org>
14036
14037 * grub-core/kern/emu/misc.c
14038 (grub_make_system_path_relative_to_its_root): Fix premature return
14039 when processing non-root ZFS filesystems.
14040 Reported by Sergio Talens-Oliag.
14041
14042 2010-10-15 Robert Millan <rmh@gnu.org>
14043
14044 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14045 guarantee compressed ones are processed first.
14046
14047 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14048
14049 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14050 grub_efiemu_autocore.
14051
14052 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14055 rather than 0x1b.
14056 (grub_console_getkey): Use correct jae opcode rather than ja.
14057
14058 2010-10-12 Robert Millan <rmh@gnu.org>
14059
14060 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14061 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14062 variable. All references updated.
14063
14064 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14065
14066 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 Correctly distinguish mdraid flavours.
14069
14070 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14071 (insert_array): New argument raid.
14072 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14073 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14074 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14075
14076 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14079 handling of special keys.
14080
14081 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14082
14083 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14084 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14085
14086 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14087
14088 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14089 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14090 users updated.
14091 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14092 Use right endpoint when querying descriptor.
14093
14094 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 Clear out 0x80 color bit on EFI.
14097 Tested by: decoder
14098 Reported by: decoder and meta tech.
14099
14100 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14101 (grub_console_setcolorstate): Clear out 0x80 bit.
14102 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14103 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14104 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14105
14106 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14107
14108 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14109 Set to "auto".
14110
14111 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14112
14113 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14114 mo_file after freeing.
14115
14116 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14119
14120 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14123 flags.
14124
14125 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14128 usage.
14129
14130 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14133
14134 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14135 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14136 and terminfo.h when needed.
14137 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14138 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14139 (terminfo): Enable only on terminfokernel.
14140 (extcmd): Likewise.
14141 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14142 * include/grub/lib/arg.h: Likewise.
14143 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14144 incorrect usage of ->.
14145
14146 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14149 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14150
14151 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 Fix coreboot compilation.
14154
14155 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14156 Take VBE info into account even if only text is supported.
14157 (fill_vbe_info): Take into account the case when only VGA text
14158 is supported.
14159 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14160 on coreboot, multiboot and qemu.
14161
14162 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14165 debug messages.
14166 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14167
14168 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14171 parameters.
14172
14173 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14176 if they were BSD-style.
14177
14178 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 * grub-core/boot/i386/pc/lnxboot.S: Replace
14181 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14182 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14183
14184 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 Write embedding zone using Reed-Solomon.
14187
14188 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14189 * grub-core/Makefile.am (rs_decoder.S): New target.
14190 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14191 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14192 (multiboot): Move to RS part.
14193 (post_reed_solomon): New label.
14194 (grub_boot_drive): Move to non-RS part since it's modified in memory
14195 on boot.
14196 Include rs_decoder.S.
14197 * grub-core/lib/reed_solomon.c: New file.
14198 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14199 New definition.
14200 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14201 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14202 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14203 * include/grub/partition.h (grub_partition_map): Change prototype of
14204 embed to allow returning additional sectors.
14205 * include/grub/reed_solomon.h: New file.
14206 * util/grub-setup.c (setup): Handle Reed-Solomon.
14207
14208 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14209
14210 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14211 i386 and x86-64 definedness tests.
14212
14213 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14214
14215 Fix generation of kernel_syms.lst
14216
14217 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14218 ASM_PREFIX
14219
14220 2010-09-26 Robert Millan <rmh@gnu.org>
14221
14222 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14223
14224 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14225 the pool is an array of devices, iterate through it and return the
14226 first device that passes a stat() test (instead of blindly returning
14227 the first one).
14228
14229 2010-09-26 Robert Millan <rmh@gnu.org>
14230
14231 Build fixes for GNU/kFreeBSD.
14232
14233 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14234 to programs that require ZFS conversion.
14235 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14236 kernels that don't have FLOPPY_MAJOR.
14237
14238 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14239
14240 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14241
14242 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14243
14244 Fix grub-emu build.
14245
14246 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14247 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14248 mdraid09 and mdraid1x.
14249
14250 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14251
14252 Re-enable grub-extras.
14253
14254 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14255 avoid confusing Automake. Run autogen only twice, once for the top
14256 level and once for grub-core. Add Makefile.util.def and
14257 Makefile.core.def from extra modules to the appropriate autogen
14258 invocations. If Makefile.common exists in an extra module, include
14259 it in both Makefile.util.am and grub-core/Makefile.core.am;
14260 similarly, include any Makefile.util.common file in Makefile.util.am
14261 and any Makefile.core.common file in grub-core/Makefile.core.am.
14262 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14263 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14264 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14265 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
14266
14267 * gentpl.py (gvar_add): Turn GVARS into a set.
14268 (global_variable_initializers): Sort global variables on output.
14269 (vars_init): New function.
14270 (first_time): Likewise.
14271 (library): Ensure that non-global variable initialisations are
14272 emitted before the first time we emit code for a library block.
14273 Append to variables rather than setting them. Only emit
14274 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
14275 each conditional path.
14276 (program): installdir() emits an Autogen macro, so must be passed to
14277 var_add rather than gvar_add.
14278 (data): Likewise.
14279 (script): Likewise.
14280 (rules): New function, centralising handling for different target
14281 types. Set up Guile association lists for first_time and vars_init,
14282 and send most output to a diversion so that variable initialisations
14283 can be emitted first.
14284 (module_rules): Use new rules function.
14285 (kernel_rules): Likewise.
14286 (image_rules): Likewise.
14287 (library_rules): Likewise.
14288 (program_rules): Likewise.
14289 (script_rules): Likewise.
14290 (data_rules): Likewise.
14291
14292 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
14293
14294 * .bzrignore: Add contrib and grub-core/contrib. Remove
14295 grub-core/Makefile.gcry.am.
14296
14297 2010-09-24 Yves Blusseau <blusseau@zetam.org>
14298
14299 * grub-core/lib/LzFind.c: Add missing include.
14300 * grub-core/lib/LzmaEnc.c: Likewise.
14301 * grub-core/script/lexer.c: Likewise.
14302 * grub-core/script/yylex.l: Likewise.
14303 * util/grub-macho2img.c: Likewise.
14304 * util/grub-menulst2cfg.c: Likewise.
14305 * util/grub-mklayout.c: Likewise.
14306 * util/grub-mkpasswd-pbkdf2.c
14307 * util/grub-mkrelpath.c: Likewise.
14308 * util/resolve.c: Likewise.
14309
14310 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
14311
14312 * Makefile.util.def (example_unit_test): Add
14313 grub-core/gnulib/libgnu.a.
14314
14315 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
14316
14317 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
14318
14319 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14320
14321 Support xz compression on yeeloong.
14322
14323 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
14324 * configure.ac: Check for LZMA.
14325 * grub-core/Makefile.core.def (xz_decompress): New target.
14326 (none_decompress): Likewise.
14327 * grub-core/boot/decompressor/minilib.c: New file.
14328 * grub-core/boot/decompressor/none.c: Likewise.
14329 * grub-core/boot/decompressor/xz.c: Likewise.
14330 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
14331 * grub-core/kern/mips/cache_flush.S: Likewise.
14332 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
14333 * grub-core/kern/mips/startup.S: Move first stage to ...
14334 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
14335 nomacro.
14336 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
14337 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
14338 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
14339 Allocate statically.
14340 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
14341 Allocate statically or use scratch. Don't check CRC32.
14342 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
14343 Allocate statically. Don't check CRC32.
14344 * include/grub/decompressor.h: New file.
14345 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
14346 Removed.
14347 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
14348 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
14349 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
14350 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
14351 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
14352 * util/grub-mkimage.c (grub_compression_t): New type.
14353 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
14354 (image_target_desc): New field default_compression.
14355 (image_targets): Adjust yeeloong targets.
14356 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
14357 (compress_kernel): New parameter comp.
14358 (generate_image): Likewise. Handle new compression case.
14359 (options): New option --compression
14360 (help): Likewise.
14361 (main): Handle new option.
14362
14363 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
14364
14365 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
14366
14367 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
14368
14369 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14370 typo in __i386__ conditional.
14371
14372 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
14375 include.
14376
14377 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 Implement EFI and ACPI multiboot2 extensions.
14380
14381 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
14382 new tags as supported.
14383 (acpiv2_size): New function.
14384 (grub_multiboot_get_mbi_size): Take new tags into account.
14385 (grub_multiboot_make_mbi): Add new tags.
14386 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
14387
14388 2010-09-21 Aleš Nesrsta <starous@volny.cz>
14389
14390 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
14391 Added missing configuration of USB device.
14392
14393 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14394
14395 * grub-core/normal/menu_entry.c (run): Make sure we always return
14396 a value.
14397
14398 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14399
14400 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
14401 NumberOfPages is UINT64 according to the UEFI specification, not
14402 UINTN. Fix printf format.
14403
14404 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14405
14406 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
14407 `err' to grub_usb_err_t.
14408 Reported and tested by: KESHAV P.R.
14409
14410 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14411
14412 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
14413 tpart non-const, so that we can assign to it. (Since this is a
14414 typedef, the constness refers to the pointer rather than what it
14415 points to.)
14416
14417 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14418
14419 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
14420 $(top_srcdir)/grub-core/gnulib as well as
14421 $(top_builddir)/grub-core/gnulib.
14422 Reported by: KESHAV P.R.
14423
14424 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14425
14426 * util/grub-install.in: Fix the bootloader ID option to be
14427 consistently --bootloader-id, not --bootloader_id.
14428 Reported by: KESHAV P.R.
14429
14430 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14431
14432 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
14433 check hash checksum." consistently translatable.
14434
14435 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14436
14437 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
14438 $(top_builddir).
14439
14440 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14441
14442 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
14443 (GRUB_MOD_INIT): Register sha1sum command.
14444 (GRUB_MOD_FINI): Unregister sha1sum command.
14445
14446 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14447
14448 Keep boot and grub directory names in sync with utils scripts
14449
14450 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
14451 * config.h.in: Add previous macros.
14452 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
14453 * util/grub-install.in: Use $bootdir and $grubdir variables.
14454
14455 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14456
14457 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
14458 convert partition names to disk names if the new `convert' parameter
14459 is set.
14460 (grub_util_biosdisk_get_grub_dev): If opening the disk device
14461 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
14462 disk in its own right. This can happen with Xen disk images.
14463
14464 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14465
14466 * util/grub-editenv.c: Update strings to avoid warnings when generating
14467 grub.pot file.
14468 * util/grub-setup.c: Likewise.
14469
14470 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14471
14472 * configure.ac: Change version to 1.99~beta0.
14473
14474 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14475
14476 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14477 Add BADRAM.
14478 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
14479 Likewise.
14480 * include/multiboot.h: Resynced with specification.
14481 * include/multiboot2.h: Likewise.
14482
14483 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14484
14485 Fix po directory handling.
14486
14487 * configure.ac: Create po/Makefile.in rather than po/Makefile.
14488 * grub-core/gnulib/Makefile.am: Import gettext module.
14489 * m4/gnulib-cache.m4: Likewise.
14490 * m4/gnulib-comp.m4: Likewise.
14491 * m4/gettext.m4: New file, from gnulib.
14492 * m4/glibc2.m4: Likewise.
14493 * m4/iconv.m4: Likewise.
14494 * m4/intdiv0.m4: Likewise.
14495 * m4/intl.m4: Likewise.
14496 * m4/intldir.m4: Likewise.
14497 * m4/intlmacosx.m4: Likewise.
14498 * m4/intmax.m4: Likewise.
14499 * m4/inttypes-pri.m4: Likewise.
14500 * m4/lcmessage.m4: Likewise.
14501 * m4/lib-ld.m4: Likewise.
14502 * m4/lib-link.m4: Likewise.
14503 * m4/lib-prefix.m4: Likewise.
14504 * m4/lock.m4: Likewise.
14505 * m4/nls.m4: Likewise.
14506 * m4/po.m4: Likewise.
14507 * m4/printf-posix.m4: Likewise.
14508 * m4/progtest.m4: Likewise.
14509 * m4/threadlib.m4: Likewise.
14510 * m4/uintmax_t.m4: Likewise.
14511 * m4/visibility.m4: Likewise.
14512 * po/Makefile.am: Remove.
14513 * po/Makefile.in.in: New file, from gettext.
14514 ($(DOMAIN).pot-update): Support POTFILES-shell.
14515 * po/Makevars: New file.
14516 * po/POTFILES-shell: Rename to ...
14517 * po/POTFILES-shell.in: ... this. Update.
14518 * po/POTFILES: Rename to ...
14519 * po/POTFILES.in: ... this. Update.
14520 * po/Rules-quot: New file, from gettext.
14521 * po/boldquot.sed: Likewise.
14522 * po/en@boldquot.header: Likewise.
14523 * po/en@quot.header: Likewise.
14524 * po/insert-header.sin: Likewise.
14525 * po/quot.sed: Likewise.
14526 * po/remove-potcdate.sin: Likewise.
14527
14528 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14529
14530 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
14531
14532 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 * util/grub.d/20_linux_xen.in: Use submenus.
14535
14536 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 Support submenus.
14539
14540 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
14541 parameter submenu. All users updated.
14542 * grub-core/normal/main.c (free_menu): Rename to ...
14543 (grub_normal_free_menu): ... this. Made global.
14544 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
14545 if requested.
14546 * grub-core/normal/menu_entry.c (screen): New field submenu.
14547 (make_screen): Set submenu.
14548 (run): Open new context if requested.
14549 * include/grub/menu.h (grub_menu_entry): New field submenu.
14550 * include/grub/normal.h (grub_normal_free_menu): New proto.
14551
14552 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 Menu entries extractor.
14555
14556 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
14557 variants.
14558 (GRUB_MOD_INIT): Register new variants.
14559 (GRUB_MOD_FINI): Unregister new variants.
14560 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
14561 into grub_cmd_legacy_source.
14562 (grub_cmd_legacy_source): Implement extractor variants.
14563 (GRUB_MOD_INIT): Register new variants.
14564 (GRUB_MOD_FINI): Unregister new variants.
14565 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
14566 as an extractor.
14567 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
14568 search as an extractor.
14569 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
14570 test as an extractor.
14571 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
14572 as an extractor.
14573 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
14574 (grub_env_new_context): New function.
14575 (grub_env_context_open): Likewise.
14576 (grub_env_extractor_open): Likewise.
14577 (grub_env_extractor_close): Likewise.
14578 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
14579 grub_extractor_level.
14580 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
14581 * include/grub/env.h (grub_env_extractor_open): New proto.
14582 (grub_env_extractor_close): Likewise.
14583 * include/grub/normal.h (grub_extractor_level): New external variable.
14584
14585 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 Make cutmem accept a region specification.
14588 Suggested by: Samuel Thibault
14589
14590 * grub-core/mmap/mmap.c (parsemem): New function.
14591 (grub_cmd_cutmem): Handle new arguments.
14592
14593 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 New command cutmem.
14596
14597 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
14598 (GRUB_MOD_INIT): Register new command.
14599 (GRUB_MOD_FINI): Unregister new command.
14600
14601 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 Support some annoying BSD and Minix subpartitions.
14604
14605 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
14606 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
14607 Properly handle concatenation.
14608 * grub-core/kern/device.c (grub_device_iterate): Likewise.
14609 * grub-core/normal/completion.c (iterate_partition): Likewise.
14610 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
14611 contain partition. All users updated.
14612 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
14613 struct.
14614 (grub_openbsdlabel_partition_map): Likewise.
14615 (bsdlabel_partition_map_iterate): Rename to ..
14616 (iterate_real): ... this. New arguments sector, freebsd and pmap.
14617 (bsdlabel_partition_map_iterate): New function.
14618 (netopenbsdlabel_partition_map_iterate): Likewise.
14619 (netbsdlabel_partition_map_iterate): Likewise.
14620 (openbsdlabel_partition_map_iterate): Likewise.
14621 (GRUB_MOD_INIT): Register new partmaps.
14622 (GRUB_MOD_FINI): Unregister new partmaps.
14623 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
14624 (grub_partition_msdos_iterate): ... this. All users updated.
14625 Don't support embedding other than in a minix partition.
14626 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
14627 proto.
14628 * include/grub/partition.h (grub_partition): New field msdostype.
14629 * util/grub-install.in: Handle openbsd and netbsd types being in
14630 part_bsd module.
14631
14632 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14633
14634 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
14635
14636 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
14637 * grub-core/Makefile.core.def (mdraid): Renamed to ...
14638 (mdraid09): ... this.
14639 (mdraid1x): New module.
14640 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
14641 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
14642
14643 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14644
14645 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
14646 vsprintf.
14647
14648 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14649
14650 * grub-core/commands/efi/lsefimmap.c: Correct header.
14651 * NEWS: Update.
14652
14653 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14654
14655 * util/grub-editenv.c (argp_parser): Don't pass translated strings
14656 as printf format strings; the translations might contain '%' which
14657 could cause a crash.
14658 (main): Likewise.
14659 * util/grub-fstest.c (argp_parser): Likewise.
14660 * util/grub-setup.c (argp_parser): Likewise.
14661 (main): Likewise.
14662
14663 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 Use argp in grub-fstest.
14666
14667 * util/grub-fstest.c: Don't include getopt.h.
14668 Include argp.h.
14669 (root): New variable.
14670 (args_count): Likewise.
14671 (nparm): Likewise.
14672 (num_disks): Likewise.
14673 (images): Likewise.
14674 (cmd): Likewise.
14675 (debug_str): Likewise.
14676 (args): Likewise.
14677 (options): Transformed to argp.
14678 (usage): Removed.
14679 (main): Split argument parsing into ...
14680 (argp_parser): ... this. Changed to argp format.
14681 (argp): New variable.
14682 (main): Use argp_parse.
14683
14684 2010-09-20 Tristan Gingold <gingold@free.fr>
14685 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
14686 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * grub-core/commands/efi/lsefimmap.c: New file.
14689 * grub-core/Makefile.core.def (lsefimmap): New module.
14690 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
14691
14692 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 Pause the execution (10s max) if any errors are displayed so the user
14695 has a chance to see them.
14696
14697 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
14698 (grub_print_error): Increment grub_err_printed_errors.
14699 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
14700 execution if any errors were displayed.
14701 (show_menu): Remove old code for pause.
14702 * grub-core/normal/menu_entry.c (run): Likewise.
14703 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
14704 users updated.
14705 (grub_normal_get_char_counter): Likewise.
14706 * include/grub/err.h (grub_err_printed_errors): New external variable.
14707 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
14708
14709 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 Support multiboot VBE info.
14712
14713 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14714 Take VBE info into account.
14715 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
14716 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
14717 Call fill_vbe_info when appropriate.
14718 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
14719 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
14720 as supported.
14721 (grub_multiboot_get_mbi_size): Take new tags into account.
14722 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
14723 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
14724 Call fill_vbe_tag when appropriate.
14725 (grub_multiboot_make_mbi): Properly align tags.
14726 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
14727 function.
14728 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
14729 proto.
14730 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
14731
14732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 Suport manual terminal geometry specification.
14735
14736 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
14737 Save state in grub_ofconsole_terminfo_output.
14738 (grub_ofconsole_term): Use grub_terminfo_getwh.
14739 (grub_ofconsole_getwh): Removed.
14740 * grub-core/term/serial.c (grub_serial_getwh): Removed.
14741 (grub_serial_term): Use grub_terminfo_getwh.
14742 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
14743 (options): New struct.
14744 (OPTION_*): New enum.
14745 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
14746 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
14747 width and height.
14748 (grub_terminfo_getwh): New proto.
14749 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
14750
14751 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 Handle legacy "terminal" command.
14754
14755 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
14756 and FLAG_TERMINAL.
14757 (legacy_commands): Add terminal and title.
14758 (grub_legacy_parse): Handle terminal. Simplify title handling.
14759
14760 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
14763 parameters overflow.
14764
14765 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14766
14767 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
14768 widthspec.h.
14769
14770 * docs/grub.texi (Shell-like scripting): Document `!'.
14771 (Network): Simplify using new i386-pc-pxe format. Mention
14772 grub-mknetdir.
14773
14774 * NEWS: Update.
14775
14776 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14777
14778 * Makefile.am (SUBDIRS): Restore "."; it's important to force
14779 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
14780 when needed.
14781
14782 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14783
14784 * grub-core/commands/efi/lsefisystab.c: Correct header.
14785 * grub-core/commands/efi/lssal.c: Likewise.
14786 * grub-core/commands/testload.c: Likewise.
14787
14788 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14789
14790 * util/grub-mkrescue.in: Add explicit root argument to --set to
14791 prevent the UUID being interpreted as an argument to --set (matches
14792 previous change to prepare_grub_to_access_device).
14793
14794 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14795
14796 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
14797 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
14798 the verbosity of later #ifs.
14799 (find_partition_start): Define this function on FreeBSD too.
14800 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
14801 function.
14802 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
14803 on FreeBSD.
14804
14805 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14806
14807 * util/grub-editenv.c: Use argp instead of getopt.
14808
14809 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14810
14811 * util/grub-setup.c: Use argp instead of getopt.
14812
14813 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14814
14815 Use gnulib-tool to create gnulib source files.
14816
14817 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
14818 grub-core/gnulib directories
14819 * .bzignore: Add **/.deps and autogenerated gnulib files
14820 * configure.ac: Assign auxiliary directory to build-aux, add invocation
14821 of gnulib macros, add grub-core/gnulib/Makefile
14822 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
14823 include m4 directory to aclocal.
14824 * Makefile.util.def: Remove direct compilation of gnulib source files
14825 and use the new grub-core/gnulib/libgnu.a.
14826 * build-aux/config.rpath: move config.rpath from top directory to
14827 build-aux
14828 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
14829 in gnulib headers
14830 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
14831 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
14832 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
14833 header.
14834 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
14835 string.
14836
14837 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14838
14839 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
14840 grub-core/genmod.sh and grub-core/gensyminfo.sh
14841
14842 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
14843
14844 Add a test for echo command options.
14845
14846 * tests/grub_cmd_echo.in: New test.
14847 * Makefile.util.def: Rules for new test.
14848
14849 2010-09-20 Szymon Janc <szymon@janc.net.pl>
14850
14851 Remove crc.mod and move crc command to hashsum.mod.
14852 Remove lib/crc.c - users updated to use gcrypt implementation.
14853
14854 * grub-core/commands/crc.c: Removed.
14855 * grub-core/Makefile.core.def (crc): Module removed.
14856 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
14857 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
14858 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
14859 * grub-core/lib/crc.c: Removed.
14860 * include/grub/lib/crc.h: Removed.
14861 * Makefile.util.def (crc): Remove lib/crc.c
14862 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
14863 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
14864 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
14865 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
14866 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
14867 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
14868
14869 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
14872
14873 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 Split config.h for util and core.
14876
14877 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
14878 (ADDR32): Likewise.
14879 (DATA32): Likewise.
14880 (BSS_START_SYMBOL): Likewise.
14881 (END_SYMBOL): Likewise.
14882 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
14883 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
14884 * config.h.in: New file.
14885 * configure.ac: Use config-util.h as config define file.
14886 Rename MACHINE into GRUB_MACHINE. All users updated.
14887 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
14888 updated.
14889 (NESTED_FUNC_ATTR): Likewise.
14890 Substitue new variables.
14891 (COND_HAVE_ASM_USCORE): New conditional.
14892 * grub-core/Makefile.am (ASM_PREFIX): New variable.
14893 (kernel_syms.lst): Use ASM_PREFIX.
14894 * grub-core/kern/emu/console.c: Include config-util.h.
14895 * grub-core/kern/emu/misc.c: Likewise.
14896 * grub-core/kern/emu/mm.c: Likewise.
14897 * include/grub/emu/misc.h: Likewise.
14898 * include/grub/libgcc.h: Likewise.
14899
14900 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
14903 constants usage.
14904 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
14905 Fix GRUB_TERM_KEY_* constants usage.
14906 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
14907
14908 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14909
14910 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
14911 print pointer.
14912 * grub-core/bus/usb/uhci.c: Remove empty define.
14913 (grub_uhci_check_transfer): Add missing cast.
14914 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
14915 print pointer.
14916 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
14917 PRIuGRUB_SIZE.
14918 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
14919
14920 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * grub-core/Makefile.core.def (legacycfg): Add
14923 lib/i386/pc/vesa_modes_table.c on emu.
14924
14925 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
14926
14927 Reduce number of temporary files generated by build system.
14928
14929 * grub-core/gencmdlist.sh: Removed.
14930 * grub-core/genfslist.sh: Removed.
14931 * grub-core/genhandlerlist.sh: Removed.
14932 * grub-core/genmodsrc.sh: Removed.
14933 * grub-core/genpartmaplist.sh: Removed.
14934 * grub-core/genparttoollist.sh: Removed.
14935 * grub-core/gentermiinallist.sh: Removed.
14936 * grub-core/genvideolist.sh: Removed.
14937
14938 * grub-core/genmod.sh.in: New file.
14939 * grub-core/gensyminfo.sh.in: New file.
14940
14941 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
14942 * conf/Makefile.extra-dist: Update with new files.
14943 * gentpl.py: Remove rules related to unnecessary temporary files.
14944 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
14945 and und-* files.
14946 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
14947 genmod.sh scripts.
14948 * grub-core/bus/usb/uhci.c: Remove empty #define.
14949 * grub-core/genmoddep.awk: Updated with new syminfo format.
14950 * util/bash-completion.d/Makefile.am: Add config.log to
14951 CLEANFILES.
14952
14953 2010-09-19 Yves Blusseau <blusseau@zetam.org>
14954
14955 * Makefile.util.def: Add forgotten $(LIBINTL) library.
14956
14957 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
14958
14959 * util/grub-mkconfig.in: Check the config script for syntax errors
14960 before saving.
14961
14962 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
14963 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * Makefile.util.def (grub-install): Use util/grub-install.in on all
14966 platforms.
14967 * util/grub-install.in: Add EFI and IEEE1275 support.
14968 * util/i386/efi/grub-install.in: Removed.
14969 * util/ieee1275/grub-install.in: Likewise.
14970
14971 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
14974 (grub_cmd_cmosclean): Likewise.
14975 (GRUB_MOD_INIT): Register command cmosclean.
14976 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
14977 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
14978
14979 2010-09-18 Carles Pina i Estany <carles@pina.cat>
14980 2010-09-18 Aleš Nesrsta <starous@volny.cz>
14981 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 Add keyboard layouts support.
14984
14985 * Makefile.util.def (grub-mklayout): New file.
14986 (grub-kbdcomp): New script.
14987 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
14988 Add keyboard_layouts.h.
14989 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
14990 commands/boot.c on yeeloong.
14991 (keylayouts): New module.
14992 * grub-core/bus/usb/ohci.c
14993 * grub-core/bus/usb/uhci.c
14994 * grub-core/bus/usb/usbhub.c (rescan): New variable.
14995 (grub_usb_add_hub): Poll interrupt pipe for device handling.
14996 (attach_root_port): Likewise.
14997 (poll_nonroot_hub): Likewise.
14998 (grub_usb_poll_devices): Likewise.
14999 (detach_device): Close transfer.
15000 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15001 function.
15002 (grub_usb_bulk_setup_readwrite): Likewise.
15003 (grub_usb_bulk_finish_readwrite): Likewise.
15004 * grub-core/commands/keylayouts.c: New file.
15005 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15006 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15007 aliases.
15008 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15009 support scancode 2.
15010 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15011 * include/grub/keyboard_layouts.h: New file.
15012 * util/grub-mklayout.c: New file.
15013 * util/grub-kbdcomp.in: Likewise.
15014
15015 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 Unify memory types.
15018
15019 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15020 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15021 types.
15022 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15023 (grub_upper_mem): Likewise.
15024 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15025 * include/grub/memory.h (grub_memory_type_t): New enum.
15026 All users updated.
15027
15028 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15029
15030 * grub-core/Makefile.core.def (lsapm): New module.
15031 * grub-core/commands/i386/pc/lsapm.c: New file.
15032 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15033 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15034 Likewise.
15035 * include/grub/i386/pc/apm.h: New file.
15036 * include/multiboot.h (multiboot_apm_info): New struct.
15037
15038 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 GRUB-legacy configuration file support.
15041
15042 * Makefile.util.def (grub-menulst2cfg): New util.
15043 * docs/man/grub-menulst2cfg.h2m: New file.
15044 * grub-core/Makefile.core.def (legacycfg): New module.
15045 * grub-core/commands/legacycfg.c: New file.
15046 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15047 (grub_normal_add_menu_entry): ... this.
15048 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15049 (grub_normal_set_password): ...this.
15050 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15051 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15052 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15053 * grub-core/lib/legacy_parse.c: New file.
15054 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15055 * include/grub/i386/pc/vesa_modes_table.h: New file.
15056 * include/grub/legacy_parse.h: Likewise.
15057 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15058 * util/grub-menulst2cfg.c: New file.
15059
15060 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15061
15062 * grub-core/kern/emu/hostdisk.c
15063 (convert_system_partition_to_system_disk): Initialise node.
15064
15065 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15066
15067 * grub-core/kern/emu/hostdisk.c
15068 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15069 leak.
15070 Reported and based on patch by: Modestas Vainius.
15071
15072 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15073
15074 Fix DM-RAID probing with recent versions of device-mapper udev
15075 rules.
15076
15077 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15078 canonicalise device paths under /dev/mapper/.
15079 (convert_system_partition_to_system_disk): Compare the
15080 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15081 path, since device nodes under /dev/mapper/ are often symlinks.
15082
15083 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15084
15085 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15086
15087 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15088
15089 * configure.ac: Avoid some annoying error messages if freetype-config
15090 program is not found.
15091
15092 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15093
15094 Support RAID on virtio devices, and others.
15095
15096 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15097 Rename to ...
15098 [__MINGW32__] (grub_find_device): ... this.
15099 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15100 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15101 reasonable default if dir is NULL.
15102 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15103 ...
15104 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15105 (grub_guess_root_device): Update callers.
15106 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15107
15108 * util/raid.c (grub_util_getdiskname): Remove.
15109 (grub_util_raid_getmembers): Use grub_find_device rather than
15110 grub_util_getdiskname.
15111
15112 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15113
15114 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15115 needing to be compiled with serial support.
15116 (ls): Indicate that multiple files are accepted.
15117 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15118 indicate that multiple files are accepted.
15119
15120 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15121
15122 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15123 libgrub_a_init.c, and util/bash-completion.d/grub.
15124
15125 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15126
15127 * util/grub-setup.c (setup): Fix incorrect container semantics.
15128
15129 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15132 misusage.
15133 Reported by: J. Nick Terry
15134
15135 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15136
15137 Move embedding routines to partmap sources files.
15138
15139 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15140 [GRUB_UTIL]: New variable.
15141 (gpt_partition_map_iterate): Set part.parent.
15142 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15143 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15144 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15145 New function.
15146 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15147 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15148 (grub_partition_map) [GRUB_UTIL]: New field embed.
15149 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15150 (setup): Use ->embed.
15151
15152 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15153
15154 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15155 function.
15156 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15157 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15158
15159 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15160
15161 Add function to get completions from usage.
15162
15163 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15164 completions from usage. Use LC_ALL=C to get options properly.
15165
15166 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/gnulib/basename-lgpl.c: Imported.
15169 * grub-core/gnulib/basename.c: Likewise.
15170 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15171 * grub-core/gnulib/dirname.c: Likewise.
15172 * grub-core/gnulib/dirname.h: Likewise.
15173 * grub-core/gnulib/stripslash.c: Likewise.
15174
15175 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15176
15177 * grub-core/gnulib/error.c: Resynced.
15178 * grub-core/gnulib/getopt.c: Likewise.
15179 * grub-core/gnulib/getopt_int.h: Likewise.
15180 * grub-core/gnulib/regex.h: Likewise.
15181 * grub-core/gnulib/regex_internal.c: Likewise.
15182 * grub-core/gnulib/regex_internal.h: Likewise.
15183
15184 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15185
15186 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15187 CRC calculations and validity checks.
15188 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15189 calculations.
15190
15191 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15192
15193 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15194
15195 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 Fix incorrect echo options handling.
15198 Reported by: Yves Blusseau.
15199
15200 * include/grub/command.h (grub_command_flags_t): New flags
15201 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15202 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15203 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15204
15205 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15206
15207 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15208 users updated.
15209 (GRUB_COMMAND_FLAG_MENU): Likewise.
15210 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15211 (GRUB_COMMAND_FLAG_TITLE): Removed.
15212 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15213 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15214 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15215 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15216 (grub_command_flags_t): New enum. All users updated.
15217
15218 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15219
15220 Fix solaris compilation.
15221
15222 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15223 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15224 (grub-emu-list): Likewise.
15225
15226 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15227
15228 Remove deprecated root command.
15229
15230 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15231 updated.
15232
15233 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * util/i386/pc/grub-setup.c: Merge this ...
15236 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15237 * util/grub-setup.c: ... into this.
15238 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15239 New struct.
15240
15241 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15244 possible.
15245
15246 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15249 allocate p.
15250
15251 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15254 explicit root argument to set to prevent UUID to be interpreted as
15255 argument to set.
15256
15257 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15260
15261 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 Don't export grub_gate_a20.
15264
15265 * grub-core/kern/i386/pc/init.c: Remove leftovers.
15266 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
15267 to ...
15268 (grub_gate_a20): ... this. All users updated.
15269 * include/grub/i386/pc/init.h: Removed. All users updated.
15270
15271 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15272
15273 Create euro.pf2 which supports most European languages.
15274
15275 * Makefile.am (grubdata_DATA): Add euro.pf2.
15276 (euro.pf2): New target.
15277 (CLEANFILES): Add euro.pf2.
15278
15279 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 * configure.ac: Disable emu-usb by default to prevent inadvertent
15282 device takeover.
15283
15284 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15285
15286 Disable usbserial on grub-emu since our libusb code isn't good enough
15287 yet.
15288
15289 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
15290 (usbserial_pl2303): Likewise.
15291 (usbserial_ftdi): Likewise.
15292
15293 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * include/grub/disk.h (grub_disk): Remove has_partitions.
15296 All users updated.
15297 * disk/loopback.c (grub_loopback): Remove has_partitions.
15298 All users updated.
15299 (options): Remove partitions. All users updated.
15300 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
15301 * util/i386/pc/grub-setup.c (setup): copy partition table only when
15302 actual partition table is found.
15303
15304 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15305
15306 Remove readability checks (too many false negatives).
15307
15308 * util/grub-install.in: Remove readability checks.
15309 * util/grub-mkconfig.in: Likewise.
15310 * util/grub.d/10_hurd.in: Likewise.
15311 * util/grub.d/10_kfreebsd.in: Likewise.
15312 * util/grub.d/10_linux.in: Likewise.
15313 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
15314 way.
15315
15316 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15317
15318 Enable acpi shutdown on all ACPI platforms.
15319
15320 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
15321 on coreboo, multiboot and EFI.
15322 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
15323 (grub_acpi_halt): Likewise.
15324 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
15325 (grub_cmd_halt): Don't call grub_acpi_halt directly.
15326 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
15327 * grub-core/lib/i386/halt.c (grub_halt)
15328 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
15329
15330 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15331
15332 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
15333 context.
15334
15335 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15336
15337 * grub-core/video/efi_gop.c: Fix over-80-chars line.
15338 * grub-core/video/efi_uga.c: Likewise.
15339
15340 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 Filter devaliases and never open same device twice.
15343
15344 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
15345 (last_ihandle): Likewise.
15346 (ofdisk_hash_ent): New member shortest.
15347 (ofdisk_hash_add): Add canonical path too.
15348 (scan): New function.
15349 (grub_ofdisk_iterate): Iterate over hashed entries.
15350 (compute_dev_path): Don't add :0.
15351 (grub_ofdisk_open): Don't really open the disk.
15352 (grub_ofdisk_close): Avoid closing unrelated disk.
15353 (grub_ofdisk_read): Implement reopen logic.
15354 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
15355 New function.
15356 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
15357 New proto.
15358
15359 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15360
15361 Fix sparc64.
15362
15363 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
15364 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
15365 right address. Add sparc64_ieee1275_ldflags.
15366 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
15367 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
15368 to grub_host_to_target_addr
15369 (load_image): Likewise.
15370
15371 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15372
15373 * grub-core/normal/completion.c (complete_file): Handle device
15374 containing slash.
15375 Fix based on patch by Doug Nazar.
15376
15377 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15378
15379 grub-mknetdir script.
15380
15381 * Makefile.util.def (grub-mknetdir): New module.
15382 * tests/util/grub-shell.in: Support boot=net
15383 * util/grub-mknetdir.in: New file.
15384
15385 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15386
15387 videoinfo on non-vbe.
15388
15389 * grub-core/Makefile.core.def (vbeinfo): Removed.
15390 (vbetest): Removed.
15391 (videoinfo): New module.
15392 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
15393 * grub-core/commands/i386/pc/vbetest.c: Removed.
15394 * grub-core/commands/videoinfo.c: New file.
15395 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
15396 specification.
15397 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
15398 as vbetest.
15399 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
15400 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
15401 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
15402 mode_number. New parameter mode. All users updated.
15403 (grub_video_gop_iterate): New function.
15404 (grub_video_efi_gop): New member iterate.
15405 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
15406 (grub_vbe_set_video_mode): Remove setting useless fields.
15407 (vbe2videoinfo): New function.
15408 (grub_video_vbe_iterate): Likewise.
15409 (grub_video_vbe_setup): Use vbe2videoinfo.
15410 (grub_video_vbe_print_adapter_specific_info): New function.
15411 (grub_video_vbe_adapter): New fields iterate and
15412 print_adapter_specific_info.
15413 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
15414 All users updated.
15415 (grub_video_mode_info): New field mode_number.
15416 (grub_video_adapter): New fields iterate and
15417 print_adapter_specific_info.
15418
15419 2010-09-13 Tristan Gingold <gingold@free.fr>
15420 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
15421 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * grub-core/commands/efi/lsefisystab.c: New file.
15424 * grub-core/commands/efi/lssal.c: Likewise.
15425 * grub-core/Makefile.core.def (lsacpi): New module.
15426 (lsefisystab): Likewise.
15427 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
15428 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
15429 (grub_efi_sal_system_table): New struct.
15430 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
15431 (grub_efi_sal_system_table_memory_descriptor): Likewise.
15432 (grub_efi_sal_system_table_platform_features): Likewise.
15433 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
15434 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
15435 (grub_efi_sal_system_table_ap_wakeup): Likewise.
15436 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
15437
15438 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15439
15440 Support explicit user claim that a device is BIOS-visible.
15441
15442 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
15443 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
15444 * grub-core/kern/emu/hostdisk.c
15445 (convert_system_partition_to_system_disk): Support mdX.
15446 (find_system_device): New parameter add. All users updated.
15447 (grub_util_biosdisk_is_present): New function.
15448 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
15449 proto.
15450
15451 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15452
15453 Search hints support.
15454
15455 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
15456 All users updated.
15457
15458 2010-09-13 Yves Blusseau <blusseau@zetam.org>
15459
15460 Bash completion script for util commands
15461
15462 * Makefile.am: Add util/bash-completion.d directory
15463 * configure.ac: Likewise.
15464 * util/bash-completion.d/Makefile.am: New file.
15465 * util/bash-completion.d/grub-completion.bash.in: Likewise.
15466
15467 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
15470 (print_backlog): set backlog_ucs4 and backlog_glyphs.
15471 Reported by: Yves Blusseau.
15472
15473 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
15476 partition size and offset.
15477
15478 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
15481
15482 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
15485
15486 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
15489 (grub_xvasprintf): Likewise.
15490
15491 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
15494
15495 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15496
15497 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
15498 args ending with NULL.
15499
15500 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15501
15502 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
15503 pointer.
15504
15505 2010-09-11 Szymon Janc <szymon@janc.net.pl>
15506
15507 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
15508
15509 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15510
15511 Shutdown using ACPI.
15512
15513 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
15514 * grub-core/commands/acpihalt.c: New file.
15515 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
15516 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
15517 (grub_acpi_halt): New proto.
15518 (GRUB_ACPI_SLP_EN): New const.
15519 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
15520 (GRUB_ACPI_OPCODE_*): New enum.
15521 (GRUB_ACPI_EXTOPCODE_*): Likewise.
15522
15523 2010-09-11 Tristan Gingold <gingold@free.fr>
15524 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
15525 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * commands/lsacpi.c: New file.
15528 * grub-core/Makefile.core.def (lsacpi): New module.
15529 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
15530 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
15531 (grub_acpi_madt_entry_header): New struct.
15532 (grub_acpi_madt): Likewise.
15533 (grub_acpi_madt_entry_interrupt_override): Likewise.
15534 (grub_acpi_madt_entry_sapic): Likewise.
15535 (grub_acpi_madt_entry_lsapic): Likewise.
15536 (grub_acpi_madt_entry_platform_int_source): Likewise.
15537 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
15538 (PRIuGRUB_UINT32_T): Likewise.
15539 (PRIxGRUB_UINT64_T): Likewise.
15540
15541 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 Implement loading palette on ieee1275_fb.
15544
15545 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
15546 (have_setcolors): Likewise.
15547 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
15548 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
15549 (grub_video_ieee1275_set_palette): Implement.
15550
15551 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15552 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
15553
15554 * util/grub-install.in (grub_partition): New variable.
15555 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
15556 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
15557 Fixes a bug reported by Yves Blusseau.
15558
15559 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 Fix emu on mipsel.
15562
15563 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
15564 =grub_cpu_flush_cache on all mips and not only yeeloong.
15565 * configure.ac (COND_mips): New conditional.
15566 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
15567 platforms.
15568 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
15569 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
15570 [GRUB_LINKER_HAVE_INIT]: New function.
15571 (grub_emu_post_init): Likewise.
15572 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
15573 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
15574 * include/grub/cache.h (_mips): Include mips/cache.h.
15575 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
15576 LVM and RAID prototypes.
15577 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
15578 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
15579 function.
15580
15581 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15582
15583 * util/grub-install.in: Don't try to verify core.img until after
15584 running grub-mkimage to create it.
15585
15586 2010-09-10 Robert Millan <rmh@gnu.org>
15587
15588 * util/grub.d/10_hurd.in: Add misc readability checks.
15589 * util/grub.d/10_kfreebsd.in: Likewise.
15590 * util/grub.d/10_linux.in: Likewise.
15591
15592 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15593
15594 * util/grub-install.in: ${imgext} won't be defined here until the
15595 install branch is merged. For the meantime, only verify core.img on
15596 i386-pc and sparc64-ieee1275 platforms.
15597
15598 2010-09-10 Robert Millan <rmh@gnu.org>
15599
15600 Solaris support in grub_find_zpool_from_dir(). Thanks
15601 Seth Goldberg for referring to getextmntent() facility.
15602
15603 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
15604 `sys/mkdev.h'.
15605 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
15606 `<sys/mnttab.h>'.
15607 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
15608 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
15609 method for finding zpool name.
15610
15611 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15612
15613 grub-fstest needs the host and hostfs modules while other utilities
15614 actively require those modules to be absent, so grub-fstest needs
15615 its own initialisation and finalisation code.
15616
15617 * Makefile.am (grub_fstest.pp): New target.
15618 (grub_fstest_init.lst): Likewise.
15619 (grub_fstest_init.c): Likewise.
15620 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
15621
15622 2010-09-10 Robert Millan <rmh@gnu.org>
15623
15624 * configure.ac: Check for `struct statfs.f_fstypename' and
15625 `struct statfs.f_mntfromname'.
15626
15627 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
15628 kFreeBSD-specific code.
15629
15630 2010-09-10 Robert Millan <rmh@gnu.org>
15631
15632 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
15633 on ZFS. Now non-main filesystems are supported as / too.
15634
15635 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
15636
15637 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
15638 and grub-core/disk/host.c to ...
15639 (grub-fstest): ... here. Having the host disk implementation
15640 present confuses grub-probe and other utility programs.
15641
15642 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
15643 when writing to a file, not when writing to stdout.
15644
15645 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
15646
15647 * tests/partmap_test.in: New test for partitions.
15648 * Makefile.util.def: Rules for new test.
15649
15650 2010-09-09 Robert Millan <rmh@gnu.org>
15651
15652 * util/grub-probe.c (probe): Fix a pair of unhandled error
15653 conditions.
15654
15655 2010-09-09 Robert Millan <rmh@gnu.org>
15656
15657 Basic Btrfs support (detection and UUID).
15658
15659 * grub-core/fs/btrfs.c: New file.
15660 * Makefile.util.def (library): Register btrfs.c.
15661 * grub-core/Makefile.core.def: Likewise.
15662
15663 2010-09-08 Robert Millan <rmh@gnu.org>
15664
15665 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
15666 with (optional) parameters to specify device and relative path.
15667 * util/grub-install.in: Use is_path_readable_by_grub() to
15668 verify readability of a few critical files.
15669 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
15670 verify readability of grub.cfg.new.
15671
15672 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 Split minix.mod into minix.mod and minix2.mod.
15675
15676 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
15677 * grub-core/Makefile.core.def (minix2): New module.
15678 * grub-core/fs/minix.c: Use definitions instead of runtime version
15679 checking.
15680 * grub-core/fs/minix2.c: New file.
15681
15682 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15683
15684 Add new --boot-directory option to replace --root-directory
15685
15686 * util/grub-install.in: Add new --boot-directory option
15687 * util/grub-reboot.in: Likewise.
15688 * util/grub-set-default.in: Likewise.
15689
15690 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15691
15692 * util/grub-mkconfig.in: Use new variable.
15693
15694 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15695
15696 * configure.ac: Define some useful variables.
15697
15698 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15701 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
15702 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
15703 Use terminfo and don't use cursor-on/cursor-off unless it's known
15704 to work.
15705 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
15706 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
15707
15708 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
15709
15710 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
15711 starts with "(,", fill the drive containing the loaded image in
15712 between those two characters, but expect that a full partition
15713 specification including partition map names will follow.
15714
15715 2010-09-08 Robert Millan <rmh@gnu.org>
15716
15717 * configure.ac: Remove `--enable-grub-fstest' option.
15718 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
15719
15720 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
15721 `grub-fstest' instead of `grub-probe' for readability verification.
15722 * util/grub-probe.c (probe): Remove readability verification kludge.
15723
15724 2010-09-08 Robert Millan <rmh@gnu.org>
15725
15726 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
15727 initializing `GRUB_FS'.
15728
15729 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
15730
15731 Not command (!) support to GRUB script.
15732
15733 * tests/grub_script_not.in: New test.
15734 * Makefile.util.def: Rules for new test.
15735
15736 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15737 ! command as a special case.
15738 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
15739
15740 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15741
15742 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
15743 grub_free.
15744
15745 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15746
15747 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
15748
15749 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15750
15751 * docs/grub.texi (Shell-like scripting): Documentation for break,
15752 continue, shift and return commands.
15753
15754 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
15755
15756 Rename CD-ROM to cd on BIOS.
15757
15758 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
15759 "cd".
15760 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
15761
15762 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15763
15764 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
15765 * util/grub-probe.c (main): Likewise.
15766 * util/i386/pc/grub-setup.c (main): Likewise.
15767 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
15768 Reported and debugged by: alexxy
15769
15770 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
15773 diagnostic info.
15774
15775 2010-09-05 Jo Shields <directhex@apebox.org>
15776
15777 * util/grub.d/30_os-prober.in: Add missing classes.
15778
15779 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 * docs/grub.texi (Theme file format): Document new position format.
15782
15783 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15784
15785 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
15786 a table. Use @code instead of @verbatim.
15787
15788 2010-09-05 Colin D Bennett <colin@gibibit.com>
15789
15790 Gfxmenu documentation.
15791
15792 * docs/grub.texi (Theme file format): New chapter.
15793
15794 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15795
15796 * grub-core/Makefile.core.def (xzio): New module.
15797 * grub-core/io/xzio.c: New file.
15798 * grub-core/lib/xzembed/xz.h: New file (from xembed).
15799 * grub-core/lib/xzembed/xz_config.h: Likewise.
15800 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
15801 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
15802 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
15803 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
15804 * grub-core/lib/xzembed/xz_private.h: Likewise.
15805 * grub-core/lib/xzembed/xz_stream.h: Likewise.
15806 * include/grub/file.h (grub_file_filter_id): New compression filter
15807 GRUB_FILE_FILTER_XZIO.
15808
15809 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15810
15811 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
15812 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
15813 size.
15814
15815 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15816
15817 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
15818 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
15819
15820 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15821
15822 Uncompressed checksum support.
15823
15824 * grub-core/commands/hashsum.c (options): Add option --uncompress.
15825 (check_list): New parameter uncompress.
15826 (grub_cmd_hashsum): Handle --uncompress.
15827
15828 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15829
15830 Reintroduce testload.
15831
15832 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
15833 from here ...
15834 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
15835 (GRUB_MOD_INIT): New function.
15836 (GRUB_MOD_FINI): Likewise.
15837 * grub-core/Makefile.core.def (testload): New module.
15838
15839 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15840
15841 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
15842 (uint8_t): New type.
15843 (uint16_t): Likewise.
15844 (uint32_t): Likewise.
15845 (uint64_t): Likewise.
15846
15847 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15848
15849 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
15850
15851 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
15854 Made static.
15855 (grub_gzfile_open): Removed. All users updated.
15856 (GRUB_MOD_INIT): New function.
15857 (GRUB_MOD_FINI): Likewise.
15858 * grub-core/kern/file.c (grub_file_filters_all): New variable.
15859 (grub_file_filters_enabled): Likewise.
15860 (grub_file_open): Handle filters.
15861 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
15862 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
15863 * include/grub/file.h (grub_file_filter_id_t): New type.
15864 (grub_file_filter_t): Likewise.
15865 (grub_file_filters_all): New extern variable.
15866 (grub_file_filters_enabled): Likewise.
15867 (grub_file_filter_register): New inline function.
15868 (grub_file_filter_unregister): Likewise.
15869 (grub_file_filter_disable): Likewise.
15870 (grub_file_filter_disable_compression): Likewise.
15871 * include/grub/gzio.h: Removed.
15872
15873 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15874
15875 Filename expansion support for wildcards in GRUB script.
15876
15877 * tests/grub_script_expansion.in: New test.
15878 * Makefile.util.def: Rule for new test.
15879
15880 * grub-core/commands/wildcard.c: New file, implements filename
15881 expansion support for GRUB script.
15882 * grub-core/Makefile.core.def: Rule update for regexp.mod.
15883 * grub-core/script/argv.c: Cosmetic changes.
15884 * grub-core/script/execute.c (grub_script_arglist_to_argv):
15885 Refactored to perform wildcard expansion on arguments.
15886 * include/grub/script_sh.h (grub_script_wildcard_translator): New
15887 struct.
15888
15889 * tests/util/grub-shell.in: Fix quoting for read input.
15890
15891 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15892
15893 Support for updating environment variables with matched substrings
15894 of regexp.
15895
15896 * tests/grub_cmd_regexp.in: New test.
15897 * Makefile.util.def: Rule for new test.
15898
15899 * grub-core/commands/regexp.c: New option -s to update environment
15900 variables with regexp matches.
15901
15902 2010-09-04 Szymon Janc <szymon@janc.net.pl>
15903
15904 * include/grub/file.h (grub_file): New member not_easly_seekable.
15905 (grub_file_seekable): New inline function.
15906 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
15907 easily seekable.
15908 (grub_gzio_open): Set not_easly_seekable.
15909 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
15910 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
15911
15912 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15913
15914 Support for options to appear multiple times on cmdline.
15915
15916 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
15917 * grub-core/commands/extcmd.c: Support for repeatable option.
15918 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
15919 repeatable option support.
15920
15921 Refactor menuentry into a regular command.
15922
15923 * grub-core/commands/menuentry.c: New file, menuentry command
15924 implementation.
15925 * grub-core/Makefile.core.def: Rule update for normal.mod.
15926 * grub-core/normal/main.c: Moved menuentry creation to
15927 grub-core/commands/menuentry.c.
15928 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
15929 (grub_menu_execute_entry_real): Removed.
15930 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
15931 function.
15932 (grub_script_execute_menuentry): Removed.
15933 * grub-core/script/parser.y (menuentry): Removed.
15934 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
15935 * grub-core/script/yylex.l (menuentry): Removed.
15936 * include/grub/menu.h (grub_menu_init): New prototype.
15937 (grub_menu_fini): New prototype.
15938 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
15939 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
15940 (grub_script_execute_sourcecode): New prototype.
15941
15942 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15943
15944 "return" command for GRUB script functions.
15945
15946 * tests/grub_script_return.in: New test.
15947 * Makefile.util.def: Rules for new test.
15948
15949 * grub-core/script/execute.c (grub_script_return): New function.
15950 * grub-core/script/main.c: Register/unregister return commaond.
15951 * include/grub/script_sh.h (grub_script_return): New prototype.
15952
15953 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15954
15955 "setparams" command to update positional parameters.
15956
15957 * tests/grub_script_setparams.in: New test.
15958 * Makefile.util.def: Rules for new test.
15959
15960 * grub-core/script/argv.c (grub_script_argv_make): New function.
15961 * grub-core/script/execute.c (replace_scope): New function.
15962 (grub_script_setparams): New function.
15963 * grub-core/script/lexer.c: Remove unused variables.
15964 * grub-core/script/main.c: Register/unregister setparams command.
15965 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
15966 (grub_script_setparams): New prototype.
15967
15968 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15969
15970 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
15971 grub_free order.
15972
15973 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15974
15975 Support for passing block of commands as an argument to extcmds.
15976
15977 * Makefile.util.def: Rules for new test.
15978 * tests/grub_script_blockarg.in: New test.
15979 * grub-core/tests/test_blockarg.c: New file, block argument
15980 command used in the test.
15981
15982 * include/grub/extcmd.h (grub_extcmd_context): New struct.
15983 (grub_register_extcmd_prio): New function prototype.
15984 (grub_extcmd_dispatcher): New function prototype.
15985 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
15986 type.
15987 * include/grub/script_sh.h (struct grub_script): New members
15988 `children', `next_siblings' and `refcnt' for block arguments and
15989 reference counting.
15990 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
15991 (grub_script_arg): New member `script' for block argument.
15992 (grub_script_argv): New member `script' for block argument.
15993 (grub_parser_param): New member `scripts' for block argument.
15994 (grub_script_mem_free): New extern function prototype.
15995 (grub_script_ref): New function prototype.
15996 (grub_script_unref): New function prototype.
15997
15998 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
15999 extcmd form to support block arguments.
16000 * grub-core/script/argv.c: Block arguments support.
16001 * grub-core/script/execute.c: Likewise.
16002 * grub-core/script/lexer.c: Likewise.
16003 * grub-core/script/main.c: Likewise.
16004 * grub-core/script/script.c: Likewise.
16005 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16006 non-terminals.
16007
16008 * grub-core/commands/acpi.c: Update extcmd implementations with
16009 grub_extcmd_context_t.
16010 * grub-core/commands/cat.c: Likewise.
16011 * grub-core/commands/echo.c: Likewise.
16012 * grub-core/commands/extcmd.c: Likewise.
16013 * grub-core/commands/hashsum.c: Likewise.
16014 * grub-core/commands/hdparm.c: Likewise.
16015 * grub-core/commands/help.c: Likewise.
16016 * grub-core/commands/hexdump.c: Likewise.
16017 * grub-core/commands/i386/cpuid.c: Likewise.
16018 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16019 * grub-core/commands/i386/pc/halt.c: Likewise.
16020 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16021 * grub-core/commands/iorw.c: Likewise.
16022 * grub-core/commands/keystatus.c: Likewise.
16023 * grub-core/commands/loadenv.c: Likewise.
16024 * grub-core/commands/ls.c: Likewise.
16025 * grub-core/commands/lspci.c: Likewise.
16026 * grub-core/commands/memrw.c: Likewise.
16027 * grub-core/commands/probe.c: Likewise.
16028 * grub-core/commands/search_wrap.c: Likewise.
16029 * grub-core/commands/setpci.c: Likewise.
16030 * grub-core/commands/sleep.c: Likewise.
16031 * grub-core/disk/loopback.c: Likewise.
16032 * grub-core/hello/hello.c: Likewise.
16033 * grub-core/loader/i386/bsd.c: Likewise.
16034 * grub-core/loader/xnu.c: Likewise.
16035 * grub-core/term/gfxterm.c: Likewise.
16036 * grub-core/term/serial.c: Likewise.
16037 * grub-core/tests/lib/functional_test.c: Likewise.
16038
16039 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16040
16041 Multi-line quoted strings support.
16042
16043 * grub-core/script/lexer.c (append_newline): Removed.
16044 (grub_script_lexer_yywrap): Refactored.
16045 (grub_script_lexer_init): Refactored.
16046 * grub-core/script/yylex.l (yywrap): New function.
16047 (grub_lexer_resplit): New function.
16048 (grub_lexer_unput): New function.
16049 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16050 and resplit.
16051 * tests/grub_script_echo1.in: Added few more testcases.
16052
16053 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16054
16055 * grub-core/kern/misc.c: Don't add abort alias in utils.
16056 Reported by: echoline.
16057
16058 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16059
16060 Add missing files into "make dist" tarball for other platforms.
16061
16062 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16063 * conf/Makefile.common (dist_noinst_DATA): New variable.
16064 * conf/Makefile.extra-dist: Added missing make dist files.
16065 * grub-core/Makefile.core.def: Likewise.
16066
16067 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 Compress grub_prefix.
16070
16071 * grub-core/boot/i386/pc/lnxboot.S: Use
16072 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16073 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16074 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16075 GRUB_MACHINE_PREFIX_END. All users updated.
16076 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16077 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16078 + 0x40.
16079 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16080 * util/grub-mkimage.c (image_target_desc): Change data_end to
16081 prefix_end. All users updated.
16082
16083 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16084
16085 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16086 value.
16087 (grub_openbsd_boot): Likewise.
16088 (grub_netbsd_boot): Likewise.
16089 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16090 (grub_xnu_boot): Likewise.
16091
16092 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * configure.ac: Clean LIBS variable after tests.
16095
16096 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16097
16098 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16099
16100 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16103 echo if libdevmapper will be used.
16104
16105 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16106
16107 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16108 constant for the same file.
16109
16110 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16111
16112 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16113
16114 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16115
16116 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16117 grub-core/*.pp.
16118
16119 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16120
16121 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16122 required by the boot protocol.
16123
16124 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16125 ebp and edi members.
16126 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16127 state.ebp and state.edi.
16128 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16129 %ebp and %edi according to grub_relocator32_ebp and
16130 grub_relocator32_edi respectively.
16131 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16132 and state.edi.
16133
16134 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16135
16136 Add i386-pc-pxe image target.
16137
16138 * util/grub-mkimage.c (image_target_desc): New enum value
16139 IMAGE_I386_PC_PXE.
16140 (image_targets): New target i386-pc-pxe.
16141 (generate_image): Handle i386-pc-pxe image.
16142
16143 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 Fix grub_pxe_scan.
16146
16147 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16148 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16149 All users updated.
16150 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16151 (grub_pxe_pxenv): Correct type.
16152
16153 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16154
16155 * NEWS: Document most of the important changes since 1.98.
16156
16157 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16158
16159 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16160 generated manual page) a little.
16161
16162 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16163
16164 * docs/grub.texi: Add myself as an author.
16165
16166 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16167
16168 * Makefile.util.def (libgrub.a): Add missing sunpc.
16169 Reported by: Seth Goldberg.
16170
16171 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 Interrupt wrapping and code simplifications.
16174
16175 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16176 x86_noieee1275 which are functionaly equivalent in this case.
16177 (grub-install): Make source on each platform explicit. Enable on
16178 all noemu.
16179 * gentpl.py (x86_efi_pc): Removed group.
16180 (x86_noefi): Likewise.
16181 (i386_noefi): Likewise.
16182 (x86_noieee1275): Likewise.
16183 (i386_noieee1275): Likewise.
16184 (i386_noefi_noieee1275): Likewise.
16185 (i386_pc_qemu_coreboot): Likewise.
16186 (i386_coreboot_multiboot): Likewise.
16187 (i386_pc_coreboot_multiboot_qemu): Likewise.
16188 (x86_noefi_mips): Likewise.
16189 (noieee1275): Likewise.
16190 (ieee1275_mips): Likewise.
16191 (noemu_noieee1275): Likewise.
16192 (cmos): New group.
16193 (usb): Likewise.
16194 (videoinkernel): Likewise.
16195 (videomodules): Likewise.
16196 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16197 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16198 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16199 include/grub/loader.h, include/grub/msdos_partition.h,
16200 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16201 include/grub/machine/console.h, include/grub/machine/vga.h,
16202 include/grub/machine/vbe.h, include/grub/machine/init.h,
16203 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16204 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16205 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16206 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16207 * grub-core/Makefile.core.def (kernel): Explicit the source for
16208 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16209 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16210 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16211 Use videoinkernel tag.
16212 (usb): Enable on all usb.
16213 (usbserial_common): Likewise.
16214 (usbserial_pl2303): Likewise.
16215 (usbserial_ftdi): Likewise.
16216 (uhci): Enable on all x86.
16217 (ohci): Enable on all pci.
16218 (cmostest): Enable on all CMOS.
16219 (acpi): Include commands/acpi.c on all platforms.
16220 (halt): Add relevant lib/*/halt.c.
16221 (hdparm): Enable on all pci.
16222 (lspci): Likewise.
16223 (usbtest): Enable on all usb.
16224 (ata): Enable on all pci.
16225 (ata_pthru): Likewise.
16226 (usbms): Enable on all usb.
16227 (usb_keyboard): Likewise.
16228 (font): Use tag videomodules.
16229 (bufio): Likewise.
16230 (datetime): Use tag cmos. Enable on all noemu.
16231 (mmap): Use tags common and x86.
16232 (gfxterm): Use tag videomodules.
16233 (bitmap): Likewise.
16234 (bitmap_scale): Likewise.
16235 (video_fb): Likewise.
16236 (video): Likewise.
16237 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16238 adjust padding accordingly. All users updated.
16239 (grub_ohci_transaction): Fix bad format specification.
16240 (GRUB_MOD_INIT): Add asserts for struct size.
16241 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16242 (grub_alloc_td): Likewise.
16243 (grub_free_queue): Likewise.
16244 (grub_uhci_transfer): Likewise.
16245 (grub_uhci_transaction): Fix bad format specification.
16246 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16247 (grub_usb_bulk_readwrite): Likewise.
16248 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16249 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16250 Made static.
16251 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16252 Made static.
16253 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16254 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16255 Transformed into C.
16256 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16257 Moved from here ...
16258 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16259 ... here. Transformed into C. Made static.
16260 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16261 Moved from here ...
16262 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16263 ... here. Transformed into C. Made static.
16264 * grub-core/kern/i386/pc/startup.S
16265 (grub_biosdisk_check_int13_extensions): Moved from here ...
16266 * grub-core/disk/i386/pc/biosdisk.c
16267 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
16268 Made static.
16269 * grub-core/kern/i386/pc/startup.S
16270 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
16271 * grub-core/disk/i386/pc/biosdisk.c
16272 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
16273 Transformed into C. Made static.
16274 * grub-core/kern/i386/pc/startup.S
16275 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
16276 * grub-core/disk/i386/pc/biosdisk.c
16277 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
16278 Transformed into C. Made static.
16279 * grub-core/kern/i386/pc/startup.S
16280 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
16281 * grub-core/disk/i386/pc/biosdisk.c
16282 (grub_biosdisk_get_diskinfo_standard): ... here.
16283 Transformed into C. Made static.
16284 * grub-core/kern/i386/pc/startup.S
16285 (grub_biosdisk_get_num_floppies): Moved from here ...
16286 * grub-core/disk/i386/pc/biosdisk.c
16287 (grub_biosdisk_get_num_floppies): ... here.
16288 Transformed into C. Made static.
16289 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
16290 New function.
16291 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
16292 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
16293 Transformed into C. Made static.
16294 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
16295 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
16296 Transformed into C. Made static.
16297 * grub-core/kern/i386/ieee1275/init.c: Removed.
16298 * grub-core/kern/i386/misc.S: Likewise.
16299 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
16300 Splitted from here ...
16301 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
16302 Transformed into C. Made static. All users updated.
16303 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
16304 Transformed into C. Made static. All users updated.
16305 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
16306 Moved from here...
16307 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
16308 Transformed into C. Made static. All users updated.
16309 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
16310 Moved from here...
16311 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
16312 Transformed into C. Made static. All users updated.
16313 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
16314 Removed (replaced by C version).
16315 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
16316 Moved from here...
16317 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
16318 Transformed into C. Made static.
16319 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
16320 Moved from here...
16321 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
16322 ... here. Transformed into C.
16323 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
16324 Moved from here...
16325 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
16326 ... here. Transformed into C.
16327 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
16328 Moved from here...
16329 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
16330 ... here. Transformed into C. Made static.
16331 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
16332 Moved from here...
16333 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
16334 ... here. Transformed into C.
16335 * grub-core/kern/i386/pc/startup.S
16336 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
16337 * grub-core/video/i386/pc/vbe.c
16338 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
16339 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
16340 Moved from here...
16341 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
16342 ... here. Transformed into C.
16343 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
16344 Moved from here...
16345 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
16346 ... here. Transformed into C.
16347 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
16348 Moved from here...
16349 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
16350 ... here. Transformed into C.
16351 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
16352 Moved from here...
16353 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
16354 ... here. Transformed into C.
16355 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
16356 Moved from here...
16357 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
16358 ... here. Transformed into C. Made static.
16359 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
16360 Moved from here...
16361 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
16362 ... here. Transformed into C. Made static.
16363 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
16364 Moved from here...
16365 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
16366 ... here. Transformed into C. Made static.
16367 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
16368 pxe_rm_entry as third argument.
16369 (grub_bios_interrupt): New function.
16370 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
16371 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
16372 of calling grub_stop.
16373 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
16374 * grub-core/lib/efi/halt.c (grub_halt): ...here.
16375 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
16376 * grub-core/lib/emu/halt.c (grub_halt): ... here.
16377 * grub-core/lib/i386/halt.c: Moved from here ...
16378 * grub-core/lib/i386/halt.c: ... here.
16379 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
16380 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
16381 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
16382 grub_stop_floppy.
16383 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
16384 * include/grub/i386/coreboot/init.h: Removed.
16385 * include/grub/i386/multiboot/init.h: Likewise.
16386 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
16387 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
16388 * include/grub/i386/pc/int.h: New file.
16389 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
16390 (grub_pxe_scan): Removed.
16391 (grub_pxe_call): Update prototype.
16392 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
16393 prototypes.
16394 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
16395 * include/grub/i386/qemu/init.h: Removed.
16396 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
16397 noreturn.
16398 (grub_halt): Likewise.
16399 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
16400 (grub_reboot): Likewise.
16401 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
16402 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
16403 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
16404
16405 2010-08-30 Robert Millan <rmh@gnu.org>
16406
16407 * NEWS: Document addition of ZFS support in `grub-install' and
16408 `grub-mkconfig'.
16409
16410 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
16411
16412 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
16413 dprintf output.
16414
16415 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16416
16417 Remove leftover embedding of font objects.
16418
16419 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16420 * util/grub-install.in (font): Removed.
16421 * util/grub-mkimage.c (generate_image): Remove font support. All users
16422 updated.
16423
16424 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 Remove leftover embedding of font objects.
16427
16428 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16429 * util/grub-install.in (font): Removed.
16430 * util/grub-mkimage.c (generate_image): Remove font support. All users
16431 updated.
16432
16433 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 * docs/grub.texi (Network): Fix reference to pxe_blksize.
16436 Reported by: Ian Turner
16437
16438 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16439
16440 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
16441 timeout to avoid indefinite boot stalling.
16442
16443 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16444
16445 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
16446 (grub_env_write_color_highlight): Likewise.
16447
16448 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/normal/term.c (print_more): Return to normal and not
16451 to standard state after printing "---MORE---".
16452
16453 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16454
16455 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
16456 Mask out the bit 0x80 since it has other meaning that specifiing color.
16457
16458 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 New relocator. Allows for more kernel support and more straightforward
16461 loader writing.
16462
16463 * Makefile.am (BOOTTARGET): New variable.
16464 (QEMU32): Likewise.
16465 (linux.init.x86_64): New target.
16466 (linux.init.i386): Likewise.
16467 (multiboot.elf): Likewise.
16468 (kfreebsd.elf): Likewise.
16469 (kfreebsd.aout): Likewise.
16470 (pc-chainloader.elf): Likewise.
16471 (pc-chainloader.bin): Likewise.
16472 (ntldr.elf): Likewise.
16473 (ntldr.bin): Likewise.
16474 (multiboot2.elf): Likewise.
16475 (kfreebsd.init.x86_64): Likewise.
16476 (kfreebsd.init.i386): Likewise.
16477 (knetbsd.init.i386): Likewise.
16478 (kopenbsd.init.i386): Likewise.
16479 (knetbsd.init.x86_64): Likewise.
16480 (kopenbsd.init.x86_64): Likewise.
16481 (linux-initramfs.i386): Likewise.
16482 (linux-initramfs.x86_64): Likewise.
16483 (kfreebsd-mfsroot.i386.img): Likewise.
16484 (knetbsd.image.i386): Likewise.
16485 (kopenbsd.image.i386): Likewise.
16486 (kopenbsd.image.x86_64): Likewise.
16487 (knetbsd.miniroot-image.i386.img): Likewise.
16488 (kfreebsd-mfsroot.x86_64.img): Likewise.
16489 (knetbsd.image.x86_64): Likewise.
16490 (knetbsd.miniroot-image.x86_64.img): Likewise.
16491 (kfreebsd-mfsroot.i386.gz): Likewise.
16492 (bootcheck-kfreebsd-i386): Likewise.
16493 (kfreebsd-mfsroot.x86_64.gz): Likewise.
16494 (bootcheck-kfreebsd-x86_64): Likewise.
16495 (knetbsd.miniroot-image.i386.gz): Likewise.
16496 (bootcheck-knetbsd-i386): Likewise.
16497 (bootcheck-kopenbsd-i386): Likewise.
16498 (bootcheck-kopenbsd-x86_64): Likewise.
16499 (knetbsd.miniroot-image.x86_64.gz): Likewise.
16500 (bootcheck-knetbsd-x86_64): Likewise.
16501 (bootcheck-linux-i386): Likewise.
16502 (bootcheck-linux-x86_64): Likewise.
16503 (bootcheck-linux16-i386): Likewise.
16504 (bootcheck-linux16-x86_64): Likewise.
16505 (bootcheck-multiboot): Likewise.
16506 (bootcheck-multiboot2): Likewise.
16507 (bootcheck-kfreebsd-aout): Likewise.
16508 (bootcheck-pc-chainloader): Likewise.
16509 (bootcheck-ntldr): Likewise.
16510 (CLEANFILES): Add new targets.
16511 (BOOTCHECKS): New variable.
16512 (.PHONY): Add bootchecks.
16513 (SUCCESSFUL_BOOT_STRING): New variable.
16514 (BOOTCHECK_TIMEOUT): Likewise.
16515 (bootcheck): New target
16516 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
16517 * configure.ac: Correct efiemu excuse.
16518 * docs/grub.texi (Supported kernels): New chapter.
16519 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
16520 include/grub/mm_private.h. Simplify inclusion of
16521 include/grub/boot.h, include/grub/loader.h
16522 and include/grub/msdos_partition.h
16523 (KERNEL_HEADER_FILES) [i386_coreboot]:
16524 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
16525 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
16526 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
16527 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
16528 include/grub/machine/loader.h.
16529 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
16530 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
16531 extra_dist.
16532 (pci.mod): Enable on i386-multiboot.
16533 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
16534 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
16535 i386-qemu.
16536 (relocator.mod): Rewritten.
16537 (aout.mod): Enable on all x86.
16538 (bsd.mod): Likewise.
16539 (ntldr.mod): New module.
16540 (linux.mod): Use loader/i386/linux.c on all x86.
16541 (xnu.mod): Enable on all x86.
16542 (vga_text.mod): disable on EFI and QEMU.
16543 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
16544 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
16545 * grub-core/efiemu/loadcore.c: Likewise.
16546 * grub-core/efiemu/main.c: Likewise.
16547 (grub_efiemu_exit_boot_services): Removed.
16548 (grub_efiemu_finish_boot_services): Likewise.
16549 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
16550 function.
16551 * grub-core/efiemu/i386/nocfgtables.c: New file.
16552 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
16553 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
16554 (grub_efi_finish_boot_services): Moved from here ...
16555 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
16556 Fille finish memory map and related data.
16557 (finish_mmap_buf): New variable.
16558 (grub_efi_uintn_t finish_mmap_size): Likewise.
16559 (grub_efi_uintn_t finish_key): Likewise.
16560 (grub_efi_uintn_t finish_desc_size): Likewise.
16561 (grub_efi_uint32_t finish_desc_version): Likewise.
16562 (grub_efi_is_finished): Likewise.
16563 (grub_efi_get_memory_map): Use saved memory map if EFI is already
16564 finished.
16565 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
16566 (grub_elf64_phdr_iterate): Likewise.
16567 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
16568 (grub_os_area_size): Likewise.
16569 (grub_machine_init): Don't reserve os area.
16570 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
16571 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16572 * grub-core/kern/i386/loader.S: Removed.
16573 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
16574 (grub_os_area_size): Likewise.
16575 (grub_machine_init): Don't reserve os area.
16576 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16577 Don't call grub_dl_unload_all.
16578 Don't include loader.S.
16579 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
16580 Declare the memory after _end as available.
16581 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
16582 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
16583 (GRUB_MM_ALLOC_MAGIC): Moved from here...
16584 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
16585 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
16586 * include/grub/mm_private.h (grub_mm_header): ... here.
16587 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
16588 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
16589 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
16590 (grub_mm_region): ..here. Removed addr. Added pre_size.
16591 All users updated.
16592 * grub-core/kern/mm.c (base): Renamed to ...
16593 (grub_mm_base): ... this. Made global.
16594 (grub_real_malloc): Alloc from end of region.
16595 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
16596 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
16597 * grub-core/kern/powerpc/cache_flush.S: ... here.
16598 * grub-core/lib/efi/relocator.c: New file.
16599 * grub-core/lib/i386/relocator.c: Rewritten.
16600 * grub-core/lib/i386/relocator16.S: New file.
16601 * grub-core/lib/i386/relocator32.S: Likewise.
16602 * grub-core/lib/i386/relocator64.S: Likewise.
16603 * grub-core/lib/i386/relocator_asm.S: Rewritten.
16604 * grub-core/lib/i386/relocator_common.S: New file.
16605 * grub-core/lib/ieee1275/relocator.c: Likewise.
16606 * grub-core/lib/mips/relocator.c: Rewritten.
16607 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
16608 stylistic adjustments.
16609 * grub-core/lib/powerpc/relocator.c: New file.
16610 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
16611 * grub-core/lib/relocator.c: Rewritten.
16612 * grub-core/lib/x86_64/relocator_asm.S: New file.
16613 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
16614 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
16615 (bsd_tag): New struct.
16616 (tags): New variable.
16617 (tags_last): Likewise.
16618 (netbsd_module): New struct.
16619 (netbsd_mods): New variable.
16620 (netbsd_mods_last): Likewise.
16621 (openbsd_opts): New parameter "serial".
16622 (OPENBSD_SERIAL_ARG): New definition.
16623 (netbsd_opts): New parameter "serial".
16624 (NETBSD_SERIAL_ARG): New definition.
16625 (grub_freebsd_add_meta): Reorganised into ...
16626 (grub_bsd_add_meta): ...this. All users updated.
16627 (grub_freebsd_add_mmap): Reorganised into ...
16628 (generate_e820_mmap): ...this...
16629 (grub_bsd_add_mmap): ...and this. All users updated.
16630 (grub_freebsd_list_modules): Use tags.
16631 (grub_netbsd_add_meta_module): New function.
16632 (grub_netbsd_list_modules): Likewise.
16633 (grub_freebsd_boot): Use relocator and finish EFI.
16634 (grub_openbsd_boot): Likewise.
16635 (grub_netbsd_setup_video): New function.
16636 (grub_netbsd_add_modules): Likewise.
16637 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
16638 and finish EFI.
16639 (grub_bsd_unload): Unload tags.
16640 (grub_bsd_load_aout): Use relocator.
16641 (grub_bsd_elf32_size_hook): New function.
16642 (grub_bsd_elf32_hook): Use relocator.
16643 (grub_bsd_elf64_size_hook): New function.
16644 (grub_bsd_elf64_hook): Use relocator.
16645 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
16646 (grub_bsd_load): Zero-out openbsd_ramdisk.
16647 (grub_bsd_load): Use relocator.
16648 (grub_cmd_openbsd): Support serial.
16649 (grub_cmd_netbsd): Support modules.
16650 (grub_cmd_freebsd_module): Use relocator.
16651 (grub_netbsd_module_load): New function.
16652 (grub_cmd_netbsd_module): Likewise.
16653 (grub_cmd_openbsd_ramdisk): Likewise.
16654 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
16655 kopenbsd_ramdisk.
16656 (GRUB_MOD_FINI): Unregister new commands.
16657 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
16658 (grub_freebsd_load_elfmodule_obj): Use relocator.
16659 (grub_freebsd_load_elfmodule): Likewise.
16660 (grub_freebsd_load_elf_meta): Likewise.
16661 (grub_netbsd_load_elf_meta): New function.
16662 (grub_openbsd_find_ramdisk): Likewise.
16663 * grub-core/loader/i386/bsd_helper.S: Removed.
16664 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
16665 * grub-core/loader/i386/bsd_trampoline.S: Removed.
16666 * grub-core/loader/i386/efi/linux.c: Likewise.
16667 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
16668 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
16669 (DEFAULT_VIDEO_MODE): Likewise.
16670 (real_mode_target): New variable.
16671 (prot_mode_target): Likewise.
16672 (initrd_mem_target): Likewise.
16673 (relocator): Likewise.
16674 (efi_mmap_buf): Likewise.
16675 (efi_mmap_size): Likewise.
16676 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
16677 (free_pages): Use relocator.
16678 (allocate_pages): Account for efi_mmap and use relocator. Return error.
16679 (grub_linux_setup_video): Return error.
16680 (grub_linux_trampoline_start): Removed.
16681 (grub_linux_trampoline_end): Likewise.
16682 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
16683 andd video parameters depending on firmware.
16684 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
16685 [GRUB_MACHINE_EFI]: Pass EFI parameters.
16686 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
16687 (grub_cmd_initrd): Use relocator.
16688 * grub-core/loader/i386/linux_trampoline.S: Removed.
16689 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
16690 (elf_sec_entsize): Likewise.
16691 (elf_sec_shstrndx): Likewise.
16692 (elf_sections): Likewise.
16693 (grub_multiboot_load): Use relocator.
16694 (grub_multiboot_get_mbi_size): Account for sections.
16695 (grub_multiboot_make_mbi): Use relocator and support sections.
16696 (grub_multiboot_add_elfsyms): New function.
16697 (grub_multiboot_free_mbi): Free sections.
16698 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
16699 (grub_linux_real_target): Likewise.
16700 (grub_linux_real_chunk): Likewise.
16701 (grub_linux16_prot_size): Likewise.
16702 (grub_linux16_boot): Use relocator.
16703 (grub_linux_unload): Unload relocator.
16704 (grub_cmd_linux): Use relocator.
16705 (grub_cmd_initrd): Likewise.
16706 * grub-core/loader/i386/pc/ntldr.c: New file.
16707 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
16708 Don't try to guess CPU frequency.
16709 (grub_xnu_set_video): Stretch bitmap.
16710 (grub_xnu_boot): Use relocator.
16711 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
16712 (grub_linux_unload): Free relocator.
16713 (grub_linux_load32): Use relocator.
16714 (grub_linux_load64): Likewise.
16715 (grub_cmd_initrd): Likewise.
16716 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
16717 (grub_multiboot_unload): Unload relocator.
16718 (grub_cmd_multiboot): Use relocator.
16719 (grub_cmd_module): Likewise.
16720 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
16721 Use relocator and support sections.
16722 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
16723 (elf_sec_entsize): Likewise.
16724 (elf_sec_shstrndx): Likewise.
16725 (elf_sections): Likewise.
16726 (grub_multiboot_load): Use relocator.
16727 (grub_multiboot_get_mbi_size): Account for sections.
16728 (grub_multiboot_make_mbi): Use relocator and support sections.
16729 (grub_multiboot_add_elfsyms): New function.
16730 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
16731 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
16732 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
16733 Prototype changed. All users updated.
16734 (grub_xnu_align_heap): Simplified.
16735 (grub_xnu_writetree_toheap): Likewise.
16736 (grub_xnu_unload): Unload relocator.
16737 (grub_cmd_xnu_kernel): Use relocator.
16738 (grub_cmd_xnu_kernel64): Likewise.
16739 (grub_xnu_register_memory): Simplified.
16740 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
16741 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
16742 EFI is finished.
16743 (grub_console_checkkey): Likewise.
16744 (grub_console_getkey): Likewise.
16745 (grub_console_getwh): Likewise.
16746 (grub_console_getxy): Likewise.
16747 (grub_console_gotoxy): Likewise.
16748 (grub_console_cls): Likewise.
16749 (grub_console_setcolorstate): Likewise.
16750 (grub_console_setcursor): Likewise.
16751 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
16752 * grub-core/tests/boot/kbsd.init-i386.S: New file.
16753 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
16754 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
16755 * grub-core/tests/boot/kernel-8086.S: Likewise.
16756 * grub-core/tests/boot/kernel-i386.S: Likewise.
16757 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
16758 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
16759 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
16760 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
16761 * grub-core/tests/boot/knetbsd.cfg: Likewise.
16762 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
16763 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
16764 * grub-core/tests/boot/linux.cfg: Likewise.
16765 * grub-core/tests/boot/linux.init-i386.S: Likewise.
16766 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
16767 * grub-core/tests/boot/linux16.cfg: Likewise.
16768 * grub-core/tests/boot/multiboot.cfg: Likewise.
16769 * grub-core/tests/boot/multiboot2.cfg: Likewise.
16770 * grub-core/tests/boot/ntldr.cfg: Likewise.
16771 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
16772 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
16773 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
16774 New definition.
16775 * include/grub/dl.h (grub_dl_unload_all): Removed.
16776 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
16777 (grub_efi_finish_boot_services): Change prototype.
16778 (grub_efi_is_finished): New variable.
16779 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
16780 Changed prototype.
16781 (grub_efiemu_finish_boot_services): Removed.
16782 (grub_machine_efiemu_init_tables): New prototype.
16783 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
16784 (grub_elf64_phdr_iterate): Likewise.
16785 * include/grub/i386/bsd.h: Include relocator.h.
16786 (freebsd_tag_header): New struct.
16787 (grub_openbsd_bios_mmap): Removed.
16788 (grub_unix_real_boot): Removed.
16789 (grub_freebsd_load_elfmodule32): Changed prototype.
16790 (grub_freebsd_load_elfmodule_obj64): Likewise.
16791 (grub_freebsd_load_elf_meta32): Likewise.
16792 (grub_freebsd_load_elf_meta64): Likewise.
16793 (grub_freebsd_add_meta): Removed.
16794 (grub_netbsd_load_elf_meta32): New prototype.
16795 (grub_netbsd_load_elf_meta64): Likewise.
16796 (grub_bsd_add_meta): Likewise.
16797 (grub_openbsd_ramdisk_descriptor): New struct.
16798 (grub_openbsd_find_ramdisk32): New prototype.
16799 (grub_openbsd_find_ramdisk64): Likewise.
16800 * include/grub/i386/coreboot/loader.h: Removed.
16801 * include/grub/i386/efi/loader.h: Likewise.
16802 * include/grub/i386/ieee1275/loader.h: Likewise.
16803 * include/grub/i386/linux.h (linux_kernel_header): Change void *
16804 to grub_uint32_t.
16805 * include/grub/i386/loader.h: Removed.
16806 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
16807 value.
16808 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
16809 (grub_phys_addr_t): New type.
16810 (grub_vtop): New inline function.
16811 (grub_map_memory): Likewise.
16812 (grub_unmap_memory): Likewise.
16813 * include/grub/i386/multiboot/loader.h: Removed.
16814 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
16815 (NETBSD_BTINFO_CONSOLE): New definition.
16816 (NETBSD_BTINFO_SYMTAB): Likewise.
16817 (NETBSD_BTINFO_MODULES): Likewise.
16818 (NETBSD_BTINFO_FRAMEBUF): Likewise.
16819 (grub_netbsd_bootinfo): New struct.
16820 (grub_netbsd_btinfo_common): Use explicit bitsize.
16821 (grub_netbsd_btinfo_mmap_entry): Removed.
16822 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
16823 (grub_netbsd_btinfo_bootdisk): New struct.
16824 (grub_netbsd_btinfo_symtab): Likewise.
16825 (grub_netbsd_btinfo_serial): Likewise.
16826 (grub_netbsd_btinfo_modules): Likewise.
16827 (grub_netbsd_btinfo_framebuf): Likewise.
16828 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
16829 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
16830 Likewise.
16831 (grub_openbsd_bootargs): Use explicit bitsize.
16832 (grub_openbsd_bootarg_console): New struct.
16833 (GRUB_OPENBSD_COM_MAJOR): New definition.
16834 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
16835 * include/grub/i386/pc/efiemu.h: Removed.
16836 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
16837 * include/grub/i386/qemu/loader.h: Removed.
16838 * include/grub/i386/relocator.h: Rewritten.
16839 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
16840 * include/grub/mips/memory.h: New file.
16841 * include/grub/mips/multiboot.h: Rewritten.
16842 * include/grub/mips/relocator.h: Rewritten.
16843 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
16844 (grub_vtop): New function.
16845 (grub_map_memory): Likewise.
16846 (grub_unmap_memory): Likewise.
16847 * include/grub/misc.h (ALIGN_DOWN): New definition.
16848 * include/grub/mm.h (grub_mm_check_real): New proto.
16849 (GRUB_MM_CHECK): New definition.
16850 * include/grub/mm_private.h: New file.
16851 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
16852 (grub_multiboot_get_mbi_size): Removed.
16853 (grub_multiboot_make_mbi): Change prottype.
16854 (grub_multiboot_set_accepts_video): New proto.
16855 (grub_multiboot_add_elfsyms): Likewise.
16856 (grub_multiboot_payload_eip): New variable.
16857 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
16858 New prototype.
16859 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
16860 New definition.
16861 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
16862 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
16863 * include/grub/powerpc/ieee1275/loader.h: Removed.
16864 * include/grub/powerpc/memory.h: New file.
16865 * include/grub/powerpc/relocator.h: Likewise.
16866 * include/grub/relocator.h: Likewise.
16867 * include/grub/relocator_private.h: Likewise.
16868 * include/grub/sparc64/ieee1275/loader.h: Removed.
16869 * include/grub/x86_64/memory.h: New file.
16870 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
16871 (grub_xnu_heap_malloc): Likewise.
16872 (grub_xnu_heap_real_start): Removed.
16873 (grub_xnu_heap_start): Likewise.
16874 (grub_xnu_relocator): New variable.
16875 (grub_xnu_heap_target_start): Likewise.
16876 * tests/util/grub-shell.in: Support non-pc.
16877 * util/grub-mkimage.c (image_targets): Fix multiboot target.
16878
16879 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16880
16881 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
16882 on malloc error.
16883 (grub_bidi_logical_to_visual): Check that malloc succeded.
16884 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
16885 puts.
16886 (grub_xputs_normal): Likewise.
16887
16888 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
16891 extra_dist.
16892
16893 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16894
16895 * grub-core/efiemu/runtime/efiemu.sh: Removed.
16896
16897 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16898
16899 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
16900
16901 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
16904 dprintf.
16905
16906 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
16907
16908 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
16909
16910 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16911
16912 * grub-core/normal/term.c (print_more): Fix a memory leak.
16913 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
16914 (grub_xputs_normal): Likewise.
16915
16916 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16917
16918 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
16919 the begining of the string
16920
16921 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16922
16923 * grub-core/script/script.c (grub_script_parse): Free parsed on
16924 failure.
16925
16926 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
16929 on failure.
16930
16931 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
16934 return.
16935
16936 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16937
16938 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
16939 (scroll_up): Fix a memory leak.
16940
16941 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
16944 errors.
16945
16946 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
16947
16948 Handle USB pendrives exposed as floppies.
16949
16950 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
16951 floppy.
16952 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
16953 Check for partitions on all devices.
16954
16955 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
16958 (readkey): Likewise.
16959
16960 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16961
16962 Multiple variable names support to "export" command.
16963
16964 * normal/context.c (grub_cmd_export): "export" command supports
16965 multiple variable names.
16966
16967 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
16968
16969 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
16970 --target=drive output to Mach device name.
16971
16972 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
16973
16974 New Automake based build system for GRUB.
16975
16976 * ABOUT-NLS: New file.
16977 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
16978 in Makefile.util.def file.
16979 * Makefile.util.def: New file. Autogen build definitions file for
16980 GRUB host utils.
16981 * conf/Makefile.common: New file. Common variables for GRUB host
16982 utils and target modules.
16983 * conf/Makefile.extra-dist: New file. Extra files for make dist.
16984 * docs/Makefile.am: New file. Automake file for docs.
16985 * gentpl.py: New file. Python script to generate Autogen
16986 template.
16987 * grub-core/Makefile.am: New file. GRUB target modules' rules
16988 that doesn't fit in Makefile.core.def file.
16989 * grub-core/Makefile.core.def: New file. Autogen build
16990 definitions file for GRUB target modules.
16991 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
16992 specific setjmp.S file.
16993 * po/Makefile.am: New file.
16994
16995 * .bzrignore: New ignores.
16996 * INSTALL: New requirements, without Ruby.
16997 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
16998 * autogen.sh: Updated to invoke autogen as necessary.
16999 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17000 and defines for Automake conditionals.
17001 * geninit.sh: Refactoring.
17002
17003 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17004 necessary.
17005 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17006 New prototype.
17007
17008 * include/grub/test.h: Fix functional test modules' naming.
17009 * grub-core/tests/example_functional_test.c: Fix test module name.
17010
17011 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17012 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17013 * util/grub-editenv.c: Likewise.
17014 * util/grub-fstest.c: Likewise.
17015 * util/grub-mkdevicemap.c: Likewise.
17016 * util/grub-mkfont.c: Likewise.
17017 * util/grub-mkimage.c: Likewise.
17018 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17019 * util/grub-probe.c: Likewise.
17020 * util/grub-script-check.c: Likewise.
17021 * util/i386/pc/grub-setup.c: Likewise.
17022 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17023
17024 * tests/util/grub-shell.in: Fix override directory path.
17025 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17026 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17027
17028 * util/lvm.c: Update #includes.
17029 * util/raid.c: Likewise.
17030 * util/resolve.c: Likewise.
17031 * grub-core/bus/emu/pci.c: Likewise.
17032 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17033 * grub-core/lib/posix_wrap/string.h: Likewise.
17034 * grub-core/kern/emu/main.c: Likewise.
17035
17036 * grub-core/gensymlist.sh: New file. Script for generating kernel
17037 symbols file.
17038 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17039
17040 * grub-core/gentrigtables.c: Fix unused variable warnings.
17041
17042 * Makefile.in: Removed.
17043 * conf/any-emu.rmk: Removed.
17044 * conf/common.rmk: Removed.
17045 * conf/i386-coreboot.rmk: Removed.
17046 * conf/i386-efi.rmk: Removed.
17047 * conf/i386-ieee1275.rmk: Removed.
17048 * conf/i386-multiboot.rmk: Removed.
17049 * conf/i386-pc.rmk: Removed.
17050 * conf/i386-qemu.rmk: Removed.
17051 * conf/i386.rmk: Removed.
17052 * conf/mips-yeeloong.rmk: Removed.
17053 * conf/mips.rmk: Removed.
17054 * conf/powerpc-ieee1275.rmk: Removed.
17055 * conf/sparc64-ieee1275.rmk: Removed.
17056 * conf/tests.rmk: Removed.
17057 * conf/x86-efi.rmk: Removed.
17058 * conf/x86_64-efi.rmk: Removed.
17059 * gendistlist.sh: Removed.
17060 * geninitheader.sh: Removed.
17061 * genkernsyms.sh.in: Removed.
17062 * genmk.rb: Removed.
17063 * gensymlist.sh.in: Removed.
17064 * mkinstalldirs: Removed.
17065 * boot: Moved ...
17066 * grub-core/boot: ... to here.
17067 * bus: Moved ...
17068 * grub-core/bus: ... to here.
17069 * commands: Moved ...
17070 * grub-core/commands: ... to here.
17071 * disk: Moved ...
17072 * grub-core/disk: ... to here.
17073 * efiemu: Moved ...
17074 * grub-core/efiemu: ... to here.
17075 * font: Moved ...
17076 * grub-core/font: ... to here.
17077 * fs: Moved ...
17078 * grub-core/fs: ... to here.
17079 * gencmdlist.sh: Moved ...
17080 * grub-core/gencmdlist.sh: ... to here.
17081 * genemuinit.sh: Moved ...
17082 * grub-core/genemuinit.sh: ... to here.
17083 * genemuinitheader.sh: Moved ...
17084 * grub-core/genemuinitheader.sh: ... to here.
17085 * genfslist.sh: Moved ...
17086 * grub-core/genfslist.sh: ... to here.
17087 * genhandlerlist.sh: Moved ...
17088 * grub-core/genhandlerlist.sh: ... to here.
17089 * genmoddep.awk: Moved ...
17090 * grub-core/genmoddep.awk: ... to here.
17091 * genmodsrc.sh: Moved ...
17092 * grub-core/genmodsrc.sh: ... to here.
17093 * genpartmaplist.sh: Moved ...
17094 * grub-core/genpartmaplist.sh: ... to here.
17095 * genparttoollist.sh: Moved ...
17096 * grub-core/genparttoollist.sh: ... to here.
17097 * genterminallist.sh: Moved ...
17098 * grub-core/genterminallist.sh: ... to here.
17099 * gentrigtables.c: Moved ...
17100 * grub-core/gentrigtables.c: ... to here.
17101 * genvideolist.sh: Moved ...
17102 * grub-core/genvideolist.sh: ... to here.
17103 * gettext: Moved ...
17104 * grub-core/gettext: ... to here.
17105 * gfxmenu: Moved ...
17106 * grub-core/gfxmenu: ... to here.
17107 * gnulib: Moved ...
17108 * grub-core/gnulib: ... to here.
17109 * hello: Moved ...
17110 * grub-core/hello: ... to here.
17111 * hook: Moved ...
17112 * grub-core/hook: ... to here.
17113 * io: Moved ...
17114 * grub-core/io: ... to here.
17115 * kern: Moved ...
17116 * grub-core/kern: ... to here.
17117 * lib: Moved ...
17118 * grub-core/lib: ... to here.
17119 * loader: Moved ...
17120 * grub-core/loader: ... to here.
17121 * mmap: Moved ...
17122 * grub-core/mmap: ... to here.
17123 * normal: Moved ...
17124 * grub-core/normal: ... to here.
17125 * partmap: Moved ...
17126 * grub-core/partmap: ... to here.
17127 * parttool: Moved ...
17128 * grub-core/parttool: ... to here.
17129 * script: Moved ...
17130 * grub-core/script: ... to here.
17131 * term: Moved ...
17132 * grub-core/term: ... to here
17133 * tests/example_functional_test.c: Moved ...
17134 * grub-core/tests/example_functional_test.c: ... to here.
17135 * tests/lib/functional_test.c: Moved ...
17136 * grub-core/tests/lib/functional_test.c: ... to here.
17137 * tests/lib/test.c: Moved ...
17138 * grub-core/tests/lib/test.c: ... to here.
17139 * video: Moved ...
17140 * grub-core/video: ... to here.
17141
17142 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17143
17144 Replace --enable-grub-emu-modules with grub-emu-lite.
17145
17146 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17147 cache.S.
17148
17149 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17150 * kern/emu/full.c: New file. For grub-emu specific initialization.
17151 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17152 * kern/emu/main.c: Call initialization function grub_emu_init.
17153
17154 * Makefile.in: Include grub-emu-lite in install.
17155 * commands/parttool.c: Use grub_no_autoload to differentiate
17156 between grub-emu and grub-emu-lite.
17157 * include/grub/misc.h: New variable grub_no_autoload.
17158
17159 * conf/any-emu.rmk: New rules for grub-emu-lite.
17160 * configure.ac: Remove --enable-grub-emu-modules.
17161 * genmk.rb: Cleanup unnecessary rules.
17162 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17163
17164 * normal/main.c: Don't load list files on grub-emu-lite.
17165 * util/misc.c (grub_arch_sync_caches): Removed.
17166
17167 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17168
17169 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17170 grub-mkimage rather than grub-mkelfimage.
17171 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17172
17173 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17174
17175 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17176 a key after CapsLock or NumLock. It's just a qemu bug.
17177
17178 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17181 needed by libusb wrapper.
17182
17183 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17184
17185 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17186
17187 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17188
17189 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17190 --nounzip is passed.
17191
17192 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17193
17194 USB hotunplugging and USB serial support.
17195
17196 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17197 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17198 (grub_uhci_transfer): Respect timeout and set *actual.
17199 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17200 non-standard length.
17201 (grub_usb_device_attach): Autoload modules.
17202 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17203 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17204 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17205 users updated.
17206 (grub_usb_add_hub): Fill nports and children.
17207 (attach_root_port): Receive hub instead of controller.
17208 All users updated. Fill hub->devices.
17209 (grub_usb_root_hub): Allocate hub->devices.
17210 (detach_device): New function.
17211 (poll_nonroot_hub): Fill children and detach devices.
17212 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17213 actual arguments. All users updated.
17214 (grub_usb_bulk_read_extended): New function.
17215 * bus/usb/serial/common.c: New file.
17216 * bus/usb/serial/ftdi.c: Likewise.
17217 * bus/usb/serial/pl2303.c: Likewise.
17218 * commands/terminal.c (handle_command): Support wildcard.
17219 * commands/usbtest.c: Output "Unknown" instead of empty string.
17220 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17221 (usbserial_common_mod_SOURCES): New variable.
17222 (usbserial_common_mod_CFLAGS): Likewise.
17223 (usbserial_common_mod_LDFLAGS): Likewise.
17224 (pkglib_MODULES): Add usbserial_pl2303.mod.
17225 (usbserial_pl2303_mod_SOURCES): New variable.
17226 (usbserial_pl2303_mod_CFLAGS): Likewise.
17227 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17228 (pkglib_MODULES): Add usbserial_ftdi.mod.
17229 (usbserial_ftdi_mod_SOURCES): New variable.
17230 (usbserial_ftdi_mod_CFLAGS): Likewise.
17231 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17232 (pkglib_MODULES): Add serial.mod.
17233 (serial_mod_SOURCES): New variable.
17234 (serial_mod_CFLAGS): Likewise.
17235 (serial_mod_LDFLAGS): Likewise.
17236 * conf/i386-pc.rmk: Likewise.
17237 * conf/mips-yeeloong.rmk: Likewise.
17238 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17239 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17240 * disk/usbms.c (first_available_slot): New variable.
17241 (grub_usbms_attach): Don't reuse free slots due to potential cache
17242 problems.
17243 * include/grub/serial.h: Moved to ..
17244 * include/grub/ns8250.h: ...this.
17245 * include/grub/serial.h: New file.
17246 * include/grub/term.h (grub_term_poll_usb): New variable.
17247 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17248 readkey. All users updated.
17249 (grub_terminfo_output_state): Pass term to put.
17250 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17251 (grub_usb_controller_dev): Add timeout and actual arguments to
17252 transfer. All users updated.
17253 (grub_usb_interface): New field detach_data.
17254 (grub_usb_device): New fields children and nports.
17255 (grub_usb_ep_type_t): New type.
17256 (grub_usb_get_ep_type): New function.
17257 (grub_usb_bulk_read_extended): Likewise.
17258 * include/grub/usbdesc.h (grub_usb_desc): New type.
17259 * include/grub/usbserial.h: New file.
17260 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17261 * kern/term.c (grub_term_poll_usb): New variable.
17262 (grub_getkey): Call grub_term_poll_usb if set.
17263 (grub_checkkey): Likewise.
17264 (grub_getkeystatus): Likewise.
17265 * term/serial.c: Moved controller-specific parts to ...
17266 * term/ns8250.c: ... here.
17267 * term/serial.c: Mostly rewritten.
17268 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
17269 according to spec.
17270
17271 2010-08-20 Robert Millan <rmh@gnu.org>
17272
17273 Make kFreeBSD code more generic to support ext2fs as root, ufs as
17274 a separate module and maybe other interesting combinations.
17275
17276 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
17277 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
17278 (kfreebsd_entry): Add generic filesystem module load routine.
17279 Map GRUB `ext2' to kFreeBSD `ext2fs'.
17280
17281 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17282
17283 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
17284 "numcenter" (I misunderstood the purpose of this entry).
17285 * docs/grub.texi (sendkey): Likewise.
17286
17287 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17288
17289 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
17290 status flag options; simply omitting the option is equivalent and
17291 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
17292 (keysym_table): Rename "num5numlock" to "numlock".
17293 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
17294 can uniformly say that only the last of multiple `sendkey'
17295 invocations has any effect.
17296 * docs/grub.texi (sendkey): New section.
17297
17298 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
17299
17300 * commands/i386/pc/sendkey.c (options): Fix three typos.
17301
17302 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17303
17304 Implement sendkey support.
17305
17306 * commands/i386/pc/sendkey.c: New file.
17307 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
17308 (sendkey_mod_SOURCES): New variable.
17309 (sendkey_mod_CFLAGS): Likewise.
17310 (sendkey_mod_LDFLAGS): Likewise.
17311
17312 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17313
17314 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
17315 fix warnings from Autoconf.
17316
17317 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17318
17319 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
17320 to avoid false positives with some assemblers that output things
17321 like "someprefix_func" as part of their output.
17322
17323 2010-08-15 Robert Millan <rmh@gnu.org>
17324
17325 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
17326 errors.
17327 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
17328 grub_get_libzfs_handle() errors.
17329
17330 2010-08-14 Robert Millan <rmh@gnu.org>
17331
17332 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
17333 filesystem is not ZFS.
17334
17335 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17336
17337 Fix for misspelled color names defaulting to black/black (bug
17338 reported by Doug Nazar)
17339
17340 * include/grub/normal.h (grub_parse_color_name_pair): Add return
17341 status to prototype.
17342 * normal/color.c (grub_parse_color_name_pair): Return failure
17343 status.
17344 (grub_env_write_color_normal): Ignore bad color names.
17345 (grub_env_write_color_highlight): Likewise.
17346 * normal/main.c (GRUB_MOD_INIT): Set default color names.
17347
17348 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17349
17350 "shift" command support to GRUB script.
17351
17352 * include/grub/script_sh.h (grub_script_shift): New prototype.
17353 * script/execute.c (grub_script_shift): New function.
17354 * script/main.c (grub_script_init): Register shift command.
17355 (grub_script_fini): Unregister shift command.
17356 * util/grub-script-check.c (grub_script_cmd_shift): New function.
17357
17358 * tests/grub_script_shift.in: New testcase.
17359 * conf/tests.rmk: Rules for new testcase.
17360
17361 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17362
17363 "continue" command support to GRUB script.
17364
17365 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
17366 (grub_script_break): Continue support.
17367 * script/main.c (grub_script_init): Register continue command.
17368 (grub_script_fini): Unregister continue command.
17369
17370 * tests/grub_script_continue.in: New testcase.
17371 * conf/tests.rmk: Rules for new testcase.
17372
17373 2010-08-12 BVK Chaitanya <bvk@dbook>
17374
17375 "break" command support to GRUB script.
17376
17377 * conf/common.rmk: Rule updates to grub-script-check.
17378 * include/grub/misc.h (grub_min): New function.
17379 * include/grub/script_sh.h (grub_script_init): New prototype.
17380 (grub_script_fini): New prototype.
17381 (grub_script_break): New prototype.
17382 * script/main.c (grub_script_init): New function.
17383 (grub_script_fini): New function.
17384 * script/execute.c (grub_script_break): New function.
17385 * normal/main.c: Calls to grub_script_{init,fini}.
17386 * util/grub-script-check.c (grub_script_break): New function.
17387
17388 * tests/grub_script_break.in: New testcase.
17389 * conf/tests.rmk: Rules for new test case.
17390
17391 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17392
17393 Function parameters support to GRUB script.
17394
17395 * script/yylex.l (VARIABLE): Regular expression update.
17396 * script/function.c (grub_script_function_call): Moved ...
17397 * script/execute.c (grub_script_function_call): ... to here.
17398 (grub_script_execute_arglist_to_argv): Removed.
17399 (grub_script_arglist_to_argv): New function.
17400 * script/argv.c: New file.
17401 (grub_script_argv_free): New function.
17402 (grub_script_argv_next): Likewise.
17403 (grub_script_argv_append): Likewise.
17404 (grub_script_argv_split_append): Likewise.
17405 * include/grub/script_sh.h (grub_script_argv): New struct.
17406 (grub_script_argv_free): New function.
17407 (grub_script_argv_next): Likewise.
17408 (grub_script_argv_append): Likewise.
17409 (grub_script_argv_split_append): Likewise.
17410
17411 * conf/common.rmk (normal.mod): New source script/argv.c.
17412
17413 * tests/grub_script_echo1.in: More tests.
17414 * tests/grub_script_vars1.in: Likewise.
17415 * tests/grub_script_functions.in: New test case.
17416 * conf/tests.rmk: Rules for new testcase.
17417
17418 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17419
17420 Remove grub_script_cmdblock struct.
17421
17422 * include/grub/script_sh.h: Remove grub_script_cmdblock.
17423 * script/parser.y: Likewise.
17424 * script/execute.c: Rename cmdblock suffix to cmdlist.
17425 * script/script.c: Likewise.
17426 * util/grub-script-check.c: Likewise.
17427
17428 2010-08-11 Yves Blusseau <blusseau@zetam.org>
17429
17430 * .bzrignore: add grub-macho2img
17431
17432 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
17435
17436 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17437
17438 Remove the dump of sm712 initialisation sequence.
17439
17440 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
17441 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
17442 (GRUB_VGA_IO_MISC_WRITE): Likewise.
17443 (GRUB_VGA_CR_*): Added many registers.
17444 (GRUB_VGA_SR_*): Likewise.
17445 (GRUB_VGA_GR_*): Likewise.
17446 (grub_vga_write_arx): New function.
17447 (grub_video_hw_config): New struct.
17448 (grub_vga_set_geometry): New function.
17449 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
17450 GRUB_PCI_CLASS_SUBCLASS_VGA.
17451 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
17452 * video/sm712.c (grub_sm712_write_reg): New function
17453 (grub_sm712_read_reg): Likewise.
17454 (grub_sm712_sr_write): Likewise.
17455 (grub_sm712_gr_write): Likewise.
17456 (grub_sm712_cr_write): Likewise.
17457 (grub_sm712_write_arx): Likewise.
17458 (grub_sm712_cr_shadow_write): Likewise.
17459 (grub_sm712_write_dda_lookup): Likewise.
17460 (grub_video_sm712_setup): Initialise the video rather then
17461 blindly replay the dump.
17462 (main) [TEST]: Add a routine to be able to compile as standalone for
17463 tests.
17464 * video/sm712_init.c (sm712_init): Removed.
17465 (sm712_sr_seq1): New array.
17466 (sm712_sr_seq2): Likewise.
17467
17468 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17469
17470 * include/grub/vga.h: Add missing grub/pci.h include.
17471
17472 2010-08-10 Yves Blusseau <blusseau@zetam.org>
17473
17474 * util/grub-macho2img.c (main): fix typo
17475
17476 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17477
17478 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
17479 (grub_vga_gr_read): Likewise.
17480 (grub_vga_cr_write): Likewise.
17481 (grub_vga_cr_read): Likewise.
17482 (grub_vga_sr_write): Likewise.
17483 (grub_vga_sr_read): Likewise.
17484 (grub_vga_palette_read): Likewise.
17485 (grub_vga_palette_write): Likewise.
17486 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
17487 (grub_sm712_sr_read): New function.
17488 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
17489 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
17490
17491 2010-08-09 Robert Millan <rmh@gnu.org>
17492
17493 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
17494 out unused variables on non-ZFS build.
17495
17496 2010-08-08 Robert Millan <rmh@gnu.org>
17497
17498 Fix path generation for sub-filesystems in ZFS.
17499
17500 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
17501 missing slash.
17502
17503 2010-08-08 Robert Millan <rmh@gnu.org>
17504
17505 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
17506
17507 2010-08-08 Robert Millan <rmh@gnu.org>
17508
17509 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
17510 exist, issue a proper error message (rely on `ls' for translated
17511 strings).
17512
17513 2010-08-08 Robert Millan <rmh@gnu.org>
17514
17515 Fix grub-probe invocation.
17516
17517 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
17518
17519 2010-08-04 Robert Millan <rmh@gnu.org>
17520
17521 * configure.ac: Remove checks for getfsstat() and getmntany().
17522 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
17523 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
17524 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
17525 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
17526 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
17527 function.
17528 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
17529 via find_mount_point_from_dir() and getfsstat() / getmntany().
17530
17531 2010-08-04 Robert Millan <rmh@gnu.org>
17532
17533 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17534 (grub_find_zpool_from_mount_point): Merge into ...
17535 (grub_find_zpool_from_dir): ... this.
17536 * kern/emu/misc.c: Likewise.
17537
17538 * kern/emu/misc.c
17539 (grub_make_system_path_relative_to_its_root): Replace
17540 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
17541 with grub_find_zpool_from_dir().
17542 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
17543
17544 2010-08-04 Robert Millan <rmh@gnu.org>
17545
17546 Support OpenSolaris in ZFS device resolution.
17547
17548 * configure.ac: Check for getmntany().
17549 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
17550 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
17551 support.
17552
17553 2010-08-03 Robert Millan <rmh@gnu.org>
17554
17555 Fix grub-emu build.
17556
17557 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
17558 * include/grub/emu/misc.h: ... here.
17559
17560 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
17561 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
17562
17563 * util/misc.c: Remove `<grub/util/libzfs.h>'.
17564 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
17565 (grub_get_libzfs_handle): Move to ...
17566 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
17567 (grub_get_libzfs_handle): ... here.
17568
17569 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
17570
17571 * script/execute.c (grub_script_execute_cmdline): Check for NULL
17572 as command name case.
17573
17574 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
17575
17576 * disk/raid.c (insert_array): Select unique numbers for named arrays
17577 as well, for use as keys in the disk cache.
17578
17579 2010-08-01 Robert Millan <rmh@gnu.org>
17580
17581 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
17582 kFreeBSD device name, except on ZFS where the filesystem label is
17583 used.
17584 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
17585 `/boot/zfs/zpool.cache'.
17586 Set mountfrom kernel variable using ${kfreebsd_device}.
17587
17588 2010-08-01 Robert Millan <rmh@gnu.org>
17589
17590 Make it even harder to use uninitialized `libzfs_handle' (and
17591 make the interface a bit simpler).
17592
17593 * include/grub/util/misc.h (grub_util_init_libzfs)
17594 (libzfs_handle): Remove.
17595 (grub_get_libzfs_handle): New prototype.
17596
17597 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
17598 attribute.
17599 (grub_util_init_libzfs): Remove.
17600 (grub_get_libzfs_handle): New function.
17601
17602 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
17603 grub_get_libzfs_handle() to obtain a libzfs handle instead of
17604 accessing `libzfs_handle' directly.
17605
17606 2010-08-01 Robert Millan <rmh@gnu.org>
17607
17608 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17609 (grub_find_zpool_from_mount_point): New function prototypes.
17610
17611 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17612 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17613
17614 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17615 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17616 `static' attribute.
17617
17618 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17619 finding zpool from mount point into ...
17620 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17621
17622 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17623 requested path is part of a ZFS pool, use
17624 grub_find_zpool_from_mount_point() to detect its filesystem name,
17625 and generate a path with `/fsname@path' syntax.
17626
17627 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17628
17629 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
17630 (void) rather than () so that this is a proper prototype.
17631
17632 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17633
17634 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
17635
17636 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
17639 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
17640
17641 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17642
17643 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
17644
17645 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17646
17647 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
17648
17649 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17650
17651 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
17652 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
17653 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
17654 disable gfxpayload.
17655 (Shell-like scripting): Add real content.
17656 (Serial terminal): Suggest `terminal_input serial; terminal_output
17657 serial' rather than putting the two commands on separate lines,
17658 since console input will be inoperative after the first command.
17659 (menuentry): Document --class, --users, and --hotkey options.
17660 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
17661 Vladimir Serbinenko).
17662
17663 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17664 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17665
17666 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
17667
17668 2010-08-01 Robert Millan <rmh@gnu.org>
17669
17670 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17671 (grub_find_zpool_from_mount_point): New function prototypes.
17672
17673 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17674 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17675
17676 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17677 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17678 `static' attribute.
17679
17680 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17681 finding zpool from mount point into ...
17682 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17683
17684 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17685 requested path is part of a ZFS pool, use
17686 grub_find_zpool_from_mount_point() to detect its filesystem name,
17687 and generate a path with `/fsname@path' syntax.
17688
17689 2010-08-01 Robert Millan <rmh@gnu.org>
17690
17691 Prevent accidental use of uninitialized libzfs_handle.
17692
17693 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
17694 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
17695 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
17696
17697 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17698
17699 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
17700 util/grub.d/10_linux.in). Fixes Debian bug #591093.
17701
17702 2010-08-01 Robert Millan <rmh@gnu.org>
17703
17704 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
17705
17706 2010-07-31 Robert Millan <rmh@gnu.org>
17707
17708 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
17709
17710 2010-07-31 Robert Millan <rmh@gnu.org>
17711
17712 * kern/emu/misc.c: Add missing license header.
17713
17714 2010-07-31 Robert Millan <rmh@gnu.org>
17715
17716 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
17717
17718 * include/grub/util/libnvpair.h: Include `<config.h>'.
17719 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
17720 declaring libnvpair prototypes ourselves.
17721 * include/grub/util/libzfs.h: Include `<config.h>'.
17722 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
17723 declaring libzfs prototypes ourselves.
17724
17725 (libzfs_handle): Moved to ...
17726 * include/grub/util/misc.h (libzfs_handle): ... here.
17727 Include `<grub/util/libzfs.h>'.
17728
17729 2010-07-30 Robert Millan <rmh@gnu.org>
17730
17731 * include/grub/emu/misc.h: Add missing license header.
17732
17733 2010-07-30 Robert Millan <rmh@gnu.org>
17734
17735 Enable `grub-probe -t device' resolution on ZFS.
17736
17737 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
17738 * include/grub/util/libnvpair.h: New file.
17739 * include/grub/util/libzfs.h: New file.
17740
17741 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
17742 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
17743 `<grub/util/libnvpair.h>'.
17744 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
17745
17746 (find_mount_point_from_dir): New static function.
17747 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
17748 function.
17749 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
17750 find_root_device_from_libzfs() before ressorting to find_root_device().
17751
17752 * include/grub/util/misc.h (grub_util_init_libzfs): New function
17753 prototype.
17754 * util/misc.c: Include `<grub/util/libzfs.h>'.
17755 (grub_util_init_libzfs): New function.
17756 [HAVE_LIBZFS] (libzfs_handle): New global variable.
17757 [HAVE_LIBZFS] (fini_libzfs): New static function.
17758 (grub_util_init_libzfs): New function.
17759 * util/grub-probe.c (main): Call grub_util_init_libzfs().
17760
17761 2010-07-30 Robert Millan <rmh@gnu.org>
17762
17763 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
17764 (xmalloc, xrealloc, xstrdup, xasprintf): Add
17765 `warn_unused_result' attribute.
17766 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
17767 (grub_xasprintf, grub_xvasprintf): Likewise.
17768 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
17769
17770 2010-07-29 Robert Millan <rmh@gnu.org>
17771
17772 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
17773 (probe): Handle `PRINT_FS_LABEL'.
17774 (main): Handle `-t fs_label'.
17775
17776 2010-07-29 Robert Millan <rmh@gnu.org>
17777
17778 * configure.ac: Remove grub-mkisofs checks.
17779
17780 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17781
17782 * util/ieee1275/grub-install.in: Don't use empty grub_device.
17783 Reported by: Lennart Sorensen.
17784
17785 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17786
17787 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
17788 prior to terminal_input/terminal_output separation. It's been over 1.5
17789 years and those versions weren't widely deployed.
17790
17791 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
17792
17793 * disk/raid.c (insert_array): Don't count named arrays when looking
17794 for unused array numbers.
17795 Reported and tested by: Michael Guntsche.
17796
17797 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17798
17799 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
17800 implementation of this so that grub-emu links again, with a note
17801 that this should support hotplugging in the future.
17802
17803 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17804
17805 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
17806
17807 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17808
17809 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
17810 handle on failure.
17811 (grub_loopback_close): Remove empty function.
17812 (grub_loopback_dev): Remove close method.
17813
17814 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17815
17816 Disable EFI cursor when the EFI console becomes inactive.
17817
17818 * term/efi/console.c (grub_efi_console_init): New function.
17819 (grub_efi_console_fini): New function.
17820 (grub_console_term_output): Register init and fini methods.
17821
17822 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17823
17824 * tests/util/grub-shell-tester.in: Remove bashism and declare as
17825 sh script.
17826
17827 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17828
17829 * disk/loopback.c (grub_loopback): Replace filename with file.
17830 (delete_loopback): Handle new semantics.
17831 (grub_cmd_loopback): Likewise.
17832 (grub_loopback_iterate): Likewise.
17833 (grub_loopback_close): Likewise.
17834
17835 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
17838 with -p "".
17839 Reported by: Tito Keitel.
17840
17841 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17842
17843 * docs/grub.texi (Naming convention): Document new naming convention.
17844
17845 2010-07-20 Vadim Solomin <vadic052@gmail.com>
17846 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17847
17848 Generate device.map in something closer to the old ordering.
17849
17850 * util/deviceiter.c (struct device): New declaration.
17851 (compare_file_names): Rename to ...
17852 (compare_devices): ... this. Sort by kernel name in preference to
17853 the stable by-id name, but keep the latter as a fallback comparison.
17854 Update header comment.
17855 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
17856 of `struct device' rather than of plain file names.
17857
17858 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
17859
17860 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
17861 on i386.
17862
17863 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 * commands/acpi.c (setup_common_tables): Use sizeof instead of
17866 hardcoding size.
17867 (setv1table): Likewise.
17868
17869 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17870
17871 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
17872 removing the homehost if present.
17873 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
17874 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
17875 removing the homehost if present.
17876 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
17877 if possible.
17878 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
17879
17880 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
17881 parameter. Set its pointer target to 0.
17882 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
17883 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
17884 `data_offset' value from the superblock for 1.x metadata.
17885 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
17886 data on the device.
17887 (insert_array): Record the start sector of data on the device.
17888 (grub_raid_register): Pass start_sector parameters to
17889 grub_raid_list->detect and insert_array.
17890 * include/grub/raid.h (struct grub_raid_array): Add start_sector
17891 member.
17892 (struct grub_raid): Add start_sector parameter to `detect'.
17893
17894 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
17895 __attribute__ ((packed)), leaving a comment.
17896 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
17897 (grub_mdraid_detect_09): ... here and ...
17898 (grub_mdraid_detect_1x): ... here.
17899
17900 2010-07-20 Peter Henn <peter.henn@web.de>
17901
17902 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
17903 chunk size and disk size, which are already given as sector counts
17904 as distinct from the 0.90 units. Fetch the correct device number
17905 from the role table instead of using the table index.
17906
17907 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
17908
17909 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
17910 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
17911 (WriteMostly1): New macro.
17912 Set array->name to NULL for metadata format 0.90. Add support for
17913 metadata 1.x. Fix some comments.
17914 * disk/raid.c (): Add support for name based RAID arrays. Fix a
17915 few comments.
17916 * util/getroot.c (grub_util_get_grub_dev): Add support for
17917 /dev/md/name style devices.
17918
17919 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17920
17921 * .bzrignore: Ignore 20_linux_xen.
17922
17923 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
17924
17925 * util/import_unicode.py: Remove unnecessary imports.
17926
17927 2010-07-17 Aleš Nesrsta <starous@volny.cz>
17928
17929 Hotplugging and USB hub support.
17930
17931 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
17932 (grub_ohci): Likewise.
17933 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
17934 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
17935 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
17936 (GRUB_OHCI_CTRL_EDS): Likewise.
17937 (GRUB_OHCI_BULK_EDS): Likewise.
17938 (GRUB_OHCI_TDS): Likewise.
17939 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
17940 (grub_ohci_ed_phys2virt): New function.
17941 (grub_ohci_virt_to_phys): Likewise.
17942 (grub_ohci_td_phys2virt): Likewise.
17943 (grub_ohci_td_virt2phys): Likewise.
17944 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
17945 attachment.
17946 (grub_ohci_find_ed): New function.
17947 (grub_ohci_alloc_td): Likewise.
17948 (grub_ohci_free_td): Likewise.
17949 (grub_ohci_free_tds): Likewise.
17950 (grub_ohci_transfer): Use previously allocated memory.
17951 (grub_ohci_portstatus): Reset status changed bit.
17952 (grub_ohci_detect_dev): Supply status changed.
17953 (grub_ohci_fini_hw): Free memory.
17954 (grub_ohci_restore_hw): Reallocate memory.
17955 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
17956 Reset status change.
17957 (grub_uhci_detect_dev): Supply status_change.
17958 * bus/usb/usb.c (attach_hooks): New var.
17959 (grub_usb_device_attach): New function.
17960 (grub_usb_register_attach_hook_class): Likewise.
17961 (grub_usb_unregister_attach_hook_class): Likewise.
17962 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
17963 (grub_usb_add_hub): Reset connection changed bit.
17964 (attach_root_port): New function.
17965 (grub_usb_root_hub): Likewise.
17966 (poll_nonroot_hub): Likewise.
17967 (grub_usb_poll_devices): Likewise.
17968 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
17969 * disk/usbms.c (grub_usbms_open): Use device hooks.
17970 (grub_usbms_iterate) :Poll devices.
17971 (grub_usbms_finddevs): Split into ...
17972 (grub_usbms_attach): ... this ...
17973 (grub_usbms_attach): ... and this.
17974 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
17975 in detect_dev.
17976 (grub_usb_interface): New fields attached and detach_hook.
17977 (grub_usb_attach_hook_class): New type.
17978 (grub_usb_attach_desc): New struct.
17979 (grub_usb_register_attach_hook_class): New function.
17980 (grub_usb_unregister_attach_hook_class): Likewise.
17981 (grub_usb_poll_devices): Likewise.
17982 (grub_usb_device_attach): Likewise.
17983 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
17984 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
17985
17986 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17987
17988 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
17989 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
17990 delta determination style. Works with most NetBSD partitions too.
17991
17992 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17993
17994 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
17995 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
17996
17997 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17998
17999 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18000
18001 2010-07-14 Anton Blanchard <anton@samba.org>
18002
18003 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18004 ET_DYN files.
18005
18006 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18007
18008 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18009
18010 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18011
18012 * kern/partition.c (grub_partition_check_containment): New function to
18013 check that a partition is physically contained in a parent. Since
18014 offsets are relative (and non-negative), this reduces to checking that
18015 the partition ends before its parent.
18016 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18017 (grub_partition_iterate): Likewise.
18018 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18019 comments.
18020 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18021 partitions that start before their parent, and add debug printfs.
18022
18023 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18024
18025 * Makefile.in (.SUFFIX): Spell correctly, as ...
18026 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18027 bare module name without `.mod', e.g. `test') tried to invoke a
18028 Modula-2 compiler.
18029
18030 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18031
18032 * README: Point to the Info manual.
18033
18034 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18035
18036 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18037 2nd superblock position from partition size.
18038
18039 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18040
18041 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18042 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18043 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18044 outputs.
18045
18046 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18047
18048 Restructure SCSI .id handling.
18049 Reported and tested by: Aleš Nesrsta.
18050
18051 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18052 (grub_atapi_dev): Changed .name to "ata". New field .id.
18053 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18054 (grub_usbms_dev): New field .id.
18055 * disk/scsi.c (grub_scsi_iterate): Generate name.
18056 (grub_scsi_open): Parse name.
18057 * include/grub/scsi.h (grub_make_scsi_id): New function.
18058 (grub_scsi_dev): Change iterate and open to number instead of naming
18059 busses. All users updated.
18060 (grub_scsi): Remove name. Add .bus.
18061
18062 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18063
18064 * commands/help.c (grub_cmd_help): Fix a typo.
18065
18066 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18067
18068 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18069 Reported and tested by: Colin Watson.
18070
18071 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18072
18073 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18074 in this context.
18075
18076 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18079
18080 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18081
18082 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18083 indentation.
18084
18085 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18086
18087 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18088 and disk/raid6_recover.c.
18089 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18090 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18091
18092 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18093
18094 * term/gfxterm.c (repaint_schedulded): Rename to ...
18095 (repaint_scheduled): ... this. Update all callers.
18096 (repaint_was_schedulded): Rename to ...
18097 (repaint_was_scheduled): ... this. Update all callers.
18098
18099 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18100
18101 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18102 which we expect to be handled by upper layers.
18103
18104 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18105
18106 * bus/usb/usbhub.c: #include time.h header.
18107
18108 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18109
18110 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18111 entry_name also for entries without stat blocks (e.g. ".."); fixes
18112 corruption of the first entry in a directory.
18113
18114 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18115
18116 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18117 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18118 doesn't work otherwise.
18119
18120 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18121
18122 * docs/grub.texi (Features): Update list of supported file systems.
18123 (GNU/Linux): Update for GRUB 2.
18124 (Serial terminal): Remove mention of --disable-serial, which was a
18125 GRUB Legacy configure option. Update instructions to use
18126 `terminal_input' and `terminal_output' rather than `terminal'.
18127 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18128 configuration' and `Installing GRUB using grub-install'.
18129 (Menu entry editor): Update for GRUB 2.
18130 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18131 Document new -a, -u, and -v options.
18132 (initrd): New section.
18133 (initrd16): New section.
18134 (linux): New section.
18135 (linux16): New section.
18136 (search): The `var' argument to `--set' is optional.
18137 (GRUB only offers a rescue shell): Go into a little more detail on
18138 drive ordering.
18139
18140 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18141
18142 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18143
18144 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18145
18146 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18147 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18148
18149 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18150
18151 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18152 install_prefix, in line with install_dos_part and install_bsd_part.
18153 Add new prefix variable, which is copied to install_prefix after
18154 comparing core.img in memory with the one read from disk in the
18155 no-embedding case, and use that rather than overwriting
18156 install_prefix immediately when installing to a partition.
18157 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18158 Bicakci.
18159
18160 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18161
18162 * configure.ac: Avoid == in test command, it's not portable.
18163 * util/grub.d/30_os-prober.in: Likewise.
18164
18165 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18166
18167 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18168
18169 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18170
18171 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18172 multiple (top-level) partmaps.
18173
18174 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18175
18176 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18177 Reported by: Tino Keitel.
18178
18179 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18180
18181 Bidi and diacritics support.
18182
18183 * Makefile.in (widthspec.bin): New target.
18184 (widthspec.h): Likewise.
18185 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18186 * autogen.sh: Generate unidata.c.
18187 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18188 * commands/ls.c (grub_ls_list_devices): Likewise.
18189 (grub_ls_list_files): Likewise.
18190 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18191 (grub_mini_cmd_lsmod): Likewise.
18192 * commands/read.c: Likewise.
18193 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18194 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18195 * lib/arg.c (grub_arg_show_help): Likewise.
18196 * lib/crypto.c (grub_password_get): Likewise.
18197 * normal/auth.c (grub_username_get): Likewise.
18198 * normal/misc.c (grub_normal_print_device_info): Likewise.
18199 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18200 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18201 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18202 (normal/charset.c_DEPENDENCIES): New variable.
18203 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18204 (pkglib_MODULES): Remove charset.mod.
18205 (charset_mod_SOURCES): Removed.
18206 (charset_mod_CFLAGS): Likewise.
18207 (charset_mod_LDFLAGS): Likewise.
18208 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18209 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18210 and term/tparm.c.
18211 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18212 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18213 (kernel_img_HEADERS): Add terminfo.h.
18214 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18215 Fill ->font. Reverse ascii bitmaps.
18216 (grub_font_get_xheight): New function.
18217 * font/font.c (grub_font_get_string_width): Moved from here ...
18218 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18219 * font/font.c (grub_font_draw_string): Moved from here ...
18220 * gfxmenu/font.c (grub_font_draw_string): ... here.
18221 * font/font.c (grub_font_dup_glyph): New function.
18222 (grub_font_blit_glyph): Likewise.
18223 (grub_font_blit_glyph_mirror): Likewise.
18224 (blit_comb): Likewise.
18225 (grub_font_construct_dry_run): Likewise.
18226 (grub_font_get_constructed_device_width): Likewise.
18227 (grub_font_construct_glyph): Likewise.
18228 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18229 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18230 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18231 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18232 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18233 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18234 (grub_font_get_xheight): New proto.
18235 (grub_font_get_constructed_device_width): Likewise.
18236 (grub_font_construct_glyph): Likewise.
18237 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18238 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18239 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18240 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18241 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18242 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18243 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18244 (grub_console_getcharwidth): Likewise.
18245 * include/grub/misc.h (grub_xputs): New proto.
18246 (grub_puts): Inlined.
18247 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18248 (grub_normal_get_line_counter): Removed.
18249 (grub_install_newline_hook): Likewise.
18250 (grub_normal_get_char_counter): New proto.
18251 (grub_normal_reset_more): Likewise.
18252 (grub_xputs_normal): Likewise.
18253 * include/grub/powerpc/ieee1275/console.h: Removed.
18254 * include/grub/sparc64/ieee1275/console.h: Likewise.
18255 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18256 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18257 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18258 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18259 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18260 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18261 (grub_term_input): Pass reference to self. All users updated.
18262 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18263 Pass reference to self. New fields normal_color, highlight_color and
18264 data. All users updated.
18265 (grub_putchar): Removed.
18266 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
18267 (grub_unicode_estimate_width): New function.
18268 (grub_term_getcharwidth): Add defaults.
18269 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
18270 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
18271 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
18272 (grub_cls): Remove EXPORT_FUNC.
18273 (grub_setcolorstate): Inline.
18274 (grub_newline_hook): Removed.
18275 * include/grub/terminfo.h: Rewritten. All users updated.
18276 * include/grub/unicode.h: New file.
18277 * include/grub/video.h (grub_video_signed_rect): New type.
18278 * kern/emu/console.c (grub_console_highlight_color): Removed.
18279 (grub_console_normal_color): Likewise.
18280 (grub_console_standard_color): Made static.
18281 (grub_ncurses_putchar): Remove mapping.
18282 (grub_ncurses_getcharwidth): Removed.
18283 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18284 (grub_ncurses_setcolor): Removed.
18285 (grub_ncurses_getcolor): Likewise.
18286 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
18287 (grub_console_putchar): ... this.
18288 (grub_console_putchar): Handle argument difference.
18289 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
18290 console_init_early and console_init_lately.
18291 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
18292 * kern/misc.c (grub_puts): Removed.
18293 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
18294 (grub_vsnprintf_real): Remove str = NULL support.
18295 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
18296 * normal/charset.c (grub_utf8_to_ucs4): ... here.
18297 * kern/term.c (grub_putcode): Renamed to ...
18298 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
18299 (grub_putchar): Removed.
18300 (grub_xputs_dumb): New function.
18301 (grub_xputs): New variable.
18302 * lib/charset.c: Move from here ...
18303 * normal/charset.c: ... to here.
18304 (grub_ucs4_to_utf8): New function.
18305 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
18306 (join_types): New variable.
18307 (unpack_join): New function.
18308 (bidi_types): New variable.
18309 (unpack_bidi): New function.
18310 (get_bidi_type): Likewise.
18311 (get_join_type): Likewise.
18312 (is_mirrored): Likewise.
18313 (grub_unicode_get_comb_type): Likewise.
18314 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
18315 (is_type_after): Likewise.
18316 (grub_unicode_aglomerate_comb): Likewise.
18317 (bidi_line_wrap): Likewise.
18318 (grub_bidi_line_logical_to_visual): Likewise.
18319 (grub_bidi_logical_to_visual): Likewise.
18320 (grub_unicode_mirror_code): Likewise.
18321 (grub_unicode_shape_code): Likewise.
18322 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
18323 Don't use grub_putchar.
18324 * normal/main.c (grub_normal_init_page): Use grub_putcode.
18325 (grub_normal_reader_init): Likewise.
18326 (grub_xputs_saved): New variable.
18327 (GRUB_MOD_INIT): Set grub_xputs.
18328 (GRUB_MOD_FINI): Restore grub_xputs.
18329 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
18330 (menu_init): Avoid printing gfxmenu error.
18331 (show_menu): Use grub_normal_get_char_counter.
18332 * normal/menu_entry.c (update_screen): Fix out-of-array.
18333 (complete): Avoid NULL dereferencing.
18334 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
18335 * normal/menu_text.c (print_spaces): Removed.
18336 (grub_print_ucs4): Likewise.
18337 (grub_print_message_indented): Use grub_print_ucs4.
18338 (print_message): Use grub_putcode.
18339 (print_entry): Hanlde diacritics.
18340 * normal/term.c (term_state): New type.
18341 (grub_more_lines): Removed.
18342 (term_states): New variable.
18343 (grub_normal_line_counter): Renamed to ..
18344 (grub_normal_char_counter): ...this. All users updated.
18345 (grub_normal_get_line_counter): Renamed to ...
18346 (grub_normal_get_char_counter): ... this.
18347 (grub_normal_reset_more): New function.
18348 (process_newline): Removed.
18349 (print_more): New function.
18350 (grub_install_newline_hook): Removed.
18351 (map_code): New function.
18352 (grub_puts_terminal): Use grub_print_ucs4.
18353 (putglyph): New function.
18354 (putcode_real): Likewise.
18355 (grub_putcode): Use putcode_real.
18356 (get_maxwidth): New function.
18357 (get_startwidth): Likewise.
18358 (print_ucs4_terminal): Likewise.
18359 (find_term_state): Likewise.
18360 (put_glyphs_terminal): Likewise.
18361 (print_backlog): Likewise.
18362 (print_ucs4_real): Likewise.
18363 (grub_print_ucs4): Likewise.
18364 (grub_xputs_normal): Likewise.
18365 * term/efi/console.c (grub_console_putchar): Output diacritics.
18366 (grub_console_getcharwidth): Removed.
18367 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18368 * term/gfxterm.c (clear_char): Free chars.
18369 (scroll_up): Avoid leaking memory.
18370 (grub_gfxterm_putchar): Support diacritics.
18371 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18372 * term/i386/pc/console.c (grub_console_term_output): Declare as
18373 GRUB_TERM_CODE_TYPE_VGA.
18374 * term/i386/pc/vga.c (grub_vga_term): Declare as
18375 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
18376 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
18377 GRUB_TERM_CODE_TYPE_VGA.
18378 * term/i386/vga_common.c (map_char): Removed.
18379 (grub_console_putchar): Likewise.
18380 (grub_console_getcharwidth): Likewise.
18381 * term/ieee1275/ofconsole.c: Simplify using terminfo.
18382 (colors): Reordered to match terminfo.
18383 (grub_ofconsole_normal_color): Removed.
18384 (grub_ofconsole_writeesc): Likewise.
18385 (grub_ofconsole_highlight_color): Likewise.
18386 (grub_ofconsole_getcharwidth): Likewise.
18387 (grub_ofconsole_setcolorstate): Likewise.
18388 (grub_ofconsole_setcolor): Likewise.
18389 (grub_ofconsole_getcolor): Likewise.
18390 (grub_ofconsole_readkey): Renamed to ...
18391 (readkey): ... this. Remove escape sequence handling. Return -1 on no
18392 key.
18393 (grub_ofconsole_checkkey): Removed.
18394 (grub_ofconsole_getkey): Likewise.
18395 (grub_ofconsole_getxy): Likewise.
18396 (grub_ofconsole_gotoxy): Likewise.
18397 (grub_ofconsole_cls): Likewise.
18398 (grub_ofconsole_refresh): Likewise.
18399 (grub_ofconsole_terminfo_input): New struct.
18400 (grub_ofconsole_terminfo_output): Likewise.
18401 (grub_ofconsole_term_input): Use terminfo.
18402 (grub_ofconsole_term_output): Likewise.
18403 (grub_console_init): Split into ...
18404 (grub_console_init_early): ...this and ...
18405 (grub_console_init_lately): ...this. Use terminfo.
18406 (grub_ofconsole_putchar): Renamed to ...
18407 (put): ... this. Remove mapping.
18408 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18409 * term/serial.c: Simplify using terminfo.
18410 (xpos): Removed.
18411 (ypos): Likewise.
18412 (keep_track): Likewise.
18413 (registered): Likewise.
18414 (input_buf): Likewise.
18415 (npending): Likewise.
18416 (serial_translate_key_sequence): Likewise.
18417 (fill_input_buf): Likewise.
18418 (grub_serial_checkkey): Likewise.
18419 (grub_serial_getkey): Likewise.
18420 (grub_serial_getxy): Likewise.
18421 (grub_serial_gotoxy): Likewise.
18422 (grub_serial_putchar): Likewise.
18423 (grub_serial_cls): Likewise.
18424 (grub_serial_setcolorstate): Likewise.
18425 (grub_serial_setcursor): Likewise.
18426 (serial_hw_init): Use serial_hw_fetch.
18427 (grub_serial_terminfo_input): New variable.
18428 (grub_serial_terminfo_output): Likewise.
18429 (grub_serial_term_input): Use terminfo.
18430 (grub_serial_term_output): Likewise.
18431 * term/terminfo.c (putstr): Use put.
18432 (grub_terminfo_all_free): New function
18433 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
18434 (grub_terminfo_output_register): New function.
18435 (grub_terminfo_output_unregister): Likewise.
18436 (grub_terminfo_getxy): Likewise.
18437 (grub_terminfo_readkey): Likewise.
18438 (grub_terminfo_checkkey): Likewise.
18439 (grub_terminfo_getkey): Likewise.
18440 (grub_terminfo_input_init): Likewise.
18441 (print_terminfo): Likewise.
18442 (grub_cmd_terminfo): Handle encoding.
18443 (grub_terminfo_gotoxy): Track position.
18444 (grub_terminfo_cls): Likewise.
18445 (grub_terminfo_putchar): Likewise.
18446 (grub_terminfo_setcolorstate): Handle colors
18447 (grub_terminfo_cursor_on): This ...
18448 (grub_terminfo_cursor_off): ... and this merged into ...
18449 (grub_terminfo_setcursor): ... this.
18450 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
18451 * unicode/ArabicShaping.txt: New file (imported from Unicode).
18452 * unicode/BidiMirroring.txt: Likewise.
18453 * unicode/UnicodeData.txt: Likewise.
18454 * unicode/COPYING: Likewise.
18455 * util/grub-editenv.c (grub_putchar): Removed.
18456 (grub_xputs_real): New function.
18457 (grub_xputs): New variable.
18458 * util/grub-fstest.c (grub_putchar): Removed.
18459 (grub_xputs_real): New function.
18460 (grub_xputs): New variable.
18461 * util/grub-mkdevicemap.c (grub_putchar): Removed.
18462 (grub_xputs_real): New function.
18463 (grub_xputs): New variable.
18464 * util/grub-probe.c (grub_putchar): Removed.
18465 (grub_xputs_real): New function.
18466 (grub_xputs): New variable.
18467 * util/grub-script-check.c (grub_putchar): Removed.
18468 (grub_xputs_real): New function.
18469 (grub_xputs): New variable.
18470 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
18471 (grub_xputs_real): New function.
18472 (grub_xputs): New variable.
18473 * util/import_unicode.py: New file.
18474 * util/grub-mkfont.c (ft_errmsgs): New array.
18475 (grub_glyph_info): Make bitmap a pointer.
18476 (file_formats): New type WIDTH_SPEC.
18477 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
18478 (options): Add width-spec.
18479 (help): Likewise.
18480 (add_char): Renamed to ...
18481 (add_glyph): ... this.
18482 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
18483 (glyph_replace): New type.
18484 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
18485 (add_char): New function.
18486 (add_subst): Likewise.
18487 (process_cursive): Likewise.
18488 (add_font): Handle GSUB.
18489 (write_font_width_spec): New function.
18490 (main): Sort glyphs.
18491 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
18492 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
18493 * kern/term.c (grub_cls): Moved from here...
18494 * normal/term.c (grub_cls): ... here.
18495
18496 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18497
18498 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
18499 suitable for using within the format argument of printf when
18500 converting grub_size_t.
18501 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
18502 "x" to convert grub_size_t arguments.
18503
18504 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18505
18506 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
18507 too long captions.
18508 (list_get_minimal_size): Take selection box into account.
18509
18510 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18511
18512 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
18513 NULL font.
18514
18515 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18516
18517 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
18518 devices when iterating over /dev/disk/by-id; they will be handled
18519 later if appropriate, which they aren't always (e.g. LVM).
18520
18521 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18522
18523 * include/grub/misc.h (grub_reboot): Declare as noreturn.
18524 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
18525 fails.
18526 (grub_halt): Likewise.
18527 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
18528 reset-all fails.
18529 (grub_halt): Don't return, even if all of shut-down, power-off, and
18530 poweroff fail.
18531
18532 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18533
18534 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
18535 arguments, not three.
18536
18537 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18538
18539 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
18540 * util/grub.d/10_linux.in: Use it to check for LVM, so that
18541 LVM-on-RAID is handled correctly.
18542
18543 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18544
18545 * docs/grub.texi (Changes from GRUB Legacy): New section.
18546 (Future): Fix typo.
18547
18548 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18549
18550 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
18551 grub.d/README accidentally ends up executable for one reason or
18552 another. Ignore it.
18553
18554 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18555
18556 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
18557 (gpt_partition_map_iterate): Support non-512B sectors.
18558
18559 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18560
18561 * kern/efi/init.c (grub_efi_init): Disable watchdog.
18562 Tested by: Seth Goldberg.
18563
18564 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18565
18566 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
18567 Properly align mbi.
18568 Reported by: Seth Goldberg.
18569
18570 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18571
18572 * util/grub-mkrescue.in: Avoid module duplication.
18573
18574 2010-07-01 Sean Finney <seanius@seanius.net>
18575
18576 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
18577
18578 2010-07-01 Sean Finney <seanius@seanius.net>
18579
18580 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
18581
18582 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18583
18584 * disk/lvm.c (grub_lvm_checkvalue): New function.
18585 (grub_lvm_check_flag): Likewise.
18586
18587 2010-07-01 Robert Millan <rmh@gnu.org>
18588
18589 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
18590 Support 'p' as partition separator on kernel of FreeBSD (used
18591 with GPT labels).
18592 (grub_util_biosdisk_get_grub_dev): Likewise.
18593
18594 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 Yeeloong firmware port.
18597
18598 * boot/mips/yeeloong/fwstart.S: New file.
18599 * bus/cs5536.c (gpiodump): New const.
18600 (set_io_space): New function.
18601 (set_iod): Likewise.
18602 (set_p2d): Likewise.
18603 (grub_cs5536_init_geode): Likewise.
18604 * commands/mips/yeeloong/lsspd.c: New file.
18605 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
18606 (serial_mod_SOURCES): New variable.
18607 (serial_mod_CFLAGS): Likewise.
18608 (serial_mod_LDFLAGS): Likewise.
18609 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
18610 term/terminfo.c and term/tparm.c.
18611 (pkglib_IMAGES): Add fwstart.img.
18612 (fwstart_img_SOURCES): New variable.
18613 (fwstart_img_CFLAGS): Likewise.
18614 (fwstart_img_ASFLAGS): Likewise.
18615 (fwstart_img_LDFLAGS): Likewise.
18616 (fwstart_img_FORMAT): Likewise.
18617 (pkglib_MODULES): Add lsspd.mod.
18618 (lsspd_mod_SOURCES): New variable.
18619 (lsspd_mod_CFLAGS): Likewise.
18620 (lsspd_mod_LDFLAGS): Likewise.
18621 (pkglib_MODULES): Add halt.mod.
18622 (halt_mod_SOURCES): New variable.
18623 (halt_mod_CFLAGS): Likewise.
18624 (halt_mod_LDFLAGS): Likewise.
18625 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
18626 (serial_mod_SOURCES): Removed.
18627 (serial_mod_CFLAGS): Likewise.
18628 (serial_mod_LDFLAGS): Likewise.
18629 * disk/ata.c (check_device): New function.
18630 (grub_ata_device_initialize): Use check_device.
18631 (grub_ata_iterate): Recheck devices.
18632 (grub_ata_open): Likewise.
18633 (grub_atapi_iterate): Likewise.
18634 (grub_atapi_open): Likewise.
18635 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
18636 (GRUB_ATA_CH1_PORT1): Likewise.
18637 (GRUB_ATA_CH0_PORT2): Likewise.
18638 (GRUB_ATA_CH1_PORT2): Likewise.
18639 * include/grub/mips/loongson.h: New file.
18640 * include/grub/mips/yeeloong/ec.h: Likewise.
18641 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
18642 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
18643 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
18644 * include/grub/misc.h (grub_halt): Declare as noreturn.
18645 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
18646 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
18647 (UART_ENABLE_FIFO_TRIGGER1): New definition.
18648 (UART_ENABLE_DTRRTS): Likewise.
18649 (UART_ENABLE_MODEM): Removed.
18650 (UART_ENABLE_OUT2): New const.
18651 * include/grub/term.h (grub_term_register_input_active): New function.
18652 (grub_term_register_output_active): Likewise.
18653 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
18654 argument.
18655 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
18656 (init_pci): New function.
18657 (grub_machine_init): Execute platform init when firmware. Init serial.
18658 (grub_halt): Implement.
18659 (grub_exit): Likewise.
18660 (grub_reboot): Likewise.
18661 * term/serial.c (serial_hw_init): Update macros.
18662 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
18663 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
18664 (image_targets): New target mipsel-yeeloong-flash.
18665 (generate_image): Support IMAGE_YEELOONG_FLASH.
18666 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
18667 (grub_video_sm712_setup): Init card.
18668 (grub_video_sm712_set_palette): Removed.
18669 * video/sm712_init.c: New file.
18670
18671 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
18672
18673 * Makefile.in (install-local): Temporarily prepend $(builddir) to
18674 PATH when running help2man and then run it on the unadorned
18675 executable names, rather than passing $(builddir)/* paths to
18676 help2man. This avoids the build directory ending up in generated
18677 manual pages.
18678
18679 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18680
18681 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
18682 to avoid accidents when debugging with 'sh -x'.
18683 * util/grub-mkrescue.in: Likewise.
18684 * util/grub.d/00_header.in: Likewise.
18685 * util/grub.d/10_hurd.in: Likewise.
18686 * util/grub.d/10_kfreebsd.in: Likewise.
18687 * util/grub.d/10_linux.in: Likewise.
18688 * util/grub.d/10_netbsd.in: Likewise.
18689 * util/grub.d/10_windows.in: Likewise.
18690 * util/grub.d/20_linux_xen.in: Likewise.
18691 * util/grub.d/30_os-prober.in: Likewise.
18692 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18693
18694 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18695
18696 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
18697 last character in the buffer.
18698 Reported by: Vladimir Serbinenko.
18699
18700 2010-06-29 Robert Millan <rmh@gnu.org>
18701
18702 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
18703 (Command-line and menu entry commands): Document `badram' command.
18704
18705 2010-06-28 Robert Millan <rmh@gnu.org>
18706
18707 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
18708 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
18709 command using ${GRUB_BADRAM} as parameter.
18710
18711 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18712
18713 * docs/grub.texi (Device map): New section.
18714 (Themes): New section (stub).
18715 * Makefile.in (docs/grub.info): The info documentation now builds
18716 without errors. Make sure it stays that way.
18717
18718 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 Use normal parser for menu entries.
18721 Reported by: Thomas Frauendorfer
18722
18723 * include/grub/parser.h (grub_parser_execute): Don't export.
18724 * normal/menu.c (grub_menu_execute_entry_real): New function.
18725 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
18726
18727 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18728
18729 * docs/grub.texi (Embedded configuration): New section (replacing
18730 old "Preset Menu" stub).
18731 (Images): New section.
18732 (configfile): Note that any menu entries defined in `file' are shown
18733 immediately.
18734
18735 2010-06-28 Josh Triplett <josh@joshtriplett.org>
18736
18737 * mmap/i386/pc/mmap_helper.S: Set CF on return.
18738
18739 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18740
18741 * util/grub-install.in: Add --debug-image= option.
18742
18743 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18744
18745 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
18746 possible on Linux.
18747
18748 * util/deviceiter.c (check_device): Rename to ...
18749 (check_device_readable_unique): ... this. Update all callers.
18750 Maintain and check a list of which devices (by canonicalized name)
18751 have already been seen.
18752 (clear_seen_devices): New function.
18753 (compare_file_names) [__linux__]: New function.
18754 (grub_util_iterate_devices): Clear the list of seen devices on exit
18755 and (just in case) on entry.
18756 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
18757 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
18758 seen-devices list, superseded by general code in check_device.
18759
18760 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18761
18762 * commands/cat.c (options): New variable.
18763 (grub_cmd_cat): Parse options. If the --dos option is given, print
18764 DOS-style "\r\n" line endings as simple newlines (Debian bug
18765 #586358).
18766 (GRUB_MOD_INIT): Use extcmd.
18767 (GRUB_MOD_FINI): Likewise.
18768 * docs/grub.texi (cat): Document --dos.
18769
18770 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 XEN with Linux grub-mkconfig support.
18773
18774 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
18775 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
18776 GRUB_CMDLINE_XEN_DEFAULT.
18777 * util/grub.d/20_linux_xen.in: New file.
18778
18779 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18780
18781 Initialise VGA video on qemu ourselves.
18782
18783 * boot/i386/qemu/boot.S: Don't call 0xc000.
18784 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
18785 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
18786 (kernel_img_HEADERS): Add pci.h.
18787 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
18788 * configure.ac: Force unifont on qemu and yeeloong.
18789 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
18790 (grub_vga_palette_write): Use correct register.
18791 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
18792 Call grub_qemu_init_cirrus.
18793 * kern/i386/qemu/init.c: New file.
18794 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
18795
18796 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
18797
18798 2010-06-26 Pavel Roskin <proski@gnu.org>
18799
18800 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
18801 13.
18802
18803 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
18804
18805 * docs/grub.texi (Simple configuration): Explain that
18806 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
18807 set to `true' to disable their respective recovery entries, not
18808 merely set.
18809
18810 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
18811
18812 Make the `source' command slightly faster.
18813
18814 * normal/main.c (grub_normal_execute): Don't re-read list files when
18815 nested.
18816
18817 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
18818
18819 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
18820 field position and mask size to red fields from mode_info, not
18821 green.
18822 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
18823 Remove redundant tag->common.framebuffer_type assignment.
18824 Reported by: Seth Goldberg.
18825
18826 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
18827
18828 Sync up other versions of the Linux loader with Robert Millan's
18829 change of 2010-01-09, "Make loader output a bit more user-friendly".
18830
18831 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
18832 grub_dprintf().
18833 (grub_cmd_linux): Likewise.
18834 (grub_cmd_initrd): Likewise.
18835 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
18836 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18837
18838 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
18839
18840 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
18841 larger than MEMORY_MAP_SIZE.
18842
18843 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
18844
18845 Fix parallel build.
18846
18847 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
18848 dependency.
18849 * script/parser.y: #include grub_script.tab.h header.
18850
18851 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18852
18853 Support >3GiB and <16MiB RAM in i386-qemu.
18854
18855 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
18856 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
18857 (grub_lower_mem): Removed.
18858 (grub_upper_mem): Likewise.
18859 (mem_size): Made static.
18860 (above_4g): New variable.
18861 (grub_machine_mmap_init): Detect small mem_size and above_4g.
18862 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
18863 support.
18864
18865 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18866
18867 Cirrus 5446 and Bochs video cards support.
18868
18869 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
18870 video_bochs.mod
18871 (video_cirrus_mod_SOURCES): New variable.
18872 (video_cirrus_mod_CFLAGS): Likewise.
18873 (video_cirrus_mod_LDFLAGS): Likewise.
18874 (video_bochs_mod_SOURCES): Likewise.
18875 (video_bochs_mod_CFLAGS): Likewise.
18876 (video_bochs_mod_LDFLAGS): Likewise.
18877 * include/grub/vga.h: New file.
18878 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
18879 (grub_video_fb_set_page_t): New type.
18880 (grub_video_fb_setup): New prototype.
18881 (grub_video_fb_swap_buffers): Likewise.
18882 (grub_video_fb_get_info_and_fini): Likewise.
18883 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
18884 (CRTC_DATA_PORT): Likewise.
18885 (CRTC_CURSOR): Likewise.
18886 (CRTC_CURSOR_ADDR_HIGH): Likewise.
18887 (CRTC_CURSOR_ADDR_LOW): Likewise.
18888 (CRTC_CURSOR_DISABLE): Likewise.
18889 (update_cursor): Use grub_vga_cr_write.
18890 (grub_vga_text_setcursor): Likewise.
18891 * video/bochs.c: New file.
18892 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
18893 (palette): Likewise.
18894 (palette_size): Likewise.
18895 (framebuffer): New variable.
18896 (grub_video_fb_init): Use 'framebuffer'.
18897 (grub_video_fb_fini): Likewise.
18898 (grub_video_fb_get_info): Likewise.
18899 (grub_video_fb_get_palette): Likewise.
18900 (grub_video_fb_set_palette): Likewise.
18901 (grub_video_fb_set_viewport): Likewise.
18902 (grub_video_fb_get_viewport): Likewise.
18903 (grub_video_fb_map_color): Likewise.
18904 (grub_video_fb_map_rgb): Likewise.
18905 (grub_video_fb_map_rgba): Likewise.
18906 (grub_video_fb_unmap_color): Likewise.
18907 (grub_video_fb_unmap_color_int): Likewise.
18908 (grub_video_fb_fill_rect): Likewise.
18909 (grub_video_fb_blit_bitmap): Likewise.
18910 (grub_video_fb_blit_render_target): Likewise.
18911 (grub_video_fb_scroll): Likewise.
18912 (grub_video_fb_create_render_target): Likewise.
18913 (grub_video_fb_doublebuf_blit_init): Likewise.
18914 (grub_video_fb_set_active_render_target): Handle doublebuffering.
18915 (doublebuf_pageflipping_update_screen): New function.
18916 (doublebuf_pageflipping_init): Likewise.
18917 (grub_video_fb_setup): Likewise.
18918 (grub_video_fb_swap_buffers): Likewise.
18919 (grub_video_fb_get_info_and_fini): Likewise.
18920 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
18921 All users updated.
18922 (doublebuf_pageflipping_commit): Restructured into ...
18923 (doublebuf_pageflipping_set_page): ... this.
18924 (doublebuf_pageflipping_update_screen): Removed.
18925 (doublebuf_pageflipping_init): Likewise.
18926 (double_buffering_init): Likewise.
18927 (grub_video_vbe_setup): Use grub_video_fb_setup.
18928 (grub_video_vbe_swap_buffers): Removed.
18929 (grub_video_vbe_set_active_render_target): Likewise.
18930 (grub_video_vbe_get_active_render_target): Likewise.
18931 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
18932 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
18933 grub_video_fb_set_active_render_target and
18934 grub_video_fb_get_active_render_target.
18935 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
18936 (SEQUENCER_DATA_PORT): Likewise.
18937 (MAP_MASK_REGISTER): Likewise.
18938 (CRTC_ADDR_PORT): Likewise.
18939 (CRTC_DATA_PORT): Likewise.
18940 (START_ADDR_HIGH_REGISTER): Likewise.
18941 (START_ADDR_LOW_REGISTER): Likewise.
18942 (GRAPHICS_ADDR_PORT): Likewise.
18943 (GRAPHICS_DATA_PORT): Likewise.
18944 (READ_MAP_REGISTER): Likewise.
18945 (INPUT_STATUS1_REGISTER): Likewise.
18946 (INPUT_STATUS1_VERTR_BIT): Likewise.
18947 (get_map_mask): Use grub_vga_sr_read.
18948 (set_map_mask): Use grub_vga_sr_write.
18949 (set_read_map): Use grub_vga_gr_write.
18950 (set_start_address): Use grub_vga_cr_write.
18951 * video/sm712.c (framebuffer): Remove leftover fields.
18952
18953 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
18954
18955 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
18956 setting GRUB_VIDEO_BACKEND. Make it available as a user override
18957 instead. Replace the gfxterm backend check with a check that
18958 ${GRUB_PREFIX}/video.lst is non-empty.
18959 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
18960 again.
18961 (load_video): New generated function. Call it before loading
18962 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
18963 * util/grub.d/10_linux.in (linux_entry): Call load_video.
18964 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
18965 * docs/grub.texi (Simple configuration): Document
18966 GRUB_VIDEO_BACKEND.
18967
18968 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18969
18970 Use video functions in linux and xnu loaders.
18971
18972 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
18973 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
18974 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
18975 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
18976 loader/i386/pc/linux.c.
18977 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
18978 (find_line_len): Removed.
18979 (find_framebuf): Likewise.
18980 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
18981 * loader/i386/efi/xnu.c: Removed.
18982 * loader/i386/pc/xnu.c: Moved from here...
18983 * loader/i386/xnu.c: ...here.
18984
18985 Enable priorities in video drivers.
18986
18987 * include/grub/video.h (grub_video_adapter_prio_t): New type.
18988 (grub_video_adapter): New field prio.
18989 (grub_video_register): Respect prio when inserting.
18990 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
18991 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
18992 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
18993 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
18994 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
18995 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
18996 * video/sm712.c (grub_video_sm712_adapter): Likewise.
18997
18998 Fix SDL driver ID.
18999
19000 * include/grub/video.h (grub_video_driver_id_t): New value
19001 GRUB_VIDEO_DRIVER_SDL.
19002 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19003
19004 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19005
19006 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19007 argument to printf.
19008 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19009
19010 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19011
19012 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19013 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19014
19015 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19016
19017 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19018 directly, and recommend grub-install instead.
19019 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19020
19021 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19022
19023 Fix i386-pc prefix handling with nested partitions (Debian bug
19024 #585068). Note that the case where the core image is booted using
19025 multiboot and relocated from its original location still requires
19026 more work.
19027
19028 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19029 with "(,", fill the boot drive in between those two characters, but
19030 expect that a full partition specification including partition map
19031 names will follow.
19032 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19033 specified, write a prefix without the drive name but including a
19034 full partition specification.
19035
19036 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19037
19038 * util/grub-mkconfig.in: Ignore non-option arguments, for
19039 compatibility with older versions (before 2010-06-12) which did the
19040 same. In particular, this makes it easier to ship an update-grub
19041 wrapper which is compatible with that used with GRUB Legacy (Debian
19042 bug #586056).
19043
19044 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19045
19046 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19047 for manual page generation.
19048
19049 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19050
19051 * po/POTFILES: Remove leftover commands/handler.c.
19052
19053 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19054
19055 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19056 left this script non-functional.
19057
19058 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19059
19060 * docs/man/grub-emu.h2m: New file.
19061
19062 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19063
19064 * docs/grub.texi (Commands): Document reduced command set in rescue
19065 mode.
19066 (cpuid): New section.
19067
19068 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19069
19070 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19071 new partition naming style.
19072 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19073
19074 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19075
19076 Add "-o grub.iso" like cmdline options support.
19077
19078 * util/grub-install.in: Improve cmdline option parsing.
19079 * util/grub-mkconfig.in: Likewise.
19080 * util/grub-mkrescue.in: Likewise.
19081 * util/grub-reboot.in: Likewise.
19082 * util/grub-set-default.in: Likewise.
19083 * util/i386/efi/grub-install.in: Likewise.
19084 * util/ieee1275/grub-install.in: Likewise.
19085 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19086
19087 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19088
19089 * .bzrignore: Ignore 41_custom.
19090
19091 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19092
19093 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19094
19095 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19096
19097 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19098 prototype declarations.
19099
19100 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19101 generating fs, partmap, and video lists.
19102 * include/grub/fs.h (grub_fs_register): Omit prototype if
19103 GRUB_LST_GENERATOR is defined.
19104 * include/grub/partition.h (grub_partition_map_register): Likewise.
19105 * include/grub/video.h (grub_video_register): Likewise.
19106
19107 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19108
19109 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19110
19111 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19112
19113 * util/grub-mkrescue.in: Support --xorriso argument.
19114
19115 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19116
19117 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19118 Suggested by: Thomas Schmitt.
19119
19120 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19121
19122 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19123 Suggested by: Thomas Schmitt.
19124
19125 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19126
19127 custom.cfg support.
19128
19129 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19130 * util/grub.d/41_custom.in: New file.
19131
19132 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19133
19134 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19135 been merged back into normal.
19136
19137 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19138
19139 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19140 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19141
19142 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19143
19144 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19145 when generating manual pages.
19146 * docs/man/grub-bin2h.h2m: New file.
19147 * docs/man/grub-editenv.h2m: New file.
19148 * docs/man/grub-fstest.h2m: New file.
19149 * docs/man/grub-install.h2m: New file.
19150 * docs/man/grub-macho2img.h2m: New file.
19151 * docs/man/grub-mkconfig.h2m: New file.
19152 * docs/man/grub-mkdevicemap.h2m: New file.
19153 * docs/man/grub-mkfont.h2m: New file.
19154 * docs/man/grub-mkimage.h2m: New file.
19155 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19156 * docs/man/grub-mkrelpath.h2m: New file.
19157 * docs/man/grub-mkrescue.h2m: New file.
19158 * docs/man/grub-ofpathname.h2m: New file.
19159 * docs/man/grub-pe2elf.h2m: New file.
19160 * docs/man/grub-probe.h2m: New file.
19161 * docs/man/grub-reboot.h2m: New file.
19162 * docs/man/grub-script-check.h2m: New file.
19163 * docs/man/grub-set-default.h2m: New file.
19164 * docs/man/grub-setup.h2m: New file.
19165
19166 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19167
19168 Use FOR_* macros instead of *_iterate whenever possible.
19169
19170 * commands/handler.c: Removed.
19171 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19172 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19173 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19174 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19175 (grub_probe_SOURCES): Remove kern/parser.c.
19176 (util/grub-script-check.c_DEPENDENCIES): Removed.
19177 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19178 and grub_script_check_init.c.
19179 (grub_script_check_init.lst): Removed.
19180 (grub_script_check_init.h): Likewise.
19181 (grub_script_check_init.c): Likewise.
19182 (pkglib_MODULES): Remove handler.mod and sh.mod.
19183 (handler_mod_SOURCES): Removed.
19184 (handler_mod_CFLAGS): Likewise.
19185 (handler_mod_LDFLAGS): Likewise.
19186 (normal_mod_SOURCES): Remove normal/handler.c.
19187 Add script/main.c, script/script.c, script/execute.c,
19188 script/function.c, script/lexer.c, grub_script.tab.c
19189 and grub_script.yy.c.
19190 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19191 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19192 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19193 (grub_setup_SOURCES): Remove kern/parser.c.
19194 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19195 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19196 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19197 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19198 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19199 (grub_setup_SOURCES): Remove kern/parser.c.
19200 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19201 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19202 * include/grub/command.h (grub_command_iterate): Removed.
19203 (FOR_COMMANDS): New macro.
19204 * include/grub/dl.h (grub_dl): New member next.
19205 (grub_dl_iterate): Removed.
19206 (grub_dl_head): New variable declaration.
19207 (FOR_DL_MODULES): New macro.
19208 * include/grub/fs.h: Include list.h.
19209 (grub_fs): Make next first element.
19210 (grub_fs_list): New variable declaration.
19211 (grub_fs_register): Make inline.
19212 (grub_fs_unregister): Likewise.
19213 (grub_fs_iterate): Removed.
19214 (FOR_FILESYSTEMS): New macro.
19215 * include/grub/handler.h: Removed.
19216 * include/grub/list.h (grub_list_hook_t): Removed.
19217 (grub_list_test_t): Likewise.
19218 (grub_list_pop): Likewise.
19219 (grub_list_iterate): Likewise.
19220 (grub_list_insert): Likewise.
19221 (FOR_LIST_ELEMENTS): New macro.
19222 * include/grub/parser.h (grub_parser_class): Removed.
19223 (grub_parser_register): Likewise.
19224 (grub_parser_unregister): Likewise.
19225 (grub_parser_get_current): Likewise.
19226 (grub_parser_set_current): Likewise.
19227 (grub_register_rescue_parser): Likewise.
19228 (grub_rescue_parse_line): New function.
19229 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19230 * include/grub/script_sh.h (grub_script_function_list): New variable
19231 declaration.
19232 (FOR_SCRIPT_FUNCTIONS): New macro.
19233 (grub_script_function_iterate): Removed.
19234 (grub_normal_parse_line): New prototype.
19235 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19236 (FOR_DISABLED_TERM_INPUTS): Likewise.
19237 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19238 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19239 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19240 element.
19241 (grub_video_register): Inline.
19242 (grub_video_unregister): Likewise.
19243 (grub_video_adapter_list): New variable declaration.
19244 (grub_video_iterate): Removed.
19245 (FOR_VIDEO_ADAPTERS): New macro.
19246 * kern/dl.c (grub_dl_list): Removed. All users updated.
19247 (grub_dl_iterate): Removed.
19248 * kern/fs.c (grub_fs_list): Make global.
19249 (grub_fs_register): Removed.
19250 (grub_fs_unregister): Likewise.
19251 (grub_fs_iterate): Likewise.
19252 * kern/handler.c: Removed.
19253 * kern/list.c (grub_list_pop): Removed.
19254 (grub_list_iterate): Likewise.
19255 (grub_list_insert): Likewise.
19256 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19257 (grub_prio_list_insert): Don't use grub_list_insert.
19258 * kern/main.c (grub_register_rescue_parser): Don't call
19259 grub_register_rescue_parser.
19260 * kern/parser.c (grub_parser_class): Removed.
19261 (grub_parser_execute): Use grub_rescue_parse_line.
19262 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19263 (grub_rescue_parser): Removed.
19264 (grub_register_rescue_parser): Likewise.
19265 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
19266 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
19267 (grub_auth_check_authentication): Likewise.
19268 * normal/completion.c (iterate_command): Removed.
19269 (grub_normal_do_completion): Use FOR_COMMANDS.
19270 * normal/handler.c: Removed.
19271 * normal/main.c (read_config_file): Remove parser changing.
19272 (grub_normal_execute): Don't call read_handler_list.
19273 (grub_normal_read_line_real): Statically allocate prompt.
19274 (grub_cmdline_run): Use grub_normal_parse_line.
19275 (GRUB_MOD_FINI): Don't call free_handler_list.
19276 * normal/menu_entry.c (run): Likewise.
19277 * script/function.c (grub_script_function_list): Make global.
19278 (grub_script_function_iterate): Removed.
19279 * script/main.c (grub_normal_parse_line): Make global.
19280 (grub_sh_parser): Removed.
19281 (GRUB_MOD_INIT): Likewise.
19282 (GRUB_MOD_FINI): Likewise.
19283 * tests/lib/functional_test.c (grub_functional_test): Use
19284 FOR_LIST_ELEMENTS.
19285 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
19286 (grub_test_run): Use FOR_LIST_ELEMENTS.
19287 * tests/lib/unit_test.c (main): Likewise.
19288 * util/deviceiter.c (grub_util_iterate_devices): Don't use
19289 grub_list_pop.
19290 * util/grub-fstest.c (grub_term_input_class): Removed.
19291 (grub_term_output_class): Likewise.
19292 * util/grub-probe.c: Likewise.
19293 * util/i386/pc/grub-setup.c: Likewise.
19294 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19295 * util/grub-script-check.c (main): Don't call grub_init_all and
19296 grub_fini_all.
19297 * video/video.c (grub_video_adapter_list): Make global.
19298 (grub_video_register): Removed.
19299 (grub_video_unregister): Likewise.
19300 (grub_video_iterate): Likewise.
19301
19302 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
19305 reported by Henrique Ferreiro.
19306
19307 2010-06-09 Robert Millan <rmh@gnu.org>
19308
19309 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
19310 ones, when both are available.
19311
19312 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19313
19314 Make --version uniform and avoid hard-coded program name.
19315
19316 * util/grub-mkimage.c (main): Use `program_name' instead of
19317 hard-coded string.
19318 * util/i386/pc/grub-setup.c (main): Likewise.
19319 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
19320 * util/grub-install.in: Save the basename of $0 in $self, and use the
19321 latter in informational messages. Use the same format for --version
19322 as the binary programs.
19323 * util/grub-mkconfig.in: Likewise.
19324 * util/grub-mkrescue.in: Likewise.
19325 * util/grub-reboot.in: Likewise.
19326 * util/grub-set-default.in: Likewise.
19327 * util/i386/efi/grub-install.in: Likewise.
19328 * util/ieee1275/grub-install.in: Likewise.
19329 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19330
19331 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19332
19333 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
19334 embedding area. Use <= instead of == when checking for non-emptiness.
19335
19336 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19337
19338 * configure.ac: Add `.' to the directories searched for unifont.
19339
19340 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19341
19342 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
19343 grub_script.yy.h.
19344
19345 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19346
19347 * docs/grub.texi (History): Expand to cover GRUB 2.
19348 (Serial terminal): Refer to `terminal_input' and `terminal_output'
19349 commands, not `terminal'.
19350 (serial): Likewise.
19351 (terminal_input): New section.
19352 (terminal_output): New section.
19353 (uppermem): New section (stub).
19354 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
19355
19356 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19357
19358 * docs/grub.texi (Security): Menu entries are unrestricted by
19359 default, not restricted to superusers as I had previously thought.
19360 Reword to account for this.
19361
19362 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19363
19364 * kern/emu/misc.c (device_mapper_null_log): New function.
19365 (grub_device_mapper_supported): New function.
19366 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
19367 prototype.
19368 * kern/emu/hostdisk.c (find_partition_start): Check whether
19369 device-mapper is supported before trying to use it.
19370 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
19371
19372 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19373
19374 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
19375 (File name syntax): Likewise.
19376 (help): --all is no longer supported in GRUB 2. Be more precise
19377 about pattern matching.
19378
19379 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19380
19381 * normal/completion.c (grub_normal_do_completion): When completing
19382 arguments to "set" and the current word contains an equals sign,
19383 skip to after the equals sign before starting completion.
19384
19385 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19386
19387 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
19388
19389 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19390
19391 * docs/grub.texi (Network): New section.
19392 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
19393 `(nd)' as in GRUB Legacy.
19394 (pxe_unload): New section.
19395
19396 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19397
19398 * docs/grub.texi (Troubleshooting): `echo' is not usually available
19399 in the rescue shell, so recommend using `set' instead. Thanks,
19400 Jordan Uggla.
19401
19402 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19403
19404 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
19405 (password): New section.
19406 (password_pbkdf2): New section.
19407 (search): New section.
19408 (Security): New section.
19409 (Troubleshooting): New section, currently very incomplete.
19410 (Invoking grub-mkpasswd-pbkdf2): New section.
19411 (Internals): New section, currently very incomplete.
19412
19413 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19414
19415 * util/grub.d/00_header.in: Add some more quoting (of
19416 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
19417 work again.
19418 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
19419
19420 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19421
19422 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
19423 to `count', fixing variable shadowing that broke the -c option.
19424
19425 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
19426
19427 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
19428 in case they contain spaces.
19429
19430 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19431
19432 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
19433 "part_" to partmap module names, in line with grub-install.
19434 Reported by: Jindřich Makovička (Debian bug #584426).
19435
19436 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19437
19438 * util/grub-mkimage.c: Make target-related error messages slightly
19439 more helpful; -O talks about "format". Explicitly point to the use
19440 of -O if no target is specified.
19441 Reported by: Didier Raboud (Debian bug #584415).
19442
19443 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
19444
19445 * INSTALL: Document several build requirements for optional features
19446 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
19447
19448 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
19449
19450 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
19451 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
19452 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
19453
19454 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19455
19456 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
19457 Thanks to Jordan Uggla for spotting this.
19458
19459 2010-06-02 Aleš Nesrsta <starous@volny.cz>
19460
19461 Finally make USB usable.
19462
19463 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
19464 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
19465 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
19466 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
19467 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
19468 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
19469 (GRUB_OHCI_FSMPS): Likewise.
19470 (GRUB_OHCI_PERIODIC_START): Likewise.
19471 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
19472 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
19473 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
19474 (GRUB_OHCI_SET_PORT_RESET): Likewise.
19475 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
19476 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
19477 (grub_ohci_transaction): Likewise.
19478 (grub_ohci_transfer): Improve condition detection algorithms.
19479 Handle toggle property. Program the transactions correctly.
19480 Improve error handling. Various important fixups.
19481 (grub_ohci_portstatus): Put register writes in right order.
19482 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
19483 (grub_uhci_transfer): Don't show "failed" message on success.
19484 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
19485 array.
19486 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
19487 determine its size.
19488 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
19489 before initialization is completed. Use IN direction for empty
19490 transfers. Use last_trans and compute toggle.
19491 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
19492 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
19493 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
19494 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
19495 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
19496 (grub_usb_device): Increase toggle to 256.
19497 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
19498 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
19499 GRUB_USBMS_SUBCLASS_SFF8070.
19500 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
19501 (grub_scsi_inquiry): New member page and alloc_length.
19502 (grub_scsi_request_sense): New structure.
19503 (grub_scsi_request_sense_data): Likewise.
19504 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
19505 control.
19506 * disk/scsi.c (grub_scsi_request_sense): New function.
19507 (grub_scsi_test_unit_ready): Likewise.
19508 (grub_scsi_inquiry): Fill new fields.
19509 (grub_scsi_read_capacity): Likewise.
19510 (grub_scsi_read10): Add request sense at the end.
19511 (grub_scsi_read12): Likewise.
19512 (grub_scsi_write10): Likewise.
19513 (grub_scsi_write12): Likewise.
19514 (grub_scsi_open): Add Test Unit Ready.
19515 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
19516 Support additional subclasses. Con't clear halt yet. Activate the
19517 proper config. Calculate LUNs correctly.
19518 (grub_usbms_transfer): Various important fixups.
19519
19520 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19521
19522 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
19523 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
19524 (grub_ohci_fini_hw): New function.
19525 (grub_ohci_restore_hw): Likewise.
19526 (GRUB_MOD_INIT(ohci)): Register preboot hook.
19527 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
19528 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
19529
19530 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19531
19532 Dedicated DMA allocations.
19533
19534 * bus/pci.c (grub_memalign_dma32): New function
19535 (grub_dma_free): Likewise.
19536 (grub_dma_get_virt): Likewise.
19537 (grub_dma_get_phys): Likewise.
19538 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
19539 (grub_ohci_pci_iter): Use dma32_alloc.
19540 (grub_ohci_transfer): Likewise.
19541 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19542 (grub_usb_bulk_readwrite): Likewise.
19543 * include/grub/pci.h: Add declarations.
19544
19545 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19546
19547 CS5536 support.
19548
19549 * bus/cs5536.c: New file.
19550 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
19551 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
19552 (cs5536_mod_SOURCES): New variable.
19553 (cs5536_mod_CFLAGS): Likewise.
19554 (cs5536_mod_LDFLAGS): Likewise.
19555 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
19556 machine/pci.h.
19557 (kernel_img_SOURCES): Add bus/cs5536.c.
19558 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
19559 usb_keyboard.mod.
19560 (usb_mod_SOURCES): New variable.
19561 (usb_mod_CFLAGS): New variable.
19562 (usb_mod_LDFLAGS): New variable.
19563 (usbtest_mod_SOURCES): New variable.
19564 (usbtest_mod_CFLAGS): New variable.
19565 (usbtest_mod_LDFLAGS): New variable.
19566 (ohci_mod_SOURCES): New variable.
19567 (ohci_mod_CFLAGS): New variable.
19568 (ohci_mod_LDFLAGS): New variable.
19569 (usbms_mod_SOURCES): New variable.
19570 (usbms_mod_CFLAGS): New variable.
19571 (usbms_mod_LDFLAGS): New variable.
19572 (usb_keyboard_mod_SOURCES): New variable.
19573 (usb_keyboard_mod_CFLAGS): New variable.
19574 (usb_keyboard_mod_LDFLAGS): New variable.
19575 * include/grub/smbus.h: New file.
19576 * include/grub/cs5536.h: New file.
19577
19578 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19579
19580 * util/grub.d/00_header.in: Add safety check to make sure that
19581 ${locale_dir} exists before trying to probe it.
19582
19583 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19584
19585 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
19586 per the GNU Coding Standards; this is now too obscure to be worth
19587 documenting.
19588 (QNX): Likewise.
19589 (chainloader): Remove cross-reference to `SCO UnixWare'.
19590
19591 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19592
19593 * docs/grub.texi (Chain-loading): New section.
19594 (DOS/Windows): New section, borrowed from GRUB Legacy with details
19595 adjusted for GRUB 2.
19596 (SCO UnixWare): Likewise.
19597 (QNX): Likewise.
19598 (chainloader): Add reference to `Block list syntax'.
19599 (drivemap): New section.
19600 (parttool): New section.
19601
19602 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19603
19604 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
19605 the grub shell'.
19606 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
19607 (Installing GRUB using grub-install): Remove reference to the grub
19608 shell; mention `grub-mkimage' and `grub-setup' instead.
19609 (Invoking grub-install): Likewise.
19610 (Interface): Add reference to `Menu entry editor'.
19611 (serial): Remove `--device' option.
19612
19613 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19614
19615 * docs/grub.texi (Configuration): New section, documenting
19616 configuration file generation using grub-mkconfig. I've left a slot
19617 for documenting the full shell scripting format but have not yet
19618 started on writing that up.
19619 (Invoking grub-mkconfig): New section.
19620
19621 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19622
19623 * docs/grub.texi (direntry): Remove grub-terminfo reference.
19624 (GNU GRUB manual): Likewise.
19625 (General commands): Update description of `terminfo' for GRUB 2.
19626
19627 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19628
19629 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
19630 (GRUB_MOD_INIT): Fix capitalisation.
19631 * docs/grub.texi (Command-line and menu entry commands): Document
19632 gettext and gptsync commands.
19633
19634 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19635
19636 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
19637 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
19638
19639 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
19640
19641 Add btrfs probing support, currently only in the single-device case.
19642
19643 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
19644 function.
19645 (grub_guess_root_device): Call find_root_device_from_mountinfo
19646 before looking in /dev.
19647
19648 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19649
19650 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
19651 GRUB_DISK_SIZE_UNKNOWN.
19652 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
19653
19654 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
19655
19656 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
19657 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
19658 corrupted or not synced properly.
19659
19660 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19661
19662 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
19663 Reported by: Seth Goldberg.
19664
19665 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19666
19667 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
19668 addition of dest.
19669 Reported by: Seth Goldberg.
19670
19671 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
19674 Reported by: Seth Goldberg.
19675
19676 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19677
19678 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
19679 64-bit address as signed on MIPS.
19680
19681 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19682
19683 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
19684 to the empty string.
19685
19686 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
19687
19688 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
19689
19690 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
19691 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
19692 * kern/misc.c (__enable_execute_stack): Disable on
19693 GRUB_MACHINE_EMU.
19694
19695 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19696
19697 Make grub-probe work with symbolic links under /dev/mapper as well
19698 as with real block devices. The Linux world seems to be (at best)
19699 in transition here, and GRUB shouldn't get caught in the middle.
19700
19701 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
19702 /dev/mapper.
19703
19704 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19705
19706 * util/grub-script-check.c (main): Ensure defined behaviour on empty
19707 input files (in which case exit zero).
19708
19709 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19710
19711 * kern/emu/misc.c (canonicalize_file_name): realpath can still
19712 return NULL for various reasons even if it has a maximum-length
19713 buffer: for example, there might be a symlink loop, or the path
19714 might exceed PATH_MAX. If this happens, return NULL.
19715
19716 2010-05-27 Robert Millan <rmh@gnu.org>
19717
19718 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
19719 partmap module to handle cross-partmap setups.
19720 Reported by Orestes Mas. Gràcies!
19721
19722 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19723
19724 * util/grub-mkrescue.in: Initialise override_dir rather than
19725 assuming that it's unset or empty in the environment.
19726
19727 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
19728
19729 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
19730 variable index into p_index to suppress a warning with -Wshadow.
19731
19732 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
19733
19734 * INSTALL: Added flex >= 2.5.35 requirement.
19735
19736 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19737
19738 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
19739
19740 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19741
19742 cmostest support.
19743
19744 * commands/i386/cmostest.c: New file.
19745 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
19746 (cmostest_mod_SOURCES): New variable.
19747 (cmostest_mod_CFLAGS): Likewise.
19748 (cmostest_mod_LDFLAGS): Likewise.
19749 * conf/i386-pc.rmk: Likewise.
19750 * docs/grub.texi (Vendor power-on keys): New section.
19751 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
19752 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
19753 and GRUB_BUTTON_CMOS_ADDRESS.
19754 * util/grub.d/00_header.in: Handle powering-on by separate button.
19755
19756 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19757
19758 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
19759 Removed drawing_scrollbar argument. All users updated
19760 Fixes #29792.
19761 Reported by Jo Shields
19762
19763 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19764
19765 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
19766 buffer since gfxterm handles double repaint.
19767
19768 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19769
19770 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
19771 * term/gfxterm.c (real_scroll): Likewise.
19772
19773 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19774
19775 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
19776 before calling BIOS.
19777
19778 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19779
19780 * include/grub/i18n.h: Always enable grub_gettext.
19781
19782 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19783
19784 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
19785 partition naming style.
19786
19787 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
19788
19789 * util/grub-mkconfig.in: Fix handling of -o so that it works when
19790 not the first option.
19791
19792 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
19793
19794 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
19795
19796 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
19797
19798 * util/misc.c: Move inclusion of <limits.h> to ...
19799 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
19800
19801 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
19802
19803 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
19804 Fix merge error in NetBSD code.
19805 (find_partition_start) [__NetBSD__]: Likewise.
19806
19807 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
19808
19809 Fix grub-mkrescue usage unit testing.
19810
19811 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
19812
19813 2010-05-18 Christian Franke <franke@computer.org>
19814
19815 * util/grub.d/10_windows.in: Use path names instead of
19816 drive letters to prevent warning from Cygwin 1.7.
19817 Add drivemap command to menuentry if needed.
19818
19819 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
19820
19821 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
19822 gnumach and gnumach.gz.
19823
19824 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19825
19826 * include/grub/i18n.h (gettext): Inline instead of using #define.
19827 (grub_gettext): Likewise.
19828 (_): Likewise.
19829
19830 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19831
19832 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
19833 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
19834 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
19835 (main): Add a slash after pkglibdirroot.
19836
19837 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19838
19839 * util/grub-install.in: Add missing "in" keyword.
19840
19841 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19842
19843 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
19844 Reported by: Seth Goldberg.
19845
19846 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19847
19848 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
19849
19850 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19851
19852 * configure.ac: Check for Linux device-mapper support.
19853
19854 * util/hostdisk.c (device_is_mapped): New function.
19855 (find_partition_start): New function, partly broken out from
19856 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
19857 device-mapper support added.
19858 (linux_find_partition): Use find_partition_start.
19859 (convert_system_partition_to_system_disk): Add `st' argument.
19860 Support Linux /dev/mapper/* devices if device-mapper support is
19861 available; only DM-RAID devices are understood at present.
19862 (find_system_device): Add `st' argument. Pass it to
19863 convert_system_partition_to_system_disk.
19864 (grub_util_biosdisk_get_grub_dev): Pass stat result to
19865 find_system_device and convert_system_partition_to_system_disk. Use
19866 find_partition_start.
19867
19868 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
19869 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
19870 * util/deviceiter.c [__linux__]: Define MINOR.
19871 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
19872 * util/mkdevicemap.c (grub_putchar): New function.
19873 (grub_getkey): New function.
19874 (grub_refresh): New function.
19875 (main): Set debug=all if -v -v is used.
19876
19877 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19878
19879 Fix build with non-GNU libcs.
19880
19881 * util/misc.c (canonicalize_file_name): Move to ...
19882 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
19883 grub_make_system_path_relative_to_its_root.
19884
19885 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19886
19887 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
19888 we handle finding grub-mkimage. Default to finding grub-mkimage in
19889 ${bindir} with program_transform_name applied, and provide a
19890 --grub-mkimage option to override this.
19891
19892 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19893
19894 Remove grub-mkisofs.
19895
19896 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
19897 (grub_mkisofs_SOURCES): Removed.
19898 (grub_mkisofs_CFLAGS): Removed.
19899 * util/mkisofs/defaults.h: Removed.
19900 * util/mkisofs/eltorito.c: Likewise.
19901 * util/mkisofs/exclude.h: Likewise.
19902 * util/mkisofs/hash.c: Likewise.
19903 * util/mkisofs/include/: Likewise.
19904 * util/mkisofs/include/fctldefs.h: Likewise.
19905 * util/mkisofs/include/mconfig.h: Likewise.
19906 * util/mkisofs/include/prototyp.h: Likewise.
19907 * util/mkisofs/include/statdefs.h: Likewise.
19908 * util/mkisofs/iso9660.h: Likewise.
19909 * util/mkisofs/joliet.c: Likewise.
19910 * util/mkisofs/match.c: Likewise.
19911 * util/mkisofs/match.h: Likewise.
19912 * util/mkisofs/mkisofs.c: Likewise.
19913 * util/mkisofs/mkisofs.h: Likewise.
19914 * util/mkisofs/msdos_partition.h: Likewise.
19915 * util/mkisofs/multi.c: Likewise.
19916 * util/mkisofs/name.c: Likewise.
19917 * util/mkisofs/rock.c: Likewise.
19918 * util/mkisofs/tree.c: Likewise.
19919 * util/mkisofs/write.c: Likewise.
19920
19921 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19922
19923 Unify grub-mkimage accross platforms.
19924
19925 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
19926 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
19927 (grub_mkelfimage_SOURCES): Removed.
19928 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
19929 (util/grub-mkimage.c_DEPENDENCIES): .. this.
19930 (bin_UTILITIES): Add grub-mkimage.
19931 (grub_mkimage_SOURCES): New variable.
19932 (kernel_img_HEADERS): Remove machine/kernel.h.
19933 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
19934 (pkglib_PROGRAMS): Add kernel.img.
19935 (kernel_img_HEADERS): Add machine/kernel.h.
19936 (kernel_img_FORMAT): Removed.
19937 (bin_UTILITIES): Remove grub-mkimage.
19938 (grub_mkimage_SOURCES): Removed.
19939 (grub_mkimage_CFLAGS): Likewise.
19940 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19941 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
19942 (pkglib_PROGRAMS): Add kernel.img.
19943 (bin_UTILITIES): Remove grub-mkimage.
19944 (grub_mkimage_SOURCES): Removed.
19945 (grub_mkimage_CFLAGS): Likewise.
19946 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19947 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
19948 (pkglib_PROGRAMS): Add kernel.img.
19949 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
19950 (pkglib_PROGRAMS): Add kernel.img.
19951 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
19952 (grub_mkimage_SOURCES): Removed.
19953 (grub_mkimage_CFLAGS): Likewise.
19954 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19955 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
19956 (pkglib_PROGRAMS): Add kernel.img.
19957 (bin_UTILITIES): Remove grub-mkimage.
19958 (grub_mkimage_SOURCES): Removed.
19959 (grub_mkimage_CFLAGS): Likewise.
19960 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19961 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
19962 (grub_mkimage_SOURCES): Removed.
19963 (grub_mkimage_CFLAGS): Likewise.
19964 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19965 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
19966 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
19967 (grub_pe32_optional_header): ... this.
19968 (grub_pe64_optional_header): ... and this. All users updated.
19969 (GRUB_PE32_PE32_MAGIC): Split into ..
19970 (GRUB_PE32_PE32_MAGIC): .. this.
19971 (GRUB_PE32_PE64_MAGIC): .. and this.
19972 (GRUB_PE32_SIGNATURE_SIZE): New definition.
19973 * include/grub/elf.h (PT_GNU_STACK): New definition.
19974 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
19975 * include/grub/i386/efi/kernel.h: Likewise.
19976 * include/grub/i386/kernel.h: Likewise.
19977 * include/grub/i386/pc/kernel.h: Likewise.
19978 * include/grub/i386/qemu/boot.h: Likewise.
19979 * include/grub/mips/kernel.h: Likewise.
19980 * include/grub/mips/qemu-mips/kernel.h: Likewise.
19981 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19982 * include/grub/powerpc/kernel.h: Likewise.
19983 * include/grub/sparc64/ieee1275/boot.h: Likewise.
19984 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19985 * include/grub/sparc64/kernel.h: Likewise.
19986 * include/grub/x86_64/efi/kernel.h: Likewise.
19987 * include/grub/x86_64/kernel.h: Likewise.
19988 * include/grub/offsets.h: New file.
19989 * include/grub/kernel.h (grub_module_info): Split into ...
19990 (grub_module_info32): ... this.
19991 (grub_module_info64): ... and this.
19992 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
19993 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
19994 (grub_boot_blocklist): Moved from here ...
19995 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
19996 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
19997 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
19998 * include/grub/types.h (grub_target_to_host16): Removed.
19999 (grub_target_to_host32): Likewise.
20000 (grub_target_to_host64): Likewise.
20001 (grub_host_to_target16): Likewise.
20002 (grub_host_to_target32): Likewise.
20003 (grub_host_to_target64): Likewise.
20004 (grub_host_to_target_addr): Likewise.
20005
20006 Support grub-mkrescue for efi, coreboot and qemu.
20007
20008 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20009 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20010 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20011 * util/grub-mkrawimage.c: Moved from here ...
20012 * util/grub-mkimage.c: ... here. All users updated.
20013 (ALIGN_ADDR): Use image_target.
20014 (TARGET_NO_FIELD): New const.
20015 (image_target_desc): New type.
20016 (image_targets): New array.
20017 (grub_target_to_host64): Use image_target.
20018 (grub_target_to_host32): Likewise.
20019 (grub_target_to_host16): Likewise.
20020 (grub_host_to_target64): Likewise.
20021 (grub_host_to_target32): Likewise.
20022 (grub_host_to_target16): Likewise.
20023 (grub_host_to_target_addr): Likewise.
20024 (generate_image): Handle multiimage.
20025 (main): Require -O parameter. All users updated.
20026 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20027 util/efi/grub-mkimage.c
20028 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20029 New option --rom-directory.
20030 Use xorriso.
20031 * util/i386/efi/grub-mkimage.c: Removed.
20032 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20033 (grub_target_to_host32): Likewise.
20034 (grub_target_to_host64): Likewise.
20035 (grub_host_to_target16): Likewise.
20036 (grub_host_to_target32): Likewise.
20037 (grub_host_to_target64): Likewise.
20038 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20039 (grub_target_to_host32): Likewise.
20040 (grub_target_to_host64): Likewise.
20041 (grub_host_to_target16): Likewise.
20042 (grub_host_to_target32): Likewise.
20043 (grub_host_to_target64): Likewise.
20044
20045 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20046
20047 Source tree is reorganized for emu build.
20048
20049 * include/grub/util/console.h: Move from here...
20050 * include/grub/emu/console.h: ...to here.
20051 * include/grub/util/getroot.h: Move from here...
20052 * include/grub/emu/getroot.h: ...to here.
20053 * include/grub/util/hostdisk.h: Move from here...
20054 * include/grub/emu/hostdisk.h: ...to here.
20055 * util/console.c: Move from here...
20056 * kern/emu/console.c: ...to here.
20057 * util/getroot.c: Move from here...
20058 * kern/emu/getroot.c: ...to here.
20059 * util/grub-emu.c: Move from here...
20060 * kern/emu/main.c: ...to here.
20061 * util/hostdisk.c: Move from here...
20062 * kern/emu/hostdisk.c: ...to here.
20063 * util/hostfs.c: Move from here...
20064 * kern/emu/hostfs.c: ...to here.
20065 * util/mm.c: Move from here...
20066 * kern/emu/mm.c: ...to here.
20067 * util/pci.c: Move from here...
20068 * bus/emu/pci.c: ...to here.
20069 * util/sdl.c: Move from here...
20070 * video/emu/sdl.c: ...to here.
20071 * util/time.c: Move from here...
20072 * kern/emu/time.c: ...to here.
20073 * util/usb.c: Move from here...
20074 * bus/usb/emu/usb.c: ...to here.
20075
20076 * include/grub/emu/misc.h: New header for grub-emu functions.
20077 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20078
20079 * conf/any-emu.rmk: Rule updates for above renames.
20080 * conf/common.rmk: Likewise.
20081 * conf/i386-pc.rmk: Likewise.
20082 * conf/i386-qemu.rmk: Likewise.
20083 * conf/mips.rmk: Likewise.
20084 * conf/sparc64-ieee1275.rmk: Likewise.
20085 * conf/x86-efi.rmk: Likewise.
20086
20087 * disk/lvm.h: #include updates for above renames.
20088 * util/grub-mkrelpath.c: Likewise.
20089 * util/grub-probe.c: Likewise.
20090 * util/i386/pc/grub-setup.c: Likewise.
20091 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20092 * kern/emu/console.c: Likewise.
20093 * kern/emu/getroot.c: Likewise.
20094 * kern/emu/hostdisk.c: Likewise.
20095 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20096
20097 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20098 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20099 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20100 * util/misc.c: Remove grub-emu functions.
20101
20102 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 Fix gfxmenu crash.
20105 Reported by: Thorsten Grützmacher.
20106
20107 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20108 timeout hook.
20109 (circprog_set_property): Register and unregister timeout hook.
20110 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20111 (label_destroy): Free template. and unregister hook.
20112 (label_set_state): New function.
20113 (label_set_property): Handle templates and hooks.
20114 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20115 timeout hook.
20116 (progress_bar_set_property): Register and unregister timeout hook.
20117 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20118 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20119 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20120 (update_timeout_visit): Removed.
20121 (update_timeouts): New function.
20122 (redraw_timeouts): Likewise.
20123 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20124 (grub_gfxmenu_clear_timeout): Likewise.
20125 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20126 (grub_gfxmenu_timeout_notify): Likewise.
20127 (grub_gfxmenu_timeout_notifications): New external variable.
20128 (grub_gfxmenu_timeout_register): New function.
20129 (grub_gfxmenu_timeout_unregister): Likewise.
20130
20131 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20132
20133 Transform (broken) vga terminal into (working) vga video driver.
20134
20135 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20136 video/i386/pc/vga.c.
20137 * include/grub/video.h (grub_video_driver_id):
20138 Add GRUB_VIDEO_DRIVER_VGA.
20139 * term/i386/pc/vga.c: Renamed to ...
20140 * video/i386/pc/vga.c: ...this
20141 (DEBUG_VGA): Removed.
20142 (CHAR_WIDTH): Likewise.
20143 (CHAR_HEIGHT): Likewise.
20144 (TEXT_WIDTH): Likewise.
20145 (TEXT_HEIGHT): Likewise.
20146 (DEFAULT_FG_COLOR): Likewise.
20147 (DEFAULT_BG_COLOR): Likewise.
20148 (colored_char): Likewise.
20149 (xpos): Likewise.
20150 (ypos): Likewise.
20151 (cursor_state): Likewise.
20152 (fg_color): Likewise.
20153 (bg_color): Likewise.
20154 (text_buf): Likewise.
20155 (page): Likewise.
20156 (font): Likewise.
20157 (framebuffer): New variable.
20158 (set_read_map): Disabled.
20159 (setup): New variable.
20160 (is_target): Likewise.
20161 (grub_vga_mod_init): Likewise.
20162 (grub_vga_mod_fini): Likewise.
20163 (check_vga_mem): Likewise.
20164 (write_char): Likewise.
20165 (write_cursor): Likewise.
20166 (scroll_up): Likewise.
20167 (grub_vga_putchar): Likewise.
20168 (grub_vga_getcharwidth): Likewise.
20169 (grub_vga_getwh): Likewise.
20170 (grub_vga_getxy): Likewise.
20171 (grub_vga_gotoxy): Likewise.
20172 (grub_vga_cls): Likewise.
20173 (grub_vga_setcolorstate): Likewise.
20174 (grub_vga_setcursor): Likewise.
20175 (grub_video_vga_init): New function.
20176 (grub_video_vga_setup): Likewise.
20177 (grub_video_vga_fini): Likewise.
20178 (update_target): Likewise.
20179 (grub_video_vga_blit_bitmap): Likewise.
20180 (grub_video_vga_blit_render_target): Likewise.
20181 (grub_video_vga_set_active_render_target): Likewise.
20182 (grub_video_vga_get_active_render_target): Likewise.
20183 (grub_video_vga_swap_buffers): Likewise.
20184 (grub_video_vga_set_palette): Likewise.
20185 (grub_video_vga_get_info_and_fini): Likewise.
20186 (grub_vga_term): Removed.
20187 (grub_video_vga_adapter): New variable.
20188 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20189 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20190
20191 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20192
20193 * video/readers/jpeg.c: Indented.
20194
20195 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20196
20197 Various jpeg cleanups.
20198
20199 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20200 (grub_jpeg_decode_quan_table): Use sizeof.
20201 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20202
20203 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20204
20205 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20206 tables. Ignore non-last ac bit.
20207 (grub_jpeg_decode_quan_table): Likewise.
20208
20209 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20210
20211 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20212 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20213 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20214 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20215 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20216 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20217
20218 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20219
20220 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20221 error.
20222
20223 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20224
20225 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20226
20227 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20228
20229 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20230 condition.
20231
20232 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20235 part.
20236
20237 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20238
20239 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20240 pointers.
20241
20242 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20245
20246 2010-05-01 Christian Franke <franke@computer.org>
20247
20248 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20249 Remove broken Cygwin path conversion.
20250 * util/misc.c: [__CYGWIN__] Add include and define.
20251 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20252 for Cygwin 1.7.
20253 (make_system_path_relative_to_its_root): Simplify loop, replace early
20254 return by break.
20255 [__CYGWIN__] Add conversion to win32 path.
20256 Include "/" case in trailing slash removal.
20257
20258 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20259
20260 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20261 Reported by: Seth Goldberg
20262
20263 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20264
20265 * commands/help.c (grub_cmd_help): Fix a typo.
20266 Reported by: Seth Goldberg
20267
20268 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20269
20270 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
20271 name and add N_.
20272 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
20273 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
20274 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
20275 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
20276 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
20277 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
20278 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20279 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20280 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20281 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20282 * normal/context.c (GRUB_MOD_INIT): Likewise.
20283 * normal/main.c (GRUB_MOD_INIT): Likewise.
20284 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20285 * term/serial.c (GRUB_MOD_INIT): Likewise.
20286 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20287
20288 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20289
20290 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
20291 extra == 0.
20292
20293 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20294
20295 * commands/iorw.c: New file.
20296 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
20297 (iorw_mod_SOURCES): New variable.
20298 (iorw_mod_CFLAGS): Likewise.
20299 (iorw_mod_LDFLAGS): Likewise.
20300
20301 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20302
20303 Hotkey support
20304
20305 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
20306 * normal/main.c (hotkey_aliases): New variable.
20307 (grub_normal_add_menu_entry): Parse "--hotkey".
20308 * normal/menu_text.c (run_menu): Handle hotkeys.
20309
20310 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20311
20312 * kern/i386/coreboot/init.c (grub_machine_init): Call
20313 grub_machine_mmap_init on qemu.
20314
20315 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20316
20317 * boot/i386/qemu/boot.S: Add a missing .code16.
20318
20319 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 Use LBIO on coreboot.
20322
20323 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
20324 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
20325 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
20326 New declaration.
20327 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
20328 grub_machine_mmap_init on coreboot.
20329 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
20330 GRUB_LINUXBIOS_MEMBER_LINK.
20331 (grub_machine_mmap_iterate): Fix declaration.
20332 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
20333
20334 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20335
20336 Split coreboot and multiboot ports.
20337
20338 * conf/i386-multiboot.rmk: New file.
20339 * configure.ac: Add multiboot port.
20340 * include/grub/i386/multiboot/boot.h: New file.
20341 * include/grub/i386/multiboot/console.h: Likewise.
20342 * include/grub/i386/multiboot/init.h: Likewise.
20343 * include/grub/i386/multiboot/kernel.h: Likewise.
20344 * include/grub/i386/multiboot/loader.h: Likewise.
20345 * include/grub/i386/multiboot/memory.h: Likewise.
20346 * include/grub/i386/multiboot/serial.h: Likewise.
20347 * include/grub/i386/multiboot/time.h: Likewise.
20348 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
20349 * loader/multiboot.c: Likewise.
20350 * loader/multiboot_mbi2.c: Likewise.
20351 * util/grub-mkrescue.in: Generate multiboot rescue.
20352
20353 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20354
20355 * kern/parser.c (grub_parser_execute): Cope with read-only config.
20356
20357 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20358
20359 Merge handling of input and output terminals. Fix a hang.
20360
20361 * commands/terminal.c (abstract_terminal): New struct.
20362 (handle_command): New function. Based on grub_cmd_terminal_input.
20363 (grub_cmd_terminal_input): Use handle_command.
20364 (grub_cmd_terminal_output): Use handle_command.
20365
20366 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
20367
20368 Fix comment handling.
20369
20370 * tests/grub_script_comments.in: New testcase.
20371 * conf/tests.rmk: Rules for new testcase.
20372 * script/yylex.l: Updated flex rules.
20373
20374 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
20375
20376 * docs/grub.texi (play): Document that zero pitches produce rests.
20377 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
20378 if argc is 1.
20379
20380 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20381
20382 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
20383 autogen issues.
20384
20385 2010-04-26 Christian Franke <franke@computer.org>
20386
20387 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
20388 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
20389 (grub_get_prefix): Remove function.
20390 * util/grub-emu.c (main): Replace grub_get_prefix () call by
20391 make_system_path_relative_to_its_root ().
20392 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20393
20394 2010-04-24 Christian Franke <franke@computer.org>
20395
20396 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
20397 (kernel_img_LDFLAGS): Remove -static-libgcc.
20398
20399 2010-04-24 Christian Franke <franke@computer.org>
20400
20401 * configure.ac: Do not CHECK_BSS_START_SYMBOL
20402 and CHECK_END_SYMBOL if grub-emu is built.
20403 Unset TARGET_OBJ2ELF if grub-emu is built
20404 without module support.
20405
20406 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
20407
20408 Nilfs2 support.
20409
20410 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
20411 (grub_fstest_SOURCES): Likewise.
20412 (pkglib_MODULES): Add nilfs2.mod.
20413 (nilfs2_mod_SOURCES): New variable.
20414 (nilfs2_mod_CFLAGS): Likewise.
20415 (nilfs2_mod_LDFLAGS): Likewise.
20416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20417 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20418 * fs/nilfs2.c: New file.
20419
20420 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
20421
20422 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
20423 is not supported.
20424
20425 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
20426
20427 Add grub-mkconfig support for NetBSD.
20428
20429 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
20430 * util/grub-mkconfig.in: export new NetBSD specific variables.
20431 * po/POTFILES-shell: added 10_netbsd.in.
20432 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
20433
20434 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
20435
20436 Fix emu build with grub-emu-pci and grub-emu-modules.
20437
20438 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
20439 functions.
20440 * include/grub/libpciaccess.h: New file.
20441 * conf/any-emu.rmk: Update kernel headers for emu build.
20442
20443 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
20446
20447 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20448
20449 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
20450
20451 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20452
20453 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
20454 Retrieve chosen/bootpath if bootpath isn't hardcoded.
20455 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
20456 util/ieee1275/ofpath.c.
20457 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
20458 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
20459 * include/grub/sparc64/ieee1275/boot.h
20460 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
20461 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
20462 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
20463 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
20464 const char *.
20465 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
20466 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
20467 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
20468 install.
20469
20470 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
20471
20472 * util/grub-mkconfig.in: Corrected two == equality tests.
20473 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
20474 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
20475 expect a number appended to it.
20476 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
20477 expects a number appended to it.
20478
20479 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20480
20481 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
20482
20483 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20484
20485 * util/hostdisk.c (make_device_name): Change to new partition naming.
20486
20487 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20488
20489 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
20490
20491 2010-04-17 Christian Franke <franke@computer.org>
20492
20493 * Makefile.in: Add missing localedir setting.
20494
20495 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
20496
20497 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
20498 mistake in r2156. Noticed by Anthony Fok.
20499
20500 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
20501 @localedir@.
20502 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
20503
20504 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
20505
20506 Fix a spurious, uninitialized variable warning.
20507
20508 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
20509 Initialize variable, shdr.
20510 (grub_freebsd_load_elfmodule): Likewise.
20511 (grub_freebsd_load_elf_meta): Likewise.
20512
20513 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
20514
20515 Fix for escaped dollar in double quoted strings.
20516
20517 * script/yylex.l: Updated flex rules.
20518 * conf/tests.rmk: Rule for new testcase.
20519 * tests/grub_script_dollar.in: New testcase.
20520
20521 2010-04-13 Carles Pina i Estany <carles@pina.cat>
20522 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
20523
20524 Enclose all translated strings in grub.cfg in single quotes, and
20525 escape them appropriately (Ubuntu bug #552921).
20526
20527 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
20528 * util/grub.d/10_hurd.in: Use it.
20529 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20530 * util/grub.d/10_linux.in (linux_entry): Likewise.
20531
20532 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20533
20534 Fix cygwin compilation.
20535
20536 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
20537 * include/grub/misc.h (__register_frame_info)
20538 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
20539 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20540 * kern/misc.c (__register_frame_info)
20541 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
20542 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20543
20544 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20545
20546 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
20547
20548 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 Unify libgcc processing.
20551
20552 * Makefile.in (kernel_img_LDFLAGS): New variable.
20553 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
20554 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
20555 overwriting.
20556 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
20557 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
20558 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
20559 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
20560 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
20561 overwriting. Remove -lgcc and -static-libgcc
20562 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
20563 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20564 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20565 (kernel_img_LDFLAGS): Append instead of overwriting.
20566 Remove -lgcc and -static-libgcc
20567 * conf/sparc64-ieee1275.rmk: Likewise.
20568 * include/grub/powerpc/libgcc.h: Move to ...
20569 * include/grub/libgcc.h: .. this.
20570 * include/grub/libgcc.h: Don't export most of the function on x86.
20571 (__bswapsi2): New export.
20572 (__bswapdi2): Likewise.
20573 * include/grub/mips/libgcc.h: Removed.
20574 * include/grub/sparc64/libgcc.h: Likewise.
20575
20576 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20577
20578 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
20579 disk_info_msg (conflicts with gettexting into languages with cases).
20580
20581 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
20582
20583 Add grub-probe support for NetBSD.
20584
20585 * util/getroot.c (find_root_device): Convert block device to
20586 character device on NetBSD.
20587 * util/probe.c (probe): Require character device on NetBSD.
20588 * util/hostdisk.c: NetBSD specific headers.
20589 (configure_device_driver): new function to tune device driver
20590 parameters (currently only for NetBSD floppy driver).
20591 (grub_util_biosdisk_open): NetBSD specific code (get disk size
20592 via disklabel ioctl).
20593 (open_device): call configure_device_driver on NetBSD.
20594 (convert_system_partition_to_system_disk): NetBSD specific code.
20595 (device_is_wholedisk): Likewise.
20596 (grub_util_biosdisk_get_grub_dev): Likewise.
20597 (make_device_name): Fixed a typo in bsd_part_str.
20598 * configure.ac: check for opendisk() and getrawpartition() on
20599 NetBSD and set LIBUTIL.
20600 * Makefile.in: add LIBUTIL to LIBS.
20601
20602 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20603
20604 Documentation fix.
20605
20606 * util/grub-script-check.c: Better help message.
20607
20608 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20609
20610 Fix FreeBSD build.
20611
20612 * configure.ac: Flex version check.
20613 * conf/common.rmk: Add -Wno-error to sh.mod.
20614 * script/yylex.l: Remove all #pragma.
20615
20616 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20617
20618 * include/grub/util/misc.h (canonicalise_file_name): Add missing
20619 prototype.
20620 Reported by: Seth Goldberg.
20621
20622 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20623
20624 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
20625 Rename "module" to "module2".
20626 Reported by: Seth Goldberg.
20627
20628 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20629
20630 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
20631 EXPORT_FUNC.
20632 Reported by: Seth Goldberg.
20633
20634 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * lib/posix_wrap/locale.h: Add missing file.
20637 Reported by: Seth Goldberg.
20638
20639 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20640
20641 grub-emu module load support.
20642
20643 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
20644 NO_DYNAMIC_MODULES switched to this.
20645 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
20646 (CFLAGS): Likewise.
20647 * conf/any-emu.rmk: Generate symlist.
20648 (kernel_img_HEADERS): Add util/datetime.h.
20649 (kernel_img_HEADERS) [sdl]: Add sdl.h.
20650 (kernel_img_HEADERS) [libusb]: Add libusb.h.
20651 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
20652 kern/$(target_cpu)/cache.S.
20653 * configure.ac (grub-emu-modules): New option.
20654 * genmk.rb: Handle multiple source lists.
20655 * include/grub/sdl.h: New file.
20656 * include/grub/libusb.h: Likewise.
20657 * util/grub-emu.c (main): Hanle (host) root.
20658 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
20659 GRUB_ERR_UNKNOWN_DEVICE.
20660 * util/misc.c: Move mm functions to ...
20661 * util/mm.c: ... here. All users updated.
20662
20663 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
20666 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
20667 missing files.
20668 (maintainer-clean): Remove libgcrypt-grub.
20669
20670 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20671
20672 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
20673
20674 2010-04-09 EFI Coder <eficoder@hotmail.com>
20675
20676 * normal/menu_text.c (print_message): Clean up the message and show
20677 the Fn information when on EFI
20678 * term/efi/console.c (grub_console_checkkey): Add F4 support.
20679
20680 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20681
20682 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
20683 All users updated.
20684 * normal/crypto.c (read_crypto_list): Likewise.
20685 * normal/dyncmd.c (read_command_list): Likewise.
20686 * normal/term.c (read_terminal_list): Likewise.
20687 * normal/main.c (read_lists): Use explicit prefix.
20688 (read_lists_hook): Use read_lists.
20689 (grub_normal_execute): Likewise.
20690
20691 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20692
20693 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
20694 Reported by: Thomas Schmitt.
20695 Add -no-emul-boot to grub-mkisofs parameters.
20696
20697 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20698
20699 * font/font.c: Indented.
20700
20701 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20702
20703 Elif support to GRUB script (by Deepak Vankadaru).
20704
20705 * tests/grub_script_if.in: New testcase.
20706 * conf/tests.rmk: Rule for new testcase.
20707 * script/parser.y: Grammar rules for elif.
20708
20709 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20710
20711 While and until loops support to GRUB script.
20712
20713 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
20714 (grub_script_create_cmdwhile): New function prototype.
20715 (grub_script_execute_cmdwhile): New function prototype.
20716 * script/execute.c (grub_script_execute_cmdwhile): New function.
20717 * script/parser.y (command): New commands.
20718 (whilecmd): New grammar rule.
20719 (untilcmd): New grammar rule.
20720 * script/script.c (grub_script_create_cmdwhile): New function.
20721 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
20722 function.
20723
20724 * tests/grub_script_while1.in: New testcase.
20725 * conf/tests.rmk: Rule for new testcase.
20726
20727 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
20730 as *.jpg.
20731
20732 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
20733
20734 GRUB_BACKGROUND support.
20735
20736 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
20737 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
20738
20739 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20740
20741 Load fonts and modules for gfxmenu in grub-mkconfig.
20742 Idea by: Mario Vazquez
20743
20744 * util/grub.d/00_header.in: Load pf2 and image modules.
20745
20746 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20747
20748 grub-mkconfig multiple terminal support.
20749
20750 * util/grub-mkconfig.in: Handle multiple terminals correctly.
20751 * util/grub.d/00_header.in: Likewise.
20752
20753 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20754
20755 * Makefile.in: Specify files explicitly instead of using $< and $@ since
20756 we use cd $(srcdir).
20757
20758 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
20759
20760 * util/grub.d/10_linux.in: Only use the first word of
20761 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
20762 spaces in GRUB_DISTRIBUTOR.
20763 * util/grub.d/10_kfreebsd.in: Likewise.
20764 * util/grub.d/10_hurd.in: Likewise.
20765
20766 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
20767
20768 Fix unit testing framework for Qemu 0.12.
20769
20770 * tests/util/grub-shell.in: Remove -serial stdio option.
20771
20772 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20773
20774 POSIX header file wrappers.
20775
20776 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
20777 equivalents.
20778 * lib/posix_wrap/ctype.h: Likewise.
20779 * lib/posix_wrap/errno.h: Likewise.
20780 * lib/posix_wrap/langinfo.h: Likewise.
20781 * lib/posix_wrap/limits.h: Likewise.
20782 * lib/posix_wrap/localcharset.h: Likewise.
20783 * lib/posix_wrap/stdint.h: Likewise.
20784 * lib/posix_wrap/stdio.h: Likewise.
20785 * lib/posix_wrap/stdlib.h: Likewise.
20786 * lib/posix_wrap/string.h: Likewise.
20787 * lib/posix_wrap/sys/types.h: Likewise.
20788 * lib/posix_wrap/unistd.h: Likewise.
20789 * lib/posix_wrap/wchar.h: Likewise.
20790 * lib/posix_wrap/wctype.h: Likewise.
20791 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
20792 (grub_script.yy.h): Likewise.
20793 * script/yylex.l: Remove POSIX emulation #defines.
20794 * Makefile.in (POSIX_CFLAGS): New variable.
20795 (GNULIB_UTIL_CFLAGS): Likewise.
20796
20797 Regexp support.
20798
20799 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
20800 (regexp_mod_SOURCES): New variable.
20801 (regexp_mod_CFLAGS): Likewise.
20802 (regexp_mod_LDFLAGS): Likewise.
20803 * commands/regexp.c: New file.
20804 * gnulib/regcomp.c: New file. Imported from gnulib.
20805 * gnulib/regex.c: Likewise.
20806 * gnulib/regex_internal.c: Likewise.
20807 * gnulib/regex_internal.h: Likewise.
20808 * gnulib/regexec.c: Likewise.
20809 * gnulib/regex.h: Likewise.
20810
20811 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20812
20813 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
20814 unsupported video mode types.
20815
20816 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20817
20818 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
20819
20820 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20821
20822 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
20823 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
20824
20825 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
20826
20827 Remove unused grub_vga_get_font.
20828
20829 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
20830 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
20831
20832 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20833
20834 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
20835 * include/grub/misc.h: Likewise.
20836
20837 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20838
20839 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
20840 for which failure is fatal.
20841
20842 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20843
20844 * util/grub-install.in: Use mkdir -p to create grub directory.
20845 * util/i386/efi/grub-install.in: Likewise.
20846 * util/ieee1275/grub-install.in: Likewise.
20847
20848 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20849
20850 * Makefile.in (LEX): new variable.
20851
20852 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20853
20854 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
20855 `=' and added double quotes on operands of this equality test.
20856
20857 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 * Makefile.in (uninstall): Remove a leftover debug echo.
20860 Reported by: Grégoire Sutre
20861
20862 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 MIPS multiboot2 support.
20865
20866 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
20867 (multiboot2_mod_SOURCES): New variable.
20868 (multiboot2_mod_CFLAGS): Likewise.
20869 (multiboot2_mod_LDFLAGS): Likewise.
20870 (multiboot2_mod_ASFLAGS): Likewise.
20871 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
20872 definition.
20873 (MULTIBOOT_ENTRY_REGISTER): Likewise.
20874 (MULTIBOOT_MBI_REGISTER): Likewise.
20875 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
20876 (MULTIBOOT_ELF32_MACHINE): Likewise.
20877 (MULTIBOOT_ELF64_MACHINE): Likewise.
20878 * include/grub/mips/multiboot.h: New file.
20879 * include/grub/video.h (grub_video_driver_id): New type
20880 GRUB_VIDEO_DRIVER_SM712.
20881 (grub_video_get_info_and_fini): Export.
20882 (grub_video_get_palette): Likewise.
20883 (grub_video_get_driver_id): Likewise.
20884 * include/multiboot2.h: Resynced with spec.
20885 * loader/i386/multiboot.c: Moved from here ...
20886 * loader/multiboot.c: ... here. All users updated.
20887 (grub_multiboot_boot): Use platform-specific macros.
20888 * loader/i386/multiboot_elfxx.c: Moved from here ...
20889 * loader/multiboot_elfxx.c: ... here. All users updated.
20890 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
20891 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
20892 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
20893
20894 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20895
20896 Import gnulib argp module.
20897
20898 * gnulib/argp-ba.c: New file.
20899 * gnulib/argp-eexst.c: Likewise.
20900 * gnulib/argp-fmtstream.c: Likewise.
20901 * gnulib/argp-fmtstream.h: Likewise.
20902 * gnulib/argp-fs-xinl.c: Likewise.
20903 * gnulib/argp-help.c: Likewise.
20904 * gnulib/argp-namefrob.h: Likewise.
20905 * gnulib/argp-parse.c: Likewise.
20906 * gnulib/argp-pin.c: Likewise.
20907 * gnulib/argp-pv.c: Likewise.
20908 * gnulib/argp-pvh.c: Likewise.
20909 * gnulib/argp-version-etc.c: Likewise.
20910 * gnulib/argp-version-etc.h: Likewise.
20911 * gnulib/argp-xinl.c: Likewise.
20912 * gnulib/argp.h: Likewise.
20913
20914 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20915
20916 * kern/device.c (grub_device_iterate): Clear errors after failed
20917 opening device.
20918
20919 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20920
20921 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
20922 returned by firmware.
20923
20924 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20925
20926 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
20927 compilation on coreboot and qemu
20928
20929 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
20930
20931 * include/multiboot2.h: Resync with spec.
20932
20933 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
20934
20935 Multiboot2 tag support
20936
20937 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
20938 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
20939 Remove loader/multiboot_loader.c.
20940 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
20941 (grub_multiboot2_real_boot): Likewise.
20942 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
20943 (grub_get_multiboot_mmap_count): New proto.
20944 (grub_fill_multiboot_mmap): Likewise.
20945 (grub_multiboot_set_video_mode): Likewise.
20946 (grub_multiboot_set_console): Likewise.
20947 (grub_multiboot_load): Likewise.
20948 (grub_multiboot_load_elf): Likewise.
20949 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
20950 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
20951 * include/multiboot.h: Resynced with specification.
20952 * include/multiboot2.h: Resynced with specification.
20953 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
20954 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
20955 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
20956 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
20957 users updated.
20958 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
20959 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
20960 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
20961 Removed.
20962 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
20963 Moved from here...
20964 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
20965 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20966 Moved from here...
20967 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
20968 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
20969 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
20970 All users updated.
20971 * loader/i386/multiboot_mbi2.c: New file.
20972
20973 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
20974
20975 Resync with gnulib.
20976
20977 * Makefile.in (GNULIB_CFLAGS): New variable.
20978 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
20979 (grub_script_check_CFLAGS): New variable.
20980 * gnulib/alloca.h: Resync with gnulib.
20981 * gnulib/error.c: Likewise.
20982 * gnulib/error.h: Likewise.
20983 * gnulib/fnmatch.c: Likewise.
20984 * gnulib/fnmatch_loop.c: Likewise.
20985 * gnulib/getdelim.c: Likewise.
20986 * gnulib/getline.c: Likewise.
20987 * gnulib/getopt.c: Likewise.
20988 * gnulib/getopt1.c: Likewise.
20989 * gnulib/getopt_int.h: Likewise.
20990 * gnulib/gettext.h: Likewise.
20991 * gnulib/progname.c: Likewise.
20992 * gnulib/progname.h: Likewise.
20993
20994 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
20995
20996 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
20997 which is the case with --disabled-nls.
20998
20999 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21000 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21001 * util/misc.c: Likewise.
21002 * util/mkisofs/mkisofs.c: Likewise.
21003 * util/mkisofs/mkisofs.h: Likewise.
21004
21005 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 Simplify Apple CC support.
21008
21009 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21010 Add 0 byte at the end not to have a symbol with empty target.
21011 * mmap/i386/pc/mmap_helper.S: Likewise.
21012 * genmk.rb: Ignore errors 2030 and 2050.
21013 * kern/i386/pc/startup.S: Use LOCAL when possible.
21014
21015 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21016
21017 Testcase and the fix for final semicolon on cmdline.
21018
21019 * tests/grub_script_final_semicolon.in: New testcase.
21020 * conf/tests.rmk: Rules for the new testcase.
21021 * script/parser.y: Grammar fix.
21022
21023 2010-03-26 BVK Chaitanya <bvk@localhost>
21024
21025 Blank lines testcase for GRUB script.
21026
21027 * tests/grub_script_blanklines.in: New testcase.
21028 * conf/tests.rmk: Rules for the new testcase.
21029
21030 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21031
21032 Don't use __FILE__.
21033
21034 * genmk.rb: Add -DGRUB_FILE to all C targets.
21035 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21036 * include/grub/list.h: Likewise.
21037 * include/grub/misc.h: Likewise.
21038 * include/grub/mm.h: Likewise.
21039 * include/grub/test.h: Likewise.
21040 * kern/mm.c: Likewise.
21041 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21042
21043 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21044
21045 Sunpc partitions support.
21046
21047 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21048 (grub_fstest_SOURCES): Likewise.
21049 (pkglib_MODULES): Add part_sunpc.mod.
21050 (part_sunpc_mod_SOURCES): New variable.
21051 (part_sunpc_mod_CFLAGS): Likewise.
21052 (part_sunpc_mod_LDFLAGS): Likewise.
21053 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21054 * partmap/sunpc.c: New file.
21055
21056 2010-03-26 BVK Chaitanya <bvk@localhost>
21057
21058 For loop support to GRUB script.
21059
21060 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21061 (grub_script_create_cmdfor): New function prototype.
21062 (grub_script_execute_cmdfor): New function prototype.
21063 * script/execute.c (grub_script_execute_cmdfor): New function.
21064 * script/parser.y (command): New for command.
21065 (forcmd): New grammar rule.
21066 * script/script.c (grub_script_create_cmdfor): New function.
21067 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21068 function.
21069 * tests/grub_script_for1.in: New testcase.
21070 * conf/tests.rmk: Rules for new testcase.
21071
21072 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21073
21074 Nested partitions
21075
21076 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21077 'partition' is NULL, grub_partition_get_start already does that.
21078 * commands/loadenv.c (check_blocklists): Likewise.
21079 (write_blocklists): Likewise.
21080 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21081 (grub_fstest_SOURCES): Likewise.
21082 (pkglib_MODULES): Add part_bsd.mod.
21083 (part_bsd_mod_SOURCES): New variable.
21084 (part_bsd_mod_CFLAGS): Likewise.
21085 (part_bsd_mod_LDFLAGS): Likewise.
21086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21087 (grub_emu_SOURCES): Likewise.
21088 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21089 * include/grub/bsdlabel.h: New file.
21090 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21091 'get_name'.
21092 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21093 (grub_partition_map_list): New variable.
21094 (grub_partition_map_register): Inline.
21095 (grub_partition_map_unregister): Likewise.
21096 (FOR_PARTITION_MAPS): New macro.
21097 (grub_partition_map_iterate): Removed.
21098 (grub_partition_get_start): Handle nested partitions.
21099 * include/grub/msdos_partition.h: Remove bsd-related entries.
21100 (grub_pc_partition): Remove.
21101 * kern/disk.c (grub_disk_close): Free partition data.
21102 (grub_disk_adjust_range): Handle nested partitions.
21103 * kern/partition.c (grub_partition_map_probe): New function.
21104 (grub_partition_probe): Parse name to number, handle subpartitions.
21105 (get_partmap): New function.
21106 (grub_partition_iterate): Handle subpartitions.
21107 (grub_partition_get_name): Likewise.
21108 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21109 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21110 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21111 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21112 Set 'number'.
21113 (acorn_partition_map_probe): Remove.
21114 (acorn_partition_map_get_name): Likewise.
21115 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21116 Set 'number'.
21117 Set 'index' to 0 since there can be only one partition entry per sector.
21118 (amiga_partition_map_probe): Remove.
21119 (amiga_partition_map_get_name): Likewise.
21120 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21121 Set 'number'.
21122 Set 'offset' and 'index' to real positions of partitions.
21123 (apple_partition_map_probe): Remove.
21124 (apple_partition_map_get_name): Likewise.
21125 * partmap/bsdlabel.c: New file.
21126 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21127 Set 'number'.
21128 Allocate 'data' so it can be correctly freed.
21129 Set 'index' to offset inside sector.
21130 (gpt_partition_map_probe): Remove.
21131 (gpt_partition_map_get_name): Likewise.
21132 * partmap/msdos.c (grub_partition_parse): Remove.
21133 (pc_partition_map_iterate): Don't force raw access.
21134 Set 'number'.
21135 Make 'ext_offset' a local variable.
21136 (pc_partition_map_probe): Remove.
21137 (pc_partition_map_get_name): Remove.
21138 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21139 Set 'number'.
21140 (sun_partition_map_probe): Remove.
21141 (sun_partition_map_get_name): Likewise.
21142 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21143 (grub_pcpart_type): Likewise.
21144 * util/hostdisk.c (open_device): Handle new numbering scheme.
21145 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21146 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21147 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21148 * util/grub-install.in: Insert all subpartition modules.
21149 * util/ieee1275/grub-install.in: Likewise.
21150
21151 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21152
21153 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21154 grammar.
21155
21156 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21157
21158 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21159
21160 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21161
21162 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21163 match where 'make install' puts them.
21164 * util/i386/efi/grub-install.in: Likewise.
21165
21166 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21167
21168 * .bzrignore: Add gentrigtables, grub-script-check,
21169 grub_script_check_init.c, grub_script_check_init.h, and
21170 trigtables.c.
21171
21172 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21173
21174 * kern/parser.c: Indented.
21175
21176 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21177
21178 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21179
21180 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21181
21182 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21183 alpha_mask_size == 0 case.
21184
21185 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21186
21187 GRUB shell lexer and parser improvements.
21188
21189 * conf/any-emu.rmk: Build rule updates.
21190 * conf/common.rmk: Likewise.
21191 * conf/i386-coreboot.rmk: Likewise.
21192 * conf/i386-efi.rmk: Likewise.
21193 * conf/i386-ieee1275.rmk: Likewise.
21194 * conf/i386-pc.rmk: Likewise.
21195 * conf/powerpc-ieee1275.rmk: Likewise.
21196 * conf/x86_64-efi.rmk: Likewise.
21197
21198 * configure.ac: Configure check for flex.
21199
21200 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21201 types.
21202 (grub_lexer_param): Struct member updates.
21203 (grub_parser_param): Likewise.
21204 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21205 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21206 (grub_script_lexer_init): Prototype update.
21207 (grub_script_lexer_record_start): Likewise.
21208 (grub_script_lexer_record_stop): Likewise.
21209 (grub_script_lexer_yywrap): New function prototype.
21210 (grub_script_lexer_fini): Likewise.
21211 (grub_script_execute_argument_to_string): Removed by...
21212 (grub_script_execute_argument_to_argv): ...better version.
21213
21214 * script/execute.c (ROUND_UPTO): New macro.
21215 (grub_script_execute_cmdline): Out of memory fixes.
21216 (grub_script_execute_menuentry): Likewise.
21217 (grub_script_execute_argument_to_string): Removed. Update all
21218 users by...
21219 (grub_script_execute_argument_to_argv): ...better version.
21220 * script/function.c (grub_script_function_create): Use
21221 grub_script_execute_argument_to_argv instead of
21222 grub_script_execute_argument_to_string.
21223
21224 * script/lexer.c (check_varstate): Removed.
21225 (check_textstate): Removed.
21226 (grub_script_lexer_record_start): Likewise.
21227 (grub_script_lexer_record_stop): Likewise.
21228 (recordchar): Replaced with...
21229 (grub_script_lexer_record): ...new function.
21230 (nextchar): Removed.
21231 (grub_script_lexer_init): Rewritten.
21232 (grub_script_yylex): Rewritten.
21233 (append_newline): New function.
21234 (grub_script_lexer_yywrap): New function.
21235 (grub_script_lexer_fini): New function.
21236 (grub_script_yyerror): Sets error flag.
21237
21238 * script/yylex.l: New file.
21239 (grub_lexer_yyfree): Wrapper for flex yyffre.
21240 (grub_lexer_yyalloc): Likewise.
21241 (grub_lexer_yyrealloc): Likewise.
21242 * script/parser.y: Refactored.
21243
21244 * script/script.c (grub_script_arg_add): Out of memory fixes.
21245 (grub_script_add_arglist): Likewise.
21246 (grub_script_create_cmdline): Likewise.
21247 (grub_script_create_cmdmenu): Likewise.
21248 (grub_script_add_cmd): Likewise.
21249 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21250 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21251 unnecessary code.
21252
21253 * tests/grub_script_echo1.in: New testcase.
21254 * tests/grub_script_vars1.in: New testcase.
21255 * tests/grub_script_echo_keywords.in: New testcase.
21256
21257 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 Remove some redundancy in build system.
21260
21261 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21262 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21263 (TARGET_LDFLAGS): Add -nostdlib.
21264 (TARGET_IMG_LDFLAGS): Likewise.
21265 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
21266 anything since mmap isn't available.
21267 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
21268 Add util/time.c.
21269 (pkglib_MODULES): Remove reboot.mod.
21270 (reboot_mod_SOURCES): Removed.
21271 (reboot_mod_CFLAGS): Likewise.
21272 (reboot_mod_LDFLAGS): Likewise.
21273 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
21274 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
21275 (DEFSYMFILES): Add kernel_syms.lst.
21276 (kernel_img_HEADERS): Add common headers.
21277 (symlist.c): New target.
21278 (kernel_syms.lst): Likewise.
21279 (pkglib_MODULES): Add memdisk.mod.
21280 (memdisk_mod_SOURCES): New variable.
21281 (memdisk_mod_CFLAGS): Likewise.
21282 (memdisk_mod_LDFLAGS): Likewise.
21283 (pkglib_MODULES): Add reboot.mod.
21284 (reboot_mod_SOURCES): New variable.
21285 (reboot_mod_CFLAGS): Likewise.
21286 (reboot_mod_LDFLAGS): Likewise.
21287 (pkglib_MODULES): Add date.mod.
21288 (date_mod_SOURCES): New variable.
21289 (date_mod_CFLAGS): Likewise.
21290 (date_mod_LDFLAGS): Likewise.
21291 (pkglib_MODULES): Add datehook.mod.
21292 (datehook_mod_SOURCES): New variable.
21293 (datehook_mod_CFLAGS): Likewise.
21294 (datehook_mod_LDFLAGS): Likewise.
21295 (pkglib_MODULES): Add lsmmap.mod.
21296 (lsmmap_mod_SOURCES): New variable.
21297 (lsmmap_mod_CFLAGS): Likewise.
21298 (lsmmap_mod_LDFLAGS): Likewise.
21299 (pkglib_MODULES): Add boot.mod.
21300 (boot_mod_SOURCES): New variable.
21301 (boot_mod_CFLAGS): Likewise.
21302 (boot_mod_LDFLAGS): Likewise.
21303 * conf/i386-coreboot.rmk: Removed redundant parts.
21304 * conf/i386-ieee1275.rmk: Likewise.
21305 * conf/i386-pc.rmk: Likewise.
21306 * conf/mips-yeeloong.rmk: Likewise.
21307 * conf/mips.rmk: Likewise.
21308 * conf/powerpc-ieee1275.rmk: Likewise.
21309 * conf/sparc64-ieee1275.rmk: Likewise.
21310 * conf/x86_64-efi.rmk: Likewise.
21311 * conf/i386-coreboot.rmk: Moved qemu parts ..
21312 * conf/i386-qemu.rmk: ... here
21313 * conf/i386-efi.rmk: Moved common parts to...
21314 * conf/x86-efi.rmk: ... here.
21315 * conf/i386.rmk: Added modules common to all x86 variants.
21316 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
21317 * disk/memdisk.c: Remove grub/machine/kernel.h.
21318 * gensymlist.sh.in: Include symbol.h.
21319 * hook/datehook.c: Correct module name.
21320 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
21321 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
21322 * include/grub/i386/efi/serial.h: New file.
21323 * include/grub/x86_64/efi/serial.h: Likewise.
21324 * util/time.c: Likewise.
21325 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
21326
21327 2010-03-14 Colin King <colin.king@ubuntu.com>
21328 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21329
21330 Shrink the pre-partition-table part of boot.img by eight bytes.
21331
21332 * boot/i386/pc/boot.S (ERR): New macro.
21333 (chs_mode): Use ERR.
21334 (geometry_error): Likewise.
21335 (hd_probe_error): Remove. This is only used once, so we wrwite
21336 it inline instead.
21337 (read_error): Instead of printing read_error_string, just set up
21338 %si and fall through to ...
21339 (error_message): ... this new function, also used by ERR.
21340
21341 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21342
21343 Speed up consecutive hostdisk operations on the same device.
21344
21345 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
21346 (grub_util_biosdisk_open): Initialise disk->data.
21347 (struct linux_partition_cache): New structure.
21348 (linux_find_partition): Cache partition start positions; these are
21349 expensive to compute on every read and write.
21350 (open_device): Cache open file descriptor in disk->data, so that we
21351 don't have to reopen it and flush the buffer cache for consecutive
21352 operations on the same device.
21353 (grub_util_biosdisk_close): New function.
21354 (grub_util_biosdisk_dev): Set `close' member.
21355
21356 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
21357 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
21358 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21359 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21360 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
21361
21362 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 Compile parts of grub-emu as modules.
21365
21366 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
21367 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
21368 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
21369 (all-local): Add $(GRUB_EMU).
21370 (install-local): Install $(GRUB_EMU).
21371 (uninstall): Uninstall $(GRUB_EMU).
21372 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
21373 * kern/dl.c: Likewise.
21374 * commands/sleep.c: Not include machine/time.h.
21375 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
21376 (COMMON_CFLAGS): Likewise.
21377 (sbin_UTILITIES): Remove grub-emu.
21378 (grub_emu_SOURCES): Removed.
21379 (kernel_img_RELOCATABLE): New variable.
21380 (pkglib_PROGRAMS): Add kernel.img.
21381 (kernel_img_SOURCES): New variable
21382 (kernel_img_CFLAGS): Likewise.
21383 (kernel_img_LDFLAGS): Likewise.
21384 (TARGET_NO_STRIP): Likewise.
21385 (TARGET_NO_DYNAMIC_MODULES): Likewise.
21386 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
21387 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
21388 (grub-emu): New target.
21389 (GRUB_EMU): New variable.
21390 * configure.ac: Whitelist -emu as possible x86_64 architecture.
21391 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
21392 * loader/xnu.c: Likewise.
21393 * include/grub/pci.h: Likewise.
21394 * genemuinit.sh: New file.
21395 * genemuinitheader.sh: Likewise.
21396 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
21397 Support TARGET_NO_DYNAMIC_MODULES.
21398 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
21399 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
21400 * disk/loopback.c: Likewise.
21401 * font/font_cmd.c: Likewise.
21402 * partmap/acorn.c: Likewise.
21403 * partmap/amiga.c: Likewise.
21404 * partmap/apple.c: Likewise.
21405 * partmap/gpt.c: Likewise.
21406 * partmap/msdos.c: Likewise.
21407 * partmap/sun.c: Likewise.
21408 * parttool/msdospart.c: Likewise.
21409 * term/gfxterm.c: Likewise.
21410 * video/bitmap.c: Likewise.
21411 * video/readers/jpeg.c: Likewise.
21412 * video/readers/png.c: Likewise.
21413 * video/readers/tga.c: Likewise.
21414 * video/video.c: Likewise.
21415 * util/grub-emu.c (read_command_list): Removed.
21416 (main): Don't call util_init_nls.
21417 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
21418 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
21419
21420 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21421
21422 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
21423 date.mod, datehook.mod.
21424 (datetime_mod_SOURCES): New variable.
21425 (datetime_mod_CFLAGS): Likewise.
21426 (datetime_mod_LDFLAGS): Likewise.
21427 (date_mod_SOURCES): Likewise.
21428 (date_mod_CFLAGS): Likewise.
21429 (date_mod_LDFLAGS): Likewise.
21430 (datehook_mod_SOURCES): Likewise.
21431 (datehook_mod_CFLAGS): Likewise.
21432 (datehook_mod_LDFLAGS): Likewise.
21433 * conf/sparc64-ieee1275.rmk: Likewise.
21434 * lib/ieee1275/datetime.c: New file.
21435
21436 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21437
21438 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
21439 (ieee1275_fb_mod_SOURCES): New variable.
21440 (ieee1275_fb_mod_CFLAGS): Likewise.
21441 (ieee1275_fb_mod_LDFLAGS): Likewise.
21442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
21443 New proto.
21444 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
21445 (HEAP_MAX_ADDR): Likewise.
21446 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
21447 type.
21448 Correct stop condition.
21449 (grub_ieee1275_devices_iterate): New function.
21450 * video/ieee1275.c: New file.
21451
21452 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21453
21454 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
21455
21456 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
21457 as scratch.
21458 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
21459 SCRATCH_PAD_DISKBOOT as scratch.
21460 (bootit): Pass Openfirmware pointer in %o4.
21461 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
21462 of 0x200000.
21463 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
21464 with util/grub-mkrawimage.c.
21465 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
21466 * include/grub/aout.h (AOUT_MID_SUN): New definition.
21467 (grub_aout_get_type) [GRUB_UTIL]: Removed.
21468 (grub_aout_load) [GRUB_UTIL]: Likewise.
21469 * include/grub/kernel.h (grub_modules_get_end): New proto.
21470 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
21471 (SCRATCH_PAD_BOOT): New definition.
21472 (SCRATCH_PAD_DISKBOOT): Likewise.
21473 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
21474 * include/grub/sparc64/ieee1275/ieee1275.h
21475 (grub_ieee1275_original_stack): New variable
21476 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21477 New definition
21478 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
21479 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
21480 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
21481 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
21482 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
21483 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
21484 (grub_platform_image_format_t): New type.
21485 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
21486 * kern/main.c (grub_modules_get_end)
21487 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
21488 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
21489 (codestart): Switch stacks.
21490 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
21491 variable.
21492 (grub_heap_init): Use grub_modules_get_end.
21493 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
21494 stack.
21495 * util/grub-mkrawimage.c (generate_image): Support sparc64.
21496 (main): Likewise.
21497 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
21498
21499 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
21500
21501 * util/grub-mkrescue.in: Base ISO UUID on UTC.
21502
21503 2010-03-08 Matt Kraai <kraai@ftbfs.org>
21504
21505 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
21506 bug #559005).
21507
21508 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
21509
21510 * genmoddep.awk: Output all missing symbols and not only first.
21511
21512 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21513
21514 * NEWS: Put the date of 1.98 release.
21515
21516 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21517
21518 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
21519 ft2build.h.
21520
21521 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21522
21523 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
21524 completition in the middle of string.
21525
21526 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * util/grub-mkrescue.in: Use mktemp with explicit template.
21529
21530 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
21533
21534 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
21537 right pointer.
21538
21539 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21540
21541 Fix FreeBSD compilation.
21542
21543 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
21544 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
21545
21546 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21547
21548 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
21549
21550 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
21553
21554 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21555
21556 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
21557
21558 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
21559
21560 Support relative image path in theme file.
21561
21562 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
21563 (image_set_property): Handle theme_dir and relative path.
21564
21565 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 * configure.ac: Alias amd64 to x86_64.
21568
21569 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21570
21571 * NEWS: mention multiboot on EFI.
21572
21573 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21574
21575 * kern/main.c (grub_load_modules): Handle errors from init functions of
21576 embeded modules.
21577
21578 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21579
21580 * normal/autofs.c (autoload_fs_module): Handle errors.
21581
21582 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21583
21584 Disable linux.mod on qemu-mips since it's not functional and leads
21585 to compilation failure.
21586
21587 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
21588 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
21589 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
21590 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
21591 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
21592 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
21593 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
21594 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
21595 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
21596 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
21597 Reported by: BVK Chaitanya
21598
21599 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
21600
21601 * INSTALL: Add gettext as a dependency and add qemu to a new section
21602 "Prerequisites for make-check".
21603
21604 2010-03-04 Christian Franke <franke@computer.org>
21605
21606 * util/grub-pe2elf.c: Add missing include "progname.h".
21607
21608 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21609
21610 * normal/crypto.c (read_crypto_list): Fix a typo.
21611 Reported by: Seth Goldberg.
21612
21613 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
21616 Reported by: Seth Goldberg.
21617
21618 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
21621 ascii.bitmaps.
21622
21623 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21624
21625 * genmk.rb: Remove terminal*.lst in make clean.
21626 Reported by: Seth Goldberg.
21627
21628 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21629
21630 * util/i386/efi/grub-install.in: Copy gettext files.
21631
21632 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
21635
21636 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21637
21638 Wait for user entry basing on presence of output rather than on errors.
21639
21640 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
21641 (grub_install_newline_hook): Likewise.
21642 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
21643 * normal/menu.c (show_menu): Check line_counter to determine presence
21644 of output.
21645 * normal/term.c (grub_normal_line_counter): New variable.
21646 (grub_normal_get_line_counter): New function.
21647 (grub_install_newline_hook): Likewise.
21648
21649 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
21652
21653 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 * configure.ac: Update version to 1.98.
21656
21657 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
21658
21659 * util/grub.d/10_linux.in (linux_entry): Don't default to
21660 gfxpayload=keep if Linux doesn't support video handover.
21661
21662 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 Don't compile video modules on yeeloong since video subsystem is part
21665 of kernel.
21666
21667 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
21668 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
21669 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
21670 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
21671 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
21672 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
21673 * include/grub/bitmap_scale.h: Likewise.
21674 * include/grub/bufio.h: Likewise.
21675 * include/grub/font.h: Likewise.
21676 * include/grub/gfxterm.h: Likewise.
21677 * include/grub/video.h: Likewise.
21678 * include/grub/vbe.h: Don't include video_fb.h.
21679 * video/i386/pc/vbe.c: Include video_fb.h.
21680 * commands/i386/pc/vbetest.c: Include video.h.
21681
21682 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
21683
21684 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
21685 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
21686 default entry if GRUB_SAVEDEFAULT=true. This allows using
21687 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
21688 saving a new default on every boot.
21689
21690 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * normal/crypto.c (read_crypto_list): Fix a memory leak.
21693 * normal/term.c (read_terminal_list): Likewise.
21694 * normal/main.c (grub_normal_init_page): Likewise.
21695 (grub_normal_read_line_real): Likewise.
21696
21697 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21698
21699 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
21700 memory leak.
21701 Reported by: Seth Goldberg.
21702
21703 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
21704
21705 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
21706 duplicate declaration of `start'.
21707
21708 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21709
21710 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
21711 filename.
21712 Reported by: Georgy Buranov
21713
21714 2010-02-20 Carles Pina i Estany <carles@pina.cat>
21715
21716 * util/grub-mkrawimage.c (usage): Change string formatting to
21717 improve gettext.
21718
21719 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21720
21721 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
21722 backspace keys.
21723
21724 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21725
21726 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
21727 Reported by: Michael Suchanek.
21728
21729 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
21730
21731 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
21732 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
21733
21734 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 Remove any reference to non-free fonts.
21737
21738 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
21739 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
21740 uses non-free components.
21741 * font/font.c (grub_font_get_name): Remove example name.
21742 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
21743 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21744 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
21745 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
21746
21747 2010-02-16 Georgy Buranov <gburanov@gmail.com>
21748
21749 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
21750
21751 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
21752
21753 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
21754 Double divisor.
21755 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
21756 features.
21757 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
21758
21759 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
21760
21761 * gensymlist.sh.in: Use TARGET_CC instead of CC.
21762
21763 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21764
21765 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
21766 * docs/grub.texi (Command-line and menu entry commands): Document play
21767 command.
21768
21769 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21770
21771 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
21772 parse arguments as inline tempo and notes. Move code for playing notes
21773 to...
21774 (play): ... new function.
21775
21776 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21777
21778 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
21779 grub_uint16_t instead of short.
21780 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
21781 disk from little endian to cpu endianness.
21782
21783 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
21784
21785 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
21786 GRUB_TICKS_PER_SECOND instead of 120.
21787
21788 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21789
21790 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
21791 escape sequence after \e.
21792
21793 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21794
21795 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
21796 non-ASCII characters.
21797
21798 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21799
21800 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
21801 set root in single quotes to prevent \, from being unescaped.
21802
21803 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21804
21805 Prevent unknown commands from stopping menuentry execution.
21806
21807 * script/execute.c (grub_script_execute_cmdline): Print error after
21808 unknown command.
21809
21810 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21811
21812 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
21813 Reported by: Pavel Pisa.
21814
21815 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21816
21817 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
21818
21819 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21820
21821 Merge grub_ieee1275_map_physical into grub_map and rename to
21822 grub_ieee1275_map
21823
21824 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
21825 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
21826 Remove.
21827 * kern/ieee1275/openfw.c (grub_map): Rename to ...
21828 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
21829 necessary.
21830 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
21831
21832 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
21835 opening and not after.
21836
21837 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21838
21839 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
21840 constants.
21841
21842 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21843
21844 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
21845 (alloc_phys): Use ALIGN_UP instead of align_addr.
21846
21847 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21848
21849 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
21850
21851 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21852
21853 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
21854
21855 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21856
21857 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
21858 verbose dprintf.
21859
21860 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21861
21862 Fix over-4GiB seek on sparc64.
21863
21864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
21865 Replace pos_i and pos_lo with pos. All users updated.
21866 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
21867 New constant.
21868 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
21869 Likewise.
21870 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
21871 and pos_lo.
21872
21873 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21874
21875 * util/grub-mkrawimage.c (main): Call set_program_name.
21876
21877 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21878
21879 Properly align 64-bit targets.
21880
21881 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
21882 (generate_image): Use ALIGN_ADDR.
21883
21884 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21885
21886 Properly create cross-endian images.
21887
21888 * include/grub/types.h (grub_host_to_target_addr): New macro
21889 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
21890
21891 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21892
21893 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
21894
21895 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21896
21897 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
21898
21899 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
21900 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
21901 (grub_linux_boot): Divide by 64K when on VESA.
21902
21903 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21904
21905 Support GRUB_GFXPAYLOAD_LINUX.
21906
21907 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
21908 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
21909
21910 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21911
21912 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
21913 to show messages instead of discarding them.
21914 Process errors after executing command and not before. Keep old method
21915 too as precaution.
21916
21917 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
21918
21919 * configure.ac: Check for ft2build.h.
21920
21921 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21922
21923 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
21924
21925 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21926
21927 * genkernsyms.sh.in: Use TARGET_CC.
21928
21929 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
21930
21931 * NEWS: Update.
21932
21933 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 * include/grub/multiboot2.h: Remove leftover file.
21936 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
21937 * include/grub/partition.h [GRUB_UTIL]: Likewise.
21938
21939 2010-02-07 Yves Blusseau <blusseau@zetam.org>
21940
21941 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
21942
21943 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21944
21945 Fix warnings in grub-emu when compiling with maximum warning options.
21946
21947 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
21948 (grub_arch_modules_addr): Return 0 and not NULL.
21949 * util/misc.c (ENABLE_RELOCATABLE): New definition.
21950 (xstrdup): Use newstr instead of dup.
21951 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
21952 of disk to dsk to avoid shadowing.
21953 (find_free_slot): Fix prototype.
21954 * util/getroot.c (grub_util_is_dmraid): Make static.
21955 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
21956 Add missing prototype.
21957 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
21958
21959 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21960
21961 * loader/i386/linux.c (grub_linux_setup_video): Handle error
21962 appropriately.
21963
21964 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21965
21966 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
21967 code out.
21968
21969 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21970
21971 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
21972 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
21973 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
21974 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
21975 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
21976 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
21977
21978 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21979
21980 * include/grub/err.h (grub_err_printf): Don't export.
21981
21982 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
21985
21986 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21987
21988 * include/grub/i18n.h (grub_gettext_dummy): Removed.
21989 * kern/misc.c (grub_gettext_dummy): Make static.
21990
21991 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21992
21993 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
21994 by non-valid ones.
21995 * kern/term.c (grub_putchar): Likewise.
21996
21997 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21998
21999 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22000 buggy hook call and memory leak.
22001
22002 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22003
22004 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22005
22006 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22007
22008 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22009
22010 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22013 modevar.
22014 Return grub_errno on allocation error.
22015
22016 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22017
22018 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22019
22020 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22021
22022 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22023 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22024
22025 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22026
22027 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22028 non-pxe disk.
22029 (grub_pxefs_open): Likewise.
22030
22031 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22032
22033 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22034 * util/grub.d/10_kfreebsd.in: Likewise.
22035 * util/grub.d/10_linux.in: Likewise.
22036
22037 2010-02-06 Colin D Bennett <colin@gibibit.com>
22038
22039 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22040 (gfxmenu_mod_SOURCES): New variable.
22041 (gfxmenu_mod_CFLAGS): Likewise.
22042 (gfxmenu_mod_LDFLAGS): Likewise.
22043 * include/grub/term.h (grub_term_set_current_output): Declare
22044 argument as const.
22045 * docs/gfxmenu-theme-example.txt: New file.
22046 * gfxmenu/gfxmenu.c: Likewise.
22047 * gfxmenu/gui_box.c: Likewise.
22048 * gfxmenu/gui_canvas.c: Likewise.
22049 * gfxmenu/gui_circular_progress.c: Likewise.
22050 * gfxmenu/gui_image.c: Likewise.
22051 * gfxmenu/gui_label.c: Likewise.
22052 * gfxmenu/gui_list.c: Likewise.
22053 * gfxmenu/gui_progress_bar.c: Likewise.
22054 * gfxmenu/gui_string_util.c: Likewise.
22055 * gfxmenu/gui_util.c: Likewise.
22056 * gfxmenu/icon_manager.c: Likewise.
22057 * gfxmenu/model.c: Likewise.
22058 * gfxmenu/named_colors.c: Likewise.
22059 * gfxmenu/theme_loader.c: Likewise.
22060 * gfxmenu/view.c: Likewise.
22061 * gfxmenu/widget-box.c: Likewise.
22062 * include/grub/gfxmenu_model.h: Likewise.
22063 * include/grub/gfxmenu_view.h: Likewise.
22064 * include/grub/gfxwidgets.h: Likewise.
22065 * include/grub/gui.h: Likewise.
22066 * include/grub/gui_string_util.h: Likewise.
22067 * include/grub/icon_manager.h: Likewise.
22068
22069 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22070
22071 Agglomerate scrolling in gfxterm.
22072
22073 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22074 (grub_virtual_screen_setup): Initialise 'total_screen'.
22075 (write_char): Split to ...
22076 (paint_char): ... this ...
22077 (write_char): ... and this.
22078 (paint_char): Handle delayed scrolling.
22079 (draw_cursor): Likewise.
22080 (scroll_up): Split to ...
22081 (real_scroll): ... this ...
22082 (scroll_up): ... and this.
22083 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22084 characters.
22085 (grub_gfxterm_refresh): Call real_scroll.
22086
22087 2010-02-06 Colin D Bennett <colin@gibibit.com>
22088
22089 * include/grub/misc.h (grub_iscntrl): New inline function.
22090 (grub_isalnum): Likewise.
22091 (grub_strtol): Likewise.
22092
22093 2010-02-06 Colin D Bennett <colin@gibibit.com>
22094
22095 * normal/menu_text.c (get_entry_number): Move from here ...
22096 * normal/menu.c (get_entry_number): ... moved here.
22097 * include/grub/menu.h (grub_menu_get_default_entry_index):
22098 New prototype.
22099 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22100 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22101 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22102 (grub_menu_viewer_should_return): Likewise.
22103 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22104 * normal/menu_text.c (run_menu): Enable menu switching.
22105 * normal/menu_viewer.c (should_return): New variable.
22106 (menu_viewer_changed): Likewise.
22107 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22108 (grub_menu_viewer_should_return): New function.
22109 (menuviewer_write_hook): Likewise.
22110 (grub_menu_viewer_init): Likewise.
22111
22112 2010-02-06 Colin D Bennet <colin@gibibit.com>
22113 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22114
22115 Support for gfxterm in a window.
22116
22117 * include/grub/gfxterm.h: New file.
22118 * include/grub/video.h (struct grub_video_rect): New declaration.
22119 (grub_video_rect_t): Likewise.
22120 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22121 (refcount): New variable.
22122 (render_target): Likewise.
22123 (window): Likewise.
22124 (repaint_callback): Likewise.
22125 (grub_virtual_screen_setup): Use 'render_target'.
22126 (init_window): New function.
22127 (grub_gfxterm_init_window): Likewise.
22128 (grub_gfxterm_init): Check reference counter.
22129 Use init_window.
22130 (destroy_window): New function.
22131 (grub_gfxterm_destroy_window): Likewise.
22132 (grub_gfxterm_fini): Check reference counter.
22133 Use destroy_window.
22134 (redraw_screen_rect): Restore viewport.
22135 Use 'render_target' and 'window'.
22136 Call 'repaint_callback'.
22137 (write_char): Use 'render_target'.
22138 (draw_cursor): Likewise.
22139 (scroll_up): Restore viewport.
22140 Use 'render_target' and 'window'.
22141 Call 'repaint_callback'.
22142 (grub_gfxterm_cls): Likewise.
22143 (grub_gfxterm_refresh): Use 'window'.
22144 (grub_gfxterm_set_repaint_callback): New function.
22145 (grub_gfxterm_background_image_cmd): Use 'window'.
22146 (grub_gfxterm_get_term): New function.
22147 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22148
22149 2010-02-06 Colin D Bennett <colin@gibibit.com>
22150
22151 Bitmap scaling support.
22152
22153 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22154 (bitmap_scale_mod_SOURCES): New variable.
22155 (bitmap_scale_mod_CFLAGS): Likewise.
22156 (bitmap_scale_mod_LDFLAGS): Likewise.
22157 * include/grub/bitmap_scale.h: New file.
22158 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22159 (background_image_cmd_options): New variable.
22160 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22161 (cmd): Rename and change type to ...
22162 (background_image_cmd_handle): ... this. All users updated.
22163 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22164 * video/bitmap_scale.c: New file.
22165
22166 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 SDL support.
22169
22170 * Makefile.in (LIBSDL): New variable.
22171 (enable_grub_emu_sdl): Likewise.
22172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22173 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22174 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22175 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22176 * util/sdl.c: New file.
22177
22178 2010-02-06 Colin D Bennett <colin@gibibit.com>
22179 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22180
22181 Double buffering support.
22182
22183 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22184 * include/grub/video.h: Update comment.
22185 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22186 New type.
22187 (grub_video_fb_doublebuf_blit_init): New prototype.
22188 * term/gfxterm.c (scroll_up): Support double buffering.
22189 (grub_gfxterm_refresh): Likewise.
22190 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22191 (grub_video_fb_doublebuf_blit_init): Likewise.
22192 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22193 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22194 'displayed_page', 'render_page' and 'update_screen'.
22195 (grub_video_vbe_fini): Free offscreen buffer.
22196 (doublebuf_pageflipping_commit): New function.
22197 (doublebuf_pageflipping_update_screen): Likewise.
22198 (doublebuf_pageflipping_init): Likewise.
22199 (double_buffering_init): Likewise.
22200 (grub_video_vbe_setup): Enable doublebuffering.
22201 (grub_video_vbe_swap_buffers): Implement.
22202 (grub_video_vbe_set_active_render_target): Handle double buffering.
22203 (grub_video_vbe_get_active_render_target): Likewise.
22204 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22205 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22206 (grub_video_vbe_enable_double_buffering): Likewise.
22207 (grub_video_vbe_swap_buffers): Use update_screen.
22208 (grub_video_set_mode): Use double buffering.
22209
22210 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22211
22212 * maintainance/gentrigtables.py: Remove.
22213 * lib/trig.c: Likewise.
22214
22215 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22216
22217 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22218 `trigtables.c'.
22219 (trigtables.c): New rule.
22220 (gentrigtables): Likewise.
22221 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22222
22223 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22224
22225 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22226 integer constants.
22227
22228 2010-02-06 Colin D Bennet <colin@gibibit.com>
22229
22230 Trigonometry support.
22231
22232 * include/grub/trig.h: New file.
22233 * lib/trig.c: Likewise.
22234 * maintainance/gentrigtables.py: Likewise.
22235 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22236 (trig_mod_SOURCES): New variable.
22237 (trig_mod_CFLAGS): Likewise.
22238 (trig_mod_LDFLAGS): Likewise.
22239
22240 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22243 disk devices.
22244
22245 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22248 error.
22249
22250 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22251
22252 * util/hostdisk.c (open_device): Don't use partition device when reading
22253 before the partition.
22254 (grub_util_biosdisk_read): Don't read from partition and before the
22255 partition in single operation.
22256 (grub_util_biosdisk_write): Don't write to partition and before the
22257 partition in single operation.
22258
22259 2010-02-03 Torsten Landschoff <torsten@debian.org>
22260
22261 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22262 last sectors.
22263
22264 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
22267 CDROM reads.
22268 (grub_biosdisk_write): Refuse to write to CDROM.
22269
22270 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22271
22272 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
22273
22274 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * font/font.c (find_glyph): Check that bmp_idx is available before
22277 using it.
22278 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
22279 with (font == NULL).
22280
22281 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
22282
22283 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
22284
22285 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
22286
22287 * include/grub/script_sh.h (sourcecode): Add const qualifier.
22288 * util/grub-script-check.c (getline): Fix empty lines case.
22289
22290 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
22291
22292 * Makefile.in (check): Exit with fail status when one of the tests
22293 fails.
22294 * tests/example_functional_test.c (example_test): Fix reversed assert.
22295 * tests/example_unit_test.c (example_test): Likewise.
22296
22297 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
22298
22299 * util/grub.d/10_linux.in: This script does not use any of the
22300 contents of gettext.sh, only the external command `gettext', so stop
22301 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
22302 the same prefix as GRUB.)
22303 * util/grub.d/10_kfreebsd.in: Likewise.
22304
22305 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
22308 of the line.
22309
22310 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22311
22312 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22313 last sectors.
22314
22315 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22316
22317 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
22318 having a 4KiB and not 32KiB buffer size.
22319
22320 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22321
22322 * util/hostfs.c: Include `<errno.h>'.
22323 (grub_hostfs_read): Handle errors from fseeko() and fread().
22324
22325 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22326
22327 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
22328 loop when using read hooks on files whose size isn't sector-aligned.
22329
22330 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22331
22332 Remove unused parameter.
22333
22334 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
22335 (grub_iso9660_open): Remove initialization of `data->length'.
22336
22337 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22338
22339 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
22340 memleak conditions.
22341
22342 2010-01-27 Carles Pina i Estany <carles@pina.cat>
22343
22344 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
22345 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
22346
22347 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22348
22349 * util/bin2h.c (usage): Fix warning (space after backslash).
22350
22351 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22352
22353 * font/font.c: Include `grub/fontformat.h.
22354 Remove font file format constants.
22355 (grub_font_load): Use the new macros.
22356 * include/grub/fontformat.h: New file.
22357 * util/grub-mkfont.c: Include `grub/fontformat.c'.
22358 (write_font_pf2): Use the new macros.
22359
22360 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22361
22362 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
22363 does.
22364
22365 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22366
22367 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
22368
22369 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
22370 (_start): Macroify `0x7F'.
22371
22372 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
22373 (make_install_device): Use "(pxe)" as fallback prefix when booting
22374 via PXE.
22375
22376 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * configure.ac: Reset LIBS after check for libgcc symbols.
22379
22380 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
22381
22382 * util/hostdisk.c (open_device): Add trailing newline to debug
22383 message.
22384
22385 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
22386
22387 * configure.ac: Check for `limits.h'.
22388 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
22389
22390 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
22391
22392 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
22393 capitalize error strings.
22394
22395 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
22396
22397 * util/grub.d/10_hurd.in: Add a recovery mode.
22398
22399 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
22400
22401 * configure.ac: Check for libgcc symbols with -nostdlib.
22402
22403 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
22404
22405 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
22406
22407 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
22410 stack since heap may be unavailable at that point.
22411 (grub_ofconsole_gotoxy): Likewise.
22412
22413 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22414
22415 * configure.ac: Check for _restgpr_14_x.
22416 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
22417 and _savegpr_* prototypes.
22418
22419 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
22420
22421 Use generic grub_reboot() for i386-efi.
22422
22423 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
22424 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
22425 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
22426
22427 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
22430 presence of "prefix" variable as it breaks when normal.mod is
22431 embedded.
22432
22433 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22434
22435 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
22436 stack since heap is unavailable at that point.
22437
22438 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22439
22440 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
22441 (grub_freebsd_bootinfo): Rewritten.
22442 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
22443
22444 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22445
22446 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
22447
22448 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
22449
22450 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
22451 domain now.
22452
22453 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
22454
22455 * util/misc.c (make_system_path_relative_to_its_root): Change the work
22456 around for handling "/" to the correct fix. Fix a memory leak. Use
22457 xstrdup instead of strdup.
22458
22459 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
22462
22463 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 Optimise glyph lookup by Basic Multilingual Plane lookup array.
22466
22467 * font/font.c (struct grub_font): New member 'bmp_idx'.
22468 (font_init): Initialise 'bmp_idx'.
22469 (load_font_index): Fill 'bmp_idx'.
22470 (find_glyph): Make inline. Use bmp_idx for BMP characters.
22471
22472 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22473
22474 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
22475 unnecessary calls.
22476
22477 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22478
22479 Move context handling out of the kernel.
22480
22481 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
22482 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
22483 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
22484 * conf/i386-efi.rmk: Likewise.
22485 * conf/i386-ieee1275.rmk: Likewise.
22486 * conf/i386-pc.rmk: Likewise.
22487 * conf/powerpc-ieee1275.rmk: Likewise.
22488 * conf/sparc64-ieee1275.rmk: Likewise.
22489 * conf/x86_64-efi.rmk: Likewise.
22490 * include/grub/env.h: Include grub/menu.h.
22491 (grub_env_var_type): Removed.
22492 (grub_env_var): Replaced field 'type' with 'global'.
22493 (grub_env_find): New prototype.
22494 (grub_env_context_open): Remove EXPORT_FUNC.
22495 (grub_env_context_close): Likewise.
22496 (grub_env_export): Likewise.
22497 (grub_env_set_data_slot): Removed.
22498 (grub_env_get_data_slot): Likewise.
22499 (grub_env_unset_data_slot): Likewise.
22500 (grub_env_unset_menu): New prototype.
22501 (grub_env_set_menu): Likewise.
22502 (grub_env_get_menu): Likewise.
22503 * include/grub/env_private.h: New file.
22504 * include/grub/normal.h (grub_context_init): New prototype.
22505 (grub_context_fini): Likewise.
22506 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
22507 * normal/context.c (grub_cmd_export): ... to here.
22508 * kern/env.c: Include env_private.h.
22509 (HASHSZ): Moved to include/grub/env_private.h.
22510 (grub_env_context): Likewise.
22511 (grub_env_sorted_var): Likewise.
22512 (current_context): Renamed from this ...
22513 (grub_current_context): ...to this. 'static' removed. All users updated.
22514 (grub_env_find): Removed 'static'.
22515 (grub_env_context_open): Moved to normal/context.c.
22516 (grub_env_context_close): Likewise.
22517 (grub_env_export): Likewise.
22518 (mangle_data_slot_name): Removed.
22519 (grub_env_set_data_slot): Likewise.
22520 (grub_env_get_data_slot): Likewise.
22521 (grub_env_unset_data_slot): Likewise.
22522 * kern/main.c (grub_set_root_dev): Don't export root.
22523 It will be done later.
22524 (grub_main): Don't export prefix.
22525 It will be done later.
22526 * normal/context.c: New file.
22527 * normal/main.c (free_menu): Use grub_env_unset_menu.
22528 (grub_normal_add_menu_entry): Use grub_env_get_menu.
22529 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
22530 (GRUB_MOD_INIT(normal)): Call grub_context_init.
22531 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
22532
22533 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22534
22535 setpci support.
22536
22537 * commands/setpci.c: New file.
22538 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
22539 (setpci_mod_SOURCES): New variable.
22540 (setpci_mod_CFLAGS): Likewise.
22541 (setpci_mod_LDFLAGS): Likewise.
22542
22543 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 Byte-addressable PCI configuration space.
22546
22547 * bus/pci.c (grub_pci_make_address): Use byte address instead of
22548 dword address.
22549 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
22550 GRUB_PCI_REG_CACHELINE.
22551 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
22552 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
22553 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
22554 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
22555 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
22556 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
22557 grub_pci_make_address.
22558 (lock_rom_area): Likewise.
22559 * commands/lspci.c (grub_lspci_iter): Use macroses
22560 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
22561 of grub_pci_make_address.
22562 * disk/ata.c (grub_ata_pciinit): Likewise.
22563 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
22564 (GRUB_PCI_REG_VENDOR): Likewise.
22565 (GRUB_PCI_REG_DEVICE): Likewise.
22566 (GRUB_PCI_REG_COMMAND): Likewise.
22567 (GRUB_PCI_REG_STATUS): Likewise.
22568 (GRUB_PCI_REG_REVISION): Likewise.
22569 (GRUB_PCI_REG_CLASS): Likewise.
22570 (GRUB_PCI_REG_CACHELINE): Likewise.
22571 (GRUB_PCI_REG_LAT_TIMER): Likewise.
22572 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
22573 (GRUB_PCI_REG_BIST): Likewise.
22574 (GRUB_PCI_REG_ADDRESSES): Likewise.
22575 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22576 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22577 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22578 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22579 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22580 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22581 (GRUB_PCI_REG_CIS_POINTER): Likewise.
22582 (GRUB_PCI_REG_SUBVENDOR): Likewise.
22583 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
22584 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
22585 (GRUB_PCI_REG_CAP_POINTER): Likewise.
22586 (GRUB_PCI_REG_IRQ_LINE): Likewise.
22587 (GRUB_PCI_REG_IRQ_PIN): Likewise.
22588 (GRUB_PCI_REG_MIN_GNT): Likewise.
22589 (GRUB_PCI_REG_MAX_LAT): Likewise.
22590 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
22591 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
22592 * video/efi_uga.c (find_framebuf): Likewise.
22593 * video/sm712.c (grub_video_sm712_setup): Likewise.
22594 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
22595 space.
22596
22597 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22598
22599 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
22600 can be reliably determined to be supported.
22601
22602 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22603
22604 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
22605 that VESA is supported.
22606 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
22607 supported.
22608
22609 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22610
22611 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
22612
22613 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22614
22615 * util/misc.c (make_system_path_relative_to_its_root): Work around
22616 special-casing of "/", as previous incarnation of this routine did.
22617
22618 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 Fix any-emu compilation.
22621
22622 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
22623 * grub_bin2h_SOURCES: New variable.
22624
22625 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22626
22627 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
22628
22629 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22630
22631 * util/grub.d/00_header.in: Fix handling of locale_dir.
22632
22633 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22634
22635 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
22636 as possible unifont location (Gentoo).
22637 Reported by: Alexander Brüning
22638
22639 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22640
22641 Don't try to generate lists for kernel.img.
22642
22643 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
22644 (pkglib_MODULES): Remove kernel.img.
22645 (kernel_img_EXPORTS): Removed.
22646 (kernel_img_RELOCATABLE): New variable.
22647 * conf/x86_64-efi.rmk: Likewise.
22648 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
22649
22650 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
22653 grub_xasprintf or grub_snprintf.
22654 (grub_vsprintf): Likewise.
22655 (grub_snprintf): New proto.
22656 (grub_vsnprintf): Likewise.
22657 (grub_xasprintf): Likewise.
22658 (grub_xvasprintf): Likewise.
22659 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
22660 (grub_sprintf): Removed.
22661 (grub_vsnprintf): New function.
22662 (grub_snprintf): Likewise.
22663 (grub_xvasprintf): Likewise.
22664 (grub_xasprintf): Likewise.
22665 (grub_vsprintf): Renamed to ...
22666 (grub_vsnprintf_real): ...this. New argument max_len.
22667
22668 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
22669
22670 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
22671 fix grub-script-check warning.
22672
22673 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 * include/grub/font.h (grub_font_load): Fix prototype.
22676
22677 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
22680
22681 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22682
22683 * include/grub/x86_64/at_keyboard.h: New file.
22684
22685 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 * loader/mips/linux.c: Include missing grub/i18n.h.
22688
22689 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22690
22691 * normal/menu.c (notify_execution_failure): Clarify error message.
22692
22693 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22694
22695 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
22696 return value (and revert all return statements). Update users.
22697
22698 2010-01-20 Dan Merillat <debian@dan.merillat.org>
22699
22700 * kern/device.c (grub_device_iterate): Allocate new part_ent
22701 structure based on sizeof (*p) rather than sizeof (p->next), to
22702 account for structure padding.
22703
22704 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
22705 disk is NULL, which might happen for LVM physical volumes with no
22706 LVM signature.
22707
22708 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22709
22710 * loader/mips/linux.c (grub_cmd_initrd)
22711 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
22712
22713 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22714
22715 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
22716 (grub_video_video_init, grub_video_bitmap_init)
22717 (grub_font_manager_init, grub_term_gfxterm_init)
22718 (grub_at_keyboard_init): New extern declarations.
22719 (grub_machine_init): Initialize gfxterm and at_keyboard.
22720
22721 * kern/main.c (grub_main): Revert grub_printf delay kludge.
22722
22723 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
22724 `gfxterm.mod' into core image.
22725
22726 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22727 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22728 (kernel_img_FORMAT): Copy to ...
22729
22730 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22731 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22732 (kernel_img_FORMAT): ... here, and ...
22733
22734 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22735 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22736 (kernel_img_FORMAT): ... here.
22737
22738 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
22739 and input (at_keyboard) terminals in kernel.
22740 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
22741
22742 (pkglib_MODULES): Remove `pci.mod'.
22743 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
22744 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
22745 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22746 (at_keyboard_mod_LDFLAGS): Remove variables.
22747
22748 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
22749
22750 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
22751
22752 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
22753
22754 * include/grub/mips/libgcc.h: Only export symbols for functions
22755 that libgcc provides.
22756
22757 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
22758
22759 MIPS support.
22760
22761 * bus/bonito.c: New file.
22762 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
22763 GRUB_PCI_NUM_DEVICES.
22764 * term/i386/pc/serial.c: Move to ...
22765 * term/serial.c: ... here. All users updated.
22766 * util/i386/pc/grub-mkimage.c: Move to ...
22767 * util/grub-mkrawimage.c: ... here. All users updated.
22768 * term/i386/pc/at_keyboard.c: Move to ...
22769 * term/at_keyboard.c: ... here. All users updated.
22770 * conf/mips-qemu-mips.rmk: New file.
22771 * conf/mips-yeeloong.rmk: Likewise.
22772 * conf/mips.rmk: Likewise.
22773 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
22774 mipsel-qemu-mips.
22775 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
22776 to port addresses.
22777 (grub_ata_pciinit): Support CS5536.
22778 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
22779 * font/font_cmd.c (loadfont_command): Open file before passing it to
22780 grub_font_load.
22781 (pseudo_file_read): New function.
22782 (pseudo_file_close): Likewise.
22783 (pseudo_fs): New structure.
22784 (load_font_module): New function.
22785 (GRUB_MOD_INIT(font_manager)): Load embedded font.
22786 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
22787 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
22788 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
22789 * include/grub/i386/at_keyboard.h: Split into ...
22790 * include/grub/at_keyboard.h: ... this ...
22791 * include/grub/i386/at_keyboard.h: ... and this.
22792 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
22793 New prototype.
22794 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
22795 updated.
22796 (grub_elf64_size): Likewise.
22797 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
22798 filename.
22799 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
22800 * include/grub/i386/coreboot/serial.h: Rewritten.
22801 * include/grub/i386/ieee1275/serial.h: Include
22802 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
22803 * include/grub/i386/pc/serial.h: Moved from here ...
22804 * include/grub/serial.h: ... to here. All users updated.
22805 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
22806 (GRUB_PCI_NUM_BUS): Likewise.
22807 (GRUB_PCI_NUM_DEVICES): Likewise.
22808 (grub_pci_device_map_range): Add missing volatile keyword.
22809 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
22810 * include/grub/mips/at_keyboard.h: New file.
22811 * include/grub/mips/cache.h: Likewise.
22812 * include/grub/mips/io.h: Likewise.
22813 * include/grub/mips/kernel.h: Likewise.
22814 * include/grub/mips/libgcc.h: Likewise.
22815 * include/grub/mips/pci.h: Likewise.
22816 * include/grub/mips/qemu-mips/boot.h: Likewise.
22817 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22818 * include/grub/mips/qemu-mips/loader.h: Likewise.
22819 * include/grub/mips/qemu-mips/memory.h: Likewise.
22820 * include/grub/mips/qemu-mips/serial.h: Likewise.
22821 * include/grub/mips/qemu-mips/time.h: Likewise.
22822 * include/grub/mips/relocator.h: Likewise.
22823 * include/grub/mips/time.h: Likewise.
22824 * include/grub/mips/types.h: Likewise.
22825 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
22826 * include/grub/mips/yeeloong/boot.h: Likewise.
22827 * include/grub/mips/yeeloong/kernel.h: Likewise.
22828 * include/grub/mips/yeeloong/loader.h: Likewise.
22829 * include/grub/mips/yeeloong/memory.h: Likewise.
22830 * include/grub/mips/yeeloong/pci.h: Likewise.
22831 * include/grub/mips/yeeloong/serial.h: Likewise.
22832 * include/grub/mips/yeeloong/time.h: Likewise.
22833 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
22834 * kern/elf.c (grub_elf32_size): New parameter. All users
22835 updated.
22836 (grub_elf64_size): Likewise.
22837 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
22838 Load modules before saying "Welcome to GRUB!".
22839 Call grub_refresh after saying "Welcome to GRUB!".
22840 * kern/mips/cache.S: New file.
22841 * kern/mips/cache_flush.S: Likewise.
22842 * kern/mips/dl.c: Likewise.
22843 * kern/mips/init.c: Likewise.
22844 * kern/mips/qemu-mips/init.c: Likewise.
22845 * kern/mips/startup.S: Likewise.
22846 * kern/mips/yeeloong/init.c: Likewise.
22847 * kern/term.c (grub_putcode): Handle NULL terminal.
22848 (grub_getcharwidth): Likewise.
22849 (grub_getkey): Likewise.
22850 (grub_checkkey): Likewise.
22851 (grub_getkeystatus): Likewise.
22852 (grub_getxy): Likewise.
22853 (grub_getwh): Likewise.
22854 (grub_gotoxy): Likewise.
22855 (grub_cls): Likewise.
22856 (grub_setcolorstate): Likewise.
22857 (grub_setcolor): Likewise.
22858 (grub_getcolor): Likewise.
22859 (grub_refresh): Likewise.
22860 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
22861 (write_jump): Add hatch nop.
22862 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
22863 * lib/mips/setjmp.S: New file.
22864 * loader/mips/linux.c: Likewise.
22865 * term/i386/pc/at_keyboard.c: Move from here ...
22866 * term/at_keyboard.c: ... to here.
22867 * term/i386/pc/serial.c: Moved from here ...
22868 * term/serial.c: ... to here. All users updated.
22869 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
22870 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
22871 (serial_translate_key_sequence): Avoid deadlock.
22872 (grub_serial_getkey): Handle backspace.
22873 (grub_serial_putchar): Fix newline handling.
22874 * util/i386/pc/grub-mkimage.c: Move from here ...
22875 * util/grub-mkrawimage.c: ... to here. All users updated.
22876 (generate_image): New parameters 'font_path' and 'format'.
22877 Support embedding font.
22878 Use grub_host_to_target* instead of grub_cpu_to_le*.
22879 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
22880 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
22881 (options): New option "--font".
22882 (usage): Likewise.
22883 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
22884 (main): Handle "--font".
22885 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
22886 (grub_virtual_screen_setup): Set bg_color_display.
22887 (redraw_screen_rect): Use bg_color_display instead of incorrect
22888 bg_color.
22889 (grub_gfxterm_cls): Likewise.
22890 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
22891 Support embedding config file.
22892 (add_segments): Likewise.
22893 (options): New option "--config".
22894 (main): Handle "--config".
22895 * video/sm712.c: New file.
22896
22897 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22898
22899 Fix parallel builds.
22900
22901 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
22902 font.c depend on ascii.h).
22903
22904 2010-01-12 Carles Pina i Estany <carles@pina.cat>
22905
22906 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
22907
22908 2010-01-11 Carles Pina i Estany <carles@pina.cat>
22909
22910 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
22911 By default: disabled.
22912 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
22913 parameter.
22914
22915 2010-01-10 Carles Pina i Estany <carles@pina.cat>
22916
22917 * font/font.c: Update copyright years.
22918 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
22919
22920 2010-01-10 Carles Pina i Estany <carles@pina.cat>
22921
22922 * font/font.c: Include `ascii.h'.
22923 (ASCII_BITMAP_SIZE): New macro.
22924 (ascii_font_glyph): Define.
22925 (ascii_glyph_lookup): New function.
22926 (grub_font_get_string_width): Change comment. If glyph not found, use
22927 ascii_glyph_lookup.
22928 (grub_font_get_glyph_with_fallback): If glyph not available returns
22929 ascii_glyph_lookup.
22930 * util/grub-mkfont.c (file_formats): New enum.
22931 (options): Add `ascii-bitmaps' new option.
22932 (usage): Add `asii-bitmaps' new option.
22933 (write_font_ascii_bitmap): New function.
22934 (write_font): Rename to ...
22935 (write_font_p2): ... this. Remove print_glyphs call.
22936 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
22937 used. Call print_glyphs.
22938 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
22939
22940 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
22941
22942 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
22943 (grub_bin2h_SOURCES): New variable.
22944 * util/bin2h.c: New file.
22945
22946 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22947
22948 * include/multiboot.h: Resynced with spec.
22949 * include/multiboot2.h: Likewise.
22950 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
22951 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
22952
22953 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22954
22955 * include/grub/term.h (grub_term_register_input,
22956 grub_term_register_output): Check return of terminal init()
22957 routines, and abort if errors are raised.
22958
22959 * commands/terminal.c: Update copyright year.
22960
22961 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22962
22963 * commands/terminal.c (grub_cmd_terminal_input)
22964 (grub_cmd_terminal_output): Check return of terminal init()
22965 routines, and abort if errors are raised.
22966
22967 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
22968
22969 * include/grub/i386/bsd.h: Fix include pathes.
22970
22971 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
22972
22973 Add missing *BSD copyright headers.
22974
22975 * include/grub/aout.h: Add BSD licence.
22976 * include/grub/i386/bsd.h: Parts under different licences moved to ...
22977 * include/grub/i386/freebsd_linker.h: ... here,
22978 * include/grub/i386/freebsd_reboot.h: ... here,
22979 * include/grub/i386/netbsd_bootinfo.h: ... here,
22980 * include/grub/i386/netbsd_reboot.h: ... here,
22981 * include/grub/i386/openbsd_bootarg.h: ... here,
22982 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
22983 licence to each file.
22984
22985 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22986
22987 * acinclude.m4: Remove `nop' assembly instruction; it's not
22988 implemented by all architectures.
22989
22990 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22991
22992 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
22993 ELILO. This is no longer necessary.
22994
22995 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
22996
22997 Added new tool, grub-scrit-check to verify grub.cfg syntax.
22998
22999 * util/grub-script-check.c: grub-script-check tool.
23000 * conf/common.rmk: Make rules for grub-script-check.
23001
23002 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23003
23004 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23005 spotting it back in 2008. Shame on me for forgetting he did.
23006
23007 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23008
23009 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23010
23011 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23012 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23013 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23014 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23015 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23016 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23017
23018 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23019
23020 * include/grub/test.h: Add license header.
23021 * tests/example_functional_test.c: Likewise.
23022 * tests/example_unit_test.c: Likewise.
23023 * tests/lib/functional_test.c: Likewise.
23024 * tests/lib/test.c: Likewise.
23025 * tests/lib/unit_test.c: Likewise.
23026
23027 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 Use flag-based instead of hook-based video mode selection and "auto"
23030 keyword.
23031
23032 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23033 (grub_video_set_mode): Changed prototype. All users updated.
23034 (grub_video_check_mode_flag): New inline function.
23035 * video/video.c (parse_modespec): New function.
23036 (grub_video_set_mode): Parse flags and keywords.
23037
23038 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23039
23040 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23041 fprintf call.
23042
23043 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23044
23045 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23046
23047 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23048
23049 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23050 string.
23051 * util/grub-emu.c (usage): Likewise.
23052 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23053 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23054 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23055 * util/i386/pc/grub-setup.c (usage): Likewise.
23056
23057 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23058
23059 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23060 the message.
23061 (grub_util_info): Likewise.
23062 (grub_util_error): Likewise.
23063 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23064 and/or new lines in `grub_util_warna', `grub_util_info',
23065 `grub_util_error' calls.
23066 * util/getroot.c: Likewise.
23067 * util/grub-editenv.c: Likewise.
23068 * util/grub-emu.c: Likewise.
23069 * util/grub-fstest.c: Likewise.
23070 * util/grub-mkdevicemap.c: Likewise.
23071 * util/grub-mkfont.c: Likewise.
23072 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23073 * util/grub-mkrelpath.c: Likewise.
23074 * util/grub-pe2elf.c: Likewise.
23075 * util/grub-probe.c: Likewise.
23076 * util/hostdisk.c: Likewise.
23077 * util/i386/efi/grub-mkimage.c: Likewise.
23078 * util/i386/pc/grub-mkimage.c: Likewise.
23079 * util/i386/pc/grub-setup.c: Likewise.
23080 * util/ieee1275/ofpath.c: Likewise.
23081 * util/mkisofs/eltorito.c: Likewise.
23082 * util/mkisofs/rock.c: Likewise.
23083 * util/mkisofs/write.c: Likewise.
23084 * util/raid.c: Likewise.
23085 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23086 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23087
23088 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 Enable multiboot on non-pc.
23091
23092 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23093 multiboot.mod and multiboot2.mod to ...
23094 * conf/i386.rmk (pkglib_MODULES): ... here.
23095 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23096 Moved to ...
23097 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23098 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23099 Moved to ...
23100 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23101 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23102 Moved to ...
23103 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23104 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23105 Moved to ...
23106 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23107 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23108 relocator.mod.
23109 (ata_mod_SOURCES): Removed.
23110 (ata_mod_CFLAGS): Likewise.
23111 (ata_mod_LDFLAGS): Likewise.
23112 (relocator_mod_SOURCES): Removed.
23113 (relocator_mod_CFLAGS): Likewise.
23114 (relocator_mod_ASFLAGS): Likewise.
23115 (relocator_mod_LDFLAGS): Likewise.
23116 Include i386.mk.
23117 * include/grub/x86_64/multiboot.h: New file.
23118 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23119 Terminate EFI.
23120
23121 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23122
23123 Video multiboot support.
23124
23125 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23126 New prototype.
23127 * include/multiboot.h: Resynced with multiboot specification.
23128 * include/multiboot2.h: Likewise.
23129 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23130 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23131 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23132 (HAS_VGA_TEXT): Likewise.
23133 (accepts_video): New variable.
23134 (grub_multiboot_set_accepts_video): New function.
23135 (grub_multiboot_get_mbi_size): Account for video structures.
23136 (set_video_mode): New function.
23137 (retrieve_video_parameters): Likewise.
23138 (grub_multiboot_make_mbi): Fill video fields.
23139
23140 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23141
23142 Video driver ids.
23143
23144 * include/grub/video.h (grub_video_driver_id): New type.
23145 (grub_video_adapter): New member 'id'. All users updated.
23146 (grub_video_get_driver_id): New proto.
23147 * video/video.c (grub_video_get_driver_id): New function.
23148
23149 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23150
23151 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23152 `var=val'.
23153
23154 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23155
23156 * normal/cmdline.c (print_completion): Gettextizze.
23157
23158 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23159
23160 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23161
23162 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23163
23164 * gettext/gettext.c (grub_gettext_translate): Push and pop
23165 grub_errno.
23166 (grub_gettext_delete_list): Change comment style.
23167 * kern/err.c (grub_error): Gettextizze.
23168 (grub_fatal): Gettextizze.
23169
23170 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23171
23172 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23173 (grub_linux16_real_boot): ... this.
23174 * kern/i386/loader.S: Likewise.
23175 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23176 (grub_linux16_boot): New function. Switches to text mode and calls
23177 grub_linux16_real_boot().
23178
23179 * loader/i386/bsd.c: Include `<grub/video.h>'.
23180 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23181 text mode before calling grub_unix_real_boot().
23182
23183 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23184 (grub_multiboot_boot): Switch to text mode before calling
23185 grub_relocator32_boot().
23186
23187 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23188 (grub_chainloader_boot): Switch to text mode before calling
23189 grub_chainloader_real_boot().
23190
23191 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23192 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23193
23194 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23195 non-empty value.
23196
23197 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23198 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23199
23200 * util/grub.d/00_header.in: Define a "savedefault" function for use
23201 in menu entries.
23202 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23203
23204 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23205 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23206
23207 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23208 saved_entry if boot_once is unset.
23209 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23210 previous saved entry (i.e. grub-reboot).
23211
23212 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23213
23214 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23215
23216 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23217
23218 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23219 `var=val'.
23220 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23221
23222 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23223
23224 * util/grub-reboot.in: Fix --version output.
23225 * util/grub-set-default.in: Likewise.
23226
23227 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23228
23229 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23230 blocks.
23231
23232 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23233
23234 * util/grub.d/00_header.in: Quote the value assigned to `default',
23235 in case it contains spaces.
23236
23237 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23238
23239 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23240 `save_default_entry' call from the macosx case to the linux case.
23241
23242 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23243 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23244
23245 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23246 in `chosen' environment variable.
23247 * normal/menu_text.c (get_entry_number): Check if the variable
23248 matches the title of a menu entry.
23249 (run_menu): Pass menu to get_entry_number.
23250
23251 * util/grub-reboot.in: New file.
23252 * util/grub-set-default.in: New file.
23253 * conf/common.rmk (grub-reboot): New utility.
23254 (grub-set-default): New utility.
23255
23256 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23257 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23258 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23259 move it to `saved_entry' for the next boot. Load environment on
23260 initialisation.
23261 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23262 * util/grub.d/10_hurd.in: Likewise.
23263 * util/grub.d/10_linux.in (linux_entry): Likewise.
23264 * util/grub.d/10_windows.in: Likewise.
23265 * util/grub.d/30_os-prober.in: Likewise.
23266
23267 * util/grub-install.in: Create environment block.
23268 * util/i386/efi/grub-install.in: Likewise.
23269 * util/ieee1275/grub-install.in: Likewise.
23270 * util/sparc64/ieee1275/grub-install.in: Likewise.
23271
23272 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
23273
23274 Unit testing framework for GRUB.
23275
23276 * Makefile.in: Test framework build rules for 'make check'.
23277 * conf/tests.rmk: Build rules for individual tests and framework.
23278
23279 * include/grub/test.h: Header file for whitebox tests.
23280 * tests/lib/functional_test.c: Framework support for whitebox
23281 functional tests.
23282 * tests/lib/test.c: Common whitebox testing code for unit and
23283 functional tests.
23284 * tests/lib/unit_test.c: Framework support for whitebox unit
23285 tests.
23286
23287 * tests/util/grub-shell-tester.in: Support utility for grub-script
23288 tests.
23289 * tests/util/grub-shell.in: Utility to execute grub-script
23290 commands in a Qemu instance.
23291
23292 * tests/example_functional_test.c: Example whitebox functional
23293 test.
23294 * tests/example_grub_script_test.in: Example grub-script test.
23295 * tests/example_scripted_test.in: Example scripted test.
23296 * tests/example_unit_test.c: Example whitebox unit test.
23297
23298 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
23301 Add loader/i386/multiboot_mbi.c.
23302 (multiboot2_mod_SOURCES): Likewise.
23303 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
23304 (multiboot2_mod_SOURCES): Likewise.
23305 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
23306 (grub_multiboot_make_mbi): Likewise.
23307 (grub_multiboot_free_mbi): Likewise.
23308 (grub_multiboot_init_mbi): Likewise.
23309 (grub_multiboot_add_module): Likewise.
23310 (grub_multiboot_set_bootdev): Likewise.
23311 * loader/i386/multiboot.c (mbi): Removed.
23312 (mbi_dest): Likewise.
23313 (alloc_mbi): New variable.
23314 (grub_multiboot_payload_size): Removed. All users updated.
23315 (grub_multiboot_pure_size): New variable.
23316 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
23317 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
23318 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
23319 (grub_fill_multiboot_mmap): Likewise.
23320 (grub_multiboot_get_bootdev): Likewise.
23321 (grub_multiboot): Use multiboot_mbi functions.
23322 * loader/i386/multiboot_mbi.c: New file.
23323
23324 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23325
23326 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
23327 it would result in module crash.
23328
23329 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23330
23331 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
23332 (grub_ofconsole_getwh): Split to ...
23333 (grub_ofconsole_getwh): ... this.
23334 (grub_ofconsole_dimensions): ...and this.
23335 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
23336
23337 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
23338
23339 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
23340
23341 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 * loader/i386/pc/multiboot2.c: Removed stalled file.
23344
23345 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
23348 Reported by: Grégoire Sutre
23349
23350 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
23351
23352 * util/misc.c (canonicalize_file_name): New function.
23353 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
23354 instead of realpath().
23355
23356 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
23357
23358 * util/grub-install.in (usage): Clarify meaning of --root-directory,
23359 and make it clearer that it's optional. Based on confusion
23360 witnessed on IRC.
23361
23362 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23363
23364 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
23365 in premature implicit newline.
23366
23367 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
23370 which resulted in garbled command line at the end of screen.
23371
23372 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23373
23374 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
23375 initialization with similar approach as with other Linux loaders.
23376
23377 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23378
23379 Fix i386-ieee1275 build.
23380
23381 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
23382 and grub_term_height() for video_{width,height} initialization.
23383
23384 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23385
23386 Fix grub-emu build.
23387
23388 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
23389
23390 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23391 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23392
23393 Support for multiple terminals.
23394
23395 * Makefile.in (pkglib_DATA): terminal.lst.
23396 (terminal.lst): New target.
23397 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
23398 (GRUB_MOD_INIT(handler)): Likewise.
23399 (GRUB_MOD_FINI(handler)): Likewise.
23400 * commands/help.c (grub_cmd_help): Handle multiple terminals.
23401 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
23402 * commands/sleep.c (do_print): Use grub_term_restore_pos.
23403 (grub_cmd_sleep): Use grub_term_save_pos.
23404 * commands/terminal.c: New file.
23405 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
23406 commands/terminal.c and lib/charset.c.
23407 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
23408 (pkglib_MODULES): Add terminal.mod.
23409 (terminal_mod_SOURCES): New variable.
23410 (terminal_mod_CFLAGS): Likewise.
23411 (terminal_mod_LDFLAGS): Likewise.
23412 * genhandlerlist.sh: Don't handle terminals.
23413 * genmk.rb: Generate terminal-*.lst.
23414 * genterminallist.sh: New file.
23415 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
23416 (grub_is_valid_utf8): Likewise.
23417 (grub_utf8_to_ucs4_alloc): Likewise.
23418 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
23419 (grub_menu_register_viewer): Changed argument.
23420 (grub_menu_try_text): New proto.
23421 (grub_gfxmenu_try_hook): New declaration.
23422 * include/grub/normal.h (grub_normal_exit_level): New declaration.
23423 (grub_menu_init_page): Additional argument term.
23424 (grub_normal_init_page): Likewise.
23425 (grub_cmdline_get): Arguments simplified.
23426 (grub_utf8_to_ucs4_alloc): Removed.
23427 (grub_print_ucs4): Additional argument term.
23428 (grub_getstringwidth): Likewise.
23429 (grub_print_message_indented): Likewise.
23430 (grub_menu_text_register_instances): New proto.
23431 (grub_show_menu): Likewise.
23432 (read_terminal_list): Likewise.
23433 (grub_set_more): Likewise.
23434 * include/grub/parser.h: Include handler.h.
23435 * include/grub/reader.h: Rewritten.
23436 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
23437 (GRUB_TERM_WIDTH): Changed to function.
23438 (GRUB_TERM_HEIGHT): Likewise.
23439 (GRUB_TERM_BORDER_WIDTH): Likewise.
23440 (GRUB_TERM_BORDER_HEIGHT): Likewise.
23441 (GRUB_TERM_NUM_ENTRIES): Likewise.
23442 (GRUB_TERM_ENTRY_WIDTH): Likewise.
23443 (GRUB_TERM_CURSOR_X): Likewise.
23444 (grub_term_input_class): Likewise.
23445 (grub_term_output_class): Likewise.
23446 (grub_term_outputs_disabled): New declaration.
23447 (grub_term_inputs_disabled): Likewise.
23448 (grub_term_outputs): Likewise.
23449 (grub_term_inputs): Likewise.
23450 (grub_term_register_input): Rewritten.
23451 (grub_term_register_output): Likewise.
23452 (grub_term_unregister_input): Likewise.
23453 (grub_term_unregister_output): Likewise.
23454 (FOR_ACTIVE_TERM_INPUTS): New macro.
23455 (FOR_DISABLED_TERM_INPUTS): Likewise.
23456 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23457 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23458 * include/grub/terminfo.h: Add oterm argument to all protypes.
23459 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
23460 Use grub_rescue_run.
23461 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
23462 All users updated.
23463 * kern/reader.c: Removed. All users updated.
23464 * kern/rescue_reader.c (grub_rescue_init): Removed.
23465 (grub_rescue_reader): Likewise.
23466 (grub_register_rescue_reader): Likewise.
23467 (grub_rescue_run): New function based on kern/reader.c.
23468 * kern/term.c: Adapted for multiterm.
23469 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
23470 (grub_is_valid_utf8): Likewise.
23471 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
23472 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
23473 right terminal.
23474 * loader/i386/linux.c (grub_linux_boot): Likewise.
23475 * normal/auth.c (grub_username_get): New function.
23476 (grub_auth_check_authentication): Use grub_username_get.
23477 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
23478 * normal/color.c: Adapt for multiterm.
23479 * normal/main.c (read_config_file): Don't use grub_reader_loop.
23480 (grub_normal_init_page): Additional argument term.
23481 (read_lists): Call read_terminal_lists.
23482 (grub_enter_normal_mode): Call grub_cmdline_run.
23483 Handle grub_normal_exit_level.
23484 (grub_cmd_normal): Make reentrant.
23485 (grub_cmd_normal_exit): New function.
23486 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
23487 * normal/menu.c: Adapt for multiterm.
23488 * normal/menu_entry.c: Likewise.
23489 * normal/menu_text.c: Likewise.
23490 * normal/menu_viewer.c: Removed. All users updated.
23491 * normal/term.c: New file.
23492 * util/console.c: Change order of includes to workaround a bug in
23493 ncurses headers.
23494 * term/terminfo.c: New argument oterm on all exported functions.
23495 All users updated.
23496 * util/grub-editenv.c (grub_term_input_class): Removed.
23497 (grub_term_output_class): Likewise.
23498
23499 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23500
23501 Make loader output a bit more user-friendly.
23502
23503 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
23504 is being loaded. Likewise for the Hurd.
23505
23506 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
23507 that kernel of FreeBSD ${version} is being loaded.
23508
23509 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
23510 grub_dprintf().
23511 (grub_cmd_initrd): Likewise.
23512 * util/grub.d/10_linux.in (linux_entry): Print message indicating
23513 that Linux ${version} is being loaded. Likewise for initrd.
23514
23515 2010-01-09 Carles Pina i Estany <carles@pina.cat>
23516
23517 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
23518
23519 2010-01-08 Carles Pina i Estany <carles@pina.cat>
23520
23521 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
23522 (GRUB_MOD_INIT): Gettextizze.
23523 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
23524 (GRUB_MOD_INIT): Gettextizze.
23525 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
23526 (grub_cmd_linux): Capitalise Linux.
23527 (GRUB_MOD_INIT): Gettextizze.
23528 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
23529 (grub_cmd_linux): Capitalise Linux.
23530 (GRUB_MOD_INIT): Gettextizze.
23531 * loader/i386/linux.c: Include `<grub/i18n.h>'.
23532 (grub_cmd_linux): Capitalise Linux.
23533 (GRUB_MOD_INIT): Gettextizze.
23534 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
23535 (GRUB_MOD_INIT): Gettextizze.
23536 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
23537 (grub_cmd_linux): Capitalise Linux.
23538 (GRUB_MOD_INIT): Gettextizze.
23539 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
23540 (grub_cpu_xnu_init): Gettextizze.
23541 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
23542 (GRUB_MOD_INIT): Gettextizze.
23543 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
23544 (GRUB_MOD_INIT): Gettextizze.
23545 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
23546 (grub_linux_load64): Capitalise Linux.
23547 (GRUB_MOD_INIT): Gettextizze.
23548 * loader/xnu.c: Include `<grub/i18n.h>'.
23549 (GRUB_MOD_INIT): Gettextizze.
23550 * po/POTFILES: Add `loader/efi/appleloader.c',
23551 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
23552 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
23553 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
23554 `loader/i386/xnu.c', `loader/multiboot_loader.c',
23555 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
23556 and `loader/xnu.c'.
23557
23558 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23559
23560 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
23561
23562 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23563
23564 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
23565 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
23566 * util/mkisofs/mkisofs.c (main): Readjust --version output.
23567
23568 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23569
23570 Reset Multiboot 2 support. New loader implements the draft in
23571 /branches/multiboot2 and shares as much code as possible with the
23572 production Multiboot 1 implementation.
23573
23574 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
23575 * loader/multiboot2.c: Likewise.
23576 * loader/i386/multiboot_helper.S: Likewise.
23577 * include/multiboot2.h: Replace with latest version from the draft
23578 in /branches/multiboot2.
23579
23580 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
23581 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
23582 and `loader/multiboot2.c'.
23583 (pkglib_MODULES): Add `multiboot2.mod'.
23584 (multiboot2_mod_SOURCES): New variable.
23585 (multiboot2_mod_LDFLAGS): Likewise.
23586 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
23587
23588 * conf/i386-pc.rmk: Likewise.
23589
23590 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23591 (multiboot_mod_SOURCES): Remove variable.
23592 (multiboot_mod_LDFLAGS): Likewise.
23593 (multiboot_mod_CFLAGS): Likewise.
23594
23595 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
23596 `<multiboot2.h>' instead of `<multiboot.h>'.
23597 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
23598 (MULTIBOOT_HEADER_MAGIC): New macros.
23599
23600 * loader/multiboot_loader.c (module_version_status): Remove variable.
23601 (find_multi_boot2_header): Remove function.
23602 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
23603 logic. Always check for the Multiboot version we're compiling for.
23604 (grub_cmd_module_loader): Likewise.
23605 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
23606 command instead of `multiboot'.
23607
23608 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23609
23610 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
23611 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
23612 all users.
23613
23614 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23615 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23616
23617 Fix breakage introduced with previous commit.
23618
23619 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
23620 commands.
23621 * normal/handler.c (read_handler_list): Revert part of previous commit
23622 affecting this file.
23623 * normal/main.c (read_lists): Move read_handler_list() call back to ...
23624 (grub_normal_execute): ... here.
23625
23626 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23627
23628 Merge prefix-redefinition-fix branch.
23629
23630 * normal/autofs.c (read_fs_list): Make function capable of being
23631 run multiple times, gracefuly replacing the previous data
23632 structures.
23633 * normal/dyncmd.c (read_command_list): Likewise.
23634 * normal/handler.c (read_handler_list): Likewise.
23635 * normal/main.c (read_lists): New function. Calls all the
23636 list reading functions.
23637 (grub_normal_execute): Use read_lists() instead of calling all
23638 list reading functions explicitly. Register read_lists() as a
23639 variable hook attached to ${prefix}.
23640
23641 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 Merge crypto branch.
23644
23645 * Makefile.in (pkglib_DATA): Add crypto.lst.
23646 (crypto.lst): New target.
23647 * commands/hashsum.c: New file.
23648 * commands/password.c (check_password): Use grub_crypto_memcmp.
23649 * commands/password_pbkdf2.c: New file.
23650 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
23651 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
23652 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
23653 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
23654 -I$(srcdir)/lib/libgcrypt_wrap.
23655 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
23656 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
23657 password_pbkdf2.mod.
23658 (crypto_mod_SOURCES): New variable.
23659 (crypto_mod_CFLAGS): Likewise.
23660 (crypto_mod_LDFLAGS): Likewise.
23661 (hashsum_mod_SOURCES): New variable.
23662 (hashsum_mod_CFLAGS): Likewise.
23663 (hashsum_mod_LDFLAGS): Likewise.
23664 (pbkdf2_mod_SOURCES): New variable.
23665 (pbkdf2_mod_CFLAGS): Likewise.
23666 (pbkdf2_mod_LDFLAGS): Likewise.
23667 (password_pbkdf2_mod_SOURCES): New variable.
23668 (password_pbkdf2_mod_CFLAGS): Likewise.
23669 (password_pbkdf2_mod_LDFLAGS): Likewise.
23670 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
23671 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
23672 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
23673 Include conf/gcry.rmk.
23674 * include/grub/auth.h: Rewritten.
23675 * include/grub/crypto.h: New file.
23676 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
23677 * include/grub/normal.h (read_crypto_list): New prototype.
23678 * lib/crypto.c: New file.
23679 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23680 * lib/pbkdf2.c: Likewise.
23681 * normal/auth.c (grub_auth_strcmp): Removed.
23682 (grub_iswordseparator): Likewise.
23683 (grub_auth_strword): Likewise.
23684 (is_authenticated): Use grub_strword.
23685 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
23686 and grub_strword. Pass entered password to authentication callback.
23687 * normal/crypto.c: New file.
23688 * normal/main.c: Call read_crypto_list.
23689 * util/grub-mkpasswd-pbkdf2.c: New file.
23690 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
23691
23692 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
23693
23694 Fix descent and ascent calculation.
23695
23696 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
23697 (options): New option "asce".
23698 (usage): Likewise.
23699 (add_char): Ignore invalid glyphs for descent calculation.
23700 Calculate ascent from actual content.
23701 (print_glyphs): Use 'asce'.
23702 (write_font): Likewise. Allow ascent override.
23703 (main): Handle "asce" option.
23704
23705 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23706
23707 * kern/err.c: Include `<grub/i18n.h>'.
23708 (grub_print_error): Add full stop. Gettextizze.
23709 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
23710 (grub_bsd_load_elf): Capitalise ELF.
23711 (grub_cmd_freebsd_loadenv): Add `s' in error string.
23712 (grub_cmd_freebsd_module): Likewise.
23713 (grub_cmd_freebsd_module_elf): Likewise.
23714 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
23715
23716 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23717
23718 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
23719 * commands/search_file.c (HELP_MESSAGE): New macro.
23720 * commands/search_label.c (HELP_MESSAGE): Likewise.
23721 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
23722 * po/POTFILES: Add `commands/search_file.c',
23723 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
23724 `commands/search.c'.
23725
23726 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
23727
23728 * config.rpath: Update from Gnulib.
23729
23730 2010-01-05 Yves Blusseau <blusseau@zetam.org>
23731
23732 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
23733
23734 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
23735
23736 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
23737
23738 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23739
23740 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
23741 arguments to fread so that we get a return value in bytes, rather
23742 than something that will normally be rounded down to 0.
23743 Adjust error handling to avoid producing garbage when size_t is not
23744 the same size as long long.
23745
23746 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23747
23748 * util/mkisofs/write.c (padblock_write): Check return value of
23749 fread.
23750
23751 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
23752
23753 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
23754 floppy images now.
23755
23756 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
23757
23758 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
23759
23760 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
23761 instead of manual alignment.
23762 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
23763 verbose). Avoid attempts to read past end of the device
23764 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
23765 but GRUB_DISK_CACHE_SIZE may exceed that).
23766
23767 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
23768
23769 * commands/crc.c (grub_cmd_crc): Abort on read errors.
23770 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
23771 it to upper layer.
23772
23773 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
23774
23775 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
23776 New constant.
23777 (grub_efi_piwg_device_path): New structure
23778 (grub_efi_piwg_device_path_t): New type.
23779 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
23780 (devpath_1): Transform to a structure. All users updated.
23781 (devpath_2): Likewise.
23782 (devpath_3): Likewise.
23783 (devpath_4): Likewise.
23784 (devpath_5): Likewise.
23785
23786 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 * loader/efi/appleloader.c: Restored. Update all users.
23789
23790 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23791
23792 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
23793
23794 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
23795 (struct boot_blocklist): Move from here ...
23796 * include/grub/i386/pc/boot.h [ASM_FILE]
23797 (struct grub_boot_blocklist): ... to here. Update all users.
23798 (setup): Only initialize `start' member of `first_block'
23799 structure. Add assert() calls to verify the other members.
23800
23801 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
23802 (generate_image): Fix broken blocklist length initialization.
23803 Add assert() call to verify blocklist `segment' field.
23804
23805 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23806
23807 * loader/efi/appleloader.c: Remove. Update all users.
23808
23809 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23810
23811 * boot/i386/pc/boot.S: Update copyright year.
23812 * boot/i386/pc/cdboot.S: Likewise.
23813 * boot/i386/pc/diskboot.S: Likewise.
23814 * boot/i386/pc/lnxboot.S: Likewise.
23815 * boot/i386/pc/pxeboot.S: Likewise.
23816 * bus/pci.c: Likewise.
23817 * commands/cmp.c: Likewise.
23818 * commands/help.c: Likewise.
23819 * commands/hexdump.c: Likewise.
23820 * commands/i386/pc/halt.c: Likewise.
23821 * commands/i386/pc/play.c: Likewise.
23822 * commands/i386/pc/vbeinfo.c: Likewise.
23823 * commands/ls.c: Likewise.
23824 * commands/test.c: Likewise.
23825 * disk/dmraid_nvidia.c: Likewise.
23826 * disk/i386/pc/biosdisk.c: Likewise.
23827 * disk/ieee1275/nand.c: Likewise.
23828 * disk/ieee1275/ofdisk.c: Likewise.
23829 * disk/lvm.c: Likewise.
23830 * disk/raid.c: Likewise.
23831 * disk/raid6_recover.c: Likewise.
23832 * disk/scsi.c: Likewise.
23833 * fs/affs.c: Likewise.
23834 * fs/cpio.c: Likewise.
23835 * fs/ext2.c: Likewise.
23836 * fs/hfs.c: Likewise.
23837 * fs/iso9660.c: Likewise.
23838 * fs/ntfs.c: Likewise.
23839 * fs/sfs.c: Likewise.
23840 * fs/udf.c: Likewise.
23841 * fs/ufs.c: Likewise.
23842 * fs/xfs.c: Likewise.
23843 * gencmdlist.sh: Likewise.
23844 * genmk.rb: Likewise.
23845 * include/grub/disk.h: Likewise.
23846 * include/grub/efi/api.h: Likewise.
23847 * include/grub/efi/efi.h: Likewise.
23848 * include/grub/efi/pe32.h: Likewise.
23849 * include/grub/elf.h: Likewise.
23850 * include/grub/fs.h: Likewise.
23851 * include/grub/i386/at_keyboard.h: Likewise.
23852 * include/grub/i386/pc/memory.h: Likewise.
23853 * include/grub/i386/pc/vbe.h: Likewise.
23854 * include/grub/i386/pci.h: Likewise.
23855 * include/grub/i386/tsc.h: Likewise.
23856 * include/grub/ieee1275/ieee1275.h: Likewise.
23857 * include/grub/ntfs.h: Likewise.
23858 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23859 * include/grub/sparc64/libgcc.h: Likewise.
23860 * include/grub/symbol.h: Likewise.
23861 * include/grub/types.h: Likewise.
23862 * include/multiboot2.h: Likewise.
23863 * io/gzio.c: Likewise.
23864 * kern/device.c: Likewise.
23865 * kern/disk.c: Likewise.
23866 * kern/efi/efi.c: Likewise.
23867 * kern/efi/mm.c: Likewise.
23868 * kern/elf.c: Likewise.
23869 * kern/file.c: Likewise.
23870 * kern/i386/dl.c: Likewise.
23871 * kern/i386/pc/init.c: Likewise.
23872 * kern/i386/pc/startup.S: Likewise.
23873 * kern/ieee1275/ieee1275.c: Likewise.
23874 * kern/ieee1275/init.c: Likewise.
23875 * kern/main.c: Likewise.
23876 * kern/mm.c: Likewise.
23877 * kern/powerpc/dl.c: Likewise.
23878 * kern/sparc64/dl.c: Likewise.
23879 * kern/x86_64/dl.c: Likewise.
23880 * lib/hexdump.c: Likewise.
23881 * loader/efi/appleloader.c: Likewise.
23882 * loader/i386/ieee1275/linux.c: Likewise.
23883 * loader/i386/pc/chainloader.c: Likewise.
23884 * loader/i386/pc/linux.c: Likewise.
23885 * loader/i386/pc/multiboot2.c: Likewise.
23886 * loader/ieee1275/multiboot2.c: Likewise.
23887 * loader/multiboot2.c: Likewise.
23888 * loader/multiboot_loader.c: Likewise.
23889 * loader/powerpc/ieee1275/linux.c: Likewise.
23890 * normal/completion.c: Likewise.
23891 * normal/menu_entry.c: Likewise.
23892 * partmap/apple.c: Likewise.
23893 * util/grub.d/10_hurd.in: Likewise.
23894 * util/hostfs.c: Likewise.
23895 * video/readers/png.c: Likewise.
23896
23897 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
23898
23899 * include/grub/misc.h (GNUC_PREREQ): New macro.
23900 (ATTRIBUTE_ERROR): New macro.
23901 * include/grub/list.h (grub_bad_type_cast_real): Use
23902 ATTRIBUTE_ERROR.
23903
23904 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23905
23906 * normal/menu_text.c (print_message): Change messages.
23907
23908 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23909
23910 * normal/menu_entry.c (store_completion): Gettextizze.
23911
23912 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23913
23914 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
23915
23916 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23917
23918 * po/POTFILES: Sort correctly.
23919
23920 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23921
23922 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
23923 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
23924 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
23925 full stop.
23926 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
23927 summary. Gettextizze the strings.
23928 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
23929 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
23930 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
23931 full stop.
23932 (GRUB_MOD_INIT): Remove command name from summary.
23933 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
23934 summary.
23935 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
23936 * term/i386/pc/serial.c (options): Add full stops.
23937 (GRUB_MOD_INIT): Remove command name from the summary.
23938
23939 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23940
23941 * commands/acpi.c: Gettextizze help strings and/or options. Include
23942 `grub/i18n.h' if needed.
23943 * commands/blocklist.c: Likewise.
23944 * commands/boot.c: Likewise.
23945 * commands/cat.c: Likewise.
23946 * commands/cmp.c: Likewise.
23947 * commands/configfile.c: Likewise.
23948 * commands/crc.c: Likewise.
23949 * commands/date.c: Likewise.
23950 * commands/echo.c: Likewise.
23951 * commands/efi/fixvideo.c: Likewise.
23952 * commands/efi/loadbios.c: Likewise.
23953 * commands/gptsync.c: Likewise.
23954 * commands/halt.c: Likewise.
23955 * commands/handler.c: Likewise.
23956 * commands/hdparm.c: Likewise.
23957 * commands/hexdump.c: Likewise.
23958 * commands/i386/cpuid.c: Likewise.
23959 * commands/i386/pc/drivemap.c: Likewise.
23960 * commands/i386/pc/halt.c: Likewise.
23961 * commands/i386/pc/pxecmd.c: Likewise.
23962 * commands/i386/pc/vbeinfo.c: Likewise.
23963 * commands/i386/pc/vbetest.c: Likewise.
23964 * commands/ieee1275/suspend.c: Likewise.
23965 * commands/keystatus.c: Likewise.
23966 * commands/loadenv.c: Likewise.
23967 * commands/ls.c: Likewise.
23968 * commands/lsmmap.c: Likewise.
23969 * commands/lspci.c: Likewise.
23970 * commands/memrw.c: Likewise.
23971 * commands/minicmd.c: Likewise.
23972 * commands/parttool.c: Likewise.
23973 * commands/password.c: Likewise.
23974 * commands/probe.c: Likewise.
23975 * commands/read.c: Likewise.
23976 * commands/reboot.c: Likewise.
23977 * commands/search.c: Likewise.
23978 * commands/sleep.c: Likewise.
23979 * commands/test.c: Likewise.
23980 * commands/true.c: Likewise.
23981 * commands/usbtest.c: Likewise.
23982 * commands/videotest.c: Likewise.
23983 * commands/xnu_uuid.c: Likewise.
23984 * disk/loopback.c: Likewise.
23985 * hello/hello.c: Likewise.
23986 * loader/i386/bsd.c: Likewise.
23987 * term/i386/pc/serial.c: Likewise.
23988 * po/POTFILES: Add new files.
23989
23990 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
23991
23992 * term/i386/pc/at_keyboard.c
23993 (keyboard_controller_wait_untill_ready): Rename to ...
23994 (keyboard_controller_wait_until_ready): ... this. Update all users.
23995
23996 2010-01-01 Carles Pina i Estany <carles@pina.cat>
23997
23998 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
23999 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24000 string using string width.
24001 * normal/menu_text.c (grub_print_message_indented): Use
24002 grub_print_spaces and not print_spaces.
24003 (print_timeout): Likewise.
24004 (print_spaces): Move to...
24005 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24006
24007 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24008
24009 Import from Gnulib.
24010
24011 * gnulib/getdelim.c: New file.
24012 * gnulib/getline.c: Likewise.
24013
24014 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24015
24016 * include/grub/list.h (grub_assert_fail): Removed.
24017 (grub_bad_type_cast_real): New function.
24018 (grub_bad_type_cast): New macro.
24019 (GRUB_AS_LIST): Use grub_bad_type_cast.
24020 (GRUB_AS_LIST_P): Likewise.
24021 (GRUB_AS_NAMED_LIST): Likewise.
24022 (GRUB_AS_NAMED_LIST_P): Likewise.
24023 (GRUB_AS_PRIO_LIST): Likewise.
24024 (GRUB_AS_PRIO_LIST_P): Likewise.
24025 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24026
24027 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24028
24029 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24030 Fix syntax error.
24031
24032 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24033
24034 * configure.ac: Check for TARGET_CFLAGS initialization before we
24035 initialize it ourselves (sigh).
24036 Move a few modifications to TARGET_CFLAGS to be unconditional
24037 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24038 eh_frame)
24039
24040 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24041 * term/i386/pc/at_keyboard.c
24042 (keyboard_controller_wait_untill_ready): Likewise.
24043 (keyboard_controller_led): Rename `led_status' paramter to avoid
24044 name conflict.
24045
24046 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24047
24048 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24049 quotes.
24050
24051 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24052
24053 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24054
24055 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24056
24057 * normal/menu_text.c (grub_print_message_indented): Prevent
24058 past-the-end-of-array dereference.
24059
24060 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24061
24062 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24063 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24064
24065 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24066
24067 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24068 * normal/main.c (grub_normal_read_line): Remove a space from the
24069 default prompt.
24070
24071 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24072
24073 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24074 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24075 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24076 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24077 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24078 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24079 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24080
24081 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24082
24083 * video/readers/jpeg.c (cmd): Declare.
24084 (grub_cmd_jpegtest): Use `grub_command_t' type.
24085 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24086 Assign to `cmd'.
24087 (GRUB_MOD_FINI): Use `cmd' to unregister.
24088 * video/readers/png.c (cmd): Declare.
24089 (grub_cmd_pngtest): Use `grub_command_t' type.
24090 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24091 Assign to `cmd'.
24092 (GRUB_MOD_FINI): Use `cmd' to unregister.
24093 * video/readers/tga.c (cmd): Declare.
24094 (grub_cmd_tgatest): Use `grub_command_t' type.
24095 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24096 Assign to `cmd'.
24097 (GRUB_MOD_FINI): Use `cmd' to unregister.
24098
24099 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24100
24101 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24102 stops.
24103 * kern/corecmd.c (grub_register_core_commands): Likewise.
24104 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24105 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24106 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24107 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24108 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24109 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24110 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24111 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24112 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24113 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24114 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24115 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24116 * normal/handler.c (insert_handler): Likewise.
24117 * normal/main.c (GRUB_MOD_INIT): Likewise.
24118 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24119
24120 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24121
24122 * commands/help.c (grub_cmd_help): Print the command name before the
24123 summary.
24124 (GRUB_MOD_INIT): Remove command name from the summary.
24125 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24126 string as summary.
24127 * lib/arg.c (find_long): Print the command name before the summary.
24128 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24129 summary.
24130 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24131 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24132 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24133 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24134 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24135 * commands/date.c (GRUB_MOD_INIT): Likewise.
24136 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24137 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24138 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24139 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24140 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24141 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24142 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24143 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24144 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24145 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24146 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24147 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24148 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24149 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24150 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24151 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24152 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24153 * commands/password.c (GRUB_MOD_INIT): Likewise.
24154 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24155 * commands/read.c (GRUB_MOD_INIT): Likewise.
24156 * commands/search.c (GRUB_MOD_INIT): Likewise.
24157 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24158 * commands/test.c (GRUB_MOD_INIT): Likewise.
24159 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24160 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24161 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24162 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24163 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24164 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24165 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24166 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24167 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24168 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24169 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24170 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24171 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24172 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24173
24174 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24175
24176 Use search command for preliminar UUID search.
24177
24178 * commands/search.c: Split into ...
24179 * commands/search_wrap.c: ...this
24180 * commands/search.c: ...and this.
24181 * commands/search_file.c: New file.
24182 * commands/search_label.c: New file.
24183 * commands/search_uuid.c: New file.
24184 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24185 Add commands/search_wrap.c, commands/search_file.c,
24186 commands/search_label.c and commands/search_uuid.c.
24187 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24188 (search_mod_SOURCES): Set to commands/search_wrap.c.
24189 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24190 search_label.mod.
24191 (search_fs_file_mod_SOURCES): New variable.
24192 (search_fs_file_mod_CFLAGS): Likewise.
24193 (search_fs_file_mod_LDFLAGS): Likewise.
24194 (search_label_mod_SOURCES): Likewise.
24195 (search_label_mod_CFLAGS): Likewise.
24196 (search_label_mod_LDFLAGS): Likewise.
24197 (search_fs_uuid_mod_SOURCES): New variable.
24198 (search_fs_uuid_mod_CFLAGS): Likewise.
24199 (search_fs_uuid_mod_LDFLAGS): Likewise.
24200 (fs_file_mod_SOURCES): Removed.
24201 (fs_file_mod_CFLAGS): Likewise.
24202 (fs_file_mod_LDFLAGS): Likewise.
24203 (fs_uuid_mod_SOURCES): Removed.
24204 (fs_uuid_mod_CFLAGS): Likewise.
24205 (fs_uuid_mod_LDFLAGS): Likewise.
24206 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24207 Set to util/grub-install.in.
24208 * disk/fs_file.c: Removed.
24209 * disk/fs_uuid.c: Likewise.
24210 * include/grub/search.h: New file.
24211 * util/grub-install.in: Handle sparc64.
24212 Create and use load.cfg.
24213 * util/sparc64/ieee1275/grub-install.in: Removed.
24214
24215 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24216
24217 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24218 Ignore return status if CF is cleared.
24219 (grub_biosdisk_get_diskinfo_standard): Likewise.
24220
24221 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24222
24223 * term/i386/pc/at_keyboard.c
24224 (keyboard_controller_wait_untill_ready): New function.
24225 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24226 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24227 for keyboard polling, rather than duplicate the same loop. This
24228 saves a few bytes in code size.
24229
24230 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24231
24232 Support for (pxe[:server[:gateway]]) syntax and
24233 use environment variable for PXE.
24234
24235 * commands/i386/pc/pxecmd.c (options): Removed.
24236 (print_ip): Removed.
24237 (grub_cmd_pxe): Removed
24238 (grub_cmd_pxe_unload): New function.
24239 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24240 (grub_pxe_your_ip): Made static.
24241 (grub_pxe_default_server_ip): Likewise.
24242 (grub_pxe_default_gateway_ip): Likewise.
24243 (grub_pxe_blksize): Likewise.
24244 (parse_ip): New function.
24245 (grub_pxe_open): Support server and gateway specification.
24246 (grub_pxe_close): Free disk->data.
24247 (grub_pxefs_open): Use disk->data.
24248 (grub_pxefs_read): Likewise.
24249 (grub_env_write_readonly): New function.
24250 (set_mac_env): Likewise.
24251 (set_env_limn_ro): Likewise.
24252 (parse_dhcp_vendor): Likewise.
24253 (grub_pxe_detect): Set the environment variables.
24254 (set_ip_env): New function.
24255 (write_ip_env): Likewise.
24256 (grub_env_write_pxe_default_server): Likewise.
24257 (grub_env_write_pxe_default_gateway): Likewise.
24258 (grub_env_write_pxe_blocksize): Likewise.
24259 (GRUB_MOD_INIT(pxe)): Set environment variables.
24260 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24261 (grub_pxe_mac_addr_t): ... this. All users updated.
24262 (grub_pxe_your_ip): Removed.
24263 (grub_pxe_server_ip): Likewise.
24264 (grub_pxe_gateway_ip): Likewise.
24265 (grub_pxe_blksize): Likewise.
24266
24267 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24268
24269 * commands/help.c: Include `<grub/i18n.h>'.
24270 (grub_cmd_help): Gettextizze.
24271 (GRUB_MOD_INIT): Likewise.
24272 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
24273 (GRUB_MOD_INIT): Gettextizze.
24274 * commands/search.c: Include `<grub/i18n.h>'.
24275 (options): Gettextizze.
24276 (GRUB_MOD_INIT): Gettextizze.
24277 * lib/arg.c: Include `<grub/i18n.h>'.
24278 (help_options): Gettextizze.
24279 (find_long): Likewise.
24280 (grub_arg_show_help): Likewise.
24281 * normal/dyncmd.c: Include `<grub/i18n.h>'.
24282 (read_command_list): Gettextizze.
24283 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
24284 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
24285
24286 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24287
24288 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
24289 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
24290 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
24291 (led_status): New variable.
24292 (keyboard_controller_led): New function.
24293 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
24294 update led status for caps lock, num lock and scroll lock.
24295
24296 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
24297
24298 * util/hostdisk.c (open_device): Fix a comment.
24299
24300 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24301
24302 * util/grub-install.in (host_os): New variable.
24303 * util/i386/efi/grub-install.in (host_os): Likewise.
24304
24305 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24306
24307 * util/mkisofs/write.c (padblock_write): Abort when given an
24308 excedingly large embed image, instead of silently truncating it.
24309
24310 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24311
24312 * include/multiboot.h: Indentation fixes.
24313
24314 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24315
24316 * include/multiboot.h (struct multiboot_aout_symbol_table)
24317 (struct multiboot_elf_section_header_table): New structure
24318 declarations (stolen from GRUB Legacy).
24319 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
24320 table information.
24321
24322 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
24323 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
24324 type aliases.
24325
24326 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24327
24328 * include/multiboot.h: Make comments src2texi-friendly.
24329
24330 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24331
24332 For consistency with [multiboot]/docs/boot.S.
24333
24334 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
24335 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
24336 (MULTIBOOT_MAGIC2): Rename from this ...
24337 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
24338
24339 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24340
24341 * include/multiboot.h: Remove `<grub/types.h>'.
24342 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
24343 types. Update all users.
24344
24345 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24346
24347 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
24348 `couldn't' and `can not' by `cannot'.
24349 * commands/i386/pc/drivemap.c: Likewise.
24350 * disk/ata.c: Likewise.
24351 * disk/ieee1275/nand.c: Likewise.
24352 * fs/affs.c: Likewise.
24353 * fs/fat.c: Likewise.
24354 * fs/hfs.c: Likewise.
24355 * fs/hfsplus.c: Likewise.
24356 * fs/iso9660.c: Likewise.
24357 * fs/jfs.c: Likewise.
24358 * fs/minix.c: Likewise.
24359 * fs/reiserfs.c: Likewise.
24360 * fs/sfs.c: Likewise.
24361 * fs/udf.c: Likewise.
24362 * fs/ufs.c: Likewise.
24363 * fs/xfs.c: Likewise.
24364 * loader/powerpc/ieee1275/linux.c: Likewise.
24365 * loader/sparc64/ieee1275/linux.c: Likewise.
24366 * util/grub-probe.c: Likewise.
24367 * util/misc.c: Likewise.
24368
24369 2009-12-24 Carles Pina i Estany <carles@pina.cat>
24370
24371 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
24372 grub_errno calls.
24373 * commands/acpi.c: Likewise.
24374 * commands/blocklist.c: Likewise.
24375 * commands/efi/loadbios.c: Likewise.
24376 * commands/i386/pc/drivemap.c: Likewise.
24377 * commands/loadenv.c: Likewise.
24378 * commands/memrw.c: Likewise.
24379 * commands/password.c: Likewise.
24380 * commands/videotest.c: Likewise.
24381 * disk/ata.c: Likewise.
24382 * disk/ata_pthru.c: Likewise.
24383 * disk/dmraid_nvidia.c: Likewise.
24384 * disk/ieee1275/nand.c: Likewise.
24385 * disk/ieee1275/ofdisk.c: Likewise.
24386 * disk/loopback.c: Likewise.
24387 * disk/lvm.c: Likewise.
24388 * disk/mdraid_linux.c: Likewise.
24389 * disk/raid.c: Likewise.
24390 * disk/raid6_recover.c: Likewise.
24391 * disk/scsi.c: Likewise.
24392 * efiemu/main.c: Likewise.
24393 * efiemu/mm.c: Likewise.
24394 * efiemu/pnvram.c: Likewise.
24395 * efiemu/symbols.c: Likewise.
24396 * font/font.c: Likewise.
24397 * fs/cpio.c: Likewise.
24398 * fs/hfsplus.c: Likewise.
24399 * fs/iso9660.c: Likewise.
24400 * fs/jfs.c: Likewise.
24401 * fs/minix.c: Likewise.
24402 * fs/ntfs.c: Likewise.
24403 * fs/ntfscomp.c: Likewise.
24404 * fs/reiserfs.c: Likewise.
24405 * fs/ufs.c: Likewise.
24406 * fs/xfs.c: Likewise.
24407 * gettext/gettext.c: Likewise.
24408 * include/grub/auth.h: Likewise.
24409 * kern/elf.c: Likewise.
24410 * kern/file.c: Likewise.
24411 * kern/ieee1275/init.c: Likewise.
24412 * kern/ieee1275/mmap.c: Likewise.
24413 * kern/ieee1275/openfw.c: Likewise.
24414 * kern/powerpc/dl.c: Likewise.
24415 * kern/sparc64/dl.c: Likewise.
24416 * lib/arg.c: Likewise.
24417 * loader/i386/bsd.c: Likewise.
24418 * loader/i386/bsdXX.c: Likewise.
24419 * loader/i386/efi/linux.c: Likewise.
24420 * loader/i386/efi/xnu.c: Likewise.
24421 * loader/i386/ieee1275/linux.c: Likewise.
24422 * loader/i386/linux.c: Likewise.
24423 * loader/i386/multiboot.c: Likewise.
24424 * loader/i386/pc/linux.c: Likewise.
24425 * loader/i386/pc/multiboot2.c: Likewise.
24426 * loader/i386/xnu.c: Likewise.
24427 * loader/ieee1275/multiboot2.c: Likewise.
24428 * loader/macho.c: Likewise.
24429 * loader/machoXX.c: Likewise.
24430 * loader/multiboot2.c: Likewise.
24431 * loader/multiboot_loader.c: Likewise.
24432 * loader/powerpc/ieee1275/linux.c: Likewise.
24433 * loader/sparc64/ieee1275/linux.c: Likewise.
24434 * loader/xnu.c: Likewise.
24435 * loader/xnu_resume.c: Likewise.
24436 * mmap/i386/pc/mmap.c: Likewise.
24437 * normal/menu_viewer.c: Likewise.
24438 * partmap/acorn.c: Likewise.
24439 * partmap/amiga.c: Likewise.
24440 * partmap/apple.c: Likewise.
24441 * script/lexer.c: Likewise.
24442 * term/gfxterm.c: Likewise.
24443 * term/i386/pc/serial.c: Likewise.
24444 * term/i386/pc/vga.c: Likewise.
24445 * term/ieee1275/ofconsole.c: Likewise.
24446 * term/terminfo.c: Likewise.
24447 * video/bitmap.c: Likewise.
24448 * video/efi_gop.c: Likewise.
24449 * video/efi_uga.c: Likewise.
24450 * video/fb/video_fb.c: Likewise.
24451 * video/i386/pc/vbe.c: Likewise.
24452 * video/readers/tga.c: Likewise.
24453 * video/video.c: Likewise.
24454
24455 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
24456
24457 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
24458 * commands/lspci.c: Likewise.
24459 * commands/probe.c: Likewise.
24460 * commands/xnu_uuid.c: Likewise.
24461 * conf/i386-coreboot.rmk: Likewise.
24462 * conf/i386-efi.rmk: Likewise.
24463 * conf/i386-ieee1275.rmk: Likewise.
24464 * conf/i386-pc.rmk: Likewise.
24465 * conf/powerpc-ieee1275.rmk: Likewise.
24466 * conf/sparc64-ieee1275.rmk: Likewise.
24467 * conf/x86_64-efi.rmk: Likewise.
24468 * fs/i386/pc/pxe.c: Likewise.
24469 * gettext/gettext.c: Likewise.
24470 * include/grub/efi/graphics_output.h: Likewise.
24471 * include/grub/i386/pc/memory.h: Likewise.
24472 * kern/env.c: Likewise.
24473 * kern/i386/qemu/startup.S: Likewise.
24474 * lib/i386/pc/biosnum.c: Likewise.
24475 * lib/i386/relocator.c: Likewise.
24476 * lib/i386/relocator_asm.S: Likewise.
24477 * lib/relocator.c: Likewise.
24478 * loader/i386/bsd.c: Likewise.
24479 * loader/i386/multiboot.c: Likewise.
24480 * loader/i386/pc/chainloader.c: Likewise.
24481 * loader/i386/xnu.c: Likewise.
24482 * loader/xnu.c: Likewise.
24483 * normal/main.c: Likewise.
24484 * normal/menu_text.c: Likewise.
24485 * util/getroot.c: Likewise.
24486 * util/grub-mkconfig_lib.in: Likewise.
24487 * util/grub.d/00_header.in: Likewise.
24488 * util/i386/pc/grub-mkimage.c: Likewise.
24489 * util/mkisofs/eltorito.c: Likewise.
24490 * util/mkisofs/exclude.h: Likewise.
24491 * util/mkisofs/hash.c: Likewise.
24492 * util/mkisofs/iso9660.h: Likewise.
24493 * util/mkisofs/joliet.c: Likewise.
24494 * util/mkisofs/mkisofs.c: Likewise.
24495 * util/mkisofs/mkisofs.h: Likewise.
24496 * util/mkisofs/multi.c: Likewise.
24497 * util/mkisofs/name.c: Likewise.
24498 * util/mkisofs/rock.c: Likewise.
24499 * util/mkisofs/tree.c: Likewise.
24500 * util/mkisofs/write.c: Likewise.
24501 * video/efi_gop.c: Likewise.
24502
24503 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
24504
24505 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
24506 size counting.
24507
24508 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24509
24510 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
24511 * genmk.rb (class SCRIPT): Modify the target file instead of source.
24512
24513 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24514
24515 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
24516 (GRUB_MOD_INIT(memrw)): Update help line.
24517
24518 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24519
24520 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
24521 Use grub_extcmd_t. All users updated.
24522 (options): New variable.
24523 (grub_cmd_read): Restructure for readability. Support "-v" option.
24524 (grub_cmd_write): Restructure for readability.
24525
24526 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24527
24528 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
24529
24530 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24531
24532 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
24533 with the actual contents of the correspondending make variable.
24534 * util/grub-mkrescue.in (pkglib_DATA): New variable.
24535 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
24536 specifying `*.lst' and `efiemu??.o'
24537
24538 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24539
24540 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
24541 after function name.
24542 Noticed by Rene Engelhard <rene@debian.org>.
24543
24544 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24545
24546 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
24547 (options): New variable.
24548 (iospace): Likewise.
24549 (grub_lspci_iter): List IO spaces if "-i" was given.
24550 (grub_cmd_lspci): Parse options.
24551 (GRUB_MOD_INIT(lspci)): Use extcmd.
24552 (GRUB_MOD_FINI(lspci)): Likewise.
24553
24554 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24555
24556 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
24557 `function' keyword.
24558 Patch by Tony Mancill <tmancill@debian.org>.
24559
24560 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24561
24562 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
24563 (grub_uhci_portstatus): Likewise.
24564 (grub_uhci_portstatus): Add necessary delay.
24565 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
24566
24567 2009-12-21 Carles Pina i Estany <carles@pina.cat>
24568
24569 * commands/acpi.c (options): Fix capitalizations and/or full stops.
24570 (GRUB_MOD_INIT): Likewise.
24571 * commands/boot.c (GRUB_MOD_INIT): Likewise.
24572 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
24573 * commands/echo.c (options): Fix capitalizations and/or full stops.
24574 * commands/efi/loadbios.c (enable_rom_area): Likewise.
24575 (enable_rom_area): Likewise.
24576 (GRUB_MOD_INIT): Likewise.
24577 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24578 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
24579 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24580 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
24581 * commands/hexdump.c (options): Likewise.
24582 * commands/i386/cpuid.c (options): Likewise.
24583 (GRUB_MOD_INIT): Likewise.
24584 * commands/i386/pc/drivemap.c (options): Likewise.
24585 (GRUB_MOD_INIT): Likewise.
24586 * commands/i386/pc/halt (options): Likewise.
24587 (GRUB_MOD_INIT): Likewise.
24588 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24589 * commands/i386/pc/pxecmd.c (options): Likewise.
24590 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
24591 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
24592 * commands/keystatus.c (options): Likewise.
24593 (GRUB_MOD_INIT): Likewise.
24594 * commands/loadenv.c (options): Likewise.
24595 * commands/ls.c (options): Likewise.
24596 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24597 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24598 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24599 * commands/parttool.c (helpmsg): Likewise.
24600 * commands/probe.c (options): Likewise.
24601 * commands/read.c (GRUB_MOD_INIT): Likewise.
24602 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
24603 * commands/search.c (options): Likewise.
24604 * commands/sleep.c (options): Likewise.
24605 * commands/test.c (GRUB_MOD_INIT): Likewise.
24606 * commands/true.c (GRUB_MOD_INIT): Likewise.
24607 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
24608 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
24609 * lib/arg.c (help_options): Likewise.
24610 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
24611 `$(XGETTEXT)'.
24612 * po/POTFILES: Add `commands/loadenv.c'.
24613
24614 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
24615
24616 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
24617 instead of specifying them explicit.
24618
24619 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24620
24621 * NEWS: Add grub-probe support for GNU/Hurd.
24622
24623 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24624
24625 * NEWS: gettext was added after 1.97.
24626
24627 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24628
24629 * util/mkisofs/msdos_partition.h: New file (based on
24630 include/grub/msdos_partition.h).
24631 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
24632 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
24633 (ld_options, main): Recognize --protective-msdos-label.
24634 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
24635 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
24636 (padblock_write): If `use_protective_msdos_label' is set, patch a
24637 protective DOS-style label in the output image.
24638
24639 * util/grub-mkrescue.in: Use --protective-msdos-label.
24640
24641 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24642
24643 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
24644 boot.
24645
24646 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24647
24648 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
24649 variables.
24650 (ld_options, main): Recognize `--embedded-boot'.
24651 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
24652 declarations.
24653 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
24654 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
24655 (padblock_write): Likewise. Rewrite to support embedded boot image.
24656
24657 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
24658 for BIOS-based disk boot instead of only ElTorito.
24659
24660 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24661
24662 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
24663 build (not needed for bootstrap).
24664
24665 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24666
24667 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
24668 from i386-pc build (not needed for bootstrap).
24669 Rewrite a pair of strings.
24670
24671 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24672
24673 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
24674
24675 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
24676
24677 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
24678
24679 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24680
24681 * kern/env.c (grub_env_context_open): Mark exported variable for
24682 reexport.
24683
24684 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24685
24686 * kern/env.c (grub_env_export): Create nonexistent variables before
24687 exporting.
24688
24689 2009-12-20 Carles Pina i Estany <carles@pina.cat>
24690
24691 * include/grub/auth.h: Include `<grub/i18n.h>'.
24692 (GRUB_GET_PASSWORD): Gettextizze string.
24693 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
24694 menu_text.c.
24695 (grub_utf8_to_ucs4_alloc): Fix indentation.
24696 (grub_print_ucs4): Likewise.
24697 (grub_getstringwidth): Likewise.
24698 (print_message_indented): New declaration.
24699 * normal/auth.c: Include `<grub/i18n.h>'.
24700 (grub_auth_check_authentication): Gettexttize string.
24701 * normal/cmdline.c: Include `<grub/i18n.h>'.
24702 (grub_cmdline_get): Gettextizze.
24703 * normal/color.c: Include `<grub/i18n.h>'.
24704 (grub_parse_color_name_pair): Gettexttize strings.
24705 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
24706 string (use `print_message_indented').
24707 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
24708 `include/grub/normal.h'.
24709 (print_message_indented): Renamed to ...
24710 (grub_print_message_indented): ... this. Remove `static' qualifer (now
24711 used in normal/main.c).
24712 (print_message): Use `grub_print_message_indented' instead of
24713 `print_message_indented'.
24714 (print_timeout): Likewise.
24715 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
24716 (grub_normal_print_device_info): Gettexttize strings.
24717 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
24718
24719 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
24720
24721 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
24722 of arguments. Return number of tokens and not arguments. All users
24723 updated.
24724
24725 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
24726
24727 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
24728 non-MSDOS paritions.
24729
24730 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
24731
24732 * include/grub/types.h (UNUSED): Removed since it conflicts with
24733 NetBSD headers. All users changed to direct __attribute__ ((unused)).
24734 Reported by Grégoire Sutre.
24735
24736 2009-12-19 Carles Pina i Estany <carles@pina.cat>
24737
24738 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
24739 (grub_print_ucs4_alloc): Likewise.
24740 (grub_getstringwidth): Likewise.
24741 * normal/main.c (grub_normal_init_page): Gettextize version string.
24742 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
24743 (getstringwidth): Renamed to ...
24744 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
24745 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
24746 (grub_print_ucs4): Remove `static' qualifer (now used in
24747 normal/main.c).
24748 * po/POTFILES: Add normal/main.c.
24749
24750 2009-12-19 Carles Pina i Estany <carles@pina.cat>
24751
24752 * normal/menu_text.c (STANDARD_MARGIN): New macro.
24753 (print_message_indented): Add `margin_left' and `margin_right'
24754 parameters.
24755 (print_message): Update `print_message_indented' calls. Adds '\n' to the
24756 strings.
24757 (print_timeout): Use `print_message_indented' to print the message.
24758 Deletes `second_stage' parameter.
24759 (run_menu): Update `print_timeout' calls.
24760
24761 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24762
24763 Fix console palette on OpenFirmware.
24764
24765 * term/ieee1275/ofconsole.c (MAX): Removed.
24766 (colors): Redone based on VGA palette.
24767 (grub_ofconsole_setcolor): Discard brightness bit since only 8
24768 colors are supported.
24769 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
24770
24771 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24772
24773 Fix potential EfiEmu double prepare.
24774
24775 * efiemu/main.c (prepared): New variable
24776 (grub_efiemu_unload): Set prepare to '0'.
24777 (grub_efiemu_prepare): Return if already prepared. Set prepared.
24778
24779 set_virtual_address_map support.
24780
24781 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
24782 prototype.
24783 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
24784 prototype.
24785 (grub_efiemu_crc32): Likewise.
24786 (grub_efiemu_crc64): Likewise.
24787 (grub_efiemu_set_virtual_address_map): Likewise.
24788 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
24789 New definition.
24790 (grub_autoefi_set_virtual_address_map): Likewise.
24791 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
24792 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
24793 Restructure flow to accomodate it.
24794 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
24795 (grub_efiemu_crc): Recompute CRC32.
24796 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
24797 (efiemu_ptv_relocated): ... this. Made global. All users updated.
24798 * efiemu/symbols.c (relocated_handle): New variable.
24799 (grub_efiemu_free_syms): Free relocated_handle.
24800 (grub_efiemu_alloc_syms): Allocate relocated_handle.
24801 (grub_efiemu_write_sym_markers): New function.
24802 (grub_efiemu_set_virtual_address_map): Likewise.
24803
24804 Newer XNU parameters.
24805
24806 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
24807 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
24808 (grub_xnu_fill_devicetree): New prototype.
24809 (grub_xnu_heap_real_start): New variable.
24810 * loader/xnu.c (get_name_ptr): New function.
24811 (grub_xnu_load_driver): Fill namelen and name.
24812
24813 64-bit xnu support.
24814
24815 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
24816 and 'loader/macho64.c'.
24817 * conf/i386-pc.rmk: Likewise.
24818 * conf/x86_64-efi.rmk: Likewise.
24819 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
24820 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
24821 * include/grub/macho.h (grub_macho_segment64): New structure.
24822 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
24823 (grub_macho_size32): ... to this.
24824 (grub_macho32_get_entry_point): Renamed from ...
24825 (grub_macho_get_entry_point32): ... to this.
24826 (grub_macho_contains_macho64): New prototype.
24827 (grub_macho_size64): Likewise.
24828 (grub_macho_get_entry_point64): Likewise.
24829 (grub_macho32_load): Renamed from ...
24830 (grub_macho_load32): ... to this.
24831 (grub_macho32_filesize): Renamed from ...
24832 (grub_macho_filesize32): ... to this.
24833 (grub_macho32_readfile): Renamed from ...
24834 (grub_macho_readfile32): ... to this.
24835 (grub_macho_filesize64): New prototype.
24836 (grub_macho_readfile64): Likewise.
24837 (grub_macho_parse32): Likewise.
24838 (grub_macho_parse64): Likewise.
24839 * loader/macho.c: Split into ...
24840 * loader/machoXX.c: ... and this. Replace 32 with XX.
24841 * loader/macho32.c: New file.
24842 * loader/macho64.c: Likewise.
24843 * loader/xnu.c (grub_xnu_is_64bit): New variable.
24844 (grub_cmd_xnu_kernel): Make 32-bit only.
24845 (grub_cmd_xnu_kernel64): New function.
24846 (grub_xnu_load_driver): Support Mach-O 64.
24847 (grub_cmd_xnu_mkext): Likewise.
24848 * util/grub.d/30_os-prober.in (osx_entry): New function.
24849 Generate entries for 64-bit boot too.
24850
24851 Eliminate ad-hoc tree format in XNU and EfiEmu.
24852
24853 * efiemu/main.c (grub_efiemu_prepare): Update comment.
24854 * efiemu/pnvram.c: Rewritten to use environment variables.
24855 All users updated.
24856
24857 Inline utf16_to_utf8.
24858
24859 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
24860 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
24861 All users updated.
24862 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
24863
24864 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
24865 * commands/usbtest.c (grub_usb_get_string): ... move here.
24866 (usb_print_str): Fix error handling.
24867 * include/grub/usb.h (grub_usb_get_string): Remove.
24868
24869 UTF-8 to UTF-16 transformation.
24870
24871 * conf/common.rmk (pkglib_MODULES): Add charset.mod
24872 (charset_mod_SOURCES): New variable.
24873 (charset_mod_CFLAGS): Likewise.
24874 (charset_mod_LDFLAGS): Likewise.
24875 * include/grub/utf.h: New file.
24876 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
24877
24878 Support for device properties.
24879
24880 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
24881 (grub_xnu_devprop_device_header): Likewise.
24882 (grub_xnu_devprop_device_descriptor): Likewise.
24883 (grub_xnu_devprop_add_device): New prototype.
24884 (grub_xnu_devprop_remove_device): Likewise.
24885 (grub_xnu_devprop_remove_property): Likewise.
24886 (grub_xnu_devprop_add_property_utf8): Likewise.
24887 (grub_xnu_devprop_add_property_utf16): Likewise.
24888 (grub_cpu_xnu_init): Likewise.
24889 (grub_cpu_xnu_fini): Likewise.
24890 (grub_cpu_xnu_unload): Likewise.
24891 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
24892 (property_descriptor): Likewise.
24893 (devices): New variable.
24894 (grub_xnu_devprop_remove_property): New function.
24895 (grub_xnu_devprop_add_device): Likewise.
24896 (grub_xnu_devprop_remove_device): Likewise.
24897 (grub_xnu_devprop_add_property): Likewise.
24898 (grub_xnu_devprop_add_property_utf8): Likewise.
24899 (grub_xnu_devprop_add_property_utf16): Likewise.
24900 (hextoval): Likewise.
24901 (grub_cpu_xnu_fill_devprop): Likewise.
24902 (grub_cmd_devprop_load): Likewise.
24903 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
24904 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
24905 (cmd_devprop_load): New variable.
24906 (grub_cpu_xnu_init): New function.
24907 (grub_cpu_xnu_fini): Likewise.
24908 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
24909 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
24910 (grub_cmd_xnu_devtree): Likewise.
24911 (hextoval): New function.
24912 (unescape): Likewise.
24913 (grub_xnu_fill_devicetree): Likewise.
24914
24915 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
24916 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
24917
24918 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24919
24920 Workaround for broken ATI VBE.
24921
24922 * video/i386/pc/vbe.c (last_set_mode): New variable.
24923 (grub_vbe_set_video_mode): Set 'last_set_mode'.
24924 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
24925 (grub_video_vbe_setup): Don't check for reserved flag.
24926
24927 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
24928
24929 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
24930 the `find' command.
24931
24932 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 UUID support for HFS.
24935
24936 * fs/hfs.c (grub_hfs_uuid): New function.
24937 (grub_hfs_fs): New value .uuid.
24938 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
24939
24940 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
24941
24942 Fix a segfault with parsing unknown long options.
24943
24944 * util/grub-mkrelpath.c (options): Zero terminate it.
24945
24946 2009-12-13 Carles Pina i Estany <carles@pina.cat>
24947
24948 * include/grub/misc.h (grub_puts): New declaration.
24949 (grub_puts_): Likewise.
24950 * kern/misc.c (grub_puts): New definition.
24951 (grub_puts_): Likewise.
24952
24953 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
24954
24955 * util/grub-probe.c (probe): Improve error message.
24956
24957 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
24958
24959 * loader/i386/multiboot_elfxx.c
24960 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
24961 initialization.
24962
24963 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
24964
24965 Relocator framework
24966
24967 * loader/i386/xnu_helper.S: Removed. All users updated.
24968 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
24969 (relocator_mod_SOURCES): New variable.
24970 (relocator_mod_CFLAGS): Likewise.
24971 (relocator_mod_LDFLAGS): Likewise.
24972 (relocator_mod_ASFLAGS): Likewise.
24973 * conf/x86_64.rmk: Likewise.
24974 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
24975 (grub_multiboot_payload_entry_offset): Likewise.
24976 (grub_multiboot_forward_relocator): Likewise.
24977 (grub_multiboot_forward_relocator_end): Likewise.
24978 (grub_multiboot_backward_relocator): Likewise.
24979 (grub_multiboot_backward_relocator_end): Likewise.
24980 (grub_multiboot_payload_eip): New variable.
24981 (grub_multiboot_payload_orig): Likewise.
24982 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
24983 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
24984 * include/grub/i386/memory.h
24985 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
24986 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
24987 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
24988 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
24989 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
24990 * include/grub/i386/relocator.h: New file.
24991 * include/grub/x86_64/relocator.h: Likewise.
24992 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
24993 (XNU_RELOCATOR): New macro.
24994 (grub_xnu_launcher_start): Remove.
24995 (grub_xnu_launcher_end): Likewise.
24996 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
24997 (grub_xnu_heap_real_start): Remove.
24998 (grub_xnu_heap_start): Change to void *. All users updated.
24999 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25000 * lib/i386/relocator.c: New file.
25001 * lib/i386/relocator_asm.S: Likewise.
25002 * lib/i386/relocator_backward.S: Likewise.
25003 * lib/mips/relocator.c: Likewise.
25004 * lib/mips/relocator_asm.S: Likewise.
25005 * lib/relocator.c: Likewise.
25006 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25007 (entry): Removed.
25008 (playground): Likewise.
25009 (grub_multiboot_payload_orig): New variable.
25010 (grub_multiboot_payload_dest): Likewise.
25011 (grub_multiboot_payload_size): Likewise.
25012 (grub_multiboot_payload_eip): Likewise.
25013 (grub_multiboot_payload_esp): Likewise.
25014 (grub_multiboot_boot): Use grub_relocator32_boot.
25015 (grub_multiboot_unload): Free relocators.
25016 (grub_multiboot): Setup stack. Use relocators.
25017 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25018 (grub_multiboot_load_elfXX): Use relocators.
25019 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25020 (grub_multiboot_payload_size): Likewise.
25021 (grub_multiboot_payload_dest): Likewise.
25022 (grub_multiboot_payload_entry_offset): Likewise.
25023 (grub_multiboot_forward_relocator): Likewise.
25024 (grub_multiboot_backward_relocator): Likewise.
25025 (grub_multiboot_real_boot): Likewise.
25026 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25027 (grub_xnu_entry_point): Likewise.
25028 (grub_xnu_arg1): Likewise.
25029 (grub_xnu_stack): Likewise.
25030 (grub_xnu_launch): Removed.
25031 (grub_xnu_boot_resume): New function.
25032 (grub_xnu_boot): Use relocators.
25033 * loader/i386/xnu_helper.S: Removed.
25034 * loader/xnu.c (grub_xnu_heap_start): New variable.
25035 (grub_xnu_heap_size): Likewise.
25036 (grub_xnu_heap_malloc): Use relocators.
25037 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25038
25039 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25040
25041 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25042 anything.
25043
25044 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25045
25046 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25047 GRUB_ERR_NONE before calling grub_env_set.
25048
25049 2009-12-12 Robert Millan <rmh@aybabtu.com>
25050
25051 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25052 * genmk.rb (video): New variable.
25053 (CLEANFILES, VIDEOFILES): Add #{video}.
25054 (#{video}): New target rule.
25055 * genvideolist.sh: New file.
25056 * Makefile.in (pkglib_DATA): Add video.lst.
25057 (video.lst): New target rule.
25058 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25059 `video.lst'.
25060 * util/grub.d/30_os-prober.in: Replace `vbe' with
25061 ${GRUB_VIDEO_BACKEND}.
25062
25063 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25064
25065 * THANKS: Add David Miller.
25066
25067 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25068
25069 libpciaccess support.
25070
25071 * Makefile.in (LIBPCIACCESS): New variable.
25072 (enable_grub_emu_pci): Likewise.
25073 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25074 util/pci.c and commands/lspci.c.
25075 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25076 * configure.ac (grub-emu-pci): New option.
25077 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25078 (grub_pci_device_unmap_range): Likewise.
25079 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25080 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25081 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25082 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25083 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25084 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25085 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25086 * include/grub/pciutils.h: New file.
25087 * util/pci.c: Likewise.
25088
25089 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25090
25091 * util/misc.c: Don't include <errno.h> twice.
25092
25093 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25094
25095 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25096 name in an error message.
25097 (grub_biosdisk_rw): Likewise.
25098
25099 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25100
25101 Eliminate NTFS 4Gib barrier.
25102
25103 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25104 (read_run_data): Likewise.
25105 (grub_ntfs_read_run_list): Likewise.
25106 (grub_ntfs_read_block): Likewise.
25107 (grub_ntfs_iterate_dir): Likewise.
25108 (read_mft): Likewise.
25109 (read_data): Likewise.
25110 Use COM_LOG_LEN.
25111 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25112 to avoid 64-bit division
25113 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25114 (grub_ntfs_rlst): Use grub_disk_addr_t.
25115
25116 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25117
25118 Eliminate grub-fstest 4Gib barrier.
25119
25120 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25121 (read_file): Fix error reporting.
25122
25123 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25124
25125 Eliminate hexdump 4Gib barrier.
25126
25127 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25128 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25129
25130 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25131
25132 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25133 Fixes amarsh bug.
25134
25135 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25136
25137 Remove miscellaneous files in distclean target.
25138
25139 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25140
25141 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25142
25143 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25144 if they're already set. This resolves the conflict between my
25145 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25146 fixing the --grub-probe option again.
25147 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25148 change on 2009-10-06, so that we now once again source
25149 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25150
25151 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25152
25153 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25154 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25155 `util/devicemap.c'.
25156
25157 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25158
25159 * include/grub/misc.h (grub_printf_): New declaration.
25160 * kern/misc.c (grub_printf_): New definition.
25161 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25162 instead of `grub_printf' and `_'.
25163 * normal/menu_entry.c (store_completion): Likewise.
25164 (run): Likewise.
25165 (grub_menu_entry_run): Likewise.
25166 * normal/menu_text.c (grub_wait_after_message): Likewise.
25167 (notify_booting): Likewise.
25168 (notify_fallback): Likewise.
25169 (notify_execution_failure): Likewise.
25170
25171 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25172
25173 * configure.ac: Check for vasprintf.
25174 * util/misc.c (asprintf): Move allocation from here ...
25175 (vasprintf): ... to here. New function.
25176 (xasprintf): New function.
25177 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25178 prototypes.
25179 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25180 * util/grub-mkfont.c (write_font): Likewise.
25181 * util/grub-probe.c (probe): Likewise.
25182 * util/hostdisk.c (make_device_name): Likewise.
25183
25184 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25185
25186 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25187 anything even prefixed with 'cdrom' as a cdrom.
25188
25189 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25190
25191 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25192 mount points.
25193
25194 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25195
25196 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25197 grub_gettext_msg_list.
25198 (grub_gettext_gettranslation_from_position): Return const char *
25199 and not char *.
25200 (grub_gettext_translate): Add the translated strings into a list,
25201 returns from the list if existing there.
25202 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25203 (grub_gettext_delete_list): Delete the list.
25204 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25205 lang environment variable is changed.
25206 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25207
25208 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25209
25210 Rename kernel.mod to kernel.img.
25211
25212 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25213 (kernel_mod_EXPORTS): Rename to ...
25214 (kernel_img_EXPORTS): ... this.
25215 (kernel_mod_SOURCES): Rename to ...
25216 (kernel_img_SOURCES): ... this.
25217 (kernel_mod_HEADERS): Rename to ...
25218 (kernel_img_HEADERS): ... this. All users updated.
25219 (kernel_mod_CFLAGS): Rename to ...
25220 (kernel_img_CFLAGS): ... this.
25221 (kernel_mod_ASFLAGS): Rename to ...
25222 (kernel_img_ASFLAGS): ... this.
25223 (kernel_mod_LDFLAGS): Rename to ...
25224 (kernel_img_LDFLAGS): ... this.
25225 * conf/x86_64-efi.rmk: Likewise.
25226 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25227 (read_kernel_image): ... this. All users updated.
25228 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25229
25230 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25231
25232 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25233 (print_spaces): New function.
25234 (grub_print_ucs4): New function.
25235 (getstringwidth): New function.
25236 (print_message_indented): New function.
25237 (print_message): Gettexttize strings using print_message_indented.
25238 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25239 width.
25240 (get_entry_number): Gettextize and uses dynamic terminal width.
25241 (notify_booting, notify_fallback, notify_execution_failure):
25242 Gettextize.
25243 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25244 string.
25245 (run): Likewise.
25246 (grub_menu_entry_run): Likewise.
25247 * PO/POTFILES: Add normal/menu_entry.c.
25248
25249 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25250
25251 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25252
25253 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25254
25255 * util/grub-install.in: Install gettext .mo files.
25256 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25257
25258 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25259
25260 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25261 grub_dprintf.
25262
25263 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25264
25265 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
25266 non-firmware-dependant one in realmode.S takes precedence.
25267
25268 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
25269
25270 * commands/halt.c: Replace misc arch-specific headers with
25271 `<grub/misc.h>'.
25272 * commands/reboot.c: Likewise.
25273 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
25274 `<grub/misc.h>'.
25275 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
25276 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
25277 (kernel_img_SOURCES): ... to here.
25278
25279 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
25280 * include/grub/i386/pc/init.h: Likewise.
25281 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25282 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25283
25284 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
25285
25286 * include/grub/i386/halt.h: Remove.
25287 * include/grub/i386/reboot.h: Likewise.
25288
25289 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
25290
25291 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
25292
25293 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
25294 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
25295 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
25296 "progname.h"
25297 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25298 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25299 (usage): Add missing comma in printf.
25300
25301 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
25302
25303 Use the same reboot approach on i386 coreboot and qemu as we do on
25304 BIOS.
25305
25306 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
25307 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
25308 * kern/i386/reboot.c: Remove.
25309 * include/grub/i386/reboot.h (grub_reboot): Export function.
25310 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
25311 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
25312 0xf000:0xfff0 instead of 0xffff:0x0000.
25313 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
25314 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
25315
25316 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
25317
25318 Fix $srcdir != $objdir build.
25319
25320 * Makefile.in (po/%.po): Rewrite as ...
25321 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
25322
25323 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
25324
25325 Fix GNU/Hurd grub-install crash.
25326 * util/grub-probe.c (probe): Try to access `path' only when it is not
25327 NULL.
25328
25329 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25330
25331 Correct module naming.
25332
25333 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25334 (GRUB_MOD_INIT(efi_uga)): ... to this
25335 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25336 (GRUB_MOD_FINI(efi_uga)): ... to this
25337 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25338 (GRUB_MOD_INIT(efi_gop)): ... to this
25339 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25340 (GRUB_MOD_FINI(efi_gop)): ... to this
25341
25342 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
25343
25344 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
25345 translatable.
25346 (usage): Translate `arg' strings using gettext().
25347 Thanks to Jordi Mallach for the suggestion.
25348
25349 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25350
25351 GOP support. Based on patch from Bean
25352 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25353
25354 * video/efi_gop.c: New file.
25355 * include/grub/efi/graphics_output.h: Likewise.
25356 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
25357 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25358 variables.
25359 * conf/x86_64-efi.rmk: Likewise.
25360
25361 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25362
25363 Rename efi_fb to efi_uga.
25364
25365 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25366 'efi_uga.mod'.
25367 (efi_fb_mod_SOURCES): Rename this ...
25368 (efi_uga_mod_SOURCES): ... to this.
25369 (efi_fb_mod_CFLAGS): Rename this ...
25370 (efi_uga_mod_CFLAGS): ... to this.
25371 (efi_fb_mod_LDFLAGS): Rename this ...
25372 (efi_uga_mod_LDFLAGS): ... to this.
25373 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25374 'efi_uga.mod'.
25375 (efi_fb_mod_SOURCES): Rename this ...
25376 (efi_uga_mod_SOURCES): ... to this.
25377 (efi_fb_mod_CFLAGS): Rename this ...
25378 (efi_uga_mod_CFLAGS): ... to this.
25379 (efi_fb_mod_LDFLAGS): Rename this ...
25380 (efi_uga_mod_LDFLAGS): ... to this.
25381 * video/efi_fb.c: Move this ...
25382 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
25383
25384 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25385
25386 * po/README: New file. Explain our PO file workflow.
25387
25388 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25389
25390 * po/ChangeLog: Remove. Move relevant entries back to ...
25391 * ChangeLog: ... here.
25392 * po/ca.po: Remove (now handled by TLP).
25393 * po/id.po: Likewise.
25394 * po/zh_CN.po: Likewise.
25395 * Makefile.in (LINGUAS): Initialize in a way that supports
25396 empty set.
25397
25398 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25399
25400 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
25401 reliing on po/LINGUAS.
25402 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
25403 (po/%.po): ... this.
25404
25405 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25406
25407 * util/i386/efi/grub-mkimage.c: Include "progname.h".
25408 (main): Use `program_name' instead of nonexistent `progname'.
25409
25410 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25411
25412 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25413 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
25414
25415 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25416
25417 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
25418 commit.
25419 * conf/i386-efi.rmk: Likewise.
25420 * conf/i386-ieee1275.rmk: Likewise.
25421 * conf/powerpc-ieee1275.rmk: Likewise.
25422 * conf/sparc64-ieee1275.rmk: Likewise.
25423 * conf/x86_64-efi.rmk: Likewise.
25424
25425 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25426
25427 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
25428
25429 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25430
25431 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
25432
25433 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25434
25435 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
25436 (grub_mkdevicemap_SOURCES): New variable.
25437 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
25438 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
25439 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
25440 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
25441 (grub_mkdevicemap_SOURCES): Remove.
25442 * conf/i386-efi.rmk: Likewise.
25443 * conf/i386-ieee1275.rmk: Likewise.
25444 * conf/i386-pc.rmk: Likewise.
25445 * conf/powerpc-ieee1275.rmk: Likewise.
25446 * conf/sparc64-ieee1275.rmk: Likewise.
25447 * conf/x86_64-efi.rmk: Likewise.
25448 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
25449 (usage): Fix strings to use `program_name'.
25450 (main): Initialize gettext.
25451 * util/grub-editenv.c: Likewise.
25452 * util/grub-emu.c: Likewise.
25453 * util/grub-fstest.c: Likewise.
25454 * util/grub-mkdevicemap.c: Likewise.
25455 * util/grub-mkfont.c: Likewise.
25456 * util/grub-mkrelpath.c: Likewise.
25457 * util/grub-pe2elf.c: Likewise.
25458 * util/grub-probe.c: Likewise.
25459 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25460 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25461 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25462
25463 * util/misc.c: Include `"progname.h"'.
25464 (progname): Remove variable.
25465 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
25466
25467 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25468
25469 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
25470 printf and print a newline after the menuentry header line.
25471 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25472
25473 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25474
25475 autoconf >= 2.60 support $(localedir).
25476
25477 * INSTALL: Note that autoconf 2.60 is required.
25478 * configure.ac (AC_PREREQ): Bump to 2.60.
25479 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
25480 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25481
25482 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
25483
25484 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
25485 aclocal is run.
25486
25487 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25488
25489 * normal/main.c (grub_normal_read_line): Fix off-by-one
25490 buffer overflow.
25491
25492 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25493
25494 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
25495 "parser.grub" in grub_command_execute() call.
25496
25497 2009-11-24 Carles Pina i Estany <carles@pina.cat>
25498
25499 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
25500 * conf/i386-efi.rmk: Likewise.
25501 * conf/i386-ieee1275.rmk: Likewise.
25502 * conf/i386-pc.rmk: Likewise.
25503 * conf/powerpc-ieee1275.rmk: Likewise.
25504 * conf/sparc64-ieee1275.rmk: Likewise.
25505 * conf/x86_64-efi.rmk: Likewise.
25506 * gettext/gettex.c: Include <grub/i18n.h>.
25507 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
25508 here ...
25509 * include/grub/i18n.h: ... to here
25510 * include/grub/i18n.h: ... to here.
25511 * kern/misc.c: Include <grub/i18n.h>
25512 (grub_gettext_dummy): Move above user.
25513
25514 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25515
25516 * util/Makefile.in (install-local): Convert a `for' into a normal
25517 shell expansion.
25518
25519 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
25520
25521 * autogen.sh: Add automake call.
25522 * config.guess: Remove.
25523 * config.sub: Likewise.
25524 * install-sh: Likewise.
25525
25526 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25527
25528 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
25529
25530 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25531
25532 * util/Makefile.in (install-local): Convert a make `$(foreach)'
25533 function to a normal shell `for'.
25534
25535 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25536
25537 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25538
25539 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25540
25541 * util/grub-mkrelpath.c: New file.
25542 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
25543 (grub_mkrelpath_SOURCES): New variable.
25544 * include/grub/util/misc.h: New function prototype.
25545 * util/misc.c (make_system_path_relative_to_its_root): New function.
25546
25547 * util/grub-mkconfig_lib.in (bindir): New variable.
25548 (grub_mkrelpath): Likewise.
25549 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
25550
25551 * util/probe.c (probe): Make the file path relative to its root.
25552 Change a info message to use the GRUB path. Enable again the
25553 check if we can read the file with GRUB facilities.
25554
25555 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
25556 to its root.
25557
25558 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25559
25560 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
25561 platform.
25562
25563 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25564
25565 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
25566 strncmp().
25567
25568 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25569
25570 * util/getroot.c (grub_util_is_dmraid): New function.
25571 (grub_util_get_dev_abstraction): Treat dmraid and multipath
25572 devices as normal ones, not as LVM.
25573
25574 2009-11-23 Carles Pina i Estany <carles@pina.cat>
25575
25576 * conf/common.rmk: Add grub-gettext_lib target and updates
25577 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
25578 LDFLAGS.
25579 * gettext/gettext.c: New file. (Reads mo files).
25580 * include/grub/file.h (grub_file_pread): New prototype.
25581 * include/grub/i18n.h (_): New prototype.
25582 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
25583 prototypes.
25584 * kern/misc.c (grub_gettext_dummy): New function.
25585 * normal/menu_text.c: Include <grub/i18n.h>.
25586 * normal/menu_text.c (print_timeout): Gettexttize string.
25587 * normal/menu_text.c (print_message): Gettexttize string.
25588 * po/POTFILES: Add `normal/menu_text.c'.
25589 * po/ca.po: Add new translations.
25590 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
25591 gettext module and defines locale_dir and lang in grub.cfg.
25592 * NEWS: Add gettext support.
25593
25594 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25595
25596 * util/hostdisk.c: Include `<grub/i18n.h>'.
25597 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
25598 (make_device_name): Rewrite using asprintf.
25599 (convert_system_partition_to_system_disk): Replace 0 with NULL.
25600 (find_system_device): If a device is not found, generate one just
25601 by reusing the OS path name.
25602 (read_device_map): Make it permissible for device.map not to exist.
25603
25604 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25605
25606 * script/sh/execute.c: Move from here ...
25607 * script/execute.c: ... to here. Update all users.
25608 * script/sh/function.c: Move from here ...
25609 * script/function.c: ... to here. Update all users.
25610 * script/sh/lexer.c: Move from here ...
25611 * script/lexer.c: ... to here. Update all users.
25612 * script/sh/main.c: Move from here ...
25613 * script/main.c: ... to here. Update all users.
25614 * script/sh/parser.y: Move from here ...
25615 * script/parser.y: ... to here. Update all users.
25616 * script/sh/script.c: Move from here ...
25617 * script/script.c: ... to here. Update all users.
25618
25619 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25620
25621 * configure.ac: Detect all `emu' platforms. Define
25622 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
25623 --enable-grub-emu logic. Disable include/grub/machine
25624 symlink on `emu' platforms.
25625
25626 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
25627 * gensymlist.sh.in: Likewise.
25628
25629 * include/grub/i386/coreboot/machine.h: Remove file.
25630 * include/grub/i386/efi/machine.h: Likewise.
25631 * include/grub/i386/ieee1275/machine.h: Likewise.
25632 * include/grub/i386/pc/machine.h: Likewise.
25633 * include/grub/i386/qemu/machine.h: Likewise.
25634 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25635 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25636 * include/grub/x86_64/efi/machine.h: Likewise.
25637
25638 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
25639 * commands/halt.c: Likewise.
25640 * commands/reboot.c: Likewise.
25641 * include/grub/autoefi.h: Likewise.
25642 * include/grub/i386/at_keyboard.h: Likewise.
25643 * include/grub/i386/kernel.h: Likewise.
25644 * include/grub/i386/loader.h: Likewise.
25645 * include/grub/i386/pc/memory.h: Likewise.
25646 * kern/dl.c: Likewise.
25647 * kern/i386/coreboot/init.c: Likewise.
25648 * loader/i386/bsd.c: Likewise.
25649 * loader/i386/linux.c: Likewise.
25650 * loader/multiboot_loader.c: Likewise.
25651 * term/i386/pc/serial.c: Likewise.
25652 * term/usb_keyboard.c: Likewise.
25653
25654 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
25655 `<grub/machine/machine.h>'
25656 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
25657 * util/misc.c: Remove `<grub/machine/machine.h>' and
25658 `<grub/machine/time.h>'.
25659
25660 * Makefile.in (enable_grub_emu): Remove variable.
25661 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
25662
25663 * conf/any-emu.rmk: New file.
25664 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
25665 (grub_emu_init.c): Move from here ...
25666 * conf/any-emu.rmk: ... to here.
25667
25668 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
25669 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
25670 * conf/any-emu.rmk: ... to here.
25671
25672 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25673
25674 * include/grub/parser.h (grub_parser_register): Document need
25675 of `name' parameter.
25676 * normal/main.c (grub_normal_read_line): Simplify prompt string.
25677 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
25678 "sh" to "grub".
25679
25680 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25681
25682 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
25683 `$(XGETTEXT)'.
25684 * include/grub/i18n.h (N_): New macro.
25685 * util/mkisofs/mkisofs.h: Likewise.
25686 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
25687 around N_().
25688 (usage): Use gettext() to translate help strings when printing them.
25689
25690 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25691
25692 Based on patch from Bean
25693 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25694
25695 * video/efi_fb.c: New file.
25696 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
25697 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25698 variables.
25699 * conf/x86_64-efi.rmk: Likewise.
25700
25701 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
25702
25703 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
25704 * util/i386/pc/grub-setup.c: Likewise.
25705
25706 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25707
25708 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
25709 <hurd/fs.h>
25710 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
25711 file_get_storage_info to implement grub_guess_root_device.
25712
25713 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25714
25715 * Makefile.in (target): Use make's builtin $(shell) function
25716 instead of calling directly $(SHELL) to create the locale directories,
25717 inside the $(foreach) function.
25718
25719 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25720
25721 * util/grub-mkrescue.in: Print an error and usage if output option
25722 has not been given.
25723
25724 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25725
25726 Patch from Loïc Minier <loic.minier@ubuntu.com>.
25727 * util/grub.d/30_os-prober.in: Cope with Linux entries where
25728 root and /boot are on different devices.
25729
25730 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25731
25732 Fix build for srcdir != objdir.
25733
25734 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
25735 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
25736 $(srcdir).
25737 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
25738 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
25739 reference for input.
25740
25741 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25742
25743 * util/grub-mkrescue.in: Use source directory direcly (without copiing
25744 or hardlinking it). Remove -J option, Joliet is not compatible with
25745 multiple source directories.
25746
25747 2009-11-21 Carles Pina i Estany <carles@pina.cat>
25748 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25749
25750 * util/grub-mkrescue.in: Recognize `--override-directory' option.
25751 (process_input_dir): New function. Process an arbitrary input
25752 directory.
25753 Misc adjustments to support both "override mode" and system-wide mode.
25754
25755 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
25756
25757 * configure.ac (UNIFONT_BDF): Rename to ...
25758 (FONT_SOURCE): ... this. Update all users.
25759
25760 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
25761
25762 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
25763 to the list of unifont files to look for.
25764
25765 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25766
25767 Patch from Joe Auricchio <jauricchio@gmail.com>
25768 * commands/minicmd.c (grub_mini_cmd_clear): New function.
25769 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
25770 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
25771
25772 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
25773
25774 * Makefile.in (install-local): Add a missing backslash.
25775
25776 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
25777
25778 * include/grub/x86_64/io.h: New file.
25779
25780 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25781
25782 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
25783 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
25784 Include `"progname.h"'.
25785 (main): Initialize gettext.
25786 * util/i386/pc/grub-setup.c: Gettexttize.
25787 * util/i386/pc/grub-mkimage.c: Likewise.
25788
25789 * Makefile.in (po/*.po): Redefine as ...
25790 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
25791
25792 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
25793
25794 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25795
25796 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
25797 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
25798 (program_name): Remove.
25799 (main): Initialize gettext support.
25800 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
25801 Include `<libintl.h>'.
25802 (_): New macro.
25803
25804 * util/mkisofs/eltorito.c: Gettexttize.
25805 * util/mkisofs/joliet.c: Likewise.
25806 * util/mkisofs/mkisofs.c: Likewise.
25807 * util/mkisofs/multi.c: Likewise.
25808 * util/mkisofs/rock.c: Likewise.
25809 * util/mkisofs/tree.c: Likewise.
25810 * util/mkisofs/write.c: Likewise.
25811
25812 * po/POTFILES: Update with new files.
25813
25814 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25815
25816 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
25817 * util/mkisofs/iso9660.h: Likewise.
25818 * util/mkisofs/joliet.c: Likewise.
25819 * util/mkisofs/mkisofs.c: Likewise.
25820 * util/mkisofs/mkisofs.h: Likewise.
25821 * util/mkisofs/rock.c: Likewise.
25822 * util/mkisofs/tree.c: Likewise.
25823 * util/mkisofs/write.c: Likewise.
25824
25825 * util/mkisofs/eltorito.c (rcsid): Remove.
25826 * util/mkisofs/hash.c: Likewise.
25827 * util/mkisofs/joliet.c: Likewise.
25828 * util/mkisofs/name.c: Likewise.
25829 * util/mkisofs/rock.c: Likewise.
25830 * util/mkisofs/tree.c: Likewise.
25831 * util/mkisofs/write.c: Likewise.
25832
25833 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25834
25835 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
25836 instead of static allocation.
25837 * util/mkisofs/match.h: Likewise.
25838
25839 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25840
25841 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
25842 and `util/grub.d/10_linux.in'.
25843 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
25844 translatable Shell files.
25845
25846 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25847
25848 * Makefile.in ($(srcdir)/aclocal.m4): New target.
25849
25850 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25851
25852 * INSTALL: Document Automake is needed for bootstrap.
25853 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
25854 * util/grub.d/10_kfreebsd.in (bindir): New variable.
25855 Add gettext initialization.
25856 (kfreebsd_entry): Make menuentry output translatable.
25857
25858 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25859
25860 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
25861 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
25862 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
25863 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
25864 (LINGUAS): Auto-generate using `po/LINGUAS'.
25865 * po/LINGUAS: New file.
25866
25867 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25868
25869 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
25870 other things).
25871 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
25872 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
25873 bindtextdomain() calls for gettext initialization.
25874
25875 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25876
25877 * gnulib/progname.c: New file (imported from Gnulib).
25878 * gnulib/progname.h: Likewise.
25879 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25880 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
25881 (usage): Replace `progname' with `program_name'.
25882 (main): Use set_program_name() for program name initialization.
25883
25884 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25885
25886 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
25887 from here ...
25888 * Makefile.in (CPPFLAGS): ... to here.
25889
25890 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25891
25892 * aclocal.m4: Move from here ...
25893 * acinclude.m4: ... to here.
25894 * autogen.sh: Add call to `aclocal'.
25895 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
25896
25897 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25898
25899 * Makefile.in (CLEANFILES): Add `po/*.mo'.
25900 (LINGUAS): New variable.
25901 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
25902 (install-local): Install MO files.
25903 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
25904 * include/grub/i18n.h: New file.
25905 * po/POTFILES: New file.
25906 * po/ca.po: New file.
25907 * util/grub.d/10_linux.in (bindir): New variable.
25908 Add gettext initialization.
25909 (linux_entry): Make menuentry output translatable.
25910 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
25911 (usage): Make --help output translatable.
25912 (main): Initialize gettext.
25913
25914 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25915
25916 * import_gcry.py: New file (written by Vladimir with minor
25917 adjustments).
25918 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
25919 ciphers.
25920 * INSTALL: Document that Python is required for bootstrap.
25921
25922 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25923
25924 Import ciphers from libgcrypt 1.4.4.
25925
25926 * lib/libgcrypt/cipher/ChangeLog
25927 * lib/libgcrypt/cipher/ac.c
25928 * lib/libgcrypt/cipher/arcfour.c
25929 * lib/libgcrypt/cipher/bithelp.h
25930 * lib/libgcrypt/cipher/blowfish.c
25931 * lib/libgcrypt/cipher/camellia-glue.c
25932 * lib/libgcrypt/cipher/camellia.c
25933 * lib/libgcrypt/cipher/camellia.h
25934 * lib/libgcrypt/cipher/cast5.c
25935 * lib/libgcrypt/cipher/cipher.c
25936 * lib/libgcrypt/cipher/crc.c
25937 * lib/libgcrypt/cipher/des.c
25938 * lib/libgcrypt/cipher/dsa.c
25939 * lib/libgcrypt/cipher/ecc.c
25940 * lib/libgcrypt/cipher/elgamal.c
25941 * lib/libgcrypt/cipher/hash-common.c
25942 * lib/libgcrypt/cipher/hash-common.h
25943 * lib/libgcrypt/cipher/hmac-tests.c
25944 * lib/libgcrypt/cipher/md.c
25945 * lib/libgcrypt/cipher/md4.c
25946 * lib/libgcrypt/cipher/md5.c
25947 * lib/libgcrypt/cipher/primegen.c
25948 * lib/libgcrypt/cipher/pubkey.c
25949 * lib/libgcrypt/cipher/rfc2268.c
25950 * lib/libgcrypt/cipher/rijndael-tables.h
25951 * lib/libgcrypt/cipher/rijndael.c
25952 * lib/libgcrypt/cipher/rmd.h
25953 * lib/libgcrypt/cipher/rmd160.c
25954 * lib/libgcrypt/cipher/rsa.c
25955 * lib/libgcrypt/cipher/seed.c
25956 * lib/libgcrypt/cipher/serpent.c
25957 * lib/libgcrypt/cipher/sha1.c
25958 * lib/libgcrypt/cipher/sha256.c
25959 * lib/libgcrypt/cipher/sha512.c
25960 * lib/libgcrypt/cipher/tiger.c
25961 * lib/libgcrypt/cipher/twofish.c
25962 * lib/libgcrypt/cipher/whirlpool.c
25963
25964 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25965
25966 Fix build for systems without error().
25967
25968 * gnulib/error.c: New file (imported from Gnulib).
25969 * gnulib/error.h: Likewise.
25970 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
25971 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
25972 (this variable is now used by error()).
25973
25974 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
25975
25976 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
25977 instead of relying that char is signed.
25978
25979 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
25980
25981 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
25982 blocksize different from specified.
25983 (grub_pxefs_read): Likewise.
25984
25985 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
25986
25987 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
25988
25989 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
25990 (grub_ata_readwrite): Likewise. Update 2 format strings.
25991 (grub_atapi_read): Likewise.
25992
25993 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
25994 * conf/i386.rmk (pkglib_MODULES): ... to here ...
25995 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
25996 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
25997 (ata_mod_LDFLAGS): Move from here ...
25998 * conf/i386.rmk: ... to here ...
25999 * conf/x86_64-efi.rmk: ... and here.
26000 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26001 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26002
26003 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26004
26005 Relicense multiboot.h, with RMS' blessing.
26006
26007 * include/multiboot.h: Change to X11 license.
26008
26009 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26010
26011 Support --version in grub-mkisofs.
26012
26013 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26014 (OPTION_VERSION): New macro.
26015 (ld_options): Recognize --version.
26016 (usage): Move `program_name' from here ...
26017 (program_name): ... to here. Add `static' qualifier.
26018 (main): Recognize `OPTION_VERSION'.
26019
26020 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26021
26022 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26023 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26024
26025 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26026
26027 Fix help2man generation for mkisofs.
26028
26029 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26030 (usage): Send output to stdout (rather than stderr).
26031
26032 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26033
26034 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26035 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26036 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26037 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26038 (bin_SCRIPTS): Add `grub-mkfloppy'.
26039 (grub_mkfloppy_SOURCES): New variable.
26040
26041 * util/grub-mkrescue.in: New file.
26042 * util/i386/pc/grub-mkfloppy.in: New file.
26043
26044 * util/i386/coreboot/grub-mkrescue.in: Remove.
26045 * util/i386/pc/grub-mkrescue.in: Remove.
26046
26047 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26048
26049 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26050 from here ...
26051 * include/multiboot.h (struct multiboot_header): ... to here. Update
26052 all users.
26053 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26054 from here ...
26055 * include/multiboot.h (struct multiboot_info): ... to here. Update
26056 all users.
26057 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26058 from here ...
26059 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26060 Update all users.
26061 * include/grub/multiboot.h (struct grub_mod_list): Move
26062 from here ...
26063 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26064 Update all users.
26065
26066 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26067
26068 * include/multiboot2.h (multiboot_word): Rename from this ...
26069 (multiboot2_word): ... to this. Update all users.
26070 (multiboot_header): Rename from this ...
26071 (multiboot2_header): ... to this. Update all users.
26072 (multiboot_tag_header): Rename from this ...
26073 (multiboot2_tag_header): ... to this. Update all users.
26074 (multiboot_tag_start): Rename from this ...
26075 (multiboot2_tag_start): ... to this. Update all users.
26076 (multiboot_tag_name): Rename from this ...
26077 (multiboot2_tag_name): ... to this. Update all users.
26078 (multiboot_tag_module): Rename from this ...
26079 (multiboot2_tag_module): ... to this. Update all users.
26080 (multiboot_tag_memory): Rename from this ...
26081 (multiboot2_tag_memory): ... to this. Update all users.
26082 (multiboot_tag_unused): Rename from this ...
26083 (multiboot2_tag_unused): ... to this. Update all users.
26084 (multiboot_tag_end): Rename from this ...
26085 (multiboot2_tag_end): ... to this. Update all users.
26086
26087 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26088
26089 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26090 this platform we should support Multiboot1 first.
26091
26092 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26093 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26094 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26095
26096 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26097
26098 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26099 of write calls (converting them to fwrite() if they aren't already).
26100 (get_torito_desc): Likewise.
26101 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26102
26103 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26104
26105 * util/i386/pc/grub-install.in: Move from here ...
26106 * util/grub-install.in: ... to here. Update all users.
26107
26108 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26109
26110 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26111
26112 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26113
26114 Support for El Torito without floppy emulation.
26115
26116 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26117 (init_boot_catalog): Improve error handling.
26118 (get_torito_desc): Don't use floppy emulation unless requested by
26119 user. Patch boot information table when requested via
26120 `-boot-info-table'.
26121 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26122 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26123 (use_boot_info_table): New variables.
26124 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26125 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26126 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26127 `--eltorito-emul-floppy'.
26128 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26129 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26130 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26131 (use_boot_info_table, get_731): New prototypes.
26132 * util/mkisofs/write.c (get_731): New function.
26133
26134 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26135
26136 Fix the generation of the man page.
26137
26138 * util/pc/i386/grub-install.in: Source
26139 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26140
26141 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26142
26143 Large file support for grub-mkisofs.
26144
26145 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26146 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26147 (session_start): Upgrade type to `uint64_t'. Update all users.
26148 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26149 (struct directory_entry): Upgrade type of `starting_block' and
26150 `size' to `uint64_t'. Update all users.
26151 (struct deferred): Remove unused structure.
26152 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26153 Update all users.
26154 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26155 file is larger than `UINT32_MAX'.
26156 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26157 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26158 return value.
26159 (struct deferred_write): Upgrade type of `extent' and `size' to
26160 `uint64_t'. Update all users.
26161 (last_extent_written): Upgrade type to `uint64_t'. Update all
26162 users.
26163 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26164 Update all users. Upgrade type of `remain' to `int64_t' and
26165 `use' to `size_t'. Use error() to handle fread() errors.
26166 (write_files): Rely on write_one_file() rather than calling
26167 xfwrite() directly.
26168
26169 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26170
26171 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26172
26173 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26174
26175 * util/mkisofs/fnmatch.c: Remove.
26176 * util/mkisofs/getopt1.c: Likewise.
26177 * util/mkisofs/getopt.c: Likewise.
26178 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26179 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26180 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26181 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26182 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26183
26184 * configure.ac: Detect `mingw32msvc' host_os.
26185 Check for lstat(), getuid() and getgid().
26186
26187 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26188 instances of `u_char' with `uint8_t'.
26189
26190 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26191 [!HAVE_GETUID] (getuid): New function (stub).
26192 [!HAVE_GETGID] (getgid): Likewise.
26193 [!HAVE_LSTAT] (lstat): Likewise.
26194 [!S_IROTH] (S_IROTH): New macro (dummy).
26195 [!S_IRGRP] (S_IRGRP): Likewise.
26196
26197 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26198
26199 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26200 conditional expression).
26201
26202 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26203
26204 Import from Gnulib.
26205
26206 * gnulib/fnmatch.c: New file.
26207 * gnulib/fnmatch.h: Likewise.
26208 * gnulib/fnmatch_loop.c: Likewise.
26209 * gnulib/getopt.c: Likewise.
26210 * gnulib/getopt.h: Likewise.
26211 * gnulib/getopt1.c: Likewise.
26212 * gnulib/getopt_int.h: Likewise.
26213 * gnulib/gettext.h: Likewise.
26214
26215 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26216
26217 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26218 * normal/handler.c (read_handler_list): Likewise.
26219
26220 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26221
26222 Misc cleanup.
26223
26224 * kern/command.c (grub_register_command_prio): Use
26225 grub_zalloc() instead of explicitly zeroing data.
26226 * kern/list.c: Include `<grub/mm.h>'.
26227 (grub_named_list_find): Replace `0' with `NULL'.
26228 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26229 (fs_module_list): Change type to `grub_named_list_t'. Update all
26230 users.
26231 * normal/dyncmd.c (read_command_list): Add space between function
26232 call and parenthesis.
26233 * normal/handler.c (read_handler_list): Likewise.
26234
26235 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26236
26237 * normal/auth.c (punishment_delay): Moved from here ...
26238 (grub_auth_strcmp): ... to here (inside function).
26239
26240 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26241
26242 * include/grub/list.h (struct grub_named_list): Remove `const'
26243 qualifier from `name'.
26244 (struct grub_prio_list): Likewise.
26245
26246 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26247
26248 * normal/auth.c: Include `<grub/time.h>'.
26249 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26250
26251 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26252
26253 * normal/auth.c (punishment_delay): New variable.
26254 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26255 (grub_auth_check_authentication): Punish failed login attempts with
26256 an incremental (2^N) delay.
26257
26258 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26259
26260 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26261 path with $(srcdir).
26262
26263 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26264
26265 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
26266
26267 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26268
26269 * util/i386/coreboot/grub-mkrescue.in: New file.
26270 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
26271 variables.
26272
26273 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
26274 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
26275 * configure.ac: Add header and function checks to satisfy grub-mkisofs
26276 requirements.
26277 * util/mkisofs/defaults.h: New file.
26278 * util/mkisofs/eltorito.c: Likewise.
26279 * util/mkisofs/exclude.h: Likewise.
26280 * util/mkisofs/fnmatch.c: Likewise.
26281 * util/mkisofs/getopt.c: Likewise.
26282 * util/mkisofs/getopt1.c: Likewise.
26283 * util/mkisofs/hash.c: Likewise.
26284 * util/mkisofs/include/fctldefs.h: Likewise.
26285 * util/mkisofs/include/mconfig.h: Likewise.
26286 * util/mkisofs/include/prototyp.h: Likewise.
26287 * util/mkisofs/include/statdefs.h: Likewise.
26288 * util/mkisofs/iso9660.h: Likewise.
26289 * util/mkisofs/joliet.c: Likewise.
26290 * util/mkisofs/match.c: Likewise.
26291 * util/mkisofs/match.h: Likewise.
26292 * util/mkisofs/mkisofs.c: Likewise.
26293 * util/mkisofs/mkisofs.h: Likewise.
26294 * util/mkisofs/multi.c: Likewise.
26295 * util/mkisofs/name.c: Likewise.
26296 * util/mkisofs/rock.c: Likewise.
26297 * util/mkisofs/tree.c: Likewise.
26298 * util/mkisofs/write.c: Likewise.
26299
26300 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26301
26302 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
26303 being insecure.
26304
26305 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26306
26307 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
26308 `grub-mkimage' (and use $0 when possible).
26309
26310 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26311
26312 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
26313 error message for excessively large memory map.
26314
26315 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26316
26317 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
26318 executable bit.
26319
26320 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26321
26322 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
26323 message for coreboot users.
26324
26325 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
26326
26327 Fix build with GNU gold.
26328
26329 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
26330 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
26331 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
26332 link addresses.
26333 * aclocal.m4: Likewise.
26334
26335 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
26336
26337 * configure.ac (AC_PREREQ): Bump to 2.59d.
26338 * INSTALL: Make it more clear when Autoconf and Ruby are
26339 needed and when to run `./autogen.sh'.
26340
26341 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26342
26343 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
26344 OSes.
26345
26346 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26347
26348 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
26349
26350 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26351
26352 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
26353 giving it to GNU Mach.
26354
26355 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26356
26357 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
26358 GNU partition number to get internal GRUB partition number.
26359
26360 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26361
26362 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
26363 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
26364
26365 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
26366
26367 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
26368 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
26369 case.
26370
26371 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
26372
26373 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
26374
26375 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26376
26377 Fix build problem.
26378
26379 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
26380 `-isystem=$(srcdir)/include'.
26381
26382 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26383
26384 * util/i386/pc/grub-install.in: Remove hint that device.map should be
26385 checked (grub-install doesn't currently rely on it).
26386
26387 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
26388
26389 Revert SVN r2660.
26390
26391 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
26392 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26393 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
26394 * conf/i386-ieee1275.rmk: Likewise.
26395 * conf/i386-pc.rmk: Likewise.
26396 * conf/powerpc-ieee1275.rmk: Likewise.
26397 * conf/sparc64-ieee1275.rmk: Likewise.
26398 * conf/x86_64-efi.rmk: Likewise.
26399
26400 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26401
26402 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
26403
26404 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26405
26406 * include/grub/misc.h: Stop checking for APPLE_CC.
26407
26408 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26409
26410 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
26411 doesn't cause an infinite call loop.
26412
26413 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
26414
26415 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
26416 strings.
26417
26418 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26419
26420 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
26421 variable.
26422 * Makefile.in: Likewise.
26423
26424 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26425
26426 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
26427
26428 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26429
26430 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
26431
26432 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26433
26434 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
26435
26436 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26437
26438 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
26439 from here ...
26440 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
26441
26442 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26443
26444 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
26445 in $(MAKEINFO) invocation. This makes it clear in output that
26446 errors are being ignored.
26447
26448 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26449
26450 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
26451 from here ...
26452 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26453 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
26454 * conf/i386-ieee1275.rmk: Likewise.
26455 * conf/i386-pc.rmk: Likewise.
26456 * conf/powerpc-ieee1275.rmk: Likewise.
26457 * conf/sparc64-ieee1275.rmk: Likewise.
26458 * conf/x86_64-efi.rmk: Likewise.
26459
26460 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26461
26462 * util/grub-editenv.c (main): If only a command is given, use
26463 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
26464 (usage): FILENAME is now optional and has a default.
26465
26466 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26467
26468 Improve grub-mkconfig performance when there are several menu
26469 entries on a single filesystem.
26470
26471 * util/grub.d/10_linux.in (linux_entry): Cache the output of
26472 prepare_grub_to_access_device.
26473 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26474 * util/grub.d/30_os-prober.in: Likewise.
26475
26476 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26477
26478 * util/grub.d/10_freebsd.in: Remove.
26479 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
26480 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
26481
26482 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26483
26484 * docs/grub.cfg: Fix example usage of *BSD loaders.
26485
26486 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26487
26488 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
26489 grub_util_error() call.
26490
26491 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26492
26493 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
26494 `reserved_first_sector' member.
26495 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
26496 `reserved_first_sector' to 1.
26497 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
26498 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
26499 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
26500 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
26501 filesystems which begin at first sector.
26502 (options): New option --skip-fs-probe.
26503 (main): Handle --skip-fs-probe and pass it to setup().
26504
26505 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26506
26507 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
26508 (memset): Fix function prototype.
26509
26510 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26511 2009-10-25 Vasily Averin <vvs@parallels.com>
26512
26513 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
26514 `dirent.direntlen == 0'.
26515
26516 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26517
26518 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
26519 `cpio'.
26520 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
26521
26522 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26523
26524 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
26525 `__trampoline_setup' and `__ucmpdi2'.
26526 * include/grub/powerpc/libgcc.h: Only export symbols for functions
26527 that libgcc provides.
26528
26529 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26530
26531 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
26532 * include/grub/sparc64/libgcc.h (memset): Likewise.
26533 * include/grub/misc.h (memset, memcmp): New function prototypes.
26534
26535 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26536
26537 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
26538 `cpio'.
26539 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
26540
26541 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26542
26543 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
26544 * docs/grub.cfg: Compensate for recent change in multiboot
26545 loader (since 2009-08-14 it won't pass filename to payload).
26546 * util/grub.d/10_hurd.in: Likewise.
26547
26548 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
26549
26550 * config.guess: Update to latest version from config git
26551 repository.
26552 * config.sub: Likewise.
26553
26554 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
26555
26556 Fix build on sparc64.
26557
26558 * configure.ac: Perform checks for libgcc symbols before
26559 adding `-nostdlib' to LDFLAGS.
26560
26561 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26562
26563 Let user specify OpenBSD root device.
26564
26565 * loader/i386/bsd.c (openbsd_root): New variable.
26566 (openbsd_opts): New option 'root'.
26567 (OPENBSD_ROOT_ARG): New macro.
26568 (grub_openbsd_boot): Use 'openbsd_root'.
26569 (grub_cmd_openbsd): Fill 'openbsd_root'.
26570
26571 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26572
26573 * NEWS: Misc adjustments.
26574
26575 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26576
26577 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
26578
26579 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26580
26581 * configure.ac: Bump version to 1.97.
26582
26583 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
26584
26585 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
26586 -mno-3dnow on x86 architectures. Some toolchains enable these
26587 features by default, but they rely on registers that aren't enabled
26588 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
26589
26590 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
26591
26592 Make entry text a bit more readable.
26593
26594 * util/grub.d/10_linux.in: Add `with' before `Linux'.
26595
26596 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26597
26598 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
26599
26600 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26601
26602 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
26603 operations.
26604
26605 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26606
26607 * configure.ac: Add missing dollar.
26608
26609 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26610
26611 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
26612
26613 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
26614 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
26615 exports.
26616 * include/grub/sparc64/libgcc.h: Likewise. Use
26617 preprocessor conditionals.
26618
26619 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26620
26621 * conf/common.rmk (grub-dumpbios): Remove rule.
26622 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
26623 * util/grub-dumpbios.in: Remove file.
26624
26625 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26626
26627 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
26628 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
26629
26630 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
26631 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
26632 users.
26633
26634 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
26635 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
26636 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
26637 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
26638 users.
26639
26640 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
26641
26642 * term/tparm.c: Switch to GPLv3.
26643
26644 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26645
26646 * include/grub/i386/cpuid.h: Add header protection.
26647
26648 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26649
26650 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
26651
26652 * include/grub/i386/cpuid.h: New file.
26653 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
26654 (has_longmode): Rename to ...
26655 (grub_cpuid_has_longmode): ... this. Update all users. Remove
26656 `static' attribute.
26657 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
26658 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
26659 on a CPU that doesn't implement AMD64 instruction set.
26660
26661 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26662
26663 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
26664 that version.texi is rebuilt on version number changes.
26665
26666 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26667
26668 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
26669 Fixes bug #27602.
26670
26671 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26672
26673 * util/i386/pc/grub-install.in: Source
26674 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
26675 that the --grub-probe option will work.
26676 * util/sparc64/ieee1275/grub-install.in: Likewise.
26677
26678 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
26679
26680 * configure.ac: Bump version to 1.97~beta4.
26681
26682 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
26683
26684 Resync grub-mkdevicemap in x86_64-efi.
26685
26686 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
26687 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
26688 `util/devicemap.c'.
26689
26690 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
26691
26692 * util/grub-editenv.c (create_envblk_file): Write new block with a
26693 .new suffix and then rename it into place, to ensure atomic
26694 creation.
26695
26696 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
26697
26698 Do not automatically install headers.
26699
26700 * Makefile.in (include_DATA): Remove. Update all users.
26701
26702 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
26703
26704 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
26705 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
26706
26707 * util/osdetect.lua: Remove.
26708 * script/lua/lauxlib.c: Likewise.
26709 * script/lua/ldebug.c: Likewise.
26710 * script/lua/grub_main.c: Likewise.
26711 * script/lua/lauxlib.h: Likewise.
26712 * script/lua/ldebug.h: Likewise.
26713 * script/lua/ltablib.c: Likewise.
26714 * script/lua/liolib.c: Likewise.
26715 * script/lua/lstrlib.c: Likewise.
26716 * script/lua/lualib.h: Likewise.
26717 * script/lua/ldo.c: Likewise.
26718 * script/lua/ldump.c: Likewise.
26719 * script/lua/ldo.h: Likewise.
26720 * script/lua/loslib.c: Likewise.
26721 * script/lua/lundump.c: Likewise.
26722 * script/lua/grub_lib.c: Likewise.
26723 * script/lua/ldblib.c: Likewise.
26724 * script/lua/lundump.h: Likewise.
26725 * script/lua/lmem.c: Likewise.
26726 * script/lua/grub_lib.h: Likewise.
26727 * script/lua/lmathlib.c: Likewise.
26728 * script/lua/lstate.c: Likewise.
26729 * script/lua/ltm.c: Likewise.
26730 * script/lua/lvm.c: Likewise.
26731 * script/lua/lmem.h: Likewise.
26732 * script/lua/lstate.h: Likewise.
26733 * script/lua/ltm.h: Likewise.
26734 * script/lua/ltable.c: Likewise.
26735 * script/lua/lvm.h: Likewise.
26736 * script/lua/llex.c: Likewise.
26737 * script/lua/lgc.c: Likewise.
26738 * script/lua/grub_lua.h: Likewise.
26739 * script/lua/loadlib.c: Likewise.
26740 * script/lua/lfunc.c: Likewise.
26741 * script/lua/lopcodes.c: Likewise.
26742 * script/lua/lparser.c: Likewise.
26743 * script/lua/ltable.h: Likewise.
26744 * script/lua/llex.h: Likewise.
26745 * script/lua/lgc.h: Likewise.
26746 * script/lua/lfunc.h: Likewise.
26747 * script/lua/lbaselib.c: Likewise.
26748 * script/lua/lopcodes.h: Likewise.
26749 * script/lua/lparser.h: Likewise.
26750 * script/lua/lzio.c: Likewise.
26751 * script/lua/linit.c: Likewise.
26752 * script/lua/lobject.c: Likewise.
26753 * script/lua/llimits.h: Likewise.
26754 * script/lua/lstring.c: Likewise.
26755 * script/lua/lzio.h: Likewise.
26756 * script/lua/lapi.c: Likewise.
26757 * script/lua/lcode.c: Likewise.
26758 * script/lua/lua.h: Likewise.
26759 * script/lua/lobject.h: Likewise.
26760 * script/lua/lstring.h: Likewise.
26761 * script/lua/lapi.h: Likewise.
26762 * script/lua/lcode.h: Likewise.
26763 * script/lua/luaconf.h: Likewise.
26764
26765 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
26766
26767 * docs/grub.texi (Command-line and menu entry commands): Document
26768 date and echo commands.
26769
26770 2009-09-24 Pavel Roskin <proski@gnu.org>
26771
26772 * include/grub/kernel.h (struct grub_module_header): Remove
26773 `grub_module_header_types'. Make `type' unsigned. Make `size'
26774 32-bit on all platforms.
26775 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
26776 8-bit field. Use grub_host_to_target32() for `size'.
26777 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
26778 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
26779 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
26780
26781 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26782
26783 Fix "lost keypress" bug in at_keyboard.
26784
26785 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
26786 Checks for readyness of input buffer (without flushing it).
26787 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
26788 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
26789
26790 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26791
26792 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
26793 size check within GRUB_MACHINE_PCBIOS section.
26794
26795 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26796
26797 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
26798 return value.
26799 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
26800 KEYBOARD_ISREADY check.
26801 (grub_at_keyboard_checkkey): Rename to ...
26802 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
26803 Remove gratuitous cast.
26804
26805 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
26806
26807 * configure.ac: Call AC_PROG_MKDIR_P.
26808 * Makefile.in (docs/stamp-vti): Create docs directory. Create
26809 version.texi in $(builddir) rather than $(srcdir).
26810 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
26811 to makeinfo's @include search path.
26812
26813 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
26814
26815 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
26816
26817 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
26818
26819 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
26820 for `*.dpkg-new'.
26821
26822 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
26823
26824 Build info documentation. Some code borrowed from Automake.
26825
26826 * configure.ac: Check for makeinfo.
26827 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
26828 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
26829 docs/version.texi.
26830 (MOSTLYCLEANFILES): Add vti.tmp.
26831 (docs/version.texi, docs/stamp-vti): Update automatically.
26832 (docs/grub.info): Build info documentation. Use --force and ignore
26833 errors for now.
26834 (all-local): Add $(INFOS).
26835 (install-local): Install info files.
26836 (uninstall): Uninstall info files.
26837 * docs/version.texi: Remove from revision control. This file is
26838 automatically generated on build now.
26839 * gendistlist.sh: Add `*.info'.
26840
26841 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
26842
26843 * kern/term.c: Fix indentation.
26844
26845 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
26846
26847 * util/hostdisk.c: Fix a comment.
26848
26849 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
26850
26851 Fix regression introduced in r2539.
26852
26853 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
26854 to 0xA1.
26855
26856 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
26857
26858 * util/grub.d/30_os-prober.in: Don't throw away stderr from
26859 os-prober. Under normal operation, it does not print anything to
26860 stderr; if it does, we need to debug it, and throwing away stderr
26861 makes that excessively difficult.
26862
26863 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
26864
26865 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
26866
26867 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
26868
26869 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
26870 AC_LANG_PROGRAM from autoconf.
26871 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
26872 prototypes (fixes warning).
26873
26874 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
26875 `--disable-werror' was used.
26876
26877 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
26878
26879 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
26880 uninitialized `lastaddr'.
26881
26882 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
26883
26884 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
26885
26886 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
26887
26888 * commands/test.c (get_fileinfo): Return immediately if
26889 grub_fs_probe fails.
26890
26891 2009-09-14 José Martínez <xosemp@gmail.com>
26892
26893 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
26894
26895 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
26896
26897 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
26898 output.
26899
26900 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
26901
26902 * configure.ac: Remove --enable-grub-pe2elf. Only build
26903 grub-pe2elf when needed by the build system itself.
26904 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
26905
26906 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26907
26908 * configure.ac: Bump version to 1.97~beta3.
26909 * docs/version.texi: Likewise.
26910
26911 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26912
26913 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
26914 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
26915 from here ...
26916 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
26917 (grub_linux_setup_video): ... to here (with some adjustments).
26918
26919 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26920
26921 Fix memory corruption issue (spotted by Colin Watson).
26922
26923 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
26924 causing returned size to be stored in an incorrect memory location.
26925 Fix use of uninitialized value when storing the returned size.
26926
26927 2009-09-12 Yves Blusseau <blusseau@zetam.org>
26928
26929 Change clean rules to properly remove files
26930
26931 * genmk.rb: add new clean rules
26932 * Makefile.in (clean): add the new targets
26933 (mostlyclean): likewise
26934
26935 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
26936
26937 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
26938 to grub_uint64_t.
26939 * fs/ntfs.c (init_file): Understand 64-bit sizes for
26940 non-resident files.
26941
26942 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
26943
26944 * configure.ac: Don't look for help2man when cross-compiling. Fixes
26945 part of bug #27349.
26946
26947 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
26948
26949 * util/grub-mkconfig.in: Make the created config mode 400 and
26950 print a warning if it fails.
26951
26952 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
26953
26954 * util/grub.d/40_custom.in: Ask user to type custom entries below
26955 comment, rather than below 'exec tail' line.
26956
26957 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
26958
26959 * util/grub.d/40_custom.in: Make sure that the explanatory text is
26960 visible in grub.cfg.
26961
26962 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
26963
26964 * util/grub.d/40_custom.in: Make it a little clearer how to use this
26965 file.
26966
26967 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
26968
26969 * docs/grub.cfg: Add an example menu entry for memtest86+.
26970
26971 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
26972
26973 * config.guess: Update to latest version from config git.
26974 * config.sub: Likewise.
26975
26976 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
26977
26978 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
26979 unknown-command case. Fixes bug #27320.
26980
26981 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
26982
26983 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
26984 `help' if the command exists.
26985
26986 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
26987
26988 * INSTALL: Require GCC 4.1.3 or later.
26989
26990 2009-09-06 Yves Blusseau <blusseau@zetam.org>
26991
26992 * Makefile.in (RMKFILES): add i386-qemu.rmk
26993 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
26994 $(srcdir)/stamp-h.in
26995
26996 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
26997
26998 * util/grub-probe.c (probe): Comment out buggy codepath, which
26999 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27000 should be re-enabled after 1.97.
27001
27002 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27003
27004 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27005 find searches for.
27006
27007 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27008
27009 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27010 unnecessary calls to grub_error.
27011
27012 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27013
27014 * NEWS: Mention `keystatus' and Unicode fonts.
27015
27016 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27017
27018 * configure.ac: Bump version to 1.97~beta2.
27019 * docs/version.texi: Likewise.
27020
27021 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27022
27023 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27024 containing unwind information in some cases where it previously did
27025 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27026 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27027 discussion.
27028
27029 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27030
27031 Embedding loadenv module into grub-emu
27032
27033 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27034 commands/loadenv.c
27035 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27036 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27037 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27039 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27040 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27041
27042 2009-09-03 Magnus Granberg <zorry@ume.nu>
27043
27044 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27045 include -fPIE in the default specs.
27046 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27047 to TARGET_CFLAGS.
27048
27049 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27050
27051 * INSTALL: Note that GNU Bison 2.3 or later is required.
27052
27053 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27054
27055 * kern/i386/pc/startup.S: Fix typo.
27056
27057 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27058
27059 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27060 according to GCS.
27061
27062 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27063
27064 * docs/grub.texi (Naming convention): Describe one-based partition
27065 numbering.
27066 (Device syntax): Likewise.
27067 (File name syntax): Likewise.
27068 (Block list syntax): Likewise.
27069 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27070 menu.lst.
27071 (File name syntax): Likewise.
27072 (Command-line and menu entry commands): Document acpi, blocklist,
27073 crc, export, insmod, keystatus, ls, set, and unset commands.
27074
27075 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27076
27077 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27078 to avoid implying that only one of --shift, --ctrl, or --alt may be
27079 used.
27080
27081 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27082
27083 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27084 rather than comparing against S_IFREG, which will almost never work.
27085
27086 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27087
27088 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27089 (write_blocklists): Likewise.
27090
27091 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27092
27093 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27094 argument to grub_printf.
27095
27096 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27097
27098 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27099 non GNU test.
27100
27101 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27102
27103 * kern/file.c (grub_file_read): Spelling fix
27104
27105 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27106
27107 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27108 loading of headers in some cases.
27109
27110 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27111
27112 * configure.ac: Bump version to 1.97~beta1.
27113 * docs/version.texi: Likewise.
27114
27115 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27116
27117 * include/grub/i386/xnu.h: Add license header.
27118 include grub/err.h explicitly.
27119
27120 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27121
27122 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27123 to `ufs' in the vfs.root.mountfrom kernel parameter.
27124
27125 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27126
27127 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27128
27129 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27130 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27131
27132 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27133 `ARRAY_SIZE' macro.
27134
27135 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27136
27137 * kern/file.c (grub_file_read): Check offset.
27138 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27139 * fs/jfs.c (grub_jfs_read_file): Likewise.
27140 * fs/ntfs.c (grub_ntfs_read): Likewise.
27141 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27142 * fs/minix.c (grub_minix_read_file): Correct offset check.
27143 * fs/ufs.c (grub_ufs_read_file): Likewise.
27144
27145 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27146
27147 * term/i386/pc/console.c (bios_data_area): Cast
27148 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27149
27150 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27151
27152 1-bit optimised blitters.
27153
27154 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27155 prototype.
27156 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27157 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27158 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27159 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27160 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27161 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27162 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27163 function.
27164 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27165 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27166 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27167 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27168 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27169 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27170 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27171 when possible.
27172 * video/video.c (grub_video_get_blit_format): Return
27173 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27174
27175 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27176
27177 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27178 the first argument to grub_printf.
27179
27180 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27181 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27182
27183 Add `getkeystatus' terminal method. Add a new `keystatus' command
27184 to query it.
27185
27186 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27187 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27188 modifier key bitmasks.
27189 (struct grub_term_input): Add `getkeystatus' member.
27190 (grub_getkeystatus): Add prototype.
27191 * kern/term.c (grub_getkeystatus): New function.
27192
27193 * include/grub/i386/pc/memory.h
27194 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27195 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27196 Data Area layout.
27197 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27198 (grub_console_term_input): Set `getkeystatus' member.
27199 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27200 constants.
27201 (grub_usb_keyboard_getreport): Likewise.
27202 (grub_usb_keyboard_checkkey): Likewise.
27203 (grub_usb_keyboard_getkeystatus): New function.
27204 (grub_usb_keyboard_term): Set `getkeystatus' member.
27205
27206 * commands/keystatus.c: New file.
27207 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27208 (keystatus_mod_SOURCES): New variable.
27209 (keystatus_mod_CFLAGS): Likewise.
27210 (keystatus_mod_LDFLAGS): Likewise.
27211 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27212 commands/keystatus.c.
27213 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27214 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27215 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27217 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27218 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27219
27220 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27221
27222 Split befs.mod and afs.mod into *_be.mod and *.mod
27223
27224 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27225 (grub_fstest_SOURCES): Likewise.
27226 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27227 (afs_be_mod_SOURCES): New variable.
27228 (afs_be_mod_CFLAGS): Likewise.
27229 (afs_be_mod_LDFLAGS): Likewise.
27230 (befs_be_mod_SOURCES): Likewise.
27231 (befs_be_mod_CFLAGS): Likewise.
27232 (befs_be_mod_LDFLAGS): Likewise.
27233 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27234 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27235 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27236 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27237 (grub_emu_SOURCES): Likewise.
27238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27239 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27240 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27241 * fs/afs_be.c: New file.
27242 * fs/befs_be.c: New file.
27243 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27244 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27245 (U16): Replaced with ...
27246 (grub_afs_to_cpu16): ...this. All users updated.
27247 (U32): Replaced with ...
27248 (grub_afs_to_cpu32): ...this. All users updated.
27249 (U64): Replaced with ...
27250 (grub_afs_to_cpu64): ...this. All users updated.
27251 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27252 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27253 (grub_afs_validate_sblock): Check only one endianness.
27254 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27255 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27256 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27257 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27258 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27259 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27260 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27261 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27262
27263 2009-08-26 Bean <bean123ch@gmail.com>
27264
27265 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
27266 64-bit number.
27267 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
27268 (grub_xfs_inode_block): Change return type to grub_uint64_t.
27269 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
27270
27271 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27272
27273 NetBSD memory map support.
27274
27275 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
27276 (grub_netbsd_btinfo_mmap_header): New structure.
27277 (grub_netbsd_btinfo_mmap_entry): Likewise.
27278 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
27279
27280 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27281
27282 Enable bsd.mod on coreboot.
27283
27284 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
27285 (bsd_mod_SOURCES): New variable.
27286 (bsd_mod_CFLAGS): Likewise.
27287 (bsd_mod_LDFLAGS): Likewise.
27288 (bsd_mod_ASFLAGS): Likewise.
27289 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
27290 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
27291
27292 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27293
27294 Cleanup NetBSD root support.
27295
27296 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
27297 grub_bsd_get_device.
27298 Fix typo.
27299
27300 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
27301
27302 * util/grub.d/00_header.in: Move check for the video backend of
27303 gfxterm from here ...
27304 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
27305 a suitable video backend.
27306
27307 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27308
27309 Fix breakage in grub-setup.
27310
27311 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
27312 "msdos_partition_map".
27313
27314 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27315
27316 Fix breakage in normal/auth.c.
27317
27318 * normal/auth.c (grub_iswordseparator): New function.
27319
27320 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27321
27322 Authentication support.
27323
27324 * commands/password.c: New file.
27325 * conf/common.rmk (pkglib_MODULES): Add password.mod.
27326 (password_mod_SOURCES): New variable.
27327 (password_mod_CFLAGS): Likewise.
27328 (password_mod_LDFLAGS): Likewise.
27329 (normal_mod_SOURCES): Add normal/auth.c.
27330 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
27331 normal/auth.c.
27332 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27333 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27334 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27336 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27337 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27338 * include/grub/auth.h: New file.
27339 * include/grub/err.h (grub_err_t): New enum value
27340 GRUB_ERR_ACCESS_DENIED.
27341 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
27342 'users'.
27343 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
27344 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
27345 users updated.
27346 * normal/auth.c: New file.
27347 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
27348 (grub_cmdline_run): Don't allow to go to command line without
27349 authentication.
27350 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
27351 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
27352 menuentry without superuser rights.
27353 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
27354 user isn't a superuser.
27355
27356 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27357
27358 Save space by inlining misc.c functions.
27359
27360 * kern/misc.c (grub_iswordseparator): Made static.
27361 * kern/misc.c (grub_strcat): Moved from here ...
27362 * include/grub/misc.h (grub_strcat): ... here. Inlined.
27363 * kern/misc.c (grub_strncat): Moved from here ...
27364 * include/grub/misc.h (grub_strncat): ... here. Inlined.
27365 * kern/misc.c (grub_strcasecmp): Moved from here ...
27366 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
27367 * kern/misc.c (grub_strncasecmp): Moved from here ...
27368 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
27369 * kern/misc.c (grub_isalpha): Moved from here ...
27370 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
27371 * kern/misc.c (grub_isdigit): Moved from here ...
27372 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
27373 * kern/misc.c (grub_isgraph): Moved from here ...
27374 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
27375 * kern/misc.c (grub_tolower): Moved from here ...
27376 * include/grub/misc.h (grub_tolower): ... here. Inlined.
27377
27378 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27379
27380 * script/sh/function.c (grub_script_function_find): Cut error message
27381 not to flood terminal.
27382 * script/sh/lexer.c (grub_script_yylex): Remove command line length
27383 limit.
27384 * script/sh/script.c (grub_script_arg_add): Duplicate string.
27385
27386 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
27387
27388 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
27389 `report' grub_uint8_t *.
27390 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
27391 Use a 50-millisecond timeout rather than just repeating
27392 grub_usb_keyboard_getreport 50 times.
27393 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
27394
27395 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27396
27397 Rename *_partition_map to part_*
27398
27399 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
27400 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
27401 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
27402 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
27403 All users updated.
27404 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
27405 All users updated.
27406 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
27407 * util/grub-probe.c (probe_partmap): Don't transform partition name
27408 to get module name.
27409
27410 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27411
27412 Fix OpenBSD and NetBSD support.
27413
27414 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
27415 memory address conflict.
27416 (OPENBSD_MMAP_ACPI): New definition.
27417 (OPENBSD_MMAP_NVS): Likewise.
27418 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
27419 and OPENBSD_MMAP_NVS.
27420 Add memory map terminator
27421 Explicit cast when calling grub_unix_real_boot.
27422 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
27423
27424 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27425
27426 Let user specify NetBSD root device.
27427
27428 * loader/i386/bsd.c (netbsd_root): New variable.
27429 (netbsd_opts): New option 'root'.
27430 (NETBSD_ROOT_ARG): New macro.
27431 (grub_netbsd_boot): Use 'netbsd_root'.
27432 (grub_bsd_unload): Free 'netbsd_root'.
27433 (grub_cmd_netbsd): Fill 'netbsd_root'.
27434
27435 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27436
27437 Support for 64-bit NetBSD.
27438
27439 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
27440 point when booting non-FreeBSD.
27441
27442 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27443
27444 Support --no-smp and --no-acpi for NetBSD.
27445
27446 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
27447 (NETBSD_AB_NOACPI): Likewise.
27448 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
27449 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
27450
27451 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27452
27453 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
27454 errors.
27455 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
27456 errors. Call grub_error when needed.
27457
27458 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27459
27460 * commands/search.c (search_fs): Try searching without autoload first.
27461 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
27462 filesystem module explicitly for faster booting.
27463
27464 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27465
27466 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
27467
27468 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27469
27470 * util/grub.d/30_os-prober.in: Disable os-prober if
27471 `GRUB_DISABLE_OS_PROBER' was set to true.
27472
27473 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
27474
27475 * partmap/pc.c: Rename to ...
27476 * partmap/msdos.c: ... this. Update all users.
27477 (grub_pc_partition_map): Rename to ...
27478 (grub_msdos_partition_map): ... this. Update all users.
27479
27480 * parttool/pcpart.c: Rename to ...
27481 * parttool/msdospart.c: ... this. Update all users.
27482
27483 * include/grub/pc_partition.h: Rename to ...
27484 * include/grub/msdos_partition.h: ... this. Update all users.
27485 (grub_pc_partition_bsd_entry): Rename to ...
27486 (grub_msdos_partition_bsd_entry): ... this. Update all users.
27487 (grub_pc_partition_disk_label): Rename to ...
27488 (grub_msdos_partition_disk_label): ... this. Update all users.
27489 (grub_pc_partition_entry): Rename to ...
27490 (grub_msdos_partition_entry): ... this. Update all users.
27491 (grub_pc_partition_mbr): Rename to ...
27492 (grub_msdos_partition_mbr): ... this. Update all users.
27493 (grub_pc_partition): Rename to ...
27494 (grub_msdos_partition): ... this. Update all users.
27495 (grub_pc_partition_is_empty): Rename to ...
27496 (grub_msdos_partition_is_empty): ... this. Update all users.
27497 (grub_pc_partition_is_extended): Rename to ...
27498 (grub_msdos_partition_is_extended): ... this. Update all users.
27499 (grub_pc_partition_is_bsd): Rename to ...
27500 (grub_msdos_partition_is_bsd): ... this. Update all users.
27501
27502 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
27503 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
27504 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
27505 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
27506 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
27507 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
27508 (gpt_mod_LDFLAGS): Rename to ...
27509 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
27510 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
27511 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
27512 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
27513 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
27514 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
27515 (part_gpt_mod_LDFLAGS): ... this.
27516 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
27517 `pcpart.mod' to `msdospart.mod'.
27518 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
27519 to ...
27520 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
27521 (msdospart_mod_LDFLAGS): ... this.
27522
27523 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27524
27525 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
27526 (openbsd_opts): Likewise.
27527 (netbsd_opts): Likewise.
27528 (freebsd_flags): Added 0 terminator.
27529 (openbsd_flags): Likewise.
27530 (netbsd_flags): Likewise.
27531 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
27532 (grub_cmd_freebsd): Transformed into extended command.
27533 (grub_cmd_openbsd): Likewise.
27534 (grub_cmd_netbsd): Likewise.
27535 (cmd_freebsd): Changed type to grub_extcmd_t.
27536 (cmd_openbsd): Likewise.
27537 (cmd_netbsd): Likewise.
27538 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
27539 grub_cmd_openbsd as extended commands.
27540 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
27541 cmd_netbsd and cmd_openbsd
27542
27543 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
27544
27545 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
27546
27547 2009-08-21 Pavel Roskin <proski@gnu.org>
27548
27549 * Makefile.in (install-local): When checking if a file is in the
27550 build directory, use "test -e" to detect symlinks.
27551
27552 * Makefile.in (install-local): Remove all files in
27553 $(DESTDIR)$(pkglibdir) before installing new files there.
27554
27555 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27556
27557 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
27558 grub-mkelfimage.
27559
27560 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27561
27562 * util/grub-mkconfig.in: Don't use gfxterm by default if not
27563 explicitly specified by the user.
27564
27565 2009-08-18 Pavel Roskin <proski@gnu.org>
27566
27567 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
27568 grub_uint8_t pointer for data.
27569 * include/grub/fbutil.h (struct grub_video_fbblit_info):
27570 Likewise.
27571 * video/fb/fbutil.c: Remove unnecessary casts.
27572
27573 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27574
27575 VBE cleanup.
27576
27577 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
27578 (grub_vbe_set_video_mode): Save active mode info
27579 only after setting the mode.
27580 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
27581 second argument.
27582
27583 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27584
27585 Rename variables for clarity.
27586
27587 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
27588 (active_vbe_mode_info): ... this. All users updated.
27589 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
27590 All users updated.
27591 (initial_mode): Rename to ...
27592 (initial_vbe_mode): ... this. All users updated.
27593 (mode_in_use): Rename to ..
27594 (vbe_mode_in_use): ... this. All users updated.
27595 (mode_list): Rename to ..
27596 (vbe_mode_list): ... this. All users updated.
27597 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
27598 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
27599 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
27600 'mode_list_size' to 'vbe_mode_list_size'.
27601 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
27602 'best_mode_info' to 'best_vbe_mode_info' and
27603 'best_mode' to 'best_vbe_mode'
27604
27605 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27606
27607 Remove duplicate grub_video_fb_get_video_ptr.
27608
27609 * include/grub/fbutil.h (get_data_ptr): Rename to ...
27610 (grub_video_fb_get_video_ptr): ... this.
27611 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
27612 * video/fb/fbutil.c: Add comment about addressing.
27613 (get_data_ptr): Rename to ...
27614 (grub_video_fb_get_video_ptr): ... this. All users updated.
27615 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
27616
27617 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
27620 grub_dprintf() that was just added.
27621
27622 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
27625 (DEFAULT_VIDEO_MODE): Remove macros.
27626 (grub_linux_boot): Remove assumption that Linux has FB support,
27627 and use "text" as default video mode.
27628
27629 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
27630
27631 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
27632 grub_dprintf.
27633 * fs/fat.c (grub_fat_read_data): Likewise.
27634
27635 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27636
27637 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
27638 payload.
27639 (grub_module): Likewise.
27640
27641 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27642
27643 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
27644 mbi->cmdline but free playground.
27645
27646 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27647
27648 Handle group offset on UFS1.
27649
27650 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
27651 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
27652
27653 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 Split ufs.mod into ufs1.mod and ufs2.mod.
27656
27657 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
27658 (grub_fstest_SOURCES): Likewise.
27659 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
27660 (ufs_mod_SOURCES): Remove.
27661 (ufs_mod_CFLAGS): Likewise.
27662 (ufs_mod_LDFLAGS): Likewise.
27663 (ufs1_mod_SOURCES): New variable.
27664 (ufs1_mod_CFLAGS): Likewise.
27665 (ufs1_mod_LDFLAGS): Likewise.
27666 (ufs2_mod_SOURCES): New variable.
27667 (ufs2_mod_CFLAGS): Likewise.
27668 (ufs2_mod_LDFLAGS): Likewise.
27669 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
27670 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27671 Likewise.
27672 (grub_emu_SOURCES): Likewise.
27673 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27674 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27675 (grub_setup_SOURCES): Likewise.
27676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27677 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
27678 (grub_setup_SOURCES): Likewise.
27679 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27680 Likewise.
27681 * fs/ufs2.c: New file.
27682 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
27683
27684 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27685
27686 Framebuffer split.
27687
27688 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
27689 subsystem at the end.
27690 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
27691 (video_fb_mod_SOURCES): New variable.
27692 (video_fb_mod_CFLAGS): Likewise.
27693 (video_fb_mod_LDFLAGS): Likewise.
27694 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
27695 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
27696 * video/i386/pc/vbeblit.c: Moved from here ...
27697 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
27698 * video/i386/pc/vbefill.c: Moved from here ...
27699 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
27700 * video/i386/pc/vbeutil.c: Moved from here ...
27701 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
27702 * include/grub/i386/pc/vbeblit.h: Moved from here ...
27703 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
27704 * include/grub/i386/pc/vbefill.h: Moved from here ...
27705 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
27706 * include/grub/i386/pc/vbeutil.h: Moved from here ...
27707 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
27708 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
27709 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
27710 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
27711 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
27712 (grub_video_adapter): Added 'get_info_and_fini'.
27713 (grub_video_get_info_and_fini): New prototype.
27714 (grub_video_set_mode): make modestring const char *.
27715 * loader/i386/linux.c (grub_linux_setup_video): Use
27716 grub_video_get_info_and_fini.
27717 (grub_linux_boot): Move modesetting just before booting.
27718 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
27719 grub_video_get_info_and_fini.
27720 * video/i386/pc/vbe.c: Moved framebuffer part ...
27721 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
27722 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
27723 grub_video_fbstd_colors and grub_video_fb_set_palette.
27724 (grub_video_vbe_init): Clear 'framebuffer' variable and use
27725 grub_video_fb_init.
27726 (grub_video_vbe_fini): Use grub_video_fb_fini.
27727 (grub_video_vbe_setup): Use framebuffer.render_target instead of
27728 render_target and use grub_video_fb_set_active_render_target and
27729 grub_video_fb_set_palette.
27730 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
27731 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
27732 (grub_video_vbe_adapter): Use framebuffer.
27733 * video/video.c (grub_video_get_info_and_fini): New function.
27734 (grub_video_set_mode): Make modestring const char *.
27735 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
27736 values are already initialised.
27737
27738 2009-08-14 Pavel Roskin <proski@gnu.org>
27739
27740 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
27741 ABS and APPLE_CC.
27742 * boot/i386/pc/diskboot.S: Likewise.
27743 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
27744 sectors allow compilation on MacOSX.
27745 * conf/i386-pc.rmk: Enable unconditional compilation of
27746 lnxboot.img.
27747
27748 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
27749
27750 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
27751 * util/grub.d/00_header.in: Enter interruptible sleep if
27752 GRUB_HIDDEN_TIMEOUT is set.
27753
27754 2009-08-13 Yves Blusseau <blusseau@zetam.org>
27755
27756 * include/grub/symbol.h: Add the LOCAL macro.
27757 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
27758 starting with "L_".
27759
27760 2009-08-13 Pavel Roskin <proski@gnu.org>
27761
27762 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
27763 any modern compilers we support.
27764
27765 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
27766 Use local labels starting with "L_" so that Apple assembler
27767 knows they are local.
27768
27769 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
27770
27771 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
27772 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
27773 (bsd_kernel_types): ... this enum.
27774
27775 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
27776 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
27777 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
27778
27779 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
27780 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
27781 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
27782 messages.
27783
27784 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
27785
27786 * util/grub-dumpdevtree: Moved from here ...
27787 * util/i386/efi/grub-dumpdevtree: ... to here.
27788 (hexify): New function. Converts a string to its hex version.
27789 Generate hex versions of "efi" and "device-properties" by calling
27790 hexify() on the ASCII strings rather than by hardcoding numbers.
27791
27792 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
27793
27794 * fs/jfs.c: Update copyright year.
27795
27796 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
27797
27798 * util/grub.d/00_header.in: Fix a comment.
27799 * util/grub.d/10_linux.in: Likewise.
27800 * util/grub.d/10_windows.in: Likewise.
27801 * util/grub.d/10_hurd.in: Likewise.
27802
27803 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
27804
27805 * util/grub-mkconfig.in: Allow the user to specify the used font
27806 with GRUB_FONT.
27807
27808 2009-08-08 Pavel Roskin <proski@gnu.org>
27809
27810 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
27811 available, xfs.mod needs it now.
27812
27813 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
27814 the "g" modifier in sed when the intention is to strip something
27815 once. This fixes comparison of kernels with multiple dashes.
27816
27817 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
27818 on it. Add missing space before closing bracket. Fix
27819 misleading formatting.
27820
27821 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27822
27823 * docs/grub.texi: Major overhaul. Remove all sections that are
27824 specific to GRUB Legacy, or mostly composed of Legacy-specific
27825 information.
27826
27827 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27828
27829 * docs/version.texi: New file. Provides version information for
27830 grub.texi.
27831
27832 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27833
27834 * docs/grub.texi: Update CVS information to SVN.
27835 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
27836
27837 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27838
27839 * util/grub-mkconfig.in: Remove a wrong `fi'.
27840
27841 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27842
27843 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
27844 (grub_jfs_uuid): New function.
27845 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
27846
27847 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27848
27849 * util/grub-mkconfig_lib.in (font_path): Move the functionality
27850 of it to ...
27851 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
27852 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
27853
27854 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27855
27856 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
27857 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
27858 Update all users.
27859
27860 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
27861 not just "vmlinu[zx]".
27862 Moved from here ...
27863 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
27864 all users.
27865
27866 * util/grub.d/10_linux.in (find_latest): Moved from here ...
27867 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
27868 all users.
27869
27870 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27871
27872 * util/grub.d/10_freebsd.in: Use an absolute device path for
27873 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
27874
27875 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
27876
27877 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
27878 handling of multiple abstraction modules.
27879
27880 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
27881
27882 Fix a bug resulting in black screen when loading Linux using a
27883 packed video mode.
27884
27885 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
27886 function.
27887
27888 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
27889 (grub_vbe_bios_getset_dac_palette_width): New function.
27890 (grub_vbe_bios_get_dac_palette_width)
27891 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
27892 grub_vbe_bios_getset_dac_palette_width()).
27893
27894 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
27895 check for return status.
27896 (grub_vbe_get_video_mode_info): When getting information for a packed
27897 mode (<= 8 bpp), obtain DAC palette width using
27898 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
27899 {red,green,blue}_mark_size.
27900
27901 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
27902
27903 * commands/search.c (options): Fix help output to match actual code.
27904
27905 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
27906
27907 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
27908 of homegrown code.
27909
27910 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27911
27912 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
27913 on XFS or ReiserFS.
27914
27915 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27916
27917 Support Apple partition map with sector size different from 512 bytes.
27918
27919 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
27920 (apple_partition_map_iterate): Respect 'aheader.blocksize'
27921 and 'apart.partmap_size'.
27922
27923 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27924 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
27925
27926 Fix cpuid command.
27927
27928 * commands/i386/cpuid.c (options): New variable.
27929 (grub_cmd_cpuid): Return real error.
27930 (GRUB_MOD_INIT(cpuid)): Declare options.
27931
27932 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
27933
27934 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
27935 valid.
27936
27937 2009-07-31 Bean <bean123ch@gmail.com>
27938
27939 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
27940 log2_inode.
27941 (grub_fshelp_node): Move inode field to the end.
27942 (grub_xfs_data): Remove inode field.
27943 (grub_xfs_inode_block): Calculate inode size using sblock.
27944 (grub_xfs_inode_offset): Likewise.
27945 (grub_xfs_read_inode): Calculate inode size using sblock.
27946 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
27947 (grub_xfs_iterate_dir): Calculate inode size using sblock.
27948 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
27949 to match inode size.
27950 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
27951 not accessible when data is null.
27952 (grub_xfs_open): Likewise.
27953
27954 2009-07-31 Bean <bean123ch@gmail.com>
27955
27956 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
27957 Don't change pv->disk if it's already set.
27958
27959 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
27960 (grub_raid_register): ... here.
27961 (grub_raid_rescan): Removed.
27962
27963 * include/grub/raid.h (grub_raid_rescan): Removed.
27964
27965 * util/grub-fstest.c: Remove include file <grub/raid.h>.
27966 (fstest): Replace grub_raid_rescan with module fini function followed
27967 by init function.
27968
27969 * util/grub-probe.c: Add include file <grub/raid.h>.
27970 (probe_raid_level): New function.
27971 (probe): Detect abstraction by walking the disk device, support two
27972 level of abstraction (LVM on RAID) when detecting partition map.
27973
27974 2009-07-31 Pavel Roskin <proski@gnu.org>
27975
27976 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
27977 to grub_zalloc(), it was erroneous.
27978 Reported by Bean <bean123ch@gmail.com>
27979
27980 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
27981
27982 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
27983 embedding zone, not only the first one.
27984
27985 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
27986
27987 * term/gfxterm.c (clear_char): New function.
27988 (grub_virtual_screen_setup): Use clear_char.
27989 (scroll_up): Likewise.
27990 (grub_virtual_screen_cls): Likewise.
27991
27992 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
27993
27994 * util/deviceiter.c (get_acceleraid_disk_name): New static
27995 function.
27996 (grub_util_iterate_devices): Handle Accelraid devices.
27997 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
27998
27999 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28000
28001 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28002 separator for the suggested gfxpayload string (';' collides with the
28003 parser and needs escaping).
28004
28005 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28006
28007 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28008 Clear direction flag before jumping to OS.
28009 (grub_multiboot2_real_boot): Likewise.
28010
28011 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28012
28013 * util/i386/pc/grub-install: Fix parsing of --disk-module
28014 option.
28015
28016 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28017
28018 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28019 when embedding.
28020
28021 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28022
28023 * util/grub-mkconfig.in (package_version): New variable.
28024 Use it do display the version.
28025
28026 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28027
28028 * kern/file.c (grub_file_open): Revert to previous check with
28029 grub_errno.
28030
28031 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28032
28033 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28034 from help line. It's out of sync with code.
28035
28036 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28037
28038 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28039 entries on failed boot.
28040
28041 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28042
28043 * kern/file.c (grub_file_open): Fix an error check.
28044
28045 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28046
28047 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28048 partition map couldn't be identified.
28049
28050 2009-07-23 Pavel Roskin <proski@gnu.org>
28051
28052 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28053 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28054 case of little endian words becomes just an optimization.
28055 Respect const modifier.
28056 (md5_final): Use code that doesn't depend on endianness.
28057
28058 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28059 to avoid loss of upper bits if align is unsigned and shorter
28060 than addr.
28061
28062 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28063
28064 UUID support for UFS
28065
28066 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28067 (grub_ufs_uuid): New function.
28068 (grub_ufs_fs): add .uuid
28069
28070 2009-07-21 Pavel Roskin <proski@gnu.org>
28071
28072 * kern/dl.c (grub_dl_check_header): Make static.
28073
28074 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28075
28076 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28077 add drivemap for Vista. It breaks Windows 7.
28078
28079 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28080
28081 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28082 128 bytes
28083
28084 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28085
28086 Add BFS support
28087
28088 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28089 (grub_fstest_SOURCES): Likewise.
28090 (pkglib_MODULES): Add befs.mod.
28091 (befs_mod_SOURCES): New variable.
28092 (befs_mod_CFLAGS): Likewise.
28093 (befs_mod_LDFLAGS): Likewise.
28094 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28095 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28096 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28097 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28098 (grub_setup_SOURCES): Likewise.
28099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28100 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28101 (grub_setup_SOURCES): Likewise.
28102 * fs/befs.c: New file.
28103 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28104 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28105 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28106 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28107 (B_KEY_INDEX_ALIGN): New declaration.
28108 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28109 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28110 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28111 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28112 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28113 (grub_afs_mount) [MODE_BFS]: Likewise.
28114 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28115 (grub_afs_fs): Use GRUB_AFS_FSNAME
28116 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28117 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28118 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28119 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28120
28121 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28122
28123 * util/getroot.c (find_root_device): Add support for MacOSX.
28124 * util/hostdisk.c: Likewise.
28125
28126 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28127
28128 * font/font.c (find_glyph): Check whether a font is present to avoid
28129 segmentation fault.
28130
28131 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28132
28133 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28134
28135 2009-07-20 Pavel Roskin <proski@gnu.org>
28136
28137 * configure.ac: Trim excessively wordy excuses.
28138
28139 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28140
28141 Add symlink, mtime and label support to AtheFS.
28142
28143 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28144 (grub_afs_iterate_dir): Handle symlinks.
28145 (grub_afs_open): Use grub_afs_read_symlink.
28146 (grub_afs_dir): Likewise.
28147 Pass mtime.
28148 (grub_afs_label): New function.
28149 (grub_afs_fs): Add grub_afs_label.
28150 (grub_afs_read_symlink): New function.
28151
28152 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28153
28154 Fix AtheFS support.
28155
28156 * fs/afs.c: Fix comments style.
28157 (grub_afs_blockrun): Declare as packed.
28158 (grub_afs_datastream): Likewise.
28159 (grub_afs_bnode): Likewise.
28160 (grub_afs_btree): Likewise.
28161 (grub_afs_sblock): Likewise.
28162 Declare `name' as char.
28163 (grub_afs_inode): Declare as packed.
28164 Change void *vnode to grub_uint32_t unused.
28165 (grub_afs_iterate_dir): Check that key_size is positive.
28166 (grub_afs_mount): Don't read superblock twice.
28167 (grub_afs_dir): Don't free node in case of error,
28168 grub_fshelp_find_file already handles this.
28169 (grub_afs_open): Likewise.
28170
28171 2009-07-19 Pavel Roskin <proski@gnu.org>
28172
28173 * Makefile.in: Remove LIBLZO and enable_lzo.
28174 * conf/i386-pc.rmk: Remove lzo support.
28175 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28176 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28177 support.
28178 * kern/i386/pc/lzo1x.S: Remove.
28179 * kern/i386/pc/startup.S: Remove lzo support.
28180 * util/i386/pc/grub-mkimage.c: Likewise.
28181
28182 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28183
28184 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28185 * fs/xfs.c (grub_xfs_dir): Likewise.
28186 * fs/afs.c (grub_afs_dir): Likewise.
28187 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28188 (grub_iso9660_open): Likewise.
28189 * fs/jfs.c (grub_jfs_open): Likewise.
28190 * fs/ext2.c (grub_ext2_dir): Likewise.
28191 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28192 * script/sh/lexer.c (grub_script_yylex): Likewise.
28193
28194 2009-07-16 Pavel Roskin <proski@gnu.org>
28195
28196 * configure.ac: Never add "-c" to CFLAGS.
28197
28198 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28199
28200 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28201 grub_cv_cc_efiemu should be used.
28202
28203 * configure.ac: Typo fixes.
28204
28205 * kern/mm.c (grub_zalloc): New function.
28206 (grub_debug_zalloc): Likewise.
28207 * include/grub/mm.h: Declare grub_zalloc() and
28208 grub_debug_zalloc().
28209 * util/misc.c (grub_zalloc): New function.
28210 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28211 instead of grub_malloc(), remove unneeded initializations.
28212 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28213 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28214 * commands/parttool.c (grub_cmd_parttool): Likewise.
28215 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28216 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28217 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28218 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28219 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28220 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28221 (grub_cmd_efiemu_pnvram): Likewise.
28222 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28223 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28224 (grub_iso9660_iterate_dir): Likewise.
28225 * fs/jfs.c (grub_jfs_opendir): Likewise.
28226 * fs/ntfs.c (list_file): Likewise.
28227 (grub_ntfs_mount): Likewise.
28228 * kern/disk.c (grub_disk_open): Likewise.
28229 * kern/dl.c (grub_dl_load_core): Likewise.
28230 * kern/elf.c (grub_elf_file): Likewise.
28231 * kern/env.c (grub_env_context_open): Likewise.
28232 (grub_env_set): Likewise.
28233 (grub_env_set_data_slot): Likewise.
28234 * kern/file.c (grub_file_open): Likewise.
28235 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28236 * loader/i386/multiboot.c (grub_module): Likewise.
28237 * loader/xnu.c (grub_xnu_create_key): Likewise.
28238 (grub_xnu_create_value): Likewise.
28239 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28240 (read_config_file): Likewise.
28241 * normal/menu_entry.c (make_screen): Likewise.
28242 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28243 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28244 * script/sh/script.c (grub_script_parse): Likewise.
28245 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28246 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28247 * video/readers/png.c (grub_png_output_byte): Likewise.
28248 (grub_video_reader_png): Likewise.
28249
28250 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28251
28252 Enable all targets that can be built by default
28253
28254 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28255 grub-mkfont and grub-fstest if they can be built
28256
28257 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28258
28259 Fix hang and segmentation fault in grub-emu-usb
28260
28261 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28262 * util/usb.c (grub_libusb_devices): likewise
28263 (grub_libusb_init): rename to ...
28264 (GRUB_MOD_INIT (libusb)):...this
28265 (grub_libusb_fini): rename to ..
28266 (GRUB_MOD_FINI (libusb)):...this
28267 * disk/usbms.c (grub_usbms_transfer): fix retry logic
28268 * include/grub/disk.h (grub_raid_init): removed, it's useless
28269 (grub_raid_fini): likewise
28270 (grub_lvm_init): likewise
28271 (grub_lvm_fini): likewise
28272 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
28273 by grub_init_all
28274
28275 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28276
28277 Fix libusb
28278
28279 * Makefile.in (LIBUSB): new macro
28280 * genmk.rb (Utility/print_tail): new method
28281 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
28282 (top level): call util.print_tail at the end.
28283
28284 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28285
28286 Make FreeBSD accept zpool.cache
28287
28288 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
28289 type is /boot/zfs/zpool.cache
28290
28291 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28292
28293 Fix 64-bit efiemu
28294
28295 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
28296 correct wrong typedef
28297 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
28298
28299 2009-07-15 Pavel Roskin <proski@gnu.org>
28300
28301 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
28302 * kern/disk.c (struct grub_disk_cache): Likewise.
28303
28304 * commands/probe.c (options): Typo fix.
28305
28306 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
28307 Increase to 0x5a to accommodate FAT32. Adjust other offsets
28308 accordingly.
28309 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
28310
28311 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
28312 the end of "Error" to make the message more readable.
28313
28314 * boot/i386/pc/boot.S (kernel_segment): Remove.
28315 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
28316 for destination.
28317
28318 * boot/i386/pc/boot.S (boot_version): Remove.
28319 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
28320 Remove.
28321
28322 * include/grub/i386/pc/boot.h: Sort all offsets.
28323 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
28324 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
28325 * boot/i386/pc/boot.S: Assert location of every offset listed in
28326 include/grub/i386/pc/boot.h.
28327
28328 2009-07-13 Pavel Roskin <proski@gnu.org>
28329
28330 * include/grub/i386/coreboot/machine.h: Rename
28331 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
28332 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
28333 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
28334
28335 * kern/dl.c: Force native word size to suppress warnings when
28336 compiling grub-emu.
28337
28338 * kern/device.c (grub_device_iterate): Change struct part_ent to
28339 hold the name, not a pointer to it. Use one grub_malloc() per
28340 partition, not two. Free partition_name if grub_malloc() fails.
28341 Set ents to NULL only before grub_partition_iterate() is called.
28342
28343 2009-07-11 Bean <bean123ch@gmail.com>
28344
28345 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
28346 childname.
28347
28348 2009-07-10 Bean <bean123ch@gmail.com>
28349 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
28350
28351 * kern/ieee1275/openfw.c (grub_children_iterate)
28352 (grub_devalias_iterate): Fix size evaluation for property or path
28353 strings, which was broken since r2132.
28354
28355 2009-07-07 Pavel Roskin <proski@gnu.org>
28356
28357 * commands/search.c (search_file): Merge into ...
28358 (search_fs): ... this. Accept search type as argument.
28359 (grub_cmd_search): Pass search type to search_fs().
28360
28361 * include/grub/util/console.h: New file.
28362 * util/console.c: Use it instead of grub/machine/console.h.
28363 * util/grub-emu.c: Likewise.
28364
28365 * lib/arg.c (find_long_option): Remove.
28366 (find_long): Add `len' argument, make `s' const char *.
28367 (grub_arg_parse): Parse long options in place, not in a
28368 temporary buffer.
28369
28370 2009-07-06 Pavel Roskin <proski@gnu.org>
28371
28372 * commands/search.c (search_fs): Fix potential NULL pointer
28373 dereference.
28374
28375 * commands/search.c (search_fs): Replace QUID macro with quid_fn
28376 function pointer.
28377
28378 2009-07-06 Daniel Mierswa <impulze@impulze.org>
28379
28380 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
28381 comparison.
28382
28383 2009-07-05 Pavel Roskin <proski@gnu.org>
28384
28385 * include/grub/i386/linux.h (struct linux_kernel_params):
28386 Restore padding3, it's still needed.
28387
28388 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
28389 FreeBSD.
28390 * util/osdetect.lua: Likewise.
28391
28392 2009-07-05 Bean <bean123ch@gmail.com>
28393
28394 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
28395
28396 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
28397 (grub_lua_getenv): Likewise.
28398 (grub_lua_setenv): Likewise.
28399 (save_errno): New function.
28400 (push_result): Likewise.
28401 (grub_lua_enum_device): Likewise.
28402 (grub_lua_enum_file): Likewise.
28403 (grub_lua_file_open): Likewise.
28404 (grub_lua_file_close): Likewise.
28405 (grub_lua_file_seek): Likewise.
28406 (grub_lua_file_read): Likewise.
28407 (grub_lua_file_getline): Likewise.
28408 (grub_lua_file_getsize): Likewise.
28409 (grub_lua_file_getpos): Likewise.
28410 (grub_lua_file_eof): Likewise.
28411 (grub_lua_file_exist): Likewise.
28412 (grub_lua_add_menu): Likewise.
28413
28414 * script/lua/grub_lua.h (isupper): New inline function.
28415 (islower): Likewise.
28416 (ispunct): Likewise.
28417 (isxdigit): Likewise.
28418 (strcspn): Change to normal function.
28419 (strpbkr): New function declaration.
28420 (memchr): Likewise.
28421
28422 * script/lua/grub_main.c (scan_str): New function.
28423 (strcspn): Likewise.
28424 (strpbrk): Likewise.
28425 (memchr): Likewise.
28426
28427 * script/lua/linit.c (lualibs): Enable the string library.
28428
28429 * util/osdetect.lua: New file.
28430
28431 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
28432
28433 * include/grub/i386/linux.h (struct linux_kernel_params): Add
28434 `capabilities' member.
28435
28436 2009-07-02 Pavel Roskin <proski@gnu.org>
28437
28438 * genparttoollist.sh: Add missing newline at the end.
28439
28440 2009-07-01 Pavel Roskin <proski@gnu.org>
28441
28442 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
28443
28444 * util/hostdisk.c (open_device): Remove `const' from
28445 `sysctl_size', as sysctlbyname() can change it (in this case it
28446 doesn't actually happen).
28447
28448 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
28449 using signed long int constants.
28450
28451 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
28452 constant to avoid a warning on FreeBSD.
28453
28454 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
28455 where it's needed.
28456
28457 * Makefile.in: Install include/grub/machine symlink.
28458
28459 * Makefile.in: When installing symlinks, use "cp -fR", which
28460 works on FreeBSD and MacOSX.
28461 From Yves Blusseau <cl7m42e02@sneakemail.com>
28462
28463 * kern/dl.c (grub_dl_resolve_symbol): Make static.
28464 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
28465
28466 * util/misc.c: Move grub_reboot() and grub_halt() ...
28467 * util/grub-emu.c: ... here. Make main_env static.
28468 * include/grub/util/misc.h: Remove main_env.
28469
28470 * kern/mm.c: Use correct format to print size_t.
28471
28472 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
28473 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
28474 * kern/powerpc/dl.c: Likewise.
28475 * kern/sparc64/dl.c: Likewise.
28476 * kern/x86_64/dl.c: Likewise.
28477
28478 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28479
28480 Fix grub-emu build on sparc64-ieee1275.
28481
28482 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
28483 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
28484
28485 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28486
28487 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
28488 (grub_reboot, grub_halt): New functions.
28489
28490 * util/i386/pc/misc.c: Delete. Update all users.
28491 * util/sparc64/ieee1275/misc.c: Likewise.
28492 * util/powerpc/ieee1275/misc.c: Likewise.
28493
28494 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28495
28496 * conf/i386.rmk (setjmp_mod_SOURCES)
28497 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
28498 * conf/common.rmk (setjmp_mod_SOURCES)
28499 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
28500 to use $(target_cpu).
28501 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
28502 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
28503 * conf/powerpc-ieee1275.rmk: Likewise.
28504 * conf/sparc64-ieee1275.rmk: Likewise.
28505
28506 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
28507 $(target_cpu) for kern/$(target_cpu)/dl.c.
28508 * conf/i386-efi.rmk: Likewise.
28509 * conf/i386-ieee1275.rmk: Likewise.
28510 * conf/x86_64-efi.rmk: Likewise.
28511 * conf/i386-coreboot.rmk: Likewise.
28512 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
28513 $(target_cpu) for kern/$(target_cpu)/dl.c and for
28514 kern/$(target_cpu)/cache.S.
28515 * conf/sparc64-ieee1275.rmk: Likewise.
28516
28517 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28518
28519 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
28520 type to `grub_uint8_t', and adjust `padding9' accordingly.
28521
28522 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28523
28524 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
28525
28526 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
28527 assembly in final jump, using register constraints.
28528
28529 (grub_linux_boot): For text mode, initialize `have_vga' using
28530 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
28531
28532 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
28533 right before the final jump.
28534
28535 Set `video_mode' to 0x3.
28536
28537 Document initialization of `video_page', `video_mode' and
28538 `video_ega_bx'.
28539
28540 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28541
28542 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
28543 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
28544 and set GRUB_LINUX_FLAG_QUIET appropriately.
28545
28546 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28547
28548 Fix build on Debian / sparc.
28549
28550 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
28551
28552 2009-06-28 Pavel Roskin <proski@gnu.org>
28553
28554 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
28555 fix a warning.
28556
28557 * util/grub.d/10_linux.in: Match SUSE style initrd names.
28558
28559 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28560
28561 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
28562 `err'.
28563
28564 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28565
28566 Revert r2338.
28567
28568 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
28569 file can't be opened. grub_file_open() is already supposed to set
28570 grub_errno / grub_errmsg appropriately.
28571 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28572
28573 2009-06-27 Pavel Roskin <proski@gnu.org>
28574 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28575
28576 * include/grub/dl.h: Include grub/elf.h.
28577 (struct grub_dl): Add symtab field.
28578 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
28579 GRUB_MODULES_MACHINE_READONLY.
28580 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
28581 of the header for read-only modules.
28582 (grub_dl_unload): Free mod->symtab for read-only modules.
28583 * kern/i386/dl.c: Use mod->symtab.
28584 * kern/powerpc/dl.c: Likewise.
28585 * kern/sparc64/dl.c: Likewise.
28586 * kern/x86_64/dl.c: Likewise.
28587
28588 * conf/i386-qemu.rmk: New file.
28589 * kern/i386/qemu/startup.S: Likewise.
28590 * kern/i386/qemu/mmap.c: Likewise.
28591 * boot/i386/qemu/boot.S: Likewise.
28592 * include/grub/i386/qemu/time.h: Likewise.
28593 * include/grub/i386/qemu/serial.h: Likewise.
28594 * include/grub/i386/qemu/kernel.h: Likewise.
28595 * include/grub/i386/qemu/console.h: Likewise.
28596 * include/grub/i386/qemu/boot.h: Likewise.
28597 * include/grub/i386/qemu/init.h: Likewise.
28598 * include/grub/i386/qemu/machine.h: Likewise.
28599 * include/grub/i386/qemu/loader.h: Likewise.
28600 * include/grub/i386/qemu/memory.h: Likewise.
28601
28602 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
28603 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
28604 [qemu] (pkglib_IMAGES): Add `boot.img'.
28605 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
28606 [qemu] (boot_img_FORMAT): New variables.
28607 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
28608 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
28609 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
28610 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28611 [qemu] (kernel_img_FORMAT): New variables.
28612
28613 * configure.ac: Recognise `i386-qemu'.
28614
28615 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
28616 (for no compression).
28617 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
28618 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
28619 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
28620 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
28621 ifdefs).
28622
28623 2009-06-27 Pavel Roskin <proski@gnu.org>
28624
28625 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
28626 read.
28627 * efiemu/prepare32.c: Likewise.
28628 * efiemu/prepare64.c: Likewise.
28629
28630 2009-06-26 Pavel Roskin <proski@gnu.org>
28631
28632 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
28633 * include/grub/elf.h: Define symbols without "32" or "64" based
28634 on GRUB_TARGET_WORDSIZE.
28635 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
28636 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
28637 ELF definitions.
28638 * efiemu/loadcore64.c: Likewise.
28639 * loader/i386/bsd32.c: Likewise.
28640 * loader/i386/bsd64.c: Likewise.
28641 * kern/dl.c: Remove own ELF definitions.
28642 * util/i386/efi/grub-mkimage.c: Likewise.
28643
28644 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
28645
28646 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
28647 segment 0x0 unconditionally, because the reference generated by
28648 GAS is an absolute address.
28649
28650 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28651
28652 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
28653 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
28654
28655 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28656
28657 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
28658 indexes. Check for -f explicitly.
28659 (search_file): Improve error message.
28660 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
28661
28662 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28663
28664 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
28665 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
28666
28667 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28668
28669 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
28670 * conf/i386-ieee1275.rmk: Likewise.
28671 * conf/i386-coreboot.rmk: Likewise.
28672
28673 * kern/i386/pc/startup.S (grub_stop): Remove function.
28674 * kern/i386/ieee1275/startup.S: Likewise.
28675 * kern/i386/coreboot/startup.S: Likewise.
28676 * kern/i386/misc.S (grub_stop): New function.
28677
28678 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28679
28680 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
28681 * kern/i386/realmode.S (real_to_prot): ... to here.
28682
28683 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28684
28685 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
28686 with `kernel.img'.
28687 (kernel_elf_SOURCES): Rename to ...
28688 (kernel_img_SOURCES): ... this.
28689 (kernel_elf_HEADERS): Rename to ...
28690 (kernel_img_HEADERS): ... this. Update all users.
28691 (kernel_elf_ASFLAGS): Rename to ...
28692 (kernel_img_ASFLAGS): ... this.
28693 (kernel_elf_CFLAGS): Rename to ...
28694 (kernel_img_CFLAGS): ... this.
28695 (kernel_elf_LDFLAGS): Rename to ...
28696 (kernel_img_LDFLAGS): ... this.
28697 * conf/i386-coreboot.rmk: Likewise.
28698 * conf/powerpc-ieee1275.rmk: Likewise.
28699
28700 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
28701 with "kernel.img".
28702
28703 2009-06-21 Pavel Roskin <proski@gnu.org>
28704
28705 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
28706 to match nested functions.
28707 * loader/sparc64/ieee1275/linux.c: Likewise.
28708
28709 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
28710
28711 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28712
28713 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
28714 all i386 platforms.
28715
28716 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28717
28718 Fix asm file handling on ELF, and remove workarounds.
28719
28720 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
28721 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
28722 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
28723 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
28724
28725 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
28726
28727 Load BSD ELF modules
28728
28729 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
28730 and loader/i386/bsd64.c
28731 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
28732 (FREEBSD_MODTYPE_ELF_MODULE): New definition
28733 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
28734 (grub_freebsd_load_elfmodule32): New declaration
28735 (grub_freebsd_load_elfmoduleobj64): Likewise
28736 (grub_freebsd_load_elf_meta32): Likewise
28737 (grub_freebsd_load_elf_meta64): Likewise
28738 (grub_freebsd_add_meta): Likewise
28739 (grub_freebsd_add_meta_module): Likewise
28740 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
28741 (grub_freebsd_add_meta_module): Likewise and move module-specific
28742 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
28743 (grub_cmd_freebsd): Add elf-kernel specific parts
28744 based on grub_freebsd_add_meta_module
28745 (grub_cmd_freebsd_module): Add type parsing moved from
28746 grub_freebsd_add_meta_module
28747 (grub_cmd_freebsd_module_elf): New function
28748 (cmd_freebsd_module_elf): New variable
28749 (GRUB_MOD_INIT): Register freebsd_module_elf
28750 * loader/i386/bsd32.c: New file
28751 * loader/i386/bsd64.c: Likewise
28752 * loader/i386/bsdXX.c: Likewise
28753 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
28754 (grub_elf64_load): Likewise
28755 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
28756 All users updated
28757 (grub_elf64_load_hook_t): Likewise
28758
28759 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
28760
28761 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
28762 variable.
28763 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
28764 don't write a menu entry for recovery mode.
28765
28766 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
28767
28768 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
28769 after it's no longer needed.
28770
28771 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
28772
28773 * include/grub/i386/loader.h (grub_linux_prot_size)
28774 (grub_linux_tmp_addr, grub_linux_real_addr)
28775 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
28776 GRUB_MACHINE_PCBIOS.
28777 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
28778 common grub_util_info() call to ...
28779 (generate_image): ... here.
28780 Fix use of uninitialized memory, comparison of signed with
28781 unsigned integers and memory leak.
28782 Remove bogus module address message.
28783
28784 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
28785
28786 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
28787 grub_raid_register
28788 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
28789
28790 2009-06-19 Pavel Roskin <proski@gnu.org>
28791
28792 * configure.ac: Remove stray AC_MSG_CHECKING.
28793
28794 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
28795
28796 * disk/scsi.c (grub_scsi_open): use continue instead of big if
28797
28798 2009-06-18 Pavel Roskin <proski@gnu.org>
28799
28800 * conf/common.rmk: Add fs_file.mod.
28801 * disk/fs_file.c: New file.
28802 * include/grub/disk.h (enum grub_disk_dev_id): Add
28803 GRUB_DISK_DEVICE_FILE_ID.
28804
28805 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28806
28807 Fix build with Apple's toolchain. Part 2
28808
28809 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
28810 a fake start
28811
28812 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28813
28814 Fix build with Apple's toolchain. Part 1
28815
28816 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
28817 for long calls
28818 * configure.ac: remove a leftover AC_MSG_RESULT
28819 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
28820 Apple's toolchain
28821
28822 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28823
28824 Fix warnings
28825
28826 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
28827 (decomp_block): initialize ch
28828 use grub_memcpy instead of memcpy
28829
28830 2009-06-17 Pavel Roskin <proski@gnu.org>
28831
28832 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
28833 version, use declarations needed to use vga_text as the startup
28834 console.
28835
28836 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
28837 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
28838 the kernel.
28839 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
28840 and grub_at_keyboard_fini(), it's done on module load and
28841 unload.
28842
28843 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
28844
28845 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
28846 file can't be found.
28847 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28848
28849 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
28850
28851 Fix newline handling
28852
28853 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
28854 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
28855 (grub_script_yylex): don't segfault on unterminated script
28856 newline terminates command and variable
28857
28858 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
28859
28860 avoid double grub_adjust_range call. Bug reported by David Simner
28861
28862 * kern/disk.c (grub_disk_write): change to raw disk access before
28863 calling disk_read
28864
28865 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
28866
28867 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
28868 spaces, for the benefit of help2man.
28869 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28870
28871 2009-06-16 Pavel Roskin <proski@gnu.org>
28872
28873 * kern/i386/halt.c: Include grub/machine/init.h.
28874 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
28875
28876 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
28877
28878 * util/grub.d/30_os-prober.in: Use ${root} in the generated
28879 drivemap menuentry.
28880
28881 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
28882
28883 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
28884 `echo' command.
28885
28886 2009-06-16 Pavel Roskin <proski@gnu.org>
28887
28888 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
28889 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
28890 save %dx, we only need %dl and we never change it.
28891 * boot/i386/pc/cdboot.S: Don't set the root drive.
28892 * boot/i386/pc/pxeboot.S: Likewise.
28893 * include/grub/i386/pc/boot.h: Remove
28894 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
28895 GRUB_BOOT_MACHINE_DRIVE_CHECK.
28896 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
28897 * kern/i386/pc/init.c (make_install_device): Remove references
28898 to grub_root_drive.
28899 * kern/i386/pc/startup.S: Likewise.
28900 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
28901
28902 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
28903
28904 xnu_uuid command
28905
28906 * commands/xnu_uuid.c: new file
28907 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
28908 (xnu_uuid_mod_SOURCES): new variable
28909 (xnu_uuid_mod_CFLAGS): likewise
28910 (xnu_uuid_mod_LDFLAGS): likewise
28911 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
28912 * conf/i386-ieee1275.rmk: likewise
28913 * conf/i386-pc.rmk: likewise
28914 * conf/powerpc-ieee1275.rmk: likewise
28915 * conf/sparc64-ieee1275.rmk: likewise
28916 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
28917
28918 2009-06-16 Pavel Roskin <proski@gnu.org>
28919
28920 * configure.ac: Avoid '==' in test command, it's not portable.
28921
28922 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
28923
28924 Probe command
28925
28926 * commands/probe.c: new file
28927 * conf/common.rmk (pkglib_MODULES): add probe.mod
28928 (probe_mod_SOURCES): new variable
28929 (probe_mod_CFLAGS): likewise
28930 (probe_mod_LDFLAGS): likewise
28931 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
28932 * conf/i386-ieee1275.rmk: likewise
28933 * conf/i386-pc.rmk: likewise
28934 * conf/powerpc-ieee1275.rmk: likewise
28935 * conf/sparc64-ieee1275.rmk: likewise
28936
28937 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
28938
28939 Fix handling of string like \"hello\" and "a
28940 b"
28941
28942 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
28943 (grub_script_yylex): fix parsing of quoting, escaping and newline
28944
28945 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
28946
28947 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
28948 handling
28949
28950 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
28951
28952 * util/grub-mkconfig.in: Fix parsing of --output option.
28953
28954 2009-06-12 Pavel Roskin <proski@gnu.org>
28955
28956 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
28957 genmk.rb don't need to be generated or installed.
28958
28959 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
28960
28961 * commands/i386/pc/drivemap_int13h.S: add more comments
28962
28963 2009-06-11 Pavel Roskin <proski@gnu.org>
28964
28965 * Makefile.in (uninstall): Uninstall manuals.
28966
28967 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
28968 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
28969 and update-grub_lib in two places.
28970 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
28971
28972 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
28973 a compiler warning.
28974
28975 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
28976 `entry_lo' to fix variable shadowing.
28977
28978 2009-06-11 Christian Franke <franke@computer.org>
28979
28980 * kern/misc.c (__enable_execute_stack): Add missing return type
28981 to prevent gcc warning.
28982
28983 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
28984
28985 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
28986
28987 2009-06-11 Pavel Roskin <proski@gnu.org>
28988
28989 * Makefile.in: Don't rely on any scripts being executable.
28990 Always use $(SHELL) to run shell scripts.
28991
28992 * configure.ac: Always define ___main if using -nostdlib. This
28993 fixes tests on Cygwin.
28994
28995 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
28996
28997 UDF fix
28998
28999 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29000 is in bytes and not in blocks
29001
29002 2009-06-11 Pavel Roskin <proski@gnu.org>
29003
29004 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29005 warning.
29006
29007 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29008
29009 * util/grub.d/30_os-prober.in: Fix a comment. Source
29010 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29011 to set the root device. Place drivemap command in the generated
29012 chain entry.
29013
29014 2009-06-11 Pavel Roskin <proski@gnu.org>
29015
29016 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29017 have long been resolved.
29018
29019 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29020
29021 * util/grub.d/10_linux.in: Capitalise "Linux".
29022
29023 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29024
29025 2009-06-11 Pavel Roskin <proski@gnu.org>
29026
29027 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29028 fix a gcc warning and ensure that the function won't ever exit.
29029
29030 * kern/i386/ieee1275/init.c: Add missing prototype for
29031 grub_stop_floppy().
29032
29033 * loader/ieee1275/multiboot2.c [__i386__]: Include
29034 grub/cpu/multiboot.h.
29035
29036 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29037 casts to short - they are not portable and cause warnings. Fix
29038 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29039
29040 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29041
29042 Drivemap fixes
29043
29044 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29045 new function
29046 (grub_get_root_biosnumber_saved): new variable
29047 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29048 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29049 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29050 %dx after the call if necessary
29051 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29052 (boot_mod_SOURCES): remove
29053 (boot_mod_CFLAGS): remove
29054 (boot_mod_LDFLAGS): remove
29055 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29056 (boot_mod_SOURCES): new variable
29057 (boot_mod_CFLAGS): likewise
29058 (boot_mod_LDFLAGS): likewise
29059 * conf/i386-efi.rmk: likewise
29060 * conf/i386-ieee1275.rmk: likewise
29061 * conf/i386-pc.rmk: likewise
29062 * conf/powerpc-ieee1275.rmk: likewise
29063 * conf/sparc64-ieee1275.rmk: likewise
29064 * conf/x86_64-efi.rmk: likewise
29065 * include/grub/i386/pc/biosnum.h: new file
29066 * lib/i386/pc/biosnum.c: likewise
29067 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29068 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29069 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29070
29071 2009-06-10 Pavel Roskin <proski@gnu.org>
29072
29073 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29074 Use separate variables. Read only the file size at the end, but
29075 not the checksum that we don't use.
29076
29077 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29078 Adjust all callers.
29079
29080 * kern/ieee1275/openfw.c: Remove libc includes.
29081 * kern/ieee1275/cmain.c: Likewise.
29082 * include/grub/ieee1275/ieee1275.h: Likewise.
29083
29084 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29085 compiler warnings.
29086
29087 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29088
29089 * Makefile.in: Remove all trailing whitespace.
29090 * conf/i386-pc.rmk: Likewise.
29091 * conf/powerpc-ieee1275.rmk: Likewise.
29092 * conf/sparc64-ieee1275.rmk: Likewise.
29093 * docs/grub.texi: Likewise.
29094 * docs/texinfo.tex: Likewise.
29095 * disk/fs_uuid.c: Likewise.
29096 * disk/lvm.c: Likewise.
29097 * disk/scsi.c: Likewise.
29098 * disk/ata.c: Likewise.
29099 * disk/ieee1275/ofdisk.c: Likewise.
29100 * disk/i386/pc/biosdisk.c: Likewise.
29101 * disk/host.c: Likewise.
29102 * disk/raid.c: Likewise.
29103 * disk/efi/efidisk.c: Likewise.
29104 * disk/usbms.c: Likewise.
29105 * disk/memdisk.c: Likewise.
29106 * disk/loopback.c: Likewise.
29107 * kern/powerpc/dl.c: Likewise.
29108 * kern/device.c: Likewise.
29109 * kern/dl.c: Likewise.
29110 * kern/sparc64/dl.c: Likewise.
29111 * kern/ieee1275/ieee1275.c: Likewise.
29112 * kern/term.c: Likewise.
29113 * kern/fs.c: Likewise.
29114 * kern/i386/dl.c: Likewise.
29115 * kern/i386/pc/startup.S: Likewise.
29116 * kern/i386/pc/init.c: Likewise.
29117 * kern/i386/pc/mmap.c: Likewise.
29118 * kern/i386/pc/lzo1x.S: Likewise.
29119 * kern/i386/ieee1275/init.c: Likewise.
29120 * kern/i386/realmode.S: Likewise.
29121 * kern/i386/tsc.c: Likewise.
29122 * kern/partition.c: Likewise.
29123 * kern/corecmd.c: Likewise.
29124 * kern/file.c: Likewise.
29125 * kern/efi/efi.c: Likewise.
29126 * kern/efi/init.c: Likewise.
29127 * kern/efi/mm.c: Likewise.
29128 * kern/main.c: Likewise.
29129 * kern/err.c: Likewise.
29130 * kern/env.c: Likewise.
29131 * kern/disk.c: Likewise.
29132 * kern/generic/millisleep.c: Likewise.
29133 * kern/generic/rtc_get_time_ms.c: Likewise.
29134 * kern/misc.c: Likewise.
29135 * kern/parser.c: Likewise.
29136 * genmk.rb: Likewise.
29137 * configure.ac: Likewise.
29138 * boot/i386/pc/diskboot.S: Likewise.
29139 * boot/i386/pc/pxeboot.S: Likewise.
29140 * boot/i386/pc/boot.S: Likewise.
29141 * boot/i386/pc/lnxboot.S: Likewise.
29142 * boot/i386/pc/cdboot.S: Likewise.
29143 * parttool/pcpart.c: Likewise.
29144 * video/readers/tga.c: Likewise.
29145 * video/video.c: Likewise.
29146 * video/bitmap.c: Likewise.
29147 * lib/envblk.c: Likewise.
29148 * lib/i386/setjmp.S: Likewise.
29149 * fs/xfs.c: Likewise.
29150 * fs/afs.c: Likewise.
29151 * fs/fat.c: Likewise.
29152 * fs/ntfs.c: Likewise.
29153 * fs/udf.c: Likewise.
29154 * fs/affs.c: Likewise.
29155 * fs/iso9660.c: Likewise.
29156 * fs/hfs.c: Likewise.
29157 * fs/fshelp.c: Likewise.
29158 * fs/ext2.c: Likewise.
29159 * fs/jfs.c: Likewise.
29160 * fs/reiserfs.c: Likewise.
29161 * fs/hfsplus.c: Likewise.
29162 * fs/minix.c: Likewise.
29163 * fs/cpio.c: Likewise.
29164 * fs/sfs.c: Likewise.
29165 * fs/ufs.c: Likewise.
29166 * efiemu/prepare.c: Likewise.
29167 * efiemu/loadcore_common.c: Likewise.
29168 * efiemu/runtime/efiemu.sh: Likewise.
29169 * efiemu/runtime/efiemu.S: Likewise.
29170 * efiemu/runtime/efiemu.c: Likewise.
29171 * efiemu/pnvram.c: Likewise.
29172 * efiemu/main.c: Likewise.
29173 * efiemu/i386/pc/cfgtables.c: Likewise.
29174 * efiemu/i386/loadcore64.c: Likewise.
29175 * efiemu/i386/loadcore32.c: Likewise.
29176 * efiemu/loadcore.c: Likewise.
29177 * efiemu/symbols.c: Likewise.
29178 * efiemu/mm.c: Likewise.
29179 * include/grub/autoefi.h: Likewise.
29180 * include/grub/datetime.h: Likewise.
29181 * include/grub/term.h: Likewise.
29182 * include/grub/hfs.h: Likewise.
29183 * include/grub/lvm.h: Likewise.
29184 * include/grub/i386/tsc.h: Likewise.
29185 * include/grub/i386/linux.h: Likewise.
29186 * include/grub/i386/xnu.h: Likewise.
29187 * include/grub/i386/efiemu.h: Likewise.
29188 * include/grub/i386/pc/biosdisk.h: Likewise.
29189 * include/grub/i386/pc/memory.h: Likewise.
29190 * include/grub/i386/pc/vbe.h: Likewise.
29191 * include/grub/parttool.h: Likewise.
29192 * include/grub/video.h: Likewise.
29193 * include/grub/memory.h: Likewise.
29194 * include/grub/fs.h: Likewise.
29195 * include/grub/partition.h: Likewise.
29196 * include/grub/xnu.h: Likewise.
29197 * include/grub/efi/api.h: Likewise.
29198 * include/grub/efi/pe32.h: Likewise.
29199 * include/grub/efi/memory.h: Likewise.
29200 * include/grub/multiboot.h: Likewise.
29201 * include/grub/usbdesc.h: Likewise.
29202 * include/grub/multiboot2.h: Likewise.
29203 * include/grub/acpi.h: Likewise.
29204 * include/grub/efiemu/efiemu.h: Likewise.
29205 * include/grub/disk.h: Likewise.
29206 * include/grub/ieee1275/ieee1275.h: Likewise.
29207 * include/grub/net.h: Likewise.
29208 * include/grub/machoload.h: Likewise.
29209 * include/grub/macho.h: Likewise.
29210 * include/multiboot.h: Likewise.
29211 * genmoddep.awk: Likewise.
29212 * normal/main.c: Likewise.
29213 * normal/menu_entry.c: Likewise.
29214 * normal/menu_viewer.c: Likewise.
29215 * normal/completion.c: Likewise.
29216 * normal/cmdline.c: Likewise.
29217 * normal/misc.c: Likewise.
29218 * normal/datetime.c: Likewise.
29219 * bus/usb/usbtrans.c: Likewise.
29220 * bus/usb/ohci.c: Likewise.
29221 * bus/usb/uhci.c: Likewise.
29222 * bus/usb/usb.c: Likewise.
29223 * mmap/efi/mmap.c: Likewise.
29224 * mmap/i386/pc/mmap_helper.S: Likewise.
29225 * mmap/i386/pc/mmap.c: Likewise.
29226 * mmap/i386/mmap.c: Likewise.
29227 * mmap/i386/uppermem.c: Likewise.
29228 * mmap/mmap.c: Likewise.
29229 * commands/acpi.c: Likewise.
29230 * commands/echo.c: Likewise.
29231 * commands/blocklist.c: Likewise.
29232 * commands/loadenv.c: Likewise.
29233 * commands/usbtest.c: Likewise.
29234 * commands/boot.c: Likewise.
29235 * commands/parttool.c: Likewise.
29236 * commands/search.c: Likewise.
29237 * commands/cat.c: Likewise.
29238 * commands/i386/pc/play.c: Likewise.
29239 * commands/i386/pc/drivemap.c: Likewise.
29240 * commands/i386/pc/vbeinfo.c: Likewise.
29241 * commands/i386/pc/acpi.c: Likewise.
29242 * commands/i386/pc/vbetest.c: Likewise.
29243 * commands/ls.c: Likewise.
29244 * commands/cmp.c: Likewise.
29245 * commands/test.c: Likewise.
29246 * commands/efi/acpi.c: Likewise.
29247 * commands/gptsync.c: Likewise.
29248 * commands/help.c: Likewise.
29249 * partmap/amiga.c: Likewise.
29250 * partmap/apple.c: Likewise.
29251 * partmap/acorn.c: Likewise.
29252 * partmap/pc.c: Likewise.
29253 * partmap/sun.c: Likewise.
29254 * partmap/gpt.c: Likewise.
29255 * script/sh/lexer.c: Likewise.
29256 * script/sh/function.c: Likewise.
29257 * font/font.c: Likewise.
29258 * font/font_cmd.c: Likewise.
29259 * loader/powerpc/ieee1275/linux.c: Likewise.
29260 * loader/efi/chainloader.c: Likewise.
29261 * loader/multiboot_loader.c: Likewise.
29262 * loader/macho.c: Likewise.
29263 * loader/i386/multiboot.c: Likewise.
29264 * loader/i386/linux.c: Likewise.
29265 * loader/i386/pc/linux.c: Likewise.
29266 * loader/i386/pc/multiboot2.c: Likewise.
29267 * loader/i386/pc/chainloader.c: Likewise.
29268 * loader/i386/pc/xnu.c: Likewise.
29269 * loader/i386/bsd_trampoline.S: Likewise.
29270 * loader/i386/efi/linux.c: Likewise.
29271 * loader/i386/multiboot_elfxx.c: Likewise.
29272 * loader/i386/bsd_helper.S: Likewise.
29273 * loader/i386/bsd.c: Likewise.
29274 * loader/i386/linux_trampoline.S: Likewise.
29275 * loader/i386/xnu_helper.S: Likewise.
29276 * loader/i386/xnu.c: Likewise.
29277 * loader/i386/bsd_pagetable.c: Likewise.
29278 * loader/i386/multiboot_helper.S: Likewise.
29279 * loader/xnu.c: Likewise.
29280 * loader/xnu_resume.c: Likewise.
29281 * io/gzio.c: Likewise.
29282 * term/efi/console.c: Likewise.
29283 * term/terminfo.c: Likewise.
29284 * term/ieee1275/ofconsole.c: Likewise.
29285 * term/i386/pc/serial.c: Likewise.
29286 * term/i386/pc/vesafb.c: Likewise.
29287 * term/i386/pc/vga.c: Likewise.
29288 * term/usb_keyboard.c: Likewise.
29289 * term/gfxterm.c: Likewise.
29290 * aclocal.m4: Likewise.
29291 * util/lvm.c: Likewise.
29292 * util/grub.d/30_os-prober.in: Likewise.
29293 * util/grub.d/10_hurd.in: Likewise.
29294 * util/console.c: Likewise.
29295 * util/grub-macho2img.c: Likewise.
29296 * util/grub-probe.c: Likewise.
29297 * util/hostfs.c: Likewise.
29298 * util/i386/pc/grub-mkimage.c: Likewise.
29299 * util/i386/pc/grub-setup.c: Likewise.
29300 * util/i386/efi/grub-mkimage.c: Likewise.
29301 * util/grub-mkconfig.in: Likewise.
29302 * util/raid.c: Likewise.
29303 * util/resolve.c: Likewise.
29304 * util/grub-mkdevicemap.c: Likewise.
29305 * util/grub-emu.c: Likewise.
29306 * util/getroot.c: Likewise.
29307 * util/hostdisk.c: Likewise.
29308 * util/usb.c: Likewise.
29309 * util/grub-editenv.c: Likewise.
29310 * util/misc.c: Likewise.
29311
29312 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29313
29314 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
29315 `genparttoollist.sh'.
29316 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
29317 Add `*.sh' to the list find searches for and change `mdate.sh'
29318 to `mdate-sh'.
29319
29320 2009-06-10 Pavel Roskin <proski@gnu.org>
29321
29322 * include/grub/multiboot2.h: Provide compatibility defines for
29323 multiboot2.h.
29324 * include/multiboot2.h: Include stdint.h only if needed, using
29325 angle brackets.
29326 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
29327 grub/multiboot2.h.
29328 * loader/ieee1275/multiboot2.c: Likewise.
29329 * loader/multiboot2.c: Likewise.
29330 * loader/multiboot_loader.c: Likewise.
29331
29332 * configure.ac: Use -nostdlib when probing for the target. It
29333 should not be required to have libc for the target.
29334
29335 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
29336 they fail without libc headers for the target.
29337 * include/grub/powerpc/libgcc.h: Use weak attribute for all
29338 exports.
29339 * include/grub/sparc64/libgcc.h: Likewise. Don't use
29340 preprocessor conditionals.
29341
29342 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
29343 build system doesn't need to be aware of the tar.c internals.
29344
29345 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
29346
29347 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
29348
29349 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
29350
29351 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
29352 disk limit to 26 for IDE, Virtio, Xen and SCSI.
29353
29354 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
29355
29356 * util/i386/pc/grub-install.in: Change the error message if UUIDs
29357 aren't available if ata.mod gets used.
29358
29359 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
29360
29361 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
29362 initialising controller.
29363 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29364
29365 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29366
29367 * util/i386/pc/grub-install.in: Add a parameter --disk-module
29368 to choose between ata and biosdisk module on i386-pc.
29369
29370 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
29371
29372 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
29373 Subclass and Programming Interface fields in terms of the 3 byte
29374 Class Code register.
29375 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29376
29377 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
29378 interface is OHCI. Add grub_dprintf for symmetry with
29379 bus/usb/uhci.c.
29380 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
29381 interface is UHCI. Add interf variable for programming
29382 interface. Print interface with class/subclass.
29383
29384 * bus/usb/ohci.c: Set interf with correct field.
29385
29386 * bus/usb/uhci.c: Remove unneeded doubled lines.
29387 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
29388 Remove whitespace inside comment.
29389
29390 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
29391
29392 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
29393 as fallback an equivalent option without depth.
29394
29395 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29396
29397 Not fail if unable to retrieve C/H/S on LBA disks
29398
29399 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
29400 if unable to retrieve C/H/S on LBA disks
29401
29402 2009-06-08 Pavel Roskin <proski@gnu.org>
29403
29404 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
29405 about aliasing.
29406
29407 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29408
29409 * Makefile.in (uninstall): Remove all $lib_DATA files.
29410
29411 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29412
29413 Bugfix: install on partitionless device
29414
29415 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
29416 is a whole disk
29417
29418 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29419
29420 * Makefile.in (uninstall): Remove all $include_DATA files.
29421
29422 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29423
29424 * commands/true.c: New file. Implement the true and false commands.
29425 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
29426 (true_mod_SOURCES): New variable.
29427 (true_mod_CFLAGS): Likewise.
29428 (true_mod_LDFLAGS): Likewise.
29429
29430 2009-06-05 Colin D Bennett <colin@gibibit.com>
29431
29432 Optimized font character lookup using binary search instead of linear
29433 search. Fonts now are required to have the character index ordered by
29434 code point.
29435
29436 * font/font.c (load_font_index): Verify that fonts have ordered
29437 character indices.
29438 (find_glyph): Use binary search instead of linear search to find a
29439 character in a font.
29440
29441 2009-06-05 Michael Scherer <misc@mandriva.org>
29442
29443 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
29444 uses case sensitive btree.
29445 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
29446 only for case insensitive filesystems.
29447
29448 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
29449
29450 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
29451 * conf/common.rmk (search_mod_CFLAGS): likewise
29452
29453 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29454
29455 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
29456 compensate a compiler bug
29457
29458 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29459
29460 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
29461 instead of '\b'
29462
29463 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29464
29465 Definitions for creating asm symbols with Apple's CC
29466
29467 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
29468 [APPLE_CC] (VARIABLE): likewise
29469
29470 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29471
29472 Disable lnxboot.img when compiled
29473 with Apple's CC
29474
29475 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
29476 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
29477 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
29478 [! APPLE_CC] (CODE_LENG): skip
29479 [! APPLE_CC] (setup_sects): likewise
29480 [! APPLE_CC]: skip filling
29481
29482 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29483
29484 Address in trampolines based on 32-bit registers when compiled
29485 with Apple's CC
29486
29487 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
29488 for addresses
29489 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
29490
29491 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29492
29493 Avoid aliases when compiling with Apple's CC for PCBIOS machine
29494
29495 * kern/misc.c [APPLE_CC] (memcpy): new function
29496 [APPLE_CC] (memmove): likewise
29497 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
29498 (memcpy): define alias conditionally on !APPLE_CC
29499 (memset): likewise
29500 (abort): likewise
29501 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
29502 APPLE_CC are defined
29503 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
29504 (grub_assert_fail): make prototype conditional
29505
29506 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
29509
29510 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
29511 grub-macho2img
29512 (CLEANFILES): add grub-macho2img
29513 (grub_macho2img_SOURCES): new variable
29514 * kern/i386/pc/startup.S (bss_start): new variable
29515 (bss_end): likewise
29516 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
29517 * util/grub-macho2img.c: new file
29518
29519 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29520
29521 Use objconv when compiling with Apple's CC
29522
29523 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
29524 (efiemu64.o): likewise
29525 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
29526 when compiling with Apple's CC
29527 (efiemu64_s.o): likewise
29528 * configure.ac: check for objconv when compiling with Apple's CC
29529 * genmk.rb: use objconv for modules when compiled with Apple's CC
29530
29531 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29532
29533 Define segment as well as section when compiling with
29534 Apple's CC
29535
29536 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
29537 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
29538 (efiemu_convert_pointer): likewise
29539 (efiemu_set_virtual_address_map): likewise
29540 (efiemu_convert_pointer): likewise
29541 (efiemu_getcrc32): likewise
29542 (init_crc32_table): likewise
29543 (reflect): likewise
29544 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
29545 (GRUB_MOD_DEP): likewise
29546
29547 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29548
29549 Allow a compilation without -mcmodel=large
29550
29551 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
29552 when compiled without -mcmodel=large
29553 (filter_memory_map): remove memory post 4 GiB when compiled
29554 without -mcmodel=large
29555 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
29556 TARGET_CFLAGS when -mcmodel=large isn't supported
29557
29558 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29559
29560 Remove nested functions in efiemu core
29561
29562 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
29563
29564 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29565
29566 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
29567
29568 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
29569 temporary storage
29570 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
29571 using Apple's CC
29572 (grub_cpu_is_tsc_supported): likewise
29573 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
29574
29575 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29576
29577 Absolute addressing through constant with Apple's cc
29578
29579 * kern/i386/pc/startup.S: Define necessary constants
29580 and address through it when using ABS with Apple's CC
29581 * boot/i386/pc/diskboot.S: likewise
29582 * boot/i386/pc/boot.S: likewise
29583 * boot/i386/pc/lnxboot.S: likewise
29584 * boot/i386/pc/cdboot.S: likewise
29585 * mmap/i386/pc/mmap_helper.S: likewise
29586 * commands/i386/pc/drivemap_int13h.S: likewise
29587
29588 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29589
29590 Check if compiler is apple cc
29591
29592 * Makefile.in (ASFLAGS): new variable
29593 (TARGET_ASFLAGS): likewise
29594 (TARGET_MODULE_FORMAT): likewise
29595 (TARGET_APPLE_CC): likewise
29596 (OBJCONV): likewise
29597 (TARGET_IMG_CFLAGS): likewise
29598 (TARGET_CPPFLAGS): add includedir
29599 * configure.ac: call grub_apple_cc and grub_apple_target_cc
29600 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
29601 Check for linker script only if compiler isn't Apple's CC
29602 (TARGET_MODULE_FORMAT): set
29603 (TARGET_APPLE_CC): likewise
29604 (TARGET_ASFLAGS): likewise
29605 (ASFLAGS): likewise
29606 Check for objcopy only if compiler isn't Apple's CC
29607 Check for BSS symbol only if compiler isn't Apple's CC
29608 * genmk.rb: adapt nm options if we use Apple's utils
29609 * aclocal.m4 (grub_apple_cc): new test
29610 (grub_apple_target_cc): likewise
29611
29612 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29613
29614 Simplify sed expressions and improve awk
29615
29616 * Makefile.in (install-local): simplify sed expression
29617 * gencmdlist.sh: likewise
29618 * genmoddep.awk: avoid adding module as a dependency of itself
29619
29620 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29621
29622 Add missing start symbols
29623
29624 * boot/i386/pc/boot.S: add start
29625 * boot/i386/pc/pxeboot.S: likewise
29626
29627 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29628
29629 Fix wrong assumptions with grub-mkimage on EFI
29630
29631 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
29632 (relocate_addresses): consider both r_addend and value at offset
29633 (make_mods_section): zerofill modinfo and header
29634 (convert_elf): write prefix here
29635
29636 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29637
29638 Use .asciz instead of .string
29639
29640 * i386/pc/diskboot.S: use .asciz instead of .string
29641 * i386/pc/boot.S: likewise
29642 * include/grub/dl.h (GRUB_MOD_DEP): likewise
29643 (GRUB_MOD_NAME): likewise
29644
29645 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29646
29647 gfxpayload support
29648
29649 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
29650 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
29651 (grub_video_setup): remove
29652 (grub_video_set_mode): new prototype
29653 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
29654 (vid_mode): remove
29655 (linux_vesafb_res): compile only on PCBIOS
29656 (grub_linux_boot): support gfxpayload
29657 * loader/i386/pc/xnu.c (video_hook): new function
29658 (grub_xnu_set_video): support gfxpayload
29659 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
29660 (DEFAULT_VIDEO_HEIGHT): likewise
29661 (DEFAULT_VIDEO_FLAGS): likewise
29662 (DEFAULT_VIDEO_MODE): new definition
29663 (video_hook): new function
29664 (grub_gfxterm_init): use grub_video_set_mode
29665 * util/grub.d/30_os-prober.in: remove explicit modesetting before
29666 loading xnu
29667 * video/video.c (grub_video_setup): removed
29668 (grub_video_set_mode): new function based on grub_gfxterm_init and
29669 grub_video_setup
29670
29671 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29672
29673 Avoid calling biosdisk in drivemap
29674
29675 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
29676 (revparse_biosdisk): likewise
29677 (list_mappings): derive name from id directly
29678 (grub_cmd_drivemap): use tryparse_diskstring
29679
29680 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29681
29682 Script fixes
29683
29684 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
29685 (grub_lexer_param): add tokenonhold
29686 (grub_script_create_cmdline): remove cmdline. All callers updated
29687 (grub_script_function_create): make functionname
29688 grub_script_arg. All callers updated
29689 (grub_script_execute_argument_to_string): new prototype
29690 * kern/parser.c (state_transitions): reorder
29691 (grub_parser_cmdline_state): fix a bug and make more compact
29692 * script/sh/execute.c (grub_script_execute_argument_to_string):
29693 make global
29694 (grub_script_execute_cmdline): use new format
29695 * script/sh/function.c (grub_script_function_create): make functionname
29696 grub_script_arg. All callers updated
29697 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
29698 (grub_script_yylex): remove
29699 (grub_script_yylex2): renamed to ...
29700 (grub_script_yylex): ...renamed
29701 parse the expressions like a${b}c
29702 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
29703 (GRUB_PARSER_TOKEN_VAR): remove
29704 (GRUB_PARSER_TOKEN_NAME): likewise
29705 ("if"): declare as typeless
29706 ("while"): likewise
29707 ("function"): likewise
29708 ("else"): likewise
29709 ("then"): likewise
29710 ("fi"): likewise
29711 (text): remove
29712 (argument): likewise
29713 (script): accept empty scripts and make exit on error
29714 (arguments): use GRUB_PARSER_TOKEN_ARG
29715 (function): likewise
29716 (command): move error handling to script
29717 (menuentry): move grub_script_lexer_ref before
29718 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
29719 argument. All callers updated
29720
29721 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
29722
29723 Prevent GRUB from probing floppies during boot.
29724
29725 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
29726 * commands/search.c (options): Add --no-floppy.
29727 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
29728 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
29729 --no-floppy when searching for UUIDs.
29730
29731 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
29732
29733 Simplify the code duplication in commands/search.c.
29734
29735 * commands/search.c (search_label, search_fs_uuid): Merge into ...
29736 (search_fs): ... this. Update all users.
29737
29738 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
29739
29740 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
29741
29742 2009-05-28 Pavel Roskin <proski@gnu.org>
29743
29744 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
29745 Remove the original symlink explicitly.
29746
29747 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
29748 just one slash. That's how grub_fshelp_find_file() does it.
29749
29750 2009-05-26 Pavel Roskin <proski@gnu.org>
29751
29752 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
29753 to `str'.
29754
29755 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
29756 possibly unused.
29757
29758 2009-05-25 Christian Franke <franke@computer.org>
29759
29760 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
29761 register.
29762 (grub_atapi_identify): Add wait after drive select.
29763 (grub_ata_identify): Do more strict status register check before
29764 calling grub_atapi_identify (). Suppress error message if status
29765 register is 0x00 after command failure. Add status register
29766 check after PIO read to avoid bogus identify due to stuck DRQ.
29767 Thanks to Pavel Roskin for testing.
29768 (grub_device_initialize): Remove unsafe status register check.
29769 Thanks to 'phcoder' for problem report and patch.
29770 Prevent sign extension in debug message.
29771
29772 2009-05-23 Colin D Bennett <colin@gibibit.com>
29773
29774 Cleaned up `include/grub/normal.h'. Grouped prototypes by
29775 definition file, and functions defined in `normal/menu.c' have had
29776 their prototypes moved to `include/grub/menu.h' for consistency.
29777
29778 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
29779 from normal.h.
29780 (grub_menu_get_entry): Likewise.
29781 (grub_menu_get_timeout): Likewise.
29782 (grub_menu_set_timeout): Likewise.
29783 (grub_menu_execute_entry): Likewise.
29784 (grub_menu_execute_with_fallback): Likewise.
29785 (grub_menu_entry_run): Likewise.
29786
29787 * include/grub/normal.h: Re-ordered and grouped function
29788 prototypes by file that the function is defined in.
29789 (grub_menu_execute_callback): Removed; moved to menu.h.
29790 (grub_menu_get_entry): Likewise.
29791 (grub_menu_get_timeout): Likewise.
29792 (grub_menu_set_timeout): Likewise.
29793 (grub_menu_execute_entry): Likewise.
29794 (grub_menu_execute_with_fallback): Likewise.
29795 (grub_menu_entry_run): Likewise.
29796 (grub_menu_addentry): Renamed from this ...
29797 (grub_normal_add_menu_entry): ... to this.
29798
29799 * normal/main.c (grub_menu_addentry): Renamed from this ...
29800 (grub_normal_add_menu_entry): ... to this.
29801
29802 * script/sh/execute.c (grub_script_execute_menuentry): Update
29803 reference to renamed grub_menu_addentry function.
29804
29805 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
29806
29807 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
29808
29809 2009-05-22 Pavel Roskin <proski@gnu.org>
29810
29811 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
29812 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
29813 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
29814 compiling for the i386 targets, but not for the utilities.
29815
29816 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
29817 to grub_uint8_t.
29818 (grub_root_drive): Likewise.
29819 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
29820 remove alignment.
29821 (grub_root_drive): Change size to byte.
29822 (grub_start_addr): Remove.
29823 (grub_end_addr): Likewise.
29824 (grub_apm_bios_info): Likewise.
29825
29826 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
29827
29828 * normal/i386: Remove.
29829 * normal/powerpc: Likewise.
29830 * normal/sparc64: Likewise.
29831 * normal/x86_64: Likewise.
29832
29833 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
29834
29835 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
29836 * loader/i386/linux_trampoline.S: Fix indentation
29837 * loader/i386/xnu_helper.S: Likewise
29838
29839 2009-05-18 Colin D Bennett <colin@gibibit.com>
29840
29841 Display error messages when parsing a Lua statement fails.
29842 Previously, executing a syntactically invalid statement like
29843 ")foo" or "bar;" would silently fail.
29844
29845 * script/lua/grub_main.c (handle_lua_error): New function.
29846 (grub_lua_parse_line): Improved reporting of Lua parser and
29847 execution errors.
29848
29849 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
29850
29851 Remove -Werror which causes build to fail on some systems
29852
29853 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
29854 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
29855 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
29856
29857 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
29858
29859 trampoline for linux on 64-bit platform
29860
29861 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
29862 loader/i386/efi/linux_trampoline.S
29863 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
29864 declaration
29865 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
29866 here
29867 * loader/i386/linux_trampoline.S: moved here
29868 * loader/i386/efi/linux.c (allocate_pages): reserve space for
29869 trampoline
29870 (jumpvector): removed
29871 (grub_linux_trampoline_start): new declaration
29872 (grub_linux_trampoline_end): likewise
29873 (grub_linux_boot): use trampoline when on 64-bit platform
29874 * loader/i386/linux.c: likewise
29875
29876 2009-05-16 Pavel Roskin <proski@gnu.org>
29877
29878 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
29879 const to avoid a warning.
29880 (grub_lua_setenv): Likewise.
29881 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
29882 lmsg to fix a warning.
29883
29884 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
29885
29886 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
29887 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29888 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
29889 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29890 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
29891 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29892 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
29893 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29894
29895 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
29896
29897 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
29898
29899 2009-05-16 Bean <bean123ch@gmail.com>
29900
29901 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
29902 (lua_mod_SOURCES): New variable.
29903 (lua_mod_CFLAGS): Likewise.
29904 (lua_mod_LDFLAGS): Likewise.
29905
29906 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
29907 (setjmp_mod_SOURCES): New variable.
29908 (setjmp_mod_CFLAGS): Likewise.
29909 (setjmp_LDFLAGS): Likewise.
29910
29911 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
29912 (setjmp_mod_SOURCES): New variable.
29913 (setjmp_mod_CFLAGS): Likewise.
29914 (setjmp_LDFLAGS): Likewise.
29915
29916 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
29917 (setjmp_mod_SOURCES): New variable.
29918 (setjmp_mod_CFLAGS): Likewise.
29919 (setjmp_LDFLAGS): Likewise.
29920
29921 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
29922 (setjmp_mod_SOURCES): New variable.
29923 (setjmp_mod_CFLAGS): Likewise.
29924 (setjmp_LDFLAGS): Likewise.
29925
29926 * normal/i386/setjmp.S: Moved from here ...
29927 * lib/i386/setjmp.S: ... Moved here
29928 * normal/x86_64/setjmp.S: Moved from here ...
29929 * lib/x86_64/setjmp.S: ... Moved here
29930 * normal/powerpc/setjmp.S: Moved from here ...
29931 * lib/powerpc/setjmp.S: ... Moved here
29932 * normal/sparc64/setjmp.S: Moved from here ...
29933 * lib/sparc64/setjmp.S: ... Moved here
29934
29935 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
29936 returns_twice in mingw.
29937
29938 * script/lua/grub_lib.c: New file.
29939 * script/lua/grub_lib.h: Likewise.
29940 * script/lua/grub_lua.h: Likewise.
29941 * script/lua/grub_main.c: Likewise.
29942 * script/lua/lapi.c: Likewise.
29943 * script/lua/lapi.h: Likewise.
29944 * script/lua/lauxlib.c: Likewise.
29945 * script/lua/lauxlib.h: Likewise.
29946 * script/lua/lbaselib.c: Likewise.
29947 * script/lua/lcode.c: Likewise.
29948 * script/lua/lcode.h: Likewise.
29949 * script/lua/ldblib.c: Likewise.
29950 * script/lua/ldebug.c: Likewise.
29951 * script/lua/ldebug.h: Likewise.
29952 * script/lua/ldo.c: Likewise.
29953 * script/lua/ldo.h: Likewise.
29954 * script/lua/ldump.c: Likewise.
29955 * script/lua/lfunc.c: Likewise.
29956 * script/lua/lfunc.h: Likewise.
29957 * script/lua/lgc.c: Likewise.
29958 * script/lua/lgc.h: Likewise.
29959 * script/lua/linit.c: Likewise.
29960 * script/lua/liolib.c: Likewise.
29961 * script/lua/llex.c: Likewise.
29962 * script/lua/llex.h: Likewise.
29963 * script/lua/llimits.h: Likewise.
29964 * script/lua/lmathlib.c: Likewise.
29965 * script/lua/lmem.c: Likewise.
29966 * script/lua/lmem.h: Likewise.
29967 * script/lua/loadlib.c: Likewise.
29968 * script/lua/lobject.c: Likewise.
29969 * script/lua/lobject.h: Likewise.
29970 * script/lua/lopcodes.c: Likewise.
29971 * script/lua/lopcodes.h: Likewise.
29972 * script/lua/loslib.c: Likewise.
29973 * script/lua/lparser.c: Likewise.
29974 * script/lua/lparser.h: Likewise.
29975 * script/lua/lstate.c: Likewise.
29976 * script/lua/lstate.h: Likewise.
29977 * script/lua/lstring.c: Likewise.
29978 * script/lua/lstring.h: Likewise.
29979 * script/lua/lstrlib.c: Likewise.
29980 * script/lua/ltable.c: Likewise.
29981 * script/lua/ltable.h: Likewise.
29982 * script/lua/ltablib.c: Likewise.
29983 * script/lua/ltm.c: Likewise.
29984 * script/lua/ltm.h: Likewise.
29985 * script/lua/lua.h: Likewise.
29986 * script/lua/luaconf.h: Likewise.
29987 * script/lua/lualib.h: Likewise.
29988 * script/lua/lundump.c: Likewise.
29989 * script/lua/lundump.h: Likewise.
29990 * script/lua/lvm.c: Likewise.
29991 * script/lua/lvm.h: Likewise.
29992 * script/lua/lzio.c: Likewise.
29993 * script/lua/lzio.h: Likewise.
29994
29995 2009-05-16 Bean <bean123ch@gmail.com>
29996
29997 * include/grub/kernel.h (grub_module_header_types): Add type
29998 OBJ_TYPE_CONFIG.
29999
30000 * kern/main.c (grub_load_config): New function.
30001 (grub_main): Call grub_load_config to read boot config.
30002
30003 * grub-mkimage (generate_image): New parameter config_path.
30004 (options): New option --config.
30005 (main): Parse --config option, and pass it to generate_image.
30006
30007 2009-05-14 Christian Franke <franke@computer.org>
30008
30009 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30010 This fixes build on Cygwin.
30011
30012 2009-05-14 Pavel Roskin <proski@gnu.org>
30013
30014 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30015 jump. This saves two bytes, so the typical case of 2 swapped
30016 drives would fit 32 bytes.
30017
30018 2009-05-13 Pavel Roskin <proski@gnu.org>
30019
30020 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30021 grub_uint32_t to avoid a warning.
30022
30023 * loader/i386/linux.c (allocate_pages): When assigning
30024 real_mode_mem, cast through grub_size_t to fix a warning. The
30025 code already makes sure that the value would fit a pointer.
30026 (grub_linux_setup_video): Cast render_target->data to
30027 grub_size_t to fix a warning.
30028
30029 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30030
30031 * commands/i386/pc/drivemap.c: New file - implement drivemap
30032 command.
30033 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30034 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30035
30036 2009-05-13 Pavel Roskin <proski@gnu.org>
30037
30038 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30039 embedding_area_exists.
30040
30041 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30042
30043 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30044 it easier to understand / work with.
30045 Improve warning messages for cases where there's no embedding area,
30046 or when it is too small (or core.img too large).
30047
30048 2009-05-13 Pavel Roskin <proski@gnu.org>
30049
30050 * loader/i386/pc/multiboot2.c: Add necessary includes for
30051 grub_multiboot2_real_boot().
30052
30053 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30054 PX record is always little-endian. We only need the lower 2
30055 bytes of the mode.
30056
30057 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30058 facilitate code reuse.
30059 (grub_cpio_mount): Use "struct head", not a char buffer. This
30060 fixes a warning reported by gcc 4.4.
30061
30062 * kernel/disk.c (grub_disk_read): Use void pointer for the
30063 buffer.
30064 (grub_disk_write): Use const void pointer for the buffer.
30065 Adjust all callers. Remove unnecessary casts.
30066
30067 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30068
30069 * util/i386/pc/grub-install.in: Update copyright year.
30070
30071 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30072
30073 gptsync
30074
30075 * commands/gptsync.c: new file
30076 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30077 (gptsync_mod_SOURCES): new variable
30078 (gptsync_mod_CFLAGS): likewise
30079 (gptsync_mod_LDFLAGS): likewise
30080 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30081 new definition
30082 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30083 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30084 * conf/i386-ieee1275.rmk: likewise
30085 * conf/i386-pc.rmk: likewise
30086 * conf/powerpc-ieee1275.rmk: likewise
30087
30088 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30089
30090 Fixed grub-emu
30091
30092 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30093 (grub_dl_ref): likewise
30094
30095 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30096
30097 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30098 split in two functions (one for msdos and one for gpt).
30099
30100 2009-05-08 Pavel Roskin <proski@gnu.org>
30101
30102 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30103 not modified.
30104
30105 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30106 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30107 Initialize them with -1. Add sanity check for bad1. Eliminate
30108 nerr variable.
30109
30110 2009-05-08 David S. Miller <davem@davemloft.net>
30111
30112 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30113
30114 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30115
30116 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30117 existence.
30118
30119 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30120
30121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30122 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30123
30124 2009-05-05 David S. Miller <davem@davemloft.net>
30125
30126 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30127
30128 2009-05-05 Pavel Roskin <proski@gnu.org>
30129
30130 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30131 of grub_dl_ref() and grub_dl_unref().
30132 * commands/parttool.c: Remove preprocessor conditionals around
30133 grub_dl_ref() and grub_dl_unref().
30134 * fs/affs.c: Likewise.
30135 * fs/afs.c: Likewise.
30136 * fs/cpio.c: Likewise.
30137 * fs/ext2.c: Likewise.
30138 * fs/fat.c: Likewise.
30139 * fs/hfs.c: Likewise.
30140 * fs/hfsplus.c: Likewise.
30141 * fs/iso9660.c: Likewise.
30142 * fs/jfs.c: Likewise.
30143 * fs/minix.c: Likewise.
30144 * fs/ntfs.c: Likewise.
30145 * fs/reiserfs.c: Likewise.
30146 * fs/sfs.c: Likewise.
30147 * fs/udf.c: Likewise.
30148 * fs/ufs.c: Likewise.
30149 * fs/xfs.c: Likewise.
30150 * include/grub/dl.h: Likewise.
30151 * loader/xnu.c: Likewise.
30152
30153 2009-05-04 Pavel Roskin <proski@gnu.org>
30154
30155 * commands/acpi.c: Remove unused variable my_mod.
30156 * partmap/amiga.c: Likewise.
30157 * partmap/apple.c: Likewise.
30158 * partmap/gpt.c: Likewise.
30159 * partmap/pc.c: Likewise.
30160 * partmap/sun.c: Likewise.
30161 * term/gfxterm.c: Likewise.
30162 * term/i386/pc/vesafb.c: Likewise.
30163 * term/i386/pc/vga.c: Likewise.
30164
30165 2009-05-04 David S. Miller <davem@davemloft.net>
30166
30167 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30168 pointer args to grub_ieee1275_get_property().
30169
30170 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30171
30172 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30173 devices, and do not traverse down under controller nodes.
30174
30175 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30176 (grub_ofdisk_open): Use it to un-escape "," characters.
30177 * kern/disk.c (find_part_sep): New.
30178 (grub_disk_open): Use it to find the first non-escaped ','
30179 character in the disk name.
30180 * util/ieee1275/devicemap.c (escape_of_path): New.
30181 (grub_util_emit_devicemap_entry): Use it.
30182 * util/sparc64/ieee1275/grub-install.in: Update script to
30183 strip partition specifiers properly by not triggering on
30184 '\' escaped ',' characters.
30185
30186 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30187
30188 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30189 to 0x300.
30190 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30191 resolutions.
30192 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30193 on documentation from Wikipedia).
30194
30195 2009-05-04 Pavel Roskin <proski@gnu.org>
30196
30197 * disk/ata.c: Spelling fixes.
30198 * disk/raid.c: Likewise.
30199 * disk/usbms.c: Likewise.
30200 * disk/dmraid_nvidia.c: Likewise.
30201 * kern/ieee1275/openfw.c: Likewise.
30202 * kern/ieee1275/init.c: Likewise.
30203 * kern/ieee1275/cmain.c: Likewise.
30204 * boot/i386/pc/cdboot.S: Likewise.
30205 * video/readers/png.c: Likewise.
30206 * video/i386/pc/vbe.c: Likewise.
30207 * fs/udf.c: Likewise.
30208 * fs/hfs.c: Likewise.
30209 * fs/reiserfs.c: Likewise.
30210 * efiemu/runtime/efiemu.c: Likewise.
30211 * efiemu/main.c: Likewise.
30212 * efiemu/mm.c: Likewise.
30213 * include/grub/elf.h: Likewise.
30214 * include/grub/xnu.h: Likewise.
30215 * include/grub/usbdesc.h: Likewise.
30216 * include/grub/usb.h: Likewise.
30217 * include/grub/script_sh.h: Likewise.
30218 * include/grub/lib/LzmaEnc.h: Likewise.
30219 * include/grub/efiemu/efiemu.h: Likewise.
30220 * include/grub/command.h: Likewise.
30221 * normal/menu.c: Likewise.
30222 * normal/main.c: Likewise.
30223 * normal/datetime.c: Likewise.
30224 * bus/usb/uhci.c: Likewise.
30225 * mmap/i386/uppermem.c: Likewise.
30226 * mmap/mmap.c: Likewise.
30227 * commands/acpi.c: Likewise.
30228 * commands/test.c: Likewise.
30229 * partmap/apple.c: Likewise.
30230 * font/font.c: Likewise.
30231 * loader/sparc64/ieee1275/linux.c: Likewise.
30232 * loader/macho.c: Likewise.
30233 * loader/i386/bsd_trampoline.S: Likewise.
30234 * loader/i386/bsd.c: Likewise.
30235 * loader/xnu.c: Likewise.
30236 * term/i386/pc/vesafb.c: Likewise.
30237 * term/usb_keyboard.c: Likewise.
30238 * util/resolve.c: Likewise.
30239 * util/getroot.c: Likewise.
30240
30241 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30242
30243 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30244
30245 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30246
30247 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30248 build error.
30249
30250 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30251
30252 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30253 parameter only available on BIOS.
30254
30255 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30256
30257 Removed wrong semicolon in declaration
30258
30259 * grub/misc.h (grub_dprintf): remove semicolon
30260
30261 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30262
30263 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30264 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30265 is done by grub_cmd_linux() now).
30266 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
30267 restore video to text mode.
30268 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
30269 indicates lack of "vga=" parameter. "vga=0" is mapped to
30270 `GRUB_LINUX_VID_MODE_NORMAL'.
30271
30272 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30273
30274 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
30275 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
30276 and `normal/script.c'. Add `kern/rescue_reader.c',
30277 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
30278 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
30279 `grub_script.tab.c'.
30280
30281 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30282 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30284 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30285 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30286
30287 * Makefile.in: Remove duplicated 2008 in Copyright line.
30288
30289 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30290
30291 * util/misc.c (grub_util_warn): New function. Emits a warning
30292 unconditionally.
30293 * include/grub/util/misc.h (grub_util_warn): New declaration.
30294
30295 * util/i386/pc/grub-install.in: Understand --force and pass it down
30296 to grub-setup.
30297
30298 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
30299 down to setup().
30300 (setup): Improve error messages and add warnings when requested to
30301 install in odd layouts. Refuse to install using blocklists unless
30302 --force was set.
30303
30304 2009-05-04 martin f. krafft <madduck@madduck.net>
30305
30306 * disk/raid.c (grub_raid_scan_device): Improve debug message.
30307
30308 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 Updated copyright year
30311
30312 * fs/hfsplus.c: updated copyright year
30313
30314 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30315
30316 HFS+ UUID
30317
30318 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
30319 in the space previously used by unused3
30320 (grub_hfsplus_uuid): new function
30321 (grub_hfsplus_fs): added uuid field
30322
30323 2009-05-03 Pavel Roskin <proski@gnu.org>
30324
30325 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
30326 suppress warnings. It's no longer needed.
30327 * disk/host.c: Likewise.
30328 * disk/ata_pthru.c: Likewise.
30329 * disk/loopback.c: Likewise.
30330 * hook/datehook.c: Likewise.
30331 * parttool/pcpart.c: Likewise.
30332 * fs/i386/pc/pxe.c: Likewise.
30333 * fs/ntfscomp.c: Likewise.
30334 * efiemu/main.c: Likewise.
30335 * mmap/mmap.c: Likewise.
30336 * commands/crc.c: Likewise.
30337 * commands/hexdump.c: Likewise.
30338 * commands/hdparm.c: Likewise.
30339 * commands/acpi.c: Likewise.
30340 * commands/echo.c: Likewise.
30341 * commands/minicmd.c: Likewise.
30342 * commands/blocklist.c: Likewise.
30343 * commands/memrw.c: Likewise.
30344 * commands/loadenv.c: Likewise.
30345 * commands/usbtest.c: Likewise.
30346 * commands/lsmmap.c: Likewise.
30347 * commands/boot.c: Likewise.
30348 * commands/parttool.c: Likewise.
30349 * commands/configfile.c: Likewise.
30350 * commands/search.c: Likewise.
30351 * commands/ieee1275/suspend.c: Likewise.
30352 * commands/cat.c: Likewise.
30353 * commands/i386/pc/pxecmd.c: Likewise.
30354 * commands/i386/pc/play.c: Likewise.
30355 * commands/i386/pc/halt.c: Likewise.
30356 * commands/i386/pc/vbeinfo.c: Likewise.
30357 * commands/i386/pc/vbetest.c: Likewise.
30358 * commands/lspci.c: Likewise.
30359 * commands/date.c: Likewise.
30360 * commands/handler.c: Likewise.
30361 * commands/ls.c: Likewise.
30362 * commands/test.c: Likewise.
30363 * commands/cmp.c: Likewise.
30364 * commands/efi/loadbios.c: Likewise.
30365 * commands/efi/fixvideo.c: Likewise.
30366 * commands/halt.c: Likewise.
30367 * commands/help.c: Likewise.
30368 * commands/reboot.c: Likewise.
30369 * hello/hello.c: Likewise.
30370 * script/sh/main.c: Likewise.
30371 * loader/xnu.c: Likewise.
30372 * term/terminfo.c: Likewise.
30373 * term/i386/pc/serial.c: Likewise.
30374 * term/usb_keyboard.c: Likewise.
30375
30376 2009-05-03 David S. Miller <davem@davemloft.net>
30377
30378 * normal/menu.c: Include grub/parser.h
30379
30380 2009-05-03 Pavel Roskin <proski@gnu.org>
30381
30382 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
30383 not char*.
30384 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
30385 Suggested by Javier Martín <lordhabbit@gmail.com>
30386
30387 * util/i386/pc/grub-mkrescue.in: Allow for the case when
30388 efiemu??.o doesn't exist.
30389 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
30390 copying.
30391
30392 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
30393
30394 FreeBSD 64-bit support
30395
30396 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
30397 and loader/i386/bsd_trampoline.S
30398 (bsd_mod_ASFLAGS): new variable
30399 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
30400 (FREEBSD_MODTYPE_KERNEL64): likewise
30401 (grub_bsd64_trampoline_start): likewise
30402 (grub_bsd64_trampoline_end): likewise
30403 (grub_bsd64_trampoline_selfjump): likewise
30404 (grub_bsd64_trampoline_gdt): likewise
30405 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
30406 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
30407 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
30408 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
30409 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30410 of "attrib" member
30411 * loader/i386/bsd_pagetable.c: new file
30412 * loader/i386/bsd_trampoline.S: likewise
30413 * loader/i386/bsd.c (ALIGN_QWORD): new macro
30414 (ALIGN_VAR): likewise
30415 (entry_hi): new variable
30416 (kern_end_mdofs): likewise
30417 (is_64bit): likewise
30418 (grub_freebsd_add_meta): use ALIGN_VAR
30419 (grub_e820_mmap): new declaration
30420 (grub_freebsd_add_mmap): new function
30421 (grub_freebsd_add_meta_module): support 64 bit kernels
30422 (grub_freebsd_list_modules): use ALIGN_VAR
30423 (gdt_descriptor): new declaration
30424 (grub_freebsd_boot): support 64 bit kernels
30425 (grub_bsd_elf64_hook): new function
30426 (grub_bsd_load_elf): support elf64
30427
30428 2009-05-03 Bean <bean123ch@gmail.com>
30429
30430 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
30431 after we get the result of if statement.
30432
30433 2009-05-03 Bean <bean123ch@gmail.com>
30434
30435 * Makefile.in (enable_efiemu): New variable.
30436
30437 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
30438 set.
30439 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
30440 path.
30441 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
30442 path, add -mno-red-zone option.
30443 (efiemu64_s.o): Likewise.
30444 (efiemu64.o): Use macro $^ for source file.
30445
30446 * configure.ac (--enable-efiemu): New option.
30447
30448 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 xnu support
30451
30452 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
30453 (pkglib_MODULES): add xnu.mod
30454 (xnu_mod_SOURCES): new variable
30455 (xnu_mod_CFLAGS): likewise
30456 (xnu_mod_LDFLAGS): likewise
30457 (xnu_mod_ASFLAGS): likewise
30458 * conf/i386-pc.rmk: likewise
30459 * conf/x86_64-efi.rmk: likewise
30460 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
30461 new declaration
30462 * include/grub/i386/macho.h: new file
30463 * include/grub/i386/xnu.h: likewise
30464 * include/grub/macho.h: likewise
30465 * include/grub/machoload.h: likewise
30466 * include/grub/x86_64/macho.h: likewise
30467 * include/grub/x86_64/xnu.h: likewise
30468 * include/grub/xnu.h: likewise
30469 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
30470 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
30471 * loader/i386/efi/xnu.c: new file
30472 * loader/i386/pc/xnu.c: likewise
30473 * loader/i386/xnu.c: likewise
30474 * loader/i386/xnu_helper.S: likewise
30475 * loader/macho.c: likewise
30476 * loader/xnu.c: likewise
30477 * loader/xnu_resume.c: likewise
30478 * util/grub-dumpdevtree: likewise
30479 * include/grub/i386/pit.h: include grub/err.h
30480 (grub_pit_wait): export
30481 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
30482
30483 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30484
30485 Efiemu
30486
30487 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
30488 _linux_efi, linux_efi.
30489 new files in grub-emu
30490 new targets efiemu32.o and efiemu64.o
30491 * loader/linux_normal_efiemu.c: likewise
30492 * loader/i386/efi/linux.c: added preliminary efiemu support
30493 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
30494 files to copy
30495 * include/grub/autoefi.h: new file
30496 * include/grub/i386/efiemu.h: likewise
30497 * include/grub/i386/pc/efiemu.h: likewise
30498 * include/grub/efi/api.h: add LL suffix when necessary
30499 new definitions relating to tables
30500 * include/grub/efiemu/efiemu.h: new file
30501 * include/grub/efiemu/runtime.h: likewise
30502 * efiemu/prepare.c: likewise
30503 * efiemu/loadcore_common.c: likewise
30504 * efiemu/loadcore64.c: likewise
30505 * efiemu/runtime/efiemu.sh: likewise
30506 * efiemu/runtime/efiemu.S: likewise
30507 * efiemu/runtime/efiemu.c: likewise
30508 * efiemu/runtime/config.h: likewise
30509 * efiemu/prepare32.c: likewise
30510 * efiemu/main.c: likewise
30511 * efiemu/modules/pnvram.c: likewise
30512 * efiemu/modules/i386: likewise
30513 * efiemu/modules/i386/pc: likewise
30514 * efiemu/modules/acpi.c: likewise
30515 * efiemu/i386/pc/cfgtables.c: likewise
30516 * efiemu/i386/loadcore64.c: likewise
30517 * efiemu/i386/loadcore32.c: likewise
30518 * efiemu/prepare64.c: likewise
30519 * efiemu/loadcore.c: likewise
30520 * efiemu/symbols.c: likewise
30521 * efiemu/mm.c: likewise
30522 * efiemu/loadcore32.c: likewise
30523
30524 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30525
30526 ACPI spoofing
30527
30528 * commands/acpi.c: new file
30529 * commands/i386/pc/acpi.c: likewise
30530 * commands/efi/acpi.c: likewise
30531 * include/grub/acpi.h: likewise
30532 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
30533 (acpi_mod_SOURCES): new variable
30534 (acpi_mod_CFLAGS): likewise
30535 (acpi_mod_LDFLAGS): likewise
30536 * conf/i386-efi.rmk: likewise
30537 * conf/x86_64-efi.rmk: likewise
30538
30539 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30540
30541 Missing part from mmap patch
30542
30543 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
30544 (grub_mmap_unregister)
30545 (grub_mmap_free_and_unregister): use grub_mmap_register
30546
30547 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30548
30549 Mmap services
30550
30551 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
30552 * loader/i386/linux.c (find_mmap_size): likewise
30553 (allocate_pages): likewise
30554 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
30555 (grub_fill_multiboot_mmap): likewise
30556 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
30557 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
30558 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
30559 (OPENBSD_MMAP_RESERVED): likewise
30560 * include/grub/i386/pc/memory.h: include grub/memory.h
30561 (grub_lower_mem): removed
30562 (grub_upper_mem): likewise
30563 (GRUB_MACHINE_MEMORY_ACPI): new definition
30564 (GRUB_MACHINE_MEMORY_NVS): likewise
30565 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
30566 (GRUB_MACHINE_MEMORY_HOLE): likewise
30567 (grub_machine_mmap_register): likewise
30568 (grub_machine_mmap_unregister): likewise
30569 (grub_machine_get_upper): likewise
30570 (grub_machine_get_lower): likewise
30571 (grub_machine_get_post64): likewise
30572 * include/grub/i386/efi/memory.h: new file
30573 * include/grub/x86_64/efi/memory.h: likewise
30574 * include/grub/efi/memory.h: likewise
30575 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
30576 (mmap_mod_SOURCES): new variable
30577 (mmap_mod_LDFLAGS): likewise
30578 (mmap_mod_ASFLAGS): likewise
30579 * conf/i386-coreboot.rmk: likewise
30580 * conf/i386-ieee1275.rmk: likewise
30581 * conf/i386-efi.rmk: likewise
30582 * conf/x86_64-efi.rmk: likewise
30583 * include/grub/types.h (UINT_TO_PTR): new macro
30584 (PTR_TO_UINT32): likewise
30585 (PTR_TO_UINT64): likewise
30586 * include/grub/memory.h: new file
30587 * mmap/i386/pc/mmap.c: likewise
30588 * mmap/i386/pc/mmap_helper.S: likewise
30589 * mmap/i386/uppermem.c: likewise
30590 * mmap/mmap.c: likewise
30591 * mmap/efi/mmap.c: likewise
30592 * kern/i386/coreboot/init.c (grub_machine_init): don't use
30593 grub_upper_mem
30594 * kern/i386/pc/init.c (grub_lower_mem): removed variable
30595 (grub_upper_mem): likewise
30596 (grub_machine_init): don't use grub_upper_mem,
30597 make grub_lower_mem local
30598 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
30599 grub_mmap_iterate and grub_mmap_get_upper
30600 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
30601
30602 2009-05-02 Bean <bean123ch@gmail.com>
30603
30604 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
30605 script/sh/parser.y.
30606 (pkglib_MODULES): Add normal.mod and sh.mod.
30607 (normal_SOURCES): New variable.
30608 (normal_mod_CFLAGS): Likewise.
30609 (normal_mod_LDFLAGS): Likewise.
30610 (sh_mod_SOURCES): Likewise.
30611 (sh_mod_CFLAGS): Likewise.
30612 (sh_mod_LDFLAGS): Likewise.
30613
30614 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
30615 script/sh/lexer.c_DEPENDENCIES.
30616 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
30617 kern/rescue_reader.c and kern/rescue_parser.c.
30618 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
30619 (grub_emu_SOURCES): Change source files.
30620 (pkglib_MODULES): Remove normal.mod.
30621 (normal_SOURCES): Removed.
30622 (normal_mod_CFLAGS): Likewise.
30623 (normal_mod_LDFLAGS): Likewise.
30624 * conf/i386-coreboot.rmk: Likewise.
30625 * conf/i386-efi.rmk: Likewise.
30626 * conf/i386-ieee1276.rmk: Likewise.
30627 * conf/powerpc-ieee1275.rmk: Likewise.
30628 * conf/sparc64-ieee1275.rmk: Likewise.
30629 * conf/x86_64-efi.rmk: Likewise.
30630
30631 * include/grub/command.h (grub_command_execute): New inline function.
30632
30633 * include/grub/menu.h (grub_menu_entry): Removed commands field.
30634
30635 * include/grub/normal.h: Remove <grub/setjmp.h>.
30636 (grub_fs_module_list): Moved to normal/autofs.c.
30637 (grub_exit_env): Removed.
30638 (grub_command_execute): Likewise.
30639 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
30640 parameter script.
30641 (read_command_list): New function declaration.
30642 (read_fs_list): Likewise.
30643
30644 * include/parser.h: Include <grub/reader.h>.
30645 (grub_parser_split_cmdline): Change type of getline parameter.
30646 (grub_parser): New structure.
30647 (grub_parser_class): New variable.
30648 (grub_parser_execute): New function declaration.
30649 (grub_register_rescue_parser): Likewise.
30650 (grub_parser_register): New inline function.
30651 (grub_parser_unregister): Likewise.
30652 (grub_parser_get_current): Likewise.
30653 (grub_parser_set_current): Likewise.
30654
30655 * include/grub/reader.h: New file.
30656 * kern/reader.c: Likewise.
30657 * kern/rescue_parser.c: Likewise.
30658 * kern/rescue_reader.c: Likewise.
30659 * normal/autofs.c: Likewise.
30660 * normal/dyncmd.c: Likewise.
30661
30662 * include/grub/rescue.h: Removed.
30663 * normal/command.h: Likewise.
30664
30665 * include/grub/script.h: Moved to ...
30666 * include/grub/script_sh.h: ... Moved here.
30667 * normal/execute.c: Moved to ...
30668 * script/sh/execute.c: ... Moved here.
30669 * normal/function.c: Moved to ...
30670 * script/sh/function.c: ... Moved here.
30671 * normal/lexer.c: Moved to ...
30672 * script/sh/lexer.c: ... Moved here.
30673 * normal/parser.y: Moved to ...
30674 * script/sh/parser.y: ... Moved here.
30675 * normal/script.c: Moved to ...
30676 * script/sh/script.c: ... Moved here.
30677
30678 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
30679 <grub/reader.h>.
30680 (grub_exit_env): Removed.
30681 (fs_module_list): Moved to normal/autofs.c.
30682 (grub_file_getline): Don't handle comment here.
30683 (free_menu): Skip removed field entry->commands.
30684 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
30685 script parameter.
30686 (read_config_file): Removed nested parameter, change getline function.
30687 (grub_enter_normal_mode): Removed.
30688 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
30689 (read_command_list): Likewise.
30690 (autoload_fs_module): Moved to normal/autofs.c.
30691 (read_fs_list): Likewise.
30692 (reader_nested): New variable.
30693 (grub_normal_execute): Run parser.sh to switch to sh parser.
30694 (grub_cmd_rescue): Removed.
30695 (cmd_normal): Removed.
30696 (grub_cmd_normal): Unregister itself at the beginning. Don't register
30697 rescue command.
30698 (grub_cmdline_run): New function.
30699 (grub_normal_reader_init): Likewise.
30700 (grub_normal_read_line): Likewise.
30701 (grub_env_write_pager): Likewise.
30702 (cmdline): New variable.
30703 (grub_normal_reader): Likewise.
30704 (GRUB_MOD_INIT): Register normal reader and set as current, register
30705 pager hook, register normal command with grub_register_command_prio,
30706 so that it won't show up in command.lst.
30707 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
30708 grub_fs_autoload_hook.
30709
30710 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
30711 (grub_menu_execute_entry): Replace grub_script_execute with
30712 grub_parser_execute, change parameter to grub_command_execute.
30713
30714 * normal/menu_text.c: Remove <grub/script.h>.
30715
30716 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
30717 and <grub/parser.h>.
30718 (run): Change editor_getline to use new parser interface. Change
30719 parameter to grub_command_execute.
30720
30721 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
30722 <grub/reader.h> and <grub/parser.h>.
30723 (grub_load_normal_mode): Execute normal command.
30724 (grub_main): Call grub_register_core_commands,
30725 grub_register_rescue_parser and grub_register_rescue_reader, use
30726 grub_reader_loop to enter input loop.
30727
30728 * kern/parser.c (grub_parser_split_cmdline): Change type of
30729 getline parameter.
30730 (grub_parser_class): New variable.
30731 (grub_parser_execute): New function.
30732
30733 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
30734 * loader/multiboot2.c: Likewise.
30735 * loader/sparc64/ieee1275/linux.c: Likewise.
30736
30737 * util/grub-emu.c (read_command_list): New dummy function.
30738
30739 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
30740
30741 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
30742 count to 16 for CCISS and IDA.
30743
30744 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
30745
30746 * normal/menu_text.c (grub_wait_after_message): Print a newline
30747 after waiting for user input.
30748
30749 * loader/i386/linux.c: Include `<grub/normal.h>'.
30750 (grub_cmd_linux): Improve the error message about `ask' mode, by
30751 waiting for user input so it's not missed (we can do this, since
30752 user requested interaction).
30753
30754 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30755
30756 Added missing lst to grub-mkrescue
30757
30758 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
30759 and ${input_dir}/parttool.lst
30760
30761 2009-04-30 David S. Miller <davem@davemloft.net>
30762
30763 * util/hostdisk.c (device_is_wholedisk): New function.
30764 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
30765 zero only if device_is_wholedisk() returns true.
30766
30767 * util/hostdisk.c (convert_system_partition_to_system_disk):
30768 Handle virtual disk devices named /dev/vdiskX as found on sparc
30769 and powerpc.
30770
30771 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
30772 lettered partition specifier is found, convert to numbered.
30773
30774 2009-04-29 David S. Miller <davem@davemloft.net>
30775
30776 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
30777 * include/grub/sparc64/ieee1275/memory.h: Likewise.
30778
30779 * normal/command.c: Add missing newline at end of file.
30780
30781 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
30782 warnings.
30783 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
30784 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
30785 grub_ofdisk_read): Likewise, and deal similarly with the fact that
30786 ihandles have a 32-bit type but need to be stored in a "void *".
30787
30788 2009-04-28 Pavel Roskin <proski@gnu.org>
30789
30790 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
30791 not disk. Adjust all dependencies.
30792 (grub_fs_uuid_close): Use grub_device_close(), not
30793 grub_disk_close().
30794
30795 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
30796 parent's partition, don't copy it by reference, as it gets freed
30797 on close.
30798
30799 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
30800
30801 Preboot hooks support
30802
30803 * commands/boot.c (struct grub_preboot_t): new declaration
30804 (preboots_head): new variable
30805 (preboots_tail): likewise
30806 (grub_loader_register_preboot_hook): new function
30807 (grub_loader_unregister_preboot_hook): likewise
30808 (grub_loader_set): launch preboot hooks
30809 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
30810 (grub_loader_register_preboot_hook): new declaration
30811 (grub_loader_unregister_preboot_hook): likewise
30812
30813 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
30814
30815 Warning fix
30816
30817 * disk/scsi.c (grub_scsi_open): added missing cast when
30818 calling grub_dprintf
30819
30820 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
30821
30822 Bug and warning fixes
30823
30824 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
30825 declaration
30826 * commands/test.c (test_parse): fixed bug with file tests and corrected
30827 declaration of find_file
30828
30829 2009-04-26 Pavel Roskin <proski@gnu.org>
30830
30831 * Makefile.in: Don't install empty manual pages if help2man is
30832 missing. Use help2man option for output, not shell redirection.
30833
30834 2009-04-26 David S. Miller <davem@davemloft.net>
30835
30836 * util/grub-mkdevicemap.c (make_device_map): Add missing
30837 NESTED_FUNC_ATTR to process_device().
30838
30839 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
30840
30841 Test command
30842
30843 * commands/test.c: rewritten to use bash-like test
30844
30845 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
30846
30847 Parttool autoloading and improvements
30848
30849 * Makefile.in (pkglib_DATA): add parttool.lst
30850 (parttool.lst): new target
30851 * genmk.rb: generate parttool-*
30852 (CLEANFILES): add #{parttool}
30853 (PARTTOOLFILES): new variable
30854 * genparttoollist.sh: new file
30855 * parttool/pcpart.c (grub_pcpart_boot): more feedback
30856 (grub_pcpart_type): likewise
30857 * commands/parttool.c (helpmsg): new variable
30858 (grub_cmd_parttool): output help if not enough arguments are supplied
30859 autoload modules
30860 (GRUB_MOD_INIT(parttool)): use helpmsg
30861
30862 2009-04-24 David S. Miller <davem@davemloft.net>
30863
30864 Avoiding opening same device multiple times in device iterator.
30865
30866 * kern/device.c: (grub_device_iterate): Define struct part_ent,
30867 and use it to build a list of partitions in iterate_disk() and
30868 iterate_partition().
30869
30870 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
30871 on disk->data.
30872
30873 * disk/ieee1275/nand.c (grub_nand_iterate): Return
30874 grub_devalias_iterate() result instead of unconditional 0.
30875 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
30876 Also, capture hook return value, either directly or via
30877 grub_children_iterate(), and propagate to caller.
30878 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
30879 grub_children_iterate): Return value is now 'int' instead of
30880 'grub_err_t'.
30881 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
30882 like a proper iterator, stopping when hooks return non-zero.
30883 (grub_devalias_iterate): Likewise.
30884
30885 2009-04-23 David S. Miller <davem@davemloft.net>
30886
30887 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
30888
30889 2009-04-22 David S. Miller <davem@davemloft.net>
30890
30891 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
30892 is larger than address_cells, use that value for address_cells too.
30893
30894 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
30895 IEEE1275_MAX_PATH_LEN): Define.
30896 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
30897 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
30898 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
30899 'devtype'. Explicitly NULL terminate devalias expansion.
30900
30901 * util/sparc64/ieee1275/misc.c: New file.
30902 * util/sparc64/ieee1275/grub-setup.c: New file.
30903 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
30904 * util/sparc64/ieee1275/grub-mkimage.c: New file.
30905 * util/sparc64/ieee1275/grub-install.in: New file.
30906 * util/ieee1275/ofpath.c: New file.
30907 * util/ieee1275/devicemap.c: New file.
30908 * util/devicemap.c: New file.
30909 * util/deviceiter.c: New file.
30910 * kern/sparc64/ieee1275/init.c: New file.
30911 * include/grub/util/ofpath.h: New file.
30912 * include/grub/util/deviceiter.h: New file.
30913 * util/grub-mkdevicemap.c: Include deviceiter.h.
30914 Implement using grub_util_emit_devicemap_entry and
30915 grub_util_iterate_devices.
30916 * conf/i386-corebook.rmk: Build util/deviceiter.c and
30917 util/devicemap.c into grub-mkdevicemap
30918 * conf/i386-efi.rmk: Likewise.
30919 * conf/i386-ieee1275.rmk: Likewise.
30920 * conf/i386-pc.rmk: Likewise.
30921 * conf/powerpc-ieee1275.rmk: Likewise.
30922 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
30923 images and installation utilities. Build kernel as image
30924 instead of as elf binary. Use common rules as much as possible.
30925
30926 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
30927
30928 Correct GPT definition
30929
30930 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30931 of "attrib" member
30932
30933 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
30934
30935 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
30936
30937 2009-04-19 David S. Miller <davem@davemloft.net>
30938
30939 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
30940 (grub_rescue_cmd_linux): Rename to...
30941 (grub_cmd_linux): and fix prototype.
30942 (grub_rescue_cmd_initrd): Rename to...
30943 (grub_cmd_initrd): and fix prototype.
30944 (cmd_linux, cmd_initrd): New.
30945 (GRUB_MOD_INIT(linux)): Use grub_register_command().
30946 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
30947
30948 2009-04-17 Pavel Roskin <proski@gnu.org>
30949
30950 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
30951 format.
30952 (grub_ohci_transfer): Likewise.
30953
30954 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
30955
30956 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
30957 return without a value. Fix inconsistent indentation.
30958
30959 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
30960 match struct grub_fs.
30961
30962 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
30963 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
30964 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30965 * commands/lspci.c (grub_lspci_iter): Likewise.
30966
30967 2009-04-16 Bean <bean123ch@gmail.com>
30968
30969 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
30970 value.
30971
30972 2009-04-15 Pavel Roskin <proski@gnu.org>
30973
30974 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
30975 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
30976 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
30977 definitions.
30978
30979 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
30980
30981 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
30982 that no multiple data or metadata areas are supported and `Unknown
30983 metadata header'.
30984
30985 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30986
30987 Move loader out of the kernel
30988
30989 * kern/loader.c: moved to ...
30990 * commands/boot.c: ... moved here
30991 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
30992 * commands/boot.c (grub_cmd_boot): moved here. All users updated
30993 * include/grub/kernel.h (grub_machine_fini): export
30994 * include/grub/loader.h (grub_loader_is_loaded): update declaration
30995 (grub_loader_set): likewise
30996 (grub_loader_unset): likewise
30997 (grub_loader_boot): likewise
30998 * conf/common.rmk: new module boot.mod
30999 (pkglib_MODULES): add boot.mod
31000 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31001 (grub_emu_SOURCES): likewise
31002 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31003 (grub_emu_SOURCES): likewise
31004 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31005 (grub_emu_SOURCES): likewise
31006 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31007 (grub_emu_SOURCES): likewise
31008 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31009 (grub_emu_SOURCES): likewise
31010 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31011 (grub_emu_SOURCES): likewise
31012 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31013 (grub_emu_SOURCES): likewise
31014
31015 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31016
31017 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31018
31019 * kern/misc.c (grub_itoa): Removed function
31020 (grub_ltoa): likewise
31021 (grub_vsprintf): use grub_lltoa
31022
31023 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31024
31025 Restore grub-emu
31026
31027 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31028 * conf/i386-coreboot.rmk: likewise
31029 * conf/i386-ieee1275.rmk: likewise
31030 * conf/powerpc-ieee1275.rmk: likewise
31031
31032 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31033
31034 * INSTALL: Add that `./autogen.sh' needs to be run before
31035 `./configure.'.
31036
31037 2009-04-14 Bean <bean123ch@gmail.com>
31038
31039 * Makefile.in (pkglib_DATA): Add handler.lst.
31040 (handler.lst): New rule.
31041
31042 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31043 * conf/i386-coreboot.rmk: Likewise.
31044 * conf/i386-ieee1275.rmk: Likewise.
31045 * conf/i386-efi.rmk: Likewise.
31046 * conf/x86_64-efi.rmk: Likewise.
31047 * conf/powerpc-ieee1275.rmk: Likewise.
31048 * conf/sparc64-ieee1275.rmk: Likewise.
31049
31050 * genhandlerlist.sh: New file.
31051
31052 * genmk.rb: Add rules to generate handler.lst.
31053
31054 * include/grub/normal.h (grub_file_getline): New function definition.
31055 (read_handler_list): Likewise.
31056 (free_handler_list): Likewise.
31057
31058 * include/grub/term.h (grub_term_register_input): Add name parameter
31059 for auto generation of handler.lst.
31060 (grub_term_register_output): Likewise.
31061
31062 * normal/handler.c: New file.
31063
31064 * normal/main.c (get_line): Renamed to grub_file_getline.
31065 (read_config_file): Use the newly renamed grub_file_getline.
31066 (read_command_list): Likewise.
31067 (read_fs_list): Likewise.
31068 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31069 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31070
31071 * term/efi/console.c (grub_console_init): Add name parameter for auto
31072 generation of handler.lst.
31073 * term/gfxterm.c: Likewise.
31074 * term/i386/pc/at_keyboard.c: Likewise.
31075 * term/i386/pc/console.c: Likewise.
31076 * term/i386/pc/serial.c: Likewise.
31077 * term/i386/pc/vesafb.c: Likewise.
31078 * term/i386/pc/vga.c: Likewise.
31079 * term/i386/pc/vga_text.c: Likewise.
31080 * term/ieee1275/ofconsole.c: Likewise.
31081 * term/usb_keyboard.c: Likewise.
31082
31083 2009-04-14 Bean <bean123ch@gmail.com>
31084
31085 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31086 properly with null character.
31087
31088 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31089
31090 * configure: Remove.
31091 * config.h.in: Likewise.
31092 * stamp-h.in: Likewise.
31093 * DISTLIST: Likewise.
31094 * conf/common.mk: Likewise.
31095 * conf/i386-coreboot.mk: Likewise.
31096 * conf/i386-efi.mk: Likewise.
31097 * conf/i386-ieee1275.mk: Likewise.
31098 * conf/i386.mk: Likewise.
31099 * conf/i386-pc.mk: Likewise.
31100 * conf/powerpc-ieee1275.mk: Likewise.
31101 * conf/sparc64-ieee1275.mk: Likewise.
31102 * conf/x86_64-efi.mk: Likewise.
31103
31104 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31105 develop on GRUB.
31106
31107 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31108 David S. Miller <davem@davemloft.net>
31109
31110 * util/hostdisk.c (make_device_name): Fix buffer length
31111 calculations.
31112
31113 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31114
31115 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31116 <sys/param.h> and <sys/sysctl.h>.
31117 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31118 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31119 opening the device and reset them afterwards.
31120
31121 2009-04-13 Pavel Roskin <proski@gnu.org>
31122
31123 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31124 Reported by John Stanley <jpsinthemix@verizon.net>
31125
31126 2009-04-13 Robert Millan <rmh@aybabtu.com>
31127
31128 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31129 that name for menuentries when appropriate.
31130
31131 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31132
31133 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31134
31135 2009-04-13 Robert Millan <rmh@aybabtu.com>
31136
31137 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31138 to Linux, simply abort telling the user it's no longer supported.
31139
31140 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31141
31142 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31143 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31144 `freebsd_loadenv' only when devices.hints exist.
31145
31146 2009-04-13 Pavel Roskin <proski@gnu.org>
31147
31148 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31149
31150 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31151
31152 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31153 partition number.
31154 (grub_drive): Likewise.
31155
31156 2009-04-13 David S. Miller <davem@davemloft.net>
31157
31158 * kern/sparc64/ieee1275/ieee1275.c: New file.
31159 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31160 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31161 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31162 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31163 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31164 grub_ieee1275_alloc_physmem): Declare new exported functions.
31165
31166 * include/grub/sparc64/ieee1275/loader.h: New file.
31167 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31168 * include/grub/sparc64/kernel.h: Likewise.
31169 * loader/sparc64/ieee1275/linux.c: Likewise.
31170
31171 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31172 (grub_fstest_SOURCES): Likewise.
31173
31174 * util/hostdisk.c (make_device_name): Do not make any assumptions
31175 about the length of drive names.
31176
31177 * kern/dl.c (grub_dl_load_file): Close file immediately when
31178 we are done using it.
31179
31180 2009-04-12 David S. Miller <davem@davemloft.net>
31181
31182 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31183 values. Noticed by Pavel Roskin.
31184
31185 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31186 target compiler.
31187
31188 * genmk.rb: Add more flexible image type specification, also
31189 pass --strip-unneeded to objcopy.
31190 * conf/i386-pc.rmk: Use *_FORMAT.
31191 * conf/i386-pc.mk: Rebuilt.
31192
31193 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31194 (OFDISK_HASH_SZ): Define.
31195 (ofdisk_hash): New hash table.
31196 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31197 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31198 instead of device phandle which is not unique.
31199
31200 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31201 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31202 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31203 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31204 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31205 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31206 GRUB_KERNEL_MACHINE_DATA_END): Define.
31207 (grub_kernel_image_size, grub_total_module_size): Declare.
31208
31209 2009-04-12 Pavel Roskin <proski@gnu.org>
31210
31211 * configure.ac: Change the logic when we check for target tools.
31212 Do it when the target is specified and it's different from the
31213 specified value of the host.
31214
31215 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31216
31217 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31218 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31219 GNU/kFreeBSD. Check if a device is a character device. Use
31220 DIOCGMEDIASIZE to get the size.
31221 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31222 support for GNU/kFreeBSD.
31223 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31224 is a character device instead of a block device. Add support for
31225 FreeBSD device names.
31226
31227 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31228 is a character device instead of a block device.
31229
31230 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31231 is a character device instead of a block device.
31232
31233 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31234
31235 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31236 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31237 FreeBSD. Check if a device is a character device. Use
31238 DIOCGMEDIASIZE to get the size.
31239 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31240 support for FreeBSD.
31241 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31242 is a character device instead of a block device. Add support for
31243 FreeBSD device names.
31244
31245 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31246 a character device instead of a block device.
31247 (grub_util_check_char_device): New function.
31248
31249 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31250 a character device instead of a block device.
31251
31252 * include/grub/util/getroot.h (grub_util_check_char_device): New
31253 prototype.
31254
31255 2009-04-11 David S. Miller <davem@davemloft.net>
31256
31257 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31258 static libgcc.
31259 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31260 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31261 function, if present.
31262 (__bswapdi2): Likewise.
31263
31264 * include/grub/sparc64/ieee1275/boot.h: New file.
31265 * boot/sparc64/ieee1275/boot.S: Likewise.
31266 * boot/sparc64/ieee1275/diskboot.S: Likewise.
31267
31268 * kern/misc.c (grub_ltoa): New function.
31269 (grub_vsprintf): Use it to format 'long' integers.
31270
31271 2009-04-10 David S. Miller <davem@davemloft.net>
31272
31273 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
31274 slots are of type grub_ieee1275_cell_t.
31275 (grub_nand_read): Likewise.
31276 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
31277 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
31278 macros are used to compare values in arg/ret block of the call.
31279 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31280 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
31281 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
31282 grub_ieee1275_instance_to_path, grub_ieee1275_write,
31283 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
31284 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
31285 grub_ieee1275_close, grub_ieee1275_set_property,
31286 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
31287 grub_ieee1275_cell_t.
31288 * kern/ieee1275/openfw.c (grub_map): Likewise.
31289 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
31290 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
31291
31292 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
31293 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
31294 (grub_devalias_iterate): Likewise.
31295
31296 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
31297
31298 UFS improvements
31299
31300 * fs/ufs.c (INODE_NBLOCKS): new definition
31301 (struct grub_ufs_dirent): added fields for non-BSD dirents
31302 (grub_ufs_get_file_block): fixed double indirect handling
31303 (grub_ufs_lookup_symlink): use more robust way to determine whether
31304 symlink is inline
31305 (grub_ufs_find_file): support for non-BSD dirents
31306 (grub_ufs_dir): support for non-BSD dirents
31307
31308 2009-04-10 Bean <bean123ch@gnail.com>
31309
31310 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
31311 attribute, otherwise the size would be wrong for i386 platform.
31312
31313 * include/grub/pci.h (grub_pci_read_word): New inline function.
31314 (grub_pci_read_byte): Likewise.
31315 (grub_pci_write): Likewise.
31316 (grub_pci_write_word): Likewise.
31317 (grub_pci_write_byte): Likewise.
31318
31319 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
31320
31321 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
31322 (find_framebuf): Scan pci to locate the frame buffer address.
31323
31324 * commands/efi/fixvideo.c: New file.
31325
31326 * commands/efi/loadbios.c: Likewise.
31327
31328 * commands/memrw.c: Likewise.
31329
31330 * util/grub-dumpbios.in: Likewise.
31331
31332 * conf/common.rmk (grub-dumpbios): New utility.
31333 (pkglib_MODULES): New module memrw.mod.
31334 (memrw_mod_SOURCE): New macro.
31335 (memrw_mod_CFLAGS): Likewise.
31336 (memrw_mod_LDFLAGS): Likewise.
31337
31338 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
31339 fixvideo.mod.
31340 (loadbios_mod_SOURCE): New macro.
31341 (loadbios_mod_CFLAGS): Likewise.
31342 (loadbios_mod_LDFLAGS): Likewise.
31343 (fixvideo_mod_SOURCE): Likewise.
31344 (fixvideo_mod_CFLAGS): Likewise.
31345 (fixvideo_mod_LDFLAGS): Likewise.
31346
31347 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
31348 fixvideo.mod.
31349 (loadbios_mod_SOURCE): New macro.
31350 (loadbios_mod_CFLAGS): Likewise.
31351 (loadbios_mod_LDFLAGS): Likewise.
31352 (fixvideo_mod_SOURCE): Likewise.
31353 (fixvideo_mod_CFLAGS): Likewise.
31354 (fixvideo_mod_LDFLAGS): Likewise.
31355
31356 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
31357
31358 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
31359
31360 2009-04-07 David S. Miller <davem@davemloft.net>
31361
31362 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
31363 support for R_SPARC_OLO10 relocations. Fix compile warning for
31364 R_SPARC_WDISP30 case.
31365 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
31366
31367 2009-04-06 Pavel Roskin <proski@gnu.org>
31368
31369 * include/grub/misc.h (ARRAY_SIZE): New macro.
31370 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
31371 New macro.
31372 * loader/i386/linux.c (allocate_pages): Use free_pages().
31373 (grub_linux_unload): Don't use free_pages().
31374 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
31375 wrong index. Treat all other modes as text modes.
31376 (grub_cmd_linux): Initialize vid_mode unconditionally to
31377 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
31378
31379 * commands/help.c (print_command_help): Use cmd->prio, not
31380 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
31381
31382 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
31383
31384 Parttool
31385
31386 * parttool/pcpart.c: new file
31387 * commands/parttool.c: likewise
31388 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
31389 (parttool_mod_SOURCES): new variable
31390 (parttool_mod_CFLAGS): likewise
31391 (parttool_mod_LDFLAGS): likewise
31392 (pcpart_mod_SOURCES): likewise
31393 (pcpart_mod_CFLAGS): likewise
31394 (pcpart_mod_LDFLAGS): likewise
31395 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
31396 and parttool/pcpart.c
31397 * conf/i386-efi.rmk: likewise
31398 * conf/i386-ieee1275.rmk: likewise
31399 * conf/i386-pc.rmk: likewise
31400 * conf/powerpc-ieee1275.rmk: likewise
31401 * conf/sparc64-ieee1275.rmk: likewise
31402 * conf/x86_64-ieee1275.rmk: likewise
31403
31404 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31405
31406 Support for mtime and further expandability of dir command
31407
31408 * include/grub/lib/datetime.h: moved to ...
31409 * include/grub/datetime.h: ... moved here and added
31410 declaration of grub_unixtime2datetime. All users updated
31411 * include/grub/fs.h: new syntax for dir and mtime functions in
31412 struct grub_fs
31413 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
31414 and GRUB_FSHELP_FLAGS_MASK
31415 * commands/ls.c (grub_ls_list_files): Write mtime in long format
31416 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
31417 (grub_ext2_mtime): new function
31418 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
31419 (grub_hfsplus_mtime): new function
31420 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
31421 (GRUB_UFS_ATTR_FILE): likewise
31422 (GRUB_UFS_ATTR_LNK): likewise
31423 (struct grub_ufs_sblock): new fields mtime
31424 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
31425 all users updated
31426 (grub_ufs_dir): mtime support
31427 (grub_ufs_mtime): new function
31428 * fs/affs.c (grub_affs_dir): use new dir syntax
31429 * fs/afs.c (grub_afs_dir): likewise
31430 * fs/cpio.c (grub_cpio_dir): likewise
31431 * fs/fat.c (grub_fat_find_dir): likewise
31432 * fs/hfs.c (grub_hfs_dir): likewise
31433 * fs/iso9660.c (grub_iso9660_dir): likewise
31434 * fs/jfs.c (grub_jfs_dir): likewise
31435 * fs/minix.c (grub_minix_dir): likewise
31436 * fs/ntfs.c (grub_ntfs_dir): likewise
31437 * fs/reiserfs.c (grub_reiserfs_dir): likewise
31438 * fs/sfs.c (grub_sfs_dir): likewise
31439 * fs/xfs.c (grub_xfs_dir): likewise
31440 * util/hostfs.c (grub_hostfs_dir): likewise
31441 * lib/datetime.c: moved to ...
31442 * normal/datetime.c: ... moved here
31443 (grub_unixtime2datetime): new function
31444 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
31445 * normal/completion.c (iterate_dir): use new dir syntax
31446 * normal/misc.c (grub_normal_print_device_info): tell the
31447 last modification time of a volume
31448 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
31449 * conf/common.rmk: added lib/datetime.c to ls.mod
31450 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
31451 (normal_mod_SOURCES): likewise
31452 (datetime_mod_SOURCES): Removed lib/datetime.c
31453 * conf/i386-efi.rmk: likewise
31454 * conf/i386-ieee1275.rmk: likewise
31455 * conf/i386-pc.rmk: likewise
31456 * conf/powerpc-ieee1275.rmk: likewise
31457 * conf/sparc64-ieee1275.rmk: likewise
31458 * conf/x86_64-efi.rmk: likewise
31459
31460 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31461
31462 Trim trailing spaces in FAT label and support mtools-like labels
31463
31464 * fs/fat.c (grub_fat_iterate_dir): New function based
31465 on grub_fat_find_dir
31466 (grub_fat_find_dir): use grub_fat_iterate_dir
31467 (grub_fat_label): likewise
31468
31469 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
31470
31471 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
31472 and command.h
31473 remove extraneous kernel_elf_HEADERS
31474
31475 2009-04-04 Bean <bean123ch@gnail.com>
31476
31477 * include/grub/util/misc.h: Add dummy function fsync for mingw.
31478
31479 * util/misc.c: Likewise.
31480
31481 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31482
31483 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
31484 instead of grub_printf.
31485
31486 2009-04-03 Robert Millan <rmh@aybabtu.com>
31487
31488 * loader/i386/linux.c (grub_linux_setup_video): Fill
31489 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
31490 values from `mode info' structure instead of hardcoded
31491 values.
31492
31493 2009-04-01 Pavel Roskin <proski@gnu.org>
31494
31495 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
31496 unused now.
31497 * genmk.rb: Likewise.
31498 * configure.ac: Likewise.
31499
31500 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
31501
31502 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
31503 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
31504
31505 2009-04-01 David S. Miller <davem@davemloft.net>
31506
31507 * normal/sparc64/setjmp.S: Fix setjmp implementation.
31508 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
31509 (grub_setjmp): Mark with 'returns_twice' attribute.
31510 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
31511 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
31512 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
31513
31514 2009-04-01 Robert Millan <rmh@aybabtu.com>
31515
31516 Reapply fix from 2008-07-28 which was accidentally reverted; also
31517 perform the same fix to a similar check in same function.
31518
31519 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31520 with the same number are found, just use issue a warning with
31521 grub_dprintf(), as this error has been reported to be non-fatal.
31522
31523 2009-03-31 Pavel Roskin <proski@gnu.org>
31524
31525 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
31526 for cross-compilation.
31527
31528 2009-03-30 Robert Millan <rmh@aybabtu.com>
31529
31530 Fix i386-ieee1275 build.
31531
31532 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
31533 Remove declaration.
31534
31535 2009-03-30 Pavel Roskin <proski@gnu.org>
31536
31537 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
31538 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
31539 zero-terminated, rely only on the strlen value. Fix comparison
31540 of strings differing in length.
31541
31542 2009-03-30 Robert Millan <rmh@aybabtu.com>
31543
31544 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
31545 checking for abi version. Improve error messages on BIOS to notify
31546 user about `linux16' command.
31547
31548 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
31549
31550 Leak fixes
31551
31552 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
31553 in case of collision
31554 * disk/scsi.c (grub_scsi_open): free scsi in case of error
31555
31556 2009-03-29 Robert Millan <rmh@aybabtu.com>
31557
31558 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
31559 set `vid_mode' accordingly.
31560 (grub_linux_boot): Process `vid_mode' and set video mode.
31561
31562 2009-03-29 Robert Millan <rmh@aybabtu.com>
31563
31564 * util/grub.d/10_linux.in (linux_entry): New function.
31565 Factorize generation of Linux boot entries.
31566
31567 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
31568
31569 Make the format of Environment Block plain text. The boot loader
31570 part is not tested well yet.
31571
31572 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
31573 (buffer): Removed.
31574 (envblk): Likewise.
31575 (usage): Remove "info" and "clear". Add "unset". Update the
31576 description of "set", as this does not delete variables any
31577 longer.
31578 (create_envblk_file): Complete rewrite.
31579 (open_envblk_file): Likewise.
31580 (cmd_info): Removed.
31581 (cmd_list): Likewise.
31582 (cmd_set): Likewise.
31583 (cmd_clear): Likewise.
31584 (list_variables): New function.
31585 (write_envblk): Likewise.
31586 (set_variables): Likewise.
31587 (unset_variables): Likewise.
31588 (main): Complete rewrite.
31589
31590 * commands/loadenv.c (buffer): Removed.
31591 (envblk): Likewise.
31592 (open_envblk_file): New function.
31593 (read_envblk_file): Complete rewrite.
31594 (grub_cmd_load_env): Likewise.
31595 (grub_cmd_list_env): Likewise.
31596 (struct blocklist): New struct.
31597 (free_blocklists): New function.
31598 (check_blocklists): Likewise.
31599 (write_blocklists): Likewise.
31600 (grub_cmd_save_env): Complete rewrite.
31601
31602 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
31603 a plain text signature.
31604 (GRUB_ENVBLK_MAXLEN): Removed.
31605 (struct grub_envblk): Complete rewrite.
31606 (grub_envblk_find): Removed.
31607 (grub_envblk_insert): Likewise.
31608 (grub_envblk_open): New prototype.
31609 (grub_envblk_set): Likewise.
31610 (grub_envblk_delete): Put const to VALUE.
31611 (grub_envblk_iterate): Put const to NAME and VALUE.
31612 (grub_envblk_close): New prototype.
31613 (grub_envblk_buffer): New inline function.
31614 (grub_envblk_size): Likewise.
31615
31616 * lib/envblk.c: Include grub/mm.h.
31617 (grub_env_find): Removed.
31618 (grub_envblk_open): New function.
31619 (grub_envblk_close): Likewise.
31620 (escaped_value_len): Likewise.
31621 (find_next_line): Likewise.
31622 (grub_envblk_insert): Removed.
31623 (grub_envblk_set): New function.
31624 (grub_envblk_delete): Complete rewrite.
31625 (grub_envblk_iterate): Likewise.
31626
31627 2009-03-28 Robert Millan <rmh@aybabtu.com>
31628
31629 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
31630 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
31631 variables. Use 16-bit loader.
31632 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
31633 loader.
31634 * kern/i386/loader.S (grub_linux_boot): Rename to ...
31635 (grub_linux16_boot): ... this. Update all users.
31636 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
31637 (grub_linux_boot): ... this. Update all users.
31638
31639 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
31640 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
31641 commands to `linux16' and `initrd16'.
31642 (GRUB_MOD_FINI(linux)): Rename to ...
31643 (GRUB_MOD_FINI(linux16)): ... this.
31644
31645 2009-03-24 Pavel Roskin <proski@gnu.org>
31646
31647 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
31648 not just for compilation.
31649
31650 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
31651
31652 Move multiboot helper out of kernel
31653
31654 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
31655 `loader/i386/multiboot_helper.S'.
31656 * conf/i386-coreboot.rmk: Likewise
31657 * conf/i386-ieee1275.rmk: Likewise
31658
31659 * kern/i386/loader.S: Move multiboot helpers from here...
31660 * loader/i386/multiboot_helper.S: ...moved here
31661 * include/grub/i386/loader.h: Move declarations of multiboot
31662 helpers from here...
31663 * include/grub/i386/multiboot.h: ...moved here
31664 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
31665
31666 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31667
31668 * kern/env.c (grub_env_context_open): Added an argument to specify
31669 whether a new context inherits exported variables from current
31670 one. This is useful when making a sandbox to interpret a config
31671 file.
31672 All callers updated.
31673
31674 * include/grub/env.h (grub_env_context_open): Updated the prototype.
31675
31676 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31677
31678 * kern/env.c (grub_env_context_close): Fix memory leaks.
31679
31680 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31681
31682 * normal/main.c (grub_normal_execute): Added an argument
31683 BATCH to specify if an interactive interface should be provided
31684 after reading a config file.
31685 All callers updated.
31686 (read_command_list): Prevent being executed twice.
31687 (read_fs_list): Likewise.
31688
31689 * include/grub/normal.h (grub_normal_execute): Updated the
31690 prototype.
31691
31692 2009-03-22 Pavel Roskin <proski@gno.org>
31693
31694 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
31695 _start.
31696 * kern/i386/pc/startup.S: Likewise.
31697 * kern/i386/efi/startup.S: Likewise.
31698 * kern/i386/ieee1275/startup.S: Likewise.
31699 * kern/i386/coreboot/startup.S: Likewise.
31700 * kern/x86_64/efi/startup.S: Likewise.
31701
31702 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
31703 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
31704 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
31705
31706 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
31707
31708 Bugfixes in multiboot for bugs uncovered by solaris kernel.
31709
31710 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
31711 limit detection.
31712 Use vaddr of correct segment for entry_point.
31713
31714 2009-03-21 Bean <bean123ch@gmail.com>
31715
31716 * commands/blocklist.c: Add include file <grub/command.h>, remove
31717 <grub/normal.h> and <grub/arg.h>.
31718 (grub_cmd_blocklist): Use the new command interface.
31719 (GRUB_MOD_INIT): Likewise.
31720 (GRUB_MOD_FINI): Likewise.
31721 * commands/boot.c: Likewise.
31722 * commands/cat.c: Likewise.
31723 * commands/cmp.c: Likewise.
31724 * commands/configfile.c: Likewise.
31725 * commands/crc.c: Likewise.
31726 * commands/echo.c: Likewise.
31727 * commands/halt.c: Likewise.
31728 * commands/handler.c: Likewise.
31729 * commands/hdparm.c: Likewise.
31730 * commands/help.c: Likewise.
31731 * commands/hexdump.c: Likewise.
31732 * commands/loadenv.c: Likewise.
31733 * commands/ls.c: Likewise.
31734 * commands/lsmmap.c: Likewise.
31735 * commands/lspci.c: Likewise.
31736 * commands/loadenv.c: Likewise.
31737 * commands/read.c: Likewise.
31738 * commands/reboot.c: Likewise.
31739 * commands/search.c: Likewise.
31740 * commands/sleep.c: Likewise.
31741 * commands/test.c: Likewise.
31742 * commands/usbtest.c: Likewise.
31743 * commands/videotest.c: Likewise.
31744 * commands/i386/cpuid.c: Likewise.
31745 * commands/i386/pc/halt.c: Likewise.
31746 * commands/i386/pc/play.c: Likewise.
31747 * commands/i386/pc/pxecmd.c: Likewise.
31748 * commands/i386/pc/vbeinfo.c: Likewise.
31749 * commands/i386/pc/vbetest.c: Likewise.
31750 * commands/ieee1275/suspend.c: Likewise.
31751 * disk/loopback.c: Likewise.
31752 * font/font_cmd.c: Likewise.
31753 * hello/hello.c: Likewise.
31754 * loader/efi/appleloader.c: Likewise.
31755 * loader/efi/chainloader.c: Likewise.
31756 * loader/i386/bsd.c: Likewise.
31757 * loader/i386/efi/linux.c: Likewise.
31758 * loader/i386/ieee1275/linux.c: Likewise.
31759 * loader/i386/linux.c: Likewise.
31760 * loader/i386/pc/chainloader.c: Likewise.
31761 * loader/i386/pc/linux.c: Likewise.
31762 * loader/powerpc/ieee1275/linux.c: Likewise.
31763 * loader/multiboot_loader.c: Likewise.
31764 * term/gfxterm.c: Likewise.
31765 * term/i386/pc/serial.c: Likewise.
31766 * term/terminfo.c: Likewise.
31767
31768 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
31769 * term/i386/pc/vga.c: Likewise.
31770 * video/readers/jpeg.c: Likewise.
31771 * video/readers/png.c: Likewise.
31772 * video/readers/tga.c: Likewise.
31773
31774 * util/grub-fstest (cmd_loopback): Removed.
31775 (cmd_blocklist): Likewise.
31776 (cmd_ls): Likewise.
31777 (grub_register_command): Likewise.
31778 (grub_unregister_command): Likewise.
31779 (execute_command): Use grub_command_find to locate command and execute
31780 it.
31781
31782 * include/grub/efi/chainloader.h: Removed.
31783 * loader/efi/chainloader_normal.c: Likewise.
31784 * loader/i386/bsd_normal.c: Likewise.
31785 * loader/i386/pc/chainloader_normal.c: Likewise.
31786 * loader/i386/pc/multiboot_normal.c: Likewise.
31787 * loader/linux_normal.c: Likewise.
31788 * loader/multiboot_loader_normal.c: Likewise.
31789 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31790
31791 * gencmdlist.sh: Scan new registration command grub_register_extcmd
31792 and grub_register_command_p1.
31793
31794 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
31795 kern/command.c, lib/arg.c and commands/extcmd.c.
31796 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
31797 (minicmd_mod_SOURCES): New variable.
31798 (minicmd_mod_CFLAGS): Likewise.
31799 (minicmd_mod_LDFLAGS): Likewise.
31800 (extcmd_mod_SOURCES): Likewise.
31801 (extcmd_mod_CFLAGS): Likewise.
31802 (extcmd_mod_LDFLAGS): Likewise.
31803 (boot_mod_SOURCES): Removed.
31804 (boot_mod_CFLAGS): Likewise.
31805 (boot_mod_LDFLAGS): Likewise.
31806
31807 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
31808 kern/corecmd.c.
31809 (kernel_img_HEADERS): Add command.h.
31810 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
31811 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
31812 and lib/arg.c.
31813 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
31814 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
31815 remove the corresponding normal mode command.
31816 (normal_mod_SOURCES): Remove normal/arg.c.
31817 * conf/i386-coreboot.rmk: Likewise.
31818 * conf/i386-efi.rmk: Likewise.
31819 * conf/i386-ieee1275.rmk: Likewise.
31820 * conf/powerpc-ieee1275.rmk: Likewise.
31821 * conf/x86_64-efi.rmk: Likewise.
31822
31823 * include/grub/arg.h: Move from here ...
31824 * include/grub/lib/arg.h: ... to here.
31825
31826 * normal/arg.c: Move from here ...
31827 * lib/arg.c: ... to here.
31828
31829 * commands/extcmd.c: New file.
31830 * commands/minicmd.c: Likewise.
31831 * include/grub/command.h: Likewise.
31832 * include/grub/extcmd.h: Likewise.
31833 * kern/command.c: Likewise.
31834 * kern/corecmd.c: Likewise.
31835
31836 * kern/list.c (grub_list_iterate): Return int instead of void.
31837 (grub_list_insert): New function.
31838 (grub_prio_list_insert): Likewise.
31839
31840 * kern/rescue.c (grub_rescue_command): Removed.
31841 (grub_rescue_command_list): Likewise.
31842 (grub_rescue_register_command): Likewise.
31843 (grub_rescue_unregister_command): Likewise.
31844 (grub_rescue_cmd_boot): Move to minicmd.c
31845 (grub_rescue_cmd_help): Likewise.
31846 (grub_rescue_cmd_info): Likewise.
31847 (grub_rescue_cmd_boot): Likewise.
31848 (grub_rescue_cmd_testload): Likewise.
31849 (grub_rescue_cmd_dump): Likewise.
31850 (grub_rescue_cmd_rmmod): Likewise.
31851 (grub_rescue_cmd_lsmod): Likewise.
31852 (grub_rescue_cmd_exit): Likewise.
31853 (grub_rescue_print_devices): Moved to corecmd.c.
31854 (grub_rescue_print_files): Likewise.
31855 (grub_rescue_cmd_ls): Likewise.
31856 (grub_rescue_cmd_insmod): Likewise.
31857 (grub_rescue_cmd_set): Likewise.
31858 (grub_rescue_cmd_unset): Likewise.
31859 (attempt_normal_mode): Use grub_command_find to get normal module.
31860 (grub_enter_rescue_mode): Use grub_register_core_commands to register
31861 commands, remove grub_rescue_register_command calls.
31862
31863 * normal/command.c (grub_register_command): Removed.
31864 (grub_unregister_command): Likewise.
31865 (grub_command_find): Likewise.
31866 (grub_iterate_commands): Likewise.
31867 (rescue_command): Likewise.
31868 (export_command): Moved to corecmd.c.
31869 (set_command): Removed.
31870 (unset_command): Likewise.
31871 (insmod_command): Likewise.
31872 (rmmod_command): Likewise.
31873 (lsmod_command): Likewise.
31874 (grub_command_init): Likewise.
31875
31876 * normal/completion.c (iterate_command): Use cmd->prio to check for
31877 active command.
31878 (complete_arguments): Use grub_extcmd_t structure to find options.
31879 (grub_normal_do_completion): Change function grub_iterate_commands to
31880 grub_command_iterate.
31881
31882 * normal/execute.c (grub_script_execute_cmd): No need to parse
31883 argument here.
31884
31885 * normal/main.c (grub_dyncmd_dispatcher): New function.
31886 (read_command_list): Register unload commands as dyncmd.
31887 (grub_cmd_normal): Use new command interface, register rescue,
31888 unregister normal at entry, register normal, unregister rescue at exit.
31889
31890 * include/grub/list.h (grub_list_test_t): New type.
31891 (grub_list_iterate): Return int instead of void.
31892 (grub_list_insert): New function.
31893 (GRUB_AS_NAMED_LIST_P): New macro.
31894 (GRUB_AS_PRIO_LIST): Likewise.
31895 (GRUB_AS_PRIO_LIST_P): Likewise.
31896 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
31897 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
31898 (grub_prio_list): New structure.
31899 (grub_prio_list_insert): New function.
31900 (grub_prio_list_remove): New inline function.
31901
31902 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
31903 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
31904 (GRUB_COMMAND_FLAG_MENU): Likewise.
31905 (GRUB_COMMAND_FLAG_BOTH): Likewise.
31906 (GRUB_COMMAND_FLAG_TITLE): Likewise.
31907 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
31908 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
31909 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
31910 (grub_command): Likewise.
31911 (grub_register_command): Likewise.
31912 (grub_command_find): Likewise.
31913 (grub_iterate_commands): Likewise.
31914 (grub_command_init): Likewise.
31915 (grub_arg_parse): Likewise.
31916 (grub_arg_show_help): Likewise.
31917
31918 * include/grub/rescue.h (grub_rescue_register_command): Removed.
31919 (grub_rescue_unregister_command): Likewise.
31920
31921 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
31922 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
31923 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
31924
31925 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
31926 grub_rescue_cmd_initrd.
31927 * include/grub/i386/loader.h: Likewise.
31928 * include/grub/x86_64/loader.h: Likewise.
31929
31930 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
31931
31932 2009-03-21 Bean <bean123ch@gmail.com>
31933
31934 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
31935 instead of stat in mingw environment.
31936
31937 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
31938
31939 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
31940
31941 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
31942 AC_CONFIG_LINKS.
31943
31944 2009-03-21 Bean <bean123ch@gmail.com>
31945
31946 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
31947 out of range error.
31948
31949 2009-03-18 Michel Dänzer <michel@daenzer.net>
31950
31951 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
31952 checking inode flags for EXT4_EXTENTS_FLAG.
31953
31954 2009-03-18 Robert Millan <rmh@aybabtu.com>
31955
31956 * loader/i386/linux.c: Include `<grub/video.h>' and
31957 `<grub/i386/pc/vbe.h>'..
31958 (grub_linux_setup_video): New function. Loosely based on the EFI one.
31959 (grub_linux32_boot): Attempt to configure video settings with
31960 grub_linux_setup_video().
31961 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
31962 to avoid grub_console_fini() which would step out of graphical mode
31963 unconditionally.
31964
31965 2009-03-14 Robert Millan <rmh@aybabtu.com>
31966
31967 Fix build on powerpc.
31968 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
31969
31970 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
31971
31972 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
31973 background image command.
31974
31975 2009-03-12 Colin D Bennett <colin@gibibit.com>
31976
31977 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
31978 (grub_gfxterm_putchar): Extract pairs of identical calls to
31979 draw_cursor out of conditional blocks.
31980
31981 2009-03-11 Pavel Roskin <proski@gnu.org>
31982
31983 * fs/hfs.c (grub_hfs_strncasecmp): New function.
31984 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
31985
31986 2009-03-11 Robert Millan <rmh@aybabtu.com>
31987
31988 * loader/i386/multiboot_elfxx.c
31989 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
31990
31991 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
31992
31993 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
31994 `kern/handler.c'.
31995
31996 2009-03-11 Robert Millan <rmh@aybabtu.com>
31997
31998 * loader/i386/multiboot.c (code_size): New variable.
31999 (grub_multiboot): Define offsets by adding to `code_size' rather
32000 than subtracting from `grub_multiboot_payload_size'. Provide
32001 4-byte alignment to MBI and others by increasing
32002 `boot_loader_name_length' appropriately.
32003
32004 * loader/i386/multiboot_elfxx.c
32005 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32006
32007 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32008
32009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32010 `fs/ext2.c'.
32011
32012 2009-03-08 Robert Millan <rmh@aybabtu.com>
32013
32014 Make loader/i386/linux.c usable on i386-pc again.
32015
32016 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32017 memory to heap.
32018 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32019 `#error' stanza.
32020
32021 2009-03-07 Bean <bean123ch@gmail.com>
32022
32023 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32024 allocation.
32025
32026 2009-03-06 Robert Millan <rmh@aybabtu.com>
32027
32028 Fix display issue on terminals with screen size other than 80x25
32029 (e.g. gfxterm with resolution higher than 640x480).
32030
32031 * normal/main.c (grub_normal_init_page): Display title text in a
32032 position relative to the center of the terminal instead of relying
32033 on a hardcoded offset.
32034
32035 2009-03-04 Robert Millan <rmh@aybabtu.com>
32036
32037 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32038 installed.
32039
32040 * Makefile.in (host_kernel): New variable.
32041 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32042 scripts instead of just the windows one.
32043 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32044
32045 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32046
32047 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32048 `kern/handler.c'.
32049 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32050 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32051 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32053 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32054 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32055
32056 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32057
32058 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32059 or if there's no space for the disk label and print the partition number on a
32060 invalid magic.
32061
32062 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32063
32064 * util/misc.c: Include <time.h>.
32065 (grub_millisleep): New function.
32066
32067 2009-03-04 Bean <bean123ch@gmail.com>
32068
32069 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32070 another option -mno-red-zone.
32071
32072 * commands/handler.c: Change module description.
32073
32074 * kern/handler.c: Add missing space at the end of description line.
32075
32076 * kern/list.c: Likewise.
32077
32078 2009-03-03 Robert Millan <rmh@aybabtu.com>
32079
32080 Move more components to the relocation area, and fix mbi pointer
32081 handling to use the destination rather than the origin (thanks to
32082 Vladimir Serbinenko for spotting).
32083
32084 * loader/i386/multiboot.c (mbi_dest): New variable.
32085 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32086 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32087 relocation area.
32088
32089 2009-03-01 Bean <bean123ch@gmail.com>
32090
32091 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32092 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32093 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32094 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32095
32096 * loader/i386/efi/linux.c (acpi_guid): New variable.
32097 (acpi_guid): Likewise.
32098 (EBDA_SEG_ADDR): New constant.
32099 (LOW_MEM_ADDR): Likewise.
32100 (FAKE_EBDA_SEG): Likewise.
32101 (fake_bios_data): New function.
32102 (grub_linux_boot): Call fake_bios_data.
32103
32104 2009-03-01 Bean <bean123ch@gmail.com>
32105
32106 * commands/terminal.c: Removed.
32107
32108 * commands/handler.c: New file.
32109
32110 * include/grub/list.h: Likewise.
32111
32112 * include/grub/handler.h: Likewise.
32113
32114 * kern/list.c: Likewise.
32115
32116 * kern/handler.c: Likewise.
32117
32118 * kern/term.h: Include header file <grub/handler.h>.
32119 (grub_term_input): Move next field to the beginning.
32120 (grub_term_output): Likewise.
32121 (grub_term_input_class): New variable.
32122 (grub_term_output_class): Likewise.
32123 (grub_term_register_input): Changed to inline function.
32124 (grub_term_register_output): Likewise.
32125 (grub_term_unregister_input): Likewise.
32126 (grub_term_unregister_output): Likewise.
32127 (grub_term_set_current_input): Likewise.
32128 (grub_term_set_current_output): Likewise.
32129 (grub_term_get_current_input): Likewise.
32130 (grub_term_get_current_output): Likewise.
32131 (grub_term_iterate_input): Removed.
32132 (grub_term_iterate_output): Likewise.
32133
32134 * kern/term.c (grub_term_list_input): Removed.
32135 (grub_term_list_output): Likewise.
32136 (grub_term_input_class): New variable.
32137 (grub_term_output_class): Likewise.
32138 (grub_cur_term_input): Change variable as macro.
32139 (grub_cur_term_output): Likewise.
32140 (grub_term_register_input): Removed.
32141 (grub_term_register_output): Likewise.
32142 (grub_term_unregister_input): Likewise.
32143 (grub_term_unregister_output): Likewise.
32144 (grub_term_set_current_input): Likewise.
32145 (grub_term_set_current_output): Likewise.
32146 (grub_term_iterate_input): Likewise.
32147 (grub_term_iterate_output): Likewise.
32148 (grub_term_get_current_input): Likewise.
32149 (grub_term_get_current_output): Likewise.
32150
32151 * util/grub-editenv.c: Include header file <grub/handler.h>.
32152 (grub_term_get_current_input): Removed.
32153 (grub_term_get_current_output): Likewise.
32154 (grub_term_input_class): New variable.
32155 (grub_term_output_class): Likewise.
32156
32157 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32158 (grub_term_get_current_output): Likewise.
32159 (grub_term_input_class): New variable.
32160 (grub_term_output_class): Likewise.
32161
32162 * util/grub-probe.c (grub_term_get_current_input): Removed.
32163 (grub_term_get_current_output): Likewise.
32164 (grub_term_input_class): New variable.
32165 (grub_term_output_class): Likewise.
32166
32167 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32168 (grub_term_get_current_output): Likewise.
32169 (grub_term_input_class): New variable.
32170 (grub_term_output_class): Likewise.
32171
32172 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32173 (terminal_mod_SOURCES): Likewise.
32174 (terminal_mod_CFLAGS): Likewise.
32175 (terminal_mod_LDFLAGS): Likewise.
32176
32177 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32178 handler.c.
32179 (kernel_img_SOURCES): Add list.c and handler.c.
32180 (kernel_img_HEADERS): Add list.h and handler.h.
32181
32182 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32183 handler.c.
32184 (kernel_mod_SOURCES): Add list.c and handler.c.
32185 (kernel_mod_HEADERS): Add list.h and handler.h.
32186
32187 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32188 handler.c.
32189 (kernel_elf_SOURCES): Add list.c and handler.c.
32190 (kernel_elf_HEADERS): Add list.h and handler.h.
32191
32192 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32193 handler.c.
32194 (kernel_elf_SOURCES): Add list.c and handler.c.
32195 (kernel_elf_HEADERS): Add list.h and handler.h.
32196
32197 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32198 handler.c.
32199 (kernel_mod_SOURCES): Add list.c and handler.c.
32200 (kernel_mod_HEADERS): Add list.h and handler.h.
32201
32202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32203 handler.c.
32204 (kernel_elf_SOURCES): Add list.c and handler.c.
32205 (kernel_elf_HEADERS): Add list.h and handler.h.
32206
32207 2009-02-27 Robert Millan <rmh@aybabtu.com>
32208
32209 Factorize elf32 / elf64 code in Multiboot loader. This will
32210 prevent it from getting out of sync again.
32211
32212 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32213 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32214 grub_multiboot_load_elf64): Move from here ...
32215 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32216 grub_multiboot_load_elf): ... to here (new file).
32217
32218 2009-02-27 Robert Millan <rmh@aybabtu.com>
32219
32220 * util/grub.d/10_linux.in: Rename "single-user mode" to
32221 "recovery mode".
32222
32223 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32224
32225 Don't leak in SCSI code.
32226 * disk/scsi.c (grub_scsi_close): free `scsi'.
32227
32228 2009-02-27 Robert Millan <rmh@aybabtu.com>
32229
32230 * loader/i386/pc/multiboot.c: Move from here ...
32231 * loader/i386/multiboot.c: ... to here. Update all users.
32232
32233 2009-02-27 Robert Millan <rmh@aybabtu.com>
32234
32235 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32236 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32237
32238 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32239
32240 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32241 b-tree.
32242
32243 2009-02-27 Robert Millan <rmh@aybabtu.com>
32244
32245 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32246 `0x' qualifier as 0 when base is specified as parameter).
32247
32248 2009-02-24 Bean <bean123ch@gmail.com>
32249
32250 * configure.ac: Check for -mcmodel=large in x86_64 target.
32251
32252 * include/grub/efi/api.h (efi_call_10): New macro.
32253 (efi_wrap_10): New function.
32254
32255 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32256 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32257 (GRUB_PE32_REL_BASED_LOW): Likewise.
32258 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32259 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32260 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32261 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32262 (GRUB_PE32_REL_BASED_REL): Likewise.
32263 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32264 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32265 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
32266
32267 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
32268 issue.
32269
32270 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
32271 (efi_wrap_10): New function.
32272
32273 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
32274
32275 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
32276 MB/MBP model (NV chipset).
32277 (devdata_devs): Add devpath_5 to the list.
32278
32279 * load/i386/efi/linux.c (video_base): Remove variable.
32280 (RGB_MASK): New macro.
32281 (RGB_MAGIC): Likewise.
32282 (LINE_MIN): Likewise.
32283 (LINE_MAX): Likewise.
32284 (FBTEST_STEP): Likewise.
32285 (FBTEST_COUNT): Likewise.
32286 (fb_list): New variable.
32287 (grub_find_video_card): Remove function.
32288 (find_framebuf): New function.
32289 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
32290 line length.
32291
32292 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
32293 problem for x86_64.
32294
32295 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
32296
32297 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
32298
32299 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
32300 coding tool name.
32301
32302 2009-02-22 Robert Millan <rmh@aybabtu.com>
32303
32304 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
32305 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
32306 in our relocation, instead of using it directly from heap. Also
32307 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
32308
32309 2009-02-21 Robert Millan <rmh@aybabtu.com>
32310
32311 Implement USB keyboard support (based on patch by Marco Gerards)
32312
32313 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
32314 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
32315 (usb_keyboard_mod_LDFLAGS): New variables.
32316
32317 * term/usb_keyboard.c: New file.
32318
32319 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
32320
32321 Corrected wrong declaration
32322
32323 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
32324
32325 2009-02-14 Christian Franke <franke@computer.org>
32326
32327 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
32328 (grub_lspci_iter): Print class code and programming interface byte.
32329
32330 2009-02-14 Christian Franke <franke@computer.org>
32331
32332 * gendistlist.sh: Ignore `.svn' directories.
32333
32334 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
32335
32336 * fs/fat.c: Add 2009 to Copyright line.
32337
32338 2009-02-14 Christian Franke <franke@computer.org>
32339
32340 * commands/hdparm.c: New file. Provides `hdparm' command
32341 which sends ATA commands via grub_disk_ata_pass_through ().
32342
32343 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
32344
32345 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
32346 and <grub/cpu/io.h> to include/grub/ata.h.
32347 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
32348 (GRUB_CDROM_SECTOR_SIZE): Remove.
32349 (GRUB_ATA_*): Move to include/grub/ata.h.
32350 (GRUB_ATAPI_*): Likewise.
32351 (enum grub_ata_commands): Likewise.
32352 (enum grub_ata_timeout_milliseconds): Likewise.
32353 (struct grub_ata_device): Likewise.
32354 (grub_ata_regset): Likewise.
32355 (grub_ata_regget): Likewise.
32356 (grub_ata_regset2): Likewise.
32357 (grub_ata_regget2): Likewise.
32358 (grub_ata_check_ready): Likewise.
32359 (grub_ata_wait_not_busy): Remove static, exported in
32360 include/grub/ata.h.
32361 (grub_ata_wait_drq): Likewise.
32362 (grub_ata_pio_read): Likewise.
32363
32364 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
32365 function for hdparm.mod.
32366
32367 * include/grub/ata.h: New file, contains declarations from
32368 disk/ata.c.
32369 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
32370
32371 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
32372 (grub_disk_ata_pass_through): New exported variable.
32373
32374 * kern/disk.c (grub_disk_ata_pass_through): New variable.
32375
32376 2009-02-13 Colin D Bennett <colin@gibibit.com>
32377
32378 Support multiple fallback entries, and provide an API to support
32379 executing default+fallback menu entries. Renamed the `terminal' menu
32380 viewer to `text'.
32381
32382 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
32383 variable declaration.
32384 (grub_menu_execute_callback): New structure declaration.
32385 (grub_menu_execute_callback_t): New typedef.
32386 (grub_menu_execute_with_fallback): New function declaration.
32387 (grub_menu_get_entry): Likewise.
32388 (grub_menu_get_timeout): Likewise.
32389 (grub_menu_set_timeout): Likewise.
32390
32391 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
32392
32393 * normal/menu.c (grub_wait_after_message): Moved to
32394 `normal/menu_text.c'.
32395 (draw_border): Likewise.
32396 (print_message): Likewise.
32397 (print_entry): Likewise.
32398 (print_entries): Likewise.
32399 (grub_menu_init_page): Likewise.
32400 (get_entry_number): Likewise.
32401 (print_timeout): Likewise.
32402 (run_menu): Likewise.
32403 (grub_menu_execute_entry): Likewise.
32404 (show_text_menu): Likewise.
32405 (get_and_remove_first_entry_number): New function.
32406 (grub_menu_execute_with_fallback): Likewise.
32407 (get_entry): Renamed to ...
32408 (grub_menu_get_entry): .. this and made it global.
32409 (get_timeout): Renamed to ...
32410 (grub_menu_get_timeout): ... this and made it global.
32411 (set_timeout): Renamed to ...
32412 (grub_menu_set_timeout): ... this and made it global.
32413 (grub_normal_terminal_menu_viewer): Renamed to ...
32414 (grub_normal_text_menu_viewer): ... this.
32415
32416 * normal/menu_text.c: New file. Extracted text-menu-specific code
32417 from normal/menu.c.
32418
32419 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
32420 (normal_mod_SOURCES): Likewise.
32421
32422 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32423 (normal_mod_SOURCES): Likewise.
32424
32425 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32426 (normal_mod_SOURCES): Likewise.
32427
32428 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
32429 (normal_mod_SOURCES): Likewise.
32430
32431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32432 (normal_mod_SOURCES): Likewise.
32433
32434 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32435 (normal_mod_SOURCES): Likewise.
32436
32437 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32438 (normal_mod_SOURCES): Likewise.
32439
32440 2009-02-11 Robert Millan <rmh@aybabtu.com>
32441
32442 * util/grub.d/00_header.in: Update old reference to `font' command.
32443
32444 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
32445
32446 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
32447
32448 Based on patch from Javier Martín.
32449
32450 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32451
32452 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
32453 to avoid false positives with FAT.
32454 (grub_fstest_SOURCES): Likewise.
32455 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32459 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32460 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32461
32462 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32463
32464 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
32465 bpb.version_specific.fat12_or_fat16.fstype and
32466 bpb.version_specific.fat32.fstype.
32467
32468 2009-02-08 Robert Millan <rmh@aybabtu.com>
32469
32470 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
32471
32472 2009-02-08 Robert Millan <rmh@aybabtu.com>
32473
32474 * Makefile.in (host_os, host_cpu): New variables.
32475 (target_os): Remove. Update all users.
32476
32477 2009-02-08 Marco Gerards <marco@gnu.org>
32478
32479 * Makefile.in (enable_grub_emu_usb): New variable.
32480 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
32481 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
32482 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
32483 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
32484 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
32485 `usbtest.mod' and `usbms.mod'.
32486 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
32487 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
32488 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
32489 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
32490 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
32491 variables.
32492
32493 * disk/usbms.c: New file.
32494
32495 * include/grub/usb.h: Likewise.
32496
32497 * include/grub/usbtrans.h: Likewise.
32498
32499 * include/grub/usbdesc.h: Likewise.
32500
32501 * bus/usb/usbtrans.c: Likewise.
32502
32503 * bus/usb/ohci.c: Likewise.
32504
32505 * bus/usb/uhci.c: Likewise.
32506
32507 * bus/usb/usbhub.c: Likewise.
32508
32509 * bus/usb/usb.c: Likewise.
32510
32511 * commands/usbtest.c: Likewise.
32512
32513 * util/usb.c: Likewise.
32514
32515 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
32516
32517 * configure.ac: Test for libusb presence.
32518
32519 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
32520
32521 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
32522
32523 * kern/mm.c: Add more comments.
32524
32525 2009-02-08 Robert Millan <rmh@aybabtu.com>
32526
32527 Patch from Javier Martín.
32528 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
32529 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
32530
32531 2009-02-08 Robert Millan <rmh@aybabtu.com>
32532
32533 * fs/cpio.c: Split tar functionality to ...
32534 * fs/tar.c: ... here (new file). Update all users.
32535
32536 2009-02-07 Robert Millan <rmh@aybabtu.com>
32537
32538 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
32539 backward-incompatible features.
32540
32541 Based on patch from Javier Martín, with some adjustments.
32542
32543 2009-02-07 Michael Scherer <misc@mandriva.org>
32544
32545 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
32546
32547 2009-02-07 Robert Millan <rmh@aybabtu.com>
32548
32549 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
32550 position of `disk/lvm.c' to ensure grub_init_all() always picks it
32551 after the RAID stuff.
32552
32553 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
32554
32555 Fixes problem when running vbetest command as reported by
32556 Vladimir Serbinenko <phcoder@gmail.com>.
32557
32558 * (grub_vbe_set_video_mode): Fixed problem with text modes.
32559
32560 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
32561
32562 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
32563 /dev/md/NpN style mdraid devices.
32564
32565 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32566
32567 * util/unifont2pff.rb: Remove.
32568
32569 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32570
32571 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
32572 `#'.
32573
32574 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32575
32576 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
32577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32578 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32579 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32581 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32582 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32583
32584 2009-02-02 Christian Franke <franke@computer.org>
32585
32586 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
32587
32588 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
32589
32590 * INSTALL: Note that we now require at least autoconf 2.59 and
32591 that LZO is optional.
32592
32593 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32594
32595 Base on patch on bug #24154 created by Tomas Tintera
32596 <trosos@seznam.cz>.
32597
32598 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
32599
32600 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32601
32602 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
32603 <bero@arklinux.org>.
32604
32605 * normal/parser.y (script_init): Add missing semicolon.
32606
32607 2009-01-31 Colin D Bennett <colin@gibibit.com>
32608
32609 * normal/main.c: Add include to grub/menu_viewer.h.
32610 (free_menu_entry_classes): Added.
32611 (grub_normal_menu_addentry): Added class property handling.
32612 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
32613 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
32614
32615 * normal/menu_viewer.c: New file.
32616
32617 * normal/menu.c (run_menu_entry): Renamed to ...
32618 (grub_menu_execute_entry): ... this and made it as global.
32619 (grub_menu_run): Renamed to ...
32620 (show_text_menu): ... this and made it local.
32621 (show_text_menu): Adapt to new function names.
32622 (grub_normal_terminal_menu_viewer): New global variable.
32623
32624 * include/grub/menu.h: New file.
32625
32626 * include/grub/menu_viewer.h: New file.
32627
32628 * include/grub/normal.h: Added include to grub/menu.h.
32629 (grub_menu_entry): Moved to include/grub/menu.h.
32630 (grub_menu_entry_t): Likewise.
32631 (grub_menu): Likewise.
32632 (grub_menu_t): Likewise.
32633 (grub_normal_terminal_menu_viewer): Added.
32634 (grub_menu_execute_entry): Likewise.
32635 (grub_menu_run): Removed.
32636
32637 * DISTLIST: Added include/grub/menu.h.
32638 Added include/grub/menu_viewer.h.
32639 Added normal/menu_viewer.c.
32640
32641 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
32642
32643 * normal/execute.c (grub_script_execute_menuentry): Changed to use
32644 arglist for menutitle arguments.
32645
32646 * normal/main.c (grub_normal_menu_addentry): Likewise.
32647
32648 * normal/parser.y (menuentry): Likewise.
32649
32650 * normal/script.c (grub_script_create_cmdmenu): Likewise.
32651
32652 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
32653 (grub_script_create_cmdmenu): Likewise.
32654
32655 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
32656
32657 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
32658 changes.
32659
32660 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
32661
32662 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
32663
32664 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
32665
32666 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32667
32668 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32669
32670 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32671
32672 2009-01-30 Christian Franke <franke@computer.org>
32673
32674 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
32675 in option help text.
32676
32677 2009-01-27 Pavel Roskin <proski@gnu.org>
32678
32679 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
32680
32681 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32682
32683 * commands/lsmmap.c: Add include to grub/machine/memory.h.
32684
32685 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
32686
32687 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
32688 unregister function.
32689
32690 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32691
32692 * disk/scsi.c (grub_scsi_read): Fix sign problem.
32693
32694 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
32695
32696 * util/grub-mkfont.c (usage): Fix typo.
32697
32698 * util/elf/grub-mkimage.c (load_modules): Fix warning.
32699
32700 2009-01-26 Daniel Mierswa <impulze@impulze.org>
32701
32702 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
32703
32704 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
32705
32706 * kern/misc.c (grub_strcasecmp): New function.
32707 (grub_strcasecmp): Use grub_size_t instead of int for length.
32708 Fix return value.
32709 * include/grub/misc.h: Update function prototypes.
32710
32711 2009-01-26 Robert Millan <rmh@aybabtu.com>
32712
32713 * configure.ac: Fix cross-compilation check.
32714
32715 2009-01-22 Christian Franke <franke@computer.org>
32716
32717 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
32718 (precision) digit string. Allow `.format2' without `format1' (width).
32719 Limit input chars for `%s' output to `format2' if specified. This is
32720 compatible with standard printf ().
32721
32722 2009-01-22 Christian Franke <franke@computer.org>
32723
32724 * disk/ata.c (grub_ata_wait_status): Replace by ...
32725 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
32726 other status bits may be invalid while BSY is asserted.
32727 (grub_ata_check_ready): New function.
32728 (grub_ata_cmd): Removed.
32729 (grub_ata_wait_drq): New function.
32730 (grub_ata_strncpy): Remove inline.
32731 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
32732 and error check now done by grub_ata_wait_drq ().
32733 (grub_ata_pio_write): Likewise.
32734 (grub_atapi_identify): Set DEV before check for !BSY. Use
32735 grub_ata_wait_drq () to wait for data.
32736 (grub_ata_device_initialize): Add status register check to
32737 detect missing SATA slave devices. Add debug messages.
32738 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
32739 (grub_atapi_packet): Set DEV before check for !BSY. Replace
32740 transfer loop by grub_ata_pio_write ().
32741 (grub_ata_identify): Set DEV before check for !BSY. Use
32742 grub_ata_wait_drq () to wait for data.
32743 (grub_ata_setaddress): Set DEV before check for !BSY.
32744 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
32745 read/write in one loop. Fix invalid command on write. Fix incomplete
32746 command on (size % batch) == 0. Add missing error check after write of
32747 last block. Add debug messages.
32748 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
32749
32750 2009-01-19 Christian Franke <franke@computer.org>
32751
32752 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
32753 (GRUB_ATAPI_IREASON_*): Likewise.
32754 (grub_ata_pio_write): Fix timeout error return.
32755 (grub_atapi_identify): Add grub_ata_wait () after cmd.
32756 (grub_atapi_wait_drq): New function.
32757 (grub_atapi_packet): New parameter `size'.
32758 Use grub_atapi_wait_drq () and direct write instead of
32759 grub_ata_pio_write ().
32760 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
32761 reads the number of bytes requested by the device for each DRQ
32762 assertion.
32763 (grub_atapi_write): Remove old implementation, return not
32764 implemented instead.
32765
32766 2009-01-19 Christian Franke <franke@computer.org>
32767
32768 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
32769 of 512 to calculate data size.
32770 (grub_scsi_read12): Likewise.
32771 (grub_scsi_write10): Likewise.
32772 (grub_scsi_write12): Likewise.
32773 (grub_scsi_read): Adjust size according to blocksize.
32774 Add checks for invalid blocksize and unaligned transfer.
32775
32776 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
32777
32778 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
32779
32780 * term/gfxterm.c (write_char): Fix background rendering for wide
32781 width glyphs.
32782
32783 2009-01-19 Robert Millan <rmh@aybabtu.com>
32784
32785 * config.guess: Update to latest version from config git.
32786 * config.sub: Likewise.
32787
32788 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
32789
32790 * Makefile.in: Change font compilation to use new grub-mkfont instead
32791 of java version.
32792
32793 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
32794 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
32795 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
32796 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
32797 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
32798 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
32799 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
32800 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
32801 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
32802
32803 2009-01-16 Christian Franke <franke@computer.org>
32804
32805 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
32806 (enum grub_ata_timeout_milliseconds): New enum.
32807 (grub_ata_wait_status): Add parameter milliseconds.
32808 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
32809 recovery from timed-out commands.
32810 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
32811 return grub_errno instead of REG_ERROR.
32812 (grub_ata_pio_write): Add parameter milliseconds.
32813 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
32814 Pass milliseconds to grub_ata_wait_status () and
32815 grub_ata_pio_read ().
32816 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
32817 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
32818 grub_ata_wait_status (). Fix IDENTIFY timeout check.
32819 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
32820 It is not suitable for device detection, because DEV bit is ignored,
32821 the command may run too long, and not all devices set the signature
32822 properly.
32823 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
32824 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
32825 Fix device selection, DEV bit must be set first to address the registers
32826 of the correct device.
32827 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
32828 grub_ata_pio_read/write ().
32829 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
32830 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
32831
32832 2009-01-13 Carles Pina i Estany <carles@pina.cat>
32833
32834 * util/grub-editenv.c (main): Use fseeko(), not fseek().
32835
32836 2009-01-13 Bean <bean123ch@gmail.com>
32837
32838 * util/grub-mkfont.c (write_font): forget to remove some debug code.
32839
32840 2009-01-13 Bean <bean123ch@gmail.com>
32841
32842 * Makefile.in: (enable_grub_mkfont): New variable.
32843 (freetype_cflags): Likewise.
32844 (freetype_libs): Likewise.
32845
32846 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
32847 (grub_mkfont_SOURCES): New variable.
32848 (grub_mkfont_CFLAGS): Likewise.
32849 (grub_mkfont_LDFLAGS): Likewise.
32850
32851 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
32852 library if `--enable-grub-mkfont' is requested.
32853 (enable_grub_mkfont): New variable.
32854 (freetype_cflags): Likewise.
32855 (freetype_libs): Likewise.
32856
32857 * util/grub-mkfont.c: New file.
32858
32859 2009-01-12 Christian Franke <franke@computer.org>
32860
32861 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
32862 mode check. Fix setting of compat_use[].
32863
32864 2009-01-10 Robert Millan <rmh@aybabtu.com>
32865
32866 Update a few copyright years which we forgot to do in 2008 (only for
32867 files whose changes made in 2008 were copyright-significant)
32868
32869 * Makefile.in: Add 2008 to Copyright line.
32870 * disk/ieee1275/ofdisk.c: Likewise.
32871 * disk/efi/efidisk.c: Likewise.
32872 * kern/dl.c: Likewise.
32873 * kern/sparc64/ieee1275/init.c: Likewise.
32874 * kern/mm.c: Likewise.
32875 * kern/efi/mm.c: Likewise.
32876 * boot/i386/pc/boot.S: Likewise.
32877 * genfslist.sh: Likewise.
32878 * fs/iso9660.c: Likewise.
32879 * fs/hfs.c: Likewise.
32880 * fs/jfs.c: Likewise.
32881 * fs/minix.c: Likewise.
32882 * fs/ufs.c: Likewise.
32883 * gensymlist.sh.in: Likewise.
32884 * genkernsyms.sh.in: Likewise.
32885 * include/grub/misc.h: Likewise.
32886 * include/grub/types.h: Likewise.
32887 * include/grub/symbol.h: Likewise.
32888 * include/grub/elf.h: Likewise.
32889 * include/grub/kernel.h: Likewise.
32890 * include/grub/disk.h: Likewise.
32891 * include/grub/dl.h: Likewise.
32892 * include/grub/i386/linux.h: Likewise.
32893 * include/grub/i386/pc/biosdisk.h: Likewise.
32894 * include/grub/efi/api.h: Likewise.
32895 * include/grub/efi/pe32.h: Likewise.
32896 * include/grub/util/misc.h: Likewise.
32897 * normal/execute.c: Likewise.
32898 * normal/arg.c: Likewise.
32899 * normal/completion.c: Likewise.
32900 * normal/lexer.c: Likewise.
32901 * normal/parser.y: Likewise.
32902 * normal/misc.c: Likewise.
32903 * commands/i386/pc/vbeinfo.c: Likewise.
32904 * commands/hexdump.c: Likewise.
32905 * commands/terminal.c: Likewise.
32906 * commands/ls.c: Likewise.
32907 * commands/help.c: Likewise.
32908 * partmap/pc.c: Likewise.
32909 * loader/efi/chainloader.c: Likewise.
32910 * loader/multiboot_loader.c: Likewise.
32911 * loader/i386/pc/multiboot2.c: Likewise.
32912 * term/efi/console.c: Likewise.
32913 * term/i386/pc/serial.c: Likewise.
32914 * util/lvm.c: Likewise.
32915 * util/console.c: Likewise.
32916 * util/i386/efi/grub-mkimage.c: Likewise.
32917 * util/raid.c: Likewise.
32918
32919 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
32920
32921 * commands/videotest.c: Removed include to grub/machine/memory.h.
32922
32923 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
32924 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
32925 (video_mod_SOURCES): Removed.
32926 (video_mod_CFLAGS): Likewise.
32927 (video_mod_LDFLAGS): Likewise.
32928 (gfxterm_mod_SOURCES): Likewise.
32929 (gfxterm_mod_CFLAGS): Likewise.
32930 (gfxterm_mod_LDFLAGS): Likewise.
32931 (videotest_mod_SOURCES): Likewise.
32932 (videotest_mod_CFLAGS): Likewise.
32933 (videotest_mod_LDFLAGS): Likewise.
32934 (bitmap_mod_SOURCES): Likewise.
32935 (bitmap_mod_CFLAGS): Likewise.
32936 (bitmap_mod_LDFLAGS): Likewise.
32937 (tga_mod_SOURCES): Likewise.
32938 (tga_mod_CFLAGS): Likewise.
32939 (tga_mod_LDFLAGS): Likewise.
32940 (jpeg_mod_SOURCES): Likewise.
32941 (jpeg_mod_CFLAGS): Likewise.
32942 (jpeg_mod_LDFLAGS): Likewise.
32943 (png_mod_SOURCES): Likewise.
32944 (png_mod_CFLAGS): Likewise.
32945 (png_mod_LDFLAGS): Likewise.
32946
32947 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
32948 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
32949 (video_mod_SOURCES): Added.
32950 (video_mod_CFLAGS): Likewise.
32951 (video_mod_LDFLAGS): Likewise.
32952 (videotest_mod_SOURCES): Likewise.
32953 (videotest_mod_CFLAGS): Likewise.
32954 (videotest_mod_LDFLAGS): Likewise.
32955 (bitmap_mod_SOURCES): Likewise.
32956 (bitmap_mod_CFLAGS): Likewise.
32957 (bitmap_mod_LDFLAGS): Likewise.
32958 (tga_mod_SOURCES): Likewise.
32959 (tga_mod_CFLAGS): Likewise.
32960 (tga_mod_LDFLAGS): Likewise.
32961 (jpeg_mod_SOURCES): Likewise.
32962 (jpeg_mod_CFLAGS): Likewise.
32963 (jpeg_mod_LDFLAGS): Likewise.
32964 (png_mod_SOURCES): Likewise.
32965 (png_mod_CFLAGS): Likewise.
32966 (png_mod_LDFLAGS): Likewise.
32967 (gfxterm_mod_SOURCES): Likewise.
32968 (gfxterm_mod_CFLAGS): Likewise.
32969 (gfxterm_mod_LDFLAGS): Likewise.
32970
32971 * term/gfxterm.c: Removed include to grub/machine/memory.h,
32972 grub/machine/console.h.
32973
32974 2009-01-04 Jerone Young <jerone@gmail.com>
32975
32976 Make on screen instructions clearer
32977
32978 Based on patch created by Jidanni <jidanni@jidanni.org>
32979
32980 * normal/menu.c: print clearer instructions on the screen
32981
32982 2009-01-02 Colin D Bennett <colin@gibibit.com>
32983
32984 New font engine.
32985
32986 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
32987 build system and fixed gfxterm.c to work with different sized fonts.
32988
32989 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
32990
32991 * configure: Re-generated.
32992
32993 * DISTLIST: Removed font/manager.c.
32994 Added font/font.c.
32995 Added font/font_cmd.c.
32996
32997 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
32998 compilation.
32999
33000 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33001
33002 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33003
33004 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33005
33006 * normal/menu.c: Likewise.
33007
33008 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33009 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33010
33011 * include/grub/font.h: Replaced with new file.
33012
33013 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33014 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33015 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33016 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33017 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33018 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33019 fg_red, fg_green, fg_blue, fg_alpha.
33020 (grub_video_adapter): Removed blit_glyph.
33021 (grub_video_blit_glyph): Removed.
33022
33023 * font/manager.c: Removed file.
33024
33025 * font/font.c: New file.
33026
33027 * font/font_cmd.c: Likewise.
33028
33029 * video/video.c (grub_video_blit_glyph): Removed.
33030
33031 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33032 (grub_video_vbe_map_rgba): Likewise.
33033 (grub_video_vbe_unmap_color_int): Likewise.
33034 (grub_video_vbe_blit_glyph): Removed.
33035 (grub_video_vbe_adapter): Removed blit_glyph.
33036
33037 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33038 (get_pixel): Likewise.
33039 (set_pixel): Likewise.
33040
33041 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33042
33043 * term/gfxterm.c: Adapted to new font engine.
33044
33045 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33046
33047 * term/i386/pc/vga.c: Likewise.
33048
33049 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33050
33051 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33052
33053 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33054
33055 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33056
33057 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33058
33059 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33060
33061 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33062
33063 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33064
33065 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33066
33067 * util/grub.d/00_header.in: Changed to use new loadfont command.
33068
33069 * util/grub-mkconfig_lib.in: Changed font extension.
33070
33071 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33072
33073 * util/getroot.c (grub_util_get_grub_dev): Add support for
33074 /dev/md/dNNpNN style partitionable mdraid devices.
33075
33076 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33077
33078 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33079 at a time limit of the PXE TFTP API correctly.
33080 (grub_pxefs_close): Likewise.
33081
33082 2008-11-29 Robert Millan <rmh@aybabtu.com>
33083
33084 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33085 grub_ata_device_initialize() calls.
33086
33087 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33088
33089 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33090 iteration failed.
33091 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33092
33093 2008-11-28 Robert Millan <rmh@aybabtu.com>
33094
33095 Fix build on powerpc-ieee1275. Based on patch created by
33096 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33097 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33098 `kern/ieee1275/mmap.c'.
33099 * include/grub/powerpc/ieee1275/memory.h: New file.
33100
33101 Provide grub-install on coreboot.
33102 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33103 (grub_install_SOURCES): New variable.
33104 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33105 usable on coreboot.
33106
33107 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33108
33109 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33110 to `grub_term_input_t'.
33111 (grub_term_get_current_output): Change return type to
33112 `grub_term_output_t'.
33113
33114 2008-11-22 Robert Millan <rmh@aybabtu.com>
33115
33116 Fix breakage on coreboot due to declaration mismatch.
33117 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33118 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33119 grub_vga_text_cls().
33120
33121 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33122 comments. Avoid copying one more byte than necessary (just in case).
33123
33124 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33125 to 0x200000 (avoids trouble with some OFW implementations, and matches
33126 with the one in Yaboot).
33127 Reported by Manoel Abranches
33128
33129 2008-11-20 Robert Millan <rmh@aybabtu.com>
33130
33131 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33132 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33133
33134 * util/grub-mkconfig_lib.in (grub_warn): New function.
33135 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33136 warnings, to obtain consistent formatting.
33137 * util/grub.d/00_header.in: Likewise.
33138 * util/update-grub_lib.in: Likewise.
33139
33140 * loader/i386/linux.c (allocate_pages): Fix a warning.
33141 Move comment text to `#error' stanza.
33142
33143 Harmonize ieee1275's grub_available_iterate() with the generic
33144 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33145 build problem on i386-ieee1275):
33146 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33147 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33148 parameter `type'. Update all users of this function.
33149 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33150 `kern/ieee1275/mmap.c'.
33151 * kern/ieee1275/init.c
33152 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33153 with ...
33154 (grub_machine_mmap_iterate): ... this.
33155 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33156 return type to `grub_err_t'. Update all implementations of this
33157 function prototype.
33158 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33159 Likewise.
33160
33161 Add `lsmmap' command (lists firmware-provided memory map):
33162 * commands/lsmmap.c: New file.
33163 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33164 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33165 variables.
33166 * conf/powerpc-ieee1275.rmk: Likewise.
33167 * conf/i386-coreboot.rmk: Likewise.
33168 * conf/i386-ieee1275.rmk: Likewise.
33169
33170 2008-11-19 Robert Millan <rmh@aybabtu.com>
33171
33172 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33173 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33174 constraints to initrd allocation (based on code from
33175 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33176 for Linux to find it.
33177
33178 2008-11-14 Robert Millan <rmh@aybabtu.com>
33179
33180 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33181 order to cope with duplicate slashes.
33182
33183 2008-11-14 Robert Millan <rmh@aybabtu.com>
33184
33185 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33186 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33187 don't want to mess with lower memory, because it is used in the Linux
33188 loader.
33189
33190 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33191 an appropriate place in lower memory, between 0x10000 and 0x90000,
33192 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33193 is in our heap (probably as a result of it being corrupted during
33194 decompression). Add #error instance with comment to explain why this
33195 loader isn't currently usable on PC/BIOS.
33196
33197 2008-11-14 Robert Millan <rmh@aybabtu.com>
33198
33199 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33200 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33201
33202 2008-11-12 Robert Millan <rmh@aybabtu.com>
33203
33204 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33205
33206 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33207 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33208 from here ...
33209 * include/grub/i386/pc/memory.h: ... to here.
33210
33211 2008-11-12 Robert Millan <rmh@aybabtu.com>
33212
33213 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33214 split).
33215
33216 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33217 (grub_console_cur_color, grub_console_real_putchar)
33218 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33219 (grub_console_setcolorstate, grub_console_setcolor)
33220 (grub_console_getcolor): Move from here ...
33221 * include/grub/i386/vga_common.h: ... to here (new file).
33222
33223 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33224 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33225 `<grub/i386/io.h>'.
33226 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33227 `<grub/i386/vga_common.h>'.
33228
33229 2008-11-12 Robert Millan <rmh@aybabtu.com>
33230
33231 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33232 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33233 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33234 variables.
33235 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33236 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33237
33238 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33239 grub_console_init() with call to grub_vga_text_init().
33240 (grub_machine_fini): Replace call to
33241 grub_console_fini() with call to grub_vga_text_fini() and
33242 grub_at_keyboard_fini().
33243
33244 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33245 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33246 (grub_console_setcolorstate, grub_console_setcolor)
33247 (grub_console_getcolor): New function prototypes.
33248
33249 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33250 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33251 (grub_vga_text_setcursor): Static-ize.
33252 (grub_vga_text_term): New structure.
33253 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33254
33255 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33256 (grub_console_cur_color, grub_console_standard_color)
33257 (grub_console_normal_color, grub_console_highlight_color)
33258 (map_char, grub_console_putchar, grub_console_getcharwidth)
33259 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33260 (grub_console_getcolor): Move from here ...
33261 * term/i386/vga_common.c: ... to here (same function names).
33262
33263 2008-11-12 Robert Millan <rmh@aybabtu.com>
33264
33265 Use newly-added Multiboot support in coreboot.
33266
33267 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33268 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
33269
33270 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
33271 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
33272 (codestart): Store the MBI in `startup_multiboot_info' when we're
33273 being loaded using Multiboot.
33274
33275 * kern/i386/coreboot/init.c (grub_machine_init): Move
33276 grub_at_keyboard_init() call to beginning of function (useful for
33277 debugging). Call grub_machine_mmap_init() before attempting to use
33278 grub_machine_mmap_iterate().
33279 (grub_lower_mem, grub_upper_mem): Move from here ...
33280 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
33281 here (new file).
33282
33283 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
33284 function prototype.
33285
33286 2008-11-12 Robert Millan <rmh@aybabtu.com>
33287
33288 Fix a regression introduced by the at_keyboard.mod split. Because
33289 some terminals are default on some platforms and non-default on
33290 others, the first terminal being registered determines which is
33291 going to be default.
33292
33293 * kern/term.c (grub_term_register_input): If this is the first
33294 terminal being registered, set it as the current one.
33295 (grub_term_register_output): Likewise.
33296
33297 * term/efi/console.c (grub_console_init): Do not call
33298 grub_term_set_current_output() or grub_term_set_current_input().
33299 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
33300 * term/i386/pc/console.c (grub_console_init): Likewise.
33301 (grub_console_fini): Do not call grub_term_set_current_input()
33302 (but leave grub_term_set_current_output() to restore text mode).
33303
33304 2008-11-10 Robert Millan <rmh@aybabtu.com>
33305
33306 * util/grub.d/00_header.in: Add backward compatibility check for
33307 versions of terminal.mod that don't understand `terminal_input' or
33308 `terminal_output'.
33309
33310 2008-11-09 Robert Millan <rmh@aybabtu.com>
33311
33312 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
33313 `terminal_input' / `terminal_output', not `terminal'.
33314
33315 2008-11-08 Robert Millan <rmh@aybabtu.com>
33316
33317 * Makefile.in (include_DATA): Fix srcdir=. assumption.
33318 (DISTCLEANFILES): Add `build_env.mk'.
33319
33320 2008-11-08 Robert Millan <rmh@aybabtu.com>
33321
33322 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
33323 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33324 members. Update all users.
33325 * util/console.c (grub_ncurses_term): Split in ...
33326 (grub_ncurses_term_input): ... this, and ...
33327 (grub_ncurses_term_output): ... this. Update all users.
33328 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
33329
33330 2008-11-08 Robert Millan <rmh@aybabtu.com>
33331
33332 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
33333 (PKGDATA): Add $(pkgdata_SRCDIR).
33334 (pkglib_BUILDDIR): New variable.
33335 (pkgdata_SRCDIR): New variable.
33336 (build_env.mk): New target.
33337 (include_DATA): New variable.
33338 (install-local): Install $(include_DATA) files in $(includedir).
33339
33340 2008-11-07 Pavel Roskin <proski@gnu.org>
33341
33342 * gendistlist.sh: Use C locale for sorting to ensure consistent
33343 output on all systems.
33344
33345 * util/grub.d/00_header.in: Remove incorrect space before
33346 "serial".
33347
33348 2008-11-07 Robert Millan <rmh@aybabtu.com>
33349
33350 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
33351 per specification.
33352 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
33353 * loader/multiboot_loader.c (find_multi_boot2_header): New function
33354 (based on find_multi_boot1_header).
33355 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
33356 using find_multi_boot2_header(), and abort if neither Multiboot or
33357 Multiboot headers were found.
33358
33359 2008-11-07 Robert Millan <rmh@aybabtu.com>
33360
33361 Modularize at_keyboard.mod:
33362
33363 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
33364 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
33365 (at_keyboard_mod_LDFLAGS): New variables.
33366
33367 Actual terminal split:
33368
33369 * include/grub/term.h (struct grub_term): Split in ...
33370 (struct grub_term_input): ... this, and ...
33371 (struct grub_term_output): ... this. Update all users.
33372 (grub_term_set_current): Split in ...
33373 (grub_term_set_current_input): ... this, and ...
33374 (grub_term_set_current_output): ... this.
33375 (grub_term_get_current): Split in ...
33376 (grub_term_get_current_input): ... this, and ...
33377 (grub_term_get_current_output): ... this.
33378 (grub_term_register): Split in ...
33379 (grub_term_register_input): ... this, and ...
33380 (grub_term_register_output): ... this.
33381 (grub_term_unregister): Split in ...
33382 (grub_term_unregister_input): ... this, and ...
33383 (grub_term_unregister_output): ... this.
33384 (grub_term_iterate): Split in ...
33385 (grub_term_iterate_input): ... this, and ...
33386 (grub_term_iterate_output): ... this.
33387
33388 * kern/term.c (grub_term_list): Split in ...
33389 (grub_term_list_input): ... this, and ...
33390 (grub_term_list_output): ... this. Update all users.
33391 (grub_cur_term): Split in ...
33392 (grub_cur_term_input): ... this, and ...
33393 (grub_cur_term_output): ... this. Update all users.
33394 (grub_term_set_current): Split in ...
33395 (grub_term_set_current_input): ... this, and ...
33396 (grub_term_set_current_output): ... this.
33397 (grub_term_get_current): Split in ...
33398 (grub_term_get_current_input): ... this, and ...
33399 (grub_term_get_current_output): ... this.
33400 (grub_term_register): Split in ...
33401 (grub_term_register_input): ... this, and ...
33402 (grub_term_register_output): ... this.
33403 (grub_term_unregister): Split in ...
33404 (grub_term_unregister_input): ... this, and ...
33405 (grub_term_unregister_output): ... this.
33406 (grub_term_iterate): Split in ...
33407 (grub_term_iterate_input): ... this, and ...
33408 (grub_term_iterate_output): ... this.
33409
33410 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
33411 a check for input and one for output (and only attempt to get keys
33412 from user when input works).
33413
33414 * util/grub-probe.c (grub_term_get_current): Split in ...
33415 (grub_term_get_current_input): ... this, and ...
33416 (grub_term_get_current_output): ... this.
33417 * util/grub-fstest.c: Likewise.
33418 * util/i386/pc/grub-setup.c: Likewise.
33419 * util/grub-editenv.c: Likewise.
33420
33421 Portability adjustments:
33422
33423 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
33424 `term/i386/pc/at_keyboard.c'.
33425 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
33426 grub_keyboard_controller_init() (now handled by terminal .init).
33427 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
33428 grub_at_keyboard_init().
33429 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
33430 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
33431 at_keyboard.mod via input terminal interface).
33432 * include/grub/i386/coreboot/console.h: Convert into a stub for
33433 `<grub/i386/pc/console.h>'.
33434
33435 Migrate full terminals to new API:
33436
33437 * term/efi/console.c (grub_console_term): Split into ...
33438 (grub_console_term_input): ... this, and ...
33439 (grub_console_term_output): ... this. Update all users.
33440 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
33441 (grub_ofconsole_init): Split into ...
33442 (grub_ofconsole_init_input): ... this, and ...
33443 (grub_ofconsole_init_output): ... this.
33444 (grub_ofconsole_term): Split into ...
33445 (grub_ofconsole_term_input): ... this, and ...
33446 (grub_ofconsole_term_output): ... this. Update all users.
33447 * term/i386/pc/serial.c (grub_serial_term): Split into ...
33448 (grub_serial_term_input): ... this, and ...
33449 (grub_serial_term_output): ... this. Update all users.
33450 * term/i386/pc/console.c (grub_console_term): Split into ...
33451 (grub_console_term_input): ... this, and ...
33452 (grub_console_term_output): ... this. Update all users.
33453 (grub_console_term_input): Only enable it on PC/BIOS platform.
33454 (grub_console_init): Remove grub_keyboard_controller_init() call.
33455
33456 Migrate input terminals to new API:
33457
33458 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
33459 `i386' and `i386/pc' to enable build on x86_64 (this driver is
33460 i386-specific anyway).
33461 (grub_console_checkkey): Rename to ...
33462 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
33463 users.
33464 (grub_keyboard_controller_orig): New variable.
33465 (grub_console_getkey): Rename to ...
33466 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
33467 users.
33468 (grub_keyboard_controller_init): Static-ize. Save original
33469 controller value so that it can be restored ...
33470 (grub_keyboard_controller_fini): ... here (new function).
33471 (grub_at_keyboard_term): New structure.
33472 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
33473 functions.
33474
33475 Migrate output terminals to new API:
33476
33477 * term/i386/pc/vga.c (grub_vga_term): Change type to
33478 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33479 members. Update all users.
33480 * term/gfxterm.c (grub_video_term): Change type to
33481 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33482 members. Update all users.
33483 * include/grub/i386/pc/console.h (grub_console_checkkey)
33484 (grub_console_getkey): Do not export (no longer needed by gfxterm,
33485 etc).
33486
33487 Migrate `terminal' command and userland tools to new API:
33488
33489 * commands/terminal.c (grub_cmd_terminal): Split into ...
33490 (grub_cmd_terminal_input): ... this, and ...
33491 (grub_cmd_terminal_output): ... this.
33492 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
33493 `terminal_input' and `terminal_output'.
33494 * util/grub.d/00_header.in: Adjust `terminal' calls to new
33495 `terminal_input' / `terminal_output' API.
33496 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
33497 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
33498 provided ${GRUB_TERMINAL}, convert it).
33499
33500 2008-11-04 Robert Millan <rmh@aybabtu.com>
33501
33502 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
33503 for FreeBSD.
33504 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
33505
33506 2008-11-03 Bean <bean123ch@gmail.com>
33507
33508 * kern/elf.c (grub_elf32_load): Revert to previous code.
33509 (grub_elf64_load): Likewise.
33510
33511 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
33512
33513 2008-11-01 Robert Millan <rmh@aybabtu.com>
33514
33515 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
33516 (TARGET_CPPFLAGS): Likewise.
33517 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
33518
33519 2008-11-01 Carles Pina i Estany <carles@pina.cat>
33520
33521 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
33522
33523 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33524
33525 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
33526 addition of objects until the code is not going to be able to fail.
33527
33528 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33529
33530 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
33531 (add a missing NULL check, and correct them by moving the pointer
33532 operations after the actual check).
33533
33534 2008-10-29 Robert Millan <rmh@aybabtu.com>
33535
33536 * util/i386/pc/grub-install.in: Handle empty string as output from
33537 make_system_path_relative_to_its_root().
33538
33539 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
33540
33541 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
33542 circular metadata worst case scenario. If the metadata is circular
33543 then copy the wrap in place.
33544 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
33545 project lib/format_text/layout.h
33546 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
33547
33548 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33549
33550 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
33551
33552 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33553
33554 * util/update-grub_lib.in: Mention filename in warning message.
33555
33556 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33557
33558 * NEWS: Update for rename of update-grub to grub-mkconfig.
33559
33560 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33561
33562 * util/update-grub_lib.in: Copy to ...
33563 * util/grub-mkconfig_lib.in: ... this. Update all users.
33564 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
33565 * util/update-grub.in: Rename to ...
33566 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
33567 option. Add `--output' option to allow users to specify the generated
33568 configuration file. Default to stdout.
33569 (update_grub_dir): Rename to ...
33570 (grub_mkconfig_dir): ... this.
33571 (grub_cfg): Default to an empty string.
33572 * conf/common.rmk (update-grub): Rename to ...
33573 (grub-mkconfig): ... this.
33574 (update-grub_lib): Copy to ...
33575 (grub-mkconfig_lib): ... this.
33576 (update-grub_SCRIPTS): Copy to ...
33577 (grub-mkconfig_SCRIPTS): ... this. Update all users.
33578 (update-grub_DATA): Rename to ...
33579 (grub-mkconfig_DATA): ... this.
33580
33581 2008-09-28 Robert Millan <rmh@aybabtu.com>
33582
33583 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
33584 to `modified'. Add the real `created' field.
33585 (grub_iso9660_uuid): Use `modified' rather than `created' for
33586 constructing the UUID.
33587
33588 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
33589
33590 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
33591 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
33592
33593 2008-09-28 Bean <bean123ch@gmail.com>
33594
33595 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
33596 Thanks to Christian Franke for finding this bug.
33597
33598 2008-09-25 Robert Millan <rmh@aybabtu.com>
33599
33600 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
33601 instances of grub_util_get_disk_name() (see previous commit).
33602
33603 2008-09-25 Robert Millan <rmh@aybabtu.com>
33604
33605 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
33606 `util/i386/get_disk_name.c'.
33607 * conf/i386-efi.rmk: Likewise.
33608 * conf/x86_64-efi.rmk: Likewise.
33609 * conf/i386-coreboot.rmk: Likewise.
33610 * conf/i386-ieee1275.rmk: Likewise.
33611 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
33612 `util/ieee1275/get_disk_name.c'.
33613 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
33614 * util/ieee1275/get_disk_name.c: Remove file.
33615 * util/i386/get_disk_name.c: Remove file.
33616 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
33617 "hd%d" for device.map entries, rather than using
33618 grub_util_get_disk_name().
33619
33620 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33621
33622 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
33623 warning.
33624 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
33625
33626 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33627
33628 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
33629 Changed to 0x5100.
33630 (GRUB_TERM_PPAGE): Changed to 0x4900.
33631
33632 2008-09-24 Robert Millan <rmh@aybabtu.com>
33633
33634 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
33635 macros (they were i386-pc specific).
33636 * include/grub/sparc64/ieee1275/console.h: Likewise.
33637 * include/grub/efi/console.h: Likewise.
33638
33639 2008-09-22 Bean <bean123ch@gmail.com>
33640
33641 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
33642 resident and in attribute list.
33643
33644 * include/grub/ntfs.h (BMP_LEN): Removed.
33645
33646 2008-09-22 Bean <bean123ch@gmail.com>
33647
33648 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
33649 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
33650
33651 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
33652 error occurs, as grub_disk_open will call grub_disk_close, which will
33653 call p->close (scsi).
33654
33655 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33656
33657 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
33658 (AC_PREREQ): Bumped to 2.59.
33659 (AC_TRY_COMPILE): Replace obsolete macro with ...
33660 (AC_COMPILE_IFELSE): ... this.
33661 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
33662 (AC_LINK_IFELSE): ... this.
33663
33664 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33665
33666 * autogen.sh: Add a call to `gendistlist.sh'.
33667
33668 2008-09-19 Christian Franke <franke@computer.org>
33669
33670 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
33671 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
33672 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
33673 Export __enable_execute_stack() to modules.
33674 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
33675 New function.
33676
33677 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33678
33679 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
33680 Sort the list.
33681
33682 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33683
33684 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
33685 #include <grub/util/hostdisk.h>.
33686
33687 2008-09-08 Robert Millan <rmh@aybabtu.com>
33688
33689 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
33690 segments when their filesz is zero (grub_file_read() interprets
33691 zero-size as "read until EOF", which results in memory corruption).
33692 Use `lowest_segment' rather than 0 for calculating the current
33693 segment load address.
33694
33695 2008-09-08 Robert Millan <rmh@aybabtu.com>
33696
33697 * util/hostdisk.c (open_device): Replace a grub_util_info() call
33698 with grub_dprintf("hostdisk", ...), as it was so verbose that it
33699 clobbered useful information.
33700
33701 2008-09-08 Robert Millan <rmh@aybabtu.com>
33702
33703 * include/grub/util/biosdisk.h: Move to ...
33704 * include/grub/util/hostdisk.h: ... here. Update all users.
33705 * util/biosdisk.c: Move to ...
33706 * util/hostdisk.c: ... here. Update all users.
33707
33708 2008-09-07 Robert Millan <rmh@aybabtu.com>
33709
33710 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
33711 variables.
33712 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
33713 and length can be stored directly in the `mbi->mmap_addr' and
33714 `mbi->mmap_length' struct fields.
33715
33716 2008-09-07 Robert Millan <rmh@aybabtu.com>
33717
33718 * conf/i386.rmk: New file. Provides declaration for building
33719 `cpuid.mod'.
33720 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
33721 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
33722 variables.
33723 Include `conf/i386.mk'.
33724 * conf/i386-efi.rmk: Likewise.
33725 * conf/x86_64-efi.rmk: Likewise.
33726 * conf/i386-coreboot.rmk: Likewise.
33727 * conf/i386-ieee1275.rmk: Likewise.
33728
33729 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
33730
33731 Based on patch created by Colin D Bennett <colin@gibibit.com>.
33732 Adds optimization support for BGR based modes.
33733
33734 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
33735 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
33736 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
33737 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
33738 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
33739 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
33740 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
33741 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
33742 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
33743 (grub_video_i386_vbeblit_index_index): Likewise.
33744 (grub_video_i386_vbeblit_replace_directN): Added.
33745 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
33746 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
33747 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
33748 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
33749 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
33750 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
33751 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
33752 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
33753 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
33754 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
33755 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
33756 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
33757 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
33758
33759 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
33760 (grub_video_i386_vbefill_R8G8B8): Likewise.
33761 (grub_video_i386_vbefill_index): Likewise.
33762 (grub_video_i386_vbefill_direct32): Added.
33763 (grub_video_i386_vbefill_direct24): Likewise.
33764 (grub_video_i386_vbefill_direct16): Likewise.
33765 (grub_video_i386_vbefill_direct8): Likewise.
33766
33767 * include/grub/video.h (grub_video_blit_format): Removed
33768 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
33769 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
33770 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
33771 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
33772 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
33773
33774 * video/video.c (grub_video_get_blit_format): Updated to use new
33775 blit formats. Added handling for 16 bit color modes.
33776
33777 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
33778 fillers.
33779 (common_blitter): Updated to use new blitters.
33780
33781 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
33782 Removed.
33783 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
33784 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
33785 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
33786 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
33787 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
33788 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
33789 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
33790 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
33791 (grub_video_i386_vbeblit_index_index): Likewise.
33792 (grub_video_i386_vbeblit_replace_directN): Added.
33793 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
33794 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
33795 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
33796 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
33797 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
33798 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
33799 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
33800 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
33801 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
33802 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
33803 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
33804 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
33805 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
33806
33807 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
33808 (grub_video_i386_vbefill_R8G8B8): Likewise.
33809 (grub_video_i386_vbefill_index): Likewise.
33810 (grub_video_i386_vbefill_direct32): Added.
33811 (grub_video_i386_vbefill_direct24): Likewise.
33812 (grub_video_i386_vbefill_direct16): Likewise.
33813 (grub_video_i386_vbefill_direct8): Likewise.
33814
33815 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
33816 types.
33817
33818 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
33819 types.
33820
33821 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
33822 blitter types.
33823
33824 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
33825 types.
33826
33827 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
33828
33829 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
33830 RAID level 1.
33831
33832 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
33833
33834 * fs/iso9660.c (grub_iso9660_date): New structure.
33835 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
33836 (grub_iso9660_uuid): New function.
33837
33838 2008-09-05 Bean <bean123ch@gmail.com>
33839
33840 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
33841
33842 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
33843 insensitive bit for names in Win32 and Win32 & DOS namespace.
33844
33845 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
33846
33847 * include/grub/types.h (LONG_MAX): Likewise.
33848
33849 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
33850
33851 * util/getroot.c: Include <config.h>.
33852 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
33853 add support for /dev/md/N devices and handle LVM double dash escaping.
33854
33855 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
33856
33857 * config.guess: Update to latest version from config git.
33858 * config.sub: Likewise.
33859
33860 2008-09-03 Robert Millan <rmh@aybabtu.com>
33861
33862 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
33863 `disk->total_sectors'.
33864
33865 2008-09-01 Colin D Bennett <colin@gibibit.com>
33866
33867 * include/grub/normal.h: Fixed incorrect comment for
33868 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
33869
33870 2008-09-01 Colin D Bennett <colin@gibibit.com>
33871
33872 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
33873 values with defines.
33874
33875 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
33876 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
33877 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
33878 (GRUB_VBE_MODEATTR_COLOR): Likewise.
33879 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
33880 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
33881 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
33882 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
33883 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
33884 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
33885 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
33886 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
33887 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
33888 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
33889 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
33890 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
33891 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
33892 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
33893 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
33894
33895 2008-08-31 Robert Millan <rmh@aybabtu.com>
33896
33897 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
33898 declaration.
33899 (grub_multiboot): Fix a few warnings.
33900
33901 2008-08-31 Robert Millan <rmh@aybabtu.com>
33902
33903 * loader/i386/pc/multiboot.c: Update comment not to say that
33904 boot_device support is unimplemented.
33905
33906 2008-08-31 Robert Millan <rmh@aybabtu.com>
33907
33908 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
33909 or memory map support are unimplemented.
33910
33911 2008-08-31 Colin D Bennett <colin@gibibit.com>
33912
33913 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
33914
33915 2008-08-31 Colin D Bennett <colin@gibibit.com>
33916
33917 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
33918 total video memory in 'vbeinfo' output; show color format details for
33919 each video mode.
33920
33921 2008-08-30 Pavel Roskin <proski@gnu.org>
33922
33923 * util/genmoddep.c: Remove for real this time.
33924 * DISTLIST: Remove util/genmoddep.c.
33925
33926 2008-08-30 Robert Millan <rmh@aybabtu.com>
33927
33928 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
33929 as required by Multiboot spec (it was already 4-byte aligned, but
33930 only by chance).
33931
33932 2008-08-29 Pavel Roskin <proski@gnu.org>
33933
33934 * kern/powerpc/ieee1275/crt0.S: Rename to ...
33935 * kern/powerpc/ieee1275/startup.S: ... this.
33936 * conf/powerpc-ieee1275.rmk: Adjust for the above.
33937 * DISTLIST: Likewise.
33938
33939 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
33940 grub/cpu/kernel.h. Add start label for consistency with other
33941 platforms. Add grub_prefix immediately after start. Add jump
33942 to the code after grub_prefix.
33943 * include/grub/powerpc/kernel.h: Provide valid values for
33944 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
33945
33946 2008-08-29 Bean <bean123ch@gmail.com>
33947
33948 * configure.ac: Change host_os to cygwin for mingw.
33949 (asprintf): New check for function.
33950
33951 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
33952 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
33953
33954 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
33955 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
33956 sync, sleep and grub_util_get_disk_size for mingw.
33957
33958 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
33959 to get size in mingw.
33960 (open_device): Use flag O_BINARY if it's defined.
33961 (find_root_device): Add dummy code for mingw.
33962
33963 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
33964 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
33965 (get_scsi_disk_name): Return 0 for mingw.
33966
33967 * util/hostfs.c: #include <grub/util/misc.h>.
33968 (grub_hostfs_open): Use "rb" flag to open file, use
33969 grub_util_get_disk_size to get disk size for mingw.
33970
33971 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
33972 (asprintf): New function if HAVE_ASPRINTF is not set.
33973 (sync): New function for mingw.
33974 (sleep): Likewise.
33975 (grub_util_get_disk_size): Likewise.
33976
33977 2008-08-28 Pavel Roskin <proski@gnu.org>
33978
33979 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33980 kern/time.c.
33981
33982 2008-08-28 Robert Millan <rmh@aybabtu.com>
33983
33984 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
33985
33986 2008-08-28 Robert Millan <rmh@aybabtu.com>
33987
33988 Change find_grub_drive() syntax so it doesn't prevent it from
33989 detecting NULL names as errors.
33990
33991 * util/biosdisk.c (find_grub_drive): Move free slot search code
33992 from here ...
33993 (find_free_slot): ... to here.
33994 (read_device_map): Use find_free_slot() to search for free slots.
33995
33996 2008-08-27 Marco Gerards <marco@gnu.org>
33997
33998 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
33999 (scsi_mod_SOURCES): New variable.
34000 (scsi_mod_CFLAGS): Likewise
34001 (scsi_mod_LDFLAGS): Likewise.
34002
34003 * disk/scsi.c: New file.
34004
34005 * include/grub/scsi.h: Likewise.
34006
34007 * include/grub/scsicmd.h: Likewise.
34008
34009 * disk/ata.c: Include <grub/scsi.h>.
34010 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34011 instead.
34012 (grub_ata_iterate): Skip ATAPI devices.
34013 (grub_ata_open): Only handle ATAPI devices.
34014 (struct grub_atapi_read): Removed.
34015 (grub_atapi_readsector): Likewise.
34016 (grub_ata_read): No longer handle ATAPI devices.
34017 (grub_ata_write): Likewise.
34018 (grub_atapi_iterate): New function.
34019 (grub_atapi_read): Likewise.
34020 (grub_atapi_write): Likewise.
34021 (grub_atapi_open): Likewise.
34022 (grub_atapi_close): Likewise.
34023 (grub_atapi_dev): New variable.
34024 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34025 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34026
34027 * include/grub/disk.h (enum grub_disk_dev_id): Add
34028 `GRUB_DISK_DEVICE_SCSI_ID'.
34029
34030 2008-08-26 Robert Millan <rmh@aybabtu.com>
34031
34032 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34033 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34034 descriptive.
34035
34036 2008-08-23 Bean <bean123ch@gmail.com>
34037
34038 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34039 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34040 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34041 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34042 dm_nv.mod.
34043 (raid5rec_mod_SOURCES): New macro.
34044 (raid5rec_mod_CFLAGS): Likewise.
34045 (raid5rec_mod_LDFLAGS): Likewise.
34046 (raid6rec_mod_SOURCES): Likewise.
34047 (raid6rec_mod_CFLAGS): Likewise.
34048 (raid6rec_mod_LDFLAGS): Likewise.
34049 (mdraid_mod_SOURCES): Likewise.
34050 (mdraid_mod_CFLAGS): Likewise.
34051 (mdraid_mod_LDFLAGS): Likewise.
34052 (dm_nv_mod_SOURCES): Likewise.
34053 (dm_nv_mod_CFLAGS): Likewise.
34054 (dm_nv_mod_LDFLAGS): Likewise.
34055
34056 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34057 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34058 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34059
34060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34061 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34062
34063 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34064
34065 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34066
34067 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34068
34069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34070
34071 * disk/raid5_recover.c: New file.
34072
34073 * disk/raid6_recover.c: Likewise.
34074
34075 * disk/mdraid_linux.c: Likewise.
34076
34077 * disk/dmraid_nvidia.c: Likewise.
34078
34079 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34080 ULONG_MAX.
34081
34082 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34083 calculate the size of raid device.
34084 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34085 different layout of raid5.
34086 (grub_raid_scan_device): Remove code specific to mdraid.
34087 (grub_raid_list): New variable.
34088 (free_array): New function.
34089 (grub_raid_register): Likewise.
34090 (grub_raid_unregister): Likewise.
34091 (grub_raid_rescan): Likewise.
34092 (GRUB_MOD_INIT): Don't iterate device here.
34093 (GRUB_MOD_FINI): Use free_array to release resource.
34094
34095 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34096 (grub_raid5_recover_func_t): New function variable type.
34097 (grub_raid6_recover_func_t): Likewise.
34098 (grub_raid5_recover_func): New variable.
34099 (grub_raid6_recover_func): Likewise.
34100 (grub_raid_register): New function.
34101 (grub_raid_unregister): Likewise.
34102 (grub_raid_rescan): Likewise.
34103 (grub_raid_block_xor): Likewise.
34104
34105 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34106 (CMD_CRC): New macro.
34107 (part): Removed.
34108 (read_file): Handle device as well as file.
34109 (cmd_crc): New function.
34110 (fstest): Handle multiple disks.
34111 (options): Remove part, raw and long, add root and diskcount.
34112 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34113 (main): Find the first non option entry and ignore subsequent options,
34114 add handling for the new options, support multiple disks.
34115
34116 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34117
34118 2008-08-23 Bean <bean123ch@gmail.com>
34119
34120 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34121
34122 * genfslist.sh: Ignore kernel.mod.
34123
34124 * genpartmaplist.sh: Likewise.
34125
34126 2008-08-23 Robert Millan <rmh@aybabtu.com>
34127
34128 * util/getroot.c (find_root_device): Skip anything that starts with
34129 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34130
34131 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34132
34133 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34134 * util/grub.d/00_header.in: Allow the administrator to change default
34135 gfxmode via ${GRUB_GFXMODE}.
34136
34137 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34138
34139 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34140
34141 2008-08-21 Robert Millan <rmh@aybabtu.com>
34142
34143 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34144 loader.
34145 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34146 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34147
34148 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34149
34150 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34151 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34152
34153 2008-08-19 Robert Millan <rmh@aybabtu.com>
34154
34155 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34156 (struct grub_virtual_screen): Remove `cursor_color'.
34157 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34158 initialization.
34159 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34160
34161 2008-08-18 Robert Millan <rmh@aybabtu.com>
34162
34163 Unify (identical) linux_normal.c files.
34164 * loader/i386/efi/linux_normal.c: Move from here ...
34165 * loader/linux_normal.c: ... to here. Update all users.
34166 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34167 * loader/i386/ieee1275/linux_normal.c: Likewise.
34168
34169 2008-08-18 Robert Millan <rmh@aybabtu.com>
34170
34171 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34172 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34173 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34174 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34175 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34176 New macros.
34177 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34178 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34179 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34180 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34181 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34182 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34183 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34184 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34185 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34186 portably using grub_getxy().
34187 Replace `-EFI' with `-bzImage' in boot message.
34188
34189 2008-08-17 Robert Millan <rmh@aybabtu.com>
34190
34191 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34192
34193 2008-08-17 Robert Millan <rmh@aybabtu.com>
34194
34195 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34196
34197 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34198 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34199 (grub_machine_mmap_iterate): New function declaration.
34200 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34201 structure.
34202 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34203 macros.
34204
34205 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34206 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34207 Move e820 parsing from here ...
34208 * kern/i386/pc/mmap.c: New file.
34209 (grub_machine_mmap_iterate): ... to here.
34210
34211 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34212 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34213 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34214 (grub_available_iterate): Redeclare to return `void', and redeclare
34215 its hook to use grub_uint64_t as addr and size parameters, and rename
34216 to ...
34217 (grub_machine_mmap_iterate): ... this. Update all users.
34218
34219 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34220 to make it more readable. Rename to ...
34221 (grub_machine_mmap_iterate): ... this.
34222
34223 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34224 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34225 (grub_multiboot): Allocate an extra region after the payload, and fill
34226 it with a Multiboot memory map. Adjust a.out loader to calculate size
34227 with the extra space.
34228 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34229 with the extra space.
34230
34231 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34232
34233 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34234
34235 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34236
34237 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34238 mdate-sh to the list `find' searches for.
34239 * DISTLIST: Regenerated.
34240
34241 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34242
34243 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34244 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34245 genmoddep.awk, gensymlist.sh.in.
34246 (DISTDIRS): Add bus, docs, hook, lib.
34247 * DISTLIST: Regenerated.
34248 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34249
34250 2008-08-16 Robert Millan <rmh@aybabtu.com>
34251
34252 * disk/raid.c (grub_raid_init): Handle/report errors set by
34253 grub_device_iterate().
34254 * disk/lvm.c (grub_lvm_init): Likewise.
34255
34256 2008-08-15 Bean <bean123ch@gmail.com>
34257
34258 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34259 and datehook.mod.
34260 (datetime_mod_SOURCES): New macro.
34261 (datetime_mod_CFLAGS): Likewise.
34262 (datetime_mod_LDFLAGS): Likewise.
34263 (date_mod_SOURCES): Likewise.
34264 (date_mod_CFLAGS): Likewise.
34265 (date_mod_LDFLAGS): Likewise.
34266 (datehook_mod_SOURCES): Likewise.
34267 (datehook_mod_CFLAGS): Likewise.
34268 (datehook_mod_LDFLAGS): Likewise.
34269
34270 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34271 and datehook.mod.
34272 (datetime_mod_SOURCES): New macro.
34273 (datetime_mod_CFLAGS): Likewise.
34274 (datetime_mod_LDFLAGS): Likewise.
34275 (date_mod_SOURCES): Likewise.
34276 (date_mod_CFLAGS): Likewise.
34277 (date_mod_LDFLAGS): Likewise.
34278 (datehook_mod_SOURCES): Likewise.
34279 (datehook_mod_CFLAGS): Likewise.
34280 (datehook_mod_LDFLAGS): Likewise.
34281
34282 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34283 and datehook.mod.
34284 (datetime_mod_SOURCES): New macro.
34285 (datetime_mod_CFLAGS): Likewise.
34286 (datetime_mod_LDFLAGS): Likewise.
34287 (date_mod_SOURCES): Likewise.
34288 (date_mod_CFLAGS): Likewise.
34289 (date_mod_LDFLAGS): Likewise.
34290 (datehook_mod_SOURCES): Likewise.
34291 (datehook_mod_CFLAGS): Likewise.
34292 (datehook_mod_LDFLAGS): Likewise.
34293
34294 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34295 and datehook.mod.
34296 (datetime_mod_SOURCES): New macro.
34297 (datetime_mod_CFLAGS): Likewise.
34298 (datetime_mod_LDFLAGS): Likewise.
34299 (date_mod_SOURCES): Likewise.
34300 (date_mod_CFLAGS): Likewise.
34301 (date_mod_LDFLAGS): Likewise.
34302 (datehook_mod_SOURCES): Likewise.
34303 (datehook_mod_CFLAGS): Likewise.
34304 (datehook_mod_LDFLAGS): Likewise.
34305
34306 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34307 and datehook.mod.
34308 (datetime_mod_SOURCES): New macro.
34309 (datetime_mod_CFLAGS): Likewise.
34310 (datetime_mod_LDFLAGS): Likewise.
34311 (date_mod_SOURCES): Likewise.
34312 (date_mod_CFLAGS): Likewise.
34313 (date_mod_LDFLAGS): Likewise.
34314 (datehook_mod_SOURCES): Likewise.
34315 (datehook_mod_CFLAGS): Likewise.
34316 (datehook_mod_LDFLAGS): Likewise.
34317
34318 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
34319
34320 * commands/date.c: New file.
34321
34322 * hook/datehook.c: Likewise.
34323
34324 * include/grub/lib/datetime.h: Likewise.
34325
34326 * include/grub/i386/cmos.h: Likewise.
34327
34328 * lib/datetime.c: Likewise.
34329
34330 * lib/i386/datetime.c: Likewise.
34331
34332 * lib/efi/datetime.c: Likewise.
34333
34334 2008-08-14 Robert Millan <rmh@aybabtu.com>
34335
34336 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
34337 (grub_mkelfimage_SOURCES): New variable.
34338 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
34339
34340 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
34341 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
34342 * conf/powerpc-ieee1275.rmk: Likewise.
34343 * conf/i386-ieee1275.rmk: Likewise.
34344
34345 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
34346 * kern/i386/coreboot/init.c: Likewise.
34347
34348 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
34349 with `<grub/cpu/kernel.h>'.
34350 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
34351 to ...
34352 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
34353 * kern/i386/coreboot/startup.S: Likewise.
34354
34355 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
34356 (GRUB_MOD_GAP): Remove.
34357 * include/grub/powerpc/kernel.h: New file.
34358 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
34359 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34360 * include/grub/i386/kernel.h: New file.
34361 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
34362 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
34363 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34364
34365 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
34366 `grub-mkelfimage'.
34367 Use --directory when invoking grub_mkimage.
34368
34369 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
34370 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
34371 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
34372 and GRUB_KERNEL_CPU_PREFIX.
34373
34374 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
34375
34376 * include/grub/err.h (grub_err_printf): New function prototype.
34377 * util/misc.c (grub_err_printf): New function.
34378 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
34379 grub_printf.
34380 * kern/err.c (grub_print_error): Use grub_err_printf.
34381
34382 2008-08-13 Robert Millan <rmh@aybabtu.com>
34383
34384 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
34385
34386 2008-08-13 Robert Millan <rmh@aybabtu.com>
34387
34388 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
34389 boot entry.
34390
34391 2008-08-12 Robert Millan <rmh@aybabtu.com>
34392
34393 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
34394 of the relocation code from here ...
34395 (grub_multiboot): ... to here.
34396 (forward_relocator, backward_relocator): Move from here ...
34397 * kern/i386/loader.S (grub_multiboot_forward_relocator)
34398 (grub_multiboot_backward_relocator): ... to here.
34399 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
34400 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
34401 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
34402 (grub_multiboot_forward_relocator_end)
34403 (grub_multiboot_backward_relocator)
34404 (grub_multiboot_backward_relocator_end): New variables.
34405
34406 2008-08-12 Bean <bean123ch@gmail.com>
34407
34408 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
34409
34410 2008-08-11 Robert Millan <rmh@aybabtu.com>
34411
34412 * kern/i386/linuxbios/startup.S: Move from here ...
34413 * kern/i386/coreboot/startup.S: ... to here.
34414
34415 * kern/i386/linuxbios/init.c: Move from here ...
34416 * kern/i386/coreboot/init.c: ... to here.
34417
34418 * kern/i386/linuxbios/table.c: Move from here ...
34419 * kern/i386/coreboot/mmap.c: ... to here.
34420
34421 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
34422
34423 2008-08-11 Robert Millan <rmh@aybabtu.com>
34424
34425 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
34426 errors. Leave it to the upper layer to handle them.
34427
34428 2008-08-09 Christian Franke <franke@computer.org>
34429
34430 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
34431 * conf/common.rmk: Install `grub-pe2elf' only if requested.
34432 Install `grub.d/10_windows' only on Cygwin.
34433 * configure.ac: Add subst of `target_os'.
34434 Check `target_os' also before setting TARGET_OBJ2ELF.
34435 Add `--enable-grub-pe2elf'.
34436
34437 2008-08-08 Robert Millan <rmh@aybabtu.com>
34438
34439 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34440 (grub_last_time): Change type to grub_uint64_t.
34441 (grub_disk_open): Migrate code from to using grub_get_time_ms().
34442 (grub_disk_close): Likewise.
34443
34444 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34445 (run_menu): Migrate code from to using grub_get_time_ms().
34446
34447 * util/misc.c (grub_get_time_ms): New function.
34448
34449 2008-08-08 Marco Gerards <marco@gnu.org>
34450
34451 * disk/ata.c (grub_ata_regget): Change return type to
34452 `grub_uint8_t'.
34453 (grub_ata_regget2): Likewise.
34454 (grub_ata_wait_status): New function.
34455 (grub_ata_wait_busy): Removed function, updated all users to use
34456 `grub_ata_wait_status'.
34457 (grub_ata_wait_drq): Likewise.
34458 (grub_ata_cmd): New function.
34459 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
34460 error handling.
34461 (grub_ata_pio_write): Add error handling.
34462 (grub_atapi_identify): Likewise.
34463 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
34464 handling.
34465 (grub_ata_identify): Use `grub_ata_cmd' and improve error
34466 handling. Actually use the detected registers. Reorder the
34467 detection logic such that it is easier to read.
34468 (grub_ata_pciinit): Do not assign the same ID to each controller.
34469 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
34470 handling.
34471 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
34472
34473 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
34474
34475 2008-08-08 Marco Gerards <marco@gnu.org>
34476
34477 * NEWS: Update.
34478
34479 2008-08-07 Bean <bean123ch@gmail.com>
34480
34481 * include/grub/x86_64/pci.h: New file.
34482
34483 2008-08-07 Christian Franke <franke@computer.org>
34484
34485 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
34486 (TIMER2_GATE): Likewise.
34487 (grub_pit_wait): Add enable/disable of the timer2 gate
34488 bit of port 0x61. This fixes a possible infinite loop.
34489
34490 2008-08-07 Bean <bean123ch@gmail.com>
34491
34492 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
34493 kern/i386/tsc.c and kern/i386/pit.c.
34494
34495 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
34496 x86_64 platform.
34497
34498 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
34499 <grub/i386/tsc.h>.
34500
34501 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
34502
34503 2008-08-07 Bean <bean123ch@gmail.com>
34504
34505 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
34506
34507 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
34508
34509 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
34510 multiple inclusion. Add #include <grub/types.h>.
34511
34512 2008-08-06 Christian Franke <franke@computer.org>
34513
34514 * conf/common.rmk: Build and install `10_windows'.
34515 * util/grub.d/10_windows.in: New script.
34516
34517 2008-08-06 Pavel Roskin <proski@gnu.org>
34518
34519 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
34520
34521 2008-08-06 Robert Millan <rmh@aybabtu.com>
34522
34523 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
34524 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
34525
34526 2008-08-06 Bean <bean123ch@gmail.com>
34527
34528 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
34529 (grub_pxefs_fs_int): Remove dummy definition.
34530 (grub_pxefs_open): Use data->block_size to store the current block
34531 size setting.
34532 (grub_pxefs_read): Use block size stored in data->block_size. As the
34533 value of grub_pxe_blksize can be changed after the file is opened.
34534
34535 2008-08-06 Bean <bean123ch@gmail.com>
34536
34537 * fs/i386/pc/pxe.c (curr_file): new variable.
34538 (grub_pxefs_open): Simply the handling of pxe file system. Don't
34539 require the dummy internal file system anymore.
34540 (grub_pxefs_read): Removed.
34541 (grub_pxefs_close): Likewise.
34542 (grub_pxefs_fs_int): Likewise.
34543 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
34544 connection when we switch file.
34545 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
34546
34547 2008-08-06 Robert Millan <rmh@aybabtu.com>
34548
34549 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
34550 `halt.mod'.
34551 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
34552 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
34553
34554 * kern/i386/halt.c: New file.
34555 * kern/i386/reboot.c: Likewise.
34556 * include/grub/i386/reboot.h: Likewise.
34557 * include/grub/i386/halt.h: Likewise.
34558
34559 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
34560 Include `<grub/cpu/halt.h>'.
34561 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
34562 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
34563
34564 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
34565 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
34566 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
34567 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
34568 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
34569 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
34570 from here ...
34571 * include/grub/i386/at_keyboard.h: ... to here.
34572
34573 2008-08-05 Robert Millan <rmh@aybabtu.com>
34574
34575 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
34576 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
34577 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
34578 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34579 `kern/generic/millisleep.c'.
34580
34581 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
34582 instead of grub_get_rtc().
34583 (grub_tsc_init): Initialize `tsc_boot_time'.
34584
34585 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
34586 (grub_machine_init): Use grub_tsc_init() rather than
34587 installing an RTC-based handler via grub_install_get_time_ms().
34588
34589 * kern/i386/pit.c: New file.
34590 * include/grub/i386/pit.h: Likewise.
34591
34592 2008-08-05 Bean <bean123ch@gmail.com>
34593
34594 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
34595
34596 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
34597 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
34598 (pxe_mod_SOURCES): New macro.
34599 (pxe_mod_CFLAGS): Likewise.
34600 (pxe_mod_LDFLAGS): Likewise.
34601 (pxecmd_mod_SOURCES): Likewise.
34602 (pxecmd_mod_CFLAGS): Likewise.
34603 (pxecmd_mod_LDFLAGS): Likewise.
34604
34605 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
34606 (grub_pxe_call): Likewise.
34607
34608 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
34609
34610 * commands/i386/pc/pxecmd.c: New file.
34611
34612 * fs/i386/pc/pxe.c: Likewise.
34613
34614 * include/grub/i386/pc/pxe.h: Likewise.
34615
34616 2008-08-05 Bean <bean123ch@gmail.com>
34617
34618 * util/console.c (grub_console_cur_color): New variable.
34619 (grub_console_standard_color): Likewise.
34620 (grub_console_normal_color): Likewise.
34621 (grub_console_highlight_color): Likewise.
34622 (color_map): Likewise.
34623 (use_color): Likewise.
34624 (NUM_COLORS): New macro.
34625 (grub_ncurses_setcolorstate): Handle color properly.
34626 (grub_ncurses_setcolor): Don't change color here, just remember the
34627 settings, color will be set in grub_ncurses_setcolorstate.
34628 (grub_ncurses_getcolor): New function.
34629 (grub_ncurses_init): Initialize color pairs.
34630 (grub_ncurses_term): New member grub_ncurses_getcolor.
34631
34632 2008-08-05 Colin D Bennett <colin@gibibit.com>
34633
34634 High resolution timer support. Implemented for x86 CPUs using TSC.
34635 Extracted generic grub_millisleep() so it's linked in only as needed.
34636 This requires a Pentium compatible CPU; if the RDTSC instruction is
34637 not supported, then it falls back on the generic grub_get_time_ms()
34638 implementation that uses the machine's RTC.
34639
34640 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
34641 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34642 `kern/generic/millisleep.c'.
34643
34644 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
34645 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
34646
34647 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
34648 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
34649
34650 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34651
34652 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34653 `kern/generic/millisleep.c'.
34654
34655 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34656
34657 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
34658
34659 * kern/generic/rtc_get_time_ms.c: New file.
34660
34661 * kern/generic/millisleep.c: New file.
34662
34663 * kern/misc.c: Don't include
34664 <kern/time.h> anymore.
34665 (grub_millisleep_generic): Removed.
34666
34667 * commands/sleep.c (grub_interruptible_millisleep): Uses
34668 grub_get_time_ms() instead of grub_get_rtc().
34669
34670 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
34671 function.
34672 (grub_cpu_is_cpuid_supported): New inline function.
34673 (grub_cpu_is_tsc_supported): New inline function.
34674 (grub_tsc_init): New function prototype.
34675 (grub_tsc_get_time_ms): New function prototype.
34676
34677 * kern/i386/tsc.c (grub_get_time_ms): New file.
34678
34679 * include/grub/time.h: Include <grub/types.h.
34680 (grub_millisleep_generic): Removed.
34681 (grub_get_time_ms): New prototype.
34682 (grub_install_get_time_ms): New prototype.
34683 (grub_rtc_get_time_ms): New prototype.
34684
34685 * kern/time.c (grub_get_time_ms): New function.
34686 (grub_install_get_time_ms): New function.
34687
34688 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
34689 <grub/time.h> anymore.
34690 (grub_millisleep): Removed.
34691 (grub_machine_init): Call grub_tsc_init.
34692
34693 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
34694 get_time_ms() implementation.
34695
34696 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
34697 (ieee1275_get_time_ms): New function.
34698 (grub_machine_init): Install get_time_ms() implementation.
34699
34700 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
34701 (grub_machine_init): Call grub_tsc_init().
34702 (grub_millisleep): Removed.
34703
34704 * kern/ieee1275/init.c (grub_millisleep): Removed.
34705 (grub_machine_init): Install ieee1275_get_time_ms()
34706 implementation.
34707 (ieee1275_get_time_ms): New function.
34708 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
34709 real work.
34710
34711 2008-08-05 Marco Gerards <marco@gnu.org>
34712
34713 * disk/ata.c: Include <grub/pci.h>.
34714 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
34715 (grub_ata_initialize): Rewritten.
34716 (grub_ata_device_initialize): New function.
34717
34718 2008-08-04 Pavel Roskin <proski@gnu.org>
34719
34720 * kern/main.c: Include grub/mm.h.
34721
34722 2008-08-04 Robert Millan <rmh@aybabtu.com>
34723
34724 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
34725 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
34726 corruption problem).
34727
34728 2008-08-04 Robert Millan <rmh@aybabtu.com>
34729
34730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
34731 warnings introduced in my last commit.
34732
34733 2008-08-03 Robert Millan <rmh@aybabtu.com>
34734
34735 Make PCI available on all i386 architectures.
34736
34737 * include/grub/i386/pc/pci.h: Move from here ...
34738 * include/grub/i386/pci.h: ... to here.
34739
34740 * include/grub/i386/pc/pci.h: Remove.
34741 * include/grub/i386/efi/pci.h: Remove.
34742 * include/grub/x86_64/efi/pci.h: Remove.
34743
34744 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
34745 `<grub/cpu/pci.h>'.
34746
34747 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
34748 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
34749 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
34750
34751 * conf/i386-ieee1275.rmk: Likewise.
34752
34753 2008-08-03 Robert Millan <rmh@aybabtu.com>
34754
34755 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
34756 (grub_console_setcursor): Make it possible to set cursor off.
34757
34758 2008-08-03 Robert Millan <rmh@aybabtu.com>
34759
34760 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
34761 of modules instead of assuming which platform provides what.
34762 * util/update-grub.in: Likewise.
34763
34764 2008-08-03 Robert Millan <rmh@aybabtu.com>
34765
34766 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
34767 instead of `grub_install_dos_part' to determine whether a drive needs
34768 to be prepended to prefix (`grub_install_dos_part' is not reliable,
34769 because it can be overridden when loading GRUB via Multiboot).
34770
34771 2008-08-02 Robert Millan <rmh@aybabtu.com>
34772
34773 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
34774
34775 2008-08-02 Robert Millan <rmh@aybabtu.com>
34776
34777 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
34778 of informational grub_dprintf() calls.
34779
34780 2008-08-02 Robert Millan <rmh@aybabtu.com>
34781
34782 * disk/memdisk.c (memdisk_size): Don't initialize.
34783 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
34784
34785 * include/grub/i386/pc/kernel.h
34786 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
34787 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
34788 (grub_memdisk_image_size, grub_arch_memdisk_addr)
34789 (grub_arch_memdisk_size): Remove.
34790
34791 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
34792 field (was only used to transfer a constant). Add `type' field to
34793 support multiple module types.
34794 (grub_module_iterate): New function.
34795
34796 * kern/device.c (grub_device_open): Do not hide error messages
34797 when grub_disk_open() fails. Use grub_print_error() instead.
34798
34799 * kern/i386/pc/init.c (grub_arch_modules_addr)
34800 (grub_arch_memdisk_size): Remove functions.
34801 (grub_arch_modules_addr): Return the module address in high memory
34802 (now that it isn't copied anymore).
34803
34804 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
34805 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
34806 decompression routine (grub_total_module_size already includes that
34807 now). Don't copy modules back to low memory.
34808
34809 * kern/main.c: Include `<grub/mm.h>'.
34810 (grub_load_modules): Split out (and use) ...
34811 (grub_module_iterate): ... this function, which iterates through
34812 module objects and runs a hook.
34813 Comment out grub_mm_init_region() call, as it would cause non-ELF
34814 modules to be overwritten.
34815
34816 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
34817 the memdisk image in its own region, make it part of the module list.
34818 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
34819 (main): Parse --memdisk|-m option, and pass user-provided path as
34820 parameter to generate_image().
34821 (add_segments): Pass `memdisk_path' down to load_modules().
34822 (load_modules): Embed memdisk image in module section when requested.
34823 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
34824 `header.type' instead of `header.offset'.
34825
34826 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
34827 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
34828 (memdisk_mod_LDFLAGS): New variables.
34829 * conf/i386-coreboot.rmk: Likewise.
34830 * conf/i386-ieee1275.rmk: Likewise.
34831
34832 2008-08-02 Robert Millan <rmh@aybabtu.com>
34833
34834 * loader/i386/pc/multiboot.c (playground, forward_relocator)
34835 (backward_relocator): New variables. Used to allocate and relocate
34836 the payload, respectively.
34837 (grub_multiboot_load_elf32): Load into heap instead of requested
34838 address, install the appropriate relocator code in each bound of
34839 the payload, and set the entry point such that
34840 grub_multiboot_real_boot() will jump to one of them.
34841
34842 * kern/i386/loader.S (grub_multiboot_payload_size)
34843 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
34844 (grub_multiboot_payload_entry_offset): New variables.
34845 (grub_multiboot_real_boot): Set cpu context to what the relocator
34846 expects, and jump to the relocator instead of the payload.
34847
34848 * include/grub/i386/loader.h (grub_multiboot_payload_size)
34849 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
34850 (grub_multiboot_payload_entry_offset): Export.
34851
34852 2008-08-01 Bean <bean123ch@gmail.com>
34853
34854 * normal/menu_entry.c (editor_getline): Don't return the original
34855 string as result, as it will be released by lexer once it has done
34856 using it.
34857
34858 2008-08-01 Robert Millan <rmh@aybabtu.com>
34859
34860 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
34861 within menuentries, not before them.
34862 util/grub.d/10_hurd.in: Likewise.
34863
34864 2008-08-01 Bean <bean123ch@gmail.com>
34865
34866 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
34867 (bufio_mod_SOURCES): New macro.
34868 (bufio_mod_CFLAGS): Likewise.
34869 (bufio_mod_LDFLAGS): Likewise.
34870
34871 * include/grub/bufio.h: New file.
34872
34873 * io/bufio.c: Likewise.
34874
34875 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
34876 (grub_video_reader_png): Use grub_buffile_open to open file.
34877
34878 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
34879 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
34880
34881 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
34882 (grub_video_reader_tga): Use grub_buffile_open to open file.
34883
34884 * font/manager.c: Include <grub/bufio.h>.
34885 (add_font): Use grub_buffile_open to open file.
34886
34887 2008-07-31 Robert Millan <rmh@aybabtu.com>
34888
34889 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
34890 ELF segments, use a macro for arbitrarily accessing any of them instead
34891 of preparing a pointer that allows access to one at a time.
34892 (grub_multiboot_load_elf64): Likewise.
34893
34894 2008-07-31 Bean <bean123ch@gmail.com>
34895
34896 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
34897 GRUB_KERNEL_MACHINE_DATA_END.
34898
34899 2008-07-30 Robert Millan <rmh@aybabtu.com>
34900
34901 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
34902 Increase from 0x50 to 0x60.
34903 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
34904 use UUIDs to identify the root drive for them. If that's not
34905 possible, abort.
34906 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
34907 check, for cross-disk installs.
34908
34909 2008-07-30 Robert Millan <rmh@aybabtu.com>
34910
34911 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
34912 is non-empty, use it to set the `prefix' environment variable instead
34913 of the usual approach.
34914 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
34915 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
34916 environment variable instead of dummy make_install_device().
34917
34918 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
34919 (start): Insert a data section, with `grub_prefix' variable.
34920 * kern/i386/linuxbios/startup.S: Likewise.
34921
34922 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
34923 New variable reference.
34924 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
34925 New macro. Defines offset of `grub_prefix' within startup.S (relative
34926 to `start').
34927 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
34928 section within startup.S (relative to `start').
34929 * include/grub/i386/coreboot/kernel.h: Likewise.
34930
34931 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
34932 Overwrite grub_prefix with its contents, at the beginning of the
34933 first segment.
34934 (main): Understand -p|--prefix.
34935
34936 2008-07-30 Robert Millan <rmh@aybabtu.com>
34937
34938 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
34939
34940 2008-07-30 Robert Millan <rmh@aybabtu.com>
34941
34942 * term/i386/pc/vga_text.c (grub_console_cls): Use
34943 grub_console_gotoxy() to go back to beginning of the screen.
34944 Found by Patrick Georgi <patrick.georgi@coresystems.de>
34945
34946 2008-07-29 Christian Franke <franke@computer.org>
34947
34948 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
34949 Add conversion of emulated mount points on Cygwin.
34950
34951 2008-07-29 Christian Franke <franke@computer.org>
34952
34953 * util/update-grub.in: Add a check for admin
34954 group on Cygwin.
34955 Remove old `grub.cfg.new' before creation.
34956 Add `-f' to `mv' to handle the different filesystem
34957 semantics of Windows.
34958
34959 2008-07-29 Bean <bean123ch@gmail.com>
34960
34961 * normal/main.c (get_line): Fix buffer overflow bug.
34962
34963 2008-07-28 Robert Millan <rmh@aybabtu.com>
34964
34965 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
34966 (struct grub_apple_header): New struct. Describes the layout of
34967 the partmap header.
34968 (apple_partition_map_iterate): Check the header magic as well as the
34969 partition magic (which was already being checked).
34970
34971 2008-07-28 Pavel Roskin <proski@gnu.org>
34972
34973 * genmk.rb: Add a warning to the beginning of the output that
34974 it's a generated file and should not be edited.
34975
34976 2008-07-28 Robert Millan <rmh@aybabtu.com>
34977
34978 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34979 with the same number are found, just use issue a warning with
34980 grub_dprintf(), as this error has been reported to be non-fatal.
34981
34982 2008-07-27 Robert Millan <rmh@aybabtu.com>
34983
34984 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
34985 information.
34986
34987 2008-07-27 Bean <bean123ch@gmail.com>
34988
34989 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
34990 (grub_fat_find_dir): Ignore case when comparing filename.
34991
34992 2008-07-27 Bean <bean123ch@gmail.com>
34993
34994 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
34995 smallino, as it's more descriptive, and i8count can be confused with
34996 the other field count.
34997 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
34998 inode type.
34999
35000 2008-07-27 Bean <bean123ch@gmail.com>
35001
35002 * commands/crc.c: New file.
35003
35004 * lib/crc.c: Likewise.
35005
35006 * include/grub/lib/crc.h: Likewise.
35007
35008 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35009
35010 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35011 (hexdump): Move this function to ...
35012
35013 * lib/hexdump.c: ... here.
35014
35015 * include/grub/hexdump.h: Renamed to ...
35016
35017 * include/grub/lib/hexdump.h: ... this.
35018
35019 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35020
35021 * util/grub-editenv.c: Likewise.
35022
35023 * include/envblk.h: Renamed to ...
35024
35025 * include/lib/envblk.h: ... this.
35026
35027 * util/envblk.c: Renamed to ...
35028
35029 * lib/envblk.c: ... this.
35030
35031 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35032 lib/hexdump.c.
35033 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35034 (pkglib_MODULES): Add crc.mod.
35035 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35036 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35037 (crc_mod_SOURCES): New macro.
35038 (crc_mod_CFLAGS): Likewise.
35039 (crc_mod_LDFLAGS): Likewise.
35040
35041 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35042
35043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35044
35045 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35046
35047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35048
35049 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35050
35051 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35052
35053 * commands/help.c: Include <grub/term.h>.
35054 (TERM_WIDTH): Removed. Updated all users.
35055
35056 2008-07-27 Pavel Roskin <proski@gnu.org>
35057
35058 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35059 spurious warnings about a comment within a comment.
35060
35061 2008-07-25 Robert Millan <rmh@aybabtu.com>
35062
35063 * util/getroot.c (find_root_device): Skip devices that match
35064 /dev/dm-[0-9]. This lets the real device be found for any type of
35065 abstraction (LVM, EVMS, RAID..).
35066 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35067 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35068 device is found first, find_root_device() will now skip it.
35069
35070 2008-07-24 Pavel Roskin <proski@gnu.org>
35071
35072 * include/grub/types.h: Use __builtin_bswap32() and
35073 __builtin_bswap64() with gcc 4.3 and newer.
35074
35075 2008-07-24 Christian Franke <franke@computer.org>
35076
35077 * util/i386/pc/grub-install.in: If `--debug' is specified,
35078 pass `--verbose' to grub-setup.
35079 Abort script if make_system_path_relative_to_its_root() fails.
35080
35081 2008-07-24 Bean <bean123ch@gmail.com>
35082
35083 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35084 variable `target_platform' should be `platform'.
35085
35086 2008-07-24 Bean <bean123ch@gmail.com>
35087
35088 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35089 (grub_png_init_fixed_block): New function.
35090 (grub_png_decode_image_data): Handle fixed huffman code compression.
35091
35092 2008-07-24 Bean <bean123ch@gmail.com>
35093
35094 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35095 (grub_pe2elf_SOURCES): New macro.
35096 (CLEANFILES): Add grub-pe2elf.
35097
35098 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35099 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35100 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35101 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35102 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35103 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35104 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35105 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35106 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35107 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35108 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35109 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35110 (GRUB_PE32_DT_FUNCTION): Likewise.
35111 (GRUB_PE32_REL_I386_DIR32): Likewise.
35112 (GRUB_PE32_REL_I386_REL32): Likewise.
35113 (grub_pe32_symbol): New structure.
35114 (grub_pe32_reloc): Likewise.
35115
35116 * util/grub-pe2elf.c: New file.
35117
35118 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35119 start symbol in non pc platform.
35120
35121 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35122
35123 The following patches are from Christian Franke.
35124
35125 * include/grub/dl.h: Remove .previous, gas supports this only
35126 for ELF format.
35127
35128 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35129 Remove .type, gas supports this only for ELF format.
35130
35131 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35132 nullbytes in symbol table. This fixes an infinite loop if table is
35133 zero filled.
35134
35135 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35136 TARGET_IMG_LDFLAGS and EXEEXT.
35137
35138 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35139 TARGET_IMG_LDFLAGS_AC.
35140 (grub_CHECK_STACK_ARG_PROBE): New function.
35141
35142 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35143
35144 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35145
35146 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35147 to set TARGET_IMG_LD* accordingly.
35148 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35149 Add call to grub_CHECK_STACK_ARG_PROBE.
35150 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35151
35152 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35153
35154 * genmk.rb: Add EXEEXT to CLEANFILES.
35155
35156 2008-07-23 Robert Millan <rmh@aybabtu.com>
35157
35158 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35159 define the codes for arrows and lines used for the menu).
35160 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35161 as well.
35162
35163 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35164 fonts, because the latter are too slow.
35165
35166 2008-07-21 Bean <bean123ch@gmail.com>
35167
35168 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35169 a20. Run keyboard test last, as it will cause macbook to halt.
35170
35171 2008-07-18 Pavel Roskin <proski@gnu.org>
35172
35173 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35174 load foreign architecture modules correctly anyway. Keep
35175 support for loading host architecture modules, whether we
35176 compile them or not.
35177
35178 2008-07-17 Pavel Roskin <proski@gnu.org>
35179
35180 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35181 change target_cpu. The compiler default can mismatch target_cpu
35182 in any case.
35183
35184 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35185 * kern/efi/efi.c: Likewise.
35186
35187 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35188 target compiler is functional.
35189 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35190 are set up.
35191
35192 * configure.ac: Default to efi platform for x86_64-apple. Allow
35193 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35194 adjustments from the rest, only do them if target is not
35195 explicitly given. Merge other adjustments with the final sanity
35196 check. Remove an extraneous check for supported CPU. Be
35197 specific which CPU and which platform is not supported.
35198
35199 * configure.ac: Default to pc platform for x86_64.
35200
35201 2008-07-17 Robert Millan <rmh@aybabtu.com>
35202
35203 Partial LinuxBIOS -> Coreboot rename.
35204
35205 * conf/i386-linuxbios.rmk: Renamed to ...
35206 * conf/i386-coreboot.rmk: ... this.
35207 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35208 * configure.ac: Accept "coreboot" as input platform (but maintain
35209 compatibility with "linuxbios").
35210 * include/grub/i386/linuxbios: Renamed to ...
35211 * include/grub/i386/coreboot: ... this.
35212
35213 2008-07-17 Bean <bean123ch@gmail.com>
35214
35215 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35216 (appleldr_mod_SOURCE): New variable.
35217 (appleldr_mod_CFLAGS): Likewise.
35218 (appleldr_mod_LDFLAGS): Likewise.
35219 (pci_mod_SOURCES): Likewise.
35220 (pci_mod_CFLAGS): Likewise.
35221 (pci_mod_LDFLAGS): Likewise.
35222 (lspci_mod_SOURCES): Likewise.
35223 (lspci_mod_CFLAGS): Likewise.
35224 (lspci_mod_LDFLAGS): Likewise.
35225
35226 * conf/x86_64-efi.rmk: New file.
35227
35228 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35229 macro.
35230 (grub_efidisk_write): Likewise.
35231
35232 * include/efi/api.h (efi_call_0): New macro.
35233 (efi_call_1): Likewise.
35234 (efi_call_2): Likewise.
35235 (efi_call_3): Likewise.
35236 (efi_call_4): Likewise.
35237 (efi_call_5): Likewise.
35238 (efi_call_6): Likewise.
35239
35240 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35241 grub_rescue_cmd_chainloader.
35242
35243 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35244 (grub_pe32_optional_header): Change some fields based on i386 or
35245 x86_64 platform.
35246 (GRUB_PE32_PE32_MAGIC): Likewise.
35247
35248 * include/grub/efi/uga_draw.h: New file.
35249
35250 * include/grub/elf.h (STN_ABS): New constant.
35251 (R_X86_64_NONE): Relocation constant for x86_64.
35252 (R_X86_64_64): Likewise.
35253 (R_X86_64_PC32): Likewise.
35254 (R_X86_64_GOT32): Likewise.
35255 (R_X86_64_PLT32): Likewise.
35256 (R_X86_64_COPY): Likewise.
35257 (R_X86_64_GLOB_DAT): Likewise.
35258 (R_X86_64_JUMP_SLOT): Likewise.
35259 (R_X86_64_RELATIVE): Likewise.
35260 (R_X86_64_GOTPCREL): Likewise.
35261 (R_X86_64_32): Likewise.
35262 (R_X86_64_32S): Likewise.
35263 (R_X86_64_16): Likewise.
35264 (R_X86_64_PC16): Likewise.
35265 (R_X86_64_8): Likewise.
35266 (R_X86_64_PC8): Likewise.
35267
35268 * include/grub/i386/efi/pci.h: New file.
35269
35270 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
35271 Change it value based on platform.
35272 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
35273 (GRUB_E820_RAM): Likewise.
35274 (GRUB_E820_RESERVED): Likewise.
35275 (GRUB_E820_ACPI): Likewise.
35276 (GRUB_E820_NVS): Likewise.
35277 (GRUB_E820_EXEC_CODE): Likewise.
35278 (GRUB_E820_MAX_ENTRY): Likewise.
35279 (grub_e820_mmap): New structure.
35280 (linux_kernel_header): Change the efi field according to different
35281 kernel version, also field from linux_kernel_header.
35282
35283 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
35284
35285 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
35286 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
35287 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
35288 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
35289 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
35290 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
35291 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
35292 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
35293 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
35294 (GRUB_PCI_ADDR_IO_MASK): Likewise.
35295
35296 * include/grub/x86_64/efi/kernel.h: New file.
35297
35298 * include/grub/x86_64/efi/loader.h: Likewise.
35299
35300 * include/grub/x86_64/efi/machine.h: Likewise.
35301
35302 * include/grub/x86_64/efi/pci.h: Likewise.
35303
35304 * include/grub/x86_64/efi/time.h: Likewise.
35305
35306 * include/grub/x86_64/linux.h: Likewise.
35307
35308 * include/grub/x86_64/setjmp.h: Likewise.
35309
35310 * include/grub/x86_64/time.h: Likewise.
35311
35312 * include/grub/x86_64/types.h: Likewise.
35313
35314 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
35315 GRUB_TARGET_SIZEOF_VOID_P.
35316
35317 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
35318 (grub_efi_locate_handle): Likewise.
35319 (grub_efi_open_protocol): Likewise.
35320 (grub_efi_set_text_mode): Likewise.
35321 (grub_efi_stall): Likewise.
35322 (grub_exit): Likewise.
35323 (grub_reboot): Likewise.
35324 (grub_halt): Likewise.
35325 (grub_efi_exit_boot_services): Likewise.
35326 (grub_get_rtc): Likewise.
35327
35328 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
35329 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
35330 (grub_efi_allocate_pages): Wrap efi calls.
35331 (grub_efi_free_pages): Wrap efi calls.
35332 (grub_efi_get_memory_map): Wrap efi calls.
35333
35334 * kern/x86_64/dl.c: New file.
35335
35336 * kern/x86_64/efi/callwrap.S: Likewise.
35337
35338 * kern/x86_64/efi/startup.S: Likewise.
35339
35340 * loader/efi/appleloader.c: Likewise.
35341
35342 * loader/efi/chainloader.c (cmdline): New variable.
35343 (grub_chainloader_unload): Wrap efi calls.
35344 (grub_chainloader_boot): Likewise.
35345 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
35346 command line.
35347
35348 * loader/efi/chainloader_normal.c (chainloader_command):
35349 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
35350 command line.
35351
35352 * loader/i386/efi/linux.c (allocate_pages): Change allocation
35353 method.
35354 (grub_e820_add_region): New function.
35355 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
35356 booting.
35357 (grub_find_video_card): New function.
35358 (grub_linux_setup_video): New function.
35359 (grub_rescue_cmd_linux): Probe for video information.
35360
35361 * normal/x86_64/setjmp.S: New file.
35362
35363 * term/efi/console.c (map_char): New function.
35364 (grub_console_putchar): Map unicode char.
35365 (grub_console_checkkey): Wrap efi calls.
35366 (grub_console_getkey): Likewise.
35367 (grub_console_getwh): Likewise.
35368 (grub_console_gotoxy): Likewise.
35369 (grub_console_cls): Likewise.
35370 (grub_console_setcolorstate): Likewise.
35371 (grub_console_setcursor): Likewise.
35372
35373 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
35374
35375 2008-07-16 Pavel Roskin <proski@gnu.org>
35376
35377 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
35378 format strings.
35379
35380 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
35381 pointer, not an integer. This fixes a warning and prevents
35382 precision loss on 64-bit systems.
35383 (relocate_addresses): Remove unneeded cast.
35384
35385 2008-07-15 Pavel Roskin <proski@gnu.org>
35386
35387 * kern/i386/ieee1275/init.c: Include grub/cache.h.
35388
35389 * term/ieee1275/ofconsole.c: Disable code unused on i386.
35390
35391 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
35392 Fix comparison between signed and unsigned.
35393
35394 * include/grub/i386/ieee1275/console.h: Declare
35395 grub_console_init() and grub_console_fini().
35396
35397 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
35398 It's empty and unused.
35399
35400 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
35401 beginning to avoid warnings with some compilers.
35402
35403 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
35404 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
35405
35406 2008-07-14 Pavel Roskin <proski@gnu.org>
35407
35408 * kern/env.c (grub_register_variable_hook): Don't copy empty
35409 string, it leaks memory. Pass "" to grub_env_set(), it should
35410 handle constant strings.
35411
35412 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
35413 * commands/cmp.c (grub_cmd_cmp): Likewise.
35414 * kern/dl.c (grub_dl_flush_cache): Likewise.
35415 (grub_dl_load_core): Likewise.
35416 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
35417 (grub_elf64_load_phdrs): Likewise.
35418
35419 2008-07-13 Pavel Roskin <proski@gnu.org>
35420
35421 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
35422 between signed and unsigned.
35423 (LzmaEnc_Finish): Fix warning about an unused parameter.
35424
35425 2008-07-13 Bean <bean123ch@gmail.com>
35426
35427 * Makefile.in (enable_lzo): New rule.
35428
35429 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
35430
35431 * configure.ac (ENABLE_LZO): New option --enable-lzo.
35432
35433 * boot/i386/pc/lnxboot.S: #include <config.h>.
35434
35435 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
35436 its value according to the compression algorithm used, lzo or lzma.
35437
35438 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
35439 compression algorithm according to configure macro.
35440
35441 * kern/i386/pc/startup.S (codestart): Likewise.
35442
35443 * kern/i386/pc/lzma_decode.S: New file.
35444
35445 * include/grub/lib/LzFind.h: Likewise.
35446
35447 * include/grub/lib/LzHash.h: Likewise.
35448
35449 * include/grub/lib/LzmaDec.h: Likewise.
35450
35451 * include/grub/lib/LzmaEnc.h: Likewise.
35452
35453 * include/grub/lib/LzmaTypes.h: Likewise.
35454
35455 * lib/LzFind.c: Likewise.
35456
35457 * lib/LzmaDec.c: Likewise.
35458
35459 * lib/LzmaEnc.c: Likewise.
35460
35461 2008-07-13 Bean <bean123ch@gmail.com>
35462
35463 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
35464 (grub_ext4_extent_header): New structure.
35465 (grub_ext4_extent): Likewise.
35466 (grub_ext4_extent_idx): Likewise.
35467 (grub_ext4_find_leaf): New function.
35468 (grub_ext2_read_block): Handle extents.
35469
35470 2008-07-12 Robert Millan <rmh@aybabtu.com>
35471
35472 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
35473
35474 2008-07-11 Robert Millan <rmh@aybabtu.com>
35475
35476 * util/grub.d/40_custom.in: New file. Example on how to add custom
35477 entries to /etc/grub.d.
35478 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
35479 40_custom (implicitly, by merging all the grub.d rules).
35480
35481 2008-07-11 Pavel Roskin <proski@gnu.org>
35482
35483 * commands/read.c (grub_getline): Fix invalid memory access.
35484 Don't add newline to the variable value.
35485
35486 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
35487 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
35488 (serial_hw_get_port): Check validity of the port number.
35489 (grub_cmd_serial): Check return value of serial_hw_get_port().
35490
35491 2008-07-07 Pavel Roskin <proski@gnu.org>
35492
35493 * boot/i386/pc/diskboot.S (notification_string): Replace
35494 "Loading kernel" with just "loading". This is shorter, less
35495 confusing and saves a few bytes for possible future changes.
35496
35497 2008-07-05 Pavel Roskin <proski@gnu.org>
35498
35499 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
35500 size for ATAPI devices, they are undefined. Output sector
35501 number in decimal form.
35502
35503 * disk/ata.c: Use named constants for status bits.
35504
35505 2008-07-04 Pavel Roskin <proski@gnu.org>
35506
35507 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
35508 grub_addr_t before casting it to the void pointer to fix a
35509 warning. Non-addressable regions are discarded earlier.
35510 (grub_arch_modules_addr): Cast _end to grub_addr_t.
35511 * kern/i386/linuxbios/table.c: Include grub/misc.h.
35512 (check_signature): Don't shadow table_header.
35513 (grub_linuxbios_table_iterate): Cast numeric constants to
35514 grub_linuxbios_table_header_t.
35515 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
35516 grub_stop().
35517
35518 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
35519 prevent warnings.
35520
35521 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
35522 pointer, which can cause warnings. Support 64-bit addresses.
35523
35524 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
35525 of sizeof(long). This fixes PowerPC image generation on x86_64.
35526
35527 2008-07-04 Robert Millan <rmh@aybabtu.com>
35528
35529 This fixes a performance issue when pc & gpt partmap iterators
35530 didn't abort iteration even after our hook found what it was
35531 looking for (often causing expensive probes of non-existent drives).
35532
35533 Some callers relied on previous buggy behaviour, since they would
35534 raise an error when their own hooks caused early abortion of its
35535 iteration.
35536
35537 * kern/device.c (grub_device_open): Improve error message.
35538 * disk/lvm.c (grub_lvm_open): Likewise.
35539 * disk/raid.c (grub_raid_open): Likewise.
35540
35541 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
35542 when hook requests it, independently of grub_errno.
35543 (pc_partition_map_probe): Do not fail when find_func() caused
35544 early abortion of pc_partition_map_iterate().
35545
35546 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
35547 when hook requests it, independently of grub_errno.
35548 (gpt_partition_map_probe): Do not fail when find_func() caused
35549 early abortion of gpt_partition_map_iterate().
35550
35551 * kern/partition.c (grub_partition_iterate): Abort parent iteration
35552 when hook requests it, independently of grub_errno. Do not fail when
35553 part_map_iterate_hook() caused early abortion of p->iterate().
35554
35555 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
35556 when grub_partition_iterate() returned with non-zero.
35557
35558 2008-07-03 Pavel Roskin <proski@gnu.org>
35559
35560 * disk/ata.c (grub_ata_pio_write): Check status before writing,
35561 like we do in grub_ata_pio_read().
35562 (grub_ata_readwrite): Always write individual sectors. Fix the
35563 sector count for the remainder.
35564 (grub_ata_write): Enable writing to ATA devices. Correctly
35565 report error for ATAPI devices.
35566
35567 2008-07-02 Pavel Roskin <proski@gnu.org>
35568
35569 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
35570 warning.
35571
35572 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
35573 for every read sector, we already increment it for the whole
35574 batch. This fixes reading more than 256 sectors at once.
35575
35576 * util/grub-editenv.c (cmd_info): Cast argument to long
35577 explicitly. ptrdiff_t reduces to int on i386.
35578
35579 * util/grub-editenv.c (main): Be specific which parameter is
35580 missing.
35581
35582 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
35583 (memdisk): Make memdisk_orig_addr a pointer.
35584
35585 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
35586 for file offsets, use grub_off_t instead. Fix printf format
35587 warnings.
35588
35589 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
35590 there. Real unexpected warnings should not drown in the noise
35591 about known problems.
35592
35593 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
35594 grub_disk_addr_t for memory addresses.
35595
35596 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
35597 explicitly to fix a warning.
35598
35599 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
35600
35601 * Makefile.in (MODULE_LDFLAGS): New variable.
35602 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
35603 the linker accepts --build-id=none.
35604 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
35605 MODULE_LDFLAGS.
35606 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
35607
35608 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
35609 those in Linux XFS code. Provide a way to access 64-bit parent
35610 inode.
35611 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
35612 the end of struct grub_xfs_dir_header.
35613
35614 2008-07-02 Bean <bean123ch@gmail.com>
35615
35616 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
35617 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35618 and GRUB_IEEE1275_FLAG_NO_ANSI.
35619
35620 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
35621 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35622 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
35623
35624 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
35625 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
35626
35627 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
35628 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
35629
35630 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
35631 esc sequence on non ANSI terminal.
35632 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
35633
35634 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
35635 beginning of file.
35636
35637 2008-07-02 Bean <bean123ch@gmail.com>
35638
35639 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
35640 (grub_editenv_SOURCES): New variable.
35641 (pkglib_MODULES): Add loadenv.mod.
35642 (loadenv_mod_SOURCES): New variable.
35643 (loadenv_mod_CFLAGS): Likewise.
35644 (loadenv_mod_LDFLAGS): Likewise.
35645
35646 * include/grub/envblk.h: New file.
35647
35648 * util/envblk.c: New file.
35649
35650 * util/grub-editenv.c: New file.
35651
35652 * commands/loadenv.c: New file.
35653
35654 2008-07-01 Pavel Roskin <proski@gnu.org>
35655
35656 * include/multiboot2.h (struct multiboot_tag_module): Use char,
35657 not unsigned char. This fixes warnings and is consistent with
35658 other tags.
35659
35660 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
35661
35662 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
35663
35664 * term/tparm.c (analyze): Always set *popcount.
35665
35666 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
35667 cast to fix a warning.
35668
35669 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
35670 cast to suppress a warning.
35671
35672 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
35673 grub_fshelp_read_file() expects.
35674
35675 * fs/fat.c: Fix UUID calculation on big-endian systems. We
35676 write uuid as a 32-bit value in CPU byte order, so declare and
35677 use it as such.
35678
35679 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
35680 long if the format specifier expects it.
35681 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
35682 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35683 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
35684 long to fix a warning.
35685 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
35686 grub_dprintf() arguments to fix warnings.
35687
35688 2008-06-30 Pavel Roskin <proski@gnu.org>
35689
35690 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
35691 install_bsd_part immediately before core.img is embedded or
35692 modified on disk. This fixes core.img verification if core.img
35693 cannot be embedded.
35694
35695 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
35696 core_path to calculate the blocklist.
35697 Patch from Javier Martín <lordhabbit@gmail.com>
35698
35699 2008-06-29 Robert Millan <rmh@aybabtu.com>
35700
35701 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
35702 block to disk block.
35703 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
35704 Patch from Niels Böhm <bitbucket@arcor.de>
35705
35706 2008-06-29 Robert Millan <rmh@aybabtu.com>
35707
35708 * util/update-grub_lib.in (font_path): Search for fonts in
35709 /boot/grub first, which is more likely to be readable (we aren't
35710 deciding where fonts live, just looking for them).
35711
35712 2008-06-26 Pavel Roskin <proski@gnu.org>
35713
35714 * util/biosdisk.c (read_device_map): Don't leave dead map
35715 entries for devices failing stat() check.
35716
35717 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
35718 core_path_dev for the core.img path on the target device.
35719
35720 2008-06-26 Robert Millan <rmh@aybabtu.com>
35721
35722 * disk/fs_uuid.c: New file.
35723 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
35724 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
35725 (fs_uuid_mod_LDFLAGS): New variables.
35726 * include/grub/disk.h (grub_disk_dev_id): Add
35727 `GRUB_DISK_DEVICE_UUID_ID'.
35728 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
35729 implement iterate().
35730
35731 2008-06-26 Robert Millan <rmh@aybabtu.com>
35732
35733 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
35734 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
35735 Linux image includes no initrd.
35736
35737 2008-06-21 Javier Martín <lordhabbit@gmail.com>
35738
35739 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
35740 call to resolve the core image location that effectively appended the
35741 name twice.
35742
35743 2008-06-21 Robert Millan <rmh@aybabtu.com>
35744
35745 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
35746 call from here ...
35747
35748 * util/grub.d/10_hurd.in: ... to here ...
35749 * util/grub.d/10_linux.in: ... and here.
35750
35751 2008-06-19 Robert Millan <rmh@aybabtu.com>
35752
35753 * kern/main.c (grub_main): Export `prefix' variable immediately
35754 after it has been set by grub_machine_set_prefix().
35755
35756 2008-06-19 Robert Millan <rmh@aybabtu.com>
35757
35758 * commands/search.c (search_label, search_fs_uuid, search_file): Print
35759 search result when not saving to variable, not the other way around.
35760 When saving to variable, abort iteration as soon as a match is found.
35761
35762 2008-06-19 Robert Millan <rmh@aybabtu.com>
35763
35764 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
35765 check for partition that provides /boot/grub. Its logic is flawed,
35766 as it prevents prepare_grub_to_access_device() from being called
35767 multiple times.
35768
35769 2008-06-19 Robert Millan <rmh@aybabtu.com>
35770
35771 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
35772 "insmod" command directly when abstraction modules are needed,
35773 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
35774 since it had already been processed).
35775
35776 2008-06-19 Pavel Roskin <proski@gnu.org>
35777
35778 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
35779 changed. This is needed in case GRUB_LIBDIR changes.
35780 * conf/i386-ieee1275.rmk: Likewise.
35781 * conf/i386-linuxbios.rmk: Likewise.
35782 * conf/i386-pc.rmk: Likewise.
35783 * conf/powerpc-ieee1275.rmk: Likewise.
35784
35785 2008-06-18 Pavel Roskin <proski@gnu.org>
35786
35787 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
35788 kernel_elf_symlist.c to symlist.c for consistency with other
35789 architectures. Update all users.
35790 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35791
35792 2008-06-18 Robert Millan <rmh@aybabtu.com>
35793
35794 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
35795 it in prefix.
35796
35797 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
35798 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
35799 a RAID device, run setup() for all members independently on whether
35800 LVM abstraction is being used.
35801 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
35802 If grub-mkimage has set `*install_dos_part == -2', don't override this
35803 value.
35804 Perform *install_dos_part adjustments independently on whether
35805 we're embedding or not.
35806 Clarify error message when image is too big for embedding.
35807 Remove duplicate *install_dos_part stanza.
35808
35809 2008-06-17 Robert Millan <rmh@aybabtu.com>
35810
35811 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
35812 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
35813 variables.
35814 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
35815 values in grub_ofconsole_normal_color and
35816 grub_ofconsole_highlight_color (they're not directly related to
35817 background and foreground).
35818 (grub_ofconsole_setcolorstate): Extract background and foreground
35819 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
35820
35821 2008-06-17 Robert Millan <rmh@aybabtu.com>
35822
35823 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
35824 /boot/grub for the check in last commit, not /boot (they could be
35825 different partitions).
35826
35827 2008-06-16 Robert Millan <rmh@aybabtu.com>
35828
35829 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
35830 asked to setup access for the same partition that provides /boot,
35831 don't bother using UUIDs since our root already has the value we
35832 want.
35833
35834 2008-06-16 Robert Millan <rmh@aybabtu.com>
35835
35836 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
35837 I2O devices.
35838 Patch from Sven Mueller <sven@debian.org>.
35839
35840 2008-06-16 Robert Millan <rmh@aybabtu.com>
35841
35842 * util/update-grub.in: Check for $EUID instead of $UID.
35843 Reported by Vincent Zweije.
35844
35845 2008-06-16 Bean <bean123ch@gmail.com>
35846
35847 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
35848 (grub_ext2_read_block): Likewise.
35849 (grub_ext2_read_inode): Likewise.
35850 (grub_ext2_mount): Likewise.
35851 (grub_ext2_close): Likewise.
35852 (grub_ext3_get_journal): Removed.
35853
35854 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
35855 (grub_reiserfs_read_symlink): Likewise.
35856 (grub_reiserfs_mount): Likewise.
35857 (grub_reiserfs_open): Likewise.
35858 (grub_reiserfs_read): Likewise.
35859 (grub_reiserfs_close): Likewise.
35860 (grub_reiserfs_get_journal): Removed.
35861
35862 * fs/fshelp.c (grub_fshelp_read): Removed.
35863 (grub_fshelp_map_block): Likewise.
35864
35865 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
35866 (grub_fshelp_journal): Likewise.
35867 (grub_fshelp_read): Likewise.
35868 (grub_fshelp_map_block): Likewise.
35869
35870 2008-06-16 Pavel Roskin <proski@gnu.org>
35871
35872 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
35873 floating point anymore.
35874 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
35875
35876 2008-06-15 Pavel Roskin <proski@gnu.org>
35877
35878 * commands/ls.c (grub_ls_list_files): Use integer calculations
35879 for human readable format, avoid floating point use.
35880 * kern/misc.c (grub_ftoa): Remove.
35881 (grub_vsprintf): Remove floating point support.
35882
35883 2008-06-15 Robert Millan <rmh@aybabtu.com>
35884
35885 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
35886 devices.
35887 Reported by Max Vozeler.
35888
35889 2008-06-15 Robert Millan <rmh@aybabtu.com>
35890
35891 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
35892 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
35893 skipped later.
35894 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
35895 the beginning of the prefix.
35896
35897 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
35898 It is assumed that if we have a memdisk, grub-mkimage has set
35899 grub_prefix to include the "(memdisk)" drive in it.
35900
35901 2008-06-15 Robert Millan <rmh@aybabtu.com>
35902
35903 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
35904 Initialize keyboard controller after registering the terminal, so that
35905 grub_printf() can be called from grub_keyboard_controller_init().
35906
35907 2008-06-15 Robert Millan <rmh@aybabtu.com>
35908
35909 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
35910 extent-btree which is written as big endian on disk.
35911 Reported by Alain Greppin <al@chilibi.org>.
35912
35913 2008-06-14 Robert Millan <rmh@aybabtu.com>
35914
35915 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
35916 * util/i386/pc/grub-install.in (modules): Likewise.
35917
35918 2008-06-13 Pavel Roskin <proski@gnu.org>
35919
35920 * commands/ls.c (grub_ls_list_files): Fix format warnings.
35921
35922 2008-06-13 Bean <bean123ch@gmail.com>
35923
35924 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
35925
35926 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
35927
35928 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
35929 to indicate sparse block.
35930
35931 2008-06-12 Pavel Roskin <proski@gnu.org>
35932
35933 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
35934 number, grub_fshelp_read() does it for us.
35935
35936 * fs/fshelp.c (grub_fshelp_read): New function. Implement
35937 linear disk read with journal translation.
35938 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
35939 * include/grub/fshelp.h: Declare grub_fshelp_read().
35940
35941 2008-06-09 Pavel Roskin <proski@gnu.org>
35942
35943 * fs/minix.c (grub_minix_mount): Handle error reading
35944 superblock.
35945
35946 2008-06-08 Robert Millan <rmh@aybabtu.com>
35947
35948 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
35949 don't append the RAID prefix afterwards.
35950 Reported by Clint Adams.
35951
35952 2008-06-08 Robert Millan <rmh@aybabtu.com>
35953
35954 Based on description from Pavel:
35955 * kern/disk.c (grub_disk_check_range): Rename to ...
35956 (grub_disk_adjust_range): ... this. Add a comment explaining the
35957 tasks performed by this function.
35958
35959 2008-06-08 Robert Millan <rmh@aybabtu.com>
35960
35961 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
35962 `num_serial' (for consistency with other variables).
35963 (struct grub_ntfs_data): Add `uuid' member.
35964 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
35965 (grub_ntfs_uuid): New function.
35966 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
35967
35968 2008-06-07 Pavel Roskin <proski@gnu.org>
35969
35970 * util/biosdisk.c (open_device): Revert last change to the
35971 function, it broke installation. The sector needs to be
35972 different dependent on which device is opened.
35973
35974 2008-06-06 Robert Millan <rmh@aybabtu.com>
35975
35976 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
35977 rest of GRUB, and breakage doesn't happen if its value were modified.
35978
35979 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35980 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
35981 a constant (same value).
35982 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
35983 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
35984
35985 2008-06-06 Robert Millan <rmh@aybabtu.com>
35986
35987 * util/biosdisk.c (open_device): Do not modify sector offset when
35988 accessing a partition. kern/disk.c already handles this for us.
35989
35990 2008-06-06 Robert Millan <rmh@aybabtu.com>
35991
35992 * util/grub-emu.c (grub_machine_init): Move code in this function from
35993 here ...
35994 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
35995 segfault in case grub_printf() is called).
35996
35997 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
35998 grub_probe. Update all users not to explicitly add it again.
35999 (grub_device): New variable; contains corresponding device for grubdir.
36000 (fs_module, partmap_module, devabstraction_module): Pass
36001 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36002 every time.
36003
36004 2008-06-05 Robert Millan <rmh@aybabtu.com>
36005
36006 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36007 is found, print it (same layout as with labels).
36008
36009 2008-06-04 Robert Millan <rmh@aybabtu.com>
36010
36011 * util/biosdisk.c (get_drive): Rename to ...
36012 (find_grub_drive): ... this. Update all users.
36013
36014 (get_os_disk): Rename to ...
36015 (convert_system_partition_to_system_disk): ... this. Update all users.
36016
36017 (find_drive): Rename to ...
36018 (find_system_device): ... this. Update all users.
36019
36020 2008-06-04 Robert Millan <rmh@aybabtu.com>
36021
36022 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36023 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36024 (make_device_map): Likewise.
36025
36026 2008-06-01 Robert Millan <rmh@aybabtu.com>
36027
36028 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36029 before dereferencing it.
36030
36031 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36032 union with fat12/fat16-specific ones. Add some new fields, including
36033 `num_serial' for both versions.
36034 (struct grub_fat_data): Add `uuid' member.
36035 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36036 names. Initialize `data->uuid' using `num_serial'.
36037 (grub_fat_uuid): New function.
36038 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36039
36040 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36041 (grub_reiserfs_uuid): New function.
36042 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36043 member.
36044
36045 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36046 (grub_xfs_uuid): New function.
36047 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36048
36049 2008-06-01 Robert Millan <rmh@aybabtu.com>
36050
36051 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36052 code that is backward compatible with pre-uuid search command.
36053
36054 2008-05-31 Robert Millan <rmh@aybabtu.com>
36055
36056 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36057 floppies after everything else, to ensure floppy drive isn't accessed
36058 unnecessarily (patch from Bean).
36059
36060 2008-05-31 Robert Millan <rmh@aybabtu.com>
36061
36062 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36063 not print device names when we were asked to set a variable.
36064
36065 2008-05-31 Robert Millan <rmh@aybabtu.com>
36066
36067 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36068 using "cursor-on" and "cursor-off" commands (understood at least by
36069 the Open Firmware flavour on OLPC).
36070
36071 2008-05-31 Michael Gorven <michael@gorven.za.net>
36072
36073 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36074 on and off sequences.
36075
36076 2008-05-31 Robert Millan <rmh@aybabtu.com>
36077
36078 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36079 * util/update-grub.in: Likewise.
36080
36081 2008-05-30 Pavel Roskin <proski@gnu.org>
36082
36083 * util/biosdisk.c (linux_find_partition): Simplify logic and
36084 make the code more universal. Keep special processing for
36085 devfs, but use a simple rule for all other devices. If the
36086 device ends with a number, append 'p' and the partition number.
36087 Otherwise, append only the partition number.
36088
36089 2008-05-30 Robert Millan <rmh@aybabtu.com>
36090
36091 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36092 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36093 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36094 the `root' parameter to Linux.
36095
36096 2008-05-30 Robert Millan <rmh@aybabtu.com>
36097
36098 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36099 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36100 --fs_uuid with --fs-uuid.
36101 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36102 all filesystems support them).
36103
36104 2008-05-30 Robert Millan <rmh@aybabtu.com>
36105
36106 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36107 grub_printf() flags, since we're printing in units of 2 bytes.
36108
36109 2008-05-30 Robert Millan <rmh@aybabtu.com>
36110
36111 * util/grub.d/00_header.in: Remove obsolete comment referencing
36112 convert_system_path_to_grub_path().
36113 * util/update-grub.in: Likewise.
36114 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36115 (convert_system_path_to_grub_path): Add a warning message explaining
36116 that this function is deprecated. Rely on is_path_readable_by_grub()
36117 for the readability checks.
36118 (font_path): Use is_path_readable_by_grub() for the readability
36119 check rather than convert_system_path_to_grub_path().
36120
36121 2008-05-30 Robert Millan <rmh@aybabtu.com>
36122
36123 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36124 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36125 converting it first.
36126 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36127 grub.cfg for access to font file, and afterwards call it again to set
36128 the root device.
36129
36130 2008-05-30 Robert Millan <rmh@aybabtu.com>
36131
36132 * commands/search.c (options): Add --fs_uuid option.
36133 (search_fs_uuid): New function.
36134 (grub_cmd_search): Fix --set argument passing.
36135 Use search_fs_uuid() when requested via --fs_uuid.
36136 (grub_search_init): Update help message.
36137 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36138 and redeclare it as an array of 16-bit words.
36139 (grub_ext2_uuid): New function.
36140 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36141 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36142 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36143 (GRUB_DEVICE_BOOT_UUID): New variables.
36144 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36145 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36146 whenever possible.
36147 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36148 just assume `root' variable has the right value.
36149 * util/grub.d/10_linux.in: Likewise.
36150 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36151 via PRINT_FS_UUID.
36152 (main): Recognise `-t fs_uuid' argument.
36153
36154 2008-05-30 Robert Millan <rmh@aybabtu.com>
36155
36156 * util/biosdisk.c (map): Redefine structure to hold information
36157 about GRUB drive name.
36158 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36159 drive names.
36160 (call_hook): Remove.
36161 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36162 member. Assume drive has partitions.
36163 (grub_util_biosdisk_open): Access device names via `.device' struct
36164 member.
36165 (open_device): Likewise.
36166 (find_drive): Likewise.
36167 (read_device_map): Adjust map[] usage to match the new struct
36168 definition. Don't check for duplicates (still possible, but not cheap
36169 anymore).
36170 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36171 (make_device_name): Remove assumption of BIOS-like drive names.
36172
36173 2008-05-30 Pavel Roskin <proski@gnu.org>
36174
36175 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36176 compiling execute.c doesn't need grub_script.tab.h anymore.
36177 (normal/command.c_DEPENDENCIES): Likewise.
36178 (normal/function.c_DEPENDENCIES): Likewise.
36179 * conf/i386-ieee1275.rmk: Likewise.
36180 * conf/i386-linuxbios.rmk: Likewise.
36181 * conf/i386-pc.rmk: Likewise.
36182 * conf/powerpc-ieee1275.rmk: Likewise.
36183 * conf/sparc64-ieee1275.rmk: Likewise.
36184
36185 2008-05-29 Pavel Roskin <proski@gnu.org>
36186
36187 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36188 when scanning metadata for volume group name.
36189
36190 * include/grub/script.h: Don't include grub_script.tab.h. It's
36191 a generated file, which may only be included from the files with
36192 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36193 use union YYSTYPE, as the later allows forward declaration.
36194 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36195
36196 2008-05-29 Robert Millan <rmh@aybabtu.com>
36197
36198 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36199 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36200 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36201 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36202 scan codes.
36203
36204 2008-05-29 Robert Millan <rmh@aybabtu.com>
36205
36206 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36207 control key combinations.
36208
36209 2008-05-29 Robert Millan <rmh@aybabtu.com>
36210
36211 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36212 * util/ieee1275/grub-install.in: ... to here.
36213 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36214 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36215 (grub_install_SOURCES): Likewise.
36216
36217 2008-05-29 Robert Millan <rmh@aybabtu.com>
36218
36219 * fs/affs.c: Update copyright year.
36220 * fs/ext2.c: Likewise.
36221 * fs/fshelp.c: Likewise.
36222 * fs/hfsplus.c: Likewise.
36223 * fs/ntfs.c: Likewise.
36224 * fs/xfs.c: Likewise.
36225 * include/grub/fshelp.h: Likewise.
36226 * util/grub-mkdevicemap.c: Likewise.
36227
36228 2008-05-28 Robert Millan <rmh@aybabtu.com>
36229
36230 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36231 might need to be fatfs to support some firmware implementations
36232 (e.g. OFW or EFI).
36233
36234 2008-05-28 Robert Millan <rmh@aybabtu.com>
36235
36236 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36237 devices.
36238 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36239 (make_device_map): Likewise.
36240
36241 2008-05-20 Bean <bean123ch@gmail.com>
36242
36243 * fs/fshelp.c (grub_fshelp_map_block): New function.
36244 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36245 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36246
36247 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36248 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36249 (grub_fshelp_journal): New structure.
36250 (grub_fshelp_map_block): New function prototype.
36251 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36252 (grub_fshelp_map_block): Likewise.
36253
36254 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36255 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36256 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36257 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36258 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36259 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36260 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36261 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36262 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36263 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36264 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36265 (grub_ext2_sblock): New members for journal support.
36266 (grub_ext3_journal_header): New structure.
36267 (grub_ext3_journal_revoke_header): Likewise.
36268 (grub_ext3_journal_block_tag): Likewise.
36269 (grub_ext3_journal_sblock): Likewise.
36270 (grub_fshelp_node): New members logfile and journal.
36271 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
36272 grub_fshelp_map_block to get real block number.
36273 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
36274 number.
36275 (grub_ext2_read_inode): Likewise.
36276 (grub_ext3_get_journal): New function.
36277 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
36278 (grub_ext2_close): Release memory used by journal.
36279
36280 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
36281 (REISERFS_MAGIC_DESC_BLOCK): New macro.
36282 (grub_reiserfs_transaction_header): Renamed to
36283 grub_reiserfs_description_block, replace field data with real_blocks.
36284 (grub_reiserfs_commit_block): New structure.
36285 (grub_reiserfs_data): New member journal.
36286 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
36287 number.
36288 (grub_reiserfs_read_symlink): Likewise.
36289 (grub_reiserfs_iterate_dir): Likewise.
36290 (grub_reiserfs_open): Likewise.
36291 (grub_reiserfs_read): Likewise.
36292 (grub_reiserfs_get_journal): New function.
36293 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
36294 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
36295 using grub_reiserfs_get_journal.
36296 (grub_reiserfs_close): Release memory used by journal.
36297
36298 * fs/affs.c (grub_affs_read_block): Change block type to
36299 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
36300
36301 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
36302
36303 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
36304
36305 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
36306
36307 * fs/udf.c (grub_udf_read_block): Change block type to
36308 grub_disk_addr_t. Use type cast to avoid warning.
36309
36310 * fs/xfs.c (grub_xfs_read_block): Likewise.
36311
36312 2008-05-16 Christian Franke <franke@computer.org>
36313
36314 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
36315 to ensure that break with ESC will always work.
36316 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
36317 Remove ESC from keyboard queue.
36318
36319 2008-05-16 Christian Franke <franke@computer.org>
36320
36321 * util/biosdisk.c: [__CYGWIN__] Add includes.
36322 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
36323 (get_os_disk): Move variable declarations to OS specific
36324 parts to avoid warning.
36325 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
36326 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
36327 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
36328 Cygwin.
36329 * util/getroot.c: [__CYGWIN__] Add includes.
36330 (strip_extra_slashes): Fix "/" case.
36331 [__CYGWIN__] (get_win32_path): New function.
36332 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
36333 [__CYGWIN__] (find_root_device): Disable.
36334 [__CYGWIN__] (get_bootsec_serial): New function.
36335 [__CYGWIN__] (find_cygwin_root_device): Likewise.
36336 [__linux__] (grub_guess_root_device): Add early returns to simplify
36337 structure.
36338 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
36339 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
36340 check for Linux only.
36341
36342 2008-05-15 Bean <bean123ch@gmail.com>
36343
36344 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
36345 keyboard hang problem in apple's intel mac.
36346
36347 2008-05-09 Robert Millan <rmh@aybabtu.com>
36348
36349 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
36350 devices.
36351 * util/grub-mkdevicemap.c (get_virtio_disk_name)
36352 (make_device_map): Likewise.
36353 Reported by Aurelien Jarno <aurel32@debian.org>
36354
36355 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
36356
36357 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
36358 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
36359 (make_device_map): Output entries for xvd type disks.
36360
36361 2008-05-07 Robert Millan <rmh@aybabtu.com>
36362
36363 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
36364 devices.
36365 * util/grub-mkdevicemap.c (get_cciss_disk_name)
36366 (make_device_map): Likewise.
36367 Reported by Roland Dreier <rdreier@cisco.com>
36368
36369 2008-05-07 Robert Millan <rmh@aybabtu.com>
36370
36371 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
36372 grub_strstr() call. Correct a few mistakes in failure path handling.
36373
36374 2008-05-06 Robert Millan <rmh@aybabtu.com>
36375
36376 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36377 Do not print a trailing slash (therefore, the root directory is an
36378 empty string).
36379 (convert_system_path_to_grub_path): Do not remove trailing slash
36380 from make_system_path_relative_to_its_root() output.
36381
36382 * util/i386/pc/grub-install.in: Add trailing slash to output from
36383 make_system_path_relative_to_its_root().
36384
36385 2008-05-06 Robert Millan <rmh@aybabtu.com>
36386
36387 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
36388 ensures that output lines aren't intermangled with those sent to
36389 stderr (via grub_util_info()).
36390 * util/grub-probe.c (grub_refresh): Likewise.
36391 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
36392
36393 2008-05-05 Christian Franke <franke@computer.org>
36394
36395 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
36396 Add Cygwin device names.
36397 (get_ide_disk_name) [__CYGWIN__]: Likewise.
36398 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
36399 (check_device): Return error instead of success on empty name.
36400 (make_device_map): Move label inside linux specific code to
36401 prevent compiler warning.
36402
36403 2008-04-30 Robert Millan <rmh@aybabtu.com>
36404
36405 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
36406 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
36407 first boot option.
36408 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
36409
36410 2008-04-29 Robert Millan <rmh@aybabtu.com>
36411
36412 * docs/grub.cfg: New file (example GRUB configuration).
36413
36414 2008-04-26 Robert Millan <rmh@aybabtu.com>
36415
36416 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
36417 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
36418 and `disk/ieee1275/nand.c'.
36419
36420 2008-04-25 Bean <bean123ch@gmail.com>
36421
36422 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
36423 i386-linuxbios.
36424
36425 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
36426 change the buffer size to 4096 for cdrom device.
36427
36428 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
36429 and nand.mod.
36430 (_linux_mod_SOURCES): New variable.
36431 (_linux_mod_CFLAGS): Likewise.
36432 (_linux_mod_LDFLAGS): Likewise.
36433 (linux_mod_SOURCES): Likewise.
36434 (linux_mod_CFLAGS): Likewise.
36435 (linux_mod_LDFLAGS): Likewise.
36436 (nand_mod_SOURCES): Likewise.
36437 (nand_mod_CFLAGS): Likewise.
36438 (nand_mod_LDFLAGS): Likewise.
36439
36440 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
36441 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
36442 type property. (nand device in olpc don't have this property)
36443
36444 * include/grub/disk.h (grub_disk_dev_id): New macro
36445 GRUB_DISK_DEVICE_NAND_ID.
36446
36447 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
36448 function prototype.
36449 (grub_rescue_cmd_initrd): Likewise.
36450
36451 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
36452 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
36453 ofw_cif_handler and ofw_idt, adjust padding number.
36454
36455 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
36456 GRUB_MACHINE_IEEE1275 is defined.
36457
36458 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
36459 Use NESTED_FUNC_ATTR attribute on the hook parameter.
36460
36461 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
36462 on nested function heap_init.
36463 (grub_upper_mem): New variable for i386-ieee1275.
36464 (grub_get_extended_memory): New function for i386-ieee1275.
36465 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
36466
36467 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
36468 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
36469 property.
36470
36471 * loader/i386/ieee1275/linux.c: New file.
36472
36473 * loader/i386/ieee1275/linux_normal.c: New file.
36474
36475 * disk/ieee1275/nand.c: New file.
36476
36477 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
36478
36479 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
36480 value.
36481 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
36482
36483 2008-04-18 Robert Millan <rmh@aybabtu.com>
36484
36485 Restructures early code path on ieee1275 to unify grub_main() as
36486 the first C function that is executed in every platform.
36487
36488 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
36489 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
36490 cmain().
36491 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
36492 * kern/ieee1275/cmain.c (cmain): Rename to ...
36493 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
36494 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
36495 at the beginning.
36496
36497 2008-04-18 Robert Millan <rmh@aybabtu.com>
36498
36499 * util/update-grub.in: Fix syntax error when setting
36500 `GRUB_PRELOAD_MODULES'.
36501 Reported by Stephane Chazelas <stephane@artesyncp.com>
36502
36503 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
36504
36505 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
36506 section into account, newer toolchains generate unique build ids
36507 * configure.ac: remove the test for --build-id=none acceptance,
36508 we want build ids to be preserved
36509 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
36510 far from other sections don't cause the raw binary images grow
36511 size
36512
36513 2008-04-15 Robert Millan <rmh@aybabtu.com>
36514
36515 * disk/lvm.c: Update copyright year.
36516 * kern/misc.c: Likewise.
36517
36518 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36519
36520 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
36521 there is no memory left for physical volume name.
36522
36523 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36524
36525 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
36526 volume name mapping to support bigger than 9 character names properly.
36527
36528 2008-04-13 Robert Millan <rmh@aybabtu.com>
36529
36530 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
36531 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
36532
36533 2008-04-13 Christian Franke <franke@computer.org>
36534
36535 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
36536 to create a floppy emulation boot CD when non emulation mode
36537 does not work.
36538 Enable Joliet CD filesystem extension.
36539
36540 2008-04-13 Robert Millan <rmh@aybabtu.com>
36541
36542 * kern/misc.c (grub_strncat): Fix off-by-one error.
36543 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
36544
36545 * kern/env.c (grub_env_context_close): Clear current context, not
36546 previous one.
36547 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
36548
36549 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
36550
36551 2008-04-13 Robert Millan <rmh@aybabtu.com>
36552
36553 Improve robustness when handling LVM.
36554
36555 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
36556 (and leave `*p' unmodified).
36557 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
36558 through it.
36559 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
36560 iterating through it.
36561 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
36562 through it.
36563 (grub_lvm_scan_device): Check the return value (and fail gracefully
36564 when due) on each grub_lvm_getvalue() or grub_strstr() call.
36565 Don't assume `vg->pvs != NULL' when iterating through it.
36566
36567 2008-04-13 Robert Millan <rmh@aybabtu.com>
36568
36569 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
36570 * genmk.rb (partmap): New variable.
36571 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
36572 (#{partmap}): New target rule.
36573 * genpartmaplist.sh: New file.
36574 * Makefile.in (pkglib_DATA): Add partmap.lst.
36575 (partmap.lst): New target rule.
36576 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
36577 modules (including all partition maps), instead of preloading them.
36578
36579 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
36580
36581 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
36582 `linux-boot-prober' (if installed) to detect other operating
36583 systems which are installed on the computer and add them to
36584 the boot menu.
36585 * conf/common.rmk: Build and install 30_os-prober.
36586
36587 2008-04-12 Robert Millan <rmh@aybabtu.com>
36588
36589 * kern/powerpc/ieee1275/init.c: Move from here ...
36590 * kern/ieee1275/init.c: ... to here. Update all users.
36591
36592 * kern/powerpc/ieee1275/cmain.c: Move from here ...
36593 * kern/ieee1275/cmain.c: ... to here. Update all users.
36594
36595 * kern/powerpc/ieee1275/openfw.c: Move from here ...
36596 * kern/ieee1275/openfw.c: ... to here. Update all users.
36597
36598 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
36599 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
36600
36601 2008-04-10 Pavel Roskin <proski@gnu.org>
36602
36603 * configure.ac: Always use "_cv_" in cache variables for
36604 compatibility with Autoconf 2.62.
36605
36606 2008-04-07 Robert Millan <rmh@aybabtu.com>
36607
36608 Revert grub/machine/init.h addition by Pavel (since it breaks on
36609 i386-ieee1275 and others):
36610 * util/i386/pc/misc.c: Remove grub/machine/init.h.
36611 * util/powerpc/ieee1275/misc.c: Likewise.
36612
36613 2008-04-07 Robert Millan <rmh@aybabtu.com>
36614
36615 * util/grub-probe.c (probe): Improve error message.
36616
36617 2008-04-07 Robert Millan <rmh@aybabtu.com>
36618
36619 * util/biosdisk.c (read_device_map): Skip devices that don't exist
36620 (this prevents the presence of a bogus entry from ruining the whole
36621 thing).
36622
36623 2008-04-06 Pavel Roskin <proski@gnu.org>
36624
36625 * util/biosdisk.c: Include grub/util/biosdisk.h.
36626 * util/grub-fstest.c (execute_command): Make static.
36627 * util/grub-mkdevicemap.c (check_device): Likewise.
36628 * util/i386/pc/misc.c: Include grub/machine/init.h.
36629 * util/powerpc/ieee1275/misc.c: Likewise.
36630 * util/lvm.c: Include grub/util/lvm.h.
36631 * util/misc.c: Include grub/kernel.h, grub/misc.h and
36632 grub/cache.h.
36633 * util/raid.c: Include grub/util/raid.h.
36634 (grub_util_getdiskname): Make static.
36635
36636 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
36637 grub_hostfs_fini(), as they are called from grub_init_all() and
36638 grub_fini_all() respectively. This fixes an infinite loop in
36639 grub-fstest due to double registration of hostfs.
36640 Reported by Christian Franke <Christian.Franke@t-online.de>
36641
36642 2008-04-05 Pavel Roskin <proski@gnu.org>
36643
36644 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
36645 all 8 functions. Otherwise, probe function 0 only.
36646
36647 2008-04-04 Pavel Roskin <proski@gnu.org>
36648
36649 * commands/lspci.c (grub_lspci_iter): Print the bus number
36650 correctly.
36651
36652 * commands/lspci.c (grub_pci_classes): Fix typos.
36653 (grub_lspci_iter): Don't print func twice. Print vendor ID
36654 before device ID, as it's normally done.
36655
36656 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36657 Fix signedness warnings.
36658 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
36659 Likewise.
36660 * util/ieee1275/get_disk_name.c: Include config.h so that
36661 _GNU_SOURCE is defined and getline() is declared. Mark an
36662 unused argument as such. Fix a signedness warning.
36663
36664 2008-04-02 Pavel Roskin <proski@gnu.org>
36665
36666 * genkernsyms.sh.in: Use more robust assignments for CC and
36667 srcdir. Quote srcdir.
36668 * gensymlist.sh.in: Likewise. Assert at the compile time that
36669 the symbol table is not empty.
36670
36671 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
36672 * fs/cpio.c (grub_cpio_read): Likewise.
36673
36674 2008-04-01 Pavel Roskin <proski@gnu.org>
36675
36676 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
36677 * disk/host.c (grub_host_open): Likewise.
36678 * disk/loopback.c (grub_loopback_open): Likewise.
36679 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
36680 disk->id as in disk/host.c, not a multi-character constant.
36681
36682 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
36683 later is obsolete, potentially dangerous and sets a bad example.
36684 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
36685 * util/misc.c (grub_util_get_image_size): Likewise.
36686
36687 * disk/loopback.c (options): Improve help for "--partitions".
36688
36689 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
36690 options to align them with the short options, e.g. "echo -e".
36691
36692 2008-03-31 Bean <bean123ch@gmail.com>
36693
36694 * video/reader/png.c (grub_png_data): New member is_16bit and
36695 image_data.
36696 (grub_png_decode_image_header): Detect 16 bit png image.
36697 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
36698 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
36699 (grub_video_reader_png): Release memory occupied by image_data.
36700
36701 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
36702 4096 bytes.
36703 (grub_nfs_mount): Skip the test for sector per cluster.
36704
36705 * include/grub/ntfs.h (MAX_SPC): Removed.
36706
36707 2008-03-31 Bean <bean123ch@gmail.com>
36708
36709 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
36710 (grub_probe_SOURCES): Add fs/afs.c.
36711 (grub_fstest_SOURCES): Likewise.
36712 (afs_mod_SOURCES): New variable.
36713 (afs_mod_CFLAGS): Likewise.
36714 (afs_mod_LDFLAGS): Likewise.
36715
36716 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
36717 (grub_emu_SOURCES): Likewise.
36718
36719 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36720
36721 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36722
36723 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
36724
36725 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36726
36727 * fs/afs.c: New file.
36728
36729 2008-03-30 Pavel Roskin <proski@gnu.org>
36730
36731 * disk/host.c: Include grub/misc.h to fix a warning.
36732 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
36733 warnings about implicit declarations.
36734
36735 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
36736 variable.
36737 * include/grub/i386/loader.h: Change declaration of
36738 grub_linux_boot() to match what grub_loader_set() expects.
36739 * util/getroot.c (grub_guess_root_device): Return const char* to
36740 fix a warning.
36741 * util/grub-probe.c (probe): Fix a warning about uninitialized
36742 abstraction_name variable.
36743 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
36744 second argument as unused to fix a warning.
36745
36746 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
36747 missing grub_error() call.
36748
36749 * util/update-grub_lib.in: Define datarootdir, since Autoconf
36750 2.60 and newer uses it to define datadir.
36751
36752 * commands/sleep.c: Fix warning about implicit declaration.
36753 * disk/memdisk.c: Likewise.
36754 * loader/aout.c: Likewise.
36755 * loader/i386/bsd_normal.c: Likewise.
36756 * util/grub-probe.c: Likewise.
36757
36758 * commands/i386/cpuid.c (has_longmode): Make static.
36759 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
36760 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
36761
36762 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
36763 GDT. This is more robust, as %ds can change.
36764 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
36765 calling real_to_prot().
36766 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
36767
36768 2008-03-28 Pavel Roskin <proski@gnu.org>
36769
36770 * kern/i386/pc/startup.S: Assert that uncompressed functions
36771 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
36772 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
36773 code, as they push parts of the code (error handlers) beyond
36774 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
36775 code as correctness and size.
36776
36777 2008-03-28 Pavel Roskin <proski@gnu.org>
36778
36779 * kern/i386/pc/startup.S
36780 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
36781 data block address to the real mode, keep offset minimal. This
36782 works around a bug in AWARD BIOS on old Athlon systems, which
36783 makes CD detection hang.
36784
36785 2008-03-26 Pavel Roskin <proski@gnu.org>
36786
36787 * normal/color.c (grub_parse_color_name_pair): Make `name' a
36788 const.
36789 * include/grub/normal.h: Add grub_parse_color_name_pair()
36790 declaration.
36791
36792 2008-03-24 Bean <bean123ch@gmail.com>
36793
36794 * disk/i386/pc/biosdisk.c (cd_start): Removed.
36795 (cd_count): Removed.
36796 (cd_drive): New variable.
36797 (grub_biosdisk_get_drive): Don't check for (cdN) device.
36798 (grub_biosdisk_call_hook): Likewise.
36799 (grub_biosdisk_iterate): Change cdrom detection method.
36800 (grub_biosdisk_open): Replace cd_start with cd_drive.
36801 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
36802 detect cdrom device.
36803
36804 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
36805 Removed.
36806 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
36807 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
36808 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
36809 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
36810 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
36811 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
36812 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
36813 (grub_biosdisk_cdrp): New structure.
36814 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
36815
36816 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
36817
36818 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
36819 device.
36820
36821 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
36822 New function.
36823
36824 2008-03-20 Robert Millan <rmh@aybabtu.com>
36825
36826 Remove 2 TiB limit in ata.mod.
36827 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
36828 (grub_ata_dumpinfo): Print sector count with 0x%llx.
36829 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
36830 grub_uint64_t instead of grub_uint32_t.
36831
36832 2008-03-05 Bean <bean123ch@gmail.com>
36833
36834 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
36835 (grub_multiboot): Set boot device.
36836
36837 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
36838
36839 2008-03-02 Bean <bean123ch@gmail.com>
36840
36841 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
36842 symlink_buffer.
36843
36844 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
36845
36846 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
36847 texinfo.tex.
36848
36849 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
36850 modified.
36851
36852 * docs/fdl.texi: New file.
36853
36854 * docs/mdate-sh: New file. Copied from gnulib.
36855 * docs/texinfo.tex: Likewise.
36856
36857 * config.guess: Updated from gnulib.
36858 * install-sh: Likewise.
36859
36860 2008-02-28 Robert Millan <rmh@aybabtu.com>
36861
36862 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
36863 (aout_mod_SOURCES): New variable.
36864 (aout_mod_CFLAGS): Likewise.
36865 (aout_mod_LDFLAGS): Likewise.
36866
36867 * conf/i386-ieee1275.rmk: Likewise.
36868
36869 2008-02-28 Robert Millan <rmh@aybabtu.com>
36870
36871 * util/update-grub.in: Reorganise terminal validity check. Accept
36872 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
36873 Based on suggestion by Franklin PIAT.
36874
36875 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
36876
36877 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
36878 function.
36879 * util/getroot.c (grub_util_check_block_device): New function that
36880 returns the given argument if it is a block device and returns NULL else.
36881 * util/grub-probe.c (argument_is_device): New variable.
36882 (probe): Promote device_name from a variable to an argument. Receive
36883 device_name from grub_util_check_block_device() if path is NULL and from
36884 grub_guess_root_device() else. Do not free() device_name anymore.
36885 (options): Introduce new parameter '-d, --device'.
36886 (main): Add description of the new parameter to the help screen.
36887 Rename path variable to argument. Set argument_is_device if the '-d'
36888 option is given. Pass argument to probe() depending on
36889 argument_is_device.
36890
36891 2008-02-24 Bean <bean123ch@gmail.com>
36892
36893 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
36894 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
36895 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
36896 (GRUB_ISO9660_VOLDESC_PART): Likewise.
36897 (GRUB_ISO9660_VOLDESC_END): Likewise.
36898 (grub_iso9660_primary_voldesc): New member escape.
36899 (grub_iso9660_data): New member joliet.
36900 (grub_iso9660_convert_string): New function.
36901 (grub_iso9660_mount): Detect joliet extension.
36902 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
36903 (grub_iso9660_iso9660_label): Likewise.
36904
36905 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
36906 (grub_setup_SOURCES): Add fs/udf.c.
36907 (grub_fstest_SOURCES): Likewise.
36908 (udf_mod_SOURCES): New variable.
36909 (udf_mod_CFLAGS): Likewise.
36910 (udf_mod_LDFLAGS): Likewise.
36911
36912 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
36913 (grub_emu_SOURCES): Likewise.
36914
36915 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36916
36917 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36918
36919 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
36920
36921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36922
36923 * fs/udf.c: New file.
36924
36925 2008-02-24 Robert Millan <rmh@aybabtu.com>
36926
36927 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
36928 (normal/lexer.c_DEPENDENCIES): New variables.
36929 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36930 (normal/lexer.c_DEPENDENCIES): Likewise.
36931 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
36932 (normal/lexer.c_DEPENDENCIES): Likewise.
36933 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
36934 (normal/lexer.c_DEPENDENCIES): Likewise.
36935 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36936 (normal/lexer.c_DEPENDENCIES): Likewise.
36937 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36938 (normal/lexer.c_DEPENDENCIES): Likewise.
36939
36940 2008-02-23 Robert Millan <rmh@aybabtu.com>
36941
36942 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
36943 since they were intended to be in hex. This didn't break previously
36944 because of a bug in gpt_partition_map_iterate() (see below).
36945
36946 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
36947 when checking the validity of GPT header.
36948 Remove `partno', since it always provides the same information as `i'.
36949
36950 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
36951
36952 * include/grub/efi/time.h: Fix a wrong comment.
36953
36954 2008-02-19 Pavel Roskin <proski@gnu.org>
36955
36956 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
36957 message.
36958
36959 2008-02-19 Bean <bean123ch@gmail.com>
36960
36961 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
36962 (aout_mod_SOURCES): New variable.
36963 (aout_mod_CFLAGS): Likewise.
36964 (aout_mod_LDFLAGS): Likewise.
36965 (_bsd_mod_SOURCES): New variable.
36966 (_bsd_mod_CFLAGS): Likewise.
36967 (_bsd_mod_LDFLAGS): Likewise.
36968 (bsd_mod_SOURCES): New variable.
36969 (bsd_mod_CFLAGS): Likewise.
36970 (bsd_mod_LDFLAGS): Likewise.
36971
36972 * include/grub/aout.h: New file.
36973
36974 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
36975
36976 * include/grub/i386/bsd.h: New file.
36977
36978 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
36979 to make it public.
36980
36981 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
36982 function is called, so that it's possible to change it inside the hook.
36983 (grub_elf64_load): Likewise.
36984 (grub_elf_file): Don't close the file if elf header is not found.
36985 (grub_elf_close): Close the file if grub_elf_file fails (The new
36986 grub_elf_file won't close it).
36987 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
36988 (grub_elf64_size): Likewise.
36989
36990 * kern/i386/loader.S (grub_unix_real_boot): New function.
36991
36992 * loader/aout.c: New file.
36993
36994 * loader/i386/bsd.c: New file.
36995
36996 * loader/i386/bsd_normal.c: New file.
36997
36998 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
36999
37000 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37001 can test other formats.
37002
37003 2008-02-19 Robert Millan <rmh@aybabtu.com>
37004
37005 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37006 (grub_gpt_partition_type_empty): Redefine with macro from
37007 `<grub/gpt_partition.h>'.
37008 (gpt_partition_map_iterate): Adjust partition type comparison.
37009
37010 Export `entry' as partmap-specific `part.data' struct.
37011 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37012
37013 * include/grub/gpt_partition.h (grub_gpt_header)
37014 (grub_gpt_partentry): ... to here (new file).
37015
37016 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37017
37018 (grub_gpt_partition_type_bios_boot): New const variable, defined
37019 with macro from `<grub/gpt_partition.h>'.
37020
37021 (setup): Replace `first_start' with `embed_region', which keeps
37022 track of the embed region (and is partmap-agnostic).
37023
37024 Replace find_first_partition_start() with find_usable_region(),
37025 which finds a usable region for embedding using partmap-specific
37026 knowledge (supports PC/MSDOS and GPT).
37027
37028 Fix all assumptions that the embed region start at sector 1, using
37029 `embed_region.start' from now on. Similarly, use `embed_region.end'
37030 rather than `first_start' to calculate available size.
37031
37032 In grub_util_info() message, replace "into after the MBR" with an
37033 indication of the specific sector our embed region starts at.
37034
37035 2008-02-19 Robert Millan <rmh@aybabtu.com>
37036
37037 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37038 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37039 `commands/reboot.c'.
37040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37041 (halt_mod_SOURCES): Likewise.
37042 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37043 (halt_mod_SOURCES): Likewise.
37044
37045 2008-02-17 Christian Franke <franke@computer.org>
37046
37047 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37048
37049 2008-02-17 Robert Millan <rmh@aybabtu.com>
37050
37051 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37052 set `first_start' to 0 for non-PC/MSDOS partition maps.
37053
37054 2008-02-16 Robert Millan <rmh@aybabtu.com>
37055
37056 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37057 do not assume partition map is PC/MSDOS before performing checks that
37058 are specific to that layout.
37059
37060 2008-02-13 Robert Millan <rmh@aybabtu.com>
37061
37062 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37063 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37064 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37065
37066 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37067
37068 * configure.ac: Only a cosmetic change on the handling of
37069 -fno-stack-protector.
37070
37071 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37072
37073 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37074 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37075 reboot.c.
37076 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37077 (halt_mod_SOURCES): New variable.
37078 (halt_mod_CFLAGS): Likewise.
37079 (halt_mod_LDFLAGS): Likewise.
37080 (reboot_mod_SOURCES): Likewise.
37081 (reboot_mod_CFLAGS): Likewise.
37082 (reboot_mod_LDFLAGS): Likewise.
37083
37084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37085 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37086 reboot.c.
37087 (halt_mod_SOURCES): Likewise.
37088 (reboot_mod_SOURCES): Likewise.
37089
37090 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37091 commands/i386/pc/reboot.c by commands/reboot.c.
37092 (reboot_mod_SOURCES): Likewise.
37093
37094 * commands/i386/pc/reboot.c: merge this file ...
37095
37096 * commands/ieee1275/reboot.c: ... and this file ...
37097
37098 * commands/reboot.c: ... to this file.
37099 Add some precompiler directive to include the correct header for
37100 each machine.
37101
37102 * commands/ieee1275/halt.c: move this file ...
37103
37104 * commands/halt.c: ... to here.
37105 Add some precompiler directive to include the correct header for
37106 each machine.
37107
37108 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37109 (grub_halt): Likewise.
37110
37111 * kern/efi/efi.c (grub_reboot): New function.
37112 (grub_halt): Likewise.
37113
37114 2008-02-12 Robert Millan <rmh@aybabtu.com>
37115
37116 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37117 /dev (like it is done for /dev/mapper). This doesn't provide support
37118 for EVMS, but at least it is now easy to identify the problem when it
37119 arises.
37120
37121 2008-02-11 Robert Millan <rmh@aybabtu.com>
37122
37123 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37124 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37125 comparing it with -1, not 0.
37126
37127 2008-02-10 Robert Millan <rmh@aybabtu.com>
37128
37129 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37130 `disk/lvm.c'.
37131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37132 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37133
37134 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37135 `disk/lvm.c' to the end of the list.
37136 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37137 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37138
37139 2008-02-10 Robert Millan <rmh@aybabtu.com>
37140
37141 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37142 grub_print_error() instead. This will let user know why we're entering
37143 rescue mode.
37144 Based on suggestions from Sam Morris.
37145
37146 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37147
37148 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37149 on remaining N args, instead of "--" arg N times.
37150
37151 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37152
37153 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37154 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37155 pattern for unknown glyphs.
37156
37157 2008-02-09 Robert Millan <rmh@aybabtu.com>
37158
37159 * configure.ac: Probe for `help2man'.
37160 * Makefile.in (builddir): New variable.
37161 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37162 or otherwise add a few flags/options to it.
37163 (install-local): For every executable utility or script that is
37164 installed, invoke $(HELP2MAN) to install a manpage based on --help
37165 output.
37166
37167 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37168 that it doesn't prevent --help from working in build tree.
37169
37170 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37171 with `bug-grub@gnu.org'.
37172 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37173 * util/update-grub.in (usage): New function.
37174 Implement proper argument check, with support for --help and --version
37175 (as well as existing -y).
37176
37177 2008-02-09 Christian Franke <franke@computer.org>
37178
37179 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37180 avoid overwriting previous output.
37181 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37182
37183 2008-02-09 Robert Millan <rmh@aybabtu.com>
37184
37185 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37186 drawing the menu.
37187
37188 2008-02-09 Robert Millan <rmh@aybabtu.com>
37189
37190 * commands/sleep.c: New file.
37191 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37192 (sleep_mod_SOURCES): New variable.
37193 (sleep_mod_CFLAGS): Likewise.
37194 (sleep_mod_LDFLAGS): Likewise.
37195
37196 2008-02-09 Robert Millan <rmh@aybabtu.com>
37197
37198 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37199 situations in which we can deduce the RAID size and the superblock
37200 doesn't match it.
37201
37202 2008-02-09 Robert Millan <rmh@aybabtu.com>
37203
37204 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37205 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37206 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37207
37208 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37209 and return a grub_diskmemberlist_t composed of physical array members.
37210 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37211
37212 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37213 prototype.
37214 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37215 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37216 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37217
37218 * util/grub-probe.c (probe): Move partmap probing code from here ...
37219 (probe_partmap): ... to here.
37220 (probe): Use probe_partmap() once for the disk we're probing, and
37221 additionally, when such disk contains a memberlist() struct member,
37222 once for each disk that is contained in the structure returned by
37223 memberlist().
37224
37225 2008-02-09 Robert Millan <rmh@aybabtu.com>
37226
37227 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37228 environment variable to 'all' in order to obtain debug output from
37229 non-util/ code.
37230 * util/i386/pc/grub-setup.c (main): Likewise.
37231
37232 2008-02-08 Robert Millan <rmh@aybabtu.com>
37233
37234 * disk/raid.c (grub_raid_scan_device): Check for
37235 `array->device[sb.this_disk.number]' rather than for
37236 `array->device[sb.this_disk.number]->name', since the latter is not
37237 guaranteed to be accessible.
37238
37239 2008-02-08 Robert Millan <rmh@aybabtu.com>
37240
37241 * disk/raid.c: Update copyright.
37242 * fs/cpio.c: Likewise.
37243 * include/grub/raid.h: Likewise.
37244 * loader/i386/pc/multiboot.c: Likewise.
37245 * util/hostfs.c: Likewise.
37246
37247 2008-02-08 Robert Millan <rmh@aybabtu.com>
37248
37249 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37250 to a grub_disk_t array.
37251 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37252 `device[x]'.
37253 (grub_raid_scan_device): Replace `device[x].name' accesses with
37254 `device[x]->name'. Simplify initialization of `array->device[x]'.
37255
37256 2008-02-08 Robert Millan <rmh@aybabtu.com>
37257
37258 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37259 grub_dprintf() calls.
37260 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37261 error message.
37262
37263 2008-02-07 Christian Franke <franke@computer.org>
37264
37265 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
37266 instead of fseek and ftell to support large files.
37267 (grub_hostfs_read): Likewise.
37268
37269 2008-02-07 Robert Millan <rmh@aybabtu.com>
37270
37271 Patch from Jeroen Dekkers.
37272 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
37273 failure, since successfully reading all array members might not be
37274 required.
37275
37276 2008-02-06 Robert Millan <rmh@aybabtu.com>
37277
37278 * util/grub-probe.c (probe): Simplify partmap probing (with the
37279 assumption that the first word up to the underscore equals to
37280 the module name).
37281
37282 2008-02-06 Christian Franke <franke@computer.org>
37283
37284 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
37285 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
37286 last block of a cpio or tar stream.
37287 Check for "TRAILER!!!" instead of any empty data
37288 block to detect last block of a cpio stream.
37289 (grub_cpio_dir): Fix constness of variable np.
37290 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
37291 cpio or tar trailer is detected. This fixes a crash
37292 on open of a non existing file.
37293
37294 2008-02-05 Bean <bean123ch@gmail.com>
37295
37296 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
37297 address of entry.
37298 (grub_multiboot_load_elf64): Likewise.
37299 (grub_multiboot): Initialize mbi structure.
37300
37301 * util/grub-fstest.c: Don't include unused header file script.h.
37302
37303 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
37304 of file.
37305 (grub_fstest_SOURCES): Likewise.
37306
37307 2008-02-05 Robert Millan <rmh@aybabtu.com>
37308
37309 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
37310 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
37311 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
37312 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
37313
37314 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
37315 (translation_table): Replace hardcoded values with macros
37316 provided by `<grub/term.h>'.
37317
37318 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
37319 (keyboard_map): Correct/add a few values, with macros provided
37320 by `<grub/term.h>'.
37321 (keyboard_map_shift): Zero values that don't differ from their
37322 `keyboard_map' equivalents.
37323 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
37324 Discard the second scan code that is always sent by Caps lock.
37325 Only use `keyboard_map_shift' when it provides a non-zero value,
37326 otherwise fallback to `keyboard_map'.
37327
37328 2008-02-04 Bean <bean123ch@gmail.com>
37329
37330 * Makefile.in (enable_grub_fstest): New variable.
37331
37332 * conf/common.rmk (grub_fstest_init.lst): New rule.
37333 (grub_fstest_init.h): Likewise.
37334 (grub_fstest_init.c): Likewise.
37335 (util/grub-fstest.c_DEPENDENCIES): New variable.
37336 (grub_fstest_SOURCES): Likewise.
37337
37338 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
37339
37340 * util/grub-fstest.c: New file.
37341
37342 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37343
37344 Make grub-setup handle a separate root device.
37345
37346 * util/i386/pc/grub-setup.c (setup): Always open the root device,
37347 so that the root device can be compared with the destination
37348 device.
37349 When embedding the core image, if the root and destination devices
37350 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
37351 0xFF.
37352 When not embedding, set ROOT_DRIVE to 0xFF.
37353
37354 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37355
37356 Add support for having a grub directory in a different drive. This
37357 is still only the data handling part.
37358
37359 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
37360 (codestart): Save %dh in GRUB_ROOT_DRIVE.
37361 (grub_root_drive): New variable.
37362
37363 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
37364 instead of GRUB_BOOT_DRIVE to construct a device name. Set
37365 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
37366 as it was.
37367
37368 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
37369
37370 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
37371 macro.
37372 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
37373
37374 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
37375 is bogus, because PXE booting does not specify any drive
37376 correctly.
37377
37378 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
37379 am not sure if this is really correct.
37380
37381 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
37382 is always identical to the boot drive when booting from a CD.
37383
37384 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
37385 longer.
37386 (root_drive): New variable.
37387 (real_start): Unconditionally set %dh to ROOT_DRIVE.
37388 (setup_sectors): Push %dx right after popping it, because %dh will
37389 be modified later.
37390 (copy_buffer): Restore %dx.
37391
37392 2008-02-03 Robert Millan <rmh@aybabtu.com>
37393
37394 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
37395 use `cdboot.img' for cdrom images.
37396
37397 2008-02-03 Robert Millan <rmh@aybabtu.com>
37398
37399 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
37400 only setup gfxterm when `font' command has succeeded.
37401
37402 2008-02-03 Robert Millan <rmh@aybabtu.com>
37403
37404 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
37405 (grub_rescue_cmd_multiboot_loader)
37406 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
37407
37408 2008-02-03 Pavel Roskin <proski@gnu.org>
37409
37410 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
37411 %edx and %esi from stack only after grub_gate_a20() is called.
37412 grub_gate_a20() clobbers %edx.
37413
37414 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37415
37416 * configure.ac (AC_INIT): Bumped to 1.96.
37417
37418 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
37419 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
37420 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
37421 video/readers/png.c.
37422
37423 2008-02-03 Bean <bean123ch@gmail.com>
37424
37425 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
37426 (cdboot_img_SOURCES): New variable.
37427 (cdboot_img_ASFLAGS): New variable.
37428 (cdboot_img_LDFLAGS): New variable.
37429
37430 * boot/i386/pc/cdboot.S: New file.
37431
37432 * disk/i386/pc/biosdisk.c (cd_start): New variable.
37433 (cd_count): Likewise.
37434 (grub_biosdisk_get_drive): Add support for cd device.
37435 (grub_biosdisk_call_hook): Likewise.
37436 (grub_biosdisk_iterate): Likewise.
37437 (grub_biosdisk_open): Likewise.
37438 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
37439 (grub_biosdisk_rw): Support reading from cd device.
37440 (GRUB_MOD_INIT): Iterate cd devices.
37441
37442 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
37443 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
37444 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
37445
37446 * kern/i386/pc/init.c (make_install_device): Check for cd device.
37447
37448 2008-02-02 Robert Millan <rmh@aybabtu.com>
37449
37450 * commands/read.c: New file.
37451 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
37452 (read_mod_SOURCES): New variable.
37453 (read_mod_CFLAGS): Likewise.
37454 (read_mod_LDFLAGS): Likewise.
37455
37456 2008-02-02 Robert Millan <rmh@aybabtu.com>
37457
37458 * normal/main.c (grub_normal_execute): Check for `menu->size' when
37459 determining whether menu has to be displayed.
37460
37461 2008-02-02 Marco Gerards <marco@gnu.org>
37462
37463 * bus/pci.c: New file.
37464
37465 * include/grub/pci.h: Likewise.
37466
37467 * include/grub/i386/pc/pci.h: Likewise.
37468
37469 * commands/lspci.c: Likewise.
37470
37471 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
37472 `lspci.mod'.
37473 (pci_mod_SOURCES): New variable.
37474 (pci_mod_CFLAGS): Likewise.
37475 (pci_mod_LDFLAGS): Likewise.
37476 (lspci_mod_SOURCES): Likewise.
37477 (lspci_mod_CFLAGS): Likewise.
37478 (lspci_mod_LDFLAGS): Likewise.
37479
37480 2008-02-02 Bean <bean123ch@gmail.com>
37481
37482 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
37483 (grub_ufs_get_file_block): Fix indirect block calculation problem.
37484
37485 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
37486 (grub_xfs_btree_node): New structure.
37487 (grub_xfs_btree_root): New structure.
37488 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
37489 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
37490 (GRUB_XFS_EXTENT_BLOCK): Likewise.
37491 (GRUB_XFS_EXTENT_SIZE): Likewise.
37492 (grub_xfs_read_block): Support btree format type.
37493 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
37494 Use directory block as basic unit.
37495
37496 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
37497
37498 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
37499 __attribute__ ((__regparm__ (1))).
37500
37501 2008-02-01 Robert Millan <rmh@aybabtu.com>
37502
37503 Correct a mistake in previous commit.
37504
37505 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
37506 top.
37507 (normal/command.c_DEPENDENCIES): New variable.
37508
37509 2008-02-01 Robert Millan <rmh@aybabtu.com>
37510
37511 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
37512 top.
37513 (normal/command.c_DEPENDENCIES): New variable.
37514 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
37515 * conf/i386-ieee1275.rmk: Likewise.
37516 * conf/i386-linuxbios.rmk: Likewise.
37517 * conf/i386-pc.rmk: Likewise.
37518 * conf/sparc64-ieee1275.rmk: Likewise.
37519 * conf/powerpc-ieee1275.rmk: Likewise.
37520 (grub_emu_SOURCES): Add `fs/fshelp.c'.
37521
37522 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
37523
37524 2008-02-01 Robert Millan <rmh@aybabtu.com>
37525
37526 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
37527 call at beginning of function.
37528
37529 2008-01-31 Pavel Roskin <proski@gnu.org>
37530
37531 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
37532 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
37533 (grub_mkrescue_SOURCES): Likewise.
37534 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
37535
37536 2008-01-30 Robert Millan <rmh@aybabtu.com>
37537
37538 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
37539 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
37540 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
37541 (grub_probe_SOURCES): ... to here.
37542
37543 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
37544 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
37545 * conf/i386-ieee1275.rmk: Likewise.
37546 * conf/i386-linuxbios.rmk: Likewise.
37547 * conf/powerpc-ieee1275.rmk: Likewise.
37548
37549 2008-01-30 Tristan Gingold <gingold@free.fr>
37550
37551 * kern/rescue.c: Silently accept empty lines.
37552
37553 2008-01-29 Bean <bean123ch@gmail.com>
37554
37555 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
37556 (real_code_2): Code cleanup and change comment style.
37557 (move_memory): Avoid using 32-bit address mode.
37558
37559 2008-01-29 Bean <bean123ch@gmail.com>
37560
37561 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
37562 (png_mod_SOURCES): New variable.
37563 (png_mod_CFLAGS): Likewise.
37564 (png_mod_LDFLAGS): Likewise.
37565
37566 * video/readers/png.c: New file.
37567
37568 2008-01-28 Robert Millan <rmh@aybabtu.com>
37569
37570 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
37571 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
37572 `ifndef GRUB_MOD_GAP' hack.
37573 * util/elf/grub-mkimage.c (add_segments): Likewise.
37574
37575 2008-01-27 Robert Millan <rmh@aybabtu.com>
37576
37577 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
37578 `GRUB_MOD_GAP' for platforms in which it's not defined.
37579 * util/elf/grub-mkimage.c (add_segments): Likewise.
37580
37581 2008-01-27 Robert Millan <rmh@aybabtu.com>
37582
37583 Get grub-emu to build again (including parallel builds).
37584
37585 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
37586 Split into ...
37587 (util/grub-emu.c_DEPENDENCIES): ... this, ...
37588 (normal/execute.c_DEPENDENCIES): ... this, ...
37589 (grub-emu_DEPENDENCIES): ... and this.
37590
37591 * conf/i386-efi.rmk: Likewise.
37592 * conf/i386-linuxbios.rmk: Likewise.
37593 * conf/i386-ieee1275.rmk: Likewise.
37594 * conf/powerpc-ieee1275.rmk: Likewise.
37595 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
37596
37597 2008-01-27 Robert Millan <rmh@aybabtu.com>
37598
37599 * NEWS: Add a few items.
37600
37601 2008-01-27 Robert Millan <rmh@aybabtu.com>
37602
37603 Fix parallel builds with grub-emu. Based on earlier commit for
37604 grub-probe and grub-setup.
37605
37606 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37607 (util/grub-emu.c_DEPENDENCIES): ... this.
37608 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37609 (util/grub-emu.c_DEPENDENCIES): ... this.
37610 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37611 (util/grub-emu.c_DEPENDENCIES): ... this.
37612 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37613 (util/grub-emu.c_DEPENDENCIES): ... this.
37614 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37615 (util/grub-emu.c_DEPENDENCIES): ... this.
37616
37617 2008-01-27 Pavel Roskin <proski@gnu.org>
37618
37619 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
37620 to create a gap between _end and the modules added to the image
37621 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
37622 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
37623 * util/elf/grub-mkimage.c (add_segments): Likewise.
37624
37625 2008-01-26 Pavel Roskin <proski@gnu.org>
37626
37627 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
37628 just return an error.
37629
37630 2008-01-26 Bean <bean123ch@gmail.com>
37631
37632 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
37633 (grub_reiserfs_get_item): Save offset of the next item.
37634 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
37635
37636 2008-01-25 Robert Millan <rmh@aybabtu.com>
37637
37638 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
37639 make all filesystem sources appear together (possibly fixing omissions
37640 while at it).
37641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37643 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37645
37646 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
37647 add `kern/file.c'.
37648 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
37649 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37650 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
37651 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37652
37653 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
37654 (probe): Add a sanity check to make sure of our ability to read
37655 requested files when probing for filesystem type.
37656
37657 * genmk.rb: Update copyright year (2007).
37658
37659 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
37660 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
37661 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
37662 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
37663 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
37664 : Remove function prototypes.
37665
37666 2008-01-25 Robert Millan <rmh@aybabtu.com>
37667
37668 Revert my previous commits (based on wrong assumption of how grub_errno
37669 works).
37670
37671 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
37672 * kern/file.c (grub_file_open): Likewise.
37673
37674 2008-01-24 Pavel Roskin <proski@gnu.org>
37675
37676 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
37677 that hang if GRUB tries to setup colors.
37678 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
37679 colors for firmwares that don't support it.
37680 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
37681 Recognize Open Hack'Ware, set flags to work around its
37682 limitations.
37683
37684 2008-01-24 Robert Millan <rmh@aybabtu.com>
37685
37686 * kern/file.c (grub_file_open): Do not account previous failures of
37687 unrelated functions when grub_errno is checked for.
37688 Reported by Oleg Strikov.
37689
37690 2008-01-24 Bean <bean123ch@gmail.com>
37691
37692 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
37693 (grub_ufs_sblock): New member volume name.
37694 (grub_ufs_find_file): Fix string copy bug.
37695 (grub_ufs_label): Implement this function properly.
37696
37697 * fs/hfs.c (grub_hfs_cnid_type): New enum.
37698 (grub_hfs_iterate_records): Use the correct file number for extents
37699 and catalog file. Fix problem in next index calculation.
37700 (grub_hfs_find_node): Replace recursive function call with loop.
37701 (grub_hfs_iterate_dir): Replace recursive function call with loop.
37702
37703 2008-01-23 Robert Millan <rmh@aybabtu.com>
37704
37705 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
37706 `<grub/symbol.h>' and `<grub/multiboot.h>'.
37707 (grub_multiboot2_real_boot): New function prototype.
37708
37709 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
37710 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
37711
37712 * kern/i386/ieee1275/init.c (grub_os_area_addr)
37713 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
37714
37715 2008-01-23 Robert Millan <rmh@aybabtu.com>
37716
37717 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
37718 #ifdef'ed out grub_printf().
37719
37720 2008-01-23 Robert Millan <rmh@aybabtu.com>
37721
37722 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
37723 grub_dprintf calls, since they make "debug=all" mode unusable.
37724 (grub_console_checkkey): Likewise.
37725
37726 2008-01-23 Robert Millan <rmh@aybabtu.com>
37727
37728 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
37729 `term/i386/pc/at_keyboard.c'.
37730 (pkglib_MODULES): Add `serial.mod'.
37731 (serial_mod_SOURCES): New variable.
37732 (serial_mod_CFLAGS): Likewise.
37733 (serial_mod_LDFLAGS): Likewise.
37734
37735 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
37736 `<grub/powerpc/ieee1275/console.h>'.
37737 (grub_keyboard_controller_init): New function prototype.
37738 (grub_console_checkkey): Likewise.
37739 (grub_console_getkey): Likewise.
37740
37741 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
37742 keyboard on i386.
37743
37744 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
37745 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
37746
37747 2008-01-23 Robert Millan <rmh@aybabtu.com>
37748
37749 * kern/i386/pc/init.c (make_install_device): When memdisk image is
37750 present, "(memdisk)/boot/grub" becomes the default prefix.
37751
37752 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
37753 a memdisk tarball with all the modules. Add --overlay=DIR option that
37754 allows users to overlay additional files into the image.
37755
37756 2008-01-23 Robert Millan <rmh@aybabtu.com>
37757
37758 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
37759 and `machine/memory.h'.
37760 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
37761 (_multiboot_mod_SOURCES): New variable.
37762 (_multiboot_mod_CFLAGS): Likewise.
37763 (_multiboot_mod_LDFLAGS): Likewise.
37764 (multiboot_mod_SOURCES): Likewise.
37765 (multiboot_mod_CFLAGS): Likewise.
37766 (multiboot_mod_LDFLAGS): Likewise.
37767
37768 * include/grub/i386/ieee1275/loader.h: New file.
37769
37770 * include/grub/i386/ieee1275/machine.h: Likewise.
37771
37772 * include/grub/i386/ieee1275/memory.h: Likewise.
37773
37774 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
37775 variable declaration.
37776 (grub_os_area_size): Likewise.
37777
37778 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
37779 (grub_lower_mem, grub_upper_mem): New variables.
37780 (grub_stop_floppy): New function (just to make
37781 grub_multiboot2_real_boot() happy).
37782
37783 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
37784 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
37785 (grub_stop): New function.
37786 Include `"../realmode.S"' and `"../loader.S"'.
37787
37788 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
37789 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
37790
37791 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
37792 rely on grub_multiboot2_real_boot() for final boot.
37793
37794 2008-01-22 Robert Millan <rmh@aybabtu.com>
37795
37796 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
37797 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
37798 device that doesn't look like an SD card.
37799 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
37800 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
37801 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
37802 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
37803 found.
37804
37805 2008-01-22 Robert Millan <rmh@aybabtu.com>
37806
37807 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
37808 avoid claiming over our own code.
37809
37810 2008-01-22 Bean <bean123ch@gmail.com>
37811
37812 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
37813 (jpeg_mod_SOURCES): New variable.
37814 (jpeg_mod_CFLAGS): Likewise.
37815 (jpeg_mod_LDFLAGS): Likewise.
37816
37817 * video/readers/jpeg.c : New file.
37818
37819 2008-01-22 Bean <bean123ch@gmail.com>
37820
37821 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
37822 there are no more items.
37823
37824 2008-01-21 Robert Millan <rmh@aybabtu.com>
37825
37826 * kern/mm.c (grub_mm_init_region): Improve debug message.
37827
37828 2008-01-21 Robert Millan <rmh@aybabtu.com>
37829
37830 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
37831 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
37832 address.
37833 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
37834 a C macro.
37835 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
37836 Indicates start of upper memory.
37837 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
37838 (generate_image): Abort when image size is big enough to corrupt
37839 upper memory.
37840
37841 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
37842 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
37843 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
37844 instead of hardcoding 0xA0000.
37845 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
37846 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
37847 instead of hardcoding 0xA0000.
37848
37849 2008-01-21 Robert Millan <rmh@aybabtu.com>
37850
37851 * disk/memdisk.c (memdisk_size): New variable.
37852 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
37853 `memdisk_size'.
37854 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
37855 image to dynamic memory.
37856 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
37857 `memdisk_size'. Free memdisk block.
37858
37859 2008-01-21 Robert Millan <rmh@aybabtu.com>
37860
37861 Fix detection of very small filesystems (like tar).
37862
37863 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
37864 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
37865 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
37866 a problem with this disk).
37867
37868 2008-01-21 Robert Millan <rmh@aybabtu.com>
37869
37870 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
37871 on grub_biosdisk_rw_standard() error.
37872
37873 2008-01-21 Robert Millan <rmh@aybabtu.com>
37874
37875 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
37876 recent changes.
37877 * kern/elf.c: Likewise.
37878 * kern/ieee1275/ieee1275.c: Likewise.
37879 * kern/powerpc/ieee1275/openfw.c: Likewise.
37880 * term/ieee1275/ofconsole.c: Likewise.
37881
37882 2008-01-21 Robert Millan <rmh@aybabtu.com>
37883
37884 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
37885
37886 * include/grub/kernel.h (grub_arch_memdisk_addr)
37887 (grub_arch_memdisk_size): Moved from here ...
37888
37889 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
37890 (grub_arch_memdisk_size): ... to here.
37891
37892 2008-01-21 Robert Millan <rmh@aybabtu.com>
37893
37894 Mostly based on bugfix from Bean.
37895
37896 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
37897 attribute with hook() parameter.
37898 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
37899 declaration.
37900 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
37901 attribute with hook() parameter.
37902 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
37903 declaration.
37904
37905 2008-01-21 Robert Millan <rmh@aybabtu.com>
37906
37907 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
37908 (pkglib_MODULES): Add `memdisk.mod'.
37909 (memdisk_mod_SOURCES): New variable.
37910 (memdisk_mod_CFLAGS): Likewise.
37911 (memdisk_mod_LDFLAGS): Likewise.
37912
37913 * disk/memdisk.c: New file.
37914
37915 * include/grub/disk.h (grub_disk_dev_id): Add
37916 `GRUB_DISK_DEVICE_MEMDISK_ID'.
37917
37918 * include/grub/i386/pc/kernel.h
37919 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
37920 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
37921 (grub_kernel_image_size): New variable declaration.
37922 (grub_total_module_size): Likewise.
37923 (grub_memdisk_image_size): Likewise.
37924
37925 * include/grub/i386/pc/memory.h
37926 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
37927
37928 * include/grub/kernel.h: Include `<grub/symbol.h>'.
37929 (grub_arch_memdisk_addr): New variable declaration.
37930 (grub_arch_memdisk_size): Likewise.
37931
37932 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
37933 (grub_arch_memdisk_size): Likewise.
37934
37935 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
37936 (codestart): Replace hardcoded `0x100000' with
37937 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
37938
37939 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
37940 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
37941 not NULL, append the contents of the file it refers to, at the end of
37942 the compressed kernel image. Initialize `grub_memdisk_image_size'
37943 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
37944 (options): Add "memdisk"|'m' option.
37945 (main): Parse --memdisk|-m option, and pass user-provided path as
37946 parameter to generate_image().
37947
37948 2008-01-20 Robert Millan <rmh@aybabtu.com>
37949
37950 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
37951 grub_dprintf() calls from here ...
37952 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
37953
37954 2008-01-20 Robert Millan <rmh@aybabtu.com>
37955
37956 Fix detection of "real mode" when /options/real-mode? doesn't exist.
37957
37958 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
37959 declaration.
37960 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
37961 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
37962 `GRUB_IEEE1275_FLAG_REAL_MODE'.
37963 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
37964 property).
37965 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
37966 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
37967
37968 2008-01-19 Robert Millan <rmh@aybabtu.com>
37969
37970 Get rid of confusing function (superseded by
37971 `grub_ieee1275_get_integer_property')
37972 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
37973 prototype.
37974 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
37975 function.
37976 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
37977 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
37978 in native endianness from grub_ieee1275_get_integer_property().
37979
37980 2008-01-19 Robert Millan <rmh@aybabtu.com>
37981
37982 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
37983 command after "shut-down", since implementations differ on which
37984 the command for halt is.
37985
37986 2008-01-19 Robert Millan <rmh@aybabtu.com>
37987
37988 * include/grub/i386/linuxbios/console.h: Add header protection.
37989 (grub_keyboard_controller_init): New function prototype.
37990 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
37991 (KEYBOARD_COMMAND_READ): Likewise.
37992 (KEYBOARD_COMMAND_WRITE): Likewise.
37993 (KEYBOARD_SCANCODE_SET1): Likewise.
37994 (grub_keyboard_controller_write): New function.
37995 (grub_keyboard_controller_read): Likewise.
37996 (grub_keyboard_controller_init): Likewise.
37997
37998 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
37999 (grub_console_init): On coreboot/LinuxBIOS, call
38000 grub_keyboard_controller_init().
38001
38002 2008-01-19 Robert Millan <rmh@aybabtu.com>
38003
38004 PowerPC changes provided by Pavel Roskin.
38005
38006 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38007 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38008 don't rely on cmain() doing it.
38009 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38010 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38011
38012 2008-01-16 Robert Millan <rmh@aybabtu.com>
38013
38014 * include/grub/i386/linuxbios/memory.h
38015 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38016 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38017 receive `table_header' as argument. Instead, probe for it in the
38018 known memory ranges where it can be present.
38019 (grub_available_iterate): Do not pass a fixed `table_header' address
38020 to grub_linuxbios_table_iterate().
38021
38022 2008-01-15 Robert Millan <rmh@aybabtu.com>
38023
38024 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38025 * conf/i386-ieee1275.rmk: New file.
38026 * include/grub/i386/ieee1275/console.h: Likewise.
38027 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38028 * include/grub/i386/ieee1275/kernel.h: Likewise.
38029 * include/grub/i386/ieee1275/time.h: Likewise.
38030 * kern/i386/ieee1275/init.c: Likewise.
38031 * kern/i386/ieee1275/startup.S: Likewise.
38032
38033 2008-01-15 Robert Millan <rmh@aybabtu.com>
38034
38035 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38036 when pointers are 32-bit (but still do set it to one when they are
38037 64-bit).
38038
38039 2008-01-15 Robert Millan <rmh@aybabtu.com>
38040
38041 * include/grub/ieee1275/ieee1275.h
38042 (grub_ieee1275_get_integer_property): New function prototype.
38043
38044 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38045 (grub_ieee1275_get_integer_property): New function. Wraps around
38046 grub_ieee1275_get_property() to handle endianness.
38047
38048 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38049 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38050 where appropriate.
38051 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38052 (grub_map): Likewise.
38053 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38054
38055 2008-01-15 Bean <bean123ch@gmail.com>
38056
38057 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38058 (grub_script_execute_cmdline): Reset grub_errno.
38059
38060 * normal/main.c (read_config_file): Reset grub_errno.
38061
38062 * normal/parse.y (script_init): New.
38063 (script): Move function and menuentry here.
38064 (delimiter): New.
38065 (command): Add delimiter at the end of command.
38066 (commands): Adjust to match the new command.
38067 (commandblock): Remove grub_script_lexer_record_start.
38068 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38069 (if): Use the new commands.
38070
38071 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38072
38073 2008-01-15 Robert Millan <rmh@aybabtu.com>
38074
38075 * normal/menu.c (run_menu): Move timeout message from here ...
38076 (print_timeout): ... to here.
38077 (run_menu): Use print_timeout() once during initial draw to print
38078 the whole message, and again in every clock tick to update only
38079 the number of seconds.
38080
38081 2008-01-15 Robert Millan <rmh@aybabtu.com>
38082
38083 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38084 actual size of `available' from grub_ieee1275_get_property(), and
38085 restrict parsing to that bound.
38086
38087 2008-01-15 Christian Franke <franke@computer.org>
38088
38089 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38090 (argp_program_version): Remove variable.
38091 (argp_program_bug_address): Likewise.
38092 (options): Convert from struct argp_option to struct option.
38093 (struct arguments): Remove.
38094 (parse_opt): Remove.
38095 (usage): New function.
38096 (main): Replace struct args members by simple variables.
38097 Replace argp_parse() by getopt_long().
38098 Add switch to evaluate options.
38099 Add missing "(...)" around root_dev in prefix string.
38100
38101 2008-01-14 Robert Millan <rmh@aybabtu.com>
38102
38103 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38104 for grub_ieee1275_exit(), in order to improve portability.
38105
38106 2008-01-14 Robert Millan <rmh@aybabtu.com>
38107
38108 * util/grub.d/10_linux.in (prefix): Define.
38109 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38110
38111 2008-01-13 Pavel Roskin <proski@gnu.org>
38112
38113 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38114 grub_errno if no errors have been detected.
38115
38116 2008-01-12 Robert Millan <rmh@aybabtu.com>
38117
38118 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38119 (grub_util_get_dev_abstraction): New function prototype.
38120
38121 * util/getroot.c: Include `<grub/util/getroot.h>'
38122 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38123 (grub_util_get_dev_abstraction): ... here (new function).
38124
38125 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38126 `PRINT_ABSTRACTION'.
38127 (probe): Probe for abstraction type when requested.
38128 (main): Understand `--target=abstraction'.
38129
38130 * util/i386/efi/grub-install.in: Add abstraction module to core
38131 image when it is found to be necessary.
38132 * util/i386/pc/grub-install.in: Likewise.
38133 * util/powerpc/ieee1275/grub-install.in: Likewise.
38134
38135 * util/update-grub_lib.in (font_path): Return system path without
38136 converting to GRUB path.
38137 * util/update-grub.in: Convert system path returned by font_path()
38138 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38139 abstraction module is needed for loading fonts (if any). Export
38140 that as `GRUB_PRELOAD_MODULES'.
38141 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38142 insmod commands).
38143
38144 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38145
38146 Remove some unused code from reiserfs.
38147
38148 * fs/reiserfs.c (struct grub_reiserfs_key)
38149 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38150 (struct grub_reiserfs_node_body): Removed.
38151 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38152 Likewise.
38153 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38154 Likewise.
38155 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38156 Likewise.
38157 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38158 Likewise.
38159 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38160 Likewise.
38161 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38162 Likewise.
38163 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38164 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38165 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38166
38167 2008-01-10 Robert Millan <rmh@aybabtu.com>
38168
38169 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38170 Determines if a file is garbage left by packaging systems, etc.
38171 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38172 for processing /etc/grub.d scripts.
38173 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38174 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38175 as a condition for processing Linux images.
38176
38177 2008-01-10 Pavel Roskin <proski@gnu.org>
38178
38179 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38180 to compile reiserfs.c on PowerPC.
38181
38182 2008-01-10 Robert Millan <rmh@aybabtu.com>
38183
38184 * kern/device.c (grub_device_iterate): Do not abort device iteration
38185 when one of the devices cannot be opened.
38186 * kern/disk.c (grub_disk_open): Do not account previous failures of
38187 unrelated functions when grub_errno is checked for.
38188
38189 2008-01-08 Robert Millan <rmh@aybabtu.com>
38190
38191 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38192 `! grub_linux_is_bzimage', change order of address comparison to make
38193 it more intuitive, and improve "too big zImage" error message.
38194
38195 2008-01-08 Robert Millan <rmh@aybabtu.com>
38196
38197 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38198 `$(update-grub_DATA)'.
38199 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38200 targets.
38201
38202 2008-01-07 Robert Millan <rmh@aybabtu.com>
38203
38204 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38205 which instruction is modified by grub-setup during installation
38206 (since it wasn't obvious by only looking at this file).
38207
38208 2008-01-07 Robert Millan <rmh@aybabtu.com>
38209
38210 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38211 listing actual TODO items.
38212
38213 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38214
38215 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38216 correctly.
38217 (grub_reiserfs_get_key_offset): Likewise.
38218 (grub_reiserfs_set_key_offset): Likewise.
38219 (grub_reiserfs_set_key_type): Likewise.
38220 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38221
38222 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38223 better to remove the bitfield version completely.
38224
38225 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38226
38227 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38228 allocated from the heap, due to the fshelp implementation.
38229 (grub_reiserfs_dir): Free NODE, due to the same reason.
38230
38231 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38232
38233 Mostly from Vincent Pelletier:
38234
38235 * fs/reiserfs.c: New file.
38236
38237 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38238 (reiserfs_mod_SOURCES): New variable.
38239 (reiserfs_mod_CFLAGS): Likewise.
38240 (reiserfs_mod_LDFLAGS): Likewise.
38241
38242 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38243 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38244 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38245 normal/color.c.
38246
38247 2008-01-06 Robert Millan <rmh@aybabtu.com>
38248
38249 * normal/color.c: Remove `<grub/env.h>'.
38250
38251 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38252
38253 * include/grub/normal.h: Include <grub/env.h>.
38254
38255 2008-01-05 Robert Millan <rmh@aybabtu.com>
38256
38257 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38258 usage example with `(hd0,1)'.
38259 Reported by Samuel Thibault.
38260
38261 2008-01-05 Robert Millan <rmh@aybabtu.com>
38262
38263 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38264 (grub_linux_boot_zimage): Rename to ...
38265 (grub_linux_boot): ... this.
38266 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
38267 (grub_linux_boot_zimage): Conditionalize zImage copy.
38268
38269 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
38270 (grub_linux_boot_bzimage): Remove prototype.
38271 (grub_linux_boot_zimage): Rename to ...
38272 (grub_linux_boot): ... this.
38273
38274 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
38275 (grub_linux_boot): Remove function.
38276
38277 2008-01-05 Robert Millan <rmh@aybabtu.com>
38278
38279 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
38280 (grub_env_write_color_highlight): Likewise.
38281 (grub_wait_after_message): Likewise.
38282
38283 * normal/color.c: New file.
38284
38285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38286 (normal_mod_DEPENDENCIES): Likewise.
38287
38288 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38289 (normal_mod_DEPENDENCIES): Likewise.
38290
38291 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38292 (normal_mod_DEPENDENCIES): Likewise.
38293
38294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38295 (normal_mod_DEPENDENCIES): Likewise.
38296
38297 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
38298 for waiting after a message is printed.
38299 * normal/main.c (read_config_file): Likewise.
38300 (grub_normal_init): Register grub_env_write_color_normal() and
38301 grub_env_write_color_highlight() hooks. Mark `color_normal' and
38302 `color_highlight' variables as global.
38303
38304 * normal/menu.c (grub_wait_after_message): New function.
38305 (grub_color_menu_normal): New variable. Replaces ...
38306 (GRUB_COLOR_MENU_NORMAL): ... this macro.
38307 (grub_color_menu_highlight): New variable. Replaces ...
38308 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
38309 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
38310 `GRUB_TERM_COLOR_STANDARD'.
38311 (print_message): Use `grub_setcolorstate' to reload colors. Rename
38312 `normal_code' and `highlight_code' to `old_color_normal' and
38313 `old_color_highlight', respectively.
38314 (grub_menu_init_page): Update colors when drawing the menu, based on
38315 `menu_color_normal' and `menu_color_highlight' variables.
38316 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
38317 a message is printed.
38318
38319 2008-01-05 Robert Millan <rmh@aybabtu.com>
38320
38321 * kern/env.c (grub_env_context_open): Propagate hooks for global
38322 variables to new context.
38323
38324 * kern/main.c (grub_set_root_dev): Export `root' variable.
38325
38326 2008-01-05 Robert Millan <rmh@aybabtu.com>
38327
38328 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
38329 discs unconditionally, since udev and others have options to provide
38330 them.
38331
38332 2008-01-05 Robert Millan <rmh@aybabtu.com>
38333
38334 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
38335
38336 2008-01-04 Christian Franke <franke@computer.org>
38337
38338 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
38339 of eisa_mmap.
38340
38341 2008-01-03 Pavel Roskin <proski@gnu.org>
38342
38343 * kern/i386/linuxbios/init.c: Put "void" to all function
38344 declarations with no arguments.
38345 * kern/powerpc/ieee1275/init.c: Likewise.
38346 * term/i386/pc/at_keyboard.c: Likewise.
38347 * term/i386/pc/vga_text.c: Likewise.
38348 * util/grub-mkdevicemap.c: Likewise.
38349
38350 2008-01-02 Robert Millan <rmh@aybabtu.com>
38351
38352 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
38353 message when loaded image is out of bounds.
38354 (grub_multiboot_load_elf64): Likewise.
38355
38356 2008-01-02 Pavel Roskin <proski@gnu.org>
38357
38358 * util/grub.d/10_linux.in: Try version without ".old" when
38359 looking for initrd. It's better to use initrd from the newer
38360 kernel of the same version than no initrd at all.
38361
38362 2008-01-01 Robert Millan <rmh@aybabtu.com>
38363
38364 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
38365
38366 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
38367
38368 * include/grub/video.h: Added grub_video_unmap_color and
38369 grub_video_get_active_render_target.
38370 (grub_video_adapter): Added unmap_color and get_active_render_target.
38371
38372 * video/video.c: Added grub_video_unmap_color and
38373 grub_video_get_active_render_target.
38374 (grub_video_get_info): Changed method to accept NULL pointer as an
38375 argument to allow detection of active video adapter.
38376
38377 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
38378 grub_video_vbe_unmap_color_int.
38379 Added grub_video_vbe_unmap_color and
38380 grub_video_vbe_get_active_render_target.
38381 (grub_video_vbe_adapter): Added unmap_color and
38382 get_active_render_target.
38383
38384 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
38385 with grub_video_vbe_unmap_color_int.
38386
38387 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
38388 (DEFAULT_NORMAL_COLOR): Likewise.
38389 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
38390 (DEFAULT_FG_COLOR): Removed.
38391 (DEFAULT_BG_COLOR): Likewise.
38392 (DEFAULT_CURSOR_COLOR): Changed value.
38393 (grub_virtual_screen): Added standard_color_setting,
38394 normal_color_setting, highlight_color_setting and term_color.
38395 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
38396 (bitmap_width): Added.
38397 (bitmap_height): Likewise.
38398 (bitmap): Likewise.
38399 (set_term_color): Likewise.
38400 (grub_virtual_screen_setup): Changed to use new terminal coloring
38401 settings.
38402 (grub_gfxterm_init): Added init for bitmap.
38403 (grub_gfxterm_fini): Added destroy for bitmap.
38404 (redraw_screen_rect): Updated to use background bitmap and new
38405 terminal coloring.
38406 (scroll_up): Added optimization for case when there is no bitmap.
38407 (grub_gfxterm_cls): Fixed to use correct background color.
38408 (grub_virtual_screen_setcolorstate): Changed to use new terminal
38409 coloring.
38410 (grub_virtual_screen_setcolor): Likewise.
38411 (grub_virtual_screen_getcolor): Added.
38412 (grub_gfxterm_background_image_cmd): Likewise.
38413 (grub_video_term): Added setcolor and getcolor.
38414 (MOD_INIT): Added registration of background_image command.
38415 (MOD_TERM): Added unregistration for background_image command.
38416
38417 2007-12-30 Pavel Roskin <proski@gnu.org>
38418
38419 * loader/multiboot_loader.c: Fix multiboot command
38420 unregistration. Fix all typos in the word "multiboot".
38421
38422 2007-12-29 Pavel Roskin <proski@gnu.org>
38423
38424 * util/grub.d/10_linux.in: Refactor search for initrd. Add
38425 support for initrd names used in Fedora.
38426
38427 2007-12-26 Bean <bean123ch@gmail.com>
38428
38429 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
38430 (cpio_mod_SOURCES): New variable.
38431 (cpio_mod_CFLAGS): Likewise.
38432 (cpio_mod_LDFLAGS): Likewise.
38433
38434 * fs/cpio.c: New file.
38435
38436 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
38437
38438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38439
38440 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38441
38442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38443
38444 2007-12-25 Robert Millan <rmh@aybabtu.com>
38445
38446 * include/grub/term.h (struct grub_term): Add `getcolor' function.
38447 (grub_getcolor): New function.
38448
38449 * kern/term.c (grub_getcolor): New function.
38450 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
38451 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
38452 (print_entry): Set normal and highlight colors to
38453 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
38454 respectively, before printing and restore them to old
38455 values afterwards.
38456 (grub_menu_init_page): Likewise. Fill an additional colored space
38457 that would otherwise be left blank.
38458
38459 * term/efi/console.c (grub_console_getcolor): New function.
38460 (struct grub_console_term.getcolor): New variable.
38461 * term/i386/pc/console.c (grub_console_getcolor): New function.
38462 (struct grub_console_term.getcolor): New variable.
38463 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
38464 (struct grub_console_term.getcolor): New variable.
38465
38466 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
38467 (struct grub_console_term.setcolor): Remove variable.
38468 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
38469 (struct grub_console_term.setcolor): Remove variable.
38470 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
38471 (struct grub_console_term.setcolor): Remove variable.
38472 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
38473 (struct grub_console_term.setcolor): Remove variable.
38474
38475 2007-12-25 Robert Millan <rmh@aybabtu.com>
38476
38477 * configure.ac: Search for possible unifont.hex locations, and
38478 define UNIFONT_HEX if found.
38479
38480 * Makefile.in (UNIFONT_HEX): Define variable.
38481 (DATA): Rename to ...
38482 (PKGLIB): ... this. Update all users.
38483 (PKGDATA): New variable.
38484 (pkgdata_IMAGES): Rename to ...
38485 (pkglib_IMAGES): ... this. Update all users.
38486 (pkgdata_MODULES): Rename to ...
38487 (pkglib_MODULES): ... this. Update all users.
38488 (pkgdata_PROGRAMS): Rename to ...
38489 (pkglib_PROGRAMS): ... this. Update all users.
38490 (pkgdata_DATA): Rename to ...
38491 (pkglib_DATA): ... this. Update all users.
38492 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
38493 (unicode.pff, ascii.pff): New rules.
38494 (all-local): Add `$(PKGDATA)' dependency.
38495 (install-local): Process `$(PKGDATA)'.
38496
38497 * util/update-grub_lib.in (font_path): Search for *.pff files in
38498 a few more locations, including `${pkgdata}'.
38499
38500 2007-12-23 Robert Millan <rmh@aybabtu.com>
38501
38502 Patch from Bean <bean123ch@gmail.com>:
38503 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
38504 `size'.
38505
38506 2007-12-21 Bean <bean123ch@gmail.com>
38507
38508 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
38509 (ntfscomp_mod_SOURCES): New variable.
38510 (ntfscomp_mod_CFLAGS): Likewise.
38511 (ntfscomp_mod_LDFLAGS): Likewise.
38512
38513 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
38514 (grub_probe_SOURCES): Likewise.
38515 (grub_emu_SOURCES): Likewise.
38516
38517 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38518 (grub_emu_SOURCES): Likewise.
38519
38520 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38521 (grub_emu_SOURCES): Likewise.
38522
38523 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38524 (grub_emu_SOURCES): Likewise.
38525
38526 * fs/ntfs.c (grub_ntfscomp_func): New variable.
38527 (read_run_list): Renamed to grub_ntfs_read_run_list.
38528 (decomp_nextvcn): Moved to ntfscomp.c.
38529 (decomp_getch): Likewise.
38530 (decomp_get16): Likewise.
38531 (decomp_block): Likewise.
38532 (read_block): Likewise.
38533 (read_data): Partially moved to ntfscomp.c.
38534 (fixup): Change unsigned to grub_uint16_t.
38535 (read_mft): Change unsigned long to grub_uint32_t.
38536 (read_attr): Likewise.
38537 (read_data): Likewise.
38538 (read_run_data): Likewise.
38539 (read_run_list): Likewise.
38540 (read_mft): Likewise.
38541
38542 * fs/ntfscomp.c: New file.
38543
38544 * include/grub/ntfs.h: New file.
38545
38546 2007-12-16 Robert Millan <rmh@aybabtu.com>
38547
38548 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
38549 IDE disk check, since Linux is known to support 20 IDE disks.
38550 Reported by Colin Watson.
38551
38552 2007-12-15 Bean <bean123ch@gmail.com>
38553
38554 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
38555 (lnxboot_img_SOURCES): New variable.
38556 (lnxboot_img_ASFLAGS): Likewise.
38557 (lnxboot_img_LDFLAGS): Likewise.
38558
38559 * boot/i386/pc/lnxboot.S: New file.
38560
38561 2007-11-24 Pavel Roskin <proski@gnu.org>
38562
38563 * configure.ac: Test if '--build-id=none' is supported by the
38564 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
38565 objcopy to generate incorrect binary files (binutils
38566 2.17.50.0.18-1 as shipped by Fedora 8).
38567 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
38568 linking, so that build ID doesn't break the test.
38569
38570 2007-11-24 Pavel Roskin <proski@gnu.org>
38571
38572 * include/grub/i386/time.h: use "void" in the argument list
38573 of grub_cpu_idle().
38574 * include/grub/powerpc/time.h: Likewise.
38575 * include/grub/sparc64/time.h: Likewise.
38576
38577 2007-11-18 Christian Franke <franke@computer.org>
38578
38579 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
38580 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
38581 This fixes the problem that function keys did not work in grub-emu.
38582
38583 2007-11-18 Christian Franke <franke@computer.org>
38584
38585 * disk/host.c (grub_host_open): Remove attribute unused from
38586 name parameter. Add check for "host". This fixes the problem
38587 that grub-emu does not find partitions.
38588
38589 2007-11-18 Christian Franke <franke@computer.org>
38590
38591 * util/hostfs.c (is_dir): New function.
38592 (grub_hostfs_dir): Handle missing dirent.d_type case.
38593 (grub_hostfs_read): Add missing fseek().
38594 (grub_hostfs_label): Clear label pointer. This fixes a crash
38595 of grub-emu on "ls (host)".
38596
38597 2007-11-18 Christian Franke <franke@computer.org>
38598
38599 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
38600 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
38601 to 64 bit boundary by default.
38602
38603 2007-11-18 Bean <bean123ch@gmail.com>
38604
38605 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
38606 (hexdump_mod_SOURCES): New variable.
38607 (hexdump_mod_CFLAGS): Likewise.
38608 (hexdump_mod_LDFLAGS): Likewise.
38609
38610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38611
38612 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38613
38614 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38615
38616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38617
38618 * include/grub/hexdump.h: New file.
38619
38620 * commands/hexdump.c: New file.
38621
38622 2007-11-10 Robert Millan <rmh@aybabtu.com>
38623
38624 * commands/i386/pc/play.c (beep_off): Switch order of arguments
38625 in grub_outb() calls.
38626 (beep_on): Likewise.
38627
38628 2007-11-10 Christian Franke <franke@computer.org>
38629
38630 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
38631 (grub_menu_run): Likewise.
38632
38633 2007-11-10 Robert Millan <rmh@aybabtu.com>
38634
38635 * include/grub/i386/efi/machine.h: New file.
38636 * include/grub/i386/linuxbios/machine.h: Likewise.
38637 * include/grub/i386/pc/machine.h: Likewise.
38638 * include/grub/powerpc/ieee1275/machine.h: Likewise.
38639 * include/grub/sparc64/ieee1275/machine.h: Likewise.
38640
38641 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
38642 (serial_hw_io_addr): New variable.
38643 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
38644 instead of `(unsigned short *) 0x400'.
38645
38646 2007-11-10 Bean <bean123ch@gmail.com>
38647
38648 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
38649
38650 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38651
38652 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
38653 (vga_mod_SOURCES): Added.
38654 (vga_mod_CFLAGS): Likewise.
38655 (vga_mod_LDFLAGS): Likewise.
38656
38657 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
38658 grub_outb() calls.
38659 (set_map_mask): Likewise.
38660 (set_read_map): Likewise.
38661 (set_read_address): Likewise.
38662 (vga_font): Removed variable.
38663 (get_vga_glyph): Removed function.
38664 (invalidate_char): Likewise.
38665 (write_char): Changed to use grub_font_get_glyph() for font
38666 information.
38667 (grub_vga_putchar): Likewise.
38668 (grub_vga_getcharwidth): Likewise.
38669
38670 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38671
38672 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
38673 flags.
38674 (pxeboot_img_LDFLAGS): Likewise.
38675 (diskboot_img_LDFLAGS): Likewise.
38676 (kernel_img_LDFLAGS): Likewise.
38677
38678 2007-11-06 Robert Millan <rmh@aybabtu.com>
38679
38680 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
38681 in grub_outb() calls.
38682 (serial_hw_init): Likewise.
38683
38684 2007-11-05 Robert Millan <rmh@aybabtu.com>
38685
38686 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
38687 spaces. Skip non-regular files.
38688
38689 2007-11-05 Robert Millan <rmh@aybabtu.com>
38690
38691 * kern/disk.c (grub_disk_firmware_fini)
38692 (grub_disk_firmware_is_tainted): New variables.
38693
38694 * include/grub/disk.h (grub_disk_firmware_fini)
38695 (grub_disk_firmware_is_tainted): Likewise.
38696
38697 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
38698 (grub_disk_biosdisk_fini): ... to here.
38699 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
38700 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
38701 is set. Register grub_disk_biosdisk_fini() in
38702 `grub_disk_firmware_fini'.
38703
38704 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
38705 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
38706 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
38707 to finish existing firmware disk interface.
38708
38709 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
38710 (ata_mod_SOURCES): New variable.
38711 (ata_mod_CFLAGS): Likewise.
38712 (ata_mod_LDFLAGS): Likewise.
38713
38714 2007-11-05 Robert Millan <rmh@aybabtu.com>
38715
38716 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
38717 (grub_ata_wait): Reimplement using grub_millisleep().
38718
38719 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
38720 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
38721
38722 2007-11-03 Marco Gerards <marco@gnu.org>
38723
38724 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
38725 (CRTC_ADDR_PORT): New macro.
38726 (CRTC_DATA_PORT): Likewise.
38727 (CRTC_CURSOR): Likewise.
38728 (CRTC_CURSOR_ADDR_HIGH): Likewise.
38729 (CRTC_CURSOR_ADDR_LOW): Likewise.
38730 (update_cursor): New function.
38731 (grub_console_real_putchar): Call `update_cursor'.
38732 (grub_console_gotoxy): Likewise.
38733 (grub_console_cls): Set the default color when clearing the
38734 screen.
38735 (grub_console_setcursor): Implemented.
38736
38737 2007-11-03 Marco Gerards <marco@gnu.org>
38738
38739 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
38740 become activate.
38741 (grub_ata_pio_write): Likewise.
38742
38743 (grub_atapi_identify): Wait after issuing an ATA command.
38744 (grub_atapi_packet): Likewise.
38745 (grub_ata_identify): Likewise.
38746 (grub_ata_readwrite): Likewise.
38747
38748 2007-11-03 Marco Gerards <marco@gnu.org>
38749
38750 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
38751 (grub_ata_pio_write): Likewise.
38752 (grub_ata_readwrite): Use `grub_error', instead of
38753 returning `grub_errno'.
38754
38755 2007-11-03 Marco Gerards <marco@gnu.org>
38756
38757 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
38758 grub_ata_pio_write once for every single sector, instead of for
38759 multiple sectors.
38760
38761 2007-10-31 Robert Millan <rmh@aybabtu.com>
38762
38763 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
38764
38765 * conf/i386-linuxbios.rmk: New file.
38766
38767 * kern/i386/pc/hardware.c: Likewise.
38768 * term/i386/pc/at_keyboard.c: Likewise.
38769 * term/i386/pc/vga_text.c: Likewise.
38770
38771 * include/grub/i386/linuxbios/boot.h: Likewise.
38772 * include/grub/i386/linuxbios/console.h: Likewise.
38773 * include/grub/i386/linuxbios/init.h: Likewise.
38774 * include/grub/i386/linuxbios/kernel.h: Likewise.
38775 * include/grub/i386/linuxbios/loader.h: Likewise.
38776 * include/grub/i386/linuxbios/memory.h: Likewise.
38777 * include/grub/i386/linuxbios/serial.h: Likewise.
38778 * include/grub/i386/linuxbios/time.h: Likewise.
38779
38780 * kern/i386/linuxbios/init.c: Likewise.
38781 * kern/i386/linuxbios/startup.S: Likewise.
38782 * kern/i386/linuxbios/table.c: Likewise.
38783
38784 2007-10-31 Marco Gerards <marco@gnu.org>
38785
38786 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
38787 (ata_mod_SOURCES): New variable.
38788 (ata_mod_CFLAGS): Likewise.
38789 (ata_mod_LDFLAGS): Likewise.
38790
38791 * disk/ata.c: New file.
38792
38793 * include/grub/disk.h (grub_disk_dev_id): Add
38794 `GRUB_DISK_DEV_ATA_ID'.
38795
38796 2007-10-31 Robert Millan <rmh@aybabtu.com>
38797
38798 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
38799 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
38800
38801 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
38802 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
38803
38804 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
38805 `<grub/types.h>'.
38806
38807 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
38808
38809 2007-10-27 Robert Millan <rmh@aybabtu.com>
38810
38811 * include/grub/types.h (ULONG_MAX): Define macro.
38812
38813 2007-10-22 Robert Millan <rmh@aybabtu.com>
38814
38815 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
38816 `"../realmode.S"'.
38817 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
38818
38819 2007-10-22 Robert Millan <rmh@aybabtu.com>
38820
38821 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
38822 (pkgdata_MODULES): Add `biosdisk.mod'.
38823 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
38824 variables.
38825
38826 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
38827 (grub_biosdisk_init): Replace with ...
38828 (GRUB_MOD_INIT(biosdisk)): ... this.
38829 (grub_biosdisk_fini): Replace with ...
38830 (GRUB_MOD_FINI(biosdisk)): ... this.
38831
38832 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
38833 (grub_machine_init): Remove call to grub_biosdisk_init().
38834 (grub_machine_fini): Remove call to grub_machine_fini().
38835
38836 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
38837
38838 2007-10-22 Robert Millan <rmh@aybabtu.com>
38839
38840 * include/grub/time.h: New file.
38841 * include/grub/i386/time.h: Likewise.
38842 * include/grub/powerpc/time.h: Likewise.
38843 * include/grub/sparc64/time.h: Likewise.
38844
38845 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
38846 instances to ...
38847 (KERNEL_MACHINE_TIME_HEADER): ... this.
38848 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
38849 instances to ...
38850 (KERNEL_MACHINE_TIME_HEADER): ... this.
38851 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
38852 instances to ...
38853 (KERNEL_MACHINE_TIME_HEADER): ... this.
38854
38855 * kern/i386/efi/init.c: Include `<grub/time.h>'.
38856 (grub_millisleep): New function.
38857 * kern/i386/pc/init.c: Include `<grub/time.h>'.
38858 (grub_millisleep): New function.
38859 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
38860 Remove `grub/machine/time.h' include.
38861 (grub_millisleep): New function.
38862 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
38863 Remove `grub/machine/time.h' include.
38864 (grub_millisleep): New function.
38865
38866 * include/grub/misc.h (grub_div_roundup): New function.
38867
38868 * kern/misc.c: Include `<grub/time.h>'.
38869 (grub_millisleep_generic): New function.
38870
38871 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
38872 Add `time.h'.
38873 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
38874 Add `time.h'.
38875 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
38876 `machine/time.h'. Add `time.h'.
38877 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
38878
38879 2007-10-21 Robert Millan <rmh@aybabtu.com>
38880
38881 * include/grub/misc.h (grub_max): New function.
38882
38883 2007-10-21 Robert Millan <rmh@aybabtu.com>
38884
38885 * util/misc.c (grub_util_info): Call fflush() before returning.
38886
38887 2007-10-20 Robert Millan <rmh@aybabtu.com>
38888
38889 * genmk.rb (Image): Copy `extra_flags' from here ...
38890 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
38891
38892 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
38893 to `argc' and `args' arguments.
38894
38895 2007-10-17 Robert Millan <rmh@aybabtu.com>
38896
38897 * kern/i386/loader.S: New file.
38898
38899 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
38900 * kern/i386/loader.S (grub_linux_prot_size)... to here.
38901 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
38902 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
38903 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
38904 * kern/i386/loader.S (grub_linux_real_addr)... to here.
38905 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
38906 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
38907 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
38908 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
38909 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
38910 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
38911 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
38912 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
38913
38914 * kern/i386/realmode.S: New file.
38915
38916 * kern/i386/pc/startup.S (protstack): Moved from here ...
38917 * kern/i386/realmode.S (protstack)... to here.
38918 * kern/i386/pc/startup.S (gdt): Moved from here ...
38919 * kern/i386/realmode.S (gdt)... to here.
38920 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
38921 * kern/i386/realmode.S (prot_to_real)... to here.
38922
38923 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
38924 `kern/i386/realmode.S'.
38925
38926 2007-10-17 Robert Millan <rmh@aybabtu.com>
38927
38928 * include/grub/i386/loader.h: New file.
38929
38930 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
38931 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
38932 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
38933 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
38934 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
38935 * include/grub/i386/loader.h (grub_linux_prot_size)
38936 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
38937 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
38938 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
38939 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
38940
38941 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
38942
38943 2007-10-15 Robert Millan <rmh@aybabtu.com>
38944
38945 * normal/misc.c (grub_normal_print_device_info): Do not probe for
38946 filesystem when dev->disk is unset.
38947 Do probe for filesystem even when dev->disk->has_partitions is set.
38948 In case a filesystem is found, always report it.
38949 In case it isn't, if dev->disk->has_partitions is set, report that
38950 a partition table was found instead of reporting that no filesystem
38951 could be identified.
38952
38953 2007-10-12 Robert Millan <rmh@aybabtu.com>
38954
38955 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
38956 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
38957
38958 * include/grub/types.h (grub_host_to_target16): New macro.
38959 (grub_host_to_target32): Likewise.
38960 (grub_host_to_target64): Likewise.
38961 (grub_target_to_host16): Likewise.
38962 (grub_target_to_host32): Likewise.
38963 (grub_target_to_host64): Likewise.
38964
38965 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
38966 Renamed from to ...
38967 (GRUB_MOD_ALIGN): ...this. Update all users.
38968
38969 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
38970 grub_host_to_target32.
38971 Replace grub_be_to_cpu32 with grub_target_to_host32.
38972 (load_modules): Likewise.
38973 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
38974 Replace grub_be_to_cpu32 with grub_target_to_host32.
38975 Replace grub_cpu_to_be16 with grub_host_to_target16.
38976 Replace grub_cpu_to_be32 grub_host_to_target32.
38977
38978 2007-10-12 Robert Millan <rmh@aybabtu.com>
38979
38980 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
38981 * util/elf/grub-mkimage.c: ... here.
38982
38983 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
38984 `util/powerpc/ieee1275/grub-mkimage.c'.
38985
38986 2007-10-07 Robert Millan <rmh@aybabtu.com>
38987
38988 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
38989 and make it easier to figure out.
38990 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
38991 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
38992 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
38993 leave us with less than HEAP_MIN_SIZE total heap.
38994 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
38995
38996 2007-10-03 Robert Millan <rmh@aybabtu.com>
38997
38998 * include/grub/i386/io.h: New file.
38999 * commands/i386/pc/play.c (inb): Removed.
39000 (outb): Removed.
39001 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39002 with grub_outb().
39003 * term/i386/pc/serial.c (inb): Removed.
39004 (outb): Removed.
39005 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39006 with grub_outb().
39007 * term/i386/pc/vga.c (inb): Removed.
39008 (outb): Removed.
39009 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39010 with grub_outb().
39011
39012 2007-10-02 Robert Millan <rmh@aybabtu.com>
39013
39014 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39016 Reported by Marcin Kurek.
39017
39018 2007-09-07 Robert Millan <rmh@aybabtu.com>
39019
39020 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39021 SmartFirmware version updates (as released by Sven Luther), and avoid
39022 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39023 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39024 known broken.
39025
39026 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39027
39028 From Hitoshi Ozeki:
39029 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39030 when merging two regions.
39031
39032 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39033
39034 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39035 * normal/completion.c (grub_normal_do_completion): Likewise.
39036 Reported by Hitoshi Ozeki.
39037
39038 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39039
39040 Do not use devices at boot in chainloading.
39041
39042 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39043 (boot_part_addr): Likewise.
39044 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39045 with BOOT_DRIVE and BOOT_PART_ADDR.
39046 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39047 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39048
39049 2007-08-29 Robert Millan <rmh@aybabtu.com>
39050
39051 Patch from Simon Peter <dn.tlp@gmx.net>:
39052 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39053 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39054 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39055 util/i386/pc/grub-setup.c_DEPENDENCIES.
39056 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39057 util/grub-probe.c_DEPENDENCIES.
39058 * conf/powerpc-ieee1275.rmk: Likewise.
39059
39060 2007-08-28 Robert Millan <rmh@aybabtu.com>
39061
39062 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39063 to tell grub-mkdevicemap how to name devices.
39064 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39065 feature).
39066
39067 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39068 util/i386/get_disk_name.c.
39069 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39070 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39071 util/ieee1275/get_disk_name.c.
39072
39073 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39074
39075 * DISTLIST: Add util/i386/get_disk_name.c and
39076 util/ieee1275/get_disk_name.c.
39077
39078 * util/grub-mkdevicemap.c: Replace device naming logic with
39079 grub_util_get_disk_name() calls.
39080
39081 2007-08-20 Robert Millan <rmh@aybabtu.com>
39082
39083 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39084 (so that it works for both plural and singular quantities).
39085
39086 2007-08-05 Robert Millan <rmh@aybabtu.com>
39087
39088 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39089 so that [xz] isn't taken into account when determining order.
39090
39091 2007-08-02 Marco Gerards <marco@gnu.org>
39092
39093 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39094 `include/multiboot2.h', `include/grub/elfload.h',
39095 `include/multiboot.h', `include/grub/multiboot.h',
39096 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39097 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39098 `kern/elf.c', `loader/multiboot_loader.c',
39099 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39100 `loader/i386/pc/multiboot2.c',
39101 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39102 `util/i386/pc/grub-mkrescue.in'. Remove
39103 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39104 `include/grub/i386/pc/util/biosdisk.h' and
39105 `include/grub/powerpc/ieee1275/multiboot.h'.
39106
39107 2007-08-02 Bean <bean123ch@gmail.com>
39108
39109 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39110 (ntfs_mod_SOURCES): New variable.
39111 (ntfs_mod_CFLAGS): Likewise.
39112 (ntfs_mod_LDFLAGS): Likewise.
39113
39114 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39115 (grub_probe_SOURCES): Likewise.
39116 (grub_emu_SOURCES): Likewise.
39117
39118 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39119 (grub_emu_SOURCES): Likewise.
39120
39121 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39122 (grub_emu_SOURCES): Likewise.
39123
39124 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39125
39126 * fs/ntfs.c: New file.
39127
39128 2007-08-02 Bean <bean123ch@gmail.com>
39129
39130 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39131
39132 * file.h (grub_file): Likewise.
39133
39134 * fshelp.h (grub_fshelp_read_file): Likewise.
39135
39136 * util/i386/pc/grub-setup.c (setup): Likewise.
39137 (save_first_sector): Likewise.
39138 (save_blocklists): Likewise.
39139
39140 * fs/affs.c (grub_affs_read_file): Likewise.
39141
39142 * fs/ext2.c (grub_ext2_read_file): Likewise.
39143
39144 * fs/fat.c (grub_fat_read_data): Likewise.
39145
39146 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39147
39148 * fs/hfs.c (grub_hfs_read_file): Likewise.
39149
39150 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39151
39152 * fs/jfs.c (grub_jfs_read_file): Likewise.
39153
39154 * fs/minix.c (grub_minix_read_file): Likewise.
39155
39156 * fs/sfs.c (grub_sfs_read_file): Likewise.
39157
39158 * fs/ufs.c (grub_ufs_read_file): Likewise.
39159
39160 * fs/xfs.c (grub_xfs_read_file): Likewise.
39161
39162 * command/blocklist.c (read_blocklist): Likewise.
39163 (print_blocklist): Likewise.
39164
39165 2007-08-02 Marco Gerards <marco@gnu.org>
39166
39167 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39168 `util/hostfs.c'.
39169
39170 * disk/host.c: New file.
39171
39172 * util/hostfs.c: Likewise.
39173
39174 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39175 return `GRUB_ERR_BAD_FS'.
39176 * fs/sfs.c (grub_sfs_mount): Likewise.
39177 * fs/xfs.c (grub_xfs_mount): Likewise.
39178
39179 * include/grub/disk.h (enum grub_disk_dev_id): Add
39180 `GRUB_DISK_DEVICE_HOST_ID'.
39181
39182 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39183
39184 2007-07-24 Jerone Young <jerone@gmail.com>
39185
39186 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39187 modules for compilation.
39188 * conf/powerpc-ieee1275.rmk: Likewise.
39189
39190 * include/multiboot.h: Move multiboot definitions to one file. Rename
39191 many definitions to not get grub specific.
39192 * include/multiboot2.h: Create header with multiboot 2 definitions.
39193 * include/grub/multiboot.h: Header for grub specific function
39194 prototypes and definitions.
39195 * include/grub/multiboot2.h: Likewise.
39196 * include/grub/multiboot_loader.h: Likewise.
39197 * include/grub/i386/pc/multiboot.h: Removed.
39198 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39199
39200 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39201 and 2 to allow for one multiboot and module commands.
39202 * loader/multiboot2.c: Add multiboot2 functionality.
39203 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39204 and definition names.
39205 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39206 2 functions.
39207 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39208 ieee1275 specific multiboot2 code.
39209
39210 * kern/i386/pc/startup.S: Change headers and definition names for
39211 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39212
39213 2007-07-22 Robert Millan <rmh@aybabtu.com>
39214
39215 * geninitheader.sh: Process file specified in first parameter rather
39216 than hardcoding grub_modules_init.lst.
39217 * geninit.sh: Likewise. Also, construct header name dynamically rather
39218 than hardcoding grub_modules_init.h.
39219
39220 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39221 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39222 grub_probe_init.[ch] and grub_setup_init.[ch].
39223
39224 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39225 grub_modules_init.h with grub_emu_init.h.
39226 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39227 grub_probe_init.[ch] files.
39228 * conf/i386-efi.rmk: Likewise.
39229 * conf/i386-pc.rmk: Likewise.
39230 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39231 grub_setup_init.[ch] files.
39232
39233 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39234 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39235 to initialize modules rather than a list of hardcoded functions.
39236 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39237 grub_init_all() to initialize modules rather than a list of hardcoded
39238 functions.
39239
39240 2007-07-22 Robert Millan <rmh@aybabtu.com>
39241
39242 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39243 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39244
39245 2007-07-22 Robert Millan <rmh@aybabtu.com>
39246
39247 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39248 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39249 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39250 flag when running on SmartFirmware.
39251 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39252 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39253 was set.
39254
39255 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39256 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39257 rather than decreasing it.
39258
39259 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39260 there's not enough space to do it, fail in the same way as when it
39261 can't be done because there are no partitions.
39262
39263 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39264 when nvsetenv failed.
39265
39266 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39267
39268 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
39269 because this rule is automatically generated.
39270 (grub-mkrescue): Removed for the same reason as above.
39271
39272 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39273
39274 Migrate to GNU General Public License Version 3.
39275
39276 * COPYING: Replaced with the plain text version of GPLv3.
39277
39278 * config.guess: Updated from gnulib.
39279 * config.sub: Likewise.
39280
39281 * geninit.sh: Output a GPLv3 copyright notice.
39282 * geninitheader.sh: Likewise.
39283 * genmodsrc.sh: Likewise.
39284 * gensymlist.sh.in: Likewise.
39285
39286 * boot/i386/pc/boot.S: Upgraded to GPLv3.
39287 * boot/i386/pc/diskboot.S: Likewise.
39288 * boot/i386/pc/pxeboot.S: Likewise.
39289 * commands/blocklist.c: Likewise.
39290 * commands/boot.c: Likewise.
39291 * commands/cat.c: Likewise.
39292 * commands/cmp.c: Likewise.
39293 * commands/configfile.c: Likewise.
39294 * commands/echo.c: Likewise.
39295 * commands/help.c: Likewise.
39296 * commands/ls.c: Likewise.
39297 * commands/search.c: Likewise.
39298 * commands/terminal.c: Likewise.
39299 * commands/test.c: Likewise.
39300 * commands/videotest.c: Likewise.
39301 * commands/i386/cpuid.c: Likewise.
39302 * commands/i386/pc/halt.c: Likewise.
39303 * commands/i386/pc/play.c: Likewise.
39304 * commands/i386/pc/reboot.c: Likewise.
39305 * commands/i386/pc/vbeinfo.c: Likewise.
39306 * commands/i386/pc/vbetest.c: Likewise.
39307 * commands/ieee1275/halt.c: Likewise.
39308 * commands/ieee1275/reboot.c: Likewise.
39309 * commands/ieee1275/suspend.c: Likewise.
39310 * disk/loopback.c: Likewise.
39311 * disk/lvm.c: Likewise.
39312 * disk/raid.c: Likewise.
39313 * disk/efi/efidisk.c: Likewise.
39314 * disk/i386/pc/biosdisk.c: Likewise.
39315 * disk/ieee1275/ofdisk.c: Likewise.
39316 * font/manager.c: Likewise.
39317 * fs/affs.c: Likewise.
39318 * fs/ext2.c: Likewise.
39319 * fs/fat.c: Likewise.
39320 * fs/fshelp.c: Likewise.
39321 * fs/hfs.c: Likewise.
39322 * fs/hfsplus.c: Likewise.
39323 * fs/iso9660.c: Likewise.
39324 * fs/jfs.c: Likewise.
39325 * fs/minix.c: Likewise.
39326 * fs/sfs.c: Likewise.
39327 * fs/ufs.c: Likewise.
39328 * fs/xfs.c: Likewise.
39329 * hello/hello.c: Likewise.
39330 * include/grub/acorn_filecore.h: Likewise.
39331 * include/grub/arg.h: Likewise.
39332 * include/grub/bitmap.h: Likewise.
39333 * include/grub/boot.h: Likewise.
39334 * include/grub/cache.h: Likewise.
39335 * include/grub/device.h: Likewise.
39336 * include/grub/disk.h: Likewise.
39337 * include/grub/dl.h: Likewise.
39338 * include/grub/elfload.h: Likewise.
39339 * include/grub/env.h: Likewise.
39340 * include/grub/err.h: Likewise.
39341 * include/grub/file.h: Likewise.
39342 * include/grub/font.h: Likewise.
39343 * include/grub/fs.h: Likewise.
39344 * include/grub/fshelp.h: Likewise.
39345 * include/grub/gzio.h: Likewise.
39346 * include/grub/hfs.h: Likewise.
39347 * include/grub/kernel.h: Likewise.
39348 * include/grub/loader.h: Likewise.
39349 * include/grub/lvm.h: Likewise.
39350 * include/grub/misc.h: Likewise.
39351 * include/grub/mm.h: Likewise.
39352 * include/grub/net.h: Likewise.
39353 * include/grub/normal.h: Likewise.
39354 * include/grub/parser.h: Likewise.
39355 * include/grub/partition.h: Likewise.
39356 * include/grub/pc_partition.h: Likewise.
39357 * include/grub/raid.h: Likewise.
39358 * include/grub/rescue.h: Likewise.
39359 * include/grub/script.h: Likewise.
39360 * include/grub/setjmp.h: Likewise.
39361 * include/grub/symbol.h: Likewise.
39362 * include/grub/term.h: Likewise.
39363 * include/grub/terminfo.h: Likewise.
39364 * include/grub/tparm.h: Likewise.
39365 * include/grub/types.h: Likewise.
39366 * include/grub/video.h: Likewise.
39367 * include/grub/efi/api.h: Likewise.
39368 * include/grub/efi/chainloader.h: Likewise.
39369 * include/grub/efi/console.h: Likewise.
39370 * include/grub/efi/console_control.h: Likewise.
39371 * include/grub/efi/disk.h: Likewise.
39372 * include/grub/efi/efi.h: Likewise.
39373 * include/grub/efi/pe32.h: Likewise.
39374 * include/grub/efi/time.h: Likewise.
39375 * include/grub/i386/linux.h: Likewise.
39376 * include/grub/i386/setjmp.h: Likewise.
39377 * include/grub/i386/types.h: Likewise.
39378 * include/grub/i386/efi/kernel.h: Likewise.
39379 * include/grub/i386/efi/loader.h: Likewise.
39380 * include/grub/i386/efi/time.h: Likewise.
39381 * include/grub/i386/pc/biosdisk.h: Likewise.
39382 * include/grub/i386/pc/boot.h: Likewise.
39383 * include/grub/i386/pc/chainloader.h: Likewise.
39384 * include/grub/i386/pc/console.h: Likewise.
39385 * include/grub/i386/pc/init.h: Likewise.
39386 * include/grub/i386/pc/kernel.h: Likewise.
39387 * include/grub/i386/pc/loader.h: Likewise.
39388 * include/grub/i386/pc/memory.h: Likewise.
39389 * include/grub/i386/pc/multiboot.h: Likewise.
39390 * include/grub/i386/pc/serial.h: Likewise.
39391 * include/grub/i386/pc/time.h: Likewise.
39392 * include/grub/i386/pc/vbe.h: Likewise.
39393 * include/grub/i386/pc/vbeblit.h: Likewise.
39394 * include/grub/i386/pc/vbefill.h: Likewise.
39395 * include/grub/i386/pc/vbeutil.h: Likewise.
39396 * include/grub/i386/pc/vga.h: Likewise.
39397 * include/grub/ieee1275/ieee1275.h: Likewise.
39398 * include/grub/ieee1275/ofdisk.h: Likewise.
39399 * include/grub/powerpc/libgcc.h: Likewise.
39400 * include/grub/powerpc/setjmp.h: Likewise.
39401 * include/grub/powerpc/types.h: Likewise.
39402 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
39403 * include/grub/powerpc/ieee1275/console.h: Likewise.
39404 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
39405 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
39406 * include/grub/powerpc/ieee1275/loader.h: Likewise.
39407 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
39408 * include/grub/powerpc/ieee1275/time.h: Likewise.
39409 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
39410 * include/grub/sparc64/libgcc.h: Likewise.
39411 * include/grub/sparc64/setjmp.h: Likewise.
39412 * include/grub/sparc64/types.h: Likewise.
39413 * include/grub/sparc64/ieee1275/console.h: Likewise.
39414 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39415 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39416 * include/grub/sparc64/ieee1275/time.h: Likewise.
39417 * include/grub/util/biosdisk.h: Likewise.
39418 * include/grub/util/getroot.h: Likewise.
39419 * include/grub/util/lvm.h: Likewise.
39420 * include/grub/util/misc.h: Likewise.
39421 * include/grub/util/raid.h: Likewise.
39422 * include/grub/util/resolve.h: Likewise.
39423 * io/gzio.c: Likewise.
39424 * kern/device.c: Likewise.
39425 * kern/disk.c: Likewise.
39426 * kern/dl.c: Likewise.
39427 * kern/elf.c: Likewise.
39428 * kern/env.c: Likewise.
39429 * kern/err.c: Likewise.
39430 * kern/file.c: Likewise.
39431 * kern/fs.c: Likewise.
39432 * kern/loader.c: Likewise.
39433 * kern/main.c: Likewise.
39434 * kern/misc.c: Likewise.
39435 * kern/mm.c: Likewise.
39436 * kern/parser.c: Likewise.
39437 * kern/partition.c: Likewise.
39438 * kern/rescue.c: Likewise.
39439 * kern/term.c: Likewise.
39440 * kern/efi/efi.c: Likewise.
39441 * kern/efi/init.c: Likewise.
39442 * kern/efi/mm.c: Likewise.
39443 * kern/i386/dl.c: Likewise.
39444 * kern/i386/efi/init.c: Likewise.
39445 * kern/i386/efi/startup.S: Likewise.
39446 * kern/i386/pc/init.c: Likewise.
39447 * kern/i386/pc/lzo1x.S: Likewise.
39448 * kern/i386/pc/startup.S: Likewise.
39449 * kern/ieee1275/ieee1275.c: Likewise.
39450 * kern/powerpc/cache.S: Likewise.
39451 * kern/powerpc/dl.c: Likewise.
39452 * kern/powerpc/ieee1275/cmain.c: Likewise.
39453 * kern/powerpc/ieee1275/crt0.S: Likewise.
39454 * kern/powerpc/ieee1275/init.c: Likewise.
39455 * kern/powerpc/ieee1275/openfw.c: Likewise.
39456 * kern/sparc64/cache.S: Likewise.
39457 * kern/sparc64/dl.c: Likewise.
39458 * kern/sparc64/ieee1275/init.c: Likewise.
39459 * kern/sparc64/ieee1275/openfw.c: Likewise.
39460 * loader/efi/chainloader.c: Likewise.
39461 * loader/efi/chainloader_normal.c: Likewise.
39462 * loader/i386/efi/linux.c: Likewise.
39463 * loader/i386/efi/linux_normal.c: Likewise.
39464 * loader/i386/pc/chainloader.c: Likewise.
39465 * loader/i386/pc/chainloader_normal.c: Likewise.
39466 * loader/i386/pc/linux.c: Likewise.
39467 * loader/i386/pc/linux_normal.c: Likewise.
39468 * loader/i386/pc/multiboot.c: Likewise.
39469 * loader/i386/pc/multiboot_normal.c: Likewise.
39470 * loader/powerpc/ieee1275/linux.c: Likewise.
39471 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39472 * normal/arg.c: Likewise.
39473 * normal/cmdline.c: Likewise.
39474 * normal/command.c: Likewise.
39475 * normal/completion.c: Likewise.
39476 * normal/execute.c: Likewise.
39477 * normal/function.c: Likewise.
39478 * normal/lexer.c: Likewise.
39479 * normal/main.c: Likewise.
39480 * normal/menu.c: Likewise.
39481 * normal/menu_entry.c: Likewise.
39482 * normal/misc.c: Likewise.
39483 * normal/parser.y: Likewise.
39484 * normal/script.c: Likewise.
39485 * normal/i386/setjmp.S: Likewise.
39486 * normal/powerpc/setjmp.S: Likewise.
39487 * normal/sparc64/setjmp.S: Likewise.
39488 * partmap/acorn.c: Likewise.
39489 * partmap/amiga.c: Likewise.
39490 * partmap/apple.c: Likewise.
39491 * partmap/gpt.c: Likewise.
39492 * partmap/pc.c: Likewise.
39493 * partmap/sun.c: Likewise.
39494 * term/gfxterm.c: Likewise.
39495 * term/terminfo.c: Likewise.
39496 * term/efi/console.c: Likewise.
39497 * term/i386/pc/console.c: Likewise.
39498 * term/i386/pc/serial.c: Likewise.
39499 * term/i386/pc/vesafb.c: Likewise.
39500 * term/i386/pc/vga.c: Likewise.
39501 * term/ieee1275/ofconsole.c: Likewise.
39502 * util/biosdisk.c: Likewise.
39503 * util/console.c: Likewise.
39504 * util/genmoddep.c: Likewise.
39505 * util/getroot.c: Likewise.
39506 * util/grub-emu.c: Likewise.
39507 * util/grub-mkdevicemap.c: Likewise.
39508 * util/grub-probe.c: Likewise.
39509 * util/lvm.c: Likewise.
39510 * util/misc.c: Likewise.
39511 * util/raid.c: Likewise.
39512 * util/resolve.c: Likewise.
39513 * util/update-grub.in: Likewise.
39514 * util/update-grub_lib.in: Likewise.
39515 * util/grub.d/00_header.in: Likewise.
39516 * util/grub.d/10_hurd.in: Likewise.
39517 * util/grub.d/10_linux.in: Likewise.
39518 * util/i386/efi/grub-install.in: Likewise.
39519 * util/i386/efi/grub-mkimage.c: Likewise.
39520 * util/i386/pc/grub-install.in: Likewise.
39521 * util/i386/pc/grub-mkimage.c: Likewise.
39522 * util/i386/pc/grub-mkrescue.in: Likewise.
39523 * util/i386/pc/grub-setup.c: Likewise.
39524 * util/i386/pc/misc.c: Likewise.
39525 * util/powerpc/ieee1275/grub-install.in: Likewise.
39526 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
39527 * util/powerpc/ieee1275/misc.c: Likewise.
39528 * video/bitmap.c: Likewise.
39529 * video/video.c: Likewise.
39530 * video/i386/pc/vbe.c: Likewise.
39531 * video/i386/pc/vbeblit.c: Likewise.
39532 * video/i386/pc/vbefill.c: Likewise.
39533 * video/i386/pc/vbeutil.c: Likewise.
39534 * video/readers/tga.c: Likewise.
39535
39536 2007-07-02 Robert Millan <rmh@aybabtu.com>
39537
39538 * conf/i386-efi.rmk: Replace obsolete reference to
39539 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
39540 with util/getroot.c.
39541 * conf/powerpc-ieee1275.rmk: Likewise.
39542 * conf/sparc64-ieee1275.rmk: Likewise.
39543
39544 * util/grub-emu.c (main): Fix unchecked pointer handling.
39545
39546 2007-07-02 Robert Millan <rmh@aybabtu.com>
39547
39548 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
39549 invocation to fail, in order to support partition-less media.
39550
39551 * util/i386/pc/grub-install.in: Likewise.
39552
39553 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
39554 which fs or partmap modules are needed (akin to its sister scripts).
39555
39556 Also use grub-probe to get rid of unportable /proc/mounts check.
39557
39558 Print the same informational message that the other scripts do, before
39559 exiting.
39560
39561 2007-06-23 Robert Millan <rmh@aybabtu.com>
39562
39563 * util/update-grub_lib.in (font_path): New function. Determine whether
39564 a font file can be found and, if so, echo the GRUB path to it.
39565
39566 * util/update-grub.in: Handle multiple terminals depending on user
39567 input, platform availability and font file presence. Propagate
39568 variables of our findings to /etc/grub.d/ children.
39569
39570 * util/grub.d/00_header.in: Handle multiple terminals, based on
39571 environment setup by update-grub.
39572
39573 2007-06-23 Robert Millan <rmh@aybabtu.com>
39574
39575 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
39576
39577 2007-06-21 Robert Millan <rmh@aybabtu.com>
39578
39579 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
39580 indicate end of data section in kernel image.
39581 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
39582 GRUB_KERNEL_MACHINE_DATA_END.
39583
39584 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
39585 space for it.
39586 * kern/i386/efi/startup.S: Likewise.
39587
39588 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
39589 during image generation. Implement --prefix option to override this
39590 patch.
39591 * util/i386/efi/grub-mkimage.c: Likewise.
39592
39593 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
39594 code to make path relative to its root into a separate function.
39595
39596 * util/i386/pc/grub-install.in: Use newly provided
39597 make_system_path_relative_to_its_root() to convert ${grubdir}, then
39598 pass the result to grub-install --prefix.
39599
39600 2007-06-13 Robert Millan <rmh@aybabtu.com>
39601
39602 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
39603 DEFAULT_DEVICE_MAP.
39604 * util/grub-emu.c: Use above definitions from misc.h instead of
39605 defining them.
39606 * util/grub-mkdevicemap.c: Likewise.
39607 * util/i386/pc/grub-setup.c: Likewise.
39608 * util/grub-probe.c: Likewise.
39609 (probe): Abort with grub_util_error() when either
39610 grub_guess_root_device or grub_util_get_grub_dev fails.
39611
39612 2007-06-12 Robert Millan <rmh@aybabtu.com>
39613
39614 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
39615 "pager" assignment.
39616 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
39617 "pcdata".
39618 * util/grub-probe.c (probe): Likewise for "drive_name".
39619
39620 2007-06-11 Robert Millan <rmh@aybabtu.com>
39621
39622 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
39623 not just the cdrom one.
39624
39625 2007-06-11 Robert Millan <rmh@aybabtu.com>
39626
39627 * util/i386/pc/grub-mkrescue.in: Add "set -e".
39628 Add --pkglibdir=DIR option to override pkglibdir.
39629 Mention --image-type=TYPE in help output.
39630 Fix --grub-mkimage (it was a no-op).
39631 Abort gracefully when no parameter is given.
39632
39633 2007-06-11 Robert Millan <rmh@aybabtu.com>
39634
39635 * util/i386/pc/grub-mkrescue.in: New file.
39636 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
39637 * Makefile.in: Handle bin_SCRIPTS.
39638
39639 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
39640
39641 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
39642 list of video modes.
39643
39644 2007-06-06 Robert Millan <rmh@aybabtu.com>
39645
39646 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
39647 file doesn't exist, or if it is in a filesystem grub can't read.
39648
39649 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
39650 not abort if GRUB_DRIVE could not be defined. Rearrange generated
39651 header comment to fit in 80 columns when the variables are resolved.
39652
39653 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
39654 could be identified by update-grub. Remove redundant check for
39655 unifont.pff existence (since convert_system_path_to_grub_path now
39656 handles that).
39657
39658 2007-06-04 Robert Millan <rmh@aybabtu.com>
39659
39660 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
39661
39662 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
39663
39664 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
39665
39666 2007-06-04 Robert Millan <rmh@aybabtu.com>
39667
39668 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
39669
39670 * include/grub/partition.h: Declare grub_apple_partition_map_init and
39671 grub_apple_partition_map_fini.
39672
39673 * util/biosdisk.c
39674 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
39675 to access >2 TiB disks).
39676
39677 Print disk->total_sectors with %llu instead of %lu, since this
39678 variable is always 64-bit (prevents wrong disk size from being displayed
39679 on either >2 TiB disk or big-endian CPU).
39680
39681 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
39682 into a generic case that supports all (sane) partition maps.
39683
39684 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
39685 breaks big-endian.
39686
39687 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
39688 and grub_apple_partition_map_fini() after that.
39689
39690 2007-06-01 Robert Millan <rmh@aybabtu.com>
39691
39692 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
39693
39694 * util/grub.d/00_header.in: Only enable gfxterm when
39695 convert_system_path_to_grub_path() succeeds.
39696
39697 2007-05-20 Robert Millan <rmh@aybabtu.com>
39698
39699 * util/update-grub_lib.in: New file.
39700 * DISTLIST: Add update-grub_lib.in.
39701 * conf/common.rmk: Generate update-grub_lib and install it in
39702 $(lib_DATA).
39703 * Makefile.in: Add install routine for $(lib_DATA).
39704
39705 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
39706 function provided by update-grub_lib to support arbitrary paths of
39707 unifont.pff.
39708 * util/update-grub.in: Use convert_system_path_to_grub_path() to
39709 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
39710
39711 2007-05-19 Robert Millan <rmh@aybabtu.com>
39712
39713 * commands/i386/cpuid.c: New module.
39714 * DISTLIST: Add it.
39715 * conf/i386-efi.rmk: Enable cpuid.mod.
39716 * conf/i386-pc.rmk: Likewise.
39717
39718 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
39719
39720 * kern/disk.c (grub_disk_read): Check return value of
39721 grub_realloc().
39722
39723 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
39724
39725 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
39726 arrays.
39727 * disk/raid.c (grub_raid_open): Likewise.
39728
39729 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
39730
39731 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
39732 stack instead of on the heap.
39733
39734 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
39735 before doing a read on it.
39736
39737 * configure.ac: Only use -fno-stack-protector for the target
39738 environment.
39739
39740 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
39741
39742 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
39743 __attribute_ ((unused)) to mode_type argument.
39744
39745 * util/getroot.c (grub_guess_root_device): Fix #endif.
39746
39747 * kern/misc.c (memcmp): Fix prototype.
39748
39749 * include/grub/partition.h [GRUB_UTIL]
39750 (grub_gpt_partition_map_init): Add prototype.
39751 (grub_gpt_partition_map_fini): Likewise.
39752
39753 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
39754 at the right place.
39755
39756 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
39757 (grub_fat_read_data): Likewise.
39758 (grub_fat_find_dir): Likewise.
39759
39760 * font/manager.c (find_glyph): Make table a const.
39761 (grub_font_get_glyph): Remove bitmap from if statement.
39762
39763 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
39764
39765 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
39766 code, first search for device in /dev/mapper, then in /dev.
39767 (grub_util_get_grub_dev): New function.
39768 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
39769 prototype.
39770 * util/grub-probe.c (probe): Remove check for RAID, call
39771 grub_util_get_grub_dev() instead of
39772 grub_util_biosdisk_get_grub_dev().
39773 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
39774 grub_util_biosdisk_get_grub_dev().
39775 * util/i386/pc/grub-setup.c (main): Likewise.
39776
39777 2007-05-16 Robert Millan <rmh@aybabtu.com>
39778
39779 * DISTLIST: Update for the latest changes.
39780 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
39781 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
39782 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
39783 grub/util/biosdisk.h.
39784 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
39785 grub/util/biosdisk.h.
39786
39787 2007-05-16 Robert Millan <rmh@aybabtu.com>
39788
39789 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
39790
39791 2007-05-16 Robert Millan <rmh@aybabtu.com>
39792
39793 * util/i386/efi/grub-install.in: New.
39794 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
39795 newly added grub-install.
39796 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
39797 include.
39798 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
39799 grub/util/biosdisk.h.
39800 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
39801 grub/util/biosdisk.h.
39802
39803 2007-05-16 Robert Millan <rmh@aybabtu.com>
39804
39805 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
39806 * include/grub/util/biosdisk.h: ... here.
39807 * util/i386/pc/biosdisk.c: Moved to ...
39808 * util/biosdisk.c: ... here.
39809 * util/i386/pc/getroot.c: Moved to ...
39810 * util/getroot.c: ... here.
39811 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
39812 * util/grub-mkdevicemap.c: ... here.
39813 * util/i386/pc/grub-probe.c: Moved to ...
39814 * util/grub-probe.c: ... here.
39815
39816 2007-05-15 Robert Millan <rmh@aybabtu.com>
39817
39818 * util/update-grub.in: Remove duplicated line in grub.cfg header
39819 message.
39820
39821 2007-05-13 Robert Millan <rmh@aybabtu.com>
39822
39823 * util/update-grub.in: Fix a few assumptions about the devices holding
39824 /, /boot and /boot/grub being the same.
39825 * util/grub.d/00_header.in: Likewise.
39826 * util/grub.d/10_hurd.in: Likewise.
39827 * util/grub.d/10_linux.in: Likewise.
39828
39829 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
39830 patterns. Use that to define the `.old' suffix as older than `'.
39831
39832 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
39833
39834 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
39835 the grub.cfg header message.
39836
39837 2007-05-11 Robert Millan <rmh@aybabtu.com>
39838
39839 * util/update-grub.in: Create device.map if it doesn't already exist,
39840 before attempting to run grub-probe.
39841 Check for grub-probe and grub-mkdevicemap with the same code
39842 grub-install is using.
39843 Remove test mode.
39844
39845 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
39846
39847 * Makefile.in: Add the datarootdir autoconf variable.
39848
39849 2007-05-09 Robert Millan <rmh@aybabtu.com>
39850
39851 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
39852 fail gracefully if dev->disk->partition == NULL.
39853
39854 2007-05-07 Robert Millan <rmh@aybabtu.com>
39855
39856 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
39857 determine partition map module.
39858 * util/i386/pc/grub-install.in: Use this feature to decide which
39859 partition module to load, instead of hardcoding pc and gpt.
39860
39861 2007-05-07 Robert Millan <rmh@aybabtu.com>
39862
39863 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
39864 source directory differs from build directory.
39865
39866 2007-05-05 Robert Millan <rmh@aybabtu.com>
39867
39868 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
39869 initialisation.
39870
39871 2007-05-05 Robert Millan <rmh@aybabtu.com>
39872
39873 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
39874
39875 2007-05-05 Robert Millan <rmh@aybabtu.com>
39876
39877 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
39878 command-line arguments via ${GRUB_CMDLINE_LINUX}.
39879
39880 2007-05-05 Robert Millan <rmh@aybabtu.com>
39881
39882 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
39883 (grub_probe_SOURCES): Likewise.
39884 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
39885 GPT and initialize dos_part and bsd_part accordingly.
39886 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
39887 install_bsd_part.
39888 (main): Activate gpt module for use during partition identification,
39889 and deactivate it afterwards.
39890 * util/i386/pc/grub-install.in: Add gpt module to core.img.
39891 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
39892 partition identification, and deactivate it afterwards.
39893
39894 2007-05-05 Robert Millan <rmh@aybabtu.com>
39895
39896 * term/i386/pc/console.c (grub_console_fini): Call
39897 grub_term_set_current() before grub_term_unregister().
39898
39899 2007-05-04 Robert Millan <rmh@aybabtu.com>
39900
39901 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
39902 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
39903 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
39904 and update-grub_DATA.
39905 * conf/common.rmk: Build and install update-grub components.
39906 * conf/common.mk: Regenerate.
39907 * util/update-grub.in: New. Core of update-grub.
39908 * util/grub.d/00_header.in: New. Generates grub.cfg header.
39909 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
39910 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
39911 * util/grub.d/README: New. Document grub.d directory layout.
39912
39913 2007-05-01 Robert Millan <rmh@aybabtu.com>
39914
39915 * util/grub-emu.c: Move initialization functions
39916 grub_util_biosdisk_init() and grub_init_all() before
39917 grub_util_biosdisk_get_grub_dev(), which relies on them.
39918
39919 2007-04-19 Robert Millan <rmh@aybabtu.com>
39920
39921 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
39922 it is used later.
39923
39924 2007-04-18 Jerone Young <jerone@gmail.com>
39925
39926 * kernel/elf.c: Add missing parenthesis for conditional statement
39927 stanza.
39928
39929 2007-04-10 Jerone Young <jerone@gmail.com>
39930
39931 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
39932 continue on and look for device node with real device name.
39933
39934 2007-04-10 Jerone Young <jerone@gmail.com>
39935
39936 * configure.ac: Add argument for autoconf to use transformation
39937 ability.
39938 * Makefile.in: Add autoconf package transformation code.
39939 * util/i386/pc/grub-install.in: Likewise.
39940 * util/powerpc/ieee1275/grub-install.in: Likewise.
39941
39942 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
39943
39944 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
39945 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
39946 (EXT2_REVISION): Likewise.
39947 (EXT2_INODE_SIZE): Likewise.
39948 (struct grub_ext2_block_group): Added a missing member
39949 "used_dirs".
39950 (grub_ext2_read_inode): Divide by the inode size in a superblock
39951 instead of 128 to obtain INODES_PER_BLOCK.
39952 Use the macro EXT2_INODE_SIZE instead of directly using
39953 SBLOCK->INODE_SIZE.
39954
39955 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
39956
39957 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
39958 superblock instead of the structure size to compute an
39959 offset. This fixes the problem that GRUB could not read a
39960 filesystem when inode size is different from 128-byte.
39961
39962 2007-03-05 Marco Gerards <marco@gnu.org>
39963
39964 * normal/main.c (read_config_file): When "menu" is not set, create
39965 an initial context.
39966
39967 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
39968
39969 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
39970 (HEAP_LIMIT): New macro.
39971 (grub_claim_heap): Claim memory up to `heaplimit'.
39972
39973 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
39974
39975 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
39976 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
39977 (_start): Likewise.
39978 (grub_arch_modules_addr): Return address after `_end'.
39979 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
39980 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
39981 (add_segments): Calculate `_end' from phdr size and location.
39982 (ALIGN_UP): Moved to ...
39983 * include/grub/misc.h: here.
39984 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39985 New macro.
39986 (GRUB_IEEE1275_MODULE_BASE): Removed.
39987
39988 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
39989
39990 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
39991 loop boundary.
39992
39993 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
39994
39995 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
39996 All users updated.
39997 (grub_elf64_load_hook_t): Likewise.
39998 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
39999 debug output.
40000
40001 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40002
40003 * kern/mm.c: Update copyright.
40004 (grub_mm_debug): Correct syntax error.
40005 (grub_mm_dump_free): New function.
40006 (grub_debug_free): Call `grub_free'.
40007 * include/grub/mm.h: Update copyright.
40008 (grub_mm_dump_free): Add declaration.
40009
40010 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40011
40012 * include/grub/ieee1275/ieee1275.h: Update copyright.
40013 * kern/powerpc/ieee1275/init.c: Likewise.
40014 * kern/powerpc/ieee1275/openfw.c: Likewise.
40015
40016 * loader/powerpc/ieee1275/linux.c: Likewise.
40017 * include/grub/elfload.h: Likewise.
40018 * kern/elf.c: Likewise.
40019 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40020 callers.
40021 (grub_elf64_load): Likewise.
40022 (grub_elf32_load_segment): Move to a nested function.
40023 (grub_elf64_load_segment): Likewise.
40024
40025 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40026
40027 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40028 prototype.
40029 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40030 (grub_heap_len): Likewise.
40031 (HEAP_SIZE): New macro.
40032 (grub_claim_heap): New function.
40033 (grub_machine_init): Don't claim heap directly. Call
40034 `grub_claim_heap'.
40035 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40036 (grub_available_iterate): New function.
40037
40038 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40039
40040 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40041 * configure.ac: Use it for testing the HOST and TARGET compilers.
40042
40043 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40044
40045 * Makefile.in (enable_grub_emu): New variable.
40046 * configure.ac (--enable-grub-emu): New option.
40047 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40048 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40049 * conf/i386-pc.rmk: Likewise.
40050 * conf/powerpc-ieee1275.rmk: Likewise.
40051 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40052
40053 2006-12-12 Marco Gerards <marco@gnu.org>
40054
40055 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40056
40057 * kern/env.c (grub_env_unset): Don't free the member `value' when
40058 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40059 pointer.
40060
40061 * normal/main.c (current_menu): Removed.
40062 (free_menu): Unset the `menu' environment variable.
40063 (grub_normal_menu_addentry): Make use of the environment variable
40064 `menu', instead of using the global `current_menu'. Allocate
40065 memory for the sourcecode of this entry.
40066 (read_config_file): New argument `nested', changed all callers.
40067 Only in the case of a new context, initialize a new menu. Set the
40068 `menu' environment variable.
40069 (grub_normal_execute): Don't set and unset the environment
40070 variable `menu' here anymore. Only free the menu when leaving the
40071 context.
40072
40073 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40074 leak.
40075
40076 2006-12-11 Marco Gerards <marco@gnu.org>
40077
40078 * normal/menu_entry.c (run): Fix off by one bug so the last line
40079 is executed. Move the loader check to outside the loop.
40080
40081 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40082
40083 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40084
40085 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40086
40087 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40088 the number of sectors. Reported by Andrey Shuvikov
40089 <mr_hyro@yahoo.com>.
40090
40091 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40092
40093 * kern/disk.c (grub_disk_read): When there is a read error, always
40094 try to read only the necessary data.
40095
40096 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40097 disk/raid.c.
40098 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40099 prototype.
40100 [GRUB_UTIL] (grub_raid_fini): Likewise.
40101 [GRUB_UTIL] (grub_lvm_init): Likewise.
40102 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40103 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40104 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40105 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40106 and grub_raid_fini().
40107
40108 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40109
40110 * include/grub/types.h (__unused): Rename to UNUSED.
40111 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40112 (grub_elf64_size): Likewise.
40113
40114 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40115
40116 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40117 grub_error_push and grub_error_pop in the error-handling path.
40118 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40119 length.
40120
40121 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40122
40123 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40124 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40126 (kernel_elf_SOURCES): Likewise.
40127 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40128 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40129 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40130 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40131 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40132 (elf_mod_SOURCES): New variable.
40133 (elf_mod_CFLAGS): Likewise.
40134 (elf_mod_LDFLAGS): Likewise.
40135 * include/grub/types.h (__unused): New macro.
40136 * include/grub/elfload.h: New file.
40137 * kern/elf.c: Likewise.
40138 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40139 (ELF32_LOADMASK): New macro.
40140 (ELF64_LOADMASK): Likewise.
40141 (vmlinux): Removed.
40142 (grub_linux_load32): New function.
40143 (grub_linux_load64): Likewise.
40144 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40145 Use grub_elf_t instead of grub_file_t.
40146
40147 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40148
40149 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40150 `catch_result' to struct set_color_args.
40151
40152 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40153
40154 * normal/menu.c: Include grub/script.h.
40155 * normal/menu_entry.c: Likewise.
40156 * include/grub/normal.h: Do not include grub/script.h.
40157
40158 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40159
40160 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40161
40162 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40163
40164 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40165 disk.
40166 (grub_disk_close): Print debug messages when closing a disk.
40167 (grub_disk_read): Print debug messages when disk read fails.
40168 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40169 filesystem type.
40170 * kern/partition.c: Include misc.h.
40171 (grub_partition_iterate): Print debug messages when detecting
40172 partition type.
40173
40174 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40175
40176 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40177 is negative.
40178 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40179
40180 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40181
40182 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40183 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40184
40185 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40186
40187 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40188 instead of sizeof(lv). Patch by Michael Guntsche.
40189
40190 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40191
40192 * disk/lvm.c: Rename VGS to VG_LIST.
40193 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40194 (grub_lvm_open): Likewise.
40195 Thanks to Michael Guntsche for finding this bug.
40196
40197 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40198
40199 * configure.ac (AC_INIT): Bumped to 1.95.
40200
40201 2006-10-14 Robert Millan <rmh@aybabtu.com>
40202
40203 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40204 with "/dev/.static/dev/md".
40205
40206 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40207
40208 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40209 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40210 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40211 DRIVE_NAME are always freed.
40212
40213 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40214 DOS_PART, as a DOS partition is counted from one instead of zero
40215 now. Reported by Robert Millan.
40216
40217 2006-10-14 Robert Millan <rmh@aybabtu.com>
40218
40219 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40220 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40221 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40222 string returned by grub_guess_root_device.
40223 * util/i386/pc/grub-setup.c: Likewise.
40224 * util/i386/pc/grub-probefs.c: Likewise.
40225
40226 * util/i386/pc/grub-probefs.c: Rename to ...
40227 * util/i386/pc/grub-probe.c: ... this.
40228 * DISTLIST: Remove grub-probefs, add grub-probe.
40229 * conf/i386-efi.rmk: Likewise.
40230 * conf/i386-pc.rmk: Likewise.
40231 * util/i386/pc/grub-install.in: Likewise.
40232
40233 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40234 choose which information we want to print.
40235
40236 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40237
40238 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40239 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40240 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40241 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40242 video/readers/tga.c and video/i386/pc/vbeutil.c.
40243
40244 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40245
40246 Added support for RAID and LVM.
40247
40248 * disk/lvm.c: New file.
40249 * disk/raid.c: Likewise.
40250 * include/grub/lvm.h: Likewise.
40251 * include/grub/raid.h: Likewise.
40252 * include/grub/util/lvm.h: Likewise.
40253 * include/grub/util/raid.h: Likewise.
40254 * util/lvm.c: Likewise.
40255 * util/raid.c: Likewise.
40256
40257 * include/grub/disk.h (grub_disk_dev_id): Add
40258 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40259 (grub_disk_get_size): New prototype.
40260 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40261 returns a partition.
40262 (grub_disk_get_size): New function.
40263
40264 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40265 verbatim if grub_install_dos_part is -2.
40266
40267 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
40268 and LVM devices.
40269
40270 * util/i386/pc/grub-setup.c (setup): New argument
40271 MUST_EMBED. Force embedding of GRUB when the argument is
40272 true. Close FILE before returning.
40273 (main): Add support for RAID and LVM.
40274
40275 * conf/common.rmk: Add RAID and LVM modules.
40276 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
40277 util/lvm.c.
40278 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
40279
40280 * kern/misc.c (grub_strstr): New function.
40281 * include/grub/misc.h (grub_strstr): New prototype.
40282
40283 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
40284
40285 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
40286
40287 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
40288
40289 * kern/misc.c (grub_strtoull): Guess the base only if not
40290 specified.
40291
40292 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40293
40294 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
40295 PowerMac support.
40296
40297 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40298
40299 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
40300
40301 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
40302 Remove `flags' argument. All callers changed.
40303 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
40304 (IEEE1275_IHANDLE_INVALID): New variable.
40305 (IEEE1275_CELL_INVALID): New variable.
40306 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40307 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
40308 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
40309 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
40310 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
40311 codes from Open Firmware. All callers updated.
40312 (grub_ieee1275_next_property): Directly return Open Firmware return
40313 code.
40314 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40315 Standardize error checking from `grub_ieee1275_get_property'.
40316 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
40317 `devalias' to `aliases'. Correct comments. Consolidate error paths.
40318
40319 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40320
40321 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
40322 `instance_to_package_args' to `instance_to_path_args'.
40323
40324 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
40325 `grub_ieee1275_chosen'.
40326
40327 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
40328 `grub_ieee1275_interpret'.
40329
40330 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40331
40332 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
40333
40334 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40335
40336 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
40337 (__cmpdi): Likewise.
40338
40339 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
40340 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
40341 `grub_ssize_t'.
40342
40343 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
40344
40345 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
40346 to type `grub_ssize_t'.
40347 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
40348
40349 2006-09-22 Marco Gerards <marco@gnu.org>
40350
40351 * normal/script.c (grub_script_create_cmdmenu): Skip leading
40352 newlines.
40353
40354 2006-09-22 Marco Gerards <marco@gnu.org>
40355
40356 * commands/echo.c: New file.
40357
40358 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
40359
40360 * conf/common.rmk (echo_mod_SOURCES): New variable.
40361 (echo_mod_CFLAGS): Likewise.
40362 (echo_mod_LDFLAGS): Likewise.
40363
40364 2006-09-22 Marco Gerards <marco@gnu.org>
40365
40366 * normal/main.c (get_line): Malloc memory instead of using
40367 preallocated memory. Removed the arguments `cmdline' and
40368 `max_len'. Updated all callers.
40369
40370 2006-09-22 Marco Gerards <marco@gnu.org>
40371
40372 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
40373 (normal_mod_DEPENDENCIES): Likewise.
40374
40375 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
40376 (normal_mod_DEPENDENCIES): Likewise.
40377
40378 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
40379
40380 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
40381
40382 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
40383 programs.
40384 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
40385 (normal_mod_DEPENDENCIES): Likewise.
40386 * conf/i386-pc.mk: Regenerate.
40387 * conf/i386-efi.mk: Likewise
40388 * conf/common.mk: Likewise.
40389 * conf/powerpc-ieee1275.mk: Likewise.
40390 * conf/sparc64-ieee1275.mk: Likewise.
40391
40392 2006-09-22 Robert Millan <rmh@aybabtu.com>
40393
40394 Sync with i386 version.
40395 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
40396 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
40397
40398 2006-09-21 Robert Millan <rmh@aybabtu.com>
40399
40400 Import from GRUB Legacy (lib/device.c):
40401 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
40402 (init_device_map) [__linux__]: Add support for I2O devices.
40403
40404 2006-09-14 Marco Gerards <marco@gnu.org>
40405
40406 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
40407 `-melf_i386'.
40408
40409 2006-09-14 Robert Millan <rmh@aybabtu.com>
40410
40411 * util/i386/pc/grub-install.in: Skip menu.lst when removing
40412 /boot/grub/*.lst.
40413
40414 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
40415
40416 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
40417 before adding it to device.map.
40418
40419 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
40420
40421 * genmk.rb: Let GCC generate dependencies the first time it
40422 compiles a file; using the -MD option.
40423 * conf/common.mk: Regenerate.
40424 * conf/i386-pc.mk: Likewise.
40425 * conf/i386-efi.mk: Likewise.
40426 * conf/powerpc-ieee1275.mk: Likewise.
40427 * conf/sparc64-ieee1275.mk: Likewise.
40428
40429 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
40430
40431 Move the prototypes of grub_setjmp and grub_longjmp to
40432 cpu/setjmp.h, so that each architecture may specify different
40433 attributes.
40434
40435 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
40436 (grub_longjmp): Likewise.
40437 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
40438 (grub_longjmp): Likewise.
40439 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
40440 (grub_longjmp): Likewise.
40441
40442 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
40443 [!GRUB_UTIL] (grub_longjmp): Removed.
40444
40445 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
40446
40447 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
40448 "color!" method does not return any value.
40449
40450 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40451
40452 * include/grub/bitmap.h: New file.
40453
40454 * include/grub/i386/pc/vbeutil.h: Likewise.
40455
40456 * video/bitmap.c: Likewise.
40457
40458 * video/readers/tga.c: Likewise.
40459
40460 * video/i386/pc/vbeutil.c: Likewise.
40461
40462 * commands/videotest.c: Code cleanup and updated to reflect to new
40463 video API.
40464
40465 * term/gfxterm.c: Likewise.
40466
40467 * video/video.c: Likewise.
40468
40469 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
40470 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
40471 (bitmap_mod_SOURCES): New entry.
40472 (bitmap_mod_CFLAGS): Likewise.
40473 (bitmap_mod_LDFLAGS): Likewise.
40474 (tga_mod_SOURCES): Likewise.
40475 (tga_mod_CFLAGS): Likewise.
40476 (tga_mod_LDFLAGS): Likewise.
40477
40478 * include/grub/video.h (grub_video_blit_operators): New enum type.
40479 (grub_video_render_target): Changed as forward declaration and moved
40480 actual definition to be video driver specific.
40481 (grub_video_adapter.blit_bitmap): Added blitting operator.
40482 (grub_video_adapter.blit_render_target): Likewise.
40483 (grub_video_blit_bitmap): Likewise.
40484 (grub_video_blit_render_target): Likewise.
40485
40486 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
40487 driver specific render target definition.
40488 (grub_video_vbe_map_rgba): Added driver internal helper.
40489 (grub_video_vbe_unmap_color): Updated to use
40490 grub_video_i386_vbeblit_info.
40491 (grub_video_vbe_get_video_ptr): Likewise.
40492
40493 * include/grub/i386/pc/vbeblit.h
40494 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
40495 grub_video_i386_vbeblit_info.
40496 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40497 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40498 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40499 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40500 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40501 (grub_video_i386_vbeblit_index_index): Likewise.
40502 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
40503 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40504 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40505 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
40506 operator.
40507 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
40508 operator.
40509
40510 * video/i386/pc/vbeblit.c: Updated to reflect changes on
40511 include/grub/i386/pc/vbeblit.h.
40512
40513 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
40514 Updated to use grub_video_i386_vbeblit_info.
40515 (grub_video_i386_vbefill_R8G8B8): Likewise.
40516 (grub_video_i386_vbefill_index): Likewise.
40517 (grub_video_i386_vbefill): Added generic filler.
40518
40519 * video/i386/pc/vbefill.c: Updated to reflect changes on
40520 include/grub/i386/pc/vbefill.h.
40521
40522 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
40523 grub_video_i386_vbeblit_info.
40524 (grub_video_vbe_unmap_color): Likewise.
40525 (grub_video_vbe_blit_glyph): Likewise.
40526 (grub_video_vbe_scroll): Likewise.
40527 (grub_video_vbe_draw_pixel): Removed function.
40528 (grub_video_vbe_get_pixel): Likewise.
40529 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
40530 updated code to use it.
40531 (common_blitter): Added common blitter for render target and bitmap.
40532 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
40533 (grub_video_vbe_blit_render_target): Likewise.
40534
40535 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
40536
40537 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
40538 is in text mode if there is no console control protocol instance
40539 available.
40540
40541 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40542
40543 * include/grub/video.h: Code cleanup.
40544
40545 * include/grub/i386/pc/vbe.h: Likewise.
40546
40547 * video/i386/pc/vbe.c: Likewise.
40548
40549 * video/i386/pc/vbeblit.c: Likewise.
40550
40551 * video/i386/pc/vbefill.c: Likewise.
40552
40553 * video/video.c: Likewise. Also added more comments.
40554
40555 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40556
40557 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
40558 (struct grub_biosdisk_dap): Likewise.
40559
40560 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
40561 linkage settings for all functions.
40562
40563 2006-07-12 Marco Gerards <marco@gnu.org>
40564
40565 * configure.ac (--enable-mm-debug): Fix typo.
40566
40567 * genkernsyms.sh.in: Use proper quoting for `CC'.
40568
40569 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
40570
40571 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
40572 (normal_mod_ASFLAGS): Remove "-m32".
40573
40574 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
40575
40576 * util/misc.c: Include config.h.
40577 [!HAVE_MEMALIGN]: Do not include malloc.h.
40578 (grub_memalign): Use posix_memalign, if present. Then, use
40579 memalign, if present. Otherwise, emit an error.
40580
40581 * util/grub-emu.c: Do not include malloc.h.
40582
40583 * include/grub/util/misc.h: Include unistd.h. This is required for
40584 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
40585 D. Eades III <hde@foobar-qux.org>.
40586
40587 * configure.ac (AC_GNU_SOURCE): Added.
40588 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
40589 type.
40590
40591 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
40592
40593 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
40594 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
40595
40596 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
40597
40598 * include/grub/types.h (grub_host_addr_t): Rename to
40599 grub_target_addr_t.
40600 (grub_host_off_t): Rename to grub_target_off_t.
40601 (grub_host_size_t): Rename to grub_target_size_t.
40602 (grub_host_ssize_t): Rename to grub_target_ssize_t.
40603 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
40604
40605 * include/grub/kernel.h (struct grub_module_header): Change type
40606 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
40607 (grub_module_info): Likewise.
40608
40609 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40610
40611 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
40612 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
40613 Velazquez <jesus.velazquez@gmail.com>.
40614
40615 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40616
40617 Count partitions from 1 instead of 0 in the string representation
40618 of partitions. Still use 0-based internally.
40619
40620 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
40621 (sun_partition_map_iterate): Use grub_partition_t instead of
40622 struct grub_partition *. Cast DESC->START_CYLINDER to
40623 grub_uint64_t after converting the endian.
40624 (sun_partition_map_probe): Subtract 1 for PARTNUM.
40625 (sun_partition_map_get_name): Add 1 to P->INDEX.
40626
40627 * partmap/pc.c (grub_partition_parse): Subtract 1 for
40628 PCDATA->DOS_PART.
40629 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
40630
40631 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
40632 zero instead of one.
40633 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
40634 (gpt_partition_map_get_name): Add 1 into P->INDEX.
40635
40636 * partmap/apple.c (apple_partition_map_iterate): Change the type
40637 of POS to unsigned.
40638 (apple_partition_map_probe): Subtract 1 for PARTNUM.
40639 (apple_partition_map_get_name): Add 1 into P->INDEX.
40640
40641 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
40642 of POS to unsigned.
40643 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
40644 calculate the offset of a partition.
40645 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
40646 (amiga_partition_map_get_name): Add 1 into P->INDEX.
40647
40648 * partmap/acorn.c (acorn_partition_map_find): Change the type of
40649 SECTOR to grub_disk_addr_t.
40650 (acorn_partition_map_iterate): Likewise.
40651 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
40652 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
40653 top.
40654 (acorn_partition_map_get_name): Add 1 into P->INDEX.
40655
40656 * kern/i386/pc/init.c (make_install_device): Add 1 into
40657 GRUB_INSTALL_DOS_PART.
40658
40659 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
40660 conditional.
40661
40662 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40663
40664 Clean up the code to support 64-bit addressing in disks and
40665 files. This change is not enough for filesystems yet.
40666
40667 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
40668 type of "start" to grub_uint64_t.
40669 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
40670 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
40671 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
40672 convert addresses.
40673
40674 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
40675 to grub_disk_addr_t.
40676
40677 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
40678 string.
40679
40680 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40681
40682 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
40683 to char *.
40684
40685 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
40686
40687 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
40688
40689 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
40690
40691 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
40692 to grub_off_t, to detect an error from grub_file_seek.
40693 (grub_multiboot_load_elf32): Likewise.
40694
40695 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
40696 maximum unsigned long value when an overflow is detected.
40697 (grub_strtoull): New function.
40698 (grub_divmod64): Likewise.
40699 (grub_lltoa): use grub_divmod64.
40700
40701 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
40702 grub_disk_addr_t.
40703 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
40704 the pointer to next character. Use grub_strtoull instead of
40705 grub_strtoul.
40706 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
40707 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
40708 respectively.
40709
40710 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
40711 return value is signed.
40712 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
40713 test if OFFSET is less than zero, as OFFSET is unsigned now.
40714
40715 * kern/disk.c (struct grub_disk_cache): Change the type of
40716 "sector" to grub_disk_addr_t.
40717 (grub_disk_cache_get_index): Change the type of SECTOR to
40718 grub_disk_addr_t. Calculate the hash with SECTOR casted to
40719 unsigned after shifting.
40720 (grub_disk_cache_invalidate): Change the type of SECTOR to
40721 grub_disk_addr_t.
40722 (grub_disk_cache_unlock): Likewise.
40723 (grub_disk_cache_store): Likewise.
40724 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
40725 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
40726 grub_disk_addr_t and grub_uint64_t, respectively.
40727 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
40728 body, as the value of OFFSET is tweaked by
40729 grub_disk_check_range. Change the types of START_SECTOR, LEN and
40730 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
40731 respectively.
40732 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
40733 body, as the value of OFFSET is tweaked by
40734 grub_disk_check_range. Change the types of LEN and N to
40735 grub_size_t.
40736
40737 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
40738 and "saved_offset" to grub_off_t.
40739 (test_header): Cast BUF to char *.
40740 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
40741 to char *.
40742 (grub_gzio_read): Change the types of OFFSET and SIZE to
40743 grub_off_t and grub_size_t, respectively.
40744
40745 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
40746 Removed.
40747 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
40748 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
40749 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
40750 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
40751 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
40752
40753 * include/grub/types.h (grub_off_t): Unconditionally set to
40754 grub_uint64_t.
40755 (grub_disk_addr_t): Changed to grub_uint64_t.
40756
40757 * include/grub/partition.h (struct grub_partition): Change the
40758 types of "start", "len" and "offset" to grub_disk_addr_t,
40759 grub_uint64_t and grub_disk_addr_t, respectively.
40760 (grub_partition_get_start): Return grub_disk_addr_t.
40761 (grub_partition_get_len): Return grub_uint64_t.
40762
40763 * include/grub/misc.h (grub_strtoull): New prototype.
40764 (grub_divmod64): Likewise.
40765
40766 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
40767 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
40768 grub_off_t, respectively.
40769 All callers and references changed.
40770
40771 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
40772 grub_size_t in "read".
40773 All callers and references changed.
40774
40775 * include/grub/file.h (struct grub_file): Change the types of
40776 "offset" and "size" to grub_off_t and grub_off_t,
40777 respectively. Change the type of SECTOR to grub_disk_addr_t in
40778 "read_hook".
40779 (grub_file_read): Change the type of LEN to grub_size_t.
40780 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
40781 grub_off_t.
40782 (grub_file_size): Return grub_off_t.
40783 (grub_file_tell): Likewise.
40784 All callers and references changed.
40785
40786 * include/grub/disk.h (struct grub_disk_dev): Change the types of
40787 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
40788 "write".
40789 (struct grub_disk): Change the type of "total_sectors" to
40790 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
40791 "read_hook".
40792 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
40793 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
40794 (grub_disk_write): Likewise.
40795 All callers and references changed.
40796
40797 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
40798 char * for grub_strncmp to silence gcc.
40799 (grub_iso9660_mount): Likewise.
40800 (grub_iso9660_mount): Likewise.
40801 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
40802 return statement.
40803 (grub_iso9660_iterate_dir): Likewise.
40804 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
40805
40806 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
40807 LEN to grub_disk_addr_t and grub_size_t, respectively.
40808
40809 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40810
40811 * fs/jfs.c (grub_jfs_read_file): Likewise.
40812
40813 * fs/minix.c (grub_jfs_read_file): Likewise.
40814
40815 * fs/sfs.c (grub_jfs_read_file): Likewise.
40816
40817 * fs/ufs.c (grub_jfs_read_file): Likewise.
40818
40819 * fs/xfs.c (grub_jfs_read_file): Likewise.
40820
40821 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
40822 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
40823 respectively.
40824
40825 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
40826 BLKNR to -1 instead of returning GRUB_ERRNO.
40827 (grub_ext2_read_file): Change the types of SECTOR and
40828 LEN to grub_disk_addr_t and grub_size_t, respectively.
40829
40830 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
40831 LEN to grub_disk_addr_t and grub_size_t, respectively.
40832
40833 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
40834 grub_file_read.
40835
40836 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
40837 string. Do not cast SECTOR explicitly.
40838
40839 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
40840 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
40841 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
40842 grub_disk_addr_t and grub_size_t, respectively. If the sector is
40843 over 2TB and LBA mode is not supported, raise an error.
40844 (get_safe_sectors): New function.
40845 (grub_biosdisk_read): Use get_safe_sectors.
40846 (grub_biosdisk_write): Likewise.
40847
40848 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
40849 (grub_efidisk_write): Likewise.
40850
40851 * disk/loopback.c (delete_loopback): Cosmetic changes.
40852 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
40853 correctly.
40854 (grub_loopback_open): Likewise.
40855 (grub_loopback_read): Likewise. Also, change the type of POS to
40856 grub_off_t, and fix the usage of grub_memset.
40857
40858 * commands/i386/pc/play.c: Include grub/machine/time.h.
40859
40860 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
40861 print FILE->SIZE.
40862
40863 * commands/configfile.c: Include grub/env.h.
40864
40865 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
40866 GRUB_ERRNO directly instead. Change the type of POS to
40867 grub_off_t. Follow the coding standard.
40868
40869 * commands/blocklist.c: Include grub/partition.h.
40870 (grub_cmd_blocklist): Return an error if the underlying device is
40871 not a disk. Take the starting sector of a partition into account,
40872 if a partition is used.
40873
40874 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
40875 a length field.
40876 (lba_mode): Support 64-bit addresses.
40877 (chs_mode): Likewise.
40878 (copy_buffer): Adapted to the new offsets of a length field and a
40879 segment field.
40880 (blocklist_default_start): Allocate 64-bit space.
40881
40882 * boot/i386/pc/boot.S (force_lba): Removed.
40883 (boot_drive): Moved to under KERNEL_SECTOR.
40884 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
40885 space.
40886 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
40887 is useless.
40888 (lba_mode): Refactored to support a 64-bit address. More size
40889 optimization.
40890 (setup_sectors): Likewise.
40891
40892 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40893
40894 * DISTLIST: Added include/grub/i386/linux.h. Removed
40895 include/grub/i386/pc/linux.h
40896
40897 * configure.ac (AC_INIT): Bumped to 1.94.
40898
40899 * config.guess: Updated from gnulib.
40900 * config.sub: Likewise.
40901 * install-sh: Likewise.
40902 * mkinstalldirs: Likewise.
40903
40904 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
40905
40906 * conf/common.rmk (grub_modules_init.lst): Depended on
40907 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
40908 MODSRCFILES.
40909
40910 * genmk.rb (PModule::rule): Reverted the previous change.
40911
40912 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
40913
40914 * conf/common.rmk (grub_modules_init.lst): Depends on
40915 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
40916 that the target does not exist before producing.
40917 (grub_modules_init.h): Remove the target before generating.
40918 (grub_emu_init.c): Likewise.
40919
40920 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
40921
40922 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
40923
40924 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
40925 for the target-specific tests. Make sure that we also have the
40926 up-to-date target variables for those tests.
40927
40928 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
40929
40930 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
40931 (PModule::rule): Likewise.
40932
40933 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
40934
40935 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
40936 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
40937 target-specific flags should be prefixed.
40938 (PModule::rule): Likewise.
40939
40940 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
40941
40942 * configure.ac (CMP): Check if cmp is available explicitly.
40943
40944 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
40945
40946 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
40947 (target_cpu): New variable.
40948 (pkglibdir): Use target_cpu instead of host_cpu.
40949
40950 * util/i386/pc/grub-install.in (host_cpu): Removed.
40951 (target_cpu): New variable.
40952 (pkglibdir): Use target_cpu instead of host_cpu.
40953
40954 * util/genmoddep.c: Removed.
40955
40956 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
40957 instead of GRUB_HOST_SIZEOF_VOID_P.
40958 * kern/dl.c: Likewise.
40959
40960 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
40961 ...
40962 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40963 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40964 (GRUB_TARGET_SIZEOF_LONG): ... this.
40965 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40966 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40967 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
40968 to ...
40969 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40970 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40971 (GRUB_TARGET_SIZEOF_LONG): ... this.
40972 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40973 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40974 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
40975 to ...
40976 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40977 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40978 (GRUB_TARGET_SIZEOF_LONG): ... this.
40979 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40980 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40981
40982 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
40983 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
40984 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
40985 instead of GRUB_HOST_SIZEOF_LONG.
40986 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
40987 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
40988 GRUB_CPU_WORDS_BIGENDIAN.
40989 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
40990 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
40991 grub_host_ssize_t.
40992
40993 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
40994 (genmoddep_SOURCES): Likewise.
40995 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
40996 (genmoddep_SOURCES): Likewise.
40997 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
40998 (genmoddep_SOURCES): Likewise.
40999 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41000 Likewise.
41001 (genmoddep_SOURCES): Likewise.
41002
41003 * genmoddep.awk: New file.
41004
41005 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41006 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41007 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41008 (PModule::rule): Likewise.
41009 (Program::rule): Likewise.
41010 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41011 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41012 respectively.
41013
41014 * configure.ac: Rewritten intensively to use host and target
41015 instead of build and host, respectively.
41016
41017 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41018 (host_cpu): Removed.
41019 (target_cpu): New variable.
41020 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41021 (BUILD_CC): Removed.
41022 (BUILD_CFLAGS): Likewise.
41023 (BUILD_CPPFLAGS): Likewise.
41024 (TARGET_CC): New variable.
41025 (TARGET_CFLAGS): Likewise.
41026 (TARGET_CPPFLAGS): Likewise.
41027 (TARGET_LDFLAGS): Likewise.
41028 (AWK): Likewise.
41029 (include): Use target_cpu instead of host_cpu.
41030 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41031
41032 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41033
41034 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41035
41036 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41037 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41038 field 'false' to 'exec_on_false'.
41039 (grub_script_create_cmdif): Renamed argument names to reflect above
41040 changes.
41041
41042 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41043
41044 * normal/script.c (grub_script_create_cmdif): Likewise.
41045
41046 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41047
41048 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41049 top.
41050 (grub_hfsplus_btree_recptr): Likewise.
41051 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41052 FILEBLOCK both to pass a block number and store next block
41053 number.
41054 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41055 overflow file correctly. Specify errors appropriately, because
41056 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41057 grub_hfsplus_btree_recptr to get the pointer to a found key.
41058 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41059 is found.
41060
41061 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41062 linux.mod.
41063 (_linux_mod_SOURCES): New variable.
41064 (_linux_mod_CFLAGS): Likewise.
41065 (_linux_mod_LDFLAGS): Likewise.
41066 (linux_mod_SOURCES): Likewise.
41067 (linux_mod_CFLAGS): Likewise.
41068 (linux_mod_LDFLAGS): Likewise.
41069
41070 * DISTLIST: Added loader/i386/efi/linux.c,
41071 loader/i386/efi/linux_normal.c and
41072 include/grub/i386/efi/loader.h.
41073
41074 * loader/i386/efi/linux.c: New file.
41075 * loader/i386/efi/linux_normal.c: Likewise.
41076 * include/grub/i386/efi/loader.h: Likewise.
41077
41078 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41079
41080 * commands/blocklist.c: New file.
41081
41082 * DISTLIST: Added commands/blocklist.c.
41083
41084 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41085 color for the background, and a darker color for the foreground.
41086 (grub_console_checkkey): Return READ_KEY.
41087 (grub_console_cls): Set the background to
41088 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41089
41090 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41091
41092 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41093 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41094
41095 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41096 prototype.
41097
41098 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41099 BG. The spec is wrong again.
41100
41101 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41102 prototype.
41103 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41104
41105 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41106 commands/blocklist.c.
41107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41108
41109 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41110 (blocklist_mod_SOURCES): New variable.
41111 (blocklist_mod_CFLAGS): Likewise.
41112 (blocklist_mod_LDFLAGS): Likewise.
41113
41114 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41115
41116 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41117 duplication.
41118 (lba_mode): Use %eax more intensively to reduce the code size.
41119
41120 2006-05-20 Marco Gerards <marco@gnu.org>
41121
41122 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41123
41124 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41125 for `menuentry'.
41126 (script): Accept leading newlines.
41127 (newlines): New rule to describe 0 or more newlines.
41128 (commands): Accept `command' with trailing newline. Fixed the
41129 order in which arguments were passed to `grub_script_add_cmd'.
41130 Accept commands separated by newlines.
41131 (function): Changed to accept newlines.
41132 (menuentry) Rewritten.
41133
41134 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41135 front of the list, instead of to the end.
41136
41137 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41138
41139 * util/i386/pc/grub-install.in (bindir): New variable.
41140 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41141 Shaver <lbgwjl@gmail.com>.
41142
41143 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41144
41145 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41146 grub/machine/linux.h
41147 * loader/i386/pc/linux.c: Likewise.
41148
41149 * include/grub/i386/pc/linux.h: Moved to ...
41150 * include/grub/i386/linux.h: ... here.
41151
41152 * include/grub/i386/linux.h (struct linux_kernel_params): New
41153 struct.
41154
41155 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41156
41157 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41158 checking.
41159 (grub_video_vbe_blit_glyph): Likewise.
41160 (grub_video_vbe_blit_bitmap): Likewise.
41161 (grub_video_vbe_blit_render_target): Likewise.
41162
41163 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41164
41165 * configure.ac (--with-platform): Properly quote the square
41166 brackets.
41167
41168 2006-05-08 Marco Gerards <marco@gnu.org>
41169
41170 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41171 this...
41172 (kernel_elf_HEADERS): ...to this. Updated all users.
41173 (grubof_symlist.c): Renamed from this...
41174 (kernel_elf_symlist.c): ...to this. Updated all users.
41175 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41176 (grubof_SOURCES): Renamed from this...
41177 (kernel_elf_SOURCES): ...to this.
41178 (grubof_HEADERS): Renamed from this...
41179 (kernel_elf_HEADERS): ...to this.
41180 (grubof_CFLAGS): Renamed from this...
41181 (kernel_elf_CFLAGS): ...to this.
41182 (grubof_ASFLAGS): Renamed from this...
41183 (kernel_elf_ASFLAGS): ...to this.
41184 (grubof_LDFLAGS): Renamed from this...
41185 (kernel_elf_LDFLAGS): ...to this.
41186
41187 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41188 this...
41189 (kernel_elf_HEADERS): ...to this. Updated all users.
41190 (grubof_symlist.c): Renamed from this...
41191 (kernel_elf_symlist.c): ...to this. Updated all users.
41192 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41193 (grubof_SOURCES): Renamed from this...
41194 (kernel_elf_SOURCES): ...to this.
41195 (grubof_HEADERS): Renamed from this...
41196 (kernel_elf_HEADERS): ...to this.
41197 (grubof_CFLAGS): Renamed from this...
41198 (kernel_elf_CFLAGS): ...to this.
41199 (grubof_ASFLAGS): Renamed from this...
41200 (kernel_elf_ASFLAGS): ...to this.
41201 (grubof_LDFLAGS): Renamed from this...
41202 (kernel_elf_LDFLAGS): ...to this.
41203
41204 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41205 `kernel.elf' instead of `grubof'.
41206
41207 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41208
41209 Add --with-platform to configure. Use pkglibdir instead of
41210 pkgdatadir. This is reported by Roger Leigh.
41211
41212 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41213 (host_vendor): Likewise.
41214 (host_os): Likewise.
41215 (pkgdatadir): Likewise.
41216 (platform): New variable.
41217 (pkglibdir): Likewise.
41218 Use PKGLIBDIR instead of PKGDATADIR.
41219
41220 * util/i386/pc/grub-install.in (datadir): Removed.
41221 (host_vendor): Likewise.
41222 (host_os): Likewise.
41223 (pkgdatadir): Likewise.
41224 (platform): New variable.
41225 (pkglibdir): Likewise.
41226 Use PKGLIBDIR instead of PKGDATADIR.
41227
41228 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41229 instead of GRUB_DATADIR.
41230 (main): Likewise.
41231 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41232 (main): Likewise.
41233 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41234 (main): Likewise.
41235
41236 * configure.ac (--with-platform): New option.
41237 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41238
41239 * Makefile.in: Include a makefile based on PLATFORM instead of
41240 HOST_VENDOR.
41241 (pkgdatadir): Not appended by the machine type.
41242 (pkglibdir): Appended by the machine type.
41243 (host_vendor): Removed.
41244 (platform): New variable.
41245 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41246 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41247 (uninstall): Likewise.
41248
41249 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41250
41251 Use the environment context in the menu. Remove the commands
41252 "default" and "timeout", and use variables instead.
41253
41254 * normal/menu.c: Include grub/env.h.
41255 (print_entry): Cast TITLE to silence gcc.
41256 (get_timeout): New function.
41257 (set_timeout): Likewise.
41258 (get_entry_number): Likewise.
41259 (run_menu): Use a default entry, a fallback entry and a timeout
41260 in the environment variables "default", "fallback" and
41261 "timeout". Also, tweak the default entry if it is not within the
41262 current menu entries.
41263 (grub_menu_run): Use a fallback entry in the environment variable
41264 "fallback".
41265
41266 * normal/main.c (read_config_file): Do not initialize
41267 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
41268 NEWMENU->TIMEOUT.
41269 (grub_normal_execute): Use a data slot to store the menu.
41270
41271 * include/grub/normal.h (struct grub_menu): Removed default_entry,
41272 fallback_entry and timeout.
41273 (struct grub_menu_list): Removed.
41274 (grub_menu_list_t): Likewise.
41275 (struct grub_context): Likewise.
41276 (grub_context_t): Likewise.
41277 (grub_context_get): Likewise.
41278 (grub_context_get_current_menu): Likewise.
41279 (grub_context_push_menu): Likewise.
41280 (grub_context_pop_menu): Likewise.
41281 (grub_default_init): Likewise.
41282 (grub_default_fini): Likewise.
41283 (grub_timeout_init): Likewise.
41284 (grub_timeout_fini): Likewise.
41285
41286 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
41287 and timeout.mod.
41288 (normal_mod_SOURCES): Removed normal/context.c.
41289
41290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
41291 commands/default.c, commands/timeout.c and normal/context.c.
41292 (normal_mod_SOURCES): Removed normal/context.c.
41293
41294 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
41295 commands/timeout.c and normal/context.c.
41296 (normal_mod_SOURCES): Removed normal/context.c.
41297
41298 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
41299 commands/default.c, commands/timeout.c and normal/context.c.
41300 (normal_mod_SOURCES): Removed normal/context.c.
41301
41302 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
41303 timeout.mod.
41304 (default_mod_SOURCES): Removed.
41305 (default_mod_CFLAGS): Likewise.
41306 (default_mod_LDFLAGS): Likewise.
41307 (timeout_mod_SOURCES): Removed.
41308 (timeout_mod_CFLAGS): Likewise.
41309 (timeout_mod_LDFLAGS): Likewise.
41310
41311 * DISTLIST: Removed commands/default.c, commands/timeout.c and
41312 normal/context.c.
41313
41314 * commands/default.c: Removed.
41315 * commands/timeout.c: Likewise.
41316 * normal/context.c: Likewise.
41317
41318 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
41319
41320 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
41321
41322 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
41323
41324 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
41325 "next" to "prev" for readability.
41326 (struct grub_env_sorted_var): New struct.
41327 (grub_env_context): Renamed to ...
41328 (initial_context): ... this.
41329 (grub_env_var_context): Renamed to ...
41330 (current_context): ... this.
41331 (grub_env_find): Look only at CURRENT_CONTEXT.
41332 (grub_env_context_open): Rewritten to copy exported variables from
41333 previous context.
41334 (grub_env_context_close): Rewritten according to the new
41335 scheme. Also, add an assertion to prevent the initial context from
41336 removed.
41337 (grub_env_insert): Removed the code for the sorted list.
41338 (grub_env_remove): Likewise.
41339 (grub_env_export): Simply mark the variable with
41340 GRUB_ENV_VAR_GLOBAL.
41341 (grub_env_set): A cosmetic change for naming consistency.
41342 (grub_env_get): Likewise.
41343 (grub_env_unset): Likewise.
41344 (grub_env_iterate): Rewritten to sort variables within this
41345 function.
41346 (grub_register_variable_hook): Fixed for naming consistency. Call
41347 grub_env_find again, only if NAME is not found at the first time.
41348 (mangle_data_slot_name): New function.
41349 (grub_env_set_data_slot): Likewise.
41350 (grub_env_get_data_slot): Likewise.
41351 (grub_env_unset_data_slot): Likewise.
41352
41353 * include/grub/env.h (grub_env_var_type): New enum.
41354 (GRUB_ENV_VAR_LOCAL): New constant.
41355 (GRUB_ENV_VAR_GLOBAL): Likewise.
41356 (GRUB_ENV_VAR_DATA): Likewise.
41357 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
41358 "type".
41359 (grub_env_set): Replace VAR with NAME for consistency.
41360 (grub_register_variable_hook): Likewise.
41361 (grub_env_export): Specify the name of the argument.
41362 (grub_env_set_data_slot): New prototype.
41363 (grub_env_get_data_slot): Likewise.
41364 (grub_env_unset_data_slot): Likewise.
41365
41366 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41367
41368 Extend the loader so that GRUB can accept a loader which comes
41369 back to GRUB when a loaded image exits. Also, this change adds
41370 support for a chainloader on EFI.
41371
41372 * term/efi/console.c: Include grub/misc.h.
41373 (grub_console_checkkey): Display a scan code on the top for
41374 debugging. This will be removed once the EFI port gets stable.
41375 Correct the scan code mapping.
41376
41377 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
41378 allocate memory from larger regions, in order to reduce the number
41379 of allocated regions. Otherwise, the MacOSX loader panics.
41380 (filter_memory_map): Avoid less than 1MB for compatibility with
41381 other loaders.
41382 (add_memory_regions): Allocate from the tail of a region, if
41383 possible, to avoid allocating a region near to 1MB, for the MacOSX
41384 loader.
41385
41386 * kern/efi/init.c (grub_efi_set_prefix): Specify
41387 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
41388
41389 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
41390 argument IMAGE_HANDLE and specify it to get a loaded image.
41391 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
41392 grub_efi_get_loaded_image.
41393 (grub_efi_get_filename): Divide the length by the size of
41394 grub_efi_char16_t.
41395 (grub_efi_get_device_path): New function.
41396 (grub_efi_print_device_path): Print End Device Path nodes. Divide
41397 the length by the size of grub_efi_char16_t for a file path device
41398 path node.
41399
41400 * kern/loader.c (grub_loader_noreturn): New variable.
41401 (grub_loader_set): Accept a new argument NORETURN. Set
41402 GRUB_LOADER_NORETURN to NORETURN.
41403 All callers changed.
41404 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
41405 grub_machine_fini.
41406
41407 * include/grub/efi/efi.h (grub_efi_get_device_path): New
41408 prototype.
41409 (grub_efi_get_loaded_image): Take an argument to specify an image
41410 handle.
41411
41412 * include/grub/loader.h (grub_loader_set): Added one more argument
41413 NORETURN.
41414
41415 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
41416 instead of grub_efi_open_protocol.
41417 (grub_efidisk_get_device_name): Likewise.
41418 (grub_efidisk_close): Print a newline.
41419 (grub_efidisk_get_device_handle): Fixed to use
41420 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
41421 GRUB_EFI_DEVICE_PATH_TYPE.
41422
41423 * disk/efi/efidisk.c (device_path_guid): Moved to ...
41424 * kern/efi/efi.c (device_path_guid): ... here.
41425
41426 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
41427 chain.mod.
41428 (kernel_mod_HEADERS): Added efi/disk.h.
41429 (_chain_mod_SOURCES): New variable.
41430 (_chain_mod_CFLAGS): Likewise.
41431 (_chain_mod_LDFLAGS): Likewise.
41432 (chain_mod_SOURCES): Likewise.
41433 (chain_mod_CFLAGS): Likewise.
41434 (chain_mod_LDFLAGS): Likewise.
41435
41436 * DISTLIST: Added include/grub/efi/chainloader.h,
41437 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
41438
41439 * include/grub/efi/chainloader.h: New file.
41440 * loader/efi/chainloader.c: Likewise.
41441 * loader/efi/chainloader_normal.c: Likewise.
41442
41443 2006-04-30 Marco Gerards <marco@gnu.org>
41444
41445 * commands/configfile.c (grub_cmd_source): New function.
41446 (GRUB_MOD_INIT): Register the commands `source' and `.'.
41447 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
41448
41449 2006-04-30 Marco Gerards <marco@gnu.org>
41450
41451 * normal/execute.c (grub_script_execute_cmd): Change the return
41452 type to `grub_err_t'. Correctly return the error.
41453 (grub_script_execute_cmdline): In case a command line is not a
41454 command or a function, try to interpret it as an assignment.
41455
41456 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41457
41458 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
41459 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
41460 skip a node whose name is obviously invalid as UTF-16,
41461 i.e. contains a NUL character. Stop the iteration when the last
41462 directory entry is found. Instead of using the return value of
41463 grub_hfsplus_btree_iterate_node, store the value in RET and use
41464 it, because the iterator can be stopped by the last directory
41465 entry.
41466
41467 2006-04-30 Marco Gerards <marco@gnu.org>
41468
41469 * include/grub/env.h (grub_env_export): New prototype. Reported
41470 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
41471
41472 2006-04-30 Marco Gerards <marco@gnu.org>
41473
41474 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
41475 size of the extents in a catalog file record.
41476
41477 2006-04-29 Marco Gerards <marco@gnu.org>
41478
41479 * commands/configfile.c (grub_cmd_configfile): Execute the
41480 configfile within its own context.
41481
41482 * include/grub/env.h (grub_env_context_open): New prototype.
41483 (grub_env_context_close): Likewise.
41484
41485 * kern/env.c (grub_env): Removed.
41486 (grub_env_sorted): Likewise.
41487 (grub_env_context): New variable.
41488 (grub_env_var_context): Likewise.
41489 (grub_env_find): Search both the active context and the global
41490 context.
41491 (grub_env_context_open): New function.
41492 (grub_env_context_close): Likewise.
41493 (grub_env_insert): Likewise.
41494 (grub_env_remove): Likewise.
41495 (grub_env_export): Likewise.
41496 (grub_env_set): Changed to use helper functions to avoid code
41497 duplication.
41498 (grub_env_iterate): Rewritten so both the current context and the
41499 global context are being used.
41500
41501 * normal/command.c (export_command): New function.
41502 (grub_command_init): Register the `export' function.
41503
41504 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
41505
41506 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
41507 explicitly to suppress gcc's warnings.
41508 * fs/fat.c (grub_fat_find_dir): Likewise.
41509 (grub_fat_label): Likewise.
41510 * fs/xfs.c (grub_xfs_read_inode): Likewise.
41511 (grub_xfs_mount): Likewise.
41512 (grub_xfs_label): Likewise.
41513 * fs/affs.c (grub_affs_mount): Likewise.
41514 (grub_affs_label): Likewise.
41515 (grub_affs_iterate_dir): Likewise.
41516 * fs/sfs.c (grub_sfs_mount): Likewise.
41517 (grub_sfs_iterate_dir): Likewise.
41518 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
41519 * fs/hfs.c (grub_hfs_mount): Likewise.
41520 (grub_hfs_cmp_catkeys): Likewise.
41521 (grub_hfs_find_dir): Likewise.
41522 (grub_hfs_dir): Likewise.
41523 (grub_hfs_label): Likewise.
41524 * fs/jfs.c (grub_jfs_mount): Likewise.
41525 (grub_jfs_opendir): Likewise.
41526 (grub_jfs_getent): Likewise.
41527 (grub_jfs_lookup_symlink): Likewise.
41528 (grub_jfs_label): Likewise.
41529 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
41530 (grub_hfsplus_iterate_dir): Likewise.
41531 (grub_hfsplus_btree_iterate_node): Made static.
41532
41533 * util/grub-emu.c (prefix): New variable.
41534 (grub_machine_set_prefix): New function.
41535 (main): Do not set the environment variable "prefix" here. Only
41536 set PREFIX, which is used later by grub_machine_set_prefix.
41537
41538 * include/grub/video.h: Do not include grub/symbol.h.
41539 (grub_video_register): Not exported. This symbol is not defined in
41540 the kernel.
41541 (grub_video_unregister): Likewise.
41542 (grub_video_iterate): Likewise.
41543 (grub_video_setup): Likewise.
41544 (grub_video_restore): Likewise.
41545 (grub_video_get_info): Likewise.
41546 (grub_video_get_blit_format): Likewise.
41547 (grub_video_set_palette): Likewise.
41548 (grub_video_get_palette): Likewise.
41549 (grub_video_set_viewport): Likewise.
41550 (grub_video_get_viewport): Likewise.
41551 (grub_video_map_color): Likewise.
41552 (grub_video_map_rgb): Likewise.
41553 (grub_video_map_rgba): Likewise.
41554 (grub_video_fill_rect): Likewise.
41555 (grub_video_blit_glyph): Likewise.
41556 (grub_video_blit_bitmap): Likewise.
41557 (grub_video_blit_render_target): Likewise.
41558 (grub_video_scroll): Likewise.
41559 (grub_video_swap_buffers): Likewise.
41560 (grub_video_create_render_target): Likewise.
41561 (grub_video_delete_render_target): Likewise.
41562 (grub_video_set_active_render_target): Likewise.
41563
41564 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
41565 Undefined.
41566 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
41567
41568 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
41569 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41570 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41571 instead of $(srcdir)/genkernsyms.sh.
41572
41573 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
41574 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41575 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41576 instead of $(srcdir)/genkernsyms.sh.
41577
41578 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
41579 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41580 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41581 instead of $(srcdir)/genkernsyms.sh.
41582
41583 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
41584 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41585 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41586 instead of $(srcdir)/genkernsyms.sh.
41587
41588 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
41589 genkernsyms.sh.
41590
41591 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
41592 genkernsyms.sh.
41593 (gensymlist.sh): New target.
41594 (genkernsyms.sh): Likewise.
41595
41596 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
41597 genkernsyms.sh.in and gensymlist.sh.in.
41598
41599 * genkernsyms.sh: Removed.
41600 * gensymlist.sh: Likewise.
41601
41602 * genkernsyms.sh.in: New file.
41603 * gensymlist.sh.in: Likewise.
41604
41605 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41606
41607 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
41608 clobber "prefix", since we may have already set it manually.
41609
41610 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41611
41612 * kern/misc.c (abort): New alias for grub_abort.
41613
41614 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
41615
41616 A new machine-specific function "grub_machine_set_prefix" is
41617 defined. This is called after loading modules, so that a prefix
41618 initialization can use modules. Also, this change adds an
41619 intensive debugging feature for the memory manager via the
41620 configure option "--enable-mm-debug".
41621
41622 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
41623 PART.LEN.
41624
41625 * kern/sparc64/ieee1275/init.c (abort): Removed.
41626 (grub_stop): Likewise.
41627 (grub_exit): New function.
41628 (grub_set_prefix): Renamed to ...
41629 (grub_machine_set_prefix): ... this.
41630 (grub_machine_init): Do not call grub_set_prefix.
41631
41632 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
41633 (grub_machine_set_prefix): ... this.
41634 (grub_machine_init): Do not call grub_set_prefix.
41635
41636 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
41637 (grub_machine_init): Do not set the prefix here.
41638
41639 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
41640
41641 * kern/efi/init.c: Include grub/mm.h.
41642 (grub_efi_set_prefix): New function.
41643
41644 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
41645 (grub_efi_get_filename): New function.
41646 (grub_print_device_path): Renamed to ...
41647 (grub_efi_print_device_path): ... this.
41648
41649 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
41650 [MM_DEBUG] (grub_realloc): Likewise.
41651 [MM_DEBUG] (grub_free): Likewise.
41652 [MM_DEBUG] (grub_memalign): Likewise.
41653 [MM_DEBUG] (grub_mm_debug): New variable.
41654 [MM_DEBUG] (grub_debug_malloc): New function.
41655 [MM_DEBUG] (grub_debug_free): New function.
41656 [MM_DEBUG] (grub_debug_realloc): New function.
41657 [MM_DEBUG] (grub_debug_memalign): New function.
41658
41659 * kern/misc.c (grub_abort): Print a newline to distinguish
41660 the message.
41661
41662 * kern/main.c (grub_main): Call grub_machine_set_prefix and
41663 grub_set_root_dev after loading modules. This is necessary when
41664 setting a prefix depends on modules.
41665
41666 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
41667 (grub_efi_print_device_path): ... this.
41668 (grub_efi_get_filename): New prototype.
41669 (grub_efi_set_prefix): Likewise.
41670
41671 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
41672 and grub/disk.h.
41673 (grub_efidisk_get_device_handle): New prototype.
41674 (grub_efidisk_get_device_name): Likewise.
41675
41676 * include/grub/mm.h: Include config.h.
41677 (MM_DEBUG): Removed.
41678 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
41679 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
41680 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
41681 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
41682 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
41683 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
41684 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
41685 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
41686 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
41687
41688 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
41689
41690 * disk/efi/efidisk.c: Include grub/partition.h.
41691 (iterate_child_devices): New function.
41692 (add_device): First, compare only last device path nodes, so that
41693 devices are sorted by the types.
41694 (grub_efidisk_get_device_handle): New function.
41695 (grub_efidisk_get_device_name): Likewise.
41696
41697 * configure.ac (--enable-mm-debug): New option to enable the
41698 memory manager debugging feature. This makes the binary much
41699 bigger, so is disabled by default.
41700
41701 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
41702
41703 Use grub_abort instead of grub_stop, and grub_exit must be
41704 define in each architecture now. Also, this change adds support
41705 for EFI disks.
41706
41707 * util/i386/pc/grub-probefs.c: Include grub/term.h.
41708 (grub_getkey): New function.
41709 (grub_term_get_current): Likewise.
41710
41711 * util/i386/pc/grub-setup.c: Include grub/term.h.
41712 (grub_getkey): New function.
41713 (grub_term_get_current): Likewise.
41714
41715 * util/misc.c (grub_stop): Renamed to ...
41716 (grub_exit): ... this.
41717
41718 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
41719 (grub_exit): ... this.
41720 (grub_machine_init): Use grub_abort instead of abort.
41721 (grub_stop): Removed.
41722
41723 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
41724 abort.
41725
41726 * kern/i386/pc/startup.S (grub_exit): New function.
41727 (cold_reboot): New label.
41728
41729 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
41730 (grub_efi_init): Call grub_efidisk_init.
41731 (grub_efi_fini): Call grub_efidisk_fini.
41732
41733 * kern/efi/efi.c: Include grub/mm.h.
41734 (grub_efi_console_control_guid): Renamed to ...
41735 (console_control_guid): ... this.
41736 (grub_efi_loaded_image_guid): Renamed to ...
41737 (loaded_image_guid): ... this.
41738 (grub_efi_locate_handle): New function.
41739 (grub_efi_open_protocol): Likewise.
41740 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
41741 GRUB_EFI_CONSOLE_CONTROL_GUID.
41742 (grub_efi_exit): Removed.
41743 (grub_stop): Likewise.
41744 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
41745 (grub_exit): New function.
41746 (grub_print_device_path): Likewise.
41747
41748 * kern/rescue.c (grub_rescue_cmd_exit): New function.
41749 (grub_enter_rescue_mode): Register "exit".
41750
41751 * kern/misc.c (grub_real_dprintf): A cosmetic change.
41752 (grub_abort): New function.
41753
41754 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
41755
41756 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
41757
41758 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
41759
41760 * include/grub/efi/efi.h (grub_efi_exit): Removed.
41761 (grub_print_device_path): New prototype.
41762 (grub_efi_locate_handle): Likewise.
41763 (grub_efi_open_protocol): Likewise.
41764
41765 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
41766 * disk/efi/efidisk.c: Likewise.
41767
41768 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
41769
41770 * include/grub/efi/console_control.h
41771 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
41772
41773 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
41774 last 8 bytes as an array.
41775 (GRUB_EFI_DISK_IO_GUID): New macro.
41776 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
41777 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
41778 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
41779 grub_uint8_t.
41780 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
41781 (struct grub_efi_device_path): Rename the member "sub_type" to
41782 "subtype".
41783 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
41784 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
41785 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
41786 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
41787 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
41788 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
41789 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
41790 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
41791 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
41792 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
41793 (struct grub_efi_pci_device_path): New structure.
41794 (grub_efi_pci_device_path_t): New type.
41795 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
41796 (struct grub_efi_pccard_device_path): New structure.
41797 (grub_efi_pccard_device_path_t): New type.
41798 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
41799 (struct grub_efi_memory_mapped_device_path): New structure.
41800 (grub_efi_memory_mapped_device_path_t): New type.
41801 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
41802 (struct grub_efi_vendor_device_path): New structure.
41803 (grub_efi_vendor_device_path_t): New type.
41804 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
41805 (struct grub_efi_controller_device_path): New structure.
41806 (grub_efi_controller_device_path_t): New type.
41807 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
41808 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
41809 (struct grub_efi_acpi_device_path): New structure.
41810 (grub_efi_acpi_device_path_t): New type.
41811 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
41812 (struct grub_efi_expanded_acpi_device_path): New structure.
41813 (grub_efi_expanded_acpi_device_path_t): New type.
41814 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
41815 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
41816 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
41817 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
41818 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
41819 (struct grub_efi_atapi_device_path): New structure.
41820 (grub_efi_atapi_device_path_t): New type.
41821 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
41822 (struct grub_efi_fibre_channel_device_path): New structure.
41823 (grub_efi_fibre_channel_device_path_t): New type.
41824 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
41825 (struct grub_efi_1394_device_path): New structure.
41826 (grub_efi_1394_device_path_t): New type.
41827 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
41828 (struct grub_efi_usb_device_path): New structure.
41829 (grub_efi_usb_device_path_t): New type.
41830 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
41831 (struct grub_efi_usb_class_device_path): New structure.
41832 (grub_efi_usb_class_device_path_t): New type.
41833 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
41834 (struct grub_efi_i2o_device_path): New structure.
41835 (grub_efi_i2o_device_path_t): New type.
41836 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
41837 (struct grub_efi_mac_address_device_path): New structure.
41838 (grub_efi_mac_address_device_path_t): New type.
41839 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
41840 (struct grub_efi_ipv4_device_path): New structure.
41841 (grub_efi_ipv4_device_path_t): New type.
41842 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
41843 (struct grub_efi_ipv6_device_path): New structure.
41844 (grub_efi_ipv6_device_path_t): New type.
41845 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
41846 (struct grub_efi_infiniband_device_path): New structure.
41847 (grub_efi_infiniband_device_path_t): New type.
41848 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
41849 (struct grub_efi_uart_device_path): New structure.
41850 (grub_efi_uart_device_path_t): New type.
41851 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
41852 (struct grub_efi_vendor_messaging_device_path): New structure.
41853 (grub_efi_vendor_messaging_device_path_t): New type.
41854 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
41855 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
41856 (struct grub_efi_hard_drive_device_path): New structure.
41857 (grub_efi_hard_drive_device_path_t): New type.
41858 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
41859 (struct grub_efi_cdrom_device_path): New structure.
41860 (grub_efi_cdrom_device_path_t): New type.
41861 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
41862 (struct grub_efi_vendor_media_device_path): New structure.
41863 (grub_efi_vendor_media_device_path_t): New type.
41864 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
41865 (struct grub_efi_file_path_device_path): New structure.
41866 (grub_efi_file_path_device_path_t): New type.
41867 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
41868 (struct grub_efi_protocol_device_path): New structure.
41869 (grub_efi_protocol_device_path_t): New type.
41870 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
41871 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
41872 (struct grub_efi_bios_device_path): New structure.
41873 (grub_efi_bios_device_path_t): New type.
41874 (struct grub_efi_disk_io): New structure.
41875 (grub_efi_disk_io_t): New type.
41876 (struct grub_efi_block_io_media): New structure.
41877 (grub_efi_block_io_media_t): New type.
41878 (struct grub_efi_block_io): New structure.
41879 (grub_efi_block_io_t): New type.
41880
41881 * include/grub/misc.h (grub_stop): Removed.
41882 (grub_exit): New prototype.
41883 (grub_abort): Likewise.
41884
41885 * include/grub/disk.h (enum grub_disk_dev_id): Added
41886 GRUB_DISK_DEVICE_EFIDISK_ID.
41887
41888 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
41889 disk/efi/efidisk.c.
41890 (kernel_syms.lst): Remove the target if an error occurs.
41891
41892 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
41893
41894 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
41895 as it was simply too buggy.
41896
41897 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
41898
41899 * kern/misc.c (grub_lltoa): New function.
41900 (grub_vsprintf): Added support for the long long suffix,
41901 i.e. "ll".
41902
41903 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
41904
41905 * Makefile.in (LDFLAGS): Add variable.
41906 (LD): Remove variable.
41907 * configure.ac: Add -m32 to LDFLAGS.
41908 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
41909 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
41910 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
41911 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
41912 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
41913 variables.
41914 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
41915 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
41916 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
41917
41918 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
41919
41920 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
41921 length for unknown glyph.
41922
41923 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
41924
41925 Add support for pre-loaded modules into the EFI port.
41926
41927 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
41928 completely. Accept one more argument DIR. The caller has changed.
41929
41930 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
41931
41932 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
41933 (grub_efi_loaded_image_guid): New variable.
41934 (grub_efi_get_loaded_image): New function.
41935 (grub_arch_modules_addr): Likewise.
41936
41937 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
41938 prototype.
41939
41940 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
41941 (struct grub_efi_loaded_image): New structure.
41942 (grub_efi_loaded_image_t): New type.
41943
41944 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
41945
41946 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
41947 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
41948 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
41949
41950 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
41951
41952 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
41953
41954 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
41955
41956 * DISTLIST: Added include/grub/efi/console.h,
41957 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
41958 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
41959
41960 * include/grub/efi/console.h: New file.
41961 * include/grub/efi/time.h: Likewise.
41962 * include/grub/i386/efi/kernel.h: Likewise.
41963 * kern/efi/init.c: Likewise.
41964 * kern/efi/mm.c: Likewise.
41965 * term/efi/console.c: Likewise.
41966
41967 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
41968 (grub_stop): Removed.
41969 (grub_get_rtc): Likewise.
41970 (grub_machine_init): Simply call grub_efi_init.
41971 (grub_machine_fini): Call grub_efi_fini.
41972
41973 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
41974 (grub_efi_output_string): Removed.
41975 (grub_efi_stall): New function.
41976 (grub_stop): Likewise.
41977 (grub_get_rtc): Likewise.
41978
41979 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
41980 (grub_efi_stall): New prototype.
41981 (grub_efi_allocate_pages): Likewise.
41982 (grub_efi_free_pages): Likewise.
41983 (grub_efi_get_memory_map): Likewise.
41984 (grub_efi_mm_init): Likewise.
41985 (grub_efi_mm_fini): Likewise.
41986 (grub_efi_init): Likewise.
41987 (grub_efi_fini): Likewise.
41988
41989 * include/grub/i386/efi/time.h: Do not include
41990 grub/symbol.h. Include grub/efi/time.h.
41991 (GRUB_TICKS_PER_SECOND): Removed.
41992 (grub_get_rtc): Likewise.
41993
41994 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
41995 Added padding. The EFI spec is buggy.
41996 (GRUB_EFI_BLACK): New macro.
41997 (GRUB_EFI_BLUE): Likewise.
41998 (GRUB_EFI_GREEN): Likewise.
41999 (GRUB_EFI_CYAN): Likewise.
42000 (GRUB_EFI_RED): Likewise.
42001 (GRUB_EFI_MAGENTA): Likewise.
42002 (GRUB_EFI_BROWN): Likewise.
42003 (GRUB_EFI_LIGHTGRAY): Likewise.
42004 (GRUB_EFI_BRIGHT): Likewise.
42005 (GRUB_EFI_DARKGRAY): Likewise.
42006 (GRUB_EFI_LIGHTBLUE): Likewise.
42007 (GRUB_EFI_LIGHTGREEN): Likewise.
42008 (GRUB_EFI_LIGHTCYAN): Likewise.
42009 (GRUB_EFI_LIGHTRED): Likewise.
42010 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42011 (GRUB_EFI_YELLOW): Likewise.
42012 (GRUB_EFI_WHITE): Likewise.
42013 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42014 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42015 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42016 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42017 (GRUB_EFI_BACKGROUND_RED): Likewise.
42018 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42019 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42020 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42021 (GRUB_EFI_TEXT_ATTR): Likewise.
42022
42023 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42024 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42025 (kernel_mod_HEADERS): Added efi/time.h.
42026
42027 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42028
42029 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42030 include/grub/efi/api.h, include/grub/efi/console_control.h,
42031 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42032 include/grub/i386/efi/time.h, kern/efi/efi.c,
42033 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42034 and util/i386/efi/grub-mkimage.c.
42035
42036 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42037
42038 * genmk.rb (PModule#rule): Do not export symbols if
42039 #{prefix}_EXPORTS is set to "no".
42040
42041 * conf/i386-efi.mk: New file.
42042 * conf/i386-efi.rmk: Likewise.
42043 * include/grub/efi/api.h: Likewise.
42044 * include/grub/efi/console_control.h: Likewise.
42045 * include/grub/efi/efi.h: Likewise.
42046 * include/grub/efi/pe32.h: Likewise.
42047 * include/grub/i386/efi/time.h: Likewise.
42048 * kern/efi/efi.c: Likewise.
42049 * kern/i386/efi/init.c: Likewise.
42050 * kern/i386/efi/startup.S: Likewise.
42051 * util/i386/efi/grub-mkimage.c: Likewise.
42052
42053 2006-04-17 Marco Gerards <marco@gnu.org>
42054
42055 * include/grub/script.h: Include <grub/parser.h> and
42056 "grub_script.tab.h".
42057 (struct grub_lexer_param): New struct.
42058 (struct grub_parser_param): Likewise.
42059 (grub_script_create_arglist): Pass the state in an argument.
42060 (grub_script_add_arglist): Likewise.
42061 (grub_script_create_cmdline): Likewise.
42062 (grub_script_create_cmdblock): Likewise.
42063 (grub_script_create_cmdif): Likewise.
42064 (grub_script_create_cmdmenu): Likewise.
42065 (grub_script_add_cmd): Likewise.
42066 (grub_script_arg_add): Likewise.
42067 (grub_script_lexer_ref): Likewise.
42068 (grub_script_lexer_deref): Likewise.
42069 (grub_script_lexer_record_start): Likewise.
42070 (grub_script_lexer_record_stop): Likewise.
42071 (grub_script_mem_record): Likewise.
42072 (grub_script_mem_record_stop): Likewise.
42073 (grub_script_malloc): Likewise.
42074 (grub_script_yylex): Likewise.
42075 (grub_script_yyparse): Likewise.
42076 (grub_script_yyerror): Likewise.
42077 (grub_script_yylex): Likewise.
42078 (grub_script_lexer_init): Return the state.
42079
42080 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42081 (grub_script_lexer_done): Likewise.
42082 (grub_script_lexer_getline): Likewise.
42083 (grub_script_lexer_refs): Likewise.
42084 (script): Likewise.
42085 (newscript): Likewise.
42086 (record): Likewise.
42087 (recording): Likewise.
42088 (recordpos): Likewise.
42089 (recordlen): Likewise.
42090 (grub_script_lexer_init): Return the state instead of setting
42091 global variables.
42092 (grub_script_lexer_ref): Use the newly added argument for state
42093 instead of globals.
42094 (grub_script_lexer_deref): Likewise.
42095 (grub_script_lexer_record_start): Likewise.
42096 (grub_script_lexer_record_stop): Likewise.
42097 (recordchar): Likewise.
42098 (nextchar): Likewise.
42099 (grub_script_yylex2): Likewise.
42100 (grub_script_yylex): Likewise.
42101 (grub_script_yyerror): Likewise.
42102
42103 * normal/parser.y (func_mem): Removed variable.
42104 (menu_entry): Likewise.
42105 (err): Likewise.
42106 (%lex-param): New parser option.
42107 (%parse-param): Likewise.
42108 (script): Always return the AST.
42109 (argument): Pass the state around.
42110 (arguments): Likewise.
42111 (grubcmd): Likewise.
42112 (commands): Likewise.
42113 (function): Likewise.
42114 (menuentry): Likewise.
42115 (if_statement): Likewise.
42116 (if): Likewise.
42117
42118 * normal/script.c (grub_script_memused): Removed variable.
42119 (grub_script_parsed): Likewise.
42120 (grub_script_malloc): Added a state argument. Use that instead of
42121 global variables.
42122 (grub_script_mem_record): Likewise.
42123 (grub_script_mem_record_stop): Likewise.
42124 (grub_script_arg_add): Likewise.
42125 (grub_script_add_arglist): Likewise.
42126 (grub_script_create_cmdline): Likewise.
42127 (grub_script_create_cmdif): Likewise.
42128 (grub_script_create_cmdmenu): Likewise.
42129 (grub_script_add_cmd): Likewise.
42130 (grub_script_parse): Setup the state before calling the parser.
42131
42132 2006-04-16 Marco Gerards <marco@gnu.org>
42133
42134 * normal/command.c (grub_command_init): Remove the title command.
42135
42136 * normal/lexer.c (grub_script_yylex): Renamed from this...
42137 (grub_script_yylex2): ... to this.
42138 (grub_script_yylex): New function. Temporary
42139 introduced to filter some tokens.
42140 (grub_script_yyerror): Print a newline.
42141
42142 * normal/main.c (read_config_file): Output information about the
42143 lines that contain errors. Wait for a key after all lines have
42144 been processed. Don't return an empty menu.
42145
42146 * normal/parser.y (func_mem): Don't initialize.
42147 (menu_entry): Likewise.
42148 (err): New variable.
42149 (script): Don't return anything when an error was encountered.
42150 (ws, returns): Removed rules.
42151 (argument): Disabled concatenated variable support.
42152 (arguments): Remove explicit separators.
42153 (grubcmd): Likewise.
42154 (function): Likewise.
42155 (menuentry): Likewise.
42156 (if): Likewise.
42157 (commands): Likewise. Add error handling.
42158
42159 * normal/script.c (grub_script_create_cmdline): If
42160 `grub_script_parsed' is 0, assume the parser encountered an error.
42161
42162 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42163
42164 * configure.ac: Add support for EFI. Fix the typo
42165 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42166
42167 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42168
42169 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42170 foreign multibyte characters should be shown correctly.
42171
42172 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42173
42174 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42175 calculation.
42176 (read_config_file): Made it to close file before returning.
42177
42178 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42179
42180 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42181 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42182 video/i386/pc/vbefill.c.
42183
42184 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42185 video/i386/pc/vbefill.c.
42186
42187 * include/grub/video.h (grub_video_blit_format): New enum.
42188 (grub_video_mode_info): Added new member blit_format.
42189 (grub_video_get_blit_format): New function prototype.
42190
42191 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42192 function prototype.
42193 (grub_video_vbe_map_rgb): Likewise.
42194 (grub_video_vbe_unmap_color): Likewise.
42195
42196 * include/grub/i386/pc/vbeblit.h: New file.
42197
42198 * include/grub/i386/pc/vbefill.h: New file.
42199
42200 * video/video.c (grub_video_get_blit_format): New function.
42201 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42202 (grub_video_vbe_map_rgb): Likewise.
42203 (grub_video_vbe_unmap_color): Likewise.
42204
42205 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42206 optimized fills.
42207 (grub_video_vbe_blit_render_target): Changed to use more optimized
42208 blits.
42209 (grub_video_vbe_setup): Added detection for optimized settings.
42210 (grub_video_vbe_create_render_target): Likewise.
42211
42212 * video/i386/pc/vbeblit.c: New file.
42213
42214 * video/i386/pc/vbefill.c: New file.
42215
42216 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42217
42218 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42219 here...
42220
42221 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42222 parsing to support both hex and dec ranges. If filename was missing
42223 show usage information.
42224
42225 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42226
42227 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42228 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42229
42230 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42231 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42232 (video_mod_SOURCES): Added.
42233 (video_mod_CFLAGS): Likewise.
42234 (video_mod_LDFLAGS): Likewise.
42235 (gfxterm_mod_SOURCES): Likewise.
42236 (gfxterm_mod_CFLAGS): Likewise.
42237 (gfxterm_mod_LDFLAGS): Likewise.
42238 (videotest_mod_SOURCES): Likewise.
42239 (videotest_mod_CFLAGS): Likewise.
42240 (videotest_mod_LDFLAGS): Likewise.
42241 (vesafb_mod_SOURCES): Removed.
42242 (vesafb_mod_CFLAGS): Likewise.
42243 (vesafb_mod_LDFLAGS): Likewise.
42244 (vga_mod_SOURCES): Likewise.
42245 (vga_mod_CFLAGS): Likewise.
42246 (vga_mod_LDFLAGS): Likewise.
42247
42248 * commands/videotest.c: New file.
42249
42250 * font/manager.c (fill_with_default_glyph): Modified to use
42251 grub_font_glyph.
42252 (grub_font_get_glyph): Likewise.
42253 (fontmanager): Renamed from this...
42254 (font_manager): ... to this.
42255
42256 * include/grub/font.h (grub_font_glyph): Added new structure.
42257 (grub_font_get_glyph): Modified to use grub_font_glyph.
42258
42259 * include/grub/misc.h (grub_abs): Added as inline function.
42260
42261 * include/grub/video.h: New file.
42262
42263 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42264 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42265 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
42266 (grub_vbe_get_controller_info): Renamed from this...
42267 (grub_vbe_bios_get_controller_info): ... to this.
42268 (grub_vbe_get_mode_info): Renamed from this...
42269 (grub_vbe_bios_get_mode_info): ... to this.
42270 (grub_vbe_set_mode): Renamed from this...
42271 (grub_vbe_bios_set_mode): ... to this.
42272 (grub_vbe_get_mode): Renamed from this...
42273 (grub_vbe_bios_get_mode): ... to this.
42274 (grub_vbe_set_memory_window): Renamed from this...
42275 (grub_vbe_bios_set_memory_window): ... to this.
42276 (grub_vbe_get_memory_window): Renamed from this...
42277 (grub_vbe_bios_get_memory_window): ... to this.
42278 (grub_vbe_set_scanline_length): Renamed from this...
42279 (grub_vbe_set_scanline_length): ... to this.
42280 (grub_vbe_get_scanline_length): Renamed from this...
42281 (grub_vbe_bios_get_scanline_length): ... to this.
42282 (grub_vbe_set_display_start): Renamed from this...
42283 (grub_vbe_bios_set_display_start): ... to this.
42284 (grub_vbe_get_display_start): Renamed from this...
42285 (grub_vbe_bios_get_display_start): ... to this.
42286 (grub_vbe_set_palette_data): Renamed from this...
42287 (grub_vbe_bios_set_palette_data): ... to this.
42288 (grub_vbe_set_pixel_rgb): Removed.
42289 (grub_vbe_set_pixel_index): Likewise.
42290
42291 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
42292 from this...
42293 (grub_vbe_bios_get_controller_info): ... to this.
42294 (grub_vbe_get_mode_info): Renamed from this...
42295 (grub_vbe_bios_get_mode_info): ... to this.
42296 (grub_vbe_set_mode): Renamed from this...
42297 (grub_vbe_bios_set_mode): ... to this.
42298 (grub_vbe_get_mode): Renamed from this...
42299 (grub_vbe_bios_get_mode): ... to this.
42300 (grub_vbe_set_memory_window): Renamed from this...
42301 (grub_vbe_bios_set_memory_window): ... to this.
42302 (grub_vbe_get_memory_window): Renamed from this...
42303 (grub_vbe_bios_get_memory_window): ... to this.
42304 (grub_vbe_set_scanline_length): Renamed from this...
42305 (grub_vbe_set_scanline_length): ... to this.
42306 (grub_vbe_get_scanline_length): Renamed from this...
42307 (grub_vbe_bios_get_scanline_length): ... to this.
42308 (grub_vbe_set_display_start): Renamed from this...
42309 (grub_vbe_bios_set_display_start): ... to this.
42310 (grub_vbe_get_display_start): Renamed from this...
42311 (grub_vbe_bios_get_display_start): ... to this.
42312 (grub_vbe_set_palette_data): Renamed from this...
42313 (grub_vbe_bios_set_palette_data): ... to this.
42314 (grub_vbe_bios_get_controller_info): Fixed problem with registers
42315 getting corrupted after calling it. Added more pushes and pops.
42316 (grub_vbe_bios_set_mode): Likewise.
42317 (grub_vbe_bios_get_mode): Likewise.
42318 (grub_vbe_bios_get_memory_window): Likewise.
42319 (grub_vbe_bios_set_scanline_length): Likewise.
42320 (grub_vbe_bios_get_scanline_length): Likewise.
42321 (grub_vbe_bios_get_display_start): Likewise.
42322 (grub_vbe_bios_set_palette_data): Likewise.
42323
42324 * normal/cmdline.c (cl_set_pos): Refresh the screen.
42325 (cl_insert): Likewise.
42326 (cl_delete): Likewise.
42327
42328 * term/gfxterm.c: New file.
42329
42330 * term/i386/pc/vesafb.c: Removed file.
42331
42332 * video/video.c: New file.
42333
42334 * video/i386/pc/vbe.c (real2pm): Added new function.
42335 (grub_video_vbe_draw_pixel): Likewise.
42336 (grub_video_vbe_get_video_ptr): Likewise.
42337 (grub_video_vbe_get_pixel): Likewise
42338 (grub_video_vbe_init): Likewise.
42339 (grub_video_vbe_fini): Likewise.
42340 (grub_video_vbe_setup): Likewise.
42341 (grub_video_vbe_get_info): Likewise.
42342 (grub_video_vbe_set_palette): Likewise.
42343 (grub_video_vbe_get_palette): Likewise.
42344 (grub_video_vbe_set_viewport): Likewise.
42345 (grub_video_vbe_get_viewport): Likewise.
42346 (grub_video_vbe_map_color): Likewise.
42347 (grub_video_vbe_map_rgb): Likewise.
42348 (grub_video_vbe_map_rgba): Likewise.
42349 (grub_video_vbe_unmap_color): Likewise.
42350 (grub_video_vbe_fill_rect): Likewise.
42351 (grub_video_vbe_blit_glyph): Likewise.
42352 (grub_video_vbe_blit_bitmap): Likewise.
42353 (grub_video_vbe_blit_render_target): Likewise.
42354 (grub_video_vbe_scroll): Likewise.
42355 (grub_video_vbe_swap_buffers): Likewise.
42356 (grub_video_vbe_create_render_target): Likewise.
42357 (grub_video_vbe_delete_render_target): Likewise.
42358 (grub_video_vbe_set_active_render_target): Likewise.
42359 (grub_vbe_set_pixel_rgb): Remove function.
42360 (grub_vbe_set_pixel_index): Likewise.
42361 (index_color_mode): Remove static variable.
42362 (active_mode): Likewise.
42363 (framebuffer): Likewise.
42364 (bytes_per_scan_line): Likewise.
42365 (grub_video_vbe_adapter): Added new static variable.
42366 (framebuffer): Likewise.
42367 (render_target): Likewise.
42368 (initial_mode): Likewise.
42369 (mode_in_use): Likewise.
42370 (mode_list): Likewise.
42371
42372 2006-03-10 Marco Gerards <marco@gnu.org>
42373
42374 * configure.ac (AC_INIT): Bumped to 1.93.
42375
42376 * DISTLIST: Added `include/grub/hfs.h'.
42377
42378 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
42379
42380 * boot/i386/pc/boot.S (general_error): Before looping, try INT
42381 18H, which might help the BIOS falling back to next boot media.
42382
42383 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
42384
42385 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
42386 Poe Chen <poe.poechen@gmail.com>.
42387
42388 2006-01-17 Marco Gerards <marco@gnu.org>
42389
42390 * include/grub/normal.h: Include <grub/script.h>.
42391 (grub_command_list): Removed struct.
42392 (grub_command_list_t): Removed type.
42393 (grub_menu_entry): Remove members `num' and `command_list'. Add
42394 members `commands' and `sourcecode'.
42395 * include/grub/script.h: Add inclusion guards.
42396 (grub_script_cmd_menuentry): New struct.
42397 (grub_script_execute_menuentry): New prototype.
42398 (grub_script_lexer_record_start): Likewise.
42399 (grub_script_lexer_record_stop): Likewise.
42400 * normal/execute.c (grub_script_execute_menuentry): New function.
42401 * normal/lexer.c (record, recording, recordpos, recordlen): New
42402 variables.
42403 (grub_script_lexer_record_start): New function.
42404 (grub_script_lexer_record_stop): Likewise.
42405 (recordchar): Likewise.
42406 (nextchar): Likewise.
42407 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
42408 2048 as the buffer size. Add the tokens `menuentry' and `@'.
42409 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
42410 (current_menu): New variable.
42411 (free_menu): Mainly rewritten.
42412 (grub_normal_menu_addentry): New function.
42413 (read_config_file): Rewritten.
42414 * normal/menu.c (run_menu_entry): Mainly rewritten.
42415 * normal/menu_entry.c (make_screen): Rewritten the code to insert
42416 the menu entry.
42417 (run): Mainly rewritten.
42418 * normal/parser.y (menu_entry): New variable.
42419 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
42420 (menuentry): New rule.
42421 (command): Add `menuentry'.
42422 (if_statement): Allow additional returns before `fi'.
42423 * normal/script.c (grub_script_create_cmdmenu): New function.
42424
42425 2006-01-03 Marco Gerards <marco@gnu.org>
42426
42427 * INSTALL: GNU Bison is required.
42428 * configure.ac: Rewritten the test to detect Bison.
42429 * Makefile.in (YACC): New variable. Reported by Xun Sun
42430 <xun.sun.cn@gmail.com>.
42431
42432 2006-01-03 Marco Gerards <marco@gnu.org>
42433
42434 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
42435 the HFS+ filesystem to filesystem blocks.
42436 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
42437 GCC warning is silenced.
42438
42439 2006-01-03 Marco Gerards <marco@gnu.org>
42440
42441 * partmap/apple.c (apple_partition_map_iterate): Convert the data
42442 read from disk from big endian to host byte order.
42443
42444 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
42445
42446 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
42447 documentation.
42448 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
42449 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
42450 embedded HFS+ filesystem.
42451 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
42452 (grub_hfs_sblock): Move from here...
42453 * include/grub/hfs.h: To here... New file.
42454 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
42455 documentation.
42456 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
42457 New macros.
42458 (grub_hfsplus_volheader): Change type of member `magic' to
42459 `grub_uint16_t'.
42460 (grub_hfsplus_data): Add new member `embedded_offset'.
42461 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
42462 returned block.
42463 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
42464 Calculate the offset.
42465
42466 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42467
42468 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
42469 Removed.
42470 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
42471
42472 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42473
42474 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
42475 ENV->NAME is NULL after allocating ENV->VALUE.
42476
42477 2005-12-25 Marco Gerards <marco@gnu.org>
42478
42479 * kern/env.c (grub_env_set): Rewritten the error handling code.
42480
42481 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42482
42483 * geninit.sh: Made more robust, and more portable.
42484
42485 2005-12-25 Marco Gerards <marco@gnu.org>
42486
42487 Add support for Apple HFS+ filesystems.
42488
42489 * fs/hfsplus.c: New file.
42490
42491 * DISTLIST: Added `fs/hfsplus.c'.
42492
42493 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
42494 (hfsplus_mod_SOURCES): New variable.
42495 (hfsplus_mod_CFLAGS): Likewise.
42496 (hfsplus_mod_LDFLAGS): Likewise.
42497 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
42498 (grub_setup_SOURCES): Likewise.
42499 (grub_mkdevicemap_SOURCES): Likewise.
42500 (grub_emu_SOURCES): Likewise.
42501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42502
42503 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
42504
42505 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
42506
42507 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42508
42509 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
42510 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
42511 include/grub/parser.h, include/grub/script.h, kern/parser.c,
42512 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
42513 normal/lexer.c, normal/parser.y, normal/script.c, and
42514 partmap/gpt.c.
42515 Removed kern/sparc64/cache.c.
42516
42517 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
42518 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
42519 grub_emu_init.c.
42520
42521 * configure.ac (AC_INIT): Bumped to 1.92.
42522
42523 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
42524
42525 * kern/err.c (grub_error_push): Added new function to support error
42526 stacks.
42527 (grub_error_pop): Likewise.
42528 (grub_error_stack_items): New local variable to support error stacks.
42529 (grub_error_stack_pos): Likewise.
42530 (grub_error_stack_assert): Likewise.
42531 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
42532 stack depth.
42533 (grub_print_error): Added support to print errors from error stack.
42534
42535 * include/grub/err.h (grub_error_push): Added function prototype.
42536 (grub_error_pop): Likewise.
42537
42538 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
42539
42540 * configure.ac: Accept `powerpc64' as host_cpu.
42541 (amd64): Rename to `biarch32'.
42542
42543 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
42544 non-cacheline-aligned addresses.
42545
42546 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
42547 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
42548 if `size' is non-zero.
42549
42550 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
42551
42552 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
42553 and `cd' to make sure the filename is not prefixed with a
42554 directory name.
42555 (pkgdata_MODULES): Add `gpt.mod'.
42556 (gpt_mod_SOURCES): New variable.
42557 (gpt_mod_CFLAGS): Likewise.
42558 (gpt_mod_LDFLAGS): Likewise.
42559
42560 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
42561
42562 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
42563 New macro.
42564
42565 * partmap/gpt.c: New file.
42566
42567 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
42568 GPT partition map is detected.
42569
42570 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
42571
42572 * commands/i386/pc/play.c: New file.
42573 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
42574 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
42575 macros.
42576
42577 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
42578
42579 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
42580 ((unused))' to silence gcc warning.
42581
42582 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
42583
42584 * configure.ac: Correct `AC_PROG_YACC' test.
42585
42586 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42587
42588 * util/powerpc/ieee1275/grub-install.in: Run the mount point
42589 check before installing files.
42590
42591 2005-11-22 Mike Small <smallm@panix.com>
42592
42593 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
42594 number regex so multidigit numbers are recognized correctly.
42595
42596 2005-11-22 Mike Small <smallm@panix.com>
42597
42598 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
42599 debugging message before attempting to claim memory.
42600 (grub_rescue_cmd_initrd): Add a claim debugging message and try
42601 multiple addresses in case of failure.
42602
42603 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42604
42605 * term/tparm.c (get_space): Remove empty `if' statement.
42606
42607 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
42608
42609 * kern/parser.c (check_varstate): Rename `state' to 's'.
42610
42611 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42612
42613 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
42614 variable definitions to the beginning of each function. Sort stack
42615 variables by size.
42616 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
42617 `buf' argument to `char *'.
42618
42619 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42620
42621 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
42622 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42623 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42624 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42625 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42626 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42627 configfile.mod, search.mod, gzio.mod and test.mod.
42628 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42629 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42630 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42631 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42632 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42633 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42634 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42635 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42636 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42637 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42638 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42639 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42640 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42641 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42642 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42643 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42644 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42645 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42646 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42647 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42648 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42649 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42650 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
42651
42652 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
42653 `grep --include'.
42654 (pkgdata_MODULES): Add test.mod.
42655
42656 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42657
42658 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
42659 appending to variables with "+=".
42660 (PModule): Use full pathname to generate *.lst filenames.
42661
42662 * Makefile.in: Fixed list rules moved from genmk.rb.
42663 (.DELETE_ON_ERROR): New special target.
42664 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
42665
42666 * conf/i386-pc.rmk: Include conf/common.mk.
42667 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42668 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42669 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42670 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42671 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42672 configfile.mod, search.mod, gzio.mod and test.mod.
42673 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42674 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42675 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42676 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42677 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42678 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42679 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42680 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42681 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42682 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42683 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42684 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42685 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42686 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42687 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42688 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42689 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42690 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42691 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42692 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42693 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42694 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42695 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
42696 here...
42697 * conf/common.rmk: ... to here. New file.
42698
42699 * conf/common.mk: New file.
42700
42701 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
42702
42703 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
42704 (grub_script.tab.c): ... here.
42705
42706 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
42707 (grub_script.tab.c): ... here.
42708
42709 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
42710 (grub_script.tab.c): ... here.
42711
42712 * normal/command.c (grub_command_find): Fixed a memory leak of
42713 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
42714
42715 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42716
42717 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
42718 "@" which marks the start of a comment on ARM.
42719 (VARIABLE): Likewise.
42720
42721 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42722
42723 Add support for Linux/ADFS partition tables.
42724
42725 * partmap/acorn.c: New file.
42726
42727 * include/grub/acorn_filecore.h: Likewise.
42728
42729 * DISTLIST: Added `partmap/acorn.c' and
42730 `include/grub/acorn_filecore.h'.
42731
42732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
42733 `partmap/acorn.c'.
42734 (pkgdata_MODULES): Add `acorn.mod'.
42735 (acorn_mod_SOURCES): New variable.
42736 (acorn_mod_CFLAGS): Likewise.
42737
42738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
42739 `partmap/acorn.c'.
42740 (pkgdata_MODULES): Add `acorn.mod'.
42741 (acorn_mod_SOURCES): New variable.
42742 (acorn_mod_CFLAGS): Likewise.
42743
42744 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
42745 (pkgdata_MODULES): Add `acorn.mod'.
42746 (acorn_mod_SOURCES): New variable.
42747 (acorn_mod_CFLAGS): Likewise.
42748 (acorn_mod_LDFLAGS): Likewise.
42749
42750 * include/types.h (grub_disk_addr_t): New typedef.
42751
42752 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
42753
42754 * geninit.sh: New file.
42755
42756 * geninitheader.sh: Likewise.
42757
42758 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
42759 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
42760 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
42761 * commands/configfile.c (grub_configfile_init)
42762 (grub_configfile_fini): Likewise.
42763 * commands/default.c (grub_default_init, grub_default_fini):
42764 Likewise.
42765 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
42766 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
42767 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
42768 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
42769 Likewise.
42770 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
42771 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
42772 Likewise.
42773 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
42774 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
42775 Likewise.
42776 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
42777 Likewise.
42778 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
42779 Likewise.
42780 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
42781 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
42782 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
42783 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
42784 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
42785 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
42786 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
42787 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
42788 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
42789 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
42790 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
42791 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
42792 * partmap/amiga.c (grub_amiga_partition_map_init)
42793 (grub_amiga_partition_map_fini): Likewise.
42794 * partmap/apple.c (grub_apple_partition_map_init)
42795 (grub_apple_partition_map_fini): Likewise.
42796 * partmap/pc.c (grub_pc_partition_map_init)
42797 (grub_pc_partition_map_fini): Likewise.
42798 * partmap/sun.c (grub_sun_partition_map_init,
42799 grub_sun_partition_map_fini): Likewise.
42800 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
42801 Likewise.
42802
42803 * util/grub-emu.c: Include <grub_modules_init.h>.
42804 (main): Don't initialize and de-initialize any modules directly,
42805 use `grub_init_all' and `grub_fini_all' instead.
42806
42807 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
42808 `grub_vesafb_mod_init'.
42809 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
42810 all users.
42811 * term/i386/pc/vga.c (grub_vga_init): Renamed to
42812 `grub_vga_mod_init'. Updated all users.
42813 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
42814
42815 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
42816 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
42817 rules.
42818
42819 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
42820 Generate a function to initialize the module in utilities.
42821 Updated all callers.
42822 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
42823 initialize the module in utilities. Updated all callers.
42824
42825 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
42826
42827 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
42828 escape sequence and a literal ^L to clear the screen.
42829
42830 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
42831 when returning from Open Firmware.
42832
42833 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
42834
42835 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
42836 (grub_ofconsole_height): Likewise.
42837 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
42838 manually insert a '\n'.
42839 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
42840 `grub_ofconsole_height'. Return early if these are already set.
42841
42842 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
42843
42844 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
42845 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
42846 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
42847 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
42848 and `normal/script.c'.
42849 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42850 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42851 (test_mod_SOURCES): New variable.
42852 (test_mod_CFLAGS): Likewise.
42853 (test_mod_LDFLAGS): Likewise.
42854 (pkgdata_MODULES): Add `test.mod'.
42855 (grub_script.tab.c): New rule.
42856 (grub_script.tab.h): Likewise.
42857
42858 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
42859
42860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
42861 `commands/test.c', `normal/execute.c', `normal/lexer.c',
42862 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42863 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42864 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42865 (test_mod_SOURCES): New variable.
42866 (test_mod_CFLAGS): Likewise.
42867 (pkgdata_MODULES): Add `test.mod'.
42868 (grub_script.tab.c): New rule.
42869 (grub_script.tab.h): Likewise.
42870
42871 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
42872
42873 Add initial scripting support.
42874
42875 * commands/test.c: New file.
42876 * include/grub/script.h: Likewise.
42877 * normal/execute.c: Likewise.
42878 * normal/function.c: Likewise.
42879 * normal/lexer.c: Likewise.
42880 * normal/parser.y: Likewise.
42881 * normal/script.c: Likewise.
42882
42883 * configure.ac: Add `AC_PROG_YACC' test.
42884
42885 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
42886 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
42887 `normal/function.c' and `normal/script.c'.
42888 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42889 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42890 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
42891 variables.
42892 (pkgdata_MODULES): Add `test.mod'.
42893 (grub_script.tab.c): New rule.
42894 (grub_script.tab.h): Likewise.
42895
42896 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
42897
42898 * include/grub/normal.h (grub_test_init): New prototype.
42899 (grub_test_fini): Likewise.
42900
42901 * normal/command.c: Include <grub/script.h>.
42902 (grub_command_execute): Rewritten.
42903
42904 * util/grub-emu.c (main): Call `grub_test_init' and
42905 `grub_test_fini'.
42906
42907 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42908
42909 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
42910 to 0.
42911 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
42912 there are no pending characters.
42913
42914 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42915
42916 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
42917 `grub_strndup' to drop device arguments. Replace unnecessary
42918 `grub_strndup' with `grub_strdup'.
42919
42920 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42921
42922 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
42923 `debug' environment variable has been set.
42924
42925 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
42926
42927 * Makefile.in (install-local): Use $(DATA).
42928 (uninstall): Likewise.
42929 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
42930 (sbin_UTILITIES): ... to here.
42931 (sbin_SCRIPTS): New variable.
42932 (grub_install_SOURCES): New variable.
42933 * util/powerpc/ieee1275/grub-install.in: New file.
42934 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
42935 variable.
42936 (add_segments): Call `grub_util_get_path'.
42937
42938 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42939
42940 From Timothy Baldwin:
42941 * commands/ls.c (grub_ls_list_files): Close FILE with
42942 grub_file_close.
42943 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
42944
42945 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
42946
42947 * include/grub/parser.h: New file.
42948
42949 * kern/parser.c: Likewise.
42950
42951 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
42952 (grub_setup_SOURCES): Likewise.
42953 (grub_probefs_SOURCES): Likewise.
42954 (grub_emu_SOURCES): Likewise.
42955 (kernel_img_HEADERS): Add `parser.h'.
42956
42957 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
42958 (grub_emu_SOURCES): Add `kern/parser.c'.
42959 (grubof_SOURCES): Likewise.
42960
42961 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
42962 (grubof_SOURCES): Add `kern/parser.c'.
42963
42964 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
42965
42966 * kern/misc.c (grub_split_cmdline): Removed function.
42967
42968 * kern/rescue.c: Include <grub/parser.h>.
42969 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
42970 of `grub_split_cmdline'.
42971
42972 * normal/command.c: Include <grub/parser.h>.
42973 (grub_command_execute): Use `grub_parser_split_cmdline' instead
42974 of `grub_split_cmdline'.
42975
42976 * normal/completion.c: Include <grub/parser.h>.
42977 (cmdline_state): New variable.
42978 (iterate_dir): End the filename with a quote depending on the
42979 command line state.
42980 (get_state): new function.
42981 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
42982 split the arguments and determine the current argument. When the
42983 argument string is not quoted, escape all spaces.
42984
42985 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42986
42987 * normal/sparc64/setjmp.S: New file.
42988
42989 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42990
42991 * include/grub/sparc64/libgcc.h: New file.
42992 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
42993 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
42994 normal/sparc64/setjmp.c.
42995
42996 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42997
42998 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
42999 * kern/sparc64/cache.S: New file.
43000 * kern/sparc64/cache.c: Removed.
43001 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43002 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43003 -mtune=ultrasparc.
43004 (COMMON_LDFLAGS): Add -melf64_sparc.
43005 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43006 (grubof_SOURCES): Use cache.S instead of cache.c.
43007 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43008 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43009 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43010 commented though.
43011 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43012 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43013 (linux_mod_CFLAGS): Commented out.
43014 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43015 out because module isn't built.
43016 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43017 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43018 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43019 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43020 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43021 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43022 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43023 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43024 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43025 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43026 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43027 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43028 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43029 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43030
43031 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43032
43033 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43034 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43035 longer, because HFS should not be used on PC.
43036
43037 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43038
43039 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43040 consistently within the loop.
43041
43042 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43043
43044 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43045 directory can not be read.
43046
43047 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43048
43049 * configure.ac (AC_INIT): Increase the version number to 1.91.
43050
43051 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43052 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43053 term/i386/pc/serial.c.
43054
43055 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43056
43057 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43058 file size must be permitted.
43059
43060 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43061 between %ah and %al.
43062
43063 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43064
43065 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43066 grub_uint64_t.
43067 Call the hook with a NUL-terminated filename.
43068 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43069 grub_cpu_to_be32.
43070
43071 * kern/term.c (cursor_state): New variable.
43072 (grub_term_set_current): Reset the cursor state on a new
43073 terminal.
43074 (grub_setcursor): Rewritten to use CURSOR_STATE.
43075 (grub_getcursor): New function.
43076
43077 * include/grub/term.h (grub_getcursor): New prototype.
43078
43079 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43080 integers on ARM. Reported by Timothy Baldwin
43081 <T.E.Baldwin99@members.leeds.ac.uk>.
43082
43083 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43084
43085 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43086 allocated.
43087 (grub_sfs_dir): Likewise.
43088
43089 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43090
43091 Add support for the SFS filesystem.
43092
43093 * fs/sfs.c: New file.
43094
43095 * DISTLIST: Added `fs/sfs.c'.
43096
43097 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43098 (grub_probefs_SOURCES): Likewise.
43099 (grub_emu_SOURCES): Likewise.
43100 (pkgdata_MODULES): Add `sfs.mod'.
43101 (sfs_mod_SOURCES): New variable.
43102 (sfs_mod_CFLAGS): Likewise.
43103 (sfs_mod_LDFLAGS): Likewise.
43104
43105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43106 (pkgdata_MODULES): Add `sfs.mod'.
43107 (sfs_mod_SOURCES): New variable.
43108 (sfs_mod_CFLAGS): Likewise.
43109
43110 * util/grub-emu.c (main): Call `grub_sfs_init' and
43111 `grub_sfs_fini'.
43112
43113 * include/grub/fs.h (grub_sfs_init): New prototype.
43114 (grub_sfs_fini): Likewise.
43115
43116 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43117
43118 Add support for the AFFS filesystem.
43119
43120 * fs/affs.c: New file.
43121
43122 * DISTLIST: Added `fs/affs.c'.
43123
43124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43125 (grub_probefs_SOURCES): Likewise.
43126 (grub_emu_SOURCES): Likewise.
43127 (pkgdata_MODULES): Add `affs.mod'.
43128 (affs_mod_SOURCES): New variable.
43129 (affs_mod_CFLAGS): Likewise.
43130 (affs_mod_LDFLAGS): Likewise.
43131
43132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43133 (pkgdata_MODULES): Add `affs.mod'.
43134 (affs_mod_SOURCES): New variable.
43135 (affs_mod_CFLAGS): Likewise.
43136
43137 * util/grub-emu.c (main): Call `grub_affs_init' and
43138 `grub_affs_fini'.
43139
43140 * include/grub/fs.h (grub_affs_init): New prototype.
43141 (grub_affs_fini): Likewise.
43142
43143 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43144
43145 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43146
43147 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43148
43149 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43150 `-m32' to CFLAGS.
43151
43152 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43153 linking.
43154
43155 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43156 (COMMON_LDFLAGS): New variable.
43157 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43158 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43159 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43160 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43161 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43162 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43163 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43164 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43165 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43166 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43167 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43168 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43169 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43170 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43171 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43172 variables.
43173 (normal_mod_ASFLAGS): Add `-m32'.
43174
43175 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43176 (grub_host_size_t, grub_host_ssize_t): New types.
43177 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43178 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43179 `GRUB_HOST_SIZEOF_VOID_P'.
43180
43181 * include/grub/kernel.h (struct grub_module_header): Type of
43182 member offset changed to `grub_host_off_t'. Type of member size
43183 changed to `grub_host_size_t'.
43184 (struct grub_module_info): Type of member offset changed to
43185 `grub_host_off_t'. Type of member size changed to
43186 `grub_host_size_t'.
43187
43188 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43189
43190 Make GRUB's kernel compliant to Multiboot Specification.
43191
43192 * kern/i386/pc/startup.S (multiboot_header): New label.
43193 (multiboot_entry): Likewise.
43194 (multiboot_trampoline): Likewise.
43195
43196 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43197 Increased to 0x4A0.
43198
43199 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43200 put parentheses after a question mark.
43201 [!GRUB_UTIL] (my_mod): New variable.
43202
43203 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43204
43205 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43206
43207 Adds support for the XFS filesystem. Btrees are not supported
43208 yet.
43209
43210 * fs/xfs.c: New file.
43211
43212 * DISTLIST: Added `fs/xfs.c'.
43213
43214 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43215 (grub_probefs_SOURCES): Likewise.
43216 (grub_emu_SOURCES): Likewise.
43217 (pkgdata_MODULES): Add `xfs.mod'.
43218 (xfs_mod_SOURCES): New variable.
43219 (xfs_mod_CFLAGS): Likewise.
43220
43221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43222 (pkgdata_MODULES): Add `xfs.mod'.
43223 (xfs_mod_SOURCES): New variable.
43224 (xfs_mod_CFLAGS): Likewise.
43225
43226 * util/grub-emu.c (main): Call `grub_xfs_init' and
43227 `grub_xfs_fini'.
43228
43229 * include/grub/fs.h (grub_xfs_init): New prototype.
43230 (grub_xfs_fini): Likewise.
43231
43232
43233 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43234
43235 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43236 color modes, allow greater than 16 colors to be configured as
43237 a default palette.
43238
43239 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43240
43241 * normal/completion.c (complete_arguments): Add the qualifier
43242 const into OPTIONS.
43243
43244 From Omniflux <omniflux+lists@omniflux.com>:
43245 * include/grub/terminfo.h: New file.
43246 * include/grub/tparm.h: Likewise.
43247 * include/grub/i386/pc/serial.h: Likewise.
43248 * term/terminfo.c: Likewise.
43249 * term/tparm.c: Likewise.
43250 * term/i386/pc/serial.c: Likewise.
43251 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43252 serial.mod.
43253 (terminfo_mod_SOURCES): New variable.
43254 (terminfo_mod_CFLAGS): Likewise.
43255 (serial_mod_SOURCES): Likewise.
43256 (serial_mod_CFLAGS): Likewise.
43257
43258 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43259
43260 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43261 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43262 and kern/powerpc/ieee1275/cmain.c, respectively.
43263
43264 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43265 * kern/powerpc/ieee1275/crt0.S: ... here.
43266
43267 * boot/powerpc/ieee1275/cmain.c: Moved to ...
43268 * kern/powerpc/ieee1275/cmain.c: ... here.
43269
43270 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
43271 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
43272 instead of boot/powerpc/ieee1275/crt0.S and
43273 boot/powerpc/ieee1275/cmain.c, respectively.
43274
43275 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
43276 sectors. It was not used anyway.
43277
43278 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43279
43280 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
43281 `unused parameter' warning.
43282
43283 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43284
43285 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
43286 function.
43287 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
43288 getcharwidth.
43289
43290 2005-08-28 Marco Gerards <metgerards@student.han.nl>
43291
43292 * include/grub/normal.h (enum grub_completion_type): Added
43293 `GRUB_COMPLETION_TYPE_ARGUMENT'.
43294
43295 * normal/cmdline.c (print_completion): Handle
43296 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
43297 * normal/menu_entry.c (store_completion): Likewise.
43298
43299 * normal/completion.c (complete_arguments): New function.
43300 (grub_normal_do_completion): Call `complete_arguments' when the
43301 current words start with a dash.
43302
43303 2005-08-27 Marco Gerards <metgerards@student.han.nl>
43304
43305 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
43306 `gzio.mod' instead of `io.mod').
43307
43308 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
43309
43310 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
43311 (DISTDIRS): Added io and video.
43312 Rewrite the search routine to make an output consistently.
43313
43314 * DISTLIST: Added conf/sparc64-ieee1275.mk,
43315 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
43316 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
43317 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
43318 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
43319 util/powerpc/ieee1275/misc.c.
43320
43321 * include/grub/gzio.h: New file.
43322 * io/gzio.c: Likewise.
43323
43324 * kern/file.c (grub_file_close): Call grub_device_close only if
43325 FILE->DEVICE is not NULL.
43326
43327 * include/grub/mm.h [!NULL] (NULL): New macro.
43328
43329 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
43330
43331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
43332 (pkgdata_MODULES): Added gzio.mod.
43333 (gzio_mod_SOURCES): New variable.
43334 (gzio_mod_CFLAGS): Likewise.
43335
43336 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
43337 (pkgdata_MODULES): Added gzio.mod.
43338 (gzio_mod_SOURCES): New variable.
43339 (gzio_mod_CFLAGS): Likewise.
43340
43341 * commands/cat.c: Include grub/gzio.h.
43342 (grub_cmd_cat): Use grub_gzfile_open instead of
43343 grub_file_open.
43344
43345 * commands/cmp.c: Include grub/gzio.h.
43346 (grub_cmd_cmp): Use grub_gzfile_open instead of
43347 grub_file_open.
43348
43349 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
43350 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
43351 grub_file_open.
43352 (grub_rescue_cmd_module): Likewise.
43353
43354 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43355
43356 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
43357 kern/sparc64/ieee1275/init.c because it contains _start.
43358 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
43359
43360 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43361
43362 * configure.ac: Add support for sparc64 host with ieee1275
43363 firmware.
43364 * configure: Generated from configure.ac.
43365 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
43366 instead of int.
43367 (grub_ofdisk_read): Likewise.
43368 (grub_ofdisk_open): Use %p to print pointer values, and cast the
43369 pointers as (void *) to remove a warning.
43370 (grub_ofdisk_close): Likewise.
43371 (grub_ofdisk_read): Likewise.
43372 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
43373 returns, so make it return void to remove a warning.
43374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
43375 Corresponding prototype change.
43376 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
43377 values, and cast the pointers as (void *) to remove a warning.
43378 (grub_mm_dump): Likewise.
43379 * conf/sparc64-ieee1275.mk: New file.
43380 * conf/sparc64-ieee1275.rmk: Likewise.
43381 * include/grub/sparc64/setjmp.h: Likewise.
43382 * include/grub/sparc64/types.h: Likewise.
43383 * include/grub/sparc64/ieee1275/console.h: Likewise.
43384 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43385 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43386 * include/grub/sparc64/ieee1275/time.h: Likewise.
43387 * kern/sparc64/cache.c: Likewise.
43388 * kern/sparc64/dl.c: Likewise.
43389 * kern/sparc64/ieee1275/init.c: Likewise.
43390 * kern/sparc64/ieee1275/openfw.c: Likewise.
43391
43392 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
43393
43394 * util/console.c (grub_ncurses_putchar): If C is greater than
43395 0x7f, set C to a question mark.
43396 (grub_ncurses_getcharwidth): New function.
43397 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
43398 getcharwidth.
43399
43400 * normal/menu.c (print_entry): Made aware of Unicode. First,
43401 convert TITLE to UCS-4, and predict the cursor position by
43402 grub_getcharwidth.
43403
43404 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
43405 const to SRC.
43406 * kern/misc.c (grub_utf16_to_utf8): Likewise.
43407
43408 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43409
43410 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
43411 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43412 grub_strcat.
43413
43414 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
43415 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43416 grub_strcpy and grub_strlen. Take it into account that a space
43417 character is inserted as a delimiter.
43418
43419 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43420
43421 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
43422 invalid magic in the error.
43423
43424 * commands/search.c: New file.
43425
43426 * util/grub-emu.c (main): Call grub_search_init and
43427 grub_search_fini.
43428
43429 * kern/rescue.c (grub_rescue_print_disks): Removed.
43430 (grub_rescue_print_devices): New function.
43431 (grub_rescue_cmd_ls): Use grub_device_iterate with
43432 grub_rescue_print_devices instead of grub_disk_dev_iterate with
43433 grub_rescue_print_disks.
43434
43435 * kern/partition.c (grub_partition_iterate): Return the result of
43436 PARTMAP->ITERATE instead of GRUB_ERRNO.
43437
43438 * kern/device.c: Include grub/partition.h.
43439 (grub_device_iterate): New function.
43440
43441 * include/grub/partition.h (grub_partition_iterate): Return int
43442 instead of grub_err_t.
43443
43444 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
43445 prototype.
43446 [GRUB_UTIL] (grub_search_fini): Likewise.
43447
43448 * include/grub/device.h (grub_device_iterate): New prototype.
43449
43450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43451 commands/search.c.
43452 (pkgdata_MODULES): Added search.mod.
43453 (search_mod_SOURCES): New variable.
43454 (search_mod_CFLAGS): Likewise.
43455
43456 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
43457 (pkgdata_MODULES): Added search.mod.
43458 (search_mod_SOURCES): New variable.
43459 (search_mod_CFLAGS): Likewise.
43460
43461 * commands/ls.c (grub_ls_list_disks): Renamed to ...
43462 (grub_ls_list_devices): ... this, and use grub_device_iterate.
43463 All callers changed.
43464
43465 * DISTLIST: Added commands/search.c.
43466
43467 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43468
43469 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
43470 conversion.
43471 (grub_getcharwidth): New function.
43472
43473 * kern/misc.c (grub_utf8_to_ucs4): New function.
43474
43475 * include/grub/term.h (struct grub_term): Added a new member
43476 "getcharwidth".
43477 (grub_getcharwidth): New prototype.
43478
43479 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
43480
43481 * term/i386/pc/console.c (map_char): New function. Segregated from
43482 grub_console_putchar.
43483 (grub_console_putchar): Use map_char.
43484 (grub_console_getcharwidth): New function.
43485 (grub_console_term): Specified grub_console_getcharwidth as
43486 getcharwidth.
43487
43488 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
43489 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
43490
43491 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
43492 GRUB_ERRNO.
43493 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
43494 on grub_strtoul completely.
43495 (write_char): Declare local variables in the beginning of the
43496 function.
43497 (grub_vesafb_getcharwidth): New function.
43498 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
43499 getcharwidth.
43500
43501 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
43502
43503 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
43504 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
43505 commands/i386/pc/vbetest.c.
43506
43507 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
43508 call grub_vbe_get_controller_info again, because the returned
43509 information is volatile.
43510 (grub_vbe_set_video_mode): Mostly rewritten.
43511 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
43512 grub_vbe_status_t correctly.
43513 (grub_vbe_get_video_mode_info): Likewise.
43514 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
43515 several if statements.
43516
43517 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
43518 * commands/i386/pc/vbeinfo.c: ... this.
43519
43520 * commands/i386/pc/vbe_test.c: Renamed to ...
43521 * commands/i386/pc/vbetest.c: ... this.
43522
43523 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
43524 ...
43525 (grub_cmd_vbeinfo): ... this. Save video modes before
43526 iterating. Skip a video mode, if it is not available, not enough
43527 information is given or it is monochrome. Show the memory
43528 model. Leave the interpretation of MODEVAR to grub_strtoul
43529 completely.
43530 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
43531 (GRUB_MOD_FINI): Likewise.
43532
43533 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
43534 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
43535 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
43536 duplicated grub_env_get. Leave the interpretation of MODEVAR to
43537 grub_strtoul completely.
43538 (real2pm): Removed.
43539 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
43540 (GRUB_MOD_FINI): Likewise.
43541
43542 * normal/misc.c: Include grub/mm.h.
43543
43544 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
43545 vbe_list_modes with vbetest.mod and vbeinfo.mod.
43546 (vbe_list_modes_mod_SOURCES): Removed.
43547 (vbe_list_modes_mod_CFLAGS): Likewise.
43548 (vbe_test_mod_SOURCES): Likewise.
43549 (vbe_test_mod_CFLAGS): Likewise.
43550 (vbeinfo_mod_SOURCES): New variable.
43551 (vbeinfo_mod_CFLAGS): Likewise.
43552 (vbetest_mod_SOURCES): Likewise.
43553 (vbetest_mod_CFLAGS): Likewise.
43554
43555 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
43556
43557 * normal/misc.c: New file.
43558
43559 * DISTLIST: Added normal/misc.c.
43560
43561 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
43562 DISK to HOOK. Call HOOK with DISK.
43563 * partmap/apple.c (apple_partition_map_iterate): Likewise.
43564 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43565 * partmap/sun.c (sun_partition_map_iterate): Likewise.
43566
43567 * normal/menu_entry.c (struct screen): Added a new member
43568 "completion_shown".
43569 (completion_buffer): New global variable.
43570 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
43571 (store_completion): New function.
43572 (complete): Likewise.
43573 (clear_completions): Likewise.
43574 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
43575 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
43576 a tab, call complete.
43577
43578 * normal/completion.c (disk_dev): Removed.
43579 (print_simple_completion): Likewise.
43580 (print_partition_completion): Likewise.
43581 (print_func): New global variable.
43582 (add_completion): Do not take the arguments WHAT or PRINT any
43583 longer. Added a new argument TYPE. Instead of printing directly,
43584 call PRINT_FUNC if not NULL.
43585 All callers changed.
43586 (complete_device): Use a local variable DEV instead of
43587 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
43588 (grub_normal_do_completion): Take a new argument HOOK. Do not
43589 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
43590 empty string, return NULL instead.
43591 All callers changed.
43592
43593 * normal/cmdline.c (print_completion): New function.
43594
43595 * kern/partition.c (grub_partition_iterate): Add an argument DISK
43596 to HOOK.
43597 All callers changed.
43598
43599 * kern/disk.c (grub_print_partinfo): Removed.
43600
43601 * include/grub/partition.h (struct grub_partition_map): Add a new
43602 argument DISK into HOOK of ITERATE.
43603 (grub_partition_iterate): Add a new argument DISK to HOOK.
43604
43605 * include/grub/normal.h (enum grub_completion_type): New enum.
43606 (grub_completion_type_t): New type.
43607 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
43608 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
43609 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
43610 (GRUB_COMPLETION_TYPE_FILE): Likewise.
43611 (grub_normal_do_completion): Added a new argument HOOK.
43612 (grub_normal_print_device_info): New prototype.
43613
43614 * include/grub/disk.h (grub_print_partinfo): Removed.
43615
43616 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
43617 (normal_mod_SOURCES): Likewise.
43618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43619 (normal_mod_SOURCES): Likewise.
43620
43621 * commands/ls.c (grub_ls_list_disks): Use
43622 grub_normal_print_device_info instead of grub_print_partinfo. Free
43623 PNAME.
43624 (grub_ls_list_files): Use grub_normal_print_device_info instead of
43625 duplicating the code.
43626
43627 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43628
43629 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
43630 follow GCS more precisely.
43631 * commands/i386/pc/vbe_test.c: Likewise.
43632 * include/grub/i386/pc/vbe.h: Likewise.
43633 * term/i386/pc/vesafb.c: Likewise.
43634 * video/i386/pc/vbe.c: Likewise.
43635
43636 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43637
43638 * DISTLIST: Added term/i386/pc/vesafb.c
43639 DISTLIST: Added video/i386/pc/vbe.c
43640 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
43641 DISTLIST: Added commands/i386/pc/vbe_test.c.
43642 * commands/i386/pc/vbe_list_modes.c: New file.
43643 * commands/i386/pc/vbe_test.c: Likewise.
43644 * term/i386/pc/vesafb.c: Likewise.
43645 * video/i386/pc/vbe.c: Likewise.
43646 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
43647 (grub_vbe_probe) Added prototype.
43648 (grub_vbe_set_video_mode) Likewise.
43649 (grub_vbe_get_video_mode) Likewise.
43650 (grub_vbe_get_video_mode_info) Likewise.
43651 (grub_vbe_set_pixel_rgb) Likewise.
43652 (grub_vbe_set_pixel_index) Likewise.
43653 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
43654 (pkgdata_MODULES): Added vesafb.mod.
43655 (pkgdata_MODULES): Added vbe_list_modes.mod.
43656 (pkgdata_MODULES): Added vbe_test.mod.
43657 (vbe_mod_SOURCES): Added.
43658 (vbe_mod_CFLAGS): Likewise.
43659 (vesafb_mod_SOURCES): Likewise.
43660 (vesafb_mod_CFLAGS): Likewise.
43661 (vbe_list_modes_mod_SOURCES): Likewise.
43662 (vbe_list_modes_mod_CFLAGS): Likewise.
43663 (vbe_test_mod_SOURCES): Likewise.
43664 (vbe_test_mod_CFLAGS): Likewise.
43665
43666 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
43667
43668 * normal/command.c (grub_command_execute): If INTERACTIVE is
43669 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
43670 CMDLINE. Disable the pager if INTERACTIVE is true.
43671 All callers are changed.
43672
43673 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
43674 before reading a config file.
43675 * normal/main.c (read_config_file): Even if a command is not
43676 found, register it if it is within an entry.
43677
43678 * util/grub-emu.c: Include sys/types.h and unistd.h.
43679 (options): Added --hold.
43680 (struct arguments): Added a new member "hold".
43681 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
43682 missing.
43683 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
43684 cleared by a debugger, if it is not zero.
43685
43686 * include/grub/normal.h (grub_command_execute): Add an argument
43687 INTERACTIVE.
43688
43689 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
43690
43691 * DISTLIST: Added include/grub/i386/pc/vbe.h.
43692
43693 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
43694
43695 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
43696 program with another one, because the old one didn't detect a bug
43697 in gcc-3.4. Always use regparm 2, because the new test is still
43698 not enough for gcc-4.0. Someone must investigate a simple test
43699 case which detects a bug in gcc-4.0.
43700
43701 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
43702
43703 * DISTLIST: Added normal/completion.c.
43704
43705 * normal/completion.c: New file.
43706
43707 * term/i386/pc/console.c (grub_console_getwh): New function.
43708 (grub_console_term): Assign grub_console_getwh to getwh.
43709
43710 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
43711 function is defined in normal/completion.c as
43712 grub_normal_do_completion.
43713 (grub_cmdline_get): Use grub_normal_do_completion instead of
43714 grub_tab_complete.
43715
43716 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
43717 returns non-zero, otherwise return 0.
43718 (grub_partition_iterate): First, probe the partition map. Then,
43719 call ITERATE only for this partition map.
43720
43721 * kern/misc.c (grub_strncmp): Rewritten.
43722
43723 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
43724 returns non-zero. Otherwise return 0.
43725
43726 * include/grub/partition.h (grub_partition_map_iterate): Return
43727 int instead of void.
43728
43729 * include/grub/normal.h (grub_normal_do_completion): New prototype.
43730
43731 * include/grub/misc.h (grub_strncmp): Change the type of N to
43732 grub_size_t.
43733
43734 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
43735 of void.
43736
43737 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
43738 unsigned explicitly before comparing it with I.
43739
43740 * kern/main.c (grub_env_write_root): Add the attribute unused into
43741 VAR.
43742
43743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43744 normal/completion.c.
43745 (normal_mod_SOURCES): Likewise.
43746 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43747 (normal_mod_SOURCES): Likewise.
43748
43749 * normal/command.c (grub_iterate_commands): If ITERATE returns
43750 non-zero, return one immediately.
43751
43752 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
43753
43754 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
43755 * kern/i386/pc/startup.S: Updated Global Descriptor table's
43756 descriptions.
43757 (grub_vbe_get_controller_info): New function.
43758 (grub_vbe_get_mode_info): Likewise.
43759 (grub_vbe_set_mode): Likewise.
43760 (grub_vbe_get_mode): Likewise.
43761 (grub_vbe_set_memory_window): Likewise.
43762 (grub_vbe_get_memory_window): Likewise.
43763 (grub_vbe_set_scanline_length): Likewise.
43764 (grub_vbe_get_scanline_length): Likewise.
43765 (grub_vbe_set_display_start): Likewise.
43766 (grub_vbe_get_display_start): Likewise.
43767 (grub_vbe_set_palette_data): Likewise.
43768 * include/grub/i386/pc/vbe.h: New file.
43769
43770 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43771
43772 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
43773 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
43774 * DISTLIST: Likewise.
43775 * kern/ieee1275/of.c: Moved to ...
43776 * kern/ieee1275/ieee1275.c: ... here.
43777
43778 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43779
43780 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
43781 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
43782 Pass 0 as `end' parameter to grub_strtoul().
43783
43784 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43785
43786 * include/grub/powerpc/ieee1275/console.h: Do not include
43787 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
43788 ifdef.
43789 (grub_console_cur_color): Remove i386-specific prototype.
43790 (grub_console_real_putchar): Likewise.
43791 (grub_console_checkkey): Likewise.
43792 (grub_console_getkey): Likewise.
43793 (grub_console_getxy): Likewise.
43794 (grub_console_gotoxy): Likewise.
43795 (grub_console_cls): Likewise.
43796 (grub_console_setcursor): Likewise.
43797 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
43798 Include <grub/machine/console.h>.
43799 * term/ieee1275/ofconsole.c: Likewise.
43800
43801 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
43802
43803 * Makefile.in (LIBLZO): New variable.
43804
43805 * configure.ac: Check for LZO version 2.
43806
43807 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
43808 lzo/lzo1x.h instead of lzo1x.h.
43809
43810 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
43811 of -llzo.
43812
43813 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
43814 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
43815
43816 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
43817 copying the data from PARTITION to P.
43818
43819 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43820
43821 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
43822 negative, unload the module.
43823
43824 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
43825 map is "pc_partition_map" but not "pc".
43826 (usage): Fix the description. The options are --boot-image and
43827 --core-image but not --boot-file or --core-file.
43828 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
43829 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
43830 DEFAULT_DIRECTORY.
43831
43832 * util/i386/pc/grub-install.in: Do not specify --boot-file or
43833 --core-file. Specify INSTALL_DEVICE as an argument.
43834
43835 * util/console.c: Include config.h.
43836 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
43837 [HAVE_NCURSES_H]: Include ncurses.h.
43838 [HAVE_CURSES_H]: Include curses.h.
43839 [!A_NORMAL] (A_NORMAL): Defined as zero.
43840 [!A_STANDOUT] (A_STANDOUT): Likewise.
43841
43842 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
43843 -lncurses.
43844 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
43845
43846 * configure.ac: Check for curses libraries and headers.
43847
43848 * Makefile.in (LIBCURSES): New variable.
43849
43850 * genmk.rb (Script::rule): Set the executable bits.
43851
43852 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
43853 name of the PC partition map is "pc_partition_map" but not "pc".
43854
43855 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43856
43857 * util/i386/pc/grub-install.in (grub_probefs): New variable.
43858 (modules): Likewise.
43859 (usage): Added descriptions for --modules and --grub-probefs.
43860 Handle --modules and --grub-probefs. Save the arguments in MODULES
43861 and GRUB_PROBEFS, respectively.
43862 Auto-detect a filesystem module against GRUBDIR. If the result is
43863 empty and modules are not specified explicitly, abort the
43864 installation. Add the result to MODULES.
43865
43866 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
43867 disk/powerpc/ieee1275/ofdisk.c,
43868 include/grub/powerpc/ieee1275/init.h and
43869 term/powerpc/ieee1275/ofconsole.c.
43870 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
43871 term/ieee1275/ofconsole.c.
43872
43873 * include/grub/powerpc/ieee1275/console.h: Resurrected.
43874
43875 * COPYING: Upgraded to the latest version. Only the address of the
43876 FSF office has changed.
43877
43878 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43879
43880 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
43881 kern/ieee1275.c with kern/ieee1275/of.c.
43882
43883 * kern/ieee1275.c: Moved to ...
43884 * kern/ieee1275/of.c: ... here.
43885
43886 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
43887
43888 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
43889 readability.
43890
43891 * config.guess: Updated to the latest version from gnulib.
43892 * config.sub: Likewise.
43893 * install.sh: Likewise.
43894 * mkinstalldirs: Likewise.
43895
43896 * include/grub/console.h: Removed. This file is arch-specific. Do
43897 not put this in include/grub.
43898
43899 * include/grub/i386/pc/console.h: Resurrected.
43900
43901 * util/console.c: Include grub/machine/console.h instead of
43902 grub/console.h.
43903 * util/grub-emu.c: Likewise.
43904
43905 2005-08-04 Marco Gerards <metgerards@student.han.nl>
43906
43907 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
43908 hardcoded value.
43909
43910 From Vincent Pelletier <subdino2004@yahoo.fr>
43911 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
43912 Redefined to use grub_getwh.
43913 (grub_term): New member named getwh.
43914 (grub_getwh): New prototype.
43915 * kern/term.c (grub_getwh): New function.
43916 * term/i386/pc/console.c (grub_console_getwh): New function.
43917 (grub_console_term): New member `getwh'.
43918 * term/i386/pc/vga.c (grub_vga_getwh): New function.
43919 (grub_vga_term): New member `getwh'.
43920 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
43921 grub_ssize_t.
43922 (grub_ofconsole_getw): New function.
43923 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
43924 (grub_ofconsole_term): New field named getwh and new initial
43925 value.
43926
43927 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
43928
43929 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
43930 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
43931 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
43932 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
43933 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
43934 of <grub/machine/ieee1275.h>.
43935 * commands/ieee1275/reboot.c: Likewise.
43936 * boot/powerpc/ieee1275/ieee1275.c: Move ...
43937 * kern/ieee1275.c: ... to here. All users updated. Change all
43938 parameter structs to use new type `grub_ieee1275_cell_t'.
43939 * term/powerpc/ieee1275/ofconsole.c: Move ...
43940 * term/ieee1275/ofconsole.c: ... to here. All users updated.
43941 * disk/powerpc/ieee1275/ofdisk.c: Move ...
43942 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
43943 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
43944 to return int.
43945 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
43946 Remove unused prototypes. All users updated.
43947 * include/grub/powerpc/ieee1275/console.h: Removed.
43948 * include/grub/powerpc/ieee1275/ieee1275.h: Define
43949 `grub_ieee1275_cell_t'.
43950 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
43951 Cast comparisons with -1 to the correct type.
43952 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
43953 type to match `grub_ieee1275_entry_fn'.
43954
43955 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
43956
43957 * DISTLIST: Added util/i386/pc/grub-probefs.c.
43958
43959 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
43960 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
43961 partmap/sun.c.
43962 (grub_probefs_SOURCES): New variable.
43963
43964 * util/i386/pc/grub-probefs.c: New file.
43965
43966 * util/i386/pc/grub-setup.c (main): Call
43967 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
43968 grub_hfs_init and grub_jfs_init to initialize the system. Call
43969 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
43970 grub_pc_partition_map_fini to finish the system.
43971
43972 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
43973
43974 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
43975 function.
43976 (grub_multiboot_load_elf32): Likewise.
43977 (grub_multiboot_is_elf64): Likewise.
43978 (grub_multiboot_load_elf64): Likewise.
43979 (grub_multiboot_load_elf): Likewise.
43980 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
43981 an ELF32 or ELF64 file.
43982 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
43983
43984 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
43985 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
43986 NULL before calling FS->LABEL.
43987 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
43988 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
43989 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
43990 before calling FS->LABEL.
43991
43992 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
43993
43994 * util/i386/pc/grub-install.in (datadir): New variable.
43995 (libdir): Removed.
43996 (pkgdatadir): New variable.
43997 (pkglibdir): Removed.
43998
43999 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44000
44001 * DISTLIST: Added util/i386/pc/grub-install.in.
44002
44003 * util/i386/pc/grub-install.in: New file.
44004
44005 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44006 (grub_install_SOURCES): Likewise.
44007
44008 * genmk.rb: Added support for scripts.
44009 (Script): New class.
44010 (scripts): New variable.
44011
44012 * Makefile.in (install-local): Install sbin_SCRIPTS by
44013 INSTALL_SCRIPT.
44014 (uninstall): Remove sbin_SCRIPTS.
44015
44016 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44017 device, try to get a GRUB device by
44018 grub_util_biosdisk_get_grub_dev.
44019 Free DEST_DEV.
44020
44021 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44022 description for --device-map.
44023
44024 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44025
44026 Change the semantics of variable hooks. They now return strings
44027 instead of error values.
44028
44029 * util/i386/pc/grub-setup.c: Include grub/env.h.
44030 (setup): Use grub_device_set_root instead of grub_env_set.
44031
44032 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44033 grub_env_get instead of grub_device_set_root and
44034 grub_device_get_root, respectively.
44035
44036 * kern/main.c (grub_env_write_root): New function.
44037 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44038 grub_env_set instead of grub_device_set_root.
44039
44040 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44041 many variables.
44042 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44043 rather than calling ENV->WRITE_HOOK afterwards.
44044 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44045 passing a pointer of a pointer.
44046 (grub_register_variable_hook): Change the types of "read_hook" and
44047 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44048 respectively.
44049 Allocate the default empty string on the heap, because this string
44050 may be freed later.
44051
44052 * kern/device.c: Include grub/env.h.
44053 (grub_device_set_root): Removed.
44054 (grub_device_get_root): Likewise.
44055 (grub_device_open): Use grub_env_get instead of
44056 grub_device_get_root.
44057
44058 * include/grub/env.h (grub_env_read_hook_t): New type.
44059 (grub_env_write_hook_t): Likewise.
44060 (grub_env_var): Change the types of "read_hook" and "write_hook"
44061 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44062 (grub_register_variable_hook): Likewise.
44063
44064 * include/grub/device.h (grub_device_set_root): Removed.
44065 (grub_device_set_root): Likewise.
44066
44067 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44068 make sure that DIRNAME terminates with '/', so that
44069 grub_fat_find_dir will fail if PATH is not a directory.
44070
44071 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44072 from DIRNAME.
44073 Use the qualifier auto for print_files and print_files_long.
44074 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44075 as a regular file.
44076 Put a newline only if there is no error.
44077 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44078 used.
44079
44080 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44081
44082 * kern/partition.c (grub_partition_probe): Initialize PART to
44083 NULL. Otherwise, when no partition map is registered, this returns
44084 a garbage.
44085
44086 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44087
44088 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44089 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44090 valid.
44091
44092 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44093
44094 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44095 information on each device, if it does not have partitions. Print
44096 "Device" instead of "Disk", because this function is not specific
44097 to disk devices.
44098
44099 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44100 static to ensure that it is put on the memory rather than a
44101 register.
44102
44103 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44104
44105 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44106 (grub_cat_init): Likewise.
44107 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44108 (options): Likewise.
44109 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44110 (grub_configfile_init): Likewise.
44111 * font/manager.c (GRUB_MOD_INIT): Likewise.
44112 * commands/help.c (GRUB_MOD_INIT): Likewise.
44113 (grub_help_init): Likewise.
44114 * normal/command.c (grub_command_init): Likewise.
44115 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44116 * disk/loopback.c (grub_loop_init): Likewise.
44117 (GRUB_MOD_INIT): Likewise.
44118 * commands/ls.c (grub_ls_init): Likewise.
44119 (GRUB_MOD_INIT): Likewise.
44120 (options): Likewise.
44121 * commands/boot.c (grub_boot_init): Likewise.
44122 (GRUB_MOD_INIT): Likewise.
44123 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44124 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44125 (GRUB_MOD_INIT): Likewise.
44126 * commands/cmp.c (grub_cmp_init): Likewise.
44127 (GRUB_MOD_INIT): Likewise.
44128
44129 * normal/arg.c: Use <> instead of "" to include header files.
44130 (SHORT_ARG_HELP): New macro.
44131 (SHORT_ARG_USAGE): Likewise.
44132 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44133 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44134 descriptions.
44135 (find_short): Check if C is 'h' or 'u' explicitly.
44136 (grub_arg_show_help): Use space characters instead of tabs. Treat
44137 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44138 are shown with --help and --usage only if they are not used for
44139 the command itself.
44140 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44141 'h' and 'u'.
44142
44143 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44144 const into "longarg". Change the type of "shortarg" to int.
44145
44146 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44147
44148 * boot/i386/pc/boot.S (boot_drive_check): New label.
44149
44150 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44151 macro.
44152
44153 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44154 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44155
44156 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44157
44158 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44159 When turning off Gate A20, skip the check and return immediately,
44160 because this is not fatal usually.
44161
44162 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44163
44164 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44165 be 0x7C00 instead of 0x8000.
44166
44167 * boot/i386/pc/pxeboot.S: Rewritten.
44168
44169 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44170 EXT_C.
44171 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44172 result.
44173
44174 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44175
44176 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44177 robustness. This routine now supports a BIOS call and System
44178 Control Port A to modify the gate A20.
44179
44180 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44181 Increased to 0x440.
44182
44183 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44184
44185 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44186 device path and resulting ihandle.
44187 (grub_ofdisk_close): dprintf the ihandle being closed.
44188 (grub_ofdisk_read): dprintf function parameters.
44189 * kern/mm.c (grub_mm_init_region): Likewise.
44190 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44191 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44192 size, and boot arguments.
44193 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44194 before loading into memory.
44195 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44196 before loading into memory.
44197
44198 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44199
44200 * kern/mm.c: Added much documentation.
44201 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44202 8, set to 5 instead of 8.
44203
44204 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44205
44206 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44207
44208 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44209 (grub_mkdevicemap_SOURCES): New variable.
44210
44211 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44212 lib/device.c of GRUB Legacy.
44213
44214 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44215
44216 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44217 instead of PATH is NULL.
44218
44219 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44220
44221 * commands/cmp.c (BUFFER_SIZE): New macro.
44222 (grub_cmd_cmp): Close the right file at the right time. Compare
44223 only data just read. Don't report files of different size as
44224 identical. Dynamically allocate buffers. Move variable
44225 declarations at the beginning of function.
44226
44227 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44228
44229 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44230 reverse.
44231
44232 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44233
44234 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44235 when backspace is pressed at beginning of line.
44236
44237 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44238
44239 * DISTLIST: Added genfslist.sh.
44240
44241 * normal/main.c (fs_module_list): New variable.
44242 (autoload_fs_module): New function.
44243 (read_fs_list): Likewise.
44244 (grub_normal_execute): Call read_fs_list.
44245
44246 * kern/fs.c (grub_fs_autoload_hook): New variable.
44247 (grub_fs_probe): Added support for auto-loading.
44248
44249 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44250 (grub_fs_module_list_t): New type.
44251
44252 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44253 (grub_fs_autoload_hook): New prototype.
44254
44255 * genfslist.sh: New file.
44256
44257 * genmk.rb: Added a rule to generate a filesystem list.
44258
44259 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44260
44261 * configure.ac: Fix the test for cross-compiling.
44262
44263 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44264 define GRUB_UTIL anymore.
44265
44266 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
44267 so this function works on other systems than just big endian.
44268 (load_modules): Likewise.
44269 (add_segments): Likewise.
44270
44271 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
44272
44273 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
44274 contains `l' modifier, get a long from va_arg().
44275
44276 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
44277
44278 * kern/mm.c (grub_free): If the next free block which is being
44279 merged is the first free block, set the first block to the block
44280 being freed.
44281 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
44282
44283 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44284
44285 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
44286 `grub_ieee1275_chosen'.
44287
44288 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44289
44290 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
44291 (grub_ieee1275_chosen): New variable.
44292 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
44293 `chosen'.
44294 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
44295 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
44296 Rename first argument to `phandle' for consistency.
44297 (grub_ieee1275_get_property_length): Likewise.
44298 (grub_ieee1275_next_property): Likewise. Change type of first argument
44299 to grub_ieee1275_phandle_t.
44300 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
44301 Move export next to declaration.
44302 (grub_ieee1275_chosen): New variable.
44303 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
44304 Correct cosmetic typo.
44305 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
44306 `grub_ieee1275_chosen'.
44307 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
44308 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
44309 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
44310 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
44311 `grub_ieee1275_chosen'.
44312
44313 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
44314
44315 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
44316 /chosen/bootargs.
44317 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
44318 /chosen/bootargs as "variable=value" pairs.
44319
44320 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
44321
44322 * include/grub/misc.h (grub_dprintf): New macro.
44323 (grub_real_dprintf): New prototype.
44324 (grub_strword): Likewise.
44325 (grub_iswordseparator): Likewise.
44326 * kern/misc.c (grub_real_dprintf): New function.
44327 (grub_strword): Likewise.
44328 (grub_iswordseparator): Likewise.
44329
44330 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
44331
44332 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
44333 (roundup): Remove macro.
44334 (grub_ieee1275_flags): Make static.
44335 (grub_ieee1275_realmode): Remove.
44336 (grub_ieee1275_test_flag): New function.
44337 (grub_ieee1275_set_flag): Likewise.
44338 (find_options): Rename to `grub_ieee1275_find_options'; update
44339 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
44340 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
44341 (cmain): New prototype.
44342 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
44343 `grub_ieee1275_flags' directly.
44344 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
44345 machine/biosdisk.h.
44346 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
44347 Don't include grub/machine/init.h.
44348 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
44349 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
44350 Remove prototype.
44351 (grub_ieee1275_realmode): Likewise.
44352 (grub_ieee1275_flag): New enum.
44353 (grub_ieee1275_test_flag): New prototype.
44354 (grub_ieee1275_set_flag): New prototype.
44355 * include/grub/powerpc/ieee1275/init.h: Remove file.
44356 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
44357 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
44358 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
44359 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
44360 comment.
44361 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
44362 `grub_ieee1275_test_flag'.
44363 (grub_ieee1275_encode_devname): Likewise.
44364
44365 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
44366
44367 * include/grub/powerpc/ieee1275/ieee1275.h
44368 (grub_ieee1275_encode_devname): New prototype.
44369 (grub_ieee1275_get_filename): Likewise.
44370 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
44371 function.
44372 (grub_set_prefix): Likewise.
44373 (grub_machine_init): Call grub_set_prefix.
44374 * kern/powerpc/ieee1275/openfw.c: Fix typos.
44375 (grub_parse_type): New enum.
44376 (grub_ieee1275_get_devargs): New function.
44377 (grub_ieee1275_get_devname): Likewise.
44378 (grub_ieee1275_parse_args): Likewise.
44379 (grub_ieee1275_get_filename): Likewise.
44380 (grub_ieee1275_encode_devname): Likewise.
44381
44382 2005-03-30 Marco Gerards <metgerards@student.han.nl>
44383
44384 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
44385 `grub_loader_unset'.
44386
44387 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
44388
44389 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
44390 instead of grub_ieee1275_interpret.
44391 (grub_halt_init): New function.
44392 (grub_halt_fini): Likewise.
44393 (GRUB_MOD_INIT): Correct message grammar.
44394 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
44395 instead of grub_ieee1275_interpret.
44396 (grub_reboot_init): New function.
44397 (grub_reboot_fini): Likewise.
44398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
44399 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
44400 util/i386/pc/misc.c with commands/ieee1275/halt.c,
44401 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
44402 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
44403 function.
44404 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
44405 Add prototype.
44406 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
44407 prototype.
44408 (grub_halt): Likewise.
44409 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
44410 (cmain): Remove __attribute__((unused)).
44411 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
44412 (grub_heap_len): Likewise.
44413 (grub_machine_fini): New function.
44414 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
44415 (grub_halt): Likewise.
44416 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
44417 function.
44418 * util/powerpc/ieee1275/misc.c: New file.
44419
44420 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44421
44422 * DISTLIST: New file.
44423 * gendistlist.sh: Likewise.
44424
44425 * Makefile.in (COMMON_DISTFILES): Removed.
44426 (BOOT_DISTFILES): Likewise.
44427 (CONF_DISTFILES): Likewise.
44428 (DISK_DISTFILES): Likewise.
44429 (FS_DISTFILES): Likewise.
44430 (INCLUDE_DISTFILES): Likewise.
44431 (KERN_DISTFILES): Likewise.
44432 (LOADER_DISTFILES): Likewise.
44433 (TERM_DISTFILES): Likewise.
44434 (UTIL_DISTFILES): Likewise.
44435 (DISTFILES): Likewise.
44436 (uninstall): Uninstall files in $(pkgdata_DATA).
44437 (DISTLIST): New target.
44438 (distdir): Use the contents of the file DISTLIST to get a list of
44439 distributed files.
44440
44441 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44442
44443 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
44444 descriptor. This is ported from GRUB Legacy.
44445
44446 * gencmdlist.sh: Added an extra semicolon to make it work with
44447 old sed versions. Reported by Robert Bihlmeyer
44448 <robbe@orcus.priv.at>.
44449
44450 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
44451
44452 Automatic loading of commands is supported.
44453
44454 * normal/main.c (read_command_list): New function.
44455 (grub_normal_execute): Call read_command_list.
44456
44457 * normal/command.c (grub_register_command): Return zero or CMD.
44458 Allocate CMD->NAME from the heap.
44459 Initialize CMD->MODULE_NAME to zero.
44460 Find the same name as well. If the same command is found and it is
44461 a dummy command, overwrite members. If it is not a dummy command,
44462 return zero.
44463 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
44464 (grub_command_find): If a dummy command is found, load a module
44465 and retry to find a command only once.
44466
44467 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
44468 make sure that each command is loaded.
44469
44470 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
44471 macro.
44472 (struct grub_command): Remove const from the member `name'.
44473 Add a new member `module_name'.
44474 (grub_register_command): Return grub_command_t.
44475
44476 * commands/help.c (grub_cmd_help): Call grub_command_find to make
44477 sure that each command is loaded.
44478
44479 * genmk.rb (PModule::rule): Specify a module name without the
44480 suffix ".mod" to gencmdlist.sh.
44481
44482 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44483
44484 * gencmdlist.sh: New file.
44485
44486 * genmk.rb (PModule::rule): Generate a rule for a command list.
44487 Clean command.lst.
44488 Generate command.lst from $(COMMANDFILES).
44489
44490 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
44491 (DATA): Added $(pkgdata_DATA).
44492 (install-local): Install files in $(pkgdata_DATA).
44493
44494 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44495
44496 * term/i386/pc/vga.c (debug_command): Removed.
44497 (GRUB_MOD_INIT): Do not register the command "debug".
44498
44499 From Hollis Blanchard:
44500 * commands/configfile.c: New file.
44501 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44502 commands/configfile.c.
44503 (pkgdata_MODULES): Added configfile.mod.
44504 (configfile_mod_SOURCES): New variable.
44505 (configfile_mod_CFLAGS): Likewise.
44506 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44507 commands/configfile.c.
44508 (pkgdata_MODULES): Added configfile.mod.
44509 (configfile_mod_SOURCES): New variable.
44510 (configfile_mod_CFLAGS): Likewise.
44511 * util/grub-emu.c (main): Call grub_configfile_init and
44512 grub_configfile_fini.
44513 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
44514 prototype.
44515 [GRUB_UTIL] (grub_configfile_fini): Likewise.
44516
44517 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44518
44519 * normal/arg.c (grub_arg_show_help): Do not show the bug report
44520 address.
44521
44522 * commands/help.c (grub_cmd_help): Do not print newlines after
44523 the last command in print_command_help.
44524
44525 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44526
44527 * commands/default.h: New file.
44528 * commands/timeout.h: Likewise.
44529 * normal/context.c: Likewise.
44530
44531 * util/misc.c: Do not include sys/times.h.
44532 Include sys/time.h and grub/machine/time.h.
44533 (grub_get_rtc): Rewritten with gettimeofday.
44534
44535 * util/grub-emu.c (main): Call grub_default_init and
44536 grub_timeout_init before grub_normal_init, and call
44537 grub_timeout_fini and grub_default_fini after grub_main.
44538
44539 * util/console.c (grub_ncurses_checkkey): Return the read
44540 character or -1.
44541
44542 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
44543 timeouts.
44544
44545 * normal/main.c (read_config_file): Push MENU. If this fails,
44546 print an error and wait for a user input.
44547 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
44548 If a menu is empty or an error occurs, pop MENU.
44549 (grub_normal_execute): Pop and free MENU after grub_menu_run
44550 returns.
44551
44552 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
44553
44554 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
44555 include time.h.
44556 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44557 without GRUB_UTIL.
44558 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
44559 time.h.
44560 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44561 without GRUB_UTIL.
44562
44563 * include/grub/normal.h (struct grub_menu_list): New struct.
44564 (grub_menu_list_t): New type.
44565 (struct grub_context): New struct.
44566 (grub_context_t): New type.
44567 (grub_register_command): Got rid of EXPORT_FUNC.
44568 (grub_unregister_command): Likewise.
44569 (grub_context_get): New prototype.
44570 (grub_context_get_current_menu): Likewise.
44571 (grub_context_push_menu): Likewise.
44572 (grub_context_pop_menu): Likewise.
44573 [GRUB_UTIL] (grub_default_init): Likewise.
44574 [GRUB_UTIL] (grub_default_fini): Likewise.
44575 [GRUB_UTIL] (grub_timeout_init): Likewise.
44576 [GRUB_UTIL] (grub_timeout_fini): Likewise.
44577
44578 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
44579 commands/timeout.c and normal/context.c.
44580 (pkgdata_MODULES): Added default.mod and timeout.mod.
44581 (normal_mod_SOURCES): Added normal/context.c.
44582 (default_mod_SOURCES): New variable.
44583 (default_mod_CFLAGS): Likewise.
44584 (timeout_mod_SOURCES): Likewise.
44585 (timeout_mod_CFLAGS): Likewise.
44586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
44587 conf/i386-pc.rmk.
44588 (pkgdata_MODULES): Added default.mod and timeout.mod.
44589 (normal_mod_SOURCES): Added normal/context.c.
44590 (default_mod_SOURCES): New variable.
44591 (default_mod_CFLAGS): Likewise.
44592 (timeout_mod_SOURCES): Likewise.
44593 (timeout_mod_CFLAGS): Likewise.
44594
44595 * Makefile.in (all-local): Added $(MKFILES).
44596
44597 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
44598
44599 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
44600 (grub_emu_SOURCES): Likewise.
44601 (pkgdata_MODULES): Add `sun.mod'.
44602 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44604 `partmap/sun.c'.
44605 (pkgdata_MODULES): Add `sun.mod'.
44606 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44607 * include/grub/partition.h (grub_sun_partition_map_init): New
44608 prototype.
44609 (grub_sun_partition_map_fini): Likewise.
44610 * partmap/sun.c: New file.
44611 * util/grub-emu.c (main): Initialize and de-initialize the sun
44612 partitionmap support.
44613
44614 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
44615
44616 This implements an Emacs-like menu entry editor.
44617
44618 * normal/menu_entry.c: New file.
44619
44620 * util/console.c (grub_ncurses_putchar): Translate some Unicode
44621 characters to ASCII.
44622 (saved_char): New variable.
44623 (grub_ncurses_checkkey): Rewritten completely.
44624 (grub_ncurses_getkey): Likewise.
44625 (grub_ncurses_init): Call raw instead of cbreak.
44626
44627 * normal/menu.c (print_entry): Do not put a space.
44628 (init_page): Renamed to ...
44629 (grub_menu_init_page): ... this. All callers changed.
44630 (edit_menu_entry): Removed.
44631 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
44632
44633 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
44634
44635 * kern/misc.c (grub_vprintf): Call grub_refresh.
44636
44637 * normal/menu.c (DISP_LEFT): Renamed to ...
44638 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
44639 * normal/menu.c (DISP_UP): Renamed to ...
44640 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
44641 * normal/menu.c (DISP_RIGHT): Renamed to ...
44642 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
44643 * normal/menu.c (DISP_DOWN): Renamed to ...
44644 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
44645 * normal/menu.c (DISP_HLINE): Renamed to ...
44646 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
44647 * normal/menu.c (DISP_VLINE): Renamed to ...
44648 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
44649 * normal/menu.c (DISP_UL): Renamed to ...
44650 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
44651 * normal/menu.c (DISP_UR): Renamed to ...
44652 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
44653 * normal/menu.c (DISP_LL): Renamed to ...
44654 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
44655 * normal/menu.c (DISP_LR): Renamed to ...
44656 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
44657 * normal/menu.c (TERM_WIDTH): Renamed to ...
44658 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
44659 * normal/menu.c (TERM_HEIGHT): Renamed to ...
44660 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
44661 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
44662 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
44663 * normal/menu.c (TERM_MARGIN): Renamed to ...
44664 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
44665 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
44666 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
44667 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
44668 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
44669 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
44670 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
44671 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
44672 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
44673 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
44674 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
44675 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
44676 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
44677 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
44678 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
44679 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
44680 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
44681 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
44682 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
44683 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
44684 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
44685 All callers changed.
44686
44687 * include/grub/normal.h: New prototype.
44688
44689 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44690 normal/menu_entry.c.
44691 (normal_mod_SOURCES): Likewise.
44692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44693 (normal_mod_SOURCES): Likewise.
44694
44695 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
44696
44697 * include/grub/normal.h (grub_halt_init): New prototype.
44698 (grub_halt_fini): Likewise.
44699 (grub_reboot_init): Likewise.
44700 (grub_reboot_fini): Likewise.
44701
44702 * util/grub-emu.c: Include signal.h.
44703 (main_env): New global variable.
44704 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
44705 catch C-c.
44706 (grub_machine_fini): New function.
44707 (main): Call grub_halt_init and grub_reboot_init before
44708 grub_main, and grub_reboot_fini and grub_halt_fini after it.
44709 Call setjmp with MAIN_ENV to go back afterwards.
44710 Call grub_machine_fini right before return.
44711
44712 * include/grub/util/misc.h: Include setjmp.h.
44713 (main_env): New prototype.
44714
44715 * include/grub/kernel.h (grub_machine_fini): New prototype.
44716 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
44717 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
44718
44719 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
44720 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
44721 * term/i386/pc/console.c (grub_console_fini): Likewise.
44722
44723 * util/i386/pc/misc.c: New file.
44724
44725 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44726 util/i386/pc/misc.c, commands/i386/pc/halt.c and
44727 commands/i386/pc/reboot.c.
44728
44729 2005-02-14 Guillem Jover <guillem@hadrons.org>
44730
44731 * include/grub/dl.h (grub_dl_check_header): New prototype.
44732 (grub_arch_dl_check_header): Change return type to grub_err_t,
44733 remove size parameter and export function. Update all callers.
44734 * kern/dl.c (grub_dl_check_header): New function.
44735 (grub_dl_load_core): Use `grub_dl_check_header' instead of
44736 `grub_arch_dl_check_header'. Check ELF type. Check if sections
44737 are inside the core.
44738 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
44739 independent ELF header checks.
44740 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
44741 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
44742 `grub_dl_check_header' instead of explicit checks. Check for the
44743 ELF type.
44744 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
44745 `grub_dl_check_header' instead of explicit checks. Remove arch
44746 specific ELF header checks.
44747
44748 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
44749 argument SIZE.
44750
44751 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
44752
44753 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
44754 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
44755
44756 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
44757
44758 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
44759 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
44760 (part_map_iterate): Clear `grub_errno' and return 0 if
44761 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
44762 * partmap/amiga.c (amiga_partition_map_iterate): Return
44763 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
44764 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44765
44766 2005-02-01 Guillem Jover <guillem@hadrons.org>
44767
44768 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
44769 help info.
44770
44771 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44772
44773 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
44774 Removed prototype.
44775 (grub_rescue_cmd_linux): New prototype.
44776 (grub_rescue_cmd_initrd): Likewise.
44777 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
44778 `bi_rec'.
44779 (grub_linux_release_mem): Release the memory for the initrd.
44780 (grub_load_linux): Renamed from this...
44781 (grub_rescue_cmd_linux): ...To this. Changed all callers.
44782 Changed `entry' not to be static. Loop over memory regions to
44783 find another one when the default fails.
44784 (grub_rescue_cmd_initrd): New function.
44785 (grub_linux_init): Remove function.
44786 (grub_linux_fini): Likewise.
44787 (GRUB_MOD_INIT): Register `initrd'.
44788 (GRUB_MOD_FINI): Unregister `initrd'.
44789 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
44790 Function removed.
44791 (grub_linux_normal_fini): Likewise.
44792 (GRUB_MOD_INIT): Register `initrd'.
44793 (GRUB_MOD_FINI): Unregister `initrd'.
44794
44795 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44796
44797 * commands/help.c: New file.
44798 * normal/arg.c (show_help): Renamed to...
44799 (grub_arg_show_help): ... this.
44800 * commands/i386/pc/halt.c: New file.
44801 * commands/i386/pc/reboot.c: Likewise.
44802 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
44803 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
44804 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
44805 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
44806 variables.
44807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44808 `commands/help.c'.
44809 (pkgdata_MODULES): Add `help.mod'.
44810 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
44811 * grub/i386/pc/init.h (grub_reboot): New prototype.
44812 (grub_halt): Likewise.
44813 * include/grub/normal.h (grub_arg_show_help): New prototype.
44814 (grub_help_init): Likewise.
44815 (grub_help_fini): Likewise.
44816 * util/grub-emu.c (main): Initialize and deinitialize the help
44817 command.
44818
44819 * normal/cmdline.c (grub_cmdline_get): Doc fix.
44820
44821 * normal/command.c (grub_command_init): Fixed the description of
44822 the `set' and `unset' commands.
44823
44824 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44825
44826 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
44827 function.
44828 * commands/ieee1275/halt.c: New file.
44829 * commands/ieee1275/reboot.c: Likewise.
44830 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
44831 `__attribute__ ((unused))'. Some GCS related fixed.
44832 (grub_suspend_init) [GRUB_UTIL]: Function removed.
44833 (grub_suspend_fini): Likewise.
44834 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
44835 and `halt.mod'.
44836 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
44837 (halt_mod_CFLAGS): New variables.
44838 * include/grub/powerpc/ieee1275/ieee1275.h
44839 (grub_ieee1275_interpret): New prototype.
44840
44841 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
44842
44843 * include/grub/misc.h (memmove): New prototype.
44844 (memcpy): Likewise.
44845
44846 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
44847
44848 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
44849 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
44850
44851 2005-01-22 Marco Gerards <metgerards@student.han.nl>
44852
44853 * kern/misc.c (grub_strndup): Function rewritten.
44854
44855 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
44856
44857 * normal/menu.c (TERM_WIDTH): Macro redefined.
44858 (TERM_TOP_BORDER_Y): Likewise.
44859 (draw_border): Replaced while-loop by a for-loop. Make the number
44860 of lines consistent with the number of lines displayed in
44861 print_entries. Added a margin below the rectangle.
44862 (print_entry): Make the entry fit in the rectangle.
44863 (print_entries): Display the scroll arrows next to the right
44864 border.
44865
44866 2005-01-21 Marco Gerards <metgerards@student.han.nl>
44867
44868 * fs/minix.c (grub_minix_find_file): Reserve more space for
44869 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
44870 `grub_strncpy' to copy `path' into it.
44871
44872 2005-01-21 Marco Gerards <metgerards@student.han.nl>
44873
44874 Add the loopback device, a device via which files can be accessed
44875 as devices.
44876
44877 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
44878 (pkgdata_MODULES): Add loopback.mod.
44879 (loopback_mod_SOURCES): New variable.
44880 (loopback_mod_CFLAGS): Likewise.
44881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44882 `disk/loopback.c'.
44883 (pkgdata_MODULES): Add loopback.mod.
44884 (loopback_mod_SOURCES): New variable.
44885 (loopback_mod_CFLAGS): Likewise.
44886 * disk/loopback.c: new file.
44887 * include/grub/normal.h (grub_loop_init): New prototype.
44888 (grub_loop_fini): New prototype.
44889 * util/grub-emu.c (main): Initialize and de-initialize loopback
44890 support.
44891 * include/grub/disk.h (grub_disk_dev_id): Add
44892 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
44893
44894 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
44895
44896 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
44897 function.
44898 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
44899 (suspend_mod_SOURCES): New variable.
44900 (suspend_mod_CFLAGS): Likewise.
44901 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
44902 New prototype.
44903 * commands/ieee1275/suspend.c: New file.
44904
44905 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44906
44907 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
44908 ((unused))' to `__attribute__ ((used))'.
44909 (GRUB_MOD_FINI): Likewise.
44910 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
44911 * genmk.rb (PModule): Assign space to common symbols when linking
44912 modules.
44913
44914 2005-01-20 Marco Gerards <metgerards@student.han.nl>
44915
44916 * include/grub/mm.h (grub_mm_init_region): Change the type of the
44917 `unsigned' arguments to `grub_size_t'.
44918 (grub_malloc): Likewise.
44919 (grub_realloc): Likewise.
44920 (grub_memalign): Likewise.
44921 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
44922 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
44923 * util/misc.c (grub_malloc): Likewise.
44924 (grub_realloc): Likewise.
44925 * kern/mm.c (get_header_from_pointer): Change the casts to
44926 `unsigned' into a cast to `grub_size_t'.
44927
44928 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
44929 point to `currnode' when `currnode' is changed.
44930
44931 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
44932 Schottelius <nico-linux@schottelius.org>.
44933
44934 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
44935
44936 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
44937 (note_path): Remove variable.
44938 (GRUB_IEEE1275_NOTE_NAME): New macro.
44939 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
44940 (grub_ieee1275_note_hdr): New structure.
44941 (grub_ieee1275_note_desc): Likewise.
44942 (grub_ieee1275_note): Likewise.
44943 (load_note): Remove `dir' argument. All callers updated. Remove
44944 `note_img' and `path'. Do not load a file from `note_path'.
44945 Initialize a struct grub_ieee1275_note and write that to `out'.
44946 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
44947
44948 2005-01-05 Marco Gerards <metgerards@student.han.nl>
44949
44950 * util/misc.c (grub_util_read_image): Revert last change. It
44951 called `grub_util_read_at', which seeks from the beginning of the
44952 file.
44953
44954 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
44955
44956 * TODO: Add note about endianness in grub-mkimage.
44957 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
44958 section.
44959 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
44960 (grub_mkimage_SOURCES): New target.
44961 * include/grub/kernel.h (grub_start_addr): Remove variable.
44962 (grub_end_addr): Likewise.
44963 (grub_total_module_size): Likewise.
44964 (grub_kernel_image_size): Likewise.
44965 (GRUB_MODULE_MAGIC): New constant.
44966 (grub_module_info): New structure.
44967 (grub_arch_modules_addr): New prototype.
44968 (grub_get_end_addr): Remove prototype.
44969 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
44970 * include/grub/powerpc/ieee1275/kernel.h: New file.
44971 * include/grub/util/misc.h (grub_util_get_fp_size): New
44972 prototype.
44973 (grub_util_read_at): Likewise.
44974 (grub_util_write_image_at): Likewise.
44975 * kern/main.c (grub_get_end_addr): Remove function.
44976 (grub_load_modules): Call grub_arch_modules_addr instead of using
44977 grub_end_addr. Look for a grub_module_info struct in memory. Use
44978 the grub_module_info fields instead of calling grub_get_end_addr
44979 as loop conditions. Move grub_add_unused_region code here.
44980 (grub_add_unused_region): Remove function.
44981 * kern/i386/pc/init.c: Include grub/cache.h.
44982 (grub_machine_init): Remove call to grub_get_end_addr. Remove
44983 one call to add_mem_region.
44984 (grub_arch_modules_addr): New function.
44985 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
44986 (grub_total_module_size): Likewise.
44987 Include grub/machine/kernel.h.
44988 (grub_arch_modules_addr): New function.
44989 * util/grub-emu.c (grub_end_addr): Remove variable.
44990 (grub_total_module_size): Likewise.
44991 (grub_arch_modules_addr): New function.
44992 * util/misc.c: Include unistd.h.
44993 (grub_util_get_fp_size): New function.
44994 (grub_util_read_at): Likewise.
44995 (grub_util_write_image_at): Likewise.
44996 (grub_util_read_image): Call grub_util_read_at.
44997 (grub_util_write_image): Call grub_util_write_image_at.
44998 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
44999 additional memory in kernel_img for a struct grub_module_info.
45000 Fill in that grub_module_info.
45001 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45002
45003 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45004
45005 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45006 New function.
45007 * include/grub/powerpc/ieee1275/ieee1275.h
45008 (grub_ieee1275_milliseconds): New prototype.
45009 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45010 Change to 1000.
45011 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45012 grub_ieee1275_milliseconds.
45013
45014 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45015
45016 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45017 variable.
45018 (find_options): New function.
45019 (cmain): Call find_options.
45020 * include/grub/powerpc/ieee1275/ieee1275.h
45021 (grub_ieee1275_realmode): New extern variable.
45022 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45023 grub_map if grub_ieee1275_realmode is false.
45024
45025 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45026
45027 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45028 lines are inserted and make it work like readline. Reported by
45029 Vincent Pelletier <subdino2004@yahoo.fr>.
45030
45031 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45032
45033 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45034
45035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45036 `kern/powerpc/cache.S'.
45037
45038 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45039
45040 * genmk.rb: Handle the `Program' class in the main loop. Written
45041 by Johan Rydberg <jrydberg@gnu.org>.
45042 (Program): New class.
45043 (programs): New variable.
45044 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45045 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45046 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45047 (help_arch): Function removed.
45048 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45049 `powerpc/libgcc.h' and `loader.h'.
45050 (pkgdata_PROGRAMS): New variable.
45051 (sbin_UTILITIES): Variable removed.
45052 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45053 (grubof_SOURCES): Variable re-defined so it only includes the
45054 core functionality.
45055 (grubof_CFLAGS): Remove `-DGRUBOF'.
45056 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45057 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45058 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45059 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45060 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45061 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45062 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45063 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45064 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45065 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45066 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45067 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45068 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45069 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45070 (pc_mod_CFLAGS): New variables.
45071 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45072 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45073 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45074 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45075 Moved from here...
45076 * include/grub/i386/pc/init.h (grub_os_area_addr)
45077 (rub_os_area_size): ... to here.
45078 * include/grub/powerpc/ieee1275/ieee1275.h
45079 (grub_ieee1275_entry_fn): Export symbol.
45080 * include/grub/powerpc/ieee1275/init.h: New file.
45081 * include/grub/powerpc/libgcc.h: Likewise.
45082 * include/grub/cache.h: Likewise.
45083 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45084 <hollis@penguinppc.org>.
45085 * kern/dl.c: Include <grub/cache.h>.
45086 (grub_dl_flush_cache): New function.
45087 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45088 for this module.
45089 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45090 (grub_console_init): Removed prototypes.
45091 (grub_machine_init): Don't initialize the modules anymore.
45092 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45093 static.
45094 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45095 Macro undef removed.
45096 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45097 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45098 relocation `R_PPC_REL32'. Return an error when the relocation is
45099 unknown.
45100 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45101 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45102 * util/misc.c (grub_arch_sync_caches): Likewise.
45103
45104 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45105
45106 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45107 `symlist.c', add `grubof_symlist.c'.
45108 (symlist.c): Variable removed.
45109 (grubof_HEADERS): Variable added.
45110 (grubof_symlist.c): New target.
45111 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45112 `kernel_img_HEADERS'.
45113 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45114 * kern/powerpc/dl.c: New file.
45115 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45116 Function removed.
45117 (grub_arch_dl_relocate_symbols): Likewise.
45118 (grub_register_exported_symbols): Likewise.
45119
45120 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45121
45122 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45123 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45124 to fail instead. Reported by Vincent Pelletier
45125 <subdino2004@yahoo.fr>.
45126
45127 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45128 it is not allocated. Reported by Vincent Pelletier
45129 <subdino2004@yahoo.fr>.
45130
45131 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45132 output so the output looks better.
45133
45134 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45135
45136 Modulize the partition map support and add support for the amiga
45137 partition map.
45138
45139 * commands/ls.c: Include <grub/partition.h> instead of
45140 <grub/machine/partition.h>.
45141 * kern/disk.c: Likewise.
45142 * kern/rescue.c: Likewise.
45143 * loader/i386/pc/chainloader.c: Likewise.
45144 * normal/cmdline.c: Likewise.
45145 * kern/powerpc/ieee1275/init.c: Likewise.
45146 (grub_machine_init): Call `grub_pc_partition_map_init',
45147 `grub_amiga_partition_map_init' and
45148 `grub_apple_partition_map_init'.
45149 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45150 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45151 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45152 `partition.h' and `pc_partition.h'.
45153 (grub_setup_SOURCES): Remove
45154 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45155 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45156 (grub_emu_SOURCES): Likewise.
45157 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45158 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45159 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45161 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45162 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45163 (grubof_SOURCES): Likewise.
45164 * disk/i386/pc/partition.c: File removed.
45165 * disk/powerpc/ieee1275/partition.c: Likewise.
45166 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45167 * include/grub/i386/pc/partition.h: Likewise.
45168 * kern/partition.c: New file.
45169 * partmap/amiga.c: Likewise.
45170 * partmap/apple.c: Likewise.
45171 * partmap/pc.c: Likewise.
45172 * include/grub/partition.h: Likewise..
45173 * include/grub/pc_partition.h: Likewise.
45174 * util/grub-emu.c: Include <grub/partition.h> instead of
45175 <grub/machine/partition.h>.
45176 (main): Call `grub_pc_partition_map_init',
45177 `grub_amiga_partition_map_init' and
45178 `grub_apple_partition_map_init' and deinitialize afterwards.
45179 * util/i386/pc/biosdisk.c: Include `#include
45180 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45181 `<grub/machine/partition.h>'.
45182 * util/i386/pc/grub-setup.c: Likewise.
45183 * util/i386/pc/biosdisk.c: Likewise.
45184 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45185 partition information in case of a PC partition.
45186 * util/i386/pc/grub-setup.c: Include `#include
45187 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45188 `<grub/machine/partition.h>'.
45189 (setup): Only access the PC specific partition information in case
45190 of a PC partition.
45191
45192 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45193
45194 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45195 (grub_longjmp): Likewise.
45196 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45197 20.
45198 * normal/powerpc/setjmp.S: New file.
45199 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45200 `normal/powerpc/setjmp.S'.
45201 (grubof_CFLAGS): Add `-DGRUBOF'.
45202 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45203 [GRUB_UTIL && !GRUBOF].
45204
45205 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45206
45207 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45208 property named `name'. Correctly handle the error returned by
45209 `grub_ieee1275_finddevice' if a device can not be opened.
45210
45211 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45212
45213 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45214 `actual' for negativity.
45215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45216 kern/fshelp.c.
45217
45218 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45219
45220 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45221 (PAGE_OFFSET): New macro.
45222 (CRTC_ADDR_PORT): Likewise.
45223 (CRTC_DATA_PORT): Likewise.
45224 (START_ADDR_HIGH_REGISTER): Likewise.
45225 (START_ADDR_LOW_REGISTER): Likewise.
45226 (GRAPHICS_ADDR_PORT): Likewise.
45227 (GRAPHICS_DATA_PORT): Likewise.
45228 (READ_MAP_REGISTER): Likewise.
45229 (INPUT_STATUS1_REGISTER): Likewise.
45230 (INPUT_STATUS1_VERTR_BIT): Likewise.
45231 (page): New variable.
45232 (wait_vretrace): New function.
45233 (set_read_map): Likewise.
45234 (set_start_address): Likewise.
45235 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45236 the right page.
45237 (check_vga_mem): Take the page into account.
45238 (write_char): Likewise.
45239 (write_cursor): Likewise.
45240 (scroll_up): Likewise. Copy the page to the page that is not
45241 shown and switch between both pages.
45242 (grub_vga_putchar): Fix off by one error.
45243 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45244 account.
45245
45246 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45247
45248 Add support for iso9660 (including rockridge).
45249
45250 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45251 (iso9660_mod_SOURCES): New variable.
45252 (iso9660_mod_CFLAGS): Likewise.
45253 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45254 * include/grub/fs.h (grub_iso9660_init): New prototype.
45255 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45256 * fs/iso9660.c: New file.
45257
45258 * include/grub/misc.h (grub_strncat): New prototype.
45259 * kern/misc.c (grub_strncat): New function.
45260
45261 * fs/hfs.c (grub_hfs_mount): Translate the error
45262 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45263 * fs/jfs.c (grub_jfs_mount): Likewise.
45264 * fs/ufs.c (grub_ufs_mount): Likewise.
45265
45266 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
45267
45268 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
45269 which initialized BAT registers.
45270 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
45271 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45272 Move from here...
45273 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
45274 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45275 ... to here.
45276 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
45277 (grub_mapclaim): Likewise.
45278 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
45279 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
45280 hand.
45281
45282 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
45283
45284 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
45285 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
45286 -ffreestanding and -msoft-float.
45287
45288 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
45289
45290 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
45291 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
45292 set in grub_ieee1275_flags.
45293
45294 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
45295
45296 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
45297 prototype.
45298 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
45299 grub_console_init first.
45300 Change the memory range used for grub_ieee1275_claim and
45301 grub_mm_init_region.
45302 Print an error message if the claim fails.
45303 Include <grub/misc.h>.
45304
45305 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
45306
45307 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
45308 Call grub_children_iterate for device nodes of type `scsi',
45309 `ide', or `ata'.
45310 (grub_ofdisk_open): Remove manual device alias resolution.
45311 Fix memory leak when device cannot be opened.
45312 * include/grub/powerpc/ieee1275/ieee1275.h
45313 (grub_children_iterate): New prototype.
45314 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
45315 New function.
45316 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45317 Return -1 if args.size was -1.
45318
45319 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45320
45321 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
45322 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
45323 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
45324 Open Firmware's memory for it; claim memory from _start to _end.
45325 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
45326 (_end): New extern.
45327 (_start): Zero BSS from __bss_start to _end.
45328 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45329 New extern.
45330 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
45331
45332 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45333
45334 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
45335 -1 if args.base was -1.
45336
45337 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
45338
45339 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
45340 escape sequence instead of a literal ^L. Also call
45341 grub_ofconsole_gotoxy.
45342
45343 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
45344
45345 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
45346 void * arguments to grub_addr_t. All callers updated. Also make
45347 the `result' argument optional.
45348 (grub_ieee1275_release): change void * arguments to grub_addr_t.
45349 All callers updated.
45350
45351 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
45352
45353 * commands/ls.c (grub_ls_list_files): Use the string following the
45354 initial ')', if present, as the filesystem path.
45355 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
45356
45357 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
45358
45359 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
45360
45361 Make the source code of the menu interface more readable.
45362
45363 * normal/menu.c: Include grub/mm.h.
45364 (TERM_WIDTH): New macro.
45365 (TERM_HEIGHT): Likewise.
45366 (TERM_INFO_HEIGHT): Likewise.
45367 (TERM_MARGIN): Likewise.
45368 (TERM_SCROLL_WIDTH): Likewise.
45369 (TERM_TOP_BORDER_Y): Likewise.
45370 (TERM_LEFT_BORDER_X): Likewise.
45371 (TERM_BORDER_WIDTH): Likewise.
45372 (TERM_MESSAGE_HEIGHT): Likewise.
45373 (TERM_BORDER_HEIGHT): Likewise.
45374 (TERM_NUM_ENTRIES): Likewise.
45375 (TERM_FIRST_ENTRY_Y): Likewise.
45376 (TERM_ENTRY_WIDTH): Likewise.
45377 (TERM_CURSOR_X): Likewise.
45378 (draw_border): Use macros instead of magic numbers.
45379 (print_entry): Likewise.
45380 (print_entries): Likewise.
45381 (run_menu): Likewise. Also, handle the key 'e'.
45382 (run_menu_entry): Ignore empty command lines.
45383 (print_message): Added a new argument EDIT. If EDIT is true,
45384 print a different message.
45385 (init_page): Likewise.
45386 (edit_menu_entry): New function. Not implemented yet.
45387
45388 2004-09-17 Marco Gerards <metgerards@student.han.nl>
45389
45390 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
45391 can be loaded from normal mode.
45392
45393 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
45394 `multiboot.mod'.
45395 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
45396 (multiboot_mod_CFLAGS): New variables.
45397 * loader/i386/pc/linux_normal.c: New file.
45398 * loader/i386/pc/multiboot_normal.c: Likewise.
45399
45400 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
45401 attribute `unused'.
45402
45403 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
45404 `fdiro' to read the mode information from instead of `diro'.
45405
45406 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
45407 looking up a symlink.
45408
45409 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
45410 macro.
45411 * normal/command.c (grub_command_execute): Don't parse the
45412 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
45413 flags of the command.
45414
45415 * normal/menu.c (grub_menu_run): Fix typo.
45416
45417 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
45418
45419 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
45420
45421 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
45422 `y + 1' instead of `y - 1'.
45423
45424 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
45425
45426 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
45427
45428 From Hollis Blanchard <hollis@penguinppc.org>:
45429 * kern/misc.c (memmove): New alias for grub_memmove.
45430 (memcmp): New alias for grub_memcmp.
45431 (memset): New alias for grub_memset.
45432 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45433 Change "int handle" to "grub_ieee1275_phandle_t handle".
45434 * include/grub/powerpc/ieee1275/ieee1275.h
45435 (grub_ieee1275_get_property): Likewise.
45436
45437 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
45438
45439 Added normal mode command `chainloader' as module chain.mod, which
45440 depends on normal.mod and _chain.mod.
45441
45442 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
45443 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
45444 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
45445 Deleted prototype.
45446 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
45447 but arguments parsing moved to ...
45448 (grub_chainloader_cmd): ... here. New function.
45449 * include/grub/i386/pc/chainloader.h: New file.
45450 * loader/i386/pc/chainloader_normal.c: Likewise.
45451
45452 2004-09-11 Marco Gerards <metgerards@student.han.nl>
45453
45454 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
45455 (grub_mkimage_LDFLAGS): Likewise.
45456 (grub_emu_SOURCES): Likewise.
45457 (kernel_img_HEADERS): Added fshelp.h.
45458 * fs/ext2.c: Include <grub/fshelp.h>.
45459 (FILETYPE_REG): New macro.
45460 (FILETYPE_INO_REG): Likewise.
45461 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
45462 Changed all users.
45463 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
45464 all users.
45465 (grub_fshelp_node): New struct.
45466 (grub_ext2_data): Added member `diropen'. Changed member `inode'
45467 to a pointer.
45468 (grub_ext2_get_file_block): Removed function.
45469 (grub_ext2_read_block): New function.
45470 (grub_ext2_read_file): Replaced parameter `data' by `node'.
45471 This function was written.
45472 (grub_ext2_mount): Read the root inode. Create a diropen struct.
45473 (grub_ext2_find_file): Removed function.
45474 (grub_ext2_read_symlink): New function.
45475 (grub_ext2_iterate_dir): Likewise.
45476 (grub_ext2_open): Rewritten.
45477 (grub_ext2_dir): Rewritten.
45478 * include/grub/fshelp.h: New file.
45479 * fs/fshelp.c: Likewise.
45480
45481 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
45482
45483 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
45484 (print_message): Add a missing newline.
45485 (run_menu): Added timeout support.
45486 (run_menu_entry): New local function.
45487 (grub_menu_run): Added support for booting.
45488
45489 * kern/loader.c (grub_loader_is_loaded): New function.
45490
45491 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
45492 (grub_get_rtc): Exported.
45493
45494 * include/grub/i386/pc/time.h: Include grub/symbol.h.
45495 (grub_get_rtc): Exported.
45496
45497 * include/grub/normal.h (struct grub_command_list): Remove
45498 constant from the member `command'.
45499
45500 * include/grub/loader.h (grub_loader_is_loaded): Declared.
45501
45502 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
45503
45504 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
45505
45506 2004-08-28 Marco Gerards <metgerards@student.han.nl>
45507
45508 Add support for the JFS filesystem.
45509
45510 * fs/jfs.c: New file.
45511 * include/grub/fs.h (grub_jfs_init): New prototype.
45512 (grub_jfs_fini): New prototype.
45513 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
45514 (grub_emu_SOURCES): Likewise.
45515 (pkgdata_MODULES): Add jfs.mod.
45516 (jfs_mod_SOURCES): New variable.
45517 (jfs_mod_CFLAGS): Likewise.
45518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
45519 (grubof_SOURCES): Likewise.
45520 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
45521
45522 * fs/fat.c (grub_fat_find_dir): Convert the filename little
45523 endian to the host endian.
45524 (grub_fat_utf16_to_utf8): Move function from there...
45525 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
45526 the endianness of the source string anymore.
45527 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
45528
45529 2004-08-24 Marco Gerards <metgerards@student.han.nl>
45530
45531 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
45532 (grub_boot_fini) [GRUB_UTIL]: Likewise.
45533 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
45534 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
45535
45536 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
45537 (grub_hfs_iterate_dir): Make the function static. Add prototypes
45538 for `node_found' and `it_dir'.
45539 (grub_hfs_dir): Add prototype for `dir_hook'.
45540
45541 * fs/minix.c (grub_minix_get_file_block): Add prototype for
45542 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
45543 and `indir32' to silence a gcc warning.
45544
45545 * include/grub/fs.h (grub_hfs_init): New prototype.
45546 (grub_hfs_fini): Likewise.
45547
45548
45549 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45550
45551 Each disk device has its own id now. This is useful to make use
45552 of multiple disk devices.
45553
45554 * include/grub/disk.h (grub_disk_dev_id): New enum.
45555 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
45556 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
45557
45558 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
45559 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45560
45561 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
45562 GRUB_DISK_DEVICE_OFDISK_ID as an id.
45563
45564 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
45565 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45566
45567 * include/grub/disk.h (struct grub_disk_dev): Added a new member
45568 "id" which is used by the cache manager.
45569
45570 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
45571 of just "GRUB".
45572
45573 2004-08-18 Marco Gerards <metgerards@student.han.nl>
45574
45575 * fs/hfs.c: New file.
45576 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
45577 (grub_emu_SOURCES): Likewise.
45578 (pkgdata_MODULES): Add hfs.mod.
45579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
45580 (grubof_SOURCES): Likewise.
45581 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
45582
45583 * include/grub/misc.h (grub_strncasecmp): Add prototype.
45584 * kern/misc.c (grub_strncasecmp): Add function.
45585
45586 2004-08-14 Marco Gerards <metgerards@student.han.nl>
45587
45588 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
45589 with parentheses.
45590
45591 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
45592 (grub_ext2_dir): In case the directory entry type is unknown, read
45593 it from the inode.
45594
45595 2004-08-02 Peter Bruin <pjbruin@dds.nl>
45596
45597 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
45598 grub_load_linux instead of grub_rescue_cmd_linux as second
45599 argument of grub_rescue_register_command.
45600
45601 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
45602
45603 2004-07-27 Marco Gerards <metgerards@student.han.nl>
45604
45605 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
45606 function.
45607 * commands/boot.c: Remove the check for `GRUB_UTIL'.
45608 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45609 `loader/powerpc/ieee1275/linux.c',
45610 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
45611 * include/grub/powerpc/ieee1275/ieee1275.h
45612 (grub_ieee1275_release): New prototype.
45613 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
45614 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
45615 normal, boot, linux and linux_normal.
45616 * loader/powerpc/ieee1275/linux.c: New file.
45617 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45618
45619 2004-07-12 Marco Gerards <metgerards@student.han.nl>
45620
45621 * normal/arg.c (grub_arg_parse): Correct error handling after
45622 reallocating the argumentlist (check if `argl' is not null instead
45623 of checking if `args' is not null).
45624 * kern/mm.c (grub_realloc): Return the same pointer when using the
45625 same region, instead of returning the header address.
45626
45627 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45628
45629 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
45630 one block instead of two when looking for the initial partition.
45631 (grub_partition_probe): Initialize the local variable `p' with 0.
45632 Use base 10 for the grub_strtoul call.
45633 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
45634 need for one local variable.
45635 (grub_strtoul): Don't add the new value to `num', instead of that
45636 just assign it.
45637
45638 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45639
45640 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
45641 (pxeboot_img_SOURCES): New variable.
45642 (pxeboot_img_ASFLAGS): Likewise.
45643 (pxeboot_img_LDFLAGS): Likewise.
45644 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
45645 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
45646 <lode_leroy@hotmail.com>.
45647
45648 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45649
45650 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
45651 there was no input.
45652
45653 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45654
45655 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
45656 the history buffer logic.
45657
45658 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45659
45660 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
45661 (FILETYPE_INO_SYMLINK): New macros.
45662 (grub_ext2_find_file): Check if the node is a directory using the
45663 inode stat information instead of using the filetype in the
45664 dirent. Exclude the first character of an absolute symlink.
45665 (grub_ext2_dir): Mask out the filetype part of the mode member of
45666 the inode.
45667
45668 2004-05-24 Marco Gerards <metgerards@student.han.nl>
45669
45670 Add support for UFS version 1 and 2. Add support for the minix
45671 filesystem version 1 and 2, both the variants with 14 and 30 long
45672 filenames.
45673
45674 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
45675 fs/minix.c.
45676 (grub_emu_SOURCES): Likewise.
45677 (pkgdata_MODULES): Add ufs.mod and minix.mod.
45678 (ufs_mod_SOURCES): New variable.
45679 (ufs_mod_CFLAGS): Likewise.
45680 (minix_mod_SOURCES): Likewise.
45681 (minix_mod_CFLAGS): Likewise.
45682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
45683 fs/minix.c.
45684 (grubof_SOURCES): Likewise.
45685 * fs/ufs.c: New file.
45686 * fs/minix.c: New file.
45687 * include/grub/fs.h (grub_ufs_init): New prototype.
45688 (grub_ufs_fini): Likewise.
45689 (grub_minix_init): Likewise.
45690 (grub_minix_fini): Likewise.
45691 * util/grub-emu.c (main): Initialize and deinitialize UFS and
45692 minix fs.
45693
45694 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
45695
45696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
45697 commands/ls.c, commands/terminal.c, commands/boot.c,
45698 commands/cmp.c and commands/cat.c.
45699 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
45700
45701 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
45702 "env.h"
45703
45704 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45705
45706 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
45707 and grub_, respectively. Because the conversion is trivial and
45708 mechanical, I omit the details here. Please refer to the CVS
45709 if you need more information.
45710
45711 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45712
45713 * include/pupa: Renamed to ...
45714 * include/grub: ... this.
45715 * util/i386/pc/pupa-mkimage.c: Renamed to ...
45716 * util/i386/pc/grub-mkimage.c: ... this.
45717 * util/i386/pc/pupa-setup.c: Renamed to ...
45718 * util/i386/pc/grub-setup.c: ... this.
45719 * util/pupa-emu.c: Renamed to ...
45720 * util/grub-emu.c: ... this.
45721
45722 2004-03-29 Marco Gerards <metgerards@student.han.nl>
45723
45724 Add support for the newworld apple macintosh (PPC). This has been
45725 tested on the powerbook 2000 only. It only adds support for
45726 generic ieee1275 functions, console and disk support. This should
45727 be easy to port to other architectures with support for Open
45728 Firmware.
45729
45730 * configure.ac: Accept the powerpc as host_cpu. In the case of
45731 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
45732 specific tests are only executed while building for the i386.
45733 Inverse test for crosscompile.
45734 * genmk.rb (Utility): Allow assembler files.
45735 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
45736 * conf/powerpc-ieee1275.rmk: New file.
45737 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
45738 * disk/powerpc/ieee1275/partition.c: Likewise.
45739 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
45740 * include/pupa/powerpc/ieee1275/console.h: Likewise.
45741 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
45742 * include/pupa/powerpc/ieee1275/time.h: Likewise.
45743 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
45744 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
45745 * include/pupa/powerpc/ieee1275/loader.h
45746 * include/pupa/powerpc/setjmp.h: Likewise.
45747 * include/pupa/powerpc/types.h: Likewise.
45748 * kern/powerpc/ieee1275/init.c: Likewise.
45749 * kern/powerpc/ieee1275/openfw.c: Likewise.
45750 * term/powerpc/ieee1275/ofconsole.c: Likewise.
45751
45752 These files were written by Johan Rydberg
45753 (jrydberg@night.trouble.net) and I only modified them slightly.
45754
45755 * boot/powerpc/ieee1275/cmain.c: New file.
45756 * boot/powerpc/ieee1275/crt0.S: Likewise.
45757 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
45758 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
45759
45760 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
45761
45762 * Makefile.in: Update copyright.
45763 * genmodsrc.sh: Likewise.
45764 * gensymlist.sh: Likewise.
45765 * term/i386/pc/vga.c: Indent correctly.
45766
45767 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
45768 bugreporting address.
45769 * util/i386/pc/pupa-setup.c (usage): Likewise,
45770 (main): Call pupa_ext2_init and pupa_ext2_fini.
45771
45772 * fs/fat.c (log2): Renamed to ...
45773 (fat_log2): ... this.
45774 All callers changed.
45775 * kern/misc.c (memcpy): Alias to pupa_memmove.
45776 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
45777 lvalue cast.
45778 * util/console.c (pupa_ncurses_fini): Return 0.
45779
45780 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
45781 Move fail label here.
45782 [__GNU__]: Don't warn when using stat.
45783 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
45784 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
45785 long int. Use strtol instead of strtoul.
45786
45787 2004-03-14 Marco Gerards <metgerards@student.han.nl>
45788
45789 * commands/boot.c: New file.
45790 * commands/cat.c: Likewise.
45791 * commands/cmp.c: Likewise.
45792 * commands/ls.c: Likewise.
45793 * commands/terminal.c: Likewise.
45794 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
45795 (pupa_register_command): Changed interface to match the new
45796 argument parser.
45797 (pupa_command_execute): Changed (almost rewritten) so it uses
45798 pupa_split_command. Added support for setting variables using the
45799 syntax `foo=bar'.
45800 (rescue_command): Changed to work with the new argument parser.
45801 (terminal_command): Moved from here to commands/terminal.c.
45802 (set_command): New function.
45803 (unset_command): New function.
45804 (insmod_command): New function.
45805 (rmmod_command): New function.
45806 (lsmod_command): New function.
45807 (pupa_command_init): Don't initialize the command terminal
45808 anymore. Initialize the commands set, unset, insmod, rmmod and
45809 lsmod.
45810 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
45811 (kernel_img_HEADERS): Add arg.h and env.h.
45812 (pupa_mkimage_LDFLAGS): Add kern/env.c.
45813 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
45814 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
45815 normal/arg.c.
45816 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
45817 terminal.mod.
45818 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
45819 (boot_mod_SOURCES): New variable.
45820 (terminal_mod_SOURCES): Likewise.
45821 (ls_mod_SOURCES): Likewise.
45822 (cmp_mod_SOURCES): Likewise.
45823 (cat_mod_SOURCES): Likewise.
45824
45825 * normal/arg.c: New file.
45826 * kern/env.c: Likewise.
45827 * include/pupa/arg.h: Likewise.
45828 * include/pupa/env.h: Likewise.
45829 * font/manager.c (font_command): Changed to match argument parsing
45830 interface changes.
45831 (PUPA_MOD_INIT): Likewise.
45832 * hello/hello.c (pupa_cmd_hello): Likewise.
45833 (PUPA_MOD_INIT): Likewise.
45834 * include/pupa/disk.h: Include <pupa/device.h>.
45835 (pupa_print_partinfo): New prototype.
45836 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
45837 (pupa_dl_get_prefix): Likewise.
45838 * include/pupa/misc.h: Include <pupa/err.h>.
45839 (pupa_isgraph): New prototype.
45840 (pupa_isdigit): Likewise.
45841 (pupa_split_cmdline): Likewise.
45842 * include/pupa/normal.h: Include <pupa/arg.h>.
45843 (pupa_command): Changed the prototype of the member `func' to
45844 match the argument parsing interface. Added member `options'.
45845 (pupa_register_command): Updated to match function.
45846 (pupa_arg_parse): New prototype.
45847 (pupa_hello_init) [PUPA_UTIL]: New prototype.
45848 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
45849 (pupa_ls_init) [PUPA_UTIL]: Likewise.
45850 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
45851 (pupa_cat_init) [PUPA_UTIL]: Likewise.
45852 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
45853 (pupa_boot_init) [PUPA_UTIL]: Likewise.
45854 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
45855 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
45856 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
45857 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
45858 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
45859 * kern/disk.c: Include <pupa/file.h>.
45860 (pupa_print_partinfo): New function.
45861 * kern/dl.c: Include <pupa/env.h>.
45862 (pupa_dl_dir): Variable removed.
45863 (pupa_dl_load): Use the environment variable `prefix' instead of
45864 the variable pupa_dl_dir.
45865 (pupa_dl_set_prefix): Function removed.
45866 (pupa_dl_get_prefix): Likewise.
45867 * kern/i386/pc/init.c: Include <pupa/env.h>.
45868 (pupa_machine_init): Use the environment variable `prefix' instead of
45869 using pupa_dl_set_prefix to set the prefix.
45870 * kern/main.c: Include <pupa/env.h>.
45871 (pupa_set_root_dev): Use the environment variable `prefix' instead of
45872 using pupa_dl_get_prefix to get the prefix.
45873 * kern/misc.c: Include <pupa/env.h>.
45874 (pupa_isdigit): New function.
45875 (pupa_isgraph): Likewise.
45876 (pupa_ftoa): Likewise.
45877 (pupa_vsprintf): Added support for printing values of the type
45878 `double'. Make it possible to format variable output when using
45879 formatting like `%1.2%f'.
45880 (pupa_split_cmdline): New function.
45881 * kern/rescue.c: Include <pupa/env.h>.
45882 (next_word): Removed function.
45883 (pupa_rescue_cmd_prefix): Likewise.
45884 (pupa_rescue_cmd_set): New function.
45885 (pupa_rescue_cmd_unset): New function.
45886 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
45887 split the command line instead of splitting it here. Added
45888 support for setting variables using the syntax `foo=bar'. Don't
45889 initialize the prefix command anymore. Initialized the set and
45890 unset commands.
45891 * normal/cmdline.c: Include <pupa/env.h>.
45892 (pupa_tab_complete): Added prototypes for print_simple_completion,
45893 print_partition_completion, add_completion, iterate_commands,
45894 iterate_dev, iterate_part and iterate_dir. Moved code to print
45895 partition information from here to kern/disk.c.
45896 (pupa_cmdline_run): Don't check if the function exists anymore.
45897 * normal/main.c: Include <pupa/env.h>.
45898 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
45899 instead of using pupa_dl_get_prefix to get the prefix.
45900 * term/i386/pc/vga.c: Include <pupa/arg.h>.
45901 (check_vga_mem): Cast pointers to `void *' to silence a gcc
45902 warning.
45903 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
45904 (pupa_vga_setcolor): Declare unused variables with `__attribute__
45905 ((unused))' to silence a gcc warning.
45906 (pupa_vga_setcolor): Likewise.
45907 (debug_command): Changed to match argument parsing
45908 interface changes.
45909 * util/pupa-emu.c: Include <pupa/env.h>.
45910 (options): Added 0's for unused fields to silence a gcc warning.
45911 (argp): Likewise.
45912 (main): Use the environment variable `prefix' instead of using
45913 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
45914 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
45915 and terminal.
45916
45917 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
45918 * util/misc.c: Include <malloc.h>.
45919 (pupa_malloc): Rewritten so errors are correctly reported.
45920 (pupa_realloc): Likewise.
45921 (pupa_memalign): Likewise.
45922 (pupa_mm_init_region): Declare unused variables with
45923 `__attribute__ ((unused))' to silence a gcc warning.
45924 * normal/i386/setjmp.S: Remove tab at the end of the file to
45925 silence a gcc warning.
45926 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
45927 variables with `__attribute__ ((unused))' to silence a gcc
45928 warning.
45929 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
45930 local variable i unsigned to silence a gcc warning.
45931
45932 * kern/term.c: Include <pupa/misc.h>.
45933 (pupa_more_lines): New variable.
45934 (pupa_more): Likewise.
45935 (pupa_putcode): When the pager is active pause at the end of every
45936 screen.
45937 (pupa_set_more): New function.
45938 * include/pupa/term.h (pupa_set_more): New prototype.
45939
45940
45941 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
45942
45943 Now this project is GRUB 2 rather than PUPA. The location of
45944 the CVS repository was moved to GRUB's.
45945
45946 * configure.ac: Use bug-grub as the reporting address.
45947 Use GRUB instead of PUPA.
45948 Change the version number to 1.90.
45949
45950 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
45951
45952 * genkernsyms.sh: Updated copyright information.
45953 * genmk.rb: Likewise.
45954 * genmodsrc.sh: Likewise.
45955 * gensymlist.sh: Likewise.
45956 * boot/i386/pc/boot.S: Likewise.
45957 * boot/i386/pc/diskboot.S: Likewise.
45958 * disk/i386/pc/biosdisk.c: Likewise.
45959 * disk/i386/pc/partition.c: Likewise.
45960 * font/manager.c: Likewise.
45961 * fs/ext2.c: Likewise.
45962 * fs/fat.c: Likewise.
45963 * include/pupa/boot.h: Likewise.
45964 * include/pupa/device.h: Likewise.
45965 * include/pupa/disk.h: Likewise.
45966 * include/pupa/dl.h: Likewise.
45967 * include/pupa/elf.h: Likewise.
45968 * include/pupa/err.h: Likewise.
45969 * include/pupa/file.h: Likewise.
45970 * include/pupa/font.h: Likewise.
45971 * include/pupa/fs.h: Likewise.
45972 * include/pupa/kernel.h: Likewise.
45973 * include/pupa/loader.h: Likewise.
45974 * include/pupa/misc.h: Likewise.
45975 * include/pupa/mm.h: Likewise.
45976 * include/pupa/net.h: Likewise.
45977 * include/pupa/normal.h: Likewise.
45978 * include/pupa/rescue.h: Likewise.
45979 * include/pupa/setjmp.h: Likewise.
45980 * include/pupa/symbol.h: Likewise.
45981 * include/pupa/term.h: Likewise.
45982 * include/pupa/types.h: Likewise.
45983 * include/pupa/i386/setjmp.h: Likewise.
45984 * include/pupa/i386/types.h: Likewise.
45985 * include/pupa/i386/pc/biosdisk.h: Likewise.
45986 * include/pupa/i386/pc/boot.h: Likewise.
45987 * include/pupa/i386/pc/console.h: Likewise.
45988 * include/pupa/i386/pc/init.h: Likewise.
45989 * include/pupa/i386/pc/kernel.h: Likewise.
45990 * include/pupa/i386/pc/linux.h: Likewise.
45991 * include/pupa/i386/pc/loader.h: Likewise.
45992 * include/pupa/i386/pc/memory.h: Likewise.
45993 * include/pupa/i386/pc/multiboot.h: Likewise.
45994 * include/pupa/i386/pc/partition.h: Likewise.
45995 * include/pupa/i386/pc/time.h: Likewise.
45996 * include/pupa/i386/pc/vga.h: Likewise.
45997 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
45998 * include/pupa/util/getroot.h: Likewise.
45999 * include/pupa/util/misc.h: Likewise.
46000 * include/pupa/util/resolve.h: Likewise.
46001 * kern/device.c: Likewise.
46002 * kern/disk.c: Likewise.
46003 * kern/dl.c: Likewise.
46004 * kern/err.c: Likewise.
46005 * kern/file.c: Likewise.
46006 * kern/fs.c: Likewise.
46007 * kern/loader.c: Likewise.
46008 * kern/main.c: Likewise.
46009 * kern/misc.c: Likewise.
46010 * kern/mm.c: Likewise.
46011 * kern/rescue.c: Likewise.
46012 * kern/term.c: Likewise.
46013 * kern/i386/dl.c: Likewise.
46014 * kern/i386/pc/init.c: Likewise.
46015 * kern/i386/pc/lzo1x.S: Likewise.
46016 * kern/i386/pc/startup.S: Likewise.
46017 * loader/i386/pc/chainloader.c: Likewise.
46018 * loader/i386/pc/linux.c: Likewise.
46019 * loader/i386/pc/multiboot.c: Likewise.
46020 * normal/cmdline.c: Likewise.
46021 * normal/command.c: Likewise.
46022 * normal/main.c: Likewise.
46023 * normal/menu.c: Likewise.
46024 * normal/i386/setjmp.S: Likewise.
46025 * term/i386/pc/console.c: Likewise.
46026 * term/i386/pc/vga.c: Likewise.
46027 * util/console.c: Likewise.
46028 * util/genmoddep.c: Likewise.
46029 * util/misc.c: Likewise.
46030 * util/pupa-emu.c: Likewise.
46031 * util/resolve.c: Likewise.
46032 * util/unifont2pff.rb: Likewise.
46033 * util/i386/pc/biosdisk.c: Likewise.
46034 * util/i386/pc/getroot.c: Likewise.
46035 * util/i386/pc/pupa-mkimage.c: Likewise.
46036 * util/i386/pc/pupa-setup.c: Likewise.
46037
46038 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46039
46040 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46041 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46042 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46043 reading and reset it after reading.
46044 (pupa_ext2_close): Return PUPA_ERR_NONE.
46045
46046 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46047 Correct value.
46048 (struct linux_kernel_header): Add kernel_version and
46049 initrd_addr_max.
46050 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46051 pupa_file_read succeeds.
46052 (pupa_rescue_cmd_initrd): Implement.
46053
46054 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46055
46056 * fs/ext2.c (pupa_ext2_label): New function.
46057 (pupa_ext2_fs): Added label.
46058 * fs/fat.c (pupa_fat_label): New function.
46059 (pupa_fat_fs): Added label.
46060 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46061
46062 * kern/misc.c (pupa_strndup): New function.
46063 * include/pupa/misc.h (pupa_strndup): New prototype.
46064
46065 * include/pupa/normal.h: Include <pupa/err.h>.
46066 (pupa_set_history): New prototype.
46067 (pupa_iterate_commands): New prototype.
46068 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46069 <pupa/disk.h>, <pupa/file.h>.
46070 (hist_size): New variable.
46071 (hist_lines): Likewise.
46072 (hist_end): Likewise.
46073 (hist_used): Likewise.
46074 (pupa_set_history): New function.
46075 (pupa_history_get): Likewise.
46076 (pupa_history_add): Likewise.
46077 (pupa_history_replace): Likewise.
46078 (pupa_tab_complete): Likewise.
46079 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46080 completion shows partitionnames while completing partitions, this
46081 feature was suggested by Jeff Bailey.
46082 * normal/command.c (pupa_iterate_commands): New function.
46083 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46084 (pupa_normal_init): Initialize history buffer.
46085 (PUPA_MOD_INIT): Likewise.
46086 (pupa_normal_fini): Free the history buffer.
46087 (PUPA_MOD_FINI): Likewise.
46088
46089 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46090 key.
46091
46092 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46093 * configure.ac [i386]: Check for regparam bug.
46094 (NESTED_FUNC_ATTR) [! i386]: Defined.
46095
46096 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46097
46098 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46099 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46100 (pupa_emu_SOURCES): New variable.
46101 (pupa_emu_LDFLAGS): Likewise.
46102 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46103 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46104 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46105 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46106 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46107 (pupa_jmp_buf): New typedef.
46108 (pupa_setjmp) [PUPA_UTIL]: New macro.
46109 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46110 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46111 (pupa_refresh): New prototype.
46112 * include/pupa/util/getroot.h: New file.
46113 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46114 it.
46115 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46116 (pupa_rescue_cmd_cat): Likewise.
46117 (pupa_rescue_cmd_ls): Likewise.
46118 (pupa_rescue_cmd_testload): Likewise.
46119 (pupa_rescue_cmd_lsmod): Likewise.
46120 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46121 * normal/menu.c (run_menu): Likewise.
46122 * kern/term.c (pupa_cls): Likewise.
46123 (pupa_refresh): New function.
46124 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46125 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46126 * util/console.c: New file.
46127
46128 * util/i386/pc/getroot.c: New file.
46129 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46130 (pupa_putchar): New function.
46131 (pupa_refresh): Likewise.
46132 (xgetcwd): Function moved to ...
46133 (strip_extra_slashes): Likewise.
46134 (get_prefix): Likewise.
46135 * util/i386/pc/getroot.c: ... here.
46136 (find_root_device): Function moved and renamed to...
46137 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46138 Changed all callers.
46139 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46140 and renamed to...
46141 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46142 Changed all callers.
46143 * util/misc.c (pupa_memalign): New function.
46144 (pupa_mm_init_region): Likewise.
46145 (pupa_register_exported_symbols): Likewise.
46146 (pupa_putchar): Function removed.
46147 * util/pupa-emu.c: New file.
46148
46149 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46150
46151 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46152 (_multiboot_mod_SOURCES): New variable.
46153 (_multiboot_mod_CFLAGS): Likewise.
46154 * loader/i386/pc/multiboot.c: New file.
46155 * include/pupa/i386/pc/multiboot.h: Likewise.
46156 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46157 (pupa_multiboot_real_boot): New function.
46158 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46159 (pupa_multiboot_real_boot): New prototype.
46160 (pupa_rescue_cmd_multiboot): Likewise
46161 (pupa_rescue_cmd_module): Likewise.
46162
46163 * kern/loader.c (pupa_loader_set): Continue when
46164 pupa_loader_unload_func() fails.
46165 (pupa_loader_unset): New function.
46166 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46167
46168 * kern/misc.c (pupa_stpcpy): New function.
46169 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46170
46171 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46172
46173 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46174 for available extensions.
46175
46176 * include/pupa/i386/pc/time.h: New file.
46177 * kern/disk.c: Include <pupa/machine/time.h>.
46178 (PUPA_CACHE_TIMEOUT): New macro.
46179 (pupa_last_time): New variable.
46180 (pupa_disk_open): Flush the cache when there was a timeout.
46181 (pupa_disk_close): Reset the timer.
46182 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46183 pupa_currticks.
46184 * util/misc.c: Include <sys/times.h>
46185 (pupa_get_rtc): New function.
46186
46187 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46188
46189 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46190 as blocks.
46191 (pupa_ext2_get_file_block): Use blocks member.
46192
46193 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46194 first block. Return -1 instead of pupa_errno on error.
46195
46196 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46197
46198 * README: In the pupa-mkimage example use _chain instead of chain
46199 and ext2 instead of fat.
46200 * TODO: Replace ext2fs with jfs as an example. Add an item for
46201 adding journal playback for ext2fs.
46202 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46203 (pkgdata_MODULES): Added ext2.mod.
46204 (ext2_mod_SOURCES): New variable.
46205 (ext2_mod_CFLAGS): Likewise.
46206 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46207 * include/pupa/misc.h (pupa_strncpy): New prototype.
46208 (pupa_strcat): Likewise.
46209 (pupa_strncmp): Likewise.
46210 * kern/misc.c (pupa_strcat): Enable function.
46211 (pupa_strncpy): New function.
46212 (pupa_strncmp): Likewise.
46213 * fs/ext2.c: New file.
46214
46215 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46216 when the read failed before retrying.
46217 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46218 (_FILE_OFFSET_BITS): Likewise.
46219 * configure.ac: Added AC_SYS_LARGEFILE.
46220
46221 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46222
46223 * genmk.rb (PModule#rule): Make sure to get only symbol names
46224 from the output of nm.
46225 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46226
46227 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46228
46229 I forgot to check in these changes for a long time. This adds
46230 incomplete support for VGA console, and this is still very
46231 buggy. Also, a lot of consideration is required for I18N,
46232 UNICODE, and VGA font issues. Therefore, assume that this is
46233 such that "better than nothing".
46234
46235 * font/manager.c: New file.
46236 * include/pupa/font.h: Likewise.
46237 * include/pupa/i386/pc/vga.h: Likewise.
46238 * term/i386/pc/vga.c: Likewise.
46239 * util/unifont2pff.rb: Likewise.
46240
46241 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46242 (pkgdata_MODULES): Added vga.mod and font.mod.
46243 (vga_mod_SOURCES): New variables.
46244 (vga_mod_CFLAGS): Likewise.
46245 (font_mod_SOURCES): Likewise.
46246 (font_mod_CFLAGS): Likewise.
46247
46248 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46249
46250 * include/pupa/term.h: Include pupa/err.h.
46251 (struct pupa_term): Added init and fini.
46252 Changed the argument of putchar to pupa_uint32_t.
46253
46254 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46255 (pupa_console_real_putchar): New prototype.
46256 (pupa_console_putchar): Removed.
46257 (pupa_console_checkkey): Exported.
46258 (pupa_console_getkey): Likewise.
46259
46260 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46261 characters.
46262
46263 * kern/term.c (pupa_term_set_current): Rewritten.
46264 (pupa_putchar): Likewise.
46265 (pupa_putcode): New function.
46266
46267 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
46268 (pupa_console_real_putchar): ... this.
46269 (pupa_vga_set_mode): New function.
46270 (pupa_vga_get_font): Likewise.
46271
46272 * normal/command.c: Include pupa/term.h.
46273 (terminal_command): New function.
46274 (pupa_command_init): Register the command "terminal".
46275
46276 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
46277 (DISP_UP): Likewise.
46278 (DISP_RIGHT): Likewise.
46279 (DISP_DOWN): Likewise.
46280 (DISP_HLINE): Likewise.
46281 (DISP_VLINE): Likewise.
46282 (DISP_UL): Likewise.
46283 (DISP_UR): Likewise.
46284 (DISP_LL): Likewise.
46285 (DISP_LR): Likewise.
46286
46287 * term/i386/pc/console.c (pupa_console_putchar): New function.
46288
46289 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
46290
46291 * util/resolve.c (pupa_util_resolve_dependencies): BUG
46292 FIX. Reverse the path_list.
46293
46294 * include/pupa/normal.h: Export pupa_register_command and
46295 pupa_unregister_command.
46296
46297 * hello/hello.c (pupa_cmd_hello): New module.
46298 * conf/i386-pc.rmk: Added hello.mod.
46299
46300 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
46301
46302 * kern/i386/pc/lzo1x.S: New file.
46303
46304 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
46305 (compress_kernel): New variable.
46306 (generate_image): Heavily modified to support compressing a
46307 large part of the core image.
46308
46309 * util/misc.c (pupa_util_read_image): Fix a file descriptor
46310 leak.
46311 (pupa_util_load_image): New function.
46312
46313 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
46314 (pupa_compressed_size): New variable.
46315 (codestart): Enable Gate A20 here.
46316 Decompress the compressed part of the core image.
46317 Rearrange the code to put functions and variables which are
46318 required for initialization in the non-compressed part.
46319 Include lzo1x.S.
46320
46321 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
46322 here.
46323
46324 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
46325
46326 * include/pupa/i386/pc/kernel.h
46327 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
46328 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
46329 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46330 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46331 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
46332
46333 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
46334
46335 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
46336 (Utility#rule): Likewise.
46337
46338 * configure.ac: Check if LZO is available.
46339
46340 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
46341
46342 * include/pupa/normal.h: New file.
46343 * include/pupa/setjmp.h: Likewise.
46344 * include/pupa/i386/setjmp.h: Likewise.
46345 * normal/cmdline.c: Likewise.
46346 * normal/command.c: Likewise.
46347 * normal/main.c: Likewise.
46348 * normal/menu.c: Likewise.
46349 * normal/i386/setjmp.S: Likewise.
46350
46351 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
46352 (pupa_rescue_cmd_initrd): Likewise.
46353
46354 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
46355 Likewise.
46356
46357 * kern/i386/pc/startup.S (translation_table): New variable.
46358 (translate_keycode): New function.
46359 (pupa_console_getkey): Call translate_keycode.
46360
46361 * kern/rescue.c (attempt_normal_mode): New function.
46362 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
46363 it failed, print a message.
46364
46365 * kern/mm.c (pupa_real_malloc): Print more information when a
46366 free magic is broken.
46367 (pupa_free): If the first free header is not free actually, set
46368 it to P.
46369
46370 * kern/main.c (pupa_load_normal_mode): Just load the module
46371 "normal".
46372 (pupa_main): Don't print the message
46373 "Entering into rescue mode..." here.
46374
46375 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
46376 Declared.
46377 (pupa_rescue_cmd_initrd): Likewise.
46378 (pupa_rescue_cmd_initrd): Likewise.
46379
46380 * include/pupa/symbol.h (FUNCTION): Specify the type.
46381 (VARIABLE): Likewise.
46382
46383 * include/pupa/err.h (pupa_err_t): Added
46384 PUPA_ERR_UNKNOWN_COMMAND.
46385
46386 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
46387 (pupa_dl_get_prefix): Likewise.
46388
46389 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
46390 Added _chain.mod and _linux.mod instead of chain.mod and
46391 linux.mod.
46392 (chain_mod_SOURCES): Renamed to ...
46393 (_chain_mod_SOURCES): ... this.
46394 (chain_mod_CFLAGS): Renamed to ...
46395 (_chain_mod_CFLAGS): ... this.
46396 (linux_mod_SOURCES): Renamed to ...
46397 (_linux_mod_SOURCES): ... this.
46398 (linux_mod_CFLAGS): Renamed to ...
46399 (_linux_mod_CFLAGS): ... this.
46400 (normal_mod_SOURCES): New variable.
46401 (normal_mod_CFLAGS): Likewise.
46402 (normal_mod_ASFLAGS): Likewise.
46403
46404 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
46405
46406 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
46407 possible.
46408
46409 * kern/dl.c (pupa_dl_ref): Refer depending modules
46410 recursively.
46411 (pupa_dl_unref): Unrefer depending modules recursively.
46412 Don't call pupa_dl_unload implicitly, because PUPA can crash if
46413 a module is unloaded before one depending on that module is
46414 unloaded.
46415 (pupa_dl_unload): Unload depending modules explicitly,
46416 if possible.
46417
46418 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
46419
46420 * include/pupa/i386/pc/linux.h: New file.
46421 * loader/i386/pc/linux.c: Likewise.
46422
46423 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
46424 Removed.
46425 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
46426 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
46427 of PUPA_CHAINLOADER_BOOT_SECTOR.
46428
46429 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
46430 (pupa_linux_prot_size): New variable.
46431 (pupa_linux_tmp_addr): Likewise.
46432 (pupa_linux_real_addr): Likewise.
46433 (pupa_linux_boot_zimage): New function.
46434 (pupa_linux_boot_bzimage): Likewise.
46435
46436 * kern/i386/pc/init.c (struct mem_region): New structure.
46437 (MAX_REGIONS): New macro.
46438 (mem_regions): New variable.
46439 (num_regions): Likewise.
46440 (pupa_os_area_addr): Likewise.
46441 (pupa_os_area_size): Likewise.
46442 (pupa_lower_mem): Likewise.
46443 (pupa_upper_mem): Likewise.
46444 (add_mem_region): New function.
46445 (compact_mem_regions): Likewise.
46446 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
46447 the size of the conventional memory and that of so-called upper
46448 memory (before the first memory hole).
46449 Instead of adding each found region to free memory, use
46450 add_mem_region and add them after removing overlaps.
46451 Also, add only 1/4 of the upper memory to free memory. The rest
46452 is used for loading OS images. Maybe this is ad hoc, but this
46453 makes it much easier to relocate OS images when booting.
46454
46455 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
46456 (pupa_enter_rescue_mode): Don't register initrd and module.
46457
46458 * kern/mm.c: Include pupa/dl.h.
46459
46460 * kern/main.c: Include pupa/file.h and pupa/device.h.
46461
46462 * kern/loader.c (pupa_loader_load_module_func): Removed.
46463 (pupa_loader_load_module): Likewise.
46464
46465 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
46466 ``.o''.
46467
46468 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
46469 (pupa_linux_tmp_addr): Likewise.
46470 (pupa_linux_real_addr): Likewise.
46471 (pupa_linux_boot_zimage): Likewise.
46472 (pupa_linux_boot_bzimage): Likewise.
46473
46474 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
46475 (pupa_upper_mem): Likewise.
46476 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
46477 module is too dangerous.
46478
46479 * include/pupa/loader.h (pupa_os_area_addr): Declared.
46480 (pupa_os_area_size): Likewise.
46481 (pupa_loader_set): Remove the first argument. Loader doesn't
46482 manage modules or initrd any longer.
46483 (pupa_loader_load_module): Removed.
46484
46485 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
46486 (linux_mod_SOURCES): New variable.
46487 (linux_mod_CFLAGS): Likewise.
46488
46489 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
46490
46491 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
46492 the length of a blocklist correctly.
46493
46494 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
46495 Use ioctl only if the OS file is a block device.
46496 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
46497 not very useful for normal files.
46498
46499 * kern/main.c (pupa_set_root_dev): New function.
46500 (pupa_load_normal_mode): Likewise.
46501 (pupa_main): Call those above.
46502
46503 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
46504 pupa_uint16_t.
46505
46506 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
46507
46508 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46509
46510 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
46511 (setup): Configure the installed partition information and the
46512 dl prefix.
46513
46514 * loader/i386/pc/chainloader.c (my_mod): New variable.
46515 (pupa_chainloader_unload): New function.
46516 (pupa_rescue_cmd_chainloader): Refer itself.
46517 (PUPA_MOD_INIT): Save its own module in MY_MOD.
46518
46519 * kern/i386/pc/startup.S (install_partition): Removed.
46520 (version_string): Likewise.
46521 (config_file): Likewise.
46522 (pupa_install_dos_part): New variable.
46523 (pupa_install_bsd_part): Likewise.
46524 (pupa_prefix): Likewise.
46525 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
46526
46527 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
46528 and pupa/misc.h.
46529 (make_install_device): New function.
46530 (pupa_machine_init): Set the dl prefix.
46531
46532 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
46533 (buf): Renamed to ...
46534 (linebuf): ... this.
46535 (pupa_rescue_cmd_prefix): New function.
46536 (pupa_rescue_cmd_insmod): Likewise.
46537 (pupa_rescue_cmd_rmmod): Likewise.
46538 (pupa_rescue_cmd_lsmod): Likewise.
46539 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
46540 rmmod and lsmod.
46541
46542 * kern/mm.c (pupa_memalign): If failed even after invalidating
46543 disk caches, unload unneeded modules and retry.
46544
46545 * kern/misc.c (pupa_memmove): New function.
46546 (pupa_memcpy): Removed.
46547 (pupa_strcpy): New function.
46548 (pupa_itoa): Made static.
46549
46550 * kern/dl.c (pupa_dl_iterate): New function.
46551 (pupa_dl_ref): Likewise.
46552 (pupa_dl_unref): Likewise.
46553 (pupa_dl_unload): Return if succeeded or not.
46554 (pupa_dl_unload_unneeded): New function.
46555 (pupa_dl_unload_all): Likewise.
46556 (pupa_dl_init): Renamed to ...
46557 (pupa_dl_set_prefix): ... this.
46558 (pupa_dl_get_prefix): New function.
46559
46560 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
46561 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
46562 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46563 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46564 (pupa_install_dos_part): Declared.
46565 (pupa_install_bsd_part): Likewise.
46566 (pupa_prefix): Likewise.
46567 (pupa_boot_drive): Likewise.
46568
46569 * include/pupa/types.h: Fix a typo.
46570
46571 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
46572 pupa_memmove.
46573 (pupa_memmove): Declared.
46574 (pupa_strcpy): Likewise.
46575
46576 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
46577 pupa_mod_init takes one argument, its own module.
46578 (pupa_dl_unload_unneeded): Declared.
46579 (pupa_dl_unload_all): Likewise.
46580 (pupa_dl_ref): Likewise.
46581 (pupa_dl_unref): Likewise.
46582 (pupa_dl_iterate): Likewise.
46583 (pupa_dl_init): Renamed to ...
46584 (pupa_dl_set_prefix): ... this.
46585 (pupa_dl_get_prefix): Declared.
46586
46587 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
46588 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
46589 unloaded.
46590 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
46591 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
46592
46593 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
46594 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
46595
46596 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46597
46598 * util/i386/pc/pupa-setup.c (setup): Define the internal
46599 function find_first_partition_start at the top level, because GCC
46600 3.0.x cannot compile internal functions in deeper scopes
46601 correctly.
46602 (find_root_device): Use lstat instead of stat.
46603 Don't follow symbolic links.
46604 Fix the path-constructing code.
46605
46606 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
46607 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
46608 by a BLKGETSIZE ioctl first, because block devices don't fill
46609 the member st_mode of the structure stat on Linux.
46610 [__linux__] (linux_find_partition): Use a temporary buffer
46611 REAL_DEV for the working space. Copy it to DEV before returning.
46612 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
46613 buffer cache consistent.
46614 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
46615 strncmp. The previous value was merely wrong.
46616 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
46617
46618 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
46619 FAT size is 12. The previous value was merely wrong.
46620
46621 * kern/main.c (pupa_main): Don't split the starting message from
46622 newlines.
46623
46624 * kern/term.c (pupa_putchar): Put CR after LF instead of before
46625 LF, because BIOS goes crazy about character attributes in this
46626 case.
46627
46628 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46629
46630 * include/i386/pc/util/biosdisk.h: New file.
46631 * util/i386/pc/biosdisk.c: Likewise.
46632 * util/i386/pc/pupa-setup.c: Likewise.
46633
46634 * Makefile.in (INCLUDE_DISTFILES): Added
46635 include/pupa/i386/pc/util/biosdisk.h.
46636 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
46637 directory util/i386/pc.
46638 (install-local): Added a rule for sbin_UTILITIES.
46639 (uninstall): Likewise.
46640
46641 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
46642
46643 * util/misc.c (xrealloc): New function.
46644 (pupa_malloc): Likewise.
46645 (pupa_free): Likewise.
46646 (pupa_realloc): Likewise.
46647 (pupa_stop): Likewise.
46648 (pupa_putchar): Likewise.
46649
46650 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
46651
46652 * include/pupa/util/misc.h (xrealloc): Declared.
46653
46654 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
46655 macro.
46656 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
46657 (PUPA_BOOT_MACHINE_BPB_END): ... this.
46658
46659 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
46660 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46661
46662 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
46663 way should be implemented.
46664 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46665
46666 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
46667 the size of NAME for safety.
46668 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
46669 0x88.
46670
46671 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
46672 (pupa_setup_SOURCES): Likewise.
46673
46674 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
46675
46676 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46677
46678 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
46679 bunch of pushl's from pusha, because this destroys the return
46680 value.
46681
46682 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46683
46684 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
46685 This means that any missing prototypes could be fatal. Also, you
46686 must take care when writing assembly code. See the comments at
46687 the beginning of startup.S, for more details.
46688
46689 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
46690 compilation mechanism.
46691 (pupa_chainloader_real_boot): Likewise.
46692 (pupa_biosdisk_rw_int13_extensions): Likewise.
46693 (pupa_biosdisk_rw_standard): Likewise.
46694 (pupa_biosdisk_check_int13_extensions): Likewise.
46695 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
46696 (pupa_biosdisk_get_diskinfo_standard): Likewise.
46697 (pupa_get_memsize): Likewise.
46698 (pupa_get_mmap_entry): Likewise.
46699 (pupa_console_putchar): Likewise.
46700 (pupa_console_setcursor): Likewise.
46701 (pupa_getrtsecs): Use pushl instead of push.
46702
46703 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
46704 memory instead of the stack for a mmap entry, because some
46705 BIOSes may ignore the maximum size and overflow.
46706
46707 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
46708
46709 * genmk.rb (PModule#rule): Compile automatically generated
46710 sources with module-specific CFLAGS as well as other sources.
46711
46712 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46713
46714 * configure.ac: Check ld.
46715 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
46716 respectively, before checking endianness and sizes.
46717
46718 * Makefile.in (LD): New variable.
46719
46720 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46721
46722 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
46723
46724 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46725
46726 * Changelog: New file.
46727