1 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
3 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
4 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
5 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
6 performance fixes while on it.
7 (grub_sfs_close): Fix memory leak while on it.
8 (grub_sfs_label): Convert Latin1 to UTF-8.
10 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
13 space to avoid overflows.
14 (grub_hfs_label): Convert from macroman to UTF-8.
16 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
20 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
22 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
24 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26 * unicode: Import Unicode 6.0 data.
28 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
30 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
33 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
35 Avoid cutting in the middle of UTF-8 character.
37 * include/grub/charset.h (grub_getend): New function.
38 * grub-core/script/function.c (grub_script_function_find): Use
40 * grub-core/normal/completion.c (add_completion): Likewise.
42 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
45 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
46 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
47 (GRUB_UNICODE_TAG_END): Likewise.
48 (GRUB_UNICODE_LAST_VALID): Likewise.
50 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
52 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
53 len and make it smaller. All users updated.
54 * util/import_unicode.py: Put length and not end character.
57 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
59 Make better Unicode-compliant and unify some UTF-8 code pathes.
61 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
63 (grub_is_valid_utf8): Use grub_utf8_process.
64 Check resulting code range.
65 (grub_utf8_to_ucs4): Use grub_utf8_process.
66 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
69 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
71 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
73 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
75 * docs/grub.texi (Filesystems): Mention AFS.
77 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
79 * docs/grub.texi (Filesystems): Clarify restrictions.
80 (Regexp): Mention non-Unicode regexp behaviour.
81 (Other): Mention non-Unicode matching behaviour.
83 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
85 Make HFS implementation use MacRoman.
87 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
88 (macroman): New const array.
89 (macroman_to_utf8): New function.
90 (utf8_to_macroman): Likewise.
91 (grub_hfs_find_dir): Use utf8_to_macroman.
92 (grub_hfs_dir): Use macroman_to_utf8.
95 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
97 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
99 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
101 Integrate hints into autogeneration scripts.
103 * docs/grub.texi (Filesystems): Add a hostdisk example.
104 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
105 (grub-probe): Add ofpath.
106 * gentpl.py: Remove group nosparc64.
107 * grub-core/commands/search.c (cache_entry): New struct.
109 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
110 * grub-core/commands/search_wrap.c (options): Add platform-specific
112 (grub_cmd_search): Handle platform-specific hints.
113 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
114 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
115 (grub_util_biosdisk_data): Likewise.
116 (grub_util_biosdisk_open): Set device_map.
117 (read_device_map): Handle "" as indication of no map.
119 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
120 (grub_util_biosdisk_get_compatibility_hint): New function.
121 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
122 * include/grub/emu/hostdisk.h
123 (grub_util_biosdisk_get_compatibility_hint): New proto.
124 * util/grub-install.in: Don't call grub-mkdevicemap.
125 Add platform-specific hint to load.cfg.
126 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
127 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
128 hints. Set root preliminary to compatibility hint, not to OS name.
129 * util/grub-probe.c (PRINT_*): Add hints.
130 (print): Make static.
131 (escape_of_path): New function.
132 (guess_bios_drive): Likewise.
133 (guess_efi_drive): Likewise.
134 (guess_baremetal_drive): Likewise.
135 (print_full_name): Likewise.
136 (probe): Handle hints.
138 * util/ieee1275/devicemap.c: Removed.
139 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
141 (grub_util_devname_to_ofpath): Return NULL on failure.
143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
145 * util/getroot.c (grub_util_pull_device): Fix memory leak.
147 * po/POTFILES.in: Regenerated.
149 Allow purely long options
151 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
152 (SHORT_ARG_USAGE): Likewise.
153 (grub_arg_show_help): Compare opt with help_options.
154 (parse_option): Receive opt as argument. If makes big simplificatons.
157 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
160 Restructure to avoid warning.
162 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
164 * util/grub-install.in: Account for possible escaped comma in device
167 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
169 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
172 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
174 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
175 allocation and zero-setting.
176 (grub_ieee1275_get_devname): Check that alias is complete.
178 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
180 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
183 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
187 (grub_ofdisk_open): Check and discard ieee1275 prefix.
188 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
191 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
193 * docs/grub.texi (Filesystems): Update.
195 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
197 Support odc, newc and bigendian cpio formats.
199 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
200 * grub-core/Makefile.core.def (newc): New module.
203 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
206 (head) [MODE_ODC]: Adapt for the format.
207 (head) [MODE_NEWC]: Likewise.
208 (head) [!MODE_*]: Write fields of interest as arrays.
209 (MAGIC_USTAR): Removed.
210 (read_number) [MODE_NEWC]: Change to hex.
211 (read_number) [!MODE_*]: Parse binary arrays.
212 (grub_cpio_find_file): Factor out the code for better structure and
213 always use read_number.
214 (grub_cpio_mount): Use MAGIC and MAGIC2.
215 (grub_cpio_dir): Exit on first hook non-0 return.
216 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
217 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
218 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
219 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
220 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
221 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
222 * grub-core/fs/newc.c: New file.
223 * grub-core/fs/odc.c: Likewise.
224 * grub-core/fs/cpio_be.c: Likewise.
226 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
228 Fix handling of tar numbers occupying the whole field.
230 * grub-core/fs/cpio.c (read_number): New function.
231 (grub_cpio_find_file): Use read_number instead of strtoull.
233 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
236 occupying the whole field size.
238 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
240 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
242 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
244 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
246 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
248 * grub-core/Makefile.core.def (lzma_decompress): Add missing
251 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
253 * util/getroot.c (ESCAPED_PATH_MAX): New define.
254 (mountinfo_entry): Increase the field size to take escaping into
256 (find_root_device_from_libzfs): Add one byte to size of strings for
259 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
261 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
263 * util/grub-setup.c (setup): Likewise.
265 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
267 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
270 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
272 * docs/grub.texi (Internationalisation): New section.
274 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
276 * docs/grub.texi (Loopback booting): New section.
278 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
280 * util/grub-mkstandalone.in: Fix minor typo errors.
282 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
284 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
286 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
287 net/icmp.c and net/icmp6.c.
289 (priority_queue): Likewise.
290 * grub-core/io/bufio.c: Rewritten.
291 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
292 TYPE_WITH_CONFIGFILE_OPTION.
293 (legacy_commands): Add bootp and dhcp.
294 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
295 (grub_legacy_parse): Likewise.
296 * grub-core/lib/priority_queue.c: New file.
297 * grub-core/net/arp.c: Add missing license header.
298 (arp_find_entry): Removed.
299 (arp_find_entry): Likewise.
300 (grub_net_arp_resolve): Rename to ...
301 (grub_net_arp_send_request): ...this.
302 (grub_net_arp_receive): New card argument.
303 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
304 Set router and DNS server.
305 (grub_net_configure_by_dhcp_ack): Handle routing information.
306 (grub_cmd_bootp): Set checksum.
307 (grub_bootp_init): Remove net_dhcp.
308 * grub-core/net/dns.c: New file.
309 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
311 (get_card_packet): Handle allocation.
312 (grub_efinet_findcards): Set mtu.
313 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
314 (get_card_packet): Handle allocation.
316 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
317 (GRUB_MOD_INIT): Set mtu.
318 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
320 (get_card_packet): Handle allocation.
321 (grub_ofnet_findcards): Set mtu.
322 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
324 (grub_net_recv_ethernet_packet): Handle IPv6.
325 * grub-core/net/http.c: New file.
326 * grub-core/net/icmp.c: Likewise.
327 * grub-core/net/icmp6.c: Likewise.
328 * grub-core/net/ip.c (ip6addr): New type.
330 (reassemble): Likewise.
332 (reassembles): New variable.
333 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
335 (send_fragmented): New function.
336 (grub_net_send_ip_packet): Rename to ...
337 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
339 (grub_net_recv_ip_packets): Rename to ...
340 (handle_dgram): ... this. Check checksum. Handle non-UDP.
341 (free_rsm): New function.
342 (free_old_fragments): Likewise.
343 (grub_net_recv_ip4_packets): New function.
344 (grub_net_send_ip6_packet): Likewise.
345 (grub_net_send_ip_packet): Likewise.
346 (grub_net_recv_ip6_packets): Likewise.
347 (grub_net_recv_ip_packets): Likewise.
348 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
349 (LINK_LAYER_CACHE_SIZE): New const.
350 (link_layer_find_entry): New function.
351 (grub_net_link_layer_add_address): Likewise.
352 (grub_net_link_layer_resolve_check): Likewise.
353 (grub_net_link_layer_resolve): Likewise.
354 (grub_net_ipv6_get_slaac): Likewise.
355 (grub_net_ipv6_get_link_local): Likewise.
356 (grub_cmd_ipv6_autoconf): Likewise.
357 (parse_ip): Handle one number representation.
358 (parse_ip6): New functoion.
359 (match_net): Handle IPv6.
360 (grub_net_resolve_address): Handle IPv6 and DNS.
361 (grub_net_resolve_net_address): Handle IPv6.
362 (route_cmp): New function.
363 (grub_net_route_address): Find best route.
364 (grub_net_addr_to_str): Handle IPv6.
365 (grub_net_addr_cmp): New function.
366 (grub_net_add_addr): Register local route.
367 (print_net_address): Handle net address.
368 (grub_net_poll_cards): Retransmit TCP.
369 (grub_net_poll_cards_idle_real): Likewise.
370 (have_ahead): New function.
371 (grub_net_seek_real): Use underlying seek.
372 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
373 * grub-core/net/tcp.c: New file.
374 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
377 (tftp_receive): Handle unordered input.
378 (destroy_pq): New function.
379 (tftp_close): Close pq.
380 * grub-core/net/udp.c: Put missing license header.
381 (grub_net_udp_socket): New function.
382 (udp_socket_register): Likewise.
383 (grub_net_udp_close): Likewise.
384 (grub_net_recv_udp_packet): Check checksum.
385 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
386 * include/grub/misc.h (grub_memchr): New function.
387 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
388 (grub_net_card_driver): Return buf in recv.
389 (grub_net_slaac_mac_list): New struct.
390 (grub_network_level_protocol_id): Add ipv6.
391 (grub_net_network_level_addr): Likewise.
392 (grub_net_network_level_net_addr): Likewise.
393 (grub_net_app_protocol): Add seek.
394 (grub_net_socket): Removed.
395 (grub_net_sockets): Likewise.
396 (grub_net_socket_register): Likewise.
397 (grub_net_socket_unregister): Likewise.
398 (FOR_NET_SOCKETS): Likewise.
399 (grub_net_add_addr): Add const.
400 (GRUB_NET_BOOTP_*): New enum.
401 (grub_net_addr_cmp): New proto.
402 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
403 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
404 (grub_net_hwaddr_to_str): NEw proto.
405 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
406 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
407 (grub_dns_init): New proto.
408 (grub_dns_fini): Likewise.
409 (grub_net_tcp_retransmit): Likewise.
410 (grub_net_link_layer_add_address): Likewise.
411 (grub_net_link_layer_resolve_check): Likewise.
412 (grub_net_link_layer_resolve): Likewise.
413 (grub_net_dns_lookup): Likewise.
414 (grub_net_add_dns_server): Likewise.
415 (grub_net_remove_dns_server): Likewise.
416 (GRUB_NET_TRIES): New const.
417 (GRUB_NET_INTERVAL): Likewise.
418 * include/grub/net/arp.h: Mostly rewritten.
419 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
420 * include/grub/net/ip.h: Mostly rewritten.
421 * include/grub/net/netbuff.h: Indent.
422 * include/grub/net/tcp.h: New file.
423 * include/grub/net/udp.h: Mostly rewritten.
424 * include/grub/priority_queue.h: New file.
425 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
426 (grub_swap_bytes64_compile_time): Likewise.
427 (grub_cpu_to_be16_compile_time): Likewise.
428 (grub_cpu_to_be32_compile_time): Likewise.
429 (grub_cpu_to_be64_compile_time): Likewise.
430 (grub_be_to_cpu64_compile_time): Likewise.
432 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
434 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
435 UINT_TO_PTR with cast.
437 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
439 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
442 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
444 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
447 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
449 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
452 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
455 Add missing const attribute.
456 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
458 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
463 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
465 (serpent_setkey): Likewise.
466 (serpent_encrypt_internal): Likewise.
467 (serpent_decrypt_internal): Likewise.
468 (serpent_encrypt): Don't put an alignment-increasing cast.
469 (serpent_decrypt): Likewise.
470 (serpent_test): Likewise.
472 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
476 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
478 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
480 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
482 (PTR_TO_UINT64): Likewise.
483 (PTR_TO_UINT32): Likewise.
485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
487 * util/grub-mkimage.c (generate_image): Decrease the higher limit
489 * util/grub-setup.c (setup): Don't add redundancy past the higher load
492 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
494 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
495 text_width > available width a bit more gracefully.
497 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
499 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
500 current address calculation.
502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
504 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
506 (encode_block): Likewise.
508 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
510 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
513 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
515 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
516 non-RS part to avoid RS messing with GDT.
517 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
518 Increase to suit in realmode routines.
520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
522 * grub-core/kern/i386/realmode.S: Increase alignment.
523 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
525 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
527 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
529 (syndroms): Compute 0 syndrom.
530 (rs_recover): Use 0 syndrom.
532 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
534 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
536 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
538 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
545 (get_top_pad): Likewise.
546 (get_right_pad): Likewise.
547 (get_bottom_pad): Likewise.
549 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
551 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
553 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
555 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
556 attribute as the structure isn't guaranteed to be properly aligned.
557 (grub_efi_pci_device_path): Likewise.
558 (grub_efi_pccard_device_path): Likewise.
559 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
560 specify the size of `memory_type'.
561 (grub_efi_vendor_device_path): Likewise.
562 (grub_efi_controller_device_path): Likewise.
563 (grub_efi_acpi_device_path): Likewise.
564 (grub_efi_expanded_acpi_device_path): Likewise.
565 (grub_efi_atapi_device_path): Likewise.
566 (grub_efi_scsi_device_path): Likewise.
567 (grub_efi_fibre_channel_device_path): Likewise.
568 (grub_efi_1394_device_path): Likewise.
569 (grub_efi_usb_device_path): Likewise.
570 (grub_efi_usb_class_device_path): Likewise.
571 (grub_efi_i2o_device_path): Likewise.
572 (grub_efi_mac_address_device_path): Likewise.
573 (grub_efi_ipv4_device_path): Likewise.
574 (grub_efi_ipv6_device_path): Likewise.
575 (grub_efi_infiniband_device_path): Likewise.
576 (grub_efi_uart_device_path): Likewise.
577 (grub_efi_vendor_messaging_device_path): Likewise.
578 (grub_efi_hard_drive_device_path): Likewise.
579 (grub_efi_cdrom_device_path): Likewise.
580 (grub_efi_vendor_media_device_path): Likewise.
581 (grub_efi_file_path_device_path): Likewise.
582 (grub_efi_protocol_device_path): Likewise.
583 (grub_efi_piwg_device_path): Likewise.
584 (grub_efi_bios_device_path): Likewise.
586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
588 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
589 (grub_ucs4_to_utf8_alloc): Likewise.
590 (grub_ucs4_to_utf8): Likewise.
591 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
592 (grub_ucs4_to_utf8_alloc): Likewise.
594 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
596 AFFS never uses unicode.
598 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
599 (grub_latin1_to_utf8): New inline function.
600 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
604 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
609 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
610 (grub_squash_dirent_header): Likewise.
611 (read_chunk): Don't double swap.
612 (grub_squash_iterate_dir): Fix swap sizes.
614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
616 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
620 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
621 (grub_hfs_iterate_dir): Likewise.
623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
625 Fix video on platforms where unaligned access is forbidden.
626 Make several optimisations while on it.
628 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
629 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
630 (grub_video_fbblit_replace_32bit_1bit): Likewise.
631 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
633 (grub_video_fbblit_replace_16bit_1bit):
634 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
635 (grub_video_fbblit_replace_8bit_1bit): Likewise.
636 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
637 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
638 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
639 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
640 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
641 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
642 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
643 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
644 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
645 (grub_video_fbblit_replace_index_RGB888): Likewise.
646 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
647 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
648 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
649 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
650 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
651 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
652 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
654 (grub_video_fbblit_blend_XXX565_1bit):
655 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
656 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
657 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
659 * grub-core/video/fb/video_fb.c (common_blitter)
660 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
661 (grub_video_fb_create_render_target_from_pointer)
662 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
663 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
664 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
666 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
670 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
671 HH22 and HM10 relocations.
673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
675 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
677 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
679 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
680 allocation succeeded.
682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
684 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
685 argument a u8 pointer. All users updated.
686 Handle unaligned buffers.
688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
690 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
691 add_part to workaround compiler bug.
693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
695 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
700 Reserve alignment invariants.
701 (grub_multiboot_load): Likewise.
702 (retrieve_video_parameters): Likewise.
703 (grub_multiboot_make_mbi): Likewise.
705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
707 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
710 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
712 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
713 (grub_pata_pio_write): Likewise.
715 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
717 Add noreturn attributes and remove unreachable code.
719 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
721 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
722 code. Mark as noreturn.
723 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
724 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
725 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
727 * grub-core/kern/main.c (grub_main): Mark as noreturn.
728 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
729 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
730 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
731 * include/grub/kernel.h (grub_main): Mark as noreturn.
732 * include/grub/reader.h (grub_rescue_run): Likewise.
734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
736 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
737 redundant declaration.
739 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
741 * include/grub/net.h (grub_net_network_level_interfaces): Remove
742 redundant declaration.
743 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
747 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
749 (grub_hdparm_print_identify): Make argument uint16 * to ensure
750 alignment. Ensure tmp alignment.
751 (grub_cmd_hdparm): Ensure buf alignment.
752 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
754 (grub_ata_dumpinfo): Ensure text alignment.
755 (grub_atapi_identify): Preserve alignment invariant.
756 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
760 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
761 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
762 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
763 * include/grub/misc.h (grub_reboot)
764 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
765 (grub_halt) [__mips__]: Likewise.
767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
769 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
770 Remove redundant declaration.
771 (grub_mmap_get_post64): Likewise.
772 (grub_mmap_get_upper): Likewise.
773 (grub_mmap_get_lower): Likewise.
775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
777 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
778 uint32_t * to ensure alignment.
779 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
783 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
784 uint16_t * to ensure alignment.
785 (sun_pc_partition_map_iterate): Make `block' a union to ensure
788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
790 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
792 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
796 * grub-core/fs/ntfs.c (u16at): Make into inline function.
797 Handle unaligned pointers.
800 (fixup): Use byte access instead of v16at.
801 (find_attr): Fix imporper usage of v32at.
802 (read_data): Likewise.
803 (list_file): Handle byte-swapping and unaligned strings.
804 (grub_ntfs_label): Likewise.
806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
808 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
809 as it's not necessarily aligned.
811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
813 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
814 redundant declaration.
815 (grub_serial_init): Likewise.
816 (grub_terminfo_init): Likewise.
818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
822 (ZAP_HASH_IDX): Likewise.
823 (ZAP_LEAF_HASH_SHIFT): Likewise.
824 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
825 (LEAF_HASH): Likewise.
826 (ZAP_LEAF_NUMCHUNKS): Likewise.
827 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
828 alignment invariants. Return pointer. All users updated.
829 (ZAP_LEAF_ENTRY): Make into inline function.
832 (xor_out): Use grub_crypto_xor.
833 (dnode_get_path): Use grub_get_unaligned.
834 (nvlist_find_value): Likewise.
835 (grub_zfs_nvlist_lookup_uint64): Likewise.
836 (grub_zfs_nvlist_lookup_string): Likewise.
837 (get_nvlist_size): Likewise.
838 (grub_zfs_open): Likewise.
839 (fill_fs_info): Likewise.
840 (grub_zfs_dir): Likewise.
841 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
842 alignment invariants.
843 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
848 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
852 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
853 arithmetic to conserve alignment invariants.
855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
857 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
858 redundant declaration.
859 (grub_efiemu_mm_obtain_request): Likewise.
860 (grub_efiemu_prepare): Likewise.
862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
864 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
869 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
870 case of aunaligned recptr.
871 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
873 (grub_hfsplus_btree_search): Handle unaligned index.
875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
877 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
878 to get freetag and skip.
880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
884 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
885 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
889 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
890 name for checksum and fix allocation algorithm.
892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
894 * include/grub/types.h (grub_properly_aligned_t): New type.
895 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
896 (grub_get_unaligned16): Add explicit casts.
897 (grub_get_unaligned32): Likewise.
898 (grub_get_unaligned64): Likewise.
899 (grub_set_unaligned16): New function.
900 (grub_set_unaligned32): Likewise.
902 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
904 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
908 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
909 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
910 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
914 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
919 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
920 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
924 Unify and improve RAID and crypto xor.
926 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
927 changed to grub_crypto_xor
928 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
929 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
930 Use bigger types when possible.
932 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
934 * grub-core/disk/raid.c (scan_devices): Fix condition.
936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
938 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
939 Make name a const ptr.
941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
943 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
944 first argument a const pointer.
945 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
948 (grub_children_iterate): Likewise.
949 (grub_machine_mmap_iterate): Remove redundant declaration.
951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
953 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
954 (grub_cmd_acpi) [!x86]: Disable EBDA.
956 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
958 Enable UTF8 in gnulib regexp.
960 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
961 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
962 (isupper): Use grub_isupper.
963 (isascii): New inline function.
964 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
965 * grub-core/lib/posix_wrap/wctype.h: Likewise.
966 * grub-core/normal/charset.c (grub_utf8_process): New function.
967 (grub_utf8_to_utf16): Use grub_utf8_process.
968 (grub_encode_utf8_character): New function.
969 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
970 * include/grub/charset.h (grub_utf8_process): New declaration.
971 (grub_encode_utf8_character): Likewise.
972 * include/grub/misc.h (grub_islower): New inline function.
973 (grub_isupper): Likewise.
974 (grub_strchrsub): Moved down to fix the definitions.
976 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
978 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
983 * include/grub/loader.h (grub_loader_register_preboot_hook):
984 Use struct preboot * and not void * for handle. All users updated.
985 (grub_loader_unregister_preboot_hook): Likewise.
987 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
989 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
990 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
991 UTF-16-BE. All users updated.
992 (grub_hfsplus_cmp_catkey): Fix unicode handling.
993 (grub_hfsplus_iterate_dir): Likewise.
994 (grub_hfsplus_label): Likewise.
996 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
998 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1000 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1002 Add missing const qualifiers.
1004 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1005 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1006 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1007 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1008 (grub_lvm_check_flag): Likewise.
1009 * grub-core/efiemu/i386/coredetect.c
1010 (grub_efiemu_get_default_core_name): Likewise
1011 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1012 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1013 * grub-core/fs/ntfs.c (fixup): Likewise.
1014 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1015 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1016 (fzap_lookup): Likewise.
1017 (zap_lookup): Likewise.
1018 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1019 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1020 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1021 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1022 (grub_freebsd_add_meta_module): Likewise.
1023 (grub_cmd_freebsd_module): Likewise.
1024 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1025 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1026 (grub_xnu_writetree_get_size): Likewise.
1027 (grub_xnu_writetree_toheap_real): Likewise.
1028 (grub_xnu_find_key): Likewise.
1029 (grub_xnu_create_key): Likewise.
1030 (grub_xnu_create_value): Likewise.
1031 (grub_xnu_register_memory): Likewise.
1032 (grub_xnu_check_os_bundle_required): Likewise.
1033 (grub_xnu_scan_dir_for_kexts): Likewise.
1034 (grub_xnu_load_kext_from_dir): Likewise.
1035 * grub-core/normal/color.c (color_list): Likewise.
1036 * grub-core/normal/completion.c (current_word): Likewise.
1037 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1038 * grub-core/term/serial.c (grub_serial_find): Likewise.
1039 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1040 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1042 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1043 (grub_freebsd_add_meta_module): Likewise.
1044 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1045 * include/grub/net.h (grub_net_card_driver): Likewise.
1046 (grub_net_card): Likewise.
1047 (grub_net_app_protocol): Likewise.
1048 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1049 * include/grub/serial.h (grub_serial_find): Likewise.
1050 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1051 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1052 (grub_xnu_create_value): Likewise.
1053 (grub_xnu_find_key): Likewise.
1054 (grub_xnu_scan_dir_for_kexts): Likewise.
1055 (grub_xnu_load_kext_from_dir): Likewise.
1057 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1058 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1059 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1061 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1063 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1065 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1067 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1069 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1070 (read_device): Fix size calculation.
1072 2011-11-25 Robert Millan <rmh@gnu.org>
1074 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1075 (find_root_device_from_libzfs): Add zpool output parser to be used
1076 as fallback when libzfs isn't available.
1078 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1080 * po/Makefile.in.in: Add missing escape-continuation.
1082 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1084 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1086 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1088 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1090 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1092 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1094 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1096 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1098 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1100 * grub-core/lib/adler32.c: Add missing license specification.
1101 * grub-core/lib/crc64.c: Likewise.
1102 * grub-core/loader/i386/pc/plan9.c: Likewise.
1103 * grub-core/partmap/plan.c: Likewise.
1105 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1107 Add facility to debug GRUB with gdb under qemu.
1109 * grub-core/gdb_grub.in: New file.
1110 * grub-core/gmodule.pl.in: Likewise.
1111 * grub-core/Makefile.core.def (gmodule.pl): New script.
1112 (gdb_grub): Likewise.
1114 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1116 * util/grub-mount.c (argp_parser): Accept relative pathes.
1117 * util/grub-fstest.c (argp_parser): Likewise.
1119 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1123 * Makefile.util.def (libgrubmods): Add
1124 grub-core/partmap/plan.c.
1125 * docs/grub.texi: Notice Plan9 support.
1126 * grub-core/Makefile.core.def (plan9): New module.
1127 (part_plan): Likewise.
1128 * grub-core/loader/i386/pc/plan9.c: New file.
1129 * grub-core/partmap/plan.c: Likewise.
1130 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1132 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1133 * include/grub/mm.h (grub_extend_alloc): New inline function.
1135 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1137 Make Reed-Solomon faster by using power of generator representation of
1140 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1141 (gf_double_t): Likewise.
1142 (gf_invert): Removed.
1143 (gf_powx): New array.
1144 (gf_powx_inv): Likewise.
1145 (scratch): Move higher.
1146 (gf_reduce): Removed.
1148 (gf_invert): Likewise.
1149 (init_inverts): Replaced with ...
1150 (init_powx): ...this. All users updated.
1151 (pol_evaluate): Replace multiplications with additions.
1152 (rs_encode): Likewise.
1153 (gauss_eliminate): Call gf_invert.
1154 (grub_reed_solomon_add_redundancy): Call init_powx.
1155 (grub_reed_solomon_recover): Call init_powx unconditionally.
1157 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1159 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1161 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1164 disk->partiton for safety.
1166 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1170 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1172 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1174 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1176 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1178 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1182 Fix spaces handling in proc/self/mountinfo.
1184 * util/getroot.c (unescape): New function.
1185 (grub_find_root_device_from_mountinfo): Use unescape.
1187 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1189 Support ZFS embedding.
1191 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1192 (grub_zfs_fs): Register grub_zfs_embed.
1194 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1196 Fix MIPS compilation.
1198 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1199 * include/grub/offsets.h: Rename decompressor fields from
1200 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1201 * util/grub-mkimage.c (image_targets): Use new names.
1203 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1205 Defer multiboot device parsing until we're in compressed part.
1207 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1208 bsd_part. setdevice has fallen into disuse.
1209 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1210 (bsd_part): Likewise.
1211 (boot_dev): New variable.
1212 (multiboot_trampoline): Don't parse multiboot device.
1213 Pass multiboot device in %edx.
1214 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1216 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1218 * grub-core/kern/i386/pc/startup.S: Save edx.
1219 (grub_boot_drive): Removed.
1220 (grub_install_dos_part): Likewise.
1221 (grub_install_bsd_part): Likewise.
1222 (grub_boot_device): New variable.
1223 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1224 (grub_install_bsd_part): Likewise.
1225 (grub_boot_drive): Likewise.
1226 (grub_boot_device): New variable.
1227 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
1229 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1230 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
1231 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
1232 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
1233 * util/grub-install.in: Remove redundant condition.
1235 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1237 Fix bug introduced by previous commit.
1239 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1241 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1243 Use decompressors framework on i386-pc. It increases core size
1244 by 46 bytes but improves compatibility and maintainability.
1246 * grub-core/Makefile.core.def (lzma_decompress): New image.
1247 (kernel): Add i386_pc_ldflags.
1248 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
1249 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
1250 to real_to_prot, prot_to_real and device info.
1251 * include/grub/offsets.h: Renamed decompressor offsets.
1252 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
1253 (image_target_desc): Remove raw_size and rename decompressor fields.
1254 (compress_kernel): Handle lzma.
1255 (generate_image): Handle decompressors on i386-pc.
1257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1259 * configure.ac: Add -fno-asynchronous-unwind-tables.
1261 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1263 Move assembly code to C by using intwrap. It increases core size
1264 by 88 bytes but improves compatibility and maintainability.
1266 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
1267 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
1268 ... here. Translated to C.
1269 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
1270 * grub-core/term/i386/pc/console.c (grub_console_getkey):
1271 ... here. Translated to C.
1272 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
1273 * grub-core/term/i386/pc/console.c (grub_console_getxy):
1274 ... here. Translated to C.
1275 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
1276 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
1277 ... here. Translated to C.
1278 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
1279 * grub-core/term/i386/pc/console.c (grub_console_cls):
1280 ... here. Translated to C.
1281 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
1282 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
1283 ... here. Translated to C.
1284 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
1285 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
1287 * grub-core/term/i386/pc/console.c (int10_9): New function.
1288 (grub_console_putchar): Likewise.
1289 * include/grub/i386/pc/console.h: Removed the not anymore shared
1292 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1294 Move grub_chainloader_real_boot out of the kernel.
1296 * grub-core/Makefile.am: Remove machine/loader.h.
1297 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1299 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
1301 (grub_relocator16_keep_a20_enabled): Likewise.
1302 (grub_relocator16_boot): Fill new variables.
1303 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
1304 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
1306 (grub_chainloader_unload): Likewise.
1307 (grub_chainloader_cmd): Likewise.
1308 * include/grub/i386/pc/loader.h: Removed.
1309 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
1310 and esi. All initialisers updated.
1312 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1313 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
1315 * Makefile.util.def (grub-mount): New util.
1316 * .bzrignore: Add grub-mount.
1317 * configure.ac: Check for fuse and enable grub-mount if available.
1318 * docs/man/grub-mount.h2m: New file.
1319 * util/grub-mount.c: Likewise.
1321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1323 * grub-core/commands/efi/fixvideo.c: Gettextize.
1324 * grub-core/commands/hashsum.c: Likewise.
1325 * grub-core/commands/i386/cmostest.c: Likewise.
1326 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1327 * grub-core/commands/i386/pc/lsapm.c: Likewise.
1328 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1329 * grub-core/commands/lsmmap.c: Likewise.
1330 * grub-core/commands/menuentry.c: Likewise.
1331 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
1332 * grub-core/commands/setpci.c: Likewise.
1333 * grub-core/loader/i386/bsd.c: Likewise.
1334 * grub-core/loader/i386/linux.c: Likewise.
1335 * util/getroot.c: Likewise.
1336 * util/grub-editenv.c: Likewise.
1337 * util/grub-fstest.c: Likewise.
1338 * util/grub-mkfont.c: Likewise.
1339 * util/grub-mkimage.c: Likewise.
1340 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1341 * util/grub-pe2elf.c: Likewise.
1342 * util/grub-probe.c: Likewise.
1343 * util/grub-setup.c: Likewise.
1344 * util/ieee1275/ofpath.c: Likewise.
1345 * util/misc.c: Likewise.
1346 * util/raid.c: Likewise.
1348 2011-11-11 Robert Millan <rmh@gnu.org>
1350 * util/getroot.c (grub_util_get_geom_abstraction): Remove
1351 __attribute__((unused)) from `os_dev', which *is* being used.
1353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1355 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
1357 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
1358 GRUB_IA64_DL_GOT_ALIGN.
1359 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
1360 GRUB_IA64_DL_TRAMP_ALIGN.
1362 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1364 Replace grub_fatal with normal errors in i386 linux loader.
1366 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
1367 (allocate_pages): Check find_efi_mmap_size return value.
1368 (grub_e820_add_region): Return error.
1369 (grub_linux_boot): Check mmap return value.
1371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1373 * grub-core/commands/acpihalt.c: Gettextized.
1374 * grub-core/commands/cacheinfo.c: Likewise.
1375 * grub-core/commands/cmp.c: Likewise.
1376 * grub-core/commands/efi/loadbios.c: Likewise.
1377 * grub-core/commands/gptsync.c: Likewise.
1378 * grub-core/commands/ieee1275/suspend.c: Likewise.
1379 * grub-core/commands/legacycfg.c: Likewise.
1380 * grub-core/commands/memrw.c: Likewise.
1381 * grub-core/commands/minicmd.c: Likewise.
1382 * grub-core/commands/parttool.c: Likewise.
1383 * grub-core/commands/time.c: Likewise.
1384 * grub-core/commands/videoinfo.c: Likewise.
1385 * grub-core/disk/geli.c: Likewise.
1386 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
1387 * grub-core/disk/luks.c: Likewise.
1388 * grub-core/disk/lvm.c: Likewise.
1389 * grub-core/font/font_cmd.c: Likewise.
1390 * grub-core/fs/zfs/zfscrypt.c: Likewise.
1391 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1392 * grub-core/gfxmenu/view.c: Likewise.
1393 * grub-core/kern/emu/hostdisk.c: Likewise.
1394 * grub-core/kern/emu/main.c: Likewise.
1395 * grub-core/kern/emu/misc.c: Likewise.
1396 * grub-core/kern/emu/mm.c: Likewise.
1397 * grub-core/kern/mips/arc/init.c: Likewise.
1398 * grub-core/kern/mips/loongson/init.c: Likewise.
1399 * grub-core/kern/partition.c: Likewise.
1400 * grub-core/lib/i386/halt.c: Likewise.
1401 * grub-core/lib/mips/arc/reboot.c: Likewise.
1402 * grub-core/lib/mips/loongson/reboot.c: Likewise.
1403 * grub-core/loader/i386/pc/chainloader.c: Likewise.
1404 * grub-core/loader/i386/xnu.c: Likewise.
1405 * grub-core/loader/multiboot.c: Likewise.
1406 * grub-core/net/bootp.c: Likewise.
1407 * grub-core/net/net.c: Likewise.
1408 * grub-core/normal/term.c: Likewise.
1409 * grub-core/partmap/bsdlabel.c: Likewise.
1410 * grub-core/parttool/msdospart.c: Likewise.
1411 * grub-core/term/gfxterm.c: Likewise.
1412 * grub-core/term/terminfo.c: Likewise.
1413 * grub-core/video/i386/pc/vbe.c: Likewise.
1414 * util/grub-menulst2cfg.c: Likewise.
1415 * util/grub-mkdevicemap.c: Likewise.
1416 * util/grub-mklayout.c: Likewise.
1417 * util/grub-mkrelpath.c: Likewise.
1418 * util/grub-script-check.c: Likewise.
1419 * util/ieee1275/grub-ofpathname.c: Likewise.
1420 * util/resolve.c: Likewise.
1422 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1424 Support %1$d syntax.
1426 * tests/printf_unit_test.c: New file.
1427 * Makefile.util.def (printf_test): New test.
1428 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
1430 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1432 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
1435 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
1439 * grub-core/font/font.c (grub_font_load): Likewise.
1441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1443 * util/grub-macho2img.c: Add comment concerning gettext.
1444 * grub-core/lib/legacy_parse.c: Likewise.
1446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1448 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
1449 (grub_xvasprintf): Likewise.
1451 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1453 Add const keyword to grub_env_get and gettextize week days.
1455 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
1456 (grub_read_hook_datetime): Return const char *.
1457 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
1459 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1461 (grub_get_weekday_name): Return const char *. Call gettext.
1462 * grub-core/script/argv.c (grub_script_argv_append): Receive const
1463 char * and len as the argument. All users updated.
1464 (grub_script_argv_split_append): Receive const char *.
1465 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
1466 * include/grub/env.h (grub_env_get): Likewise.
1467 (grub_env_read_hook_t): Return const char *.
1468 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
1469 (grub_script_argv_split_append): Likewise.
1471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1473 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
1475 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1477 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
1478 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
1480 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
1485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1487 Fix mips compilation.
1489 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
1491 (hashes): Use in embed decoder as well (for sizes).
1492 (dec_stream_header): Fix embed decompressor logic.
1493 (dec_stream_footer): Likewise.
1495 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1497 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
1498 an error and not a fatal on unrecognised relocation types.
1500 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1502 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1503 Issue error rather than printf on unknown arguments.
1505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1507 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1510 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1512 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1517 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1518 leftover debug printf.
1520 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1526 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1531 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1533 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1535 Allow all modules to perform serial IO
1537 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
1538 * include/grub/serial.h (grub_serial_port_configure): New inline
1540 (grub_serial_port_fetch): Likewise.
1541 (grub_serial_port_put): Likewise.
1542 (grub_serial_port_fini): Likewise.
1543 (grub_serial_find): New proto.
1545 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1547 Put symlink at the end of the node and fix a potential
1550 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
1551 Make symlink into an array.
1552 (set_rockridge): Set have_symlink and alloc_dirents.
1553 (grub_iso9660_read_symlink): Use new layout.
1554 (grub_iso9660_iterate_dir): Fix memory corruption.
1556 (grub_iso9660_dir): Set have_symlink.
1557 (grub_iso9660_open): Likewise.
1559 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1561 Remove local keyword.
1563 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
1564 (version_test_gt): Likewise.
1565 (version_find_latest): Likewise.
1566 (gettext_printf): Likewise.
1567 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
1569 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1571 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
1573 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1575 Fix ZFS memory and resource leaks.
1577 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
1580 (fill_vdev_info): New parameter inserted. All users updated.
1581 (check_pool_label): Likewise.
1582 (scan_disk): Likewise.
1583 (scan_devices): Close non-inserted disks.
1584 (fzap_iterate): Free l.
1585 (unmount_device): Free children descripto memory.
1587 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1589 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
1590 argument (access out of bounds).
1592 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1594 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
1597 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1599 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
1602 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1604 Fix several memory leaks.
1606 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
1607 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
1608 (grub_cpio_dir): Likewise.
1609 * grub-core/fs/fat.c (grub_fat_label): Likewise.
1610 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
1611 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
1612 (grub_romfs_label): Likewise.
1613 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
1614 (squash_unmount): New function.
1615 (grub_squash_dir): Fix memory leak.
1616 (grub_squash_open): Likewise.
1617 (grub_squash_read): Likewise.
1618 (grub_squash_mtime): Likewise.
1619 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
1620 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
1621 * util/grub-fstest.c (fstest): Likewise.
1623 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1625 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
1626 avoid accessing beyond the array.
1628 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1630 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
1632 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1636 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
1637 (GRUB_AFFS_FLAG_FFS): Removed.
1638 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
1639 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
1640 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
1641 (grub_fshelp_node): Make block 32-bit.
1642 Add block_cache and last_block_cache.
1643 (grub_affs_read_block): Fill and use block cache.
1644 (grub_affs_read_file): Removed.
1645 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
1647 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
1649 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
1651 (grub_affs_close): Free block cache.
1652 (grub_affs_read): Use grub_fshelp_read_file directly.
1654 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1656 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
1659 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1661 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
1663 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1666 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1668 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
1670 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
1671 byteswap when needed.
1673 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1675 Fix FreeBSD compilation.
1677 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
1678 to avoid circular dependency.
1679 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
1680 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
1681 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
1683 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1685 Fix ZFS crypto error types.
1687 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
1688 (grub_gcm_decrypt): Likewise.
1689 (grub_zfs_load_key_real): Fix error code type. Handle possible error
1692 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1696 * Makefile.util.def (10_illumos): New script.
1697 * configure.ac: Set COND_HOST_ILLUMOS.
1698 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
1699 Support Illumos calls.
1700 (find_partition_start) [__sun__]: Likewise.
1701 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
1702 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
1703 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
1704 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
1706 * util/grub-probe.c (probe) [__sun__]: Do character check.
1707 * util/grub.d/10_illumos.in: New file.
1709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1711 Support escaped commas in hostdisk.
1713 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
1714 (find_grub_drive): Use unescape_cmp.
1715 (make_device_name): Escape commas.
1717 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1719 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
1721 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1723 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
1726 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1728 Support trampoline jumps on powerpc.
1730 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
1732 (grub_dl_load_segments): Set mod->sz.
1733 (grub_dl_flush_cache): Flush whole space occupied by module, not just
1735 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
1737 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
1739 (trampoline): New struct.
1740 (trampoline_template): New const.
1741 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
1742 * include/grub/dl.h (grub_dl): Add sz element.
1743 [__powerpc__]: Follow __ia64__.
1744 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
1745 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
1746 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
1747 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
1749 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1753 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
1754 * grub-core/Makefile.core.def (zfscrypt): New module.
1755 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
1756 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
1757 it. All users updated.
1758 (grub_zfs_decrypt): New var.
1759 (grub_zfs_load_key): Likewise.
1760 (zio_checksum_functions): Add SHA256+MAC.
1761 (zio_checksum_verify): Handle incomplete comparison due to MAC.
1762 (zio_read): Handle encrypted blocks.
1763 (zap_verify): Remove incorrect check.
1764 (fzap_iterate): Handle non-standard fzap.
1765 (zap_iterate): Likewise.
1766 (zap_iterate_u64): New function.
1767 (dnode_get_fullpath): Load keys.
1768 * grub-core/fs/zfs/zfscrypt.c: New file.
1769 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
1770 (grub_crypto_ecb_encrypt): Make input const.
1771 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
1772 (grub_crypto_ecb_encrypt): Make input const.
1773 (GRUB_CIPHER_AES): New macro.
1774 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
1775 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
1776 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
1777 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
1778 prefix. All users updated.
1779 (grub_zfs_add_key): New proto.
1780 (grub_zfs_decrypt): Likewise.
1781 (grub_zfs_load_key): Likewise.
1782 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
1783 * util/grub-fstest.c (options): Add -K option.
1784 (argp_parser): Likewise.
1786 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1788 Support zle compression on ZFS.
1790 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
1791 (decomp_table): Add zle.
1792 * include/grub/zfs/zio.h (zio_compress): Add zle.
1794 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1796 Support BtrFS embedding.
1798 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
1799 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
1800 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
1801 * util/grub-setup.c (setup): Use fs embedding if available.
1802 Add additional sanity check.
1804 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1806 * util/grub-install.in: Fix condition for config_opt.
1808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1810 Support third redundancy strip on raidz3.
1812 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
1813 Return error on singularity. All users updated.
1814 (read_device): Don't stop on 3rd failure on raidz3.
1816 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1818 Support case-insensitive ZFS subvolumes.
1820 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
1822 (zap_hash): Likewise.
1823 (name_cmp): New function.
1824 (zap_leaf_array_equal): New parameter case_insensitive.
1826 (zap_leaf_lookup): Likewise.
1827 (fzap_lookup): Likewise.
1828 (zap_lookup): Likewise.
1829 (dnode_get_path): New parameter case_insensitive. Retrieve case
1830 sensitiviness of a volume. All users updated.
1831 (dnode_get_fullpath): New parameter case_insensitive.
1833 (grub_zfs_dir): Set info.case_insensitiveness.
1835 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1837 Support second redundancy strip on raidz(2,3).
1839 * grub-core/fs/zfs/zfs.c (powx): New array.
1840 (powx_inv): Likewise.
1842 (xor_out): New function.
1844 (recovery): Likewise.
1845 (read_device): Use second redundancy strip.
1847 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1849 Use a power of generator representation of GF(256) multiplication group
1850 to save space time and complexity.
1852 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
1853 (raid6_table2): Likewise.
1855 (powx_inv): Likewise.
1857 (grub_raid_block_mul): Replace with ...
1858 (grub_raid_block_mulx): ...this.
1859 (grub_raid6_init_table): Rewritten.
1860 (grub_raid6_recover): Use power of generator representation.
1862 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1864 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
1865 for the right device.
1867 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1869 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
1870 expected by grub-mkimage and it's more clear since there is no implicit
1873 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1875 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
1877 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
1879 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
1881 * util/grub-mkrescue.in: Fix handling xorriso option.
1883 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
1888 2011-11-03 crocket <crockabiscuit@gmail.com>
1890 * util/grub.d/10_linux.in: Add Slackware initrd naming.
1892 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1894 XZ CRC64 and SHA256 support.
1896 * Makefile.util.def (libgrubmods): Add crc64.c.
1897 * grub-core/Makefile.core.def (crc64): New module.
1898 * grub-core/lib/crc64.c: New file.
1899 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
1900 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
1902 (MAX_HASH_SIZE): New define.
1903 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
1904 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
1905 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
1906 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
1907 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
1908 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
1909 Handle non-crc32 hashes.
1910 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
1911 (dec_stream_header): Handle non-crc32 hashes.
1912 (dec_stream_footer): Likewise.
1913 (dec_block_header): Likewise.
1914 (dec_main): Likewise.
1915 (xz_dec_init): Likewise.
1916 (xz_dec_reset): Likewise.
1917 (xz_dec_end): Likewise.
1918 * util/import_gcry.py: Add CRC64 line.
1920 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1922 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
1925 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1927 Make reiserfs label retrieval similar to other *_label functions.
1929 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
1930 (REISERFS_MAX_LABEL_LENGTH): Removed.
1931 (REISERFS_LABEL_OFFSET): Likewise.
1932 (grub_reiserfs_label): Rewritten.
1934 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1936 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
1939 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1941 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
1943 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1945 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
1946 drive failure on both raidz and raidz2.
1948 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1950 Fix RAIDZ(2) for >= 5 devices.
1952 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
1953 asize argument. All users updated.
1955 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1959 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
1960 (fill_vdev_info_real): Set ashift.
1961 (read_device): Rewrite RAIDZ part based on reverse engineering.
1963 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1965 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
1966 don't report potentially unavialiable fields in debug output.
1967 (find_path): Fix double-free and memory leak.
1969 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
1974 (grub_ufs_fs): Always set .label.
1976 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1980 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
1981 (grub_ufs_data): New field log2_blksz.
1982 (grub_ufs_read_file): Use shifts.
1983 (grub_ufs_mount): Check block size and logarithm it.
1985 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1987 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
1990 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1992 Handle symlinks and long names on tar and cpio.
1994 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
1995 (ATTR_FILE): Likewise.
1996 (ATTR_DIR): Likewise.
1997 (ATTR_LNK): Likewise.
1998 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
1999 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2001 (grub_cpio_mount): Zero-fill data.
2002 (handle_symlink): New function.
2003 (grub_cpio_dir): Handle symlinks.
2004 (grub_cpio_open): Likewise.
2005 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2007 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2009 Fix iso9660 filename limitations and fix memory leaks.
2011 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2012 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2014 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2016 Fix JFS file name length limitations.
2018 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2019 (grub_jfs_diropen): Fix maximum filename length.
2020 (grub_jfs_getent): Fix filename length.
2021 (grub_jfs_lookup_symlink): Fix size checks.
2023 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2025 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2028 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2030 Leverage BFS implementation to read AFS.
2032 * Makefile.util.def (libgrubmods): Add afs.c.
2033 * grub-core/Makefile.core.def (afs): New module
2034 * grub-core/fs/afs.c: New file.
2035 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2041 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/fs/bfs.c: Run indent.
2045 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2047 BFS implementation based on the specification.
2049 * grub-core/fs/bfs.c: New file.
2050 * Makefile.util.def (libgrubmods): Add bfs.c.
2051 * grub-core/Makefile.core.def (bfs): New module.
2053 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2055 * util/grub-fstest.c (cmd_cp): Clarify error message.
2056 (cmd_cmp): Likewise.
2058 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2060 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2063 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2065 Remove afs and befs because of copyright problem.
2067 * grub-core/fs/afs.c: Removed.
2068 * grub-core/fs/afs_be.c: Removed.
2069 * grub-core/fs/befs.c: Removed.
2070 * grub-core/fs/befs_be.c: Removed.
2071 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2072 * grub-core/Makefile.core.def (afs): Removed.
2075 (befs_be): Likewise.
2077 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2079 Prefer rockridge over Joliet.
2081 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2083 (set_rockridge): ... here.
2084 (grub_iso9660_mount): Check rockridge on the primary label when
2085 discovering. Ignore Joliet if Rockridge is present.
2087 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2089 Use shifts in nilfs2.
2091 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2092 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2093 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2094 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2095 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2096 (grub_nilfs2_entries_per_block): Replaced with ...
2097 (grub_nilfs2_log_entries_per_block_log): ... this.
2098 (grub_nilfs2_blocks_per_group): Replaced with ...
2099 (grub_nilfs2_blocks_per_group_log): ... this.
2100 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2101 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2102 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2103 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2104 (grub_nilfs2_palloc_entry_offset): Replaced ...
2105 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2106 (grub_nilfs2_dat_translate): Use shifts.
2107 (grub_nilfs2_read_inode): Likewise.
2108 (GRUB_MOD_INIT): Ensure that logs are correct.
2110 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2112 Use shifts in minix filesystem.
2114 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2115 (GRUB_MINIX_ZONE2SECT): Likewise.
2116 (grub_minix_data): Replace block_size with log_block_size.
2117 (grub_minix_read_file): Use shifts.
2118 (grub_minix_mount): Check block size and take a logarithm.
2120 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2122 Use shifts in squash4.
2124 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2125 (squash_mount): Check block size and take logarithm.
2126 (direct_read): Use shifts.
2128 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2130 Correct befs block counting logic.
2132 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2133 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2134 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2135 (grub_afs_read_inode): Use block_shift.
2136 (RANGE_SHIFT): New definition.
2137 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2138 unexpected conditions, use shifts and appropriate types.
2139 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2141 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2143 * grub-core/disk/raid.c (scan_devices): Check partition.
2144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2146 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2148 Support BFS (befs) UUID.
2150 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2151 (grub_afs_small_data_element_header): New struct.
2152 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2153 (grub_afs_read_attribute) [MODE_BFS]: New function.
2154 (grub_afs_iterate_dir): Allocate for complete inode.
2155 (grub_afs_mount): Likewise.
2156 (grub_afs_uuid) [MODE_BFS]: New function.
2157 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2159 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2161 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2162 (zfs_unmount): Fix memory leak.
2164 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2166 Support NTFS reparse points.
2168 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2169 (symlink_descriptor): New struct.
2170 (grub_ntfs_read_symlink): New function.
2171 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2172 (grub_ntfs_open): Likewise.
2174 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2176 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2178 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2180 fstest xnu_uuid subcommand.
2182 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2183 grub-core/commands/xnu_uuid.c.
2184 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2185 (fstest): Handle xnu_uuid.
2186 (options): Document xnu_uuid.
2187 (argp_parser): Parse xnu_uuid.
2189 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2191 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2192 -l argument. Add newline at the end if printing.
2193 (GRUB_MOD_INIT): Document -l.
2195 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2197 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2199 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2201 ZFS multi-device and version 33 support.
2203 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2204 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2205 (grub_zfs_data): Add multidev-ice-related fields.
2206 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2207 (dva_get_offset): Make dva const.
2208 (zfs_fetch_nvlist): New function.
2209 (fill_vdev_info_real): Likewise.
2210 (fill_vdev_info): Likewise.
2211 (check_pool_label): Likewise.
2212 (scan_disk): Likewise.
2213 (scan_devices): Likewise.
2214 (read_device): Likewise.
2215 (read_dva): Likewise.
2216 (zio_read_gang): Use read_dva.
2217 (zio_read_data): Likewise.
2218 (zap_leaf_lookup): Add missing endian conversion.
2219 (zap_verify): Add missing endian conversion. All users updated.
2220 (fzap_lookup): Likewise.
2221 (fzap_iterate): Likewise.
2222 (dnode_get_path): Handle SA bonus.
2223 (nvlist_find_value): Make input const. All users updated.
2224 (unmount_device): New function.
2225 (zfs_unmount): Use unmount_device.
2226 (zfs_mount): Use scan_disk.
2227 (zfs_mtime): New function.
2228 (grub_zfs_open): Handle system attributes.
2229 (fill_fs_info): Likewise.
2230 (grub_zfs_dir): Likewise.
2231 (grub_zfs_fs): Add mtime.
2232 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
2233 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
2234 (SA_MTIME_OFFSET): Likewise.
2235 (SA_SYMLINK_OFFSET): Likewise.
2236 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
2237 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
2238 (fstest): Support zfsinfo.
2239 (argp_parser): Likewise.
2241 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2243 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2246 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2250 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
2251 sharing the same block. Iterate over correct number of indices.
2252 (dnode_get_path): Handle symlinks correctly.
2254 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2256 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2262 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
2263 (grub_hfsplus_btree_search): Fix types.
2264 (grub_hfsplus_label): Implement.
2266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2268 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2270 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2272 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2274 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2276 Fix symlink handling on iso9660.
2278 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2280 (grub_iso9660_susp_iterate): Accept zero-size iterate.
2281 (grub_iso9660_read_symlink): Moved most of code ...
2282 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
2284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2286 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2287 Use union to avoid breaking strict-aliasing rules.
2289 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2291 Support multi-extent iso files.
2293 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
2295 (grub_fshelp_node): Revamp. All users updated.
2297 (read_node): New function.
2298 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
2300 (grub_iso9660_mount): Don't attempt to read sua when there is none.
2301 (get_node_size): New function.
2302 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
2304 Fix memory leak on . and ..
2305 (grub_iso9660_read): Use read_node.
2306 (grub_iso9660_close): Free node.
2308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2310 Fix tar 4G limit and handle paths containing dot.
2312 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
2313 (canonicalize): New function.
2314 (grub_cpio_find_file): Use canonicalize. Store offs in
2316 (grub_cpio_dir): Use grub_disk_addr_t.
2317 (grub_cpio_open): Likewise.
2319 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2321 Fix handling of uncompressed blocks on squashfs and break 4G limit.
2323 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
2325 (grub_squash_inode): Add long_file and block_size.
2326 (grub_squash_cache_inode): New struct.
2327 (grub_squash_dirent): Make types into enum.
2328 (SQUASH_TYPE_LONG_REGULAR): New type.
2329 (grub_squash_frag_desc): Add field size.
2330 (SQUASH_BLOCK_FLAGS): New enum.
2331 (grub_squash_data): Use grub_squash_cache_inode.
2332 (grub_fshelp_node): Make ino_chunk 64-bit.
2333 (read_chunk): Minor argument change. All users updated.
2334 (squash_mount): Use correct le_to_cpu.
2335 (grub_squash_open): Handle LONG_REGULAR.
2336 (direct_read): New function.
2337 (grub_squash_read_data): Handle blocks correctly.
2339 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2341 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
2343 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2345 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
2347 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2349 Fix 2G limit on ZFS.
2351 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
2353 (uberblock_verify): Likewise.
2354 (dmu_read): Likewise.
2355 (grub_zfs_read): Likewise. Remove invalid cast.
2357 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2359 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
2360 (grub_jfs_blkno): Fix incorrect shift.
2361 (grub_jfs_read_file): Use more appropriate types.
2363 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2365 Support triple indirect on minix2 and minix3.
2367 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
2368 Declare triple_indir_zone.
2369 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
2372 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2376 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
2377 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
2378 Rename ctime to mtime. All users updated.
2379 (grub_minix_get_file_block): Fix types and double indirect computations.
2381 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2383 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
2384 if no label is found.
2385 (grub_fat_iterate_dir): Fix file size type.
2386 (grub_fat_iterate_dir): Likewise.
2388 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2390 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
2392 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2397 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
2399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2401 * util/import_gcry.py: Accept space between # and include.
2403 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2405 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
2407 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2409 Fine grainely disable warnings on lexer. Remove Wno-error on it.
2411 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
2412 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
2414 * grub-core/script/yylex.l: Add fine-grained #pragma.
2416 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2418 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
2419 New inline function.
2420 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
2422 (memset) [GRUB_UTIL]: Likewise.
2423 (memcmp) [GRUB_UTIL]: Likewise.
2425 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2427 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
2428 inline function rather than a define.
2430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2432 * util/grub-setup.c: Add missing include.
2434 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2436 * util/ieee1275/grub-ofpathname.c: Add missing include.
2438 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2440 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
2441 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
2444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2446 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
2449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2451 * util/grub-install.in: Add datarootdir as per automake manual
2453 * util/grub-mknetdir.in: Likewise.
2455 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2457 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
2459 * util/grub.d/10_kfreebsd.in: Likewise.
2460 * util/grub.d/10_linux.in: Likewise.
2461 * util/grub.d/10_netbsd.in: Likewise.
2462 * util/grub.d/10_windows.in: Likewise.
2463 * util/grub.d/20_linux_xen.in: Likewise.
2465 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2467 Remove redundant grub_kernel_image_size.
2469 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
2471 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
2472 the small code. It moves it only by few bytes but simplifies the code.
2473 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
2475 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
2476 (grub_kernel_image_size): Removed.
2477 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
2478 (grub_kernel_image_size): Removed.
2479 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
2480 compiled with Apple toolchain.
2481 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
2482 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
2483 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
2484 (grub_total_module_size): Likewise.
2485 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
2487 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
2488 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
2489 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2490 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
2491 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
2492 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
2493 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
2494 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
2496 (grub_total_module_size): Removed.
2497 * util/grub-mkimage.c (image_target_desc): Remove image_size.
2498 (image_targets): Likewise.
2499 Set .compressed_size to no field on sparc.
2500 (generate_image): Remove kernel_image_size handling.
2502 2011-10-19 Szymon Janc <szymon@janc.net.pl>
2504 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
2505 NULL pointer dereference.
2507 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2509 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2510 done with a dedicated section.
2512 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
2513 Ensure the correct position of boot_path.
2514 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
2515 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
2517 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
2518 * include/grub/boot.h: Removed. All references removed.
2519 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2521 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2523 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2525 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2528 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2530 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2532 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2535 Don't add the bogus brackets.
2537 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2541 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
2542 * grub-core/Makefile.core.def (exfat): New module.
2543 * grub-core/fs/exfat.c: New file.
2544 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
2545 (GRUB_FAT_ATTR_*): Make into an enum.
2546 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
2547 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
2548 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
2549 (GRUB_FAT_MAXFILE): Removed.
2550 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
2551 (grub_current_fat_bpb_t): New type.
2552 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
2553 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
2554 (grub_fat_dir_node_t): New type.
2555 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
2556 (fat_log2) [MODE_EXFAT]: Removed.
2557 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
2558 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
2559 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
2560 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
2561 (grub_fat_label) [MODE_EXFAT]: New function.
2562 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
2563 reserved_first_sector to 0.
2565 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2567 Move grub_reboot out of the kernel.
2569 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
2570 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
2571 * grub-core/lib/efi/reboot.c: ... here.
2572 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
2573 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2574 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
2575 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
2576 * grub-core/lib/i386/reboot_trampoline.S: ... here.
2577 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
2578 * grub-core/lib/ieee1275/reboot.c: ... here.
2579 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
2580 * grub-core/lib/mips/arc/reboot.c: ... here.
2581 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
2582 * grub-core/lib/mips/loongson/reboot.c: ...here.
2583 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
2584 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
2585 * include/grub/emu/misc.h (grub_reboot): New function declaration.
2586 * include/grub/i386/reboot.h: New file.
2587 * include/grub/mips/loongson/ec.h: Fix includes.
2588 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
2589 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
2590 * grub-core/lib/i386/reboot.c: New file.
2592 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2594 Make grub_prefix into module to fix the arbitrary limit and save
2597 * grub-core/kern/emu/main.c (grub_prefix): Removed.
2598 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
2599 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
2600 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
2601 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
2602 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
2603 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
2604 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
2605 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
2606 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
2607 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
2608 * include/grub/ia64/efi/kernel.h: Removed.
2609 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
2610 (grub_prefix): Removed.
2611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
2612 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
2613 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
2614 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
2615 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
2616 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
2617 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
2618 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
2619 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
2620 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
2621 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2622 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2623 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
2624 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
2625 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
2626 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
2627 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
2628 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2629 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
2630 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
2631 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
2632 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
2633 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
2634 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
2635 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
2636 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
2637 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
2638 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
2639 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
2641 * util/grub-mkimage.c (image_target_desc): Removed prefix and
2643 (image_targets): Likewise.
2644 (generate_image): Put prefix as a module.
2646 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2648 Replace grub_module_iterate with FOR_MODULES.
2650 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
2651 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
2652 (grub_efi_modules_addr): ...this.
2653 * grub-core/kern/efi/init.c (grub_modbase): New variable.
2654 (grub_efi_init): Set grub_modbase.
2655 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
2656 (grub_modbase): New variable.
2657 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
2658 (grub_modbase): New variable.
2659 (grub_machine_init): Set grub_modbase.
2660 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
2661 (grub_modbase): New variable.
2662 (grub_machine_init): Set grub_modbase.
2663 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
2664 (grub_modbase): New variable.
2665 (grub_machine_init): Set grub_modbase.
2666 * grub-core/kern/main.c (grub_module_iterate): Remove.
2667 (grub_modules_get_end): Use grub_modbase.
2668 (grub_load_modules): Use FOR_MODULES.
2669 (grub_load_config): Likewise.
2670 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
2671 (grub_modbase): New variable.
2672 (grub_machine_init): Set grub_modbase.
2673 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
2674 (grub_modbase): New variable.
2675 (grub_machine_init): Set grub_modbase.
2676 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
2678 (grub_modbase): New variable.
2679 (grub_machine_init): Set grub_modbase.
2680 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
2681 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
2682 (grub_module_iterate): Likewise.
2683 (grub_modbase): New variable declaration.
2684 (FOR_MODULES): New macro.
2686 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2688 * configure.ac: Check for __ctzdi2 and __ctzsi2.
2689 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
2691 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2693 Fix few obvious type discrepancies.
2695 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
2696 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
2697 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
2699 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
2700 and connected types.
2701 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
2703 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
2704 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
2705 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
2706 and connected types.
2708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2710 Fix python 3.x incompatibilities.
2712 * gentpl.py: Put brackets around print strings.
2713 * util/import_gcry.py: Open explicitly as utf-8.
2714 Use in instead of has_key.
2716 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2718 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
2719 (GRUB_XFS_INO_AGBITS): Make into inline function.
2720 (GRUB_XFS_INO_INOINAG): Likewise.
2721 (GRUB_XFS_INO_AG): Likewise.
2722 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
2723 (GRUB_XFS_EXTENT_OFFSET): Likewise.
2724 (GRUB_XFS_EXTENT_BLOCK): Likewise.
2725 (GRUB_XFS_EXTENT_SIZE): Likewise.
2726 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
2727 (GRUB_XFS_NEXT_DIRENT): Likewise.
2728 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
2729 (grub_xfs_read_file): Fix offset type.
2731 2011-10-15 Robert Millan <rmh@gnu.org>
2733 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
2735 2011-10-15 Robert Millan <rmh@gnu.org>
2737 Fix build problem on FreeBSD and GNU/kFreeBSD.
2739 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
2741 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2743 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
2745 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
2747 (grub_hfsplus_btree_recoffset): Likewise.
2748 (grub_hfsplus_btree_recptr): Likewise.
2749 (grub_hfsplus_find_block): Likewise.
2750 (grub_hfsplus_btree_search): Likewise.
2751 (grub_hfsplus_read_block): Likewise.
2752 (grub_hfsplus_read_file): Likewise.
2753 (grub_hfsplus_mount): Likewise.
2754 (grub_hfsplus_btree_iterate_node): Likewise.
2755 (grub_hfsplus_btree_search): Likewise.
2756 (grub_hfsplus_iterate_dir): Likewise.
2757 (grub_hfsplus_read): A small code simplification.
2759 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2761 * grub-core/kern/emu/hostdisk.c
2762 (convert_system_partition_to_system_disk): Don't assume that children
2763 of mapper nodes are mapper nodes.
2765 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2767 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
2768 * include/grub/misc.h (grub_isxdigit): New function.
2769 * grub-core/video/colors.c (my_isxdigit): Removed. All users
2770 switched to grub_isxdigit.
2771 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
2772 number starting with a letter.
2774 2011-10-09 Robert Millan <rmh@gnu.org>
2776 LVM support for FreeBSD and GNU/kFreeBSD.
2778 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
2780 (LVM_DEV_MAPPER_STRING): Move from here ...
2781 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
2782 * util/getroot.c: Include `<grub/util/lvm.h>'.
2783 (grub_util_get_dev_abstraction): Enable
2784 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
2785 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
2786 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
2787 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
2789 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
2791 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
2792 when LVM abstraction is required for ${GRUB_DEVICE}.
2794 2011-10-06 Szymon Janc <szymon@janc.net.pl>
2796 Add support for LZO compression in GRUB:
2797 - import of minilzo library,
2798 - LZO decompression for btrfs,
2799 - lzop files decompression.
2801 * grub-core/io/lzopio.c: New file.
2802 * grub-core/lib/adler32.c: Likewise.
2803 * grub-core/lib/minilzo/lzoconf.h: Likewise.
2804 * grub-core/lib/minilzo/lzodefs.h: Likewise.
2805 * grub-core/lib/minilzo/minilzo.c: Likewise.
2806 * grub-core/lib/minilzo/minilzo.h: Likewise.
2807 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
2808 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
2809 grub-core/lib/minilzo/minilzo.c to common.
2810 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
2812 * grub-core/Makefile.core.def (btrfs): Likewise.
2813 * grub-core/Makefile.core.def (lzopio): New module.
2814 (adler32): Likewise.
2815 * grub-core/fs/btrfs.c: Include minilzo.h.
2816 (GRUB_BTRFS_COMPRESSION_LZO): New define.
2817 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
2818 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
2819 (grub_btrfs_lzo_decompress): New function.
2820 (grub_btrfs_extent_read): Add support for LZO compression type.
2821 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
2822 (GRUB_USHRT_MAX): Likewise.
2823 (GRUB_UINT_MAX): Likewise.
2824 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
2825 (UINT_MAX): Likewise.
2826 (CHAR_BIT): Likewise.
2827 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
2828 grub-core/lib/posix_wrap/limits.h
2829 (UCHAR_MAX): Likewise.
2830 * include/grub/file.h (grub_file_filter_id): New compression filter
2831 GRUB_FILE_FILTER_LZOPIO.
2832 * include/grub/file.h (grub_file_filter_id): Set
2833 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
2834 * include/grub/types.h (grub_get_unaligned16): New function.
2835 (grub_get_unaligned32): Likewise.
2836 (grub_get_unaligned64): Likewise.
2837 * util/import_gcry.py (cryptolist): Add adler32.
2839 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
2841 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
2842 in perspective decreases the complexity of build system and fixes
2843 compilation right now.
2845 2011-10-01 Ales Nesrsta <starous@volny.cz>
2847 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
2848 (fixed problem related to using UHCI with coreboot).
2850 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2852 * gentpl.py: Use Autogen macros so that the output template file
2853 (Makefile.tpl) size is reduced.
2855 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
2857 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
2860 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2862 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
2863 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
2865 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2867 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
2870 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2872 Remove extra declaration of sleep for mingw32.
2874 * util/misc.c (sleep) [__MINGW32__]: Removed.
2875 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
2877 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2879 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
2881 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
2883 (NETBSD_BTINFO_BOOTWEDGE): New definition.
2884 (grub_netbsd_btinfo_bootwedge): New struct.
2885 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2887 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
2889 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
2891 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
2894 2011-09-28 Andreas Born <futur.andy@googlemail.com>
2896 Fix incorrect identifiers in bash-completion.
2898 * util/bash-completion.d/grub-completion.bash.in
2899 (_grub_mkpasswd-pbkdf2): Rename to ...
2900 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
2901 (_grub_script-check): Rename to ...
2902 (_grub_script_check): ... this. All users updated.
2904 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2907 Return 0 if disk isn't biosdisk.
2909 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2911 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
2913 * Makefile.util.def (grub-fstest): Likewise.
2915 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2917 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
2918 Get sector size from disk label.
2920 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
2922 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
2923 */README* as well as README*.
2924 Reported by: Axel Beckert.
2926 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2928 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
2929 case of less than 256 MiB of RAM.
2931 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2933 * grub-core/commands/wildcard.c (make_regex): Handle @.
2935 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2937 * util/grub-install.in: Move cryptodisk logic to appropriate place.
2939 2011-08-21 Szymon Janc <szymon@janc.net.pl>
2941 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
2942 AC_LANG_CONFTEST macros.
2944 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2946 Add grub-fstest option to uncompress data for commands.
2948 * util/grub-fstest.c (uncompress): New var.
2949 (options): New option -u.
2951 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2953 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2954 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
2956 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2958 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
2959 file type was not recognized correctly (not gzip or corrupted).
2961 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2963 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
2964 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
2966 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
2970 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
2971 video_radeon_fuloong2e.
2972 * grub-core/video/radeon_fuloong2e.c: New file.
2973 * include/grub/video.h (grub_video_id_t): Add new ID
2974 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
2976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2978 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
2980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
2981 that PRID matches the detected subplatform and reset the subplatform
2984 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2986 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
2988 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2990 Fix PCI iterating on functions >= 4.
2992 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
2993 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
2995 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
2996 (grub_pci_read): Fix bitmask.
2997 (grub_pci_read_word): Likewise.
2998 (grub_pci_read_byte): Likewise.
2999 (grub_pci_write): Likewise.
3000 (grub_pci_write_word): Likewise.
3001 (grub_pci_write_byte): Likewise.
3003 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3005 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3006 can still be specified in TARGET_CFLAGS)
3008 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3010 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3012 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3013 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3014 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3015 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3016 (FULOONG): Rename to ...
3017 (FULOONG2F): ... this. All users updated.
3018 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3019 (machtype_fuloong2f_str): ... this.
3020 (machtype_fuloong2e_str): New string.
3021 Check for machtype_fuloong2e_str.
3022 * grub-core/loader/mips/linux.c (loongson_machtypes)
3023 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3024 * grub-core/term/serial.c (loongson_defserial)
3025 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3026 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3028 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3030 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3031 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3032 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3033 to IMAGE_FULOONG2F_FLASH. All users updated.
3034 (image_targets): Rename images.
3035 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3037 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3039 Make enable of disk cache statistics code configurable.
3041 * configure.ac: --enable-cache-stats added.
3042 * config.h.in (DISK_CACHE_STATS): New define.
3043 * grub-core/Makefile.core.def (cacheinfo): New command.
3044 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3045 * grub-core/commands/cacheinfo.c: New file.
3046 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3047 moved to cacheinfo.c.
3048 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3050 * include/grub/disk.h: Likewise.
3052 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3054 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3055 * grub-core/Makefile.am: Likewise.
3057 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3062 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3066 (grub_jfs_lookup_symlink): Use correct starting inode.
3068 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3070 * util/grub-setup.c (main): Add missing gcry initialisation.
3072 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3074 Don't accept text modes on EFI when booting Linux.
3076 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3077 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3079 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3080 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3082 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3083 use of "/path/.." as in grub-install for EFI as well as handling
3085 Fixes Debian bug #637768.
3087 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3089 * util/grub-probe.c: Remove duplicate #include.
3091 2011-08-10 Robert Millan <rmh@gnu.org>
3093 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3095 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3097 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3098 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3100 2011-08-03 Robert Millan <rmh@gnu.org>
3102 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3104 Reported by: Zachary Bedell
3106 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3108 * configure.ac: The Loongson port requires grub-mkfont due to its
3109 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3112 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3114 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3115 processing arguments (otherwise help2man fails when GRUB has not yet
3118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3120 New script grub-mkstandalone.
3122 * Makefile.util.def (grub-mkstandalone): New script.
3123 * docs/man/grub-mkstandalone.h2m: New file.
3124 * util/grub-mkstandalone.in: Likewise.
3126 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3128 Support ATA disks with 4K sectors.
3130 * include/grub/ata.h (grub_ata): New member log_sector_size.
3131 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3132 (grub_ata_identify): Read sector size.
3133 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3135 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3137 * util/grub-install.in: Don't use uhci outside of x86.
3139 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3141 * util/grub-mkrescue.in: Add missing quotes.
3143 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3145 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3148 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3150 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3152 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3154 * include/grub/video.h: add missing EXPORT_FUND on
3155 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3157 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3159 * include/grub/mips/kernel.h: Fix define conflict.
3161 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3163 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3166 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3168 Preferred resolution detection for VBE.
3170 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3171 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3172 the Flat Panel extension, in line with the X.org VESA driver.
3173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3175 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3176 (grub_vbe_bios_read_edid): Likewise.
3177 (grub_vbe_get_preferred_mode): Likewise.
3178 (grub_video_vbe_setup): When the mode is "auto", try to get the
3179 preferred mode from VBE, and use the largest mode that is no larger
3180 than the preferred mode (some BIOSes expose a preferred mode that is
3181 not in their mode list!). If this fails, fall back to 640x480 as a
3182 safe conservative choice.
3183 (grub_video_vbe_get_edid): New function.
3184 (grub_video_vbe_adapter): Add get_edid.
3185 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3186 (struct grub_video_adapter): Add get_edid.
3187 (grub_video_edid_checksum): Add prototype.
3188 (grub_video_edid_preferred_mode): Likewise.
3189 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3192 * grub-core/commands/videoinfo.c (print_edid): New function.
3193 (grub_cmd_videoinfo): Print EDID if available.
3195 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3196 is more appropriate on a wider range of platforms than 640x480.
3197 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3200 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3202 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3204 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3206 * po/POTFILES.in: Regenerate.
3208 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3210 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3211 incorrect memory usage.
3213 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3215 * util/grub-install.in: Source grub-mkconfig_lib.
3217 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3219 Remove getroot.c from core on emu platform.
3221 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3223 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3225 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3226 * util/getroot.c (get_win32_path): ... here.
3227 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
3228 * util/getroot.c (fini_libzfs): ... here.
3229 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
3230 * util/getroot.c (grub_get_libzfs_handle): ... here.
3231 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
3233 * util/getroot.c (grub_find_zpool_from_dir): ... here.
3234 * grub-core/kern/emu/misc.c
3235 (grub_make_system_path_relative_to_its_root): Moved from here...
3236 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
3237 * grub-core/kern/emu/getroot.c: Moved from here ...
3238 * util/getroot.c: ... here. All users updated.
3239 * grub-core/kern/emu/raid.c: Moved from here ...
3240 * util/raid.c: ... here. All users updated.
3242 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3244 * po/POTFILES.in: Regenerate.
3246 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3248 Fix compilation on GNU/Linux.
3250 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3252 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
3253 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
3254 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
3256 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3257 2011-07-07 Michael Gorven <michael@gorven.za.net>
3258 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
3260 LUKS and GELI support.
3262 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
3263 grub-core/disk/luks.c, grub-core/disk/geli.c,
3264 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
3265 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
3266 grub-core/lib/arg.c.
3267 (libgrubmods.a): Remove gcrypts cflags and cppflags.
3268 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
3269 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
3270 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
3271 (grub-bin2h): Add libgcry.a.
3272 (grub-mkimage): Likewise.
3273 (grub-mkrelpath): Likewise.
3274 (grub-script-check): Likewise.
3275 (grub-editenv): Likewise.
3276 (grub-mkpasswd-pbkdf2): Likewise.
3277 (grub-pe2elf): Likewise.
3278 (grub-fstest): Likewise.
3279 (grub-mkfont): Likewise.
3280 (grub-mkdevicemap): Likewise.
3281 (grub-probe): Likewise.
3282 (grub-ofpath): Likewise.
3283 (grub-mklayout): Likewise.
3284 (example_unit_test): Likewise.
3285 (grub-menulst2cfg): Likewise.
3286 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
3287 * grub-core/Makefile.core.def (cryptodisk): New module.
3290 * grub-core/disk/AFSplitter.c: New file.
3291 * grub-core/disk/cryptodisk.c: Likewise.
3292 * grub-core/disk/geli.c: Likewise.
3293 * grub-core/disk/luks.c: Likewise.
3294 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
3296 (grub_util_get_dm_abstraction): New function.
3297 (grub_util_follow_gpart_up): Likewise.
3298 (grub_util_get_geom_abstraction): Likewise.
3299 (grub_util_get_dev_abstraction): Use new functions.
3300 (grub_util_pull_device): Pull GELI and LUKS.
3301 (grub_util_get_grub_dev): Handle LUKS and GELI.
3302 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
3303 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
3304 (follow_geom_up): Removed.
3305 (grub_util_fd_seek): New function.
3306 (open_device): Use grub_util_fd_seek.
3307 (nread): Rename to ..
3308 (grub_util_fd_read): ... this. All users updated.
3309 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
3310 (grub_crypto_cbc_decrypt): Likewise.
3311 (grub_crypto_hmac_write): Likewise.
3312 (grub_crypto_hmac_buffer): Likewise.
3313 (grub_password_get): Extend to util.
3314 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
3316 (gcry_md_spec) [GRUB_UTIL]: Likewise.
3317 * include/grub/cryptodisk.h: New file.
3318 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
3319 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
3321 (grub_util_follow_gpart_up): New proto.
3322 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
3323 (grub_util_fd_read): Likewise.
3324 (grub_cryptodisk_cheat_mount): Likewise.
3325 (grub_util_cryptodisk_print_uuid): Likewise.
3326 (grub_util_get_fd_sectors): Likewise.
3327 * util/grub-fstest.c (mount_crypt): New var.
3328 (fstest): Mount crypto if requested.
3329 (options): New option -C.
3330 (argp_parser): Parse -C.
3331 (main): Init and fini gcry.
3332 * util/grub-install.in: Support cryptodisk install.
3333 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
3334 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
3336 (prepare_grub_to_access_device): Likewise.
3337 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
3338 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
3339 (probe_cryptodisk_uuid): New function.
3340 (probe_abstraction): Likewise.
3341 (probe): Use new functions.
3342 * util/import_gcry.py: Create Makefile.utilgcry.def.
3345 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3347 Lazy device scanning.
3349 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
3350 (grub-setup): Remove util/raid.c.
3351 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
3352 * grub-core/disk/lvm.c (scan_depth): New variable.
3353 (grub_lvm_iterate): Rescan if necessary.
3354 (find_lv): New function based on grub_lvm_open.
3355 (grub_lvm_open): Use find_lv. Rescan on error.
3356 (is_node_readable): New function.
3357 (is_lv_readable): Likewise.
3358 (grub_lvm_scan_device): Skip already found disks.
3359 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
3360 Stop if searched device is found and readable.
3361 * grub-core/disk/raid.c (inscnt): New variable.
3362 (scan_depth): Likewise.
3363 (scan_devices): New function based on grub_raid_register. Abort if
3364 looked for device is found.
3365 (grub_raid_iterate): Rescan if needed.
3366 (find_array): NEw function based on -grub_raid_open.
3367 (grub_raid_open): Use find_array and rescan.
3368 (insert_array): Set became_readable_at.
3369 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
3370 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
3372 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
3373 (grub_util_pull_device): New function.
3374 (grub_util_get_grub_dev): Call grub_util_pull_device.
3375 * util/raid.c: Moved to ..
3376 * grub-core/kern/emu/raid.c: ... here.
3377 (grub_util_raid_getmembers): New parameter "bootable".
3378 All users updated. Support 1.x.
3379 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
3381 * include/grub/disk.h (grub_disk_pull_t): New enum.
3382 (grub_disk_dev): Change iterate prototype.
3384 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
3386 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
3387 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
3388 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
3389 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
3391 * include/grub/util/raid.h: Removed.
3393 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3395 * po/POTFILES.in: Regenerate.
3397 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3399 Unify sparc init with other ieee1275.
3401 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
3402 instead of kern/sparc64/ieee1275/init.c.
3403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
3404 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
3405 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
3406 grub/machine/kernel.h.
3407 (grub_ieee1275_original_stack) [__sparc__]: New variable.
3408 (grub_claim_heap) [__sparc__]: Use sparc version.
3409 (grub_machine_init): Moved args parsing to
3410 (grub_parse_cmdline): ...this.
3411 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
3412 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
3414 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
3416 Move BOOTP to separate file.
3418 * grub-core/Makefile.core.def (net): Add net/bootp.c.
3419 * grub-core/net/net.c: Move all BOOTP functions to
3420 * grub-core/net/bootp.c: ... here.
3422 Use frame interface on PXE.
3424 * grub-core/Makefile.core.def (pxecmd): Removed.
3425 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
3426 * grub-core/commands/i386/pc/pxecmd.c: Removed.
3427 * grub-core/i386/pc/pxe.c: Moved from here ...
3428 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
3429 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
3430 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
3432 EFI network support.
3434 * grub-core/Makefile.core.def (efinet): New module.
3435 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
3437 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
3439 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
3440 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
3441 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
3442 * grub-core/net/drivers/efi/efinet.c: New file.
3443 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
3444 (grub_efi_net_config): New extern var.
3446 Various cleanups and bugfixes.
3448 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
3450 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
3451 disk declared as partition.
3452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
3454 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
3455 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
3456 (grub_debug_zalloc): Likewise.
3457 (grub_debug_realloc): Likewise.
3458 (grub_debug_memalign): Likewise.
3459 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
3460 Check that target is IPv4.
3461 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
3462 local-mac-address as fallback.
3463 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
3465 * grub-core/net/ip.c (ipchksum): Rename to ...
3466 (grub_net_ip_chksum): ... this. All users updated.
3467 (grub_net_recv_ip_packets): Special handling for DHCP.
3468 * util/grub-mkimage.c (generate_image): Zero-out aout header.
3470 Unify prefix handling
3472 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
3473 (grub_machine_get_bootlocation): ... this.
3474 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
3475 (grub_machine_get_bootlocation): ... this.
3476 (grub_prefix): New variable.
3478 (root_dev): New variable.
3480 (main): Use new variables.
3481 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
3483 (grub_machine_get_bootlocation): ... this.
3484 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
3485 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
3486 (grub_machine_get_bootlocation): ... this.
3487 (grub_machine_set_prefix): Removed.
3488 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
3489 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
3491 (grub_machine_get_bootlocation): ... this.
3492 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
3493 (grub_set_prefix_and_root): ... this. All users updated.
3494 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
3496 (grub_machine_get_bootlocation): ... this.
3497 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
3498 (grub_machine_get_bootlocation): New proto.
3499 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
3501 Less intrusive and more reliable seek on network implementation.
3503 * grub-core/kern/file.c (grub_file_net_seek): Removed.
3504 (grub_file_seek): Don't call grub_file_net_seek.
3505 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
3506 (grub_net_fs_read_real): .. this.
3507 (grub_net_seek_real): Use net->offset.
3508 (grub_net_fs_read): Seek if necessary.
3510 Unify IEEE1275 netwotk config with the other platforms.
3512 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3514 (grub_machine_get_bootlocation): Support network.
3515 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3516 Support type and device parsing.
3517 (grub_ieee1275_get_device_type): New function.
3518 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
3520 (grub_ieee1275_net_config_real): ... this.
3521 (grub_ofnet_probecards): Removed.
3522 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
3523 * include/grub/ieee1275/ofnet.h: Removed.
3524 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
3526 (grub_ieee1275_get_device_type): New function.
3528 Unify network device closing across platforms and make more robust.
3530 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3532 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3534 * grub-core/net/net.c (grub_net_network_level_interface_register):
3536 (grub_net_card_unregister): Close all interfaces.
3537 (receive_packets): Don't poll if no iterfaces are registered.
3539 (grub_net_fini_hw): New function.
3540 (grub_net_restore_hw): Likewise.
3541 (fini_hnd): New variable.
3542 (GRUB_MOD_INIT): Register preboot hook.
3543 (GRUB_MOD_FINI): Run and unregister preboot hook.
3545 Poll network cards when idle.
3547 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
3548 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
3549 * grub-core/net/net.c (receive_packets): Save last poll time.
3550 (grub_net_poll_cards_idle_real): New function.
3551 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
3552 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
3553 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
3555 Rename ofnet interfaces.
3557 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
3558 (grub_ofnet_findcards): Use ofnet_%s names.
3560 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
3562 Cleanup socket opening.
3564 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
3565 (grub_net_fs_close): Likewise.
3566 (grub_net_fs_read_real): Use eof member.
3567 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
3568 (+grub_net_udp_close): New inline function.
3570 * include/grub/net/tftp.h: Moved to the top of ...
3571 * grub-core/net/tftp.c: ... here.
3572 * include/grub/net/ip.h: Moved mostly to the top of ...
3573 * grub-core/net/ip.c: ... here.
3574 * include/grub/net/ethernet.h: Moved mostly to the top of ...
3575 * grub-core/net/ethernet.c: ... here.
3577 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
3579 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
3582 * include/grub/net/ip.h (ipv4_ini): Removed.
3583 (ipv4_fini): Likewise.
3585 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
3586 (grub_net_send_ip_packets): Likewise.
3588 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
3591 grub_read_cmos prototype.
3593 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3595 VGA text support in qemu-mips
3597 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
3598 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
3599 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
3601 * grub-core/kern/i386/qemu/init.c: Renamed to ...
3602 * grub-core/kern/vga_init.c: ... this.
3603 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
3604 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
3605 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
3607 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
3608 GRUB_MACHINE_PCI_IO_BASE.
3610 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3612 MIPS qemu flash support.
3614 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
3616 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
3617 (grub_machine_init): Probe memory if its size isn't known.
3618 * util/grub-mkimage.c (image_targets): Add flash targets.
3619 (generate_image): Handle flash targets.
3621 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3623 MIPS qemu at_keyboard support.
3625 * gentpl.py (videoinkernel): Add qemu-mips.
3626 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
3627 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
3628 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
3630 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
3631 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
3632 * grub-core/term/serial.c (grub_serial_register)
3633 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
3635 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3637 CMOS support on sparc.
3639 * gentpl.py (cmos): Add powerpc and sparc.
3640 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
3642 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
3643 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
3644 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
3645 grub_set_datetime_cmos.
3646 * grub-core/lib/ieee1275/cmos.c: New file.
3647 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
3648 (find_rtc): Set no_ieee1275_rtc on error.
3649 (grub_get_datetime): Call grub_get_datetime_cmos on error.
3650 (grub_set_datetime): Call grub_set_datetime_cmos on error.
3651 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
3652 fail. Move value to argument. All users updated
3653 (grub_cmos_write): Likewise.
3654 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
3655 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
3656 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
3657 grub_get_datetime_cmos and grub_set_datetime_cmos.
3659 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3661 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
3662 sourcing grub-mkconfig_lib.
3663 * util/update-grub_lib.in: Likewise.
3664 * util/grub.d/00_header.in: Likewise.
3665 * util/grub.d/10_hurd.in: Likewise.
3666 * util/grub.d/10_kfreebsd.in: Likewise.
3667 * util/grub.d/10_linux.in: Likewise.
3668 * util/grub.d/10_netbsd.in: Likewise.
3669 * util/grub.d/10_windows.in: Likewise.
3670 * util/grub.d/20_linux_xen.in: Likewise.
3671 * util/grub.d/30_os-prober.in: Likewise.
3673 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
3675 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3676 default_bg_color rather than black.
3677 (grub_gfxterm_fullscreen): Likewise.
3678 (grub_gfxterm_background_color_cmd): Save new background color in
3681 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3683 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
3685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3687 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
3690 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3692 Chainloading on coreboot support.
3694 * grub-core/Makefile.core.def (chain): Add coreboot.
3695 * grub-core/loader/i386/coreboot/chainloader.c: New file.
3697 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3699 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
3702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3704 Implement time command.
3706 * grub-core/Makefile.core.def (time): New module.
3707 * grub-core/commands/time.c: New file.
3708 * grub-core/script/parser.y: Remove "time" keyword.
3709 * grub-core/script/yylex.l: Likewise.
3711 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3713 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
3715 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3717 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
3718 when handling leftovers.
3720 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3722 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
3723 so that help2man doesn't fail.
3725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3727 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
3728 type in pointers on sparc64.
3729 (get_card_packet): Likewise.
3731 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
3733 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
3735 (grub_cmd_videoinfo): Fetch current video mode.
3737 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
3740 because of underlying system restrictions.
3742 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3744 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
3747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3749 Coreboot video support.
3751 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
3753 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
3754 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
3756 * grub-core/kern/i386/int.S: ... here.
3757 * grub-core/video/i386/pc/vbe.c: Updated includes.
3758 * grub-core/video/i386/pc/vga.c: Likewise.
3759 * include/grub/i386/coreboot/memory.h
3760 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
3761 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
3762 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
3763 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
3765 * include/grub/i386/pc/vga.h: Removed. All users updated.
3767 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3769 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
3770 definitions for dprintf.
3771 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
3773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3775 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
3777 (get_card_packet): Likewise.
3779 2011-06-26 Yves Blusseau <blusseau@zetam.org>
3781 Display the path of the file when file is not found
3783 * grub-core/fs/fat.c: Display the filename when file is not found.
3784 * grub-core/fs/fshelp.c: Likewise.
3785 * grub-core/fs/hfs.c: Likewise.
3786 * grub-core/fs/jfs.c: Likewise.
3787 * grub-core/fs/minix.c: Likewise.
3788 * grub-core/fs/ufs.c: Likewise.
3789 * grub-core/fs/btrfs.c: Likewise.
3790 * grub-core/commands/i386/pc/play.c: Likewise.
3792 2011-06-26 Szymon Janc <szymon@janc.net.pl>
3794 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
3795 pointer checks before calling grub_free().
3796 * grub-core/commands/wildcard.c (match_devices): Likewise.
3797 * grub-core/commands/wildcard.c (match_files): Likewise.
3798 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
3799 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
3800 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
3801 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
3802 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
3803 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
3804 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
3805 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
3806 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
3808 2011-06-25 Patrick <p55@mailinator.com>
3810 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
3812 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
3815 (grub_pxe_send): Likewise.
3816 (GRUB_MOD_INIT): Fix types.
3818 2011-06-24 Szymon Janc <szymon@janc.net.pl>
3820 * grub-core/io/xzio.c: Fix code style issues
3822 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3823 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
3825 Network infrastructure.
3826 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
3828 * include/grub/net/arp.h: New file.
3829 * include/grub/net/device.h: Likewise.
3830 * include/grub/net/ethernet.h: Likewise.
3831 * include/grub/net/ip.h: Likewise.
3832 * include/grub/net/netbuff.h: Likewise.
3833 * include/grub/net/tftp.h: Likewise.
3834 * include/grub/net/udp.h: Likewise.
3835 * include/grub/ieee1275/ofnet.h: Likewise.
3836 * include/grub/emu/export.h: Likewise.
3837 * include/grub/net.h: Likewise.
3838 * grub-core/net/arp.c: Likewise.
3839 * grub-core/net/ethernet.c: Likewise.
3840 * grub-core/net/ip.c: Likewise.
3841 * grub-core/net/udp.c: Likewise.
3842 * grub-core/net/tftp.c: Likewise.
3843 * grub-core/net/netbuff.c: Likewise.
3844 * grub-core/net/net.c: Likewise.
3845 * grub-core/net/drivers/emu/emunet.c: Likewise.
3846 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
3847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
3849 * grub-core/Makefile.core.def (net): New module.
3853 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
3855 * grub-core/kern/device.c (grub_net_open) : New variable.
3856 (grub_device_open): Handle network device.
3857 (grub_device_close): Likewise.
3858 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
3859 (grub_grubnet_fini): Likewise.
3860 (grub_file_seek): Seek in network device.
3861 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
3862 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
3864 (grub_machine_fini): Call grub_grubnet_fini.
3865 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
3867 (grub_ieee1275_get_aliasdevname): New function.
3868 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3869 Add unofficial Solaris network info.
3870 (grub_multiboot_make_mbi): Likewise.
3871 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
3872 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
3873 * include/grub/device.h (grub_fs): Removed.
3874 * include/grub/err.h (grub_err_t): Add network-related values.
3875 * include/grub/i386/pc/pxe.h: Removed bootp parts.
3876 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
3877 (grub_ieee1275_get_aliasdevname): New proto.
3878 * include/grub/net.h: Rewritten.
3880 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
3885 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3887 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
3888 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
3889 it truncates the output.
3890 Reported by: Ximin Luo.
3892 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
3896 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3898 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
3899 partmap before abstraction.
3901 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
3903 * util/grub-mkconfig_lib.in: Add missing quotes.
3905 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3907 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
3908 old method if mountinfo would return /dev/root and /dev/root doesn't
3911 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3915 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
3916 (decomp_table): Add zlib entries.
3917 (zio_read): USe 8 bits for compression function rather than 3.
3918 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
3920 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/disk/ahci.c: Add missing license statements.
3923 * grub-core/fs/romfs.c: Likewise.
3924 * grub-core/lib/ia64/setjmp.S: Likewise.
3925 * grub-core/loader/i386/pc/freedos.c: Likewise.
3926 * grub-core/loader/ia64/efi/linux.c: Likewise.
3927 * grub-core/video/colors.c: Likewise.
3928 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
3930 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3934 * grub-core/Makefile.core.def (ata_pthru): Removed.
3937 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
3939 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
3941 (grub_hdparm_do_check_powermode_cmd): Likewise.
3942 (grub_hdparm_do_smart_cmd): Likewise.
3943 (grub_hdparm_set_val_cmd): Likewise.
3944 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
3945 * grub-core/disk/ahci.c: New file.
3946 * grub-core/disk/ata.c: Factor out the low-level part into ...
3947 * grub-core/disk/pata.c: ... here.
3948 * grub-core/disk/ata_pthru.c: Contents moved to ...
3949 * grub-core/disk/pata.c: ... here.
3950 * grub-core/disk/scsi.c (grub_scsi_names): New array.
3951 (grub_scsi_iterate): Use grub_scsi_names.
3952 (grub_scsi_open): Likewise.
3953 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
3954 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
3955 (grub_ata_regs_t): New struct.
3956 (grub_disk_ata_pass_through_parms): Likewise.
3957 (grub_ata_device): Renamed to ...
3958 (grub_ata): ... this.
3959 (grub_ata_dev): New struct.
3960 Removed all low-level inline functions.
3961 * include/grub/scsi.h: Add PATA and AHCI subsystems.
3962 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
3963 iterate hooks and open. All users updated.
3964 * util/grub-install.in: Handle AHCI disk module.
3966 2011-06-23 Szymon Janc <szymon@janc.net.pl>
3968 Add support for DRI and RSTn markers in JPEG files.
3970 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
3971 (JPEG_MARKER_RST0): Likewise.
3972 (JPEG_MARKER_RST1): Likewise.
3973 (JPEG_MARKER_RST2): Likewise.
3974 (JPEG_MARKER_RST3): Likewise.
3975 (JPEG_MARKER_RST4): Likewise.
3976 (JPEG_MARKER_RST5): Likewise.
3977 (JPEG_MARKER_RST6): Likewise.
3978 (JPEG_MARKER_RST7): Likewise.
3979 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
3980 (grub_jpeg_decode_dri): New function.
3981 (grub_jpeg_decode_sos): Move image data related part into
3982 grub_jpeg_decode_data function.
3983 (grub_jpeg_decode_data): New function.
3984 (grub_jpeg_reset): New function.
3985 (grub_jpeg_decode_jpeg): Handle new markers.
3987 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3989 * util/ieee1275/ofpath.c (check_sas): Close fd.
3990 (main): Free of_path.
3991 Reported by: David Volgyes <dvolgyes>.
3993 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3995 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
3996 Reported by: David Volgyes <dvolgyes>.
3998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4002 Reported by: David Volgyes <dvolgyes>.
4004 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4006 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4008 Reported by: David Volgyes <dvolgyes>.
4010 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4012 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4013 Prevent memory leak.
4015 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4017 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4019 Reported by: David Volgyes <dvolgyes>.
4021 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4023 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4024 to continue if allocation is failed.
4026 Reported by: David Volgyes <dvolgyes>.
4028 2011-06-23 David Volgyes <dvolgyes>
4030 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4033 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4035 Fix spurious warning.
4037 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4038 (acorn_partition_map_find): Use .bin member.
4040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4042 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4043 /dev/root as a valid device.
4045 2011-06-23 Jim Meyering <meyering@redhat.com>
4047 Avoid NULL deref in grub_device_open.
4049 * grub-core/kern/device.c (grub_device_open): Don't dereference
4050 a NULL pointer upon failed grub_env_get.
4052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4054 Support non-512B sectors and agglomerate reads.
4056 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4057 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4058 (disk_io_guid): Removed.
4059 (make_devices): Locate solely by BlockIO.
4060 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4061 (grub_efidisk_read): Use read_blocks.
4062 (grub_efidisk_write): Use write_blocks.
4063 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4065 (get_safe_sectors): Handle non-512B sectors.
4066 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4068 (grub_biosdisk_write): Handle non-512B sectors.
4069 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4070 (grub_scsi_read): Remove special non-512B block handling (now handled
4072 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4073 and do sanity checks.
4074 (grub_disk_adjust_range): Handle non-512B sectors.
4075 (transform_sector): New function.
4076 (grub_disk_read_small): Likewise.
4077 (grub_disk_read): Rewritten.
4078 (grub_disk_write): Handle non-512B sectors.
4079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4081 (open_device): Use log_sector_size.
4082 (grub_util_biosdisk_read): Likewise.
4083 (grub_util_biosdisk_write): Likewise.
4084 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4086 (pc_partition_map_embed): Likewise.
4087 * include/grub/disk.h (grub_disk): New field log_sector_size.
4088 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4089 (GRUB_DISK_CACHE_BITS): Increased to 6.
4090 * util/grub-fstest.c (fstest): New command testload.
4091 (argp_parser): Likewise.
4093 2011-06-16 Robert Millan <rmh@gnu.org>
4095 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4096 `ata' driver on kernel of FreeBSD 9.
4098 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4099 (get_ataraid_disk_name): New functions.
4100 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4101 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4102 get_ataraid_disk_name() and get_ada_disk_name().
4104 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4106 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4109 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4111 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4112 `ftp.gnu.org' for `alpha.gnu.org'.
4114 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4117 partitions under /dev/disk/by-id/.
4119 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4121 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4122 after ten consecutive open failures. Scanning all the way up to
4123 10000 is excessive and can cause serious performance problems in
4124 some configurations.
4125 Fixes Ubuntu bug #787461.
4127 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4129 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4132 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4133 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4135 Don't stat devices unless we have to.
4137 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4139 (grub_guess_root_device): Use already known os_dev if possible.
4140 * grub-core/kern/emu/hostdisk.c
4141 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4142 if device is known to be a dm one.
4144 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4146 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4147 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4148 Reported by: Pawel Tecza.
4150 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4152 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4153 (lsefisystab): Likewise.
4155 (lsefimmap): Likewise.
4156 (hdparm): Enable on qemu-mips.
4157 (setjmp): Add ia64 nodist.
4158 (serial): Simplify tags.
4160 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4162 * Makefile.util.def (grub-ofpathname): Install manual page.
4164 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4166 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4168 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4170 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4172 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4174 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4177 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4179 Use full 64-bit division.
4181 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4182 (grub_divmod64): ... this.
4183 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4186 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4188 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4191 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4193 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4194 to avoid accidents when debugging with 'sh -x'.
4195 * grub-core/gensyminfo.sh.in: Likewise.
4196 * tests/example_scripted_test.in: Likewise.
4197 * tests/grub_cmd_regexp.in: Likewise.
4198 * tests/grub_script_blanklines.in: Likewise.
4199 * tests/grub_script_dollar.in: Likewise.
4200 * tests/grub_script_expansion.in: Likewise.
4201 * tests/grub_script_final_semicolon.in: Likewise.
4202 * tests/partmap_test.in: Likewise.
4203 * tests/util/grub-shell-tester.in: Likewise.
4204 * tests/util/grub-shell.in: Likewise.
4206 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4208 Move gfxmenu color handling to video, so that gfxterm can use it
4211 * grub-core/gfxmenu/named_colors.c: Move to ...
4212 * grub-core/video/colors.c: ... here. Rename
4213 grub_gui_get_named_color to grub_video_get_named_color.
4214 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4215 * grub-core/video/colors.c (my_isxdigit): ... here.
4216 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4218 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4219 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4221 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4223 * include/grub/gui.h (grub_gui_color_t): Move to ...
4224 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4225 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4226 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4227 * include/grub/gui.h (grub_gui_map_color): Move to ...
4228 * include/grub/video.h (grub_video_map_rgba_color): ... here.
4229 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
4231 * include/grub/video.h (grub_video_get_named_color): ... here.
4232 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
4233 * include/grub/video.h (grub_video_parse_color): ... here.
4235 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4237 (gfxmenu): Remove gfxmenu/named_colors.c.
4238 (video) [videomodules]: Add video/colors.c.
4240 Add a background_color command.
4242 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4244 (GRUB_MOD_INIT): Register background_color command.
4245 (GRUB_MOD_FINI): Unregister background_color command.
4246 (redraw_screen_rect): Allow blend/replace of text layer to be
4247 controlled independently from whether there is a background bitmap.
4248 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
4251 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4253 Patch BPB in ntldr and chainloader --bpb.
4255 * grub-core/fs/fat.c: Include grub/fat.h.
4256 (grub_fat_bpb): Moved to ...
4257 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
4258 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
4260 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4262 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4264 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4266 (grub_chainloader_cmd): Patch BPB if --bpb is given.
4267 (GRUB_MOD_INIT): Show --bpb.
4268 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
4269 * grub-core/normal/main.c (features): New variable.
4270 (GRUB_MOD_INIT): Set feature_* variables.
4271 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
4273 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4275 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4277 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4280 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4282 FreeDOS direct loading support.
4284 * docs/grub.texi (Supported OS): Add FreeDOS.
4285 * grub-core/Makefile.core.def (freedos): New module.
4286 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
4288 (grub_relocator16_boot): Handle %ebx.
4289 * grub-core/lib/i386/relocator16.S: Likewise.
4290 * grub-core/loader/i386/pc/freedos.c: New file.
4292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4294 Long Linux command line support.
4296 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4297 (maximal_cmdline_size): New variable.
4298 (allocate_pages): Use maximal_cmdline_size.
4299 (grub_cmd_linux): Set and use maximal_cmdline_size.
4300 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4301 (allocate_pages): Use maximal_cmdline_size.
4302 (grub_cmd_linux): Set and use maximal_cmdline_size.
4303 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
4304 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
4307 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4308 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4310 Improve devmapper support
4312 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
4313 (grub_util_is_lvm): New function.
4314 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
4315 than lvm if not dmraid.
4316 Handle mapped md nodes.
4317 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
4318 (grub_util_device_is_mapped): ... this. Make always available. All users
4320 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
4321 (convert_system_partition_to_system_disk): Handle lvm, mpath and
4323 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
4325 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4327 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
4329 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
4330 * grub-core/modinfo.sh.in: New file.
4331 * grub-core/Makefile.core.def (modinfo.sh): New script.
4332 * util/grub-mknetdir.in: Use modinfo.sh.
4333 * util/grub-mkrescue.in: Likewise.
4335 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4337 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4338 Fix potential usage of Elf32 instead of Elf64 when compiling on
4339 32-bit architecture. Add endianness macros while on it.
4341 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4343 Use mipsel- rather than mips- in directories involving mipsel ports to
4344 allow both endiannesses coexist.
4346 * configure.ac: proparate target_cpu=mipsel rather than resetting to
4347 mips. All conditions adjusted.
4348 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
4350 * util/grub-install.in: Adjust conditions to take renaming into account.
4351 * util/grub-mkimage.c (image_targets): Likewise. New target
4352 mips-qemu_mips-elf for bigendian mips.
4354 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4356 Avoid unnecessary copying on MIPS.
4358 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
4359 early if src == dest.
4360 * util/grub-mkimage.c (generate_image): Arange for src == dest if
4361 compression is none.
4363 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4365 Reduce memory footprint on SGI by putting modules before the kernel
4366 as opposed to after.
4368 * grub-core/Makefile.core.def (kernel): Increase linking address.
4369 (none_decompress): Likewise.
4370 (xz_decompress): Likewise.
4371 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
4373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
4375 (grub_arch_modules_addr): New function.
4376 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
4377 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
4378 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
4380 * grub-core/kern/mips/startup.S (total_size): Rename to ...
4381 (grub_total_modules_size): ... this. Make global.
4382 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
4383 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
4385 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
4386 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
4387 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
4388 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
4389 * util/grub-mkimage.c (image_target_desc): New flag
4390 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
4391 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
4392 (generate_image): Handle images with modules before kernel.
4394 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4396 Prevent potential loss of memory map by overwrite on qemu-mips.
4398 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4399 Save ram size in $s4.
4400 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
4401 All users changed to grub_arch_memsize.
4402 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
4404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
4405 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
4406 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
4409 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4411 * .bzrignore: Remove grub-dumpbios.
4413 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4415 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
4416 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
4417 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
4418 existing options which append).
4419 * docs/grub.texi (Simple configuration): Document new options.
4420 Reported by: Ian Jackson. Fixes Debian bug #617538.
4422 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4424 * util/grub-fstest.c (cmd_cat): New function.
4425 (fstest): Handle CMD_CAT.
4427 (argp_parser): Handle cat.
4429 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4431 * Makefile.util.def (grub-bin2h): Don't install.
4432 * docs/man/grub-bin2h.h2m: Remove.
4434 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4436 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
4439 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4441 Reenable qemu-mips port.
4443 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
4444 Fix small arc bug while on it.
4445 * gentpl.py: Handle qemu_mips.
4446 * grub-core/Makefile.am: Likewise.
4447 * grub-core/Makefile.core.def: Likewise.
4448 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
4449 inappropriate includes.
4450 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
4451 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
4452 * grub-core/kern/main.c (grub_modules_get_end)
4453 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
4454 * grub-core/kern/mips/qemu-mips: Moved to ..
4455 * grub-core/kern/mips/qemu_mips: ... this.
4456 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
4457 (grub_machine_init): Call terminfo_init and serial_init.
4458 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
4459 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4461 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
4463 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
4464 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
4465 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4466 * include/grub/mips/qemu_mips/cmos.h: New file.
4467 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
4468 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
4470 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
4471 Use correct mips-style address.
4472 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
4473 (GRUB_TICKS_PER_SECOND): Removed.
4474 (grub_get_rtc): Likewise.
4475 (grub_cpu_idle): Likewise.
4476 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
4478 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
4479 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
4480 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
4481 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
4482 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
4483 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
4484 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
4485 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
4487 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4491 * Makefile.util.def (libgrubmods.a): Add dvh.c.
4492 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
4494 * configure.ac: New target mips-arc.
4495 * gentpl.py: Likewise.
4496 * grub-core/Makefile.am: Likewise.
4497 * grub-core/Makefile.core.def: Likewise.
4498 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
4499 (none_decompress): Likewise.
4500 (lsdev): New module.
4501 (datetime): Use lib/arc/datetime.c on ARC.
4502 (part_dvh): New module.
4503 * grub-core/commands/arc/lsdev.c: New file.
4504 * grub-core/disk/arc/arcdisk.c: Likewise.
4505 * grub-core/kern/mips/arc/init.c: Likewise.
4506 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
4508 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4510 (grub_arch_dl_relocate_symbols): Likewise.
4511 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
4512 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
4513 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
4515 * grub-core/lib/arc/datetime.c: New file.
4516 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
4517 pci.h on non-loongson.
4518 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
4519 (grub_linux_boot): Set unused registers to 0.
4520 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
4521 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
4522 * grub-core/mmap/mips/uppermem.c: ...here.
4523 * grub-core/partmap/dvh.c: New file.
4524 * grub-core/term/arc/console.c: Likewise.
4525 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
4526 (grub_terminfo_set_current): Add terminal "arc".
4527 (grub_terminfo_readkey): Support ARC sequences.
4528 * include/grub/arc/arc.h: New file.
4529 * include/grub/arc/console.h: Likewise.
4530 * include/grub/disk.h (grub_disk_dev_id): Add
4531 GRUB_DISK_DEVICE_ARCDISK_ID.
4532 * include/grub/mips/arc/kernel.h: New file.
4533 * include/grub/mips/arc/memory.h: Likewise.
4534 * include/grub/mips/arc/time.h: Likewise.
4535 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
4536 * include/grub/mips/kernel.h (grub_halt): ... here.
4537 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
4539 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
4540 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
4541 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
4542 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
4544 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
4546 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
4547 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
4548 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
4549 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
4550 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
4551 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
4552 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
4553 (grub_phys_addr_t): Moved from here ...
4554 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
4555 (grub_vtop): Moved from here ...
4556 * include/grub/mips/memory.h (grub_vtop): ... here.
4557 (grub_map_memory): Moved from here ...
4558 * include/grub/mips/memory.h (grub_map_memory): ... here.
4559 (grub_unmap_memory): Moved from here ...
4560 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
4561 (grub_machine_mmap_iterate): Moved from here ...
4562 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
4563 (grub_mmap_get_lower): Moved from here ...
4564 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
4565 (grub_mmap_get_upper): Moved from here ...
4566 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
4567 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4569 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4570 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
4572 * include/grub/mips/time.h (grub_get_rtc): ... here.
4573 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4575 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4576 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
4578 * include/grub/mips/time.h (grub_cpu_idle): ... here.
4579 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
4581 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
4582 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
4583 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
4584 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
4585 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
4586 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
4587 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
4588 (GRUB_MACHINE_LINK_ADDR): Likewise.
4589 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
4591 * util/grub-install.in: Run dvhtool on ARC.
4592 * util/grub-mkimage.c (image_targets): Add mips-arc.
4593 (generate_image): Handle ECOFF output for mips-arc.
4595 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4597 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
4600 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4602 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
4603 after enabling port.
4605 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4607 Skip incorrect USB devices.
4609 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
4611 * include/grub/usb.h (grub_usb_err_t): New enum value
4612 GRUB_USB_ERR_BADDEVICE.
4614 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4616 Fuloong video init support.
4618 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
4620 (grub_vga_read_arx): New function.
4621 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
4623 (framebuffer): New members io, mmioptr and mmiobase.
4624 (read_sis_cmd): New function.
4625 (write_sis_cmd): Likewise.
4626 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
4627 rather than 640x400.
4628 * grub-core/video/sis315_init.c: New file.
4630 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4632 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
4634 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
4635 to grub_dl_register_symbol.
4637 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4639 Fix compilation errors.
4641 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
4643 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
4644 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
4645 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
4646 to loongson machines.
4648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4650 Several FS mtime support.
4652 * grub-core/fs/affs.c (grub_affs_time): New struct.
4653 (grub_affs_file): New field mtime.
4654 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
4655 type. Removed 'size'. New field 'di'. All users updated.
4656 (grub_affs_mount): Simplify checsum checking.
4657 (grub_affs_iterate_dir): New helper grub_affs_create_node.
4658 (grub_affs_dir): Handle mtime.
4659 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
4660 (grub_cpio_dir): Likewise.
4661 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
4662 (grub_hfs_filerec): New field mtime.
4663 (grub_hfs_dir): Handle mtime.
4664 (grub_hfs_mtime): New function.
4665 (grub_hfs_fs): Register grub_hfs_mtime.
4666 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
4667 (grub_iso9660_dir): New field mtime.
4668 (grub_fshelp_node): New field dirent.
4669 (iso9660_to_unixtime): New function.
4670 (iso9660_to_unixtime2): Likewise.
4671 (grub_iso9660_read_symlink): Use node->dirent.
4672 (grub_iso9660_iterate_dir): Likewise.
4673 (grub_iso9660_dir): Set mtime.
4674 (grub_iso9660_mtime): New function.
4675 (grub_iso9660_fs): Register grub_iso9660_mtime.
4676 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
4677 (grub_jfs_inode): New fields atime, ctime and mtime.
4678 (grub_jfs_dir): Set mtime.
4679 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
4680 * grub-core/fs/ntfs.c (list_file): Set mtime.
4681 (grub_ntfs_dir): Likewise.
4682 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
4683 (grub_reiserfs_iterate_dir): Set mtime.
4684 (grub_reiserfs_dir): Likewise.
4685 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
4686 (grub_fshelp_node): Likewise.
4687 (grub_sfs_iterate_dir): Set mtime.
4688 (grub_sfs_dir): Likewise.
4689 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
4690 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
4691 (grub_xfs_inode): New fields atime, mtime, ctime.
4692 (grub_xfs_dir): Set mtime.
4693 * include/grub/datetime.h (grub_datetime2unixtime): New function.
4694 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
4695 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
4697 Support UDF symlinks.
4699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
4700 (grub_ufs_read_symlink): New function. All users updated.
4702 Check amiga partmap checksum.
4704 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
4705 (grub_amiga_partition): Likewise.
4706 (amiga_partition_map_checksum): New function.
4707 (amiga_partition_map_iterate): Check checksum.
4709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4713 * Makefile.util.def (libgrubmods.a): Add romfs.
4714 * grub-core/Makefile.core.def (romfs): New module.
4715 * grub-core/fs/romfs.c: New file.
4717 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4719 Squashfs v4 support.
4721 * Makefile.util.def (libgrubmods.a): Add squash4.
4722 * grub-core/Makefile.core.def (squash4): New module.
4723 * grub-core/fs/squash4.c: New file.
4724 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
4725 disk_input_start, disk_input.
4726 (get_byte): Handle disk_input.
4727 (grub_zlib_disk_read): New function.
4728 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
4730 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4731 2011-05-15 Feiran Zheng <famcool@gmail.com>
4733 * Makefile.util.def (libgrubmods.a): Add minix3.
4734 * grub-core/Makefile.core.def (minix3): New module.
4735 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
4736 (GRUB_MINIX_BSIZE): Removed.
4737 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
4738 (grub_minix_ino_t): New type.
4739 (grub_minix_le_to_cpu_ino): New macro.
4740 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
4741 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
4742 (grub_minix_data): New field block_size.
4743 (grub_minix_read_file): Handle 64-bit correctly.
4744 * grub-core/fs/minix3.c: New file.
4746 2011-05-15 Tristan Gingold <gingold@free.fr>
4747 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
4748 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4752 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
4753 * configure.ac: Add ia64-efi target.
4754 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
4755 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
4756 * gentpl.py: Add ia64_efi platform.
4757 Rename x86_efi to efi and Add ia64-efi. All users updated.
4758 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
4759 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
4760 Remove kern/generic/rtc_get_time_ms.c on EFI.
4761 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
4762 kern/ia64/dl_helper.c on ia64-efi.
4763 Add kern/emu/cache.c on emu.
4764 (linux): Use on loader/ia64/efi/linux.c on ia64.
4765 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
4766 whether symbol is a function.
4767 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
4768 (grub_symbol): New field 'isfunc'.
4769 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
4770 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
4771 (grub_dl_load_segments): Place all sections into the same region.
4772 [__ia64__]: Create trampolines and got.
4773 [GRUB_MACHINE_EMU]: Call mprotect.
4774 (grub_dl_resolve_symbols): Resolve symbol type as well.
4775 [__ia64__]: Create function descriptors.
4776 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
4777 (grub_rtc_get_time_ms): ... this. Expressions simplified.
4778 (grub_get_rtc): New function.
4779 * grub-core/kern/emu/cache.c [__ia64__]: New file.
4780 * grub-core/kern/emu/cache.S: Renamed to ...
4781 * grub-core/kern/emu/cache_s.S: ... this.
4782 [__ia64__]: Add a nop.
4783 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
4784 [__ia64__]: New function.
4785 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
4786 * grub-core/kern/ia64/dl.c: New file.
4787 * grub-core/kern/ia64/dl_helper.c: Likewise.
4788 * grub-core/kern/ia64/efi/init.c: New file.
4789 * grub-core/kern/ia64/efi/startup.S: Likewise.
4790 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
4791 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
4792 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
4793 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
4794 * grub-core/loader/ia64/efi/linux.c: New file.
4795 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
4796 (GRUB_MOD_DEP): Likewise.
4797 (grub_dl) [__ia64__]: New fields got and tramp.
4798 (grub_dl): New field 'base'.
4799 (grub_dl_register_symbol): New argument isfunc. All users updated.
4800 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
4801 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
4802 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
4803 (grub_ia64_dl_get_tramp_got_size): New proto.
4804 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
4805 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
4806 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
4807 * include/grub/efi/api.h: Skip call wrappers on ia64.
4808 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
4809 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
4810 * include/grub/elf.h (ELF_ST_INFO): New definition.
4811 * include/grub/ia64/efi/kernel.h: New file.
4812 * include/grub/ia64/efi/memory.h: Likewise.
4813 * include/grub/ia64/efi/time.h: Likewise.
4814 * include/grub/ia64/kernel.h: Likewise.
4815 * include/grub/ia64/setjmp.h: Likewise (from glibc).
4816 * include/grub/ia64/time.h: New file.
4817 * include/grub/ia64/types.h: Likewise.
4818 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
4819 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
4821 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
4822 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
4823 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
4824 * util/grub-mkimage.c (image_target_desc): New field pe_target.
4826 (EFI64_HEADER_SIZE): New definition. All users updated.
4827 (image_targets): Add ia64-efi.
4828 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
4829 jumpers_addr. All users updated.
4830 Create function descriptors.
4831 (count_funcs): New function.
4832 (unaligned_uint32): New struct.
4833 (MASK20): New definition.
4835 (MASKF21): Likewise.
4836 (add_value_to_slot_20b): New function.
4837 (add_value_to_slot_21_real): Likewise.
4838 (add_value_to_slot_21): Likewise.
4839 (ia64_kernel_trampoline): New struct.
4840 (nopm): New variable.
4842 (make_trampoline): New function.
4843 (relocate_addresses): Handle ia64.
4844 (make_reloc_section): Likewise.
4845 (load_image): Likewise.
4847 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4849 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
4850 warning. Move variables before code while on it.
4852 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4856 * configure.ac: Rename yeeloong platform to loongson. All users updated.
4857 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
4858 * grub-core/boot/mips/loongson/fuloong.S: New file.
4859 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
4860 Explicitly init CS5536.
4861 [FULOONG]: Don't use serial until CS5536 is available.
4862 Set GPIO based on dumps.
4863 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
4864 [FULOONG]: Handle GPIO and memory controller differences.
4865 Parse machine type in $a2.
4866 * grub-core/boot/mips/startup_raw.S: Determine and save the
4868 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
4869 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
4870 init on architecture type.
4871 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
4872 SIS315E. Don't init at_keyboard on fuloong.
4873 (grub_halt): Support Fuloong.
4874 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
4875 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
4876 (loongson_machtypes): New array.
4877 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
4879 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
4880 config. All users updated. Handle CS5536 serial.
4881 * grub-core/term/serial.c (grub_serial_register): Conditionalise
4882 default port on machine type. Register serial as inactive.
4883 * grub-core/video/sis315pro.c: New file.
4884 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
4886 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
4887 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
4888 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
4889 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
4890 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
4891 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
4893 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
4894 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
4896 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
4897 (grub_arch_machine): New extern var.
4898 * include/grub/mips/loongson/serial.h
4899 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
4900 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
4901 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
4902 (GRUB_MACHINE_SERIAL_PORT0): ... this.
4903 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
4904 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
4905 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
4906 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
4907 * include/grub/term.h (grub_term_register_input_inactive): New inline
4909 (grub_term_register_output_inactive): Likewise.
4910 * include/grub/video.h (grub_video_driver_id): New value
4911 GRUB_VIDEO_DRIVER_SIS315PRO.
4912 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
4913 New field "names". All users updated.
4914 New field value IMAGE_FULOONG_FLASH.
4915 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
4917 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
4919 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
4920 and add some clarification.
4922 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4924 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
4925 platforms if kernel is compressed.
4927 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4929 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
4930 unused modules since currently referrence counter isn't reliable and
4931 there isn't much memory to recover there anyway.
4933 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4935 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
4936 rather than resetting it to allow modules to reference themselves
4939 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4941 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
4942 counter on dependencies since grub_dl_unref already handles this.
4944 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4946 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
4947 on error if not already done.
4949 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4951 Fix few potential memory misusage.
4953 * grub-core/font/font.c (load_font_index): Don't free char_index to
4955 (grub_font_load): Zero-fill font at alloc for safety.
4956 Close file on error.
4957 (free_font): Free bmp_idx.
4959 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4961 * docs/grub.texi (Installation): Fix several outdated claims.
4963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4965 Handle module_license on windows.
4967 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
4969 (insert_string): Make argument const char * instead of char *.
4970 (write_section_data): Handle long section names.
4971 Handle module_license.
4973 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4975 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
4976 handle class-free menuentries.
4977 (grub_normal_add_menu_entry): Add a check to be sure.
4979 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4981 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
4984 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4986 * configure.ac: Bump version to 1.99.
4988 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4990 Give ATA device a bit more time on first try in order to allow disks
4993 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
4994 if dev->present is 1. Reset dev->present on failure.
4995 (grub_ata_device_initialize): Set dev->present to 1.
4996 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
4997 (grub_ata_device): New member 'present'.
4999 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5001 * util/grub-mkimage.c (generate_image): Update hash.
5003 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5005 Flush caches on DMA memory.
5007 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5008 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5009 (grub_dma_free): Likewise.
5010 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5012 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5014 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5015 to avoid asm treating ld and sd as macros.
5017 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5019 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5022 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5024 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5025 grub_decompress_core since later would fail if grub_decompress_core
5028 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5030 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5031 R_MIPS_JALR since it's used by newer compiler.
5033 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5035 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5037 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5039 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5040 file_path to 0 for surety.
5041 (grub_chainloader_boot): Set exit_data to NULL.
5042 Unset the loader once done.
5043 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5045 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5048 unknown key into a dprintf.
5050 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5053 on first non-existant partition.
5055 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5057 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5059 Reported by: Mark Korenberg.
5061 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5063 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5066 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5068 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5069 before closing to ensure that it will be readable by grub-setup.
5071 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5073 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5074 (devpath_1): Use MAKE_PIWG_PATH.
5075 (devpath_2): Likewise.
5076 (devpath_3): Likewise.
5077 (devpath_4): Likewise.
5078 (devpath_5): Likewise.
5079 (devpath_6): Likewise.
5081 The appleldr.mod was checked that to be binary identical to previous
5084 2011-05-05 Zach <mikezackles>
5086 Support 2010 Macbooks.
5088 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5089 (devs): Add devpath_6.
5091 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5093 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5094 /dev/random. /dev/urandom is good enough for our purposes (salting).
5096 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5098 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5100 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5102 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5105 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5107 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5108 and not 0 on failure.
5110 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5112 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5113 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5114 disk; otherwise grub_fs_probe will not fall back to the next
5116 (grub_pxefs_open): Likewise, for consistency.
5117 Reported and tested by: Ezekiel Grave.
5119 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5121 * tests/partmap_test.in: Don't hardcode path to parted.
5122 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5124 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5126 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5127 of `ls' to find out which devices are available.
5129 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5131 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5132 than source address for efi mmap buffer.
5134 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5136 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5137 wrong action on non-detecting the magic.
5139 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5141 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5142 already supplied by another part of the module (fixes compilation on
5145 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5147 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5148 match the one used by mdadm.
5150 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5152 * po/README: Add instructions for creating po/LINGUAS.
5154 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5156 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5159 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5160 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5161 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5162 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5163 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5164 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5165 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5166 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5167 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5168 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5169 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5170 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5171 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5172 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5173 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5174 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5175 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5176 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5177 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5178 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5179 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5180 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5182 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5184 * grub-core/kern/emu/getroot.c
5185 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5186 test that was incorrectly reintroduced in r3214.
5187 Reported by: Ian Dall. Fixes Savannah bug #33133.
5189 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5191 Fix stack pointer handling in 16-bit relocator.
5193 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5194 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5195 Fixes Ubuntu bug #683904.
5197 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5199 * configure.ac: Bump version to 1.99~rc2.
5201 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5203 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5204 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5205 * grub-core/lib/x86_64/setjmp.S: Likewise.
5206 * grub-core/lib/mips/setjmp.S: Likewise.
5207 * grub-core/lib/powerpc/setjmp.S: Likewise.
5208 * grub-core/lib/sparc64/setjmp.S: Likewise.
5210 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5213 * grub-core/lib/efi/datetime.c: Likewise.
5215 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5219 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5221 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5223 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5225 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5227 (grub_gfxterm_term_init): Likewise.
5229 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5231 Take into account the decorations the computing menu entry width.
5233 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
5234 (grub_gfxmenu_create_box): Register get_border_width.
5235 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
5237 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5240 2011-04-18 Endres Puschner <code@e7p.de>
5242 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5243 Don't skip first class.
5245 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5247 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5249 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5251 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5253 Complete 64-bit division support.
5255 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
5256 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
5257 * include/grub/misc.h (grub_divmod64): Rename to ...
5258 (grub_divmod64_full): ... this.
5259 (grub_divmod64): New inline function.
5261 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5263 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5265 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5267 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5268 performing the necessary test.
5270 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5272 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5273 (kfreebsd.elf): Likewise.
5274 (pc-chainloader.elf): Likewise.
5275 (ntldr.elf): Likewise.
5277 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5279 Identify RAID by its UUID rather than (guessed) name.
5281 * grub-core/disk/raid.c (ascii2hex): New function.
5282 (grub_raid_open): Accept mduuid/%s specification.
5283 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
5284 (get_mdadm_uuid): ... this.
5285 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
5287 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
5289 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
5292 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5294 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
5296 * util/grub.d/20_linux_xen.in: Likewise.
5298 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5300 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
5301 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
5303 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5304 Build a list of relevant visible mounts using the mnt_id and
5305 parent_mnt_id fields, and then scan that list at the end.
5307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5309 * docs/grub.texi (normal): New section.
5310 (normal_exit): New section.
5311 (Embedded configuration): Add reference to normal.
5312 (GRUB only offers a rescue shell): Likewise.
5313 * docs/grub-dev.texi (Error Handling): Fix typo.
5315 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5317 * NEWS: Drop obsolete entry about probe-only btrfs support.
5319 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5321 * util/import_gcry.py: Fix typo.
5323 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5325 * NEWS: Add btrfs support.
5327 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5328 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5330 BtrFS support. Written by me (Vladimir) with important bugfixes and
5331 even more important testing by Colin.
5333 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
5334 * grub-core/Makefile.core.def (btrfs): Add crc.c.
5335 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
5336 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
5337 mem_input_off and mem_input. All users updated to accept in-RAM input.
5338 (gzio_seek): New function.
5339 (test_zlib_header): Likewise.
5340 (grub_gzio_read): Likewise.
5341 (grub_zlib_decompress): Likewise.
5342 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
5343 Accept partial and non-virtual mounts.
5344 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
5345 avoid receiving /dev/dm-X as device.
5346 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
5347 Handle bind and partial mounts.
5348 * grub-core/lib/crc.c: New file.
5349 * include/grub/deflate.h: Likewise.
5350 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
5352 * include/grub/lib/crc.h: New file.
5354 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5356 Implement automatic module license checking according to new GNU
5359 * grub-core/kern/dl.c (grub_dl_check_license): New function.
5360 (grub_dl_load_core): Use grub_dl_check_license.
5361 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
5362 (GRUB_MOD_LICENSE): Likewise.
5363 (GRUB_MOD_DUAL_LICENSE): Likewise.
5364 All modules updated.
5366 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5368 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
5369 reserved_first_sector to 1. btrfs reserves plenty of space for boot
5371 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
5373 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5375 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
5377 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5379 * util/grub-fstest.c (read_file): Report GRUB error if file opening
5382 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5384 * grub-core/kern/file.c (grub_file_open): Don't take into account the
5385 parenthesis in the middle of the filename.
5387 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5389 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
5390 rather than trying to put initrd way too high.
5391 Reported by: Ryan Lortie <desrt@desrt.ca>
5393 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5395 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
5396 improperly removed string.
5398 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
5402 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
5403 (open_device) Likewise.
5404 (grub_util_biosdisk_close): Likewise.
5405 Reported by: Mark Korenberg.
5407 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
5409 * util/grub-mkconfig_lib.in: Add missing quotes.
5411 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
5413 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
5416 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5418 Dynamically count the number of lines for the lower banner.
5420 * grub-core/normal/menu_entry.c (per_term_screen): New member
5422 (print_down): Use num_entries.
5423 (update_screen): Likewise.
5424 (grub_menu_entry_run): Set num_entries.
5425 * grub-core/normal/menu_text.c (menu_viewer_data): New member
5427 (grub_print_message_indented): Move real part to ...
5428 (grub_print_message_indented_real): ... here. Additional argument
5430 (draw_border): Additional argument num_entries.
5431 (print_message): Additional argument dry_run.
5432 (print_entries): Receive menu viewer data.
5433 (grub_menu_init_page): New argment num_entries.
5434 (menu_text_set_chosen_entry): Use num_entries.
5435 (grub_menu_try_text): Likewise.
5436 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
5438 (grub_ucs4_count_lines): New function.
5439 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
5440 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
5441 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
5442 (grub_term_border_height): Likewise.
5443 (grub_term_num_entries): Likewise.
5445 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5447 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
5448 Remove now unused string.
5450 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5452 * docs/grub-dev.texi (Finding your way around): Update for 1.99
5454 (Getting started): GRUB is developed in Bazaar now, not Subversion.
5456 (Comment): Fix typo.
5457 (Getting started): General copy-editing.
5458 (Typical Development Experience): Likewise.
5459 (Error Handling): Likewise.
5460 (Video API): Likewise.
5462 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5464 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
5467 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5469 * util/grub-mkimage.c (main): Handle special naming of yeeloong
5472 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5474 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
5475 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
5478 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5480 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
5481 grub_strcpy since the lines aren't necessarily 0-terminated.
5483 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5485 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
5488 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5490 * grub-core/commands/probe.c (options): Argument to set isn't optional.
5491 (GRUB_MOD_INIT): DEVICE isn't optional.
5493 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5495 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
5496 word on new line if it's too long anyway. Fixes a hang.
5498 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5500 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
5502 * util/grub-setup.c (main): Reuse md device name if available.
5503 * util/raid.c (grub_util_raid_getmembers): Receive device name and
5504 not GRUB name as argument.
5505 Based on patch by: Florian Wagner <fwagner>.
5507 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5509 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5510 Place mbi on low memory for better compatibility.
5512 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5514 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5516 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5517 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5519 * autogen.sh: Ensure that collate and ctype locale is C.
5520 * conf/Makefile.common: Likewise.
5522 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5524 * grub-core/normal/menu.c: Add missing include.
5526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5528 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5530 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5532 * util/grub-mkconfig.in: Ignore emacsen backup.
5534 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5536 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
5538 (grub_util_biosdisk_close): Likewise.
5540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5542 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
5543 const attribute and use grub_isdigit.
5545 2011-04-06 Andrey <dev_null@ukr.net>
5547 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
5550 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5552 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
5553 useful grub_dprintf's.
5555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5557 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
5559 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5561 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
5563 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5565 Output errors if theme loading failed.
5567 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
5568 grub_gfxterm_fullscreen on error paths to ...
5569 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
5570 theme loading error.
5572 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5574 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
5575 space for older compilers.
5576 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5578 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
5581 and report them as not RAID members since they are useless for GRUB.
5582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5584 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5586 Increase LVM implementation robustness in order not to crash on
5587 configurations like pvmove. Previously code assumed that in some places
5588 only lvs or only pvs are used whereas it seems that they are used
5591 * grub-core/disk/lvm.c (read_node): New function.
5592 (read_lv): Use read_node.
5593 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
5594 Match volumes only at the end when all lvs are found. Take both
5595 pvs (first) and lvs (second) into account.
5596 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
5597 mirror_* into node_*. All users updated.
5598 (grub_lvm_stripe): Merge this ...
5599 (grub_lvm_mirror): ... and this ...
5600 (grub_lvm_node): ... into this. All users updated.
5602 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5604 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
5605 of function to allow further scanning for LVMs.
5607 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
5610 on failed seek as it breaks open fd reusage.
5612 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5614 * util/grub-install.in: Add a recommendation to use --recheck before
5617 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5619 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
5622 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5624 GRUB developper manual based on existing Internals section and
5625 contributions by the various authors with active copyright assignment.
5627 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
5628 * docs/font_char_metrics.png: New file.
5629 * docs/font_char_metrics.txt: Likewise.
5630 * docs/grub-dev.texi: Likewise.
5631 * docs/grub.texi (Internals): Move from here ...
5632 * docs/grub-dev.texi: ... here.
5634 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5636 Store the loopback device as data on loopback grub_disk structures,
5637 rather than the file it points to. This fixes use of freed memory
5638 if an existing loopback device is replaced.
5640 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
5641 disk->data, not dev->file.
5642 (grub_loopback_read): Adjust file assignment to match.
5643 Fixes Ubuntu bug #742967.
5645 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5647 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
5648 when replacing an existing device.
5650 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5652 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
5655 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
5657 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
5658 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
5659 (grub_jfs_read_inode): Likewise.
5660 (grub_jfs_opendir): Likewise. Remove now useless casts.
5661 (grub_jfs_getent): Likewise.
5662 Make ino a grub_uint32_t rather than int.
5663 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
5664 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
5665 division and module with bit operations.
5666 (grub_jfs_find_file): Make ino a grub_uint32_t.
5667 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
5669 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5671 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
5672 warning. (This was in fact always initialised before use, but GCC
5673 wasn't smart enough to prove that.)
5674 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5676 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
5680 (efi_wrap_1): Likewise.
5681 (efi_wrap_2): Likewise.
5682 (efi_wrap_3): Likewise.
5683 (efi_wrap_4): Likewise.
5684 (efi_wrap_5): Likewise.
5685 (efi_wrap_6): Likewise.
5686 (efi_wrap_10): Likewise.
5687 Based on information by: Red Hat/Peter Jones.
5689 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5691 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
5692 set-but-not-used variable.
5694 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5696 * docs/grub.texi (Simple configuration): Be more explicit about
5697 GRUB_DEFAULT, and add an example.
5698 Reported by: Leslie Rhorer.
5700 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5702 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
5705 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5707 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
5708 * util/grub.d/20_linux_xen.in: Likewise.
5710 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5712 * util/grub.d/10_linux.in: Try alternative config filenames where
5713 we parse config file.
5714 * util/grub.d/20_linux_xen.in: Likewise.
5716 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5718 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
5719 * util/grub.d/20_linux_xen.in: Likewise.
5721 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/disk/raid.c (insert_array): Add few potentially
5724 useful grub_util_info.
5725 (grub_raid_register): Likewise.
5727 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5729 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
5730 Preserve partition number in mdadm code path.
5732 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
5735 few potentially useful grub_util_info.
5737 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5739 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
5741 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5743 * docs/grub.texi (default): Use @example rather than nested
5744 itemized lists to avoid breaking gendocs.
5746 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5748 * docs/grub.texi (Future): Update.
5750 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5752 * docs/grub.texi (Environment): New chapter.
5753 (Changes from GRUB Legacy): Link to "Environment block" section for
5754 details of limitations.
5755 (Simple configuration): Likewise. Link to documentation of gfxmode
5756 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
5758 (Shell-like scripting): Note that normal variables are stored in the
5760 (gettext): Link to documentation of lang and locale_dir.
5761 (list_env): New section.
5762 (load_env): New section.
5763 (save_env): New section.
5765 (Reporting bugs): Fix typo.
5767 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5769 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
5772 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5774 * grub-core/term/at_keyboard.c (set_scancodes)
5775 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
5777 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5779 * docs/grub.texi (Menu-specific commands): Remove some semantics
5780 that were true in GRUB Legacy but not in GRUB 2.
5781 (submenu): New section.
5782 (false): New section.
5783 (read): New section.
5784 (true): New section.
5786 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5788 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
5790 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5792 * docs/grub.texi (Simple configuration): Explain some of the
5793 current limitations of grub-mkconfig.
5794 Reported by: Leslie Rhorer.
5796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5798 Old macs search for boot.efi rather than for bootia32.efi.
5800 * util/grub-install.in: Copy bootia32.efi to boot.efi.
5801 * util/grub-mkrescue.in: Likewise.
5802 Suggested by: Peter Jones.
5804 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5806 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
5808 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5810 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
5811 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
5812 (grub_lvm_mirror): New struct.
5813 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
5814 (grub_lvm_iterate): Iterate only visible volumes.
5815 (grub_lvm_read): Factor out to ..
5816 (read_lv): ... this. Support mirrors.
5817 (grub_lvm_read): New wrapper function.
5818 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
5819 stripped or mirrored.
5821 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5823 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
5825 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5827 * docs/grub.texi (loopback): New section.
5829 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5831 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
5834 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5836 * docs/grub.texi (BIOS installation): New section, partly based on
5837 previous text in other sections.
5838 (Installing GRUB using grub-install): Replace BIOS discussion with a
5842 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/kern/emu/hostdisk.c (find_partition_start)
5845 [HAVE_DIOCGDINFO]: Add safety checks.
5847 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5849 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
5850 per default compiled in kernel and prior to 8.0 isn't shipped at all.
5852 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
5855 real_sb->size is zero (e.g. RAID-0), get the disk size from
5856 real_sb->data_size instead.
5857 Fixes Ubuntu bug #743136.
5859 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5861 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
5862 printf clauses for printing size and start.
5864 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5866 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
5867 Reported and tested by: Timothy Nikkel.
5869 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5871 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
5872 (dirty_region_add_real): ... this.
5873 (dirty_region_add): Don't discard margin refresh when performing
5876 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5878 * grub-core/lib/relocator.c (allocate_regstart)
5879 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
5880 terminals are capabple of malloc-free operation.
5881 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5882 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5884 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
5886 * util/grub-setup.c: Copy the partition table zone if floppy support
5887 is disabled, even if no partition table is found.
5889 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
5890 during POST if an invalid partition table is contained in the PBR
5891 of the active partition when GRUB is installed to a partition.
5893 2011-03-28 Colin Watson <cjwatson@debian.org>
5895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
5898 2011-03-28 Colin Watson <cjwatson@debian.org>
5900 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
5901 to be specific about what kind of RAID device we're scanning for.
5903 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
5905 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
5906 return freed string.
5908 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5910 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
5912 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5914 Use libgeom on FreeBSD to detect partitions.
5916 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
5917 (grub-mkrelpath): Likewise.
5918 (grub-script-check): Likewise.
5919 (grub-editenv): Likewise.
5920 (grub-mkpasswd-pbkdf2): Likewise.
5921 (grub-fstest): Likewise.
5922 (grub-mkfont): Likewise.
5923 (grub-mkdevicemap): Likewise.
5924 (grub-probe): Likewise.
5925 (grub-setup): Likewise.
5926 (grub-ofpathname): Likewise.
5927 (grub-mklayout): Likewise.
5928 (example_unit_test): Likewise.
5929 (grub-menulst2cfg): Likewise.
5930 * grub-core/Makefile.core.def (grub-emu): Likewise.
5931 (grub-emu-lite): Likewise.
5932 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
5933 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
5934 define HAVE_DIOCGDINFO.
5935 (follow_geom_up) [FreeBSD]: New function.
5936 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
5937 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
5938 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
5939 unconditionally of HAVE_DIOCGDINFO.
5941 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5943 Fix FreeBSD compilation problem.
5945 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
5946 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
5948 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
5950 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
5951 Switch back to page zero before loading a kernel, since some kernel
5952 drivers expect that.
5953 Thanks to: Felix Kuehling.
5955 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
5958 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
5959 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
5961 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5963 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
5964 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
5966 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
5969 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
5972 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5974 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
5975 for modules headers when counting the needed allocation size.
5977 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5979 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
5980 if no ASCII character is found to prevent crash.
5982 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
5984 * grub-core/video/bitmap.c (match_extension): Ignore case.
5986 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5988 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
5990 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5992 * grub-core/script/parser.y: Declare "time" as valid argument.
5994 2011-03-23 Peter Jones <pjones@redhat.com>
5996 Fix incorrect assert failure reporting.
5998 * grub-core/tests/example_functional_test.c (example_test): Add
6000 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6001 (failure_start): ...this. Check that malloc succeeded.
6002 Don't call xvasprintf. Return failure struct.
6003 (failure_append_vtext): New function.
6004 (failure_append_text): Likewise.
6005 (add_failure): Likewise.
6006 (grub_test_assert_helper): Likewise.
6007 * include/grub/test.h (grub_test_assert_helper): New declaration.
6008 (grub_test_assert): Macro rewritten.
6010 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6012 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6014 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6018 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6020 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6021 into GRUB-style one.
6023 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6025 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6026 error and not grub_errno.
6027 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6029 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6031 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6032 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6034 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6036 * grub-core/efiemu/i386/pc/cfgtables.c
6037 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6038 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6039 (grub_xnu_unlock): Likewise.
6040 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6042 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6044 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6045 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6046 * grub-core/commands/hashsum.c (aliases): Likewise.
6047 * grub-core/commands/setpci.c (pci_registers): Likewise.
6048 * grub-core/disk/usbms.c (attach_hook): Likewise.
6049 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6050 (zio_checksum_table): Likewise.
6051 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6052 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6053 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6054 * grub-core/lib/relocator.c (leftovers): Likewise.
6055 (extra_blocks): Likewise.
6056 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6057 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6058 (modules_last): Likewise.
6059 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6060 (devices): Likewise.
6061 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6062 (modules_last): Likewise.
6063 * grub-core/normal/auth.c (users): Likewise.
6064 * grub-core/normal/context.c (initial_menu): Likewise.
6065 (current_menu): Likewise.
6066 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6067 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6068 (grub_serial_terminfo_input_template): Likewise.
6069 (grub_serial_terminfo_output_template): Likewise.
6070 (grub_serial_terminfo_input): Likewise.
6071 (grub_serial_terminfo_output): Likewise.
6072 (registered): Likewise.
6073 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6077 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6078 grub_video_mode_type_t.
6079 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6080 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6081 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6083 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6085 * util/grub-install.in: Correct the x86-64 name as x86_64.
6087 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6089 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6090 initial chunk read from the kernel always includes GRUB's multiboot
6091 header, which is now outside the first sector.
6093 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6096 cached mmap_size, so that this works correctly when called multiple
6098 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6100 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6102 * docs/grub.texi (Simple configuration): Tidy up formatting.
6104 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6106 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6107 Set-but-not-used variable removed.
6109 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6111 Workaround yet another IEEE1275 bug.
6113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6114 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6115 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6116 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6119 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6121 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6123 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6126 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6128 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6129 empty, since in that case we can only generate either nothing or a
6130 syntactically invalid configuration file.
6131 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6133 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6135 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6136 (Making a GRUB bootable CD-ROM): Likewise.
6137 (Invoking grub-mkrescue): New section.
6138 Reported by: Yann Dirson. Fixes Debian bug #612585.
6140 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6142 * util/grub-install.in: Remove unnecessary brackets from tr
6144 * util/grub.d/10_hurd.in: Likewise.
6145 * util/grub.d/10_kfreebsd.in: Likewise.
6146 * util/grub.d/10_linux.in: Likewise.
6147 * util/grub.d/20_linux_xen.in: Likewise.
6148 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6150 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6152 * include/grub/file.h (not_easly_seekable): Rename to ...
6153 (not_easily_seekable): ... this. Update all users.
6155 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6157 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6160 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6162 * util/grub-mkimage.c (generate_image): Refuse to create the images
6163 bigger than the actual flash (512K) in Loongson machines. 512K is also
6164 the biggest chip supported by them.
6166 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6168 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6170 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6175 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6177 * util/grub-install.in: Ignore install device on platforms
6178 where it doesn't make sense. Always use UUIDs except on pc, efi and
6180 Reported by: Daniel Kahn Gillmor.
6182 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6184 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6186 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6188 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6189 (iterate_real): Don't rely on partition being non-NULL.
6191 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6193 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6194 supported platforms. Put a compile time assert for this rather than
6195 generate a warning with 32-bit shift.
6197 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6199 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6200 logical expression more readable.
6202 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6204 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6205 even if some elements have a name.
6206 Reported by: Alexander GQ Gerasiov.
6208 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6210 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6211 path unreadable if `grub-probe -t abstraction' fails, for example if
6212 memberlist fails on an LVM volume group.
6213 Reported by: Darius Jahandarie.
6215 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6217 * docs/grub.texi (Simple configuration): Document
6218 GRUB_PRELOAD_MODULES.
6220 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6222 * .bzrignore: Remove nonexistent grub-pbkdf2.
6224 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6226 * configure.ac: Bump version to 1.99~rc1.
6228 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6230 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6233 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6235 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6238 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6240 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6242 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6244 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6247 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6249 Fix compilation on cygwin.
6251 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
6252 -R .drectve on cygwin.
6253 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
6254 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
6255 (COND_CYGWIN): New condition.
6256 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
6257 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
6258 not @TARGET_OBJ2ELF@.
6259 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
6260 type to determine whether aux is to be used.
6262 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6264 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
6265 realpath'ed device string.
6266 Handle floppy (somewhat).
6267 Issue error in unknown case rather than garbage.
6268 Reported by: Axel Beckert.
6270 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6272 * util/grub.d/00_header.in (load_video): Handle the case when no video
6274 Thanks to: Axel Beckert.
6276 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6278 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6279 variable. Fixes problem on big endian platforms.
6281 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6284 It doesn't work well there.
6286 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6288 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
6290 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
6291 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
6294 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6296 Use alias->path rather than buggy "canon".
6298 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
6299 (ofdisk_hash_add): New argument curcan. All users updated.
6301 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6303 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
6305 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6307 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
6308 loadmask before doing any calculations. Use correct type for offset.
6309 (grub_linux_load64): Likewise.
6311 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6313 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
6315 (console_grub_equivalences_unshift): Likewise.
6316 Reported by: Daniel Dehennin.
6318 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6320 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
6321 (set_env_limn_ro): Likewise.
6322 (GRUB_MOD_INIT): Likewise.
6323 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
6324 ARRAY_SIZE while on it.
6325 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
6326 * grub-core/normal/context.c (grub_env_export): Move from here ...
6327 * grub-core/kern/env.c (grub_env_export): ... here.
6328 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
6330 * grub-core/kern/main.c (grub_main): Export root and prefix.
6331 * include/grub/env.h (grub_env_export): Export.
6332 Reported by: Seth Goldberg.
6334 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6337 Take into account space used by ELF sections and multiboot palette.
6338 Reported by: Grégoire Sutre.
6340 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6344 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6346 Pass more appropriate video id to Linux.
6348 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
6349 grub_video_get_driver_id and variable gfxpayloadforcelfb to
6351 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
6352 shift params->lfb_size.
6353 * include/grub/i386/linux.h: Make an enume out of have_vga values.
6355 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6357 * util/grub-menulst2cfg.c: Add missing include of misc.h.
6359 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6361 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
6362 separator and pass bootpath/devid even if only one of them is available.
6363 Reported by: Seth Goldberg.
6365 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6367 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
6368 implementations bug on them.
6370 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
6372 (filter_memory_map): Likewise.
6374 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6376 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
6377 Reported by: nebuchadnezzar.
6379 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6381 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
6382 Reported by: nebuchadnezzar.
6384 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6386 Submenu default support.
6388 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
6389 auto_boot. All users updated.
6391 Handle chosen and default with submenus.
6392 (grub_menu_execute_with_fallback): Declared static.
6393 Don't notify failure if autobooted. Upper level does it.
6394 (menuentry_eq): New function.
6395 (get_entry_number): Use menuentry_eq.
6396 (show_menu): New parameter "autobooted". All users updated.
6397 (grub_show_menu): Likewise.
6398 * include/grub/normal.h (grub_show_menu): Likewise.
6399 * include/grub/menu.h (grub_menu_execute_entry): Removed.
6400 (grub_menu_execute_with_fallback): Likewise.
6402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6404 * util/grub-mklayout.c (usage): Update help text.
6406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6408 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
6410 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6412 * util/grub-menulst2cfg.c (main): Trim the line.
6414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6416 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
6417 (grub_machine_init): Don't check amount of low memory as reportedly
6418 INT 12h can be broken and if low memory is too low we wouldn't have
6419 gotten into grub_machine_init anyway.
6421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6423 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
6424 (grub_machine_mmap_iterate): Take low memory into account
6426 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6428 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
6432 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6434 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
6437 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6439 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
6440 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
6442 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
6445 openbsd and netbsd types being in part_bsd module.
6447 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6449 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
6450 (_FILE_OFFSET_BITS): Likewise.
6451 Reported by: Seth Goldberg.
6453 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6455 * configure.ac: Check for libdevmapper header.
6457 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6459 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
6461 (fzap_lookup): Likewise.
6462 (dnode_get): Likewise.
6463 (make_mdn): Likewise.
6464 (zfs_mount): Likewise.
6465 (fzap_iterate): Use temporary pointer to avoid aliasing.
6466 (grub_zfs_read): Likewise.
6467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
6468 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
6469 pointers to avoid aliasing.
6470 (grub_cmd_xnu_kernel64): Likewise.
6471 (grub_xnu_load_driver): Likewise.
6473 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6475 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
6477 (grub_cmd_terminal_output): Likewise.
6478 Reported and tested by: Grégoire Sutre.
6480 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6482 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
6484 Reported and tested by: Grégoire Sutre.
6486 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6488 * configure.ac: Do CPU substitution even if it's specified explicitly.
6489 Reported and tested by: Alain Greppin.
6491 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6493 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
6494 Reported and tested by: Alain Greppin.
6496 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6498 Satisfy some bison versions need for inttypes.h.
6500 * grub-core/lib/posix_wrap/inttypes.h: New file.
6501 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
6502 (int16_t): Likewise.
6503 (int32_t): Likewise.
6504 (int64_t): Likewise.
6505 Reported and tested by: Alain Greppin.
6507 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6509 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6510 Silence spurious warning.
6511 Reported and tested by: Alain Greppin.
6513 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6515 * docs/grub.texi (Support automatic decompression): Update with xz
6516 decompression support.
6518 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6520 Improve loaders' kernel command line handling.
6522 * grub-core/lib/cmdline.c: New file.
6523 * include/grub/lib/cmdline.h: Likewise.
6524 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
6525 grub_create_loader_cmdline to create kernel command line.
6526 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6527 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
6528 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
6529 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
6530 (linux): Add lib/cmdline.c on common.
6532 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6534 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6535 inopos might be unaligned.
6537 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6539 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6540 endian transformations.
6541 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6542 Based on report by: Doug Nazar.
6544 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
6546 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
6547 array->members[i].start_sector.
6548 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6550 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6552 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
6553 Reported and tested by: Grégoire Sutre.
6555 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6557 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
6558 avoid causing test failures by clearing the screen.
6560 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6562 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6563 Fix prefix check to handle the case where dir ends with a slash
6564 (most significantly, "/" itself).
6565 Reported by: Michael Vogt.
6567 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6569 Run terminfo_cls on initing terminfo output to clear the screen and
6570 move the cursor to (0,0).
6572 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
6573 Call grub_terminfo_output_init.
6574 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
6575 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
6576 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
6578 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6580 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
6583 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
6588 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6590 The E820 type 5 is BADRAM, not EXEC_CODE.
6592 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6593 (GRUB_E820_BADRAM): New define.
6594 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
6595 into reserved. Propagate BADRAM.
6596 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6597 (GRUB_E820_BADRAM): New define.
6599 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
6602 Ignore the memory post-4G.
6603 (grub_relocator_firmware_alloc_region): Additional debug statement.
6605 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
6609 Reported by: David Pravec.
6611 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6613 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
6616 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6618 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
6620 (grub_reed_solomon_recover): Likewise.
6622 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6624 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
6626 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6628 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
6631 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
6633 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
6634 descriptions of extract_legacy_entries_source and
6635 extract_legacy_entries_configfile.
6636 Reported by: Seung Soo, Ha.
6638 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
6640 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
6641 on devices that do not implement function 0.
6643 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
6645 * grub-core/fs/hfsplus.c: Make parent unsigned.
6646 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
6648 (grub_hfsplus_cmp_extkey): Likewise
6650 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6652 * util/grub-install.in: Correctly use bootloader_id and not
6653 GRUB_DISTRIBUTOR on efibootmgr line.
6655 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6657 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
6659 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
6661 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
6662 Xen and reorder menu item wording to make it clearer that this entry
6663 will launch Xen. Print separate messages when loading Xen and
6666 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6668 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
6669 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
6670 loop in case of incorrect amiga partmap.
6672 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6674 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
6675 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
6678 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6680 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
6682 Reported by: crocket
6684 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6686 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
6688 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
6690 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6692 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
6694 (grub_cmd_xnu_kextdir): Likewise.
6695 (grub_cmd_xnu_splash): Likewise.
6697 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6699 Avoid using Reed-Solomon with 0 redundancy.
6701 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
6702 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
6704 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
6705 (grub_reed_solomon_recover): Likewise.
6707 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6709 Don't use disk subsystem in freebsd_boot.
6711 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
6712 (freebsd_biosdev): Likewise.
6713 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
6714 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
6716 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6718 Handling of files of unknown size is currently limited. They can't be
6719 used e.g. for initrd or modules. Moreover gzip handling of not
6720 easily seekable files is buggy. Disable unknown file size for now. May
6721 be inefficient but works.
6723 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
6724 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6726 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
6728 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
6731 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
6733 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
6735 2010-12-25 Shea Levy <shlevy>
6737 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
6739 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6741 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
6742 Windows Server 2008.
6743 Reported by: Devin Giddings.
6745 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
6748 writing an error message because of async power management.
6749 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
6750 (grub_reboot): Likewise.
6752 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
6754 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
6755 keep unit tests from failing when they shouldn't.
6757 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6759 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
6760 previous patch increased the size of the RS code by 20 bytes (at
6761 least with gcc-4.4), so increase this by 20 bytes to match.
6762 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6764 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6766 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
6767 scratch area. Make sure to initialise chosen in standalone mode as
6768 well as non-standalone.
6769 Reported by: Robert Hooker and Andy Whitcroft.
6770 Tested by: Andy Whitcroft.
6772 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6774 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
6775 constructing a new unescaped string and passing it to grub_xputs in
6776 one go, rather than passing characters to grub_printf one at a time.
6778 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6780 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
6783 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6785 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
6786 comment. Add an extra layer of quotation, requiring the output of
6787 this function to be used in a printf format string.
6788 (gettext_printf): New function.
6789 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
6790 Extract translatable strings from here-documents and use a temporary
6791 variable instead, so that xgettext can find them.
6792 * util/grub.d/10_kfreebsd.in: Likewise.
6793 * util/grub.d/10_linux.in: Likewise.
6794 * util/grub.d/20_linux_xen.in: Likewise.
6796 * po/grub.d.sed: New file.
6797 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
6798 arguments. Set c-format flags on all strings extracted from
6799 util/grub.d/ (xgettext refuses to include these itself for strings
6800 it extracted from a shell file, but these really are c-format).
6802 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
6805 Avoid next pointing to nowhere.
6807 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6809 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
6810 rather than assuming than rootblock is exactly in the middle.
6811 (grub_affs_label): Likewise.
6813 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6815 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
6816 reserved_first_sector to 0.
6817 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
6818 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
6819 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
6821 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6823 Fix handling of UTF-16 UDF labels.
6825 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
6826 (read_string): .. here.
6827 (grub_udf_label): Use read_string.
6829 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
6831 * grub-core/normal/menu_entry.c (run): Execute commands from menu
6832 editor under argument scope.
6833 Reported by: Jordan Uggla
6835 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6837 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
6839 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
6841 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
6842 line, and other keys scroll an entire page (previous handling was
6843 for \r and \n to scroll a page and other keys to scroll two lines).
6845 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6847 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6848 Set ptrdest to correct get_physical_target_address rather than
6849 incorrect get_virtual_current_address.
6851 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
6853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
6854 correct cat to grub_uint8_t * rather than grub_uint32_t *.
6856 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6858 * .bzrignore: Ignore grub-core/rs_decoder.S.
6860 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6862 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
6863 .mo/.mo.gz opening sequence to ...
6864 (grub_mofile_open_lang): ... here.
6865 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
6866 * util/grub.d/00_header.in (grub_lang): Include country part of
6868 Reported by: Mario Limonciello.
6870 2010-12-09 Robert Millan <rmh@gnu.org>
6872 * NEWS: Document addition of ZFS support.
6874 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
6876 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
6877 rather than `/ 2', as the latter requires -Wa,--divide which would
6878 require bumping our minimum binutils version.
6880 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
6882 * util/grub-script-check.c (main): Print script line number on
6885 2010-12-01 Robert Millan <rmh@gnu.org>
6887 * grub-core/fs/zfs/zfs.c: New file.
6888 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
6889 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
6890 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
6891 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6893 * include/grub/zfs/dmu.h: Likewise.
6894 * include/grub/zfs/dmu_objset.h: Likewise.
6895 * include/grub/zfs/dnode.h: Likewise.
6896 * include/grub/zfs/dsl_dataset.h: Likewise.
6897 * include/grub/zfs/dsl_dir.h: Likewise.
6898 * include/grub/zfs/sa_impl.h: Likewise.
6899 * include/grub/zfs/spa.h: Likewise.
6900 * include/grub/zfs/uberblock_impl.h: Likewise.
6901 * include/grub/zfs/vdev_impl.h: Likewise.
6902 * include/grub/zfs/zap_impl.h: Likewise.
6903 * include/grub/zfs/zap_leaf.h: Likewise.
6904 * include/grub/zfs/zfs.h: Likewise.
6905 * include/grub/zfs/zfs_acl.h: Likewise.
6906 * include/grub/zfs/zfs_znode.h: Likewise.
6907 * include/grub/zfs/zil.h: Likewise.
6908 * include/grub/zfs/zio.h: Likewise.
6909 * include/grub/zfs/zio_checksum.h: Likewise.
6911 * Makefile.util.def: Build ZFS into libgrubmods.
6912 * grub-core/Makefile.core.def: Build zfs.mod.
6914 2010-11-30 Szymon Janc <szymon@janc.net.pl>
6916 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
6918 * grub-core/commands/wildcard.c (match_files): Likewise.
6920 2010-11-30 Robert Millan <rmh@gnu.org>
6922 * grub-core/loader/i386/bsd.c
6923 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
6924 whether kernel is loaded using grub_loader_is_loaded(), rather
6925 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
6926 certain error conditions.
6928 2010-11-30 Robert Millan <rmh@gnu.org>
6930 * grub-core/commands/echo.c: Include `<grub/term.h>'.
6931 (grub_cmd_echo): Call grub_refresh() after printing a message.
6933 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6935 Avoid using tricks for initialising endian variables.
6937 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
6939 (GRUB_MOD_INIT): Don't byte-swap.
6940 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
6941 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
6942 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
6943 (grub_swap_bytes32_compile_time): Likewise.
6944 (grub_cpu_to_le32_compile_time): Likewise.
6945 (grub_cpu_to_le16_compile_time): Likewise.
6947 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6949 * util/grub-setup.c (setup): Stop recommending --force. People who
6950 understand the dangers of blocklists are able to find this option
6951 anyway and the ones who don't shouldn't use it anyway.
6953 2010-11-26 Robert Millan <rmh@gnu.org>
6955 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
6958 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
6960 Fix LVM-on-RAID probing.
6962 * util/grub-probe.c (probe): Remember which disk was detected as
6963 RAID (perhaps an LVM physical volume). Use that disk's raidname
6964 rather than that of the top-level disk.
6966 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
6968 Fix cmdline argument quotes for setparams command of menuentry
6971 * grub-core/commands/menuentry.c (setparams_prefix): Use single
6972 quotes for arguments.
6973 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
6974 grub_strchrsub function instead.
6976 * include/grub/misc.h (grub_strchrsub): New function.
6978 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6980 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
6981 effort by skipping "." and ".." entries up-front.
6982 Suggested by: Michael Lazarev.
6984 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6986 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
6987 ldflags to ldadd, to fix link line ordering.
6988 (none_decompress): Likewise.
6990 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6992 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
6994 (grub-emu-lite): Remove kern/emu/cache.S.
6996 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6998 * util/deviceiter.c (compare_devices): If the by-id link for a
6999 device couldn't be resolved, fall back to sorting by the by-id link
7000 rather than segfaulting.
7001 Reported and tested by: Daniel Mierswa.
7003 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7005 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7006 ldflags, to fix link line ordering.
7008 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7010 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7011 linkers are picky about this.
7013 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7015 * grub-core/Makefile.am (command.lst): Adjust sed expression
7016 ordering so that extended and priority commands aren't treated as
7019 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7021 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7022 Remove byte-swapping function calls, which are not valid in
7023 structure initialisers.
7024 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7026 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7027 grub_gpt_partition_type_bios_boot.
7029 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7031 Fix test program build on GNU/kFreeBSD.
7033 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7034 $(LIBNVPAIR)' library dependencies.
7036 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7038 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7040 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7042 * util/grub-install.in: Remove excessive quoting that broke
7043 installations to RAID devices.
7045 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7047 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7048 bootloader version instead of 0.
7050 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7055 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7057 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7058 retrieve the metadat sector if size isn't known.
7059 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7061 2010-11-18 Robert Millan <rmh@gnu.org>
7063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7066 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7068 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7070 Reported by: Jordan Uggla.
7072 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7074 Make better UTF compliant.
7076 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7077 sequences as incorrect.
7078 (grub_is_valid_utf8): Likewise.
7079 (grub_utf8_to_ucs4): Likewise.
7080 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7081 (grub_ucs4_to_utf8_alloc): Likewise.
7082 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7084 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7086 Make legacy_source behave like source.
7088 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7090 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7092 2010-11-16 Colin Watson <cjwatson@debian.org>
7094 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7095 (-Wunused implies -Wunused-parameter, but not vice versa).
7097 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7099 * configure.ac: Make error messages less confusing by testing for
7100 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7101 accepted, but produces a diagnostic if something else is wrong).
7103 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7105 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7106 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7108 (grub_keyboard_controller_init)
7109 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7110 read the initial state since controller isn't inited yet.
7112 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7114 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7115 allocate_regbeg may need to create new chunk header.
7117 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7119 Fix quoting in legacy parser.
7121 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7123 (grub_legacy_parse): Likewise.
7124 Reported by: Jordan Uggla.
7125 Tested by: Jordan Uggla.
7127 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7129 Don't add -lgcc on i386 and x86_64.
7131 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7132 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7133 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7135 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7137 * configure.ac: Add -Wno-trampolines when supported.
7139 2010-11-14 Modestas Vainius <modax@debian.org>
7141 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7144 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7146 Add generic logical block size support for UDF.
7148 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7149 (GRUB_UDF_BLKSZ): Removed.
7150 (struct grub_udf_data): New field "lbshift" to hold the logical block
7151 size of the file system in log2 format. All users updated.
7152 (sblocklist): Change type to unsigned.
7153 (grub_udf_mount): Change type of "sblklist" to unsigned.
7154 Move AVDP search before VRS recognition, because the latter requires
7155 knowledge of the logical block size, which is detected during the
7157 Detect and validate logical block size during AVDP search, adding
7158 support for block sizes 512, 1024 and 4096.
7159 Make VRS recognition independent of block size.
7161 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7163 Properly handle deleted files on UDF.
7165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7166 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7169 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7171 Support reading files larger than 2 GiB.
7173 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7174 "offset" to grub_off_t.
7175 (grub_udf_read_file): Likewise for parameter "pos".
7177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7179 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7181 (Simple configuration): Refer to Changes from GRUB Legacy about
7182 save_env availability.
7184 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7186 * util/grub-install.in: Ignore empty partition table detection
7187 instead of trying to include part_ module.
7189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7191 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7192 LVM on RAID support.
7194 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7196 Properly define WORDS_BIGENDIAN in wrapped environments.
7198 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7200 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7202 Reported by: Manoel Rebelo Abranches.
7203 Tested by: Manoel Rebelo Abranches.
7205 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7207 * util/grub-mkconfig.in: Fix quoting.
7209 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7211 Support big ext2 files.
7213 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7214 (grub_ext2_read_block): Support triple indirect blocks.
7215 (grub_ext2_read_file): Use 64-bit types and read size_high.
7216 (grub_ext2_open): Read size_high.
7217 Reported by: Ximin Luo.
7218 Tested by: Manoel Rebelo Abranches.
7220 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7222 * util/grub-install.in: Handle filenames containing spaces.
7223 Reported by: Jordan Uggla.
7224 Tested by: Jordan Uggla.
7226 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7228 * util/grub-mkconfig.in (grub_script_check): New variable.
7229 Use grub_script_check instead of grub-script-check.
7230 Reported by: Barry Jackson.
7232 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7234 * docs/grub.texi (menu): Correct the order.
7235 Reported by: D. Hugh Redelmeier.
7237 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7239 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7242 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7244 * include/grub/elfload.h (grub_elf32_size): New parameter.
7246 Return maximum segments alignment.
7247 (grub_elf64_size): Likewise.
7248 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
7249 Return maximum segments alignment.
7250 (grub_elf64_size): Likewise.
7251 * grub-core/loader/powerpc/ieee1275/linux.c:
7252 (grub_linux_claimmap_iterate): New function. Uses the
7253 "available" property in the "memory" node for memory allocation
7254 for kernel in the PowerPC loader.
7255 (grub_linux_load32): Correctly find linux entry point offset.
7256 (grub_linux_load64): Likewise.
7258 2010-11-07 Robert Millan <rmh@gnu.org>
7260 On mips-yeeloong, build with -march=loongson2f when this flag is
7261 available (GCC >= 4.4).
7262 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
7264 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7265 or otherwise add -march=mips3.
7267 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7269 Suppress shell expansion on echo '*' and echo "*" like cases.
7270 Reported by: Jordan Uggla.
7272 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7273 string arguments before shell expansion.
7274 * tests/grub_cmd_echo.in: New testcases.
7276 2010-11-07 Robert Millan <rmh@gnu.org>
7278 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7281 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7283 * grub-core/kern/emu/hostdisk.c
7284 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7286 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7288 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
7289 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
7290 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
7292 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7294 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
7296 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7298 * util/grub-install.in: Replace useless recomendation to pass
7299 --modules with a recomendation to report a bug.
7301 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7303 Properly register serial terminfo.
7304 Reported by: Jordan Uggla
7306 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
7308 (grub_serial_terminfo_output_template): Likewise.
7309 (grub_cmd_serial): Register "serial" with terminfo.
7310 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
7311 grub_serial_terminfo_output.
7313 2010-11-05 Robert Millan <rmh@gnu.org>
7315 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
7318 2010-11-05 Robert Millan <rmh@gnu.org>
7320 On Yeeloong, pass machine type information to Linux.
7322 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
7323 (LOONGSON_MACHTYPE): New macro, set to
7324 "machtype=lemote-yeeloong-2f-8.9inches".
7325 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
7326 additional argument to Linux.
7328 2010-11-04 Robert Millan <rmh@gnu.org>
7330 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
7331 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
7332 (its SATA disks are detected as slaveless IDE master drives on
7334 Reported by Carsten Aulbert.
7336 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
7338 * util/bin2h.c (main): Fix spelling error in generated output.
7340 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
7342 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
7344 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
7347 vga= option is supplied.
7349 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7351 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
7352 * util/grub.d/10_kfreebsd.in: Likewise.
7353 * util/grub.d/10_linux.in: Likewise.
7354 * util/grub.d/20_linux_xen.in: Likewise.
7356 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
7359 argument as an argument to no-argument option.
7361 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7363 * util/grub.d/10_linux.in: Add missing load_video with explicit
7364 GRUB_GFXPAYLOAD_LINUX.
7366 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7368 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
7370 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
7373 elements with invlid index.
7374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7375 * grub-core/disk/raid.c (insert_array): Automatically reallocate
7377 * include/grub/raid.h (grub_raid_member): New struct.
7378 (grub_raid_array): Transform devices and start_sector into usage of
7379 grub_raid_member. All users updated
7380 (allocated_devs): New member.
7382 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7384 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
7387 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
7389 NetBSD build fix for getline function conflict from gnulib.
7391 * Makefile.util.def (libgrubkern.a): New library for grub kernel
7392 components that depend on gnulib headers.
7393 (libgrubmods.a): Renamed from earlier libgrub.a.
7394 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
7396 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7398 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
7399 install rather than creating a broken install.
7401 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7403 * util/grub-setup.c (argp): Remove misleading example of installing to
7406 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7408 * util/grub-setup.c (setup): Clarify the error message.
7410 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7412 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
7414 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7416 * grub-core/kern/emu/misc.c
7417 (grub_make_system_path_relative_to_its_root)
7418 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
7420 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7422 * grub-core/kern/emu/misc.c
7423 (grub_make_system_path_relative_to_its_root): Revert r2882.
7425 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
7427 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
7428 useless field head. All users updated.
7429 (free_subchunk): Correct handling of IN_REGION subchunk.
7431 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
7433 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
7434 (Supported kernels): Likewise.
7436 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7438 Make mktemp invocations portable.
7440 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
7441 exit if mktemp fails.
7442 * tests/grub_script_blockarg.in: Likewise.
7443 * tests/partmap_test.in: Likewise.
7444 * tests/util/grub-shell-tester.in: Likewise.
7445 * tests/util/grub-shell.in: Likewise.
7446 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7447 * Makefile.am: Likewise, and chain shell commands with `&&'
7449 * util/grub-mkrescue.in: Use the same explicit template as above, and
7450 exit if mktemp fails.
7452 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
7454 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
7455 Linux kernel, reported by Dennis Schridde.
7457 2010-10-17 Szymon Janc <szymon@janc.net.pl>
7459 * grub-core/normal/auth.c (grub_auth_check_authentication):
7460 Set-but-not-used variable removed.
7462 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7464 * docs/grub.texi (GNU/Linux): Document APM unavailability with
7465 32-bit linux protocol.
7467 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7469 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
7470 cursor shape for sanity.
7472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7474 * docs/grub.texi (Installation): Document buggy BIOS install.
7476 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7478 * docs/grub.texi (Installation): Indent.
7480 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7482 * util/grub-setup.c (setup): New parameter allow_floppy.
7483 (arguments): New member allow_floppy.
7484 (argp_parser): Handle --allow-floppy.
7485 (main): Pass allow_floppy.
7486 * util/grub-install.in: New option --allow-floppy passed though to
7489 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7491 * util/grub-install.in: Handle partitionless disks.
7493 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7495 * util/grub-setup.c (setup): Don't clean blocklists before readability
7498 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7500 * docs/grub.texi (Installation): Document embedding zone. Remove
7501 obsolete grub-install example.
7503 2010-10-16 Szymon Janc <szymon@janc.net.pl>
7505 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7506 Set-but-not-used variable ifdef'ed.
7507 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
7508 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
7510 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
7511 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
7512 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7513 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
7514 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
7515 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7516 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
7517 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
7518 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
7519 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
7520 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
7523 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7525 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
7526 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
7529 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7532 synonym to _S5_. Needed for some DSDTs.
7534 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7536 Userspace ACPI parser debugging.
7538 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
7539 headers and add relevant defines. Don't include standard headers.
7540 (main) [GRUB_DSDT_TEST]: New function.
7541 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
7542 Don't declare functions.
7544 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7546 Remove dead grub_efi_mm_fini.
7548 * grub-core/kern/efi/mm.c (allocated_page): Removed.
7549 (ALLOCATED_PAGES_SIZE): Likewise.
7550 (MAX_ALLOCATED_PAGES): Likewise.
7551 (allocated_pages): Likewise.
7552 (grub_efi_allocate_pages): Don't record allocated pages.
7553 (grub_efi_free_pages): Likewise.
7554 (grub_efi_mm_init): Likewise.
7555 (grub_efi_mm_fini): Removed.
7557 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7559 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
7560 (grub_efi_mm_init): Take into account the memory map size increase.
7562 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7564 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
7565 (serial_hw_put): Wait based on real time rather than port reads. Don't
7567 * include/grub/serial.h (grub_serial_port): New field broken.
7569 2010-10-16 Robert Millan <rmh@gnu.org>
7571 * grub-core/kern/emu/misc.c
7572 (grub_make_system_path_relative_to_its_root): Fix premature return
7573 when processing non-root ZFS filesystems.
7574 Reported by Sergio Talens-Oliag.
7576 2010-10-15 Robert Millan <rmh@gnu.org>
7578 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
7579 guarantee compressed ones are processed first.
7581 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7583 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
7584 grub_efiemu_autocore.
7586 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7588 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
7590 (grub_console_getkey): Use correct jae opcode rather than ja.
7592 2010-10-12 Robert Millan <rmh@gnu.org>
7594 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
7595 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
7596 variable. All references updated.
7598 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
7600 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
7602 Correctly distinguish mdraid flavours.
7604 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
7605 (insert_array): New argument raid.
7606 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
7607 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
7608 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
7610 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
7612 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
7613 handling of special keys.
7615 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7617 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
7618 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
7620 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7622 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
7623 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
7625 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
7626 Use right endpoint when querying descriptor.
7628 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7630 Clear out 0x80 color bit on EFI.
7632 Reported by: decoder and meta tech.
7634 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
7635 (grub_console_setcolorstate): Clear out 0x80 bit.
7636 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
7637 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
7638 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
7640 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7642 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
7645 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7647 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
7648 mo_file after freeing.
7650 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7652 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
7654 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7656 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
7659 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7661 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
7664 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7666 Put terminfo into core on ieee1275 and yeeloong (needed for console).
7668 * gentpl.py: New groups terminfoinkernel and terminfomodule.
7669 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
7670 and terminfo.h when needed.
7671 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
7672 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
7673 (terminfo): Enable only on terminfokernel.
7675 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
7676 * include/grub/lib/arg.h: Likewise.
7677 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
7678 incorrect usage of ->.
7680 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
7683 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
7685 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7687 Fix coreboot compilation.
7689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7690 Take VBE info into account even if only text is supported.
7691 (fill_vbe_info): Take into account the case when only VGA text
7693 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
7694 on coreboot, multiboot and qemu.
7696 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7698 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
7700 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
7702 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7704 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
7707 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7709 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
7710 if they were BSD-style.
7712 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7714 * grub-core/boot/i386/pc/lnxboot.S: Replace
7715 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
7716 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
7718 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7720 Write embedding zone using Reed-Solomon.
7722 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
7723 * grub-core/Makefile.am (rs_decoder.S): New target.
7724 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
7725 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
7726 (multiboot): Move to RS part.
7727 (post_reed_solomon): New label.
7728 (grub_boot_drive): Move to non-RS part since it's modified in memory
7730 Include rs_decoder.S.
7731 * grub-core/lib/reed_solomon.c: New file.
7732 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
7734 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
7735 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
7736 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
7737 * include/grub/partition.h (grub_partition_map): Change prototype of
7738 embed to allow returning additional sectors.
7739 * include/grub/reed_solomon.h: New file.
7740 * util/grub-setup.c (setup): Handle Reed-Solomon.
7742 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
7744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7745 i386 and x86-64 definedness tests.
7747 2010-09-27 Yves Blusseau <blusseau@zetam.org>
7749 Fix generation of kernel_syms.lst
7751 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
7754 2010-09-26 Robert Millan <rmh@gnu.org>
7756 Support degraded ZFS arrays in "grub-probe -t device" resolution.
7758 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
7759 the pool is an array of devices, iterate through it and return the
7760 first device that passes a stat() test (instead of blindly returning
7763 2010-09-26 Robert Millan <rmh@gnu.org>
7765 Build fixes for GNU/kFreeBSD.
7767 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
7768 to programs that require ZFS conversion.
7769 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
7770 kernels that don't have FLOPPY_MAJOR.
7772 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7774 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
7776 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7780 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
7781 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
7782 mdraid09 and mdraid1x.
7784 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
7786 Re-enable grub-extras.
7788 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
7789 avoid confusing Automake. Run autogen only twice, once for the top
7790 level and once for grub-core. Add Makefile.util.def and
7791 Makefile.core.def from extra modules to the appropriate autogen
7792 invocations. If Makefile.common exists in an extra module, include
7793 it in both Makefile.util.am and grub-core/Makefile.core.am;
7794 similarly, include any Makefile.util.common file in Makefile.util.am
7795 and any Makefile.core.common file in grub-core/Makefile.core.am.
7796 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
7797 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
7798 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
7799 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
7801 * gentpl.py (gvar_add): Turn GVARS into a set.
7802 (global_variable_initializers): Sort global variables on output.
7803 (vars_init): New function.
7804 (first_time): Likewise.
7805 (library): Ensure that non-global variable initialisations are
7806 emitted before the first time we emit code for a library block.
7807 Append to variables rather than setting them. Only emit
7808 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
7809 each conditional path.
7810 (program): installdir() emits an Autogen macro, so must be passed to
7811 var_add rather than gvar_add.
7814 (rules): New function, centralising handling for different target
7815 types. Set up Guile association lists for first_time and vars_init,
7816 and send most output to a diversion so that variable initialisations
7817 can be emitted first.
7818 (module_rules): Use new rules function.
7819 (kernel_rules): Likewise.
7820 (image_rules): Likewise.
7821 (library_rules): Likewise.
7822 (program_rules): Likewise.
7823 (script_rules): Likewise.
7824 (data_rules): Likewise.
7826 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
7828 * .bzrignore: Add contrib and grub-core/contrib. Remove
7829 grub-core/Makefile.gcry.am.
7831 2010-09-24 Yves Blusseau <blusseau@zetam.org>
7833 * grub-core/lib/LzFind.c: Add missing include.
7834 * grub-core/lib/LzmaEnc.c: Likewise.
7835 * grub-core/script/lexer.c: Likewise.
7836 * grub-core/script/yylex.l: Likewise.
7837 * util/grub-macho2img.c: Likewise.
7838 * util/grub-menulst2cfg.c: Likewise.
7839 * util/grub-mklayout.c: Likewise.
7840 * util/grub-mkpasswd-pbkdf2.c
7841 * util/grub-mkrelpath.c: Likewise.
7842 * util/resolve.c: Likewise.
7844 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
7846 * Makefile.util.def (example_unit_test): Add
7847 grub-core/gnulib/libgnu.a.
7849 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
7851 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
7853 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
7855 Support xz compression on yeeloong.
7857 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
7858 * configure.ac: Check for LZMA.
7859 * grub-core/Makefile.core.def (xz_decompress): New target.
7860 (none_decompress): Likewise.
7861 * grub-core/boot/decompressor/minilib.c: New file.
7862 * grub-core/boot/decompressor/none.c: Likewise.
7863 * grub-core/boot/decompressor/xz.c: Likewise.
7864 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
7865 * grub-core/kern/mips/cache_flush.S: Likewise.
7866 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
7867 * grub-core/kern/mips/startup.S: Move first stage to ...
7868 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
7870 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
7871 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
7872 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
7873 Allocate statically.
7874 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
7875 Allocate statically or use scratch. Don't check CRC32.
7876 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
7877 Allocate statically. Don't check CRC32.
7878 * include/grub/decompressor.h: New file.
7879 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
7881 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
7882 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
7883 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
7884 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
7885 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
7886 * util/grub-mkimage.c (grub_compression_t): New type.
7887 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
7888 (image_target_desc): New field default_compression.
7889 (image_targets): Adjust yeeloong targets.
7890 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
7891 (compress_kernel): New parameter comp.
7892 (generate_image): Likewise. Handle new compression case.
7893 (options): New option --compression
7895 (main): Handle new option.
7897 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
7899 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
7901 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
7903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7904 typo in __i386__ conditional.
7906 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7908 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
7911 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7913 Implement EFI and ACPI multiboot2 extensions.
7915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
7916 new tags as supported.
7917 (acpiv2_size): New function.
7918 (grub_multiboot_get_mbi_size): Take new tags into account.
7919 (grub_multiboot_make_mbi): Add new tags.
7920 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
7922 2010-09-21 Aleš Nesrsta <starous@volny.cz>
7924 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
7925 Added missing configuration of USB device.
7927 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7929 * grub-core/normal/menu_entry.c (run): Make sure we always return
7932 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7934 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
7935 NumberOfPages is UINT64 according to the UEFI specification, not
7936 UINTN. Fix printf format.
7938 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7940 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
7941 `err' to grub_usb_err_t.
7942 Reported and tested by: KESHAV P.R.
7944 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7946 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
7947 tpart non-const, so that we can assign to it. (Since this is a
7948 typedef, the constness refers to the pointer rather than what it
7951 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7953 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
7954 $(top_srcdir)/grub-core/gnulib as well as
7955 $(top_builddir)/grub-core/gnulib.
7956 Reported by: KESHAV P.R.
7958 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7960 * util/grub-install.in: Fix the bootloader ID option to be
7961 consistently --bootloader-id, not --bootloader_id.
7962 Reported by: KESHAV P.R.
7964 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7966 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
7967 check hash checksum." consistently translatable.
7969 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7971 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
7974 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7976 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
7977 (GRUB_MOD_INIT): Register sha1sum command.
7978 (GRUB_MOD_FINI): Unregister sha1sum command.
7980 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7982 Keep boot and grub directory names in sync with utils scripts
7984 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
7985 * config.h.in: Add previous macros.
7986 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
7987 * util/grub-install.in: Use $bootdir and $grubdir variables.
7989 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7991 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
7992 convert partition names to disk names if the new `convert' parameter
7994 (grub_util_biosdisk_get_grub_dev): If opening the disk device
7995 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
7996 disk in its own right. This can happen with Xen disk images.
7998 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8000 * util/grub-editenv.c: Update strings to avoid warnings when generating
8002 * util/grub-setup.c: Likewise.
8004 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8006 * configure.ac: Change version to 1.99~beta0.
8008 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8010 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8012 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8014 * include/multiboot.h: Resynced with specification.
8015 * include/multiboot2.h: Likewise.
8017 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8019 Fix po directory handling.
8021 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8022 * grub-core/gnulib/Makefile.am: Import gettext module.
8023 * m4/gnulib-cache.m4: Likewise.
8024 * m4/gnulib-comp.m4: Likewise.
8025 * m4/gettext.m4: New file, from gnulib.
8026 * m4/glibc2.m4: Likewise.
8027 * m4/iconv.m4: Likewise.
8028 * m4/intdiv0.m4: Likewise.
8029 * m4/intl.m4: Likewise.
8030 * m4/intldir.m4: Likewise.
8031 * m4/intlmacosx.m4: Likewise.
8032 * m4/intmax.m4: Likewise.
8033 * m4/inttypes-pri.m4: Likewise.
8034 * m4/lcmessage.m4: Likewise.
8035 * m4/lib-ld.m4: Likewise.
8036 * m4/lib-link.m4: Likewise.
8037 * m4/lib-prefix.m4: Likewise.
8038 * m4/lock.m4: Likewise.
8039 * m4/nls.m4: Likewise.
8040 * m4/po.m4: Likewise.
8041 * m4/printf-posix.m4: Likewise.
8042 * m4/progtest.m4: Likewise.
8043 * m4/threadlib.m4: Likewise.
8044 * m4/uintmax_t.m4: Likewise.
8045 * m4/visibility.m4: Likewise.
8046 * po/Makefile.am: Remove.
8047 * po/Makefile.in.in: New file, from gettext.
8048 ($(DOMAIN).pot-update): Support POTFILES-shell.
8049 * po/Makevars: New file.
8050 * po/POTFILES-shell: Rename to ...
8051 * po/POTFILES-shell.in: ... this. Update.
8052 * po/POTFILES: Rename to ...
8053 * po/POTFILES.in: ... this. Update.
8054 * po/Rules-quot: New file, from gettext.
8055 * po/boldquot.sed: Likewise.
8056 * po/en@boldquot.header: Likewise.
8057 * po/en@quot.header: Likewise.
8058 * po/insert-header.sin: Likewise.
8059 * po/quot.sed: Likewise.
8060 * po/remove-potcdate.sin: Likewise.
8062 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8064 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8068 * util/grub.d/20_linux_xen.in: Use submenus.
8070 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8074 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8075 parameter submenu. All users updated.
8076 * grub-core/normal/main.c (free_menu): Rename to ...
8077 (grub_normal_free_menu): ... this. Made global.
8078 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8080 * grub-core/normal/menu_entry.c (screen): New field submenu.
8081 (make_screen): Set submenu.
8082 (run): Open new context if requested.
8083 * include/grub/menu.h (grub_menu_entry): New field submenu.
8084 * include/grub/normal.h (grub_normal_free_menu): New proto.
8086 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8088 Menu entries extractor.
8090 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8092 (GRUB_MOD_INIT): Register new variants.
8093 (GRUB_MOD_FINI): Unregister new variants.
8094 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8095 into grub_cmd_legacy_source.
8096 (grub_cmd_legacy_source): Implement extractor variants.
8097 (GRUB_MOD_INIT): Register new variants.
8098 (GRUB_MOD_FINI): Unregister new variants.
8099 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8101 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8102 search as an extractor.
8103 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8104 test as an extractor.
8105 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8107 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8108 (grub_env_new_context): New function.
8109 (grub_env_context_open): Likewise.
8110 (grub_env_extractor_open): Likewise.
8111 (grub_env_extractor_close): Likewise.
8112 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8113 grub_extractor_level.
8114 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8115 * include/grub/env.h (grub_env_extractor_open): New proto.
8116 (grub_env_extractor_close): Likewise.
8117 * include/grub/normal.h (grub_extractor_level): New external variable.
8119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8121 Make cutmem accept a region specification.
8122 Suggested by: Samuel Thibault
8124 * grub-core/mmap/mmap.c (parsemem): New function.
8125 (grub_cmd_cutmem): Handle new arguments.
8127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8131 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8132 (GRUB_MOD_INIT): Register new command.
8133 (GRUB_MOD_FINI): Unregister new command.
8135 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8137 Support some annoying BSD and Minix subpartitions.
8139 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8140 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8141 Properly handle concatenation.
8142 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8143 * grub-core/normal/completion.c (iterate_partition): Likewise.
8144 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8145 contain partition. All users updated.
8146 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8148 (grub_openbsdlabel_partition_map): Likewise.
8149 (bsdlabel_partition_map_iterate): Rename to ..
8150 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8151 (bsdlabel_partition_map_iterate): New function.
8152 (netopenbsdlabel_partition_map_iterate): Likewise.
8153 (netbsdlabel_partition_map_iterate): Likewise.
8154 (openbsdlabel_partition_map_iterate): Likewise.
8155 (GRUB_MOD_INIT): Register new partmaps.
8156 (GRUB_MOD_FINI): Unregister new partmaps.
8157 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8158 (grub_partition_msdos_iterate): ... this. All users updated.
8159 Don't support embedding other than in a minix partition.
8160 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8162 * include/grub/partition.h (grub_partition): New field msdostype.
8163 * util/grub-install.in: Handle openbsd and netbsd types being in
8166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8168 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8170 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8171 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8172 (mdraid09): ... this.
8173 (mdraid1x): New module.
8174 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8175 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8177 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8179 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8182 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8184 * grub-core/commands/efi/lsefimmap.c: Correct header.
8187 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8189 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8190 as printf format strings; the translations might contain '%' which
8191 could cause a crash.
8193 * util/grub-fstest.c (argp_parser): Likewise.
8194 * util/grub-setup.c (argp_parser): Likewise.
8197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8199 Use argp in grub-fstest.
8201 * util/grub-fstest.c: Don't include getopt.h.
8203 (root): New variable.
8204 (args_count): Likewise.
8206 (num_disks): Likewise.
8209 (debug_str): Likewise.
8211 (options): Transformed to argp.
8213 (main): Split argument parsing into ...
8214 (argp_parser): ... this. Changed to argp format.
8215 (argp): New variable.
8216 (main): Use argp_parse.
8218 2010-09-20 Tristan Gingold <gingold@free.fr>
8219 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8220 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8222 * grub-core/commands/efi/lsefimmap.c: New file.
8223 * grub-core/Makefile.core.def (lsefimmap): New module.
8224 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8228 Pause the execution (10s max) if any errors are displayed so the user
8229 has a chance to see them.
8231 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
8232 (grub_print_error): Increment grub_err_printed_errors.
8233 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
8234 execution if any errors were displayed.
8235 (show_menu): Remove old code for pause.
8236 * grub-core/normal/menu_entry.c (run): Likewise.
8237 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
8239 (grub_normal_get_char_counter): Likewise.
8240 * include/grub/err.h (grub_err_printed_errors): New external variable.
8241 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
8243 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8245 Support multiboot VBE info.
8247 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8248 Take VBE info into account.
8249 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
8250 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8251 Call fill_vbe_info when appropriate.
8252 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
8253 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
8255 (grub_multiboot_get_mbi_size): Take new tags into account.
8256 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
8257 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8258 Call fill_vbe_tag when appropriate.
8259 (grub_multiboot_make_mbi): Properly align tags.
8260 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
8262 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8268 Suport manual terminal geometry specification.
8270 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
8271 Save state in grub_ofconsole_terminfo_output.
8272 (grub_ofconsole_term): Use grub_terminfo_getwh.
8273 (grub_ofconsole_getwh): Removed.
8274 * grub-core/term/serial.c (grub_serial_getwh): Removed.
8275 (grub_serial_term): Use grub_terminfo_getwh.
8276 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
8277 (options): New struct.
8278 (OPTION_*): New enum.
8279 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
8280 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
8282 (grub_terminfo_getwh): New proto.
8283 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8285 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8287 Handle legacy "terminal" command.
8289 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
8291 (legacy_commands): Add terminal and title.
8292 (grub_legacy_parse): Handle terminal. Simplify title handling.
8294 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8296 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
8297 parameters overflow.
8299 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8301 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
8304 * docs/grub.texi (Shell-like scripting): Document `!'.
8305 (Network): Simplify using new i386-pc-pxe format. Mention
8310 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8312 * Makefile.am (SUBDIRS): Restore "."; it's important to force
8313 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
8316 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8318 * grub-core/commands/efi/lsefisystab.c: Correct header.
8319 * grub-core/commands/efi/lssal.c: Likewise.
8320 * grub-core/commands/testload.c: Likewise.
8322 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8324 * util/grub-mkrescue.in: Add explicit root argument to --set to
8325 prevent the UUID being interpreted as an argument to --set (matches
8326 previous change to prepare_grub_to_access_device).
8328 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8330 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
8331 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
8332 the verbosity of later #ifs.
8333 (find_partition_start): Define this function on FreeBSD too.
8334 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
8336 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
8339 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8341 * util/grub-editenv.c: Use argp instead of getopt.
8343 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8345 * util/grub-setup.c: Use argp instead of getopt.
8347 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8349 Use gnulib-tool to create gnulib source files.
8351 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
8352 grub-core/gnulib directories
8353 * .bzignore: Add **/.deps and autogenerated gnulib files
8354 * configure.ac: Assign auxiliary directory to build-aux, add invocation
8355 of gnulib macros, add grub-core/gnulib/Makefile
8356 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
8357 include m4 directory to aclocal.
8358 * Makefile.util.def: Remove direct compilation of gnulib source files
8359 and use the new grub-core/gnulib/libgnu.a.
8360 * build-aux/config.rpath: move config.rpath from top directory to
8362 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
8364 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
8365 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
8366 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
8368 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
8371 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8373 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
8374 grub-core/genmod.sh and grub-core/gensyminfo.sh
8376 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
8378 Add a test for echo command options.
8380 * tests/grub_cmd_echo.in: New test.
8381 * Makefile.util.def: Rules for new test.
8383 2010-09-20 Szymon Janc <szymon@janc.net.pl>
8385 Remove crc.mod and move crc command to hashsum.mod.
8386 Remove lib/crc.c - users updated to use gcrypt implementation.
8388 * grub-core/commands/crc.c: Removed.
8389 * grub-core/Makefile.core.def (crc): Module removed.
8390 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
8391 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
8392 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
8393 * grub-core/lib/crc.c: Removed.
8394 * include/grub/lib/crc.h: Removed.
8395 * Makefile.util.def (crc): Remove lib/crc.c
8396 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
8397 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
8398 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
8399 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
8400 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
8401 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
8403 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
8407 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8409 Split config.h for util and core.
8411 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
8414 (BSS_START_SYMBOL): Likewise.
8415 (END_SYMBOL): Likewise.
8416 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
8417 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
8418 * config.h.in: New file.
8419 * configure.ac: Use config-util.h as config define file.
8420 Rename MACHINE into GRUB_MACHINE. All users updated.
8421 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
8423 (NESTED_FUNC_ATTR): Likewise.
8424 Substitue new variables.
8425 (COND_HAVE_ASM_USCORE): New conditional.
8426 * grub-core/Makefile.am (ASM_PREFIX): New variable.
8427 (kernel_syms.lst): Use ASM_PREFIX.
8428 * grub-core/kern/emu/console.c: Include config-util.h.
8429 * grub-core/kern/emu/misc.c: Likewise.
8430 * grub-core/kern/emu/mm.c: Likewise.
8431 * include/grub/emu/misc.h: Likewise.
8432 * include/grub/libgcc.h: Likewise.
8434 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8436 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
8438 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
8439 Fix GRUB_TERM_KEY_* constants usage.
8440 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
8442 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8444 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
8446 * grub-core/bus/usb/uhci.c: Remove empty define.
8447 (grub_uhci_check_transfer): Add missing cast.
8448 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
8450 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
8452 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
8454 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8456 * grub-core/Makefile.core.def (legacycfg): Add
8457 lib/i386/pc/vesa_modes_table.c on emu.
8459 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8461 Reduce number of temporary files generated by build system.
8463 * grub-core/gencmdlist.sh: Removed.
8464 * grub-core/genfslist.sh: Removed.
8465 * grub-core/genhandlerlist.sh: Removed.
8466 * grub-core/genmodsrc.sh: Removed.
8467 * grub-core/genpartmaplist.sh: Removed.
8468 * grub-core/genparttoollist.sh: Removed.
8469 * grub-core/gentermiinallist.sh: Removed.
8470 * grub-core/genvideolist.sh: Removed.
8472 * grub-core/genmod.sh.in: New file.
8473 * grub-core/gensyminfo.sh.in: New file.
8475 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
8476 * conf/Makefile.extra-dist: Update with new files.
8477 * gentpl.py: Remove rules related to unnecessary temporary files.
8478 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
8480 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
8482 * grub-core/bus/usb/uhci.c: Remove empty #define.
8483 * grub-core/genmoddep.awk: Updated with new syminfo format.
8484 * util/bash-completion.d/Makefile.am: Add config.log to
8487 2010-09-19 Yves Blusseau <blusseau@zetam.org>
8489 * Makefile.util.def: Add forgotten $(LIBINTL) library.
8491 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8493 * util/grub-mkconfig.in: Check the config script for syntax errors
8496 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
8497 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8499 * Makefile.util.def (grub-install): Use util/grub-install.in on all
8501 * util/grub-install.in: Add EFI and IEEE1275 support.
8502 * util/i386/efi/grub-install.in: Removed.
8503 * util/ieee1275/grub-install.in: Likewise.
8505 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8507 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
8508 (grub_cmd_cmosclean): Likewise.
8509 (GRUB_MOD_INIT): Register command cmosclean.
8510 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
8511 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
8513 2010-09-18 Carles Pina i Estany <carles@pina.cat>
8514 2010-09-18 Aleš Nesrsta <starous@volny.cz>
8515 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8517 Add keyboard layouts support.
8519 * Makefile.util.def (grub-mklayout): New file.
8520 (grub-kbdcomp): New script.
8521 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
8522 Add keyboard_layouts.h.
8523 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
8524 commands/boot.c on yeeloong.
8525 (keylayouts): New module.
8526 * grub-core/bus/usb/ohci.c
8527 * grub-core/bus/usb/uhci.c
8528 * grub-core/bus/usb/usbhub.c (rescan): New variable.
8529 (grub_usb_add_hub): Poll interrupt pipe for device handling.
8530 (attach_root_port): Likewise.
8531 (poll_nonroot_hub): Likewise.
8532 (grub_usb_poll_devices): Likewise.
8533 (detach_device): Close transfer.
8534 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
8536 (grub_usb_bulk_setup_readwrite): Likewise.
8537 (grub_usb_bulk_finish_readwrite): Likewise.
8538 * grub-core/commands/keylayouts.c: New file.
8539 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
8540 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
8542 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
8544 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
8545 * include/grub/keyboard_layouts.h: New file.
8546 * util/grub-mklayout.c: New file.
8547 * util/grub-kbdcomp.in: Likewise.
8549 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8553 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
8554 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
8556 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
8557 (grub_upper_mem): Likewise.
8558 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
8559 * include/grub/memory.h (grub_memory_type_t): New enum.
8562 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8564 * grub-core/Makefile.core.def (lsapm): New module.
8565 * grub-core/commands/i386/pc/lsapm.c: New file.
8566 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
8567 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
8569 * include/grub/i386/pc/apm.h: New file.
8570 * include/multiboot.h (multiboot_apm_info): New struct.
8572 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8574 GRUB-legacy configuration file support.
8576 * Makefile.util.def (grub-menulst2cfg): New util.
8577 * docs/man/grub-menulst2cfg.h2m: New file.
8578 * grub-core/Makefile.core.def (legacycfg): New module.
8579 * grub-core/commands/legacycfg.c: New file.
8580 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
8581 (grub_normal_add_menu_entry): ... this.
8582 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
8583 (grub_normal_set_password): ...this.
8584 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
8585 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
8586 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
8587 * grub-core/lib/legacy_parse.c: New file.
8588 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
8589 * include/grub/i386/pc/vesa_modes_table.h: New file.
8590 * include/grub/legacy_parse.h: Likewise.
8591 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
8592 * util/grub-menulst2cfg.c: New file.
8594 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8596 * grub-core/kern/emu/hostdisk.c
8597 (convert_system_partition_to_system_disk): Initialise node.
8599 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8601 * grub-core/kern/emu/hostdisk.c
8602 (convert_system_partition_to_system_disk): Fix devmapper memory pool
8604 Reported and based on patch by: Modestas Vainius.
8606 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8608 Fix DM-RAID probing with recent versions of device-mapper udev
8611 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
8612 canonicalise device paths under /dev/mapper/.
8613 (convert_system_partition_to_system_disk): Compare the
8614 uncanonicalised path to /dev/mapper/ rather than the canonicalised
8615 path, since device nodes under /dev/mapper/ are often symlinks.
8617 2010-09-17 Yves Blusseau <blusseau@zetam.org>
8619 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
8621 2010-09-16 Yves Blusseau <blusseau@zetam.org>
8623 * configure.ac: Avoid some annoying error messages if freetype-config
8624 program is not found.
8626 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8628 Support RAID on virtio devices, and others.
8630 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
8632 [__MINGW32__] (grub_find_device): ... this.
8633 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
8634 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
8635 reasonable default if dir is NULL.
8636 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
8638 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
8639 (grub_guess_root_device): Update callers.
8640 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
8642 * util/raid.c (grub_util_getdiskname): Remove.
8643 (grub_util_raid_getmembers): Use grub_find_device rather than
8644 grub_util_getdiskname.
8646 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8648 * docs/grub.texi (serial): Remove obsolete comment about GRUB
8649 needing to be compiled with serial support.
8650 (ls): Indicate that multiple files are accepted.
8651 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
8652 indicate that multiple files are accepted.
8654 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8656 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
8657 libgrub_a_init.c, and util/bash-completion.d/grub.
8659 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8661 * util/grub-setup.c (setup): Fix incorrect container semantics.
8663 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8665 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
8667 Reported by: J. Nick Terry
8669 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8671 Move embedding routines to partmap sources files.
8673 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
8674 [GRUB_UTIL]: New variable.
8675 (gpt_partition_map_iterate): Set part.parent.
8676 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
8677 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
8678 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
8680 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
8681 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
8682 (grub_partition_map) [GRUB_UTIL]: New field embed.
8683 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
8684 (setup): Use ->embed.
8686 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
8690 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
8691 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
8693 2010-09-15 Yves Blusseau <blusseau@zetam.org>
8695 Add function to get completions from usage.
8697 * util/bash-completion.d/grub-completion.bash.in: Add function to get
8698 completions from usage. Use LC_ALL=C to get options properly.
8700 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8702 * grub-core/gnulib/basename-lgpl.c: Imported.
8703 * grub-core/gnulib/basename.c: Likewise.
8704 * grub-core/gnulib/dirname-lgpl.c: Likewise.
8705 * grub-core/gnulib/dirname.c: Likewise.
8706 * grub-core/gnulib/dirname.h: Likewise.
8707 * grub-core/gnulib/stripslash.c: Likewise.
8709 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8711 * grub-core/gnulib/error.c: Resynced.
8712 * grub-core/gnulib/getopt.c: Likewise.
8713 * grub-core/gnulib/getopt_int.h: Likewise.
8714 * grub-core/gnulib/regex.h: Likewise.
8715 * grub-core/gnulib/regex_internal.c: Likewise.
8716 * grub-core/gnulib/regex_internal.h: Likewise.
8718 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
8721 CRC calculations and validity checks.
8722 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
8725 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
8729 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8731 Fix incorrect echo options handling.
8732 Reported by: Yves Blusseau.
8734 * include/grub/command.h (grub_command_flags_t): New flags
8735 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
8736 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
8737 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
8739 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8741 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
8743 (GRUB_COMMAND_FLAG_MENU): Likewise.
8744 (GRUB_COMMAND_FLAG_BOTH): Likewise.
8745 (GRUB_COMMAND_FLAG_TITLE): Removed.
8746 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
8747 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
8748 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
8749 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
8750 (grub_command_flags_t): New enum. All users updated.
8752 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
8754 Fix solaris compilation.
8756 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
8757 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
8758 (grub-emu-list): Likewise.
8760 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8762 Remove deprecated root command.
8764 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
8767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8769 * util/i386/pc/grub-setup.c: Merge this ...
8770 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
8771 * util/grub-setup.c: ... into this.
8772 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
8775 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8777 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
8780 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8782 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
8785 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8787 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8788 explicit root argument to set to prevent UUID to be interpreted as
8791 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8793 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
8795 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8797 Don't export grub_gate_a20.
8799 * grub-core/kern/i386/pc/init.c: Remove leftovers.
8800 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
8802 (grub_gate_a20): ... this. All users updated.
8803 * include/grub/i386/pc/init.h: Removed. All users updated.
8805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8807 Create euro.pf2 which supports most European languages.
8809 * Makefile.am (grubdata_DATA): Add euro.pf2.
8810 (euro.pf2): New target.
8811 (CLEANFILES): Add euro.pf2.
8813 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8815 * configure.ac: Disable emu-usb by default to prevent inadvertent
8818 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8820 Disable usbserial on grub-emu since our libusb code isn't good enough
8823 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
8824 (usbserial_pl2303): Likewise.
8825 (usbserial_ftdi): Likewise.
8827 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8829 * include/grub/disk.h (grub_disk): Remove has_partitions.
8831 * disk/loopback.c (grub_loopback): Remove has_partitions.
8833 (options): Remove partitions. All users updated.
8834 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
8835 * util/i386/pc/grub-setup.c (setup): copy partition table only when
8836 actual partition table is found.
8838 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8840 Remove readability checks (too many false negatives).
8842 * util/grub-install.in: Remove readability checks.
8843 * util/grub-mkconfig.in: Likewise.
8844 * util/grub.d/10_hurd.in: Likewise.
8845 * util/grub.d/10_kfreebsd.in: Likewise.
8846 * util/grub.d/10_linux.in: Likewise.
8847 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
8850 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8852 Enable acpi shutdown on all ACPI platforms.
8854 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
8855 on coreboo, multiboot and EFI.
8856 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
8857 (grub_acpi_halt): Likewise.
8858 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
8859 (grub_cmd_halt): Don't call grub_acpi_halt directly.
8860 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
8861 * grub-core/lib/i386/halt.c (grub_halt)
8862 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
8864 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8866 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
8869 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8871 * grub-core/video/efi_gop.c: Fix over-80-chars line.
8872 * grub-core/video/efi_uga.c: Likewise.
8874 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8876 Filter devaliases and never open same device twice.
8878 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
8879 (last_ihandle): Likewise.
8880 (ofdisk_hash_ent): New member shortest.
8881 (ofdisk_hash_add): Add canonical path too.
8882 (scan): New function.
8883 (grub_ofdisk_iterate): Iterate over hashed entries.
8884 (compute_dev_path): Don't add :0.
8885 (grub_ofdisk_open): Don't really open the disk.
8886 (grub_ofdisk_close): Avoid closing unrelated disk.
8887 (grub_ofdisk_read): Implement reopen logic.
8888 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
8890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
8893 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8897 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
8898 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
8899 right address. Add sparc64_ieee1275_ldflags.
8900 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
8901 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
8902 to grub_host_to_target_addr
8903 (load_image): Likewise.
8905 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8907 * grub-core/normal/completion.c (complete_file): Handle device
8909 Fix based on patch by Doug Nazar.
8911 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8913 grub-mknetdir script.
8915 * Makefile.util.def (grub-mknetdir): New module.
8916 * tests/util/grub-shell.in: Support boot=net
8917 * util/grub-mknetdir.in: New file.
8919 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8921 videoinfo on non-vbe.
8923 * grub-core/Makefile.core.def (vbeinfo): Removed.
8925 (videoinfo): New module.
8926 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
8927 * grub-core/commands/i386/pc/vbetest.c: Removed.
8928 * grub-core/commands/videoinfo.c: New file.
8929 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
8931 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
8933 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
8934 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
8935 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
8936 mode_number. New parameter mode. All users updated.
8937 (grub_video_gop_iterate): New function.
8938 (grub_video_efi_gop): New member iterate.
8939 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
8940 (grub_vbe_set_video_mode): Remove setting useless fields.
8941 (vbe2videoinfo): New function.
8942 (grub_video_vbe_iterate): Likewise.
8943 (grub_video_vbe_setup): Use vbe2videoinfo.
8944 (grub_video_vbe_print_adapter_specific_info): New function.
8945 (grub_video_vbe_adapter): New fields iterate and
8946 print_adapter_specific_info.
8947 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
8949 (grub_video_mode_info): New field mode_number.
8950 (grub_video_adapter): New fields iterate and
8951 print_adapter_specific_info.
8953 2010-09-13 Tristan Gingold <gingold@free.fr>
8954 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
8955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8957 * grub-core/commands/efi/lsefisystab.c: New file.
8958 * grub-core/commands/efi/lssal.c: Likewise.
8959 * grub-core/Makefile.core.def (lsacpi): New module.
8960 (lsefisystab): Likewise.
8961 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
8962 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
8963 (grub_efi_sal_system_table): New struct.
8964 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
8965 (grub_efi_sal_system_table_memory_descriptor): Likewise.
8966 (grub_efi_sal_system_table_platform_features): Likewise.
8967 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
8968 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
8969 (grub_efi_sal_system_table_ap_wakeup): Likewise.
8970 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
8972 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8974 Support explicit user claim that a device is BIOS-visible.
8976 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
8977 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
8978 * grub-core/kern/emu/hostdisk.c
8979 (convert_system_partition_to_system_disk): Support mdX.
8980 (find_system_device): New parameter add. All users updated.
8981 (grub_util_biosdisk_is_present): New function.
8982 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
8985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8987 Search hints support.
8989 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
8992 2010-09-13 Yves Blusseau <blusseau@zetam.org>
8994 Bash completion script for util commands
8996 * Makefile.am: Add util/bash-completion.d directory
8997 * configure.ac: Likewise.
8998 * util/bash-completion.d/Makefile.am: New file.
8999 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9001 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9004 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9005 Reported by: Yves Blusseau.
9007 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9009 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9010 partition size and offset.
9012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9014 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9016 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9018 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9020 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9022 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9023 (grub_xvasprintf): Likewise.
9025 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9027 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9029 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9031 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9032 args ending with NULL.
9034 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9036 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9039 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9041 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9043 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9045 Shutdown using ACPI.
9047 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9048 * grub-core/commands/acpihalt.c: New file.
9049 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9050 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9051 (grub_acpi_halt): New proto.
9052 (GRUB_ACPI_SLP_EN): New const.
9053 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9054 (GRUB_ACPI_OPCODE_*): New enum.
9055 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9057 2010-09-11 Tristan Gingold <gingold@free.fr>
9058 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9059 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9061 * commands/lsacpi.c: New file.
9062 * grub-core/Makefile.core.def (lsacpi): New module.
9063 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9064 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9065 (grub_acpi_madt_entry_header): New struct.
9066 (grub_acpi_madt): Likewise.
9067 (grub_acpi_madt_entry_interrupt_override): Likewise.
9068 (grub_acpi_madt_entry_sapic): Likewise.
9069 (grub_acpi_madt_entry_lsapic): Likewise.
9070 (grub_acpi_madt_entry_platform_int_source): Likewise.
9071 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9072 (PRIuGRUB_UINT32_T): Likewise.
9073 (PRIxGRUB_UINT64_T): Likewise.
9075 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9077 Implement loading palette on ieee1275_fb.
9079 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9080 (have_setcolors): Likewise.
9081 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9082 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9083 (grub_video_ieee1275_set_palette): Implement.
9085 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9086 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9088 * util/grub-install.in (grub_partition): New variable.
9089 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9090 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9091 Fixes a bug reported by Yves Blusseau.
9093 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9097 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9098 =grub_cpu_flush_cache on all mips and not only yeeloong.
9099 * configure.ac (COND_mips): New conditional.
9100 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9102 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9103 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9104 [GRUB_LINKER_HAVE_INIT]: New function.
9105 (grub_emu_post_init): Likewise.
9106 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9107 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9108 * include/grub/cache.h (_mips): Include mips/cache.h.
9109 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9110 LVM and RAID prototypes.
9111 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9112 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9115 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9117 * util/grub-install.in: Don't try to verify core.img until after
9118 running grub-mkimage to create it.
9120 2010-09-10 Robert Millan <rmh@gnu.org>
9122 * util/grub.d/10_hurd.in: Add misc readability checks.
9123 * util/grub.d/10_kfreebsd.in: Likewise.
9124 * util/grub.d/10_linux.in: Likewise.
9126 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9128 * util/grub-install.in: ${imgext} won't be defined here until the
9129 install branch is merged. For the meantime, only verify core.img on
9130 i386-pc and sparc64-ieee1275 platforms.
9132 2010-09-10 Robert Millan <rmh@gnu.org>
9134 Solaris support in grub_find_zpool_from_dir(). Thanks
9135 Seth Goldberg for referring to getextmntent() facility.
9137 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9139 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9141 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9142 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9143 method for finding zpool name.
9145 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9147 grub-fstest needs the host and hostfs modules while other utilities
9148 actively require those modules to be absent, so grub-fstest needs
9149 its own initialisation and finalisation code.
9151 * Makefile.am (grub_fstest.pp): New target.
9152 (grub_fstest_init.lst): Likewise.
9153 (grub_fstest_init.c): Likewise.
9154 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9156 2010-09-10 Robert Millan <rmh@gnu.org>
9158 * configure.ac: Check for `struct statfs.f_fstypename' and
9159 `struct statfs.f_mntfromname'.
9161 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9162 kFreeBSD-specific code.
9164 2010-09-10 Robert Millan <rmh@gnu.org>
9166 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9167 on ZFS. Now non-main filesystems are supported as / too.
9169 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9171 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9172 and grub-core/disk/host.c to ...
9173 (grub-fstest): ... here. Having the host disk implementation
9174 present confuses grub-probe and other utility programs.
9176 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9177 when writing to a file, not when writing to stdout.
9179 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9181 * tests/partmap_test.in: New test for partitions.
9182 * Makefile.util.def: Rules for new test.
9184 2010-09-09 Robert Millan <rmh@gnu.org>
9186 * util/grub-probe.c (probe): Fix a pair of unhandled error
9189 2010-09-09 Robert Millan <rmh@gnu.org>
9191 Basic Btrfs support (detection and UUID).
9193 * grub-core/fs/btrfs.c: New file.
9194 * Makefile.util.def (library): Register btrfs.c.
9195 * grub-core/Makefile.core.def: Likewise.
9197 2010-09-08 Robert Millan <rmh@gnu.org>
9199 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9200 with (optional) parameters to specify device and relative path.
9201 * util/grub-install.in: Use is_path_readable_by_grub() to
9202 verify readability of a few critical files.
9203 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9204 verify readability of grub.cfg.new.
9206 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9208 Split minix.mod into minix.mod and minix2.mod.
9210 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9211 * grub-core/Makefile.core.def (minix2): New module.
9212 * grub-core/fs/minix.c: Use definitions instead of runtime version
9214 * grub-core/fs/minix2.c: New file.
9216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9218 Add new --boot-directory option to replace --root-directory
9220 * util/grub-install.in: Add new --boot-directory option
9221 * util/grub-reboot.in: Likewise.
9222 * util/grub-set-default.in: Likewise.
9224 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9226 * util/grub-mkconfig.in: Use new variable.
9228 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9230 * configure.ac: Define some useful variables.
9232 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9234 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9235 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
9236 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
9237 Use terminfo and don't use cursor-on/cursor-off unless it's known
9239 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9240 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9242 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9244 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
9245 starts with "(,", fill the drive containing the loaded image in
9246 between those two characters, but expect that a full partition
9247 specification including partition map names will follow.
9249 2010-09-08 Robert Millan <rmh@gnu.org>
9251 * configure.ac: Remove `--enable-grub-fstest' option.
9252 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9254 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
9255 `grub-fstest' instead of `grub-probe' for readability verification.
9256 * util/grub-probe.c (probe): Remove readability verification kludge.
9258 2010-09-08 Robert Millan <rmh@gnu.org>
9260 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9261 initializing `GRUB_FS'.
9263 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9265 Not command (!) support to GRUB script.
9267 * tests/grub_script_not.in: New test.
9268 * Makefile.util.def: Rules for new test.
9270 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
9271 ! command as a special case.
9272 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
9274 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9276 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9279 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9281 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9283 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9285 * docs/grub.texi (Shell-like scripting): Documentation for break,
9286 continue, shift and return commands.
9288 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
9290 Rename CD-ROM to cd on BIOS.
9292 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
9294 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
9296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9298 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
9299 * util/grub-probe.c (main): Likewise.
9300 * util/i386/pc/grub-setup.c (main): Likewise.
9301 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9302 Reported and debugged by: alexxy
9304 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
9309 2010-09-05 Jo Shields <directhex@apebox.org>
9311 * util/grub.d/30_os-prober.in: Add missing classes.
9313 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9315 * docs/grub.texi (Theme file format): Document new position format.
9317 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9319 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
9320 a table. Use @code instead of @verbatim.
9322 2010-09-05 Colin D Bennett <colin@gibibit.com>
9324 Gfxmenu documentation.
9326 * docs/grub.texi (Theme file format): New chapter.
9328 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9330 * grub-core/Makefile.core.def (xzio): New module.
9331 * grub-core/io/xzio.c: New file.
9332 * grub-core/lib/xzembed/xz.h: New file (from xembed).
9333 * grub-core/lib/xzembed/xz_config.h: Likewise.
9334 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
9335 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
9336 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
9337 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
9338 * grub-core/lib/xzembed/xz_private.h: Likewise.
9339 * grub-core/lib/xzembed/xz_stream.h: Likewise.
9340 * include/grub/file.h (grub_file_filter_id): New compression filter
9341 GRUB_FILE_FILTER_XZIO.
9343 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9345 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
9346 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
9349 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9351 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
9352 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
9354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9356 Uncompressed checksum support.
9358 * grub-core/commands/hashsum.c (options): Add option --uncompress.
9359 (check_list): New parameter uncompress.
9360 (grub_cmd_hashsum): Handle --uncompress.
9362 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9364 Reintroduce testload.
9366 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
9368 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
9369 (GRUB_MOD_INIT): New function.
9370 (GRUB_MOD_FINI): Likewise.
9371 * grub-core/Makefile.core.def (testload): New module.
9373 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9375 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
9376 (uint8_t): New type.
9377 (uint16_t): Likewise.
9378 (uint32_t): Likewise.
9379 (uint64_t): Likewise.
9381 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9383 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
9385 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9387 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
9389 (grub_gzfile_open): Removed. All users updated.
9390 (GRUB_MOD_INIT): New function.
9391 (GRUB_MOD_FINI): Likewise.
9392 * grub-core/kern/file.c (grub_file_filters_all): New variable.
9393 (grub_file_filters_enabled): Likewise.
9394 (grub_file_open): Handle filters.
9395 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
9396 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
9397 * include/grub/file.h (grub_file_filter_id_t): New type.
9398 (grub_file_filter_t): Likewise.
9399 (grub_file_filters_all): New extern variable.
9400 (grub_file_filters_enabled): Likewise.
9401 (grub_file_filter_register): New inline function.
9402 (grub_file_filter_unregister): Likewise.
9403 (grub_file_filter_disable): Likewise.
9404 (grub_file_filter_disable_compression): Likewise.
9405 * include/grub/gzio.h: Removed.
9407 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9409 Filename expansion support for wildcards in GRUB script.
9411 * tests/grub_script_expansion.in: New test.
9412 * Makefile.util.def: Rule for new test.
9414 * grub-core/commands/wildcard.c: New file, implements filename
9415 expansion support for GRUB script.
9416 * grub-core/Makefile.core.def: Rule update for regexp.mod.
9417 * grub-core/script/argv.c: Cosmetic changes.
9418 * grub-core/script/execute.c (grub_script_arglist_to_argv):
9419 Refactored to perform wildcard expansion on arguments.
9420 * include/grub/script_sh.h (grub_script_wildcard_translator): New
9423 * tests/util/grub-shell.in: Fix quoting for read input.
9425 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9427 Support for updating environment variables with matched substrings
9430 * tests/grub_cmd_regexp.in: New test.
9431 * Makefile.util.def: Rule for new test.
9433 * grub-core/commands/regexp.c: New option -s to update environment
9434 variables with regexp matches.
9436 2010-09-04 Szymon Janc <szymon@janc.net.pl>
9438 * include/grub/file.h (grub_file): New member not_easly_seekable.
9439 (grub_file_seekable): New inline function.
9440 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
9442 (grub_gzio_open): Set not_easly_seekable.
9443 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
9444 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
9446 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9448 Support for options to appear multiple times on cmdline.
9450 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
9451 * grub-core/commands/extcmd.c: Support for repeatable option.
9452 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
9453 repeatable option support.
9455 Refactor menuentry into a regular command.
9457 * grub-core/commands/menuentry.c: New file, menuentry command
9459 * grub-core/Makefile.core.def: Rule update for normal.mod.
9460 * grub-core/normal/main.c: Moved menuentry creation to
9461 grub-core/commands/menuentry.c.
9462 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
9463 (grub_menu_execute_entry_real): Removed.
9464 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
9466 (grub_script_execute_menuentry): Removed.
9467 * grub-core/script/parser.y (menuentry): Removed.
9468 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
9469 * grub-core/script/yylex.l (menuentry): Removed.
9470 * include/grub/menu.h (grub_menu_init): New prototype.
9471 (grub_menu_fini): New prototype.
9472 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
9473 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
9474 (grub_script_execute_sourcecode): New prototype.
9476 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9478 "return" command for GRUB script functions.
9480 * tests/grub_script_return.in: New test.
9481 * Makefile.util.def: Rules for new test.
9483 * grub-core/script/execute.c (grub_script_return): New function.
9484 * grub-core/script/main.c: Register/unregister return commaond.
9485 * include/grub/script_sh.h (grub_script_return): New prototype.
9487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9489 "setparams" command to update positional parameters.
9491 * tests/grub_script_setparams.in: New test.
9492 * Makefile.util.def: Rules for new test.
9494 * grub-core/script/argv.c (grub_script_argv_make): New function.
9495 * grub-core/script/execute.c (replace_scope): New function.
9496 (grub_script_setparams): New function.
9497 * grub-core/script/lexer.c: Remove unused variables.
9498 * grub-core/script/main.c: Register/unregister setparams command.
9499 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
9500 (grub_script_setparams): New prototype.
9502 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9504 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
9507 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9509 Support for passing block of commands as an argument to extcmds.
9511 * Makefile.util.def: Rules for new test.
9512 * tests/grub_script_blockarg.in: New test.
9513 * grub-core/tests/test_blockarg.c: New file, block argument
9514 command used in the test.
9516 * include/grub/extcmd.h (grub_extcmd_context): New struct.
9517 (grub_register_extcmd_prio): New function prototype.
9518 (grub_extcmd_dispatcher): New function prototype.
9519 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
9521 * include/grub/script_sh.h (struct grub_script): New members
9522 `children', `next_siblings' and `refcnt' for block arguments and
9524 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
9525 (grub_script_arg): New member `script' for block argument.
9526 (grub_script_argv): New member `script' for block argument.
9527 (grub_parser_param): New member `scripts' for block argument.
9528 (grub_script_mem_free): New extern function prototype.
9529 (grub_script_ref): New function prototype.
9530 (grub_script_unref): New function prototype.
9532 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
9533 extcmd form to support block arguments.
9534 * grub-core/script/argv.c: Block arguments support.
9535 * grub-core/script/execute.c: Likewise.
9536 * grub-core/script/lexer.c: Likewise.
9537 * grub-core/script/main.c: Likewise.
9538 * grub-core/script/script.c: Likewise.
9539 * grub-core/script/parser.y: Likewise. New `block' and `block0'
9542 * grub-core/commands/acpi.c: Update extcmd implementations with
9543 grub_extcmd_context_t.
9544 * grub-core/commands/cat.c: Likewise.
9545 * grub-core/commands/echo.c: Likewise.
9546 * grub-core/commands/extcmd.c: Likewise.
9547 * grub-core/commands/hashsum.c: Likewise.
9548 * grub-core/commands/hdparm.c: Likewise.
9549 * grub-core/commands/help.c: Likewise.
9550 * grub-core/commands/hexdump.c: Likewise.
9551 * grub-core/commands/i386/cpuid.c: Likewise.
9552 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9553 * grub-core/commands/i386/pc/halt.c: Likewise.
9554 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9555 * grub-core/commands/iorw.c: Likewise.
9556 * grub-core/commands/keystatus.c: Likewise.
9557 * grub-core/commands/loadenv.c: Likewise.
9558 * grub-core/commands/ls.c: Likewise.
9559 * grub-core/commands/lspci.c: Likewise.
9560 * grub-core/commands/memrw.c: Likewise.
9561 * grub-core/commands/probe.c: Likewise.
9562 * grub-core/commands/search_wrap.c: Likewise.
9563 * grub-core/commands/setpci.c: Likewise.
9564 * grub-core/commands/sleep.c: Likewise.
9565 * grub-core/disk/loopback.c: Likewise.
9566 * grub-core/hello/hello.c: Likewise.
9567 * grub-core/loader/i386/bsd.c: Likewise.
9568 * grub-core/loader/xnu.c: Likewise.
9569 * grub-core/term/gfxterm.c: Likewise.
9570 * grub-core/term/serial.c: Likewise.
9571 * grub-core/tests/lib/functional_test.c: Likewise.
9573 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9575 Multi-line quoted strings support.
9577 * grub-core/script/lexer.c (append_newline): Removed.
9578 (grub_script_lexer_yywrap): Refactored.
9579 (grub_script_lexer_init): Refactored.
9580 * grub-core/script/yylex.l (yywrap): New function.
9581 (grub_lexer_resplit): New function.
9582 (grub_lexer_unput): New function.
9583 * include/grub/script_sh.h (grub_lexer_param): New members, unput
9585 * tests/grub_script_echo1.in: Added few more testcases.
9587 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9589 * grub-core/kern/misc.c: Don't add abort alias in utils.
9590 Reported by: echoline.
9592 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
9594 Add missing files into "make dist" tarball for other platforms.
9596 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
9597 * conf/Makefile.common (dist_noinst_DATA): New variable.
9598 * conf/Makefile.extra-dist: Added missing make dist files.
9599 * grub-core/Makefile.core.def: Likewise.
9601 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9603 Compress grub_prefix.
9605 * grub-core/boot/i386/pc/lnxboot.S: Use
9606 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
9607 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
9608 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
9609 GRUB_MACHINE_PREFIX_END. All users updated.
9610 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
9611 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
9613 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9614 * util/grub-mkimage.c (image_target_desc): Change data_end to
9615 prefix_end. All users updated.
9617 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9619 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
9621 (grub_openbsd_boot): Likewise.
9622 (grub_netbsd_boot): Likewise.
9623 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
9624 (grub_xnu_boot): Likewise.
9626 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9628 * configure.ac: Clean LIBS variable after tests.
9630 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9632 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
9634 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9636 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
9637 echo if libdevmapper will be used.
9639 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
9641 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
9642 constant for the same file.
9644 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
9648 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9650 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
9653 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9655 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
9656 required by the boot protocol.
9658 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
9659 ebp and edi members.
9660 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
9661 state.ebp and state.edi.
9662 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
9663 %ebp and %edi according to grub_relocator32_ebp and
9664 grub_relocator32_edi respectively.
9665 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
9668 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9670 Add i386-pc-pxe image target.
9672 * util/grub-mkimage.c (image_target_desc): New enum value
9674 (image_targets): New target i386-pc-pxe.
9675 (generate_image): Handle i386-pc-pxe image.
9677 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9681 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
9682 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
9684 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
9685 (grub_pxe_pxenv): Correct type.
9687 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9689 * NEWS: Document most of the important changes since 1.98.
9691 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9693 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
9694 generated manual page) a little.
9696 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9698 * docs/grub.texi: Add myself as an author.
9700 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9702 * Makefile.util.def (libgrub.a): Add missing sunpc.
9703 Reported by: Seth Goldberg.
9705 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9707 Interrupt wrapping and code simplifications.
9709 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
9710 x86_noieee1275 which are functionaly equivalent in this case.
9711 (grub-install): Make source on each platform explicit. Enable on
9713 * gentpl.py (x86_efi_pc): Removed group.
9714 (x86_noefi): Likewise.
9715 (i386_noefi): Likewise.
9716 (x86_noieee1275): Likewise.
9717 (i386_noieee1275): Likewise.
9718 (i386_noefi_noieee1275): Likewise.
9719 (i386_pc_qemu_coreboot): Likewise.
9720 (i386_coreboot_multiboot): Likewise.
9721 (i386_pc_coreboot_multiboot_qemu): Likewise.
9722 (x86_noefi_mips): Likewise.
9723 (noieee1275): Likewise.
9724 (ieee1275_mips): Likewise.
9725 (noemu_noieee1275): Likewise.
9728 (videoinkernel): Likewise.
9729 (videomodules): Likewise.
9730 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9731 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
9732 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
9733 include/grub/loader.h, include/grub/msdos_partition.h,
9734 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
9735 include/grub/machine/console.h, include/grub/machine/vga.h,
9736 include/grub/machine/vbe.h, include/grub/machine/init.h,
9737 include/grub/machine/kernel.h, include/grub/cpu/time.h,
9738 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
9739 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9740 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
9741 * grub-core/Makefile.core.def (kernel): Explicit the source for
9742 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
9743 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
9744 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
9745 Use videoinkernel tag.
9746 (usb): Enable on all usb.
9747 (usbserial_common): Likewise.
9748 (usbserial_pl2303): Likewise.
9749 (usbserial_ftdi): Likewise.
9750 (uhci): Enable on all x86.
9751 (ohci): Enable on all pci.
9752 (cmostest): Enable on all CMOS.
9753 (acpi): Include commands/acpi.c on all platforms.
9754 (halt): Add relevant lib/*/halt.c.
9755 (hdparm): Enable on all pci.
9757 (usbtest): Enable on all usb.
9758 (ata): Enable on all pci.
9759 (ata_pthru): Likewise.
9760 (usbms): Enable on all usb.
9761 (usb_keyboard): Likewise.
9762 (font): Use tag videomodules.
9764 (datetime): Use tag cmos. Enable on all noemu.
9765 (mmap): Use tags common and x86.
9766 (gfxterm): Use tag videomodules.
9768 (bitmap_scale): Likewise.
9769 (video_fb): Likewise.
9771 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
9772 adjust padding accordingly. All users updated.
9773 (grub_ohci_transaction): Fix bad format specification.
9774 (GRUB_MOD_INIT): Add asserts for struct size.
9775 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
9776 (grub_alloc_td): Likewise.
9777 (grub_free_queue): Likewise.
9778 (grub_uhci_transfer): Likewise.
9779 (grub_uhci_transaction): Fix bad format specification.
9780 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9781 (grub_usb_bulk_readwrite): Likewise.
9782 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
9783 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
9785 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
9787 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
9788 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
9790 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
9792 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
9793 ... here. Transformed into C. Made static.
9794 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
9796 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
9797 ... here. Transformed into C. Made static.
9798 * grub-core/kern/i386/pc/startup.S
9799 (grub_biosdisk_check_int13_extensions): Moved from here ...
9800 * grub-core/disk/i386/pc/biosdisk.c
9801 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
9803 * grub-core/kern/i386/pc/startup.S
9804 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
9805 * grub-core/disk/i386/pc/biosdisk.c
9806 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
9807 Transformed into C. Made static.
9808 * grub-core/kern/i386/pc/startup.S
9809 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
9810 * grub-core/disk/i386/pc/biosdisk.c
9811 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
9812 Transformed into C. Made static.
9813 * grub-core/kern/i386/pc/startup.S
9814 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
9815 * grub-core/disk/i386/pc/biosdisk.c
9816 (grub_biosdisk_get_diskinfo_standard): ... here.
9817 Transformed into C. Made static.
9818 * grub-core/kern/i386/pc/startup.S
9819 (grub_biosdisk_get_num_floppies): Moved from here ...
9820 * grub-core/disk/i386/pc/biosdisk.c
9821 (grub_biosdisk_get_num_floppies): ... here.
9822 Transformed into C. Made static.
9823 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
9825 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
9826 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
9827 Transformed into C. Made static.
9828 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
9829 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
9830 Transformed into C. Made static.
9831 * grub-core/kern/i386/ieee1275/init.c: Removed.
9832 * grub-core/kern/i386/misc.S: Likewise.
9833 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
9834 Splitted from here ...
9835 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
9836 Transformed into C. Made static. All users updated.
9837 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
9838 Transformed into C. Made static. All users updated.
9839 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
9841 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
9842 Transformed into C. Made static. All users updated.
9843 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
9845 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
9846 Transformed into C. Made static. All users updated.
9847 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
9848 Removed (replaced by C version).
9849 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
9851 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
9852 Transformed into C. Made static.
9853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
9855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
9856 ... here. Transformed into C.
9857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
9859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
9860 ... here. Transformed into C.
9861 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
9863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
9864 ... here. Transformed into C. Made static.
9865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
9867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
9868 ... here. Transformed into C.
9869 * grub-core/kern/i386/pc/startup.S
9870 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
9871 * grub-core/video/i386/pc/vbe.c
9872 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
9875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
9876 ... here. Transformed into C.
9877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
9879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
9880 ... here. Transformed into C.
9881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
9883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
9884 ... here. Transformed into C.
9885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
9887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
9888 ... here. Transformed into C.
9889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
9891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
9892 ... here. Transformed into C. Made static.
9893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
9895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
9896 ... here. Transformed into C. Made static.
9897 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
9899 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
9900 ... here. Transformed into C. Made static.
9901 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
9902 pxe_rm_entry as third argument.
9903 (grub_bios_interrupt): New function.
9904 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
9905 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
9906 of calling grub_stop.
9907 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
9908 * grub-core/lib/efi/halt.c (grub_halt): ...here.
9909 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
9910 * grub-core/lib/emu/halt.c (grub_halt): ... here.
9911 * grub-core/lib/i386/halt.c: Moved from here ...
9912 * grub-core/lib/i386/halt.c: ... here.
9913 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
9914 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
9915 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
9917 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
9918 * include/grub/i386/coreboot/init.h: Removed.
9919 * include/grub/i386/multiboot/init.h: Likewise.
9920 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
9921 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
9922 * include/grub/i386/pc/int.h: New file.
9923 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
9924 (grub_pxe_scan): Removed.
9925 (grub_pxe_call): Update prototype.
9926 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
9928 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
9929 * include/grub/i386/qemu/init.h: Removed.
9930 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
9932 (grub_halt): Likewise.
9933 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
9934 (grub_reboot): Likewise.
9935 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
9936 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
9937 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
9939 2010-08-30 Robert Millan <rmh@gnu.org>
9941 * NEWS: Document addition of ZFS support in `grub-install' and
9944 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
9946 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
9949 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9951 Remove leftover embedding of font objects.
9953 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
9954 * util/grub-install.in (font): Removed.
9955 * util/grub-mkimage.c (generate_image): Remove font support. All users
9958 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9960 Remove leftover embedding of font objects.
9962 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
9963 * util/grub-install.in (font): Removed.
9964 * util/grub-mkimage.c (generate_image): Remove font support. All users
9967 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9969 * docs/grub.texi (Network): Fix reference to pxe_blksize.
9970 Reported by: Ian Turner
9972 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9974 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
9975 timeout to avoid indefinite boot stalling.
9977 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9979 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
9980 (grub_env_write_color_highlight): Likewise.
9982 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9984 * grub-core/normal/term.c (print_more): Return to normal and not
9985 to standard state after printing "---MORE---".
9987 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
9990 Mask out the bit 0x80 since it has other meaning that specifiing color.
9992 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9994 New relocator. Allows for more kernel support and more straightforward
9997 * Makefile.am (BOOTTARGET): New variable.
9999 (linux.init.x86_64): New target.
10000 (linux.init.i386): Likewise.
10001 (multiboot.elf): Likewise.
10002 (kfreebsd.elf): Likewise.
10003 (kfreebsd.aout): Likewise.
10004 (pc-chainloader.elf): Likewise.
10005 (pc-chainloader.bin): Likewise.
10006 (ntldr.elf): Likewise.
10007 (ntldr.bin): Likewise.
10008 (multiboot2.elf): Likewise.
10009 (kfreebsd.init.x86_64): Likewise.
10010 (kfreebsd.init.i386): Likewise.
10011 (knetbsd.init.i386): Likewise.
10012 (kopenbsd.init.i386): Likewise.
10013 (knetbsd.init.x86_64): Likewise.
10014 (kopenbsd.init.x86_64): Likewise.
10015 (linux-initramfs.i386): Likewise.
10016 (linux-initramfs.x86_64): Likewise.
10017 (kfreebsd-mfsroot.i386.img): Likewise.
10018 (knetbsd.image.i386): Likewise.
10019 (kopenbsd.image.i386): Likewise.
10020 (kopenbsd.image.x86_64): Likewise.
10021 (knetbsd.miniroot-image.i386.img): Likewise.
10022 (kfreebsd-mfsroot.x86_64.img): Likewise.
10023 (knetbsd.image.x86_64): Likewise.
10024 (knetbsd.miniroot-image.x86_64.img): Likewise.
10025 (kfreebsd-mfsroot.i386.gz): Likewise.
10026 (bootcheck-kfreebsd-i386): Likewise.
10027 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10028 (bootcheck-kfreebsd-x86_64): Likewise.
10029 (knetbsd.miniroot-image.i386.gz): Likewise.
10030 (bootcheck-knetbsd-i386): Likewise.
10031 (bootcheck-kopenbsd-i386): Likewise.
10032 (bootcheck-kopenbsd-x86_64): Likewise.
10033 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10034 (bootcheck-knetbsd-x86_64): Likewise.
10035 (bootcheck-linux-i386): Likewise.
10036 (bootcheck-linux-x86_64): Likewise.
10037 (bootcheck-linux16-i386): Likewise.
10038 (bootcheck-linux16-x86_64): Likewise.
10039 (bootcheck-multiboot): Likewise.
10040 (bootcheck-multiboot2): Likewise.
10041 (bootcheck-kfreebsd-aout): Likewise.
10042 (bootcheck-pc-chainloader): Likewise.
10043 (bootcheck-ntldr): Likewise.
10044 (CLEANFILES): Add new targets.
10045 (BOOTCHECKS): New variable.
10046 (.PHONY): Add bootchecks.
10047 (SUCCESSFUL_BOOT_STRING): New variable.
10048 (BOOTCHECK_TIMEOUT): Likewise.
10049 (bootcheck): New target
10050 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10051 * configure.ac: Correct efiemu excuse.
10052 * docs/grub.texi (Supported kernels): New chapter.
10053 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10054 include/grub/mm_private.h. Simplify inclusion of
10055 include/grub/boot.h, include/grub/loader.h
10056 and include/grub/msdos_partition.h
10057 (KERNEL_HEADER_FILES) [i386_coreboot]:
10058 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10059 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10060 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10061 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10062 include/grub/machine/loader.h.
10063 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10064 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10066 (pci.mod): Enable on i386-multiboot.
10067 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10068 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10070 (relocator.mod): Rewritten.
10071 (aout.mod): Enable on all x86.
10072 (bsd.mod): Likewise.
10073 (ntldr.mod): New module.
10074 (linux.mod): Use loader/i386/linux.c on all x86.
10075 (xnu.mod): Enable on all x86.
10076 (vga_text.mod): disable on EFI and QEMU.
10077 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10078 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10079 * grub-core/efiemu/loadcore.c: Likewise.
10080 * grub-core/efiemu/main.c: Likewise.
10081 (grub_efiemu_exit_boot_services): Removed.
10082 (grub_efiemu_finish_boot_services): Likewise.
10083 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10085 * grub-core/efiemu/i386/nocfgtables.c: New file.
10086 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10087 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10088 (grub_efi_finish_boot_services): Moved from here ...
10089 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10090 Fille finish memory map and related data.
10091 (finish_mmap_buf): New variable.
10092 (grub_efi_uintn_t finish_mmap_size): Likewise.
10093 (grub_efi_uintn_t finish_key): Likewise.
10094 (grub_efi_uintn_t finish_desc_size): Likewise.
10095 (grub_efi_uint32_t finish_desc_version): Likewise.
10096 (grub_efi_is_finished): Likewise.
10097 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10099 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10100 (grub_elf64_phdr_iterate): Likewise.
10101 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10102 (grub_os_area_size): Likewise.
10103 (grub_machine_init): Don't reserve os area.
10104 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10105 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10106 * grub-core/kern/i386/loader.S: Removed.
10107 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10108 (grub_os_area_size): Likewise.
10109 (grub_machine_init): Don't reserve os area.
10110 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10111 Don't call grub_dl_unload_all.
10112 Don't include loader.S.
10113 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10114 Declare the memory after _end as available.
10115 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10116 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10117 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10118 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10119 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10120 * include/grub/mm_private.h (grub_mm_header): ... here.
10121 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10122 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10123 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10124 (grub_mm_region): ..here. Removed addr. Added pre_size.
10126 * grub-core/kern/mm.c (base): Renamed to ...
10127 (grub_mm_base): ... this. Made global.
10128 (grub_real_malloc): Alloc from end of region.
10129 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10130 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10131 * grub-core/kern/powerpc/cache_flush.S: ... here.
10132 * grub-core/lib/efi/relocator.c: New file.
10133 * grub-core/lib/i386/relocator.c: Rewritten.
10134 * grub-core/lib/i386/relocator16.S: New file.
10135 * grub-core/lib/i386/relocator32.S: Likewise.
10136 * grub-core/lib/i386/relocator64.S: Likewise.
10137 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10138 * grub-core/lib/i386/relocator_common.S: New file.
10139 * grub-core/lib/ieee1275/relocator.c: Likewise.
10140 * grub-core/lib/mips/relocator.c: Rewritten.
10141 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10142 stylistic adjustments.
10143 * grub-core/lib/powerpc/relocator.c: New file.
10144 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10145 * grub-core/lib/relocator.c: Rewritten.
10146 * grub-core/lib/x86_64/relocator_asm.S: New file.
10147 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10148 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10149 (bsd_tag): New struct.
10150 (tags): New variable.
10151 (tags_last): Likewise.
10152 (netbsd_module): New struct.
10153 (netbsd_mods): New variable.
10154 (netbsd_mods_last): Likewise.
10155 (openbsd_opts): New parameter "serial".
10156 (OPENBSD_SERIAL_ARG): New definition.
10157 (netbsd_opts): New parameter "serial".
10158 (NETBSD_SERIAL_ARG): New definition.
10159 (grub_freebsd_add_meta): Reorganised into ...
10160 (grub_bsd_add_meta): ...this. All users updated.
10161 (grub_freebsd_add_mmap): Reorganised into ...
10162 (generate_e820_mmap): ...this...
10163 (grub_bsd_add_mmap): ...and this. All users updated.
10164 (grub_freebsd_list_modules): Use tags.
10165 (grub_netbsd_add_meta_module): New function.
10166 (grub_netbsd_list_modules): Likewise.
10167 (grub_freebsd_boot): Use relocator and finish EFI.
10168 (grub_openbsd_boot): Likewise.
10169 (grub_netbsd_setup_video): New function.
10170 (grub_netbsd_add_modules): Likewise.
10171 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10173 (grub_bsd_unload): Unload tags.
10174 (grub_bsd_load_aout): Use relocator.
10175 (grub_bsd_elf32_size_hook): New function.
10176 (grub_bsd_elf32_hook): Use relocator.
10177 (grub_bsd_elf64_size_hook): New function.
10178 (grub_bsd_elf64_hook): Use relocator.
10179 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10180 (grub_bsd_load): Zero-out openbsd_ramdisk.
10181 (grub_bsd_load): Use relocator.
10182 (grub_cmd_openbsd): Support serial.
10183 (grub_cmd_netbsd): Support modules.
10184 (grub_cmd_freebsd_module): Use relocator.
10185 (grub_netbsd_module_load): New function.
10186 (grub_cmd_netbsd_module): Likewise.
10187 (grub_cmd_openbsd_ramdisk): Likewise.
10188 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10190 (GRUB_MOD_FINI): Unregister new commands.
10191 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10192 (grub_freebsd_load_elfmodule_obj): Use relocator.
10193 (grub_freebsd_load_elfmodule): Likewise.
10194 (grub_freebsd_load_elf_meta): Likewise.
10195 (grub_netbsd_load_elf_meta): New function.
10196 (grub_openbsd_find_ramdisk): Likewise.
10197 * grub-core/loader/i386/bsd_helper.S: Removed.
10198 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10199 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10200 * grub-core/loader/i386/efi/linux.c: Likewise.
10201 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10202 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10203 (DEFAULT_VIDEO_MODE): Likewise.
10204 (real_mode_target): New variable.
10205 (prot_mode_target): Likewise.
10206 (initrd_mem_target): Likewise.
10207 (relocator): Likewise.
10208 (efi_mmap_buf): Likewise.
10209 (efi_mmap_size): Likewise.
10210 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10211 (free_pages): Use relocator.
10212 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10213 (grub_linux_setup_video): Return error.
10214 (grub_linux_trampoline_start): Removed.
10215 (grub_linux_trampoline_end): Likewise.
10216 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10217 andd video parameters depending on firmware.
10218 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10219 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10220 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10221 (grub_cmd_initrd): Use relocator.
10222 * grub-core/loader/i386/linux_trampoline.S: Removed.
10223 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10224 (elf_sec_entsize): Likewise.
10225 (elf_sec_shstrndx): Likewise.
10226 (elf_sections): Likewise.
10227 (grub_multiboot_load): Use relocator.
10228 (grub_multiboot_get_mbi_size): Account for sections.
10229 (grub_multiboot_make_mbi): Use relocator and support sections.
10230 (grub_multiboot_add_elfsyms): New function.
10231 (grub_multiboot_free_mbi): Free sections.
10232 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
10233 (grub_linux_real_target): Likewise.
10234 (grub_linux_real_chunk): Likewise.
10235 (grub_linux16_prot_size): Likewise.
10236 (grub_linux16_boot): Use relocator.
10237 (grub_linux_unload): Unload relocator.
10238 (grub_cmd_linux): Use relocator.
10239 (grub_cmd_initrd): Likewise.
10240 * grub-core/loader/i386/pc/ntldr.c: New file.
10241 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
10242 Don't try to guess CPU frequency.
10243 (grub_xnu_set_video): Stretch bitmap.
10244 (grub_xnu_boot): Use relocator.
10245 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
10246 (grub_linux_unload): Free relocator.
10247 (grub_linux_load32): Use relocator.
10248 (grub_linux_load64): Likewise.
10249 (grub_cmd_initrd): Likewise.
10250 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
10251 (grub_multiboot_unload): Unload relocator.
10252 (grub_cmd_multiboot): Use relocator.
10253 (grub_cmd_module): Likewise.
10254 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
10255 Use relocator and support sections.
10256 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
10257 (elf_sec_entsize): Likewise.
10258 (elf_sec_shstrndx): Likewise.
10259 (elf_sections): Likewise.
10260 (grub_multiboot_load): Use relocator.
10261 (grub_multiboot_get_mbi_size): Account for sections.
10262 (grub_multiboot_make_mbi): Use relocator and support sections.
10263 (grub_multiboot_add_elfsyms): New function.
10264 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
10265 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
10266 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
10267 Prototype changed. All users updated.
10268 (grub_xnu_align_heap): Simplified.
10269 (grub_xnu_writetree_toheap): Likewise.
10270 (grub_xnu_unload): Unload relocator.
10271 (grub_cmd_xnu_kernel): Use relocator.
10272 (grub_cmd_xnu_kernel64): Likewise.
10273 (grub_xnu_register_memory): Simplified.
10274 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
10275 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
10277 (grub_console_checkkey): Likewise.
10278 (grub_console_getkey): Likewise.
10279 (grub_console_getwh): Likewise.
10280 (grub_console_getxy): Likewise.
10281 (grub_console_gotoxy): Likewise.
10282 (grub_console_cls): Likewise.
10283 (grub_console_setcolorstate): Likewise.
10284 (grub_console_setcursor): Likewise.
10285 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
10286 * grub-core/tests/boot/kbsd.init-i386.S: New file.
10287 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
10288 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
10289 * grub-core/tests/boot/kernel-8086.S: Likewise.
10290 * grub-core/tests/boot/kernel-i386.S: Likewise.
10291 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
10292 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
10293 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
10294 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
10295 * grub-core/tests/boot/knetbsd.cfg: Likewise.
10296 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
10297 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
10298 * grub-core/tests/boot/linux.cfg: Likewise.
10299 * grub-core/tests/boot/linux.init-i386.S: Likewise.
10300 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
10301 * grub-core/tests/boot/linux16.cfg: Likewise.
10302 * grub-core/tests/boot/multiboot.cfg: Likewise.
10303 * grub-core/tests/boot/multiboot2.cfg: Likewise.
10304 * grub-core/tests/boot/ntldr.cfg: Likewise.
10305 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
10306 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
10307 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
10309 * include/grub/dl.h (grub_dl_unload_all): Removed.
10310 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
10311 (grub_efi_finish_boot_services): Change prototype.
10312 (grub_efi_is_finished): New variable.
10313 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
10315 (grub_efiemu_finish_boot_services): Removed.
10316 (grub_machine_efiemu_init_tables): New prototype.
10317 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
10318 (grub_elf64_phdr_iterate): Likewise.
10319 * include/grub/i386/bsd.h: Include relocator.h.
10320 (freebsd_tag_header): New struct.
10321 (grub_openbsd_bios_mmap): Removed.
10322 (grub_unix_real_boot): Removed.
10323 (grub_freebsd_load_elfmodule32): Changed prototype.
10324 (grub_freebsd_load_elfmodule_obj64): Likewise.
10325 (grub_freebsd_load_elf_meta32): Likewise.
10326 (grub_freebsd_load_elf_meta64): Likewise.
10327 (grub_freebsd_add_meta): Removed.
10328 (grub_netbsd_load_elf_meta32): New prototype.
10329 (grub_netbsd_load_elf_meta64): Likewise.
10330 (grub_bsd_add_meta): Likewise.
10331 (grub_openbsd_ramdisk_descriptor): New struct.
10332 (grub_openbsd_find_ramdisk32): New prototype.
10333 (grub_openbsd_find_ramdisk64): Likewise.
10334 * include/grub/i386/coreboot/loader.h: Removed.
10335 * include/grub/i386/efi/loader.h: Likewise.
10336 * include/grub/i386/ieee1275/loader.h: Likewise.
10337 * include/grub/i386/linux.h (linux_kernel_header): Change void *
10339 * include/grub/i386/loader.h: Removed.
10340 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
10342 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
10343 (grub_phys_addr_t): New type.
10344 (grub_vtop): New inline function.
10345 (grub_map_memory): Likewise.
10346 (grub_unmap_memory): Likewise.
10347 * include/grub/i386/multiboot/loader.h: Removed.
10348 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
10349 (NETBSD_BTINFO_CONSOLE): New definition.
10350 (NETBSD_BTINFO_SYMTAB): Likewise.
10351 (NETBSD_BTINFO_MODULES): Likewise.
10352 (NETBSD_BTINFO_FRAMEBUF): Likewise.
10353 (grub_netbsd_bootinfo): New struct.
10354 (grub_netbsd_btinfo_common): Use explicit bitsize.
10355 (grub_netbsd_btinfo_mmap_entry): Removed.
10356 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
10357 (grub_netbsd_btinfo_bootdisk): New struct.
10358 (grub_netbsd_btinfo_symtab): Likewise.
10359 (grub_netbsd_btinfo_serial): Likewise.
10360 (grub_netbsd_btinfo_modules): Likewise.
10361 (grub_netbsd_btinfo_framebuf): Likewise.
10362 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
10363 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
10365 (grub_openbsd_bootargs): Use explicit bitsize.
10366 (grub_openbsd_bootarg_console): New struct.
10367 (GRUB_OPENBSD_COM_MAJOR): New definition.
10368 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
10369 * include/grub/i386/pc/efiemu.h: Removed.
10370 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
10371 * include/grub/i386/qemu/loader.h: Removed.
10372 * include/grub/i386/relocator.h: Rewritten.
10373 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
10374 * include/grub/mips/memory.h: New file.
10375 * include/grub/mips/multiboot.h: Rewritten.
10376 * include/grub/mips/relocator.h: Rewritten.
10377 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
10378 (grub_vtop): New function.
10379 (grub_map_memory): Likewise.
10380 (grub_unmap_memory): Likewise.
10381 * include/grub/misc.h (ALIGN_DOWN): New definition.
10382 * include/grub/mm.h (grub_mm_check_real): New proto.
10383 (GRUB_MM_CHECK): New definition.
10384 * include/grub/mm_private.h: New file.
10385 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
10386 (grub_multiboot_get_mbi_size): Removed.
10387 (grub_multiboot_make_mbi): Change prottype.
10388 (grub_multiboot_set_accepts_video): New proto.
10389 (grub_multiboot_add_elfsyms): Likewise.
10390 (grub_multiboot_payload_eip): New variable.
10391 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
10393 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
10395 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
10396 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
10397 * include/grub/powerpc/ieee1275/loader.h: Removed.
10398 * include/grub/powerpc/memory.h: New file.
10399 * include/grub/powerpc/relocator.h: Likewise.
10400 * include/grub/relocator.h: Likewise.
10401 * include/grub/relocator_private.h: Likewise.
10402 * include/grub/sparc64/ieee1275/loader.h: Removed.
10403 * include/grub/x86_64/memory.h: New file.
10404 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
10405 (grub_xnu_heap_malloc): Likewise.
10406 (grub_xnu_heap_real_start): Removed.
10407 (grub_xnu_heap_start): Likewise.
10408 (grub_xnu_relocator): New variable.
10409 (grub_xnu_heap_target_start): Likewise.
10410 * tests/util/grub-shell.in: Support non-pc.
10411 * util/grub-mkimage.c (image_targets): Fix multiboot target.
10413 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10415 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
10417 (grub_bidi_logical_to_visual): Check that malloc succeded.
10418 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
10420 (grub_xputs_normal): Likewise.
10422 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10424 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
10427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10429 * grub-core/efiemu/runtime/efiemu.sh: Removed.
10431 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10433 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
10435 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10437 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
10440 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
10442 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
10444 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10446 * grub-core/normal/term.c (print_more): Fix a memory leak.
10447 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
10448 (grub_xputs_normal): Likewise.
10450 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10452 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
10453 the begining of the string
10455 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10457 * grub-core/script/script.c (grub_script_parse): Free parsed on
10460 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10462 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
10465 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10467 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
10470 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10472 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
10473 (scroll_up): Fix a memory leak.
10475 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10477 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
10480 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
10482 Handle USB pendrives exposed as floppies.
10484 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
10486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10487 Check for partitions on all devices.
10489 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10491 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
10492 (readkey): Likewise.
10494 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10496 Multiple variable names support to "export" command.
10498 * normal/context.c (grub_cmd_export): "export" command supports
10499 multiple variable names.
10501 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
10503 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
10504 --target=drive output to Mach device name.
10506 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10508 New Automake based build system for GRUB.
10510 * ABOUT-NLS: New file.
10511 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
10512 in Makefile.util.def file.
10513 * Makefile.util.def: New file. Autogen build definitions file for
10515 * conf/Makefile.common: New file. Common variables for GRUB host
10516 utils and target modules.
10517 * conf/Makefile.extra-dist: New file. Extra files for make dist.
10518 * docs/Makefile.am: New file. Automake file for docs.
10519 * gentpl.py: New file. Python script to generate Autogen
10521 * grub-core/Makefile.am: New file. GRUB target modules' rules
10522 that doesn't fit in Makefile.core.def file.
10523 * grub-core/Makefile.core.def: New file. Autogen build
10524 definitions file for GRUB target modules.
10525 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
10526 specific setjmp.S file.
10527 * po/Makefile.am: New file.
10529 * .bzrignore: New ignores.
10530 * INSTALL: New requirements, without Ruby.
10531 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
10532 * autogen.sh: Updated to invoke autogen as necessary.
10533 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
10534 and defines for Automake conditionals.
10535 * geninit.sh: Refactoring.
10537 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
10539 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
10542 * include/grub/test.h: Fix functional test modules' naming.
10543 * grub-core/tests/example_functional_test.c: Fix test module name.
10545 * util/misc.c: Hosted versions' of grub functions for libgrub.a
10546 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
10547 * util/grub-editenv.c: Likewise.
10548 * util/grub-fstest.c: Likewise.
10549 * util/grub-mkdevicemap.c: Likewise.
10550 * util/grub-mkfont.c: Likewise.
10551 * util/grub-mkimage.c: Likewise.
10552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10553 * util/grub-probe.c: Likewise.
10554 * util/grub-script-check.c: Likewise.
10555 * util/i386/pc/grub-setup.c: Likewise.
10556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10558 * tests/util/grub-shell.in: Fix override directory path.
10559 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
10560 * util/import_gcry.py: Create Makefile.gcry.def file instead.
10562 * util/lvm.c: Update #includes.
10563 * util/raid.c: Likewise.
10564 * util/resolve.c: Likewise.
10565 * grub-core/bus/emu/pci.c: Likewise.
10566 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
10567 * grub-core/lib/posix_wrap/string.h: Likewise.
10568 * grub-core/kern/emu/main.c: Likewise.
10570 * grub-core/gensymlist.sh: New file. Script for generating kernel
10572 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
10574 * grub-core/gentrigtables.c: Fix unused variable warnings.
10576 * Makefile.in: Removed.
10577 * conf/any-emu.rmk: Removed.
10578 * conf/common.rmk: Removed.
10579 * conf/i386-coreboot.rmk: Removed.
10580 * conf/i386-efi.rmk: Removed.
10581 * conf/i386-ieee1275.rmk: Removed.
10582 * conf/i386-multiboot.rmk: Removed.
10583 * conf/i386-pc.rmk: Removed.
10584 * conf/i386-qemu.rmk: Removed.
10585 * conf/i386.rmk: Removed.
10586 * conf/mips-yeeloong.rmk: Removed.
10587 * conf/mips.rmk: Removed.
10588 * conf/powerpc-ieee1275.rmk: Removed.
10589 * conf/sparc64-ieee1275.rmk: Removed.
10590 * conf/tests.rmk: Removed.
10591 * conf/x86-efi.rmk: Removed.
10592 * conf/x86_64-efi.rmk: Removed.
10593 * gendistlist.sh: Removed.
10594 * geninitheader.sh: Removed.
10595 * genkernsyms.sh.in: Removed.
10596 * genmk.rb: Removed.
10597 * gensymlist.sh.in: Removed.
10598 * mkinstalldirs: Removed.
10600 * grub-core/boot: ... to here.
10602 * grub-core/bus: ... to here.
10603 * commands: Moved ...
10604 * grub-core/commands: ... to here.
10606 * grub-core/disk: ... to here.
10607 * efiemu: Moved ...
10608 * grub-core/efiemu: ... to here.
10610 * grub-core/font: ... to here.
10612 * grub-core/fs: ... to here.
10613 * gencmdlist.sh: Moved ...
10614 * grub-core/gencmdlist.sh: ... to here.
10615 * genemuinit.sh: Moved ...
10616 * grub-core/genemuinit.sh: ... to here.
10617 * genemuinitheader.sh: Moved ...
10618 * grub-core/genemuinitheader.sh: ... to here.
10619 * genfslist.sh: Moved ...
10620 * grub-core/genfslist.sh: ... to here.
10621 * genhandlerlist.sh: Moved ...
10622 * grub-core/genhandlerlist.sh: ... to here.
10623 * genmoddep.awk: Moved ...
10624 * grub-core/genmoddep.awk: ... to here.
10625 * genmodsrc.sh: Moved ...
10626 * grub-core/genmodsrc.sh: ... to here.
10627 * genpartmaplist.sh: Moved ...
10628 * grub-core/genpartmaplist.sh: ... to here.
10629 * genparttoollist.sh: Moved ...
10630 * grub-core/genparttoollist.sh: ... to here.
10631 * genterminallist.sh: Moved ...
10632 * grub-core/genterminallist.sh: ... to here.
10633 * gentrigtables.c: Moved ...
10634 * grub-core/gentrigtables.c: ... to here.
10635 * genvideolist.sh: Moved ...
10636 * grub-core/genvideolist.sh: ... to here.
10637 * gettext: Moved ...
10638 * grub-core/gettext: ... to here.
10639 * gfxmenu: Moved ...
10640 * grub-core/gfxmenu: ... to here.
10641 * gnulib: Moved ...
10642 * grub-core/gnulib: ... to here.
10644 * grub-core/hello: ... to here.
10646 * grub-core/hook: ... to here.
10648 * grub-core/io: ... to here.
10650 * grub-core/kern: ... to here.
10652 * grub-core/lib: ... to here.
10653 * loader: Moved ...
10654 * grub-core/loader: ... to here.
10656 * grub-core/mmap: ... to here.
10657 * normal: Moved ...
10658 * grub-core/normal: ... to here.
10659 * partmap: Moved ...
10660 * grub-core/partmap: ... to here.
10661 * parttool: Moved ...
10662 * grub-core/parttool: ... to here.
10663 * script: Moved ...
10664 * grub-core/script: ... to here.
10666 * grub-core/term: ... to here
10667 * tests/example_functional_test.c: Moved ...
10668 * grub-core/tests/example_functional_test.c: ... to here.
10669 * tests/lib/functional_test.c: Moved ...
10670 * grub-core/tests/lib/functional_test.c: ... to here.
10671 * tests/lib/test.c: Moved ...
10672 * grub-core/tests/lib/test.c: ... to here.
10674 * grub-core/video: ... to here.
10676 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10678 Replace --enable-grub-emu-modules with grub-emu-lite.
10680 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
10683 * include/grub/emu/misc.h (grub_emu_init): New prototype.
10684 * kern/emu/full.c: New file. For grub-emu specific initialization.
10685 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
10686 * kern/emu/main.c: Call initialization function grub_emu_init.
10688 * Makefile.in: Include grub-emu-lite in install.
10689 * commands/parttool.c: Use grub_no_autoload to differentiate
10690 between grub-emu and grub-emu-lite.
10691 * include/grub/misc.h: New variable grub_no_autoload.
10693 * conf/any-emu.rmk: New rules for grub-emu-lite.
10694 * configure.ac: Remove --enable-grub-emu-modules.
10695 * genmk.rb: Cleanup unnecessary rules.
10696 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
10698 * normal/main.c: Don't load list files on grub-emu-lite.
10699 * util/misc.c (grub_arch_sync_caches): Removed.
10701 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
10703 * kern/mips/startup.S (grub_prefix): Update comment to refer to
10704 grub-mkimage rather than grub-mkelfimage.
10705 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10707 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
10709 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
10710 a key after CapsLock or NumLock. It's just a qemu bug.
10712 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10714 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
10715 needed by libusb wrapper.
10717 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10719 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
10721 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10723 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
10724 --nounzip is passed.
10726 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
10728 USB hotunplugging and USB serial support.
10730 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
10731 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
10732 (grub_uhci_transfer): Respect timeout and set *actual.
10733 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
10734 non-standard length.
10735 (grub_usb_device_attach): Autoload modules.
10736 (GRUB_MOD_INIT): Set grub_term_poll_usb.
10737 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
10738 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
10740 (grub_usb_add_hub): Fill nports and children.
10741 (attach_root_port): Receive hub instead of controller.
10742 All users updated. Fill hub->devices.
10743 (grub_usb_root_hub): Allocate hub->devices.
10744 (detach_device): New function.
10745 (poll_nonroot_hub): Fill children and detach devices.
10746 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
10747 actual arguments. All users updated.
10748 (grub_usb_bulk_read_extended): New function.
10749 * bus/usb/serial/common.c: New file.
10750 * bus/usb/serial/ftdi.c: Likewise.
10751 * bus/usb/serial/pl2303.c: Likewise.
10752 * commands/terminal.c (handle_command): Support wildcard.
10753 * commands/usbtest.c: Output "Unknown" instead of empty string.
10754 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
10755 (usbserial_common_mod_SOURCES): New variable.
10756 (usbserial_common_mod_CFLAGS): Likewise.
10757 (usbserial_common_mod_LDFLAGS): Likewise.
10758 (pkglib_MODULES): Add usbserial_pl2303.mod.
10759 (usbserial_pl2303_mod_SOURCES): New variable.
10760 (usbserial_pl2303_mod_CFLAGS): Likewise.
10761 (usbserial_pl2303_mod_LDFLAGS): Likewise.
10762 (pkglib_MODULES): Add usbserial_ftdi.mod.
10763 (usbserial_ftdi_mod_SOURCES): New variable.
10764 (usbserial_ftdi_mod_CFLAGS): Likewise.
10765 (usbserial_ftdi_mod_LDFLAGS): Likewise.
10766 (pkglib_MODULES): Add serial.mod.
10767 (serial_mod_SOURCES): New variable.
10768 (serial_mod_CFLAGS): Likewise.
10769 (serial_mod_LDFLAGS): Likewise.
10770 * conf/i386-pc.rmk: Likewise.
10771 * conf/mips-yeeloong.rmk: Likewise.
10772 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
10773 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10774 * disk/usbms.c (first_available_slot): New variable.
10775 (grub_usbms_attach): Don't reuse free slots due to potential cache
10777 * include/grub/serial.h: Moved to ..
10778 * include/grub/ns8250.h: ...this.
10779 * include/grub/serial.h: New file.
10780 * include/grub/term.h (grub_term_poll_usb): New variable.
10781 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
10782 readkey. All users updated.
10783 (grub_terminfo_output_state): Pass term to put.
10784 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
10785 (grub_usb_controller_dev): Add timeout and actual arguments to
10786 transfer. All users updated.
10787 (grub_usb_interface): New field detach_data.
10788 (grub_usb_device): New fields children and nports.
10789 (grub_usb_ep_type_t): New type.
10790 (grub_usb_get_ep_type): New function.
10791 (grub_usb_bulk_read_extended): Likewise.
10792 * include/grub/usbdesc.h (grub_usb_desc): New type.
10793 * include/grub/usbserial.h: New file.
10794 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
10795 * kern/term.c (grub_term_poll_usb): New variable.
10796 (grub_getkey): Call grub_term_poll_usb if set.
10797 (grub_checkkey): Likewise.
10798 (grub_getkeystatus): Likewise.
10799 * term/serial.c: Moved controller-specific parts to ...
10800 * term/ns8250.c: ... here.
10801 * term/serial.c: Mostly rewritten.
10802 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
10805 2010-08-20 Robert Millan <rmh@gnu.org>
10807 Make kFreeBSD code more generic to support ext2fs as root, ufs as
10808 a separate module and maybe other interesting combinations.
10810 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
10811 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
10812 (kfreebsd_entry): Add generic filesystem module load routine.
10813 Map GRUB `ext2' to kFreeBSD `ext2fs'.
10815 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10817 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
10818 "numcenter" (I misunderstood the purpose of this entry).
10819 * docs/grub.texi (sendkey): Likewise.
10821 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10823 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
10824 status flag options; simply omitting the option is equivalent and
10825 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
10826 (keysym_table): Rename "num5numlock" to "numlock".
10827 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
10828 can uniformly say that only the last of multiple `sendkey'
10829 invocations has any effect.
10830 * docs/grub.texi (sendkey): New section.
10832 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
10834 * commands/i386/pc/sendkey.c (options): Fix three typos.
10836 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10838 Implement sendkey support.
10840 * commands/i386/pc/sendkey.c: New file.
10841 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
10842 (sendkey_mod_SOURCES): New variable.
10843 (sendkey_mod_CFLAGS): Likewise.
10844 (sendkey_mod_LDFLAGS): Likewise.
10846 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10848 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
10849 fix warnings from Autoconf.
10851 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10853 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
10854 to avoid false positives with some assemblers that output things
10855 like "someprefix_func" as part of their output.
10857 2010-08-15 Robert Millan <rmh@gnu.org>
10859 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
10861 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
10862 grub_get_libzfs_handle() errors.
10864 2010-08-14 Robert Millan <rmh@gnu.org>
10866 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
10867 filesystem is not ZFS.
10869 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10871 Fix for misspelled color names defaulting to black/black (bug
10872 reported by Doug Nazar)
10874 * include/grub/normal.h (grub_parse_color_name_pair): Add return
10875 status to prototype.
10876 * normal/color.c (grub_parse_color_name_pair): Return failure
10878 (grub_env_write_color_normal): Ignore bad color names.
10879 (grub_env_write_color_highlight): Likewise.
10880 * normal/main.c (GRUB_MOD_INIT): Set default color names.
10882 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10884 "shift" command support to GRUB script.
10886 * include/grub/script_sh.h (grub_script_shift): New prototype.
10887 * script/execute.c (grub_script_shift): New function.
10888 * script/main.c (grub_script_init): Register shift command.
10889 (grub_script_fini): Unregister shift command.
10890 * util/grub-script-check.c (grub_script_cmd_shift): New function.
10892 * tests/grub_script_shift.in: New testcase.
10893 * conf/tests.rmk: Rules for new testcase.
10895 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10897 "continue" command support to GRUB script.
10899 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
10900 (grub_script_break): Continue support.
10901 * script/main.c (grub_script_init): Register continue command.
10902 (grub_script_fini): Unregister continue command.
10904 * tests/grub_script_continue.in: New testcase.
10905 * conf/tests.rmk: Rules for new testcase.
10907 2010-08-12 BVK Chaitanya <bvk@dbook>
10909 "break" command support to GRUB script.
10911 * conf/common.rmk: Rule updates to grub-script-check.
10912 * include/grub/misc.h (grub_min): New function.
10913 * include/grub/script_sh.h (grub_script_init): New prototype.
10914 (grub_script_fini): New prototype.
10915 (grub_script_break): New prototype.
10916 * script/main.c (grub_script_init): New function.
10917 (grub_script_fini): New function.
10918 * script/execute.c (grub_script_break): New function.
10919 * normal/main.c: Calls to grub_script_{init,fini}.
10920 * util/grub-script-check.c (grub_script_break): New function.
10922 * tests/grub_script_break.in: New testcase.
10923 * conf/tests.rmk: Rules for new test case.
10925 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10927 Function parameters support to GRUB script.
10929 * script/yylex.l (VARIABLE): Regular expression update.
10930 * script/function.c (grub_script_function_call): Moved ...
10931 * script/execute.c (grub_script_function_call): ... to here.
10932 (grub_script_execute_arglist_to_argv): Removed.
10933 (grub_script_arglist_to_argv): New function.
10934 * script/argv.c: New file.
10935 (grub_script_argv_free): New function.
10936 (grub_script_argv_next): Likewise.
10937 (grub_script_argv_append): Likewise.
10938 (grub_script_argv_split_append): Likewise.
10939 * include/grub/script_sh.h (grub_script_argv): New struct.
10940 (grub_script_argv_free): New function.
10941 (grub_script_argv_next): Likewise.
10942 (grub_script_argv_append): Likewise.
10943 (grub_script_argv_split_append): Likewise.
10945 * conf/common.rmk (normal.mod): New source script/argv.c.
10947 * tests/grub_script_echo1.in: More tests.
10948 * tests/grub_script_vars1.in: Likewise.
10949 * tests/grub_script_functions.in: New test case.
10950 * conf/tests.rmk: Rules for new testcase.
10952 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10954 Remove grub_script_cmdblock struct.
10956 * include/grub/script_sh.h: Remove grub_script_cmdblock.
10957 * script/parser.y: Likewise.
10958 * script/execute.c: Rename cmdblock suffix to cmdlist.
10959 * script/script.c: Likewise.
10960 * util/grub-script-check.c: Likewise.
10962 2010-08-11 Yves Blusseau <blusseau@zetam.org>
10964 * .bzrignore: add grub-macho2img
10966 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10968 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
10970 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10972 Remove the dump of sm712 initialisation sequence.
10974 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
10975 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
10976 (GRUB_VGA_IO_MISC_WRITE): Likewise.
10977 (GRUB_VGA_CR_*): Added many registers.
10978 (GRUB_VGA_SR_*): Likewise.
10979 (GRUB_VGA_GR_*): Likewise.
10980 (grub_vga_write_arx): New function.
10981 (grub_video_hw_config): New struct.
10982 (grub_vga_set_geometry): New function.
10983 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
10984 GRUB_PCI_CLASS_SUBCLASS_VGA.
10985 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
10986 * video/sm712.c (grub_sm712_write_reg): New function
10987 (grub_sm712_read_reg): Likewise.
10988 (grub_sm712_sr_write): Likewise.
10989 (grub_sm712_gr_write): Likewise.
10990 (grub_sm712_cr_write): Likewise.
10991 (grub_sm712_write_arx): Likewise.
10992 (grub_sm712_cr_shadow_write): Likewise.
10993 (grub_sm712_write_dda_lookup): Likewise.
10994 (grub_video_sm712_setup): Initialise the video rather then
10995 blindly replay the dump.
10996 (main) [TEST]: Add a routine to be able to compile as standalone for
10998 * video/sm712_init.c (sm712_init): Removed.
10999 (sm712_sr_seq1): New array.
11000 (sm712_sr_seq2): Likewise.
11002 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11004 * include/grub/vga.h: Add missing grub/pci.h include.
11006 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11008 * util/grub-macho2img.c (main): fix typo
11010 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11012 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11013 (grub_vga_gr_read): Likewise.
11014 (grub_vga_cr_write): Likewise.
11015 (grub_vga_cr_read): Likewise.
11016 (grub_vga_sr_write): Likewise.
11017 (grub_vga_sr_read): Likewise.
11018 (grub_vga_palette_read): Likewise.
11019 (grub_vga_palette_write): Likewise.
11020 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11021 (grub_sm712_sr_read): New function.
11022 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11023 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11025 2010-08-09 Robert Millan <rmh@gnu.org>
11027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11028 out unused variables on non-ZFS build.
11030 2010-08-08 Robert Millan <rmh@gnu.org>
11032 Fix path generation for sub-filesystems in ZFS.
11034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11037 2010-08-08 Robert Millan <rmh@gnu.org>
11039 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11041 2010-08-08 Robert Millan <rmh@gnu.org>
11043 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11044 exist, issue a proper error message (rely on `ls' for translated
11047 2010-08-08 Robert Millan <rmh@gnu.org>
11049 Fix grub-probe invocation.
11051 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11053 2010-08-04 Robert Millan <rmh@gnu.org>
11055 * configure.ac: Remove checks for getfsstat() and getmntany().
11056 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11057 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11058 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11059 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11060 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11062 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11063 via find_mount_point_from_dir() and getfsstat() / getmntany().
11065 2010-08-04 Robert Millan <rmh@gnu.org>
11067 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11068 (grub_find_zpool_from_mount_point): Merge into ...
11069 (grub_find_zpool_from_dir): ... this.
11070 * kern/emu/misc.c: Likewise.
11073 (grub_make_system_path_relative_to_its_root): Replace
11074 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11075 with grub_find_zpool_from_dir().
11076 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11078 2010-08-04 Robert Millan <rmh@gnu.org>
11080 Support OpenSolaris in ZFS device resolution.
11082 * configure.ac: Check for getmntany().
11083 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11084 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11087 2010-08-03 Robert Millan <rmh@gnu.org>
11089 Fix grub-emu build.
11091 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11092 * include/grub/emu/misc.h: ... here.
11094 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11095 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11097 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11098 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11099 (grub_get_libzfs_handle): Move to ...
11100 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11101 (grub_get_libzfs_handle): ... here.
11103 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11105 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11106 as command name case.
11108 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11110 * disk/raid.c (insert_array): Select unique numbers for named arrays
11111 as well, for use as keys in the disk cache.
11113 2010-08-01 Robert Millan <rmh@gnu.org>
11115 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11116 kFreeBSD device name, except on ZFS where the filesystem label is
11118 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11119 `/boot/zfs/zpool.cache'.
11120 Set mountfrom kernel variable using ${kfreebsd_device}.
11122 2010-08-01 Robert Millan <rmh@gnu.org>
11124 Make it even harder to use uninitialized `libzfs_handle' (and
11125 make the interface a bit simpler).
11127 * include/grub/util/misc.h (grub_util_init_libzfs)
11128 (libzfs_handle): Remove.
11129 (grub_get_libzfs_handle): New prototype.
11131 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11133 (grub_util_init_libzfs): Remove.
11134 (grub_get_libzfs_handle): New function.
11136 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11137 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11138 accessing `libzfs_handle' directly.
11140 2010-08-01 Robert Millan <rmh@gnu.org>
11142 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11143 (grub_find_zpool_from_mount_point): New function prototypes.
11145 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11146 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11148 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11149 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11150 `static' attribute.
11152 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11153 finding zpool from mount point into ...
11154 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11156 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11157 requested path is part of a ZFS pool, use
11158 grub_find_zpool_from_mount_point() to detect its filesystem name,
11159 and generate a path with `/fsname@path' syntax.
11161 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11163 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11164 (void) rather than () so that this is a proper prototype.
11166 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11168 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11170 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11172 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11173 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11177 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11179 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11181 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11183 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11185 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11186 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11187 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11188 disable gfxpayload.
11189 (Shell-like scripting): Add real content.
11190 (Serial terminal): Suggest `terminal_input serial; terminal_output
11191 serial' rather than putting the two commands on separate lines,
11192 since console input will be inoperative after the first command.
11193 (menuentry): Document --class, --users, and --hotkey options.
11194 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11195 Vladimir Serbinenko).
11197 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11198 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11200 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11202 2010-08-01 Robert Millan <rmh@gnu.org>
11204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11205 (grub_find_zpool_from_mount_point): New function prototypes.
11207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11212 `static' attribute.
11214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11215 finding zpool from mount point into ...
11216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11219 requested path is part of a ZFS pool, use
11220 grub_find_zpool_from_mount_point() to detect its filesystem name,
11221 and generate a path with `/fsname@path' syntax.
11223 2010-08-01 Robert Millan <rmh@gnu.org>
11225 Prevent accidental use of uninitialized libzfs_handle.
11227 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
11228 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
11229 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
11231 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11233 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
11234 util/grub.d/10_linux.in). Fixes Debian bug #591093.
11236 2010-08-01 Robert Millan <rmh@gnu.org>
11238 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11240 2010-07-31 Robert Millan <rmh@gnu.org>
11242 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11244 2010-07-31 Robert Millan <rmh@gnu.org>
11246 * kern/emu/misc.c: Add missing license header.
11248 2010-07-31 Robert Millan <rmh@gnu.org>
11250 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11252 * include/grub/util/libnvpair.h: Include `<config.h>'.
11253 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
11254 declaring libnvpair prototypes ourselves.
11255 * include/grub/util/libzfs.h: Include `<config.h>'.
11256 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
11257 declaring libzfs prototypes ourselves.
11259 (libzfs_handle): Moved to ...
11260 * include/grub/util/misc.h (libzfs_handle): ... here.
11261 Include `<grub/util/libzfs.h>'.
11263 2010-07-30 Robert Millan <rmh@gnu.org>
11265 * include/grub/emu/misc.h: Add missing license header.
11267 2010-07-30 Robert Millan <rmh@gnu.org>
11269 Enable `grub-probe -t device' resolution on ZFS.
11271 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
11272 * include/grub/util/libnvpair.h: New file.
11273 * include/grub/util/libzfs.h: New file.
11275 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
11276 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
11277 `<grub/util/libnvpair.h>'.
11278 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
11280 (find_mount_point_from_dir): New static function.
11281 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11283 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11284 find_root_device_from_libzfs() before ressorting to find_root_device().
11286 * include/grub/util/misc.h (grub_util_init_libzfs): New function
11288 * util/misc.c: Include `<grub/util/libzfs.h>'.
11289 (grub_util_init_libzfs): New function.
11290 [HAVE_LIBZFS] (libzfs_handle): New global variable.
11291 [HAVE_LIBZFS] (fini_libzfs): New static function.
11292 (grub_util_init_libzfs): New function.
11293 * util/grub-probe.c (main): Call grub_util_init_libzfs().
11295 2010-07-30 Robert Millan <rmh@gnu.org>
11297 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
11298 (xmalloc, xrealloc, xstrdup, xasprintf): Add
11299 `warn_unused_result' attribute.
11300 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
11301 (grub_xasprintf, grub_xvasprintf): Likewise.
11302 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
11304 2010-07-29 Robert Millan <rmh@gnu.org>
11306 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
11307 (probe): Handle `PRINT_FS_LABEL'.
11308 (main): Handle `-t fs_label'.
11310 2010-07-29 Robert Millan <rmh@gnu.org>
11312 * configure.ac: Remove grub-mkisofs checks.
11314 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
11316 * util/ieee1275/grub-install.in: Don't use empty grub_device.
11317 Reported by: Lennart Sorensen.
11319 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11321 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
11322 prior to terminal_input/terminal_output separation. It's been over 1.5
11323 years and those versions weren't widely deployed.
11325 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
11327 * disk/raid.c (insert_array): Don't count named arrays when looking
11328 for unused array numbers.
11329 Reported and tested by: Michael Guntsche.
11331 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11333 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
11334 implementation of this so that grub-emu links again, with a note
11335 that this should support hotplugging in the future.
11337 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11339 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11341 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11343 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
11345 (grub_loopback_close): Remove empty function.
11346 (grub_loopback_dev): Remove close method.
11348 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11350 Disable EFI cursor when the EFI console becomes inactive.
11352 * term/efi/console.c (grub_efi_console_init): New function.
11353 (grub_efi_console_fini): New function.
11354 (grub_console_term_output): Register init and fini methods.
11356 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11358 * tests/util/grub-shell-tester.in: Remove bashism and declare as
11361 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11363 * disk/loopback.c (grub_loopback): Replace filename with file.
11364 (delete_loopback): Handle new semantics.
11365 (grub_cmd_loopback): Likewise.
11366 (grub_loopback_iterate): Likewise.
11367 (grub_loopback_close): Likewise.
11369 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11371 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
11373 Reported by: Tito Keitel.
11375 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11377 * docs/grub.texi (Naming convention): Document new naming convention.
11379 2010-07-20 Vadim Solomin <vadic052@gmail.com>
11380 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11382 Generate device.map in something closer to the old ordering.
11384 * util/deviceiter.c (struct device): New declaration.
11385 (compare_file_names): Rename to ...
11386 (compare_devices): ... this. Sort by kernel name in preference to
11387 the stable by-id name, but keep the latter as a fallback comparison.
11388 Update header comment.
11389 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
11390 of `struct device' rather than of plain file names.
11392 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
11394 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
11397 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11399 * commands/acpi.c (setup_common_tables): Use sizeof instead of
11401 (setv1table): Likewise.
11403 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11405 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
11406 removing the homehost if present.
11407 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
11408 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
11409 removing the homehost if present.
11410 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
11412 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
11414 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
11415 parameter. Set its pointer target to 0.
11416 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
11417 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
11418 `data_offset' value from the superblock for 1.x metadata.
11419 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
11420 data on the device.
11421 (insert_array): Record the start sector of data on the device.
11422 (grub_raid_register): Pass start_sector parameters to
11423 grub_raid_list->detect and insert_array.
11424 * include/grub/raid.h (struct grub_raid_array): Add start_sector
11426 (struct grub_raid): Add start_sector parameter to `detect'.
11428 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
11429 __attribute__ ((packed)), leaving a comment.
11430 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
11431 (grub_mdraid_detect_09): ... here and ...
11432 (grub_mdraid_detect_1x): ... here.
11434 2010-07-20 Peter Henn <peter.henn@web.de>
11436 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
11437 chunk size and disk size, which are already given as sector counts
11438 as distinct from the 0.90 units. Fetch the correct device number
11439 from the role table instead of using the table index.
11441 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
11443 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
11444 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
11445 (WriteMostly1): New macro.
11446 Set array->name to NULL for metadata format 0.90. Add support for
11447 metadata 1.x. Fix some comments.
11448 * disk/raid.c (): Add support for name based RAID arrays. Fix a
11450 * util/getroot.c (grub_util_get_grub_dev): Add support for
11451 /dev/md/name style devices.
11453 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11455 * .bzrignore: Ignore 20_linux_xen.
11457 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
11459 * util/import_unicode.py: Remove unnecessary imports.
11461 2010-07-17 Aleš Nesrsta <starous@volny.cz>
11463 Hotplugging and USB hub support.
11465 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
11466 (grub_ohci): Likewise.
11467 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
11468 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
11469 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
11470 (GRUB_OHCI_CTRL_EDS): Likewise.
11471 (GRUB_OHCI_BULK_EDS): Likewise.
11472 (GRUB_OHCI_TDS): Likewise.
11473 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
11474 (grub_ohci_ed_phys2virt): New function.
11475 (grub_ohci_virt_to_phys): Likewise.
11476 (grub_ohci_td_phys2virt): Likewise.
11477 (grub_ohci_td_virt2phys): Likewise.
11478 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
11480 (grub_ohci_find_ed): New function.
11481 (grub_ohci_alloc_td): Likewise.
11482 (grub_ohci_free_td): Likewise.
11483 (grub_ohci_free_tds): Likewise.
11484 (grub_ohci_transfer): Use previously allocated memory.
11485 (grub_ohci_portstatus): Reset status changed bit.
11486 (grub_ohci_detect_dev): Supply status changed.
11487 (grub_ohci_fini_hw): Free memory.
11488 (grub_ohci_restore_hw): Reallocate memory.
11489 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
11490 Reset status change.
11491 (grub_uhci_detect_dev): Supply status_change.
11492 * bus/usb/usb.c (attach_hooks): New var.
11493 (grub_usb_device_attach): New function.
11494 (grub_usb_register_attach_hook_class): Likewise.
11495 (grub_usb_unregister_attach_hook_class): Likewise.
11496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
11497 (grub_usb_add_hub): Reset connection changed bit.
11498 (attach_root_port): New function.
11499 (grub_usb_root_hub): Likewise.
11500 (poll_nonroot_hub): Likewise.
11501 (grub_usb_poll_devices): Likewise.
11502 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
11503 * disk/usbms.c (grub_usbms_open): Use device hooks.
11504 (grub_usbms_iterate) :Poll devices.
11505 (grub_usbms_finddevs): Split into ...
11506 (grub_usbms_attach): ... this ...
11507 (grub_usbms_attach): ... and this.
11508 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
11510 (grub_usb_interface): New fields attached and detach_hook.
11511 (grub_usb_attach_hook_class): New type.
11512 (grub_usb_attach_desc): New struct.
11513 (grub_usb_register_attach_hook_class): New function.
11514 (grub_usb_unregister_attach_hook_class): Likewise.
11515 (grub_usb_poll_devices): Likewise.
11516 (grub_usb_device_attach): Likewise.
11517 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
11518 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
11520 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11522 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
11523 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
11524 delta determination style. Works with most NetBSD partitions too.
11526 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11528 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11529 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11531 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11533 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11535 2010-07-14 Anton Blanchard <anton@samba.org>
11537 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
11540 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11542 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
11544 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11546 * kern/partition.c (grub_partition_check_containment): New function to
11547 check that a partition is physically contained in a parent. Since
11548 offsets are relative (and non-negative), this reduces to checking that
11549 the partition ends before its parent.
11550 (grub_partition_map_probe): Discard out-of-range sub-partitions.
11551 (grub_partition_iterate): Likewise.
11552 * include/grub/partition.h (grub_partition_map): Slightly more detailed
11554 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
11555 partitions that start before their parent, and add debug printfs.
11557 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11559 * Makefile.in (.SUFFIX): Spell correctly, as ...
11560 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
11561 bare module name without `.mod', e.g. `test') tried to invoke a
11564 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11566 * README: Point to the Info manual.
11568 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
11570 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
11571 2nd superblock position from partition size.
11573 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
11575 * Makefile.in (MAINTAINER_CLEANFILES): Remove
11576 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
11577 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
11580 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11582 Restructure SCSI .id handling.
11583 Reported and tested by: Aleš Nesrsta.
11585 * disk/ata.c (grub_atapi_close): Removed. All users updated.
11586 (grub_atapi_dev): Changed .name to "ata". New field .id.
11587 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
11588 (grub_usbms_dev): New field .id.
11589 * disk/scsi.c (grub_scsi_iterate): Generate name.
11590 (grub_scsi_open): Parse name.
11591 * include/grub/scsi.h (grub_make_scsi_id): New function.
11592 (grub_scsi_dev): Change iterate and open to number instead of naming
11593 busses. All users updated.
11594 (grub_scsi): Remove name. Add .bus.
11596 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11598 * commands/help.c (grub_cmd_help): Fix a typo.
11600 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11602 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
11603 Reported and tested by: Colin Watson.
11605 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11607 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
11610 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11612 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
11614 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
11616 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
11619 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11621 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
11622 and disk/raid6_recover.c.
11623 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11624 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
11626 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11628 * term/gfxterm.c (repaint_schedulded): Rename to ...
11629 (repaint_scheduled): ... this. Update all callers.
11630 (repaint_was_schedulded): Rename to ...
11631 (repaint_was_scheduled): ... this. Update all callers.
11633 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11635 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
11636 which we expect to be handled by upper layers.
11638 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
11640 * bus/usb/usbhub.c: #include time.h header.
11642 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11644 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
11645 entry_name also for entries without stat blocks (e.g. ".."); fixes
11646 corruption of the first entry in a directory.
11648 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11650 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
11651 after setting gfxterm as the active terminal. GRUB_BACKGROUND
11652 doesn't work otherwise.
11654 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11656 * docs/grub.texi (Features): Update list of supported file systems.
11657 (GNU/Linux): Update for GRUB 2.
11658 (Serial terminal): Remove mention of --disable-serial, which was a
11659 GRUB Legacy configure option. Update instructions to use
11660 `terminal_input' and `terminal_output' rather than `terminal'.
11661 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
11662 configuration' and `Installing GRUB using grub-install'.
11663 (Menu entry editor): Update for GRUB 2.
11664 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
11665 Document new -a, -u, and -v options.
11666 (initrd): New section.
11667 (initrd16): New section.
11668 (linux): New section.
11669 (linux16): New section.
11670 (search): The `var' argument to `--set' is optional.
11671 (GRUB only offers a rescue shell): Go into a little more detail on
11674 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11676 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
11678 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11680 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
11681 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
11683 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11685 * util/i386/pc/grub-setup.c (setup): Rename prefix to
11686 install_prefix, in line with install_dos_part and install_bsd_part.
11687 Add new prefix variable, which is copied to install_prefix after
11688 comparing core.img in memory with the one read from disk in the
11689 no-embedding case, and use that rather than overwriting
11690 install_prefix immediately when installing to a partition.
11691 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
11694 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11696 * configure.ac: Avoid == in test command, it's not portable.
11697 * util/grub.d/30_os-prober.in: Likewise.
11699 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
11701 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
11703 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11705 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
11706 multiple (top-level) partmaps.
11708 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11710 * util/i386/efi/grub-install.in: Don't use empty grub_device.
11711 Reported by: Tino Keitel.
11713 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11715 Bidi and diacritics support.
11717 * Makefile.in (widthspec.bin): New target.
11718 (widthspec.h): Likewise.
11719 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
11720 * autogen.sh: Generate unidata.c.
11721 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
11722 * commands/ls.c (grub_ls_list_devices): Likewise.
11723 (grub_ls_list_files): Likewise.
11724 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
11725 (grub_mini_cmd_lsmod): Likewise.
11726 * commands/read.c: Likewise.
11727 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
11728 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
11729 * lib/arg.c (grub_arg_show_help): Likewise.
11730 * lib/crypto.c (grub_password_get): Likewise.
11731 * normal/auth.c (grub_username_get): Likewise.
11732 * normal/misc.c (grub_normal_print_device_info): Likewise.
11733 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
11734 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
11735 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
11736 (normal/charset.c_DEPENDENCIES): New variable.
11737 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
11738 (pkglib_MODULES): Remove charset.mod.
11739 (charset_mod_SOURCES): Removed.
11740 (charset_mod_CFLAGS): Likewise.
11741 (charset_mod_LDFLAGS): Likewise.
11742 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
11743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
11745 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11746 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11747 (kernel_img_HEADERS): Add terminfo.h.
11748 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
11749 Fill ->font. Reverse ascii bitmaps.
11750 (grub_font_get_xheight): New function.
11751 * font/font.c (grub_font_get_string_width): Moved from here ...
11752 * gfxmenu/font.c (grub_font_get_string_width): ... here.
11753 * font/font.c (grub_font_draw_string): Moved from here ...
11754 * gfxmenu/font.c (grub_font_draw_string): ... here.
11755 * font/font.c (grub_font_dup_glyph): New function.
11756 (grub_font_blit_glyph): Likewise.
11757 (grub_font_blit_glyph_mirror): Likewise.
11758 (blit_comb): Likewise.
11759 (grub_font_construct_dry_run): Likewise.
11760 (grub_font_get_constructed_device_width): Likewise.
11761 (grub_font_construct_glyph): Likewise.
11762 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
11763 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
11764 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
11765 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
11766 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
11767 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
11768 (grub_font_get_xheight): New proto.
11769 (grub_font_get_constructed_device_width): Likewise.
11770 (grub_font_construct_glyph): Likewise.
11771 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
11772 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
11773 * include/grub/font.h (grub_font_draw_string): Moved from here ...
11774 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
11775 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
11776 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
11777 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
11778 (grub_console_getcharwidth): Likewise.
11779 * include/grub/misc.h (grub_xputs): New proto.
11780 (grub_puts): Inlined.
11781 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
11782 (grub_normal_get_line_counter): Removed.
11783 (grub_install_newline_hook): Likewise.
11784 (grub_normal_get_char_counter): New proto.
11785 (grub_normal_reset_more): Likewise.
11786 (grub_xputs_normal): Likewise.
11787 * include/grub/powerpc/ieee1275/console.h: Removed.
11788 * include/grub/sparc64/ieee1275/console.h: Likewise.
11789 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
11790 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
11791 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
11792 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
11793 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
11794 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
11795 (grub_term_input): Pass reference to self. All users updated.
11796 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
11797 Pass reference to self. New fields normal_color, highlight_color and
11798 data. All users updated.
11799 (grub_putchar): Removed.
11800 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
11801 (grub_unicode_estimate_width): New function.
11802 (grub_term_getcharwidth): Add defaults.
11803 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
11804 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
11805 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
11806 (grub_cls): Remove EXPORT_FUNC.
11807 (grub_setcolorstate): Inline.
11808 (grub_newline_hook): Removed.
11809 * include/grub/terminfo.h: Rewritten. All users updated.
11810 * include/grub/unicode.h: New file.
11811 * include/grub/video.h (grub_video_signed_rect): New type.
11812 * kern/emu/console.c (grub_console_highlight_color): Removed.
11813 (grub_console_normal_color): Likewise.
11814 (grub_console_standard_color): Made static.
11815 (grub_ncurses_putchar): Remove mapping.
11816 (grub_ncurses_getcharwidth): Removed.
11817 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
11818 (grub_ncurses_setcolor): Removed.
11819 (grub_ncurses_getcolor): Likewise.
11820 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
11821 (grub_console_putchar): ... this.
11822 (grub_console_putchar): Handle argument difference.
11823 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
11824 console_init_early and console_init_lately.
11825 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
11826 * kern/misc.c (grub_puts): Removed.
11827 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
11828 (grub_vsnprintf_real): Remove str = NULL support.
11829 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
11830 * normal/charset.c (grub_utf8_to_ucs4): ... here.
11831 * kern/term.c (grub_putcode): Renamed to ...
11832 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
11833 (grub_putchar): Removed.
11834 (grub_xputs_dumb): New function.
11835 (grub_xputs): New variable.
11836 * lib/charset.c: Move from here ...
11837 * normal/charset.c: ... to here.
11838 (grub_ucs4_to_utf8): New function.
11839 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
11840 (join_types): New variable.
11841 (unpack_join): New function.
11842 (bidi_types): New variable.
11843 (unpack_bidi): New function.
11844 (get_bidi_type): Likewise.
11845 (get_join_type): Likewise.
11846 (is_mirrored): Likewise.
11847 (grub_unicode_get_comb_type): Likewise.
11848 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
11849 (is_type_after): Likewise.
11850 (grub_unicode_aglomerate_comb): Likewise.
11851 (bidi_line_wrap): Likewise.
11852 (grub_bidi_line_logical_to_visual): Likewise.
11853 (grub_bidi_logical_to_visual): Likewise.
11854 (grub_unicode_mirror_code): Likewise.
11855 (grub_unicode_shape_code): Likewise.
11856 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
11857 Don't use grub_putchar.
11858 * normal/main.c (grub_normal_init_page): Use grub_putcode.
11859 (grub_normal_reader_init): Likewise.
11860 (grub_xputs_saved): New variable.
11861 (GRUB_MOD_INIT): Set grub_xputs.
11862 (GRUB_MOD_FINI): Restore grub_xputs.
11863 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
11864 (menu_init): Avoid printing gfxmenu error.
11865 (show_menu): Use grub_normal_get_char_counter.
11866 * normal/menu_entry.c (update_screen): Fix out-of-array.
11867 (complete): Avoid NULL dereferencing.
11868 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
11869 * normal/menu_text.c (print_spaces): Removed.
11870 (grub_print_ucs4): Likewise.
11871 (grub_print_message_indented): Use grub_print_ucs4.
11872 (print_message): Use grub_putcode.
11873 (print_entry): Hanlde diacritics.
11874 * normal/term.c (term_state): New type.
11875 (grub_more_lines): Removed.
11876 (term_states): New variable.
11877 (grub_normal_line_counter): Renamed to ..
11878 (grub_normal_char_counter): ...this. All users updated.
11879 (grub_normal_get_line_counter): Renamed to ...
11880 (grub_normal_get_char_counter): ... this.
11881 (grub_normal_reset_more): New function.
11882 (process_newline): Removed.
11883 (print_more): New function.
11884 (grub_install_newline_hook): Removed.
11885 (map_code): New function.
11886 (grub_puts_terminal): Use grub_print_ucs4.
11887 (putglyph): New function.
11888 (putcode_real): Likewise.
11889 (grub_putcode): Use putcode_real.
11890 (get_maxwidth): New function.
11891 (get_startwidth): Likewise.
11892 (print_ucs4_terminal): Likewise.
11893 (find_term_state): Likewise.
11894 (put_glyphs_terminal): Likewise.
11895 (print_backlog): Likewise.
11896 (print_ucs4_real): Likewise.
11897 (grub_print_ucs4): Likewise.
11898 (grub_xputs_normal): Likewise.
11899 * term/efi/console.c (grub_console_putchar): Output diacritics.
11900 (grub_console_getcharwidth): Removed.
11901 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
11902 * term/gfxterm.c (clear_char): Free chars.
11903 (scroll_up): Avoid leaking memory.
11904 (grub_gfxterm_putchar): Support diacritics.
11905 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
11906 * term/i386/pc/console.c (grub_console_term_output): Declare as
11907 GRUB_TERM_CODE_TYPE_VGA.
11908 * term/i386/pc/vga.c (grub_vga_term): Declare as
11909 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
11910 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
11911 GRUB_TERM_CODE_TYPE_VGA.
11912 * term/i386/vga_common.c (map_char): Removed.
11913 (grub_console_putchar): Likewise.
11914 (grub_console_getcharwidth): Likewise.
11915 * term/ieee1275/ofconsole.c: Simplify using terminfo.
11916 (colors): Reordered to match terminfo.
11917 (grub_ofconsole_normal_color): Removed.
11918 (grub_ofconsole_writeesc): Likewise.
11919 (grub_ofconsole_highlight_color): Likewise.
11920 (grub_ofconsole_getcharwidth): Likewise.
11921 (grub_ofconsole_setcolorstate): Likewise.
11922 (grub_ofconsole_setcolor): Likewise.
11923 (grub_ofconsole_getcolor): Likewise.
11924 (grub_ofconsole_readkey): Renamed to ...
11925 (readkey): ... this. Remove escape sequence handling. Return -1 on no
11927 (grub_ofconsole_checkkey): Removed.
11928 (grub_ofconsole_getkey): Likewise.
11929 (grub_ofconsole_getxy): Likewise.
11930 (grub_ofconsole_gotoxy): Likewise.
11931 (grub_ofconsole_cls): Likewise.
11932 (grub_ofconsole_refresh): Likewise.
11933 (grub_ofconsole_terminfo_input): New struct.
11934 (grub_ofconsole_terminfo_output): Likewise.
11935 (grub_ofconsole_term_input): Use terminfo.
11936 (grub_ofconsole_term_output): Likewise.
11937 (grub_console_init): Split into ...
11938 (grub_console_init_early): ...this and ...
11939 (grub_console_init_lately): ...this. Use terminfo.
11940 (grub_ofconsole_putchar): Renamed to ...
11941 (put): ... this. Remove mapping.
11942 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
11943 * term/serial.c: Simplify using terminfo.
11946 (keep_track): Likewise.
11947 (registered): Likewise.
11948 (input_buf): Likewise.
11949 (npending): Likewise.
11950 (serial_translate_key_sequence): Likewise.
11951 (fill_input_buf): Likewise.
11952 (grub_serial_checkkey): Likewise.
11953 (grub_serial_getkey): Likewise.
11954 (grub_serial_getxy): Likewise.
11955 (grub_serial_gotoxy): Likewise.
11956 (grub_serial_putchar): Likewise.
11957 (grub_serial_cls): Likewise.
11958 (grub_serial_setcolorstate): Likewise.
11959 (grub_serial_setcursor): Likewise.
11960 (serial_hw_init): Use serial_hw_fetch.
11961 (grub_serial_terminfo_input): New variable.
11962 (grub_serial_terminfo_output): Likewise.
11963 (grub_serial_term_input): Use terminfo.
11964 (grub_serial_term_output): Likewise.
11965 * term/terminfo.c (putstr): Use put.
11966 (grub_terminfo_all_free): New function
11967 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
11968 (grub_terminfo_output_register): New function.
11969 (grub_terminfo_output_unregister): Likewise.
11970 (grub_terminfo_getxy): Likewise.
11971 (grub_terminfo_readkey): Likewise.
11972 (grub_terminfo_checkkey): Likewise.
11973 (grub_terminfo_getkey): Likewise.
11974 (grub_terminfo_input_init): Likewise.
11975 (print_terminfo): Likewise.
11976 (grub_cmd_terminfo): Handle encoding.
11977 (grub_terminfo_gotoxy): Track position.
11978 (grub_terminfo_cls): Likewise.
11979 (grub_terminfo_putchar): Likewise.
11980 (grub_terminfo_setcolorstate): Handle colors
11981 (grub_terminfo_cursor_on): This ...
11982 (grub_terminfo_cursor_off): ... and this merged into ...
11983 (grub_terminfo_setcursor): ... this.
11984 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
11985 * unicode/ArabicShaping.txt: New file (imported from Unicode).
11986 * unicode/BidiMirroring.txt: Likewise.
11987 * unicode/UnicodeData.txt: Likewise.
11988 * unicode/COPYING: Likewise.
11989 * util/grub-editenv.c (grub_putchar): Removed.
11990 (grub_xputs_real): New function.
11991 (grub_xputs): New variable.
11992 * util/grub-fstest.c (grub_putchar): Removed.
11993 (grub_xputs_real): New function.
11994 (grub_xputs): New variable.
11995 * util/grub-mkdevicemap.c (grub_putchar): Removed.
11996 (grub_xputs_real): New function.
11997 (grub_xputs): New variable.
11998 * util/grub-probe.c (grub_putchar): Removed.
11999 (grub_xputs_real): New function.
12000 (grub_xputs): New variable.
12001 * util/grub-script-check.c (grub_putchar): Removed.
12002 (grub_xputs_real): New function.
12003 (grub_xputs): New variable.
12004 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12005 (grub_xputs_real): New function.
12006 (grub_xputs): New variable.
12007 * util/import_unicode.py: New file.
12008 * util/grub-mkfont.c (ft_errmsgs): New array.
12009 (grub_glyph_info): Make bitmap a pointer.
12010 (file_formats): New type WIDTH_SPEC.
12011 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12012 (options): Add width-spec.
12014 (add_char): Renamed to ...
12015 (add_glyph): ... this.
12016 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12017 (glyph_replace): New type.
12018 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12019 (add_char): New function.
12020 (add_subst): Likewise.
12021 (process_cursive): Likewise.
12022 (add_font): Handle GSUB.
12023 (write_font_width_spec): New function.
12024 (main): Sort glyphs.
12025 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12026 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12027 * kern/term.c (grub_cls): Moved from here...
12028 * normal/term.c (grub_cls): ... here.
12030 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12032 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12033 suitable for using within the format argument of printf when
12034 converting grub_size_t.
12035 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12036 "x" to convert grub_size_t arguments.
12038 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12040 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12042 (list_get_minimal_size): Take selection box into account.
12044 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12046 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12049 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12051 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12052 devices when iterating over /dev/disk/by-id; they will be handled
12053 later if appropriate, which they aren't always (e.g. LVM).
12055 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12057 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12058 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12060 (grub_halt): Likewise.
12061 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12063 (grub_halt): Don't return, even if all of shut-down, power-off, and
12066 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12068 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12069 arguments, not three.
12071 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12073 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12074 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12075 LVM-on-RAID is handled correctly.
12077 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12079 * docs/grub.texi (Changes from GRUB Legacy): New section.
12080 (Future): Fix typo.
12082 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12084 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12085 grub.d/README accidentally ends up executable for one reason or
12086 another. Ignore it.
12088 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12090 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12091 (gpt_partition_map_iterate): Support non-512B sectors.
12093 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12095 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12096 Tested by: Seth Goldberg.
12098 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12100 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12101 Properly align mbi.
12102 Reported by: Seth Goldberg.
12104 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12106 * util/grub-mkrescue.in: Avoid module duplication.
12108 2010-07-01 Sean Finney <seanius@seanius.net>
12110 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12112 2010-07-01 Sean Finney <seanius@seanius.net>
12114 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12116 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12118 * disk/lvm.c (grub_lvm_checkvalue): New function.
12119 (grub_lvm_check_flag): Likewise.
12121 2010-07-01 Robert Millan <rmh@gnu.org>
12123 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12124 Support 'p' as partition separator on kernel of FreeBSD (used
12126 (grub_util_biosdisk_get_grub_dev): Likewise.
12128 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12130 Yeeloong firmware port.
12132 * boot/mips/yeeloong/fwstart.S: New file.
12133 * bus/cs5536.c (gpiodump): New const.
12134 (set_io_space): New function.
12135 (set_iod): Likewise.
12136 (set_p2d): Likewise.
12137 (grub_cs5536_init_geode): Likewise.
12138 * commands/mips/yeeloong/lsspd.c: New file.
12139 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12140 (serial_mod_SOURCES): New variable.
12141 (serial_mod_CFLAGS): Likewise.
12142 (serial_mod_LDFLAGS): Likewise.
12143 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12144 term/terminfo.c and term/tparm.c.
12145 (pkglib_IMAGES): Add fwstart.img.
12146 (fwstart_img_SOURCES): New variable.
12147 (fwstart_img_CFLAGS): Likewise.
12148 (fwstart_img_ASFLAGS): Likewise.
12149 (fwstart_img_LDFLAGS): Likewise.
12150 (fwstart_img_FORMAT): Likewise.
12151 (pkglib_MODULES): Add lsspd.mod.
12152 (lsspd_mod_SOURCES): New variable.
12153 (lsspd_mod_CFLAGS): Likewise.
12154 (lsspd_mod_LDFLAGS): Likewise.
12155 (pkglib_MODULES): Add halt.mod.
12156 (halt_mod_SOURCES): New variable.
12157 (halt_mod_CFLAGS): Likewise.
12158 (halt_mod_LDFLAGS): Likewise.
12159 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12160 (serial_mod_SOURCES): Removed.
12161 (serial_mod_CFLAGS): Likewise.
12162 (serial_mod_LDFLAGS): Likewise.
12163 * disk/ata.c (check_device): New function.
12164 (grub_ata_device_initialize): Use check_device.
12165 (grub_ata_iterate): Recheck devices.
12166 (grub_ata_open): Likewise.
12167 (grub_atapi_iterate): Likewise.
12168 (grub_atapi_open): Likewise.
12169 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12170 (GRUB_ATA_CH1_PORT1): Likewise.
12171 (GRUB_ATA_CH0_PORT2): Likewise.
12172 (GRUB_ATA_CH1_PORT2): Likewise.
12173 * include/grub/mips/loongson.h: New file.
12174 * include/grub/mips/yeeloong/ec.h: Likewise.
12175 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12176 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12177 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12178 * include/grub/misc.h (grub_halt): Declare as noreturn.
12179 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12180 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12181 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12182 (UART_ENABLE_DTRRTS): Likewise.
12183 (UART_ENABLE_MODEM): Removed.
12184 (UART_ENABLE_OUT2): New const.
12185 * include/grub/term.h (grub_term_register_input_active): New function.
12186 (grub_term_register_output_active): Likewise.
12187 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12189 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12190 (init_pci): New function.
12191 (grub_machine_init): Execute platform init when firmware. Init serial.
12192 (grub_halt): Implement.
12193 (grub_exit): Likewise.
12194 (grub_reboot): Likewise.
12195 * term/serial.c (serial_hw_init): Update macros.
12196 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12197 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12198 (image_targets): New target mipsel-yeeloong-flash.
12199 (generate_image): Support IMAGE_YEELOONG_FLASH.
12200 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12201 (grub_video_sm712_setup): Init card.
12202 (grub_video_sm712_set_palette): Removed.
12203 * video/sm712_init.c: New file.
12205 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12207 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12208 PATH when running help2man and then run it on the unadorned
12209 executable names, rather than passing $(builddir)/* paths to
12210 help2man. This avoids the build directory ending up in generated
12213 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12215 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12216 to avoid accidents when debugging with 'sh -x'.
12217 * util/grub-mkrescue.in: Likewise.
12218 * util/grub.d/00_header.in: Likewise.
12219 * util/grub.d/10_hurd.in: Likewise.
12220 * util/grub.d/10_kfreebsd.in: Likewise.
12221 * util/grub.d/10_linux.in: Likewise.
12222 * util/grub.d/10_netbsd.in: Likewise.
12223 * util/grub.d/10_windows.in: Likewise.
12224 * util/grub.d/20_linux_xen.in: Likewise.
12225 * util/grub.d/30_os-prober.in: Likewise.
12226 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12228 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12230 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
12231 last character in the buffer.
12232 Reported by: Vladimir Serbinenko.
12234 2010-06-29 Robert Millan <rmh@gnu.org>
12236 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12237 (Command-line and menu entry commands): Document `badram' command.
12239 2010-06-28 Robert Millan <rmh@gnu.org>
12241 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
12242 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
12243 command using ${GRUB_BADRAM} as parameter.
12245 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12247 * docs/grub.texi (Device map): New section.
12248 (Themes): New section (stub).
12249 * Makefile.in (docs/grub.info): The info documentation now builds
12250 without errors. Make sure it stays that way.
12252 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12254 Use normal parser for menu entries.
12255 Reported by: Thomas Frauendorfer
12257 * include/grub/parser.h (grub_parser_execute): Don't export.
12258 * normal/menu.c (grub_menu_execute_entry_real): New function.
12259 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
12261 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12263 * docs/grub.texi (Embedded configuration): New section (replacing
12264 old "Preset Menu" stub).
12265 (Images): New section.
12266 (configfile): Note that any menu entries defined in `file' are shown
12269 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12271 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12273 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12275 * util/grub-install.in: Add --debug-image= option.
12277 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12279 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12282 * util/deviceiter.c (check_device): Rename to ...
12283 (check_device_readable_unique): ... this. Update all callers.
12284 Maintain and check a list of which devices (by canonicalized name)
12285 have already been seen.
12286 (clear_seen_devices): New function.
12287 (compare_file_names) [__linux__]: New function.
12288 (grub_util_iterate_devices): Clear the list of seen devices on exit
12289 and (just in case) on entry.
12290 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
12291 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
12292 seen-devices list, superseded by general code in check_device.
12294 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12296 * commands/cat.c (options): New variable.
12297 (grub_cmd_cat): Parse options. If the --dos option is given, print
12298 DOS-style "\r\n" line endings as simple newlines (Debian bug
12300 (GRUB_MOD_INIT): Use extcmd.
12301 (GRUB_MOD_FINI): Likewise.
12302 * docs/grub.texi (cat): Document --dos.
12304 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12306 XEN with Linux grub-mkconfig support.
12308 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
12309 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
12310 GRUB_CMDLINE_XEN_DEFAULT.
12311 * util/grub.d/20_linux_xen.in: New file.
12313 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12315 Initialise VGA video on qemu ourselves.
12317 * boot/i386/qemu/boot.S: Don't call 0xc000.
12318 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
12319 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
12320 (kernel_img_HEADERS): Add pci.h.
12321 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
12322 * configure.ac: Force unifont on qemu and yeeloong.
12323 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
12324 (grub_vga_palette_write): Use correct register.
12325 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
12326 Call grub_qemu_init_cirrus.
12327 * kern/i386/qemu/init.c: New file.
12328 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
12330 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
12332 2010-06-26 Pavel Roskin <proski@gnu.org>
12334 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
12337 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12339 * docs/grub.texi (Simple configuration): Explain that
12340 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
12341 set to `true' to disable their respective recovery entries, not
12344 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12346 Make the `source' command slightly faster.
12348 * normal/main.c (grub_normal_execute): Don't re-read list files when
12351 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12353 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
12354 field position and mask size to red fields from mode_info, not
12356 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
12357 Remove redundant tag->common.framebuffer_type assignment.
12358 Reported by: Seth Goldberg.
12360 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12362 Sync up other versions of the Linux loader with Robert Millan's
12363 change of 2010-01-09, "Make loader output a bit more user-friendly".
12365 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
12367 (grub_cmd_linux): Likewise.
12368 (grub_cmd_initrd): Likewise.
12369 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
12370 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12372 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
12374 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
12375 larger than MEMORY_MAP_SIZE.
12377 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
12379 Fix parallel build.
12381 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
12383 * script/parser.y: #include grub_script.tab.h header.
12385 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12387 Support >3GiB and <16MiB RAM in i386-qemu.
12389 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
12390 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
12391 (grub_lower_mem): Removed.
12392 (grub_upper_mem): Likewise.
12393 (mem_size): Made static.
12394 (above_4g): New variable.
12395 (grub_machine_mmap_init): Detect small mem_size and above_4g.
12396 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
12399 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12401 Cirrus 5446 and Bochs video cards support.
12403 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
12405 (video_cirrus_mod_SOURCES): New variable.
12406 (video_cirrus_mod_CFLAGS): Likewise.
12407 (video_cirrus_mod_LDFLAGS): Likewise.
12408 (video_bochs_mod_SOURCES): Likewise.
12409 (video_bochs_mod_CFLAGS): Likewise.
12410 (video_bochs_mod_LDFLAGS): Likewise.
12411 * include/grub/vga.h: New file.
12412 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
12413 (grub_video_fb_set_page_t): New type.
12414 (grub_video_fb_setup): New prototype.
12415 (grub_video_fb_swap_buffers): Likewise.
12416 (grub_video_fb_get_info_and_fini): Likewise.
12417 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
12418 (CRTC_DATA_PORT): Likewise.
12419 (CRTC_CURSOR): Likewise.
12420 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12421 (CRTC_CURSOR_ADDR_LOW): Likewise.
12422 (CRTC_CURSOR_DISABLE): Likewise.
12423 (update_cursor): Use grub_vga_cr_write.
12424 (grub_vga_text_setcursor): Likewise.
12425 * video/bochs.c: New file.
12426 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
12427 (palette): Likewise.
12428 (palette_size): Likewise.
12429 (framebuffer): New variable.
12430 (grub_video_fb_init): Use 'framebuffer'.
12431 (grub_video_fb_fini): Likewise.
12432 (grub_video_fb_get_info): Likewise.
12433 (grub_video_fb_get_palette): Likewise.
12434 (grub_video_fb_set_palette): Likewise.
12435 (grub_video_fb_set_viewport): Likewise.
12436 (grub_video_fb_get_viewport): Likewise.
12437 (grub_video_fb_map_color): Likewise.
12438 (grub_video_fb_map_rgb): Likewise.
12439 (grub_video_fb_map_rgba): Likewise.
12440 (grub_video_fb_unmap_color): Likewise.
12441 (grub_video_fb_unmap_color_int): Likewise.
12442 (grub_video_fb_fill_rect): Likewise.
12443 (grub_video_fb_blit_bitmap): Likewise.
12444 (grub_video_fb_blit_render_target): Likewise.
12445 (grub_video_fb_scroll): Likewise.
12446 (grub_video_fb_create_render_target): Likewise.
12447 (grub_video_fb_doublebuf_blit_init): Likewise.
12448 (grub_video_fb_set_active_render_target): Handle doublebuffering.
12449 (doublebuf_pageflipping_update_screen): New function.
12450 (doublebuf_pageflipping_init): Likewise.
12451 (grub_video_fb_setup): Likewise.
12452 (grub_video_fb_swap_buffers): Likewise.
12453 (grub_video_fb_get_info_and_fini): Likewise.
12454 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
12456 (doublebuf_pageflipping_commit): Restructured into ...
12457 (doublebuf_pageflipping_set_page): ... this.
12458 (doublebuf_pageflipping_update_screen): Removed.
12459 (doublebuf_pageflipping_init): Likewise.
12460 (double_buffering_init): Likewise.
12461 (grub_video_vbe_setup): Use grub_video_fb_setup.
12462 (grub_video_vbe_swap_buffers): Removed.
12463 (grub_video_vbe_set_active_render_target): Likewise.
12464 (grub_video_vbe_get_active_render_target): Likewise.
12465 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
12466 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
12467 grub_video_fb_set_active_render_target and
12468 grub_video_fb_get_active_render_target.
12469 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
12470 (SEQUENCER_DATA_PORT): Likewise.
12471 (MAP_MASK_REGISTER): Likewise.
12472 (CRTC_ADDR_PORT): Likewise.
12473 (CRTC_DATA_PORT): Likewise.
12474 (START_ADDR_HIGH_REGISTER): Likewise.
12475 (START_ADDR_LOW_REGISTER): Likewise.
12476 (GRAPHICS_ADDR_PORT): Likewise.
12477 (GRAPHICS_DATA_PORT): Likewise.
12478 (READ_MAP_REGISTER): Likewise.
12479 (INPUT_STATUS1_REGISTER): Likewise.
12480 (INPUT_STATUS1_VERTR_BIT): Likewise.
12481 (get_map_mask): Use grub_vga_sr_read.
12482 (set_map_mask): Use grub_vga_sr_write.
12483 (set_read_map): Use grub_vga_gr_write.
12484 (set_start_address): Use grub_vga_cr_write.
12485 * video/sm712.c (framebuffer): Remove leftover fields.
12487 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
12489 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
12490 setting GRUB_VIDEO_BACKEND. Make it available as a user override
12491 instead. Replace the gfxterm backend check with a check that
12492 ${GRUB_PREFIX}/video.lst is non-empty.
12493 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
12495 (load_video): New generated function. Call it before loading
12496 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
12497 * util/grub.d/10_linux.in (linux_entry): Call load_video.
12498 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
12499 * docs/grub.texi (Simple configuration): Document
12500 GRUB_VIDEO_BACKEND.
12502 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12504 Use video functions in linux and xnu loaders.
12506 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
12507 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
12508 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
12509 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
12510 loader/i386/pc/linux.c.
12511 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
12512 (find_line_len): Removed.
12513 (find_framebuf): Likewise.
12514 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
12515 * loader/i386/efi/xnu.c: Removed.
12516 * loader/i386/pc/xnu.c: Moved from here...
12517 * loader/i386/xnu.c: ...here.
12519 Enable priorities in video drivers.
12521 * include/grub/video.h (grub_video_adapter_prio_t): New type.
12522 (grub_video_adapter): New field prio.
12523 (grub_video_register): Respect prio when inserting.
12524 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
12525 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
12526 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
12527 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
12528 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
12529 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
12530 * video/sm712.c (grub_video_sm712_adapter): Likewise.
12534 * include/grub/video.h (grub_video_driver_id_t): New value
12535 GRUB_VIDEO_DRIVER_SDL.
12536 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
12538 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12540 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
12541 argument to printf.
12542 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12544 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12546 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
12547 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12549 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12551 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
12552 directly, and recommend grub-install instead.
12553 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12555 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12557 Fix i386-pc prefix handling with nested partitions (Debian bug
12558 #585068). Note that the case where the core image is booted using
12559 multiboot and relocated from its original location still requires
12562 * kern/i386/pc/init.c (make_install_device): If the prefix starts
12563 with "(,", fill the boot drive in between those two characters, but
12564 expect that a full partition specification including partition map
12566 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
12567 specified, write a prefix without the drive name but including a
12568 full partition specification.
12570 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
12572 * util/grub-mkconfig.in: Ignore non-option arguments, for
12573 compatibility with older versions (before 2010-06-12) which did the
12574 same. In particular, this makes it easier to ship an update-grub
12575 wrapper which is compatible with that used with GRUB Legacy (Debian
12578 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12580 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
12581 for manual page generation.
12583 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12585 * po/POTFILES: Remove leftover commands/handler.c.
12587 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12589 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
12590 left this script non-functional.
12592 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12594 * docs/man/grub-emu.h2m: New file.
12596 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
12598 * docs/grub.texi (Commands): Document reduced command set in rescue
12600 (cpuid): New section.
12602 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
12604 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
12605 new partition naming style.
12606 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
12608 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
12610 Add "-o grub.iso" like cmdline options support.
12612 * util/grub-install.in: Improve cmdline option parsing.
12613 * util/grub-mkconfig.in: Likewise.
12614 * util/grub-mkrescue.in: Likewise.
12615 * util/grub-reboot.in: Likewise.
12616 * util/grub-set-default.in: Likewise.
12617 * util/i386/efi/grub-install.in: Likewise.
12618 * util/ieee1275/grub-install.in: Likewise.
12619 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12623 * .bzrignore: Ignore 41_custom.
12625 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12627 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
12629 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12631 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
12632 prototype declarations.
12634 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
12635 generating fs, partmap, and video lists.
12636 * include/grub/fs.h (grub_fs_register): Omit prototype if
12637 GRUB_LST_GENERATOR is defined.
12638 * include/grub/partition.h (grub_partition_map_register): Likewise.
12639 * include/grub/video.h (grub_video_register): Likewise.
12641 2010-06-12 Javier Martín <lordhabbit@gmail.com>
12643 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
12645 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12647 * util/grub-mkrescue.in: Support --xorriso argument.
12649 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12651 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
12652 Suggested by: Thomas Schmitt.
12654 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12656 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
12657 Suggested by: Thomas Schmitt.
12659 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12661 custom.cfg support.
12663 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
12664 * util/grub.d/41_custom.in: New file.
12666 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12668 * util/grub-mkrescue.in (make_image): Remove sh module, which has
12669 been merged back into normal.
12671 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12673 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
12674 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
12676 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12678 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
12679 when generating manual pages.
12680 * docs/man/grub-bin2h.h2m: New file.
12681 * docs/man/grub-editenv.h2m: New file.
12682 * docs/man/grub-fstest.h2m: New file.
12683 * docs/man/grub-install.h2m: New file.
12684 * docs/man/grub-macho2img.h2m: New file.
12685 * docs/man/grub-mkconfig.h2m: New file.
12686 * docs/man/grub-mkdevicemap.h2m: New file.
12687 * docs/man/grub-mkfont.h2m: New file.
12688 * docs/man/grub-mkimage.h2m: New file.
12689 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
12690 * docs/man/grub-mkrelpath.h2m: New file.
12691 * docs/man/grub-mkrescue.h2m: New file.
12692 * docs/man/grub-ofpathname.h2m: New file.
12693 * docs/man/grub-pe2elf.h2m: New file.
12694 * docs/man/grub-probe.h2m: New file.
12695 * docs/man/grub-reboot.h2m: New file.
12696 * docs/man/grub-script-check.h2m: New file.
12697 * docs/man/grub-set-default.h2m: New file.
12698 * docs/man/grub-setup.h2m: New file.
12700 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
12702 Use FOR_* macros instead of *_iterate whenever possible.
12704 * commands/handler.c: Removed.
12705 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
12706 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
12707 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12708 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
12709 (grub_probe_SOURCES): Remove kern/parser.c.
12710 (util/grub-script-check.c_DEPENDENCIES): Removed.
12711 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
12712 and grub_script_check_init.c.
12713 (grub_script_check_init.lst): Removed.
12714 (grub_script_check_init.h): Likewise.
12715 (grub_script_check_init.c): Likewise.
12716 (pkglib_MODULES): Remove handler.mod and sh.mod.
12717 (handler_mod_SOURCES): Removed.
12718 (handler_mod_CFLAGS): Likewise.
12719 (handler_mod_LDFLAGS): Likewise.
12720 (normal_mod_SOURCES): Remove normal/handler.c.
12721 Add script/main.c, script/script.c, script/execute.c,
12722 script/function.c, script/lexer.c, grub_script.tab.c
12723 and grub_script.yy.c.
12724 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12725 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12726 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
12727 (grub_setup_SOURCES): Remove kern/parser.c.
12728 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12729 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
12730 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
12731 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12732 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12733 (grub_setup_SOURCES): Remove kern/parser.c.
12734 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12735 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
12736 * include/grub/command.h (grub_command_iterate): Removed.
12737 (FOR_COMMANDS): New macro.
12738 * include/grub/dl.h (grub_dl): New member next.
12739 (grub_dl_iterate): Removed.
12740 (grub_dl_head): New variable declaration.
12741 (FOR_DL_MODULES): New macro.
12742 * include/grub/fs.h: Include list.h.
12743 (grub_fs): Make next first element.
12744 (grub_fs_list): New variable declaration.
12745 (grub_fs_register): Make inline.
12746 (grub_fs_unregister): Likewise.
12747 (grub_fs_iterate): Removed.
12748 (FOR_FILESYSTEMS): New macro.
12749 * include/grub/handler.h: Removed.
12750 * include/grub/list.h (grub_list_hook_t): Removed.
12751 (grub_list_test_t): Likewise.
12752 (grub_list_pop): Likewise.
12753 (grub_list_iterate): Likewise.
12754 (grub_list_insert): Likewise.
12755 (FOR_LIST_ELEMENTS): New macro.
12756 * include/grub/parser.h (grub_parser_class): Removed.
12757 (grub_parser_register): Likewise.
12758 (grub_parser_unregister): Likewise.
12759 (grub_parser_get_current): Likewise.
12760 (grub_parser_set_current): Likewise.
12761 (grub_register_rescue_parser): Likewise.
12762 (grub_rescue_parse_line): New function.
12763 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
12764 * include/grub/script_sh.h (grub_script_function_list): New variable
12766 (FOR_SCRIPT_FUNCTIONS): New macro.
12767 (grub_script_function_iterate): Removed.
12768 (grub_normal_parse_line): New prototype.
12769 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
12770 (FOR_DISABLED_TERM_INPUTS): Likewise.
12771 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
12772 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
12773 * include/grub/video.h (grub_video_adapter): Move 'next' to first
12775 (grub_video_register): Inline.
12776 (grub_video_unregister): Likewise.
12777 (grub_video_adapter_list): New variable declaration.
12778 (grub_video_iterate): Removed.
12779 (FOR_VIDEO_ADAPTERS): New macro.
12780 * kern/dl.c (grub_dl_list): Removed. All users updated.
12781 (grub_dl_iterate): Removed.
12782 * kern/fs.c (grub_fs_list): Make global.
12783 (grub_fs_register): Removed.
12784 (grub_fs_unregister): Likewise.
12785 (grub_fs_iterate): Likewise.
12786 * kern/handler.c: Removed.
12787 * kern/list.c (grub_list_pop): Removed.
12788 (grub_list_iterate): Likewise.
12789 (grub_list_insert): Likewise.
12790 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
12791 (grub_prio_list_insert): Don't use grub_list_insert.
12792 * kern/main.c (grub_register_rescue_parser): Don't call
12793 grub_register_rescue_parser.
12794 * kern/parser.c (grub_parser_class): Removed.
12795 (grub_parser_execute): Use grub_rescue_parse_line.
12796 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
12797 (grub_rescue_parser): Removed.
12798 (grub_register_rescue_parser): Likewise.
12799 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
12800 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
12801 (grub_auth_check_authentication): Likewise.
12802 * normal/completion.c (iterate_command): Removed.
12803 (grub_normal_do_completion): Use FOR_COMMANDS.
12804 * normal/handler.c: Removed.
12805 * normal/main.c (read_config_file): Remove parser changing.
12806 (grub_normal_execute): Don't call read_handler_list.
12807 (grub_normal_read_line_real): Statically allocate prompt.
12808 (grub_cmdline_run): Use grub_normal_parse_line.
12809 (GRUB_MOD_FINI): Don't call free_handler_list.
12810 * normal/menu_entry.c (run): Likewise.
12811 * script/function.c (grub_script_function_list): Make global.
12812 (grub_script_function_iterate): Removed.
12813 * script/main.c (grub_normal_parse_line): Make global.
12814 (grub_sh_parser): Removed.
12815 (GRUB_MOD_INIT): Likewise.
12816 (GRUB_MOD_FINI): Likewise.
12817 * tests/lib/functional_test.c (grub_functional_test): Use
12819 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
12820 (grub_test_run): Use FOR_LIST_ELEMENTS.
12821 * tests/lib/unit_test.c (main): Likewise.
12822 * util/deviceiter.c (grub_util_iterate_devices): Don't use
12824 * util/grub-fstest.c (grub_term_input_class): Removed.
12825 (grub_term_output_class): Likewise.
12826 * util/grub-probe.c: Likewise.
12827 * util/i386/pc/grub-setup.c: Likewise.
12828 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12829 * util/grub-script-check.c (main): Don't call grub_init_all and
12831 * video/video.c (grub_video_adapter_list): Make global.
12832 (grub_video_register): Removed.
12833 (grub_video_unregister): Likewise.
12834 (grub_video_iterate): Likewise.
12836 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
12838 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
12839 reported by Henrique Ferreiro.
12841 2010-06-09 Robert Millan <rmh@gnu.org>
12843 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
12844 ones, when both are available.
12846 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12848 Make --version uniform and avoid hard-coded program name.
12850 * util/grub-mkimage.c (main): Use `program_name' instead of
12852 * util/i386/pc/grub-setup.c (main): Likewise.
12853 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
12854 * util/grub-install.in: Save the basename of $0 in $self, and use the
12855 latter in informational messages. Use the same format for --version
12856 as the binary programs.
12857 * util/grub-mkconfig.in: Likewise.
12858 * util/grub-mkrescue.in: Likewise.
12859 * util/grub-reboot.in: Likewise.
12860 * util/grub-set-default.in: Likewise.
12861 * util/i386/efi/grub-install.in: Likewise.
12862 * util/ieee1275/grub-install.in: Likewise.
12863 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12865 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12867 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
12868 embedding area. Use <= instead of == when checking for non-emptiness.
12870 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12872 * configure.ac: Add `.' to the directories searched for unifont.
12874 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12876 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
12879 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12881 * docs/grub.texi (History): Expand to cover GRUB 2.
12882 (Serial terminal): Refer to `terminal_input' and `terminal_output'
12883 commands, not `terminal'.
12884 (serial): Likewise.
12885 (terminal_input): New section.
12886 (terminal_output): New section.
12887 (uppermem): New section (stub).
12888 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
12890 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12892 * docs/grub.texi (Security): Menu entries are unrestricted by
12893 default, not restricted to superusers as I had previously thought.
12894 Reword to account for this.
12896 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12898 * kern/emu/misc.c (device_mapper_null_log): New function.
12899 (grub_device_mapper_supported): New function.
12900 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
12902 * kern/emu/hostdisk.c (find_partition_start): Check whether
12903 device-mapper is supported before trying to use it.
12904 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
12906 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12908 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
12909 (File name syntax): Likewise.
12910 (help): --all is no longer supported in GRUB 2. Be more precise
12911 about pattern matching.
12913 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12915 * normal/completion.c (grub_normal_do_completion): When completing
12916 arguments to "set" and the current word contains an equals sign,
12917 skip to after the equals sign before starting completion.
12919 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12921 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
12923 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12925 * docs/grub.texi (Network): New section.
12926 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
12927 `(nd)' as in GRUB Legacy.
12928 (pxe_unload): New section.
12930 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12932 * docs/grub.texi (Troubleshooting): `echo' is not usually available
12933 in the rescue shell, so recommend using `set' instead. Thanks,
12936 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12938 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
12939 (password): New section.
12940 (password_pbkdf2): New section.
12941 (search): New section.
12942 (Security): New section.
12943 (Troubleshooting): New section, currently very incomplete.
12944 (Invoking grub-mkpasswd-pbkdf2): New section.
12945 (Internals): New section, currently very incomplete.
12947 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12949 * util/grub.d/00_header.in: Add some more quoting (of
12950 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
12952 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
12954 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12956 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
12957 to `count', fixing variable shadowing that broke the -c option.
12959 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
12961 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
12962 in case they contain spaces.
12964 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12966 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
12967 "part_" to partmap module names, in line with grub-install.
12968 Reported by: Jindřich Makovička (Debian bug #584426).
12970 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12972 * util/grub-mkimage.c: Make target-related error messages slightly
12973 more helpful; -O talks about "format". Explicitly point to the use
12974 of -O if no target is specified.
12975 Reported by: Didier Raboud (Debian bug #584415).
12977 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
12979 * INSTALL: Document several build requirements for optional features
12980 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
12982 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12984 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
12985 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
12986 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
12988 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12990 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
12991 Thanks to Jordan Uggla for spotting this.
12993 2010-06-02 Aleš Nesrsta <starous@volny.cz>
12995 Finally make USB usable.
12997 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
12998 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
12999 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13000 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13001 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13002 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13003 (GRUB_OHCI_FSMPS): Likewise.
13004 (GRUB_OHCI_PERIODIC_START): Likewise.
13005 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13006 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13007 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13008 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13009 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13010 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13011 (grub_ohci_transaction): Likewise.
13012 (grub_ohci_transfer): Improve condition detection algorithms.
13013 Handle toggle property. Program the transactions correctly.
13014 Improve error handling. Various important fixups.
13015 (grub_ohci_portstatus): Put register writes in right order.
13016 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13017 (grub_uhci_transfer): Don't show "failed" message on success.
13018 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13020 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13021 determine its size.
13022 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13023 before initialization is completed. Use IN direction for empty
13024 transfers. Use last_trans and compute toggle.
13025 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13026 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13027 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13028 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13029 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13030 (grub_usb_device): Increase toggle to 256.
13031 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13032 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13033 GRUB_USBMS_SUBCLASS_SFF8070.
13034 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13035 (grub_scsi_inquiry): New member page and alloc_length.
13036 (grub_scsi_request_sense): New structure.
13037 (grub_scsi_request_sense_data): Likewise.
13038 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13040 * disk/scsi.c (grub_scsi_request_sense): New function.
13041 (grub_scsi_test_unit_ready): Likewise.
13042 (grub_scsi_inquiry): Fill new fields.
13043 (grub_scsi_read_capacity): Likewise.
13044 (grub_scsi_read10): Add request sense at the end.
13045 (grub_scsi_read12): Likewise.
13046 (grub_scsi_write10): Likewise.
13047 (grub_scsi_write12): Likewise.
13048 (grub_scsi_open): Add Test Unit Ready.
13049 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13050 Support additional subclasses. Con't clear halt yet. Activate the
13051 proper config. Calculate LUNs correctly.
13052 (grub_usbms_transfer): Various important fixups.
13054 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13056 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13057 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13058 (grub_ohci_fini_hw): New function.
13059 (grub_ohci_restore_hw): Likewise.
13060 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13061 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13062 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13064 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13066 Dedicated DMA allocations.
13068 * bus/pci.c (grub_memalign_dma32): New function
13069 (grub_dma_free): Likewise.
13070 (grub_dma_get_virt): Likewise.
13071 (grub_dma_get_phys): Likewise.
13072 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13073 (grub_ohci_pci_iter): Use dma32_alloc.
13074 (grub_ohci_transfer): Likewise.
13075 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13076 (grub_usb_bulk_readwrite): Likewise.
13077 * include/grub/pci.h: Add declarations.
13079 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13083 * bus/cs5536.c: New file.
13084 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13085 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13086 (cs5536_mod_SOURCES): New variable.
13087 (cs5536_mod_CFLAGS): Likewise.
13088 (cs5536_mod_LDFLAGS): Likewise.
13089 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13091 (kernel_img_SOURCES): Add bus/cs5536.c.
13092 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13094 (usb_mod_SOURCES): New variable.
13095 (usb_mod_CFLAGS): New variable.
13096 (usb_mod_LDFLAGS): New variable.
13097 (usbtest_mod_SOURCES): New variable.
13098 (usbtest_mod_CFLAGS): New variable.
13099 (usbtest_mod_LDFLAGS): New variable.
13100 (ohci_mod_SOURCES): New variable.
13101 (ohci_mod_CFLAGS): New variable.
13102 (ohci_mod_LDFLAGS): New variable.
13103 (usbms_mod_SOURCES): New variable.
13104 (usbms_mod_CFLAGS): New variable.
13105 (usbms_mod_LDFLAGS): New variable.
13106 (usb_keyboard_mod_SOURCES): New variable.
13107 (usb_keyboard_mod_CFLAGS): New variable.
13108 (usb_keyboard_mod_LDFLAGS): New variable.
13109 * include/grub/smbus.h: New file.
13110 * include/grub/cs5536.h: New file.
13112 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13114 * util/grub.d/00_header.in: Add safety check to make sure that
13115 ${locale_dir} exists before trying to probe it.
13117 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13119 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13120 per the GNU Coding Standards; this is now too obscure to be worth
13123 (chainloader): Remove cross-reference to `SCO UnixWare'.
13125 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13127 * docs/grub.texi (Chain-loading): New section.
13128 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13129 adjusted for GRUB 2.
13130 (SCO UnixWare): Likewise.
13132 (chainloader): Add reference to `Block list syntax'.
13133 (drivemap): New section.
13134 (parttool): New section.
13136 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13138 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13140 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13141 (Installing GRUB using grub-install): Remove reference to the grub
13142 shell; mention `grub-mkimage' and `grub-setup' instead.
13143 (Invoking grub-install): Likewise.
13144 (Interface): Add reference to `Menu entry editor'.
13145 (serial): Remove `--device' option.
13147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13149 * docs/grub.texi (Configuration): New section, documenting
13150 configuration file generation using grub-mkconfig. I've left a slot
13151 for documenting the full shell scripting format but have not yet
13152 started on writing that up.
13153 (Invoking grub-mkconfig): New section.
13155 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13157 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13158 (GNU GRUB manual): Likewise.
13159 (General commands): Update description of `terminfo' for GRUB 2.
13161 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13163 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13164 (GRUB_MOD_INIT): Fix capitalisation.
13165 * docs/grub.texi (Command-line and menu entry commands): Document
13166 gettext and gptsync commands.
13168 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13170 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13171 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13173 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13175 Add btrfs probing support, currently only in the single-device case.
13177 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13179 (grub_guess_root_device): Call find_root_device_from_mountinfo
13180 before looking in /dev.
13182 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13185 GRUB_DISK_SIZE_UNKNOWN.
13186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13188 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13190 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13191 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13192 corrupted or not synced properly.
13194 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13196 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13197 Reported by: Seth Goldberg.
13199 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13201 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13203 Reported by: Seth Goldberg.
13205 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13207 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13208 Reported by: Seth Goldberg.
13210 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13212 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13213 64-bit address as signed on MIPS.
13215 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13217 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13218 to the empty string.
13220 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13222 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13224 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13225 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13226 * kern/misc.c (__enable_execute_stack): Disable on
13229 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13231 Make grub-probe work with symbolic links under /dev/mapper as well
13232 as with real block devices. The Linux world seems to be (at best)
13233 in transition here, and GRUB shouldn't get caught in the middle.
13235 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13238 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13240 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13241 input files (in which case exit zero).
13243 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13245 * kern/emu/misc.c (canonicalize_file_name): realpath can still
13246 return NULL for various reasons even if it has a maximum-length
13247 buffer: for example, there might be a symlink loop, or the path
13248 might exceed PATH_MAX. If this happens, return NULL.
13250 2010-05-27 Robert Millan <rmh@gnu.org>
13252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
13253 partmap module to handle cross-partmap setups.
13254 Reported by Orestes Mas. Gràcies!
13256 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13258 * util/grub-mkrescue.in: Initialise override_dir rather than
13259 assuming that it's unset or empty in the environment.
13261 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13263 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13264 variable index into p_index to suppress a warning with -Wshadow.
13266 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13268 * INSTALL: Added flex >= 2.5.35 requirement.
13270 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13272 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13274 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13278 * commands/i386/cmostest.c: New file.
13279 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
13280 (cmostest_mod_SOURCES): New variable.
13281 (cmostest_mod_CFLAGS): Likewise.
13282 (cmostest_mod_LDFLAGS): Likewise.
13283 * conf/i386-pc.rmk: Likewise.
13284 * docs/grub.texi (Vendor power-on keys): New section.
13285 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
13286 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
13287 and GRUB_BUTTON_CMOS_ADDRESS.
13288 * util/grub.d/00_header.in: Handle powering-on by separate button.
13290 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13292 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
13293 Removed drawing_scrollbar argument. All users updated
13295 Reported by Jo Shields
13297 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13299 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
13300 buffer since gfxterm handles double repaint.
13302 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13304 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
13305 * term/gfxterm.c (real_scroll): Likewise.
13307 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13309 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
13310 before calling BIOS.
13312 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13314 * include/grub/i18n.h: Always enable grub_gettext.
13316 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13318 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
13319 partition naming style.
13321 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
13323 * util/grub-mkconfig.in: Fix handling of -o so that it works when
13324 not the first option.
13326 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13328 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
13330 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13332 * util/misc.c: Move inclusion of <limits.h> to ...
13333 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
13335 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
13337 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
13338 Fix merge error in NetBSD code.
13339 (find_partition_start) [__NetBSD__]: Likewise.
13341 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
13343 Fix grub-mkrescue usage unit testing.
13345 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
13347 2010-05-18 Christian Franke <franke@computer.org>
13349 * util/grub.d/10_windows.in: Use path names instead of
13350 drive letters to prevent warning from Cygwin 1.7.
13351 Add drivemap command to menuentry if needed.
13353 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
13355 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
13356 gnumach and gnumach.gz.
13358 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13360 * include/grub/i18n.h (gettext): Inline instead of using #define.
13361 (grub_gettext): Likewise.
13364 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13366 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
13367 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
13368 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
13369 (main): Add a slash after pkglibdirroot.
13371 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13373 * util/grub-install.in: Add missing "in" keyword.
13375 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13377 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
13378 Reported by: Seth Goldberg.
13380 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13382 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
13384 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13386 * configure.ac: Check for Linux device-mapper support.
13388 * util/hostdisk.c (device_is_mapped): New function.
13389 (find_partition_start): New function, partly broken out from
13390 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
13391 device-mapper support added.
13392 (linux_find_partition): Use find_partition_start.
13393 (convert_system_partition_to_system_disk): Add `st' argument.
13394 Support Linux /dev/mapper/* devices if device-mapper support is
13395 available; only DM-RAID devices are understood at present.
13396 (find_system_device): Add `st' argument. Pass it to
13397 convert_system_partition_to_system_disk.
13398 (grub_util_biosdisk_get_grub_dev): Pass stat result to
13399 find_system_device and convert_system_partition_to_system_disk. Use
13400 find_partition_start.
13402 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
13403 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
13404 * util/deviceiter.c [__linux__]: Define MINOR.
13405 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
13406 * util/mkdevicemap.c (grub_putchar): New function.
13407 (grub_getkey): New function.
13408 (grub_refresh): New function.
13409 (main): Set debug=all if -v -v is used.
13411 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13413 Fix build with non-GNU libcs.
13415 * util/misc.c (canonicalize_file_name): Move to ...
13416 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
13417 grub_make_system_path_relative_to_its_root.
13419 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13421 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
13422 we handle finding grub-mkimage. Default to finding grub-mkimage in
13423 ${bindir} with program_transform_name applied, and provide a
13424 --grub-mkimage option to override this.
13426 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13428 Remove grub-mkisofs.
13430 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
13431 (grub_mkisofs_SOURCES): Removed.
13432 (grub_mkisofs_CFLAGS): Removed.
13433 * util/mkisofs/defaults.h: Removed.
13434 * util/mkisofs/eltorito.c: Likewise.
13435 * util/mkisofs/exclude.h: Likewise.
13436 * util/mkisofs/hash.c: Likewise.
13437 * util/mkisofs/include/: Likewise.
13438 * util/mkisofs/include/fctldefs.h: Likewise.
13439 * util/mkisofs/include/mconfig.h: Likewise.
13440 * util/mkisofs/include/prototyp.h: Likewise.
13441 * util/mkisofs/include/statdefs.h: Likewise.
13442 * util/mkisofs/iso9660.h: Likewise.
13443 * util/mkisofs/joliet.c: Likewise.
13444 * util/mkisofs/match.c: Likewise.
13445 * util/mkisofs/match.h: Likewise.
13446 * util/mkisofs/mkisofs.c: Likewise.
13447 * util/mkisofs/mkisofs.h: Likewise.
13448 * util/mkisofs/msdos_partition.h: Likewise.
13449 * util/mkisofs/multi.c: Likewise.
13450 * util/mkisofs/name.c: Likewise.
13451 * util/mkisofs/rock.c: Likewise.
13452 * util/mkisofs/tree.c: Likewise.
13453 * util/mkisofs/write.c: Likewise.
13455 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13457 Unify grub-mkimage accross platforms.
13459 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
13460 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
13461 (grub_mkelfimage_SOURCES): Removed.
13462 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
13463 (util/grub-mkimage.c_DEPENDENCIES): .. this.
13464 (bin_UTILITIES): Add grub-mkimage.
13465 (grub_mkimage_SOURCES): New variable.
13466 (kernel_img_HEADERS): Remove machine/kernel.h.
13467 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
13468 (pkglib_PROGRAMS): Add kernel.img.
13469 (kernel_img_HEADERS): Add machine/kernel.h.
13470 (kernel_img_FORMAT): Removed.
13471 (bin_UTILITIES): Remove grub-mkimage.
13472 (grub_mkimage_SOURCES): Removed.
13473 (grub_mkimage_CFLAGS): Likewise.
13474 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13475 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
13476 (pkglib_PROGRAMS): Add kernel.img.
13477 (bin_UTILITIES): Remove grub-mkimage.
13478 (grub_mkimage_SOURCES): Removed.
13479 (grub_mkimage_CFLAGS): Likewise.
13480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13481 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
13482 (pkglib_PROGRAMS): Add kernel.img.
13483 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
13484 (pkglib_PROGRAMS): Add kernel.img.
13485 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
13486 (grub_mkimage_SOURCES): Removed.
13487 (grub_mkimage_CFLAGS): Likewise.
13488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13489 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
13490 (pkglib_PROGRAMS): Add kernel.img.
13491 (bin_UTILITIES): Remove grub-mkimage.
13492 (grub_mkimage_SOURCES): Removed.
13493 (grub_mkimage_CFLAGS): Likewise.
13494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13495 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
13496 (grub_mkimage_SOURCES): Removed.
13497 (grub_mkimage_CFLAGS): Likewise.
13498 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13499 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
13500 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
13501 (grub_pe32_optional_header): ... this.
13502 (grub_pe64_optional_header): ... and this. All users updated.
13503 (GRUB_PE32_PE32_MAGIC): Split into ..
13504 (GRUB_PE32_PE32_MAGIC): .. this.
13505 (GRUB_PE32_PE64_MAGIC): .. and this.
13506 (GRUB_PE32_SIGNATURE_SIZE): New definition.
13507 * include/grub/elf.h (PT_GNU_STACK): New definition.
13508 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
13509 * include/grub/i386/efi/kernel.h: Likewise.
13510 * include/grub/i386/kernel.h: Likewise.
13511 * include/grub/i386/pc/kernel.h: Likewise.
13512 * include/grub/i386/qemu/boot.h: Likewise.
13513 * include/grub/mips/kernel.h: Likewise.
13514 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13515 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13516 * include/grub/powerpc/kernel.h: Likewise.
13517 * include/grub/sparc64/ieee1275/boot.h: Likewise.
13518 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13519 * include/grub/sparc64/kernel.h: Likewise.
13520 * include/grub/x86_64/efi/kernel.h: Likewise.
13521 * include/grub/x86_64/kernel.h: Likewise.
13522 * include/grub/offsets.h: New file.
13523 * include/grub/kernel.h (grub_module_info): Split into ...
13524 (grub_module_info32): ... this.
13525 (grub_module_info64): ... and this.
13526 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
13527 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
13528 (grub_boot_blocklist): Moved from here ...
13529 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
13530 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
13531 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
13532 * include/grub/types.h (grub_target_to_host16): Removed.
13533 (grub_target_to_host32): Likewise.
13534 (grub_target_to_host64): Likewise.
13535 (grub_host_to_target16): Likewise.
13536 (grub_host_to_target32): Likewise.
13537 (grub_host_to_target64): Likewise.
13538 (grub_host_to_target_addr): Likewise.
13540 Support grub-mkrescue for efi, coreboot and qemu.
13542 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
13543 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
13544 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
13545 * util/grub-mkrawimage.c: Moved from here ...
13546 * util/grub-mkimage.c: ... here. All users updated.
13547 (ALIGN_ADDR): Use image_target.
13548 (TARGET_NO_FIELD): New const.
13549 (image_target_desc): New type.
13550 (image_targets): New array.
13551 (grub_target_to_host64): Use image_target.
13552 (grub_target_to_host32): Likewise.
13553 (grub_target_to_host16): Likewise.
13554 (grub_host_to_target64): Likewise.
13555 (grub_host_to_target32): Likewise.
13556 (grub_host_to_target16): Likewise.
13557 (grub_host_to_target_addr): Likewise.
13558 (generate_image): Handle multiimage.
13559 (main): Require -O parameter. All users updated.
13560 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
13561 util/efi/grub-mkimage.c
13562 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
13563 New option --rom-directory.
13565 * util/i386/efi/grub-mkimage.c: Removed.
13566 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
13567 (grub_target_to_host32): Likewise.
13568 (grub_target_to_host64): Likewise.
13569 (grub_host_to_target16): Likewise.
13570 (grub_host_to_target32): Likewise.
13571 (grub_host_to_target64): Likewise.
13572 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
13573 (grub_target_to_host32): Likewise.
13574 (grub_target_to_host64): Likewise.
13575 (grub_host_to_target16): Likewise.
13576 (grub_host_to_target32): Likewise.
13577 (grub_host_to_target64): Likewise.
13579 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
13581 Source tree is reorganized for emu build.
13583 * include/grub/util/console.h: Move from here...
13584 * include/grub/emu/console.h: ...to here.
13585 * include/grub/util/getroot.h: Move from here...
13586 * include/grub/emu/getroot.h: ...to here.
13587 * include/grub/util/hostdisk.h: Move from here...
13588 * include/grub/emu/hostdisk.h: ...to here.
13589 * util/console.c: Move from here...
13590 * kern/emu/console.c: ...to here.
13591 * util/getroot.c: Move from here...
13592 * kern/emu/getroot.c: ...to here.
13593 * util/grub-emu.c: Move from here...
13594 * kern/emu/main.c: ...to here.
13595 * util/hostdisk.c: Move from here...
13596 * kern/emu/hostdisk.c: ...to here.
13597 * util/hostfs.c: Move from here...
13598 * kern/emu/hostfs.c: ...to here.
13599 * util/mm.c: Move from here...
13600 * kern/emu/mm.c: ...to here.
13601 * util/pci.c: Move from here...
13602 * bus/emu/pci.c: ...to here.
13603 * util/sdl.c: Move from here...
13604 * video/emu/sdl.c: ...to here.
13605 * util/time.c: Move from here...
13606 * kern/emu/time.c: ...to here.
13607 * util/usb.c: Move from here...
13608 * bus/usb/emu/usb.c: ...to here.
13610 * include/grub/emu/misc.h: New header for grub-emu functions.
13611 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
13613 * conf/any-emu.rmk: Rule updates for above renames.
13614 * conf/common.rmk: Likewise.
13615 * conf/i386-pc.rmk: Likewise.
13616 * conf/i386-qemu.rmk: Likewise.
13617 * conf/mips.rmk: Likewise.
13618 * conf/sparc64-ieee1275.rmk: Likewise.
13619 * conf/x86-efi.rmk: Likewise.
13621 * disk/lvm.h: #include updates for above renames.
13622 * util/grub-mkrelpath.c: Likewise.
13623 * util/grub-probe.c: Likewise.
13624 * util/i386/pc/grub-setup.c: Likewise.
13625 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13626 * kern/emu/console.c: Likewise.
13627 * kern/emu/getroot.c: Likewise.
13628 * kern/emu/hostdisk.c: Likewise.
13629 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
13631 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
13632 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
13633 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
13634 * util/misc.c: Remove grub-emu functions.
13636 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13639 Reported by: Thorsten Grützmacher.
13641 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
13643 (circprog_set_property): Register and unregister timeout hook.
13644 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
13645 (label_destroy): Free template. and unregister hook.
13646 (label_set_state): New function.
13647 (label_set_property): Handle templates and hooks.
13648 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
13650 (progress_bar_set_property): Register and unregister timeout hook.
13651 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
13652 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
13653 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
13654 (update_timeout_visit): Removed.
13655 (update_timeouts): New function.
13656 (redraw_timeouts): Likewise.
13657 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
13658 (grub_gfxmenu_clear_timeout): Likewise.
13659 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
13660 (grub_gfxmenu_timeout_notify): Likewise.
13661 (grub_gfxmenu_timeout_notifications): New external variable.
13662 (grub_gfxmenu_timeout_register): New function.
13663 (grub_gfxmenu_timeout_unregister): Likewise.
13665 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13667 Transform (broken) vga terminal into (working) vga video driver.
13669 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
13670 video/i386/pc/vga.c.
13671 * include/grub/video.h (grub_video_driver_id):
13672 Add GRUB_VIDEO_DRIVER_VGA.
13673 * term/i386/pc/vga.c: Renamed to ...
13674 * video/i386/pc/vga.c: ...this
13675 (DEBUG_VGA): Removed.
13676 (CHAR_WIDTH): Likewise.
13677 (CHAR_HEIGHT): Likewise.
13678 (TEXT_WIDTH): Likewise.
13679 (TEXT_HEIGHT): Likewise.
13680 (DEFAULT_FG_COLOR): Likewise.
13681 (DEFAULT_BG_COLOR): Likewise.
13682 (colored_char): Likewise.
13685 (cursor_state): Likewise.
13686 (fg_color): Likewise.
13687 (bg_color): Likewise.
13688 (text_buf): Likewise.
13691 (framebuffer): New variable.
13692 (set_read_map): Disabled.
13693 (setup): New variable.
13694 (is_target): Likewise.
13695 (grub_vga_mod_init): Likewise.
13696 (grub_vga_mod_fini): Likewise.
13697 (check_vga_mem): Likewise.
13698 (write_char): Likewise.
13699 (write_cursor): Likewise.
13700 (scroll_up): Likewise.
13701 (grub_vga_putchar): Likewise.
13702 (grub_vga_getcharwidth): Likewise.
13703 (grub_vga_getwh): Likewise.
13704 (grub_vga_getxy): Likewise.
13705 (grub_vga_gotoxy): Likewise.
13706 (grub_vga_cls): Likewise.
13707 (grub_vga_setcolorstate): Likewise.
13708 (grub_vga_setcursor): Likewise.
13709 (grub_video_vga_init): New function.
13710 (grub_video_vga_setup): Likewise.
13711 (grub_video_vga_fini): Likewise.
13712 (update_target): Likewise.
13713 (grub_video_vga_blit_bitmap): Likewise.
13714 (grub_video_vga_blit_render_target): Likewise.
13715 (grub_video_vga_set_active_render_target): Likewise.
13716 (grub_video_vga_get_active_render_target): Likewise.
13717 (grub_video_vga_swap_buffers): Likewise.
13718 (grub_video_vga_set_palette): Likewise.
13719 (grub_video_vga_get_info_and_fini): Likewise.
13720 (grub_vga_term): Removed.
13721 (grub_video_vga_adapter): New variable.
13722 (GRUB_MOD_INIT): Register a video driver instead of terminal.
13723 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
13725 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13727 * video/readers/jpeg.c: Indented.
13729 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13731 Various jpeg cleanups.
13733 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
13734 (grub_jpeg_decode_quan_table): Use sizeof.
13735 (grub_jpeg_decode_du): Use ARRAY_SIZE.
13737 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
13739 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
13740 tables. Ignore non-last ac bit.
13741 (grub_jpeg_decode_quan_table): Likewise.
13743 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
13746 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
13747 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13748 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
13749 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
13750 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
13752 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13754 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
13757 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
13761 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13763 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
13766 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13768 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
13771 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13773 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
13776 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13778 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
13780 2010-05-01 Christian Franke <franke@computer.org>
13782 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
13783 Remove broken Cygwin path conversion.
13784 * util/misc.c: [__CYGWIN__] Add include and define.
13785 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
13787 (make_system_path_relative_to_its_root): Simplify loop, replace early
13789 [__CYGWIN__] Add conversion to win32 path.
13790 Include "/" case in trailing slash removal.
13792 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13794 * kern/main.c (grub_load_config): Fix copy-pasted comment.
13795 Reported by: Seth Goldberg
13797 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13799 * commands/help.c (grub_cmd_help): Fix a typo.
13800 Reported by: Seth Goldberg
13802 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13804 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
13806 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
13807 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
13808 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
13809 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
13810 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
13811 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
13812 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13813 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13814 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13815 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13816 * normal/context.c (GRUB_MOD_INIT): Likewise.
13817 * normal/main.c (GRUB_MOD_INIT): Likewise.
13818 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13819 * term/serial.c (GRUB_MOD_INIT): Likewise.
13820 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13822 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13824 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
13827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13829 * commands/iorw.c: New file.
13830 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
13831 (iorw_mod_SOURCES): New variable.
13832 (iorw_mod_CFLAGS): Likewise.
13833 (iorw_mod_LDFLAGS): Likewise.
13835 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13839 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
13840 * normal/main.c (hotkey_aliases): New variable.
13841 (grub_normal_add_menu_entry): Parse "--hotkey".
13842 * normal/menu_text.c (run_menu): Handle hotkeys.
13844 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13846 * kern/i386/coreboot/init.c (grub_machine_init): Call
13847 grub_machine_mmap_init on qemu.
13849 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13851 * boot/i386/qemu/boot.S: Add a missing .code16.
13853 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13855 Use LBIO on coreboot.
13857 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
13858 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
13859 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
13861 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
13862 grub_machine_mmap_init on coreboot.
13863 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
13864 GRUB_LINUXBIOS_MEMBER_LINK.
13865 (grub_machine_mmap_iterate): Fix declaration.
13866 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
13868 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13870 Split coreboot and multiboot ports.
13872 * conf/i386-multiboot.rmk: New file.
13873 * configure.ac: Add multiboot port.
13874 * include/grub/i386/multiboot/boot.h: New file.
13875 * include/grub/i386/multiboot/console.h: Likewise.
13876 * include/grub/i386/multiboot/init.h: Likewise.
13877 * include/grub/i386/multiboot/kernel.h: Likewise.
13878 * include/grub/i386/multiboot/loader.h: Likewise.
13879 * include/grub/i386/multiboot/memory.h: Likewise.
13880 * include/grub/i386/multiboot/serial.h: Likewise.
13881 * include/grub/i386/multiboot/time.h: Likewise.
13882 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
13883 * loader/multiboot.c: Likewise.
13884 * loader/multiboot_mbi2.c: Likewise.
13885 * util/grub-mkrescue.in: Generate multiboot rescue.
13887 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13889 * kern/parser.c (grub_parser_execute): Cope with read-only config.
13891 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13893 Merge handling of input and output terminals. Fix a hang.
13895 * commands/terminal.c (abstract_terminal): New struct.
13896 (handle_command): New function. Based on grub_cmd_terminal_input.
13897 (grub_cmd_terminal_input): Use handle_command.
13898 (grub_cmd_terminal_output): Use handle_command.
13900 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
13902 Fix comment handling.
13904 * tests/grub_script_comments.in: New testcase.
13905 * conf/tests.rmk: Rules for new testcase.
13906 * script/yylex.l: Updated flex rules.
13908 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13910 * docs/grub.texi (play): Document that zero pitches produce rests.
13911 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
13914 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13916 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
13919 2010-04-26 Christian Franke <franke@computer.org>
13921 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
13922 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
13923 (grub_get_prefix): Remove function.
13924 * util/grub-emu.c (main): Replace grub_get_prefix () call by
13925 make_system_path_relative_to_its_root ().
13926 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
13928 2010-04-24 Christian Franke <franke@computer.org>
13930 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
13931 (kernel_img_LDFLAGS): Remove -static-libgcc.
13933 2010-04-24 Christian Franke <franke@computer.org>
13935 * configure.ac: Do not CHECK_BSS_START_SYMBOL
13936 and CHECK_END_SYMBOL if grub-emu is built.
13937 Unset TARGET_OBJ2ELF if grub-emu is built
13938 without module support.
13940 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
13944 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
13945 (grub_fstest_SOURCES): Likewise.
13946 (pkglib_MODULES): Add nilfs2.mod.
13947 (nilfs2_mod_SOURCES): New variable.
13948 (nilfs2_mod_CFLAGS): Likewise.
13949 (nilfs2_mod_LDFLAGS): Likewise.
13950 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
13951 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
13952 * fs/nilfs2.c: New file.
13954 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
13956 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
13959 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
13961 Add grub-mkconfig support for NetBSD.
13963 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
13964 * util/grub-mkconfig.in: export new NetBSD specific variables.
13965 * po/POTFILES-shell: added 10_netbsd.in.
13966 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
13968 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
13970 Fix emu build with grub-emu-pci and grub-emu-modules.
13972 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
13974 * include/grub/libpciaccess.h: New file.
13975 * conf/any-emu.rmk: Update kernel headers for emu build.
13977 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13979 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
13981 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13983 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
13985 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13987 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
13988 Retrieve chosen/bootpath if bootpath isn't hardcoded.
13989 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
13990 util/ieee1275/ofpath.c.
13991 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
13992 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
13993 * include/grub/sparc64/ieee1275/boot.h
13994 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
13995 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
13996 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
13997 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
13999 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14000 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14001 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14004 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14006 * util/grub-mkconfig.in: Corrected two == equality tests.
14007 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14008 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14009 expect a number appended to it.
14010 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14011 expects a number appended to it.
14013 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14015 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14017 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14019 * util/hostdisk.c (make_device_name): Change to new partition naming.
14021 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14023 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14025 2010-04-17 Christian Franke <franke@computer.org>
14027 * Makefile.in: Add missing localedir setting.
14029 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14031 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14032 mistake in r2156. Noticed by Anthony Fok.
14034 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14036 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14038 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14040 Fix a spurious, uninitialized variable warning.
14042 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14043 Initialize variable, shdr.
14044 (grub_freebsd_load_elfmodule): Likewise.
14045 (grub_freebsd_load_elf_meta): Likewise.
14047 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14049 Fix for escaped dollar in double quoted strings.
14051 * script/yylex.l: Updated flex rules.
14052 * conf/tests.rmk: Rule for new testcase.
14053 * tests/grub_script_dollar.in: New testcase.
14055 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14056 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14058 Enclose all translated strings in grub.cfg in single quotes, and
14059 escape them appropriately (Ubuntu bug #552921).
14061 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14062 * util/grub.d/10_hurd.in: Use it.
14063 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14064 * util/grub.d/10_linux.in (linux_entry): Likewise.
14066 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14068 Fix cygwin compilation.
14070 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14071 * include/grub/misc.h (__register_frame_info)
14072 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14073 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14074 * kern/misc.c (__register_frame_info)
14075 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14076 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14078 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14080 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14082 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14084 Unify libgcc processing.
14086 * Makefile.in (kernel_img_LDFLAGS): New variable.
14087 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14088 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14090 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14091 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14092 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14093 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14094 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14095 overwriting. Remove -lgcc and -static-libgcc
14096 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14097 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14098 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14099 (kernel_img_LDFLAGS): Append instead of overwriting.
14100 Remove -lgcc and -static-libgcc
14101 * conf/sparc64-ieee1275.rmk: Likewise.
14102 * include/grub/powerpc/libgcc.h: Move to ...
14103 * include/grub/libgcc.h: .. this.
14104 * include/grub/libgcc.h: Don't export most of the function on x86.
14105 (__bswapsi2): New export.
14106 (__bswapdi2): Likewise.
14107 * include/grub/mips/libgcc.h: Removed.
14108 * include/grub/sparc64/libgcc.h: Likewise.
14110 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14112 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14113 disk_info_msg (conflicts with gettexting into languages with cases).
14115 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14117 Add grub-probe support for NetBSD.
14119 * util/getroot.c (find_root_device): Convert block device to
14120 character device on NetBSD.
14121 * util/probe.c (probe): Require character device on NetBSD.
14122 * util/hostdisk.c: NetBSD specific headers.
14123 (configure_device_driver): new function to tune device driver
14124 parameters (currently only for NetBSD floppy driver).
14125 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14126 via disklabel ioctl).
14127 (open_device): call configure_device_driver on NetBSD.
14128 (convert_system_partition_to_system_disk): NetBSD specific code.
14129 (device_is_wholedisk): Likewise.
14130 (grub_util_biosdisk_get_grub_dev): Likewise.
14131 (make_device_name): Fixed a typo in bsd_part_str.
14132 * configure.ac: check for opendisk() and getrawpartition() on
14133 NetBSD and set LIBUTIL.
14134 * Makefile.in: add LIBUTIL to LIBS.
14136 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14140 * util/grub-script-check.c: Better help message.
14142 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14146 * configure.ac: Flex version check.
14147 * conf/common.rmk: Add -Wno-error to sh.mod.
14148 * script/yylex.l: Remove all #pragma.
14150 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14152 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14154 Reported by: Seth Goldberg.
14156 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14158 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14159 Rename "module" to "module2".
14160 Reported by: Seth Goldberg.
14162 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14164 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14166 Reported by: Seth Goldberg.
14168 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14170 * lib/posix_wrap/locale.h: Add missing file.
14171 Reported by: Seth Goldberg.
14173 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14175 grub-emu module load support.
14177 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14178 NO_DYNAMIC_MODULES switched to this.
14179 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14180 (CFLAGS): Likewise.
14181 * conf/any-emu.rmk: Generate symlist.
14182 (kernel_img_HEADERS): Add util/datetime.h.
14183 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14184 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14185 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14186 kern/$(target_cpu)/cache.S.
14187 * configure.ac (grub-emu-modules): New option.
14188 * genmk.rb: Handle multiple source lists.
14189 * include/grub/sdl.h: New file.
14190 * include/grub/libusb.h: Likewise.
14191 * util/grub-emu.c (main): Hanle (host) root.
14192 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14193 GRUB_ERR_UNKNOWN_DEVICE.
14194 * util/misc.c: Move mm functions to ...
14195 * util/mm.c: ... here. All users updated.
14197 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14199 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14200 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14202 (maintainer-clean): Remove libgcrypt-grub.
14204 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14206 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14208 2010-04-09 EFI Coder <eficoder@hotmail.com>
14210 * normal/menu_text.c (print_message): Clean up the message and show
14211 the Fn information when on EFI
14212 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14214 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14216 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14218 * normal/crypto.c (read_crypto_list): Likewise.
14219 * normal/dyncmd.c (read_command_list): Likewise.
14220 * normal/term.c (read_terminal_list): Likewise.
14221 * normal/main.c (read_lists): Use explicit prefix.
14222 (read_lists_hook): Use read_lists.
14223 (grub_normal_execute): Likewise.
14225 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14227 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
14228 Reported by: Thomas Schmitt.
14229 Add -no-emul-boot to grub-mkisofs parameters.
14231 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14233 * font/font.c: Indented.
14235 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14237 Elif support to GRUB script (by Deepak Vankadaru).
14239 * tests/grub_script_if.in: New testcase.
14240 * conf/tests.rmk: Rule for new testcase.
14241 * script/parser.y: Grammar rules for elif.
14243 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14245 While and until loops support to GRUB script.
14247 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
14248 (grub_script_create_cmdwhile): New function prototype.
14249 (grub_script_execute_cmdwhile): New function prototype.
14250 * script/execute.c (grub_script_execute_cmdwhile): New function.
14251 * script/parser.y (command): New commands.
14252 (whilecmd): New grammar rule.
14253 (untilcmd): New grammar rule.
14254 * script/script.c (grub_script_create_cmdwhile): New function.
14255 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
14258 * tests/grub_script_while1.in: New testcase.
14259 * conf/tests.rmk: Rule for new testcase.
14261 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14263 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14266 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14268 GRUB_BACKGROUND support.
14270 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14271 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14273 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14275 Load fonts and modules for gfxmenu in grub-mkconfig.
14276 Idea by: Mario Vazquez
14278 * util/grub.d/00_header.in: Load pf2 and image modules.
14280 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14282 grub-mkconfig multiple terminal support.
14284 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14285 * util/grub.d/00_header.in: Likewise.
14287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14289 * Makefile.in: Specify files explicitly instead of using $< and $@ since
14290 we use cd $(srcdir).
14292 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
14294 * util/grub.d/10_linux.in: Only use the first word of
14295 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
14296 spaces in GRUB_DISTRIBUTOR.
14297 * util/grub.d/10_kfreebsd.in: Likewise.
14298 * util/grub.d/10_hurd.in: Likewise.
14300 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
14302 Fix unit testing framework for Qemu 0.12.
14304 * tests/util/grub-shell.in: Remove -serial stdio option.
14306 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14308 POSIX header file wrappers.
14310 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
14312 * lib/posix_wrap/ctype.h: Likewise.
14313 * lib/posix_wrap/errno.h: Likewise.
14314 * lib/posix_wrap/langinfo.h: Likewise.
14315 * lib/posix_wrap/limits.h: Likewise.
14316 * lib/posix_wrap/localcharset.h: Likewise.
14317 * lib/posix_wrap/stdint.h: Likewise.
14318 * lib/posix_wrap/stdio.h: Likewise.
14319 * lib/posix_wrap/stdlib.h: Likewise.
14320 * lib/posix_wrap/string.h: Likewise.
14321 * lib/posix_wrap/sys/types.h: Likewise.
14322 * lib/posix_wrap/unistd.h: Likewise.
14323 * lib/posix_wrap/wchar.h: Likewise.
14324 * lib/posix_wrap/wctype.h: Likewise.
14325 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
14326 (grub_script.yy.h): Likewise.
14327 * script/yylex.l: Remove POSIX emulation #defines.
14328 * Makefile.in (POSIX_CFLAGS): New variable.
14329 (GNULIB_UTIL_CFLAGS): Likewise.
14333 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
14334 (regexp_mod_SOURCES): New variable.
14335 (regexp_mod_CFLAGS): Likewise.
14336 (regexp_mod_LDFLAGS): Likewise.
14337 * commands/regexp.c: New file.
14338 * gnulib/regcomp.c: New file. Imported from gnulib.
14339 * gnulib/regex.c: Likewise.
14340 * gnulib/regex_internal.c: Likewise.
14341 * gnulib/regex_internal.h: Likewise.
14342 * gnulib/regexec.c: Likewise.
14343 * gnulib/regex.h: Likewise.
14345 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14347 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
14348 unsupported video mode types.
14350 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14352 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
14354 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14356 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
14357 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
14359 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14361 Remove unused grub_vga_get_font.
14363 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
14364 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
14366 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14368 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
14369 * include/grub/misc.h: Likewise.
14371 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14373 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
14374 for which failure is fatal.
14376 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14378 * util/grub-install.in: Use mkdir -p to create grub directory.
14379 * util/i386/efi/grub-install.in: Likewise.
14380 * util/ieee1275/grub-install.in: Likewise.
14382 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14384 * Makefile.in (LEX): new variable.
14386 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14388 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
14389 `=' and added double quotes on operands of this equality test.
14391 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14393 * Makefile.in (uninstall): Remove a leftover debug echo.
14394 Reported by: Grégoire Sutre
14396 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14398 MIPS multiboot2 support.
14400 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
14401 (multiboot2_mod_SOURCES): New variable.
14402 (multiboot2_mod_CFLAGS): Likewise.
14403 (multiboot2_mod_LDFLAGS): Likewise.
14404 (multiboot2_mod_ASFLAGS): Likewise.
14405 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
14407 (MULTIBOOT_ENTRY_REGISTER): Likewise.
14408 (MULTIBOOT_MBI_REGISTER): Likewise.
14409 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
14410 (MULTIBOOT_ELF32_MACHINE): Likewise.
14411 (MULTIBOOT_ELF64_MACHINE): Likewise.
14412 * include/grub/mips/multiboot.h: New file.
14413 * include/grub/video.h (grub_video_driver_id): New type
14414 GRUB_VIDEO_DRIVER_SM712.
14415 (grub_video_get_info_and_fini): Export.
14416 (grub_video_get_palette): Likewise.
14417 (grub_video_get_driver_id): Likewise.
14418 * include/multiboot2.h: Resynced with spec.
14419 * loader/i386/multiboot.c: Moved from here ...
14420 * loader/multiboot.c: ... here. All users updated.
14421 (grub_multiboot_boot): Use platform-specific macros.
14422 * loader/i386/multiboot_elfxx.c: Moved from here ...
14423 * loader/multiboot_elfxx.c: ... here. All users updated.
14424 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
14425 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
14426 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
14428 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14430 Import gnulib argp module.
14432 * gnulib/argp-ba.c: New file.
14433 * gnulib/argp-eexst.c: Likewise.
14434 * gnulib/argp-fmtstream.c: Likewise.
14435 * gnulib/argp-fmtstream.h: Likewise.
14436 * gnulib/argp-fs-xinl.c: Likewise.
14437 * gnulib/argp-help.c: Likewise.
14438 * gnulib/argp-namefrob.h: Likewise.
14439 * gnulib/argp-parse.c: Likewise.
14440 * gnulib/argp-pin.c: Likewise.
14441 * gnulib/argp-pv.c: Likewise.
14442 * gnulib/argp-pvh.c: Likewise.
14443 * gnulib/argp-version-etc.c: Likewise.
14444 * gnulib/argp-version-etc.h: Likewise.
14445 * gnulib/argp-xinl.c: Likewise.
14446 * gnulib/argp.h: Likewise.
14448 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14450 * kern/device.c (grub_device_iterate): Clear errors after failed
14453 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14455 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
14456 returned by firmware.
14458 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14460 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
14461 compilation on coreboot and qemu
14463 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14465 * include/multiboot2.h: Resync with spec.
14467 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14469 Multiboot2 tag support
14471 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
14472 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
14473 Remove loader/multiboot_loader.c.
14474 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
14475 (grub_multiboot2_real_boot): Likewise.
14476 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
14477 (grub_get_multiboot_mmap_count): New proto.
14478 (grub_fill_multiboot_mmap): Likewise.
14479 (grub_multiboot_set_video_mode): Likewise.
14480 (grub_multiboot_set_console): Likewise.
14481 (grub_multiboot_load): Likewise.
14482 (grub_multiboot_load_elf): Likewise.
14483 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
14484 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
14485 * include/multiboot.h: Resynced with specification.
14486 * include/multiboot2.h: Resynced with specification.
14487 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
14488 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
14489 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
14490 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
14492 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
14493 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
14494 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
14496 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
14498 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
14499 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14501 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
14502 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
14503 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
14505 * loader/i386/multiboot_mbi2.c: New file.
14507 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14509 Resync with gnulib.
14511 * Makefile.in (GNULIB_CFLAGS): New variable.
14512 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
14513 (grub_script_check_CFLAGS): New variable.
14514 * gnulib/alloca.h: Resync with gnulib.
14515 * gnulib/error.c: Likewise.
14516 * gnulib/error.h: Likewise.
14517 * gnulib/fnmatch.c: Likewise.
14518 * gnulib/fnmatch_loop.c: Likewise.
14519 * gnulib/getdelim.c: Likewise.
14520 * gnulib/getline.c: Likewise.
14521 * gnulib/getopt.c: Likewise.
14522 * gnulib/getopt1.c: Likewise.
14523 * gnulib/getopt_int.h: Likewise.
14524 * gnulib/gettext.h: Likewise.
14525 * gnulib/progname.c: Likewise.
14526 * gnulib/progname.h: Likewise.
14528 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14530 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14531 which is the case with --disabled-nls.
14533 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
14534 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
14535 * util/misc.c: Likewise.
14536 * util/mkisofs/mkisofs.c: Likewise.
14537 * util/mkisofs/mkisofs.h: Likewise.
14539 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14541 Simplify Apple CC support.
14543 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
14544 Add 0 byte at the end not to have a symbol with empty target.
14545 * mmap/i386/pc/mmap_helper.S: Likewise.
14546 * genmk.rb: Ignore errors 2030 and 2050.
14547 * kern/i386/pc/startup.S: Use LOCAL when possible.
14549 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
14551 Testcase and the fix for final semicolon on cmdline.
14553 * tests/grub_script_final_semicolon.in: New testcase.
14554 * conf/tests.rmk: Rules for the new testcase.
14555 * script/parser.y: Grammar fix.
14557 2010-03-26 BVK Chaitanya <bvk@localhost>
14559 Blank lines testcase for GRUB script.
14561 * tests/grub_script_blanklines.in: New testcase.
14562 * conf/tests.rmk: Rules for the new testcase.
14564 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14566 Don't use __FILE__.
14568 * genmk.rb: Add -DGRUB_FILE to all C targets.
14569 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
14570 * include/grub/list.h: Likewise.
14571 * include/grub/misc.h: Likewise.
14572 * include/grub/mm.h: Likewise.
14573 * include/grub/test.h: Likewise.
14574 * kern/mm.c: Likewise.
14575 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
14577 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14579 Sunpc partitions support.
14581 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
14582 (grub_fstest_SOURCES): Likewise.
14583 (pkglib_MODULES): Add part_sunpc.mod.
14584 (part_sunpc_mod_SOURCES): New variable.
14585 (part_sunpc_mod_CFLAGS): Likewise.
14586 (part_sunpc_mod_LDFLAGS): Likewise.
14587 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
14588 * partmap/sunpc.c: New file.
14590 2010-03-26 BVK Chaitanya <bvk@localhost>
14592 For loop support to GRUB script.
14594 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
14595 (grub_script_create_cmdfor): New function prototype.
14596 (grub_script_execute_cmdfor): New function prototype.
14597 * script/execute.c (grub_script_execute_cmdfor): New function.
14598 * script/parser.y (command): New for command.
14599 (forcmd): New grammar rule.
14600 * script/script.c (grub_script_create_cmdfor): New function.
14601 * util/grub-script-check.c (grub_script_execute_cmdfor): New
14603 * tests/grub_script_for1.in: New testcase.
14604 * conf/tests.rmk: Rules for new testcase.
14606 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14610 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
14611 'partition' is NULL, grub_partition_get_start already does that.
14612 * commands/loadenv.c (check_blocklists): Likewise.
14613 (write_blocklists): Likewise.
14614 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
14615 (grub_fstest_SOURCES): Likewise.
14616 (pkglib_MODULES): Add part_bsd.mod.
14617 (part_bsd_mod_SOURCES): New variable.
14618 (part_bsd_mod_CFLAGS): Likewise.
14619 (part_bsd_mod_LDFLAGS): Likewise.
14620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
14621 (grub_emu_SOURCES): Likewise.
14622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14623 * include/grub/bsdlabel.h: New file.
14624 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
14626 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
14627 (grub_partition_map_list): New variable.
14628 (grub_partition_map_register): Inline.
14629 (grub_partition_map_unregister): Likewise.
14630 (FOR_PARTITION_MAPS): New macro.
14631 (grub_partition_map_iterate): Removed.
14632 (grub_partition_get_start): Handle nested partitions.
14633 * include/grub/msdos_partition.h: Remove bsd-related entries.
14634 (grub_pc_partition): Remove.
14635 * kern/disk.c (grub_disk_close): Free partition data.
14636 (grub_disk_adjust_range): Handle nested partitions.
14637 * kern/partition.c (grub_partition_map_probe): New function.
14638 (grub_partition_probe): Parse name to number, handle subpartitions.
14639 (get_partmap): New function.
14640 (grub_partition_iterate): Handle subpartitions.
14641 (grub_partition_get_name): Likewise.
14642 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
14643 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
14644 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
14645 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
14647 (acorn_partition_map_probe): Remove.
14648 (acorn_partition_map_get_name): Likewise.
14649 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
14651 Set 'index' to 0 since there can be only one partition entry per sector.
14652 (amiga_partition_map_probe): Remove.
14653 (amiga_partition_map_get_name): Likewise.
14654 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
14656 Set 'offset' and 'index' to real positions of partitions.
14657 (apple_partition_map_probe): Remove.
14658 (apple_partition_map_get_name): Likewise.
14659 * partmap/bsdlabel.c: New file.
14660 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
14662 Allocate 'data' so it can be correctly freed.
14663 Set 'index' to offset inside sector.
14664 (gpt_partition_map_probe): Remove.
14665 (gpt_partition_map_get_name): Likewise.
14666 * partmap/msdos.c (grub_partition_parse): Remove.
14667 (pc_partition_map_iterate): Don't force raw access.
14669 Make 'ext_offset' a local variable.
14670 (pc_partition_map_probe): Remove.
14671 (pc_partition_map_get_name): Remove.
14672 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
14674 (sun_partition_map_probe): Remove.
14675 (sun_partition_map_get_name): Likewise.
14676 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
14677 (grub_pcpart_type): Likewise.
14678 * util/hostdisk.c (open_device): Handle new numbering scheme.
14679 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
14680 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
14681 * util/grub-probe.c (probe_partmap): Handle nested paritions.
14682 * util/grub-install.in: Insert all subpartition modules.
14683 * util/ieee1275/grub-install.in: Likewise.
14685 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
14687 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
14690 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
14692 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
14694 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
14696 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
14697 match where 'make install' puts them.
14698 * util/i386/efi/grub-install.in: Likewise.
14700 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
14702 * .bzrignore: Add gentrigtables, grub-script-check,
14703 grub_script_check_init.c, grub_script_check_init.h, and
14706 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
14708 * kern/parser.c: Indented.
14710 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14712 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
14714 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14716 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
14717 alpha_mask_size == 0 case.
14719 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
14721 GRUB shell lexer and parser improvements.
14723 * conf/any-emu.rmk: Build rule updates.
14724 * conf/common.rmk: Likewise.
14725 * conf/i386-coreboot.rmk: Likewise.
14726 * conf/i386-efi.rmk: Likewise.
14727 * conf/i386-ieee1275.rmk: Likewise.
14728 * conf/i386-pc.rmk: Likewise.
14729 * conf/powerpc-ieee1275.rmk: Likewise.
14730 * conf/x86_64-efi.rmk: Likewise.
14732 * configure.ac: Configure check for flex.
14734 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
14736 (grub_lexer_param): Struct member updates.
14737 (grub_parser_param): Likewise.
14738 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
14739 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
14740 (grub_script_lexer_init): Prototype update.
14741 (grub_script_lexer_record_start): Likewise.
14742 (grub_script_lexer_record_stop): Likewise.
14743 (grub_script_lexer_yywrap): New function prototype.
14744 (grub_script_lexer_fini): Likewise.
14745 (grub_script_execute_argument_to_string): Removed by...
14746 (grub_script_execute_argument_to_argv): ...better version.
14748 * script/execute.c (ROUND_UPTO): New macro.
14749 (grub_script_execute_cmdline): Out of memory fixes.
14750 (grub_script_execute_menuentry): Likewise.
14751 (grub_script_execute_argument_to_string): Removed. Update all
14753 (grub_script_execute_argument_to_argv): ...better version.
14754 * script/function.c (grub_script_function_create): Use
14755 grub_script_execute_argument_to_argv instead of
14756 grub_script_execute_argument_to_string.
14758 * script/lexer.c (check_varstate): Removed.
14759 (check_textstate): Removed.
14760 (grub_script_lexer_record_start): Likewise.
14761 (grub_script_lexer_record_stop): Likewise.
14762 (recordchar): Replaced with...
14763 (grub_script_lexer_record): ...new function.
14764 (nextchar): Removed.
14765 (grub_script_lexer_init): Rewritten.
14766 (grub_script_yylex): Rewritten.
14767 (append_newline): New function.
14768 (grub_script_lexer_yywrap): New function.
14769 (grub_script_lexer_fini): New function.
14770 (grub_script_yyerror): Sets error flag.
14772 * script/yylex.l: New file.
14773 (grub_lexer_yyfree): Wrapper for flex yyffre.
14774 (grub_lexer_yyalloc): Likewise.
14775 (grub_lexer_yyrealloc): Likewise.
14776 * script/parser.y: Refactored.
14778 * script/script.c (grub_script_arg_add): Out of memory fixes.
14779 (grub_script_add_arglist): Likewise.
14780 (grub_script_create_cmdline): Likewise.
14781 (grub_script_create_cmdmenu): Likewise.
14782 (grub_script_add_cmd): Likewise.
14783 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
14784 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
14787 * tests/grub_script_echo1.in: New testcase.
14788 * tests/grub_script_vars1.in: New testcase.
14789 * tests/grub_script_echo_keywords.in: New testcase.
14791 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14793 Remove some redundancy in build system.
14795 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
14796 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
14797 (TARGET_LDFLAGS): Add -nostdlib.
14798 (TARGET_IMG_LDFLAGS): Likewise.
14799 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
14800 anything since mmap isn't available.
14801 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
14803 (pkglib_MODULES): Remove reboot.mod.
14804 (reboot_mod_SOURCES): Removed.
14805 (reboot_mod_CFLAGS): Likewise.
14806 (reboot_mod_LDFLAGS): Likewise.
14807 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
14808 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
14809 (DEFSYMFILES): Add kernel_syms.lst.
14810 (kernel_img_HEADERS): Add common headers.
14811 (symlist.c): New target.
14812 (kernel_syms.lst): Likewise.
14813 (pkglib_MODULES): Add memdisk.mod.
14814 (memdisk_mod_SOURCES): New variable.
14815 (memdisk_mod_CFLAGS): Likewise.
14816 (memdisk_mod_LDFLAGS): Likewise.
14817 (pkglib_MODULES): Add reboot.mod.
14818 (reboot_mod_SOURCES): New variable.
14819 (reboot_mod_CFLAGS): Likewise.
14820 (reboot_mod_LDFLAGS): Likewise.
14821 (pkglib_MODULES): Add date.mod.
14822 (date_mod_SOURCES): New variable.
14823 (date_mod_CFLAGS): Likewise.
14824 (date_mod_LDFLAGS): Likewise.
14825 (pkglib_MODULES): Add datehook.mod.
14826 (datehook_mod_SOURCES): New variable.
14827 (datehook_mod_CFLAGS): Likewise.
14828 (datehook_mod_LDFLAGS): Likewise.
14829 (pkglib_MODULES): Add lsmmap.mod.
14830 (lsmmap_mod_SOURCES): New variable.
14831 (lsmmap_mod_CFLAGS): Likewise.
14832 (lsmmap_mod_LDFLAGS): Likewise.
14833 (pkglib_MODULES): Add boot.mod.
14834 (boot_mod_SOURCES): New variable.
14835 (boot_mod_CFLAGS): Likewise.
14836 (boot_mod_LDFLAGS): Likewise.
14837 * conf/i386-coreboot.rmk: Removed redundant parts.
14838 * conf/i386-ieee1275.rmk: Likewise.
14839 * conf/i386-pc.rmk: Likewise.
14840 * conf/mips-yeeloong.rmk: Likewise.
14841 * conf/mips.rmk: Likewise.
14842 * conf/powerpc-ieee1275.rmk: Likewise.
14843 * conf/sparc64-ieee1275.rmk: Likewise.
14844 * conf/x86_64-efi.rmk: Likewise.
14845 * conf/i386-coreboot.rmk: Moved qemu parts ..
14846 * conf/i386-qemu.rmk: ... here
14847 * conf/i386-efi.rmk: Moved common parts to...
14848 * conf/x86-efi.rmk: ... here.
14849 * conf/i386.rmk: Added modules common to all x86 variants.
14850 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
14851 * disk/memdisk.c: Remove grub/machine/kernel.h.
14852 * gensymlist.sh.in: Include symbol.h.
14853 * hook/datehook.c: Correct module name.
14854 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
14855 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
14856 * include/grub/i386/efi/serial.h: New file.
14857 * include/grub/x86_64/efi/serial.h: Likewise.
14858 * util/time.c: Likewise.
14859 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
14861 2010-03-14 Colin King <colin.king@ubuntu.com>
14862 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14864 Shrink the pre-partition-table part of boot.img by eight bytes.
14866 * boot/i386/pc/boot.S (ERR): New macro.
14867 (chs_mode): Use ERR.
14868 (geometry_error): Likewise.
14869 (hd_probe_error): Remove. This is only used once, so we wrwite
14871 (read_error): Instead of printing read_error_string, just set up
14872 %si and fall through to ...
14873 (error_message): ... this new function, also used by ERR.
14875 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14877 Speed up consecutive hostdisk operations on the same device.
14879 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
14880 (grub_util_biosdisk_open): Initialise disk->data.
14881 (struct linux_partition_cache): New structure.
14882 (linux_find_partition): Cache partition start positions; these are
14883 expensive to compute on every read and write.
14884 (open_device): Cache open file descriptor in disk->data, so that we
14885 don't have to reopen it and flush the buffer cache for consecutive
14886 operations on the same device.
14887 (grub_util_biosdisk_close): New function.
14888 (grub_util_biosdisk_dev): Set `close' member.
14890 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
14891 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
14892 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14893 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14894 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
14896 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14898 Compile parts of grub-emu as modules.
14900 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
14901 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
14902 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
14903 (all-local): Add $(GRUB_EMU).
14904 (install-local): Install $(GRUB_EMU).
14905 (uninstall): Uninstall $(GRUB_EMU).
14906 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
14907 * kern/dl.c: Likewise.
14908 * commands/sleep.c: Not include machine/time.h.
14909 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
14910 (COMMON_CFLAGS): Likewise.
14911 (sbin_UTILITIES): Remove grub-emu.
14912 (grub_emu_SOURCES): Removed.
14913 (kernel_img_RELOCATABLE): New variable.
14914 (pkglib_PROGRAMS): Add kernel.img.
14915 (kernel_img_SOURCES): New variable
14916 (kernel_img_CFLAGS): Likewise.
14917 (kernel_img_LDFLAGS): Likewise.
14918 (TARGET_NO_STRIP): Likewise.
14919 (TARGET_NO_DYNAMIC_MODULES): Likewise.
14920 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
14921 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
14922 (grub-emu): New target.
14923 (GRUB_EMU): New variable.
14924 * configure.ac: Whitelist -emu as possible x86_64 architecture.
14925 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
14926 * loader/xnu.c: Likewise.
14927 * include/grub/pci.h: Likewise.
14928 * genemuinit.sh: New file.
14929 * genemuinitheader.sh: Likewise.
14930 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
14931 Support TARGET_NO_DYNAMIC_MODULES.
14932 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
14933 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
14934 * disk/loopback.c: Likewise.
14935 * font/font_cmd.c: Likewise.
14936 * partmap/acorn.c: Likewise.
14937 * partmap/amiga.c: Likewise.
14938 * partmap/apple.c: Likewise.
14939 * partmap/gpt.c: Likewise.
14940 * partmap/msdos.c: Likewise.
14941 * partmap/sun.c: Likewise.
14942 * parttool/msdospart.c: Likewise.
14943 * term/gfxterm.c: Likewise.
14944 * video/bitmap.c: Likewise.
14945 * video/readers/jpeg.c: Likewise.
14946 * video/readers/png.c: Likewise.
14947 * video/readers/tga.c: Likewise.
14948 * video/video.c: Likewise.
14949 * util/grub-emu.c (read_command_list): Removed.
14950 (main): Don't call util_init_nls.
14951 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
14952 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
14954 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
14957 date.mod, datehook.mod.
14958 (datetime_mod_SOURCES): New variable.
14959 (datetime_mod_CFLAGS): Likewise.
14960 (datetime_mod_LDFLAGS): Likewise.
14961 (date_mod_SOURCES): Likewise.
14962 (date_mod_CFLAGS): Likewise.
14963 (date_mod_LDFLAGS): Likewise.
14964 (datehook_mod_SOURCES): Likewise.
14965 (datehook_mod_CFLAGS): Likewise.
14966 (datehook_mod_LDFLAGS): Likewise.
14967 * conf/sparc64-ieee1275.rmk: Likewise.
14968 * lib/ieee1275/datetime.c: New file.
14970 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14972 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
14973 (ieee1275_fb_mod_SOURCES): New variable.
14974 (ieee1275_fb_mod_CFLAGS): Likewise.
14975 (ieee1275_fb_mod_LDFLAGS): Likewise.
14976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
14978 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
14979 (HEAP_MAX_ADDR): Likewise.
14980 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
14982 Correct stop condition.
14983 (grub_ieee1275_devices_iterate): New function.
14984 * video/ieee1275.c: New file.
14986 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14988 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
14990 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
14992 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
14993 SCRATCH_PAD_DISKBOOT as scratch.
14994 (bootit): Pass Openfirmware pointer in %o4.
14995 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
14997 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
14998 with util/grub-mkrawimage.c.
14999 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15000 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15001 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15002 (grub_aout_load) [GRUB_UTIL]: Likewise.
15003 * include/grub/kernel.h (grub_modules_get_end): New proto.
15004 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15005 (SCRATCH_PAD_BOOT): New definition.
15006 (SCRATCH_PAD_DISKBOOT): Likewise.
15007 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15008 * include/grub/sparc64/ieee1275/ieee1275.h
15009 (grub_ieee1275_original_stack): New variable
15010 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15012 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15013 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15014 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15015 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15016 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15017 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15018 (grub_platform_image_format_t): New type.
15019 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15020 * kern/main.c (grub_modules_get_end)
15021 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15022 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15023 (codestart): Switch stacks.
15024 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15026 (grub_heap_init): Use grub_modules_get_end.
15027 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15029 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15031 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15033 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15035 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15037 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15039 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15042 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15044 * genmoddep.awk: Output all missing symbols and not only first.
15046 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15048 * NEWS: Put the date of 1.98 release.
15050 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15052 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15055 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15057 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15058 completition in the middle of string.
15060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15062 * util/grub-mkrescue.in: Use mktemp with explicit template.
15064 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15066 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15068 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15070 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15073 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15075 Fix FreeBSD compilation.
15077 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15078 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15080 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15082 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15084 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15086 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15090 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15092 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15094 Support relative image path in theme file.
15096 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15097 (image_set_property): Handle theme_dir and relative path.
15099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15101 * configure.ac: Alias amd64 to x86_64.
15103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15105 * NEWS: mention multiboot on EFI.
15107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15109 * kern/main.c (grub_load_modules): Handle errors from init functions of
15112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15114 * normal/autofs.c (autoload_fs_module): Handle errors.
15116 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15118 Disable linux.mod on qemu-mips since it's not functional and leads
15119 to compilation failure.
15121 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15122 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15123 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15124 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15125 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15126 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15127 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15128 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15129 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15130 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15131 Reported by: BVK Chaitanya
15133 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15135 * INSTALL: Add gettext as a dependency and add qemu to a new section
15136 "Prerequisites for make-check".
15138 2010-03-04 Christian Franke <franke@computer.org>
15140 * util/grub-pe2elf.c: Add missing include "progname.h".
15142 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15144 * normal/crypto.c (read_crypto_list): Fix a typo.
15145 Reported by: Seth Goldberg.
15147 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15149 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15150 Reported by: Seth Goldberg.
15152 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15154 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15159 * genmk.rb: Remove terminal*.lst in make clean.
15160 Reported by: Seth Goldberg.
15162 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15164 * util/i386/efi/grub-install.in: Copy gettext files.
15166 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15168 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15170 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15172 Wait for user entry basing on presence of output rather than on errors.
15174 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15175 (grub_install_newline_hook): Likewise.
15176 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15177 * normal/menu.c (show_menu): Check line_counter to determine presence
15179 * normal/term.c (grub_normal_line_counter): New variable.
15180 (grub_normal_get_line_counter): New function.
15181 (grub_install_newline_hook): Likewise.
15183 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15185 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15187 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15189 * configure.ac: Update version to 1.98.
15191 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15193 * util/grub.d/10_linux.in (linux_entry): Don't default to
15194 gfxpayload=keep if Linux doesn't support video handover.
15196 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15198 Don't compile video modules on yeeloong since video subsystem is part
15201 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15202 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15203 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15204 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15205 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15206 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15207 * include/grub/bitmap_scale.h: Likewise.
15208 * include/grub/bufio.h: Likewise.
15209 * include/grub/font.h: Likewise.
15210 * include/grub/gfxterm.h: Likewise.
15211 * include/grub/video.h: Likewise.
15212 * include/grub/vbe.h: Don't include video_fb.h.
15213 * video/i386/pc/vbe.c: Include video_fb.h.
15214 * commands/i386/pc/vbetest.c: Include video.h.
15216 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15218 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15219 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15220 default entry if GRUB_SAVEDEFAULT=true. This allows using
15221 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15222 saving a new default on every boot.
15224 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15226 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15227 * normal/term.c (read_terminal_list): Likewise.
15228 * normal/main.c (grub_normal_init_page): Likewise.
15229 (grub_normal_read_line_real): Likewise.
15231 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15233 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15235 Reported by: Seth Goldberg.
15237 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15239 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15240 duplicate declaration of `start'.
15242 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15244 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15246 Reported by: Georgy Buranov
15248 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15250 * util/grub-mkrawimage.c (usage): Change string formatting to
15253 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15255 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15258 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15260 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15261 Reported by: Michael Suchanek.
15263 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15265 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15266 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15268 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15270 Remove any reference to non-free fonts.
15272 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
15273 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
15274 uses non-free components.
15275 * font/font.c (grub_font_get_name): Remove example name.
15276 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
15277 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15278 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
15279 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
15281 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15283 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15285 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15287 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
15289 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
15291 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
15293 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15295 * gensymlist.sh.in: Use TARGET_CC instead of CC.
15297 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15299 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
15300 * docs/grub.texi (Command-line and menu entry commands): Document play
15303 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15305 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
15306 parse arguments as inline tempo and notes. Move code for playing notes
15308 (play): ... new function.
15310 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15312 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
15313 grub_uint16_t instead of short.
15314 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
15315 disk from little endian to cpu endianness.
15317 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
15319 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
15320 GRUB_TICKS_PER_SECOND instead of 120.
15322 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15324 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
15325 escape sequence after \e.
15327 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
15330 non-ASCII characters.
15332 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
15335 set root in single quotes to prevent \, from being unescaped.
15337 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15339 Prevent unknown commands from stopping menuentry execution.
15341 * script/execute.c (grub_script_execute_cmdline): Print error after
15344 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15346 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
15347 Reported by: Pavel Pisa.
15349 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15351 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
15353 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15355 Merge grub_ieee1275_map_physical into grub_map and rename to
15358 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
15359 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
15361 * kern/ieee1275/openfw.c (grub_map): Rename to ...
15362 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
15364 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
15366 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
15369 opening and not after.
15371 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15373 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
15376 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15378 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
15379 (alloc_phys): Use ALIGN_UP instead of align_addr.
15381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15383 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
15385 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15387 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
15389 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15391 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
15394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15396 Fix over-4GiB seek on sparc64.
15398 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
15399 Replace pos_i and pos_lo with pos. All users updated.
15400 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15402 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15404 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
15407 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15409 * util/grub-mkrawimage.c (main): Call set_program_name.
15411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15413 Properly align 64-bit targets.
15415 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
15416 (generate_image): Use ALIGN_ADDR.
15418 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15420 Properly create cross-endian images.
15422 * include/grub/types.h (grub_host_to_target_addr): New macro
15423 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
15425 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15427 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
15429 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15431 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
15433 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
15434 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
15435 (grub_linux_boot): Divide by 64K when on VESA.
15437 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15439 Support GRUB_GFXPAYLOAD_LINUX.
15441 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
15442 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
15444 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15446 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
15447 to show messages instead of discarding them.
15448 Process errors after executing command and not before. Keep old method
15451 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
15453 * configure.ac: Check for ft2build.h.
15455 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15457 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
15459 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15461 * genkernsyms.sh.in: Use TARGET_CC.
15463 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
15467 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15469 * include/grub/multiboot2.h: Remove leftover file.
15470 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
15471 * include/grub/partition.h [GRUB_UTIL]: Likewise.
15473 2010-02-07 Yves Blusseau <blusseau@zetam.org>
15475 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
15477 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15479 Fix warnings in grub-emu when compiling with maximum warning options.
15481 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
15482 (grub_arch_modules_addr): Return 0 and not NULL.
15483 * util/misc.c (ENABLE_RELOCATABLE): New definition.
15484 (xstrdup): Use newstr instead of dup.
15485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
15486 of disk to dsk to avoid shadowing.
15487 (find_free_slot): Fix prototype.
15488 * util/getroot.c (grub_util_is_dmraid): Make static.
15489 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
15490 Add missing prototype.
15491 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
15493 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15495 * loader/i386/linux.c (grub_linux_setup_video): Handle error
15498 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15500 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
15503 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15505 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
15506 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
15507 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
15508 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
15509 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
15510 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
15512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15514 * include/grub/err.h (grub_err_printf): Don't export.
15516 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15518 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15520 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15522 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15523 * kern/misc.c (grub_gettext_dummy): Make static.
15525 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15527 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15529 * kern/term.c (grub_putchar): Likewise.
15531 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15533 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15534 buggy hook call and memory leak.
15536 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15538 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
15540 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15542 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
15544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
15548 Return grub_errno on allocation error.
15550 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15552 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
15554 2010-02-06 Yves Blusseau <blusseau@zetam.org>
15556 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
15557 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
15559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15561 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
15563 (grub_pxefs_open): Likewise.
15565 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15567 * util/grub.d/10_hurd.in: Add --class information to menuentries.
15568 * util/grub.d/10_kfreebsd.in: Likewise.
15569 * util/grub.d/10_linux.in: Likewise.
15571 2010-02-06 Colin D Bennett <colin@gibibit.com>
15573 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
15574 (gfxmenu_mod_SOURCES): New variable.
15575 (gfxmenu_mod_CFLAGS): Likewise.
15576 (gfxmenu_mod_LDFLAGS): Likewise.
15577 * include/grub/term.h (grub_term_set_current_output): Declare
15579 * docs/gfxmenu-theme-example.txt: New file.
15580 * gfxmenu/gfxmenu.c: Likewise.
15581 * gfxmenu/gui_box.c: Likewise.
15582 * gfxmenu/gui_canvas.c: Likewise.
15583 * gfxmenu/gui_circular_progress.c: Likewise.
15584 * gfxmenu/gui_image.c: Likewise.
15585 * gfxmenu/gui_label.c: Likewise.
15586 * gfxmenu/gui_list.c: Likewise.
15587 * gfxmenu/gui_progress_bar.c: Likewise.
15588 * gfxmenu/gui_string_util.c: Likewise.
15589 * gfxmenu/gui_util.c: Likewise.
15590 * gfxmenu/icon_manager.c: Likewise.
15591 * gfxmenu/model.c: Likewise.
15592 * gfxmenu/named_colors.c: Likewise.
15593 * gfxmenu/theme_loader.c: Likewise.
15594 * gfxmenu/view.c: Likewise.
15595 * gfxmenu/widget-box.c: Likewise.
15596 * include/grub/gfxmenu_model.h: Likewise.
15597 * include/grub/gfxmenu_view.h: Likewise.
15598 * include/grub/gfxwidgets.h: Likewise.
15599 * include/grub/gui.h: Likewise.
15600 * include/grub/gui_string_util.h: Likewise.
15601 * include/grub/icon_manager.h: Likewise.
15603 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15605 Agglomerate scrolling in gfxterm.
15607 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
15608 (grub_virtual_screen_setup): Initialise 'total_screen'.
15609 (write_char): Split to ...
15610 (paint_char): ... this ...
15611 (write_char): ... and this.
15612 (paint_char): Handle delayed scrolling.
15613 (draw_cursor): Likewise.
15614 (scroll_up): Split to ...
15615 (real_scroll): ... this ...
15616 (scroll_up): ... and this.
15617 (real_scroll): Handle multi-line scroll and draw below-the-bottom
15619 (grub_gfxterm_refresh): Call real_scroll.
15621 2010-02-06 Colin D Bennett <colin@gibibit.com>
15623 * include/grub/misc.h (grub_iscntrl): New inline function.
15624 (grub_isalnum): Likewise.
15625 (grub_strtol): Likewise.
15627 2010-02-06 Colin D Bennett <colin@gibibit.com>
15629 * normal/menu_text.c (get_entry_number): Move from here ...
15630 * normal/menu.c (get_entry_number): ... moved here.
15631 * include/grub/menu.h (grub_menu_get_default_entry_index):
15633 * normal/menu.c (grub_menu_get_default_entry_index): New function.
15634 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
15635 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
15636 (grub_menu_viewer_should_return): Likewise.
15637 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
15638 * normal/menu_text.c (run_menu): Enable menu switching.
15639 * normal/menu_viewer.c (should_return): New variable.
15640 (menu_viewer_changed): Likewise.
15641 (grub_menu_viewer_show_menu): Handle menu viewer changes.
15642 (grub_menu_viewer_should_return): New function.
15643 (menuviewer_write_hook): Likewise.
15644 (grub_menu_viewer_init): Likewise.
15646 2010-02-06 Colin D Bennet <colin@gibibit.com>
15647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15649 Support for gfxterm in a window.
15651 * include/grub/gfxterm.h: New file.
15652 * include/grub/video.h (struct grub_video_rect): New declaration.
15653 (grub_video_rect_t): Likewise.
15654 * term/gfxterm.c (struct grub_gfxterm_window): New type.
15655 (refcount): New variable.
15656 (render_target): Likewise.
15657 (window): Likewise.
15658 (repaint_callback): Likewise.
15659 (grub_virtual_screen_setup): Use 'render_target'.
15660 (init_window): New function.
15661 (grub_gfxterm_init_window): Likewise.
15662 (grub_gfxterm_init): Check reference counter.
15664 (destroy_window): New function.
15665 (grub_gfxterm_destroy_window): Likewise.
15666 (grub_gfxterm_fini): Check reference counter.
15667 Use destroy_window.
15668 (redraw_screen_rect): Restore viewport.
15669 Use 'render_target' and 'window'.
15670 Call 'repaint_callback'.
15671 (write_char): Use 'render_target'.
15672 (draw_cursor): Likewise.
15673 (scroll_up): Restore viewport.
15674 Use 'render_target' and 'window'.
15675 Call 'repaint_callback'.
15676 (grub_gfxterm_cls): Likewise.
15677 (grub_gfxterm_refresh): Use 'window'.
15678 (grub_gfxterm_set_repaint_callback): New function.
15679 (grub_gfxterm_background_image_cmd): Use 'window'.
15680 (grub_gfxterm_get_term): New function.
15681 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
15683 2010-02-06 Colin D Bennett <colin@gibibit.com>
15685 Bitmap scaling support.
15687 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
15688 (bitmap_scale_mod_SOURCES): New variable.
15689 (bitmap_scale_mod_CFLAGS): Likewise.
15690 (bitmap_scale_mod_LDFLAGS): Likewise.
15691 * include/grub/bitmap_scale.h: New file.
15692 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
15693 (background_image_cmd_options): New variable.
15694 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
15695 (cmd): Rename and change type to ...
15696 (background_image_cmd_handle): ... this. All users updated.
15697 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
15698 * video/bitmap_scale.c: New file.
15700 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15704 * Makefile.in (LIBSDL): New variable.
15705 (enable_grub_emu_sdl): Likewise.
15706 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
15707 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
15708 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
15709 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
15710 * util/sdl.c: New file.
15712 2010-02-06 Colin D Bennett <colin@gibibit.com>
15713 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15715 Double buffering support.
15717 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
15718 * include/grub/video.h: Update comment.
15719 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
15721 (grub_video_fb_doublebuf_blit_init): New prototype.
15722 * term/gfxterm.c (scroll_up): Support double buffering.
15723 (grub_gfxterm_refresh): Likewise.
15724 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
15725 (grub_video_fb_doublebuf_blit_init): Likewise.
15726 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
15727 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
15728 'displayed_page', 'render_page' and 'update_screen'.
15729 (grub_video_vbe_fini): Free offscreen buffer.
15730 (doublebuf_pageflipping_commit): New function.
15731 (doublebuf_pageflipping_update_screen): Likewise.
15732 (doublebuf_pageflipping_init): Likewise.
15733 (double_buffering_init): Likewise.
15734 (grub_video_vbe_setup): Enable doublebuffering.
15735 (grub_video_vbe_swap_buffers): Implement.
15736 (grub_video_vbe_set_active_render_target): Handle double buffering.
15737 (grub_video_vbe_get_active_render_target): Likewise.
15738 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
15739 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
15740 (grub_video_vbe_enable_double_buffering): Likewise.
15741 (grub_video_vbe_swap_buffers): Use update_screen.
15742 (grub_video_set_mode): Use double buffering.
15744 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15746 * maintainance/gentrigtables.py: Remove.
15747 * lib/trig.c: Likewise.
15749 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
15751 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
15753 (trigtables.c): New rule.
15754 (gentrigtables): Likewise.
15755 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
15757 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15759 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
15762 2010-02-06 Colin D Bennet <colin@gibibit.com>
15764 Trigonometry support.
15766 * include/grub/trig.h: New file.
15767 * lib/trig.c: Likewise.
15768 * maintainance/gentrigtables.py: Likewise.
15769 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
15770 (trig_mod_SOURCES): New variable.
15771 (trig_mod_CFLAGS): Likewise.
15772 (trig_mod_LDFLAGS): Likewise.
15774 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15776 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
15779 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15781 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
15784 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15786 * util/hostdisk.c (open_device): Don't use partition device when reading
15787 before the partition.
15788 (grub_util_biosdisk_read): Don't read from partition and before the
15789 partition in single operation.
15790 (grub_util_biosdisk_write): Don't write to partition and before the
15791 partition in single operation.
15793 2010-02-03 Torsten Landschoff <torsten@debian.org>
15795 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15798 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15800 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
15802 (grub_biosdisk_write): Refuse to write to CDROM.
15804 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
15808 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15810 * font/font.c (find_glyph): Check that bmp_idx is available before
15812 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
15813 with (font == NULL).
15815 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
15817 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
15819 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
15821 * include/grub/script_sh.h (sourcecode): Add const qualifier.
15822 * util/grub-script-check.c (getline): Fix empty lines case.
15824 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
15826 * Makefile.in (check): Exit with fail status when one of the tests
15828 * tests/example_functional_test.c (example_test): Fix reversed assert.
15829 * tests/example_unit_test.c (example_test): Likewise.
15831 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
15833 * util/grub.d/10_linux.in: This script does not use any of the
15834 contents of gettext.sh, only the external command `gettext', so stop
15835 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
15836 the same prefix as GRUB.)
15837 * util/grub.d/10_kfreebsd.in: Likewise.
15839 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15841 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
15844 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15846 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15849 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15851 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
15852 having a 4KiB and not 32KiB buffer size.
15854 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15856 * util/hostfs.c: Include `<errno.h>'.
15857 (grub_hostfs_read): Handle errors from fseeko() and fread().
15859 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15861 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
15862 loop when using read hooks on files whose size isn't sector-aligned.
15864 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15866 Remove unused parameter.
15868 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
15869 (grub_iso9660_open): Remove initialization of `data->length'.
15871 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15873 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
15874 memleak conditions.
15876 2010-01-27 Carles Pina i Estany <carles@pina.cat>
15878 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
15879 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
15881 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15883 * util/bin2h.c (usage): Fix warning (space after backslash).
15885 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15887 * font/font.c: Include `grub/fontformat.h.
15888 Remove font file format constants.
15889 (grub_font_load): Use the new macros.
15890 * include/grub/fontformat.h: New file.
15891 * util/grub-mkfont.c: Include `grub/fontformat.c'.
15892 (write_font_pf2): Use the new macros.
15894 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15896 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
15899 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
15903 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
15904 (_start): Macroify `0x7F'.
15906 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
15907 (make_install_device): Use "(pxe)" as fallback prefix when booting
15910 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
15912 * configure.ac: Reset LIBS after check for libgcc symbols.
15914 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
15916 * util/hostdisk.c (open_device): Add trailing newline to debug
15919 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
15921 * configure.ac: Check for `limits.h'.
15922 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
15924 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
15926 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
15927 capitalize error strings.
15929 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
15931 * util/grub.d/10_hurd.in: Add a recovery mode.
15933 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
15935 * configure.ac: Check for libgcc symbols with -nostdlib.
15937 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
15939 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
15941 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15943 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
15944 stack since heap may be unavailable at that point.
15945 (grub_ofconsole_gotoxy): Likewise.
15947 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15949 * configure.ac: Check for _restgpr_14_x.
15950 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
15951 and _savegpr_* prototypes.
15953 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
15955 Use generic grub_reboot() for i386-efi.
15957 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
15958 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
15959 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
15961 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15963 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
15964 presence of "prefix" variable as it breaks when normal.mod is
15967 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15969 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
15970 stack since heap is unavailable at that point.
15972 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15974 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
15975 (grub_freebsd_bootinfo): Rewritten.
15976 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
15978 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15980 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
15982 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
15984 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
15987 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
15989 * util/misc.c (make_system_path_relative_to_its_root): Change the work
15990 around for handling "/" to the correct fix. Fix a memory leak. Use
15991 xstrdup instead of strdup.
15993 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15995 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
15997 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15999 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16001 * font/font.c (struct grub_font): New member 'bmp_idx'.
16002 (font_init): Initialise 'bmp_idx'.
16003 (load_font_index): Fill 'bmp_idx'.
16004 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16006 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16008 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16013 Move context handling out of the kernel.
16015 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16016 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16017 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16018 * conf/i386-efi.rmk: Likewise.
16019 * conf/i386-ieee1275.rmk: Likewise.
16020 * conf/i386-pc.rmk: Likewise.
16021 * conf/powerpc-ieee1275.rmk: Likewise.
16022 * conf/sparc64-ieee1275.rmk: Likewise.
16023 * conf/x86_64-efi.rmk: Likewise.
16024 * include/grub/env.h: Include grub/menu.h.
16025 (grub_env_var_type): Removed.
16026 (grub_env_var): Replaced field 'type' with 'global'.
16027 (grub_env_find): New prototype.
16028 (grub_env_context_open): Remove EXPORT_FUNC.
16029 (grub_env_context_close): Likewise.
16030 (grub_env_export): Likewise.
16031 (grub_env_set_data_slot): Removed.
16032 (grub_env_get_data_slot): Likewise.
16033 (grub_env_unset_data_slot): Likewise.
16034 (grub_env_unset_menu): New prototype.
16035 (grub_env_set_menu): Likewise.
16036 (grub_env_get_menu): Likewise.
16037 * include/grub/env_private.h: New file.
16038 * include/grub/normal.h (grub_context_init): New prototype.
16039 (grub_context_fini): Likewise.
16040 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16041 * normal/context.c (grub_cmd_export): ... to here.
16042 * kern/env.c: Include env_private.h.
16043 (HASHSZ): Moved to include/grub/env_private.h.
16044 (grub_env_context): Likewise.
16045 (grub_env_sorted_var): Likewise.
16046 (current_context): Renamed from this ...
16047 (grub_current_context): ...to this. 'static' removed. All users updated.
16048 (grub_env_find): Removed 'static'.
16049 (grub_env_context_open): Moved to normal/context.c.
16050 (grub_env_context_close): Likewise.
16051 (grub_env_export): Likewise.
16052 (mangle_data_slot_name): Removed.
16053 (grub_env_set_data_slot): Likewise.
16054 (grub_env_get_data_slot): Likewise.
16055 (grub_env_unset_data_slot): Likewise.
16056 * kern/main.c (grub_set_root_dev): Don't export root.
16057 It will be done later.
16058 (grub_main): Don't export prefix.
16059 It will be done later.
16060 * normal/context.c: New file.
16061 * normal/main.c (free_menu): Use grub_env_unset_menu.
16062 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16063 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16064 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16065 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16071 * commands/setpci.c: New file.
16072 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16073 (setpci_mod_SOURCES): New variable.
16074 (setpci_mod_CFLAGS): Likewise.
16075 (setpci_mod_LDFLAGS): Likewise.
16077 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16079 Byte-addressable PCI configuration space.
16081 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16083 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16084 GRUB_PCI_REG_CACHELINE.
16085 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16087 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16088 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16089 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16090 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16091 grub_pci_make_address.
16092 (lock_rom_area): Likewise.
16093 * commands/lspci.c (grub_lspci_iter): Use macroses
16094 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16095 of grub_pci_make_address.
16096 * disk/ata.c (grub_ata_pciinit): Likewise.
16097 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16098 (GRUB_PCI_REG_VENDOR): Likewise.
16099 (GRUB_PCI_REG_DEVICE): Likewise.
16100 (GRUB_PCI_REG_COMMAND): Likewise.
16101 (GRUB_PCI_REG_STATUS): Likewise.
16102 (GRUB_PCI_REG_REVISION): Likewise.
16103 (GRUB_PCI_REG_CLASS): Likewise.
16104 (GRUB_PCI_REG_CACHELINE): Likewise.
16105 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16106 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16107 (GRUB_PCI_REG_BIST): Likewise.
16108 (GRUB_PCI_REG_ADDRESSES): Likewise.
16109 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16110 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16111 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16112 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16113 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16114 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16115 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16116 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16117 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16118 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16119 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16120 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16121 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16122 (GRUB_PCI_REG_MIN_GNT): Likewise.
16123 (GRUB_PCI_REG_MAX_LAT): Likewise.
16124 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16125 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16126 * video/efi_uga.c (find_framebuf): Likewise.
16127 * video/sm712.c (grub_video_sm712_setup): Likewise.
16128 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16131 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16133 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16134 can be reliably determined to be supported.
16136 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16138 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16139 that VESA is supported.
16140 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16143 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16145 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16147 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16149 * util/misc.c (make_system_path_relative_to_its_root): Work around
16150 special-casing of "/", as previous incarnation of this routine did.
16152 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16154 Fix any-emu compilation.
16156 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16157 * grub_bin2h_SOURCES: New variable.
16159 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16161 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16163 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16165 * util/grub.d/00_header.in: Fix handling of locale_dir.
16167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16169 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16170 as possible unifont location (Gentoo).
16171 Reported by: Alexander Brüning
16173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16175 Don't try to generate lists for kernel.img.
16177 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16178 (pkglib_MODULES): Remove kernel.img.
16179 (kernel_img_EXPORTS): Removed.
16180 (kernel_img_RELOCATABLE): New variable.
16181 * conf/x86_64-efi.rmk: Likewise.
16182 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16184 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16186 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16187 grub_xasprintf or grub_snprintf.
16188 (grub_vsprintf): Likewise.
16189 (grub_snprintf): New proto.
16190 (grub_vsnprintf): Likewise.
16191 (grub_xasprintf): Likewise.
16192 (grub_xvasprintf): Likewise.
16193 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16194 (grub_sprintf): Removed.
16195 (grub_vsnprintf): New function.
16196 (grub_snprintf): Likewise.
16197 (grub_xvasprintf): Likewise.
16198 (grub_xasprintf): Likewise.
16199 (grub_vsprintf): Renamed to ...
16200 (grub_vsnprintf_real): ...this. New argument max_len.
16202 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16204 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16205 fix grub-script-check warning.
16207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16209 * include/grub/font.h (grub_font_load): Fix prototype.
16211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16213 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16215 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16217 * include/grub/x86_64/at_keyboard.h: New file.
16219 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16221 * loader/mips/linux.c: Include missing grub/i18n.h.
16223 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16225 * normal/menu.c (notify_execution_failure): Clarify error message.
16227 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16229 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16230 return value (and revert all return statements). Update users.
16232 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16234 * kern/device.c (grub_device_iterate): Allocate new part_ent
16235 structure based on sizeof (*p) rather than sizeof (p->next), to
16236 account for structure padding.
16238 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
16239 disk is NULL, which might happen for LVM physical volumes with no
16242 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16244 * loader/mips/linux.c (grub_cmd_initrd)
16245 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16247 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16249 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
16250 (grub_video_video_init, grub_video_bitmap_init)
16251 (grub_font_manager_init, grub_term_gfxterm_init)
16252 (grub_at_keyboard_init): New extern declarations.
16253 (grub_machine_init): Initialize gfxterm and at_keyboard.
16255 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16257 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16258 `gfxterm.mod' into core image.
16260 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16262 (kernel_img_FORMAT): Copy to ...
16264 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16265 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16266 (kernel_img_FORMAT): ... here, and ...
16268 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16269 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16270 (kernel_img_FORMAT): ... here.
16272 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
16273 and input (at_keyboard) terminals in kernel.
16274 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
16276 (pkglib_MODULES): Remove `pci.mod'.
16277 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
16278 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
16279 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16280 (at_keyboard_mod_LDFLAGS): Remove variables.
16282 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16284 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16286 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
16288 * include/grub/mips/libgcc.h: Only export symbols for functions
16289 that libgcc provides.
16291 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
16295 * bus/bonito.c: New file.
16296 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
16297 GRUB_PCI_NUM_DEVICES.
16298 * term/i386/pc/serial.c: Move to ...
16299 * term/serial.c: ... here. All users updated.
16300 * util/i386/pc/grub-mkimage.c: Move to ...
16301 * util/grub-mkrawimage.c: ... here. All users updated.
16302 * term/i386/pc/at_keyboard.c: Move to ...
16303 * term/at_keyboard.c: ... here. All users updated.
16304 * conf/mips-qemu-mips.rmk: New file.
16305 * conf/mips-yeeloong.rmk: Likewise.
16306 * conf/mips.rmk: Likewise.
16307 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
16309 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
16311 (grub_ata_pciinit): Support CS5536.
16312 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
16313 * font/font_cmd.c (loadfont_command): Open file before passing it to
16315 (pseudo_file_read): New function.
16316 (pseudo_file_close): Likewise.
16317 (pseudo_fs): New structure.
16318 (load_font_module): New function.
16319 (GRUB_MOD_INIT(font_manager)): Load embedded font.
16320 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
16321 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
16322 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
16323 * include/grub/i386/at_keyboard.h: Split into ...
16324 * include/grub/at_keyboard.h: ... this ...
16325 * include/grub/i386/at_keyboard.h: ... and this.
16326 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
16328 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
16330 (grub_elf64_size): Likewise.
16331 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
16333 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
16334 * include/grub/i386/coreboot/serial.h: Rewritten.
16335 * include/grub/i386/ieee1275/serial.h: Include
16336 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
16337 * include/grub/i386/pc/serial.h: Moved from here ...
16338 * include/grub/serial.h: ... to here. All users updated.
16339 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
16340 (GRUB_PCI_NUM_BUS): Likewise.
16341 (GRUB_PCI_NUM_DEVICES): Likewise.
16342 (grub_pci_device_map_range): Add missing volatile keyword.
16343 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
16344 * include/grub/mips/at_keyboard.h: New file.
16345 * include/grub/mips/cache.h: Likewise.
16346 * include/grub/mips/io.h: Likewise.
16347 * include/grub/mips/kernel.h: Likewise.
16348 * include/grub/mips/libgcc.h: Likewise.
16349 * include/grub/mips/pci.h: Likewise.
16350 * include/grub/mips/qemu-mips/boot.h: Likewise.
16351 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16352 * include/grub/mips/qemu-mips/loader.h: Likewise.
16353 * include/grub/mips/qemu-mips/memory.h: Likewise.
16354 * include/grub/mips/qemu-mips/serial.h: Likewise.
16355 * include/grub/mips/qemu-mips/time.h: Likewise.
16356 * include/grub/mips/relocator.h: Likewise.
16357 * include/grub/mips/time.h: Likewise.
16358 * include/grub/mips/types.h: Likewise.
16359 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
16360 * include/grub/mips/yeeloong/boot.h: Likewise.
16361 * include/grub/mips/yeeloong/kernel.h: Likewise.
16362 * include/grub/mips/yeeloong/loader.h: Likewise.
16363 * include/grub/mips/yeeloong/memory.h: Likewise.
16364 * include/grub/mips/yeeloong/pci.h: Likewise.
16365 * include/grub/mips/yeeloong/serial.h: Likewise.
16366 * include/grub/mips/yeeloong/time.h: Likewise.
16367 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
16368 * kern/elf.c (grub_elf32_size): New parameter. All users
16370 (grub_elf64_size): Likewise.
16371 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
16372 Load modules before saying "Welcome to GRUB!".
16373 Call grub_refresh after saying "Welcome to GRUB!".
16374 * kern/mips/cache.S: New file.
16375 * kern/mips/cache_flush.S: Likewise.
16376 * kern/mips/dl.c: Likewise.
16377 * kern/mips/init.c: Likewise.
16378 * kern/mips/qemu-mips/init.c: Likewise.
16379 * kern/mips/startup.S: Likewise.
16380 * kern/mips/yeeloong/init.c: Likewise.
16381 * kern/term.c (grub_putcode): Handle NULL terminal.
16382 (grub_getcharwidth): Likewise.
16383 (grub_getkey): Likewise.
16384 (grub_checkkey): Likewise.
16385 (grub_getkeystatus): Likewise.
16386 (grub_getxy): Likewise.
16387 (grub_getwh): Likewise.
16388 (grub_gotoxy): Likewise.
16389 (grub_cls): Likewise.
16390 (grub_setcolorstate): Likewise.
16391 (grub_setcolor): Likewise.
16392 (grub_getcolor): Likewise.
16393 (grub_refresh): Likewise.
16394 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
16395 (write_jump): Add hatch nop.
16396 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
16397 * lib/mips/setjmp.S: New file.
16398 * loader/mips/linux.c: Likewise.
16399 * term/i386/pc/at_keyboard.c: Move from here ...
16400 * term/at_keyboard.c: ... to here.
16401 * term/i386/pc/serial.c: Moved from here ...
16402 * term/serial.c: ... to here. All users updated.
16403 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
16404 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
16405 (serial_translate_key_sequence): Avoid deadlock.
16406 (grub_serial_getkey): Handle backspace.
16407 (grub_serial_putchar): Fix newline handling.
16408 * util/i386/pc/grub-mkimage.c: Move from here ...
16409 * util/grub-mkrawimage.c: ... to here. All users updated.
16410 (generate_image): New parameters 'font_path' and 'format'.
16411 Support embedding font.
16412 Use grub_host_to_target* instead of grub_cpu_to_le*.
16413 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
16414 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
16415 (options): New option "--font".
16417 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
16418 (main): Handle "--font".
16419 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
16420 (grub_virtual_screen_setup): Set bg_color_display.
16421 (redraw_screen_rect): Use bg_color_display instead of incorrect
16423 (grub_gfxterm_cls): Likewise.
16424 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
16425 Support embedding config file.
16426 (add_segments): Likewise.
16427 (options): New option "--config".
16428 (main): Handle "--config".
16429 * video/sm712.c: New file.
16431 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16433 Fix parallel builds.
16435 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
16436 font.c depend on ascii.h).
16438 2010-01-12 Carles Pina i Estany <carles@pina.cat>
16440 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
16442 2010-01-11 Carles Pina i Estany <carles@pina.cat>
16444 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
16445 By default: disabled.
16446 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
16449 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16451 * font/font.c: Update copyright years.
16452 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
16454 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16456 * font/font.c: Include `ascii.h'.
16457 (ASCII_BITMAP_SIZE): New macro.
16458 (ascii_font_glyph): Define.
16459 (ascii_glyph_lookup): New function.
16460 (grub_font_get_string_width): Change comment. If glyph not found, use
16461 ascii_glyph_lookup.
16462 (grub_font_get_glyph_with_fallback): If glyph not available returns
16463 ascii_glyph_lookup.
16464 * util/grub-mkfont.c (file_formats): New enum.
16465 (options): Add `ascii-bitmaps' new option.
16466 (usage): Add `asii-bitmaps' new option.
16467 (write_font_ascii_bitmap): New function.
16468 (write_font): Rename to ...
16469 (write_font_p2): ... this. Remove print_glyphs call.
16470 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
16471 used. Call print_glyphs.
16472 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
16474 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16476 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
16477 (grub_bin2h_SOURCES): New variable.
16478 * util/bin2h.c: New file.
16480 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16482 * include/multiboot.h: Resynced with spec.
16483 * include/multiboot2.h: Likewise.
16484 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
16485 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
16487 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16489 * include/grub/term.h (grub_term_register_input,
16490 grub_term_register_output): Check return of terminal init()
16491 routines, and abort if errors are raised.
16493 * commands/terminal.c: Update copyright year.
16495 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16497 * commands/terminal.c (grub_cmd_terminal_input)
16498 (grub_cmd_terminal_output): Check return of terminal init()
16499 routines, and abort if errors are raised.
16501 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16503 * include/grub/i386/bsd.h: Fix include pathes.
16505 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16507 Add missing *BSD copyright headers.
16509 * include/grub/aout.h: Add BSD licence.
16510 * include/grub/i386/bsd.h: Parts under different licences moved to ...
16511 * include/grub/i386/freebsd_linker.h: ... here,
16512 * include/grub/i386/freebsd_reboot.h: ... here,
16513 * include/grub/i386/netbsd_bootinfo.h: ... here,
16514 * include/grub/i386/netbsd_reboot.h: ... here,
16515 * include/grub/i386/openbsd_bootarg.h: ... here,
16516 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
16517 licence to each file.
16519 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16521 * acinclude.m4: Remove `nop' assembly instruction; it's not
16522 implemented by all architectures.
16524 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16526 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16527 ELILO. This is no longer necessary.
16529 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16531 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16533 * util/grub-script-check.c: grub-script-check tool.
16534 * conf/common.rmk: Make rules for grub-script-check.
16536 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16538 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
16539 spotting it back in 2008. Shame on me for forgetting he did.
16541 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
16543 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16545 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
16546 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
16547 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
16548 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
16549 (GRUB_VIDEO_TYPE_EFI): Rename to ...
16550 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
16552 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
16554 * include/grub/test.h: Add license header.
16555 * tests/example_functional_test.c: Likewise.
16556 * tests/example_unit_test.c: Likewise.
16557 * tests/lib/functional_test.c: Likewise.
16558 * tests/lib/test.c: Likewise.
16559 * tests/lib/unit_test.c: Likewise.
16561 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
16563 Use flag-based instead of hook-based video mode selection and "auto"
16566 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
16567 (grub_video_set_mode): Changed prototype. All users updated.
16568 (grub_video_check_mode_flag): New inline function.
16569 * video/video.c (parse_modespec): New function.
16570 (grub_video_set_mode): Parse flags and keywords.
16572 2010-01-17 Carles Pina i Estany <carles@pina.cat>
16574 * util/misc.c (grub_util_info): Fix the order of the parameters in a
16577 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
16579 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
16581 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16583 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
16585 * util/grub-emu.c (usage): Likewise.
16586 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
16587 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16588 * util/i386/pc/grub-mkimage.c (usage): Likewise.
16589 * util/i386/pc/grub-setup.c (usage): Likewise.
16591 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16593 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
16595 (grub_util_info): Likewise.
16596 (grub_util_error): Likewise.
16597 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
16598 and/or new lines in `grub_util_warna', `grub_util_info',
16599 `grub_util_error' calls.
16600 * util/getroot.c: Likewise.
16601 * util/grub-editenv.c: Likewise.
16602 * util/grub-emu.c: Likewise.
16603 * util/grub-fstest.c: Likewise.
16604 * util/grub-mkdevicemap.c: Likewise.
16605 * util/grub-mkfont.c: Likewise.
16606 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16607 * util/grub-mkrelpath.c: Likewise.
16608 * util/grub-pe2elf.c: Likewise.
16609 * util/grub-probe.c: Likewise.
16610 * util/hostdisk.c: Likewise.
16611 * util/i386/efi/grub-mkimage.c: Likewise.
16612 * util/i386/pc/grub-mkimage.c: Likewise.
16613 * util/i386/pc/grub-setup.c: Likewise.
16614 * util/ieee1275/ofpath.c: Likewise.
16615 * util/mkisofs/eltorito.c: Likewise.
16616 * util/mkisofs/rock.c: Likewise.
16617 * util/mkisofs/write.c: Likewise.
16618 * util/raid.c: Likewise.
16619 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
16620 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16622 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16624 Enable multiboot on non-pc.
16626 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
16627 multiboot.mod and multiboot2.mod to ...
16628 * conf/i386.rmk (pkglib_MODULES): ... here.
16629 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
16631 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
16632 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
16634 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
16635 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
16637 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
16638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
16640 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
16641 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
16643 (ata_mod_SOURCES): Removed.
16644 (ata_mod_CFLAGS): Likewise.
16645 (ata_mod_LDFLAGS): Likewise.
16646 (relocator_mod_SOURCES): Removed.
16647 (relocator_mod_CFLAGS): Likewise.
16648 (relocator_mod_ASFLAGS): Likewise.
16649 (relocator_mod_LDFLAGS): Likewise.
16651 * include/grub/x86_64/multiboot.h: New file.
16652 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
16655 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16657 Video multiboot support.
16659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
16661 * include/multiboot.h: Resynced with multiboot specification.
16662 * include/multiboot2.h: Likewise.
16663 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
16664 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
16665 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
16666 (HAS_VGA_TEXT): Likewise.
16667 (accepts_video): New variable.
16668 (grub_multiboot_set_accepts_video): New function.
16669 (grub_multiboot_get_mbi_size): Account for video structures.
16670 (set_video_mode): New function.
16671 (retrieve_video_parameters): Likewise.
16672 (grub_multiboot_make_mbi): Fill video fields.
16674 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16678 * include/grub/video.h (grub_video_driver_id): New type.
16679 (grub_video_adapter): New member 'id'. All users updated.
16680 (grub_video_get_driver_id): New proto.
16681 * video/video.c (grub_video_get_driver_id): New function.
16683 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16685 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
16688 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16690 * normal/cmdline.c (print_completion): Gettextizze.
16692 2001-01-14 Carles Pina i Estany <carles@pina.cat>
16694 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
16696 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16698 * gettext/gettext.c (grub_gettext_translate): Push and pop
16700 (grub_gettext_delete_list): Change comment style.
16701 * kern/err.c (grub_error): Gettextizze.
16702 (grub_fatal): Gettextizze.
16704 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16706 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
16707 (grub_linux16_real_boot): ... this.
16708 * kern/i386/loader.S: Likewise.
16709 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
16710 (grub_linux16_boot): New function. Switches to text mode and calls
16711 grub_linux16_real_boot().
16713 * loader/i386/bsd.c: Include `<grub/video.h>'.
16714 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
16715 text mode before calling grub_unix_real_boot().
16717 * loader/i386/multiboot.c: Include `<grub/video.h>'.
16718 (grub_multiboot_boot): Switch to text mode before calling
16719 grub_relocator32_boot().
16721 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
16722 (grub_chainloader_boot): Switch to text mode before calling
16723 grub_chainloader_real_boot().
16725 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16726 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16728 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
16731 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16732 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16734 * util/grub.d/00_header.in: Define a "savedefault" function for use
16736 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
16738 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16739 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16741 * util/grub-mkconfig_lib.in (save_default_entry): Only set
16742 saved_entry if boot_once is unset.
16743 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
16744 previous saved entry (i.e. grub-reboot).
16746 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16748 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
16750 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16752 * util/grub.d/00_header.in: Use `set var=val' rather than plain
16754 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
16756 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16758 * util/grub-reboot.in: Fix --version output.
16759 * util/grub-set-default.in: Likewise.
16761 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16763 * util/grub.d/00_header.in: Silently ignore zero-sized environment
16766 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16768 * util/grub.d/00_header.in: Quote the value assigned to `default',
16769 in case it contains spaces.
16771 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16773 * util/grub.d/30_os-prober.in: Fix merge error that moved a
16774 `save_default_entry' call from the macosx case to the linux case.
16776 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16777 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
16779 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
16780 in `chosen' environment variable.
16781 * normal/menu_text.c (get_entry_number): Check if the variable
16782 matches the title of a menu entry.
16783 (run_menu): Pass menu to get_entry_number.
16785 * util/grub-reboot.in: New file.
16786 * util/grub-set-default.in: New file.
16787 * conf/common.rmk (grub-reboot): New utility.
16788 (grub-set-default): New utility.
16790 * util/grub-mkconfig_lib.in (save_default_entry): New function.
16791 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
16792 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
16793 move it to `saved_entry' for the next boot. Load environment on
16795 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
16796 * util/grub.d/10_hurd.in: Likewise.
16797 * util/grub.d/10_linux.in (linux_entry): Likewise.
16798 * util/grub.d/10_windows.in: Likewise.
16799 * util/grub.d/30_os-prober.in: Likewise.
16801 * util/grub-install.in: Create environment block.
16802 * util/i386/efi/grub-install.in: Likewise.
16803 * util/ieee1275/grub-install.in: Likewise.
16804 * util/sparc64/ieee1275/grub-install.in: Likewise.
16806 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
16808 Unit testing framework for GRUB.
16810 * Makefile.in: Test framework build rules for 'make check'.
16811 * conf/tests.rmk: Build rules for individual tests and framework.
16813 * include/grub/test.h: Header file for whitebox tests.
16814 * tests/lib/functional_test.c: Framework support for whitebox
16816 * tests/lib/test.c: Common whitebox testing code for unit and
16818 * tests/lib/unit_test.c: Framework support for whitebox unit
16821 * tests/util/grub-shell-tester.in: Support utility for grub-script
16823 * tests/util/grub-shell.in: Utility to execute grub-script
16824 commands in a Qemu instance.
16826 * tests/example_functional_test.c: Example whitebox functional
16828 * tests/example_grub_script_test.in: Example grub-script test.
16829 * tests/example_scripted_test.in: Example scripted test.
16830 * tests/example_unit_test.c: Example whitebox unit test.
16832 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16834 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
16835 Add loader/i386/multiboot_mbi.c.
16836 (multiboot2_mod_SOURCES): Likewise.
16837 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
16838 (multiboot2_mod_SOURCES): Likewise.
16839 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
16840 (grub_multiboot_make_mbi): Likewise.
16841 (grub_multiboot_free_mbi): Likewise.
16842 (grub_multiboot_init_mbi): Likewise.
16843 (grub_multiboot_add_module): Likewise.
16844 (grub_multiboot_set_bootdev): Likewise.
16845 * loader/i386/multiboot.c (mbi): Removed.
16846 (mbi_dest): Likewise.
16847 (alloc_mbi): New variable.
16848 (grub_multiboot_payload_size): Removed. All users updated.
16849 (grub_multiboot_pure_size): New variable.
16850 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
16851 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
16852 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
16853 (grub_fill_multiboot_mmap): Likewise.
16854 (grub_multiboot_get_bootdev): Likewise.
16855 (grub_multiboot): Use multiboot_mbi functions.
16856 * loader/i386/multiboot_mbi.c: New file.
16858 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16860 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
16861 it would result in module crash.
16863 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16865 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
16866 (grub_ofconsole_getwh): Split to ...
16867 (grub_ofconsole_getwh): ... this.
16868 (grub_ofconsole_dimensions): ...and this.
16869 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
16871 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
16873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
16875 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16877 * loader/i386/pc/multiboot2.c: Removed stalled file.
16879 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16881 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
16882 Reported by: Grégoire Sutre
16884 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
16886 * util/misc.c (canonicalize_file_name): New function.
16887 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
16888 instead of realpath().
16890 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
16892 * util/grub-install.in (usage): Clarify meaning of --root-directory,
16893 and make it clearer that it's optional. Based on confusion
16896 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16898 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
16899 in premature implicit newline.
16901 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16903 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
16904 which resulted in garbled command line at the end of screen.
16906 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
16909 initialization with similar approach as with other Linux loaders.
16911 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16913 Fix i386-ieee1275 build.
16915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
16916 and grub_term_height() for video_{width,height} initialization.
16918 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16920 Fix grub-emu build.
16922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
16924 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16925 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
16927 Support for multiple terminals.
16929 * Makefile.in (pkglib_DATA): terminal.lst.
16930 (terminal.lst): New target.
16931 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
16932 (GRUB_MOD_INIT(handler)): Likewise.
16933 (GRUB_MOD_FINI(handler)): Likewise.
16934 * commands/help.c (grub_cmd_help): Handle multiple terminals.
16935 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
16936 * commands/sleep.c (do_print): Use grub_term_restore_pos.
16937 (grub_cmd_sleep): Use grub_term_save_pos.
16938 * commands/terminal.c: New file.
16939 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
16940 commands/terminal.c and lib/charset.c.
16941 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
16942 (pkglib_MODULES): Add terminal.mod.
16943 (terminal_mod_SOURCES): New variable.
16944 (terminal_mod_CFLAGS): Likewise.
16945 (terminal_mod_LDFLAGS): Likewise.
16946 * genhandlerlist.sh: Don't handle terminals.
16947 * genmk.rb: Generate terminal-*.lst.
16948 * genterminallist.sh: New file.
16949 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
16950 (grub_is_valid_utf8): Likewise.
16951 (grub_utf8_to_ucs4_alloc): Likewise.
16952 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
16953 (grub_menu_register_viewer): Changed argument.
16954 (grub_menu_try_text): New proto.
16955 (grub_gfxmenu_try_hook): New declaration.
16956 * include/grub/normal.h (grub_normal_exit_level): New declaration.
16957 (grub_menu_init_page): Additional argument term.
16958 (grub_normal_init_page): Likewise.
16959 (grub_cmdline_get): Arguments simplified.
16960 (grub_utf8_to_ucs4_alloc): Removed.
16961 (grub_print_ucs4): Additional argument term.
16962 (grub_getstringwidth): Likewise.
16963 (grub_print_message_indented): Likewise.
16964 (grub_menu_text_register_instances): New proto.
16965 (grub_show_menu): Likewise.
16966 (read_terminal_list): Likewise.
16967 (grub_set_more): Likewise.
16968 * include/grub/parser.h: Include handler.h.
16969 * include/grub/reader.h: Rewritten.
16970 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
16971 (GRUB_TERM_WIDTH): Changed to function.
16972 (GRUB_TERM_HEIGHT): Likewise.
16973 (GRUB_TERM_BORDER_WIDTH): Likewise.
16974 (GRUB_TERM_BORDER_HEIGHT): Likewise.
16975 (GRUB_TERM_NUM_ENTRIES): Likewise.
16976 (GRUB_TERM_ENTRY_WIDTH): Likewise.
16977 (GRUB_TERM_CURSOR_X): Likewise.
16978 (grub_term_input_class): Likewise.
16979 (grub_term_output_class): Likewise.
16980 (grub_term_outputs_disabled): New declaration.
16981 (grub_term_inputs_disabled): Likewise.
16982 (grub_term_outputs): Likewise.
16983 (grub_term_inputs): Likewise.
16984 (grub_term_register_input): Rewritten.
16985 (grub_term_register_output): Likewise.
16986 (grub_term_unregister_input): Likewise.
16987 (grub_term_unregister_output): Likewise.
16988 (FOR_ACTIVE_TERM_INPUTS): New macro.
16989 (FOR_DISABLED_TERM_INPUTS): Likewise.
16990 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
16991 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
16992 * include/grub/terminfo.h: Add oterm argument to all protypes.
16993 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
16994 Use grub_rescue_run.
16995 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
16997 * kern/reader.c: Removed. All users updated.
16998 * kern/rescue_reader.c (grub_rescue_init): Removed.
16999 (grub_rescue_reader): Likewise.
17000 (grub_register_rescue_reader): Likewise.
17001 (grub_rescue_run): New function based on kern/reader.c.
17002 * kern/term.c: Adapted for multiterm.
17003 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17004 (grub_is_valid_utf8): Likewise.
17005 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17006 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17008 * loader/i386/linux.c (grub_linux_boot): Likewise.
17009 * normal/auth.c (grub_username_get): New function.
17010 (grub_auth_check_authentication): Use grub_username_get.
17011 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17012 * normal/color.c: Adapt for multiterm.
17013 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17014 (grub_normal_init_page): Additional argument term.
17015 (read_lists): Call read_terminal_lists.
17016 (grub_enter_normal_mode): Call grub_cmdline_run.
17017 Handle grub_normal_exit_level.
17018 (grub_cmd_normal): Make reentrant.
17019 (grub_cmd_normal_exit): New function.
17020 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17021 * normal/menu.c: Adapt for multiterm.
17022 * normal/menu_entry.c: Likewise.
17023 * normal/menu_text.c: Likewise.
17024 * normal/menu_viewer.c: Removed. All users updated.
17025 * normal/term.c: New file.
17026 * util/console.c: Change order of includes to workaround a bug in
17028 * term/terminfo.c: New argument oterm on all exported functions.
17030 * util/grub-editenv.c (grub_term_input_class): Removed.
17031 (grub_term_output_class): Likewise.
17033 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17035 Make loader output a bit more user-friendly.
17037 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17038 is being loaded. Likewise for the Hurd.
17040 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17041 that kernel of FreeBSD ${version} is being loaded.
17043 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17045 (grub_cmd_initrd): Likewise.
17046 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17047 that Linux ${version} is being loaded. Likewise for initrd.
17049 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17051 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17053 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17055 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17056 (GRUB_MOD_INIT): Gettextizze.
17057 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17058 (GRUB_MOD_INIT): Gettextizze.
17059 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17060 (grub_cmd_linux): Capitalise Linux.
17061 (GRUB_MOD_INIT): Gettextizze.
17062 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17063 (grub_cmd_linux): Capitalise Linux.
17064 (GRUB_MOD_INIT): Gettextizze.
17065 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17066 (grub_cmd_linux): Capitalise Linux.
17067 (GRUB_MOD_INIT): Gettextizze.
17068 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17069 (GRUB_MOD_INIT): Gettextizze.
17070 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17071 (grub_cmd_linux): Capitalise Linux.
17072 (GRUB_MOD_INIT): Gettextizze.
17073 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17074 (grub_cpu_xnu_init): Gettextizze.
17075 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17076 (GRUB_MOD_INIT): Gettextizze.
17077 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17078 (GRUB_MOD_INIT): Gettextizze.
17079 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17080 (grub_linux_load64): Capitalise Linux.
17081 (GRUB_MOD_INIT): Gettextizze.
17082 * loader/xnu.c: Include `<grub/i18n.h>'.
17083 (GRUB_MOD_INIT): Gettextizze.
17084 * po/POTFILES: Add `loader/efi/appleloader.c',
17085 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17086 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17087 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17088 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17089 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17090 and `loader/xnu.c'.
17092 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17094 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17096 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17098 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17099 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17100 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17102 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17104 Reset Multiboot 2 support. New loader implements the draft in
17105 /branches/multiboot2 and shares as much code as possible with the
17106 production Multiboot 1 implementation.
17108 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17109 * loader/multiboot2.c: Likewise.
17110 * loader/i386/multiboot_helper.S: Likewise.
17111 * include/multiboot2.h: Replace with latest version from the draft
17112 in /branches/multiboot2.
17114 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17115 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17116 and `loader/multiboot2.c'.
17117 (pkglib_MODULES): Add `multiboot2.mod'.
17118 (multiboot2_mod_SOURCES): New variable.
17119 (multiboot2_mod_LDFLAGS): Likewise.
17120 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17122 * conf/i386-pc.rmk: Likewise.
17124 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17125 (multiboot_mod_SOURCES): Remove variable.
17126 (multiboot_mod_LDFLAGS): Likewise.
17127 (multiboot_mod_CFLAGS): Likewise.
17129 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17130 `<multiboot2.h>' instead of `<multiboot.h>'.
17131 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17132 (MULTIBOOT_HEADER_MAGIC): New macros.
17134 * loader/multiboot_loader.c (module_version_status): Remove variable.
17135 (find_multi_boot2_header): Remove function.
17136 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17137 logic. Always check for the Multiboot version we're compiling for.
17138 (grub_cmd_module_loader): Likewise.
17139 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17140 command instead of `multiboot'.
17142 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17144 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17145 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17148 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17149 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17151 Fix breakage introduced with previous commit.
17153 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17155 * normal/handler.c (read_handler_list): Revert part of previous commit
17156 affecting this file.
17157 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17158 (grub_normal_execute): ... here.
17160 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17162 Merge prefix-redefinition-fix branch.
17164 * normal/autofs.c (read_fs_list): Make function capable of being
17165 run multiple times, gracefuly replacing the previous data
17167 * normal/dyncmd.c (read_command_list): Likewise.
17168 * normal/handler.c (read_handler_list): Likewise.
17169 * normal/main.c (read_lists): New function. Calls all the
17170 list reading functions.
17171 (grub_normal_execute): Use read_lists() instead of calling all
17172 list reading functions explicitly. Register read_lists() as a
17173 variable hook attached to ${prefix}.
17175 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17177 Merge crypto branch.
17179 * Makefile.in (pkglib_DATA): Add crypto.lst.
17180 (crypto.lst): New target.
17181 * commands/hashsum.c: New file.
17182 * commands/password.c (check_password): Use grub_crypto_memcmp.
17183 * commands/password_pbkdf2.c: New file.
17184 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17185 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17186 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17187 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17188 -I$(srcdir)/lib/libgcrypt_wrap.
17189 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17190 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17191 password_pbkdf2.mod.
17192 (crypto_mod_SOURCES): New variable.
17193 (crypto_mod_CFLAGS): Likewise.
17194 (crypto_mod_LDFLAGS): Likewise.
17195 (hashsum_mod_SOURCES): New variable.
17196 (hashsum_mod_CFLAGS): Likewise.
17197 (hashsum_mod_LDFLAGS): Likewise.
17198 (pbkdf2_mod_SOURCES): New variable.
17199 (pbkdf2_mod_CFLAGS): Likewise.
17200 (pbkdf2_mod_LDFLAGS): Likewise.
17201 (password_pbkdf2_mod_SOURCES): New variable.
17202 (password_pbkdf2_mod_CFLAGS): Likewise.
17203 (password_pbkdf2_mod_LDFLAGS): Likewise.
17204 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17205 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17206 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17207 Include conf/gcry.rmk.
17208 * include/grub/auth.h: Rewritten.
17209 * include/grub/crypto.h: New file.
17210 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17211 * include/grub/normal.h (read_crypto_list): New prototype.
17212 * lib/crypto.c: New file.
17213 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17214 * lib/pbkdf2.c: Likewise.
17215 * normal/auth.c (grub_auth_strcmp): Removed.
17216 (grub_iswordseparator): Likewise.
17217 (grub_auth_strword): Likewise.
17218 (is_authenticated): Use grub_strword.
17219 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17220 and grub_strword. Pass entered password to authentication callback.
17221 * normal/crypto.c: New file.
17222 * normal/main.c: Call read_crypto_list.
17223 * util/grub-mkpasswd-pbkdf2.c: New file.
17224 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17226 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17228 Fix descent and ascent calculation.
17230 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17231 (options): New option "asce".
17233 (add_char): Ignore invalid glyphs for descent calculation.
17234 Calculate ascent from actual content.
17235 (print_glyphs): Use 'asce'.
17236 (write_font): Likewise. Allow ascent override.
17237 (main): Handle "asce" option.
17239 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17241 * kern/err.c: Include `<grub/i18n.h>'.
17242 (grub_print_error): Add full stop. Gettextizze.
17243 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
17244 (grub_bsd_load_elf): Capitalise ELF.
17245 (grub_cmd_freebsd_loadenv): Add `s' in error string.
17246 (grub_cmd_freebsd_module): Likewise.
17247 (grub_cmd_freebsd_module_elf): Likewise.
17248 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
17250 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17252 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
17253 * commands/search_file.c (HELP_MESSAGE): New macro.
17254 * commands/search_label.c (HELP_MESSAGE): Likewise.
17255 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
17256 * po/POTFILES: Add `commands/search_file.c',
17257 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
17258 `commands/search.c'.
17260 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17262 * config.rpath: Update from Gnulib.
17264 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17266 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17268 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17270 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17272 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17274 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
17275 arguments to fread so that we get a return value in bytes, rather
17276 than something that will normally be rounded down to 0.
17277 Adjust error handling to avoid producing garbage when size_t is not
17278 the same size as long long.
17280 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17282 * util/mkisofs/write.c (padblock_write): Check return value of
17285 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17287 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
17290 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
17292 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17294 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
17295 instead of manual alignment.
17296 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
17297 verbose). Avoid attempts to read past end of the device
17298 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
17299 but GRUB_DISK_CACHE_SIZE may exceed that).
17301 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17303 * commands/crc.c (grub_cmd_crc): Abort on read errors.
17304 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
17307 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17309 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
17311 (grub_efi_piwg_device_path): New structure
17312 (grub_efi_piwg_device_path_t): New type.
17313 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
17314 (devpath_1): Transform to a structure. All users updated.
17315 (devpath_2): Likewise.
17316 (devpath_3): Likewise.
17317 (devpath_4): Likewise.
17318 (devpath_5): Likewise.
17320 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17322 * loader/efi/appleloader.c: Restored. Update all users.
17324 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17326 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
17328 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
17329 (struct boot_blocklist): Move from here ...
17330 * include/grub/i386/pc/boot.h [ASM_FILE]
17331 (struct grub_boot_blocklist): ... to here. Update all users.
17332 (setup): Only initialize `start' member of `first_block'
17333 structure. Add assert() calls to verify the other members.
17335 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
17336 (generate_image): Fix broken blocklist length initialization.
17337 Add assert() call to verify blocklist `segment' field.
17339 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17341 * loader/efi/appleloader.c: Remove. Update all users.
17343 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17345 * boot/i386/pc/boot.S: Update copyright year.
17346 * boot/i386/pc/cdboot.S: Likewise.
17347 * boot/i386/pc/diskboot.S: Likewise.
17348 * boot/i386/pc/lnxboot.S: Likewise.
17349 * boot/i386/pc/pxeboot.S: Likewise.
17350 * bus/pci.c: Likewise.
17351 * commands/cmp.c: Likewise.
17352 * commands/help.c: Likewise.
17353 * commands/hexdump.c: Likewise.
17354 * commands/i386/pc/halt.c: Likewise.
17355 * commands/i386/pc/play.c: Likewise.
17356 * commands/i386/pc/vbeinfo.c: Likewise.
17357 * commands/ls.c: Likewise.
17358 * commands/test.c: Likewise.
17359 * disk/dmraid_nvidia.c: Likewise.
17360 * disk/i386/pc/biosdisk.c: Likewise.
17361 * disk/ieee1275/nand.c: Likewise.
17362 * disk/ieee1275/ofdisk.c: Likewise.
17363 * disk/lvm.c: Likewise.
17364 * disk/raid.c: Likewise.
17365 * disk/raid6_recover.c: Likewise.
17366 * disk/scsi.c: Likewise.
17367 * fs/affs.c: Likewise.
17368 * fs/cpio.c: Likewise.
17369 * fs/ext2.c: Likewise.
17370 * fs/hfs.c: Likewise.
17371 * fs/iso9660.c: Likewise.
17372 * fs/ntfs.c: Likewise.
17373 * fs/sfs.c: Likewise.
17374 * fs/udf.c: Likewise.
17375 * fs/ufs.c: Likewise.
17376 * fs/xfs.c: Likewise.
17377 * gencmdlist.sh: Likewise.
17378 * genmk.rb: Likewise.
17379 * include/grub/disk.h: Likewise.
17380 * include/grub/efi/api.h: Likewise.
17381 * include/grub/efi/efi.h: Likewise.
17382 * include/grub/efi/pe32.h: Likewise.
17383 * include/grub/elf.h: Likewise.
17384 * include/grub/fs.h: Likewise.
17385 * include/grub/i386/at_keyboard.h: Likewise.
17386 * include/grub/i386/pc/memory.h: Likewise.
17387 * include/grub/i386/pc/vbe.h: Likewise.
17388 * include/grub/i386/pci.h: Likewise.
17389 * include/grub/i386/tsc.h: Likewise.
17390 * include/grub/ieee1275/ieee1275.h: Likewise.
17391 * include/grub/ntfs.h: Likewise.
17392 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17393 * include/grub/sparc64/libgcc.h: Likewise.
17394 * include/grub/symbol.h: Likewise.
17395 * include/grub/types.h: Likewise.
17396 * include/multiboot2.h: Likewise.
17397 * io/gzio.c: Likewise.
17398 * kern/device.c: Likewise.
17399 * kern/disk.c: Likewise.
17400 * kern/efi/efi.c: Likewise.
17401 * kern/efi/mm.c: Likewise.
17402 * kern/elf.c: Likewise.
17403 * kern/file.c: Likewise.
17404 * kern/i386/dl.c: Likewise.
17405 * kern/i386/pc/init.c: Likewise.
17406 * kern/i386/pc/startup.S: Likewise.
17407 * kern/ieee1275/ieee1275.c: Likewise.
17408 * kern/ieee1275/init.c: Likewise.
17409 * kern/main.c: Likewise.
17410 * kern/mm.c: Likewise.
17411 * kern/powerpc/dl.c: Likewise.
17412 * kern/sparc64/dl.c: Likewise.
17413 * kern/x86_64/dl.c: Likewise.
17414 * lib/hexdump.c: Likewise.
17415 * loader/efi/appleloader.c: Likewise.
17416 * loader/i386/ieee1275/linux.c: Likewise.
17417 * loader/i386/pc/chainloader.c: Likewise.
17418 * loader/i386/pc/linux.c: Likewise.
17419 * loader/i386/pc/multiboot2.c: Likewise.
17420 * loader/ieee1275/multiboot2.c: Likewise.
17421 * loader/multiboot2.c: Likewise.
17422 * loader/multiboot_loader.c: Likewise.
17423 * loader/powerpc/ieee1275/linux.c: Likewise.
17424 * normal/completion.c: Likewise.
17425 * normal/menu_entry.c: Likewise.
17426 * partmap/apple.c: Likewise.
17427 * util/grub.d/10_hurd.in: Likewise.
17428 * util/hostfs.c: Likewise.
17429 * video/readers/png.c: Likewise.
17431 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
17433 * include/grub/misc.h (GNUC_PREREQ): New macro.
17434 (ATTRIBUTE_ERROR): New macro.
17435 * include/grub/list.h (grub_bad_type_cast_real): Use
17438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17440 * normal/menu_text.c (print_message): Change messages.
17442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17444 * normal/menu_entry.c (store_completion): Gettextizze.
17446 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17448 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
17450 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17452 * po/POTFILES: Sort correctly.
17454 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17456 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
17457 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
17458 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
17460 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
17461 summary. Gettextizze the strings.
17462 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
17463 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
17464 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
17466 (GRUB_MOD_INIT): Remove command name from summary.
17467 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
17469 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
17470 * term/i386/pc/serial.c (options): Add full stops.
17471 (GRUB_MOD_INIT): Remove command name from the summary.
17473 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17475 * commands/acpi.c: Gettextizze help strings and/or options. Include
17476 `grub/i18n.h' if needed.
17477 * commands/blocklist.c: Likewise.
17478 * commands/boot.c: Likewise.
17479 * commands/cat.c: Likewise.
17480 * commands/cmp.c: Likewise.
17481 * commands/configfile.c: Likewise.
17482 * commands/crc.c: Likewise.
17483 * commands/date.c: Likewise.
17484 * commands/echo.c: Likewise.
17485 * commands/efi/fixvideo.c: Likewise.
17486 * commands/efi/loadbios.c: Likewise.
17487 * commands/gptsync.c: Likewise.
17488 * commands/halt.c: Likewise.
17489 * commands/handler.c: Likewise.
17490 * commands/hdparm.c: Likewise.
17491 * commands/hexdump.c: Likewise.
17492 * commands/i386/cpuid.c: Likewise.
17493 * commands/i386/pc/drivemap.c: Likewise.
17494 * commands/i386/pc/halt.c: Likewise.
17495 * commands/i386/pc/pxecmd.c: Likewise.
17496 * commands/i386/pc/vbeinfo.c: Likewise.
17497 * commands/i386/pc/vbetest.c: Likewise.
17498 * commands/ieee1275/suspend.c: Likewise.
17499 * commands/keystatus.c: Likewise.
17500 * commands/loadenv.c: Likewise.
17501 * commands/ls.c: Likewise.
17502 * commands/lsmmap.c: Likewise.
17503 * commands/lspci.c: Likewise.
17504 * commands/memrw.c: Likewise.
17505 * commands/minicmd.c: Likewise.
17506 * commands/parttool.c: Likewise.
17507 * commands/password.c: Likewise.
17508 * commands/probe.c: Likewise.
17509 * commands/read.c: Likewise.
17510 * commands/reboot.c: Likewise.
17511 * commands/search.c: Likewise.
17512 * commands/sleep.c: Likewise.
17513 * commands/test.c: Likewise.
17514 * commands/true.c: Likewise.
17515 * commands/usbtest.c: Likewise.
17516 * commands/videotest.c: Likewise.
17517 * commands/xnu_uuid.c: Likewise.
17518 * disk/loopback.c: Likewise.
17519 * hello/hello.c: Likewise.
17520 * loader/i386/bsd.c: Likewise.
17521 * term/i386/pc/serial.c: Likewise.
17522 * po/POTFILES: Add new files.
17524 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17526 * term/i386/pc/at_keyboard.c
17527 (keyboard_controller_wait_untill_ready): Rename to ...
17528 (keyboard_controller_wait_until_ready): ... this. Update all users.
17530 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17532 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
17533 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
17534 string using string width.
17535 * normal/menu_text.c (grub_print_message_indented): Use
17536 grub_print_spaces and not print_spaces.
17537 (print_timeout): Likewise.
17538 (print_spaces): Move to...
17539 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
17541 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
17543 Import from Gnulib.
17545 * gnulib/getdelim.c: New file.
17546 * gnulib/getline.c: Likewise.
17548 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
17550 * include/grub/list.h (grub_assert_fail): Removed.
17551 (grub_bad_type_cast_real): New function.
17552 (grub_bad_type_cast): New macro.
17553 (GRUB_AS_LIST): Use grub_bad_type_cast.
17554 (GRUB_AS_LIST_P): Likewise.
17555 (GRUB_AS_NAMED_LIST): Likewise.
17556 (GRUB_AS_NAMED_LIST_P): Likewise.
17557 (GRUB_AS_PRIO_LIST): Likewise.
17558 (GRUB_AS_PRIO_LIST_P): Likewise.
17559 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
17561 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
17563 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
17566 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
17568 * configure.ac: Check for TARGET_CFLAGS initialization before we
17569 initialize it ourselves (sigh).
17570 Move a few modifications to TARGET_CFLAGS to be unconditional
17571 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
17574 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
17575 * term/i386/pc/at_keyboard.c
17576 (keyboard_controller_wait_untill_ready): Likewise.
17577 (keyboard_controller_led): Rename `led_status' paramter to avoid
17580 2009-12-28 Carles Pina i Estany <carles@pina.cat>
17582 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
17585 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17587 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
17589 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17591 * normal/menu_text.c (grub_print_message_indented): Prevent
17592 past-the-end-of-array dereference.
17594 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17596 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
17597 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
17599 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17601 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
17602 * normal/main.c (grub_normal_read_line): Remove a space from the
17605 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17607 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
17608 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17609 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17610 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17611 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17612 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17613 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17615 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17617 * video/readers/jpeg.c (cmd): Declare.
17618 (grub_cmd_jpegtest): Use `grub_command_t' type.
17619 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17621 (GRUB_MOD_FINI): Use `cmd' to unregister.
17622 * video/readers/png.c (cmd): Declare.
17623 (grub_cmd_pngtest): Use `grub_command_t' type.
17624 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17626 (GRUB_MOD_FINI): Use `cmd' to unregister.
17627 * video/readers/tga.c (cmd): Declare.
17628 (grub_cmd_tgatest): Use `grub_command_t' type.
17629 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17631 (GRUB_MOD_FINI): Use `cmd' to unregister.
17633 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17635 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
17637 * kern/corecmd.c (grub_register_core_commands): Likewise.
17638 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
17639 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17640 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
17641 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17642 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17643 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
17644 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17645 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
17646 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17647 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17648 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17649 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17650 * normal/handler.c (insert_handler): Likewise.
17651 * normal/main.c (GRUB_MOD_INIT): Likewise.
17652 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
17654 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17656 * commands/help.c (grub_cmd_help): Print the command name before the
17658 (GRUB_MOD_INIT): Remove command name from the summary.
17659 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
17661 * lib/arg.c (find_long): Print the command name before the summary.
17662 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
17664 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
17665 * commands/cat.c (GRUB_MOD_INIT): Likewise.
17666 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
17667 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17668 * commands/crc.c (GRUB_MOD_INIT): Likewise.
17669 * commands/date.c (GRUB_MOD_INIT): Likewise.
17670 * commands/echo.c (GRUB_MOD_INIT): Likewise.
17671 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
17672 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
17673 * commands/handler.c (GRUB_MOD_INIT): Likewise.
17674 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
17675 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
17676 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
17677 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
17678 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
17679 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
17680 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
17681 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
17682 * commands/ls.c (GRUB_MOD_INIT): Likewise.
17683 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
17684 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
17685 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
17686 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
17687 * commands/password.c (GRUB_MOD_INIT): Likewise.
17688 * commands/probe.c (GRUB_MOD_INIT): Likewise.
17689 * commands/read.c (GRUB_MOD_INIT): Likewise.
17690 * commands/search.c (GRUB_MOD_INIT): Likewise.
17691 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
17692 * commands/test.c (GRUB_MOD_INIT): Likewise.
17693 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
17694 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
17695 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
17696 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
17697 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
17698 * lib/arg.c (GRUB_MOD_INIT): Likewise.
17699 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
17700 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17701 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17702 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17703 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
17704 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
17705 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
17706 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
17708 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17710 Use search command for preliminar UUID search.
17712 * commands/search.c: Split into ...
17713 * commands/search_wrap.c: ...this
17714 * commands/search.c: ...and this.
17715 * commands/search_file.c: New file.
17716 * commands/search_label.c: New file.
17717 * commands/search_uuid.c: New file.
17718 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
17719 Add commands/search_wrap.c, commands/search_file.c,
17720 commands/search_label.c and commands/search_uuid.c.
17721 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
17722 (search_mod_SOURCES): Set to commands/search_wrap.c.
17723 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
17725 (search_fs_file_mod_SOURCES): New variable.
17726 (search_fs_file_mod_CFLAGS): Likewise.
17727 (search_fs_file_mod_LDFLAGS): Likewise.
17728 (search_label_mod_SOURCES): Likewise.
17729 (search_label_mod_CFLAGS): Likewise.
17730 (search_label_mod_LDFLAGS): Likewise.
17731 (search_fs_uuid_mod_SOURCES): New variable.
17732 (search_fs_uuid_mod_CFLAGS): Likewise.
17733 (search_fs_uuid_mod_LDFLAGS): Likewise.
17734 (fs_file_mod_SOURCES): Removed.
17735 (fs_file_mod_CFLAGS): Likewise.
17736 (fs_file_mod_LDFLAGS): Likewise.
17737 (fs_uuid_mod_SOURCES): Removed.
17738 (fs_uuid_mod_CFLAGS): Likewise.
17739 (fs_uuid_mod_LDFLAGS): Likewise.
17740 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
17741 Set to util/grub-install.in.
17742 * disk/fs_file.c: Removed.
17743 * disk/fs_uuid.c: Likewise.
17744 * include/grub/search.h: New file.
17745 * util/grub-install.in: Handle sparc64.
17746 Create and use load.cfg.
17747 * util/sparc64/ieee1275/grub-install.in: Removed.
17749 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17751 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
17752 Ignore return status if CF is cleared.
17753 (grub_biosdisk_get_diskinfo_standard): Likewise.
17755 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17757 * term/i386/pc/at_keyboard.c
17758 (keyboard_controller_wait_untill_ready): New function.
17759 (grub_keyboard_controller_write, grub_keyboard_controller_read)
17760 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
17761 for keyboard polling, rather than duplicate the same loop. This
17762 saves a few bytes in code size.
17764 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17766 Support for (pxe[:server[:gateway]]) syntax and
17767 use environment variable for PXE.
17769 * commands/i386/pc/pxecmd.c (options): Removed.
17770 (print_ip): Removed.
17771 (grub_cmd_pxe): Removed
17772 (grub_cmd_pxe_unload): New function.
17773 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
17774 (grub_pxe_your_ip): Made static.
17775 (grub_pxe_default_server_ip): Likewise.
17776 (grub_pxe_default_gateway_ip): Likewise.
17777 (grub_pxe_blksize): Likewise.
17778 (parse_ip): New function.
17779 (grub_pxe_open): Support server and gateway specification.
17780 (grub_pxe_close): Free disk->data.
17781 (grub_pxefs_open): Use disk->data.
17782 (grub_pxefs_read): Likewise.
17783 (grub_env_write_readonly): New function.
17784 (set_mac_env): Likewise.
17785 (set_env_limn_ro): Likewise.
17786 (parse_dhcp_vendor): Likewise.
17787 (grub_pxe_detect): Set the environment variables.
17788 (set_ip_env): New function.
17789 (write_ip_env): Likewise.
17790 (grub_env_write_pxe_default_server): Likewise.
17791 (grub_env_write_pxe_default_gateway): Likewise.
17792 (grub_env_write_pxe_blocksize): Likewise.
17793 (GRUB_MOD_INIT(pxe)): Set environment variables.
17794 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
17795 (grub_pxe_mac_addr_t): ... this. All users updated.
17796 (grub_pxe_your_ip): Removed.
17797 (grub_pxe_server_ip): Likewise.
17798 (grub_pxe_gateway_ip): Likewise.
17799 (grub_pxe_blksize): Likewise.
17801 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17803 * commands/help.c: Include `<grub/i18n.h>'.
17804 (grub_cmd_help): Gettextizze.
17805 (GRUB_MOD_INIT): Likewise.
17806 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
17807 (GRUB_MOD_INIT): Gettextizze.
17808 * commands/search.c: Include `<grub/i18n.h>'.
17809 (options): Gettextizze.
17810 (GRUB_MOD_INIT): Gettextizze.
17811 * lib/arg.c: Include `<grub/i18n.h>'.
17812 (help_options): Gettextizze.
17813 (find_long): Likewise.
17814 (grub_arg_show_help): Likewise.
17815 * normal/dyncmd.c: Include `<grub/i18n.h>'.
17816 (read_command_list): Gettextizze.
17817 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
17818 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
17820 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17822 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
17823 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
17824 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
17825 (led_status): New variable.
17826 (keyboard_controller_led): New function.
17827 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
17828 update led status for caps lock, num lock and scroll lock.
17830 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
17832 * util/hostdisk.c (open_device): Fix a comment.
17834 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17836 * util/grub-install.in (host_os): New variable.
17837 * util/i386/efi/grub-install.in (host_os): Likewise.
17839 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17841 * util/mkisofs/write.c (padblock_write): Abort when given an
17842 excedingly large embed image, instead of silently truncating it.
17844 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17846 * include/multiboot.h: Indentation fixes.
17848 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17850 * include/multiboot.h (struct multiboot_aout_symbol_table)
17851 (struct multiboot_elf_section_header_table): New structure
17852 declarations (stolen from GRUB Legacy).
17853 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
17856 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
17857 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
17860 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17862 * include/multiboot.h: Make comments src2texi-friendly.
17864 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17866 For consistency with [multiboot]/docs/boot.S.
17868 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
17869 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
17870 (MULTIBOOT_MAGIC2): Rename from this ...
17871 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
17873 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17875 * include/multiboot.h: Remove `<grub/types.h>'.
17876 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
17877 types. Update all users.
17879 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17881 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
17882 `couldn't' and `can not' by `cannot'.
17883 * commands/i386/pc/drivemap.c: Likewise.
17884 * disk/ata.c: Likewise.
17885 * disk/ieee1275/nand.c: Likewise.
17886 * fs/affs.c: Likewise.
17887 * fs/fat.c: Likewise.
17888 * fs/hfs.c: Likewise.
17889 * fs/hfsplus.c: Likewise.
17890 * fs/iso9660.c: Likewise.
17891 * fs/jfs.c: Likewise.
17892 * fs/minix.c: Likewise.
17893 * fs/reiserfs.c: Likewise.
17894 * fs/sfs.c: Likewise.
17895 * fs/udf.c: Likewise.
17896 * fs/ufs.c: Likewise.
17897 * fs/xfs.c: Likewise.
17898 * loader/powerpc/ieee1275/linux.c: Likewise.
17899 * loader/sparc64/ieee1275/linux.c: Likewise.
17900 * util/grub-probe.c: Likewise.
17901 * util/misc.c: Likewise.
17903 2009-12-24 Carles Pina i Estany <carles@pina.cat>
17905 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
17907 * commands/acpi.c: Likewise.
17908 * commands/blocklist.c: Likewise.
17909 * commands/efi/loadbios.c: Likewise.
17910 * commands/i386/pc/drivemap.c: Likewise.
17911 * commands/loadenv.c: Likewise.
17912 * commands/memrw.c: Likewise.
17913 * commands/password.c: Likewise.
17914 * commands/videotest.c: Likewise.
17915 * disk/ata.c: Likewise.
17916 * disk/ata_pthru.c: Likewise.
17917 * disk/dmraid_nvidia.c: Likewise.
17918 * disk/ieee1275/nand.c: Likewise.
17919 * disk/ieee1275/ofdisk.c: Likewise.
17920 * disk/loopback.c: Likewise.
17921 * disk/lvm.c: Likewise.
17922 * disk/mdraid_linux.c: Likewise.
17923 * disk/raid.c: Likewise.
17924 * disk/raid6_recover.c: Likewise.
17925 * disk/scsi.c: Likewise.
17926 * efiemu/main.c: Likewise.
17927 * efiemu/mm.c: Likewise.
17928 * efiemu/pnvram.c: Likewise.
17929 * efiemu/symbols.c: Likewise.
17930 * font/font.c: Likewise.
17931 * fs/cpio.c: Likewise.
17932 * fs/hfsplus.c: Likewise.
17933 * fs/iso9660.c: Likewise.
17934 * fs/jfs.c: Likewise.
17935 * fs/minix.c: Likewise.
17936 * fs/ntfs.c: Likewise.
17937 * fs/ntfscomp.c: Likewise.
17938 * fs/reiserfs.c: Likewise.
17939 * fs/ufs.c: Likewise.
17940 * fs/xfs.c: Likewise.
17941 * gettext/gettext.c: Likewise.
17942 * include/grub/auth.h: Likewise.
17943 * kern/elf.c: Likewise.
17944 * kern/file.c: Likewise.
17945 * kern/ieee1275/init.c: Likewise.
17946 * kern/ieee1275/mmap.c: Likewise.
17947 * kern/ieee1275/openfw.c: Likewise.
17948 * kern/powerpc/dl.c: Likewise.
17949 * kern/sparc64/dl.c: Likewise.
17950 * lib/arg.c: Likewise.
17951 * loader/i386/bsd.c: Likewise.
17952 * loader/i386/bsdXX.c: Likewise.
17953 * loader/i386/efi/linux.c: Likewise.
17954 * loader/i386/efi/xnu.c: Likewise.
17955 * loader/i386/ieee1275/linux.c: Likewise.
17956 * loader/i386/linux.c: Likewise.
17957 * loader/i386/multiboot.c: Likewise.
17958 * loader/i386/pc/linux.c: Likewise.
17959 * loader/i386/pc/multiboot2.c: Likewise.
17960 * loader/i386/xnu.c: Likewise.
17961 * loader/ieee1275/multiboot2.c: Likewise.
17962 * loader/macho.c: Likewise.
17963 * loader/machoXX.c: Likewise.
17964 * loader/multiboot2.c: Likewise.
17965 * loader/multiboot_loader.c: Likewise.
17966 * loader/powerpc/ieee1275/linux.c: Likewise.
17967 * loader/sparc64/ieee1275/linux.c: Likewise.
17968 * loader/xnu.c: Likewise.
17969 * loader/xnu_resume.c: Likewise.
17970 * mmap/i386/pc/mmap.c: Likewise.
17971 * normal/menu_viewer.c: Likewise.
17972 * partmap/acorn.c: Likewise.
17973 * partmap/amiga.c: Likewise.
17974 * partmap/apple.c: Likewise.
17975 * script/lexer.c: Likewise.
17976 * term/gfxterm.c: Likewise.
17977 * term/i386/pc/serial.c: Likewise.
17978 * term/i386/pc/vga.c: Likewise.
17979 * term/ieee1275/ofconsole.c: Likewise.
17980 * term/terminfo.c: Likewise.
17981 * video/bitmap.c: Likewise.
17982 * video/efi_gop.c: Likewise.
17983 * video/efi_uga.c: Likewise.
17984 * video/fb/video_fb.c: Likewise.
17985 * video/i386/pc/vbe.c: Likewise.
17986 * video/readers/tga.c: Likewise.
17987 * video/video.c: Likewise.
17989 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
17991 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
17992 * commands/lspci.c: Likewise.
17993 * commands/probe.c: Likewise.
17994 * commands/xnu_uuid.c: Likewise.
17995 * conf/i386-coreboot.rmk: Likewise.
17996 * conf/i386-efi.rmk: Likewise.
17997 * conf/i386-ieee1275.rmk: Likewise.
17998 * conf/i386-pc.rmk: Likewise.
17999 * conf/powerpc-ieee1275.rmk: Likewise.
18000 * conf/sparc64-ieee1275.rmk: Likewise.
18001 * conf/x86_64-efi.rmk: Likewise.
18002 * fs/i386/pc/pxe.c: Likewise.
18003 * gettext/gettext.c: Likewise.
18004 * include/grub/efi/graphics_output.h: Likewise.
18005 * include/grub/i386/pc/memory.h: Likewise.
18006 * kern/env.c: Likewise.
18007 * kern/i386/qemu/startup.S: Likewise.
18008 * lib/i386/pc/biosnum.c: Likewise.
18009 * lib/i386/relocator.c: Likewise.
18010 * lib/i386/relocator_asm.S: Likewise.
18011 * lib/relocator.c: Likewise.
18012 * loader/i386/bsd.c: Likewise.
18013 * loader/i386/multiboot.c: Likewise.
18014 * loader/i386/pc/chainloader.c: Likewise.
18015 * loader/i386/xnu.c: Likewise.
18016 * loader/xnu.c: Likewise.
18017 * normal/main.c: Likewise.
18018 * normal/menu_text.c: Likewise.
18019 * util/getroot.c: Likewise.
18020 * util/grub-mkconfig_lib.in: Likewise.
18021 * util/grub.d/00_header.in: Likewise.
18022 * util/i386/pc/grub-mkimage.c: Likewise.
18023 * util/mkisofs/eltorito.c: Likewise.
18024 * util/mkisofs/exclude.h: Likewise.
18025 * util/mkisofs/hash.c: Likewise.
18026 * util/mkisofs/iso9660.h: Likewise.
18027 * util/mkisofs/joliet.c: Likewise.
18028 * util/mkisofs/mkisofs.c: Likewise.
18029 * util/mkisofs/mkisofs.h: Likewise.
18030 * util/mkisofs/multi.c: Likewise.
18031 * util/mkisofs/name.c: Likewise.
18032 * util/mkisofs/rock.c: Likewise.
18033 * util/mkisofs/tree.c: Likewise.
18034 * util/mkisofs/write.c: Likewise.
18035 * video/efi_gop.c: Likewise.
18037 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18039 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18042 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18044 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18045 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18047 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18049 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18050 (GRUB_MOD_INIT(memrw)): Update help line.
18052 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18054 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18055 Use grub_extcmd_t. All users updated.
18056 (options): New variable.
18057 (grub_cmd_read): Restructure for readability. Support "-v" option.
18058 (grub_cmd_write): Restructure for readability.
18060 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18062 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18064 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18066 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18067 with the actual contents of the correspondending make variable.
18068 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18069 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18070 specifying `*.lst' and `efiemu??.o'
18072 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18074 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18075 after function name.
18076 Noticed by Rene Engelhard <rene@debian.org>.
18078 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18080 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18081 (options): New variable.
18082 (iospace): Likewise.
18083 (grub_lspci_iter): List IO spaces if "-i" was given.
18084 (grub_cmd_lspci): Parse options.
18085 (GRUB_MOD_INIT(lspci)): Use extcmd.
18086 (GRUB_MOD_FINI(lspci)): Likewise.
18088 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18090 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18091 `function' keyword.
18092 Patch by Tony Mancill <tmancill@debian.org>.
18094 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18096 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18097 (grub_uhci_portstatus): Likewise.
18098 (grub_uhci_portstatus): Add necessary delay.
18099 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18101 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18103 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18104 (GRUB_MOD_INIT): Likewise.
18105 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18106 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18107 * commands/echo.c (options): Fix capitalizations and/or full stops.
18108 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18109 (enable_rom_area): Likewise.
18110 (GRUB_MOD_INIT): Likewise.
18111 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18112 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18113 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18114 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18115 * commands/hexdump.c (options): Likewise.
18116 * commands/i386/cpuid.c (options): Likewise.
18117 (GRUB_MOD_INIT): Likewise.
18118 * commands/i386/pc/drivemap.c (options): Likewise.
18119 (GRUB_MOD_INIT): Likewise.
18120 * commands/i386/pc/halt (options): Likewise.
18121 (GRUB_MOD_INIT): Likewise.
18122 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18123 * commands/i386/pc/pxecmd.c (options): Likewise.
18124 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18125 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18126 * commands/keystatus.c (options): Likewise.
18127 (GRUB_MOD_INIT): Likewise.
18128 * commands/loadenv.c (options): Likewise.
18129 * commands/ls.c (options): Likewise.
18130 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18131 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18132 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18133 * commands/parttool.c (helpmsg): Likewise.
18134 * commands/probe.c (options): Likewise.
18135 * commands/read.c (GRUB_MOD_INIT): Likewise.
18136 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18137 * commands/search.c (options): Likewise.
18138 * commands/sleep.c (options): Likewise.
18139 * commands/test.c (GRUB_MOD_INIT): Likewise.
18140 * commands/true.c (GRUB_MOD_INIT): Likewise.
18141 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18142 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18143 * lib/arg.c (help_options): Likewise.
18144 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18146 * po/POTFILES: Add `commands/loadenv.c'.
18148 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18150 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18151 instead of specifying them explicit.
18153 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18155 * NEWS: Add grub-probe support for GNU/Hurd.
18157 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18159 * NEWS: gettext was added after 1.97.
18161 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18163 * util/mkisofs/msdos_partition.h: New file (based on
18164 include/grub/msdos_partition.h).
18165 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18166 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18167 (ld_options, main): Recognize --protective-msdos-label.
18168 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18169 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18170 (padblock_write): If `use_protective_msdos_label' is set, patch a
18171 protective DOS-style label in the output image.
18173 * util/grub-mkrescue.in: Use --protective-msdos-label.
18175 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18177 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18180 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18182 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18184 (ld_options, main): Recognize `--embedded-boot'.
18185 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18187 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18188 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18189 (padblock_write): Likewise. Rewrite to support embedded boot image.
18191 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18192 for BIOS-based disk boot instead of only ElTorito.
18194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18196 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18197 build (not needed for bootstrap).
18199 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18201 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18202 from i386-pc build (not needed for bootstrap).
18203 Rewrite a pair of strings.
18205 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18207 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18209 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18211 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18213 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18215 * kern/env.c (grub_env_context_open): Mark exported variable for
18218 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18220 * kern/env.c (grub_env_export): Create nonexistent variables before
18223 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18225 * include/grub/auth.h: Include `<grub/i18n.h>'.
18226 (GRUB_GET_PASSWORD): Gettextizze string.
18227 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
18229 (grub_utf8_to_ucs4_alloc): Fix indentation.
18230 (grub_print_ucs4): Likewise.
18231 (grub_getstringwidth): Likewise.
18232 (print_message_indented): New declaration.
18233 * normal/auth.c: Include `<grub/i18n.h>'.
18234 (grub_auth_check_authentication): Gettexttize string.
18235 * normal/cmdline.c: Include `<grub/i18n.h>'.
18236 (grub_cmdline_get): Gettextizze.
18237 * normal/color.c: Include `<grub/i18n.h>'.
18238 (grub_parse_color_name_pair): Gettexttize strings.
18239 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
18240 string (use `print_message_indented').
18241 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
18242 `include/grub/normal.h'.
18243 (print_message_indented): Renamed to ...
18244 (grub_print_message_indented): ... this. Remove `static' qualifer (now
18245 used in normal/main.c).
18246 (print_message): Use `grub_print_message_indented' instead of
18247 `print_message_indented'.
18248 (print_timeout): Likewise.
18249 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
18250 (grub_normal_print_device_info): Gettexttize strings.
18251 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
18253 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18255 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18256 of arguments. Return number of tokens and not arguments. All users
18259 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18261 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18262 non-MSDOS paritions.
18264 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18266 * include/grub/types.h (UNUSED): Removed since it conflicts with
18267 NetBSD headers. All users changed to direct __attribute__ ((unused)).
18268 Reported by Grégoire Sutre.
18270 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18272 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
18273 (grub_print_ucs4_alloc): Likewise.
18274 (grub_getstringwidth): Likewise.
18275 * normal/main.c (grub_normal_init_page): Gettextize version string.
18276 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
18277 (getstringwidth): Renamed to ...
18278 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
18279 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
18280 (grub_print_ucs4): Remove `static' qualifer (now used in
18282 * po/POTFILES: Add normal/main.c.
18284 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18286 * normal/menu_text.c (STANDARD_MARGIN): New macro.
18287 (print_message_indented): Add `margin_left' and `margin_right'
18289 (print_message): Update `print_message_indented' calls. Adds '\n' to the
18291 (print_timeout): Use `print_message_indented' to print the message.
18292 Deletes `second_stage' parameter.
18293 (run_menu): Update `print_timeout' calls.
18295 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18297 Fix console palette on OpenFirmware.
18299 * term/ieee1275/ofconsole.c (MAX): Removed.
18300 (colors): Redone based on VGA palette.
18301 (grub_ofconsole_setcolor): Discard brightness bit since only 8
18302 colors are supported.
18303 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
18305 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18307 Fix potential EfiEmu double prepare.
18309 * efiemu/main.c (prepared): New variable
18310 (grub_efiemu_unload): Set prepare to '0'.
18311 (grub_efiemu_prepare): Return if already prepared. Set prepared.
18313 set_virtual_address_map support.
18315 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
18317 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
18319 (grub_efiemu_crc32): Likewise.
18320 (grub_efiemu_crc64): Likewise.
18321 (grub_efiemu_set_virtual_address_map): Likewise.
18322 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
18324 (grub_autoefi_set_virtual_address_map): Likewise.
18325 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
18326 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
18327 Restructure flow to accomodate it.
18328 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
18329 (grub_efiemu_crc): Recompute CRC32.
18330 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
18331 (efiemu_ptv_relocated): ... this. Made global. All users updated.
18332 * efiemu/symbols.c (relocated_handle): New variable.
18333 (grub_efiemu_free_syms): Free relocated_handle.
18334 (grub_efiemu_alloc_syms): Allocate relocated_handle.
18335 (grub_efiemu_write_sym_markers): New function.
18336 (grub_efiemu_set_virtual_address_map): Likewise.
18338 Newer XNU parameters.
18340 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
18341 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
18342 (grub_xnu_fill_devicetree): New prototype.
18343 (grub_xnu_heap_real_start): New variable.
18344 * loader/xnu.c (get_name_ptr): New function.
18345 (grub_xnu_load_driver): Fill namelen and name.
18347 64-bit xnu support.
18349 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
18350 and 'loader/macho64.c'.
18351 * conf/i386-pc.rmk: Likewise.
18352 * conf/x86_64-efi.rmk: Likewise.
18353 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
18354 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
18355 * include/grub/macho.h (grub_macho_segment64): New structure.
18356 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
18357 (grub_macho_size32): ... to this.
18358 (grub_macho32_get_entry_point): Renamed from ...
18359 (grub_macho_get_entry_point32): ... to this.
18360 (grub_macho_contains_macho64): New prototype.
18361 (grub_macho_size64): Likewise.
18362 (grub_macho_get_entry_point64): Likewise.
18363 (grub_macho32_load): Renamed from ...
18364 (grub_macho_load32): ... to this.
18365 (grub_macho32_filesize): Renamed from ...
18366 (grub_macho_filesize32): ... to this.
18367 (grub_macho32_readfile): Renamed from ...
18368 (grub_macho_readfile32): ... to this.
18369 (grub_macho_filesize64): New prototype.
18370 (grub_macho_readfile64): Likewise.
18371 (grub_macho_parse32): Likewise.
18372 (grub_macho_parse64): Likewise.
18373 * loader/macho.c: Split into ...
18374 * loader/machoXX.c: ... and this. Replace 32 with XX.
18375 * loader/macho32.c: New file.
18376 * loader/macho64.c: Likewise.
18377 * loader/xnu.c (grub_xnu_is_64bit): New variable.
18378 (grub_cmd_xnu_kernel): Make 32-bit only.
18379 (grub_cmd_xnu_kernel64): New function.
18380 (grub_xnu_load_driver): Support Mach-O 64.
18381 (grub_cmd_xnu_mkext): Likewise.
18382 * util/grub.d/30_os-prober.in (osx_entry): New function.
18383 Generate entries for 64-bit boot too.
18385 Eliminate ad-hoc tree format in XNU and EfiEmu.
18387 * efiemu/main.c (grub_efiemu_prepare): Update comment.
18388 * efiemu/pnvram.c: Rewritten to use environment variables.
18391 Inline utf16_to_utf8.
18393 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
18394 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
18396 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
18398 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
18399 * commands/usbtest.c (grub_usb_get_string): ... move here.
18400 (usb_print_str): Fix error handling.
18401 * include/grub/usb.h (grub_usb_get_string): Remove.
18403 UTF-8 to UTF-16 transformation.
18405 * conf/common.rmk (pkglib_MODULES): Add charset.mod
18406 (charset_mod_SOURCES): New variable.
18407 (charset_mod_CFLAGS): Likewise.
18408 (charset_mod_LDFLAGS): Likewise.
18409 * include/grub/utf.h: New file.
18410 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
18412 Support for device properties.
18414 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
18415 (grub_xnu_devprop_device_header): Likewise.
18416 (grub_xnu_devprop_device_descriptor): Likewise.
18417 (grub_xnu_devprop_add_device): New prototype.
18418 (grub_xnu_devprop_remove_device): Likewise.
18419 (grub_xnu_devprop_remove_property): Likewise.
18420 (grub_xnu_devprop_add_property_utf8): Likewise.
18421 (grub_xnu_devprop_add_property_utf16): Likewise.
18422 (grub_cpu_xnu_init): Likewise.
18423 (grub_cpu_xnu_fini): Likewise.
18424 (grub_cpu_xnu_unload): Likewise.
18425 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
18426 (property_descriptor): Likewise.
18427 (devices): New variable.
18428 (grub_xnu_devprop_remove_property): New function.
18429 (grub_xnu_devprop_add_device): Likewise.
18430 (grub_xnu_devprop_remove_device): Likewise.
18431 (grub_xnu_devprop_add_property): Likewise.
18432 (grub_xnu_devprop_add_property_utf8): Likewise.
18433 (grub_xnu_devprop_add_property_utf16): Likewise.
18434 (hextoval): Likewise.
18435 (grub_cpu_xnu_fill_devprop): Likewise.
18436 (grub_cmd_devprop_load): Likewise.
18437 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
18438 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
18439 (cmd_devprop_load): New variable.
18440 (grub_cpu_xnu_init): New function.
18441 (grub_cpu_xnu_fini): Likewise.
18442 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
18443 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
18444 (grub_cmd_xnu_devtree): Likewise.
18445 (hextoval): New function.
18446 (unescape): Likewise.
18447 (grub_xnu_fill_devicetree): Likewise.
18449 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
18450 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
18452 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18454 Workaround for broken ATI VBE.
18456 * video/i386/pc/vbe.c (last_set_mode): New variable.
18457 (grub_vbe_set_video_mode): Set 'last_set_mode'.
18458 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
18459 (grub_video_vbe_setup): Don't check for reserved flag.
18461 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
18463 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
18464 the `find' command.
18466 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
18468 UUID support for HFS.
18470 * fs/hfs.c (grub_hfs_uuid): New function.
18471 (grub_hfs_fs): New value .uuid.
18472 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
18474 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
18476 Fix a segfault with parsing unknown long options.
18478 * util/grub-mkrelpath.c (options): Zero terminate it.
18480 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18482 * include/grub/misc.h (grub_puts): New declaration.
18483 (grub_puts_): Likewise.
18484 * kern/misc.c (grub_puts): New definition.
18485 (grub_puts_): Likewise.
18487 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18489 * util/grub-probe.c (probe): Improve error message.
18491 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18493 * loader/i386/multiboot_elfxx.c
18494 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
18497 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18499 Relocator framework
18501 * loader/i386/xnu_helper.S: Removed. All users updated.
18502 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
18503 (relocator_mod_SOURCES): New variable.
18504 (relocator_mod_CFLAGS): Likewise.
18505 (relocator_mod_LDFLAGS): Likewise.
18506 (relocator_mod_ASFLAGS): Likewise.
18507 * conf/x86_64.rmk: Likewise.
18508 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
18509 (grub_multiboot_payload_entry_offset): Likewise.
18510 (grub_multiboot_forward_relocator): Likewise.
18511 (grub_multiboot_forward_relocator_end): Likewise.
18512 (grub_multiboot_backward_relocator): Likewise.
18513 (grub_multiboot_backward_relocator_end): Likewise.
18514 (grub_multiboot_payload_eip): New variable.
18515 (grub_multiboot_payload_orig): Likewise.
18516 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
18517 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
18518 * include/grub/i386/memory.h
18519 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
18520 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
18521 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
18522 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
18523 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
18524 * include/grub/i386/relocator.h: New file.
18525 * include/grub/x86_64/relocator.h: Likewise.
18526 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
18527 (XNU_RELOCATOR): New macro.
18528 (grub_xnu_launcher_start): Remove.
18529 (grub_xnu_launcher_end): Likewise.
18530 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
18531 (grub_xnu_heap_real_start): Remove.
18532 (grub_xnu_heap_start): Change to void *. All users updated.
18533 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
18534 * lib/i386/relocator.c: New file.
18535 * lib/i386/relocator_asm.S: Likewise.
18536 * lib/i386/relocator_backward.S: Likewise.
18537 * lib/mips/relocator.c: Likewise.
18538 * lib/mips/relocator_asm.S: Likewise.
18539 * lib/relocator.c: Likewise.
18540 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
18542 (playground): Likewise.
18543 (grub_multiboot_payload_orig): New variable.
18544 (grub_multiboot_payload_dest): Likewise.
18545 (grub_multiboot_payload_size): Likewise.
18546 (grub_multiboot_payload_eip): Likewise.
18547 (grub_multiboot_payload_esp): Likewise.
18548 (grub_multiboot_boot): Use grub_relocator32_boot.
18549 (grub_multiboot_unload): Free relocators.
18550 (grub_multiboot): Setup stack. Use relocators.
18551 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
18552 (grub_multiboot_load_elfXX): Use relocators.
18553 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
18554 (grub_multiboot_payload_size): Likewise.
18555 (grub_multiboot_payload_dest): Likewise.
18556 (grub_multiboot_payload_entry_offset): Likewise.
18557 (grub_multiboot_forward_relocator): Likewise.
18558 (grub_multiboot_backward_relocator): Likewise.
18559 (grub_multiboot_real_boot): Likewise.
18560 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
18561 (grub_xnu_entry_point): Likewise.
18562 (grub_xnu_arg1): Likewise.
18563 (grub_xnu_stack): Likewise.
18564 (grub_xnu_launch): Removed.
18565 (grub_xnu_boot_resume): New function.
18566 (grub_xnu_boot): Use relocators.
18567 * loader/i386/xnu_helper.S: Removed.
18568 * loader/xnu.c (grub_xnu_heap_start): New variable.
18569 (grub_xnu_heap_size): Likewise.
18570 (grub_xnu_heap_malloc): Use relocators.
18571 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
18573 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18575 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
18578 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18580 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
18581 GRUB_ERR_NONE before calling grub_env_set.
18583 2009-12-12 Robert Millan <rmh@aybabtu.com>
18585 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
18586 * genmk.rb (video): New variable.
18587 (CLEANFILES, VIDEOFILES): Add #{video}.
18588 (#{video}): New target rule.
18589 * genvideolist.sh: New file.
18590 * Makefile.in (pkglib_DATA): Add video.lst.
18591 (video.lst): New target rule.
18592 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
18594 * util/grub.d/30_os-prober.in: Replace `vbe' with
18595 ${GRUB_VIDEO_BACKEND}.
18597 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
18599 * THANKS: Add David Miller.
18601 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
18603 libpciaccess support.
18605 * Makefile.in (LIBPCIACCESS): New variable.
18606 (enable_grub_emu_pci): Likewise.
18607 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
18608 util/pci.c and commands/lspci.c.
18609 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
18610 * configure.ac (grub-emu-pci): New option.
18611 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
18612 (grub_pci_device_unmap_range): Likewise.
18613 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
18614 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
18615 (grub_pci_address_t) [!GRUB_UTIL]: New type.
18616 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
18617 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
18618 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
18619 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
18620 * include/grub/pciutils.h: New file.
18621 * util/pci.c: Likewise.
18623 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
18625 * util/misc.c: Don't include <errno.h> twice.
18627 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
18629 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
18630 name in an error message.
18631 (grub_biosdisk_rw): Likewise.
18633 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18635 Eliminate NTFS 4Gib barrier.
18637 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
18638 (read_run_data): Likewise.
18639 (grub_ntfs_read_run_list): Likewise.
18640 (grub_ntfs_read_block): Likewise.
18641 (grub_ntfs_iterate_dir): Likewise.
18642 (read_mft): Likewise.
18643 (read_data): Likewise.
18645 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
18646 to avoid 64-bit division
18647 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
18648 (grub_ntfs_rlst): Use grub_disk_addr_t.
18650 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18652 Eliminate grub-fstest 4Gib barrier.
18654 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
18655 (read_file): Fix error reporting.
18657 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18659 Eliminate hexdump 4Gib barrier.
18661 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
18662 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
18664 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18666 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
18669 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
18671 Remove miscellaneous files in distclean target.
18673 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
18675 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
18677 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
18678 if they're already set. This resolves the conflict between my
18679 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
18680 fixing the --grub-probe option again.
18681 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
18682 change on 2009-10-06, so that we now once again source
18683 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
18685 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
18687 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
18688 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
18689 `util/devicemap.c'.
18691 2009-12-08 Carles Pina i Estany <carles@pina.cat>
18693 * include/grub/misc.h (grub_printf_): New declaration.
18694 * kern/misc.c (grub_printf_): New definition.
18695 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
18696 instead of `grub_printf' and `_'.
18697 * normal/menu_entry.c (store_completion): Likewise.
18699 (grub_menu_entry_run): Likewise.
18700 * normal/menu_text.c (grub_wait_after_message): Likewise.
18701 (notify_booting): Likewise.
18702 (notify_fallback): Likewise.
18703 (notify_execution_failure): Likewise.
18705 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
18707 * configure.ac: Check for vasprintf.
18708 * util/misc.c (asprintf): Move allocation from here ...
18709 (vasprintf): ... to here. New function.
18710 (xasprintf): New function.
18711 * include/grub/util/misc.h (vasprintf, xasprintf): Add
18713 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18714 * util/grub-mkfont.c (write_font): Likewise.
18715 * util/grub-probe.c (probe): Likewise.
18716 * util/hostdisk.c (make_device_name): Likewise.
18718 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
18720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
18721 anything even prefixed with 'cdrom' as a cdrom.
18723 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
18725 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
18728 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18730 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
18731 grub_gettext_msg_list.
18732 (grub_gettext_gettranslation_from_position): Return const char *
18734 (grub_gettext_translate): Add the translated strings into a list,
18735 returns from the list if existing there.
18736 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
18737 (grub_gettext_delete_list): Delete the list.
18738 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
18739 lang environment variable is changed.
18740 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
18742 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18744 Rename kernel.mod to kernel.img.
18746 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
18747 (kernel_mod_EXPORTS): Rename to ...
18748 (kernel_img_EXPORTS): ... this.
18749 (kernel_mod_SOURCES): Rename to ...
18750 (kernel_img_SOURCES): ... this.
18751 (kernel_mod_HEADERS): Rename to ...
18752 (kernel_img_HEADERS): ... this. All users updated.
18753 (kernel_mod_CFLAGS): Rename to ...
18754 (kernel_img_CFLAGS): ... this.
18755 (kernel_mod_ASFLAGS): Rename to ...
18756 (kernel_img_ASFLAGS): ... this.
18757 (kernel_mod_LDFLAGS): Rename to ...
18758 (kernel_img_LDFLAGS): ... this.
18759 * conf/x86_64-efi.rmk: Likewise.
18760 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
18761 (read_kernel_image): ... this. All users updated.
18762 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
18764 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18766 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
18767 (print_spaces): New function.
18768 (grub_print_ucs4): New function.
18769 (getstringwidth): New function.
18770 (print_message_indented): New function.
18771 (print_message): Gettexttize strings using print_message_indented.
18772 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
18774 (get_entry_number): Gettextize and uses dynamic terminal width.
18775 (notify_booting, notify_fallback, notify_execution_failure):
18777 * normal/menu_entry.c (store_completion): Cleanup the gettextized
18780 (grub_menu_entry_run): Likewise.
18781 * PO/POTFILES: Add normal/menu_entry.c.
18783 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18785 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
18787 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18789 * util/grub-install.in: Install gettext .mo files.
18790 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
18792 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18794 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
18797 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
18799 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
18800 non-firmware-dependant one in realmode.S takes precedence.
18802 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
18804 * commands/halt.c: Replace misc arch-specific headers with
18806 * commands/reboot.c: Likewise.
18807 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
18809 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
18810 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
18811 (kernel_img_SOURCES): ... to here.
18813 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
18814 * include/grub/i386/pc/init.h: Likewise.
18815 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
18816 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18818 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
18820 * include/grub/i386/halt.h: Remove.
18821 * include/grub/i386/reboot.h: Likewise.
18823 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
18825 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
18827 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
18828 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
18829 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
18831 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18832 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18833 (usage): Add missing comma in printf.
18835 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
18837 Use the same reboot approach on i386 coreboot and qemu as we do on
18840 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
18841 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
18842 * kern/i386/reboot.c: Remove.
18843 * include/grub/i386/reboot.h (grub_reboot): Export function.
18844 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
18845 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
18846 0xf000:0xfff0 instead of 0xffff:0x0000.
18847 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
18848 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
18850 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
18852 Fix $srcdir != $objdir build.
18854 * Makefile.in (po/%.po): Rewrite as ...
18855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
18857 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18859 Fix GNU/Hurd grub-install crash.
18860 * util/grub-probe.c (probe): Try to access `path' only when it is not
18863 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18865 Correct module naming.
18867 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18868 (GRUB_MOD_INIT(efi_uga)): ... to this
18869 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18870 (GRUB_MOD_FINI(efi_uga)): ... to this
18871 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18872 (GRUB_MOD_INIT(efi_gop)): ... to this
18873 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18874 (GRUB_MOD_FINI(efi_gop)): ... to this
18876 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
18878 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
18880 (usage): Translate `arg' strings using gettext().
18881 Thanks to Jordi Mallach for the suggestion.
18883 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18885 GOP support. Based on patch from Bean
18886 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
18888 * video/efi_gop.c: New file.
18889 * include/grub/efi/graphics_output.h: Likewise.
18890 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
18891 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
18893 * conf/x86_64-efi.rmk: Likewise.
18895 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18897 Rename efi_fb to efi_uga.
18899 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18901 (efi_fb_mod_SOURCES): Rename this ...
18902 (efi_uga_mod_SOURCES): ... to this.
18903 (efi_fb_mod_CFLAGS): Rename this ...
18904 (efi_uga_mod_CFLAGS): ... to this.
18905 (efi_fb_mod_LDFLAGS): Rename this ...
18906 (efi_uga_mod_LDFLAGS): ... to this.
18907 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18909 (efi_fb_mod_SOURCES): Rename this ...
18910 (efi_uga_mod_SOURCES): ... to this.
18911 (efi_fb_mod_CFLAGS): Rename this ...
18912 (efi_uga_mod_CFLAGS): ... to this.
18913 (efi_fb_mod_LDFLAGS): Rename this ...
18914 (efi_uga_mod_LDFLAGS): ... to this.
18915 * video/efi_fb.c: Move this ...
18916 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
18918 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18920 * po/README: New file. Explain our PO file workflow.
18922 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18924 * po/ChangeLog: Remove. Move relevant entries back to ...
18925 * ChangeLog: ... here.
18926 * po/ca.po: Remove (now handled by TLP).
18927 * po/id.po: Likewise.
18928 * po/zh_CN.po: Likewise.
18929 * Makefile.in (LINGUAS): Initialize in a way that supports
18932 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18934 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
18935 reliing on po/LINGUAS.
18936 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
18937 (po/%.po): ... this.
18939 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18941 * util/i386/efi/grub-mkimage.c: Include "progname.h".
18942 (main): Use `program_name' instead of nonexistent `progname'.
18944 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18946 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
18947 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
18949 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18951 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
18953 * conf/i386-efi.rmk: Likewise.
18954 * conf/i386-ieee1275.rmk: Likewise.
18955 * conf/powerpc-ieee1275.rmk: Likewise.
18956 * conf/sparc64-ieee1275.rmk: Likewise.
18957 * conf/x86_64-efi.rmk: Likewise.
18959 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18961 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
18963 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18965 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
18967 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18969 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
18970 (grub_mkdevicemap_SOURCES): New variable.
18971 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
18972 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
18973 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
18974 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
18975 (grub_mkdevicemap_SOURCES): Remove.
18976 * conf/i386-efi.rmk: Likewise.
18977 * conf/i386-ieee1275.rmk: Likewise.
18978 * conf/i386-pc.rmk: Likewise.
18979 * conf/powerpc-ieee1275.rmk: Likewise.
18980 * conf/sparc64-ieee1275.rmk: Likewise.
18981 * conf/x86_64-efi.rmk: Likewise.
18982 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
18983 (usage): Fix strings to use `program_name'.
18984 (main): Initialize gettext.
18985 * util/grub-editenv.c: Likewise.
18986 * util/grub-emu.c: Likewise.
18987 * util/grub-fstest.c: Likewise.
18988 * util/grub-mkdevicemap.c: Likewise.
18989 * util/grub-mkfont.c: Likewise.
18990 * util/grub-mkrelpath.c: Likewise.
18991 * util/grub-pe2elf.c: Likewise.
18992 * util/grub-probe.c: Likewise.
18993 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
18994 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18995 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18997 * util/misc.c: Include `"progname.h"'.
18998 (progname): Remove variable.
18999 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19001 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19003 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19004 printf and print a newline after the menuentry header line.
19005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19007 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19009 autoconf >= 2.60 support $(localedir).
19011 * INSTALL: Note that autoconf 2.60 is required.
19012 * configure.ac (AC_PREREQ): Bump to 2.60.
19013 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19014 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19016 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19018 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19021 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19023 * normal/main.c (grub_normal_read_line): Fix off-by-one
19026 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19028 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19029 "parser.grub" in grub_command_execute() call.
19031 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19033 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19034 * conf/i386-efi.rmk: Likewise.
19035 * conf/i386-ieee1275.rmk: Likewise.
19036 * conf/i386-pc.rmk: Likewise.
19037 * conf/powerpc-ieee1275.rmk: Likewise.
19038 * conf/sparc64-ieee1275.rmk: Likewise.
19039 * conf/x86_64-efi.rmk: Likewise.
19040 * gettext/gettex.c: Include <grub/i18n.h>.
19041 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19043 * include/grub/i18n.h: ... to here
19044 * include/grub/i18n.h: ... to here.
19045 * kern/misc.c: Include <grub/i18n.h>
19046 (grub_gettext_dummy): Move above user.
19048 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19050 * util/Makefile.in (install-local): Convert a `for' into a normal
19053 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19055 * autogen.sh: Add automake call.
19056 * config.guess: Remove.
19057 * config.sub: Likewise.
19058 * install-sh: Likewise.
19060 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19062 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19064 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19066 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19067 function to a normal shell `for'.
19069 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19071 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19073 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19075 * util/grub-mkrelpath.c: New file.
19076 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19077 (grub_mkrelpath_SOURCES): New variable.
19078 * include/grub/util/misc.h: New function prototype.
19079 * util/misc.c (make_system_path_relative_to_its_root): New function.
19081 * util/grub-mkconfig_lib.in (bindir): New variable.
19082 (grub_mkrelpath): Likewise.
19083 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19085 * util/probe.c (probe): Make the file path relative to its root.
19086 Change a info message to use the GRUB path. Enable again the
19087 check if we can read the file with GRUB facilities.
19089 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19092 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19094 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19097 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19099 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19102 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19104 * util/getroot.c (grub_util_is_dmraid): New function.
19105 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19106 devices as normal ones, not as LVM.
19108 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19110 * conf/common.rmk: Add grub-gettext_lib target and updates
19111 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19113 * gettext/gettext.c: New file. (Reads mo files).
19114 * include/grub/file.h (grub_file_pread): New prototype.
19115 * include/grub/i18n.h (_): New prototype.
19116 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19118 * kern/misc.c (grub_gettext_dummy): New function.
19119 * normal/menu_text.c: Include <grub/i18n.h>.
19120 * normal/menu_text.c (print_timeout): Gettexttize string.
19121 * normal/menu_text.c (print_message): Gettexttize string.
19122 * po/POTFILES: Add `normal/menu_text.c'.
19123 * po/ca.po: Add new translations.
19124 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19125 gettext module and defines locale_dir and lang in grub.cfg.
19126 * NEWS: Add gettext support.
19128 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19130 * util/hostdisk.c: Include `<grub/i18n.h>'.
19131 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19132 (make_device_name): Rewrite using asprintf.
19133 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19134 (find_system_device): If a device is not found, generate one just
19135 by reusing the OS path name.
19136 (read_device_map): Make it permissible for device.map not to exist.
19138 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19140 * script/sh/execute.c: Move from here ...
19141 * script/execute.c: ... to here. Update all users.
19142 * script/sh/function.c: Move from here ...
19143 * script/function.c: ... to here. Update all users.
19144 * script/sh/lexer.c: Move from here ...
19145 * script/lexer.c: ... to here. Update all users.
19146 * script/sh/main.c: Move from here ...
19147 * script/main.c: ... to here. Update all users.
19148 * script/sh/parser.y: Move from here ...
19149 * script/parser.y: ... to here. Update all users.
19150 * script/sh/script.c: Move from here ...
19151 * script/script.c: ... to here. Update all users.
19153 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19155 * configure.ac: Detect all `emu' platforms. Define
19156 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19157 --enable-grub-emu logic. Disable include/grub/machine
19158 symlink on `emu' platforms.
19160 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19161 * gensymlist.sh.in: Likewise.
19163 * include/grub/i386/coreboot/machine.h: Remove file.
19164 * include/grub/i386/efi/machine.h: Likewise.
19165 * include/grub/i386/ieee1275/machine.h: Likewise.
19166 * include/grub/i386/pc/machine.h: Likewise.
19167 * include/grub/i386/qemu/machine.h: Likewise.
19168 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19169 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19170 * include/grub/x86_64/efi/machine.h: Likewise.
19172 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19173 * commands/halt.c: Likewise.
19174 * commands/reboot.c: Likewise.
19175 * include/grub/autoefi.h: Likewise.
19176 * include/grub/i386/at_keyboard.h: Likewise.
19177 * include/grub/i386/kernel.h: Likewise.
19178 * include/grub/i386/loader.h: Likewise.
19179 * include/grub/i386/pc/memory.h: Likewise.
19180 * kern/dl.c: Likewise.
19181 * kern/i386/coreboot/init.c: Likewise.
19182 * loader/i386/bsd.c: Likewise.
19183 * loader/i386/linux.c: Likewise.
19184 * loader/multiboot_loader.c: Likewise.
19185 * term/i386/pc/serial.c: Likewise.
19186 * term/usb_keyboard.c: Likewise.
19188 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19189 `<grub/machine/machine.h>'
19190 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19191 * util/misc.c: Remove `<grub/machine/machine.h>' and
19192 `<grub/machine/time.h>'.
19194 * Makefile.in (enable_grub_emu): Remove variable.
19195 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19197 * conf/any-emu.rmk: New file.
19198 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19199 (grub_emu_init.c): Move from here ...
19200 * conf/any-emu.rmk: ... to here.
19202 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19203 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19204 * conf/any-emu.rmk: ... to here.
19206 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19208 * include/grub/parser.h (grub_parser_register): Document need
19209 of `name' parameter.
19210 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19211 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19214 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19216 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19218 * include/grub/i18n.h (N_): New macro.
19219 * util/mkisofs/mkisofs.h: Likewise.
19220 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19222 (usage): Use gettext() to translate help strings when printing them.
19224 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19226 Based on patch from Bean
19227 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19229 * video/efi_fb.c: New file.
19230 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
19231 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19233 * conf/x86_64-efi.rmk: Likewise.
19235 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19237 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19238 * util/i386/pc/grub-setup.c: Likewise.
19240 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19242 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19244 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19245 file_get_storage_info to implement grub_guess_root_device.
19247 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19249 * Makefile.in (target): Use make's builtin $(shell) function
19250 instead of calling directly $(SHELL) to create the locale directories,
19251 inside the $(foreach) function.
19253 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19255 * util/grub-mkrescue.in: Print an error and usage if output option
19256 has not been given.
19258 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19260 Patch from Loïc Minier <loic.minier@ubuntu.com>.
19261 * util/grub.d/30_os-prober.in: Cope with Linux entries where
19262 root and /boot are on different devices.
19264 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19266 Fix build for srcdir != objdir.
19268 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19269 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19271 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19272 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19273 reference for input.
19275 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19277 * util/grub-mkrescue.in: Use source directory direcly (without copiing
19278 or hardlinking it). Remove -J option, Joliet is not compatible with
19279 multiple source directories.
19281 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19282 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19284 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19285 (process_input_dir): New function. Process an arbitrary input
19287 Misc adjustments to support both "override mode" and system-wide mode.
19289 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19291 * configure.ac (UNIFONT_BDF): Rename to ...
19292 (FONT_SOURCE): ... this. Update all users.
19294 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19296 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
19297 to the list of unifont files to look for.
19299 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19301 Patch from Joe Auricchio <jauricchio@gmail.com>
19302 * commands/minicmd.c (grub_mini_cmd_clear): New function.
19303 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
19304 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
19306 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19308 * Makefile.in (install-local): Add a missing backslash.
19310 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19312 * include/grub/x86_64/io.h: New file.
19314 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
19317 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
19318 Include `"progname.h"'.
19319 (main): Initialize gettext.
19320 * util/i386/pc/grub-setup.c: Gettexttize.
19321 * util/i386/pc/grub-mkimage.c: Likewise.
19323 * Makefile.in (po/*.po): Redefine as ...
19324 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
19326 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
19328 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
19331 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
19332 (program_name): Remove.
19333 (main): Initialize gettext support.
19334 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
19335 Include `<libintl.h>'.
19338 * util/mkisofs/eltorito.c: Gettexttize.
19339 * util/mkisofs/joliet.c: Likewise.
19340 * util/mkisofs/mkisofs.c: Likewise.
19341 * util/mkisofs/multi.c: Likewise.
19342 * util/mkisofs/rock.c: Likewise.
19343 * util/mkisofs/tree.c: Likewise.
19344 * util/mkisofs/write.c: Likewise.
19346 * po/POTFILES: Update with new files.
19348 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19350 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
19351 * util/mkisofs/iso9660.h: Likewise.
19352 * util/mkisofs/joliet.c: Likewise.
19353 * util/mkisofs/mkisofs.c: Likewise.
19354 * util/mkisofs/mkisofs.h: Likewise.
19355 * util/mkisofs/rock.c: Likewise.
19356 * util/mkisofs/tree.c: Likewise.
19357 * util/mkisofs/write.c: Likewise.
19359 * util/mkisofs/eltorito.c (rcsid): Remove.
19360 * util/mkisofs/hash.c: Likewise.
19361 * util/mkisofs/joliet.c: Likewise.
19362 * util/mkisofs/name.c: Likewise.
19363 * util/mkisofs/rock.c: Likewise.
19364 * util/mkisofs/tree.c: Likewise.
19365 * util/mkisofs/write.c: Likewise.
19367 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19369 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
19370 instead of static allocation.
19371 * util/mkisofs/match.h: Likewise.
19373 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19375 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
19376 and `util/grub.d/10_linux.in'.
19377 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
19378 translatable Shell files.
19380 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19382 * Makefile.in ($(srcdir)/aclocal.m4): New target.
19384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19386 * INSTALL: Document Automake is needed for bootstrap.
19387 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
19388 * util/grub.d/10_kfreebsd.in (bindir): New variable.
19389 Add gettext initialization.
19390 (kfreebsd_entry): Make menuentry output translatable.
19392 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19394 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
19395 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
19396 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
19397 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
19398 (LINGUAS): Auto-generate using `po/LINGUAS'.
19399 * po/LINGUAS: New file.
19401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19403 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
19405 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
19406 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
19407 bindtextdomain() calls for gettext initialization.
19409 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19411 * gnulib/progname.c: New file (imported from Gnulib).
19412 * gnulib/progname.h: Likewise.
19413 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19414 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
19415 (usage): Replace `progname' with `program_name'.
19416 (main): Use set_program_name() for program name initialization.
19418 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19420 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
19422 * Makefile.in (CPPFLAGS): ... to here.
19424 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19426 * aclocal.m4: Move from here ...
19427 * acinclude.m4: ... to here.
19428 * autogen.sh: Add call to `aclocal'.
19429 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
19431 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19433 * Makefile.in (CLEANFILES): Add `po/*.mo'.
19434 (LINGUAS): New variable.
19435 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
19436 (install-local): Install MO files.
19437 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
19438 * include/grub/i18n.h: New file.
19439 * po/POTFILES: New file.
19440 * po/ca.po: New file.
19441 * util/grub.d/10_linux.in (bindir): New variable.
19442 Add gettext initialization.
19443 (linux_entry): Make menuentry output translatable.
19444 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
19445 (usage): Make --help output translatable.
19446 (main): Initialize gettext.
19448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19450 * import_gcry.py: New file (written by Vladimir with minor
19452 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
19454 * INSTALL: Document that Python is required for bootstrap.
19456 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19458 Import ciphers from libgcrypt 1.4.4.
19460 * lib/libgcrypt/cipher/ChangeLog
19461 * lib/libgcrypt/cipher/ac.c
19462 * lib/libgcrypt/cipher/arcfour.c
19463 * lib/libgcrypt/cipher/bithelp.h
19464 * lib/libgcrypt/cipher/blowfish.c
19465 * lib/libgcrypt/cipher/camellia-glue.c
19466 * lib/libgcrypt/cipher/camellia.c
19467 * lib/libgcrypt/cipher/camellia.h
19468 * lib/libgcrypt/cipher/cast5.c
19469 * lib/libgcrypt/cipher/cipher.c
19470 * lib/libgcrypt/cipher/crc.c
19471 * lib/libgcrypt/cipher/des.c
19472 * lib/libgcrypt/cipher/dsa.c
19473 * lib/libgcrypt/cipher/ecc.c
19474 * lib/libgcrypt/cipher/elgamal.c
19475 * lib/libgcrypt/cipher/hash-common.c
19476 * lib/libgcrypt/cipher/hash-common.h
19477 * lib/libgcrypt/cipher/hmac-tests.c
19478 * lib/libgcrypt/cipher/md.c
19479 * lib/libgcrypt/cipher/md4.c
19480 * lib/libgcrypt/cipher/md5.c
19481 * lib/libgcrypt/cipher/primegen.c
19482 * lib/libgcrypt/cipher/pubkey.c
19483 * lib/libgcrypt/cipher/rfc2268.c
19484 * lib/libgcrypt/cipher/rijndael-tables.h
19485 * lib/libgcrypt/cipher/rijndael.c
19486 * lib/libgcrypt/cipher/rmd.h
19487 * lib/libgcrypt/cipher/rmd160.c
19488 * lib/libgcrypt/cipher/rsa.c
19489 * lib/libgcrypt/cipher/seed.c
19490 * lib/libgcrypt/cipher/serpent.c
19491 * lib/libgcrypt/cipher/sha1.c
19492 * lib/libgcrypt/cipher/sha256.c
19493 * lib/libgcrypt/cipher/sha512.c
19494 * lib/libgcrypt/cipher/tiger.c
19495 * lib/libgcrypt/cipher/twofish.c
19496 * lib/libgcrypt/cipher/whirlpool.c
19498 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19500 Fix build for systems without error().
19502 * gnulib/error.c: New file (imported from Gnulib).
19503 * gnulib/error.h: Likewise.
19504 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
19505 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
19506 (this variable is now used by error()).
19508 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19510 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19511 instead of relying that char is signed.
19513 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19515 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19516 blocksize different from specified.
19517 (grub_pxefs_read): Likewise.
19519 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19521 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19523 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19524 (grub_ata_readwrite): Likewise. Update 2 format strings.
19525 (grub_atapi_read): Likewise.
19527 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
19528 * conf/i386.rmk (pkglib_MODULES): ... to here ...
19529 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
19530 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
19531 (ata_mod_LDFLAGS): Move from here ...
19532 * conf/i386.rmk: ... to here ...
19533 * conf/x86_64-efi.rmk: ... and here.
19534 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
19535 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
19537 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19539 Relicense multiboot.h, with RMS' blessing.
19541 * include/multiboot.h: Change to X11 license.
19543 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
19545 Support --version in grub-mkisofs.
19547 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
19548 (OPTION_VERSION): New macro.
19549 (ld_options): Recognize --version.
19550 (usage): Move `program_name' from here ...
19551 (program_name): ... to here. Add `static' qualifier.
19552 (main): Recognize `OPTION_VERSION'.
19554 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
19556 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
19557 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
19559 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19561 Fix help2man generation for mkisofs.
19563 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
19564 (usage): Send output to stdout (rather than stderr).
19566 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19568 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
19569 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19570 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
19571 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19572 (bin_SCRIPTS): Add `grub-mkfloppy'.
19573 (grub_mkfloppy_SOURCES): New variable.
19575 * util/grub-mkrescue.in: New file.
19576 * util/i386/pc/grub-mkfloppy.in: New file.
19578 * util/i386/coreboot/grub-mkrescue.in: Remove.
19579 * util/i386/pc/grub-mkrescue.in: Remove.
19581 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19583 * include/grub/multiboot.h (struct grub_multiboot_header): Move
19585 * include/multiboot.h (struct multiboot_header): ... to here. Update
19587 * include/grub/multiboot.h (struct grub_multiboot_info): Move
19589 * include/multiboot.h (struct multiboot_info): ... to here. Update
19591 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
19593 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
19595 * include/grub/multiboot.h (struct grub_mod_list): Move
19597 * include/multiboot.h (struct multiboot_mod_list): ... to here.
19600 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19602 * include/multiboot2.h (multiboot_word): Rename from this ...
19603 (multiboot2_word): ... to this. Update all users.
19604 (multiboot_header): Rename from this ...
19605 (multiboot2_header): ... to this. Update all users.
19606 (multiboot_tag_header): Rename from this ...
19607 (multiboot2_tag_header): ... to this. Update all users.
19608 (multiboot_tag_start): Rename from this ...
19609 (multiboot2_tag_start): ... to this. Update all users.
19610 (multiboot_tag_name): Rename from this ...
19611 (multiboot2_tag_name): ... to this. Update all users.
19612 (multiboot_tag_module): Rename from this ...
19613 (multiboot2_tag_module): ... to this. Update all users.
19614 (multiboot_tag_memory): Rename from this ...
19615 (multiboot2_tag_memory): ... to this. Update all users.
19616 (multiboot_tag_unused): Rename from this ...
19617 (multiboot2_tag_unused): ... to this. Update all users.
19618 (multiboot_tag_end): Rename from this ...
19619 (multiboot2_tag_end): ... to this. Update all users.
19621 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19623 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
19624 this platform we should support Multiboot1 first.
19626 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19627 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
19628 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
19630 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19632 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
19633 of write calls (converting them to fwrite() if they aren't already).
19634 (get_torito_desc): Likewise.
19635 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
19637 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19639 * util/i386/pc/grub-install.in: Move from here ...
19640 * util/grub-install.in: ... to here. Update all users.
19642 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
19644 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
19646 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19648 Support for El Torito without floppy emulation.
19650 * util/mkisofs/eltorito.c: Include `<errno.h>'.
19651 (init_boot_catalog): Improve error handling.
19652 (get_torito_desc): Don't use floppy emulation unless requested by
19653 user. Patch boot information table when requested via
19654 `-boot-info-table'.
19655 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
19656 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
19657 (use_boot_info_table): New variables.
19658 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
19659 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
19660 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
19661 `--eltorito-emul-floppy'.
19662 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
19663 and `OPTION_ELTORITO_EMUL_FLOPPY'.
19664 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
19665 (use_boot_info_table, get_731): New prototypes.
19666 * util/mkisofs/write.c (get_731): New function.
19668 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
19670 Fix the generation of the man page.
19672 * util/pc/i386/grub-install.in: Source
19673 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19675 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19677 Large file support for grub-mkisofs.
19679 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
19680 * util/mkisofs/mkisofs.c (next_extent, last_extent)
19681 (session_start): Upgrade type to `uint64_t'. Update all users.
19682 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
19683 (struct directory_entry): Upgrade type of `starting_block' and
19684 `size' to `uint64_t'. Update all users.
19685 (struct deferred): Remove unused structure.
19686 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
19688 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
19689 file is larger than `UINT32_MAX'.
19690 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
19691 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
19693 (struct deferred_write): Upgrade type of `extent' and `size' to
19694 `uint64_t'. Update all users.
19695 (last_extent_written): Upgrade type to `uint64_t'. Update all
19697 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
19698 Update all users. Upgrade type of `remain' to `int64_t' and
19699 `use' to `size_t'. Use error() to handle fread() errors.
19700 (write_files): Rely on write_one_file() rather than calling
19701 xfwrite() directly.
19703 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
19705 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
19707 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19709 * util/mkisofs/fnmatch.c: Remove.
19710 * util/mkisofs/getopt1.c: Likewise.
19711 * util/mkisofs/getopt.c: Likewise.
19712 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
19713 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
19714 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
19715 `gnulib/getopt1.c' and `gnulib/getopt.c'.
19716 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
19718 * configure.ac: Detect `mingw32msvc' host_os.
19719 Check for lstat(), getuid() and getgid().
19721 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
19722 instances of `u_char' with `uint8_t'.
19724 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
19725 [!HAVE_GETUID] (getuid): New function (stub).
19726 [!HAVE_GETGID] (getgid): Likewise.
19727 [!HAVE_LSTAT] (lstat): Likewise.
19728 [!S_IROTH] (S_IROTH): New macro (dummy).
19729 [!S_IRGRP] (S_IRGRP): Likewise.
19731 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19733 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
19734 conditional expression).
19736 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19738 Import from Gnulib.
19740 * gnulib/fnmatch.c: New file.
19741 * gnulib/fnmatch.h: Likewise.
19742 * gnulib/fnmatch_loop.c: Likewise.
19743 * gnulib/getopt.c: Likewise.
19744 * gnulib/getopt.h: Likewise.
19745 * gnulib/getopt1.c: Likewise.
19746 * gnulib/getopt_int.h: Likewise.
19747 * gnulib/gettext.h: Likewise.
19749 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19751 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
19752 * normal/handler.c (read_handler_list): Likewise.
19754 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19758 * kern/command.c (grub_register_command_prio): Use
19759 grub_zalloc() instead of explicitly zeroing data.
19760 * kern/list.c: Include `<grub/mm.h>'.
19761 (grub_named_list_find): Replace `0' with `NULL'.
19762 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
19763 (fs_module_list): Change type to `grub_named_list_t'. Update all
19765 * normal/dyncmd.c (read_command_list): Add space between function
19766 call and parenthesis.
19767 * normal/handler.c (read_handler_list): Likewise.
19769 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19771 * normal/auth.c (punishment_delay): Moved from here ...
19772 (grub_auth_strcmp): ... to here (inside function).
19774 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19776 * include/grub/list.h (struct grub_named_list): Remove `const'
19777 qualifier from `name'.
19778 (struct grub_prio_list): Likewise.
19780 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19782 * normal/auth.c: Include `<grub/time.h>'.
19783 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
19785 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19787 * normal/auth.c (punishment_delay): New variable.
19788 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
19789 (grub_auth_check_authentication): Punish failed login attempts with
19790 an incremental (2^N) delay.
19792 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19794 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
19795 path with $(srcdir).
19797 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19799 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
19801 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19803 * util/i386/coreboot/grub-mkrescue.in: New file.
19804 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
19807 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
19808 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
19809 * configure.ac: Add header and function checks to satisfy grub-mkisofs
19811 * util/mkisofs/defaults.h: New file.
19812 * util/mkisofs/eltorito.c: Likewise.
19813 * util/mkisofs/exclude.h: Likewise.
19814 * util/mkisofs/fnmatch.c: Likewise.
19815 * util/mkisofs/getopt.c: Likewise.
19816 * util/mkisofs/getopt1.c: Likewise.
19817 * util/mkisofs/hash.c: Likewise.
19818 * util/mkisofs/include/fctldefs.h: Likewise.
19819 * util/mkisofs/include/mconfig.h: Likewise.
19820 * util/mkisofs/include/prototyp.h: Likewise.
19821 * util/mkisofs/include/statdefs.h: Likewise.
19822 * util/mkisofs/iso9660.h: Likewise.
19823 * util/mkisofs/joliet.c: Likewise.
19824 * util/mkisofs/match.c: Likewise.
19825 * util/mkisofs/match.h: Likewise.
19826 * util/mkisofs/mkisofs.c: Likewise.
19827 * util/mkisofs/mkisofs.h: Likewise.
19828 * util/mkisofs/multi.c: Likewise.
19829 * util/mkisofs/name.c: Likewise.
19830 * util/mkisofs/rock.c: Likewise.
19831 * util/mkisofs/tree.c: Likewise.
19832 * util/mkisofs/write.c: Likewise.
19834 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19836 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
19839 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19841 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
19842 `grub-mkimage' (and use $0 when possible).
19844 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19846 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
19847 error message for excessively large memory map.
19849 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19851 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
19854 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19856 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
19857 message for coreboot users.
19859 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
19861 Fix build with GNU gold.
19863 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
19864 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
19865 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
19867 * aclocal.m4: Likewise.
19869 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
19871 * configure.ac (AC_PREREQ): Bump to 2.59d.
19872 * INSTALL: Make it more clear when Autoconf and Ruby are
19873 needed and when to run `./autogen.sh'.
19875 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19877 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
19880 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19882 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
19884 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19886 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
19887 giving it to GNU Mach.
19889 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19891 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
19892 GNU partition number to get internal GRUB partition number.
19894 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19896 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
19897 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
19899 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
19901 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
19902 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
19905 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
19907 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
19909 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19913 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
19914 `-isystem=$(srcdir)/include'.
19916 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19918 * util/i386/pc/grub-install.in: Remove hint that device.map should be
19919 checked (grub-install doesn't currently rely on it).
19921 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
19925 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
19926 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
19927 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
19928 * conf/i386-ieee1275.rmk: Likewise.
19929 * conf/i386-pc.rmk: Likewise.
19930 * conf/powerpc-ieee1275.rmk: Likewise.
19931 * conf/sparc64-ieee1275.rmk: Likewise.
19932 * conf/x86_64-efi.rmk: Likewise.
19934 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19936 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
19938 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19940 * include/grub/misc.h: Stop checking for APPLE_CC.
19942 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19944 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
19945 doesn't cause an infinite call loop.
19947 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
19949 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
19952 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19954 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
19956 * Makefile.in: Likewise.
19958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19960 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
19962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19964 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
19966 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19968 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
19970 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19972 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
19974 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
19976 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19978 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
19979 in $(MAKEINFO) invocation. This makes it clear in output that
19980 errors are being ignored.
19982 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19984 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
19986 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
19987 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
19988 * conf/i386-ieee1275.rmk: Likewise.
19989 * conf/i386-pc.rmk: Likewise.
19990 * conf/powerpc-ieee1275.rmk: Likewise.
19991 * conf/sparc64-ieee1275.rmk: Likewise.
19992 * conf/x86_64-efi.rmk: Likewise.
19994 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
19996 * util/grub-editenv.c (main): If only a command is given, use
19997 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
19998 (usage): FILENAME is now optional and has a default.
20000 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20002 Improve grub-mkconfig performance when there are several menu
20003 entries on a single filesystem.
20005 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20006 prepare_grub_to_access_device.
20007 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20008 * util/grub.d/30_os-prober.in: Likewise.
20010 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20012 * util/grub.d/10_freebsd.in: Remove.
20013 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20014 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20016 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20018 * docs/grub.cfg: Fix example usage of *BSD loaders.
20020 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20022 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20023 grub_util_error() call.
20025 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20027 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20028 `reserved_first_sector' member.
20029 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20030 `reserved_first_sector' to 1.
20031 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20032 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20033 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20034 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20035 filesystems which begin at first sector.
20036 (options): New option --skip-fs-probe.
20037 (main): Handle --skip-fs-probe and pass it to setup().
20039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20041 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20042 (memset): Fix function prototype.
20044 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20045 2009-10-25 Vasily Averin <vvs@parallels.com>
20047 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20048 `dirent.direntlen == 0'.
20050 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20052 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20054 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20056 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20058 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20059 `__trampoline_setup' and `__ucmpdi2'.
20060 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20061 that libgcc provides.
20063 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20065 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20066 * include/grub/sparc64/libgcc.h (memset): Likewise.
20067 * include/grub/misc.h (memset, memcmp): New function prototypes.
20069 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20071 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20073 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20077 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20078 * docs/grub.cfg: Compensate for recent change in multiboot
20079 loader (since 2009-08-14 it won't pass filename to payload).
20080 * util/grub.d/10_hurd.in: Likewise.
20082 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20084 * config.guess: Update to latest version from config git
20086 * config.sub: Likewise.
20088 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20090 Fix build on sparc64.
20092 * configure.ac: Perform checks for libgcc symbols before
20093 adding `-nostdlib' to LDFLAGS.
20095 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20097 Let user specify OpenBSD root device.
20099 * loader/i386/bsd.c (openbsd_root): New variable.
20100 (openbsd_opts): New option 'root'.
20101 (OPENBSD_ROOT_ARG): New macro.
20102 (grub_openbsd_boot): Use 'openbsd_root'.
20103 (grub_cmd_openbsd): Fill 'openbsd_root'.
20105 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20107 * NEWS: Misc adjustments.
20109 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20111 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20113 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20115 * configure.ac: Bump version to 1.97.
20117 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20119 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20120 -mno-3dnow on x86 architectures. Some toolchains enable these
20121 features by default, but they rely on registers that aren't enabled
20122 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20124 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20126 Make entry text a bit more readable.
20128 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20130 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20132 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20134 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20136 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20139 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20141 * configure.ac: Add missing dollar.
20143 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20145 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20147 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20148 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20150 * include/grub/sparc64/libgcc.h: Likewise. Use
20151 preprocessor conditionals.
20153 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20155 * conf/common.rmk (grub-dumpbios): Remove rule.
20156 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20157 * util/grub-dumpbios.in: Remove file.
20159 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20161 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20162 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20164 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20165 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20168 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20169 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20170 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20171 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20174 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20176 * term/tparm.c: Switch to GPLv3.
20178 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20180 * include/grub/i386/cpuid.h: Add header protection.
20182 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20184 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20186 * include/grub/i386/cpuid.h: New file.
20187 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20188 (has_longmode): Rename to ...
20189 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20190 `static' attribute.
20191 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20192 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20193 on a CPU that doesn't implement AMD64 instruction set.
20195 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20197 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20198 that version.texi is rebuilt on version number changes.
20200 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20202 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20205 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20207 * util/i386/pc/grub-install.in: Source
20208 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20209 that the --grub-probe option will work.
20210 * util/sparc64/ieee1275/grub-install.in: Likewise.
20212 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20214 * configure.ac: Bump version to 1.97~beta4.
20216 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20218 Resync grub-mkdevicemap in x86_64-efi.
20220 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20221 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20222 `util/devicemap.c'.
20224 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20226 * util/grub-editenv.c (create_envblk_file): Write new block with a
20227 .new suffix and then rename it into place, to ensure atomic
20230 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20232 Do not automatically install headers.
20234 * Makefile.in (include_DATA): Remove. Update all users.
20236 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20238 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20239 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20241 * util/osdetect.lua: Remove.
20242 * script/lua/lauxlib.c: Likewise.
20243 * script/lua/ldebug.c: Likewise.
20244 * script/lua/grub_main.c: Likewise.
20245 * script/lua/lauxlib.h: Likewise.
20246 * script/lua/ldebug.h: Likewise.
20247 * script/lua/ltablib.c: Likewise.
20248 * script/lua/liolib.c: Likewise.
20249 * script/lua/lstrlib.c: Likewise.
20250 * script/lua/lualib.h: Likewise.
20251 * script/lua/ldo.c: Likewise.
20252 * script/lua/ldump.c: Likewise.
20253 * script/lua/ldo.h: Likewise.
20254 * script/lua/loslib.c: Likewise.
20255 * script/lua/lundump.c: Likewise.
20256 * script/lua/grub_lib.c: Likewise.
20257 * script/lua/ldblib.c: Likewise.
20258 * script/lua/lundump.h: Likewise.
20259 * script/lua/lmem.c: Likewise.
20260 * script/lua/grub_lib.h: Likewise.
20261 * script/lua/lmathlib.c: Likewise.
20262 * script/lua/lstate.c: Likewise.
20263 * script/lua/ltm.c: Likewise.
20264 * script/lua/lvm.c: Likewise.
20265 * script/lua/lmem.h: Likewise.
20266 * script/lua/lstate.h: Likewise.
20267 * script/lua/ltm.h: Likewise.
20268 * script/lua/ltable.c: Likewise.
20269 * script/lua/lvm.h: Likewise.
20270 * script/lua/llex.c: Likewise.
20271 * script/lua/lgc.c: Likewise.
20272 * script/lua/grub_lua.h: Likewise.
20273 * script/lua/loadlib.c: Likewise.
20274 * script/lua/lfunc.c: Likewise.
20275 * script/lua/lopcodes.c: Likewise.
20276 * script/lua/lparser.c: Likewise.
20277 * script/lua/ltable.h: Likewise.
20278 * script/lua/llex.h: Likewise.
20279 * script/lua/lgc.h: Likewise.
20280 * script/lua/lfunc.h: Likewise.
20281 * script/lua/lbaselib.c: Likewise.
20282 * script/lua/lopcodes.h: Likewise.
20283 * script/lua/lparser.h: Likewise.
20284 * script/lua/lzio.c: Likewise.
20285 * script/lua/linit.c: Likewise.
20286 * script/lua/lobject.c: Likewise.
20287 * script/lua/llimits.h: Likewise.
20288 * script/lua/lstring.c: Likewise.
20289 * script/lua/lzio.h: Likewise.
20290 * script/lua/lapi.c: Likewise.
20291 * script/lua/lcode.c: Likewise.
20292 * script/lua/lua.h: Likewise.
20293 * script/lua/lobject.h: Likewise.
20294 * script/lua/lstring.h: Likewise.
20295 * script/lua/lapi.h: Likewise.
20296 * script/lua/lcode.h: Likewise.
20297 * script/lua/luaconf.h: Likewise.
20299 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
20301 * docs/grub.texi (Command-line and menu entry commands): Document
20302 date and echo commands.
20304 2009-09-24 Pavel Roskin <proski@gnu.org>
20306 * include/grub/kernel.h (struct grub_module_header): Remove
20307 `grub_module_header_types'. Make `type' unsigned. Make `size'
20308 32-bit on all platforms.
20309 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
20310 8-bit field. Use grub_host_to_target32() for `size'.
20311 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
20312 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
20313 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
20315 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20317 Fix "lost keypress" bug in at_keyboard.
20319 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
20320 Checks for readyness of input buffer (without flushing it).
20321 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
20322 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
20324 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20326 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
20327 size check within GRUB_MACHINE_PCBIOS section.
20329 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20331 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
20333 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
20334 KEYBOARD_ISREADY check.
20335 (grub_at_keyboard_checkkey): Rename to ...
20336 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
20337 Remove gratuitous cast.
20339 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
20341 * configure.ac: Call AC_PROG_MKDIR_P.
20342 * Makefile.in (docs/stamp-vti): Create docs directory. Create
20343 version.texi in $(builddir) rather than $(srcdir).
20344 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
20345 to makeinfo's @include search path.
20347 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20349 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
20351 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20353 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
20356 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
20358 Build info documentation. Some code borrowed from Automake.
20360 * configure.ac: Check for makeinfo.
20361 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
20362 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
20364 (MOSTLYCLEANFILES): Add vti.tmp.
20365 (docs/version.texi, docs/stamp-vti): Update automatically.
20366 (docs/grub.info): Build info documentation. Use --force and ignore
20368 (all-local): Add $(INFOS).
20369 (install-local): Install info files.
20370 (uninstall): Uninstall info files.
20371 * docs/version.texi: Remove from revision control. This file is
20372 automatically generated on build now.
20373 * gendistlist.sh: Add `*.info'.
20375 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20377 * kern/term.c: Fix indentation.
20379 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20381 * util/hostdisk.c: Fix a comment.
20383 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
20385 Fix regression introduced in r2539.
20387 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
20390 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
20392 * util/grub.d/30_os-prober.in: Don't throw away stderr from
20393 os-prober. Under normal operation, it does not print anything to
20394 stderr; if it does, we need to debug it, and throwing away stderr
20395 makes that excessively difficult.
20397 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
20399 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
20401 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20403 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
20404 AC_LANG_PROGRAM from autoconf.
20405 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
20406 prototypes (fixes warning).
20408 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
20409 `--disable-werror' was used.
20411 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20413 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
20414 uninitialized `lastaddr'.
20416 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20418 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
20420 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20422 * commands/test.c (get_fileinfo): Return immediately if
20423 grub_fs_probe fails.
20425 2009-09-14 José Martínez <xosemp@gmail.com>
20427 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
20429 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20431 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
20434 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
20436 * configure.ac: Remove --enable-grub-pe2elf. Only build
20437 grub-pe2elf when needed by the build system itself.
20438 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
20440 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20442 * configure.ac: Bump version to 1.97~beta3.
20443 * docs/version.texi: Likewise.
20445 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20447 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
20448 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
20450 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
20451 (grub_linux_setup_video): ... to here (with some adjustments).
20453 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20455 Fix memory corruption issue (spotted by Colin Watson).
20457 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
20458 causing returned size to be stored in an incorrect memory location.
20459 Fix use of uninitialized value when storing the returned size.
20461 2009-09-12 Yves Blusseau <blusseau@zetam.org>
20463 Change clean rules to properly remove files
20465 * genmk.rb: add new clean rules
20466 * Makefile.in (clean): add the new targets
20467 (mostlyclean): likewise
20469 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20471 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
20473 * fs/ntfs.c (init_file): Understand 64-bit sizes for
20474 non-resident files.
20476 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20478 * configure.ac: Don't look for help2man when cross-compiling. Fixes
20479 part of bug #27349.
20481 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20483 * util/grub-mkconfig.in: Make the created config mode 400 and
20484 print a warning if it fails.
20486 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
20488 * util/grub.d/40_custom.in: Ask user to type custom entries below
20489 comment, rather than below 'exec tail' line.
20491 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20493 * util/grub.d/40_custom.in: Make sure that the explanatory text is
20494 visible in grub.cfg.
20496 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20498 * util/grub.d/40_custom.in: Make it a little clearer how to use this
20501 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20503 * docs/grub.cfg: Add an example menu entry for memtest86+.
20505 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
20507 * config.guess: Update to latest version from config git.
20508 * config.sub: Likewise.
20510 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20512 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20513 unknown-command case. Fixes bug #27320.
20515 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20517 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20518 `help' if the command exists.
20520 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20522 * INSTALL: Require GCC 4.1.3 or later.
20524 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20526 * Makefile.in (RMKFILES): add i386-qemu.rmk
20527 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20528 $(srcdir)/stamp-h.in
20530 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20532 * util/grub-probe.c (probe): Comment out buggy codepath, which
20533 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
20534 should be re-enabled after 1.97.
20536 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
20538 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
20541 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20543 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
20544 unnecessary calls to grub_error.
20546 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
20548 * NEWS: Mention `keystatus' and Unicode fonts.
20550 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
20552 * configure.ac: Bump version to 1.97~beta2.
20553 * docs/version.texi: Likewise.
20555 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20557 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
20558 containing unwind information in some cases where it previously did
20559 not. Use -fno-dwarf2-cfi-asm if available to restore the old
20560 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
20563 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
20565 Embedding loadenv module into grub-emu
20567 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
20569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
20570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
20571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
20572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
20573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
20574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
20576 2009-09-03 Magnus Granberg <zorry@ume.nu>
20578 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
20579 include -fPIE in the default specs.
20580 * configure.ac: Check if pie_possible is yes and add -fno-PIE
20583 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
20585 * INSTALL: Note that GNU Bison 2.3 or later is required.
20587 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20589 * kern/i386/pc/startup.S: Fix typo.
20591 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20593 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
20596 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20598 * docs/grub.texi (Naming convention): Describe one-based partition
20600 (Device syntax): Likewise.
20601 (File name syntax): Likewise.
20602 (Block list syntax): Likewise.
20603 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
20605 (File name syntax): Likewise.
20606 (Command-line and menu entry commands): Document acpi, blocklist,
20607 crc, export, insmod, keystatus, ls, set, and unset commands.
20609 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20611 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
20612 to avoid implying that only one of --shift, --ctrl, or --alt may be
20615 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20617 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
20618 rather than comparing against S_IFREG, which will almost never work.
20620 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20622 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
20623 (write_blocklists): Likewise.
20625 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
20627 * script/lua/grub_lua.h (fputs): Supply a format string as the first
20628 argument to grub_printf.
20630 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
20632 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
20635 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20637 * kern/file.c (grub_file_read): Spelling fix
20639 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20641 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
20642 loading of headers in some cases.
20644 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
20646 * configure.ac: Bump version to 1.97~beta1.
20647 * docs/version.texi: Likewise.
20649 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20651 * include/grub/i386/xnu.h: Add license header.
20652 include grub/err.h explicitly.
20654 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20656 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
20657 to `ufs' in the vfs.root.mountfrom kernel parameter.
20659 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20661 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
20663 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
20664 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
20666 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
20667 `ARRAY_SIZE' macro.
20669 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20671 * kern/file.c (grub_file_read): Check offset.
20672 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
20673 * fs/jfs.c (grub_jfs_read_file): Likewise.
20674 * fs/ntfs.c (grub_ntfs_read): Likewise.
20675 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
20676 * fs/minix.c (grub_minix_read_file): Correct offset check.
20677 * fs/ufs.c (grub_ufs_read_file): Likewise.
20679 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20681 * term/i386/pc/console.c (bios_data_area): Cast
20682 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
20684 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20686 1-bit optimised blitters.
20688 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
20690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20696 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
20698 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20699 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20700 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20701 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20702 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20703 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20704 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
20706 * video/video.c (grub_video_get_blit_format): Return
20707 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
20709 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20711 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
20712 the first argument to grub_printf.
20714 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20715 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
20717 Add `getkeystatus' terminal method. Add a new `keystatus' command
20720 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
20721 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
20722 modifier key bitmasks.
20723 (struct grub_term_input): Add `getkeystatus' member.
20724 (grub_getkeystatus): Add prototype.
20725 * kern/term.c (grub_getkeystatus): New function.
20727 * include/grub/i386/pc/memory.h
20728 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
20729 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
20731 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
20732 (grub_console_term_input): Set `getkeystatus' member.
20733 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
20735 (grub_usb_keyboard_getreport): Likewise.
20736 (grub_usb_keyboard_checkkey): Likewise.
20737 (grub_usb_keyboard_getkeystatus): New function.
20738 (grub_usb_keyboard_term): Set `getkeystatus' member.
20740 * commands/keystatus.c: New file.
20741 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
20742 (keystatus_mod_SOURCES): New variable.
20743 (keystatus_mod_CFLAGS): Likewise.
20744 (keystatus_mod_LDFLAGS): Likewise.
20745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
20746 commands/keystatus.c.
20747 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20749 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20754 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20756 Split befs.mod and afs.mod into *_be.mod and *.mod
20758 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
20759 (grub_fstest_SOURCES): Likewise.
20760 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
20761 (afs_be_mod_SOURCES): New variable.
20762 (afs_be_mod_CFLAGS): Likewise.
20763 (afs_be_mod_LDFLAGS): Likewise.
20764 (befs_be_mod_SOURCES): Likewise.
20765 (befs_be_mod_CFLAGS): Likewise.
20766 (befs_be_mod_LDFLAGS): Likewise.
20767 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
20768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20769 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20770 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20771 (grub_emu_SOURCES): Likewise.
20772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20775 * fs/afs_be.c: New file.
20776 * fs/befs_be.c: New file.
20777 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
20778 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
20779 (U16): Replaced with ...
20780 (grub_afs_to_cpu16): ...this. All users updated.
20781 (U32): Replaced with ...
20782 (grub_afs_to_cpu32): ...this. All users updated.
20783 (U64): Replaced with ...
20784 (grub_afs_to_cpu64): ...this. All users updated.
20785 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
20786 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
20787 (grub_afs_validate_sblock): Check only one endianness.
20788 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20789 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20790 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20791 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20792 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20793 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20794 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20795 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20797 2009-08-26 Bean <bean123ch@gmail.com>
20799 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
20801 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
20802 (grub_xfs_inode_block): Change return type to grub_uint64_t.
20803 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
20805 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20807 NetBSD memory map support.
20809 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
20810 (grub_netbsd_btinfo_mmap_header): New structure.
20811 (grub_netbsd_btinfo_mmap_entry): Likewise.
20812 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
20814 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20816 Enable bsd.mod on coreboot.
20818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
20819 (bsd_mod_SOURCES): New variable.
20820 (bsd_mod_CFLAGS): Likewise.
20821 (bsd_mod_LDFLAGS): Likewise.
20822 (bsd_mod_ASFLAGS): Likewise.
20823 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
20824 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
20826 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20828 Cleanup NetBSD root support.
20830 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
20831 grub_bsd_get_device.
20834 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
20836 * util/grub.d/00_header.in: Move check for the video backend of
20837 gfxterm from here ...
20838 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
20839 a suitable video backend.
20841 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20843 Fix breakage in grub-setup.
20845 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
20846 "msdos_partition_map".
20848 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20850 Fix breakage in normal/auth.c.
20852 * normal/auth.c (grub_iswordseparator): New function.
20854 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20856 Authentication support.
20858 * commands/password.c: New file.
20859 * conf/common.rmk (pkglib_MODULES): Add password.mod.
20860 (password_mod_SOURCES): New variable.
20861 (password_mod_CFLAGS): Likewise.
20862 (password_mod_LDFLAGS): Likewise.
20863 (normal_mod_SOURCES): Add normal/auth.c.
20864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
20866 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20868 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20872 * include/grub/auth.h: New file.
20873 * include/grub/err.h (grub_err_t): New enum value
20874 GRUB_ERR_ACCESS_DENIED.
20875 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
20877 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
20878 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
20880 * normal/auth.c: New file.
20881 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
20882 (grub_cmdline_run): Don't allow to go to command line without
20884 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
20885 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
20886 menuentry without superuser rights.
20887 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
20888 user isn't a superuser.
20890 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20892 Save space by inlining misc.c functions.
20894 * kern/misc.c (grub_iswordseparator): Made static.
20895 * kern/misc.c (grub_strcat): Moved from here ...
20896 * include/grub/misc.h (grub_strcat): ... here. Inlined.
20897 * kern/misc.c (grub_strncat): Moved from here ...
20898 * include/grub/misc.h (grub_strncat): ... here. Inlined.
20899 * kern/misc.c (grub_strcasecmp): Moved from here ...
20900 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
20901 * kern/misc.c (grub_strncasecmp): Moved from here ...
20902 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
20903 * kern/misc.c (grub_isalpha): Moved from here ...
20904 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
20905 * kern/misc.c (grub_isdigit): Moved from here ...
20906 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
20907 * kern/misc.c (grub_isgraph): Moved from here ...
20908 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
20909 * kern/misc.c (grub_tolower): Moved from here ...
20910 * include/grub/misc.h (grub_tolower): ... here. Inlined.
20912 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20914 * script/sh/function.c (grub_script_function_find): Cut error message
20915 not to flood terminal.
20916 * script/sh/lexer.c (grub_script_yylex): Remove command line length
20918 * script/sh/script.c (grub_script_arg_add): Duplicate string.
20920 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
20922 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
20923 `report' grub_uint8_t *.
20924 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
20925 Use a 50-millisecond timeout rather than just repeating
20926 grub_usb_keyboard_getreport 50 times.
20927 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
20929 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20931 Rename *_partition_map to part_*
20933 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
20934 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
20935 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
20936 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
20938 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
20940 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
20941 * util/grub-probe.c (probe_partmap): Don't transform partition name
20942 to get module name.
20944 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20946 Fix OpenBSD and NetBSD support.
20948 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
20949 memory address conflict.
20950 (OPENBSD_MMAP_ACPI): New definition.
20951 (OPENBSD_MMAP_NVS): Likewise.
20952 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
20953 and OPENBSD_MMAP_NVS.
20954 Add memory map terminator
20955 Explicit cast when calling grub_unix_real_boot.
20956 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
20958 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20960 Let user specify NetBSD root device.
20962 * loader/i386/bsd.c (netbsd_root): New variable.
20963 (netbsd_opts): New option 'root'.
20964 (NETBSD_ROOT_ARG): New macro.
20965 (grub_netbsd_boot): Use 'netbsd_root'.
20966 (grub_bsd_unload): Free 'netbsd_root'.
20967 (grub_cmd_netbsd): Fill 'netbsd_root'.
20969 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20971 Support for 64-bit NetBSD.
20973 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
20974 point when booting non-FreeBSD.
20976 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20978 Support --no-smp and --no-acpi for NetBSD.
20980 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
20981 (NETBSD_AB_NOACPI): Likewise.
20982 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
20983 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
20985 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20987 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
20989 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
20990 errors. Call grub_error when needed.
20992 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20994 * commands/search.c (search_fs): Try searching without autoload first.
20995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
20996 filesystem module explicitly for faster booting.
20998 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21000 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21002 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21004 * util/grub.d/30_os-prober.in: Disable os-prober if
21005 `GRUB_DISABLE_OS_PROBER' was set to true.
21007 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21009 * partmap/pc.c: Rename to ...
21010 * partmap/msdos.c: ... this. Update all users.
21011 (grub_pc_partition_map): Rename to ...
21012 (grub_msdos_partition_map): ... this. Update all users.
21014 * parttool/pcpart.c: Rename to ...
21015 * parttool/msdospart.c: ... this. Update all users.
21017 * include/grub/pc_partition.h: Rename to ...
21018 * include/grub/msdos_partition.h: ... this. Update all users.
21019 (grub_pc_partition_bsd_entry): Rename to ...
21020 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21021 (grub_pc_partition_disk_label): Rename to ...
21022 (grub_msdos_partition_disk_label): ... this. Update all users.
21023 (grub_pc_partition_entry): Rename to ...
21024 (grub_msdos_partition_entry): ... this. Update all users.
21025 (grub_pc_partition_mbr): Rename to ...
21026 (grub_msdos_partition_mbr): ... this. Update all users.
21027 (grub_pc_partition): Rename to ...
21028 (grub_msdos_partition): ... this. Update all users.
21029 (grub_pc_partition_is_empty): Rename to ...
21030 (grub_msdos_partition_is_empty): ... this. Update all users.
21031 (grub_pc_partition_is_extended): Rename to ...
21032 (grub_msdos_partition_is_extended): ... this. Update all users.
21033 (grub_pc_partition_is_bsd): Rename to ...
21034 (grub_msdos_partition_is_bsd): ... this. Update all users.
21036 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21037 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21038 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21039 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21040 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21041 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21042 (gpt_mod_LDFLAGS): Rename to ...
21043 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21044 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21045 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21046 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21047 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21048 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21049 (part_gpt_mod_LDFLAGS): ... this.
21050 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21051 `pcpart.mod' to `msdospart.mod'.
21052 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21054 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21055 (msdospart_mod_LDFLAGS): ... this.
21057 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21059 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21060 (openbsd_opts): Likewise.
21061 (netbsd_opts): Likewise.
21062 (freebsd_flags): Added 0 terminator.
21063 (openbsd_flags): Likewise.
21064 (netbsd_flags): Likewise.
21065 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21066 (grub_cmd_freebsd): Transformed into extended command.
21067 (grub_cmd_openbsd): Likewise.
21068 (grub_cmd_netbsd): Likewise.
21069 (cmd_freebsd): Changed type to grub_extcmd_t.
21070 (cmd_openbsd): Likewise.
21071 (cmd_netbsd): Likewise.
21072 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21073 grub_cmd_openbsd as extended commands.
21074 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21075 cmd_netbsd and cmd_openbsd
21077 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21079 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21081 2009-08-21 Pavel Roskin <proski@gnu.org>
21083 * Makefile.in (install-local): When checking if a file is in the
21084 build directory, use "test -e" to detect symlinks.
21086 * Makefile.in (install-local): Remove all files in
21087 $(DESTDIR)$(pkglibdir) before installing new files there.
21089 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21091 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21094 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21096 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21097 explicitly specified by the user.
21099 2009-08-18 Pavel Roskin <proski@gnu.org>
21101 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21102 grub_uint8_t pointer for data.
21103 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21105 * video/fb/fbutil.c: Remove unnecessary casts.
21107 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21111 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21112 (grub_vbe_set_video_mode): Save active mode info
21113 only after setting the mode.
21114 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21117 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21119 Rename variables for clarity.
21121 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21122 (active_vbe_mode_info): ... this. All users updated.
21123 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21125 (initial_mode): Rename to ...
21126 (initial_vbe_mode): ... this. All users updated.
21127 (mode_in_use): Rename to ..
21128 (vbe_mode_in_use): ... this. All users updated.
21129 (mode_list): Rename to ..
21130 (vbe_mode_list): ... this. All users updated.
21131 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21132 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21133 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21134 'mode_list_size' to 'vbe_mode_list_size'.
21135 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21136 'best_mode_info' to 'best_vbe_mode_info' and
21137 'best_mode' to 'best_vbe_mode'
21139 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21141 Remove duplicate grub_video_fb_get_video_ptr.
21143 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21144 (grub_video_fb_get_video_ptr): ... this.
21145 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21146 * video/fb/fbutil.c: Add comment about addressing.
21147 (get_data_ptr): Rename to ...
21148 (grub_video_fb_get_video_ptr): ... this. All users updated.
21149 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21151 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21153 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21154 grub_dprintf() that was just added.
21156 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21158 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21159 (DEFAULT_VIDEO_MODE): Remove macros.
21160 (grub_linux_boot): Remove assumption that Linux has FB support,
21161 and use "text" as default video mode.
21163 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21165 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21167 * fs/fat.c (grub_fat_read_data): Likewise.
21169 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21171 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21173 (grub_module): Likewise.
21175 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21177 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21178 mbi->cmdline but free playground.
21180 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21182 Handle group offset on UFS1.
21184 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21185 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21187 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21189 Split ufs.mod into ufs1.mod and ufs2.mod.
21191 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21192 (grub_fstest_SOURCES): Likewise.
21193 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21194 (ufs_mod_SOURCES): Remove.
21195 (ufs_mod_CFLAGS): Likewise.
21196 (ufs_mod_LDFLAGS): Likewise.
21197 (ufs1_mod_SOURCES): New variable.
21198 (ufs1_mod_CFLAGS): Likewise.
21199 (ufs1_mod_LDFLAGS): Likewise.
21200 (ufs2_mod_SOURCES): New variable.
21201 (ufs2_mod_CFLAGS): Likewise.
21202 (ufs2_mod_LDFLAGS): Likewise.
21203 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21204 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21206 (grub_emu_SOURCES): Likewise.
21207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21208 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21209 (grub_setup_SOURCES): Likewise.
21210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21211 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21212 (grub_setup_SOURCES): Likewise.
21213 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21215 * fs/ufs2.c: New file.
21216 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21218 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21222 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21223 subsystem at the end.
21224 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21225 (video_fb_mod_SOURCES): New variable.
21226 (video_fb_mod_CFLAGS): Likewise.
21227 (video_fb_mod_LDFLAGS): Likewise.
21228 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
21229 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
21230 * video/i386/pc/vbeblit.c: Moved from here ...
21231 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
21232 * video/i386/pc/vbefill.c: Moved from here ...
21233 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
21234 * video/i386/pc/vbeutil.c: Moved from here ...
21235 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
21236 * include/grub/i386/pc/vbeblit.h: Moved from here ...
21237 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
21238 * include/grub/i386/pc/vbefill.h: Moved from here ...
21239 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
21240 * include/grub/i386/pc/vbeutil.h: Moved from here ...
21241 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
21242 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
21243 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
21244 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
21245 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
21246 (grub_video_adapter): Added 'get_info_and_fini'.
21247 (grub_video_get_info_and_fini): New prototype.
21248 (grub_video_set_mode): make modestring const char *.
21249 * loader/i386/linux.c (grub_linux_setup_video): Use
21250 grub_video_get_info_and_fini.
21251 (grub_linux_boot): Move modesetting just before booting.
21252 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
21253 grub_video_get_info_and_fini.
21254 * video/i386/pc/vbe.c: Moved framebuffer part ...
21255 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
21256 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
21257 grub_video_fbstd_colors and grub_video_fb_set_palette.
21258 (grub_video_vbe_init): Clear 'framebuffer' variable and use
21259 grub_video_fb_init.
21260 (grub_video_vbe_fini): Use grub_video_fb_fini.
21261 (grub_video_vbe_setup): Use framebuffer.render_target instead of
21262 render_target and use grub_video_fb_set_active_render_target and
21263 grub_video_fb_set_palette.
21264 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
21265 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
21266 (grub_video_vbe_adapter): Use framebuffer.
21267 * video/video.c (grub_video_get_info_and_fini): New function.
21268 (grub_video_set_mode): Make modestring const char *.
21269 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
21270 values are already initialised.
21272 2009-08-14 Pavel Roskin <proski@gnu.org>
21274 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21276 * boot/i386/pc/diskboot.S: Likewise.
21277 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
21278 sectors allow compilation on MacOSX.
21279 * conf/i386-pc.rmk: Enable unconditional compilation of
21282 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21284 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
21285 * util/grub.d/00_header.in: Enter interruptible sleep if
21286 GRUB_HIDDEN_TIMEOUT is set.
21288 2009-08-13 Yves Blusseau <blusseau@zetam.org>
21290 * include/grub/symbol.h: Add the LOCAL macro.
21291 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
21292 starting with "L_".
21294 2009-08-13 Pavel Roskin <proski@gnu.org>
21296 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
21297 any modern compilers we support.
21299 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
21300 Use local labels starting with "L_" so that Apple assembler
21301 knows they are local.
21303 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
21305 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
21306 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
21307 (bsd_kernel_types): ... this enum.
21309 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
21310 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
21311 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
21313 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
21314 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
21315 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
21318 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21320 * util/grub-dumpdevtree: Moved from here ...
21321 * util/i386/efi/grub-dumpdevtree: ... to here.
21322 (hexify): New function. Converts a string to its hex version.
21323 Generate hex versions of "efi" and "device-properties" by calling
21324 hexify() on the ASCII strings rather than by hardcoding numbers.
21326 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21328 * fs/jfs.c: Update copyright year.
21330 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21332 * util/grub.d/00_header.in: Fix a comment.
21333 * util/grub.d/10_linux.in: Likewise.
21334 * util/grub.d/10_windows.in: Likewise.
21335 * util/grub.d/10_hurd.in: Likewise.
21337 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21339 * util/grub-mkconfig.in: Allow the user to specify the used font
21342 2009-08-08 Pavel Roskin <proski@gnu.org>
21344 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
21345 available, xfs.mod needs it now.
21347 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
21348 the "g" modifier in sed when the intention is to strip something
21349 once. This fixes comparison of kernels with multiple dashes.
21351 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
21352 on it. Add missing space before closing bracket. Fix
21353 misleading formatting.
21355 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21357 * docs/grub.texi: Major overhaul. Remove all sections that are
21358 specific to GRUB Legacy, or mostly composed of Legacy-specific
21361 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21363 * docs/version.texi: New file. Provides version information for
21366 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21368 * docs/grub.texi: Update CVS information to SVN.
21369 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
21371 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21373 * util/grub-mkconfig.in: Remove a wrong `fi'.
21375 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21377 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
21378 (grub_jfs_uuid): New function.
21379 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
21381 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21383 * util/grub-mkconfig_lib.in (font_path): Move the functionality
21385 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
21386 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
21388 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21390 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
21391 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
21394 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
21395 not just "vmlinu[zx]".
21396 Moved from here ...
21397 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
21400 * util/grub.d/10_linux.in (find_latest): Moved from here ...
21401 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
21404 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21406 * util/grub.d/10_freebsd.in: Use an absolute device path for
21407 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
21409 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
21411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
21412 handling of multiple abstraction modules.
21414 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
21416 Fix a bug resulting in black screen when loading Linux using a
21419 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
21422 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
21423 (grub_vbe_bios_getset_dac_palette_width): New function.
21424 (grub_vbe_bios_get_dac_palette_width)
21425 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
21426 grub_vbe_bios_getset_dac_palette_width()).
21428 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
21429 check for return status.
21430 (grub_vbe_get_video_mode_info): When getting information for a packed
21431 mode (<= 8 bpp), obtain DAC palette width using
21432 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
21433 {red,green,blue}_mark_size.
21435 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
21437 * commands/search.c (options): Fix help output to match actual code.
21439 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
21441 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
21444 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21446 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
21447 on XFS or ReiserFS.
21449 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21451 Support Apple partition map with sector size different from 512 bytes.
21453 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
21454 (apple_partition_map_iterate): Respect 'aheader.blocksize'
21455 and 'apart.partmap_size'.
21457 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21458 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
21462 * commands/i386/cpuid.c (options): New variable.
21463 (grub_cmd_cpuid): Return real error.
21464 (GRUB_MOD_INIT(cpuid)): Declare options.
21466 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
21468 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
21471 2009-07-31 Bean <bean123ch@gmail.com>
21473 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
21475 (grub_fshelp_node): Move inode field to the end.
21476 (grub_xfs_data): Remove inode field.
21477 (grub_xfs_inode_block): Calculate inode size using sblock.
21478 (grub_xfs_inode_offset): Likewise.
21479 (grub_xfs_read_inode): Calculate inode size using sblock.
21480 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
21481 (grub_xfs_iterate_dir): Calculate inode size using sblock.
21482 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
21483 to match inode size.
21484 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
21485 not accessible when data is null.
21486 (grub_xfs_open): Likewise.
21488 2009-07-31 Bean <bean123ch@gmail.com>
21490 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
21491 Don't change pv->disk if it's already set.
21493 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
21494 (grub_raid_register): ... here.
21495 (grub_raid_rescan): Removed.
21497 * include/grub/raid.h (grub_raid_rescan): Removed.
21499 * util/grub-fstest.c: Remove include file <grub/raid.h>.
21500 (fstest): Replace grub_raid_rescan with module fini function followed
21503 * util/grub-probe.c: Add include file <grub/raid.h>.
21504 (probe_raid_level): New function.
21505 (probe): Detect abstraction by walking the disk device, support two
21506 level of abstraction (LVM on RAID) when detecting partition map.
21508 2009-07-31 Pavel Roskin <proski@gnu.org>
21510 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21511 to grub_zalloc(), it was erroneous.
21512 Reported by Bean <bean123ch@gmail.com>
21514 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21516 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21517 embedding zone, not only the first one.
21519 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21521 * term/gfxterm.c (clear_char): New function.
21522 (grub_virtual_screen_setup): Use clear_char.
21523 (scroll_up): Likewise.
21524 (grub_virtual_screen_cls): Likewise.
21526 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21528 * util/deviceiter.c (get_acceleraid_disk_name): New static
21530 (grub_util_iterate_devices): Handle Accelraid devices.
21531 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21533 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21535 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
21536 separator for the suggested gfxpayload string (';' collides with the
21537 parser and needs escaping).
21539 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21541 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
21542 Clear direction flag before jumping to OS.
21543 (grub_multiboot2_real_boot): Likewise.
21545 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21547 * util/i386/pc/grub-install: Fix parsing of --disk-module
21550 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21552 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
21555 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
21557 * util/grub-mkconfig.in (package_version): New variable.
21558 Use it do display the version.
21560 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21562 * kern/file.c (grub_file_open): Revert to previous check with
21565 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21567 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
21568 from help line. It's out of sync with code.
21570 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21572 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
21573 entries on failed boot.
21575 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21577 * kern/file.c (grub_file_open): Fix an error check.
21579 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
21581 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
21582 partition map couldn't be identified.
21584 2009-07-23 Pavel Roskin <proski@gnu.org>
21586 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
21587 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
21588 case of little endian words becomes just an optimization.
21589 Respect const modifier.
21590 (md5_final): Use code that doesn't depend on endianness.
21592 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
21593 to avoid loss of upper bits if align is unsigned and shorter
21596 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21598 UUID support for UFS
21600 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
21601 (grub_ufs_uuid): New function.
21602 (grub_ufs_fs): add .uuid
21604 2009-07-21 Pavel Roskin <proski@gnu.org>
21606 * kern/dl.c (grub_dl_check_header): Make static.
21608 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
21610 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
21611 add drivemap for Vista. It breaks Windows 7.
21613 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21615 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
21618 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21622 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
21623 (grub_fstest_SOURCES): Likewise.
21624 (pkglib_MODULES): Add befs.mod.
21625 (befs_mod_SOURCES): New variable.
21626 (befs_mod_CFLAGS): Likewise.
21627 (befs_mod_LDFLAGS): Likewise.
21628 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21630 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21631 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21632 (grub_setup_SOURCES): Likewise.
21633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21635 (grub_setup_SOURCES): Likewise.
21636 * fs/befs.c: New file.
21637 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
21638 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
21639 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
21640 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
21641 (B_KEY_INDEX_ALIGN): New declaration.
21642 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
21643 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
21644 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
21645 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
21646 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
21647 (grub_afs_mount) [MODE_BFS]: Likewise.
21648 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
21649 (grub_afs_fs): Use GRUB_AFS_FSNAME
21650 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
21651 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
21652 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
21653 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
21655 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
21657 * util/getroot.c (find_root_device): Add support for MacOSX.
21658 * util/hostdisk.c: Likewise.
21660 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21662 * font/font.c (find_glyph): Check whether a font is present to avoid
21663 segmentation fault.
21665 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
21667 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
21669 2009-07-20 Pavel Roskin <proski@gnu.org>
21671 * configure.ac: Trim excessively wordy excuses.
21673 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21675 Add symlink, mtime and label support to AtheFS.
21677 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
21678 (grub_afs_iterate_dir): Handle symlinks.
21679 (grub_afs_open): Use grub_afs_read_symlink.
21680 (grub_afs_dir): Likewise.
21682 (grub_afs_label): New function.
21683 (grub_afs_fs): Add grub_afs_label.
21684 (grub_afs_read_symlink): New function.
21686 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21688 Fix AtheFS support.
21690 * fs/afs.c: Fix comments style.
21691 (grub_afs_blockrun): Declare as packed.
21692 (grub_afs_datastream): Likewise.
21693 (grub_afs_bnode): Likewise.
21694 (grub_afs_btree): Likewise.
21695 (grub_afs_sblock): Likewise.
21696 Declare `name' as char.
21697 (grub_afs_inode): Declare as packed.
21698 Change void *vnode to grub_uint32_t unused.
21699 (grub_afs_iterate_dir): Check that key_size is positive.
21700 (grub_afs_mount): Don't read superblock twice.
21701 (grub_afs_dir): Don't free node in case of error,
21702 grub_fshelp_find_file already handles this.
21703 (grub_afs_open): Likewise.
21705 2009-07-19 Pavel Roskin <proski@gnu.org>
21707 * Makefile.in: Remove LIBLZO and enable_lzo.
21708 * conf/i386-pc.rmk: Remove lzo support.
21709 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
21710 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
21712 * kern/i386/pc/lzo1x.S: Remove.
21713 * kern/i386/pc/startup.S: Remove lzo support.
21714 * util/i386/pc/grub-mkimage.c: Likewise.
21716 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
21718 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
21719 * fs/xfs.c (grub_xfs_dir): Likewise.
21720 * fs/afs.c (grub_afs_dir): Likewise.
21721 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
21722 (grub_iso9660_open): Likewise.
21723 * fs/jfs.c (grub_jfs_open): Likewise.
21724 * fs/ext2.c (grub_ext2_dir): Likewise.
21725 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
21726 * script/sh/lexer.c (grub_script_yylex): Likewise.
21728 2009-07-16 Pavel Roskin <proski@gnu.org>
21730 * configure.ac: Never add "-c" to CFLAGS.
21732 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
21734 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
21735 grub_cv_cc_efiemu should be used.
21737 * configure.ac: Typo fixes.
21739 * kern/mm.c (grub_zalloc): New function.
21740 (grub_debug_zalloc): Likewise.
21741 * include/grub/mm.h: Declare grub_zalloc() and
21742 grub_debug_zalloc().
21743 * util/misc.c (grub_zalloc): New function.
21744 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
21745 instead of grub_malloc(), remove unneeded initializations.
21746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
21747 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
21748 * commands/parttool.c (grub_cmd_parttool): Likewise.
21749 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21750 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
21751 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
21752 * disk/usbms.c (grub_usbms_finddevs): Likewise.
21753 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
21754 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
21755 (grub_cmd_efiemu_pnvram): Likewise.
21756 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
21757 * fs/iso9660.c (grub_iso9660_mount): Likewise.
21758 (grub_iso9660_iterate_dir): Likewise.
21759 * fs/jfs.c (grub_jfs_opendir): Likewise.
21760 * fs/ntfs.c (list_file): Likewise.
21761 (grub_ntfs_mount): Likewise.
21762 * kern/disk.c (grub_disk_open): Likewise.
21763 * kern/dl.c (grub_dl_load_core): Likewise.
21764 * kern/elf.c (grub_elf_file): Likewise.
21765 * kern/env.c (grub_env_context_open): Likewise.
21766 (grub_env_set): Likewise.
21767 (grub_env_set_data_slot): Likewise.
21768 * kern/file.c (grub_file_open): Likewise.
21769 * kern/fs.c (grub_fs_blocklist_open): Likewise.
21770 * loader/i386/multiboot.c (grub_module): Likewise.
21771 * loader/xnu.c (grub_xnu_create_key): Likewise.
21772 (grub_xnu_create_value): Likewise.
21773 * normal/main.c (grub_normal_add_menu_entry): Likewise.
21774 (read_config_file): Likewise.
21775 * normal/menu_entry.c (make_screen): Likewise.
21776 * partmap/sun.c (sun_partition_map_iterate): Likewise.
21777 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
21778 * script/sh/script.c (grub_script_parse): Likewise.
21779 * video/bitmap.c (grub_video_bitmap_create): Likewise.
21780 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
21781 * video/readers/png.c (grub_png_output_byte): Likewise.
21782 (grub_video_reader_png): Likewise.
21784 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21786 Enable all targets that can be built by default
21788 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
21789 grub-mkfont and grub-fstest if they can be built
21791 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21793 Fix hang and segmentation fault in grub-emu-usb
21795 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
21796 * util/usb.c (grub_libusb_devices): likewise
21797 (grub_libusb_init): rename to ...
21798 (GRUB_MOD_INIT (libusb)):...this
21799 (grub_libusb_fini): rename to ..
21800 (GRUB_MOD_FINI (libusb)):...this
21801 * disk/usbms.c (grub_usbms_transfer): fix retry logic
21802 * include/grub/disk.h (grub_raid_init): removed, it's useless
21803 (grub_raid_fini): likewise
21804 (grub_lvm_init): likewise
21805 (grub_lvm_fini): likewise
21806 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
21809 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21813 * Makefile.in (LIBUSB): new macro
21814 * genmk.rb (Utility/print_tail): new method
21815 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
21816 (top level): call util.print_tail at the end.
21818 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21820 Make FreeBSD accept zpool.cache
21822 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
21823 type is /boot/zfs/zpool.cache
21825 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21829 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
21830 correct wrong typedef
21831 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
21833 2009-07-15 Pavel Roskin <proski@gnu.org>
21835 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
21836 * kern/disk.c (struct grub_disk_cache): Likewise.
21838 * commands/probe.c (options): Typo fix.
21840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
21841 Increase to 0x5a to accommodate FAT32. Adjust other offsets
21843 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
21845 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
21846 the end of "Error" to make the message more readable.
21848 * boot/i386/pc/boot.S (kernel_segment): Remove.
21849 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
21852 * boot/i386/pc/boot.S (boot_version): Remove.
21853 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
21856 * include/grub/i386/pc/boot.h: Sort all offsets.
21857 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
21858 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
21859 * boot/i386/pc/boot.S: Assert location of every offset listed in
21860 include/grub/i386/pc/boot.h.
21862 2009-07-13 Pavel Roskin <proski@gnu.org>
21864 * include/grub/i386/coreboot/machine.h: Rename
21865 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
21866 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
21867 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
21869 * kern/dl.c: Force native word size to suppress warnings when
21870 compiling grub-emu.
21872 * kern/device.c (grub_device_iterate): Change struct part_ent to
21873 hold the name, not a pointer to it. Use one grub_malloc() per
21874 partition, not two. Free partition_name if grub_malloc() fails.
21875 Set ents to NULL only before grub_partition_iterate() is called.
21877 2009-07-11 Bean <bean123ch@gmail.com>
21879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
21882 2009-07-10 Bean <bean123ch@gmail.com>
21883 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
21885 * kern/ieee1275/openfw.c (grub_children_iterate)
21886 (grub_devalias_iterate): Fix size evaluation for property or path
21887 strings, which was broken since r2132.
21889 2009-07-07 Pavel Roskin <proski@gnu.org>
21891 * commands/search.c (search_file): Merge into ...
21892 (search_fs): ... this. Accept search type as argument.
21893 (grub_cmd_search): Pass search type to search_fs().
21895 * include/grub/util/console.h: New file.
21896 * util/console.c: Use it instead of grub/machine/console.h.
21897 * util/grub-emu.c: Likewise.
21899 * lib/arg.c (find_long_option): Remove.
21900 (find_long): Add `len' argument, make `s' const char *.
21901 (grub_arg_parse): Parse long options in place, not in a
21904 2009-07-06 Pavel Roskin <proski@gnu.org>
21906 * commands/search.c (search_fs): Fix potential NULL pointer
21909 * commands/search.c (search_fs): Replace QUID macro with quid_fn
21912 2009-07-06 Daniel Mierswa <impulze@impulze.org>
21914 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
21917 2009-07-05 Pavel Roskin <proski@gnu.org>
21919 * include/grub/i386/linux.h (struct linux_kernel_params):
21920 Restore padding3, it's still needed.
21922 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
21924 * util/osdetect.lua: Likewise.
21926 2009-07-05 Bean <bean123ch@gmail.com>
21928 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
21930 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
21931 (grub_lua_getenv): Likewise.
21932 (grub_lua_setenv): Likewise.
21933 (save_errno): New function.
21934 (push_result): Likewise.
21935 (grub_lua_enum_device): Likewise.
21936 (grub_lua_enum_file): Likewise.
21937 (grub_lua_file_open): Likewise.
21938 (grub_lua_file_close): Likewise.
21939 (grub_lua_file_seek): Likewise.
21940 (grub_lua_file_read): Likewise.
21941 (grub_lua_file_getline): Likewise.
21942 (grub_lua_file_getsize): Likewise.
21943 (grub_lua_file_getpos): Likewise.
21944 (grub_lua_file_eof): Likewise.
21945 (grub_lua_file_exist): Likewise.
21946 (grub_lua_add_menu): Likewise.
21948 * script/lua/grub_lua.h (isupper): New inline function.
21949 (islower): Likewise.
21950 (ispunct): Likewise.
21951 (isxdigit): Likewise.
21952 (strcspn): Change to normal function.
21953 (strpbkr): New function declaration.
21954 (memchr): Likewise.
21956 * script/lua/grub_main.c (scan_str): New function.
21957 (strcspn): Likewise.
21958 (strpbrk): Likewise.
21959 (memchr): Likewise.
21961 * script/lua/linit.c (lualibs): Enable the string library.
21963 * util/osdetect.lua: New file.
21965 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
21967 * include/grub/i386/linux.h (struct linux_kernel_params): Add
21968 `capabilities' member.
21970 2009-07-02 Pavel Roskin <proski@gnu.org>
21972 * genparttoollist.sh: Add missing newline at the end.
21974 2009-07-01 Pavel Roskin <proski@gnu.org>
21976 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
21978 * util/hostdisk.c (open_device): Remove `const' from
21979 `sysctl_size', as sysctlbyname() can change it (in this case it
21980 doesn't actually happen).
21982 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
21983 using signed long int constants.
21985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
21986 constant to avoid a warning on FreeBSD.
21988 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
21991 * Makefile.in: Install include/grub/machine symlink.
21993 * Makefile.in: When installing symlinks, use "cp -fR", which
21994 works on FreeBSD and MacOSX.
21995 From Yves Blusseau <cl7m42e02@sneakemail.com>
21997 * kern/dl.c (grub_dl_resolve_symbol): Make static.
21998 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22000 * util/misc.c: Move grub_reboot() and grub_halt() ...
22001 * util/grub-emu.c: ... here. Make main_env static.
22002 * include/grub/util/misc.h: Remove main_env.
22004 * kern/mm.c: Use correct format to print size_t.
22006 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22007 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22008 * kern/powerpc/dl.c: Likewise.
22009 * kern/sparc64/dl.c: Likewise.
22010 * kern/x86_64/dl.c: Likewise.
22012 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22014 Fix grub-emu build on sparc64-ieee1275.
22016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22019 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22021 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22022 (grub_reboot, grub_halt): New functions.
22024 * util/i386/pc/misc.c: Delete. Update all users.
22025 * util/sparc64/ieee1275/misc.c: Likewise.
22026 * util/powerpc/ieee1275/misc.c: Likewise.
22028 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22030 * conf/i386.rmk (setjmp_mod_SOURCES)
22031 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22032 * conf/common.rmk (setjmp_mod_SOURCES)
22033 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22034 to use $(target_cpu).
22035 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22036 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22037 * conf/powerpc-ieee1275.rmk: Likewise.
22038 * conf/sparc64-ieee1275.rmk: Likewise.
22040 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22041 $(target_cpu) for kern/$(target_cpu)/dl.c.
22042 * conf/i386-efi.rmk: Likewise.
22043 * conf/i386-ieee1275.rmk: Likewise.
22044 * conf/x86_64-efi.rmk: Likewise.
22045 * conf/i386-coreboot.rmk: Likewise.
22046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22047 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22048 kern/$(target_cpu)/cache.S.
22049 * conf/sparc64-ieee1275.rmk: Likewise.
22051 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22053 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22054 type to `grub_uint8_t', and adjust `padding9' accordingly.
22056 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22058 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22060 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22061 assembly in final jump, using register constraints.
22063 (grub_linux_boot): For text mode, initialize `have_vga' using
22064 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22066 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22067 right before the final jump.
22069 Set `video_mode' to 0x3.
22071 Document initialization of `video_page', `video_mode' and
22074 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22076 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22077 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22078 and set GRUB_LINUX_FLAG_QUIET appropriately.
22080 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22082 Fix build on Debian / sparc.
22084 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22086 2009-06-28 Pavel Roskin <proski@gnu.org>
22088 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22091 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22093 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22095 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22098 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22102 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22103 file can't be opened. grub_file_open() is already supposed to set
22104 grub_errno / grub_errmsg appropriately.
22105 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22107 2009-06-27 Pavel Roskin <proski@gnu.org>
22108 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22110 * include/grub/dl.h: Include grub/elf.h.
22111 (struct grub_dl): Add symtab field.
22112 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22113 GRUB_MODULES_MACHINE_READONLY.
22114 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22115 of the header for read-only modules.
22116 (grub_dl_unload): Free mod->symtab for read-only modules.
22117 * kern/i386/dl.c: Use mod->symtab.
22118 * kern/powerpc/dl.c: Likewise.
22119 * kern/sparc64/dl.c: Likewise.
22120 * kern/x86_64/dl.c: Likewise.
22122 * conf/i386-qemu.rmk: New file.
22123 * kern/i386/qemu/startup.S: Likewise.
22124 * kern/i386/qemu/mmap.c: Likewise.
22125 * boot/i386/qemu/boot.S: Likewise.
22126 * include/grub/i386/qemu/time.h: Likewise.
22127 * include/grub/i386/qemu/serial.h: Likewise.
22128 * include/grub/i386/qemu/kernel.h: Likewise.
22129 * include/grub/i386/qemu/console.h: Likewise.
22130 * include/grub/i386/qemu/boot.h: Likewise.
22131 * include/grub/i386/qemu/init.h: Likewise.
22132 * include/grub/i386/qemu/machine.h: Likewise.
22133 * include/grub/i386/qemu/loader.h: Likewise.
22134 * include/grub/i386/qemu/memory.h: Likewise.
22136 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22137 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22138 [qemu] (pkglib_IMAGES): Add `boot.img'.
22139 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22140 [qemu] (boot_img_FORMAT): New variables.
22141 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22142 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22143 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22144 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22145 [qemu] (kernel_img_FORMAT): New variables.
22147 * configure.ac: Recognise `i386-qemu'.
22149 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22150 (for no compression).
22151 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22152 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22153 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22154 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22157 2009-06-27 Pavel Roskin <proski@gnu.org>
22159 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22161 * efiemu/prepare32.c: Likewise.
22162 * efiemu/prepare64.c: Likewise.
22164 2009-06-26 Pavel Roskin <proski@gnu.org>
22166 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22167 * include/grub/elf.h: Define symbols without "32" or "64" based
22168 on GRUB_TARGET_WORDSIZE.
22169 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22170 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22172 * efiemu/loadcore64.c: Likewise.
22173 * loader/i386/bsd32.c: Likewise.
22174 * loader/i386/bsd64.c: Likewise.
22175 * kern/dl.c: Remove own ELF definitions.
22176 * util/i386/efi/grub-mkimage.c: Likewise.
22178 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22180 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22181 segment 0x0 unconditionally, because the reference generated by
22182 GAS is an absolute address.
22184 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22186 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22187 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22189 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22191 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22192 indexes. Check for -f explicitly.
22193 (search_file): Improve error message.
22194 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22196 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22198 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22199 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22201 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22204 * conf/i386-ieee1275.rmk: Likewise.
22205 * conf/i386-coreboot.rmk: Likewise.
22207 * kern/i386/pc/startup.S (grub_stop): Remove function.
22208 * kern/i386/ieee1275/startup.S: Likewise.
22209 * kern/i386/coreboot/startup.S: Likewise.
22210 * kern/i386/misc.S (grub_stop): New function.
22212 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22214 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22215 * kern/i386/realmode.S (real_to_prot): ... to here.
22217 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22219 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22221 (kernel_elf_SOURCES): Rename to ...
22222 (kernel_img_SOURCES): ... this.
22223 (kernel_elf_HEADERS): Rename to ...
22224 (kernel_img_HEADERS): ... this. Update all users.
22225 (kernel_elf_ASFLAGS): Rename to ...
22226 (kernel_img_ASFLAGS): ... this.
22227 (kernel_elf_CFLAGS): Rename to ...
22228 (kernel_img_CFLAGS): ... this.
22229 (kernel_elf_LDFLAGS): Rename to ...
22230 (kernel_img_LDFLAGS): ... this.
22231 * conf/i386-coreboot.rmk: Likewise.
22232 * conf/powerpc-ieee1275.rmk: Likewise.
22234 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22237 2009-06-21 Pavel Roskin <proski@gnu.org>
22239 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22240 to match nested functions.
22241 * loader/sparc64/ieee1275/linux.c: Likewise.
22243 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22245 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22247 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22248 all i386 platforms.
22250 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22252 Fix asm file handling on ELF, and remove workarounds.
22254 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
22255 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
22256 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
22257 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
22259 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22261 Load BSD ELF modules
22263 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
22264 and loader/i386/bsd64.c
22265 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
22266 (FREEBSD_MODTYPE_ELF_MODULE): New definition
22267 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
22268 (grub_freebsd_load_elfmodule32): New declaration
22269 (grub_freebsd_load_elfmoduleobj64): Likewise
22270 (grub_freebsd_load_elf_meta32): Likewise
22271 (grub_freebsd_load_elf_meta64): Likewise
22272 (grub_freebsd_add_meta): Likewise
22273 (grub_freebsd_add_meta_module): Likewise
22274 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
22275 (grub_freebsd_add_meta_module): Likewise and move module-specific
22276 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
22277 (grub_cmd_freebsd): Add elf-kernel specific parts
22278 based on grub_freebsd_add_meta_module
22279 (grub_cmd_freebsd_module): Add type parsing moved from
22280 grub_freebsd_add_meta_module
22281 (grub_cmd_freebsd_module_elf): New function
22282 (cmd_freebsd_module_elf): New variable
22283 (GRUB_MOD_INIT): Register freebsd_module_elf
22284 * loader/i386/bsd32.c: New file
22285 * loader/i386/bsd64.c: Likewise
22286 * loader/i386/bsdXX.c: Likewise
22287 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
22288 (grub_elf64_load): Likewise
22289 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
22291 (grub_elf64_load_hook_t): Likewise
22293 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
22295 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
22297 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
22298 don't write a menu entry for recovery mode.
22300 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22302 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
22303 after it's no longer needed.
22305 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22307 * include/grub/i386/loader.h (grub_linux_prot_size)
22308 (grub_linux_tmp_addr, grub_linux_real_addr)
22309 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
22310 GRUB_MACHINE_PCBIOS.
22311 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
22312 common grub_util_info() call to ...
22313 (generate_image): ... here.
22314 Fix use of uninitialized memory, comparison of signed with
22315 unsigned integers and memory leak.
22316 Remove bogus module address message.
22318 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22320 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
22322 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
22324 2009-06-19 Pavel Roskin <proski@gnu.org>
22326 * configure.ac: Remove stray AC_MSG_CHECKING.
22328 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
22330 * disk/scsi.c (grub_scsi_open): use continue instead of big if
22332 2009-06-18 Pavel Roskin <proski@gnu.org>
22334 * conf/common.rmk: Add fs_file.mod.
22335 * disk/fs_file.c: New file.
22336 * include/grub/disk.h (enum grub_disk_dev_id): Add
22337 GRUB_DISK_DEVICE_FILE_ID.
22339 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22341 Fix build with Apple's toolchain. Part 2
22343 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
22346 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22348 Fix build with Apple's toolchain. Part 1
22350 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
22352 * configure.ac: remove a leftover AC_MSG_RESULT
22353 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
22356 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22360 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
22361 (decomp_block): initialize ch
22362 use grub_memcpy instead of memcpy
22364 2009-06-17 Pavel Roskin <proski@gnu.org>
22366 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
22367 version, use declarations needed to use vga_text as the startup
22370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
22371 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
22373 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
22374 and grub_at_keyboard_fini(), it's done on module load and
22377 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
22379 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
22380 file can't be found.
22381 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22383 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22385 Fix newline handling
22387 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
22388 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
22389 (grub_script_yylex): don't segfault on unterminated script
22390 newline terminates command and variable
22392 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22394 avoid double grub_adjust_range call. Bug reported by David Simner
22396 * kern/disk.c (grub_disk_write): change to raw disk access before
22399 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
22401 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
22402 spaces, for the benefit of help2man.
22403 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22405 2009-06-16 Pavel Roskin <proski@gnu.org>
22407 * kern/i386/halt.c: Include grub/machine/init.h.
22408 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
22410 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
22412 * util/grub.d/30_os-prober.in: Use ${root} in the generated
22413 drivemap menuentry.
22415 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
22417 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
22420 2009-06-16 Pavel Roskin <proski@gnu.org>
22422 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
22423 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
22424 save %dx, we only need %dl and we never change it.
22425 * boot/i386/pc/cdboot.S: Don't set the root drive.
22426 * boot/i386/pc/pxeboot.S: Likewise.
22427 * include/grub/i386/pc/boot.h: Remove
22428 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
22429 GRUB_BOOT_MACHINE_DRIVE_CHECK.
22430 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
22431 * kern/i386/pc/init.c (make_install_device): Remove references
22432 to grub_root_drive.
22433 * kern/i386/pc/startup.S: Likewise.
22434 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
22436 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22440 * commands/xnu_uuid.c: new file
22441 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
22442 (xnu_uuid_mod_SOURCES): new variable
22443 (xnu_uuid_mod_CFLAGS): likewise
22444 (xnu_uuid_mod_LDFLAGS): likewise
22445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22446 * conf/i386-ieee1275.rmk: likewise
22447 * conf/i386-pc.rmk: likewise
22448 * conf/powerpc-ieee1275.rmk: likewise
22449 * conf/sparc64-ieee1275.rmk: likewise
22450 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
22452 2009-06-16 Pavel Roskin <proski@gnu.org>
22454 * configure.ac: Avoid '==' in test command, it's not portable.
22456 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22460 * commands/probe.c: new file
22461 * conf/common.rmk (pkglib_MODULES): add probe.mod
22462 (probe_mod_SOURCES): new variable
22463 (probe_mod_CFLAGS): likewise
22464 (probe_mod_LDFLAGS): likewise
22465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22466 * conf/i386-ieee1275.rmk: likewise
22467 * conf/i386-pc.rmk: likewise
22468 * conf/powerpc-ieee1275.rmk: likewise
22469 * conf/sparc64-ieee1275.rmk: likewise
22471 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
22473 Fix handling of string like \"hello\" and "a
22476 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
22477 (grub_script_yylex): fix parsing of quoting, escaping and newline
22479 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
22481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
22484 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
22486 * util/grub-mkconfig.in: Fix parsing of --output option.
22488 2009-06-12 Pavel Roskin <proski@gnu.org>
22490 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
22491 genmk.rb don't need to be generated or installed.
22493 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22495 * commands/i386/pc/drivemap_int13h.S: add more comments
22497 2009-06-11 Pavel Roskin <proski@gnu.org>
22499 * Makefile.in (uninstall): Uninstall manuals.
22501 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
22502 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
22503 and update-grub_lib in two places.
22504 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
22506 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22507 a compiler warning.
22509 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22510 `entry_lo' to fix variable shadowing.
22512 2009-06-11 Christian Franke <franke@computer.org>
22514 * kern/misc.c (__enable_execute_stack): Add missing return type
22515 to prevent gcc warning.
22517 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22519 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22521 2009-06-11 Pavel Roskin <proski@gnu.org>
22523 * Makefile.in: Don't rely on any scripts being executable.
22524 Always use $(SHELL) to run shell scripts.
22526 * configure.ac: Always define ___main if using -nostdlib. This
22527 fixes tests on Cygwin.
22529 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22533 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22534 is in bytes and not in blocks
22536 2009-06-11 Pavel Roskin <proski@gnu.org>
22538 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
22541 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22543 * util/grub.d/30_os-prober.in: Fix a comment. Source
22544 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
22545 to set the root device. Place drivemap command in the generated
22548 2009-06-11 Pavel Roskin <proski@gnu.org>
22550 * configure.ac: Remove host_m32. Issues with 64-bit utilities
22551 have long been resolved.
22553 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
22555 * util/grub.d/10_linux.in: Capitalise "Linux".
22557 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
22559 2009-06-11 Pavel Roskin <proski@gnu.org>
22561 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
22562 fix a gcc warning and ensure that the function won't ever exit.
22564 * kern/i386/ieee1275/init.c: Add missing prototype for
22565 grub_stop_floppy().
22567 * loader/ieee1275/multiboot2.c [__i386__]: Include
22568 grub/cpu/multiboot.h.
22570 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
22571 casts to short - they are not portable and cause warnings. Fix
22572 use of uninitialized values in input_buf. Use ARRAY_SIZE.
22574 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
22578 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
22580 (grub_get_root_biosnumber_saved): new variable
22581 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
22582 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
22583 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
22584 %dx after the call if necessary
22585 * conf/common.rmk (pkglib_MODULES): remove boot.mod
22586 (boot_mod_SOURCES): remove
22587 (boot_mod_CFLAGS): remove
22588 (boot_mod_LDFLAGS): remove
22589 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
22590 (boot_mod_SOURCES): new variable
22591 (boot_mod_CFLAGS): likewise
22592 (boot_mod_LDFLAGS): likewise
22593 * conf/i386-efi.rmk: likewise
22594 * conf/i386-ieee1275.rmk: likewise
22595 * conf/i386-pc.rmk: likewise
22596 * conf/powerpc-ieee1275.rmk: likewise
22597 * conf/sparc64-ieee1275.rmk: likewise
22598 * conf/x86_64-efi.rmk: likewise
22599 * include/grub/i386/pc/biosnum.h: new file
22600 * lib/i386/pc/biosnum.c: likewise
22601 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
22602 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
22603 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
22605 2009-06-10 Pavel Roskin <proski@gnu.org>
22607 * io/gzio.c (test_header): Don't reuse one buffer for all data.
22608 Use separate variables. Read only the file size at the end, but
22609 not the checksum that we don't use.
22611 * kern/file.c (grub_file_read): Use void pointer for the buffer.
22612 Adjust all callers.
22614 * kern/ieee1275/openfw.c: Remove libc includes.
22615 * kern/ieee1275/cmain.c: Likewise.
22616 * include/grub/ieee1275/ieee1275.h: Likewise.
22618 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
22621 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22623 * Makefile.in: Remove all trailing whitespace.
22624 * conf/i386-pc.rmk: Likewise.
22625 * conf/powerpc-ieee1275.rmk: Likewise.
22626 * conf/sparc64-ieee1275.rmk: Likewise.
22627 * docs/grub.texi: Likewise.
22628 * docs/texinfo.tex: Likewise.
22629 * disk/fs_uuid.c: Likewise.
22630 * disk/lvm.c: Likewise.
22631 * disk/scsi.c: Likewise.
22632 * disk/ata.c: Likewise.
22633 * disk/ieee1275/ofdisk.c: Likewise.
22634 * disk/i386/pc/biosdisk.c: Likewise.
22635 * disk/host.c: Likewise.
22636 * disk/raid.c: Likewise.
22637 * disk/efi/efidisk.c: Likewise.
22638 * disk/usbms.c: Likewise.
22639 * disk/memdisk.c: Likewise.
22640 * disk/loopback.c: Likewise.
22641 * kern/powerpc/dl.c: Likewise.
22642 * kern/device.c: Likewise.
22643 * kern/dl.c: Likewise.
22644 * kern/sparc64/dl.c: Likewise.
22645 * kern/ieee1275/ieee1275.c: Likewise.
22646 * kern/term.c: Likewise.
22647 * kern/fs.c: Likewise.
22648 * kern/i386/dl.c: Likewise.
22649 * kern/i386/pc/startup.S: Likewise.
22650 * kern/i386/pc/init.c: Likewise.
22651 * kern/i386/pc/mmap.c: Likewise.
22652 * kern/i386/pc/lzo1x.S: Likewise.
22653 * kern/i386/ieee1275/init.c: Likewise.
22654 * kern/i386/realmode.S: Likewise.
22655 * kern/i386/tsc.c: Likewise.
22656 * kern/partition.c: Likewise.
22657 * kern/corecmd.c: Likewise.
22658 * kern/file.c: Likewise.
22659 * kern/efi/efi.c: Likewise.
22660 * kern/efi/init.c: Likewise.
22661 * kern/efi/mm.c: Likewise.
22662 * kern/main.c: Likewise.
22663 * kern/err.c: Likewise.
22664 * kern/env.c: Likewise.
22665 * kern/disk.c: Likewise.
22666 * kern/generic/millisleep.c: Likewise.
22667 * kern/generic/rtc_get_time_ms.c: Likewise.
22668 * kern/misc.c: Likewise.
22669 * kern/parser.c: Likewise.
22670 * genmk.rb: Likewise.
22671 * configure.ac: Likewise.
22672 * boot/i386/pc/diskboot.S: Likewise.
22673 * boot/i386/pc/pxeboot.S: Likewise.
22674 * boot/i386/pc/boot.S: Likewise.
22675 * boot/i386/pc/lnxboot.S: Likewise.
22676 * boot/i386/pc/cdboot.S: Likewise.
22677 * parttool/pcpart.c: Likewise.
22678 * video/readers/tga.c: Likewise.
22679 * video/video.c: Likewise.
22680 * video/bitmap.c: Likewise.
22681 * lib/envblk.c: Likewise.
22682 * lib/i386/setjmp.S: Likewise.
22683 * fs/xfs.c: Likewise.
22684 * fs/afs.c: Likewise.
22685 * fs/fat.c: Likewise.
22686 * fs/ntfs.c: Likewise.
22687 * fs/udf.c: Likewise.
22688 * fs/affs.c: Likewise.
22689 * fs/iso9660.c: Likewise.
22690 * fs/hfs.c: Likewise.
22691 * fs/fshelp.c: Likewise.
22692 * fs/ext2.c: Likewise.
22693 * fs/jfs.c: Likewise.
22694 * fs/reiserfs.c: Likewise.
22695 * fs/hfsplus.c: Likewise.
22696 * fs/minix.c: Likewise.
22697 * fs/cpio.c: Likewise.
22698 * fs/sfs.c: Likewise.
22699 * fs/ufs.c: Likewise.
22700 * efiemu/prepare.c: Likewise.
22701 * efiemu/loadcore_common.c: Likewise.
22702 * efiemu/runtime/efiemu.sh: Likewise.
22703 * efiemu/runtime/efiemu.S: Likewise.
22704 * efiemu/runtime/efiemu.c: Likewise.
22705 * efiemu/pnvram.c: Likewise.
22706 * efiemu/main.c: Likewise.
22707 * efiemu/i386/pc/cfgtables.c: Likewise.
22708 * efiemu/i386/loadcore64.c: Likewise.
22709 * efiemu/i386/loadcore32.c: Likewise.
22710 * efiemu/loadcore.c: Likewise.
22711 * efiemu/symbols.c: Likewise.
22712 * efiemu/mm.c: Likewise.
22713 * include/grub/autoefi.h: Likewise.
22714 * include/grub/datetime.h: Likewise.
22715 * include/grub/term.h: Likewise.
22716 * include/grub/hfs.h: Likewise.
22717 * include/grub/lvm.h: Likewise.
22718 * include/grub/i386/tsc.h: Likewise.
22719 * include/grub/i386/linux.h: Likewise.
22720 * include/grub/i386/xnu.h: Likewise.
22721 * include/grub/i386/efiemu.h: Likewise.
22722 * include/grub/i386/pc/biosdisk.h: Likewise.
22723 * include/grub/i386/pc/memory.h: Likewise.
22724 * include/grub/i386/pc/vbe.h: Likewise.
22725 * include/grub/parttool.h: Likewise.
22726 * include/grub/video.h: Likewise.
22727 * include/grub/memory.h: Likewise.
22728 * include/grub/fs.h: Likewise.
22729 * include/grub/partition.h: Likewise.
22730 * include/grub/xnu.h: Likewise.
22731 * include/grub/efi/api.h: Likewise.
22732 * include/grub/efi/pe32.h: Likewise.
22733 * include/grub/efi/memory.h: Likewise.
22734 * include/grub/multiboot.h: Likewise.
22735 * include/grub/usbdesc.h: Likewise.
22736 * include/grub/multiboot2.h: Likewise.
22737 * include/grub/acpi.h: Likewise.
22738 * include/grub/efiemu/efiemu.h: Likewise.
22739 * include/grub/disk.h: Likewise.
22740 * include/grub/ieee1275/ieee1275.h: Likewise.
22741 * include/grub/net.h: Likewise.
22742 * include/grub/machoload.h: Likewise.
22743 * include/grub/macho.h: Likewise.
22744 * include/multiboot.h: Likewise.
22745 * genmoddep.awk: Likewise.
22746 * normal/main.c: Likewise.
22747 * normal/menu_entry.c: Likewise.
22748 * normal/menu_viewer.c: Likewise.
22749 * normal/completion.c: Likewise.
22750 * normal/cmdline.c: Likewise.
22751 * normal/misc.c: Likewise.
22752 * normal/datetime.c: Likewise.
22753 * bus/usb/usbtrans.c: Likewise.
22754 * bus/usb/ohci.c: Likewise.
22755 * bus/usb/uhci.c: Likewise.
22756 * bus/usb/usb.c: Likewise.
22757 * mmap/efi/mmap.c: Likewise.
22758 * mmap/i386/pc/mmap_helper.S: Likewise.
22759 * mmap/i386/pc/mmap.c: Likewise.
22760 * mmap/i386/mmap.c: Likewise.
22761 * mmap/i386/uppermem.c: Likewise.
22762 * mmap/mmap.c: Likewise.
22763 * commands/acpi.c: Likewise.
22764 * commands/echo.c: Likewise.
22765 * commands/blocklist.c: Likewise.
22766 * commands/loadenv.c: Likewise.
22767 * commands/usbtest.c: Likewise.
22768 * commands/boot.c: Likewise.
22769 * commands/parttool.c: Likewise.
22770 * commands/search.c: Likewise.
22771 * commands/cat.c: Likewise.
22772 * commands/i386/pc/play.c: Likewise.
22773 * commands/i386/pc/drivemap.c: Likewise.
22774 * commands/i386/pc/vbeinfo.c: Likewise.
22775 * commands/i386/pc/acpi.c: Likewise.
22776 * commands/i386/pc/vbetest.c: Likewise.
22777 * commands/ls.c: Likewise.
22778 * commands/cmp.c: Likewise.
22779 * commands/test.c: Likewise.
22780 * commands/efi/acpi.c: Likewise.
22781 * commands/gptsync.c: Likewise.
22782 * commands/help.c: Likewise.
22783 * partmap/amiga.c: Likewise.
22784 * partmap/apple.c: Likewise.
22785 * partmap/acorn.c: Likewise.
22786 * partmap/pc.c: Likewise.
22787 * partmap/sun.c: Likewise.
22788 * partmap/gpt.c: Likewise.
22789 * script/sh/lexer.c: Likewise.
22790 * script/sh/function.c: Likewise.
22791 * font/font.c: Likewise.
22792 * font/font_cmd.c: Likewise.
22793 * loader/powerpc/ieee1275/linux.c: Likewise.
22794 * loader/efi/chainloader.c: Likewise.
22795 * loader/multiboot_loader.c: Likewise.
22796 * loader/macho.c: Likewise.
22797 * loader/i386/multiboot.c: Likewise.
22798 * loader/i386/linux.c: Likewise.
22799 * loader/i386/pc/linux.c: Likewise.
22800 * loader/i386/pc/multiboot2.c: Likewise.
22801 * loader/i386/pc/chainloader.c: Likewise.
22802 * loader/i386/pc/xnu.c: Likewise.
22803 * loader/i386/bsd_trampoline.S: Likewise.
22804 * loader/i386/efi/linux.c: Likewise.
22805 * loader/i386/multiboot_elfxx.c: Likewise.
22806 * loader/i386/bsd_helper.S: Likewise.
22807 * loader/i386/bsd.c: Likewise.
22808 * loader/i386/linux_trampoline.S: Likewise.
22809 * loader/i386/xnu_helper.S: Likewise.
22810 * loader/i386/xnu.c: Likewise.
22811 * loader/i386/bsd_pagetable.c: Likewise.
22812 * loader/i386/multiboot_helper.S: Likewise.
22813 * loader/xnu.c: Likewise.
22814 * loader/xnu_resume.c: Likewise.
22815 * io/gzio.c: Likewise.
22816 * term/efi/console.c: Likewise.
22817 * term/terminfo.c: Likewise.
22818 * term/ieee1275/ofconsole.c: Likewise.
22819 * term/i386/pc/serial.c: Likewise.
22820 * term/i386/pc/vesafb.c: Likewise.
22821 * term/i386/pc/vga.c: Likewise.
22822 * term/usb_keyboard.c: Likewise.
22823 * term/gfxterm.c: Likewise.
22824 * aclocal.m4: Likewise.
22825 * util/lvm.c: Likewise.
22826 * util/grub.d/30_os-prober.in: Likewise.
22827 * util/grub.d/10_hurd.in: Likewise.
22828 * util/console.c: Likewise.
22829 * util/grub-macho2img.c: Likewise.
22830 * util/grub-probe.c: Likewise.
22831 * util/hostfs.c: Likewise.
22832 * util/i386/pc/grub-mkimage.c: Likewise.
22833 * util/i386/pc/grub-setup.c: Likewise.
22834 * util/i386/efi/grub-mkimage.c: Likewise.
22835 * util/grub-mkconfig.in: Likewise.
22836 * util/raid.c: Likewise.
22837 * util/resolve.c: Likewise.
22838 * util/grub-mkdevicemap.c: Likewise.
22839 * util/grub-emu.c: Likewise.
22840 * util/getroot.c: Likewise.
22841 * util/hostdisk.c: Likewise.
22842 * util/usb.c: Likewise.
22843 * util/grub-editenv.c: Likewise.
22844 * util/misc.c: Likewise.
22846 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22848 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
22849 `genparttoollist.sh'.
22850 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
22851 Add `*.sh' to the list find searches for and change `mdate.sh'
22854 2009-06-10 Pavel Roskin <proski@gnu.org>
22856 * include/grub/multiboot2.h: Provide compatibility defines for
22858 * include/multiboot2.h: Include stdint.h only if needed, using
22860 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
22862 * loader/ieee1275/multiboot2.c: Likewise.
22863 * loader/multiboot2.c: Likewise.
22864 * loader/multiboot_loader.c: Likewise.
22866 * configure.ac: Use -nostdlib when probing for the target. It
22867 should not be required to have libc for the target.
22869 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
22870 they fail without libc headers for the target.
22871 * include/grub/powerpc/libgcc.h: Use weak attribute for all
22873 * include/grub/sparc64/libgcc.h: Likewise. Don't use
22874 preprocessor conditionals.
22876 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
22877 build system doesn't need to be aware of the tar.c internals.
22879 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
22881 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
22883 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
22885 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
22886 disk limit to 26 for IDE, Virtio, Xen and SCSI.
22888 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
22890 * util/i386/pc/grub-install.in: Change the error message if UUIDs
22891 aren't available if ata.mod gets used.
22893 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
22895 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
22896 initialising controller.
22897 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22899 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22901 * util/i386/pc/grub-install.in: Add a parameter --disk-module
22902 to choose between ata and biosdisk module on i386-pc.
22904 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
22906 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
22907 Subclass and Programming Interface fields in terms of the 3 byte
22908 Class Code register.
22909 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22911 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
22912 interface is OHCI. Add grub_dprintf for symmetry with
22914 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
22915 interface is UHCI. Add interf variable for programming
22916 interface. Print interface with class/subclass.
22918 * bus/usb/ohci.c: Set interf with correct field.
22920 * bus/usb/uhci.c: Remove unneeded doubled lines.
22921 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
22922 Remove whitespace inside comment.
22924 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
22926 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
22927 as fallback an equivalent option without depth.
22929 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22931 Not fail if unable to retrieve C/H/S on LBA disks
22933 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
22934 if unable to retrieve C/H/S on LBA disks
22936 2009-06-08 Pavel Roskin <proski@gnu.org>
22938 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
22941 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22943 * Makefile.in (uninstall): Remove all $lib_DATA files.
22945 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22947 Bugfix: install on partitionless device
22949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
22952 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22954 * Makefile.in (uninstall): Remove all $include_DATA files.
22956 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22958 * commands/true.c: New file. Implement the true and false commands.
22959 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
22960 (true_mod_SOURCES): New variable.
22961 (true_mod_CFLAGS): Likewise.
22962 (true_mod_LDFLAGS): Likewise.
22964 2009-06-05 Colin D Bennett <colin@gibibit.com>
22966 Optimized font character lookup using binary search instead of linear
22967 search. Fonts now are required to have the character index ordered by
22970 * font/font.c (load_font_index): Verify that fonts have ordered
22972 (find_glyph): Use binary search instead of linear search to find a
22973 character in a font.
22975 2009-06-05 Michael Scherer <misc@mandriva.org>
22977 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
22978 uses case sensitive btree.
22979 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
22980 only for case insensitive filesystems.
22982 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
22984 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
22985 * conf/common.rmk (search_mod_CFLAGS): likewise
22987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22989 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
22990 compensate a compiler bug
22992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22994 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
22997 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22999 Definitions for creating asm symbols with Apple's CC
23001 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23002 [APPLE_CC] (VARIABLE): likewise
23004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23006 Disable lnxboot.img when compiled
23009 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23010 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23011 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23012 [! APPLE_CC] (CODE_LENG): skip
23013 [! APPLE_CC] (setup_sects): likewise
23014 [! APPLE_CC]: skip filling
23016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23018 Address in trampolines based on 32-bit registers when compiled
23021 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23023 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23027 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23029 * kern/misc.c [APPLE_CC] (memcpy): new function
23030 [APPLE_CC] (memmove): likewise
23031 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23032 (memcpy): define alias conditionally on !APPLE_CC
23035 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23036 APPLE_CC are defined
23037 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23038 (grub_assert_fail): make prototype conditional
23040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23042 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23044 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23046 (CLEANFILES): add grub-macho2img
23047 (grub_macho2img_SOURCES): new variable
23048 * kern/i386/pc/startup.S (bss_start): new variable
23049 (bss_end): likewise
23050 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23051 * util/grub-macho2img.c: new file
23053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23055 Use objconv when compiling with Apple's CC
23057 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23058 (efiemu64.o): likewise
23059 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23060 when compiling with Apple's CC
23061 (efiemu64_s.o): likewise
23062 * configure.ac: check for objconv when compiling with Apple's CC
23063 * genmk.rb: use objconv for modules when compiled with Apple's CC
23065 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23067 Define segment as well as section when compiling with
23070 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23071 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23072 (efiemu_convert_pointer): likewise
23073 (efiemu_set_virtual_address_map): likewise
23074 (efiemu_convert_pointer): likewise
23075 (efiemu_getcrc32): likewise
23076 (init_crc32_table): likewise
23077 (reflect): likewise
23078 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23079 (GRUB_MOD_DEP): likewise
23081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23083 Allow a compilation without -mcmodel=large
23085 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23086 when compiled without -mcmodel=large
23087 (filter_memory_map): remove memory post 4 GiB when compiled
23088 without -mcmodel=large
23089 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23090 TARGET_CFLAGS when -mcmodel=large isn't supported
23092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23094 Remove nested functions in efiemu core
23096 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23098 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23100 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23102 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23104 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23106 (grub_cpu_is_tsc_supported): likewise
23107 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23111 Absolute addressing through constant with Apple's cc
23113 * kern/i386/pc/startup.S: Define necessary constants
23114 and address through it when using ABS with Apple's CC
23115 * boot/i386/pc/diskboot.S: likewise
23116 * boot/i386/pc/boot.S: likewise
23117 * boot/i386/pc/lnxboot.S: likewise
23118 * boot/i386/pc/cdboot.S: likewise
23119 * mmap/i386/pc/mmap_helper.S: likewise
23120 * commands/i386/pc/drivemap_int13h.S: likewise
23122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23124 Check if compiler is apple cc
23126 * Makefile.in (ASFLAGS): new variable
23127 (TARGET_ASFLAGS): likewise
23128 (TARGET_MODULE_FORMAT): likewise
23129 (TARGET_APPLE_CC): likewise
23130 (OBJCONV): likewise
23131 (TARGET_IMG_CFLAGS): likewise
23132 (TARGET_CPPFLAGS): add includedir
23133 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23134 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23135 Check for linker script only if compiler isn't Apple's CC
23136 (TARGET_MODULE_FORMAT): set
23137 (TARGET_APPLE_CC): likewise
23138 (TARGET_ASFLAGS): likewise
23139 (ASFLAGS): likewise
23140 Check for objcopy only if compiler isn't Apple's CC
23141 Check for BSS symbol only if compiler isn't Apple's CC
23142 * genmk.rb: adapt nm options if we use Apple's utils
23143 * aclocal.m4 (grub_apple_cc): new test
23144 (grub_apple_target_cc): likewise
23146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23148 Simplify sed expressions and improve awk
23150 * Makefile.in (install-local): simplify sed expression
23151 * gencmdlist.sh: likewise
23152 * genmoddep.awk: avoid adding module as a dependency of itself
23154 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23156 Add missing start symbols
23158 * boot/i386/pc/boot.S: add start
23159 * boot/i386/pc/pxeboot.S: likewise
23161 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23163 Fix wrong assumptions with grub-mkimage on EFI
23165 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23166 (relocate_addresses): consider both r_addend and value at offset
23167 (make_mods_section): zerofill modinfo and header
23168 (convert_elf): write prefix here
23170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23172 Use .asciz instead of .string
23174 * i386/pc/diskboot.S: use .asciz instead of .string
23175 * i386/pc/boot.S: likewise
23176 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23177 (GRUB_MOD_NAME): likewise
23179 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23183 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23184 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23185 (grub_video_setup): remove
23186 (grub_video_set_mode): new prototype
23187 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23189 (linux_vesafb_res): compile only on PCBIOS
23190 (grub_linux_boot): support gfxpayload
23191 * loader/i386/pc/xnu.c (video_hook): new function
23192 (grub_xnu_set_video): support gfxpayload
23193 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23194 (DEFAULT_VIDEO_HEIGHT): likewise
23195 (DEFAULT_VIDEO_FLAGS): likewise
23196 (DEFAULT_VIDEO_MODE): new definition
23197 (video_hook): new function
23198 (grub_gfxterm_init): use grub_video_set_mode
23199 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23201 * video/video.c (grub_video_setup): removed
23202 (grub_video_set_mode): new function based on grub_gfxterm_init and
23205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23207 Avoid calling biosdisk in drivemap
23209 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23210 (revparse_biosdisk): likewise
23211 (list_mappings): derive name from id directly
23212 (grub_cmd_drivemap): use tryparse_diskstring
23214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23218 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23219 (grub_lexer_param): add tokenonhold
23220 (grub_script_create_cmdline): remove cmdline. All callers updated
23221 (grub_script_function_create): make functionname
23222 grub_script_arg. All callers updated
23223 (grub_script_execute_argument_to_string): new prototype
23224 * kern/parser.c (state_transitions): reorder
23225 (grub_parser_cmdline_state): fix a bug and make more compact
23226 * script/sh/execute.c (grub_script_execute_argument_to_string):
23228 (grub_script_execute_cmdline): use new format
23229 * script/sh/function.c (grub_script_function_create): make functionname
23230 grub_script_arg. All callers updated
23231 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
23232 (grub_script_yylex): remove
23233 (grub_script_yylex2): renamed to ...
23234 (grub_script_yylex): ...renamed
23235 parse the expressions like a${b}c
23236 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
23237 (GRUB_PARSER_TOKEN_VAR): remove
23238 (GRUB_PARSER_TOKEN_NAME): likewise
23239 ("if"): declare as typeless
23240 ("while"): likewise
23241 ("function"): likewise
23246 (argument): likewise
23247 (script): accept empty scripts and make exit on error
23248 (arguments): use GRUB_PARSER_TOKEN_ARG
23249 (function): likewise
23250 (command): move error handling to script
23251 (menuentry): move grub_script_lexer_ref before
23252 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
23253 argument. All callers updated
23255 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23257 Prevent GRUB from probing floppies during boot.
23259 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
23260 * commands/search.c (options): Add --no-floppy.
23261 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
23262 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
23263 --no-floppy when searching for UUIDs.
23265 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23267 Simplify the code duplication in commands/search.c.
23269 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23270 (search_fs): ... this. Update all users.
23272 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23274 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23276 2009-05-28 Pavel Roskin <proski@gnu.org>
23278 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23279 Remove the original symlink explicitly.
23281 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
23282 just one slash. That's how grub_fshelp_find_file() does it.
23284 2009-05-26 Pavel Roskin <proski@gnu.org>
23286 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
23289 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
23292 2009-05-25 Christian Franke <franke@computer.org>
23294 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
23296 (grub_atapi_identify): Add wait after drive select.
23297 (grub_ata_identify): Do more strict status register check before
23298 calling grub_atapi_identify (). Suppress error message if status
23299 register is 0x00 after command failure. Add status register
23300 check after PIO read to avoid bogus identify due to stuck DRQ.
23301 Thanks to Pavel Roskin for testing.
23302 (grub_device_initialize): Remove unsafe status register check.
23303 Thanks to 'phcoder' for problem report and patch.
23304 Prevent sign extension in debug message.
23306 2009-05-23 Colin D Bennett <colin@gibibit.com>
23308 Cleaned up `include/grub/normal.h'. Grouped prototypes by
23309 definition file, and functions defined in `normal/menu.c' have had
23310 their prototypes moved to `include/grub/menu.h' for consistency.
23312 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
23314 (grub_menu_get_entry): Likewise.
23315 (grub_menu_get_timeout): Likewise.
23316 (grub_menu_set_timeout): Likewise.
23317 (grub_menu_execute_entry): Likewise.
23318 (grub_menu_execute_with_fallback): Likewise.
23319 (grub_menu_entry_run): Likewise.
23321 * include/grub/normal.h: Re-ordered and grouped function
23322 prototypes by file that the function is defined in.
23323 (grub_menu_execute_callback): Removed; moved to menu.h.
23324 (grub_menu_get_entry): Likewise.
23325 (grub_menu_get_timeout): Likewise.
23326 (grub_menu_set_timeout): Likewise.
23327 (grub_menu_execute_entry): Likewise.
23328 (grub_menu_execute_with_fallback): Likewise.
23329 (grub_menu_entry_run): Likewise.
23330 (grub_menu_addentry): Renamed from this ...
23331 (grub_normal_add_menu_entry): ... to this.
23333 * normal/main.c (grub_menu_addentry): Renamed from this ...
23334 (grub_normal_add_menu_entry): ... to this.
23336 * script/sh/execute.c (grub_script_execute_menuentry): Update
23337 reference to renamed grub_menu_addentry function.
23339 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
23341 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
23343 2009-05-22 Pavel Roskin <proski@gnu.org>
23345 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
23346 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
23347 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
23348 compiling for the i386 targets, but not for the utilities.
23350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
23352 (grub_root_drive): Likewise.
23353 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
23355 (grub_root_drive): Change size to byte.
23356 (grub_start_addr): Remove.
23357 (grub_end_addr): Likewise.
23358 (grub_apm_bios_info): Likewise.
23360 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
23362 * normal/i386: Remove.
23363 * normal/powerpc: Likewise.
23364 * normal/sparc64: Likewise.
23365 * normal/x86_64: Likewise.
23367 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
23369 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
23370 * loader/i386/linux_trampoline.S: Fix indentation
23371 * loader/i386/xnu_helper.S: Likewise
23373 2009-05-18 Colin D Bennett <colin@gibibit.com>
23375 Display error messages when parsing a Lua statement fails.
23376 Previously, executing a syntactically invalid statement like
23377 ")foo" or "bar;" would silently fail.
23379 * script/lua/grub_main.c (handle_lua_error): New function.
23380 (grub_lua_parse_line): Improved reporting of Lua parser and
23383 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23385 Remove -Werror which causes build to fail on some systems
23387 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
23388 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
23389 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
23391 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23393 trampoline for linux on 64-bit platform
23395 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
23396 loader/i386/efi/linux_trampoline.S
23397 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
23399 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
23401 * loader/i386/linux_trampoline.S: moved here
23402 * loader/i386/efi/linux.c (allocate_pages): reserve space for
23404 (jumpvector): removed
23405 (grub_linux_trampoline_start): new declaration
23406 (grub_linux_trampoline_end): likewise
23407 (grub_linux_boot): use trampoline when on 64-bit platform
23408 * loader/i386/linux.c: likewise
23410 2009-05-16 Pavel Roskin <proski@gnu.org>
23412 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
23413 const to avoid a warning.
23414 (grub_lua_setenv): Likewise.
23415 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
23416 lmsg to fix a warning.
23418 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23420 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
23421 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23422 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
23423 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23424 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23425 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23426 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23427 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23429 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23431 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
23433 2009-05-16 Bean <bean123ch@gmail.com>
23435 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
23436 (lua_mod_SOURCES): New variable.
23437 (lua_mod_CFLAGS): Likewise.
23438 (lua_mod_LDFLAGS): Likewise.
23440 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
23441 (setjmp_mod_SOURCES): New variable.
23442 (setjmp_mod_CFLAGS): Likewise.
23443 (setjmp_LDFLAGS): Likewise.
23445 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
23446 (setjmp_mod_SOURCES): New variable.
23447 (setjmp_mod_CFLAGS): Likewise.
23448 (setjmp_LDFLAGS): Likewise.
23450 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23451 (setjmp_mod_SOURCES): New variable.
23452 (setjmp_mod_CFLAGS): Likewise.
23453 (setjmp_LDFLAGS): Likewise.
23455 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23456 (setjmp_mod_SOURCES): New variable.
23457 (setjmp_mod_CFLAGS): Likewise.
23458 (setjmp_LDFLAGS): Likewise.
23460 * normal/i386/setjmp.S: Moved from here ...
23461 * lib/i386/setjmp.S: ... Moved here
23462 * normal/x86_64/setjmp.S: Moved from here ...
23463 * lib/x86_64/setjmp.S: ... Moved here
23464 * normal/powerpc/setjmp.S: Moved from here ...
23465 * lib/powerpc/setjmp.S: ... Moved here
23466 * normal/sparc64/setjmp.S: Moved from here ...
23467 * lib/sparc64/setjmp.S: ... Moved here
23469 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
23470 returns_twice in mingw.
23472 * script/lua/grub_lib.c: New file.
23473 * script/lua/grub_lib.h: Likewise.
23474 * script/lua/grub_lua.h: Likewise.
23475 * script/lua/grub_main.c: Likewise.
23476 * script/lua/lapi.c: Likewise.
23477 * script/lua/lapi.h: Likewise.
23478 * script/lua/lauxlib.c: Likewise.
23479 * script/lua/lauxlib.h: Likewise.
23480 * script/lua/lbaselib.c: Likewise.
23481 * script/lua/lcode.c: Likewise.
23482 * script/lua/lcode.h: Likewise.
23483 * script/lua/ldblib.c: Likewise.
23484 * script/lua/ldebug.c: Likewise.
23485 * script/lua/ldebug.h: Likewise.
23486 * script/lua/ldo.c: Likewise.
23487 * script/lua/ldo.h: Likewise.
23488 * script/lua/ldump.c: Likewise.
23489 * script/lua/lfunc.c: Likewise.
23490 * script/lua/lfunc.h: Likewise.
23491 * script/lua/lgc.c: Likewise.
23492 * script/lua/lgc.h: Likewise.
23493 * script/lua/linit.c: Likewise.
23494 * script/lua/liolib.c: Likewise.
23495 * script/lua/llex.c: Likewise.
23496 * script/lua/llex.h: Likewise.
23497 * script/lua/llimits.h: Likewise.
23498 * script/lua/lmathlib.c: Likewise.
23499 * script/lua/lmem.c: Likewise.
23500 * script/lua/lmem.h: Likewise.
23501 * script/lua/loadlib.c: Likewise.
23502 * script/lua/lobject.c: Likewise.
23503 * script/lua/lobject.h: Likewise.
23504 * script/lua/lopcodes.c: Likewise.
23505 * script/lua/lopcodes.h: Likewise.
23506 * script/lua/loslib.c: Likewise.
23507 * script/lua/lparser.c: Likewise.
23508 * script/lua/lparser.h: Likewise.
23509 * script/lua/lstate.c: Likewise.
23510 * script/lua/lstate.h: Likewise.
23511 * script/lua/lstring.c: Likewise.
23512 * script/lua/lstring.h: Likewise.
23513 * script/lua/lstrlib.c: Likewise.
23514 * script/lua/ltable.c: Likewise.
23515 * script/lua/ltable.h: Likewise.
23516 * script/lua/ltablib.c: Likewise.
23517 * script/lua/ltm.c: Likewise.
23518 * script/lua/ltm.h: Likewise.
23519 * script/lua/lua.h: Likewise.
23520 * script/lua/luaconf.h: Likewise.
23521 * script/lua/lualib.h: Likewise.
23522 * script/lua/lundump.c: Likewise.
23523 * script/lua/lundump.h: Likewise.
23524 * script/lua/lvm.c: Likewise.
23525 * script/lua/lvm.h: Likewise.
23526 * script/lua/lzio.c: Likewise.
23527 * script/lua/lzio.h: Likewise.
23529 2009-05-16 Bean <bean123ch@gmail.com>
23531 * include/grub/kernel.h (grub_module_header_types): Add type
23534 * kern/main.c (grub_load_config): New function.
23535 (grub_main): Call grub_load_config to read boot config.
23537 * grub-mkimage (generate_image): New parameter config_path.
23538 (options): New option --config.
23539 (main): Parse --config option, and pass it to generate_image.
23541 2009-05-14 Christian Franke <franke@computer.org>
23543 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
23544 This fixes build on Cygwin.
23546 2009-05-14 Pavel Roskin <proski@gnu.org>
23548 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
23549 jump. This saves two bytes, so the typical case of 2 swapped
23550 drives would fit 32 bytes.
23552 2009-05-13 Pavel Roskin <proski@gnu.org>
23554 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
23555 grub_uint32_t to avoid a warning.
23557 * loader/i386/linux.c (allocate_pages): When assigning
23558 real_mode_mem, cast through grub_size_t to fix a warning. The
23559 code already makes sure that the value would fit a pointer.
23560 (grub_linux_setup_video): Cast render_target->data to
23561 grub_size_t to fix a warning.
23563 2009-05-13 Javier Martín <lordhabbit@gmail.com>
23565 * commands/i386/pc/drivemap.c: New file - implement drivemap
23567 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
23568 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
23570 2009-05-13 Pavel Roskin <proski@gnu.org>
23572 * util/i386/pc/grub-setup.c (setup): Remove unused variable
23573 embedding_area_exists.
23575 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
23577 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
23578 it easier to understand / work with.
23579 Improve warning messages for cases where there's no embedding area,
23580 or when it is too small (or core.img too large).
23582 2009-05-13 Pavel Roskin <proski@gnu.org>
23584 * loader/i386/pc/multiboot2.c: Add necessary includes for
23585 grub_multiboot2_real_boot().
23587 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
23588 PX record is always little-endian. We only need the lower 2
23591 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
23592 facilitate code reuse.
23593 (grub_cpio_mount): Use "struct head", not a char buffer. This
23594 fixes a warning reported by gcc 4.4.
23596 * kernel/disk.c (grub_disk_read): Use void pointer for the
23598 (grub_disk_write): Use const void pointer for the buffer.
23599 Adjust all callers. Remove unnecessary casts.
23601 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
23603 * util/i386/pc/grub-install.in: Update copyright year.
23605 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23609 * commands/gptsync.c: new file
23610 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
23611 (gptsync_mod_SOURCES): new variable
23612 (gptsync_mod_CFLAGS): likewise
23613 (gptsync_mod_LDFLAGS): likewise
23614 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
23616 (GRUB_PC_PARTITION_TYPE_HFS): likewise
23617 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
23618 * conf/i386-ieee1275.rmk: likewise
23619 * conf/i386-pc.rmk: likewise
23620 * conf/powerpc-ieee1275.rmk: likewise
23622 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23626 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
23627 (grub_dl_ref): likewise
23629 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
23631 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
23632 split in two functions (one for msdos and one for gpt).
23634 2009-05-08 Pavel Roskin <proski@gnu.org>
23636 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
23639 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
23640 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
23641 Initialize them with -1. Add sanity check for bad1. Eliminate
23644 2009-05-08 David S. Miller <davem@davemloft.net>
23646 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
23648 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
23650 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
23653 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
23655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23656 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
23658 2009-05-05 David S. Miller <davem@davemloft.net>
23660 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
23662 2009-05-05 Pavel Roskin <proski@gnu.org>
23664 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
23665 of grub_dl_ref() and grub_dl_unref().
23666 * commands/parttool.c: Remove preprocessor conditionals around
23667 grub_dl_ref() and grub_dl_unref().
23668 * fs/affs.c: Likewise.
23669 * fs/afs.c: Likewise.
23670 * fs/cpio.c: Likewise.
23671 * fs/ext2.c: Likewise.
23672 * fs/fat.c: Likewise.
23673 * fs/hfs.c: Likewise.
23674 * fs/hfsplus.c: Likewise.
23675 * fs/iso9660.c: Likewise.
23676 * fs/jfs.c: Likewise.
23677 * fs/minix.c: Likewise.
23678 * fs/ntfs.c: Likewise.
23679 * fs/reiserfs.c: Likewise.
23680 * fs/sfs.c: Likewise.
23681 * fs/udf.c: Likewise.
23682 * fs/ufs.c: Likewise.
23683 * fs/xfs.c: Likewise.
23684 * include/grub/dl.h: Likewise.
23685 * loader/xnu.c: Likewise.
23687 2009-05-04 Pavel Roskin <proski@gnu.org>
23689 * commands/acpi.c: Remove unused variable my_mod.
23690 * partmap/amiga.c: Likewise.
23691 * partmap/apple.c: Likewise.
23692 * partmap/gpt.c: Likewise.
23693 * partmap/pc.c: Likewise.
23694 * partmap/sun.c: Likewise.
23695 * term/gfxterm.c: Likewise.
23696 * term/i386/pc/vesafb.c: Likewise.
23697 * term/i386/pc/vga.c: Likewise.
23699 2009-05-04 David S. Miller <davem@davemloft.net>
23701 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
23702 pointer args to grub_ieee1275_get_property().
23704 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
23706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
23707 devices, and do not traverse down under controller nodes.
23709 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
23710 (grub_ofdisk_open): Use it to un-escape "," characters.
23711 * kern/disk.c (find_part_sep): New.
23712 (grub_disk_open): Use it to find the first non-escaped ','
23713 character in the disk name.
23714 * util/ieee1275/devicemap.c (escape_of_path): New.
23715 (grub_util_emit_devicemap_entry): Use it.
23716 * util/sparc64/ieee1275/grub-install.in: Update script to
23717 strip partition specifiers properly by not triggering on
23718 '\' escaped ',' characters.
23720 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23722 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
23724 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
23726 (linux_vesafb_modes): Add a lot of additional modes to the list (based
23727 on documentation from Wikipedia).
23729 2009-05-04 Pavel Roskin <proski@gnu.org>
23731 * disk/ata.c: Spelling fixes.
23732 * disk/raid.c: Likewise.
23733 * disk/usbms.c: Likewise.
23734 * disk/dmraid_nvidia.c: Likewise.
23735 * kern/ieee1275/openfw.c: Likewise.
23736 * kern/ieee1275/init.c: Likewise.
23737 * kern/ieee1275/cmain.c: Likewise.
23738 * boot/i386/pc/cdboot.S: Likewise.
23739 * video/readers/png.c: Likewise.
23740 * video/i386/pc/vbe.c: Likewise.
23741 * fs/udf.c: Likewise.
23742 * fs/hfs.c: Likewise.
23743 * fs/reiserfs.c: Likewise.
23744 * efiemu/runtime/efiemu.c: Likewise.
23745 * efiemu/main.c: Likewise.
23746 * efiemu/mm.c: Likewise.
23747 * include/grub/elf.h: Likewise.
23748 * include/grub/xnu.h: Likewise.
23749 * include/grub/usbdesc.h: Likewise.
23750 * include/grub/usb.h: Likewise.
23751 * include/grub/script_sh.h: Likewise.
23752 * include/grub/lib/LzmaEnc.h: Likewise.
23753 * include/grub/efiemu/efiemu.h: Likewise.
23754 * include/grub/command.h: Likewise.
23755 * normal/menu.c: Likewise.
23756 * normal/main.c: Likewise.
23757 * normal/datetime.c: Likewise.
23758 * bus/usb/uhci.c: Likewise.
23759 * mmap/i386/uppermem.c: Likewise.
23760 * mmap/mmap.c: Likewise.
23761 * commands/acpi.c: Likewise.
23762 * commands/test.c: Likewise.
23763 * partmap/apple.c: Likewise.
23764 * font/font.c: Likewise.
23765 * loader/sparc64/ieee1275/linux.c: Likewise.
23766 * loader/macho.c: Likewise.
23767 * loader/i386/bsd_trampoline.S: Likewise.
23768 * loader/i386/bsd.c: Likewise.
23769 * loader/xnu.c: Likewise.
23770 * term/i386/pc/vesafb.c: Likewise.
23771 * term/usb_keyboard.c: Likewise.
23772 * util/resolve.c: Likewise.
23773 * util/getroot.c: Likewise.
23775 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23777 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
23779 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23781 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
23784 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23786 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
23787 parameter only available on BIOS.
23789 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23791 Removed wrong semicolon in declaration
23793 * grub/misc.h (grub_dprintf): remove semicolon
23795 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23797 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
23798 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
23799 is done by grub_cmd_linux() now).
23800 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
23801 restore video to text mode.
23802 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
23803 indicates lack of "vga=" parameter. "vga=0" is mapped to
23804 `GRUB_LINUX_VID_MODE_NORMAL'.
23806 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23808 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
23809 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
23810 and `normal/script.c'. Add `kern/rescue_reader.c',
23811 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
23812 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
23813 `grub_script.tab.c'.
23815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23821 * Makefile.in: Remove duplicated 2008 in Copyright line.
23823 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23825 * util/misc.c (grub_util_warn): New function. Emits a warning
23827 * include/grub/util/misc.h (grub_util_warn): New declaration.
23829 * util/i386/pc/grub-install.in: Understand --force and pass it down
23832 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
23834 (setup): Improve error messages and add warnings when requested to
23835 install in odd layouts. Refuse to install using blocklists unless
23838 2009-05-04 martin f. krafft <madduck@madduck.net>
23840 * disk/raid.c (grub_raid_scan_device): Improve debug message.
23842 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23844 Updated copyright year
23846 * fs/hfsplus.c: updated copyright year
23848 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23852 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
23853 in the space previously used by unused3
23854 (grub_hfsplus_uuid): new function
23855 (grub_hfsplus_fs): added uuid field
23857 2009-05-03 Pavel Roskin <proski@gnu.org>
23859 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
23860 suppress warnings. It's no longer needed.
23861 * disk/host.c: Likewise.
23862 * disk/ata_pthru.c: Likewise.
23863 * disk/loopback.c: Likewise.
23864 * hook/datehook.c: Likewise.
23865 * parttool/pcpart.c: Likewise.
23866 * fs/i386/pc/pxe.c: Likewise.
23867 * fs/ntfscomp.c: Likewise.
23868 * efiemu/main.c: Likewise.
23869 * mmap/mmap.c: Likewise.
23870 * commands/crc.c: Likewise.
23871 * commands/hexdump.c: Likewise.
23872 * commands/hdparm.c: Likewise.
23873 * commands/acpi.c: Likewise.
23874 * commands/echo.c: Likewise.
23875 * commands/minicmd.c: Likewise.
23876 * commands/blocklist.c: Likewise.
23877 * commands/memrw.c: Likewise.
23878 * commands/loadenv.c: Likewise.
23879 * commands/usbtest.c: Likewise.
23880 * commands/lsmmap.c: Likewise.
23881 * commands/boot.c: Likewise.
23882 * commands/parttool.c: Likewise.
23883 * commands/configfile.c: Likewise.
23884 * commands/search.c: Likewise.
23885 * commands/ieee1275/suspend.c: Likewise.
23886 * commands/cat.c: Likewise.
23887 * commands/i386/pc/pxecmd.c: Likewise.
23888 * commands/i386/pc/play.c: Likewise.
23889 * commands/i386/pc/halt.c: Likewise.
23890 * commands/i386/pc/vbeinfo.c: Likewise.
23891 * commands/i386/pc/vbetest.c: Likewise.
23892 * commands/lspci.c: Likewise.
23893 * commands/date.c: Likewise.
23894 * commands/handler.c: Likewise.
23895 * commands/ls.c: Likewise.
23896 * commands/test.c: Likewise.
23897 * commands/cmp.c: Likewise.
23898 * commands/efi/loadbios.c: Likewise.
23899 * commands/efi/fixvideo.c: Likewise.
23900 * commands/halt.c: Likewise.
23901 * commands/help.c: Likewise.
23902 * commands/reboot.c: Likewise.
23903 * hello/hello.c: Likewise.
23904 * script/sh/main.c: Likewise.
23905 * loader/xnu.c: Likewise.
23906 * term/terminfo.c: Likewise.
23907 * term/i386/pc/serial.c: Likewise.
23908 * term/usb_keyboard.c: Likewise.
23910 2009-05-03 David S. Miller <davem@davemloft.net>
23912 * normal/menu.c: Include grub/parser.h
23914 2009-05-03 Pavel Roskin <proski@gnu.org>
23916 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
23918 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
23919 Suggested by Javier Martín <lordhabbit@gmail.com>
23921 * util/i386/pc/grub-mkrescue.in: Allow for the case when
23922 efiemu??.o doesn't exist.
23923 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
23926 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
23928 FreeBSD 64-bit support
23930 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
23931 and loader/i386/bsd_trampoline.S
23932 (bsd_mod_ASFLAGS): new variable
23933 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
23934 (FREEBSD_MODTYPE_KERNEL64): likewise
23935 (grub_bsd64_trampoline_start): likewise
23936 (grub_bsd64_trampoline_end): likewise
23937 (grub_bsd64_trampoline_selfjump): likewise
23938 (grub_bsd64_trampoline_gdt): likewise
23939 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
23940 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
23941 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
23942 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
23943 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
23945 * loader/i386/bsd_pagetable.c: new file
23946 * loader/i386/bsd_trampoline.S: likewise
23947 * loader/i386/bsd.c (ALIGN_QWORD): new macro
23948 (ALIGN_VAR): likewise
23949 (entry_hi): new variable
23950 (kern_end_mdofs): likewise
23951 (is_64bit): likewise
23952 (grub_freebsd_add_meta): use ALIGN_VAR
23953 (grub_e820_mmap): new declaration
23954 (grub_freebsd_add_mmap): new function
23955 (grub_freebsd_add_meta_module): support 64 bit kernels
23956 (grub_freebsd_list_modules): use ALIGN_VAR
23957 (gdt_descriptor): new declaration
23958 (grub_freebsd_boot): support 64 bit kernels
23959 (grub_bsd_elf64_hook): new function
23960 (grub_bsd_load_elf): support elf64
23962 2009-05-03 Bean <bean123ch@gmail.com>
23964 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
23965 after we get the result of if statement.
23967 2009-05-03 Bean <bean123ch@gmail.com>
23969 * Makefile.in (enable_efiemu): New variable.
23971 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
23973 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
23975 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
23976 path, add -mno-red-zone option.
23977 (efiemu64_s.o): Likewise.
23978 (efiemu64.o): Use macro $^ for source file.
23980 * configure.ac (--enable-efiemu): New option.
23982 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23986 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
23987 (pkglib_MODULES): add xnu.mod
23988 (xnu_mod_SOURCES): new variable
23989 (xnu_mod_CFLAGS): likewise
23990 (xnu_mod_LDFLAGS): likewise
23991 (xnu_mod_ASFLAGS): likewise
23992 * conf/i386-pc.rmk: likewise
23993 * conf/x86_64-efi.rmk: likewise
23994 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
23996 * include/grub/i386/macho.h: new file
23997 * include/grub/i386/xnu.h: likewise
23998 * include/grub/macho.h: likewise
23999 * include/grub/machoload.h: likewise
24000 * include/grub/x86_64/macho.h: likewise
24001 * include/grub/x86_64/xnu.h: likewise
24002 * include/grub/xnu.h: likewise
24003 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24004 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24005 * loader/i386/efi/xnu.c: new file
24006 * loader/i386/pc/xnu.c: likewise
24007 * loader/i386/xnu.c: likewise
24008 * loader/i386/xnu_helper.S: likewise
24009 * loader/macho.c: likewise
24010 * loader/xnu.c: likewise
24011 * loader/xnu_resume.c: likewise
24012 * util/grub-dumpdevtree: likewise
24013 * include/grub/i386/pit.h: include grub/err.h
24014 (grub_pit_wait): export
24015 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24017 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24021 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24022 _linux_efi, linux_efi.
24023 new files in grub-emu
24024 new targets efiemu32.o and efiemu64.o
24025 * loader/linux_normal_efiemu.c: likewise
24026 * loader/i386/efi/linux.c: added preliminary efiemu support
24027 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24029 * include/grub/autoefi.h: new file
24030 * include/grub/i386/efiemu.h: likewise
24031 * include/grub/i386/pc/efiemu.h: likewise
24032 * include/grub/efi/api.h: add LL suffix when necessary
24033 new definitions relating to tables
24034 * include/grub/efiemu/efiemu.h: new file
24035 * include/grub/efiemu/runtime.h: likewise
24036 * efiemu/prepare.c: likewise
24037 * efiemu/loadcore_common.c: likewise
24038 * efiemu/loadcore64.c: likewise
24039 * efiemu/runtime/efiemu.sh: likewise
24040 * efiemu/runtime/efiemu.S: likewise
24041 * efiemu/runtime/efiemu.c: likewise
24042 * efiemu/runtime/config.h: likewise
24043 * efiemu/prepare32.c: likewise
24044 * efiemu/main.c: likewise
24045 * efiemu/modules/pnvram.c: likewise
24046 * efiemu/modules/i386: likewise
24047 * efiemu/modules/i386/pc: likewise
24048 * efiemu/modules/acpi.c: likewise
24049 * efiemu/i386/pc/cfgtables.c: likewise
24050 * efiemu/i386/loadcore64.c: likewise
24051 * efiemu/i386/loadcore32.c: likewise
24052 * efiemu/prepare64.c: likewise
24053 * efiemu/loadcore.c: likewise
24054 * efiemu/symbols.c: likewise
24055 * efiemu/mm.c: likewise
24056 * efiemu/loadcore32.c: likewise
24058 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24062 * commands/acpi.c: new file
24063 * commands/i386/pc/acpi.c: likewise
24064 * commands/efi/acpi.c: likewise
24065 * include/grub/acpi.h: likewise
24066 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24067 (acpi_mod_SOURCES): new variable
24068 (acpi_mod_CFLAGS): likewise
24069 (acpi_mod_LDFLAGS): likewise
24070 * conf/i386-efi.rmk: likewise
24071 * conf/x86_64-efi.rmk: likewise
24073 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24075 Missing part from mmap patch
24077 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24078 (grub_mmap_unregister)
24079 (grub_mmap_free_and_unregister): use grub_mmap_register
24081 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24085 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24086 * loader/i386/linux.c (find_mmap_size): likewise
24087 (allocate_pages): likewise
24088 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24089 (grub_fill_multiboot_mmap): likewise
24090 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24091 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24092 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24093 (OPENBSD_MMAP_RESERVED): likewise
24094 * include/grub/i386/pc/memory.h: include grub/memory.h
24095 (grub_lower_mem): removed
24096 (grub_upper_mem): likewise
24097 (GRUB_MACHINE_MEMORY_ACPI): new definition
24098 (GRUB_MACHINE_MEMORY_NVS): likewise
24099 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24100 (GRUB_MACHINE_MEMORY_HOLE): likewise
24101 (grub_machine_mmap_register): likewise
24102 (grub_machine_mmap_unregister): likewise
24103 (grub_machine_get_upper): likewise
24104 (grub_machine_get_lower): likewise
24105 (grub_machine_get_post64): likewise
24106 * include/grub/i386/efi/memory.h: new file
24107 * include/grub/x86_64/efi/memory.h: likewise
24108 * include/grub/efi/memory.h: likewise
24109 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24110 (mmap_mod_SOURCES): new variable
24111 (mmap_mod_LDFLAGS): likewise
24112 (mmap_mod_ASFLAGS): likewise
24113 * conf/i386-coreboot.rmk: likewise
24114 * conf/i386-ieee1275.rmk: likewise
24115 * conf/i386-efi.rmk: likewise
24116 * conf/x86_64-efi.rmk: likewise
24117 * include/grub/types.h (UINT_TO_PTR): new macro
24118 (PTR_TO_UINT32): likewise
24119 (PTR_TO_UINT64): likewise
24120 * include/grub/memory.h: new file
24121 * mmap/i386/pc/mmap.c: likewise
24122 * mmap/i386/pc/mmap_helper.S: likewise
24123 * mmap/i386/uppermem.c: likewise
24124 * mmap/mmap.c: likewise
24125 * mmap/efi/mmap.c: likewise
24126 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24128 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24129 (grub_upper_mem): likewise
24130 (grub_machine_init): don't use grub_upper_mem,
24131 make grub_lower_mem local
24132 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24133 grub_mmap_iterate and grub_mmap_get_upper
24134 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24136 2009-05-02 Bean <bean123ch@gmail.com>
24138 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24139 script/sh/parser.y.
24140 (pkglib_MODULES): Add normal.mod and sh.mod.
24141 (normal_SOURCES): New variable.
24142 (normal_mod_CFLAGS): Likewise.
24143 (normal_mod_LDFLAGS): Likewise.
24144 (sh_mod_SOURCES): Likewise.
24145 (sh_mod_CFLAGS): Likewise.
24146 (sh_mod_LDFLAGS): Likewise.
24148 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24149 script/sh/lexer.c_DEPENDENCIES.
24150 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24151 kern/rescue_reader.c and kern/rescue_parser.c.
24152 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24153 (grub_emu_SOURCES): Change source files.
24154 (pkglib_MODULES): Remove normal.mod.
24155 (normal_SOURCES): Removed.
24156 (normal_mod_CFLAGS): Likewise.
24157 (normal_mod_LDFLAGS): Likewise.
24158 * conf/i386-coreboot.rmk: Likewise.
24159 * conf/i386-efi.rmk: Likewise.
24160 * conf/i386-ieee1276.rmk: Likewise.
24161 * conf/powerpc-ieee1275.rmk: Likewise.
24162 * conf/sparc64-ieee1275.rmk: Likewise.
24163 * conf/x86_64-efi.rmk: Likewise.
24165 * include/grub/command.h (grub_command_execute): New inline function.
24167 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24169 * include/grub/normal.h: Remove <grub/setjmp.h>.
24170 (grub_fs_module_list): Moved to normal/autofs.c.
24171 (grub_exit_env): Removed.
24172 (grub_command_execute): Likewise.
24173 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24175 (read_command_list): New function declaration.
24176 (read_fs_list): Likewise.
24178 * include/parser.h: Include <grub/reader.h>.
24179 (grub_parser_split_cmdline): Change type of getline parameter.
24180 (grub_parser): New structure.
24181 (grub_parser_class): New variable.
24182 (grub_parser_execute): New function declaration.
24183 (grub_register_rescue_parser): Likewise.
24184 (grub_parser_register): New inline function.
24185 (grub_parser_unregister): Likewise.
24186 (grub_parser_get_current): Likewise.
24187 (grub_parser_set_current): Likewise.
24189 * include/grub/reader.h: New file.
24190 * kern/reader.c: Likewise.
24191 * kern/rescue_parser.c: Likewise.
24192 * kern/rescue_reader.c: Likewise.
24193 * normal/autofs.c: Likewise.
24194 * normal/dyncmd.c: Likewise.
24196 * include/grub/rescue.h: Removed.
24197 * normal/command.h: Likewise.
24199 * include/grub/script.h: Moved to ...
24200 * include/grub/script_sh.h: ... Moved here.
24201 * normal/execute.c: Moved to ...
24202 * script/sh/execute.c: ... Moved here.
24203 * normal/function.c: Moved to ...
24204 * script/sh/function.c: ... Moved here.
24205 * normal/lexer.c: Moved to ...
24206 * script/sh/lexer.c: ... Moved here.
24207 * normal/parser.y: Moved to ...
24208 * script/sh/parser.y: ... Moved here.
24209 * normal/script.c: Moved to ...
24210 * script/sh/script.c: ... Moved here.
24212 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24214 (grub_exit_env): Removed.
24215 (fs_module_list): Moved to normal/autofs.c.
24216 (grub_file_getline): Don't handle comment here.
24217 (free_menu): Skip removed field entry->commands.
24218 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24220 (read_config_file): Removed nested parameter, change getline function.
24221 (grub_enter_normal_mode): Removed.
24222 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24223 (read_command_list): Likewise.
24224 (autoload_fs_module): Moved to normal/autofs.c.
24225 (read_fs_list): Likewise.
24226 (reader_nested): New variable.
24227 (grub_normal_execute): Run parser.sh to switch to sh parser.
24228 (grub_cmd_rescue): Removed.
24229 (cmd_normal): Removed.
24230 (grub_cmd_normal): Unregister itself at the beginning. Don't register
24232 (grub_cmdline_run): New function.
24233 (grub_normal_reader_init): Likewise.
24234 (grub_normal_read_line): Likewise.
24235 (grub_env_write_pager): Likewise.
24236 (cmdline): New variable.
24237 (grub_normal_reader): Likewise.
24238 (GRUB_MOD_INIT): Register normal reader and set as current, register
24239 pager hook, register normal command with grub_register_command_prio,
24240 so that it won't show up in command.lst.
24241 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
24242 grub_fs_autoload_hook.
24244 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
24245 (grub_menu_execute_entry): Replace grub_script_execute with
24246 grub_parser_execute, change parameter to grub_command_execute.
24248 * normal/menu_text.c: Remove <grub/script.h>.
24250 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
24251 and <grub/parser.h>.
24252 (run): Change editor_getline to use new parser interface. Change
24253 parameter to grub_command_execute.
24255 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
24256 <grub/reader.h> and <grub/parser.h>.
24257 (grub_load_normal_mode): Execute normal command.
24258 (grub_main): Call grub_register_core_commands,
24259 grub_register_rescue_parser and grub_register_rescue_reader, use
24260 grub_reader_loop to enter input loop.
24262 * kern/parser.c (grub_parser_split_cmdline): Change type of
24264 (grub_parser_class): New variable.
24265 (grub_parser_execute): New function.
24267 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24268 * loader/multiboot2.c: Likewise.
24269 * loader/sparc64/ieee1275/linux.c: Likewise.
24271 * util/grub-emu.c (read_command_list): New dummy function.
24273 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24275 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24276 count to 16 for CCISS and IDA.
24278 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24280 * normal/menu_text.c (grub_wait_after_message): Print a newline
24281 after waiting for user input.
24283 * loader/i386/linux.c: Include `<grub/normal.h>'.
24284 (grub_cmd_linux): Improve the error message about `ask' mode, by
24285 waiting for user input so it's not missed (we can do this, since
24286 user requested interaction).
24288 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24290 Added missing lst to grub-mkrescue
24292 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
24293 and ${input_dir}/parttool.lst
24295 2009-04-30 David S. Miller <davem@davemloft.net>
24297 * util/hostdisk.c (device_is_wholedisk): New function.
24298 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
24299 zero only if device_is_wholedisk() returns true.
24301 * util/hostdisk.c (convert_system_partition_to_system_disk):
24302 Handle virtual disk devices named /dev/vdiskX as found on sparc
24305 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
24306 lettered partition specifier is found, convert to numbered.
24308 2009-04-29 David S. Miller <davem@davemloft.net>
24310 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
24311 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24313 * normal/command.c: Add missing newline at end of file.
24315 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
24317 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
24318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
24319 grub_ofdisk_read): Likewise, and deal similarly with the fact that
24320 ihandles have a 32-bit type but need to be stored in a "void *".
24322 2009-04-28 Pavel Roskin <proski@gnu.org>
24324 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
24325 not disk. Adjust all dependencies.
24326 (grub_fs_uuid_close): Use grub_device_close(), not
24329 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
24330 parent's partition, don't copy it by reference, as it gets freed
24333 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24335 Preboot hooks support
24337 * commands/boot.c (struct grub_preboot_t): new declaration
24338 (preboots_head): new variable
24339 (preboots_tail): likewise
24340 (grub_loader_register_preboot_hook): new function
24341 (grub_loader_unregister_preboot_hook): likewise
24342 (grub_loader_set): launch preboot hooks
24343 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
24344 (grub_loader_register_preboot_hook): new declaration
24345 (grub_loader_unregister_preboot_hook): likewise
24347 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24351 * disk/scsi.c (grub_scsi_open): added missing cast when
24352 calling grub_dprintf
24354 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
24356 Bug and warning fixes
24358 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
24360 * commands/test.c (test_parse): fixed bug with file tests and corrected
24361 declaration of find_file
24363 2009-04-26 Pavel Roskin <proski@gnu.org>
24365 * Makefile.in: Don't install empty manual pages if help2man is
24366 missing. Use help2man option for output, not shell redirection.
24368 2009-04-26 David S. Miller <davem@davemloft.net>
24370 * util/grub-mkdevicemap.c (make_device_map): Add missing
24371 NESTED_FUNC_ATTR to process_device().
24373 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24377 * commands/test.c: rewritten to use bash-like test
24379 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24381 Parttool autoloading and improvements
24383 * Makefile.in (pkglib_DATA): add parttool.lst
24384 (parttool.lst): new target
24385 * genmk.rb: generate parttool-*
24386 (CLEANFILES): add #{parttool}
24387 (PARTTOOLFILES): new variable
24388 * genparttoollist.sh: new file
24389 * parttool/pcpart.c (grub_pcpart_boot): more feedback
24390 (grub_pcpart_type): likewise
24391 * commands/parttool.c (helpmsg): new variable
24392 (grub_cmd_parttool): output help if not enough arguments are supplied
24394 (GRUB_MOD_INIT(parttool)): use helpmsg
24396 2009-04-24 David S. Miller <davem@davemloft.net>
24398 Avoiding opening same device multiple times in device iterator.
24400 * kern/device.c: (grub_device_iterate): Define struct part_ent,
24401 and use it to build a list of partitions in iterate_disk() and
24402 iterate_partition().
24404 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
24407 * disk/ieee1275/nand.c (grub_nand_iterate): Return
24408 grub_devalias_iterate() result instead of unconditional 0.
24409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
24410 Also, capture hook return value, either directly or via
24411 grub_children_iterate(), and propagate to caller.
24412 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
24413 grub_children_iterate): Return value is now 'int' instead of
24415 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
24416 like a proper iterator, stopping when hooks return non-zero.
24417 (grub_devalias_iterate): Likewise.
24419 2009-04-23 David S. Miller <davem@davemloft.net>
24421 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
24423 2009-04-22 David S. Miller <davem@davemloft.net>
24425 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
24426 is larger than address_cells, use that value for address_cells too.
24428 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
24429 IEEE1275_MAX_PATH_LEN): Define.
24430 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
24431 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
24432 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
24433 'devtype'. Explicitly NULL terminate devalias expansion.
24435 * util/sparc64/ieee1275/misc.c: New file.
24436 * util/sparc64/ieee1275/grub-setup.c: New file.
24437 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
24438 * util/sparc64/ieee1275/grub-mkimage.c: New file.
24439 * util/sparc64/ieee1275/grub-install.in: New file.
24440 * util/ieee1275/ofpath.c: New file.
24441 * util/ieee1275/devicemap.c: New file.
24442 * util/devicemap.c: New file.
24443 * util/deviceiter.c: New file.
24444 * kern/sparc64/ieee1275/init.c: New file.
24445 * include/grub/util/ofpath.h: New file.
24446 * include/grub/util/deviceiter.h: New file.
24447 * util/grub-mkdevicemap.c: Include deviceiter.h.
24448 Implement using grub_util_emit_devicemap_entry and
24449 grub_util_iterate_devices.
24450 * conf/i386-corebook.rmk: Build util/deviceiter.c and
24451 util/devicemap.c into grub-mkdevicemap
24452 * conf/i386-efi.rmk: Likewise.
24453 * conf/i386-ieee1275.rmk: Likewise.
24454 * conf/i386-pc.rmk: Likewise.
24455 * conf/powerpc-ieee1275.rmk: Likewise.
24456 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
24457 images and installation utilities. Build kernel as image
24458 instead of as elf binary. Use common rules as much as possible.
24460 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24462 Correct GPT definition
24464 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24467 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
24469 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
24471 2009-04-19 David S. Miller <davem@davemloft.net>
24473 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
24474 (grub_rescue_cmd_linux): Rename to...
24475 (grub_cmd_linux): and fix prototype.
24476 (grub_rescue_cmd_initrd): Rename to...
24477 (grub_cmd_initrd): and fix prototype.
24478 (cmd_linux, cmd_initrd): New.
24479 (GRUB_MOD_INIT(linux)): Use grub_register_command().
24480 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
24482 2009-04-17 Pavel Roskin <proski@gnu.org>
24484 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
24486 (grub_ohci_transfer): Likewise.
24488 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
24490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
24491 return without a value. Fix inconsistent indentation.
24493 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
24494 match struct grub_fs.
24496 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
24497 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
24498 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
24499 * commands/lspci.c (grub_lspci_iter): Likewise.
24501 2009-04-16 Bean <bean123ch@gmail.com>
24503 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
24506 2009-04-15 Pavel Roskin <proski@gnu.org>
24508 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
24509 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
24510 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
24513 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24515 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
24516 that no multiple data or metadata areas are supported and `Unknown
24519 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24521 Move loader out of the kernel
24523 * kern/loader.c: moved to ...
24524 * commands/boot.c: ... moved here
24525 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
24526 * commands/boot.c (grub_cmd_boot): moved here. All users updated
24527 * include/grub/kernel.h (grub_machine_fini): export
24528 * include/grub/loader.h (grub_loader_is_loaded): update declaration
24529 (grub_loader_set): likewise
24530 (grub_loader_unset): likewise
24531 (grub_loader_boot): likewise
24532 * conf/common.rmk: new module boot.mod
24533 (pkglib_MODULES): add boot.mod
24534 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
24535 (grub_emu_SOURCES): likewise
24536 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
24537 (grub_emu_SOURCES): likewise
24538 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
24539 (grub_emu_SOURCES): likewise
24540 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
24541 (grub_emu_SOURCES): likewise
24542 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
24543 (grub_emu_SOURCES): likewise
24544 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
24545 (grub_emu_SOURCES): likewise
24546 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
24547 (grub_emu_SOURCES): likewise
24549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24551 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
24553 * kern/misc.c (grub_itoa): Removed function
24554 (grub_ltoa): likewise
24555 (grub_vsprintf): use grub_lltoa
24557 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24561 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
24562 * conf/i386-coreboot.rmk: likewise
24563 * conf/i386-ieee1275.rmk: likewise
24564 * conf/powerpc-ieee1275.rmk: likewise
24566 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24568 * INSTALL: Add that `./autogen.sh' needs to be run before
24571 2009-04-14 Bean <bean123ch@gmail.com>
24573 * Makefile.in (pkglib_DATA): Add handler.lst.
24574 (handler.lst): New rule.
24576 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
24577 * conf/i386-coreboot.rmk: Likewise.
24578 * conf/i386-ieee1275.rmk: Likewise.
24579 * conf/i386-efi.rmk: Likewise.
24580 * conf/x86_64-efi.rmk: Likewise.
24581 * conf/powerpc-ieee1275.rmk: Likewise.
24582 * conf/sparc64-ieee1275.rmk: Likewise.
24584 * genhandlerlist.sh: New file.
24586 * genmk.rb: Add rules to generate handler.lst.
24588 * include/grub/normal.h (grub_file_getline): New function definition.
24589 (read_handler_list): Likewise.
24590 (free_handler_list): Likewise.
24592 * include/grub/term.h (grub_term_register_input): Add name parameter
24593 for auto generation of handler.lst.
24594 (grub_term_register_output): Likewise.
24596 * normal/handler.c: New file.
24598 * normal/main.c (get_line): Renamed to grub_file_getline.
24599 (read_config_file): Use the newly renamed grub_file_getline.
24600 (read_command_list): Likewise.
24601 (read_fs_list): Likewise.
24602 (grub_normal_execute): Call read_handler_list to parse handler.lst.
24603 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
24605 * term/efi/console.c (grub_console_init): Add name parameter for auto
24606 generation of handler.lst.
24607 * term/gfxterm.c: Likewise.
24608 * term/i386/pc/at_keyboard.c: Likewise.
24609 * term/i386/pc/console.c: Likewise.
24610 * term/i386/pc/serial.c: Likewise.
24611 * term/i386/pc/vesafb.c: Likewise.
24612 * term/i386/pc/vga.c: Likewise.
24613 * term/i386/pc/vga_text.c: Likewise.
24614 * term/ieee1275/ofconsole.c: Likewise.
24615 * term/usb_keyboard.c: Likewise.
24617 2009-04-14 Bean <bean123ch@gmail.com>
24619 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
24620 properly with null character.
24622 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24624 * configure: Remove.
24625 * config.h.in: Likewise.
24626 * stamp-h.in: Likewise.
24627 * DISTLIST: Likewise.
24628 * conf/common.mk: Likewise.
24629 * conf/i386-coreboot.mk: Likewise.
24630 * conf/i386-efi.mk: Likewise.
24631 * conf/i386-ieee1275.mk: Likewise.
24632 * conf/i386.mk: Likewise.
24633 * conf/i386-pc.mk: Likewise.
24634 * conf/powerpc-ieee1275.mk: Likewise.
24635 * conf/sparc64-ieee1275.mk: Likewise.
24636 * conf/x86_64-efi.mk: Likewise.
24638 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
24641 2009-04-14 John Stanley <jpsinthemix@verizon.net>
24642 David S. Miller <davem@davemloft.net>
24644 * util/hostdisk.c (make_device_name): Fix buffer length
24647 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24649 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
24650 <sys/param.h> and <sys/sysctl.h>.
24651 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
24652 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
24653 opening the device and reset them afterwards.
24655 2009-04-13 Pavel Roskin <proski@gnu.org>
24657 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
24658 Reported by John Stanley <jpsinthemix@verizon.net>
24660 2009-04-13 Robert Millan <rmh@aybabtu.com>
24662 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
24663 that name for menuentries when appropriate.
24665 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24667 * util/grub.d/10_freebsd.in: Add a missing `fi'.
24669 2009-04-13 Robert Millan <rmh@aybabtu.com>
24671 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
24672 to Linux, simply abort telling the user it's no longer supported.
24674 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24676 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
24677 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
24678 `freebsd_loadenv' only when devices.hints exist.
24680 2009-04-13 Pavel Roskin <proski@gnu.org>
24682 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
24684 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24686 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
24688 (grub_drive): Likewise.
24690 2009-04-13 David S. Miller <davem@davemloft.net>
24692 * kern/sparc64/ieee1275/ieee1275.c: New file.
24693 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
24694 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
24695 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
24696 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
24697 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
24698 grub_ieee1275_alloc_physmem): Declare new exported functions.
24700 * include/grub/sparc64/ieee1275/loader.h: New file.
24701 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24702 * include/grub/sparc64/kernel.h: Likewise.
24703 * loader/sparc64/ieee1275/linux.c: Likewise.
24705 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
24706 (grub_fstest_SOURCES): Likewise.
24708 * util/hostdisk.c (make_device_name): Do not make any assumptions
24709 about the length of drive names.
24711 * kern/dl.c (grub_dl_load_file): Close file immediately when
24712 we are done using it.
24714 2009-04-12 David S. Miller <davem@davemloft.net>
24716 * kern/misc.c (grub_ltoa): Fix cast when handling negative
24717 values. Noticed by Pavel Roskin.
24719 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
24722 * genmk.rb: Add more flexible image type specification, also
24723 pass --strip-unneeded to objcopy.
24724 * conf/i386-pc.rmk: Use *_FORMAT.
24725 * conf/i386-pc.mk: Rebuilt.
24727 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
24728 (OFDISK_HASH_SZ): Define.
24729 (ofdisk_hash): New hash table.
24730 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
24731 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
24732 instead of device phandle which is not unique.
24734 * kern/sparc64/ieee1275/init.c: Delete, replace with...
24735 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
24736 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
24737 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
24738 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
24739 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
24740 GRUB_KERNEL_MACHINE_DATA_END): Define.
24741 (grub_kernel_image_size, grub_total_module_size): Declare.
24743 2009-04-12 Pavel Roskin <proski@gnu.org>
24745 * configure.ac: Change the logic when we check for target tools.
24746 Do it when the target is specified and it's different from the
24747 specified value of the host.
24749 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
24751 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
24752 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
24753 GNU/kFreeBSD. Check if a device is a character device. Use
24754 DIOCGMEDIASIZE to get the size.
24755 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
24756 support for GNU/kFreeBSD.
24757 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
24758 is a character device instead of a block device. Add support for
24759 FreeBSD device names.
24761 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
24762 is a character device instead of a block device.
24764 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
24765 is a character device instead of a block device.
24767 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
24769 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
24770 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
24771 FreeBSD. Check if a device is a character device. Use
24772 DIOCGMEDIASIZE to get the size.
24773 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
24774 support for FreeBSD.
24775 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
24776 is a character device instead of a block device. Add support for
24777 FreeBSD device names.
24779 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
24780 a character device instead of a block device.
24781 (grub_util_check_char_device): New function.
24783 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
24784 a character device instead of a block device.
24786 * include/grub/util/getroot.h (grub_util_check_char_device): New
24789 2009-04-11 David S. Miller <davem@davemloft.net>
24791 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
24793 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
24794 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
24795 function, if present.
24796 (__bswapdi2): Likewise.
24798 * include/grub/sparc64/ieee1275/boot.h: New file.
24799 * boot/sparc64/ieee1275/boot.S: Likewise.
24800 * boot/sparc64/ieee1275/diskboot.S: Likewise.
24802 * kern/misc.c (grub_ltoa): New function.
24803 (grub_vsprintf): Use it to format 'long' integers.
24805 2009-04-10 David S. Miller <davem@davemloft.net>
24807 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
24808 slots are of type grub_ieee1275_cell_t.
24809 (grub_nand_read): Likewise.
24810 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
24811 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
24812 macros are used to compare values in arg/ret block of the call.
24813 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
24814 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
24815 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
24816 grub_ieee1275_instance_to_path, grub_ieee1275_write,
24817 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
24818 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
24819 grub_ieee1275_close, grub_ieee1275_set_property,
24820 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
24821 grub_ieee1275_cell_t.
24822 * kern/ieee1275/openfw.c (grub_map): Likewise.
24823 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
24824 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
24826 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
24827 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
24828 (grub_devalias_iterate): Likewise.
24830 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24834 * fs/ufs.c (INODE_NBLOCKS): new definition
24835 (struct grub_ufs_dirent): added fields for non-BSD dirents
24836 (grub_ufs_get_file_block): fixed double indirect handling
24837 (grub_ufs_lookup_symlink): use more robust way to determine whether
24839 (grub_ufs_find_file): support for non-BSD dirents
24840 (grub_ufs_dir): support for non-BSD dirents
24842 2009-04-10 Bean <bean123ch@gnail.com>
24844 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
24845 attribute, otherwise the size would be wrong for i386 platform.
24847 * include/grub/pci.h (grub_pci_read_word): New inline function.
24848 (grub_pci_read_byte): Likewise.
24849 (grub_pci_write): Likewise.
24850 (grub_pci_write_word): Likewise.
24851 (grub_pci_write_byte): Likewise.
24853 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
24855 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
24856 (find_framebuf): Scan pci to locate the frame buffer address.
24858 * commands/efi/fixvideo.c: New file.
24860 * commands/efi/loadbios.c: Likewise.
24862 * commands/memrw.c: Likewise.
24864 * util/grub-dumpbios.in: Likewise.
24866 * conf/common.rmk (grub-dumpbios): New utility.
24867 (pkglib_MODULES): New module memrw.mod.
24868 (memrw_mod_SOURCE): New macro.
24869 (memrw_mod_CFLAGS): Likewise.
24870 (memrw_mod_LDFLAGS): Likewise.
24872 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
24874 (loadbios_mod_SOURCE): New macro.
24875 (loadbios_mod_CFLAGS): Likewise.
24876 (loadbios_mod_LDFLAGS): Likewise.
24877 (fixvideo_mod_SOURCE): Likewise.
24878 (fixvideo_mod_CFLAGS): Likewise.
24879 (fixvideo_mod_LDFLAGS): Likewise.
24881 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
24883 (loadbios_mod_SOURCE): New macro.
24884 (loadbios_mod_CFLAGS): Likewise.
24885 (loadbios_mod_LDFLAGS): Likewise.
24886 (fixvideo_mod_SOURCE): Likewise.
24887 (fixvideo_mod_CFLAGS): Likewise.
24888 (fixvideo_mod_LDFLAGS): Likewise.
24890 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
24892 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
24894 2009-04-07 David S. Miller <davem@davemloft.net>
24896 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
24897 support for R_SPARC_OLO10 relocations. Fix compile warning for
24898 R_SPARC_WDISP30 case.
24899 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
24901 2009-04-06 Pavel Roskin <proski@gnu.org>
24903 * include/grub/misc.h (ARRAY_SIZE): New macro.
24904 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
24906 * loader/i386/linux.c (allocate_pages): Use free_pages().
24907 (grub_linux_unload): Don't use free_pages().
24908 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
24909 wrong index. Treat all other modes as text modes.
24910 (grub_cmd_linux): Initialize vid_mode unconditionally to
24911 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
24913 * commands/help.c (print_command_help): Use cmd->prio, not
24914 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
24916 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24920 * parttool/pcpart.c: new file
24921 * commands/parttool.c: likewise
24922 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
24923 (parttool_mod_SOURCES): new variable
24924 (parttool_mod_CFLAGS): likewise
24925 (parttool_mod_LDFLAGS): likewise
24926 (pcpart_mod_SOURCES): likewise
24927 (pcpart_mod_CFLAGS): likewise
24928 (pcpart_mod_LDFLAGS): likewise
24929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
24930 and parttool/pcpart.c
24931 * conf/i386-efi.rmk: likewise
24932 * conf/i386-ieee1275.rmk: likewise
24933 * conf/i386-pc.rmk: likewise
24934 * conf/powerpc-ieee1275.rmk: likewise
24935 * conf/sparc64-ieee1275.rmk: likewise
24936 * conf/x86_64-ieee1275.rmk: likewise
24938 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24940 Support for mtime and further expandability of dir command
24942 * include/grub/lib/datetime.h: moved to ...
24943 * include/grub/datetime.h: ... moved here and added
24944 declaration of grub_unixtime2datetime. All users updated
24945 * include/grub/fs.h: new syntax for dir and mtime functions in
24947 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
24948 and GRUB_FSHELP_FLAGS_MASK
24949 * commands/ls.c (grub_ls_list_files): Write mtime in long format
24950 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
24951 (grub_ext2_mtime): new function
24952 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
24953 (grub_hfsplus_mtime): new function
24954 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
24955 (GRUB_UFS_ATTR_FILE): likewise
24956 (GRUB_UFS_ATTR_LNK): likewise
24957 (struct grub_ufs_sblock): new fields mtime
24958 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
24960 (grub_ufs_dir): mtime support
24961 (grub_ufs_mtime): new function
24962 * fs/affs.c (grub_affs_dir): use new dir syntax
24963 * fs/afs.c (grub_afs_dir): likewise
24964 * fs/cpio.c (grub_cpio_dir): likewise
24965 * fs/fat.c (grub_fat_find_dir): likewise
24966 * fs/hfs.c (grub_hfs_dir): likewise
24967 * fs/iso9660.c (grub_iso9660_dir): likewise
24968 * fs/jfs.c (grub_jfs_dir): likewise
24969 * fs/minix.c (grub_minix_dir): likewise
24970 * fs/ntfs.c (grub_ntfs_dir): likewise
24971 * fs/reiserfs.c (grub_reiserfs_dir): likewise
24972 * fs/sfs.c (grub_sfs_dir): likewise
24973 * fs/xfs.c (grub_xfs_dir): likewise
24974 * util/hostfs.c (grub_hostfs_dir): likewise
24975 * lib/datetime.c: moved to ...
24976 * normal/datetime.c: ... moved here
24977 (grub_unixtime2datetime): new function
24978 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
24979 * normal/completion.c (iterate_dir): use new dir syntax
24980 * normal/misc.c (grub_normal_print_device_info): tell the
24981 last modification time of a volume
24982 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
24983 * conf/common.rmk: added lib/datetime.c to ls.mod
24984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
24985 (normal_mod_SOURCES): likewise
24986 (datetime_mod_SOURCES): Removed lib/datetime.c
24987 * conf/i386-efi.rmk: likewise
24988 * conf/i386-ieee1275.rmk: likewise
24989 * conf/i386-pc.rmk: likewise
24990 * conf/powerpc-ieee1275.rmk: likewise
24991 * conf/sparc64-ieee1275.rmk: likewise
24992 * conf/x86_64-efi.rmk: likewise
24994 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24996 Trim trailing spaces in FAT label and support mtools-like labels
24998 * fs/fat.c (grub_fat_iterate_dir): New function based
24999 on grub_fat_find_dir
25000 (grub_fat_find_dir): use grub_fat_iterate_dir
25001 (grub_fat_label): likewise
25003 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25007 remove extraneous kernel_elf_HEADERS
25009 2009-04-04 Bean <bean123ch@gnail.com>
25011 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25013 * util/misc.c: Likewise.
25015 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25017 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25018 instead of grub_printf.
25020 2009-04-03 Robert Millan <rmh@aybabtu.com>
25022 * loader/i386/linux.c (grub_linux_setup_video): Fill
25023 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25024 values from `mode info' structure instead of hardcoded
25027 2009-04-01 Pavel Roskin <proski@gnu.org>
25029 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25031 * genmk.rb: Likewise.
25032 * configure.ac: Likewise.
25034 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25036 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25037 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25039 2009-04-01 David S. Miller <davem@davemloft.net>
25041 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25042 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25043 (grub_setjmp): Mark with 'returns_twice' attribute.
25044 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25045 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25046 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25048 2009-04-01 Robert Millan <rmh@aybabtu.com>
25050 Reapply fix from 2008-07-28 which was accidentally reverted; also
25051 perform the same fix to a similar check in same function.
25053 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25054 with the same number are found, just use issue a warning with
25055 grub_dprintf(), as this error has been reported to be non-fatal.
25057 2009-03-31 Pavel Roskin <proski@gnu.org>
25059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25060 for cross-compilation.
25062 2009-03-30 Robert Millan <rmh@aybabtu.com>
25064 Fix i386-ieee1275 build.
25066 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25067 Remove declaration.
25069 2009-03-30 Pavel Roskin <proski@gnu.org>
25071 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25072 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25073 zero-terminated, rely only on the strlen value. Fix comparison
25074 of strings differing in length.
25076 2009-03-30 Robert Millan <rmh@aybabtu.com>
25078 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25079 checking for abi version. Improve error messages on BIOS to notify
25080 user about `linux16' command.
25082 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25086 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25087 in case of collision
25088 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25090 2009-03-29 Robert Millan <rmh@aybabtu.com>
25092 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25093 set `vid_mode' accordingly.
25094 (grub_linux_boot): Process `vid_mode' and set video mode.
25096 2009-03-29 Robert Millan <rmh@aybabtu.com>
25098 * util/grub.d/10_linux.in (linux_entry): New function.
25099 Factorize generation of Linux boot entries.
25101 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25103 Make the format of Environment Block plain text. The boot loader
25104 part is not tested well yet.
25106 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25108 (envblk): Likewise.
25109 (usage): Remove "info" and "clear". Add "unset". Update the
25110 description of "set", as this does not delete variables any
25112 (create_envblk_file): Complete rewrite.
25113 (open_envblk_file): Likewise.
25114 (cmd_info): Removed.
25115 (cmd_list): Likewise.
25116 (cmd_set): Likewise.
25117 (cmd_clear): Likewise.
25118 (list_variables): New function.
25119 (write_envblk): Likewise.
25120 (set_variables): Likewise.
25121 (unset_variables): Likewise.
25122 (main): Complete rewrite.
25124 * commands/loadenv.c (buffer): Removed.
25125 (envblk): Likewise.
25126 (open_envblk_file): New function.
25127 (read_envblk_file): Complete rewrite.
25128 (grub_cmd_load_env): Likewise.
25129 (grub_cmd_list_env): Likewise.
25130 (struct blocklist): New struct.
25131 (free_blocklists): New function.
25132 (check_blocklists): Likewise.
25133 (write_blocklists): Likewise.
25134 (grub_cmd_save_env): Complete rewrite.
25136 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25137 a plain text signature.
25138 (GRUB_ENVBLK_MAXLEN): Removed.
25139 (struct grub_envblk): Complete rewrite.
25140 (grub_envblk_find): Removed.
25141 (grub_envblk_insert): Likewise.
25142 (grub_envblk_open): New prototype.
25143 (grub_envblk_set): Likewise.
25144 (grub_envblk_delete): Put const to VALUE.
25145 (grub_envblk_iterate): Put const to NAME and VALUE.
25146 (grub_envblk_close): New prototype.
25147 (grub_envblk_buffer): New inline function.
25148 (grub_envblk_size): Likewise.
25150 * lib/envblk.c: Include grub/mm.h.
25151 (grub_env_find): Removed.
25152 (grub_envblk_open): New function.
25153 (grub_envblk_close): Likewise.
25154 (escaped_value_len): Likewise.
25155 (find_next_line): Likewise.
25156 (grub_envblk_insert): Removed.
25157 (grub_envblk_set): New function.
25158 (grub_envblk_delete): Complete rewrite.
25159 (grub_envblk_iterate): Likewise.
25161 2009-03-28 Robert Millan <rmh@aybabtu.com>
25163 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25164 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25165 variables. Use 16-bit loader.
25166 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25168 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25169 (grub_linux16_boot): ... this. Update all users.
25170 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25171 (grub_linux_boot): ... this. Update all users.
25173 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25174 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25175 commands to `linux16' and `initrd16'.
25176 (GRUB_MOD_FINI(linux)): Rename to ...
25177 (GRUB_MOD_FINI(linux16)): ... this.
25179 2009-03-24 Pavel Roskin <proski@gnu.org>
25181 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25182 not just for compilation.
25184 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25186 Move multiboot helper out of kernel
25188 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25189 `loader/i386/multiboot_helper.S'.
25190 * conf/i386-coreboot.rmk: Likewise
25191 * conf/i386-ieee1275.rmk: Likewise
25193 * kern/i386/loader.S: Move multiboot helpers from here...
25194 * loader/i386/multiboot_helper.S: ...moved here
25195 * include/grub/i386/loader.h: Move declarations of multiboot
25196 helpers from here...
25197 * include/grub/i386/multiboot.h: ...moved here
25198 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25200 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25202 * kern/env.c (grub_env_context_open): Added an argument to specify
25203 whether a new context inherits exported variables from current
25204 one. This is useful when making a sandbox to interpret a config
25206 All callers updated.
25208 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25210 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25212 * kern/env.c (grub_env_context_close): Fix memory leaks.
25214 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25216 * normal/main.c (grub_normal_execute): Added an argument
25217 BATCH to specify if an interactive interface should be provided
25218 after reading a config file.
25219 All callers updated.
25220 (read_command_list): Prevent being executed twice.
25221 (read_fs_list): Likewise.
25223 * include/grub/normal.h (grub_normal_execute): Updated the
25226 2009-03-22 Pavel Roskin <proski@gno.org>
25228 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25230 * kern/i386/pc/startup.S: Likewise.
25231 * kern/i386/efi/startup.S: Likewise.
25232 * kern/i386/ieee1275/startup.S: Likewise.
25233 * kern/i386/coreboot/startup.S: Likewise.
25234 * kern/x86_64/efi/startup.S: Likewise.
25236 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
25237 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
25238 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
25240 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25242 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25244 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25246 Use vaddr of correct segment for entry_point.
25248 2009-03-21 Bean <bean123ch@gmail.com>
25250 * commands/blocklist.c: Add include file <grub/command.h>, remove
25251 <grub/normal.h> and <grub/arg.h>.
25252 (grub_cmd_blocklist): Use the new command interface.
25253 (GRUB_MOD_INIT): Likewise.
25254 (GRUB_MOD_FINI): Likewise.
25255 * commands/boot.c: Likewise.
25256 * commands/cat.c: Likewise.
25257 * commands/cmp.c: Likewise.
25258 * commands/configfile.c: Likewise.
25259 * commands/crc.c: Likewise.
25260 * commands/echo.c: Likewise.
25261 * commands/halt.c: Likewise.
25262 * commands/handler.c: Likewise.
25263 * commands/hdparm.c: Likewise.
25264 * commands/help.c: Likewise.
25265 * commands/hexdump.c: Likewise.
25266 * commands/loadenv.c: Likewise.
25267 * commands/ls.c: Likewise.
25268 * commands/lsmmap.c: Likewise.
25269 * commands/lspci.c: Likewise.
25270 * commands/loadenv.c: Likewise.
25271 * commands/read.c: Likewise.
25272 * commands/reboot.c: Likewise.
25273 * commands/search.c: Likewise.
25274 * commands/sleep.c: Likewise.
25275 * commands/test.c: Likewise.
25276 * commands/usbtest.c: Likewise.
25277 * commands/videotest.c: Likewise.
25278 * commands/i386/cpuid.c: Likewise.
25279 * commands/i386/pc/halt.c: Likewise.
25280 * commands/i386/pc/play.c: Likewise.
25281 * commands/i386/pc/pxecmd.c: Likewise.
25282 * commands/i386/pc/vbeinfo.c: Likewise.
25283 * commands/i386/pc/vbetest.c: Likewise.
25284 * commands/ieee1275/suspend.c: Likewise.
25285 * disk/loopback.c: Likewise.
25286 * font/font_cmd.c: Likewise.
25287 * hello/hello.c: Likewise.
25288 * loader/efi/appleloader.c: Likewise.
25289 * loader/efi/chainloader.c: Likewise.
25290 * loader/i386/bsd.c: Likewise.
25291 * loader/i386/efi/linux.c: Likewise.
25292 * loader/i386/ieee1275/linux.c: Likewise.
25293 * loader/i386/linux.c: Likewise.
25294 * loader/i386/pc/chainloader.c: Likewise.
25295 * loader/i386/pc/linux.c: Likewise.
25296 * loader/powerpc/ieee1275/linux.c: Likewise.
25297 * loader/multiboot_loader.c: Likewise.
25298 * term/gfxterm.c: Likewise.
25299 * term/i386/pc/serial.c: Likewise.
25300 * term/terminfo.c: Likewise.
25302 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
25303 * term/i386/pc/vga.c: Likewise.
25304 * video/readers/jpeg.c: Likewise.
25305 * video/readers/png.c: Likewise.
25306 * video/readers/tga.c: Likewise.
25308 * util/grub-fstest (cmd_loopback): Removed.
25309 (cmd_blocklist): Likewise.
25310 (cmd_ls): Likewise.
25311 (grub_register_command): Likewise.
25312 (grub_unregister_command): Likewise.
25313 (execute_command): Use grub_command_find to locate command and execute
25316 * include/grub/efi/chainloader.h: Removed.
25317 * loader/efi/chainloader_normal.c: Likewise.
25318 * loader/i386/bsd_normal.c: Likewise.
25319 * loader/i386/pc/chainloader_normal.c: Likewise.
25320 * loader/i386/pc/multiboot_normal.c: Likewise.
25321 * loader/linux_normal.c: Likewise.
25322 * loader/multiboot_loader_normal.c: Likewise.
25323 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25325 * gencmdlist.sh: Scan new registration command grub_register_extcmd
25326 and grub_register_command_p1.
25328 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
25329 kern/command.c, lib/arg.c and commands/extcmd.c.
25330 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
25331 (minicmd_mod_SOURCES): New variable.
25332 (minicmd_mod_CFLAGS): Likewise.
25333 (minicmd_mod_LDFLAGS): Likewise.
25334 (extcmd_mod_SOURCES): Likewise.
25335 (extcmd_mod_CFLAGS): Likewise.
25336 (extcmd_mod_LDFLAGS): Likewise.
25337 (boot_mod_SOURCES): Removed.
25338 (boot_mod_CFLAGS): Likewise.
25339 (boot_mod_LDFLAGS): Likewise.
25341 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
25343 (kernel_img_HEADERS): Add command.h.
25344 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
25345 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
25347 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
25348 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
25349 remove the corresponding normal mode command.
25350 (normal_mod_SOURCES): Remove normal/arg.c.
25351 * conf/i386-coreboot.rmk: Likewise.
25352 * conf/i386-efi.rmk: Likewise.
25353 * conf/i386-ieee1275.rmk: Likewise.
25354 * conf/powerpc-ieee1275.rmk: Likewise.
25355 * conf/x86_64-efi.rmk: Likewise.
25357 * include/grub/arg.h: Move from here ...
25358 * include/grub/lib/arg.h: ... to here.
25360 * normal/arg.c: Move from here ...
25361 * lib/arg.c: ... to here.
25363 * commands/extcmd.c: New file.
25364 * commands/minicmd.c: Likewise.
25365 * include/grub/command.h: Likewise.
25366 * include/grub/extcmd.h: Likewise.
25367 * kern/command.c: Likewise.
25368 * kern/corecmd.c: Likewise.
25370 * kern/list.c (grub_list_iterate): Return int instead of void.
25371 (grub_list_insert): New function.
25372 (grub_prio_list_insert): Likewise.
25374 * kern/rescue.c (grub_rescue_command): Removed.
25375 (grub_rescue_command_list): Likewise.
25376 (grub_rescue_register_command): Likewise.
25377 (grub_rescue_unregister_command): Likewise.
25378 (grub_rescue_cmd_boot): Move to minicmd.c
25379 (grub_rescue_cmd_help): Likewise.
25380 (grub_rescue_cmd_info): Likewise.
25381 (grub_rescue_cmd_boot): Likewise.
25382 (grub_rescue_cmd_testload): Likewise.
25383 (grub_rescue_cmd_dump): Likewise.
25384 (grub_rescue_cmd_rmmod): Likewise.
25385 (grub_rescue_cmd_lsmod): Likewise.
25386 (grub_rescue_cmd_exit): Likewise.
25387 (grub_rescue_print_devices): Moved to corecmd.c.
25388 (grub_rescue_print_files): Likewise.
25389 (grub_rescue_cmd_ls): Likewise.
25390 (grub_rescue_cmd_insmod): Likewise.
25391 (grub_rescue_cmd_set): Likewise.
25392 (grub_rescue_cmd_unset): Likewise.
25393 (attempt_normal_mode): Use grub_command_find to get normal module.
25394 (grub_enter_rescue_mode): Use grub_register_core_commands to register
25395 commands, remove grub_rescue_register_command calls.
25397 * normal/command.c (grub_register_command): Removed.
25398 (grub_unregister_command): Likewise.
25399 (grub_command_find): Likewise.
25400 (grub_iterate_commands): Likewise.
25401 (rescue_command): Likewise.
25402 (export_command): Moved to corecmd.c.
25403 (set_command): Removed.
25404 (unset_command): Likewise.
25405 (insmod_command): Likewise.
25406 (rmmod_command): Likewise.
25407 (lsmod_command): Likewise.
25408 (grub_command_init): Likewise.
25410 * normal/completion.c (iterate_command): Use cmd->prio to check for
25412 (complete_arguments): Use grub_extcmd_t structure to find options.
25413 (grub_normal_do_completion): Change function grub_iterate_commands to
25414 grub_command_iterate.
25416 * normal/execute.c (grub_script_execute_cmd): No need to parse
25419 * normal/main.c (grub_dyncmd_dispatcher): New function.
25420 (read_command_list): Register unload commands as dyncmd.
25421 (grub_cmd_normal): Use new command interface, register rescue,
25422 unregister normal at entry, register normal, unregister rescue at exit.
25424 * include/grub/list.h (grub_list_test_t): New type.
25425 (grub_list_iterate): Return int instead of void.
25426 (grub_list_insert): New function.
25427 (GRUB_AS_NAMED_LIST_P): New macro.
25428 (GRUB_AS_PRIO_LIST): Likewise.
25429 (GRUB_AS_PRIO_LIST_P): Likewise.
25430 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
25431 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
25432 (grub_prio_list): New structure.
25433 (grub_prio_list_insert): New function.
25434 (grub_prio_list_remove): New inline function.
25436 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
25437 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
25438 (GRUB_COMMAND_FLAG_MENU): Likewise.
25439 (GRUB_COMMAND_FLAG_BOTH): Likewise.
25440 (GRUB_COMMAND_FLAG_TITLE): Likewise.
25441 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
25442 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
25443 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
25444 (grub_command): Likewise.
25445 (grub_register_command): Likewise.
25446 (grub_command_find): Likewise.
25447 (grub_iterate_commands): Likewise.
25448 (grub_command_init): Likewise.
25449 (grub_arg_parse): Likewise.
25450 (grub_arg_show_help): Likewise.
25452 * include/grub/rescue.h (grub_rescue_register_command): Removed.
25453 (grub_rescue_unregister_command): Likewise.
25455 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
25456 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
25457 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
25459 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
25460 grub_rescue_cmd_initrd.
25461 * include/grub/i386/loader.h: Likewise.
25462 * include/grub/x86_64/loader.h: Likewise.
25464 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
25466 2009-03-21 Bean <bean123ch@gmail.com>
25468 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
25469 instead of stat in mingw environment.
25471 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
25473 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
25475 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
25478 2009-03-21 Bean <bean123ch@gmail.com>
25480 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
25481 out of range error.
25483 2009-03-18 Michel Dänzer <michel@daenzer.net>
25485 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
25486 checking inode flags for EXT4_EXTENTS_FLAG.
25488 2009-03-18 Robert Millan <rmh@aybabtu.com>
25490 * loader/i386/linux.c: Include `<grub/video.h>' and
25491 `<grub/i386/pc/vbe.h>'..
25492 (grub_linux_setup_video): New function. Loosely based on the EFI one.
25493 (grub_linux32_boot): Attempt to configure video settings with
25494 grub_linux_setup_video().
25495 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
25496 to avoid grub_console_fini() which would step out of graphical mode
25499 2009-03-14 Robert Millan <rmh@aybabtu.com>
25501 Fix build on powerpc.
25502 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
25504 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
25506 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25507 background image command.
25509 2009-03-12 Colin D Bennett <colin@gibibit.com>
25511 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
25512 (grub_gfxterm_putchar): Extract pairs of identical calls to
25513 draw_cursor out of conditional blocks.
25515 2009-03-11 Pavel Roskin <proski@gnu.org>
25517 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25518 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25520 2009-03-11 Robert Millan <rmh@aybabtu.com>
25522 * loader/i386/multiboot_elfxx.c
25523 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25525 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25530 2009-03-11 Robert Millan <rmh@aybabtu.com>
25532 * loader/i386/multiboot.c (code_size): New variable.
25533 (grub_multiboot): Define offsets by adding to `code_size' rather
25534 than subtracting from `grub_multiboot_payload_size'. Provide
25535 4-byte alignment to MBI and others by increasing
25536 `boot_loader_name_length' appropriately.
25538 * loader/i386/multiboot_elfxx.c
25539 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
25541 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
25543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
25546 2009-03-08 Robert Millan <rmh@aybabtu.com>
25548 Make loader/i386/linux.c usable on i386-pc again.
25550 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
25552 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
25555 2009-03-07 Bean <bean123ch@gmail.com>
25557 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
25560 2009-03-06 Robert Millan <rmh@aybabtu.com>
25562 Fix display issue on terminals with screen size other than 80x25
25563 (e.g. gfxterm with resolution higher than 640x480).
25565 * normal/main.c (grub_normal_init_page): Display title text in a
25566 position relative to the center of the terminal instead of relying
25567 on a hardcoded offset.
25569 2009-03-04 Robert Millan <rmh@aybabtu.com>
25571 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
25574 * Makefile.in (host_kernel): New variable.
25575 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
25576 scripts instead of just the windows one.
25577 * configure.ac: Initialize and AC_SUBST `host_kernel'.
25579 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
25583 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25584 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25585 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25588 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25590 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25592 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
25593 or if there's no space for the disk label and print the partition number on a
25596 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25598 * util/misc.c: Include <time.h>.
25599 (grub_millisleep): New function.
25601 2009-03-04 Bean <bean123ch@gmail.com>
25603 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
25604 another option -mno-red-zone.
25606 * commands/handler.c: Change module description.
25608 * kern/handler.c: Add missing space at the end of description line.
25610 * kern/list.c: Likewise.
25612 2009-03-03 Robert Millan <rmh@aybabtu.com>
25614 Move more components to the relocation area, and fix mbi pointer
25615 handling to use the destination rather than the origin (thanks to
25616 Vladimir Serbinenko for spotting).
25618 * loader/i386/multiboot.c (mbi_dest): New variable.
25619 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
25620 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
25623 2009-03-01 Bean <bean123ch@gmail.com>
25625 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
25626 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
25627 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
25628 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
25630 * loader/i386/efi/linux.c (acpi_guid): New variable.
25631 (acpi_guid): Likewise.
25632 (EBDA_SEG_ADDR): New constant.
25633 (LOW_MEM_ADDR): Likewise.
25634 (FAKE_EBDA_SEG): Likewise.
25635 (fake_bios_data): New function.
25636 (grub_linux_boot): Call fake_bios_data.
25638 2009-03-01 Bean <bean123ch@gmail.com>
25640 * commands/terminal.c: Removed.
25642 * commands/handler.c: New file.
25644 * include/grub/list.h: Likewise.
25646 * include/grub/handler.h: Likewise.
25648 * kern/list.c: Likewise.
25650 * kern/handler.c: Likewise.
25652 * kern/term.h: Include header file <grub/handler.h>.
25653 (grub_term_input): Move next field to the beginning.
25654 (grub_term_output): Likewise.
25655 (grub_term_input_class): New variable.
25656 (grub_term_output_class): Likewise.
25657 (grub_term_register_input): Changed to inline function.
25658 (grub_term_register_output): Likewise.
25659 (grub_term_unregister_input): Likewise.
25660 (grub_term_unregister_output): Likewise.
25661 (grub_term_set_current_input): Likewise.
25662 (grub_term_set_current_output): Likewise.
25663 (grub_term_get_current_input): Likewise.
25664 (grub_term_get_current_output): Likewise.
25665 (grub_term_iterate_input): Removed.
25666 (grub_term_iterate_output): Likewise.
25668 * kern/term.c (grub_term_list_input): Removed.
25669 (grub_term_list_output): Likewise.
25670 (grub_term_input_class): New variable.
25671 (grub_term_output_class): Likewise.
25672 (grub_cur_term_input): Change variable as macro.
25673 (grub_cur_term_output): Likewise.
25674 (grub_term_register_input): Removed.
25675 (grub_term_register_output): Likewise.
25676 (grub_term_unregister_input): Likewise.
25677 (grub_term_unregister_output): Likewise.
25678 (grub_term_set_current_input): Likewise.
25679 (grub_term_set_current_output): Likewise.
25680 (grub_term_iterate_input): Likewise.
25681 (grub_term_iterate_output): Likewise.
25682 (grub_term_get_current_input): Likewise.
25683 (grub_term_get_current_output): Likewise.
25685 * util/grub-editenv.c: Include header file <grub/handler.h>.
25686 (grub_term_get_current_input): Removed.
25687 (grub_term_get_current_output): Likewise.
25688 (grub_term_input_class): New variable.
25689 (grub_term_output_class): Likewise.
25691 * util/grub-fstest.c (grub_term_get_current_input): Removed.
25692 (grub_term_get_current_output): Likewise.
25693 (grub_term_input_class): New variable.
25694 (grub_term_output_class): Likewise.
25696 * util/grub-probe.c (grub_term_get_current_input): Removed.
25697 (grub_term_get_current_output): Likewise.
25698 (grub_term_input_class): New variable.
25699 (grub_term_output_class): Likewise.
25701 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
25702 (grub_term_get_current_output): Likewise.
25703 (grub_term_input_class): New variable.
25704 (grub_term_output_class): Likewise.
25706 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
25707 (terminal_mod_SOURCES): Likewise.
25708 (terminal_mod_CFLAGS): Likewise.
25709 (terminal_mod_LDFLAGS): Likewise.
25711 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
25713 (kernel_img_SOURCES): Add list.c and handler.c.
25714 (kernel_img_HEADERS): Add list.h and handler.h.
25716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25718 (kernel_mod_SOURCES): Add list.c and handler.c.
25719 (kernel_mod_HEADERS): Add list.h and handler.h.
25721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
25723 (kernel_elf_SOURCES): Add list.c and handler.c.
25724 (kernel_elf_HEADERS): Add list.h and handler.h.
25726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25728 (kernel_elf_SOURCES): Add list.c and handler.c.
25729 (kernel_elf_HEADERS): Add list.h and handler.h.
25731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25733 (kernel_mod_SOURCES): Add list.c and handler.c.
25734 (kernel_mod_HEADERS): Add list.h and handler.h.
25736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25738 (kernel_elf_SOURCES): Add list.c and handler.c.
25739 (kernel_elf_HEADERS): Add list.h and handler.h.
25741 2009-02-27 Robert Millan <rmh@aybabtu.com>
25743 Factorize elf32 / elf64 code in Multiboot loader. This will
25744 prevent it from getting out of sync again.
25746 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
25747 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
25748 grub_multiboot_load_elf64): Move from here ...
25749 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
25750 grub_multiboot_load_elf): ... to here (new file).
25752 2009-02-27 Robert Millan <rmh@aybabtu.com>
25754 * util/grub.d/10_linux.in: Rename "single-user mode" to
25757 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
25759 Don't leak in SCSI code.
25760 * disk/scsi.c (grub_scsi_close): free `scsi'.
25762 2009-02-27 Robert Millan <rmh@aybabtu.com>
25764 * loader/i386/pc/multiboot.c: Move from here ...
25765 * loader/i386/multiboot.c: ... to here. Update all users.
25767 2009-02-27 Robert Millan <rmh@aybabtu.com>
25769 Patch from Alexandre Bique <bique.alexandre@gmail.com>
25770 * util/i386/pc/grub-setup.c (setup): Fix directory path.
25772 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
25774 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
25777 2009-02-27 Robert Millan <rmh@aybabtu.com>
25779 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
25780 `0x' qualifier as 0 when base is specified as parameter).
25782 2009-02-24 Bean <bean123ch@gmail.com>
25784 * configure.ac: Check for -mcmodel=large in x86_64 target.
25786 * include/grub/efi/api.h (efi_call_10): New macro.
25787 (efi_wrap_10): New function.
25789 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
25790 (GRUB_PE32_REL_BASED_HIGH): Likewise.
25791 (GRUB_PE32_REL_BASED_LOW): Likewise.
25792 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
25793 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
25794 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
25795 (GRUB_PE32_REL_BASED_SECTION): Likewise.
25796 (GRUB_PE32_REL_BASED_REL): Likewise.
25797 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
25798 (GRUB_PE32_REL_BASED_DIR64): Likewise.
25799 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
25801 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
25804 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
25805 (efi_wrap_10): New function.
25807 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
25809 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
25810 MB/MBP model (NV chipset).
25811 (devdata_devs): Add devpath_5 to the list.
25813 * load/i386/efi/linux.c (video_base): Remove variable.
25814 (RGB_MASK): New macro.
25815 (RGB_MAGIC): Likewise.
25816 (LINE_MIN): Likewise.
25817 (LINE_MAX): Likewise.
25818 (FBTEST_STEP): Likewise.
25819 (FBTEST_COUNT): Likewise.
25820 (fb_list): New variable.
25821 (grub_find_video_card): Remove function.
25822 (find_framebuf): New function.
25823 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
25826 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
25827 problem for x86_64.
25829 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
25831 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
25833 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
25836 2009-02-22 Robert Millan <rmh@aybabtu.com>
25838 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
25839 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
25840 in our relocation, instead of using it directly from heap. Also
25841 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
25843 2009-02-21 Robert Millan <rmh@aybabtu.com>
25845 Implement USB keyboard support (based on patch by Marco Gerards)
25847 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
25848 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
25849 (usb_keyboard_mod_LDFLAGS): New variables.
25851 * term/usb_keyboard.c: New file.
25853 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25855 Corrected wrong declaration
25857 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
25859 2009-02-14 Christian Franke <franke@computer.org>
25861 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
25862 (grub_lspci_iter): Print class code and programming interface byte.
25864 2009-02-14 Christian Franke <franke@computer.org>
25866 * gendistlist.sh: Ignore `.svn' directories.
25868 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
25870 * fs/fat.c: Add 2009 to Copyright line.
25872 2009-02-14 Christian Franke <franke@computer.org>
25874 * commands/hdparm.c: New file. Provides `hdparm' command
25875 which sends ATA commands via grub_disk_ata_pass_through ().
25877 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
25879 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
25880 and <grub/cpu/io.h> to include/grub/ata.h.
25881 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
25882 (GRUB_CDROM_SECTOR_SIZE): Remove.
25883 (GRUB_ATA_*): Move to include/grub/ata.h.
25884 (GRUB_ATAPI_*): Likewise.
25885 (enum grub_ata_commands): Likewise.
25886 (enum grub_ata_timeout_milliseconds): Likewise.
25887 (struct grub_ata_device): Likewise.
25888 (grub_ata_regset): Likewise.
25889 (grub_ata_regget): Likewise.
25890 (grub_ata_regset2): Likewise.
25891 (grub_ata_regget2): Likewise.
25892 (grub_ata_check_ready): Likewise.
25893 (grub_ata_wait_not_busy): Remove static, exported in
25894 include/grub/ata.h.
25895 (grub_ata_wait_drq): Likewise.
25896 (grub_ata_pio_read): Likewise.
25898 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
25899 function for hdparm.mod.
25901 * include/grub/ata.h: New file, contains declarations from
25903 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
25905 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
25906 (grub_disk_ata_pass_through): New exported variable.
25908 * kern/disk.c (grub_disk_ata_pass_through): New variable.
25910 2009-02-13 Colin D Bennett <colin@gibibit.com>
25912 Support multiple fallback entries, and provide an API to support
25913 executing default+fallback menu entries. Renamed the `terminal' menu
25916 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
25917 variable declaration.
25918 (grub_menu_execute_callback): New structure declaration.
25919 (grub_menu_execute_callback_t): New typedef.
25920 (grub_menu_execute_with_fallback): New function declaration.
25921 (grub_menu_get_entry): Likewise.
25922 (grub_menu_get_timeout): Likewise.
25923 (grub_menu_set_timeout): Likewise.
25925 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
25927 * normal/menu.c (grub_wait_after_message): Moved to
25928 `normal/menu_text.c'.
25929 (draw_border): Likewise.
25930 (print_message): Likewise.
25931 (print_entry): Likewise.
25932 (print_entries): Likewise.
25933 (grub_menu_init_page): Likewise.
25934 (get_entry_number): Likewise.
25935 (print_timeout): Likewise.
25936 (run_menu): Likewise.
25937 (grub_menu_execute_entry): Likewise.
25938 (show_text_menu): Likewise.
25939 (get_and_remove_first_entry_number): New function.
25940 (grub_menu_execute_with_fallback): Likewise.
25941 (get_entry): Renamed to ...
25942 (grub_menu_get_entry): .. this and made it global.
25943 (get_timeout): Renamed to ...
25944 (grub_menu_get_timeout): ... this and made it global.
25945 (set_timeout): Renamed to ...
25946 (grub_menu_set_timeout): ... this and made it global.
25947 (grub_normal_terminal_menu_viewer): Renamed to ...
25948 (grub_normal_text_menu_viewer): ... this.
25950 * normal/menu_text.c: New file. Extracted text-menu-specific code
25951 from normal/menu.c.
25953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
25954 (normal_mod_SOURCES): Likewise.
25956 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25957 (normal_mod_SOURCES): Likewise.
25959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25960 (normal_mod_SOURCES): Likewise.
25962 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
25963 (normal_mod_SOURCES): Likewise.
25965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25966 (normal_mod_SOURCES): Likewise.
25968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25969 (normal_mod_SOURCES): Likewise.
25971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25972 (normal_mod_SOURCES): Likewise.
25974 2009-02-11 Robert Millan <rmh@aybabtu.com>
25976 * util/grub.d/00_header.in: Update old reference to `font' command.
25978 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
25980 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
25982 Based on patch from Javier Martín.
25984 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25986 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
25987 to avoid false positives with FAT.
25988 (grub_fstest_SOURCES): Likewise.
25989 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25992 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25993 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25994 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25996 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25998 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
25999 bpb.version_specific.fat12_or_fat16.fstype and
26000 bpb.version_specific.fat32.fstype.
26002 2009-02-08 Robert Millan <rmh@aybabtu.com>
26004 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26006 2009-02-08 Robert Millan <rmh@aybabtu.com>
26008 * Makefile.in (host_os, host_cpu): New variables.
26009 (target_os): Remove. Update all users.
26011 2009-02-08 Marco Gerards <marco@gnu.org>
26013 * Makefile.in (enable_grub_emu_usb): New variable.
26014 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26015 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26016 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26017 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26018 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26019 `usbtest.mod' and `usbms.mod'.
26020 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26021 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26022 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26023 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26024 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26027 * disk/usbms.c: New file.
26029 * include/grub/usb.h: Likewise.
26031 * include/grub/usbtrans.h: Likewise.
26033 * include/grub/usbdesc.h: Likewise.
26035 * bus/usb/usbtrans.c: Likewise.
26037 * bus/usb/ohci.c: Likewise.
26039 * bus/usb/uhci.c: Likewise.
26041 * bus/usb/usbhub.c: Likewise.
26043 * bus/usb/usb.c: Likewise.
26045 * commands/usbtest.c: Likewise.
26047 * util/usb.c: Likewise.
26049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26051 * configure.ac: Test for libusb presence.
26053 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26055 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26057 * kern/mm.c: Add more comments.
26059 2009-02-08 Robert Millan <rmh@aybabtu.com>
26061 Patch from Javier Martín.
26062 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26063 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26065 2009-02-08 Robert Millan <rmh@aybabtu.com>
26067 * fs/cpio.c: Split tar functionality to ...
26068 * fs/tar.c: ... here (new file). Update all users.
26070 2009-02-07 Robert Millan <rmh@aybabtu.com>
26072 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26073 backward-incompatible features.
26075 Based on patch from Javier Martín, with some adjustments.
26077 2009-02-07 Michael Scherer <misc@mandriva.org>
26079 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26081 2009-02-07 Robert Millan <rmh@aybabtu.com>
26083 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26084 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26085 after the RAID stuff.
26087 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26089 Fixes problem when running vbetest command as reported by
26090 Vladimir Serbinenko <phcoder@gmail.com>.
26092 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26094 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26096 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26097 /dev/md/NpN style mdraid devices.
26099 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26101 * util/unifont2pff.rb: Remove.
26103 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26108 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26116 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26118 2009-02-02 Christian Franke <franke@computer.org>
26120 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26122 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26124 * INSTALL: Note that we now require at least autoconf 2.59 and
26125 that LZO is optional.
26127 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26129 Base on patch on bug #24154 created by Tomas Tintera
26130 <trosos@seznam.cz>.
26132 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26134 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26136 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26137 <bero@arklinux.org>.
26139 * normal/parser.y (script_init): Add missing semicolon.
26141 2009-01-31 Colin D Bennett <colin@gibibit.com>
26143 * normal/main.c: Add include to grub/menu_viewer.h.
26144 (free_menu_entry_classes): Added.
26145 (grub_normal_menu_addentry): Added class property handling.
26146 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26147 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26149 * normal/menu_viewer.c: New file.
26151 * normal/menu.c (run_menu_entry): Renamed to ...
26152 (grub_menu_execute_entry): ... this and made it as global.
26153 (grub_menu_run): Renamed to ...
26154 (show_text_menu): ... this and made it local.
26155 (show_text_menu): Adapt to new function names.
26156 (grub_normal_terminal_menu_viewer): New global variable.
26158 * include/grub/menu.h: New file.
26160 * include/grub/menu_viewer.h: New file.
26162 * include/grub/normal.h: Added include to grub/menu.h.
26163 (grub_menu_entry): Moved to include/grub/menu.h.
26164 (grub_menu_entry_t): Likewise.
26165 (grub_menu): Likewise.
26166 (grub_menu_t): Likewise.
26167 (grub_normal_terminal_menu_viewer): Added.
26168 (grub_menu_execute_entry): Likewise.
26169 (grub_menu_run): Removed.
26171 * DISTLIST: Added include/grub/menu.h.
26172 Added include/grub/menu_viewer.h.
26173 Added normal/menu_viewer.c.
26175 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26177 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26178 arglist for menutitle arguments.
26180 * normal/main.c (grub_normal_menu_addentry): Likewise.
26182 * normal/parser.y (menuentry): Likewise.
26184 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26186 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26187 (grub_script_create_cmdmenu): Likewise.
26189 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26191 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26194 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26196 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26198 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26200 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26202 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26204 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26206 2009-01-30 Christian Franke <franke@computer.org>
26208 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26209 in option help text.
26211 2009-01-27 Pavel Roskin <proski@gnu.org>
26213 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26215 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26217 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26219 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26221 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26222 unregister function.
26224 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26226 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26228 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26230 * util/grub-mkfont.c (usage): Fix typo.
26232 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26234 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26236 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26238 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26240 * kern/misc.c (grub_strcasecmp): New function.
26241 (grub_strcasecmp): Use grub_size_t instead of int for length.
26243 * include/grub/misc.h: Update function prototypes.
26245 2009-01-26 Robert Millan <rmh@aybabtu.com>
26247 * configure.ac: Fix cross-compilation check.
26249 2009-01-22 Christian Franke <franke@computer.org>
26251 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
26252 (precision) digit string. Allow `.format2' without `format1' (width).
26253 Limit input chars for `%s' output to `format2' if specified. This is
26254 compatible with standard printf ().
26256 2009-01-22 Christian Franke <franke@computer.org>
26258 * disk/ata.c (grub_ata_wait_status): Replace by ...
26259 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
26260 other status bits may be invalid while BSY is asserted.
26261 (grub_ata_check_ready): New function.
26262 (grub_ata_cmd): Removed.
26263 (grub_ata_wait_drq): New function.
26264 (grub_ata_strncpy): Remove inline.
26265 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
26266 and error check now done by grub_ata_wait_drq ().
26267 (grub_ata_pio_write): Likewise.
26268 (grub_atapi_identify): Set DEV before check for !BSY. Use
26269 grub_ata_wait_drq () to wait for data.
26270 (grub_ata_device_initialize): Add status register check to
26271 detect missing SATA slave devices. Add debug messages.
26272 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
26273 (grub_atapi_packet): Set DEV before check for !BSY. Replace
26274 transfer loop by grub_ata_pio_write ().
26275 (grub_ata_identify): Set DEV before check for !BSY. Use
26276 grub_ata_wait_drq () to wait for data.
26277 (grub_ata_setaddress): Set DEV before check for !BSY.
26278 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
26279 read/write in one loop. Fix invalid command on write. Fix incomplete
26280 command on (size % batch) == 0. Add missing error check after write of
26281 last block. Add debug messages.
26282 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
26284 2009-01-19 Christian Franke <franke@computer.org>
26286 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
26287 (GRUB_ATAPI_IREASON_*): Likewise.
26288 (grub_ata_pio_write): Fix timeout error return.
26289 (grub_atapi_identify): Add grub_ata_wait () after cmd.
26290 (grub_atapi_wait_drq): New function.
26291 (grub_atapi_packet): New parameter `size'.
26292 Use grub_atapi_wait_drq () and direct write instead of
26293 grub_ata_pio_write ().
26294 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
26295 reads the number of bytes requested by the device for each DRQ
26297 (grub_atapi_write): Remove old implementation, return not
26298 implemented instead.
26300 2009-01-19 Christian Franke <franke@computer.org>
26302 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
26303 of 512 to calculate data size.
26304 (grub_scsi_read12): Likewise.
26305 (grub_scsi_write10): Likewise.
26306 (grub_scsi_write12): Likewise.
26307 (grub_scsi_read): Adjust size according to blocksize.
26308 Add checks for invalid blocksize and unaligned transfer.
26310 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
26312 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
26314 * term/gfxterm.c (write_char): Fix background rendering for wide
26317 2009-01-19 Robert Millan <rmh@aybabtu.com>
26319 * config.guess: Update to latest version from config git.
26320 * config.sub: Likewise.
26322 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
26324 * Makefile.in: Change font compilation to use new grub-mkfont instead
26327 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
26328 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26329 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26330 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26331 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26332 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26333 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26334 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26335 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26337 2009-01-16 Christian Franke <franke@computer.org>
26339 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
26340 (enum grub_ata_timeout_milliseconds): New enum.
26341 (grub_ata_wait_status): Add parameter milliseconds.
26342 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
26343 recovery from timed-out commands.
26344 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
26345 return grub_errno instead of REG_ERROR.
26346 (grub_ata_pio_write): Add parameter milliseconds.
26347 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
26348 Pass milliseconds to grub_ata_wait_status () and
26349 grub_ata_pio_read ().
26350 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
26351 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
26352 grub_ata_wait_status (). Fix IDENTIFY timeout check.
26353 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
26354 It is not suitable for device detection, because DEV bit is ignored,
26355 the command may run too long, and not all devices set the signature
26357 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
26358 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
26359 Fix device selection, DEV bit must be set first to address the registers
26360 of the correct device.
26361 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
26362 grub_ata_pio_read/write ().
26363 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
26364 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
26366 2009-01-13 Carles Pina i Estany <carles@pina.cat>
26368 * util/grub-editenv.c (main): Use fseeko(), not fseek().
26370 2009-01-13 Bean <bean123ch@gmail.com>
26372 * util/grub-mkfont.c (write_font): forget to remove some debug code.
26374 2009-01-13 Bean <bean123ch@gmail.com>
26376 * Makefile.in: (enable_grub_mkfont): New variable.
26377 (freetype_cflags): Likewise.
26378 (freetype_libs): Likewise.
26380 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
26381 (grub_mkfont_SOURCES): New variable.
26382 (grub_mkfont_CFLAGS): Likewise.
26383 (grub_mkfont_LDFLAGS): Likewise.
26385 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
26386 library if `--enable-grub-mkfont' is requested.
26387 (enable_grub_mkfont): New variable.
26388 (freetype_cflags): Likewise.
26389 (freetype_libs): Likewise.
26391 * util/grub-mkfont.c: New file.
26393 2009-01-12 Christian Franke <franke@computer.org>
26395 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
26396 mode check. Fix setting of compat_use[].
26398 2009-01-10 Robert Millan <rmh@aybabtu.com>
26400 Update a few copyright years which we forgot to do in 2008 (only for
26401 files whose changes made in 2008 were copyright-significant)
26403 * Makefile.in: Add 2008 to Copyright line.
26404 * disk/ieee1275/ofdisk.c: Likewise.
26405 * disk/efi/efidisk.c: Likewise.
26406 * kern/dl.c: Likewise.
26407 * kern/sparc64/ieee1275/init.c: Likewise.
26408 * kern/mm.c: Likewise.
26409 * kern/efi/mm.c: Likewise.
26410 * boot/i386/pc/boot.S: Likewise.
26411 * genfslist.sh: Likewise.
26412 * fs/iso9660.c: Likewise.
26413 * fs/hfs.c: Likewise.
26414 * fs/jfs.c: Likewise.
26415 * fs/minix.c: Likewise.
26416 * fs/ufs.c: Likewise.
26417 * gensymlist.sh.in: Likewise.
26418 * genkernsyms.sh.in: Likewise.
26419 * include/grub/misc.h: Likewise.
26420 * include/grub/types.h: Likewise.
26421 * include/grub/symbol.h: Likewise.
26422 * include/grub/elf.h: Likewise.
26423 * include/grub/kernel.h: Likewise.
26424 * include/grub/disk.h: Likewise.
26425 * include/grub/dl.h: Likewise.
26426 * include/grub/i386/linux.h: Likewise.
26427 * include/grub/i386/pc/biosdisk.h: Likewise.
26428 * include/grub/efi/api.h: Likewise.
26429 * include/grub/efi/pe32.h: Likewise.
26430 * include/grub/util/misc.h: Likewise.
26431 * normal/execute.c: Likewise.
26432 * normal/arg.c: Likewise.
26433 * normal/completion.c: Likewise.
26434 * normal/lexer.c: Likewise.
26435 * normal/parser.y: Likewise.
26436 * normal/misc.c: Likewise.
26437 * commands/i386/pc/vbeinfo.c: Likewise.
26438 * commands/hexdump.c: Likewise.
26439 * commands/terminal.c: Likewise.
26440 * commands/ls.c: Likewise.
26441 * commands/help.c: Likewise.
26442 * partmap/pc.c: Likewise.
26443 * loader/efi/chainloader.c: Likewise.
26444 * loader/multiboot_loader.c: Likewise.
26445 * loader/i386/pc/multiboot2.c: Likewise.
26446 * term/efi/console.c: Likewise.
26447 * term/i386/pc/serial.c: Likewise.
26448 * util/lvm.c: Likewise.
26449 * util/console.c: Likewise.
26450 * util/i386/efi/grub-mkimage.c: Likewise.
26451 * util/raid.c: Likewise.
26453 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
26455 * commands/videotest.c: Removed include to grub/machine/memory.h.
26457 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
26458 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
26459 (video_mod_SOURCES): Removed.
26460 (video_mod_CFLAGS): Likewise.
26461 (video_mod_LDFLAGS): Likewise.
26462 (gfxterm_mod_SOURCES): Likewise.
26463 (gfxterm_mod_CFLAGS): Likewise.
26464 (gfxterm_mod_LDFLAGS): Likewise.
26465 (videotest_mod_SOURCES): Likewise.
26466 (videotest_mod_CFLAGS): Likewise.
26467 (videotest_mod_LDFLAGS): Likewise.
26468 (bitmap_mod_SOURCES): Likewise.
26469 (bitmap_mod_CFLAGS): Likewise.
26470 (bitmap_mod_LDFLAGS): Likewise.
26471 (tga_mod_SOURCES): Likewise.
26472 (tga_mod_CFLAGS): Likewise.
26473 (tga_mod_LDFLAGS): Likewise.
26474 (jpeg_mod_SOURCES): Likewise.
26475 (jpeg_mod_CFLAGS): Likewise.
26476 (jpeg_mod_LDFLAGS): Likewise.
26477 (png_mod_SOURCES): Likewise.
26478 (png_mod_CFLAGS): Likewise.
26479 (png_mod_LDFLAGS): Likewise.
26481 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
26482 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
26483 (video_mod_SOURCES): Added.
26484 (video_mod_CFLAGS): Likewise.
26485 (video_mod_LDFLAGS): Likewise.
26486 (videotest_mod_SOURCES): Likewise.
26487 (videotest_mod_CFLAGS): Likewise.
26488 (videotest_mod_LDFLAGS): Likewise.
26489 (bitmap_mod_SOURCES): Likewise.
26490 (bitmap_mod_CFLAGS): Likewise.
26491 (bitmap_mod_LDFLAGS): Likewise.
26492 (tga_mod_SOURCES): Likewise.
26493 (tga_mod_CFLAGS): Likewise.
26494 (tga_mod_LDFLAGS): Likewise.
26495 (jpeg_mod_SOURCES): Likewise.
26496 (jpeg_mod_CFLAGS): Likewise.
26497 (jpeg_mod_LDFLAGS): Likewise.
26498 (png_mod_SOURCES): Likewise.
26499 (png_mod_CFLAGS): Likewise.
26500 (png_mod_LDFLAGS): Likewise.
26501 (gfxterm_mod_SOURCES): Likewise.
26502 (gfxterm_mod_CFLAGS): Likewise.
26503 (gfxterm_mod_LDFLAGS): Likewise.
26505 * term/gfxterm.c: Removed include to grub/machine/memory.h,
26506 grub/machine/console.h.
26508 2009-01-04 Jerone Young <jerone@gmail.com>
26510 Make on screen instructions clearer
26512 Based on patch created by Jidanni <jidanni@jidanni.org>
26514 * normal/menu.c: print clearer instructions on the screen
26516 2009-01-02 Colin D Bennett <colin@gibibit.com>
26520 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
26521 build system and fixed gfxterm.c to work with different sized fonts.
26523 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26525 * configure: Re-generated.
26527 * DISTLIST: Removed font/manager.c.
26529 Added font/font_cmd.c.
26531 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26534 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
26536 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
26538 * kern/term.c: Changed users of grub_utf8_to_ucs4.
26540 * normal/menu.c: Likewise.
26542 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
26543 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
26545 * include/grub/font.h: Replaced with new file.
26547 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
26548 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
26549 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
26550 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
26551 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
26552 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
26553 fg_red, fg_green, fg_blue, fg_alpha.
26554 (grub_video_adapter): Removed blit_glyph.
26555 (grub_video_blit_glyph): Removed.
26557 * font/manager.c: Removed file.
26559 * font/font.c: New file.
26561 * font/font_cmd.c: Likewise.
26563 * video/video.c (grub_video_blit_glyph): Removed.
26565 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
26566 (grub_video_vbe_map_rgba): Likewise.
26567 (grub_video_vbe_unmap_color_int): Likewise.
26568 (grub_video_vbe_blit_glyph): Removed.
26569 (grub_video_vbe_adapter): Removed blit_glyph.
26571 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
26572 (get_pixel): Likewise.
26573 (set_pixel): Likewise.
26575 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
26577 * term/gfxterm.c: Adapted to new font engine.
26579 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
26581 * term/i386/pc/vga.c: Likewise.
26583 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
26585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26591 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26593 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26595 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26597 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26599 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26601 * util/grub.d/00_header.in: Changed to use new loadfont command.
26603 * util/grub-mkconfig_lib.in: Changed font extension.
26605 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
26607 * util/getroot.c (grub_util_get_grub_dev): Add support for
26608 /dev/md/dNNpNN style partitionable mdraid devices.
26610 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
26612 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
26613 at a time limit of the PXE TFTP API correctly.
26614 (grub_pxefs_close): Likewise.
26616 2008-11-29 Robert Millan <rmh@aybabtu.com>
26618 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
26619 grub_ata_device_initialize() calls.
26621 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
26623 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
26625 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
26627 2008-11-28 Robert Millan <rmh@aybabtu.com>
26629 Fix build on powerpc-ieee1275. Based on patch created by
26630 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
26631 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26632 `kern/ieee1275/mmap.c'.
26633 * include/grub/powerpc/ieee1275/memory.h: New file.
26635 Provide grub-install on coreboot.
26636 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
26637 (grub_install_SOURCES): New variable.
26638 * util/i386/pc/grub-install.in: Add a few condition checks to make it
26639 usable on coreboot.
26641 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
26643 * util/grub-fstest.c (grub_term_get_current_input): Change return type
26644 to `grub_term_input_t'.
26645 (grub_term_get_current_output): Change return type to
26646 `grub_term_output_t'.
26648 2008-11-22 Robert Millan <rmh@aybabtu.com>
26650 Fix breakage on coreboot due to declaration mismatch.
26651 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
26652 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
26653 grub_vga_text_cls().
26655 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
26656 comments. Avoid copying one more byte than necessary (just in case).
26658 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
26659 to 0x200000 (avoids trouble with some OFW implementations, and matches
26660 with the one in Yaboot).
26661 Reported by Manoel Abranches
26663 2008-11-20 Robert Millan <rmh@aybabtu.com>
26665 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
26666 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
26668 * util/grub-mkconfig_lib.in (grub_warn): New function.
26669 (convert_system_path_to_grub_path): Use grub_warn() when issuing
26670 warnings, to obtain consistent formatting.
26671 * util/grub.d/00_header.in: Likewise.
26672 * util/update-grub_lib.in: Likewise.
26674 * loader/i386/linux.c (allocate_pages): Fix a warning.
26675 Move comment text to `#error' stanza.
26677 Harmonize ieee1275's grub_available_iterate() with the generic
26678 grub_machine_mmap_iterate() interface (fixes a recently-introduced
26679 build problem on i386-ieee1275):
26680 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
26681 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
26682 parameter `type'. Update all users of this function.
26683 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
26684 `kern/ieee1275/mmap.c'.
26685 * kern/ieee1275/init.c
26686 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
26688 (grub_machine_mmap_iterate): ... this.
26689 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
26690 return type to `grub_err_t'. Update all implementations of this
26691 function prototype.
26692 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
26695 Add `lsmmap' command (lists firmware-provided memory map):
26696 * commands/lsmmap.c: New file.
26697 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
26698 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
26700 * conf/powerpc-ieee1275.rmk: Likewise.
26701 * conf/i386-coreboot.rmk: Likewise.
26702 * conf/i386-ieee1275.rmk: Likewise.
26704 2008-11-19 Robert Millan <rmh@aybabtu.com>
26706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
26707 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
26708 constraints to initrd allocation (based on code from
26709 loader/i386/pc/linux.c). Without them, initrd was allocated too high
26710 for Linux to find it.
26712 2008-11-14 Robert Millan <rmh@aybabtu.com>
26714 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
26715 order to cope with duplicate slashes.
26717 2008-11-14 Robert Millan <rmh@aybabtu.com>
26719 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
26720 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
26721 don't want to mess with lower memory, because it is used in the Linux
26724 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
26725 an appropriate place in lower memory, between 0x10000 and 0x90000,
26726 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
26727 is in our heap (probably as a result of it being corrupted during
26728 decompression). Add #error instance with comment to explain why this
26729 loader isn't currently usable on PC/BIOS.
26731 2008-11-14 Robert Millan <rmh@aybabtu.com>
26733 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
26734 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
26736 2008-11-12 Robert Millan <rmh@aybabtu.com>
26738 Make loader/i386/linux.c buildable on i386-pc (although disabled).
26740 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
26741 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
26743 * include/grub/i386/pc/memory.h: ... to here.
26745 2008-11-12 Robert Millan <rmh@aybabtu.com>
26747 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
26750 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
26751 (grub_console_cur_color, grub_console_real_putchar)
26752 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26753 (grub_console_setcolorstate, grub_console_setcolor)
26754 (grub_console_getcolor): Move from here ...
26755 * include/grub/i386/vga_common.h: ... to here (new file).
26757 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
26758 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
26759 `<grub/i386/io.h>'.
26760 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
26761 `<grub/i386/vga_common.h>'.
26763 2008-11-12 Robert Millan <rmh@aybabtu.com>
26765 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
26766 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
26767 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
26769 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26770 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
26772 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
26773 grub_console_init() with call to grub_vga_text_init().
26774 (grub_machine_fini): Replace call to
26775 grub_console_fini() with call to grub_vga_text_fini() and
26776 grub_at_keyboard_fini().
26778 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
26779 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26780 (grub_console_setcolorstate, grub_console_setcolor)
26781 (grub_console_getcolor): New function prototypes.
26783 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
26784 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
26785 (grub_vga_text_setcursor): Static-ize.
26786 (grub_vga_text_term): New structure.
26787 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
26789 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
26790 (grub_console_cur_color, grub_console_standard_color)
26791 (grub_console_normal_color, grub_console_highlight_color)
26792 (map_char, grub_console_putchar, grub_console_getcharwidth)
26793 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
26794 (grub_console_getcolor): Move from here ...
26795 * term/i386/vga_common.c: ... to here (same function names).
26797 2008-11-12 Robert Millan <rmh@aybabtu.com>
26799 Use newly-added Multiboot support in coreboot.
26801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26802 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
26804 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
26805 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
26806 (codestart): Store the MBI in `startup_multiboot_info' when we're
26807 being loaded using Multiboot.
26809 * kern/i386/coreboot/init.c (grub_machine_init): Move
26810 grub_at_keyboard_init() call to beginning of function (useful for
26811 debugging). Call grub_machine_mmap_init() before attempting to use
26812 grub_machine_mmap_iterate().
26813 (grub_lower_mem, grub_upper_mem): Move from here ...
26814 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
26817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
26818 function prototype.
26820 2008-11-12 Robert Millan <rmh@aybabtu.com>
26822 Fix a regression introduced by the at_keyboard.mod split. Because
26823 some terminals are default on some platforms and non-default on
26824 others, the first terminal being registered determines which is
26825 going to be default.
26827 * kern/term.c (grub_term_register_input): If this is the first
26828 terminal being registered, set it as the current one.
26829 (grub_term_register_output): Likewise.
26831 * term/efi/console.c (grub_console_init): Do not call
26832 grub_term_set_current_output() or grub_term_set_current_input().
26833 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
26834 * term/i386/pc/console.c (grub_console_init): Likewise.
26835 (grub_console_fini): Do not call grub_term_set_current_input()
26836 (but leave grub_term_set_current_output() to restore text mode).
26838 2008-11-10 Robert Millan <rmh@aybabtu.com>
26840 * util/grub.d/00_header.in: Add backward compatibility check for
26841 versions of terminal.mod that don't understand `terminal_input' or
26844 2008-11-09 Robert Millan <rmh@aybabtu.com>
26846 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
26847 `terminal_input' / `terminal_output', not `terminal'.
26849 2008-11-08 Robert Millan <rmh@aybabtu.com>
26851 * Makefile.in (include_DATA): Fix srcdir=. assumption.
26852 (DISTCLEANFILES): Add `build_env.mk'.
26854 2008-11-08 Robert Millan <rmh@aybabtu.com>
26856 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
26857 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
26858 members. Update all users.
26859 * util/console.c (grub_ncurses_term): Split in ...
26860 (grub_ncurses_term_input): ... this, and ...
26861 (grub_ncurses_term_output): ... this. Update all users.
26862 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
26864 2008-11-08 Robert Millan <rmh@aybabtu.com>
26866 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
26867 (PKGDATA): Add $(pkgdata_SRCDIR).
26868 (pkglib_BUILDDIR): New variable.
26869 (pkgdata_SRCDIR): New variable.
26870 (build_env.mk): New target.
26871 (include_DATA): New variable.
26872 (install-local): Install $(include_DATA) files in $(includedir).
26874 2008-11-07 Pavel Roskin <proski@gnu.org>
26876 * gendistlist.sh: Use C locale for sorting to ensure consistent
26877 output on all systems.
26879 * util/grub.d/00_header.in: Remove incorrect space before
26882 2008-11-07 Robert Millan <rmh@aybabtu.com>
26884 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
26886 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
26887 * loader/multiboot_loader.c (find_multi_boot2_header): New function
26888 (based on find_multi_boot1_header).
26889 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
26890 using find_multi_boot2_header(), and abort if neither Multiboot or
26891 Multiboot headers were found.
26893 2008-11-07 Robert Millan <rmh@aybabtu.com>
26895 Modularize at_keyboard.mod:
26897 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
26898 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26899 (at_keyboard_mod_LDFLAGS): New variables.
26901 Actual terminal split:
26903 * include/grub/term.h (struct grub_term): Split in ...
26904 (struct grub_term_input): ... this, and ...
26905 (struct grub_term_output): ... this. Update all users.
26906 (grub_term_set_current): Split in ...
26907 (grub_term_set_current_input): ... this, and ...
26908 (grub_term_set_current_output): ... this.
26909 (grub_term_get_current): Split in ...
26910 (grub_term_get_current_input): ... this, and ...
26911 (grub_term_get_current_output): ... this.
26912 (grub_term_register): Split in ...
26913 (grub_term_register_input): ... this, and ...
26914 (grub_term_register_output): ... this.
26915 (grub_term_unregister): Split in ...
26916 (grub_term_unregister_input): ... this, and ...
26917 (grub_term_unregister_output): ... this.
26918 (grub_term_iterate): Split in ...
26919 (grub_term_iterate_input): ... this, and ...
26920 (grub_term_iterate_output): ... this.
26922 * kern/term.c (grub_term_list): Split in ...
26923 (grub_term_list_input): ... this, and ...
26924 (grub_term_list_output): ... this. Update all users.
26925 (grub_cur_term): Split in ...
26926 (grub_cur_term_input): ... this, and ...
26927 (grub_cur_term_output): ... this. Update all users.
26928 (grub_term_set_current): Split in ...
26929 (grub_term_set_current_input): ... this, and ...
26930 (grub_term_set_current_output): ... this.
26931 (grub_term_get_current): Split in ...
26932 (grub_term_get_current_input): ... this, and ...
26933 (grub_term_get_current_output): ... this.
26934 (grub_term_register): Split in ...
26935 (grub_term_register_input): ... this, and ...
26936 (grub_term_register_output): ... this.
26937 (grub_term_unregister): Split in ...
26938 (grub_term_unregister_input): ... this, and ...
26939 (grub_term_unregister_output): ... this.
26940 (grub_term_iterate): Split in ...
26941 (grub_term_iterate_input): ... this, and ...
26942 (grub_term_iterate_output): ... this.
26944 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
26945 a check for input and one for output (and only attempt to get keys
26946 from user when input works).
26948 * util/grub-probe.c (grub_term_get_current): Split in ...
26949 (grub_term_get_current_input): ... this, and ...
26950 (grub_term_get_current_output): ... this.
26951 * util/grub-fstest.c: Likewise.
26952 * util/i386/pc/grub-setup.c: Likewise.
26953 * util/grub-editenv.c: Likewise.
26955 Portability adjustments:
26957 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
26958 `term/i386/pc/at_keyboard.c'.
26959 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
26960 grub_keyboard_controller_init() (now handled by terminal .init).
26961 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
26962 grub_at_keyboard_init().
26963 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
26964 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
26965 at_keyboard.mod via input terminal interface).
26966 * include/grub/i386/coreboot/console.h: Convert into a stub for
26967 `<grub/i386/pc/console.h>'.
26969 Migrate full terminals to new API:
26971 * term/efi/console.c (grub_console_term): Split into ...
26972 (grub_console_term_input): ... this, and ...
26973 (grub_console_term_output): ... this. Update all users.
26974 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
26975 (grub_ofconsole_init): Split into ...
26976 (grub_ofconsole_init_input): ... this, and ...
26977 (grub_ofconsole_init_output): ... this.
26978 (grub_ofconsole_term): Split into ...
26979 (grub_ofconsole_term_input): ... this, and ...
26980 (grub_ofconsole_term_output): ... this. Update all users.
26981 * term/i386/pc/serial.c (grub_serial_term): Split into ...
26982 (grub_serial_term_input): ... this, and ...
26983 (grub_serial_term_output): ... this. Update all users.
26984 * term/i386/pc/console.c (grub_console_term): Split into ...
26985 (grub_console_term_input): ... this, and ...
26986 (grub_console_term_output): ... this. Update all users.
26987 (grub_console_term_input): Only enable it on PC/BIOS platform.
26988 (grub_console_init): Remove grub_keyboard_controller_init() call.
26990 Migrate input terminals to new API:
26992 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
26993 `i386' and `i386/pc' to enable build on x86_64 (this driver is
26994 i386-specific anyway).
26995 (grub_console_checkkey): Rename to ...
26996 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
26998 (grub_keyboard_controller_orig): New variable.
26999 (grub_console_getkey): Rename to ...
27000 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27002 (grub_keyboard_controller_init): Static-ize. Save original
27003 controller value so that it can be restored ...
27004 (grub_keyboard_controller_fini): ... here (new function).
27005 (grub_at_keyboard_term): New structure.
27006 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27009 Migrate output terminals to new API:
27011 * term/i386/pc/vga.c (grub_vga_term): Change type to
27012 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27013 members. Update all users.
27014 * term/gfxterm.c (grub_video_term): Change type to
27015 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27016 members. Update all users.
27017 * include/grub/i386/pc/console.h (grub_console_checkkey)
27018 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27021 Migrate `terminal' command and userland tools to new API:
27023 * commands/terminal.c (grub_cmd_terminal): Split into ...
27024 (grub_cmd_terminal_input): ... this, and ...
27025 (grub_cmd_terminal_output): ... this.
27026 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27027 `terminal_input' and `terminal_output'.
27028 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27029 `terminal_input' / `terminal_output' API.
27030 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27031 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27032 provided ${GRUB_TERMINAL}, convert it).
27034 2008-11-04 Robert Millan <rmh@aybabtu.com>
27036 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27038 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27040 2008-11-03 Bean <bean123ch@gmail.com>
27042 * kern/elf.c (grub_elf32_load): Revert to previous code.
27043 (grub_elf64_load): Likewise.
27045 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27047 2008-11-01 Robert Millan <rmh@aybabtu.com>
27049 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27050 (TARGET_CPPFLAGS): Likewise.
27051 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27053 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27055 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27057 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27059 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27060 addition of objects until the code is not going to be able to fail.
27062 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27064 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27065 (add a missing NULL check, and correct them by moving the pointer
27066 operations after the actual check).
27068 2008-10-29 Robert Millan <rmh@aybabtu.com>
27070 * util/i386/pc/grub-install.in: Handle empty string as output from
27071 make_system_path_relative_to_its_root().
27073 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27075 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27076 circular metadata worst case scenario. If the metadata is circular
27077 then copy the wrap in place.
27078 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27079 project lib/format_text/layout.h
27080 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27082 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27084 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27086 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27088 * util/update-grub_lib.in: Mention filename in warning message.
27090 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27092 * NEWS: Update for rename of update-grub to grub-mkconfig.
27094 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27096 * util/update-grub_lib.in: Copy to ...
27097 * util/grub-mkconfig_lib.in: ... this. Update all users.
27098 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27099 * util/update-grub.in: Rename to ...
27100 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27101 option. Add `--output' option to allow users to specify the generated
27102 configuration file. Default to stdout.
27103 (update_grub_dir): Rename to ...
27104 (grub_mkconfig_dir): ... this.
27105 (grub_cfg): Default to an empty string.
27106 * conf/common.rmk (update-grub): Rename to ...
27107 (grub-mkconfig): ... this.
27108 (update-grub_lib): Copy to ...
27109 (grub-mkconfig_lib): ... this.
27110 (update-grub_SCRIPTS): Copy to ...
27111 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27112 (update-grub_DATA): Rename to ...
27113 (grub-mkconfig_DATA): ... this.
27115 2008-09-28 Robert Millan <rmh@aybabtu.com>
27117 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27118 to `modified'. Add the real `created' field.
27119 (grub_iso9660_uuid): Use `modified' rather than `created' for
27120 constructing the UUID.
27122 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27124 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27125 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27127 2008-09-28 Bean <bean123ch@gmail.com>
27129 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27130 Thanks to Christian Franke for finding this bug.
27132 2008-09-25 Robert Millan <rmh@aybabtu.com>
27134 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27135 instances of grub_util_get_disk_name() (see previous commit).
27137 2008-09-25 Robert Millan <rmh@aybabtu.com>
27139 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27140 `util/i386/get_disk_name.c'.
27141 * conf/i386-efi.rmk: Likewise.
27142 * conf/x86_64-efi.rmk: Likewise.
27143 * conf/i386-coreboot.rmk: Likewise.
27144 * conf/i386-ieee1275.rmk: Likewise.
27145 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27146 `util/ieee1275/get_disk_name.c'.
27147 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27148 * util/ieee1275/get_disk_name.c: Remove file.
27149 * util/i386/get_disk_name.c: Remove file.
27150 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27151 "hd%d" for device.map entries, rather than using
27152 grub_util_get_disk_name().
27154 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27156 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27158 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27160 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27162 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27164 (GRUB_TERM_PPAGE): Changed to 0x4900.
27166 2008-09-24 Robert Millan <rmh@aybabtu.com>
27168 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27169 macros (they were i386-pc specific).
27170 * include/grub/sparc64/ieee1275/console.h: Likewise.
27171 * include/grub/efi/console.h: Likewise.
27173 2008-09-22 Bean <bean123ch@gmail.com>
27175 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27176 resident and in attribute list.
27178 * include/grub/ntfs.h (BMP_LEN): Removed.
27180 2008-09-22 Bean <bean123ch@gmail.com>
27182 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27183 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27185 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27186 error occurs, as grub_disk_open will call grub_disk_close, which will
27187 call p->close (scsi).
27189 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27191 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27192 (AC_PREREQ): Bumped to 2.59.
27193 (AC_TRY_COMPILE): Replace obsolete macro with ...
27194 (AC_COMPILE_IFELSE): ... this.
27195 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27196 (AC_LINK_IFELSE): ... this.
27198 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27200 * autogen.sh: Add a call to `gendistlist.sh'.
27202 2008-09-19 Christian Franke <franke@computer.org>
27204 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27205 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27206 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27207 Export __enable_execute_stack() to modules.
27208 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27211 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27213 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27216 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27218 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27219 #include <grub/util/hostdisk.h>.
27221 2008-09-08 Robert Millan <rmh@aybabtu.com>
27223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27224 segments when their filesz is zero (grub_file_read() interprets
27225 zero-size as "read until EOF", which results in memory corruption).
27226 Use `lowest_segment' rather than 0 for calculating the current
27227 segment load address.
27229 2008-09-08 Robert Millan <rmh@aybabtu.com>
27231 * util/hostdisk.c (open_device): Replace a grub_util_info() call
27232 with grub_dprintf("hostdisk", ...), as it was so verbose that it
27233 clobbered useful information.
27235 2008-09-08 Robert Millan <rmh@aybabtu.com>
27237 * include/grub/util/biosdisk.h: Move to ...
27238 * include/grub/util/hostdisk.h: ... here. Update all users.
27239 * util/biosdisk.c: Move to ...
27240 * util/hostdisk.c: ... here. Update all users.
27242 2008-09-07 Robert Millan <rmh@aybabtu.com>
27244 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27246 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
27247 and length can be stored directly in the `mbi->mmap_addr' and
27248 `mbi->mmap_length' struct fields.
27250 2008-09-07 Robert Millan <rmh@aybabtu.com>
27252 * conf/i386.rmk: New file. Provides declaration for building
27254 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27255 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27257 Include `conf/i386.mk'.
27258 * conf/i386-efi.rmk: Likewise.
27259 * conf/x86_64-efi.rmk: Likewise.
27260 * conf/i386-coreboot.rmk: Likewise.
27261 * conf/i386-ieee1275.rmk: Likewise.
27263 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27265 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27266 Adds optimization support for BGR based modes.
27268 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
27269 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27270 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27272 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27273 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27274 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27276 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27277 (grub_video_i386_vbeblit_index_index): Likewise.
27278 (grub_video_i386_vbeblit_replace_directN): Added.
27279 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27280 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27281 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27282 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27283 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27284 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27285 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27286 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27287 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27288 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27289 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27290 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27291 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27293 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
27294 (grub_video_i386_vbefill_R8G8B8): Likewise.
27295 (grub_video_i386_vbefill_index): Likewise.
27296 (grub_video_i386_vbefill_direct32): Added.
27297 (grub_video_i386_vbefill_direct24): Likewise.
27298 (grub_video_i386_vbefill_direct16): Likewise.
27299 (grub_video_i386_vbefill_direct8): Likewise.
27301 * include/grub/video.h (grub_video_blit_format): Removed
27302 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
27303 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
27304 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
27305 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
27306 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
27308 * video/video.c (grub_video_get_blit_format): Updated to use new
27309 blit formats. Added handling for 16 bit color modes.
27311 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
27313 (common_blitter): Updated to use new blitters.
27315 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
27317 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27318 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27319 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27320 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27321 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27322 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27323 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27324 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27325 (grub_video_i386_vbeblit_index_index): Likewise.
27326 (grub_video_i386_vbeblit_replace_directN): Added.
27327 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27328 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27329 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27330 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27331 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27332 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27333 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27334 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27335 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27336 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27337 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27338 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27339 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27341 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
27342 (grub_video_i386_vbefill_R8G8B8): Likewise.
27343 (grub_video_i386_vbefill_index): Likewise.
27344 (grub_video_i386_vbefill_direct32): Added.
27345 (grub_video_i386_vbefill_direct24): Likewise.
27346 (grub_video_i386_vbefill_direct16): Likewise.
27347 (grub_video_i386_vbefill_direct8): Likewise.
27349 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
27352 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
27355 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
27358 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
27361 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27363 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
27366 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27368 * fs/iso9660.c (grub_iso9660_date): New structure.
27369 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
27370 (grub_iso9660_uuid): New function.
27372 2008-09-05 Bean <bean123ch@gmail.com>
27374 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
27376 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
27377 insensitive bit for names in Win32 and Win32 & DOS namespace.
27379 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
27381 * include/grub/types.h (LONG_MAX): Likewise.
27383 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27385 * util/getroot.c: Include <config.h>.
27386 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
27387 add support for /dev/md/N devices and handle LVM double dash escaping.
27389 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27391 * config.guess: Update to latest version from config git.
27392 * config.sub: Likewise.
27394 2008-09-03 Robert Millan <rmh@aybabtu.com>
27396 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
27397 `disk->total_sectors'.
27399 2008-09-01 Colin D Bennett <colin@gibibit.com>
27401 * include/grub/normal.h: Fixed incorrect comment for
27402 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
27404 2008-09-01 Colin D Bennett <colin@gibibit.com>
27406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
27407 values with defines.
27409 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
27410 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
27411 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
27412 (GRUB_VBE_MODEATTR_COLOR): Likewise.
27413 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
27414 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
27415 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
27416 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
27417 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
27418 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
27419 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
27420 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
27421 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
27422 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
27423 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
27424 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
27425 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
27426 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
27427 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
27429 2008-08-31 Robert Millan <rmh@aybabtu.com>
27431 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
27433 (grub_multiboot): Fix a few warnings.
27435 2008-08-31 Robert Millan <rmh@aybabtu.com>
27437 * loader/i386/pc/multiboot.c: Update comment not to say that
27438 boot_device support is unimplemented.
27440 2008-08-31 Robert Millan <rmh@aybabtu.com>
27442 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
27443 or memory map support are unimplemented.
27445 2008-08-31 Colin D Bennett <colin@gibibit.com>
27447 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
27449 2008-08-31 Colin D Bennett <colin@gibibit.com>
27451 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
27452 total video memory in 'vbeinfo' output; show color format details for
27455 2008-08-30 Pavel Roskin <proski@gnu.org>
27457 * util/genmoddep.c: Remove for real this time.
27458 * DISTLIST: Remove util/genmoddep.c.
27460 2008-08-30 Robert Millan <rmh@aybabtu.com>
27462 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
27463 as required by Multiboot spec (it was already 4-byte aligned, but
27466 2008-08-29 Pavel Roskin <proski@gnu.org>
27468 * kern/powerpc/ieee1275/crt0.S: Rename to ...
27469 * kern/powerpc/ieee1275/startup.S: ... this.
27470 * conf/powerpc-ieee1275.rmk: Adjust for the above.
27471 * DISTLIST: Likewise.
27473 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
27474 grub/cpu/kernel.h. Add start label for consistency with other
27475 platforms. Add grub_prefix immediately after start. Add jump
27476 to the code after grub_prefix.
27477 * include/grub/powerpc/kernel.h: Provide valid values for
27478 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
27480 2008-08-29 Bean <bean123ch@gmail.com>
27482 * configure.ac: Change host_os to cygwin for mingw.
27483 (asprintf): New check for function.
27485 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
27486 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
27488 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
27489 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
27490 sync, sleep and grub_util_get_disk_size for mingw.
27492 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
27493 to get size in mingw.
27494 (open_device): Use flag O_BINARY if it's defined.
27495 (find_root_device): Add dummy code for mingw.
27497 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
27498 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
27499 (get_scsi_disk_name): Return 0 for mingw.
27501 * util/hostfs.c: #include <grub/util/misc.h>.
27502 (grub_hostfs_open): Use "rb" flag to open file, use
27503 grub_util_get_disk_size to get disk size for mingw.
27505 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
27506 (asprintf): New function if HAVE_ASPRINTF is not set.
27507 (sync): New function for mingw.
27509 (grub_util_get_disk_size): Likewise.
27511 2008-08-28 Pavel Roskin <proski@gnu.org>
27513 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27516 2008-08-28 Robert Millan <rmh@aybabtu.com>
27518 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27520 2008-08-28 Robert Millan <rmh@aybabtu.com>
27522 Change find_grub_drive() syntax so it doesn't prevent it from
27523 detecting NULL names as errors.
27525 * util/biosdisk.c (find_grub_drive): Move free slot search code
27527 (find_free_slot): ... to here.
27528 (read_device_map): Use find_free_slot() to search for free slots.
27530 2008-08-27 Marco Gerards <marco@gnu.org>
27532 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
27533 (scsi_mod_SOURCES): New variable.
27534 (scsi_mod_CFLAGS): Likewise
27535 (scsi_mod_LDFLAGS): Likewise.
27537 * disk/scsi.c: New file.
27539 * include/grub/scsi.h: Likewise.
27541 * include/grub/scsicmd.h: Likewise.
27543 * disk/ata.c: Include <grub/scsi.h>.
27544 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
27546 (grub_ata_iterate): Skip ATAPI devices.
27547 (grub_ata_open): Only handle ATAPI devices.
27548 (struct grub_atapi_read): Removed.
27549 (grub_atapi_readsector): Likewise.
27550 (grub_ata_read): No longer handle ATAPI devices.
27551 (grub_ata_write): Likewise.
27552 (grub_atapi_iterate): New function.
27553 (grub_atapi_read): Likewise.
27554 (grub_atapi_write): Likewise.
27555 (grub_atapi_open): Likewise.
27556 (grub_atapi_close): Likewise.
27557 (grub_atapi_dev): New variable.
27558 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
27559 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
27561 * include/grub/disk.h (enum grub_disk_dev_id): Add
27562 `GRUB_DISK_DEVICE_SCSI_ID'.
27564 2008-08-26 Robert Millan <rmh@aybabtu.com>
27566 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
27567 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
27570 2008-08-23 Bean <bean123ch@gmail.com>
27572 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
27573 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27574 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
27575 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
27577 (raid5rec_mod_SOURCES): New macro.
27578 (raid5rec_mod_CFLAGS): Likewise.
27579 (raid5rec_mod_LDFLAGS): Likewise.
27580 (raid6rec_mod_SOURCES): Likewise.
27581 (raid6rec_mod_CFLAGS): Likewise.
27582 (raid6rec_mod_LDFLAGS): Likewise.
27583 (mdraid_mod_SOURCES): Likewise.
27584 (mdraid_mod_CFLAGS): Likewise.
27585 (mdraid_mod_LDFLAGS): Likewise.
27586 (dm_nv_mod_SOURCES): Likewise.
27587 (dm_nv_mod_CFLAGS): Likewise.
27588 (dm_nv_mod_LDFLAGS): Likewise.
27590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
27591 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27592 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
27595 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27605 * disk/raid5_recover.c: New file.
27607 * disk/raid6_recover.c: Likewise.
27609 * disk/mdraid_linux.c: Likewise.
27611 * disk/dmraid_nvidia.c: Likewise.
27613 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
27616 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
27617 calculate the size of raid device.
27618 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
27619 different layout of raid5.
27620 (grub_raid_scan_device): Remove code specific to mdraid.
27621 (grub_raid_list): New variable.
27622 (free_array): New function.
27623 (grub_raid_register): Likewise.
27624 (grub_raid_unregister): Likewise.
27625 (grub_raid_rescan): Likewise.
27626 (GRUB_MOD_INIT): Don't iterate device here.
27627 (GRUB_MOD_FINI): Use free_array to release resource.
27629 * include/grub/raid.h: Remove macro and structure specific to mdraid.
27630 (grub_raid5_recover_func_t): New function variable type.
27631 (grub_raid6_recover_func_t): Likewise.
27632 (grub_raid5_recover_func): New variable.
27633 (grub_raid6_recover_func): Likewise.
27634 (grub_raid_register): New function.
27635 (grub_raid_unregister): Likewise.
27636 (grub_raid_rescan): Likewise.
27637 (grub_raid_block_xor): Likewise.
27639 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
27640 (CMD_CRC): New macro.
27642 (read_file): Handle device as well as file.
27643 (cmd_crc): New function.
27644 (fstest): Handle multiple disks.
27645 (options): Remove part, raw and long, add root and diskcount.
27646 (usage): Add crc, remove -p, -r, -l, add -r and -c.
27647 (main): Find the first non option entry and ignore subsequent options,
27648 add handling for the new options, support multiple disks.
27650 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
27652 2008-08-23 Bean <bean123ch@gmail.com>
27654 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
27656 * genfslist.sh: Ignore kernel.mod.
27658 * genpartmaplist.sh: Likewise.
27660 2008-08-23 Robert Millan <rmh@aybabtu.com>
27662 * util/getroot.c (find_root_device): Skip anything that starts with
27663 a dot, not just directories. This avoids things like /dev/.tmp.md0.
27665 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
27667 * util/update-grub.in (GRUB_GFXMODE): Export variable.
27668 * util/grub.d/00_header.in: Allow the administrator to change default
27669 gfxmode via ${GRUB_GFXMODE}.
27671 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
27673 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
27675 2008-08-21 Robert Millan <rmh@aybabtu.com>
27677 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
27679 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
27680 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
27682 2008-08-20 Carles Pina i Estany <carles@pina.cat>
27684 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
27685 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
27687 2008-08-19 Robert Millan <rmh@aybabtu.com>
27689 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
27690 (struct grub_virtual_screen): Remove `cursor_color'.
27691 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
27693 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
27695 2008-08-18 Robert Millan <rmh@aybabtu.com>
27697 Unify (identical) linux_normal.c files.
27698 * loader/i386/efi/linux_normal.c: Move from here ...
27699 * loader/linux_normal.c: ... to here. Update all users.
27700 * loader/i386/pc/linux_normal.c: Delete. Update all users.
27701 * loader/i386/ieee1275/linux_normal.c: Likewise.
27703 2008-08-18 Robert Millan <rmh@aybabtu.com>
27705 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
27706 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
27707 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
27708 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
27709 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
27711 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
27712 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
27713 (GRUB_LINUX_CL_END_OFFSET): ... to here.
27714 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
27715 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
27716 (GRUB_EFI_CL_END_OFFSET): Rename to ...
27717 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
27718 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
27719 Initialize `params->video_cursor_x' and `params->video_cursor_y'
27720 portably using grub_getxy().
27721 Replace `-EFI' with `-bzImage' in boot message.
27723 2008-08-17 Robert Millan <rmh@aybabtu.com>
27725 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
27727 2008-08-17 Robert Millan <rmh@aybabtu.com>
27729 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
27731 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
27732 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
27733 (grub_machine_mmap_iterate): New function declaration.
27734 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
27736 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
27739 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
27740 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
27741 Move e820 parsing from here ...
27742 * kern/i386/pc/mmap.c: New file.
27743 (grub_machine_mmap_iterate): ... to here.
27745 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
27746 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
27747 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
27748 (grub_available_iterate): Redeclare to return `void', and redeclare
27749 its hook to use grub_uint64_t as addr and size parameters, and rename
27751 (grub_machine_mmap_iterate): ... this. Update all users.
27753 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
27754 to make it more readable. Rename to ...
27755 (grub_machine_mmap_iterate): ... this.
27757 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
27758 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
27759 (grub_multiboot): Allocate an extra region after the payload, and fill
27760 it with a Multiboot memory map. Adjust a.out loader to calculate size
27761 with the extra space.
27762 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
27763 with the extra space.
27765 2008-08-17 Carles Pina i Estany <carles@pina.cat>
27767 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
27769 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
27771 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
27772 mdate-sh to the list `find' searches for.
27773 * DISTLIST: Regenerated.
27775 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
27777 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
27778 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
27779 genmoddep.awk, gensymlist.sh.in.
27780 (DISTDIRS): Add bus, docs, hook, lib.
27781 * DISTLIST: Regenerated.
27782 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
27784 2008-08-16 Robert Millan <rmh@aybabtu.com>
27786 * disk/raid.c (grub_raid_init): Handle/report errors set by
27787 grub_device_iterate().
27788 * disk/lvm.c (grub_lvm_init): Likewise.
27790 2008-08-15 Bean <bean123ch@gmail.com>
27792 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27794 (datetime_mod_SOURCES): New macro.
27795 (datetime_mod_CFLAGS): Likewise.
27796 (datetime_mod_LDFLAGS): Likewise.
27797 (date_mod_SOURCES): Likewise.
27798 (date_mod_CFLAGS): Likewise.
27799 (date_mod_LDFLAGS): Likewise.
27800 (datehook_mod_SOURCES): Likewise.
27801 (datehook_mod_CFLAGS): Likewise.
27802 (datehook_mod_LDFLAGS): Likewise.
27804 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27806 (datetime_mod_SOURCES): New macro.
27807 (datetime_mod_CFLAGS): Likewise.
27808 (datetime_mod_LDFLAGS): Likewise.
27809 (date_mod_SOURCES): Likewise.
27810 (date_mod_CFLAGS): Likewise.
27811 (date_mod_LDFLAGS): Likewise.
27812 (datehook_mod_SOURCES): Likewise.
27813 (datehook_mod_CFLAGS): Likewise.
27814 (datehook_mod_LDFLAGS): Likewise.
27816 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27818 (datetime_mod_SOURCES): New macro.
27819 (datetime_mod_CFLAGS): Likewise.
27820 (datetime_mod_LDFLAGS): Likewise.
27821 (date_mod_SOURCES): Likewise.
27822 (date_mod_CFLAGS): Likewise.
27823 (date_mod_LDFLAGS): Likewise.
27824 (datehook_mod_SOURCES): Likewise.
27825 (datehook_mod_CFLAGS): Likewise.
27826 (datehook_mod_LDFLAGS): Likewise.
27828 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27830 (datetime_mod_SOURCES): New macro.
27831 (datetime_mod_CFLAGS): Likewise.
27832 (datetime_mod_LDFLAGS): Likewise.
27833 (date_mod_SOURCES): Likewise.
27834 (date_mod_CFLAGS): Likewise.
27835 (date_mod_LDFLAGS): Likewise.
27836 (datehook_mod_SOURCES): Likewise.
27837 (datehook_mod_CFLAGS): Likewise.
27838 (datehook_mod_LDFLAGS): Likewise.
27840 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27842 (datetime_mod_SOURCES): New macro.
27843 (datetime_mod_CFLAGS): Likewise.
27844 (datetime_mod_LDFLAGS): Likewise.
27845 (date_mod_SOURCES): Likewise.
27846 (date_mod_CFLAGS): Likewise.
27847 (date_mod_LDFLAGS): Likewise.
27848 (datehook_mod_SOURCES): Likewise.
27849 (datehook_mod_CFLAGS): Likewise.
27850 (datehook_mod_LDFLAGS): Likewise.
27852 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
27854 * commands/date.c: New file.
27856 * hook/datehook.c: Likewise.
27858 * include/grub/lib/datetime.h: Likewise.
27860 * include/grub/i386/cmos.h: Likewise.
27862 * lib/datetime.c: Likewise.
27864 * lib/i386/datetime.c: Likewise.
27866 * lib/efi/datetime.c: Likewise.
27868 2008-08-14 Robert Millan <rmh@aybabtu.com>
27870 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
27871 (grub_mkelfimage_SOURCES): New variable.
27872 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
27874 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
27875 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
27876 * conf/powerpc-ieee1275.rmk: Likewise.
27877 * conf/i386-ieee1275.rmk: Likewise.
27879 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
27880 * kern/i386/coreboot/init.c: Likewise.
27882 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
27883 with `<grub/cpu/kernel.h>'.
27884 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
27886 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
27887 * kern/i386/coreboot/startup.S: Likewise.
27889 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
27890 (GRUB_MOD_GAP): Remove.
27891 * include/grub/powerpc/kernel.h: New file.
27892 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
27893 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27894 * include/grub/i386/kernel.h: New file.
27895 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
27896 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
27897 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27899 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
27901 Use --directory when invoking grub_mkimage.
27903 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
27904 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
27905 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
27906 and GRUB_KERNEL_CPU_PREFIX.
27908 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
27910 * include/grub/err.h (grub_err_printf): New function prototype.
27911 * util/misc.c (grub_err_printf): New function.
27912 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
27914 * kern/err.c (grub_print_error): Use grub_err_printf.
27916 2008-08-13 Robert Millan <rmh@aybabtu.com>
27918 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
27920 2008-08-13 Robert Millan <rmh@aybabtu.com>
27922 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
27925 2008-08-12 Robert Millan <rmh@aybabtu.com>
27927 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
27928 of the relocation code from here ...
27929 (grub_multiboot): ... to here.
27930 (forward_relocator, backward_relocator): Move from here ...
27931 * kern/i386/loader.S (grub_multiboot_forward_relocator)
27932 (grub_multiboot_backward_relocator): ... to here.
27933 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
27934 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
27935 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
27936 (grub_multiboot_forward_relocator_end)
27937 (grub_multiboot_backward_relocator)
27938 (grub_multiboot_backward_relocator_end): New variables.
27940 2008-08-12 Bean <bean123ch@gmail.com>
27942 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
27944 2008-08-11 Robert Millan <rmh@aybabtu.com>
27946 * kern/i386/linuxbios/startup.S: Move from here ...
27947 * kern/i386/coreboot/startup.S: ... to here.
27949 * kern/i386/linuxbios/init.c: Move from here ...
27950 * kern/i386/coreboot/init.c: ... to here.
27952 * kern/i386/linuxbios/table.c: Move from here ...
27953 * kern/i386/coreboot/mmap.c: ... to here.
27955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
27957 2008-08-11 Robert Millan <rmh@aybabtu.com>
27959 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
27960 errors. Leave it to the upper layer to handle them.
27962 2008-08-09 Christian Franke <franke@computer.org>
27964 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
27965 * conf/common.rmk: Install `grub-pe2elf' only if requested.
27966 Install `grub.d/10_windows' only on Cygwin.
27967 * configure.ac: Add subst of `target_os'.
27968 Check `target_os' also before setting TARGET_OBJ2ELF.
27969 Add `--enable-grub-pe2elf'.
27971 2008-08-08 Robert Millan <rmh@aybabtu.com>
27973 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
27974 (grub_last_time): Change type to grub_uint64_t.
27975 (grub_disk_open): Migrate code from to using grub_get_time_ms().
27976 (grub_disk_close): Likewise.
27978 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
27979 (run_menu): Migrate code from to using grub_get_time_ms().
27981 * util/misc.c (grub_get_time_ms): New function.
27983 2008-08-08 Marco Gerards <marco@gnu.org>
27985 * disk/ata.c (grub_ata_regget): Change return type to
27987 (grub_ata_regget2): Likewise.
27988 (grub_ata_wait_status): New function.
27989 (grub_ata_wait_busy): Removed function, updated all users to use
27990 `grub_ata_wait_status'.
27991 (grub_ata_wait_drq): Likewise.
27992 (grub_ata_cmd): New function.
27993 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
27995 (grub_ata_pio_write): Add error handling.
27996 (grub_atapi_identify): Likewise.
27997 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
27999 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28000 handling. Actually use the detected registers. Reorder the
28001 detection logic such that it is easier to read.
28002 (grub_ata_pciinit): Do not assign the same ID to each controller.
28003 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28005 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28009 2008-08-08 Marco Gerards <marco@gnu.org>
28013 2008-08-07 Bean <bean123ch@gmail.com>
28015 * include/grub/x86_64/pci.h: New file.
28017 2008-08-07 Christian Franke <franke@computer.org>
28019 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28020 (TIMER2_GATE): Likewise.
28021 (grub_pit_wait): Add enable/disable of the timer2 gate
28022 bit of port 0x61. This fixes a possible infinite loop.
28024 2008-08-07 Bean <bean123ch@gmail.com>
28026 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28027 kern/i386/tsc.c and kern/i386/pit.c.
28029 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28032 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28035 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28037 2008-08-07 Bean <bean123ch@gmail.com>
28039 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28043 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28044 multiple inclusion. Add #include <grub/types.h>.
28046 2008-08-06 Christian Franke <franke@computer.org>
28048 * conf/common.rmk: Build and install `10_windows'.
28049 * util/grub.d/10_windows.in: New script.
28051 2008-08-06 Pavel Roskin <proski@gnu.org>
28053 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28055 2008-08-06 Robert Millan <rmh@aybabtu.com>
28057 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28058 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28060 2008-08-06 Bean <bean123ch@gmail.com>
28062 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28063 (grub_pxefs_fs_int): Remove dummy definition.
28064 (grub_pxefs_open): Use data->block_size to store the current block
28066 (grub_pxefs_read): Use block size stored in data->block_size. As the
28067 value of grub_pxe_blksize can be changed after the file is opened.
28069 2008-08-06 Bean <bean123ch@gmail.com>
28071 * fs/i386/pc/pxe.c (curr_file): new variable.
28072 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28073 require the dummy internal file system anymore.
28074 (grub_pxefs_read): Removed.
28075 (grub_pxefs_close): Likewise.
28076 (grub_pxefs_fs_int): Likewise.
28077 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28078 connection when we switch file.
28079 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28081 2008-08-06 Robert Millan <rmh@aybabtu.com>
28083 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28085 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28086 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28088 * kern/i386/halt.c: New file.
28089 * kern/i386/reboot.c: Likewise.
28090 * include/grub/i386/reboot.h: Likewise.
28091 * include/grub/i386/halt.h: Likewise.
28093 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28094 Include `<grub/cpu/halt.h>'.
28095 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28096 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28098 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28099 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28100 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28101 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28102 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28103 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28105 * include/grub/i386/at_keyboard.h: ... to here.
28107 2008-08-05 Robert Millan <rmh@aybabtu.com>
28109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28110 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28111 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28112 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28113 `kern/generic/millisleep.c'.
28115 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28116 instead of grub_get_rtc().
28117 (grub_tsc_init): Initialize `tsc_boot_time'.
28119 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28120 (grub_machine_init): Use grub_tsc_init() rather than
28121 installing an RTC-based handler via grub_install_get_time_ms().
28123 * kern/i386/pit.c: New file.
28124 * include/grub/i386/pit.h: Likewise.
28126 2008-08-05 Bean <bean123ch@gmail.com>
28128 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28130 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28131 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28132 (pxe_mod_SOURCES): New macro.
28133 (pxe_mod_CFLAGS): Likewise.
28134 (pxe_mod_LDFLAGS): Likewise.
28135 (pxecmd_mod_SOURCES): Likewise.
28136 (pxecmd_mod_CFLAGS): Likewise.
28137 (pxecmd_mod_LDFLAGS): Likewise.
28139 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28140 (grub_pxe_call): Likewise.
28142 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28144 * commands/i386/pc/pxecmd.c: New file.
28146 * fs/i386/pc/pxe.c: Likewise.
28148 * include/grub/i386/pc/pxe.h: Likewise.
28150 2008-08-05 Bean <bean123ch@gmail.com>
28152 * util/console.c (grub_console_cur_color): New variable.
28153 (grub_console_standard_color): Likewise.
28154 (grub_console_normal_color): Likewise.
28155 (grub_console_highlight_color): Likewise.
28156 (color_map): Likewise.
28157 (use_color): Likewise.
28158 (NUM_COLORS): New macro.
28159 (grub_ncurses_setcolorstate): Handle color properly.
28160 (grub_ncurses_setcolor): Don't change color here, just remember the
28161 settings, color will be set in grub_ncurses_setcolorstate.
28162 (grub_ncurses_getcolor): New function.
28163 (grub_ncurses_init): Initialize color pairs.
28164 (grub_ncurses_term): New member grub_ncurses_getcolor.
28166 2008-08-05 Colin D Bennett <colin@gibibit.com>
28168 High resolution timer support. Implemented for x86 CPUs using TSC.
28169 Extracted generic grub_millisleep() so it's linked in only as needed.
28170 This requires a Pentium compatible CPU; if the RDTSC instruction is
28171 not supported, then it falls back on the generic grub_get_time_ms()
28172 implementation that uses the machine's RTC.
28174 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28175 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28176 `kern/generic/millisleep.c'.
28178 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28179 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28181 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28182 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28186 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28187 `kern/generic/millisleep.c'.
28189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28193 * kern/generic/rtc_get_time_ms.c: New file.
28195 * kern/generic/millisleep.c: New file.
28197 * kern/misc.c: Don't include
28198 <kern/time.h> anymore.
28199 (grub_millisleep_generic): Removed.
28201 * commands/sleep.c (grub_interruptible_millisleep): Uses
28202 grub_get_time_ms() instead of grub_get_rtc().
28204 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28206 (grub_cpu_is_cpuid_supported): New inline function.
28207 (grub_cpu_is_tsc_supported): New inline function.
28208 (grub_tsc_init): New function prototype.
28209 (grub_tsc_get_time_ms): New function prototype.
28211 * kern/i386/tsc.c (grub_get_time_ms): New file.
28213 * include/grub/time.h: Include <grub/types.h.
28214 (grub_millisleep_generic): Removed.
28215 (grub_get_time_ms): New prototype.
28216 (grub_install_get_time_ms): New prototype.
28217 (grub_rtc_get_time_ms): New prototype.
28219 * kern/time.c (grub_get_time_ms): New function.
28220 (grub_install_get_time_ms): New function.
28222 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28223 <grub/time.h> anymore.
28224 (grub_millisleep): Removed.
28225 (grub_machine_init): Call grub_tsc_init.
28227 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28228 get_time_ms() implementation.
28230 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
28231 (ieee1275_get_time_ms): New function.
28232 (grub_machine_init): Install get_time_ms() implementation.
28234 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28235 (grub_machine_init): Call grub_tsc_init().
28236 (grub_millisleep): Removed.
28238 * kern/ieee1275/init.c (grub_millisleep): Removed.
28239 (grub_machine_init): Install ieee1275_get_time_ms()
28241 (ieee1275_get_time_ms): New function.
28242 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28245 2008-08-05 Marco Gerards <marco@gnu.org>
28247 * disk/ata.c: Include <grub/pci.h>.
28248 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
28249 (grub_ata_initialize): Rewritten.
28250 (grub_ata_device_initialize): New function.
28252 2008-08-04 Pavel Roskin <proski@gnu.org>
28254 * kern/main.c: Include grub/mm.h.
28256 2008-08-04 Robert Millan <rmh@aybabtu.com>
28258 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28259 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28260 corruption problem).
28262 2008-08-04 Robert Millan <rmh@aybabtu.com>
28264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28265 warnings introduced in my last commit.
28267 2008-08-03 Robert Millan <rmh@aybabtu.com>
28269 Make PCI available on all i386 architectures.
28271 * include/grub/i386/pc/pci.h: Move from here ...
28272 * include/grub/i386/pci.h: ... to here.
28274 * include/grub/i386/pc/pci.h: Remove.
28275 * include/grub/i386/efi/pci.h: Remove.
28276 * include/grub/x86_64/efi/pci.h: Remove.
28278 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28279 `<grub/cpu/pci.h>'.
28281 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
28282 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
28283 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
28285 * conf/i386-ieee1275.rmk: Likewise.
28287 2008-08-03 Robert Millan <rmh@aybabtu.com>
28289 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
28290 (grub_console_setcursor): Make it possible to set cursor off.
28292 2008-08-03 Robert Millan <rmh@aybabtu.com>
28294 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
28295 of modules instead of assuming which platform provides what.
28296 * util/update-grub.in: Likewise.
28298 2008-08-03 Robert Millan <rmh@aybabtu.com>
28300 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
28301 instead of `grub_install_dos_part' to determine whether a drive needs
28302 to be prepended to prefix (`grub_install_dos_part' is not reliable,
28303 because it can be overridden when loading GRUB via Multiboot).
28305 2008-08-02 Robert Millan <rmh@aybabtu.com>
28307 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
28309 2008-08-02 Robert Millan <rmh@aybabtu.com>
28311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
28312 of informational grub_dprintf() calls.
28314 2008-08-02 Robert Millan <rmh@aybabtu.com>
28316 * disk/memdisk.c (memdisk_size): Don't initialize.
28317 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
28319 * include/grub/i386/pc/kernel.h
28320 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
28321 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
28322 (grub_memdisk_image_size, grub_arch_memdisk_addr)
28323 (grub_arch_memdisk_size): Remove.
28325 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
28326 field (was only used to transfer a constant). Add `type' field to
28327 support multiple module types.
28328 (grub_module_iterate): New function.
28330 * kern/device.c (grub_device_open): Do not hide error messages
28331 when grub_disk_open() fails. Use grub_print_error() instead.
28333 * kern/i386/pc/init.c (grub_arch_modules_addr)
28334 (grub_arch_memdisk_size): Remove functions.
28335 (grub_arch_modules_addr): Return the module address in high memory
28336 (now that it isn't copied anymore).
28338 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
28339 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
28340 decompression routine (grub_total_module_size already includes that
28341 now). Don't copy modules back to low memory.
28343 * kern/main.c: Include `<grub/mm.h>'.
28344 (grub_load_modules): Split out (and use) ...
28345 (grub_module_iterate): ... this function, which iterates through
28346 module objects and runs a hook.
28347 Comment out grub_mm_init_region() call, as it would cause non-ELF
28348 modules to be overwritten.
28350 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
28351 the memdisk image in its own region, make it part of the module list.
28352 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
28353 (main): Parse --memdisk|-m option, and pass user-provided path as
28354 parameter to generate_image().
28355 (add_segments): Pass `memdisk_path' down to load_modules().
28356 (load_modules): Embed memdisk image in module section when requested.
28357 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
28358 `header.type' instead of `header.offset'.
28360 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
28361 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
28362 (memdisk_mod_LDFLAGS): New variables.
28363 * conf/i386-coreboot.rmk: Likewise.
28364 * conf/i386-ieee1275.rmk: Likewise.
28366 2008-08-02 Robert Millan <rmh@aybabtu.com>
28368 * loader/i386/pc/multiboot.c (playground, forward_relocator)
28369 (backward_relocator): New variables. Used to allocate and relocate
28370 the payload, respectively.
28371 (grub_multiboot_load_elf32): Load into heap instead of requested
28372 address, install the appropriate relocator code in each bound of
28373 the payload, and set the entry point such that
28374 grub_multiboot_real_boot() will jump to one of them.
28376 * kern/i386/loader.S (grub_multiboot_payload_size)
28377 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28378 (grub_multiboot_payload_entry_offset): New variables.
28379 (grub_multiboot_real_boot): Set cpu context to what the relocator
28380 expects, and jump to the relocator instead of the payload.
28382 * include/grub/i386/loader.h (grub_multiboot_payload_size)
28383 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28384 (grub_multiboot_payload_entry_offset): Export.
28386 2008-08-01 Bean <bean123ch@gmail.com>
28388 * normal/menu_entry.c (editor_getline): Don't return the original
28389 string as result, as it will be released by lexer once it has done
28392 2008-08-01 Robert Millan <rmh@aybabtu.com>
28394 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
28395 within menuentries, not before them.
28396 util/grub.d/10_hurd.in: Likewise.
28398 2008-08-01 Bean <bean123ch@gmail.com>
28400 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
28401 (bufio_mod_SOURCES): New macro.
28402 (bufio_mod_CFLAGS): Likewise.
28403 (bufio_mod_LDFLAGS): Likewise.
28405 * include/grub/bufio.h: New file.
28407 * io/bufio.c: Likewise.
28409 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
28410 (grub_video_reader_png): Use grub_buffile_open to open file.
28412 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
28413 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
28415 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
28416 (grub_video_reader_tga): Use grub_buffile_open to open file.
28418 * font/manager.c: Include <grub/bufio.h>.
28419 (add_font): Use grub_buffile_open to open file.
28421 2008-07-31 Robert Millan <rmh@aybabtu.com>
28423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
28424 ELF segments, use a macro for arbitrarily accessing any of them instead
28425 of preparing a pointer that allows access to one at a time.
28426 (grub_multiboot_load_elf64): Likewise.
28428 2008-07-31 Bean <bean123ch@gmail.com>
28430 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
28431 GRUB_KERNEL_MACHINE_DATA_END.
28433 2008-07-30 Robert Millan <rmh@aybabtu.com>
28435 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
28436 Increase from 0x50 to 0x60.
28437 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
28438 use UUIDs to identify the root drive for them. If that's not
28440 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
28441 check, for cross-disk installs.
28443 2008-07-30 Robert Millan <rmh@aybabtu.com>
28445 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
28446 is non-empty, use it to set the `prefix' environment variable instead
28447 of the usual approach.
28448 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
28449 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
28450 environment variable instead of dummy make_install_device().
28452 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
28453 (start): Insert a data section, with `grub_prefix' variable.
28454 * kern/i386/linuxbios/startup.S: Likewise.
28456 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
28457 New variable reference.
28458 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
28459 New macro. Defines offset of `grub_prefix' within startup.S (relative
28461 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
28462 section within startup.S (relative to `start').
28463 * include/grub/i386/coreboot/kernel.h: Likewise.
28465 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
28466 Overwrite grub_prefix with its contents, at the beginning of the
28468 (main): Understand -p|--prefix.
28470 2008-07-30 Robert Millan <rmh@aybabtu.com>
28472 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
28474 2008-07-30 Robert Millan <rmh@aybabtu.com>
28476 * term/i386/pc/vga_text.c (grub_console_cls): Use
28477 grub_console_gotoxy() to go back to beginning of the screen.
28478 Found by Patrick Georgi <patrick.georgi@coresystems.de>
28480 2008-07-29 Christian Franke <franke@computer.org>
28482 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28483 Add conversion of emulated mount points on Cygwin.
28485 2008-07-29 Christian Franke <franke@computer.org>
28487 * util/update-grub.in: Add a check for admin
28489 Remove old `grub.cfg.new' before creation.
28490 Add `-f' to `mv' to handle the different filesystem
28491 semantics of Windows.
28493 2008-07-29 Bean <bean123ch@gmail.com>
28495 * normal/main.c (get_line): Fix buffer overflow bug.
28497 2008-07-28 Robert Millan <rmh@aybabtu.com>
28499 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
28500 (struct grub_apple_header): New struct. Describes the layout of
28501 the partmap header.
28502 (apple_partition_map_iterate): Check the header magic as well as the
28503 partition magic (which was already being checked).
28505 2008-07-28 Pavel Roskin <proski@gnu.org>
28507 * genmk.rb: Add a warning to the beginning of the output that
28508 it's a generated file and should not be edited.
28510 2008-07-28 Robert Millan <rmh@aybabtu.com>
28512 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28513 with the same number are found, just use issue a warning with
28514 grub_dprintf(), as this error has been reported to be non-fatal.
28516 2008-07-27 Robert Millan <rmh@aybabtu.com>
28518 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28521 2008-07-27 Bean <bean123ch@gmail.com>
28523 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28524 (grub_fat_find_dir): Ignore case when comparing filename.
28526 2008-07-27 Bean <bean123ch@gmail.com>
28528 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
28529 smallino, as it's more descriptive, and i8count can be confused with
28530 the other field count.
28531 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
28534 2008-07-27 Bean <bean123ch@gmail.com>
28536 * commands/crc.c: New file.
28538 * lib/crc.c: Likewise.
28540 * include/grub/lib/crc.h: Likewise.
28542 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
28544 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
28545 (hexdump): Move this function to ...
28547 * lib/hexdump.c: ... here.
28549 * include/grub/hexdump.h: Renamed to ...
28551 * include/grub/lib/hexdump.h: ... this.
28553 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
28555 * util/grub-editenv.c: Likewise.
28557 * include/envblk.h: Renamed to ...
28559 * include/lib/envblk.h: ... this.
28561 * util/envblk.c: Renamed to ...
28563 * lib/envblk.c: ... this.
28565 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
28567 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
28568 (pkglib_MODULES): Add crc.mod.
28569 (hexdump_mod_SOURCES): Add lib/hexdump.c.
28570 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
28571 (crc_mod_SOURCES): New macro.
28572 (crc_mod_CFLAGS): Likewise.
28573 (crc_mod_LDFLAGS): Likewise.
28575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
28577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28579 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28583 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28585 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
28587 * commands/help.c: Include <grub/term.h>.
28588 (TERM_WIDTH): Removed. Updated all users.
28590 2008-07-27 Pavel Roskin <proski@gnu.org>
28592 * util/getroot.c (find_root_device): Rephrase a comment to avoid
28593 spurious warnings about a comment within a comment.
28595 2008-07-25 Robert Millan <rmh@aybabtu.com>
28597 * util/getroot.c (find_root_device): Skip devices that match
28598 /dev/dm-[0-9]. This lets the real device be found for any type of
28599 abstraction (LVM, EVMS, RAID..).
28600 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
28601 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
28602 device is found first, find_root_device() will now skip it.
28604 2008-07-24 Pavel Roskin <proski@gnu.org>
28606 * include/grub/types.h: Use __builtin_bswap32() and
28607 __builtin_bswap64() with gcc 4.3 and newer.
28609 2008-07-24 Christian Franke <franke@computer.org>
28611 * util/i386/pc/grub-install.in: If `--debug' is specified,
28612 pass `--verbose' to grub-setup.
28613 Abort script if make_system_path_relative_to_its_root() fails.
28615 2008-07-24 Bean <bean123ch@gmail.com>
28617 * configure.ac: Fixed a bug caused by the previous cygwin patch,
28618 variable `target_platform' should be `platform'.
28620 2008-07-24 Bean <bean123ch@gmail.com>
28622 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
28623 (grub_png_init_fixed_block): New function.
28624 (grub_png_decode_image_data): Handle fixed huffman code compression.
28626 2008-07-24 Bean <bean123ch@gmail.com>
28628 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
28629 (grub_pe2elf_SOURCES): New macro.
28630 (CLEANFILES): Add grub-pe2elf.
28632 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
28633 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
28634 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
28635 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
28636 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
28637 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
28638 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
28639 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
28640 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
28641 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
28642 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
28643 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
28644 (GRUB_PE32_DT_FUNCTION): Likewise.
28645 (GRUB_PE32_REL_I386_DIR32): Likewise.
28646 (GRUB_PE32_REL_I386_REL32): Likewise.
28647 (grub_pe32_symbol): New structure.
28648 (grub_pe32_reloc): Likewise.
28650 * util/grub-pe2elf.c: New file.
28652 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
28653 start symbol in non pc platform.
28655 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
28657 The following patches are from Christian Franke.
28659 * include/grub/dl.h: Remove .previous, gas supports this only
28662 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
28663 Remove .type, gas supports this only for ELF format.
28665 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
28666 nullbytes in symbol table. This fixes an infinite loop if table is
28669 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
28670 TARGET_IMG_LDFLAGS and EXEEXT.
28672 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
28673 TARGET_IMG_LDFLAGS_AC.
28674 (grub_CHECK_STACK_ARG_PROBE): New function.
28676 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
28678 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
28680 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
28681 to set TARGET_IMG_LD* accordingly.
28682 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
28683 Add call to grub_CHECK_STACK_ARG_PROBE.
28684 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
28686 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
28688 * genmk.rb: Add EXEEXT to CLEANFILES.
28690 2008-07-23 Robert Millan <rmh@aybabtu.com>
28692 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
28693 define the codes for arrows and lines used for the menu).
28694 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
28697 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
28698 fonts, because the latter are too slow.
28700 2008-07-21 Bean <bean123ch@gmail.com>
28702 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
28703 a20. Run keyboard test last, as it will cause macbook to halt.
28705 2008-07-18 Pavel Roskin <proski@gnu.org>
28707 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
28708 load foreign architecture modules correctly anyway. Keep
28709 support for loading host architecture modules, whether we
28710 compile them or not.
28712 2008-07-17 Pavel Roskin <proski@gnu.org>
28714 * configure.ac: Use -m32 or -m64 regardless of whether we had to
28715 change target_cpu. The compiler default can mismatch target_cpu
28718 * disk/efi/efidisk.c: Fix format warnings on x86_64.
28719 * kern/efi/efi.c: Likewise.
28721 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
28722 target compiler is functional.
28723 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
28726 * configure.ac: Default to efi platform for x86_64-apple. Allow
28727 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
28728 adjustments from the rest, only do them if target is not
28729 explicitly given. Merge other adjustments with the final sanity
28730 check. Remove an extraneous check for supported CPU. Be
28731 specific which CPU and which platform is not supported.
28733 * configure.ac: Default to pc platform for x86_64.
28735 2008-07-17 Robert Millan <rmh@aybabtu.com>
28737 Partial LinuxBIOS -> Coreboot rename.
28739 * conf/i386-linuxbios.rmk: Renamed to ...
28740 * conf/i386-coreboot.rmk: ... this.
28741 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
28742 * configure.ac: Accept "coreboot" as input platform (but maintain
28743 compatibility with "linuxbios").
28744 * include/grub/i386/linuxbios: Renamed to ...
28745 * include/grub/i386/coreboot: ... this.
28747 2008-07-17 Bean <bean123ch@gmail.com>
28749 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
28750 (appleldr_mod_SOURCE): New variable.
28751 (appleldr_mod_CFLAGS): Likewise.
28752 (appleldr_mod_LDFLAGS): Likewise.
28753 (pci_mod_SOURCES): Likewise.
28754 (pci_mod_CFLAGS): Likewise.
28755 (pci_mod_LDFLAGS): Likewise.
28756 (lspci_mod_SOURCES): Likewise.
28757 (lspci_mod_CFLAGS): Likewise.
28758 (lspci_mod_LDFLAGS): Likewise.
28760 * conf/x86_64-efi.rmk: New file.
28762 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
28764 (grub_efidisk_write): Likewise.
28766 * include/efi/api.h (efi_call_0): New macro.
28767 (efi_call_1): Likewise.
28768 (efi_call_2): Likewise.
28769 (efi_call_3): Likewise.
28770 (efi_call_4): Likewise.
28771 (efi_call_5): Likewise.
28772 (efi_call_6): Likewise.
28774 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
28775 grub_rescue_cmd_chainloader.
28777 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
28778 (grub_pe32_optional_header): Change some fields based on i386 or
28780 (GRUB_PE32_PE32_MAGIC): Likewise.
28782 * include/grub/efi/uga_draw.h: New file.
28784 * include/grub/elf.h (STN_ABS): New constant.
28785 (R_X86_64_NONE): Relocation constant for x86_64.
28786 (R_X86_64_64): Likewise.
28787 (R_X86_64_PC32): Likewise.
28788 (R_X86_64_GOT32): Likewise.
28789 (R_X86_64_PLT32): Likewise.
28790 (R_X86_64_COPY): Likewise.
28791 (R_X86_64_GLOB_DAT): Likewise.
28792 (R_X86_64_JUMP_SLOT): Likewise.
28793 (R_X86_64_RELATIVE): Likewise.
28794 (R_X86_64_GOTPCREL): Likewise.
28795 (R_X86_64_32): Likewise.
28796 (R_X86_64_32S): Likewise.
28797 (R_X86_64_16): Likewise.
28798 (R_X86_64_PC16): Likewise.
28799 (R_X86_64_8): Likewise.
28800 (R_X86_64_PC8): Likewise.
28802 * include/grub/i386/efi/pci.h: New file.
28804 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
28805 Change it value based on platform.
28806 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
28807 (GRUB_E820_RAM): Likewise.
28808 (GRUB_E820_RESERVED): Likewise.
28809 (GRUB_E820_ACPI): Likewise.
28810 (GRUB_E820_NVS): Likewise.
28811 (GRUB_E820_EXEC_CODE): Likewise.
28812 (GRUB_E820_MAX_ENTRY): Likewise.
28813 (grub_e820_mmap): New structure.
28814 (linux_kernel_header): Change the efi field according to different
28815 kernel version, also field from linux_kernel_header.
28817 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
28819 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
28820 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
28821 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
28822 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
28823 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
28824 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
28825 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
28826 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
28827 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
28828 (GRUB_PCI_ADDR_IO_MASK): Likewise.
28830 * include/grub/x86_64/efi/kernel.h: New file.
28832 * include/grub/x86_64/efi/loader.h: Likewise.
28834 * include/grub/x86_64/efi/machine.h: Likewise.
28836 * include/grub/x86_64/efi/pci.h: Likewise.
28838 * include/grub/x86_64/efi/time.h: Likewise.
28840 * include/grub/x86_64/linux.h: Likewise.
28842 * include/grub/x86_64/setjmp.h: Likewise.
28844 * include/grub/x86_64/time.h: Likewise.
28846 * include/grub/x86_64/types.h: Likewise.
28848 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
28849 GRUB_TARGET_SIZEOF_VOID_P.
28851 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
28852 (grub_efi_locate_handle): Likewise.
28853 (grub_efi_open_protocol): Likewise.
28854 (grub_efi_set_text_mode): Likewise.
28855 (grub_efi_stall): Likewise.
28856 (grub_exit): Likewise.
28857 (grub_reboot): Likewise.
28858 (grub_halt): Likewise.
28859 (grub_efi_exit_boot_services): Likewise.
28860 (grub_get_rtc): Likewise.
28862 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
28863 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
28864 (grub_efi_allocate_pages): Wrap efi calls.
28865 (grub_efi_free_pages): Wrap efi calls.
28866 (grub_efi_get_memory_map): Wrap efi calls.
28868 * kern/x86_64/dl.c: New file.
28870 * kern/x86_64/efi/callwrap.S: Likewise.
28872 * kern/x86_64/efi/startup.S: Likewise.
28874 * loader/efi/appleloader.c: Likewise.
28876 * loader/efi/chainloader.c (cmdline): New variable.
28877 (grub_chainloader_unload): Wrap efi calls.
28878 (grub_chainloader_boot): Likewise.
28879 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
28882 * loader/efi/chainloader_normal.c (chainloader_command):
28883 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
28886 * loader/i386/efi/linux.c (allocate_pages): Change allocation
28888 (grub_e820_add_region): New function.
28889 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
28891 (grub_find_video_card): New function.
28892 (grub_linux_setup_video): New function.
28893 (grub_rescue_cmd_linux): Probe for video information.
28895 * normal/x86_64/setjmp.S: New file.
28897 * term/efi/console.c (map_char): New function.
28898 (grub_console_putchar): Map unicode char.
28899 (grub_console_checkkey): Wrap efi calls.
28900 (grub_console_getkey): Likewise.
28901 (grub_console_getwh): Likewise.
28902 (grub_console_gotoxy): Likewise.
28903 (grub_console_cls): Likewise.
28904 (grub_console_setcolorstate): Likewise.
28905 (grub_console_setcursor): Likewise.
28907 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
28909 2008-07-16 Pavel Roskin <proski@gnu.org>
28911 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
28914 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
28915 pointer, not an integer. This fixes a warning and prevents
28916 precision loss on 64-bit systems.
28917 (relocate_addresses): Remove unneeded cast.
28919 2008-07-15 Pavel Roskin <proski@gnu.org>
28921 * kern/i386/ieee1275/init.c: Include grub/cache.h.
28923 * term/ieee1275/ofconsole.c: Disable code unused on i386.
28925 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
28926 Fix comparison between signed and unsigned.
28928 * include/grub/i386/ieee1275/console.h: Declare
28929 grub_console_init() and grub_console_fini().
28931 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
28932 It's empty and unused.
28934 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
28935 beginning to avoid warnings with some compilers.
28937 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
28938 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
28940 2008-07-14 Pavel Roskin <proski@gnu.org>
28942 * kern/env.c (grub_register_variable_hook): Don't copy empty
28943 string, it leaks memory. Pass "" to grub_env_set(), it should
28944 handle constant strings.
28946 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
28947 * commands/cmp.c (grub_cmd_cmp): Likewise.
28948 * kern/dl.c (grub_dl_flush_cache): Likewise.
28949 (grub_dl_load_core): Likewise.
28950 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
28951 (grub_elf64_load_phdrs): Likewise.
28953 2008-07-13 Pavel Roskin <proski@gnu.org>
28955 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
28956 between signed and unsigned.
28957 (LzmaEnc_Finish): Fix warning about an unused parameter.
28959 2008-07-13 Bean <bean123ch@gmail.com>
28961 * Makefile.in (enable_lzo): New rule.
28963 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
28965 * configure.ac (ENABLE_LZO): New option --enable-lzo.
28967 * boot/i386/pc/lnxboot.S: #include <config.h>.
28969 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
28970 its value according to the compression algorithm used, lzo or lzma.
28972 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
28973 compression algorithm according to configure macro.
28975 * kern/i386/pc/startup.S (codestart): Likewise.
28977 * kern/i386/pc/lzma_decode.S: New file.
28979 * include/grub/lib/LzFind.h: Likewise.
28981 * include/grub/lib/LzHash.h: Likewise.
28983 * include/grub/lib/LzmaDec.h: Likewise.
28985 * include/grub/lib/LzmaEnc.h: Likewise.
28987 * include/grub/lib/LzmaTypes.h: Likewise.
28989 * lib/LzFind.c: Likewise.
28991 * lib/LzmaDec.c: Likewise.
28993 * lib/LzmaEnc.c: Likewise.
28995 2008-07-13 Bean <bean123ch@gmail.com>
28997 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
28998 (grub_ext4_extent_header): New structure.
28999 (grub_ext4_extent): Likewise.
29000 (grub_ext4_extent_idx): Likewise.
29001 (grub_ext4_find_leaf): New function.
29002 (grub_ext2_read_block): Handle extents.
29004 2008-07-12 Robert Millan <rmh@aybabtu.com>
29006 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29008 2008-07-11 Robert Millan <rmh@aybabtu.com>
29010 * util/grub.d/40_custom.in: New file. Example on how to add custom
29011 entries to /etc/grub.d.
29012 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29013 40_custom (implicitly, by merging all the grub.d rules).
29015 2008-07-11 Pavel Roskin <proski@gnu.org>
29017 * commands/read.c (grub_getline): Fix invalid memory access.
29018 Don't add newline to the variable value.
29020 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29021 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29022 (serial_hw_get_port): Check validity of the port number.
29023 (grub_cmd_serial): Check return value of serial_hw_get_port().
29025 2008-07-07 Pavel Roskin <proski@gnu.org>
29027 * boot/i386/pc/diskboot.S (notification_string): Replace
29028 "Loading kernel" with just "loading". This is shorter, less
29029 confusing and saves a few bytes for possible future changes.
29031 2008-07-05 Pavel Roskin <proski@gnu.org>
29033 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29034 size for ATAPI devices, they are undefined. Output sector
29035 number in decimal form.
29037 * disk/ata.c: Use named constants for status bits.
29039 2008-07-04 Pavel Roskin <proski@gnu.org>
29041 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29042 grub_addr_t before casting it to the void pointer to fix a
29043 warning. Non-addressable regions are discarded earlier.
29044 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29045 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29046 (check_signature): Don't shadow table_header.
29047 (grub_linuxbios_table_iterate): Cast numeric constants to
29048 grub_linuxbios_table_header_t.
29049 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29052 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29055 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29056 pointer, which can cause warnings. Support 64-bit addresses.
29058 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29059 of sizeof(long). This fixes PowerPC image generation on x86_64.
29061 2008-07-04 Robert Millan <rmh@aybabtu.com>
29063 This fixes a performance issue when pc & gpt partmap iterators
29064 didn't abort iteration even after our hook found what it was
29065 looking for (often causing expensive probes of non-existent drives).
29067 Some callers relied on previous buggy behaviour, since they would
29068 raise an error when their own hooks caused early abortion of its
29071 * kern/device.c (grub_device_open): Improve error message.
29072 * disk/lvm.c (grub_lvm_open): Likewise.
29073 * disk/raid.c (grub_raid_open): Likewise.
29075 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29076 when hook requests it, independently of grub_errno.
29077 (pc_partition_map_probe): Do not fail when find_func() caused
29078 early abortion of pc_partition_map_iterate().
29080 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29081 when hook requests it, independently of grub_errno.
29082 (gpt_partition_map_probe): Do not fail when find_func() caused
29083 early abortion of gpt_partition_map_iterate().
29085 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29086 when hook requests it, independently of grub_errno. Do not fail when
29087 part_map_iterate_hook() caused early abortion of p->iterate().
29089 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29090 when grub_partition_iterate() returned with non-zero.
29092 2008-07-03 Pavel Roskin <proski@gnu.org>
29094 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29095 like we do in grub_ata_pio_read().
29096 (grub_ata_readwrite): Always write individual sectors. Fix the
29097 sector count for the remainder.
29098 (grub_ata_write): Enable writing to ATA devices. Correctly
29099 report error for ATAPI devices.
29101 2008-07-02 Pavel Roskin <proski@gnu.org>
29103 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29106 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29107 for every read sector, we already increment it for the whole
29108 batch. This fixes reading more than 256 sectors at once.
29110 * util/grub-editenv.c (cmd_info): Cast argument to long
29111 explicitly. ptrdiff_t reduces to int on i386.
29113 * util/grub-editenv.c (main): Be specific which parameter is
29116 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29117 (memdisk): Make memdisk_orig_addr a pointer.
29119 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29120 for file offsets, use grub_off_t instead. Fix printf format
29123 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29124 there. Real unexpected warnings should not drown in the noise
29125 about known problems.
29127 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29128 grub_disk_addr_t for memory addresses.
29130 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29131 explicitly to fix a warning.
29133 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29135 * Makefile.in (MODULE_LDFLAGS): New variable.
29136 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29137 the linker accepts --build-id=none.
29138 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29140 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29142 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29143 those in Linux XFS code. Provide a way to access 64-bit parent
29145 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29146 the end of struct grub_xfs_dir_header.
29148 2008-07-02 Bean <bean123ch@gmail.com>
29150 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29151 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29152 and GRUB_IEEE1275_FLAG_NO_ANSI.
29154 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29155 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29156 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29158 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29159 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29161 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29162 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29164 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29165 esc sequence on non ANSI terminal.
29166 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29168 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29171 2008-07-02 Bean <bean123ch@gmail.com>
29173 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29174 (grub_editenv_SOURCES): New variable.
29175 (pkglib_MODULES): Add loadenv.mod.
29176 (loadenv_mod_SOURCES): New variable.
29177 (loadenv_mod_CFLAGS): Likewise.
29178 (loadenv_mod_LDFLAGS): Likewise.
29180 * include/grub/envblk.h: New file.
29182 * util/envblk.c: New file.
29184 * util/grub-editenv.c: New file.
29186 * commands/loadenv.c: New file.
29188 2008-07-01 Pavel Roskin <proski@gnu.org>
29190 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29191 not unsigned char. This fixes warnings and is consistent with
29194 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29196 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29198 * term/tparm.c (analyze): Always set *popcount.
29200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29201 cast to fix a warning.
29203 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29204 cast to suppress a warning.
29206 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29207 grub_fshelp_read_file() expects.
29209 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29210 write uuid as a 32-bit value in CPU byte order, so declare and
29213 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29214 long if the format specifier expects it.
29215 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29216 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29217 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29218 long to fix a warning.
29219 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29220 grub_dprintf() arguments to fix warnings.
29222 2008-06-30 Pavel Roskin <proski@gnu.org>
29224 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29225 install_bsd_part immediately before core.img is embedded or
29226 modified on disk. This fixes core.img verification if core.img
29227 cannot be embedded.
29229 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
29230 core_path to calculate the blocklist.
29231 Patch from Javier Martín <lordhabbit@gmail.com>
29233 2008-06-29 Robert Millan <rmh@aybabtu.com>
29235 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
29236 block to disk block.
29237 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
29238 Patch from Niels Böhm <bitbucket@arcor.de>
29240 2008-06-29 Robert Millan <rmh@aybabtu.com>
29242 * util/update-grub_lib.in (font_path): Search for fonts in
29243 /boot/grub first, which is more likely to be readable (we aren't
29244 deciding where fonts live, just looking for them).
29246 2008-06-26 Pavel Roskin <proski@gnu.org>
29248 * util/biosdisk.c (read_device_map): Don't leave dead map
29249 entries for devices failing stat() check.
29251 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
29252 core_path_dev for the core.img path on the target device.
29254 2008-06-26 Robert Millan <rmh@aybabtu.com>
29256 * disk/fs_uuid.c: New file.
29257 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
29258 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
29259 (fs_uuid_mod_LDFLAGS): New variables.
29260 * include/grub/disk.h (grub_disk_dev_id): Add
29261 `GRUB_DISK_DEVICE_UUID_ID'.
29262 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
29263 implement iterate().
29265 2008-06-26 Robert Millan <rmh@aybabtu.com>
29267 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
29268 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
29269 Linux image includes no initrd.
29271 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29273 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
29274 call to resolve the core image location that effectively appended the
29277 2008-06-21 Robert Millan <rmh@aybabtu.com>
29279 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29282 * util/grub.d/10_hurd.in: ... to here ...
29283 * util/grub.d/10_linux.in: ... and here.
29285 2008-06-19 Robert Millan <rmh@aybabtu.com>
29287 * kern/main.c (grub_main): Export `prefix' variable immediately
29288 after it has been set by grub_machine_set_prefix().
29290 2008-06-19 Robert Millan <rmh@aybabtu.com>
29292 * commands/search.c (search_label, search_fs_uuid, search_file): Print
29293 search result when not saving to variable, not the other way around.
29294 When saving to variable, abort iteration as soon as a match is found.
29296 2008-06-19 Robert Millan <rmh@aybabtu.com>
29298 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
29299 check for partition that provides /boot/grub. Its logic is flawed,
29300 as it prevents prepare_grub_to_access_device() from being called
29303 2008-06-19 Robert Millan <rmh@aybabtu.com>
29305 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
29306 "insmod" command directly when abstraction modules are needed,
29307 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
29308 since it had already been processed).
29310 2008-06-19 Pavel Roskin <proski@gnu.org>
29312 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
29313 changed. This is needed in case GRUB_LIBDIR changes.
29314 * conf/i386-ieee1275.rmk: Likewise.
29315 * conf/i386-linuxbios.rmk: Likewise.
29316 * conf/i386-pc.rmk: Likewise.
29317 * conf/powerpc-ieee1275.rmk: Likewise.
29319 2008-06-18 Pavel Roskin <proski@gnu.org>
29321 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
29322 kernel_elf_symlist.c to symlist.c for consistency with other
29323 architectures. Update all users.
29324 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29326 2008-06-18 Robert Millan <rmh@aybabtu.com>
29328 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
29331 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
29332 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
29333 a RAID device, run setup() for all members independently on whether
29334 LVM abstraction is being used.
29335 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
29336 If grub-mkimage has set `*install_dos_part == -2', don't override this
29338 Perform *install_dos_part adjustments independently on whether
29339 we're embedding or not.
29340 Clarify error message when image is too big for embedding.
29341 Remove duplicate *install_dos_part stanza.
29343 2008-06-17 Robert Millan <rmh@aybabtu.com>
29345 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
29346 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
29348 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
29349 values in grub_ofconsole_normal_color and
29350 grub_ofconsole_highlight_color (they're not directly related to
29351 background and foreground).
29352 (grub_ofconsole_setcolorstate): Extract background and foreground
29353 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
29355 2008-06-17 Robert Millan <rmh@aybabtu.com>
29357 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
29358 /boot/grub for the check in last commit, not /boot (they could be
29359 different partitions).
29361 2008-06-16 Robert Millan <rmh@aybabtu.com>
29363 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
29364 asked to setup access for the same partition that provides /boot,
29365 don't bother using UUIDs since our root already has the value we
29368 2008-06-16 Robert Millan <rmh@aybabtu.com>
29370 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
29372 Patch from Sven Mueller <sven@debian.org>.
29374 2008-06-16 Robert Millan <rmh@aybabtu.com>
29376 * util/update-grub.in: Check for $EUID instead of $UID.
29377 Reported by Vincent Zweije.
29379 2008-06-16 Bean <bean123ch@gmail.com>
29381 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
29382 (grub_ext2_read_block): Likewise.
29383 (grub_ext2_read_inode): Likewise.
29384 (grub_ext2_mount): Likewise.
29385 (grub_ext2_close): Likewise.
29386 (grub_ext3_get_journal): Removed.
29388 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
29389 (grub_reiserfs_read_symlink): Likewise.
29390 (grub_reiserfs_mount): Likewise.
29391 (grub_reiserfs_open): Likewise.
29392 (grub_reiserfs_read): Likewise.
29393 (grub_reiserfs_close): Likewise.
29394 (grub_reiserfs_get_journal): Removed.
29396 * fs/fshelp.c (grub_fshelp_read): Removed.
29397 (grub_fshelp_map_block): Likewise.
29399 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
29400 (grub_fshelp_journal): Likewise.
29401 (grub_fshelp_read): Likewise.
29402 (grub_fshelp_map_block): Likewise.
29404 2008-06-16 Pavel Roskin <proski@gnu.org>
29406 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
29407 floating point anymore.
29408 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
29410 2008-06-15 Pavel Roskin <proski@gnu.org>
29412 * commands/ls.c (grub_ls_list_files): Use integer calculations
29413 for human readable format, avoid floating point use.
29414 * kern/misc.c (grub_ftoa): Remove.
29415 (grub_vsprintf): Remove floating point support.
29417 2008-06-15 Robert Millan <rmh@aybabtu.com>
29419 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
29421 Reported by Max Vozeler.
29423 2008-06-15 Robert Millan <rmh@aybabtu.com>
29425 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
29426 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
29428 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
29429 the beginning of the prefix.
29431 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
29432 It is assumed that if we have a memdisk, grub-mkimage has set
29433 grub_prefix to include the "(memdisk)" drive in it.
29435 2008-06-15 Robert Millan <rmh@aybabtu.com>
29437 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
29438 Initialize keyboard controller after registering the terminal, so that
29439 grub_printf() can be called from grub_keyboard_controller_init().
29441 2008-06-15 Robert Millan <rmh@aybabtu.com>
29443 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
29444 extent-btree which is written as big endian on disk.
29445 Reported by Alain Greppin <al@chilibi.org>.
29447 2008-06-14 Robert Millan <rmh@aybabtu.com>
29449 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
29450 * util/i386/pc/grub-install.in (modules): Likewise.
29452 2008-06-13 Pavel Roskin <proski@gnu.org>
29454 * commands/ls.c (grub_ls_list_files): Fix format warnings.
29456 2008-06-13 Bean <bean123ch@gmail.com>
29458 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
29460 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
29462 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
29463 to indicate sparse block.
29465 2008-06-12 Pavel Roskin <proski@gnu.org>
29467 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
29468 number, grub_fshelp_read() does it for us.
29470 * fs/fshelp.c (grub_fshelp_read): New function. Implement
29471 linear disk read with journal translation.
29472 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
29473 * include/grub/fshelp.h: Declare grub_fshelp_read().
29475 2008-06-09 Pavel Roskin <proski@gnu.org>
29477 * fs/minix.c (grub_minix_mount): Handle error reading
29480 2008-06-08 Robert Millan <rmh@aybabtu.com>
29482 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
29483 don't append the RAID prefix afterwards.
29484 Reported by Clint Adams.
29486 2008-06-08 Robert Millan <rmh@aybabtu.com>
29488 Based on description from Pavel:
29489 * kern/disk.c (grub_disk_check_range): Rename to ...
29490 (grub_disk_adjust_range): ... this. Add a comment explaining the
29491 tasks performed by this function.
29493 2008-06-08 Robert Millan <rmh@aybabtu.com>
29495 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
29496 `num_serial' (for consistency with other variables).
29497 (struct grub_ntfs_data): Add `uuid' member.
29498 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
29499 (grub_ntfs_uuid): New function.
29500 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
29502 2008-06-07 Pavel Roskin <proski@gnu.org>
29504 * util/biosdisk.c (open_device): Revert last change to the
29505 function, it broke installation. The sector needs to be
29506 different dependent on which device is opened.
29508 2008-06-06 Robert Millan <rmh@aybabtu.com>
29510 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
29511 rest of GRUB, and breakage doesn't happen if its value were modified.
29513 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29514 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
29515 a constant (same value).
29516 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
29517 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
29519 2008-06-06 Robert Millan <rmh@aybabtu.com>
29521 * util/biosdisk.c (open_device): Do not modify sector offset when
29522 accessing a partition. kern/disk.c already handles this for us.
29524 2008-06-06 Robert Millan <rmh@aybabtu.com>
29526 * util/grub-emu.c (grub_machine_init): Move code in this function from
29528 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29529 segfault in case grub_printf() is called).
29531 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
29532 grub_probe. Update all users not to explicitly add it again.
29533 (grub_device): New variable; contains corresponding device for grubdir.
29534 (fs_module, partmap_module, devabstraction_module): Pass
29535 `--device ${grub_device}' to grub_probe to avoid traversing /dev
29538 2008-06-05 Robert Millan <rmh@aybabtu.com>
29540 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
29541 is found, print it (same layout as with labels).
29543 2008-06-04 Robert Millan <rmh@aybabtu.com>
29545 * util/biosdisk.c (get_drive): Rename to ...
29546 (find_grub_drive): ... this. Update all users.
29548 (get_os_disk): Rename to ...
29549 (convert_system_partition_to_system_disk): ... this. Update all users.
29551 (find_drive): Rename to ...
29552 (find_system_device): ... this. Update all users.
29554 2008-06-04 Robert Millan <rmh@aybabtu.com>
29556 * util/biosdisk.c (get_os_disk): Handle IDA devices.
29557 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29558 (make_device_map): Likewise.
29560 2008-06-01 Robert Millan <rmh@aybabtu.com>
29562 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
29563 before dereferencing it.
29565 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
29566 union with fat12/fat16-specific ones. Add some new fields, including
29567 `num_serial' for both versions.
29568 (struct grub_fat_data): Add `uuid' member.
29569 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
29570 names. Initialize `data->uuid' using `num_serial'.
29571 (grub_fat_uuid): New function.
29572 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
29574 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
29575 (grub_reiserfs_uuid): New function.
29576 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
29579 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
29580 (grub_xfs_uuid): New function.
29581 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
29583 2008-06-01 Robert Millan <rmh@aybabtu.com>
29585 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
29586 code that is backward compatible with pre-uuid search command.
29588 2008-05-31 Robert Millan <rmh@aybabtu.com>
29590 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
29591 floppies after everything else, to ensure floppy drive isn't accessed
29592 unnecessarily (patch from Bean).
29594 2008-05-31 Robert Millan <rmh@aybabtu.com>
29596 * commands/search.c (search_label, search_fs_uuid, search_file): Do
29597 not print device names when we were asked to set a variable.
29599 2008-05-31 Robert Millan <rmh@aybabtu.com>
29601 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
29602 using "cursor-on" and "cursor-off" commands (understood at least by
29603 the Open Firmware flavour on OLPC).
29605 2008-05-31 Michael Gorven <michael@gorven.za.net>
29607 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
29608 on and off sequences.
29610 2008-05-31 Robert Millan <rmh@aybabtu.com>
29612 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
29613 * util/update-grub.in: Likewise.
29615 2008-05-30 Pavel Roskin <proski@gnu.org>
29617 * util/biosdisk.c (linux_find_partition): Simplify logic and
29618 make the code more universal. Keep special processing for
29619 devfs, but use a simple rule for all other devices. If the
29620 device ends with a number, append 'p' and the partition number.
29621 Otherwise, append only the partition number.
29623 2008-05-30 Robert Millan <rmh@aybabtu.com>
29625 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
29626 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
29627 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
29628 the `root' parameter to Linux.
29630 2008-05-30 Robert Millan <rmh@aybabtu.com>
29632 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
29633 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
29634 --fs_uuid with --fs-uuid.
29635 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
29636 all filesystems support them).
29638 2008-05-30 Robert Millan <rmh@aybabtu.com>
29640 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
29641 grub_printf() flags, since we're printing in units of 2 bytes.
29643 2008-05-30 Robert Millan <rmh@aybabtu.com>
29645 * util/grub.d/00_header.in: Remove obsolete comment referencing
29646 convert_system_path_to_grub_path().
29647 * util/update-grub.in: Likewise.
29648 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
29649 (convert_system_path_to_grub_path): Add a warning message explaining
29650 that this function is deprecated. Rely on is_path_readable_by_grub()
29651 for the readability checks.
29652 (font_path): Use is_path_readable_by_grub() for the readability
29653 check rather than convert_system_path_to_grub_path().
29655 2008-05-30 Robert Millan <rmh@aybabtu.com>
29657 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
29658 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
29659 converting it first.
29660 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
29661 grub.cfg for access to font file, and afterwards call it again to set
29664 2008-05-30 Robert Millan <rmh@aybabtu.com>
29666 * commands/search.c (options): Add --fs_uuid option.
29667 (search_fs_uuid): New function.
29668 (grub_cmd_search): Fix --set argument passing.
29669 Use search_fs_uuid() when requested via --fs_uuid.
29670 (grub_search_init): Update help message.
29671 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
29672 and redeclare it as an array of 16-bit words.
29673 (grub_ext2_uuid): New function.
29674 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
29675 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
29676 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
29677 (GRUB_DEVICE_BOOT_UUID): New variables.
29678 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
29679 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
29681 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
29682 just assume `root' variable has the right value.
29683 * util/grub.d/10_linux.in: Likewise.
29684 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
29686 (main): Recognise `-t fs_uuid' argument.
29688 2008-05-30 Robert Millan <rmh@aybabtu.com>
29690 * util/biosdisk.c (map): Redefine structure to hold information
29691 about GRUB drive name.
29692 (get_drive): Reimplement without assuming (and verifying) BIOS-like
29694 (call_hook): Remove.
29695 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
29696 member. Assume drive has partitions.
29697 (grub_util_biosdisk_open): Access device names via `.device' struct
29699 (open_device): Likewise.
29700 (find_drive): Likewise.
29701 (read_device_map): Adjust map[] usage to match the new struct
29702 definition. Don't check for duplicates (still possible, but not cheap
29704 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
29705 (make_device_name): Remove assumption of BIOS-like drive names.
29707 2008-05-30 Pavel Roskin <proski@gnu.org>
29709 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
29710 compiling execute.c doesn't need grub_script.tab.h anymore.
29711 (normal/command.c_DEPENDENCIES): Likewise.
29712 (normal/function.c_DEPENDENCIES): Likewise.
29713 * conf/i386-ieee1275.rmk: Likewise.
29714 * conf/i386-linuxbios.rmk: Likewise.
29715 * conf/i386-pc.rmk: Likewise.
29716 * conf/powerpc-ieee1275.rmk: Likewise.
29717 * conf/sparc64-ieee1275.rmk: Likewise.
29719 2008-05-29 Pavel Roskin <proski@gnu.org>
29721 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
29722 when scanning metadata for volume group name.
29724 * include/grub/script.h: Don't include grub_script.tab.h. It's
29725 a generated file, which may only be included from the files with
29726 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
29727 use union YYSTYPE, as the later allows forward declaration.
29728 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
29730 2008-05-29 Robert Millan <rmh@aybabtu.com>
29732 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
29733 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
29734 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
29735 (grub_console_checkkey): Add grub_dprintf() call to report unknown
29738 2008-05-29 Robert Millan <rmh@aybabtu.com>
29740 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
29741 control key combinations.
29743 2008-05-29 Robert Millan <rmh@aybabtu.com>
29745 * util/powerpc/ieee1275/grub-install.in: Move from here ...
29746 * util/ieee1275/grub-install.in: ... to here.
29747 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
29748 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
29749 (grub_install_SOURCES): Likewise.
29751 2008-05-29 Robert Millan <rmh@aybabtu.com>
29753 * fs/affs.c: Update copyright year.
29754 * fs/ext2.c: Likewise.
29755 * fs/fshelp.c: Likewise.
29756 * fs/hfsplus.c: Likewise.
29757 * fs/ntfs.c: Likewise.
29758 * fs/xfs.c: Likewise.
29759 * include/grub/fshelp.h: Likewise.
29760 * util/grub-mkdevicemap.c: Likewise.
29762 2008-05-28 Robert Millan <rmh@aybabtu.com>
29764 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
29765 might need to be fatfs to support some firmware implementations
29768 2008-05-28 Robert Millan <rmh@aybabtu.com>
29770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
29772 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29773 (make_device_map): Likewise.
29775 2008-05-20 Bean <bean123ch@gmail.com>
29777 * fs/fshelp.c (grub_fshelp_map_block): New function.
29778 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
29779 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
29781 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
29782 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
29783 (grub_fshelp_journal): New structure.
29784 (grub_fshelp_map_block): New function prototype.
29785 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
29786 (grub_fshelp_map_block): Likewise.
29788 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
29789 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
29790 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
29791 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
29792 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
29793 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
29794 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
29795 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
29796 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
29797 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
29798 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
29799 (grub_ext2_sblock): New members for journal support.
29800 (grub_ext3_journal_header): New structure.
29801 (grub_ext3_journal_revoke_header): Likewise.
29802 (grub_ext3_journal_block_tag): Likewise.
29803 (grub_ext3_journal_sblock): Likewise.
29804 (grub_fshelp_node): New members logfile and journal.
29805 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
29806 grub_fshelp_map_block to get real block number.
29807 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
29809 (grub_ext2_read_inode): Likewise.
29810 (grub_ext3_get_journal): New function.
29811 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
29812 (grub_ext2_close): Release memory used by journal.
29814 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
29815 (REISERFS_MAGIC_DESC_BLOCK): New macro.
29816 (grub_reiserfs_transaction_header): Renamed to
29817 grub_reiserfs_description_block, replace field data with real_blocks.
29818 (grub_reiserfs_commit_block): New structure.
29819 (grub_reiserfs_data): New member journal.
29820 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
29822 (grub_reiserfs_read_symlink): Likewise.
29823 (grub_reiserfs_iterate_dir): Likewise.
29824 (grub_reiserfs_open): Likewise.
29825 (grub_reiserfs_read): Likewise.
29826 (grub_reiserfs_get_journal): New function.
29827 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
29828 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
29829 using grub_reiserfs_get_journal.
29830 (grub_reiserfs_close): Release memory used by journal.
29832 * fs/affs.c (grub_affs_read_block): Change block type to
29833 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
29835 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
29837 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
29839 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
29841 * fs/udf.c (grub_udf_read_block): Change block type to
29842 grub_disk_addr_t. Use type cast to avoid warning.
29844 * fs/xfs.c (grub_xfs_read_block): Likewise.
29846 2008-05-16 Christian Franke <franke@computer.org>
29848 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
29849 to ensure that break with ESC will always work.
29850 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
29851 Remove ESC from keyboard queue.
29853 2008-05-16 Christian Franke <franke@computer.org>
29855 * util/biosdisk.c: [__CYGWIN__] Add includes.
29856 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
29857 (get_os_disk): Move variable declarations to OS specific
29858 parts to avoid warning.
29859 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
29860 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
29861 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
29863 * util/getroot.c: [__CYGWIN__] Add includes.
29864 (strip_extra_slashes): Fix "/" case.
29865 [__CYGWIN__] (get_win32_path): New function.
29866 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
29867 [__CYGWIN__] (find_root_device): Disable.
29868 [__CYGWIN__] (get_bootsec_serial): New function.
29869 [__CYGWIN__] (find_cygwin_root_device): Likewise.
29870 [__linux__] (grub_guess_root_device): Add early returns to simplify
29872 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
29873 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
29874 check for Linux only.
29876 2008-05-15 Bean <bean123ch@gmail.com>
29878 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
29879 keyboard hang problem in apple's intel mac.
29881 2008-05-09 Robert Millan <rmh@aybabtu.com>
29883 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
29885 * util/grub-mkdevicemap.c (get_virtio_disk_name)
29886 (make_device_map): Likewise.
29887 Reported by Aurelien Jarno <aurel32@debian.org>
29889 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
29891 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
29892 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
29893 (make_device_map): Output entries for xvd type disks.
29895 2008-05-07 Robert Millan <rmh@aybabtu.com>
29897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
29899 * util/grub-mkdevicemap.c (get_cciss_disk_name)
29900 (make_device_map): Likewise.
29901 Reported by Roland Dreier <rdreier@cisco.com>
29903 2008-05-07 Robert Millan <rmh@aybabtu.com>
29905 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
29906 grub_strstr() call. Correct a few mistakes in failure path handling.
29908 2008-05-06 Robert Millan <rmh@aybabtu.com>
29910 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
29911 Do not print a trailing slash (therefore, the root directory is an
29913 (convert_system_path_to_grub_path): Do not remove trailing slash
29914 from make_system_path_relative_to_its_root() output.
29916 * util/i386/pc/grub-install.in: Add trailing slash to output from
29917 make_system_path_relative_to_its_root().
29919 2008-05-06 Robert Millan <rmh@aybabtu.com>
29921 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
29922 ensures that output lines aren't intermangled with those sent to
29923 stderr (via grub_util_info()).
29924 * util/grub-probe.c (grub_refresh): Likewise.
29925 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
29927 2008-05-05 Christian Franke <franke@computer.org>
29929 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
29930 Add Cygwin device names.
29931 (get_ide_disk_name) [__CYGWIN__]: Likewise.
29932 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
29933 (check_device): Return error instead of success on empty name.
29934 (make_device_map): Move label inside linux specific code to
29935 prevent compiler warning.
29937 2008-04-30 Robert Millan <rmh@aybabtu.com>
29939 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
29940 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
29942 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
29944 2008-04-29 Robert Millan <rmh@aybabtu.com>
29946 * docs/grub.cfg: New file (example GRUB configuration).
29948 2008-04-26 Robert Millan <rmh@aybabtu.com>
29950 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
29951 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
29952 and `disk/ieee1275/nand.c'.
29954 2008-04-25 Bean <bean123ch@gmail.com>
29956 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
29959 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
29960 change the buffer size to 4096 for cdrom device.
29962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
29964 (_linux_mod_SOURCES): New variable.
29965 (_linux_mod_CFLAGS): Likewise.
29966 (_linux_mod_LDFLAGS): Likewise.
29967 (linux_mod_SOURCES): Likewise.
29968 (linux_mod_CFLAGS): Likewise.
29969 (linux_mod_LDFLAGS): Likewise.
29970 (nand_mod_SOURCES): Likewise.
29971 (nand_mod_CFLAGS): Likewise.
29972 (nand_mod_LDFLAGS): Likewise.
29974 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
29975 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
29976 type property. (nand device in olpc don't have this property)
29978 * include/grub/disk.h (grub_disk_dev_id): New macro
29979 GRUB_DISK_DEVICE_NAND_ID.
29981 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
29982 function prototype.
29983 (grub_rescue_cmd_initrd): Likewise.
29985 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
29986 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
29987 ofw_cif_handler and ofw_idt, adjust padding number.
29989 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
29990 GRUB_MACHINE_IEEE1275 is defined.
29992 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
29993 Use NESTED_FUNC_ATTR attribute on the hook parameter.
29995 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
29996 on nested function heap_init.
29997 (grub_upper_mem): New variable for i386-ieee1275.
29998 (grub_get_extended_memory): New function for i386-ieee1275.
29999 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30001 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30002 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30005 * loader/i386/ieee1275/linux.c: New file.
30007 * loader/i386/ieee1275/linux_normal.c: New file.
30009 * disk/ieee1275/nand.c: New file.
30011 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30013 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30015 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30017 2008-04-18 Robert Millan <rmh@aybabtu.com>
30019 Restructures early code path on ieee1275 to unify grub_main() as
30020 the first C function that is executed in every platform.
30022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30023 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30025 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30026 * kern/ieee1275/cmain.c (cmain): Rename to ...
30027 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30028 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30031 2008-04-18 Robert Millan <rmh@aybabtu.com>
30033 * util/update-grub.in: Fix syntax error when setting
30034 `GRUB_PRELOAD_MODULES'.
30035 Reported by Stephane Chazelas <stephane@artesyncp.com>
30037 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30039 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30040 section into account, newer toolchains generate unique build ids
30041 * configure.ac: remove the test for --build-id=none acceptance,
30042 we want build ids to be preserved
30043 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30044 far from other sections don't cause the raw binary images grow
30047 2008-04-15 Robert Millan <rmh@aybabtu.com>
30049 * disk/lvm.c: Update copyright year.
30050 * kern/misc.c: Likewise.
30052 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30054 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30055 there is no memory left for physical volume name.
30057 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30059 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30060 volume name mapping to support bigger than 9 character names properly.
30062 2008-04-13 Robert Millan <rmh@aybabtu.com>
30064 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30065 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30067 2008-04-13 Christian Franke <franke@computer.org>
30069 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30070 to create a floppy emulation boot CD when non emulation mode
30072 Enable Joliet CD filesystem extension.
30074 2008-04-13 Robert Millan <rmh@aybabtu.com>
30076 * kern/misc.c (grub_strncat): Fix off-by-one error.
30077 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30079 * kern/env.c (grub_env_context_close): Clear current context, not
30081 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30083 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30085 2008-04-13 Robert Millan <rmh@aybabtu.com>
30087 Improve robustness when handling LVM.
30089 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30090 (and leave `*p' unmodified).
30091 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30093 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30094 iterating through it.
30095 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30097 (grub_lvm_scan_device): Check the return value (and fail gracefully
30098 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30099 Don't assume `vg->pvs != NULL' when iterating through it.
30101 2008-04-13 Robert Millan <rmh@aybabtu.com>
30103 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30104 * genmk.rb (partmap): New variable.
30105 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30106 (#{partmap}): New target rule.
30107 * genpartmaplist.sh: New file.
30108 * Makefile.in (pkglib_DATA): Add partmap.lst.
30109 (partmap.lst): New target rule.
30110 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30111 modules (including all partition maps), instead of preloading them.
30113 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30115 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30116 `linux-boot-prober' (if installed) to detect other operating
30117 systems which are installed on the computer and add them to
30119 * conf/common.rmk: Build and install 30_os-prober.
30121 2008-04-12 Robert Millan <rmh@aybabtu.com>
30123 * kern/powerpc/ieee1275/init.c: Move from here ...
30124 * kern/ieee1275/init.c: ... to here. Update all users.
30126 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30127 * kern/ieee1275/cmain.c: ... to here. Update all users.
30129 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30130 * kern/ieee1275/openfw.c: ... to here. Update all users.
30132 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30133 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30135 2008-04-10 Pavel Roskin <proski@gnu.org>
30137 * configure.ac: Always use "_cv_" in cache variables for
30138 compatibility with Autoconf 2.62.
30140 2008-04-07 Robert Millan <rmh@aybabtu.com>
30142 Revert grub/machine/init.h addition by Pavel (since it breaks on
30143 i386-ieee1275 and others):
30144 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30145 * util/powerpc/ieee1275/misc.c: Likewise.
30147 2008-04-07 Robert Millan <rmh@aybabtu.com>
30149 * util/grub-probe.c (probe): Improve error message.
30151 2008-04-07 Robert Millan <rmh@aybabtu.com>
30153 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30154 (this prevents the presence of a bogus entry from ruining the whole
30157 2008-04-06 Pavel Roskin <proski@gnu.org>
30159 * util/biosdisk.c: Include grub/util/biosdisk.h.
30160 * util/grub-fstest.c (execute_command): Make static.
30161 * util/grub-mkdevicemap.c (check_device): Likewise.
30162 * util/i386/pc/misc.c: Include grub/machine/init.h.
30163 * util/powerpc/ieee1275/misc.c: Likewise.
30164 * util/lvm.c: Include grub/util/lvm.h.
30165 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30167 * util/raid.c: Include grub/util/raid.h.
30168 (grub_util_getdiskname): Make static.
30170 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30171 grub_hostfs_fini(), as they are called from grub_init_all() and
30172 grub_fini_all() respectively. This fixes an infinite loop in
30173 grub-fstest due to double registration of hostfs.
30174 Reported by Christian Franke <Christian.Franke@t-online.de>
30176 2008-04-05 Pavel Roskin <proski@gnu.org>
30178 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30179 all 8 functions. Otherwise, probe function 0 only.
30181 2008-04-04 Pavel Roskin <proski@gnu.org>
30183 * commands/lspci.c (grub_lspci_iter): Print the bus number
30186 * commands/lspci.c (grub_pci_classes): Fix typos.
30187 (grub_lspci_iter): Don't print func twice. Print vendor ID
30188 before device ID, as it's normally done.
30190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30191 Fix signedness warnings.
30192 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30194 * util/ieee1275/get_disk_name.c: Include config.h so that
30195 _GNU_SOURCE is defined and getline() is declared. Mark an
30196 unused argument as such. Fix a signedness warning.
30198 2008-04-02 Pavel Roskin <proski@gnu.org>
30200 * genkernsyms.sh.in: Use more robust assignments for CC and
30201 srcdir. Quote srcdir.
30202 * gensymlist.sh.in: Likewise. Assert at the compile time that
30203 the symbol table is not empty.
30205 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30206 * fs/cpio.c (grub_cpio_read): Likewise.
30208 2008-04-01 Pavel Roskin <proski@gnu.org>
30210 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30211 * disk/host.c (grub_host_open): Likewise.
30212 * disk/loopback.c (grub_loopback_open): Likewise.
30213 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30214 disk->id as in disk/host.c, not a multi-character constant.
30216 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30217 later is obsolete, potentially dangerous and sets a bad example.
30218 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30219 * util/misc.c (grub_util_get_image_size): Likewise.
30221 * disk/loopback.c (options): Improve help for "--partitions".
30223 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30224 options to align them with the short options, e.g. "echo -e".
30226 2008-03-31 Bean <bean123ch@gmail.com>
30228 * video/reader/png.c (grub_png_data): New member is_16bit and
30230 (grub_png_decode_image_header): Detect 16 bit png image.
30231 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
30232 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
30233 (grub_video_reader_png): Release memory occupied by image_data.
30235 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30237 (grub_nfs_mount): Skip the test for sector per cluster.
30239 * include/grub/ntfs.h (MAX_SPC): Removed.
30241 2008-03-31 Bean <bean123ch@gmail.com>
30243 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
30244 (grub_probe_SOURCES): Add fs/afs.c.
30245 (grub_fstest_SOURCES): Likewise.
30246 (afs_mod_SOURCES): New variable.
30247 (afs_mod_CFLAGS): Likewise.
30248 (afs_mod_LDFLAGS): Likewise.
30250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30251 (grub_emu_SOURCES): Likewise.
30253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30261 * fs/afs.c: New file.
30263 2008-03-30 Pavel Roskin <proski@gnu.org>
30265 * disk/host.c: Include grub/misc.h to fix a warning.
30266 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
30267 warnings about implicit declarations.
30269 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30271 * include/grub/i386/loader.h: Change declaration of
30272 grub_linux_boot() to match what grub_loader_set() expects.
30273 * util/getroot.c (grub_guess_root_device): Return const char* to
30275 * util/grub-probe.c (probe): Fix a warning about uninitialized
30276 abstraction_name variable.
30277 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
30278 second argument as unused to fix a warning.
30280 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30281 missing grub_error() call.
30283 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30284 2.60 and newer uses it to define datadir.
30286 * commands/sleep.c: Fix warning about implicit declaration.
30287 * disk/memdisk.c: Likewise.
30288 * loader/aout.c: Likewise.
30289 * loader/i386/bsd_normal.c: Likewise.
30290 * util/grub-probe.c: Likewise.
30292 * commands/i386/cpuid.c (has_longmode): Make static.
30293 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
30294 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
30296 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
30297 GDT. This is more robust, as %ds can change.
30298 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
30299 calling real_to_prot().
30300 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
30302 2008-03-28 Pavel Roskin <proski@gnu.org>
30304 * kern/i386/pc/startup.S: Assert that uncompressed functions
30305 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
30306 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
30307 code, as they push parts of the code (error handlers) beyond
30308 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
30309 code as correctness and size.
30311 2008-03-28 Pavel Roskin <proski@gnu.org>
30313 * kern/i386/pc/startup.S
30314 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
30315 data block address to the real mode, keep offset minimal. This
30316 works around a bug in AWARD BIOS on old Athlon systems, which
30317 makes CD detection hang.
30319 2008-03-26 Pavel Roskin <proski@gnu.org>
30321 * normal/color.c (grub_parse_color_name_pair): Make `name' a
30323 * include/grub/normal.h: Add grub_parse_color_name_pair()
30326 2008-03-24 Bean <bean123ch@gmail.com>
30328 * disk/i386/pc/biosdisk.c (cd_start): Removed.
30329 (cd_count): Removed.
30330 (cd_drive): New variable.
30331 (grub_biosdisk_get_drive): Don't check for (cdN) device.
30332 (grub_biosdisk_call_hook): Likewise.
30333 (grub_biosdisk_iterate): Change cdrom detection method.
30334 (grub_biosdisk_open): Replace cd_start with cd_drive.
30335 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
30336 detect cdrom device.
30338 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
30340 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
30341 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
30342 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
30343 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
30344 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
30345 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
30346 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
30347 (grub_biosdisk_cdrp): New structure.
30348 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
30350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
30352 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
30355 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
30358 2008-03-20 Robert Millan <rmh@aybabtu.com>
30360 Remove 2 TiB limit in ata.mod.
30361 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
30362 (grub_ata_dumpinfo): Print sector count with 0x%llx.
30363 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
30364 grub_uint64_t instead of grub_uint32_t.
30366 2008-03-05 Bean <bean123ch@gmail.com>
30368 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
30369 (grub_multiboot): Set boot device.
30371 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
30373 2008-03-02 Bean <bean123ch@gmail.com>
30375 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
30378 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
30380 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
30383 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
30386 * docs/fdl.texi: New file.
30388 * docs/mdate-sh: New file. Copied from gnulib.
30389 * docs/texinfo.tex: Likewise.
30391 * config.guess: Updated from gnulib.
30392 * install-sh: Likewise.
30394 2008-02-28 Robert Millan <rmh@aybabtu.com>
30396 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
30397 (aout_mod_SOURCES): New variable.
30398 (aout_mod_CFLAGS): Likewise.
30399 (aout_mod_LDFLAGS): Likewise.
30401 * conf/i386-ieee1275.rmk: Likewise.
30403 2008-02-28 Robert Millan <rmh@aybabtu.com>
30405 * util/update-grub.in: Reorganise terminal validity check. Accept
30406 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
30407 Based on suggestion by Franklin PIAT.
30409 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
30411 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
30413 * util/getroot.c (grub_util_check_block_device): New function that
30414 returns the given argument if it is a block device and returns NULL else.
30415 * util/grub-probe.c (argument_is_device): New variable.
30416 (probe): Promote device_name from a variable to an argument. Receive
30417 device_name from grub_util_check_block_device() if path is NULL and from
30418 grub_guess_root_device() else. Do not free() device_name anymore.
30419 (options): Introduce new parameter '-d, --device'.
30420 (main): Add description of the new parameter to the help screen.
30421 Rename path variable to argument. Set argument_is_device if the '-d'
30422 option is given. Pass argument to probe() depending on
30423 argument_is_device.
30425 2008-02-24 Bean <bean123ch@gmail.com>
30427 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
30428 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
30429 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
30430 (GRUB_ISO9660_VOLDESC_PART): Likewise.
30431 (GRUB_ISO9660_VOLDESC_END): Likewise.
30432 (grub_iso9660_primary_voldesc): New member escape.
30433 (grub_iso9660_data): New member joliet.
30434 (grub_iso9660_convert_string): New function.
30435 (grub_iso9660_mount): Detect joliet extension.
30436 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
30437 (grub_iso9660_iso9660_label): Likewise.
30439 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
30440 (grub_setup_SOURCES): Add fs/udf.c.
30441 (grub_fstest_SOURCES): Likewise.
30442 (udf_mod_SOURCES): New variable.
30443 (udf_mod_CFLAGS): Likewise.
30444 (udf_mod_LDFLAGS): Likewise.
30446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
30447 (grub_emu_SOURCES): Likewise.
30449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30453 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30457 * fs/udf.c: New file.
30459 2008-02-24 Robert Millan <rmh@aybabtu.com>
30461 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
30462 (normal/lexer.c_DEPENDENCIES): New variables.
30463 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30464 (normal/lexer.c_DEPENDENCIES): Likewise.
30465 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
30466 (normal/lexer.c_DEPENDENCIES): Likewise.
30467 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
30468 (normal/lexer.c_DEPENDENCIES): Likewise.
30469 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30470 (normal/lexer.c_DEPENDENCIES): Likewise.
30471 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30472 (normal/lexer.c_DEPENDENCIES): Likewise.
30474 2008-02-23 Robert Millan <rmh@aybabtu.com>
30476 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
30477 since they were intended to be in hex. This didn't break previously
30478 because of a bug in gpt_partition_map_iterate() (see below).
30480 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
30481 when checking the validity of GPT header.
30482 Remove `partno', since it always provides the same information as `i'.
30484 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
30486 * include/grub/efi/time.h: Fix a wrong comment.
30488 2008-02-19 Pavel Roskin <proski@gnu.org>
30490 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
30493 2008-02-19 Bean <bean123ch@gmail.com>
30495 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
30496 (aout_mod_SOURCES): New variable.
30497 (aout_mod_CFLAGS): Likewise.
30498 (aout_mod_LDFLAGS): Likewise.
30499 (_bsd_mod_SOURCES): New variable.
30500 (_bsd_mod_CFLAGS): Likewise.
30501 (_bsd_mod_LDFLAGS): Likewise.
30502 (bsd_mod_SOURCES): New variable.
30503 (bsd_mod_CFLAGS): Likewise.
30504 (bsd_mod_LDFLAGS): Likewise.
30506 * include/grub/aout.h: New file.
30508 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30510 * include/grub/i386/bsd.h: New file.
30512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30515 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
30516 function is called, so that it's possible to change it inside the hook.
30517 (grub_elf64_load): Likewise.
30518 (grub_elf_file): Don't close the file if elf header is not found.
30519 (grub_elf_close): Close the file if grub_elf_file fails (The new
30520 grub_elf_file won't close it).
30521 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
30522 (grub_elf64_size): Likewise.
30524 * kern/i386/loader.S (grub_unix_real_boot): New function.
30526 * loader/aout.c: New file.
30528 * loader/i386/bsd.c: New file.
30530 * loader/i386/bsd_normal.c: New file.
30532 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30534 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30535 can test other formats.
30537 2008-02-19 Robert Millan <rmh@aybabtu.com>
30539 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
30540 (grub_gpt_partition_type_empty): Redefine with macro from
30541 `<grub/gpt_partition.h>'.
30542 (gpt_partition_map_iterate): Adjust partition type comparison.
30544 Export `entry' as partmap-specific `part.data' struct.
30545 (grub_gpt_header, grub_gpt_partentry): Move from here ...
30547 * include/grub/gpt_partition.h (grub_gpt_header)
30548 (grub_gpt_partentry): ... to here (new file).
30550 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
30552 (grub_gpt_partition_type_bios_boot): New const variable, defined
30553 with macro from `<grub/gpt_partition.h>'.
30555 (setup): Replace `first_start' with `embed_region', which keeps
30556 track of the embed region (and is partmap-agnostic).
30558 Replace find_first_partition_start() with find_usable_region(),
30559 which finds a usable region for embedding using partmap-specific
30560 knowledge (supports PC/MSDOS and GPT).
30562 Fix all assumptions that the embed region start at sector 1, using
30563 `embed_region.start' from now on. Similarly, use `embed_region.end'
30564 rather than `first_start' to calculate available size.
30566 In grub_util_info() message, replace "into after the MBR" with an
30567 indication of the specific sector our embed region starts at.
30569 2008-02-19 Robert Millan <rmh@aybabtu.com>
30571 * DISTLIST: Replace `commands/ieee1275/halt.c' and
30572 `commands/ieee1275/reboot.c' with `commands/halt.c' and
30573 `commands/reboot.c'.
30574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30575 (halt_mod_SOURCES): Likewise.
30576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30577 (halt_mod_SOURCES): Likewise.
30579 2008-02-17 Christian Franke <franke@computer.org>
30581 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
30583 2008-02-17 Robert Millan <rmh@aybabtu.com>
30585 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30586 set `first_start' to 0 for non-PC/MSDOS partition maps.
30588 2008-02-16 Robert Millan <rmh@aybabtu.com>
30590 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30591 do not assume partition map is PC/MSDOS before performing checks that
30592 are specific to that layout.
30594 2008-02-13 Robert Millan <rmh@aybabtu.com>
30596 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
30597 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
30598 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
30600 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
30602 * configure.ac: Only a cosmetic change on the handling of
30603 -fno-stack-protector.
30605 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
30607 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
30608 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
30610 (grub_install_SOURCES): Add halt.mod and reboot.mod.
30611 (halt_mod_SOURCES): New variable.
30612 (halt_mod_CFLAGS): Likewise.
30613 (halt_mod_LDFLAGS): Likewise.
30614 (reboot_mod_SOURCES): Likewise.
30615 (reboot_mod_CFLAGS): Likewise.
30616 (reboot_mod_LDFLAGS): Likewise.
30618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
30619 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
30621 (halt_mod_SOURCES): Likewise.
30622 (reboot_mod_SOURCES): Likewise.
30624 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
30625 commands/i386/pc/reboot.c by commands/reboot.c.
30626 (reboot_mod_SOURCES): Likewise.
30628 * commands/i386/pc/reboot.c: merge this file ...
30630 * commands/ieee1275/reboot.c: ... and this file ...
30632 * commands/reboot.c: ... to this file.
30633 Add some precompiler directive to include the correct header for
30636 * commands/ieee1275/halt.c: move this file ...
30638 * commands/halt.c: ... to here.
30639 Add some precompiler directive to include the correct header for
30642 * include/grub/efi/efi.h (grub_reboot): New function declaration.
30643 (grub_halt): Likewise.
30645 * kern/efi/efi.c (grub_reboot): New function.
30646 (grub_halt): Likewise.
30648 2008-02-12 Robert Millan <rmh@aybabtu.com>
30650 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
30651 /dev (like it is done for /dev/mapper). This doesn't provide support
30652 for EVMS, but at least it is now easy to identify the problem when it
30655 2008-02-11 Robert Millan <rmh@aybabtu.com>
30657 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
30658 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
30659 comparing it with -1, not 0.
30661 2008-02-10 Robert Millan <rmh@aybabtu.com>
30663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
30665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30666 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
30669 `disk/lvm.c' to the end of the list.
30670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30673 2008-02-10 Robert Millan <rmh@aybabtu.com>
30675 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
30676 grub_print_error() instead. This will let user know why we're entering
30678 Based on suggestions from Sam Morris.
30680 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
30682 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
30683 on remaining N args, instead of "--" arg N times.
30685 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
30687 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
30688 (fill_with_default_glyph): Changed to use unknown_glyph for fill
30689 pattern for unknown glyphs.
30691 2008-02-09 Robert Millan <rmh@aybabtu.com>
30693 * configure.ac: Probe for `help2man'.
30694 * Makefile.in (builddir): New variable.
30695 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
30696 or otherwise add a few flags/options to it.
30697 (install-local): For every executable utility or script that is
30698 installed, invoke $(HELP2MAN) to install a manpage based on --help
30701 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
30702 that it doesn't prevent --help from working in build tree.
30704 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
30705 with `bug-grub@gnu.org'.
30706 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
30707 * util/update-grub.in (usage): New function.
30708 Implement proper argument check, with support for --help and --version
30709 (as well as existing -y).
30711 2008-02-09 Christian Franke <franke@computer.org>
30713 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
30714 avoid overwriting previous output.
30715 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
30717 2008-02-09 Robert Millan <rmh@aybabtu.com>
30719 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
30722 2008-02-09 Robert Millan <rmh@aybabtu.com>
30724 * commands/sleep.c: New file.
30725 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
30726 (sleep_mod_SOURCES): New variable.
30727 (sleep_mod_CFLAGS): Likewise.
30728 (sleep_mod_LDFLAGS): Likewise.
30730 2008-02-09 Robert Millan <rmh@aybabtu.com>
30732 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
30733 situations in which we can deduce the RAID size and the superblock
30736 2008-02-09 Robert Millan <rmh@aybabtu.com>
30738 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
30739 and return a grub_diskmemberlist_t composed of LVM physical volumes.
30740 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
30742 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
30743 and return a grub_diskmemberlist_t composed of physical array members.
30744 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
30746 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
30748 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
30749 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
30750 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
30752 * util/grub-probe.c (probe): Move partmap probing code from here ...
30753 (probe_partmap): ... to here.
30754 (probe): Use probe_partmap() once for the disk we're probing, and
30755 additionally, when such disk contains a memberlist() struct member,
30756 once for each disk that is contained in the structure returned by
30759 2008-02-09 Robert Millan <rmh@aybabtu.com>
30761 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
30762 environment variable to 'all' in order to obtain debug output from
30764 * util/i386/pc/grub-setup.c (main): Likewise.
30766 2008-02-08 Robert Millan <rmh@aybabtu.com>
30768 * disk/raid.c (grub_raid_scan_device): Check for
30769 `array->device[sb.this_disk.number]' rather than for
30770 `array->device[sb.this_disk.number]->name', since the latter is not
30771 guaranteed to be accessible.
30773 2008-02-08 Robert Millan <rmh@aybabtu.com>
30775 * disk/raid.c: Update copyright.
30776 * fs/cpio.c: Likewise.
30777 * include/grub/raid.h: Likewise.
30778 * loader/i386/pc/multiboot.c: Likewise.
30779 * util/hostfs.c: Likewise.
30781 2008-02-08 Robert Millan <rmh@aybabtu.com>
30783 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
30784 to a grub_disk_t array.
30785 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
30787 (grub_raid_scan_device): Replace `device[x].name' accesses with
30788 `device[x]->name'. Simplify initialization of `array->device[x]'.
30790 2008-02-08 Robert Millan <rmh@aybabtu.com>
30792 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
30793 grub_dprintf() calls.
30794 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
30797 2008-02-07 Christian Franke <franke@computer.org>
30799 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
30800 instead of fseek and ftell to support large files.
30801 (grub_hostfs_read): Likewise.
30803 2008-02-07 Robert Millan <rmh@aybabtu.com>
30805 Patch from Jeroen Dekkers.
30806 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
30807 failure, since successfully reading all array members might not be
30810 2008-02-06 Robert Millan <rmh@aybabtu.com>
30812 * util/grub-probe.c (probe): Simplify partmap probing (with the
30813 assumption that the first word up to the underscore equals to
30816 2008-02-06 Christian Franke <franke@computer.org>
30818 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
30819 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
30820 last block of a cpio or tar stream.
30821 Check for "TRAILER!!!" instead of any empty data
30822 block to detect last block of a cpio stream.
30823 (grub_cpio_dir): Fix constness of variable np.
30824 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
30825 cpio or tar trailer is detected. This fixes a crash
30826 on open of a non existing file.
30828 2008-02-05 Bean <bean123ch@gmail.com>
30830 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
30832 (grub_multiboot_load_elf64): Likewise.
30833 (grub_multiboot): Initialize mbi structure.
30835 * util/grub-fstest.c: Don't include unused header file script.h.
30837 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
30839 (grub_fstest_SOURCES): Likewise.
30841 2008-02-05 Robert Millan <rmh@aybabtu.com>
30843 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
30844 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
30845 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
30846 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
30848 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
30849 (translation_table): Replace hardcoded values with macros
30850 provided by `<grub/term.h>'.
30852 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
30853 (keyboard_map): Correct/add a few values, with macros provided
30854 by `<grub/term.h>'.
30855 (keyboard_map_shift): Zero values that don't differ from their
30856 `keyboard_map' equivalents.
30857 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
30858 Discard the second scan code that is always sent by Caps lock.
30859 Only use `keyboard_map_shift' when it provides a non-zero value,
30860 otherwise fallback to `keyboard_map'.
30862 2008-02-04 Bean <bean123ch@gmail.com>
30864 * Makefile.in (enable_grub_fstest): New variable.
30866 * conf/common.rmk (grub_fstest_init.lst): New rule.
30867 (grub_fstest_init.h): Likewise.
30868 (grub_fstest_init.c): Likewise.
30869 (util/grub-fstest.c_DEPENDENCIES): New variable.
30870 (grub_fstest_SOURCES): Likewise.
30872 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
30874 * util/grub-fstest.c: New file.
30876 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30878 Make grub-setup handle a separate root device.
30880 * util/i386/pc/grub-setup.c (setup): Always open the root device,
30881 so that the root device can be compared with the destination
30883 When embedding the core image, if the root and destination devices
30884 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
30886 When not embedding, set ROOT_DRIVE to 0xFF.
30888 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30890 Add support for having a grub directory in a different drive. This
30891 is still only the data handling part.
30893 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
30894 (codestart): Save %dh in GRUB_ROOT_DRIVE.
30895 (grub_root_drive): New variable.
30897 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
30898 instead of GRUB_BOOT_DRIVE to construct a device name. Set
30899 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
30902 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
30904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
30906 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
30908 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
30909 is bogus, because PXE booting does not specify any drive
30912 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
30913 am not sure if this is really correct.
30915 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
30916 is always identical to the boot drive when booting from a CD.
30918 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
30920 (root_drive): New variable.
30921 (real_start): Unconditionally set %dh to ROOT_DRIVE.
30922 (setup_sectors): Push %dx right after popping it, because %dh will
30924 (copy_buffer): Restore %dx.
30926 2008-02-03 Robert Millan <rmh@aybabtu.com>
30928 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
30929 use `cdboot.img' for cdrom images.
30931 2008-02-03 Robert Millan <rmh@aybabtu.com>
30933 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
30934 only setup gfxterm when `font' command has succeeded.
30936 2008-02-03 Robert Millan <rmh@aybabtu.com>
30938 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
30939 (grub_rescue_cmd_multiboot_loader)
30940 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
30942 2008-02-03 Pavel Roskin <proski@gnu.org>
30944 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
30945 %edx and %esi from stack only after grub_gate_a20() is called.
30946 grub_gate_a20() clobbers %edx.
30948 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30950 * configure.ac (AC_INIT): Bumped to 1.96.
30952 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
30953 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
30954 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
30955 video/readers/png.c.
30957 2008-02-03 Bean <bean123ch@gmail.com>
30959 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
30960 (cdboot_img_SOURCES): New variable.
30961 (cdboot_img_ASFLAGS): New variable.
30962 (cdboot_img_LDFLAGS): New variable.
30964 * boot/i386/pc/cdboot.S: New file.
30966 * disk/i386/pc/biosdisk.c (cd_start): New variable.
30967 (cd_count): Likewise.
30968 (grub_biosdisk_get_drive): Add support for cd device.
30969 (grub_biosdisk_call_hook): Likewise.
30970 (grub_biosdisk_iterate): Likewise.
30971 (grub_biosdisk_open): Likewise.
30972 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
30973 (grub_biosdisk_rw): Support reading from cd device.
30974 (GRUB_MOD_INIT): Iterate cd devices.
30976 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
30977 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
30978 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
30980 * kern/i386/pc/init.c (make_install_device): Check for cd device.
30982 2008-02-02 Robert Millan <rmh@aybabtu.com>
30984 * commands/read.c: New file.
30985 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
30986 (read_mod_SOURCES): New variable.
30987 (read_mod_CFLAGS): Likewise.
30988 (read_mod_LDFLAGS): Likewise.
30990 2008-02-02 Robert Millan <rmh@aybabtu.com>
30992 * normal/main.c (grub_normal_execute): Check for `menu->size' when
30993 determining whether menu has to be displayed.
30995 2008-02-02 Marco Gerards <marco@gnu.org>
30997 * bus/pci.c: New file.
30999 * include/grub/pci.h: Likewise.
31001 * include/grub/i386/pc/pci.h: Likewise.
31003 * commands/lspci.c: Likewise.
31005 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31007 (pci_mod_SOURCES): New variable.
31008 (pci_mod_CFLAGS): Likewise.
31009 (pci_mod_LDFLAGS): Likewise.
31010 (lspci_mod_SOURCES): Likewise.
31011 (lspci_mod_CFLAGS): Likewise.
31012 (lspci_mod_LDFLAGS): Likewise.
31014 2008-02-02 Bean <bean123ch@gmail.com>
31016 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31017 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31019 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31020 (grub_xfs_btree_node): New structure.
31021 (grub_xfs_btree_root): New structure.
31022 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31023 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31024 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31025 (GRUB_XFS_EXTENT_SIZE): Likewise.
31026 (grub_xfs_read_block): Support btree format type.
31027 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31028 Use directory block as basic unit.
31030 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31032 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31033 __attribute__ ((__regparm__ (1))).
31035 2008-02-01 Robert Millan <rmh@aybabtu.com>
31037 Correct a mistake in previous commit.
31039 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31041 (normal/command.c_DEPENDENCIES): New variable.
31043 2008-02-01 Robert Millan <rmh@aybabtu.com>
31045 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31047 (normal/command.c_DEPENDENCIES): New variable.
31048 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31049 * conf/i386-ieee1275.rmk: Likewise.
31050 * conf/i386-linuxbios.rmk: Likewise.
31051 * conf/i386-pc.rmk: Likewise.
31052 * conf/sparc64-ieee1275.rmk: Likewise.
31053 * conf/powerpc-ieee1275.rmk: Likewise.
31054 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31056 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31058 2008-02-01 Robert Millan <rmh@aybabtu.com>
31060 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31061 call at beginning of function.
31063 2008-01-31 Pavel Roskin <proski@gnu.org>
31065 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31066 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31067 (grub_mkrescue_SOURCES): Likewise.
31068 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31070 2008-01-30 Robert Millan <rmh@aybabtu.com>
31072 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31073 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31074 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31075 (grub_probe_SOURCES): ... to here.
31077 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31078 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31079 * conf/i386-ieee1275.rmk: Likewise.
31080 * conf/i386-linuxbios.rmk: Likewise.
31081 * conf/powerpc-ieee1275.rmk: Likewise.
31083 2008-01-30 Tristan Gingold <gingold@free.fr>
31085 * kern/rescue.c: Silently accept empty lines.
31087 2008-01-29 Bean <bean123ch@gmail.com>
31089 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31090 (real_code_2): Code cleanup and change comment style.
31091 (move_memory): Avoid using 32-bit address mode.
31093 2008-01-29 Bean <bean123ch@gmail.com>
31095 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31096 (png_mod_SOURCES): New variable.
31097 (png_mod_CFLAGS): Likewise.
31098 (png_mod_LDFLAGS): Likewise.
31100 * video/readers/png.c: New file.
31102 2008-01-28 Robert Millan <rmh@aybabtu.com>
31104 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31105 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31106 `ifndef GRUB_MOD_GAP' hack.
31107 * util/elf/grub-mkimage.c (add_segments): Likewise.
31109 2008-01-27 Robert Millan <rmh@aybabtu.com>
31111 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31112 `GRUB_MOD_GAP' for platforms in which it's not defined.
31113 * util/elf/grub-mkimage.c (add_segments): Likewise.
31115 2008-01-27 Robert Millan <rmh@aybabtu.com>
31117 Get grub-emu to build again (including parallel builds).
31119 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31121 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31122 (normal/execute.c_DEPENDENCIES): ... this, ...
31123 (grub-emu_DEPENDENCIES): ... and this.
31125 * conf/i386-efi.rmk: Likewise.
31126 * conf/i386-linuxbios.rmk: Likewise.
31127 * conf/i386-ieee1275.rmk: Likewise.
31128 * conf/powerpc-ieee1275.rmk: Likewise.
31129 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31131 2008-01-27 Robert Millan <rmh@aybabtu.com>
31133 * NEWS: Add a few items.
31135 2008-01-27 Robert Millan <rmh@aybabtu.com>
31137 Fix parallel builds with grub-emu. Based on earlier commit for
31138 grub-probe and grub-setup.
31140 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31141 (util/grub-emu.c_DEPENDENCIES): ... this.
31142 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31143 (util/grub-emu.c_DEPENDENCIES): ... this.
31144 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31145 (util/grub-emu.c_DEPENDENCIES): ... this.
31146 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31147 (util/grub-emu.c_DEPENDENCIES): ... this.
31148 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31149 (util/grub-emu.c_DEPENDENCIES): ... this.
31151 2008-01-27 Pavel Roskin <proski@gnu.org>
31153 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31154 to create a gap between _end and the modules added to the image
31155 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31156 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31157 * util/elf/grub-mkimage.c (add_segments): Likewise.
31159 2008-01-26 Pavel Roskin <proski@gnu.org>
31161 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31162 just return an error.
31164 2008-01-26 Bean <bean123ch@gmail.com>
31166 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31167 (grub_reiserfs_get_item): Save offset of the next item.
31168 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31170 2008-01-25 Robert Millan <rmh@aybabtu.com>
31172 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31173 make all filesystem sources appear together (possibly fixing omissions
31175 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31176 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31180 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31182 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31183 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31184 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31185 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31187 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31188 (probe): Add a sanity check to make sure of our ability to read
31189 requested files when probing for filesystem type.
31191 * genmk.rb: Update copyright year (2007).
31193 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31194 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31195 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31196 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31197 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31198 : Remove function prototypes.
31200 2008-01-25 Robert Millan <rmh@aybabtu.com>
31202 Revert my previous commits (based on wrong assumption of how grub_errno
31205 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31206 * kern/file.c (grub_file_open): Likewise.
31208 2008-01-24 Pavel Roskin <proski@gnu.org>
31210 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31211 that hang if GRUB tries to setup colors.
31212 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31213 colors for firmwares that don't support it.
31214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31215 Recognize Open Hack'Ware, set flags to work around its
31218 2008-01-24 Robert Millan <rmh@aybabtu.com>
31220 * kern/file.c (grub_file_open): Do not account previous failures of
31221 unrelated functions when grub_errno is checked for.
31222 Reported by Oleg Strikov.
31224 2008-01-24 Bean <bean123ch@gmail.com>
31226 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31227 (grub_ufs_sblock): New member volume name.
31228 (grub_ufs_find_file): Fix string copy bug.
31229 (grub_ufs_label): Implement this function properly.
31231 * fs/hfs.c (grub_hfs_cnid_type): New enum.
31232 (grub_hfs_iterate_records): Use the correct file number for extents
31233 and catalog file. Fix problem in next index calculation.
31234 (grub_hfs_find_node): Replace recursive function call with loop.
31235 (grub_hfs_iterate_dir): Replace recursive function call with loop.
31237 2008-01-23 Robert Millan <rmh@aybabtu.com>
31239 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
31240 `<grub/symbol.h>' and `<grub/multiboot.h>'.
31241 (grub_multiboot2_real_boot): New function prototype.
31243 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31244 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31246 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31247 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31249 2008-01-23 Robert Millan <rmh@aybabtu.com>
31251 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31252 #ifdef'ed out grub_printf().
31254 2008-01-23 Robert Millan <rmh@aybabtu.com>
31256 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
31257 grub_dprintf calls, since they make "debug=all" mode unusable.
31258 (grub_console_checkkey): Likewise.
31260 2008-01-23 Robert Millan <rmh@aybabtu.com>
31262 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
31263 `term/i386/pc/at_keyboard.c'.
31264 (pkglib_MODULES): Add `serial.mod'.
31265 (serial_mod_SOURCES): New variable.
31266 (serial_mod_CFLAGS): Likewise.
31267 (serial_mod_LDFLAGS): Likewise.
31269 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
31270 `<grub/powerpc/ieee1275/console.h>'.
31271 (grub_keyboard_controller_init): New function prototype.
31272 (grub_console_checkkey): Likewise.
31273 (grub_console_getkey): Likewise.
31275 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31278 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31279 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31281 2008-01-23 Robert Millan <rmh@aybabtu.com>
31283 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31284 present, "(memdisk)/boot/grub" becomes the default prefix.
31286 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
31287 a memdisk tarball with all the modules. Add --overlay=DIR option that
31288 allows users to overlay additional files into the image.
31290 2008-01-23 Robert Millan <rmh@aybabtu.com>
31292 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
31293 and `machine/memory.h'.
31294 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
31295 (_multiboot_mod_SOURCES): New variable.
31296 (_multiboot_mod_CFLAGS): Likewise.
31297 (_multiboot_mod_LDFLAGS): Likewise.
31298 (multiboot_mod_SOURCES): Likewise.
31299 (multiboot_mod_CFLAGS): Likewise.
31300 (multiboot_mod_LDFLAGS): Likewise.
31302 * include/grub/i386/ieee1275/loader.h: New file.
31304 * include/grub/i386/ieee1275/machine.h: Likewise.
31306 * include/grub/i386/ieee1275/memory.h: Likewise.
31308 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
31309 variable declaration.
31310 (grub_os_area_size): Likewise.
31312 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
31313 (grub_lower_mem, grub_upper_mem): New variables.
31314 (grub_stop_floppy): New function (just to make
31315 grub_multiboot2_real_boot() happy).
31317 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
31318 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
31319 (grub_stop): New function.
31320 Include `"../realmode.S"' and `"../loader.S"'.
31322 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
31323 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
31325 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
31326 rely on grub_multiboot2_real_boot() for final boot.
31328 2008-01-22 Robert Millan <rmh@aybabtu.com>
31330 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
31331 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
31332 device that doesn't look like an SD card.
31333 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31334 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
31335 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
31336 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
31339 2008-01-22 Robert Millan <rmh@aybabtu.com>
31341 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
31342 avoid claiming over our own code.
31344 2008-01-22 Bean <bean123ch@gmail.com>
31346 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
31347 (jpeg_mod_SOURCES): New variable.
31348 (jpeg_mod_CFLAGS): Likewise.
31349 (jpeg_mod_LDFLAGS): Likewise.
31351 * video/readers/jpeg.c : New file.
31353 2008-01-22 Bean <bean123ch@gmail.com>
31355 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
31356 there are no more items.
31358 2008-01-21 Robert Millan <rmh@aybabtu.com>
31360 * kern/mm.c (grub_mm_init_region): Improve debug message.
31362 2008-01-21 Robert Millan <rmh@aybabtu.com>
31364 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
31365 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
31367 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
31369 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
31370 Indicates start of upper memory.
31371 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
31372 (generate_image): Abort when image size is big enough to corrupt
31375 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
31376 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
31377 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31378 instead of hardcoding 0xA0000.
31379 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
31380 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31381 instead of hardcoding 0xA0000.
31383 2008-01-21 Robert Millan <rmh@aybabtu.com>
31385 * disk/memdisk.c (memdisk_size): New variable.
31386 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
31388 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
31389 image to dynamic memory.
31390 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
31391 `memdisk_size'. Free memdisk block.
31393 2008-01-21 Robert Millan <rmh@aybabtu.com>
31395 Fix detection of very small filesystems (like tar).
31397 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
31398 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
31399 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
31400 a problem with this disk).
31402 2008-01-21 Robert Millan <rmh@aybabtu.com>
31404 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
31405 on grub_biosdisk_rw_standard() error.
31407 2008-01-21 Robert Millan <rmh@aybabtu.com>
31409 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
31411 * kern/elf.c: Likewise.
31412 * kern/ieee1275/ieee1275.c: Likewise.
31413 * kern/powerpc/ieee1275/openfw.c: Likewise.
31414 * term/ieee1275/ofconsole.c: Likewise.
31416 2008-01-21 Robert Millan <rmh@aybabtu.com>
31418 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
31420 * include/grub/kernel.h (grub_arch_memdisk_addr)
31421 (grub_arch_memdisk_size): Moved from here ...
31423 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
31424 (grub_arch_memdisk_size): ... to here.
31426 2008-01-21 Robert Millan <rmh@aybabtu.com>
31428 Mostly based on bugfix from Bean.
31430 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
31431 attribute with hook() parameter.
31432 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
31434 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
31435 attribute with hook() parameter.
31436 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
31439 2008-01-21 Robert Millan <rmh@aybabtu.com>
31441 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
31442 (pkglib_MODULES): Add `memdisk.mod'.
31443 (memdisk_mod_SOURCES): New variable.
31444 (memdisk_mod_CFLAGS): Likewise.
31445 (memdisk_mod_LDFLAGS): Likewise.
31447 * disk/memdisk.c: New file.
31449 * include/grub/disk.h (grub_disk_dev_id): Add
31450 `GRUB_DISK_DEVICE_MEMDISK_ID'.
31452 * include/grub/i386/pc/kernel.h
31453 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
31454 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
31455 (grub_kernel_image_size): New variable declaration.
31456 (grub_total_module_size): Likewise.
31457 (grub_memdisk_image_size): Likewise.
31459 * include/grub/i386/pc/memory.h
31460 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
31462 * include/grub/kernel.h: Include `<grub/symbol.h>'.
31463 (grub_arch_memdisk_addr): New variable declaration.
31464 (grub_arch_memdisk_size): Likewise.
31466 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
31467 (grub_arch_memdisk_size): Likewise.
31469 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
31470 (codestart): Replace hardcoded `0x100000' with
31471 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
31473 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
31474 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
31475 not NULL, append the contents of the file it refers to, at the end of
31476 the compressed kernel image. Initialize `grub_memdisk_image_size'
31477 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
31478 (options): Add "memdisk"|'m' option.
31479 (main): Parse --memdisk|-m option, and pass user-provided path as
31480 parameter to generate_image().
31482 2008-01-20 Robert Millan <rmh@aybabtu.com>
31484 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
31485 grub_dprintf() calls from here ...
31486 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
31488 2008-01-20 Robert Millan <rmh@aybabtu.com>
31490 Fix detection of "real mode" when /options/real-mode? doesn't exist.
31492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
31494 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
31495 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
31496 `GRUB_IEEE1275_FLAG_REAL_MODE'.
31497 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
31499 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
31500 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
31502 2008-01-19 Robert Millan <rmh@aybabtu.com>
31504 Get rid of confusing function (superseded by
31505 `grub_ieee1275_get_integer_property')
31506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
31508 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31510 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
31511 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
31512 in native endianness from grub_ieee1275_get_integer_property().
31514 2008-01-19 Robert Millan <rmh@aybabtu.com>
31516 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
31517 command after "shut-down", since implementations differ on which
31518 the command for halt is.
31520 2008-01-19 Robert Millan <rmh@aybabtu.com>
31522 * include/grub/i386/linuxbios/console.h: Add header protection.
31523 (grub_keyboard_controller_init): New function prototype.
31524 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
31525 (KEYBOARD_COMMAND_READ): Likewise.
31526 (KEYBOARD_COMMAND_WRITE): Likewise.
31527 (KEYBOARD_SCANCODE_SET1): Likewise.
31528 (grub_keyboard_controller_write): New function.
31529 (grub_keyboard_controller_read): Likewise.
31530 (grub_keyboard_controller_init): Likewise.
31532 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31533 (grub_console_init): On coreboot/LinuxBIOS, call
31534 grub_keyboard_controller_init().
31536 2008-01-19 Robert Millan <rmh@aybabtu.com>
31538 PowerPC changes provided by Pavel Roskin.
31540 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
31541 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
31542 don't rely on cmain() doing it.
31543 * kern/i386/ieee1275/startup.S (_start): Store %eax in
31544 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
31546 2008-01-16 Robert Millan <rmh@aybabtu.com>
31548 * include/grub/i386/linuxbios/memory.h
31549 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
31550 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
31551 receive `table_header' as argument. Instead, probe for it in the
31552 known memory ranges where it can be present.
31553 (grub_available_iterate): Do not pass a fixed `table_header' address
31554 to grub_linuxbios_table_iterate().
31556 2008-01-15 Robert Millan <rmh@aybabtu.com>
31558 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
31559 * conf/i386-ieee1275.rmk: New file.
31560 * include/grub/i386/ieee1275/console.h: Likewise.
31561 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
31562 * include/grub/i386/ieee1275/kernel.h: Likewise.
31563 * include/grub/i386/ieee1275/time.h: Likewise.
31564 * kern/i386/ieee1275/init.c: Likewise.
31565 * kern/i386/ieee1275/startup.S: Likewise.
31567 2008-01-15 Robert Millan <rmh@aybabtu.com>
31569 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
31570 when pointers are 32-bit (but still do set it to one when they are
31573 2008-01-15 Robert Millan <rmh@aybabtu.com>
31575 * include/grub/ieee1275/ieee1275.h
31576 (grub_ieee1275_get_integer_property): New function prototype.
31578 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
31579 (grub_ieee1275_get_integer_property): New function. Wraps around
31580 grub_ieee1275_get_property() to handle endianness.
31582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
31583 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
31585 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
31586 (grub_map): Likewise.
31587 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
31589 2008-01-15 Bean <bean123ch@gmail.com>
31591 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
31592 (grub_script_execute_cmdline): Reset grub_errno.
31594 * normal/main.c (read_config_file): Reset grub_errno.
31596 * normal/parse.y (script_init): New.
31597 (script): Move function and menuentry here.
31599 (command): Add delimiter at the end of command.
31600 (commands): Adjust to match the new command.
31601 (commandblock): Remove grub_script_lexer_record_start.
31602 (menuentry): Add grub_script_lexer_record_start, use the new commands.
31603 (if): Use the new commands.
31605 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
31607 2008-01-15 Robert Millan <rmh@aybabtu.com>
31609 * normal/menu.c (run_menu): Move timeout message from here ...
31610 (print_timeout): ... to here.
31611 (run_menu): Use print_timeout() once during initial draw to print
31612 the whole message, and again in every clock tick to update only
31613 the number of seconds.
31615 2008-01-15 Robert Millan <rmh@aybabtu.com>
31617 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
31618 actual size of `available' from grub_ieee1275_get_property(), and
31619 restrict parsing to that bound.
31621 2008-01-15 Christian Franke <franke@computer.org>
31623 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
31624 (argp_program_version): Remove variable.
31625 (argp_program_bug_address): Likewise.
31626 (options): Convert from struct argp_option to struct option.
31627 (struct arguments): Remove.
31628 (parse_opt): Remove.
31629 (usage): New function.
31630 (main): Replace struct args members by simple variables.
31631 Replace argp_parse() by getopt_long().
31632 Add switch to evaluate options.
31633 Add missing "(...)" around root_dev in prefix string.
31635 2008-01-14 Robert Millan <rmh@aybabtu.com>
31637 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
31638 for grub_ieee1275_exit(), in order to improve portability.
31640 2008-01-14 Robert Millan <rmh@aybabtu.com>
31642 * util/grub.d/10_linux.in (prefix): Define.
31643 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
31645 2008-01-13 Pavel Roskin <proski@gnu.org>
31647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
31648 grub_errno if no errors have been detected.
31650 2008-01-12 Robert Millan <rmh@aybabtu.com>
31652 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
31653 (grub_util_get_dev_abstraction): New function prototype.
31655 * util/getroot.c: Include `<grub/util/getroot.h>'
31656 (grub_util_get_grub_dev): Move detection of abstraction type to ...
31657 (grub_util_get_dev_abstraction): ... here (new function).
31659 * util/grub-probe.c: Convert PRINT_* to an enum. Add
31660 `PRINT_ABSTRACTION'.
31661 (probe): Probe for abstraction type when requested.
31662 (main): Understand `--target=abstraction'.
31664 * util/i386/efi/grub-install.in: Add abstraction module to core
31665 image when it is found to be necessary.
31666 * util/i386/pc/grub-install.in: Likewise.
31667 * util/powerpc/ieee1275/grub-install.in: Likewise.
31669 * util/update-grub_lib.in (font_path): Return system path without
31670 converting to GRUB path.
31671 * util/update-grub.in: Convert system path returned by font_path()
31672 to a GRUB path. Use `grub-probe -t abstraction' to determine what
31673 abstraction module is needed for loading fonts (if any). Export
31674 that as `GRUB_PRELOAD_MODULES'.
31675 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
31678 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
31680 Remove some unused code from reiserfs.
31682 * fs/reiserfs.c (struct grub_reiserfs_key)
31683 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
31684 (struct grub_reiserfs_node_body): Removed.
31685 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31687 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31689 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31691 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31693 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31695 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
31697 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31698 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31699 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31701 2008-01-10 Robert Millan <rmh@aybabtu.com>
31703 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
31704 Determines if a file is garbage left by packaging systems, etc.
31705 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
31706 for processing /etc/grub.d scripts.
31707 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
31708 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
31709 as a condition for processing Linux images.
31711 2008-01-10 Pavel Roskin <proski@gnu.org>
31713 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
31714 to compile reiserfs.c on PowerPC.
31716 2008-01-10 Robert Millan <rmh@aybabtu.com>
31718 * kern/device.c (grub_device_iterate): Do not abort device iteration
31719 when one of the devices cannot be opened.
31720 * kern/disk.c (grub_disk_open): Do not account previous failures of
31721 unrelated functions when grub_errno is checked for.
31723 2008-01-08 Robert Millan <rmh@aybabtu.com>
31725 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
31726 `! grub_linux_is_bzimage', change order of address comparison to make
31727 it more intuitive, and improve "too big zImage" error message.
31729 2008-01-08 Robert Millan <rmh@aybabtu.com>
31731 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
31732 `$(update-grub_DATA)'.
31733 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
31736 2008-01-07 Robert Millan <rmh@aybabtu.com>
31738 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
31739 which instruction is modified by grub-setup during installation
31740 (since it wasn't obvious by only looking at this file).
31742 2008-01-07 Robert Millan <rmh@aybabtu.com>
31744 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
31745 listing actual TODO items.
31747 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31749 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
31751 (grub_reiserfs_get_key_offset): Likewise.
31752 (grub_reiserfs_set_key_offset): Likewise.
31753 (grub_reiserfs_set_key_type): Likewise.
31754 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
31756 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
31757 better to remove the bitfield version completely.
31759 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31761 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
31762 allocated from the heap, due to the fshelp implementation.
31763 (grub_reiserfs_dir): Free NODE, due to the same reason.
31765 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31767 Mostly from Vincent Pelletier:
31769 * fs/reiserfs.c: New file.
31771 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
31772 (reiserfs_mod_SOURCES): New variable.
31773 (reiserfs_mod_CFLAGS): Likewise.
31774 (reiserfs_mod_LDFLAGS): Likewise.
31776 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
31777 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
31778 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
31781 2008-01-06 Robert Millan <rmh@aybabtu.com>
31783 * normal/color.c: Remove `<grub/env.h>'.
31785 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
31787 * include/grub/normal.h: Include <grub/env.h>.
31789 2008-01-05 Robert Millan <rmh@aybabtu.com>
31791 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
31792 usage example with `(hd0,1)'.
31793 Reported by Samuel Thibault.
31795 2008-01-05 Robert Millan <rmh@aybabtu.com>
31797 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
31798 (grub_linux_boot_zimage): Rename to ...
31799 (grub_linux_boot): ... this.
31800 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
31801 (grub_linux_boot_zimage): Conditionalize zImage copy.
31803 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
31804 (grub_linux_boot_bzimage): Remove prototype.
31805 (grub_linux_boot_zimage): Rename to ...
31806 (grub_linux_boot): ... this.
31808 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
31809 (grub_linux_boot): Remove function.
31811 2008-01-05 Robert Millan <rmh@aybabtu.com>
31813 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
31814 (grub_env_write_color_highlight): Likewise.
31815 (grub_wait_after_message): Likewise.
31817 * normal/color.c: New file.
31819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31820 (normal_mod_DEPENDENCIES): Likewise.
31822 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31823 (normal_mod_DEPENDENCIES): Likewise.
31825 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31826 (normal_mod_DEPENDENCIES): Likewise.
31828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31829 (normal_mod_DEPENDENCIES): Likewise.
31831 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
31832 for waiting after a message is printed.
31833 * normal/main.c (read_config_file): Likewise.
31834 (grub_normal_init): Register grub_env_write_color_normal() and
31835 grub_env_write_color_highlight() hooks. Mark `color_normal' and
31836 `color_highlight' variables as global.
31838 * normal/menu.c (grub_wait_after_message): New function.
31839 (grub_color_menu_normal): New variable. Replaces ...
31840 (GRUB_COLOR_MENU_NORMAL): ... this macro.
31841 (grub_color_menu_highlight): New variable. Replaces ...
31842 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
31843 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
31844 `GRUB_TERM_COLOR_STANDARD'.
31845 (print_message): Use `grub_setcolorstate' to reload colors. Rename
31846 `normal_code' and `highlight_code' to `old_color_normal' and
31847 `old_color_highlight', respectively.
31848 (grub_menu_init_page): Update colors when drawing the menu, based on
31849 `menu_color_normal' and `menu_color_highlight' variables.
31850 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
31851 a message is printed.
31853 2008-01-05 Robert Millan <rmh@aybabtu.com>
31855 * kern/env.c (grub_env_context_open): Propagate hooks for global
31856 variables to new context.
31858 * kern/main.c (grub_set_root_dev): Export `root' variable.
31860 2008-01-05 Robert Millan <rmh@aybabtu.com>
31862 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
31863 discs unconditionally, since udev and others have options to provide
31866 2008-01-05 Robert Millan <rmh@aybabtu.com>
31868 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
31870 2008-01-04 Christian Franke <franke@computer.org>
31872 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
31875 2008-01-03 Pavel Roskin <proski@gnu.org>
31877 * kern/i386/linuxbios/init.c: Put "void" to all function
31878 declarations with no arguments.
31879 * kern/powerpc/ieee1275/init.c: Likewise.
31880 * term/i386/pc/at_keyboard.c: Likewise.
31881 * term/i386/pc/vga_text.c: Likewise.
31882 * util/grub-mkdevicemap.c: Likewise.
31884 2008-01-02 Robert Millan <rmh@aybabtu.com>
31886 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
31887 message when loaded image is out of bounds.
31888 (grub_multiboot_load_elf64): Likewise.
31890 2008-01-02 Pavel Roskin <proski@gnu.org>
31892 * util/grub.d/10_linux.in: Try version without ".old" when
31893 looking for initrd. It's better to use initrd from the newer
31894 kernel of the same version than no initrd at all.
31896 2008-01-01 Robert Millan <rmh@aybabtu.com>
31898 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
31900 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
31902 * include/grub/video.h: Added grub_video_unmap_color and
31903 grub_video_get_active_render_target.
31904 (grub_video_adapter): Added unmap_color and get_active_render_target.
31906 * video/video.c: Added grub_video_unmap_color and
31907 grub_video_get_active_render_target.
31908 (grub_video_get_info): Changed method to accept NULL pointer as an
31909 argument to allow detection of active video adapter.
31911 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
31912 grub_video_vbe_unmap_color_int.
31913 Added grub_video_vbe_unmap_color and
31914 grub_video_vbe_get_active_render_target.
31915 (grub_video_vbe_adapter): Added unmap_color and
31916 get_active_render_target.
31918 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
31919 with grub_video_vbe_unmap_color_int.
31921 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
31922 (DEFAULT_NORMAL_COLOR): Likewise.
31923 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
31924 (DEFAULT_FG_COLOR): Removed.
31925 (DEFAULT_BG_COLOR): Likewise.
31926 (DEFAULT_CURSOR_COLOR): Changed value.
31927 (grub_virtual_screen): Added standard_color_setting,
31928 normal_color_setting, highlight_color_setting and term_color.
31929 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
31930 (bitmap_width): Added.
31931 (bitmap_height): Likewise.
31932 (bitmap): Likewise.
31933 (set_term_color): Likewise.
31934 (grub_virtual_screen_setup): Changed to use new terminal coloring
31936 (grub_gfxterm_init): Added init for bitmap.
31937 (grub_gfxterm_fini): Added destroy for bitmap.
31938 (redraw_screen_rect): Updated to use background bitmap and new
31940 (scroll_up): Added optimization for case when there is no bitmap.
31941 (grub_gfxterm_cls): Fixed to use correct background color.
31942 (grub_virtual_screen_setcolorstate): Changed to use new terminal
31944 (grub_virtual_screen_setcolor): Likewise.
31945 (grub_virtual_screen_getcolor): Added.
31946 (grub_gfxterm_background_image_cmd): Likewise.
31947 (grub_video_term): Added setcolor and getcolor.
31948 (MOD_INIT): Added registration of background_image command.
31949 (MOD_TERM): Added unregistration for background_image command.
31951 2007-12-30 Pavel Roskin <proski@gnu.org>
31953 * loader/multiboot_loader.c: Fix multiboot command
31954 unregistration. Fix all typos in the word "multiboot".
31956 2007-12-29 Pavel Roskin <proski@gnu.org>
31958 * util/grub.d/10_linux.in: Refactor search for initrd. Add
31959 support for initrd names used in Fedora.
31961 2007-12-26 Bean <bean123ch@gmail.com>
31963 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
31964 (cpio_mod_SOURCES): New variable.
31965 (cpio_mod_CFLAGS): Likewise.
31966 (cpio_mod_LDFLAGS): Likewise.
31968 * fs/cpio.c: New file.
31970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
31972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31978 2007-12-25 Robert Millan <rmh@aybabtu.com>
31980 * include/grub/term.h (struct grub_term): Add `getcolor' function.
31981 (grub_getcolor): New function.
31983 * kern/term.c (grub_getcolor): New function.
31984 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
31985 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
31986 (print_entry): Set normal and highlight colors to
31987 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
31988 respectively, before printing and restore them to old
31990 (grub_menu_init_page): Likewise. Fill an additional colored space
31991 that would otherwise be left blank.
31993 * term/efi/console.c (grub_console_getcolor): New function.
31994 (struct grub_console_term.getcolor): New variable.
31995 * term/i386/pc/console.c (grub_console_getcolor): New function.
31996 (struct grub_console_term.getcolor): New variable.
31997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
31998 (struct grub_console_term.getcolor): New variable.
32000 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32001 (struct grub_console_term.setcolor): Remove variable.
32002 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32003 (struct grub_console_term.setcolor): Remove variable.
32004 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32005 (struct grub_console_term.setcolor): Remove variable.
32006 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32007 (struct grub_console_term.setcolor): Remove variable.
32009 2007-12-25 Robert Millan <rmh@aybabtu.com>
32011 * configure.ac: Search for possible unifont.hex locations, and
32012 define UNIFONT_HEX if found.
32014 * Makefile.in (UNIFONT_HEX): Define variable.
32015 (DATA): Rename to ...
32016 (PKGLIB): ... this. Update all users.
32017 (PKGDATA): New variable.
32018 (pkgdata_IMAGES): Rename to ...
32019 (pkglib_IMAGES): ... this. Update all users.
32020 (pkgdata_MODULES): Rename to ...
32021 (pkglib_MODULES): ... this. Update all users.
32022 (pkgdata_PROGRAMS): Rename to ...
32023 (pkglib_PROGRAMS): ... this. Update all users.
32024 (pkgdata_DATA): Rename to ...
32025 (pkglib_DATA): ... this. Update all users.
32026 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32027 (unicode.pff, ascii.pff): New rules.
32028 (all-local): Add `$(PKGDATA)' dependency.
32029 (install-local): Process `$(PKGDATA)'.
32031 * util/update-grub_lib.in (font_path): Search for *.pff files in
32032 a few more locations, including `${pkgdata}'.
32034 2007-12-23 Robert Millan <rmh@aybabtu.com>
32036 Patch from Bean <bean123ch@gmail.com>:
32037 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32040 2007-12-21 Bean <bean123ch@gmail.com>
32042 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32043 (ntfscomp_mod_SOURCES): New variable.
32044 (ntfscomp_mod_CFLAGS): Likewise.
32045 (ntfscomp_mod_LDFLAGS): Likewise.
32047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32048 (grub_probe_SOURCES): Likewise.
32049 (grub_emu_SOURCES): Likewise.
32051 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32052 (grub_emu_SOURCES): Likewise.
32054 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32055 (grub_emu_SOURCES): Likewise.
32057 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32058 (grub_emu_SOURCES): Likewise.
32060 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32061 (read_run_list): Renamed to grub_ntfs_read_run_list.
32062 (decomp_nextvcn): Moved to ntfscomp.c.
32063 (decomp_getch): Likewise.
32064 (decomp_get16): Likewise.
32065 (decomp_block): Likewise.
32066 (read_block): Likewise.
32067 (read_data): Partially moved to ntfscomp.c.
32068 (fixup): Change unsigned to grub_uint16_t.
32069 (read_mft): Change unsigned long to grub_uint32_t.
32070 (read_attr): Likewise.
32071 (read_data): Likewise.
32072 (read_run_data): Likewise.
32073 (read_run_list): Likewise.
32074 (read_mft): Likewise.
32076 * fs/ntfscomp.c: New file.
32078 * include/grub/ntfs.h: New file.
32080 2007-12-16 Robert Millan <rmh@aybabtu.com>
32082 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32083 IDE disk check, since Linux is known to support 20 IDE disks.
32084 Reported by Colin Watson.
32086 2007-12-15 Bean <bean123ch@gmail.com>
32088 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32089 (lnxboot_img_SOURCES): New variable.
32090 (lnxboot_img_ASFLAGS): Likewise.
32091 (lnxboot_img_LDFLAGS): Likewise.
32093 * boot/i386/pc/lnxboot.S: New file.
32095 2007-11-24 Pavel Roskin <proski@gnu.org>
32097 * configure.ac: Test if '--build-id=none' is supported by the
32098 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32099 objcopy to generate incorrect binary files (binutils
32100 2.17.50.0.18-1 as shipped by Fedora 8).
32101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32102 linking, so that build ID doesn't break the test.
32104 2007-11-24 Pavel Roskin <proski@gnu.org>
32106 * include/grub/i386/time.h: use "void" in the argument list
32107 of grub_cpu_idle().
32108 * include/grub/powerpc/time.h: Likewise.
32109 * include/grub/sparc64/time.h: Likewise.
32111 2007-11-18 Christian Franke <franke@computer.org>
32113 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32114 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32115 This fixes the problem that function keys did not work in grub-emu.
32117 2007-11-18 Christian Franke <franke@computer.org>
32119 * disk/host.c (grub_host_open): Remove attribute unused from
32120 name parameter. Add check for "host". This fixes the problem
32121 that grub-emu does not find partitions.
32123 2007-11-18 Christian Franke <franke@computer.org>
32125 * util/hostfs.c (is_dir): New function.
32126 (grub_hostfs_dir): Handle missing dirent.d_type case.
32127 (grub_hostfs_read): Add missing fseek().
32128 (grub_hostfs_label): Clear label pointer. This fixes a crash
32129 of grub-emu on "ls (host)".
32131 2007-11-18 Christian Franke <franke@computer.org>
32133 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32134 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32135 to 64 bit boundary by default.
32137 2007-11-18 Bean <bean123ch@gmail.com>
32139 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32140 (hexdump_mod_SOURCES): New variable.
32141 (hexdump_mod_CFLAGS): Likewise.
32142 (hexdump_mod_LDFLAGS): Likewise.
32144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32146 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32152 * include/grub/hexdump.h: New file.
32154 * commands/hexdump.c: New file.
32156 2007-11-10 Robert Millan <rmh@aybabtu.com>
32158 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32159 in grub_outb() calls.
32160 (beep_on): Likewise.
32162 2007-11-10 Christian Franke <franke@computer.org>
32164 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32165 (grub_menu_run): Likewise.
32167 2007-11-10 Robert Millan <rmh@aybabtu.com>
32169 * include/grub/i386/efi/machine.h: New file.
32170 * include/grub/i386/linuxbios/machine.h: Likewise.
32171 * include/grub/i386/pc/machine.h: Likewise.
32172 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32173 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32175 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32176 (serial_hw_io_addr): New variable.
32177 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32178 instead of `(unsigned short *) 0x400'.
32180 2007-11-10 Bean <bean123ch@gmail.com>
32182 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32184 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32186 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32187 (vga_mod_SOURCES): Added.
32188 (vga_mod_CFLAGS): Likewise.
32189 (vga_mod_LDFLAGS): Likewise.
32191 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32193 (set_map_mask): Likewise.
32194 (set_read_map): Likewise.
32195 (set_read_address): Likewise.
32196 (vga_font): Removed variable.
32197 (get_vga_glyph): Removed function.
32198 (invalidate_char): Likewise.
32199 (write_char): Changed to use grub_font_get_glyph() for font
32201 (grub_vga_putchar): Likewise.
32202 (grub_vga_getcharwidth): Likewise.
32204 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32206 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32208 (pxeboot_img_LDFLAGS): Likewise.
32209 (diskboot_img_LDFLAGS): Likewise.
32210 (kernel_img_LDFLAGS): Likewise.
32212 2007-11-06 Robert Millan <rmh@aybabtu.com>
32214 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32215 in grub_outb() calls.
32216 (serial_hw_init): Likewise.
32218 2007-11-05 Robert Millan <rmh@aybabtu.com>
32220 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32221 spaces. Skip non-regular files.
32223 2007-11-05 Robert Millan <rmh@aybabtu.com>
32225 * kern/disk.c (grub_disk_firmware_fini)
32226 (grub_disk_firmware_is_tainted): New variables.
32228 * include/grub/disk.h (grub_disk_firmware_fini)
32229 (grub_disk_firmware_is_tainted): Likewise.
32231 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
32232 (grub_disk_biosdisk_fini): ... to here.
32233 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
32234 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
32235 is set. Register grub_disk_biosdisk_fini() in
32236 `grub_disk_firmware_fini'.
32238 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
32239 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
32240 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
32241 to finish existing firmware disk interface.
32243 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
32244 (ata_mod_SOURCES): New variable.
32245 (ata_mod_CFLAGS): Likewise.
32246 (ata_mod_LDFLAGS): Likewise.
32248 2007-11-05 Robert Millan <rmh@aybabtu.com>
32250 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32251 (grub_ata_wait): Reimplement using grub_millisleep().
32253 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32254 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32256 2007-11-03 Marco Gerards <marco@gnu.org>
32258 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
32259 (CRTC_ADDR_PORT): New macro.
32260 (CRTC_DATA_PORT): Likewise.
32261 (CRTC_CURSOR): Likewise.
32262 (CRTC_CURSOR_ADDR_HIGH): Likewise.
32263 (CRTC_CURSOR_ADDR_LOW): Likewise.
32264 (update_cursor): New function.
32265 (grub_console_real_putchar): Call `update_cursor'.
32266 (grub_console_gotoxy): Likewise.
32267 (grub_console_cls): Set the default color when clearing the
32269 (grub_console_setcursor): Implemented.
32271 2007-11-03 Marco Gerards <marco@gnu.org>
32273 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32275 (grub_ata_pio_write): Likewise.
32277 (grub_atapi_identify): Wait after issuing an ATA command.
32278 (grub_atapi_packet): Likewise.
32279 (grub_ata_identify): Likewise.
32280 (grub_ata_readwrite): Likewise.
32282 2007-11-03 Marco Gerards <marco@gnu.org>
32284 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
32285 (grub_ata_pio_write): Likewise.
32286 (grub_ata_readwrite): Use `grub_error', instead of
32287 returning `grub_errno'.
32289 2007-11-03 Marco Gerards <marco@gnu.org>
32291 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
32292 grub_ata_pio_write once for every single sector, instead of for
32295 2007-10-31 Robert Millan <rmh@aybabtu.com>
32297 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
32299 * conf/i386-linuxbios.rmk: New file.
32301 * kern/i386/pc/hardware.c: Likewise.
32302 * term/i386/pc/at_keyboard.c: Likewise.
32303 * term/i386/pc/vga_text.c: Likewise.
32305 * include/grub/i386/linuxbios/boot.h: Likewise.
32306 * include/grub/i386/linuxbios/console.h: Likewise.
32307 * include/grub/i386/linuxbios/init.h: Likewise.
32308 * include/grub/i386/linuxbios/kernel.h: Likewise.
32309 * include/grub/i386/linuxbios/loader.h: Likewise.
32310 * include/grub/i386/linuxbios/memory.h: Likewise.
32311 * include/grub/i386/linuxbios/serial.h: Likewise.
32312 * include/grub/i386/linuxbios/time.h: Likewise.
32314 * kern/i386/linuxbios/init.c: Likewise.
32315 * kern/i386/linuxbios/startup.S: Likewise.
32316 * kern/i386/linuxbios/table.c: Likewise.
32318 2007-10-31 Marco Gerards <marco@gnu.org>
32320 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
32321 (ata_mod_SOURCES): New variable.
32322 (ata_mod_CFLAGS): Likewise.
32323 (ata_mod_LDFLAGS): Likewise.
32325 * disk/ata.c: New file.
32327 * include/grub/disk.h (grub_disk_dev_id): Add
32328 `GRUB_DISK_DEV_ATA_ID'.
32330 2007-10-31 Robert Millan <rmh@aybabtu.com>
32332 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
32333 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
32335 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
32336 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
32338 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
32341 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
32343 2007-10-27 Robert Millan <rmh@aybabtu.com>
32345 * include/grub/types.h (ULONG_MAX): Define macro.
32347 2007-10-22 Robert Millan <rmh@aybabtu.com>
32349 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
32351 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
32353 2007-10-22 Robert Millan <rmh@aybabtu.com>
32355 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
32356 (pkgdata_MODULES): Add `biosdisk.mod'.
32357 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
32360 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
32361 (grub_biosdisk_init): Replace with ...
32362 (GRUB_MOD_INIT(biosdisk)): ... this.
32363 (grub_biosdisk_fini): Replace with ...
32364 (GRUB_MOD_FINI(biosdisk)): ... this.
32366 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
32367 (grub_machine_init): Remove call to grub_biosdisk_init().
32368 (grub_machine_fini): Remove call to grub_machine_fini().
32370 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
32372 2007-10-22 Robert Millan <rmh@aybabtu.com>
32374 * include/grub/time.h: New file.
32375 * include/grub/i386/time.h: Likewise.
32376 * include/grub/powerpc/time.h: Likewise.
32377 * include/grub/sparc64/time.h: Likewise.
32379 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
32381 (KERNEL_MACHINE_TIME_HEADER): ... this.
32382 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32384 (KERNEL_MACHINE_TIME_HEADER): ... this.
32385 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32387 (KERNEL_MACHINE_TIME_HEADER): ... this.
32389 * kern/i386/efi/init.c: Include `<grub/time.h>'.
32390 (grub_millisleep): New function.
32391 * kern/i386/pc/init.c: Include `<grub/time.h>'.
32392 (grub_millisleep): New function.
32393 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
32394 Remove `grub/machine/time.h' include.
32395 (grub_millisleep): New function.
32396 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
32397 Remove `grub/machine/time.h' include.
32398 (grub_millisleep): New function.
32400 * include/grub/misc.h (grub_div_roundup): New function.
32402 * kern/misc.c: Include `<grub/time.h>'.
32403 (grub_millisleep_generic): New function.
32405 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
32407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
32409 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
32410 `machine/time.h'. Add `time.h'.
32411 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32413 2007-10-21 Robert Millan <rmh@aybabtu.com>
32415 * include/grub/misc.h (grub_max): New function.
32417 2007-10-21 Robert Millan <rmh@aybabtu.com>
32419 * util/misc.c (grub_util_info): Call fflush() before returning.
32421 2007-10-20 Robert Millan <rmh@aybabtu.com>
32423 * genmk.rb (Image): Copy `extra_flags' from here ...
32424 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
32426 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
32427 to `argc' and `args' arguments.
32429 2007-10-17 Robert Millan <rmh@aybabtu.com>
32431 * kern/i386/loader.S: New file.
32433 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
32434 * kern/i386/loader.S (grub_linux_prot_size)... to here.
32435 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
32436 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
32437 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
32438 * kern/i386/loader.S (grub_linux_real_addr)... to here.
32439 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
32440 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
32441 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
32442 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
32443 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
32444 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
32445 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
32446 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
32448 * kern/i386/realmode.S: New file.
32450 * kern/i386/pc/startup.S (protstack): Moved from here ...
32451 * kern/i386/realmode.S (protstack)... to here.
32452 * kern/i386/pc/startup.S (gdt): Moved from here ...
32453 * kern/i386/realmode.S (gdt)... to here.
32454 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
32455 * kern/i386/realmode.S (prot_to_real)... to here.
32457 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
32458 `kern/i386/realmode.S'.
32460 2007-10-17 Robert Millan <rmh@aybabtu.com>
32462 * include/grub/i386/loader.h: New file.
32464 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
32465 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32466 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32467 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32468 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
32469 * include/grub/i386/loader.h (grub_linux_prot_size)
32470 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32471 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32472 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32473 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
32475 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
32477 2007-10-15 Robert Millan <rmh@aybabtu.com>
32479 * normal/misc.c (grub_normal_print_device_info): Do not probe for
32480 filesystem when dev->disk is unset.
32481 Do probe for filesystem even when dev->disk->has_partitions is set.
32482 In case a filesystem is found, always report it.
32483 In case it isn't, if dev->disk->has_partitions is set, report that
32484 a partition table was found instead of reporting that no filesystem
32485 could be identified.
32487 2007-10-12 Robert Millan <rmh@aybabtu.com>
32489 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
32490 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
32492 * include/grub/types.h (grub_host_to_target16): New macro.
32493 (grub_host_to_target32): Likewise.
32494 (grub_host_to_target64): Likewise.
32495 (grub_target_to_host16): Likewise.
32496 (grub_target_to_host32): Likewise.
32497 (grub_target_to_host64): Likewise.
32499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32500 Renamed from to ...
32501 (GRUB_MOD_ALIGN): ...this. Update all users.
32503 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
32504 grub_host_to_target32.
32505 Replace grub_be_to_cpu32 with grub_target_to_host32.
32506 (load_modules): Likewise.
32507 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
32508 Replace grub_be_to_cpu32 with grub_target_to_host32.
32509 Replace grub_cpu_to_be16 with grub_host_to_target16.
32510 Replace grub_cpu_to_be32 grub_host_to_target32.
32512 2007-10-12 Robert Millan <rmh@aybabtu.com>
32514 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32515 * util/elf/grub-mkimage.c: ... here.
32517 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32518 `util/powerpc/ieee1275/grub-mkimage.c'.
32520 2007-10-07 Robert Millan <rmh@aybabtu.com>
32522 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
32523 and make it easier to figure out.
32524 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
32525 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
32526 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
32527 leave us with less than HEAP_MIN_SIZE total heap.
32528 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
32530 2007-10-03 Robert Millan <rmh@aybabtu.com>
32532 * include/grub/i386/io.h: New file.
32533 * commands/i386/pc/play.c (inb): Removed.
32535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32537 * term/i386/pc/serial.c (inb): Removed.
32539 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32541 * term/i386/pc/vga.c (inb): Removed.
32543 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32546 2007-10-02 Robert Millan <rmh@aybabtu.com>
32548 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
32549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32550 Reported by Marcin Kurek.
32552 2007-09-07 Robert Millan <rmh@aybabtu.com>
32554 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
32555 SmartFirmware version updates (as released by Sven Luther), and avoid
32556 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
32557 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
32560 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32562 From Hitoshi Ozeki:
32563 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
32564 when merging two regions.
32566 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32568 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
32569 * normal/completion.c (grub_normal_do_completion): Likewise.
32570 Reported by Hitoshi Ozeki.
32572 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32574 Do not use devices at boot in chainloading.
32576 * loader/i386/pc/chainloader.c (boot_drive): New variable.
32577 (boot_part_addr): Likewise.
32578 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
32579 with BOOT_DRIVE and BOOT_PART_ADDR.
32580 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
32581 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
32583 2007-08-29 Robert Millan <rmh@aybabtu.com>
32585 Patch from Simon Peter <dn.tlp@gmx.net>:
32586 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
32587 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
32588 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
32589 util/i386/pc/grub-setup.c_DEPENDENCIES.
32590 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
32591 util/grub-probe.c_DEPENDENCIES.
32592 * conf/powerpc-ieee1275.rmk: Likewise.
32594 2007-08-28 Robert Millan <rmh@aybabtu.com>
32596 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
32597 to tell grub-mkdevicemap how to name devices.
32598 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
32601 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
32602 util/i386/get_disk_name.c.
32603 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
32604 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
32605 util/ieee1275/get_disk_name.c.
32607 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
32609 * DISTLIST: Add util/i386/get_disk_name.c and
32610 util/ieee1275/get_disk_name.c.
32612 * util/grub-mkdevicemap.c: Replace device naming logic with
32613 grub_util_get_disk_name() calls.
32615 2007-08-20 Robert Millan <rmh@aybabtu.com>
32617 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
32618 (so that it works for both plural and singular quantities).
32620 2007-08-05 Robert Millan <rmh@aybabtu.com>
32622 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
32623 so that [xz] isn't taken into account when determining order.
32625 2007-08-02 Marco Gerards <marco@gnu.org>
32627 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
32628 `include/multiboot2.h', `include/grub/elfload.h',
32629 `include/multiboot.h', `include/grub/multiboot.h',
32630 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
32631 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
32632 `kern/elf.c', `loader/multiboot_loader.c',
32633 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
32634 `loader/i386/pc/multiboot2.c',
32635 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
32636 `util/i386/pc/grub-mkrescue.in'. Remove
32637 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
32638 `include/grub/i386/pc/util/biosdisk.h' and
32639 `include/grub/powerpc/ieee1275/multiboot.h'.
32641 2007-08-02 Bean <bean123ch@gmail.com>
32643 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
32644 (ntfs_mod_SOURCES): New variable.
32645 (ntfs_mod_CFLAGS): Likewise.
32646 (ntfs_mod_LDFLAGS): Likewise.
32648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
32649 (grub_probe_SOURCES): Likewise.
32650 (grub_emu_SOURCES): Likewise.
32652 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32653 (grub_emu_SOURCES): Likewise.
32655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32656 (grub_emu_SOURCES): Likewise.
32658 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
32660 * fs/ntfs.c: New file.
32662 2007-08-02 Bean <bean123ch@gmail.com>
32664 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
32666 * file.h (grub_file): Likewise.
32668 * fshelp.h (grub_fshelp_read_file): Likewise.
32670 * util/i386/pc/grub-setup.c (setup): Likewise.
32671 (save_first_sector): Likewise.
32672 (save_blocklists): Likewise.
32674 * fs/affs.c (grub_affs_read_file): Likewise.
32676 * fs/ext2.c (grub_ext2_read_file): Likewise.
32678 * fs/fat.c (grub_fat_read_data): Likewise.
32680 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
32682 * fs/hfs.c (grub_hfs_read_file): Likewise.
32684 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32686 * fs/jfs.c (grub_jfs_read_file): Likewise.
32688 * fs/minix.c (grub_minix_read_file): Likewise.
32690 * fs/sfs.c (grub_sfs_read_file): Likewise.
32692 * fs/ufs.c (grub_ufs_read_file): Likewise.
32694 * fs/xfs.c (grub_xfs_read_file): Likewise.
32696 * command/blocklist.c (read_blocklist): Likewise.
32697 (print_blocklist): Likewise.
32699 2007-08-02 Marco Gerards <marco@gnu.org>
32701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
32704 * disk/host.c: New file.
32706 * util/hostfs.c: Likewise.
32708 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
32709 return `GRUB_ERR_BAD_FS'.
32710 * fs/sfs.c (grub_sfs_mount): Likewise.
32711 * fs/xfs.c (grub_xfs_mount): Likewise.
32713 * include/grub/disk.h (enum grub_disk_dev_id): Add
32714 `GRUB_DISK_DEVICE_HOST_ID'.
32716 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
32718 2007-07-24 Jerone Young <jerone@gmail.com>
32720 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
32721 modules for compilation.
32722 * conf/powerpc-ieee1275.rmk: Likewise.
32724 * include/multiboot.h: Move multiboot definitions to one file. Rename
32725 many definitions to not get grub specific.
32726 * include/multiboot2.h: Create header with multiboot 2 definitions.
32727 * include/grub/multiboot.h: Header for grub specific function
32728 prototypes and definitions.
32729 * include/grub/multiboot2.h: Likewise.
32730 * include/grub/multiboot_loader.h: Likewise.
32731 * include/grub/i386/pc/multiboot.h: Removed.
32732 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
32734 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
32735 and 2 to allow for one multiboot and module commands.
32736 * loader/multiboot2.c: Add multiboot2 functionality.
32737 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
32738 and definition names.
32739 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
32741 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
32742 ieee1275 specific multiboot2 code.
32744 * kern/i386/pc/startup.S: Change headers and definition names for
32745 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
32747 2007-07-22 Robert Millan <rmh@aybabtu.com>
32749 * geninitheader.sh: Process file specified in first parameter rather
32750 than hardcoding grub_modules_init.lst.
32751 * geninit.sh: Likewise. Also, construct header name dynamically rather
32752 than hardcoding grub_modules_init.h.
32754 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
32755 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
32756 grub_probe_init.[ch] and grub_setup_init.[ch].
32758 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
32759 grub_modules_init.h with grub_emu_init.h.
32760 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
32761 grub_probe_init.[ch] files.
32762 * conf/i386-efi.rmk: Likewise.
32763 * conf/i386-pc.rmk: Likewise.
32764 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
32765 grub_setup_init.[ch] files.
32767 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
32768 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
32769 to initialize modules rather than a list of hardcoded functions.
32770 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
32771 grub_init_all() to initialize modules rather than a list of hardcoded
32774 2007-07-22 Robert Millan <rmh@aybabtu.com>
32776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
32777 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
32779 2007-07-22 Robert Millan <rmh@aybabtu.com>
32781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32782 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
32783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
32784 flag when running on SmartFirmware.
32785 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
32786 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
32789 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
32790 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
32791 rather than decreasing it.
32793 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
32794 there's not enough space to do it, fail in the same way as when it
32795 can't be done because there are no partitions.
32797 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
32798 when nvsetenv failed.
32800 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32802 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
32803 because this rule is automatically generated.
32804 (grub-mkrescue): Removed for the same reason as above.
32806 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32808 Migrate to GNU General Public License Version 3.
32810 * COPYING: Replaced with the plain text version of GPLv3.
32812 * config.guess: Updated from gnulib.
32813 * config.sub: Likewise.
32815 * geninit.sh: Output a GPLv3 copyright notice.
32816 * geninitheader.sh: Likewise.
32817 * genmodsrc.sh: Likewise.
32818 * gensymlist.sh.in: Likewise.
32820 * boot/i386/pc/boot.S: Upgraded to GPLv3.
32821 * boot/i386/pc/diskboot.S: Likewise.
32822 * boot/i386/pc/pxeboot.S: Likewise.
32823 * commands/blocklist.c: Likewise.
32824 * commands/boot.c: Likewise.
32825 * commands/cat.c: Likewise.
32826 * commands/cmp.c: Likewise.
32827 * commands/configfile.c: Likewise.
32828 * commands/echo.c: Likewise.
32829 * commands/help.c: Likewise.
32830 * commands/ls.c: Likewise.
32831 * commands/search.c: Likewise.
32832 * commands/terminal.c: Likewise.
32833 * commands/test.c: Likewise.
32834 * commands/videotest.c: Likewise.
32835 * commands/i386/cpuid.c: Likewise.
32836 * commands/i386/pc/halt.c: Likewise.
32837 * commands/i386/pc/play.c: Likewise.
32838 * commands/i386/pc/reboot.c: Likewise.
32839 * commands/i386/pc/vbeinfo.c: Likewise.
32840 * commands/i386/pc/vbetest.c: Likewise.
32841 * commands/ieee1275/halt.c: Likewise.
32842 * commands/ieee1275/reboot.c: Likewise.
32843 * commands/ieee1275/suspend.c: Likewise.
32844 * disk/loopback.c: Likewise.
32845 * disk/lvm.c: Likewise.
32846 * disk/raid.c: Likewise.
32847 * disk/efi/efidisk.c: Likewise.
32848 * disk/i386/pc/biosdisk.c: Likewise.
32849 * disk/ieee1275/ofdisk.c: Likewise.
32850 * font/manager.c: Likewise.
32851 * fs/affs.c: Likewise.
32852 * fs/ext2.c: Likewise.
32853 * fs/fat.c: Likewise.
32854 * fs/fshelp.c: Likewise.
32855 * fs/hfs.c: Likewise.
32856 * fs/hfsplus.c: Likewise.
32857 * fs/iso9660.c: Likewise.
32858 * fs/jfs.c: Likewise.
32859 * fs/minix.c: Likewise.
32860 * fs/sfs.c: Likewise.
32861 * fs/ufs.c: Likewise.
32862 * fs/xfs.c: Likewise.
32863 * hello/hello.c: Likewise.
32864 * include/grub/acorn_filecore.h: Likewise.
32865 * include/grub/arg.h: Likewise.
32866 * include/grub/bitmap.h: Likewise.
32867 * include/grub/boot.h: Likewise.
32868 * include/grub/cache.h: Likewise.
32869 * include/grub/device.h: Likewise.
32870 * include/grub/disk.h: Likewise.
32871 * include/grub/dl.h: Likewise.
32872 * include/grub/elfload.h: Likewise.
32873 * include/grub/env.h: Likewise.
32874 * include/grub/err.h: Likewise.
32875 * include/grub/file.h: Likewise.
32876 * include/grub/font.h: Likewise.
32877 * include/grub/fs.h: Likewise.
32878 * include/grub/fshelp.h: Likewise.
32879 * include/grub/gzio.h: Likewise.
32880 * include/grub/hfs.h: Likewise.
32881 * include/grub/kernel.h: Likewise.
32882 * include/grub/loader.h: Likewise.
32883 * include/grub/lvm.h: Likewise.
32884 * include/grub/misc.h: Likewise.
32885 * include/grub/mm.h: Likewise.
32886 * include/grub/net.h: Likewise.
32887 * include/grub/normal.h: Likewise.
32888 * include/grub/parser.h: Likewise.
32889 * include/grub/partition.h: Likewise.
32890 * include/grub/pc_partition.h: Likewise.
32891 * include/grub/raid.h: Likewise.
32892 * include/grub/rescue.h: Likewise.
32893 * include/grub/script.h: Likewise.
32894 * include/grub/setjmp.h: Likewise.
32895 * include/grub/symbol.h: Likewise.
32896 * include/grub/term.h: Likewise.
32897 * include/grub/terminfo.h: Likewise.
32898 * include/grub/tparm.h: Likewise.
32899 * include/grub/types.h: Likewise.
32900 * include/grub/video.h: Likewise.
32901 * include/grub/efi/api.h: Likewise.
32902 * include/grub/efi/chainloader.h: Likewise.
32903 * include/grub/efi/console.h: Likewise.
32904 * include/grub/efi/console_control.h: Likewise.
32905 * include/grub/efi/disk.h: Likewise.
32906 * include/grub/efi/efi.h: Likewise.
32907 * include/grub/efi/pe32.h: Likewise.
32908 * include/grub/efi/time.h: Likewise.
32909 * include/grub/i386/linux.h: Likewise.
32910 * include/grub/i386/setjmp.h: Likewise.
32911 * include/grub/i386/types.h: Likewise.
32912 * include/grub/i386/efi/kernel.h: Likewise.
32913 * include/grub/i386/efi/loader.h: Likewise.
32914 * include/grub/i386/efi/time.h: Likewise.
32915 * include/grub/i386/pc/biosdisk.h: Likewise.
32916 * include/grub/i386/pc/boot.h: Likewise.
32917 * include/grub/i386/pc/chainloader.h: Likewise.
32918 * include/grub/i386/pc/console.h: Likewise.
32919 * include/grub/i386/pc/init.h: Likewise.
32920 * include/grub/i386/pc/kernel.h: Likewise.
32921 * include/grub/i386/pc/loader.h: Likewise.
32922 * include/grub/i386/pc/memory.h: Likewise.
32923 * include/grub/i386/pc/multiboot.h: Likewise.
32924 * include/grub/i386/pc/serial.h: Likewise.
32925 * include/grub/i386/pc/time.h: Likewise.
32926 * include/grub/i386/pc/vbe.h: Likewise.
32927 * include/grub/i386/pc/vbeblit.h: Likewise.
32928 * include/grub/i386/pc/vbefill.h: Likewise.
32929 * include/grub/i386/pc/vbeutil.h: Likewise.
32930 * include/grub/i386/pc/vga.h: Likewise.
32931 * include/grub/ieee1275/ieee1275.h: Likewise.
32932 * include/grub/ieee1275/ofdisk.h: Likewise.
32933 * include/grub/powerpc/libgcc.h: Likewise.
32934 * include/grub/powerpc/setjmp.h: Likewise.
32935 * include/grub/powerpc/types.h: Likewise.
32936 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
32937 * include/grub/powerpc/ieee1275/console.h: Likewise.
32938 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
32939 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
32940 * include/grub/powerpc/ieee1275/loader.h: Likewise.
32941 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
32942 * include/grub/powerpc/ieee1275/time.h: Likewise.
32943 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
32944 * include/grub/sparc64/libgcc.h: Likewise.
32945 * include/grub/sparc64/setjmp.h: Likewise.
32946 * include/grub/sparc64/types.h: Likewise.
32947 * include/grub/sparc64/ieee1275/console.h: Likewise.
32948 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32949 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32950 * include/grub/sparc64/ieee1275/time.h: Likewise.
32951 * include/grub/util/biosdisk.h: Likewise.
32952 * include/grub/util/getroot.h: Likewise.
32953 * include/grub/util/lvm.h: Likewise.
32954 * include/grub/util/misc.h: Likewise.
32955 * include/grub/util/raid.h: Likewise.
32956 * include/grub/util/resolve.h: Likewise.
32957 * io/gzio.c: Likewise.
32958 * kern/device.c: Likewise.
32959 * kern/disk.c: Likewise.
32960 * kern/dl.c: Likewise.
32961 * kern/elf.c: Likewise.
32962 * kern/env.c: Likewise.
32963 * kern/err.c: Likewise.
32964 * kern/file.c: Likewise.
32965 * kern/fs.c: Likewise.
32966 * kern/loader.c: Likewise.
32967 * kern/main.c: Likewise.
32968 * kern/misc.c: Likewise.
32969 * kern/mm.c: Likewise.
32970 * kern/parser.c: Likewise.
32971 * kern/partition.c: Likewise.
32972 * kern/rescue.c: Likewise.
32973 * kern/term.c: Likewise.
32974 * kern/efi/efi.c: Likewise.
32975 * kern/efi/init.c: Likewise.
32976 * kern/efi/mm.c: Likewise.
32977 * kern/i386/dl.c: Likewise.
32978 * kern/i386/efi/init.c: Likewise.
32979 * kern/i386/efi/startup.S: Likewise.
32980 * kern/i386/pc/init.c: Likewise.
32981 * kern/i386/pc/lzo1x.S: Likewise.
32982 * kern/i386/pc/startup.S: Likewise.
32983 * kern/ieee1275/ieee1275.c: Likewise.
32984 * kern/powerpc/cache.S: Likewise.
32985 * kern/powerpc/dl.c: Likewise.
32986 * kern/powerpc/ieee1275/cmain.c: Likewise.
32987 * kern/powerpc/ieee1275/crt0.S: Likewise.
32988 * kern/powerpc/ieee1275/init.c: Likewise.
32989 * kern/powerpc/ieee1275/openfw.c: Likewise.
32990 * kern/sparc64/cache.S: Likewise.
32991 * kern/sparc64/dl.c: Likewise.
32992 * kern/sparc64/ieee1275/init.c: Likewise.
32993 * kern/sparc64/ieee1275/openfw.c: Likewise.
32994 * loader/efi/chainloader.c: Likewise.
32995 * loader/efi/chainloader_normal.c: Likewise.
32996 * loader/i386/efi/linux.c: Likewise.
32997 * loader/i386/efi/linux_normal.c: Likewise.
32998 * loader/i386/pc/chainloader.c: Likewise.
32999 * loader/i386/pc/chainloader_normal.c: Likewise.
33000 * loader/i386/pc/linux.c: Likewise.
33001 * loader/i386/pc/linux_normal.c: Likewise.
33002 * loader/i386/pc/multiboot.c: Likewise.
33003 * loader/i386/pc/multiboot_normal.c: Likewise.
33004 * loader/powerpc/ieee1275/linux.c: Likewise.
33005 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33006 * normal/arg.c: Likewise.
33007 * normal/cmdline.c: Likewise.
33008 * normal/command.c: Likewise.
33009 * normal/completion.c: Likewise.
33010 * normal/execute.c: Likewise.
33011 * normal/function.c: Likewise.
33012 * normal/lexer.c: Likewise.
33013 * normal/main.c: Likewise.
33014 * normal/menu.c: Likewise.
33015 * normal/menu_entry.c: Likewise.
33016 * normal/misc.c: Likewise.
33017 * normal/parser.y: Likewise.
33018 * normal/script.c: Likewise.
33019 * normal/i386/setjmp.S: Likewise.
33020 * normal/powerpc/setjmp.S: Likewise.
33021 * normal/sparc64/setjmp.S: Likewise.
33022 * partmap/acorn.c: Likewise.
33023 * partmap/amiga.c: Likewise.
33024 * partmap/apple.c: Likewise.
33025 * partmap/gpt.c: Likewise.
33026 * partmap/pc.c: Likewise.
33027 * partmap/sun.c: Likewise.
33028 * term/gfxterm.c: Likewise.
33029 * term/terminfo.c: Likewise.
33030 * term/efi/console.c: Likewise.
33031 * term/i386/pc/console.c: Likewise.
33032 * term/i386/pc/serial.c: Likewise.
33033 * term/i386/pc/vesafb.c: Likewise.
33034 * term/i386/pc/vga.c: Likewise.
33035 * term/ieee1275/ofconsole.c: Likewise.
33036 * util/biosdisk.c: Likewise.
33037 * util/console.c: Likewise.
33038 * util/genmoddep.c: Likewise.
33039 * util/getroot.c: Likewise.
33040 * util/grub-emu.c: Likewise.
33041 * util/grub-mkdevicemap.c: Likewise.
33042 * util/grub-probe.c: Likewise.
33043 * util/lvm.c: Likewise.
33044 * util/misc.c: Likewise.
33045 * util/raid.c: Likewise.
33046 * util/resolve.c: Likewise.
33047 * util/update-grub.in: Likewise.
33048 * util/update-grub_lib.in: Likewise.
33049 * util/grub.d/00_header.in: Likewise.
33050 * util/grub.d/10_hurd.in: Likewise.
33051 * util/grub.d/10_linux.in: Likewise.
33052 * util/i386/efi/grub-install.in: Likewise.
33053 * util/i386/efi/grub-mkimage.c: Likewise.
33054 * util/i386/pc/grub-install.in: Likewise.
33055 * util/i386/pc/grub-mkimage.c: Likewise.
33056 * util/i386/pc/grub-mkrescue.in: Likewise.
33057 * util/i386/pc/grub-setup.c: Likewise.
33058 * util/i386/pc/misc.c: Likewise.
33059 * util/powerpc/ieee1275/grub-install.in: Likewise.
33060 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33061 * util/powerpc/ieee1275/misc.c: Likewise.
33062 * video/bitmap.c: Likewise.
33063 * video/video.c: Likewise.
33064 * video/i386/pc/vbe.c: Likewise.
33065 * video/i386/pc/vbeblit.c: Likewise.
33066 * video/i386/pc/vbefill.c: Likewise.
33067 * video/i386/pc/vbeutil.c: Likewise.
33068 * video/readers/tga.c: Likewise.
33070 2007-07-02 Robert Millan <rmh@aybabtu.com>
33072 * conf/i386-efi.rmk: Replace obsolete reference to
33073 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33074 with util/getroot.c.
33075 * conf/powerpc-ieee1275.rmk: Likewise.
33076 * conf/sparc64-ieee1275.rmk: Likewise.
33078 * util/grub-emu.c (main): Fix unchecked pointer handling.
33080 2007-07-02 Robert Millan <rmh@aybabtu.com>
33082 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33083 invocation to fail, in order to support partition-less media.
33085 * util/i386/pc/grub-install.in: Likewise.
33087 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33088 which fs or partmap modules are needed (akin to its sister scripts).
33090 Also use grub-probe to get rid of unportable /proc/mounts check.
33092 Print the same informational message that the other scripts do, before
33095 2007-06-23 Robert Millan <rmh@aybabtu.com>
33097 * util/update-grub_lib.in (font_path): New function. Determine whether
33098 a font file can be found and, if so, echo the GRUB path to it.
33100 * util/update-grub.in: Handle multiple terminals depending on user
33101 input, platform availability and font file presence. Propagate
33102 variables of our findings to /etc/grub.d/ children.
33104 * util/grub.d/00_header.in: Handle multiple terminals, based on
33105 environment setup by update-grub.
33107 2007-06-23 Robert Millan <rmh@aybabtu.com>
33109 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33111 2007-06-21 Robert Millan <rmh@aybabtu.com>
33113 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33114 indicate end of data section in kernel image.
33115 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33116 GRUB_KERNEL_MACHINE_DATA_END.
33118 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33120 * kern/i386/efi/startup.S: Likewise.
33122 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33123 during image generation. Implement --prefix option to override this
33125 * util/i386/efi/grub-mkimage.c: Likewise.
33127 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33128 code to make path relative to its root into a separate function.
33130 * util/i386/pc/grub-install.in: Use newly provided
33131 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33132 pass the result to grub-install --prefix.
33134 2007-06-13 Robert Millan <rmh@aybabtu.com>
33136 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33137 DEFAULT_DEVICE_MAP.
33138 * util/grub-emu.c: Use above definitions from misc.h instead of
33140 * util/grub-mkdevicemap.c: Likewise.
33141 * util/i386/pc/grub-setup.c: Likewise.
33142 * util/grub-probe.c: Likewise.
33143 (probe): Abort with grub_util_error() when either
33144 grub_guess_root_device or grub_util_get_grub_dev fails.
33146 2007-06-12 Robert Millan <rmh@aybabtu.com>
33148 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33149 "pager" assignment.
33150 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33152 * util/grub-probe.c (probe): Likewise for "drive_name".
33154 2007-06-11 Robert Millan <rmh@aybabtu.com>
33156 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33157 not just the cdrom one.
33159 2007-06-11 Robert Millan <rmh@aybabtu.com>
33161 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33162 Add --pkglibdir=DIR option to override pkglibdir.
33163 Mention --image-type=TYPE in help output.
33164 Fix --grub-mkimage (it was a no-op).
33165 Abort gracefully when no parameter is given.
33167 2007-06-11 Robert Millan <rmh@aybabtu.com>
33169 * util/i386/pc/grub-mkrescue.in: New file.
33170 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33171 * Makefile.in: Handle bin_SCRIPTS.
33173 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33175 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33176 list of video modes.
33178 2007-06-06 Robert Millan <rmh@aybabtu.com>
33180 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33181 file doesn't exist, or if it is in a filesystem grub can't read.
33183 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33184 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33185 header comment to fit in 80 columns when the variables are resolved.
33187 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33188 could be identified by update-grub. Remove redundant check for
33189 unifont.pff existence (since convert_system_path_to_grub_path now
33192 2007-06-04 Robert Millan <rmh@aybabtu.com>
33194 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33196 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33198 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33200 2007-06-04 Robert Millan <rmh@aybabtu.com>
33202 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33204 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33205 grub_apple_partition_map_fini.
33208 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33209 to access >2 TiB disks).
33211 Print disk->total_sectors with %llu instead of %lu, since this
33212 variable is always 64-bit (prevents wrong disk size from being displayed
33213 on either >2 TiB disk or big-endian CPU).
33215 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33216 into a generic case that supports all (sane) partition maps.
33218 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33221 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33222 and grub_apple_partition_map_fini() after that.
33224 2007-06-01 Robert Millan <rmh@aybabtu.com>
33226 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33228 * util/grub.d/00_header.in: Only enable gfxterm when
33229 convert_system_path_to_grub_path() succeeds.
33231 2007-05-20 Robert Millan <rmh@aybabtu.com>
33233 * util/update-grub_lib.in: New file.
33234 * DISTLIST: Add update-grub_lib.in.
33235 * conf/common.rmk: Generate update-grub_lib and install it in
33237 * Makefile.in: Add install routine for $(lib_DATA).
33239 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
33240 function provided by update-grub_lib to support arbitrary paths of
33242 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33243 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33245 2007-05-19 Robert Millan <rmh@aybabtu.com>
33247 * commands/i386/cpuid.c: New module.
33248 * DISTLIST: Add it.
33249 * conf/i386-efi.rmk: Enable cpuid.mod.
33250 * conf/i386-pc.rmk: Likewise.
33252 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33254 * kern/disk.c (grub_disk_read): Check return value of
33257 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33259 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33261 * disk/raid.c (grub_raid_open): Likewise.
33263 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33265 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33266 stack instead of on the heap.
33268 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33269 before doing a read on it.
33271 * configure.ac: Only use -fno-stack-protector for the target
33274 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33276 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33277 __attribute_ ((unused)) to mode_type argument.
33279 * util/getroot.c (grub_guess_root_device): Fix #endif.
33281 * kern/misc.c (memcmp): Fix prototype.
33283 * include/grub/partition.h [GRUB_UTIL]
33284 (grub_gpt_partition_map_init): Add prototype.
33285 (grub_gpt_partition_map_fini): Likewise.
33287 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
33288 at the right place.
33290 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
33291 (grub_fat_read_data): Likewise.
33292 (grub_fat_find_dir): Likewise.
33294 * font/manager.c (find_glyph): Make table a const.
33295 (grub_font_get_glyph): Remove bitmap from if statement.
33297 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
33299 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
33300 code, first search for device in /dev/mapper, then in /dev.
33301 (grub_util_get_grub_dev): New function.
33302 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
33304 * util/grub-probe.c (probe): Remove check for RAID, call
33305 grub_util_get_grub_dev() instead of
33306 grub_util_biosdisk_get_grub_dev().
33307 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
33308 grub_util_biosdisk_get_grub_dev().
33309 * util/i386/pc/grub-setup.c (main): Likewise.
33311 2007-05-16 Robert Millan <rmh@aybabtu.com>
33313 * DISTLIST: Update for the latest changes.
33314 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
33315 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
33316 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
33317 grub/util/biosdisk.h.
33318 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
33319 grub/util/biosdisk.h.
33321 2007-05-16 Robert Millan <rmh@aybabtu.com>
33323 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
33325 2007-05-16 Robert Millan <rmh@aybabtu.com>
33327 * util/i386/efi/grub-install.in: New.
33328 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
33329 newly added grub-install.
33330 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
33332 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
33333 grub/util/biosdisk.h.
33334 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
33335 grub/util/biosdisk.h.
33337 2007-05-16 Robert Millan <rmh@aybabtu.com>
33339 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
33340 * include/grub/util/biosdisk.h: ... here.
33341 * util/i386/pc/biosdisk.c: Moved to ...
33342 * util/biosdisk.c: ... here.
33343 * util/i386/pc/getroot.c: Moved to ...
33344 * util/getroot.c: ... here.
33345 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
33346 * util/grub-mkdevicemap.c: ... here.
33347 * util/i386/pc/grub-probe.c: Moved to ...
33348 * util/grub-probe.c: ... here.
33350 2007-05-15 Robert Millan <rmh@aybabtu.com>
33352 * util/update-grub.in: Remove duplicated line in grub.cfg header
33355 2007-05-13 Robert Millan <rmh@aybabtu.com>
33357 * util/update-grub.in: Fix a few assumptions about the devices holding
33358 /, /boot and /boot/grub being the same.
33359 * util/grub.d/00_header.in: Likewise.
33360 * util/grub.d/10_hurd.in: Likewise.
33361 * util/grub.d/10_linux.in: Likewise.
33363 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
33364 patterns. Use that to define the `.old' suffix as older than `'.
33366 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
33368 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
33369 the grub.cfg header message.
33371 2007-05-11 Robert Millan <rmh@aybabtu.com>
33373 * util/update-grub.in: Create device.map if it doesn't already exist,
33374 before attempting to run grub-probe.
33375 Check for grub-probe and grub-mkdevicemap with the same code
33376 grub-install is using.
33379 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
33381 * Makefile.in: Add the datarootdir autoconf variable.
33383 2007-05-09 Robert Millan <rmh@aybabtu.com>
33385 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
33386 fail gracefully if dev->disk->partition == NULL.
33388 2007-05-07 Robert Millan <rmh@aybabtu.com>
33390 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
33391 determine partition map module.
33392 * util/i386/pc/grub-install.in: Use this feature to decide which
33393 partition module to load, instead of hardcoding pc and gpt.
33395 2007-05-07 Robert Millan <rmh@aybabtu.com>
33397 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
33398 source directory differs from build directory.
33400 2007-05-05 Robert Millan <rmh@aybabtu.com>
33402 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
33405 2007-05-05 Robert Millan <rmh@aybabtu.com>
33407 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
33409 2007-05-05 Robert Millan <rmh@aybabtu.com>
33411 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
33412 command-line arguments via ${GRUB_CMDLINE_LINUX}.
33414 2007-05-05 Robert Millan <rmh@aybabtu.com>
33416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
33417 (grub_probe_SOURCES): Likewise.
33418 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
33419 GPT and initialize dos_part and bsd_part accordingly.
33420 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
33422 (main): Activate gpt module for use during partition identification,
33423 and deactivate it afterwards.
33424 * util/i386/pc/grub-install.in: Add gpt module to core.img.
33425 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
33426 partition identification, and deactivate it afterwards.
33428 2007-05-05 Robert Millan <rmh@aybabtu.com>
33430 * term/i386/pc/console.c (grub_console_fini): Call
33431 grub_term_set_current() before grub_term_unregister().
33433 2007-05-04 Robert Millan <rmh@aybabtu.com>
33435 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
33436 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
33437 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
33438 and update-grub_DATA.
33439 * conf/common.rmk: Build and install update-grub components.
33440 * conf/common.mk: Regenerate.
33441 * util/update-grub.in: New. Core of update-grub.
33442 * util/grub.d/00_header.in: New. Generates grub.cfg header.
33443 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
33444 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
33445 * util/grub.d/README: New. Document grub.d directory layout.
33447 2007-05-01 Robert Millan <rmh@aybabtu.com>
33449 * util/grub-emu.c: Move initialization functions
33450 grub_util_biosdisk_init() and grub_init_all() before
33451 grub_util_biosdisk_get_grub_dev(), which relies on them.
33453 2007-04-19 Robert Millan <rmh@aybabtu.com>
33455 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
33458 2007-04-18 Jerone Young <jerone@gmail.com>
33460 * kernel/elf.c: Add missing parenthesis for conditional statement
33463 2007-04-10 Jerone Young <jerone@gmail.com>
33465 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
33466 continue on and look for device node with real device name.
33468 2007-04-10 Jerone Young <jerone@gmail.com>
33470 * configure.ac: Add argument for autoconf to use transformation
33472 * Makefile.in: Add autoconf package transformation code.
33473 * util/i386/pc/grub-install.in: Likewise.
33474 * util/powerpc/ieee1275/grub-install.in: Likewise.
33476 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33478 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
33479 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
33480 (EXT2_REVISION): Likewise.
33481 (EXT2_INODE_SIZE): Likewise.
33482 (struct grub_ext2_block_group): Added a missing member
33484 (grub_ext2_read_inode): Divide by the inode size in a superblock
33485 instead of 128 to obtain INODES_PER_BLOCK.
33486 Use the macro EXT2_INODE_SIZE instead of directly using
33487 SBLOCK->INODE_SIZE.
33489 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33491 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
33492 superblock instead of the structure size to compute an
33493 offset. This fixes the problem that GRUB could not read a
33494 filesystem when inode size is different from 128-byte.
33496 2007-03-05 Marco Gerards <marco@gnu.org>
33498 * normal/main.c (read_config_file): When "menu" is not set, create
33499 an initial context.
33501 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33503 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
33504 (HEAP_LIMIT): New macro.
33505 (grub_claim_heap): Claim memory up to `heaplimit'.
33507 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33509 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
33510 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
33511 (_start): Likewise.
33512 (grub_arch_modules_addr): Return address after `_end'.
33513 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
33514 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
33515 (add_segments): Calculate `_end' from phdr size and location.
33516 (ALIGN_UP): Moved to ...
33517 * include/grub/misc.h: here.
33518 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33520 (GRUB_IEEE1275_MODULE_BASE): Removed.
33522 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33527 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33529 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33531 (grub_elf64_load_hook_t): Likewise.
33532 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33535 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33537 * kern/mm.c: Update copyright.
33538 (grub_mm_debug): Correct syntax error.
33539 (grub_mm_dump_free): New function.
33540 (grub_debug_free): Call `grub_free'.
33541 * include/grub/mm.h: Update copyright.
33542 (grub_mm_dump_free): Add declaration.
33544 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33546 * include/grub/ieee1275/ieee1275.h: Update copyright.
33547 * kern/powerpc/ieee1275/init.c: Likewise.
33548 * kern/powerpc/ieee1275/openfw.c: Likewise.
33550 * loader/powerpc/ieee1275/linux.c: Likewise.
33551 * include/grub/elfload.h: Likewise.
33552 * kern/elf.c: Likewise.
33553 (grub_elf32_load): Pass `base' and `size' parameters. Update all
33555 (grub_elf64_load): Likewise.
33556 (grub_elf32_load_segment): Move to a nested function.
33557 (grub_elf64_load_segment): Likewise.
33559 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33561 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
33563 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
33564 (grub_heap_len): Likewise.
33565 (HEAP_SIZE): New macro.
33566 (grub_claim_heap): New function.
33567 (grub_machine_init): Don't claim heap directly. Call
33569 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
33570 (grub_available_iterate): New function.
33572 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
33574 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
33575 * configure.ac: Use it for testing the HOST and TARGET compilers.
33577 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
33579 * Makefile.in (enable_grub_emu): New variable.
33580 * configure.ac (--enable-grub-emu): New option.
33581 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
33582 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
33583 * conf/i386-pc.rmk: Likewise.
33584 * conf/powerpc-ieee1275.rmk: Likewise.
33585 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
33587 2006-12-12 Marco Gerards <marco@gnu.org>
33589 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
33591 * kern/env.c (grub_env_unset): Don't free the member `value' when
33592 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
33595 * normal/main.c (current_menu): Removed.
33596 (free_menu): Unset the `menu' environment variable.
33597 (grub_normal_menu_addentry): Make use of the environment variable
33598 `menu', instead of using the global `current_menu'. Allocate
33599 memory for the sourcecode of this entry.
33600 (read_config_file): New argument `nested', changed all callers.
33601 Only in the case of a new context, initialize a new menu. Set the
33602 `menu' environment variable.
33603 (grub_normal_execute): Don't set and unset the environment
33604 variable `menu' here anymore. Only free the menu when leaving the
33607 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
33610 2006-12-11 Marco Gerards <marco@gnu.org>
33612 * normal/menu_entry.c (run): Fix off by one bug so the last line
33613 is executed. Move the loader check to outside the loop.
33615 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
33617 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
33619 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
33621 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
33622 the number of sectors. Reported by Andrey Shuvikov
33623 <mr_hyro@yahoo.com>.
33625 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
33627 * kern/disk.c (grub_disk_read): When there is a read error, always
33628 try to read only the necessary data.
33630 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
33632 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
33634 [GRUB_UTIL] (grub_raid_fini): Likewise.
33635 [GRUB_UTIL] (grub_lvm_init): Likewise.
33636 [GRUB_UTIL] (grub_lvm_fini): Likewise.
33637 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
33638 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
33639 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
33640 and grub_raid_fini().
33642 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33644 * include/grub/types.h (__unused): Rename to UNUSED.
33645 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
33646 (grub_elf64_size): Likewise.
33648 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33650 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
33651 grub_error_push and grub_error_pop in the error-handling path.
33652 (grub_elf32_load_segment): Only call grub_file_read with non-zero
33655 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33657 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
33658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33660 (kernel_elf_SOURCES): Likewise.
33661 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
33662 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
33663 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33664 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33665 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
33666 (elf_mod_SOURCES): New variable.
33667 (elf_mod_CFLAGS): Likewise.
33668 (elf_mod_LDFLAGS): Likewise.
33669 * include/grub/types.h (__unused): New macro.
33670 * include/grub/elfload.h: New file.
33671 * kern/elf.c: Likewise.
33672 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
33673 (ELF32_LOADMASK): New macro.
33674 (ELF64_LOADMASK): Likewise.
33675 (vmlinux): Removed.
33676 (grub_linux_load32): New function.
33677 (grub_linux_load64): Likewise.
33678 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
33679 Use grub_elf_t instead of grub_file_t.
33681 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
33683 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
33684 `catch_result' to struct set_color_args.
33686 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33688 * normal/menu.c: Include grub/script.h.
33689 * normal/menu_entry.c: Likewise.
33690 * include/grub/normal.h: Do not include grub/script.h.
33692 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33694 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
33696 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33698 * kern/disk.c (grub_disk_open): Print debug messages when opening a
33700 (grub_disk_close): Print debug messages when closing a disk.
33701 (grub_disk_read): Print debug messages when disk read fails.
33702 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
33704 * kern/partition.c: Include misc.h.
33705 (grub_partition_iterate): Print debug messages when detecting
33708 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33710 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
33712 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
33714 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
33716 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33717 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
33719 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
33721 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
33722 instead of sizeof(lv). Patch by Michael Guntsche.
33724 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
33726 * disk/lvm.c: Rename VGS to VG_LIST.
33727 (grub_lvm_iterate): Change VGS->LV to VG-LV.
33728 (grub_lvm_open): Likewise.
33729 Thanks to Michael Guntsche for finding this bug.
33731 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33733 * configure.ac (AC_INIT): Bumped to 1.95.
33735 2006-10-14 Robert Millan <rmh@aybabtu.com>
33737 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
33738 with "/dev/.static/dev/md".
33740 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33742 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
33743 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
33744 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
33745 DRIVE_NAME are always freed.
33747 * util/i386/pc/biosdisk.c (make_device_name): Add one into
33748 DOS_PART, as a DOS partition is counted from one instead of zero
33749 now. Reported by Robert Millan.
33751 2006-10-14 Robert Millan <rmh@aybabtu.com>
33753 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
33754 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
33755 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
33756 string returned by grub_guess_root_device.
33757 * util/i386/pc/grub-setup.c: Likewise.
33758 * util/i386/pc/grub-probefs.c: Likewise.
33760 * util/i386/pc/grub-probefs.c: Rename to ...
33761 * util/i386/pc/grub-probe.c: ... this.
33762 * DISTLIST: Remove grub-probefs, add grub-probe.
33763 * conf/i386-efi.rmk: Likewise.
33764 * conf/i386-pc.rmk: Likewise.
33765 * util/i386/pc/grub-install.in: Likewise.
33767 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
33768 choose which information we want to print.
33770 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33772 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
33773 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
33774 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
33775 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
33776 video/readers/tga.c and video/i386/pc/vbeutil.c.
33778 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
33780 Added support for RAID and LVM.
33782 * disk/lvm.c: New file.
33783 * disk/raid.c: Likewise.
33784 * include/grub/lvm.h: Likewise.
33785 * include/grub/raid.h: Likewise.
33786 * include/grub/util/lvm.h: Likewise.
33787 * include/grub/util/raid.h: Likewise.
33788 * util/lvm.c: Likewise.
33789 * util/raid.c: Likewise.
33791 * include/grub/disk.h (grub_disk_dev_id): Add
33792 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
33793 (grub_disk_get_size): New prototype.
33794 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
33795 returns a partition.
33796 (grub_disk_get_size): New function.
33798 * kern/i386/pc/init.c (make_install_device): Copy the prefix
33799 verbatim if grub_install_dos_part is -2.
33801 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
33804 * util/i386/pc/grub-setup.c (setup): New argument
33805 MUST_EMBED. Force embedding of GRUB when the argument is
33806 true. Close FILE before returning.
33807 (main): Add support for RAID and LVM.
33809 * conf/common.rmk: Add RAID and LVM modules.
33810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
33812 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
33814 * kern/misc.c (grub_strstr): New function.
33815 * include/grub/misc.h (grub_strstr): New prototype.
33817 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
33819 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
33821 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
33823 * kern/misc.c (grub_strtoull): Guess the base only if not
33826 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33828 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
33831 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
33835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
33836 Remove `flags' argument. All callers changed.
33837 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
33838 (IEEE1275_IHANDLE_INVALID): New variable.
33839 (IEEE1275_CELL_INVALID): New variable.
33840 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33841 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
33842 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
33843 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
33844 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
33845 codes from Open Firmware. All callers updated.
33846 (grub_ieee1275_next_property): Directly return Open Firmware return
33848 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
33849 Standardize error checking from `grub_ieee1275_get_property'.
33850 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
33851 `devalias' to `aliases'. Correct comments. Consolidate error paths.
33853 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33855 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
33856 `instance_to_package_args' to `instance_to_path_args'.
33858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
33859 `grub_ieee1275_chosen'.
33861 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
33862 `grub_ieee1275_interpret'.
33864 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33866 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
33868 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33870 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
33871 (__cmpdi): Likewise.
33873 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
33874 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
33877 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
33879 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
33880 to type `grub_ssize_t'.
33881 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
33883 2006-09-22 Marco Gerards <marco@gnu.org>
33885 * normal/script.c (grub_script_create_cmdmenu): Skip leading
33888 2006-09-22 Marco Gerards <marco@gnu.org>
33890 * commands/echo.c: New file.
33892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
33894 * conf/common.rmk (echo_mod_SOURCES): New variable.
33895 (echo_mod_CFLAGS): Likewise.
33896 (echo_mod_LDFLAGS): Likewise.
33898 2006-09-22 Marco Gerards <marco@gnu.org>
33900 * normal/main.c (get_line): Malloc memory instead of using
33901 preallocated memory. Removed the arguments `cmdline' and
33902 `max_len'. Updated all callers.
33904 2006-09-22 Marco Gerards <marco@gnu.org>
33906 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
33907 (normal_mod_DEPENDENCIES): Likewise.
33909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
33910 (normal_mod_DEPENDENCIES): Likewise.
33912 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
33914 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
33916 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
33918 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
33919 (normal_mod_DEPENDENCIES): Likewise.
33920 * conf/i386-pc.mk: Regenerate.
33921 * conf/i386-efi.mk: Likewise
33922 * conf/common.mk: Likewise.
33923 * conf/powerpc-ieee1275.mk: Likewise.
33924 * conf/sparc64-ieee1275.mk: Likewise.
33926 2006-09-22 Robert Millan <rmh@aybabtu.com>
33928 Sync with i386 version.
33929 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
33930 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
33932 2006-09-21 Robert Millan <rmh@aybabtu.com>
33934 Import from GRUB Legacy (lib/device.c):
33935 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
33936 (init_device_map) [__linux__]: Add support for I2O devices.
33938 2006-09-14 Marco Gerards <marco@gnu.org>
33940 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
33943 2006-09-14 Robert Millan <rmh@aybabtu.com>
33945 * util/i386/pc/grub-install.in: Skip menu.lst when removing
33948 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
33950 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
33951 before adding it to device.map.
33953 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
33955 * genmk.rb: Let GCC generate dependencies the first time it
33956 compiles a file; using the -MD option.
33957 * conf/common.mk: Regenerate.
33958 * conf/i386-pc.mk: Likewise.
33959 * conf/i386-efi.mk: Likewise.
33960 * conf/powerpc-ieee1275.mk: Likewise.
33961 * conf/sparc64-ieee1275.mk: Likewise.
33963 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
33965 Move the prototypes of grub_setjmp and grub_longjmp to
33966 cpu/setjmp.h, so that each architecture may specify different
33969 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
33970 (grub_longjmp): Likewise.
33971 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
33972 (grub_longjmp): Likewise.
33973 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
33974 (grub_longjmp): Likewise.
33976 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
33977 [!GRUB_UTIL] (grub_longjmp): Removed.
33979 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
33981 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
33982 "color!" method does not return any value.
33984 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
33986 * include/grub/bitmap.h: New file.
33988 * include/grub/i386/pc/vbeutil.h: Likewise.
33990 * video/bitmap.c: Likewise.
33992 * video/readers/tga.c: Likewise.
33994 * video/i386/pc/vbeutil.c: Likewise.
33996 * commands/videotest.c: Code cleanup and updated to reflect to new
33999 * term/gfxterm.c: Likewise.
34001 * video/video.c: Likewise.
34003 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34004 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34005 (bitmap_mod_SOURCES): New entry.
34006 (bitmap_mod_CFLAGS): Likewise.
34007 (bitmap_mod_LDFLAGS): Likewise.
34008 (tga_mod_SOURCES): Likewise.
34009 (tga_mod_CFLAGS): Likewise.
34010 (tga_mod_LDFLAGS): Likewise.
34012 * include/grub/video.h (grub_video_blit_operators): New enum type.
34013 (grub_video_render_target): Changed as forward declaration and moved
34014 actual definition to be video driver specific.
34015 (grub_video_adapter.blit_bitmap): Added blitting operator.
34016 (grub_video_adapter.blit_render_target): Likewise.
34017 (grub_video_blit_bitmap): Likewise.
34018 (grub_video_blit_render_target): Likewise.
34020 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34021 driver specific render target definition.
34022 (grub_video_vbe_map_rgba): Added driver internal helper.
34023 (grub_video_vbe_unmap_color): Updated to use
34024 grub_video_i386_vbeblit_info.
34025 (grub_video_vbe_get_video_ptr): Likewise.
34027 * include/grub/i386/pc/vbeblit.h
34028 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34029 grub_video_i386_vbeblit_info.
34030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34031 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34032 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34033 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34034 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34035 (grub_video_i386_vbeblit_index_index): Likewise.
34036 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34038 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34039 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34041 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34044 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34045 include/grub/i386/pc/vbeblit.h.
34047 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34048 Updated to use grub_video_i386_vbeblit_info.
34049 (grub_video_i386_vbefill_R8G8B8): Likewise.
34050 (grub_video_i386_vbefill_index): Likewise.
34051 (grub_video_i386_vbefill): Added generic filler.
34053 * video/i386/pc/vbefill.c: Updated to reflect changes on
34054 include/grub/i386/pc/vbefill.h.
34056 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34057 grub_video_i386_vbeblit_info.
34058 (grub_video_vbe_unmap_color): Likewise.
34059 (grub_video_vbe_blit_glyph): Likewise.
34060 (grub_video_vbe_scroll): Likewise.
34061 (grub_video_vbe_draw_pixel): Removed function.
34062 (grub_video_vbe_get_pixel): Likewise.
34063 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34064 updated code to use it.
34065 (common_blitter): Added common blitter for render target and bitmap.
34066 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34067 (grub_video_vbe_blit_render_target): Likewise.
34069 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34071 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34072 is in text mode if there is no console control protocol instance
34075 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34077 * include/grub/video.h: Code cleanup.
34079 * include/grub/i386/pc/vbe.h: Likewise.
34081 * video/i386/pc/vbe.c: Likewise.
34083 * video/i386/pc/vbeblit.c: Likewise.
34085 * video/i386/pc/vbefill.c: Likewise.
34087 * video/video.c: Likewise. Also added more comments.
34089 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34091 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34092 (struct grub_biosdisk_dap): Likewise.
34094 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34095 linkage settings for all functions.
34097 2006-07-12 Marco Gerards <marco@gnu.org>
34099 * configure.ac (--enable-mm-debug): Fix typo.
34101 * genkernsyms.sh.in: Use proper quoting for `CC'.
34103 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34105 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34106 (normal_mod_ASFLAGS): Remove "-m32".
34108 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34110 * util/misc.c: Include config.h.
34111 [!HAVE_MEMALIGN]: Do not include malloc.h.
34112 (grub_memalign): Use posix_memalign, if present. Then, use
34113 memalign, if present. Otherwise, emit an error.
34115 * util/grub-emu.c: Do not include malloc.h.
34117 * include/grub/util/misc.h: Include unistd.h. This is required for
34118 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34119 D. Eades III <hde@foobar-qux.org>.
34121 * configure.ac (AC_GNU_SOURCE): Added.
34122 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34125 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34128 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34130 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34132 * include/grub/types.h (grub_host_addr_t): Rename to
34133 grub_target_addr_t.
34134 (grub_host_off_t): Rename to grub_target_off_t.
34135 (grub_host_size_t): Rename to grub_target_size_t.
34136 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34137 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34139 * include/grub/kernel.h (struct grub_module_header): Change type
34140 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34141 (grub_module_info): Likewise.
34143 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34145 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34146 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34147 Velazquez <jesus.velazquez@gmail.com>.
34149 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34151 Count partitions from 1 instead of 0 in the string representation
34152 of partitions. Still use 0-based internally.
34154 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34155 (sun_partition_map_iterate): Use grub_partition_t instead of
34156 struct grub_partition *. Cast DESC->START_CYLINDER to
34157 grub_uint64_t after converting the endian.
34158 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34159 (sun_partition_map_get_name): Add 1 to P->INDEX.
34161 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34163 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34165 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34166 zero instead of one.
34167 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34168 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34170 * partmap/apple.c (apple_partition_map_iterate): Change the type
34171 of POS to unsigned.
34172 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34173 (apple_partition_map_get_name): Add 1 into P->INDEX.
34175 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34176 of POS to unsigned.
34177 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34178 calculate the offset of a partition.
34179 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34180 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34182 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34183 SECTOR to grub_disk_addr_t.
34184 (acorn_partition_map_iterate): Likewise.
34185 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34186 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34188 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34190 * kern/i386/pc/init.c (make_install_device): Add 1 into
34191 GRUB_INSTALL_DOS_PART.
34193 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34196 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34198 Clean up the code to support 64-bit addressing in disks and
34199 files. This change is not enough for filesystems yet.
34201 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34202 type of "start" to grub_uint64_t.
34203 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34204 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34205 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34208 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34209 to grub_disk_addr_t.
34211 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34216 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34219 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34221 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34223 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34225 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34226 to grub_off_t, to detect an error from grub_file_seek.
34227 (grub_multiboot_load_elf32): Likewise.
34229 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
34230 maximum unsigned long value when an overflow is detected.
34231 (grub_strtoull): New function.
34232 (grub_divmod64): Likewise.
34233 (grub_lltoa): use grub_divmod64.
34235 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34237 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
34238 the pointer to next character. Use grub_strtoull instead of
34240 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
34241 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
34244 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
34245 return value is signed.
34246 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
34247 test if OFFSET is less than zero, as OFFSET is unsigned now.
34249 * kern/disk.c (struct grub_disk_cache): Change the type of
34250 "sector" to grub_disk_addr_t.
34251 (grub_disk_cache_get_index): Change the type of SECTOR to
34252 grub_disk_addr_t. Calculate the hash with SECTOR casted to
34253 unsigned after shifting.
34254 (grub_disk_cache_invalidate): Change the type of SECTOR to
34256 (grub_disk_cache_unlock): Likewise.
34257 (grub_disk_cache_store): Likewise.
34258 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
34259 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
34260 grub_disk_addr_t and grub_uint64_t, respectively.
34261 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
34262 body, as the value of OFFSET is tweaked by
34263 grub_disk_check_range. Change the types of START_SECTOR, LEN and
34264 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
34266 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
34267 body, as the value of OFFSET is tweaked by
34268 grub_disk_check_range. Change the types of LEN and N to
34271 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
34272 and "saved_offset" to grub_off_t.
34273 (test_header): Cast BUF to char *.
34274 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
34276 (grub_gzio_read): Change the types of OFFSET and SIZE to
34277 grub_off_t and grub_size_t, respectively.
34279 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34281 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
34282 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
34283 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
34284 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
34285 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
34287 * include/grub/types.h (grub_off_t): Unconditionally set to
34289 (grub_disk_addr_t): Changed to grub_uint64_t.
34291 * include/grub/partition.h (struct grub_partition): Change the
34292 types of "start", "len" and "offset" to grub_disk_addr_t,
34293 grub_uint64_t and grub_disk_addr_t, respectively.
34294 (grub_partition_get_start): Return grub_disk_addr_t.
34295 (grub_partition_get_len): Return grub_uint64_t.
34297 * include/grub/misc.h (grub_strtoull): New prototype.
34298 (grub_divmod64): Likewise.
34300 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
34301 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
34302 grub_off_t, respectively.
34303 All callers and references changed.
34305 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
34306 grub_size_t in "read".
34307 All callers and references changed.
34309 * include/grub/file.h (struct grub_file): Change the types of
34310 "offset" and "size" to grub_off_t and grub_off_t,
34311 respectively. Change the type of SECTOR to grub_disk_addr_t in
34313 (grub_file_read): Change the type of LEN to grub_size_t.
34314 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
34316 (grub_file_size): Return grub_off_t.
34317 (grub_file_tell): Likewise.
34318 All callers and references changed.
34320 * include/grub/disk.h (struct grub_disk_dev): Change the types of
34321 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
34323 (struct grub_disk): Change the type of "total_sectors" to
34324 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
34326 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
34327 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
34328 (grub_disk_write): Likewise.
34329 All callers and references changed.
34331 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
34332 char * for grub_strncmp to silence gcc.
34333 (grub_iso9660_mount): Likewise.
34334 (grub_iso9660_mount): Likewise.
34335 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
34337 (grub_iso9660_iterate_dir): Likewise.
34338 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
34340 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
34341 LEN to grub_disk_addr_t and grub_size_t, respectively.
34343 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34345 * fs/jfs.c (grub_jfs_read_file): Likewise.
34347 * fs/minix.c (grub_jfs_read_file): Likewise.
34349 * fs/sfs.c (grub_jfs_read_file): Likewise.
34351 * fs/ufs.c (grub_jfs_read_file): Likewise.
34353 * fs/xfs.c (grub_jfs_read_file): Likewise.
34355 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
34356 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
34359 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
34360 BLKNR to -1 instead of returning GRUB_ERRNO.
34361 (grub_ext2_read_file): Change the types of SECTOR and
34362 LEN to grub_disk_addr_t and grub_size_t, respectively.
34364 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
34365 LEN to grub_disk_addr_t and grub_size_t, respectively.
34367 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
34370 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
34371 string. Do not cast SECTOR explicitly.
34373 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
34374 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
34375 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
34376 grub_disk_addr_t and grub_size_t, respectively. If the sector is
34377 over 2TB and LBA mode is not supported, raise an error.
34378 (get_safe_sectors): New function.
34379 (grub_biosdisk_read): Use get_safe_sectors.
34380 (grub_biosdisk_write): Likewise.
34382 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
34383 (grub_efidisk_write): Likewise.
34385 * disk/loopback.c (delete_loopback): Cosmetic changes.
34386 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
34388 (grub_loopback_open): Likewise.
34389 (grub_loopback_read): Likewise. Also, change the type of POS to
34390 grub_off_t, and fix the usage of grub_memset.
34392 * commands/i386/pc/play.c: Include grub/machine/time.h.
34394 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
34397 * commands/configfile.c: Include grub/env.h.
34399 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
34400 GRUB_ERRNO directly instead. Change the type of POS to
34401 grub_off_t. Follow the coding standard.
34403 * commands/blocklist.c: Include grub/partition.h.
34404 (grub_cmd_blocklist): Return an error if the underlying device is
34405 not a disk. Take the starting sector of a partition into account,
34406 if a partition is used.
34408 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
34410 (lba_mode): Support 64-bit addresses.
34411 (chs_mode): Likewise.
34412 (copy_buffer): Adapted to the new offsets of a length field and a
34414 (blocklist_default_start): Allocate 64-bit space.
34416 * boot/i386/pc/boot.S (force_lba): Removed.
34417 (boot_drive): Moved to under KERNEL_SECTOR.
34418 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
34420 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
34422 (lba_mode): Refactored to support a 64-bit address. More size
34424 (setup_sectors): Likewise.
34426 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34428 * DISTLIST: Added include/grub/i386/linux.h. Removed
34429 include/grub/i386/pc/linux.h
34431 * configure.ac (AC_INIT): Bumped to 1.94.
34433 * config.guess: Updated from gnulib.
34434 * config.sub: Likewise.
34435 * install-sh: Likewise.
34436 * mkinstalldirs: Likewise.
34438 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34440 * conf/common.rmk (grub_modules_init.lst): Depended on
34441 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
34444 * genmk.rb (PModule::rule): Reverted the previous change.
34446 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34448 * conf/common.rmk (grub_modules_init.lst): Depends on
34449 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
34450 that the target does not exist before producing.
34451 (grub_modules_init.h): Remove the target before generating.
34452 (grub_emu_init.c): Likewise.
34454 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
34456 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
34458 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
34459 for the target-specific tests. Make sure that we also have the
34460 up-to-date target variables for those tests.
34462 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34464 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
34465 (PModule::rule): Likewise.
34467 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34469 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
34470 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
34471 target-specific flags should be prefixed.
34472 (PModule::rule): Likewise.
34474 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
34476 * configure.ac (CMP): Check if cmp is available explicitly.
34478 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
34480 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
34481 (target_cpu): New variable.
34482 (pkglibdir): Use target_cpu instead of host_cpu.
34484 * util/i386/pc/grub-install.in (host_cpu): Removed.
34485 (target_cpu): New variable.
34486 (pkglibdir): Use target_cpu instead of host_cpu.
34488 * util/genmoddep.c: Removed.
34490 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
34491 instead of GRUB_HOST_SIZEOF_VOID_P.
34492 * kern/dl.c: Likewise.
34494 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
34496 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34497 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34498 (GRUB_TARGET_SIZEOF_LONG): ... this.
34499 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34500 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34501 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34505 (GRUB_TARGET_SIZEOF_LONG): ... this.
34506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34508 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34512 (GRUB_TARGET_SIZEOF_LONG): ... this.
34513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34516 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
34517 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
34518 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
34519 instead of GRUB_HOST_SIZEOF_LONG.
34520 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
34521 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
34522 GRUB_CPU_WORDS_BIGENDIAN.
34523 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
34524 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
34527 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
34528 (genmoddep_SOURCES): Likewise.
34529 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
34530 (genmoddep_SOURCES): Likewise.
34531 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
34532 (genmoddep_SOURCES): Likewise.
34533 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
34535 (genmoddep_SOURCES): Likewise.
34537 * genmoddep.awk: New file.
34539 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
34540 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
34541 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
34542 (PModule::rule): Likewise.
34543 (Program::rule): Likewise.
34544 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
34545 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
34548 * configure.ac: Rewritten intensively to use host and target
34549 instead of build and host, respectively.
34551 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
34552 (host_cpu): Removed.
34553 (target_cpu): New variable.
34554 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
34555 (BUILD_CC): Removed.
34556 (BUILD_CFLAGS): Likewise.
34557 (BUILD_CPPFLAGS): Likewise.
34558 (TARGET_CC): New variable.
34559 (TARGET_CFLAGS): Likewise.
34560 (TARGET_CPPFLAGS): Likewise.
34561 (TARGET_LDFLAGS): Likewise.
34563 (include): Use target_cpu instead of host_cpu.
34564 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
34566 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
34568 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
34570 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
34571 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
34572 field 'false' to 'exec_on_false'.
34573 (grub_script_create_cmdif): Renamed argument names to reflect above
34576 * normal/execute.c (grub_script_execute_cmdif): Likewise.
34578 * normal/script.c (grub_script_create_cmdif): Likewise.
34580 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
34582 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
34584 (grub_hfsplus_btree_recptr): Likewise.
34585 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
34586 FILEBLOCK both to pass a block number and store next block
34588 (grub_hfsplus_read_block): Rewritten heavily to support an extent
34589 overflow file correctly. Specify errors appropriately, because
34590 fshelp expects that GRUB_ERRNO is set when fails. Reuse
34591 grub_hfsplus_btree_recptr to get the pointer to a found key.
34592 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
34595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
34597 (_linux_mod_SOURCES): New variable.
34598 (_linux_mod_CFLAGS): Likewise.
34599 (_linux_mod_LDFLAGS): Likewise.
34600 (linux_mod_SOURCES): Likewise.
34601 (linux_mod_CFLAGS): Likewise.
34602 (linux_mod_LDFLAGS): Likewise.
34604 * DISTLIST: Added loader/i386/efi/linux.c,
34605 loader/i386/efi/linux_normal.c and
34606 include/grub/i386/efi/loader.h.
34608 * loader/i386/efi/linux.c: New file.
34609 * loader/i386/efi/linux_normal.c: Likewise.
34610 * include/grub/i386/efi/loader.h: Likewise.
34612 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
34614 * commands/blocklist.c: New file.
34616 * DISTLIST: Added commands/blocklist.c.
34618 * term/efi/console.c (grub_console_highlight_color): Use a lighter
34619 color for the background, and a darker color for the foreground.
34620 (grub_console_checkkey): Return READ_KEY.
34621 (grub_console_cls): Set the background to
34622 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
34624 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
34626 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
34627 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
34629 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
34632 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
34633 BG. The spec is wrong again.
34635 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
34637 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
34639 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34640 commands/blocklist.c.
34641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34643 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
34644 (blocklist_mod_SOURCES): New variable.
34645 (blocklist_mod_CFLAGS): Likewise.
34646 (blocklist_mod_LDFLAGS): Likewise.
34648 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
34650 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
34652 (lba_mode): Use %eax more intensively to reduce the code size.
34654 2006-05-20 Marco Gerards <marco@gnu.org>
34656 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
34658 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
34660 (script): Accept leading newlines.
34661 (newlines): New rule to describe 0 or more newlines.
34662 (commands): Accept `command' with trailing newline. Fixed the
34663 order in which arguments were passed to `grub_script_add_cmd'.
34664 Accept commands separated by newlines.
34665 (function): Changed to accept newlines.
34666 (menuentry) Rewritten.
34668 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
34669 front of the list, instead of to the end.
34671 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
34673 * util/i386/pc/grub-install.in (bindir): New variable.
34674 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
34675 Shaver <lbgwjl@gmail.com>.
34677 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
34679 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
34680 grub/machine/linux.h
34681 * loader/i386/pc/linux.c: Likewise.
34683 * include/grub/i386/pc/linux.h: Moved to ...
34684 * include/grub/i386/linux.h: ... here.
34686 * include/grub/i386/linux.h (struct linux_kernel_params): New
34689 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
34691 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
34693 (grub_video_vbe_blit_glyph): Likewise.
34694 (grub_video_vbe_blit_bitmap): Likewise.
34695 (grub_video_vbe_blit_render_target): Likewise.
34697 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
34699 * configure.ac (--with-platform): Properly quote the square
34702 2006-05-08 Marco Gerards <marco@gnu.org>
34704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
34706 (kernel_elf_HEADERS): ...to this. Updated all users.
34707 (grubof_symlist.c): Renamed from this...
34708 (kernel_elf_symlist.c): ...to this. Updated all users.
34709 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34710 (grubof_SOURCES): Renamed from this...
34711 (kernel_elf_SOURCES): ...to this.
34712 (grubof_HEADERS): Renamed from this...
34713 (kernel_elf_HEADERS): ...to this.
34714 (grubof_CFLAGS): Renamed from this...
34715 (kernel_elf_CFLAGS): ...to this.
34716 (grubof_ASFLAGS): Renamed from this...
34717 (kernel_elf_ASFLAGS): ...to this.
34718 (grubof_LDFLAGS): Renamed from this...
34719 (kernel_elf_LDFLAGS): ...to this.
34721 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
34723 (kernel_elf_HEADERS): ...to this. Updated all users.
34724 (grubof_symlist.c): Renamed from this...
34725 (kernel_elf_symlist.c): ...to this. Updated all users.
34726 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34727 (grubof_SOURCES): Renamed from this...
34728 (kernel_elf_SOURCES): ...to this.
34729 (grubof_HEADERS): Renamed from this...
34730 (kernel_elf_HEADERS): ...to this.
34731 (grubof_CFLAGS): Renamed from this...
34732 (kernel_elf_CFLAGS): ...to this.
34733 (grubof_ASFLAGS): Renamed from this...
34734 (kernel_elf_ASFLAGS): ...to this.
34735 (grubof_LDFLAGS): Renamed from this...
34736 (kernel_elf_LDFLAGS): ...to this.
34738 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
34739 `kernel.elf' instead of `grubof'.
34741 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
34743 Add --with-platform to configure. Use pkglibdir instead of
34744 pkgdatadir. This is reported by Roger Leigh.
34746 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
34747 (host_vendor): Likewise.
34748 (host_os): Likewise.
34749 (pkgdatadir): Likewise.
34750 (platform): New variable.
34751 (pkglibdir): Likewise.
34752 Use PKGLIBDIR instead of PKGDATADIR.
34754 * util/i386/pc/grub-install.in (datadir): Removed.
34755 (host_vendor): Likewise.
34756 (host_os): Likewise.
34757 (pkgdatadir): Likewise.
34758 (platform): New variable.
34759 (pkglibdir): Likewise.
34760 Use PKGLIBDIR instead of PKGDATADIR.
34762 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
34763 instead of GRUB_DATADIR.
34765 * util/i386/pc/grub-mkimage.c (usage): Likewise.
34767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34770 * configure.ac (--with-platform): New option.
34771 Use PLATFORM instead of HOST_VENDOR to specify a platform.
34773 * Makefile.in: Include a makefile based on PLATFORM instead of
34775 (pkgdatadir): Not appended by the machine type.
34776 (pkglibdir): Appended by the machine type.
34777 (host_vendor): Removed.
34778 (platform): New variable.
34779 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
34780 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
34781 (uninstall): Likewise.
34783 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
34785 Use the environment context in the menu. Remove the commands
34786 "default" and "timeout", and use variables instead.
34788 * normal/menu.c: Include grub/env.h.
34789 (print_entry): Cast TITLE to silence gcc.
34790 (get_timeout): New function.
34791 (set_timeout): Likewise.
34792 (get_entry_number): Likewise.
34793 (run_menu): Use a default entry, a fallback entry and a timeout
34794 in the environment variables "default", "fallback" and
34795 "timeout". Also, tweak the default entry if it is not within the
34796 current menu entries.
34797 (grub_menu_run): Use a fallback entry in the environment variable
34800 * normal/main.c (read_config_file): Do not initialize
34801 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
34803 (grub_normal_execute): Use a data slot to store the menu.
34805 * include/grub/normal.h (struct grub_menu): Removed default_entry,
34806 fallback_entry and timeout.
34807 (struct grub_menu_list): Removed.
34808 (grub_menu_list_t): Likewise.
34809 (struct grub_context): Likewise.
34810 (grub_context_t): Likewise.
34811 (grub_context_get): Likewise.
34812 (grub_context_get_current_menu): Likewise.
34813 (grub_context_push_menu): Likewise.
34814 (grub_context_pop_menu): Likewise.
34815 (grub_default_init): Likewise.
34816 (grub_default_fini): Likewise.
34817 (grub_timeout_init): Likewise.
34818 (grub_timeout_fini): Likewise.
34820 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
34822 (normal_mod_SOURCES): Removed normal/context.c.
34824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
34825 commands/default.c, commands/timeout.c and normal/context.c.
34826 (normal_mod_SOURCES): Removed normal/context.c.
34828 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
34829 commands/timeout.c and normal/context.c.
34830 (normal_mod_SOURCES): Removed normal/context.c.
34832 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
34833 commands/default.c, commands/timeout.c and normal/context.c.
34834 (normal_mod_SOURCES): Removed normal/context.c.
34836 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
34838 (default_mod_SOURCES): Removed.
34839 (default_mod_CFLAGS): Likewise.
34840 (default_mod_LDFLAGS): Likewise.
34841 (timeout_mod_SOURCES): Removed.
34842 (timeout_mod_CFLAGS): Likewise.
34843 (timeout_mod_LDFLAGS): Likewise.
34845 * DISTLIST: Removed commands/default.c, commands/timeout.c and
34848 * commands/default.c: Removed.
34849 * commands/timeout.c: Likewise.
34850 * normal/context.c: Likewise.
34852 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
34854 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
34856 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
34858 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
34859 "next" to "prev" for readability.
34860 (struct grub_env_sorted_var): New struct.
34861 (grub_env_context): Renamed to ...
34862 (initial_context): ... this.
34863 (grub_env_var_context): Renamed to ...
34864 (current_context): ... this.
34865 (grub_env_find): Look only at CURRENT_CONTEXT.
34866 (grub_env_context_open): Rewritten to copy exported variables from
34868 (grub_env_context_close): Rewritten according to the new
34869 scheme. Also, add an assertion to prevent the initial context from
34871 (grub_env_insert): Removed the code for the sorted list.
34872 (grub_env_remove): Likewise.
34873 (grub_env_export): Simply mark the variable with
34874 GRUB_ENV_VAR_GLOBAL.
34875 (grub_env_set): A cosmetic change for naming consistency.
34876 (grub_env_get): Likewise.
34877 (grub_env_unset): Likewise.
34878 (grub_env_iterate): Rewritten to sort variables within this
34880 (grub_register_variable_hook): Fixed for naming consistency. Call
34881 grub_env_find again, only if NAME is not found at the first time.
34882 (mangle_data_slot_name): New function.
34883 (grub_env_set_data_slot): Likewise.
34884 (grub_env_get_data_slot): Likewise.
34885 (grub_env_unset_data_slot): Likewise.
34887 * include/grub/env.h (grub_env_var_type): New enum.
34888 (GRUB_ENV_VAR_LOCAL): New constant.
34889 (GRUB_ENV_VAR_GLOBAL): Likewise.
34890 (GRUB_ENV_VAR_DATA): Likewise.
34891 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
34893 (grub_env_set): Replace VAR with NAME for consistency.
34894 (grub_register_variable_hook): Likewise.
34895 (grub_env_export): Specify the name of the argument.
34896 (grub_env_set_data_slot): New prototype.
34897 (grub_env_get_data_slot): Likewise.
34898 (grub_env_unset_data_slot): Likewise.
34900 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34902 Extend the loader so that GRUB can accept a loader which comes
34903 back to GRUB when a loaded image exits. Also, this change adds
34904 support for a chainloader on EFI.
34906 * term/efi/console.c: Include grub/misc.h.
34907 (grub_console_checkkey): Display a scan code on the top for
34908 debugging. This will be removed once the EFI port gets stable.
34909 Correct the scan code mapping.
34911 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
34912 allocate memory from larger regions, in order to reduce the number
34913 of allocated regions. Otherwise, the MacOSX loader panics.
34914 (filter_memory_map): Avoid less than 1MB for compatibility with
34916 (add_memory_regions): Allocate from the tail of a region, if
34917 possible, to avoid allocating a region near to 1MB, for the MacOSX
34920 * kern/efi/init.c (grub_efi_set_prefix): Specify
34921 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
34923 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
34924 argument IMAGE_HANDLE and specify it to get a loaded image.
34925 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
34926 grub_efi_get_loaded_image.
34927 (grub_efi_get_filename): Divide the length by the size of
34929 (grub_efi_get_device_path): New function.
34930 (grub_efi_print_device_path): Print End Device Path nodes. Divide
34931 the length by the size of grub_efi_char16_t for a file path device
34934 * kern/loader.c (grub_loader_noreturn): New variable.
34935 (grub_loader_set): Accept a new argument NORETURN. Set
34936 GRUB_LOADER_NORETURN to NORETURN.
34937 All callers changed.
34938 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
34941 * include/grub/efi/efi.h (grub_efi_get_device_path): New
34943 (grub_efi_get_loaded_image): Take an argument to specify an image
34946 * include/grub/loader.h (grub_loader_set): Added one more argument
34949 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
34950 instead of grub_efi_open_protocol.
34951 (grub_efidisk_get_device_name): Likewise.
34952 (grub_efidisk_close): Print a newline.
34953 (grub_efidisk_get_device_handle): Fixed to use
34954 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
34955 GRUB_EFI_DEVICE_PATH_TYPE.
34957 * disk/efi/efidisk.c (device_path_guid): Moved to ...
34958 * kern/efi/efi.c (device_path_guid): ... here.
34960 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
34962 (kernel_mod_HEADERS): Added efi/disk.h.
34963 (_chain_mod_SOURCES): New variable.
34964 (_chain_mod_CFLAGS): Likewise.
34965 (_chain_mod_LDFLAGS): Likewise.
34966 (chain_mod_SOURCES): Likewise.
34967 (chain_mod_CFLAGS): Likewise.
34968 (chain_mod_LDFLAGS): Likewise.
34970 * DISTLIST: Added include/grub/efi/chainloader.h,
34971 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
34973 * include/grub/efi/chainloader.h: New file.
34974 * loader/efi/chainloader.c: Likewise.
34975 * loader/efi/chainloader_normal.c: Likewise.
34977 2006-04-30 Marco Gerards <marco@gnu.org>
34979 * commands/configfile.c (grub_cmd_source): New function.
34980 (GRUB_MOD_INIT): Register the commands `source' and `.'.
34981 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
34983 2006-04-30 Marco Gerards <marco@gnu.org>
34985 * normal/execute.c (grub_script_execute_cmd): Change the return
34986 type to `grub_err_t'. Correctly return the error.
34987 (grub_script_execute_cmdline): In case a command line is not a
34988 command or a function, try to interpret it as an assignment.
34990 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34992 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
34993 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
34994 skip a node whose name is obviously invalid as UTF-16,
34995 i.e. contains a NUL character. Stop the iteration when the last
34996 directory entry is found. Instead of using the return value of
34997 grub_hfsplus_btree_iterate_node, store the value in RET and use
34998 it, because the iterator can be stopped by the last directory
35001 2006-04-30 Marco Gerards <marco@gnu.org>
35003 * include/grub/env.h (grub_env_export): New prototype. Reported
35004 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35006 2006-04-30 Marco Gerards <marco@gnu.org>
35008 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35009 size of the extents in a catalog file record.
35011 2006-04-29 Marco Gerards <marco@gnu.org>
35013 * commands/configfile.c (grub_cmd_configfile): Execute the
35014 configfile within its own context.
35016 * include/grub/env.h (grub_env_context_open): New prototype.
35017 (grub_env_context_close): Likewise.
35019 * kern/env.c (grub_env): Removed.
35020 (grub_env_sorted): Likewise.
35021 (grub_env_context): New variable.
35022 (grub_env_var_context): Likewise.
35023 (grub_env_find): Search both the active context and the global
35025 (grub_env_context_open): New function.
35026 (grub_env_context_close): Likewise.
35027 (grub_env_insert): Likewise.
35028 (grub_env_remove): Likewise.
35029 (grub_env_export): Likewise.
35030 (grub_env_set): Changed to use helper functions to avoid code
35032 (grub_env_iterate): Rewritten so both the current context and the
35033 global context are being used.
35035 * normal/command.c (export_command): New function.
35036 (grub_command_init): Register the `export' function.
35038 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35040 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35041 explicitly to suppress gcc's warnings.
35042 * fs/fat.c (grub_fat_find_dir): Likewise.
35043 (grub_fat_label): Likewise.
35044 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35045 (grub_xfs_mount): Likewise.
35046 (grub_xfs_label): Likewise.
35047 * fs/affs.c (grub_affs_mount): Likewise.
35048 (grub_affs_label): Likewise.
35049 (grub_affs_iterate_dir): Likewise.
35050 * fs/sfs.c (grub_sfs_mount): Likewise.
35051 (grub_sfs_iterate_dir): Likewise.
35052 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35053 * fs/hfs.c (grub_hfs_mount): Likewise.
35054 (grub_hfs_cmp_catkeys): Likewise.
35055 (grub_hfs_find_dir): Likewise.
35056 (grub_hfs_dir): Likewise.
35057 (grub_hfs_label): Likewise.
35058 * fs/jfs.c (grub_jfs_mount): Likewise.
35059 (grub_jfs_opendir): Likewise.
35060 (grub_jfs_getent): Likewise.
35061 (grub_jfs_lookup_symlink): Likewise.
35062 (grub_jfs_label): Likewise.
35063 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35064 (grub_hfsplus_iterate_dir): Likewise.
35065 (grub_hfsplus_btree_iterate_node): Made static.
35067 * util/grub-emu.c (prefix): New variable.
35068 (grub_machine_set_prefix): New function.
35069 (main): Do not set the environment variable "prefix" here. Only
35070 set PREFIX, which is used later by grub_machine_set_prefix.
35072 * include/grub/video.h: Do not include grub/symbol.h.
35073 (grub_video_register): Not exported. This symbol is not defined in
35075 (grub_video_unregister): Likewise.
35076 (grub_video_iterate): Likewise.
35077 (grub_video_setup): Likewise.
35078 (grub_video_restore): Likewise.
35079 (grub_video_get_info): Likewise.
35080 (grub_video_get_blit_format): Likewise.
35081 (grub_video_set_palette): Likewise.
35082 (grub_video_get_palette): Likewise.
35083 (grub_video_set_viewport): Likewise.
35084 (grub_video_get_viewport): Likewise.
35085 (grub_video_map_color): Likewise.
35086 (grub_video_map_rgb): Likewise.
35087 (grub_video_map_rgba): Likewise.
35088 (grub_video_fill_rect): Likewise.
35089 (grub_video_blit_glyph): Likewise.
35090 (grub_video_blit_bitmap): Likewise.
35091 (grub_video_blit_render_target): Likewise.
35092 (grub_video_scroll): Likewise.
35093 (grub_video_swap_buffers): Likewise.
35094 (grub_video_create_render_target): Likewise.
35095 (grub_video_delete_render_target): Likewise.
35096 (grub_video_set_active_render_target): Likewise.
35098 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35100 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35102 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35103 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35104 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35105 instead of $(srcdir)/genkernsyms.sh.
35107 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35108 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35109 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35110 instead of $(srcdir)/genkernsyms.sh.
35112 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35113 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35114 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35115 instead of $(srcdir)/genkernsyms.sh.
35117 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35118 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35119 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35120 instead of $(srcdir)/genkernsyms.sh.
35122 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35125 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35127 (gensymlist.sh): New target.
35128 (genkernsyms.sh): Likewise.
35130 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35131 genkernsyms.sh.in and gensymlist.sh.in.
35133 * genkernsyms.sh: Removed.
35134 * gensymlist.sh: Likewise.
35136 * genkernsyms.sh.in: New file.
35137 * gensymlist.sh.in: Likewise.
35139 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35141 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35142 clobber "prefix", since we may have already set it manually.
35144 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35146 * kern/misc.c (abort): New alias for grub_abort.
35148 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35150 A new machine-specific function "grub_machine_set_prefix" is
35151 defined. This is called after loading modules, so that a prefix
35152 initialization can use modules. Also, this change adds an
35153 intensive debugging feature for the memory manager via the
35154 configure option "--enable-mm-debug".
35156 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35159 * kern/sparc64/ieee1275/init.c (abort): Removed.
35160 (grub_stop): Likewise.
35161 (grub_exit): New function.
35162 (grub_set_prefix): Renamed to ...
35163 (grub_machine_set_prefix): ... this.
35164 (grub_machine_init): Do not call grub_set_prefix.
35166 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35167 (grub_machine_set_prefix): ... this.
35168 (grub_machine_init): Do not call grub_set_prefix.
35170 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35171 (grub_machine_init): Do not set the prefix here.
35173 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35175 * kern/efi/init.c: Include grub/mm.h.
35176 (grub_efi_set_prefix): New function.
35178 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35179 (grub_efi_get_filename): New function.
35180 (grub_print_device_path): Renamed to ...
35181 (grub_efi_print_device_path): ... this.
35183 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35184 [MM_DEBUG] (grub_realloc): Likewise.
35185 [MM_DEBUG] (grub_free): Likewise.
35186 [MM_DEBUG] (grub_memalign): Likewise.
35187 [MM_DEBUG] (grub_mm_debug): New variable.
35188 [MM_DEBUG] (grub_debug_malloc): New function.
35189 [MM_DEBUG] (grub_debug_free): New function.
35190 [MM_DEBUG] (grub_debug_realloc): New function.
35191 [MM_DEBUG] (grub_debug_memalign): New function.
35193 * kern/misc.c (grub_abort): Print a newline to distinguish
35196 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35197 grub_set_root_dev after loading modules. This is necessary when
35198 setting a prefix depends on modules.
35200 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35201 (grub_efi_print_device_path): ... this.
35202 (grub_efi_get_filename): New prototype.
35203 (grub_efi_set_prefix): Likewise.
35205 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35207 (grub_efidisk_get_device_handle): New prototype.
35208 (grub_efidisk_get_device_name): Likewise.
35210 * include/grub/mm.h: Include config.h.
35211 (MM_DEBUG): Removed.
35212 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35213 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35214 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35215 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35216 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35217 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35218 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35219 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35220 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35222 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35224 * disk/efi/efidisk.c: Include grub/partition.h.
35225 (iterate_child_devices): New function.
35226 (add_device): First, compare only last device path nodes, so that
35227 devices are sorted by the types.
35228 (grub_efidisk_get_device_handle): New function.
35229 (grub_efidisk_get_device_name): Likewise.
35231 * configure.ac (--enable-mm-debug): New option to enable the
35232 memory manager debugging feature. This makes the binary much
35233 bigger, so is disabled by default.
35235 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35237 Use grub_abort instead of grub_stop, and grub_exit must be
35238 define in each architecture now. Also, this change adds support
35241 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35242 (grub_getkey): New function.
35243 (grub_term_get_current): Likewise.
35245 * util/i386/pc/grub-setup.c: Include grub/term.h.
35246 (grub_getkey): New function.
35247 (grub_term_get_current): Likewise.
35249 * util/misc.c (grub_stop): Renamed to ...
35250 (grub_exit): ... this.
35252 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
35253 (grub_exit): ... this.
35254 (grub_machine_init): Use grub_abort instead of abort.
35255 (grub_stop): Removed.
35257 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35260 * kern/i386/pc/startup.S (grub_exit): New function.
35261 (cold_reboot): New label.
35263 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
35264 (grub_efi_init): Call grub_efidisk_init.
35265 (grub_efi_fini): Call grub_efidisk_fini.
35267 * kern/efi/efi.c: Include grub/mm.h.
35268 (grub_efi_console_control_guid): Renamed to ...
35269 (console_control_guid): ... this.
35270 (grub_efi_loaded_image_guid): Renamed to ...
35271 (loaded_image_guid): ... this.
35272 (grub_efi_locate_handle): New function.
35273 (grub_efi_open_protocol): Likewise.
35274 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
35275 GRUB_EFI_CONSOLE_CONTROL_GUID.
35276 (grub_efi_exit): Removed.
35277 (grub_stop): Likewise.
35278 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
35279 (grub_exit): New function.
35280 (grub_print_device_path): Likewise.
35282 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35283 (grub_enter_rescue_mode): Register "exit".
35285 * kern/misc.c (grub_real_dprintf): A cosmetic change.
35286 (grub_abort): New function.
35288 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
35290 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
35292 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
35294 * include/grub/efi/efi.h (grub_efi_exit): Removed.
35295 (grub_print_device_path): New prototype.
35296 (grub_efi_locate_handle): Likewise.
35297 (grub_efi_open_protocol): Likewise.
35299 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
35300 * disk/efi/efidisk.c: Likewise.
35302 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
35304 * include/grub/efi/console_control.h
35305 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
35307 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
35308 last 8 bytes as an array.
35309 (GRUB_EFI_DISK_IO_GUID): New macro.
35310 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
35311 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
35312 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
35314 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
35315 (struct grub_efi_device_path): Rename the member "sub_type" to
35317 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
35318 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
35319 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
35320 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
35321 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
35322 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
35323 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
35324 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
35325 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
35326 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
35327 (struct grub_efi_pci_device_path): New structure.
35328 (grub_efi_pci_device_path_t): New type.
35329 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
35330 (struct grub_efi_pccard_device_path): New structure.
35331 (grub_efi_pccard_device_path_t): New type.
35332 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
35333 (struct grub_efi_memory_mapped_device_path): New structure.
35334 (grub_efi_memory_mapped_device_path_t): New type.
35335 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
35336 (struct grub_efi_vendor_device_path): New structure.
35337 (grub_efi_vendor_device_path_t): New type.
35338 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
35339 (struct grub_efi_controller_device_path): New structure.
35340 (grub_efi_controller_device_path_t): New type.
35341 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
35342 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
35343 (struct grub_efi_acpi_device_path): New structure.
35344 (grub_efi_acpi_device_path_t): New type.
35345 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
35346 (struct grub_efi_expanded_acpi_device_path): New structure.
35347 (grub_efi_expanded_acpi_device_path_t): New type.
35348 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
35349 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
35350 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
35351 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
35352 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
35353 (struct grub_efi_atapi_device_path): New structure.
35354 (grub_efi_atapi_device_path_t): New type.
35355 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
35356 (struct grub_efi_fibre_channel_device_path): New structure.
35357 (grub_efi_fibre_channel_device_path_t): New type.
35358 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
35359 (struct grub_efi_1394_device_path): New structure.
35360 (grub_efi_1394_device_path_t): New type.
35361 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
35362 (struct grub_efi_usb_device_path): New structure.
35363 (grub_efi_usb_device_path_t): New type.
35364 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
35365 (struct grub_efi_usb_class_device_path): New structure.
35366 (grub_efi_usb_class_device_path_t): New type.
35367 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
35368 (struct grub_efi_i2o_device_path): New structure.
35369 (grub_efi_i2o_device_path_t): New type.
35370 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
35371 (struct grub_efi_mac_address_device_path): New structure.
35372 (grub_efi_mac_address_device_path_t): New type.
35373 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
35374 (struct grub_efi_ipv4_device_path): New structure.
35375 (grub_efi_ipv4_device_path_t): New type.
35376 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
35377 (struct grub_efi_ipv6_device_path): New structure.
35378 (grub_efi_ipv6_device_path_t): New type.
35379 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
35380 (struct grub_efi_infiniband_device_path): New structure.
35381 (grub_efi_infiniband_device_path_t): New type.
35382 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
35383 (struct grub_efi_uart_device_path): New structure.
35384 (grub_efi_uart_device_path_t): New type.
35385 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
35386 (struct grub_efi_vendor_messaging_device_path): New structure.
35387 (grub_efi_vendor_messaging_device_path_t): New type.
35388 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
35389 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
35390 (struct grub_efi_hard_drive_device_path): New structure.
35391 (grub_efi_hard_drive_device_path_t): New type.
35392 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
35393 (struct grub_efi_cdrom_device_path): New structure.
35394 (grub_efi_cdrom_device_path_t): New type.
35395 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
35396 (struct grub_efi_vendor_media_device_path): New structure.
35397 (grub_efi_vendor_media_device_path_t): New type.
35398 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
35399 (struct grub_efi_file_path_device_path): New structure.
35400 (grub_efi_file_path_device_path_t): New type.
35401 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
35402 (struct grub_efi_protocol_device_path): New structure.
35403 (grub_efi_protocol_device_path_t): New type.
35404 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
35405 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
35406 (struct grub_efi_bios_device_path): New structure.
35407 (grub_efi_bios_device_path_t): New type.
35408 (struct grub_efi_disk_io): New structure.
35409 (grub_efi_disk_io_t): New type.
35410 (struct grub_efi_block_io_media): New structure.
35411 (grub_efi_block_io_media_t): New type.
35412 (struct grub_efi_block_io): New structure.
35413 (grub_efi_block_io_t): New type.
35415 * include/grub/misc.h (grub_stop): Removed.
35416 (grub_exit): New prototype.
35417 (grub_abort): Likewise.
35419 * include/grub/disk.h (enum grub_disk_dev_id): Added
35420 GRUB_DISK_DEVICE_EFIDISK_ID.
35422 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
35423 disk/efi/efidisk.c.
35424 (kernel_syms.lst): Remove the target if an error occurs.
35426 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
35428 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
35429 as it was simply too buggy.
35431 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
35433 * kern/misc.c (grub_lltoa): New function.
35434 (grub_vsprintf): Added support for the long long suffix,
35437 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
35439 * Makefile.in (LDFLAGS): Add variable.
35440 (LD): Remove variable.
35441 * configure.ac: Add -m32 to LDFLAGS.
35442 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
35443 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
35444 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
35445 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
35446 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
35448 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
35449 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
35450 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
35452 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
35454 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
35455 length for unknown glyph.
35457 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35459 Add support for pre-loaded modules into the EFI port.
35461 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
35462 completely. Accept one more argument DIR. The caller has changed.
35464 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
35466 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
35467 (grub_efi_loaded_image_guid): New variable.
35468 (grub_efi_get_loaded_image): New function.
35469 (grub_arch_modules_addr): Likewise.
35471 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
35474 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
35475 (struct grub_efi_loaded_image): New structure.
35476 (grub_efi_loaded_image_t): New type.
35478 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35480 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
35481 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
35482 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
35484 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
35486 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
35488 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
35490 * DISTLIST: Added include/grub/efi/console.h,
35491 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
35492 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35494 * include/grub/efi/console.h: New file.
35495 * include/grub/efi/time.h: Likewise.
35496 * include/grub/i386/efi/kernel.h: Likewise.
35497 * kern/efi/init.c: Likewise.
35498 * kern/efi/mm.c: Likewise.
35499 * term/efi/console.c: Likewise.
35501 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
35502 (grub_stop): Removed.
35503 (grub_get_rtc): Likewise.
35504 (grub_machine_init): Simply call grub_efi_init.
35505 (grub_machine_fini): Call grub_efi_fini.
35507 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
35508 (grub_efi_output_string): Removed.
35509 (grub_efi_stall): New function.
35510 (grub_stop): Likewise.
35511 (grub_get_rtc): Likewise.
35513 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
35514 (grub_efi_stall): New prototype.
35515 (grub_efi_allocate_pages): Likewise.
35516 (grub_efi_free_pages): Likewise.
35517 (grub_efi_get_memory_map): Likewise.
35518 (grub_efi_mm_init): Likewise.
35519 (grub_efi_mm_fini): Likewise.
35520 (grub_efi_init): Likewise.
35521 (grub_efi_fini): Likewise.
35523 * include/grub/i386/efi/time.h: Do not include
35524 grub/symbol.h. Include grub/efi/time.h.
35525 (GRUB_TICKS_PER_SECOND): Removed.
35526 (grub_get_rtc): Likewise.
35528 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
35529 Added padding. The EFI spec is buggy.
35530 (GRUB_EFI_BLACK): New macro.
35531 (GRUB_EFI_BLUE): Likewise.
35532 (GRUB_EFI_GREEN): Likewise.
35533 (GRUB_EFI_CYAN): Likewise.
35534 (GRUB_EFI_RED): Likewise.
35535 (GRUB_EFI_MAGENTA): Likewise.
35536 (GRUB_EFI_BROWN): Likewise.
35537 (GRUB_EFI_LIGHTGRAY): Likewise.
35538 (GRUB_EFI_BRIGHT): Likewise.
35539 (GRUB_EFI_DARKGRAY): Likewise.
35540 (GRUB_EFI_LIGHTBLUE): Likewise.
35541 (GRUB_EFI_LIGHTGREEN): Likewise.
35542 (GRUB_EFI_LIGHTCYAN): Likewise.
35543 (GRUB_EFI_LIGHTRED): Likewise.
35544 (GRUB_EFI_LIGHTMAGENTA): Likewise.
35545 (GRUB_EFI_YELLOW): Likewise.
35546 (GRUB_EFI_WHITE): Likewise.
35547 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
35548 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
35549 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
35550 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
35551 (GRUB_EFI_BACKGROUND_RED): Likewise.
35552 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
35553 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
35554 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
35555 (GRUB_EFI_TEXT_ATTR): Likewise.
35557 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
35558 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35559 (kernel_mod_HEADERS): Added efi/time.h.
35561 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
35563 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
35564 include/grub/efi/api.h, include/grub/efi/console_control.h,
35565 include/grub/efi/efi.h, include/grub/efi/pe32.h,
35566 include/grub/i386/efi/time.h, kern/efi/efi.c,
35567 kern/i386/efi/init.c, kern/i386/efi/startup.S,
35568 and util/i386/efi/grub-mkimage.c.
35570 * Makefile.in (RMKFILES): Added i386-efi.rmk.
35572 * genmk.rb (PModule#rule): Do not export symbols if
35573 #{prefix}_EXPORTS is set to "no".
35575 * conf/i386-efi.mk: New file.
35576 * conf/i386-efi.rmk: Likewise.
35577 * include/grub/efi/api.h: Likewise.
35578 * include/grub/efi/console_control.h: Likewise.
35579 * include/grub/efi/efi.h: Likewise.
35580 * include/grub/efi/pe32.h: Likewise.
35581 * include/grub/i386/efi/time.h: Likewise.
35582 * kern/efi/efi.c: Likewise.
35583 * kern/i386/efi/init.c: Likewise.
35584 * kern/i386/efi/startup.S: Likewise.
35585 * util/i386/efi/grub-mkimage.c: Likewise.
35587 2006-04-17 Marco Gerards <marco@gnu.org>
35589 * include/grub/script.h: Include <grub/parser.h> and
35590 "grub_script.tab.h".
35591 (struct grub_lexer_param): New struct.
35592 (struct grub_parser_param): Likewise.
35593 (grub_script_create_arglist): Pass the state in an argument.
35594 (grub_script_add_arglist): Likewise.
35595 (grub_script_create_cmdline): Likewise.
35596 (grub_script_create_cmdblock): Likewise.
35597 (grub_script_create_cmdif): Likewise.
35598 (grub_script_create_cmdmenu): Likewise.
35599 (grub_script_add_cmd): Likewise.
35600 (grub_script_arg_add): Likewise.
35601 (grub_script_lexer_ref): Likewise.
35602 (grub_script_lexer_deref): Likewise.
35603 (grub_script_lexer_record_start): Likewise.
35604 (grub_script_lexer_record_stop): Likewise.
35605 (grub_script_mem_record): Likewise.
35606 (grub_script_mem_record_stop): Likewise.
35607 (grub_script_malloc): Likewise.
35608 (grub_script_yylex): Likewise.
35609 (grub_script_yyparse): Likewise.
35610 (grub_script_yyerror): Likewise.
35611 (grub_script_yylex): Likewise.
35612 (grub_script_lexer_init): Return the state.
35614 * normal/lexer.c (grub_script_lexer_state): Removed variable.
35615 (grub_script_lexer_done): Likewise.
35616 (grub_script_lexer_getline): Likewise.
35617 (grub_script_lexer_refs): Likewise.
35618 (script): Likewise.
35619 (newscript): Likewise.
35620 (record): Likewise.
35621 (recording): Likewise.
35622 (recordpos): Likewise.
35623 (recordlen): Likewise.
35624 (grub_script_lexer_init): Return the state instead of setting
35626 (grub_script_lexer_ref): Use the newly added argument for state
35627 instead of globals.
35628 (grub_script_lexer_deref): Likewise.
35629 (grub_script_lexer_record_start): Likewise.
35630 (grub_script_lexer_record_stop): Likewise.
35631 (recordchar): Likewise.
35632 (nextchar): Likewise.
35633 (grub_script_yylex2): Likewise.
35634 (grub_script_yylex): Likewise.
35635 (grub_script_yyerror): Likewise.
35637 * normal/parser.y (func_mem): Removed variable.
35638 (menu_entry): Likewise.
35640 (%lex-param): New parser option.
35641 (%parse-param): Likewise.
35642 (script): Always return the AST.
35643 (argument): Pass the state around.
35644 (arguments): Likewise.
35645 (grubcmd): Likewise.
35646 (commands): Likewise.
35647 (function): Likewise.
35648 (menuentry): Likewise.
35649 (if_statement): Likewise.
35652 * normal/script.c (grub_script_memused): Removed variable.
35653 (grub_script_parsed): Likewise.
35654 (grub_script_malloc): Added a state argument. Use that instead of
35656 (grub_script_mem_record): Likewise.
35657 (grub_script_mem_record_stop): Likewise.
35658 (grub_script_arg_add): Likewise.
35659 (grub_script_add_arglist): Likewise.
35660 (grub_script_create_cmdline): Likewise.
35661 (grub_script_create_cmdif): Likewise.
35662 (grub_script_create_cmdmenu): Likewise.
35663 (grub_script_add_cmd): Likewise.
35664 (grub_script_parse): Setup the state before calling the parser.
35666 2006-04-16 Marco Gerards <marco@gnu.org>
35668 * normal/command.c (grub_command_init): Remove the title command.
35670 * normal/lexer.c (grub_script_yylex): Renamed from this...
35671 (grub_script_yylex2): ... to this.
35672 (grub_script_yylex): New function. Temporary
35673 introduced to filter some tokens.
35674 (grub_script_yyerror): Print a newline.
35676 * normal/main.c (read_config_file): Output information about the
35677 lines that contain errors. Wait for a key after all lines have
35678 been processed. Don't return an empty menu.
35680 * normal/parser.y (func_mem): Don't initialize.
35681 (menu_entry): Likewise.
35682 (err): New variable.
35683 (script): Don't return anything when an error was encountered.
35684 (ws, returns): Removed rules.
35685 (argument): Disabled concatenated variable support.
35686 (arguments): Remove explicit separators.
35687 (grubcmd): Likewise.
35688 (function): Likewise.
35689 (menuentry): Likewise.
35691 (commands): Likewise. Add error handling.
35693 * normal/script.c (grub_script_create_cmdline): If
35694 `grub_script_parsed' is 0, assume the parser encountered an error.
35696 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
35698 * configure.ac: Add support for EFI. Fix the typo
35699 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
35701 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35703 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
35704 foreign multibyte characters should be shown correctly.
35706 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35708 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
35710 (read_config_file): Made it to close file before returning.
35712 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
35714 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
35715 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
35716 video/i386/pc/vbefill.c.
35718 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
35719 video/i386/pc/vbefill.c.
35721 * include/grub/video.h (grub_video_blit_format): New enum.
35722 (grub_video_mode_info): Added new member blit_format.
35723 (grub_video_get_blit_format): New function prototype.
35725 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
35726 function prototype.
35727 (grub_video_vbe_map_rgb): Likewise.
35728 (grub_video_vbe_unmap_color): Likewise.
35730 * include/grub/i386/pc/vbeblit.h: New file.
35732 * include/grub/i386/pc/vbefill.h: New file.
35734 * video/video.c (grub_video_get_blit_format): New function.
35735 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
35736 (grub_video_vbe_map_rgb): Likewise.
35737 (grub_video_vbe_unmap_color): Likewise.
35739 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
35741 (grub_video_vbe_blit_render_target): Changed to use more optimized
35743 (grub_video_vbe_setup): Added detection for optimized settings.
35744 (grub_video_vbe_create_render_target): Likewise.
35746 * video/i386/pc/vbeblit.c: New file.
35748 * video/i386/pc/vbefill.c: New file.
35750 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
35752 * font/manager.c (grub_font_get_glyph): Removed font fixup from
35755 * util/unifont2pff.rb: ... and moved it to here. Improved argument
35756 parsing to support both hex and dec ranges. If filename was missing
35757 show usage information.
35759 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
35761 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
35762 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
35764 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
35765 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
35766 (video_mod_SOURCES): Added.
35767 (video_mod_CFLAGS): Likewise.
35768 (video_mod_LDFLAGS): Likewise.
35769 (gfxterm_mod_SOURCES): Likewise.
35770 (gfxterm_mod_CFLAGS): Likewise.
35771 (gfxterm_mod_LDFLAGS): Likewise.
35772 (videotest_mod_SOURCES): Likewise.
35773 (videotest_mod_CFLAGS): Likewise.
35774 (videotest_mod_LDFLAGS): Likewise.
35775 (vesafb_mod_SOURCES): Removed.
35776 (vesafb_mod_CFLAGS): Likewise.
35777 (vesafb_mod_LDFLAGS): Likewise.
35778 (vga_mod_SOURCES): Likewise.
35779 (vga_mod_CFLAGS): Likewise.
35780 (vga_mod_LDFLAGS): Likewise.
35782 * commands/videotest.c: New file.
35784 * font/manager.c (fill_with_default_glyph): Modified to use
35786 (grub_font_get_glyph): Likewise.
35787 (fontmanager): Renamed from this...
35788 (font_manager): ... to this.
35790 * include/grub/font.h (grub_font_glyph): Added new structure.
35791 (grub_font_get_glyph): Modified to use grub_font_glyph.
35793 * include/grub/misc.h (grub_abs): Added as inline function.
35795 * include/grub/video.h: New file.
35797 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
35798 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
35799 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
35800 (grub_vbe_get_controller_info): Renamed from this...
35801 (grub_vbe_bios_get_controller_info): ... to this.
35802 (grub_vbe_get_mode_info): Renamed from this...
35803 (grub_vbe_bios_get_mode_info): ... to this.
35804 (grub_vbe_set_mode): Renamed from this...
35805 (grub_vbe_bios_set_mode): ... to this.
35806 (grub_vbe_get_mode): Renamed from this...
35807 (grub_vbe_bios_get_mode): ... to this.
35808 (grub_vbe_set_memory_window): Renamed from this...
35809 (grub_vbe_bios_set_memory_window): ... to this.
35810 (grub_vbe_get_memory_window): Renamed from this...
35811 (grub_vbe_bios_get_memory_window): ... to this.
35812 (grub_vbe_set_scanline_length): Renamed from this...
35813 (grub_vbe_set_scanline_length): ... to this.
35814 (grub_vbe_get_scanline_length): Renamed from this...
35815 (grub_vbe_bios_get_scanline_length): ... to this.
35816 (grub_vbe_set_display_start): Renamed from this...
35817 (grub_vbe_bios_set_display_start): ... to this.
35818 (grub_vbe_get_display_start): Renamed from this...
35819 (grub_vbe_bios_get_display_start): ... to this.
35820 (grub_vbe_set_palette_data): Renamed from this...
35821 (grub_vbe_bios_set_palette_data): ... to this.
35822 (grub_vbe_set_pixel_rgb): Removed.
35823 (grub_vbe_set_pixel_index): Likewise.
35825 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
35827 (grub_vbe_bios_get_controller_info): ... to this.
35828 (grub_vbe_get_mode_info): Renamed from this...
35829 (grub_vbe_bios_get_mode_info): ... to this.
35830 (grub_vbe_set_mode): Renamed from this...
35831 (grub_vbe_bios_set_mode): ... to this.
35832 (grub_vbe_get_mode): Renamed from this...
35833 (grub_vbe_bios_get_mode): ... to this.
35834 (grub_vbe_set_memory_window): Renamed from this...
35835 (grub_vbe_bios_set_memory_window): ... to this.
35836 (grub_vbe_get_memory_window): Renamed from this...
35837 (grub_vbe_bios_get_memory_window): ... to this.
35838 (grub_vbe_set_scanline_length): Renamed from this...
35839 (grub_vbe_set_scanline_length): ... to this.
35840 (grub_vbe_get_scanline_length): Renamed from this...
35841 (grub_vbe_bios_get_scanline_length): ... to this.
35842 (grub_vbe_set_display_start): Renamed from this...
35843 (grub_vbe_bios_set_display_start): ... to this.
35844 (grub_vbe_get_display_start): Renamed from this...
35845 (grub_vbe_bios_get_display_start): ... to this.
35846 (grub_vbe_set_palette_data): Renamed from this...
35847 (grub_vbe_bios_set_palette_data): ... to this.
35848 (grub_vbe_bios_get_controller_info): Fixed problem with registers
35849 getting corrupted after calling it. Added more pushes and pops.
35850 (grub_vbe_bios_set_mode): Likewise.
35851 (grub_vbe_bios_get_mode): Likewise.
35852 (grub_vbe_bios_get_memory_window): Likewise.
35853 (grub_vbe_bios_set_scanline_length): Likewise.
35854 (grub_vbe_bios_get_scanline_length): Likewise.
35855 (grub_vbe_bios_get_display_start): Likewise.
35856 (grub_vbe_bios_set_palette_data): Likewise.
35858 * normal/cmdline.c (cl_set_pos): Refresh the screen.
35859 (cl_insert): Likewise.
35860 (cl_delete): Likewise.
35862 * term/gfxterm.c: New file.
35864 * term/i386/pc/vesafb.c: Removed file.
35866 * video/video.c: New file.
35868 * video/i386/pc/vbe.c (real2pm): Added new function.
35869 (grub_video_vbe_draw_pixel): Likewise.
35870 (grub_video_vbe_get_video_ptr): Likewise.
35871 (grub_video_vbe_get_pixel): Likewise
35872 (grub_video_vbe_init): Likewise.
35873 (grub_video_vbe_fini): Likewise.
35874 (grub_video_vbe_setup): Likewise.
35875 (grub_video_vbe_get_info): Likewise.
35876 (grub_video_vbe_set_palette): Likewise.
35877 (grub_video_vbe_get_palette): Likewise.
35878 (grub_video_vbe_set_viewport): Likewise.
35879 (grub_video_vbe_get_viewport): Likewise.
35880 (grub_video_vbe_map_color): Likewise.
35881 (grub_video_vbe_map_rgb): Likewise.
35882 (grub_video_vbe_map_rgba): Likewise.
35883 (grub_video_vbe_unmap_color): Likewise.
35884 (grub_video_vbe_fill_rect): Likewise.
35885 (grub_video_vbe_blit_glyph): Likewise.
35886 (grub_video_vbe_blit_bitmap): Likewise.
35887 (grub_video_vbe_blit_render_target): Likewise.
35888 (grub_video_vbe_scroll): Likewise.
35889 (grub_video_vbe_swap_buffers): Likewise.
35890 (grub_video_vbe_create_render_target): Likewise.
35891 (grub_video_vbe_delete_render_target): Likewise.
35892 (grub_video_vbe_set_active_render_target): Likewise.
35893 (grub_vbe_set_pixel_rgb): Remove function.
35894 (grub_vbe_set_pixel_index): Likewise.
35895 (index_color_mode): Remove static variable.
35896 (active_mode): Likewise.
35897 (framebuffer): Likewise.
35898 (bytes_per_scan_line): Likewise.
35899 (grub_video_vbe_adapter): Added new static variable.
35900 (framebuffer): Likewise.
35901 (render_target): Likewise.
35902 (initial_mode): Likewise.
35903 (mode_in_use): Likewise.
35904 (mode_list): Likewise.
35906 2006-03-10 Marco Gerards <marco@gnu.org>
35908 * configure.ac (AC_INIT): Bumped to 1.93.
35910 * DISTLIST: Added `include/grub/hfs.h'.
35912 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
35914 * boot/i386/pc/boot.S (general_error): Before looping, try INT
35915 18H, which might help the BIOS falling back to next boot media.
35917 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
35919 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
35920 Poe Chen <poe.poechen@gmail.com>.
35922 2006-01-17 Marco Gerards <marco@gnu.org>
35924 * include/grub/normal.h: Include <grub/script.h>.
35925 (grub_command_list): Removed struct.
35926 (grub_command_list_t): Removed type.
35927 (grub_menu_entry): Remove members `num' and `command_list'. Add
35928 members `commands' and `sourcecode'.
35929 * include/grub/script.h: Add inclusion guards.
35930 (grub_script_cmd_menuentry): New struct.
35931 (grub_script_execute_menuentry): New prototype.
35932 (grub_script_lexer_record_start): Likewise.
35933 (grub_script_lexer_record_stop): Likewise.
35934 * normal/execute.c (grub_script_execute_menuentry): New function.
35935 * normal/lexer.c (record, recording, recordpos, recordlen): New
35937 (grub_script_lexer_record_start): New function.
35938 (grub_script_lexer_record_stop): Likewise.
35939 (recordchar): Likewise.
35940 (nextchar): Likewise.
35941 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
35942 2048 as the buffer size. Add the tokens `menuentry' and `@'.
35943 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
35944 (current_menu): New variable.
35945 (free_menu): Mainly rewritten.
35946 (grub_normal_menu_addentry): New function.
35947 (read_config_file): Rewritten.
35948 * normal/menu.c (run_menu_entry): Mainly rewritten.
35949 * normal/menu_entry.c (make_screen): Rewritten the code to insert
35951 (run): Mainly rewritten.
35952 * normal/parser.y (menu_entry): New variable.
35953 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
35954 (menuentry): New rule.
35955 (command): Add `menuentry'.
35956 (if_statement): Allow additional returns before `fi'.
35957 * normal/script.c (grub_script_create_cmdmenu): New function.
35959 2006-01-03 Marco Gerards <marco@gnu.org>
35961 * INSTALL: GNU Bison is required.
35962 * configure.ac: Rewritten the test to detect Bison.
35963 * Makefile.in (YACC): New variable. Reported by Xun Sun
35964 <xun.sun.cn@gmail.com>.
35966 2006-01-03 Marco Gerards <marco@gnu.org>
35968 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
35969 the HFS+ filesystem to filesystem blocks.
35970 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
35971 GCC warning is silenced.
35973 2006-01-03 Marco Gerards <marco@gnu.org>
35975 * partmap/apple.c (apple_partition_map_iterate): Convert the data
35976 read from disk from big endian to host byte order.
35978 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
35980 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
35982 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
35983 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
35984 embedded HFS+ filesystem.
35985 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
35986 (grub_hfs_sblock): Move from here...
35987 * include/grub/hfs.h: To here... New file.
35988 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
35990 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
35992 (grub_hfsplus_volheader): Change type of member `magic' to
35994 (grub_hfsplus_data): Add new member `embedded_offset'.
35995 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
35997 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
35998 Calculate the offset.
36000 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36004 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36006 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36008 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36009 ENV->NAME is NULL after allocating ENV->VALUE.
36011 2005-12-25 Marco Gerards <marco@gnu.org>
36013 * kern/env.c (grub_env_set): Rewritten the error handling code.
36015 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36017 * geninit.sh: Made more robust, and more portable.
36019 2005-12-25 Marco Gerards <marco@gnu.org>
36021 Add support for Apple HFS+ filesystems.
36023 * fs/hfsplus.c: New file.
36025 * DISTLIST: Added `fs/hfsplus.c'.
36027 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36028 (hfsplus_mod_SOURCES): New variable.
36029 (hfsplus_mod_CFLAGS): Likewise.
36030 (hfsplus_mod_LDFLAGS): Likewise.
36031 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36032 (grub_setup_SOURCES): Likewise.
36033 (grub_mkdevicemap_SOURCES): Likewise.
36034 (grub_emu_SOURCES): Likewise.
36035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36037 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36039 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36041 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36043 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36044 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36045 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36046 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36047 normal/lexer.c, normal/parser.y, normal/script.c, and
36049 Removed kern/sparc64/cache.c.
36051 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36052 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36055 * configure.ac (AC_INIT): Bumped to 1.92.
36057 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36059 * kern/err.c (grub_error_push): Added new function to support error
36061 (grub_error_pop): Likewise.
36062 (grub_error_stack_items): New local variable to support error stacks.
36063 (grub_error_stack_pos): Likewise.
36064 (grub_error_stack_assert): Likewise.
36065 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36067 (grub_print_error): Added support to print errors from error stack.
36069 * include/grub/err.h (grub_error_push): Added function prototype.
36070 (grub_error_pop): Likewise.
36072 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36074 * configure.ac: Accept `powerpc64' as host_cpu.
36075 (amd64): Rename to `biarch32'.
36077 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36078 non-cacheline-aligned addresses.
36080 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36081 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36082 if `size' is non-zero.
36084 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36086 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36087 and `cd' to make sure the filename is not prefixed with a
36089 (pkgdata_MODULES): Add `gpt.mod'.
36090 (gpt_mod_SOURCES): New variable.
36091 (gpt_mod_CFLAGS): Likewise.
36092 (gpt_mod_LDFLAGS): Likewise.
36094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36096 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36099 * partmap/gpt.c: New file.
36101 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36102 GPT partition map is detected.
36104 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36106 * commands/i386/pc/play.c: New file.
36107 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36108 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36111 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36113 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36114 ((unused))' to silence gcc warning.
36116 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36118 * configure.ac: Correct `AC_PROG_YACC' test.
36120 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36122 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36123 check before installing files.
36125 2005-11-22 Mike Small <smallm@panix.com>
36127 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36128 number regex so multidigit numbers are recognized correctly.
36130 2005-11-22 Mike Small <smallm@panix.com>
36132 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36133 debugging message before attempting to claim memory.
36134 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36135 multiple addresses in case of failure.
36137 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36139 * term/tparm.c (get_space): Remove empty `if' statement.
36141 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36143 * kern/parser.c (check_varstate): Rename `state' to 's'.
36145 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36147 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36148 variable definitions to the beginning of each function. Sort stack
36150 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36151 `buf' argument to `char *'.
36153 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36155 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36156 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36157 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36158 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36159 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36160 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36161 configfile.mod, search.mod, gzio.mod and test.mod.
36162 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36163 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36164 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36165 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36166 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36167 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36168 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36169 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36170 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36171 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36172 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36173 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36174 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36175 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36176 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36177 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36178 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36179 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36180 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36181 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36182 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36183 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36184 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36186 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36188 (pkgdata_MODULES): Add test.mod.
36190 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36192 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36193 appending to variables with "+=".
36194 (PModule): Use full pathname to generate *.lst filenames.
36196 * Makefile.in: Fixed list rules moved from genmk.rb.
36197 (.DELETE_ON_ERROR): New special target.
36198 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36200 * conf/i386-pc.rmk: Include conf/common.mk.
36201 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36202 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36203 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36204 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36205 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36206 configfile.mod, search.mod, gzio.mod and test.mod.
36207 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36208 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36209 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36210 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36211 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36212 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36213 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36214 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36215 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36216 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36217 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36218 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36219 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36220 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36221 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36222 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36223 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36224 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36225 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36226 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36227 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36228 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36229 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
36231 * conf/common.rmk: ... to here. New file.
36233 * conf/common.mk: New file.
36235 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36237 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36238 (grub_script.tab.c): ... here.
36240 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36241 (grub_script.tab.c): ... here.
36243 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36244 (grub_script.tab.c): ... here.
36246 * normal/command.c (grub_command_find): Fixed a memory leak of
36247 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36249 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36251 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36252 "@" which marks the start of a comment on ARM.
36253 (VARIABLE): Likewise.
36255 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36257 Add support for Linux/ADFS partition tables.
36259 * partmap/acorn.c: New file.
36261 * include/grub/acorn_filecore.h: Likewise.
36263 * DISTLIST: Added `partmap/acorn.c' and
36264 `include/grub/acorn_filecore.h'.
36266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36268 (pkgdata_MODULES): Add `acorn.mod'.
36269 (acorn_mod_SOURCES): New variable.
36270 (acorn_mod_CFLAGS): Likewise.
36272 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36274 (pkgdata_MODULES): Add `acorn.mod'.
36275 (acorn_mod_SOURCES): New variable.
36276 (acorn_mod_CFLAGS): Likewise.
36278 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
36279 (pkgdata_MODULES): Add `acorn.mod'.
36280 (acorn_mod_SOURCES): New variable.
36281 (acorn_mod_CFLAGS): Likewise.
36282 (acorn_mod_LDFLAGS): Likewise.
36284 * include/types.h (grub_disk_addr_t): New typedef.
36286 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
36288 * geninit.sh: New file.
36290 * geninitheader.sh: Likewise.
36292 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
36293 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
36294 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
36295 * commands/configfile.c (grub_configfile_init)
36296 (grub_configfile_fini): Likewise.
36297 * commands/default.c (grub_default_init, grub_default_fini):
36299 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
36300 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
36301 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
36302 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
36304 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
36305 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
36307 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
36308 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
36310 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
36312 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
36314 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
36315 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
36316 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
36317 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
36318 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
36319 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
36320 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
36321 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
36322 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
36323 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
36324 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
36325 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
36326 * partmap/amiga.c (grub_amiga_partition_map_init)
36327 (grub_amiga_partition_map_fini): Likewise.
36328 * partmap/apple.c (grub_apple_partition_map_init)
36329 (grub_apple_partition_map_fini): Likewise.
36330 * partmap/pc.c (grub_pc_partition_map_init)
36331 (grub_pc_partition_map_fini): Likewise.
36332 * partmap/sun.c (grub_sun_partition_map_init,
36333 grub_sun_partition_map_fini): Likewise.
36334 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
36337 * util/grub-emu.c: Include <grub_modules_init.h>.
36338 (main): Don't initialize and de-initialize any modules directly,
36339 use `grub_init_all' and `grub_fini_all' instead.
36341 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
36342 `grub_vesafb_mod_init'.
36343 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
36345 * term/i386/pc/vga.c (grub_vga_init): Renamed to
36346 `grub_vga_mod_init'. Updated all users.
36347 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
36349 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
36350 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
36353 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
36354 Generate a function to initialize the module in utilities.
36355 Updated all callers.
36356 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
36357 initialize the module in utilities. Updated all callers.
36359 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36361 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
36362 escape sequence and a literal ^L to clear the screen.
36364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
36365 when returning from Open Firmware.
36367 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36369 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
36370 (grub_ofconsole_height): Likewise.
36371 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
36372 manually insert a '\n'.
36373 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
36374 `grub_ofconsole_height'. Return early if these are already set.
36376 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
36378 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36379 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
36380 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
36381 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
36382 and `normal/script.c'.
36383 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36384 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36385 (test_mod_SOURCES): New variable.
36386 (test_mod_CFLAGS): Likewise.
36387 (test_mod_LDFLAGS): Likewise.
36388 (pkgdata_MODULES): Add `test.mod'.
36389 (grub_script.tab.c): New rule.
36390 (grub_script.tab.h): Likewise.
36392 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
36394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36395 `commands/test.c', `normal/execute.c', `normal/lexer.c',
36396 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36399 (test_mod_SOURCES): New variable.
36400 (test_mod_CFLAGS): Likewise.
36401 (pkgdata_MODULES): Add `test.mod'.
36402 (grub_script.tab.c): New rule.
36403 (grub_script.tab.h): Likewise.
36405 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
36407 Add initial scripting support.
36409 * commands/test.c: New file.
36410 * include/grub/script.h: Likewise.
36411 * normal/execute.c: Likewise.
36412 * normal/function.c: Likewise.
36413 * normal/lexer.c: Likewise.
36414 * normal/parser.y: Likewise.
36415 * normal/script.c: Likewise.
36417 * configure.ac: Add `AC_PROG_YACC' test.
36419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
36420 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
36421 `normal/function.c' and `normal/script.c'.
36422 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36423 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36424 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
36426 (pkgdata_MODULES): Add `test.mod'.
36427 (grub_script.tab.c): New rule.
36428 (grub_script.tab.h): Likewise.
36430 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
36432 * include/grub/normal.h (grub_test_init): New prototype.
36433 (grub_test_fini): Likewise.
36435 * normal/command.c: Include <grub/script.h>.
36436 (grub_command_execute): Rewritten.
36438 * util/grub-emu.c (main): Call `grub_test_init' and
36441 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36443 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
36445 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
36446 there are no pending characters.
36448 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36450 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
36451 `grub_strndup' to drop device arguments. Replace unnecessary
36452 `grub_strndup' with `grub_strdup'.
36454 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36456 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
36457 `debug' environment variable has been set.
36459 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
36461 * Makefile.in (install-local): Use $(DATA).
36462 (uninstall): Likewise.
36463 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
36464 (sbin_UTILITIES): ... to here.
36465 (sbin_SCRIPTS): New variable.
36466 (grub_install_SOURCES): New variable.
36467 * util/powerpc/ieee1275/grub-install.in: New file.
36468 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
36470 (add_segments): Call `grub_util_get_path'.
36472 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36474 From Timothy Baldwin:
36475 * commands/ls.c (grub_ls_list_files): Close FILE with
36477 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
36479 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
36481 * include/grub/parser.h: New file.
36483 * kern/parser.c: Likewise.
36485 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
36486 (grub_setup_SOURCES): Likewise.
36487 (grub_probefs_SOURCES): Likewise.
36488 (grub_emu_SOURCES): Likewise.
36489 (kernel_img_HEADERS): Add `parser.h'.
36491 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36492 (grub_emu_SOURCES): Add `kern/parser.c'.
36493 (grubof_SOURCES): Likewise.
36495 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36496 (grubof_SOURCES): Add `kern/parser.c'.
36498 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
36500 * kern/misc.c (grub_split_cmdline): Removed function.
36502 * kern/rescue.c: Include <grub/parser.h>.
36503 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
36504 of `grub_split_cmdline'.
36506 * normal/command.c: Include <grub/parser.h>.
36507 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36508 of `grub_split_cmdline'.
36510 * normal/completion.c: Include <grub/parser.h>.
36511 (cmdline_state): New variable.
36512 (iterate_dir): End the filename with a quote depending on the
36513 command line state.
36514 (get_state): new function.
36515 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
36516 split the arguments and determine the current argument. When the
36517 argument string is not quoted, escape all spaces.
36519 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36521 * normal/sparc64/setjmp.S: New file.
36523 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36525 * include/grub/sparc64/libgcc.h: New file.
36526 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
36527 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
36528 normal/sparc64/setjmp.c.
36530 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36532 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
36533 * kern/sparc64/cache.S: New file.
36534 * kern/sparc64/cache.c: Removed.
36535 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
36536 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
36538 (COMMON_LDFLAGS): Add -melf64_sparc.
36539 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
36540 (grubof_SOURCES): Use cache.S instead of cache.c.
36541 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
36542 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
36543 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
36545 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
36546 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
36547 (linux_mod_CFLAGS): Commented out.
36548 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
36549 out because module isn't built.
36550 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
36551 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
36552 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
36553 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
36554 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
36555 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36556 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36557 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
36558 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
36559 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
36560 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36561 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36562 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
36563 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
36565 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
36567 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
36568 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
36569 longer, because HFS should not be used on PC.
36571 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36573 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
36574 consistently within the loop.
36576 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
36578 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
36579 directory can not be read.
36581 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36583 * configure.ac (AC_INIT): Increase the version number to 1.91.
36585 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
36586 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
36587 term/i386/pc/serial.c.
36589 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36591 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
36592 file size must be permitted.
36594 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
36595 between %ah and %al.
36597 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36599 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
36601 Call the hook with a NUL-terminated filename.
36602 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
36605 * kern/term.c (cursor_state): New variable.
36606 (grub_term_set_current): Reset the cursor state on a new
36608 (grub_setcursor): Rewritten to use CURSOR_STATE.
36609 (grub_getcursor): New function.
36611 * include/grub/term.h (grub_getcursor): New prototype.
36613 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
36614 integers on ARM. Reported by Timothy Baldwin
36615 <T.E.Baldwin99@members.leeds.ac.uk>.
36617 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
36619 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
36621 (grub_sfs_dir): Likewise.
36623 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
36625 Add support for the SFS filesystem.
36627 * fs/sfs.c: New file.
36629 * DISTLIST: Added `fs/sfs.c'.
36631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
36632 (grub_probefs_SOURCES): Likewise.
36633 (grub_emu_SOURCES): Likewise.
36634 (pkgdata_MODULES): Add `sfs.mod'.
36635 (sfs_mod_SOURCES): New variable.
36636 (sfs_mod_CFLAGS): Likewise.
36637 (sfs_mod_LDFLAGS): Likewise.
36639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
36640 (pkgdata_MODULES): Add `sfs.mod'.
36641 (sfs_mod_SOURCES): New variable.
36642 (sfs_mod_CFLAGS): Likewise.
36644 * util/grub-emu.c (main): Call `grub_sfs_init' and
36647 * include/grub/fs.h (grub_sfs_init): New prototype.
36648 (grub_sfs_fini): Likewise.
36650 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
36652 Add support for the AFFS filesystem.
36654 * fs/affs.c: New file.
36656 * DISTLIST: Added `fs/affs.c'.
36658 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
36659 (grub_probefs_SOURCES): Likewise.
36660 (grub_emu_SOURCES): Likewise.
36661 (pkgdata_MODULES): Add `affs.mod'.
36662 (affs_mod_SOURCES): New variable.
36663 (affs_mod_CFLAGS): Likewise.
36664 (affs_mod_LDFLAGS): Likewise.
36666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
36667 (pkgdata_MODULES): Add `affs.mod'.
36668 (affs_mod_SOURCES): New variable.
36669 (affs_mod_CFLAGS): Likewise.
36671 * util/grub-emu.c (main): Call `grub_affs_init' and
36674 * include/grub/fs.h (grub_affs_init): New prototype.
36675 (grub_affs_fini): Likewise.
36677 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36679 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
36681 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36683 * configure.ac: Accept `x86_64' as host_cpu. In that case add
36686 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
36689 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
36690 (COMMON_LDFLAGS): New variable.
36691 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
36692 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
36693 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
36694 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
36695 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
36696 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
36697 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
36698 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
36699 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
36700 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
36701 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36702 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36703 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
36704 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
36705 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
36707 (normal_mod_ASFLAGS): Add `-m32'.
36709 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
36710 (grub_host_size_t, grub_host_ssize_t): New types.
36711 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
36712 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
36713 `GRUB_HOST_SIZEOF_VOID_P'.
36715 * include/grub/kernel.h (struct grub_module_header): Type of
36716 member offset changed to `grub_host_off_t'. Type of member size
36717 changed to `grub_host_size_t'.
36718 (struct grub_module_info): Type of member offset changed to
36719 `grub_host_off_t'. Type of member size changed to
36720 `grub_host_size_t'.
36722 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
36724 Make GRUB's kernel compliant to Multiboot Specification.
36726 * kern/i386/pc/startup.S (multiboot_header): New label.
36727 (multiboot_entry): Likewise.
36728 (multiboot_trampoline): Likewise.
36730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36731 Increased to 0x4A0.
36733 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
36734 put parentheses after a question mark.
36735 [!GRUB_UTIL] (my_mod): New variable.
36737 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
36739 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
36741 Adds support for the XFS filesystem. Btrees are not supported
36744 * fs/xfs.c: New file.
36746 * DISTLIST: Added `fs/xfs.c'.
36748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
36749 (grub_probefs_SOURCES): Likewise.
36750 (grub_emu_SOURCES): Likewise.
36751 (pkgdata_MODULES): Add `xfs.mod'.
36752 (xfs_mod_SOURCES): New variable.
36753 (xfs_mod_CFLAGS): Likewise.
36755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
36756 (pkgdata_MODULES): Add `xfs.mod'.
36757 (xfs_mod_SOURCES): New variable.
36758 (xfs_mod_CFLAGS): Likewise.
36760 * util/grub-emu.c (main): Call `grub_xfs_init' and
36763 * include/grub/fs.h (grub_xfs_init): New prototype.
36764 (grub_xfs_fini): Likewise.
36767 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
36769 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
36770 color modes, allow greater than 16 colors to be configured as
36773 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36775 * normal/completion.c (complete_arguments): Add the qualifier
36776 const into OPTIONS.
36778 From Omniflux <omniflux+lists@omniflux.com>:
36779 * include/grub/terminfo.h: New file.
36780 * include/grub/tparm.h: Likewise.
36781 * include/grub/i386/pc/serial.h: Likewise.
36782 * term/terminfo.c: Likewise.
36783 * term/tparm.c: Likewise.
36784 * term/i386/pc/serial.c: Likewise.
36785 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
36787 (terminfo_mod_SOURCES): New variable.
36788 (terminfo_mod_CFLAGS): Likewise.
36789 (serial_mod_SOURCES): Likewise.
36790 (serial_mod_CFLAGS): Likewise.
36792 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
36794 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
36795 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
36796 and kern/powerpc/ieee1275/cmain.c, respectively.
36798 * boot/powerpc/ieee1275/crt0.S: Moved to ...
36799 * kern/powerpc/ieee1275/crt0.S: ... here.
36801 * boot/powerpc/ieee1275/cmain.c: Moved to ...
36802 * kern/powerpc/ieee1275/cmain.c: ... here.
36804 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
36805 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
36806 instead of boot/powerpc/ieee1275/crt0.S and
36807 boot/powerpc/ieee1275/cmain.c, respectively.
36809 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
36810 sectors. It was not used anyway.
36812 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36814 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
36815 `unused parameter' warning.
36817 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36819 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
36821 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
36824 2005-08-28 Marco Gerards <metgerards@student.han.nl>
36826 * include/grub/normal.h (enum grub_completion_type): Added
36827 `GRUB_COMPLETION_TYPE_ARGUMENT'.
36829 * normal/cmdline.c (print_completion): Handle
36830 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
36831 * normal/menu_entry.c (store_completion): Likewise.
36833 * normal/completion.c (complete_arguments): New function.
36834 (grub_normal_do_completion): Call `complete_arguments' when the
36835 current words start with a dash.
36837 2005-08-27 Marco Gerards <metgerards@student.han.nl>
36839 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
36840 `gzio.mod' instead of `io.mod').
36842 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
36844 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
36845 (DISTDIRS): Added io and video.
36846 Rewrite the search routine to make an output consistently.
36848 * DISTLIST: Added conf/sparc64-ieee1275.mk,
36849 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
36850 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
36851 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
36852 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
36853 util/powerpc/ieee1275/misc.c.
36855 * include/grub/gzio.h: New file.
36856 * io/gzio.c: Likewise.
36858 * kern/file.c (grub_file_close): Call grub_device_close only if
36859 FILE->DEVICE is not NULL.
36861 * include/grub/mm.h [!NULL] (NULL): New macro.
36863 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
36865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
36866 (pkgdata_MODULES): Added gzio.mod.
36867 (gzio_mod_SOURCES): New variable.
36868 (gzio_mod_CFLAGS): Likewise.
36870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
36871 (pkgdata_MODULES): Added gzio.mod.
36872 (gzio_mod_SOURCES): New variable.
36873 (gzio_mod_CFLAGS): Likewise.
36875 * commands/cat.c: Include grub/gzio.h.
36876 (grub_cmd_cat): Use grub_gzfile_open instead of
36879 * commands/cmp.c: Include grub/gzio.h.
36880 (grub_cmd_cmp): Use grub_gzfile_open instead of
36883 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
36884 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
36886 (grub_rescue_cmd_module): Likewise.
36888 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36890 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
36891 kern/sparc64/ieee1275/init.c because it contains _start.
36892 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
36894 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36896 * configure.ac: Add support for sparc64 host with ieee1275
36898 * configure: Generated from configure.ac.
36899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
36901 (grub_ofdisk_read): Likewise.
36902 (grub_ofdisk_open): Use %p to print pointer values, and cast the
36903 pointers as (void *) to remove a warning.
36904 (grub_ofdisk_close): Likewise.
36905 (grub_ofdisk_read): Likewise.
36906 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
36907 returns, so make it return void to remove a warning.
36908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
36909 Corresponding prototype change.
36910 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
36911 values, and cast the pointers as (void *) to remove a warning.
36912 (grub_mm_dump): Likewise.
36913 * conf/sparc64-ieee1275.mk: New file.
36914 * conf/sparc64-ieee1275.rmk: Likewise.
36915 * include/grub/sparc64/setjmp.h: Likewise.
36916 * include/grub/sparc64/types.h: Likewise.
36917 * include/grub/sparc64/ieee1275/console.h: Likewise.
36918 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
36919 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
36920 * include/grub/sparc64/ieee1275/time.h: Likewise.
36921 * kern/sparc64/cache.c: Likewise.
36922 * kern/sparc64/dl.c: Likewise.
36923 * kern/sparc64/ieee1275/init.c: Likewise.
36924 * kern/sparc64/ieee1275/openfw.c: Likewise.
36926 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
36928 * util/console.c (grub_ncurses_putchar): If C is greater than
36929 0x7f, set C to a question mark.
36930 (grub_ncurses_getcharwidth): New function.
36931 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
36934 * normal/menu.c (print_entry): Made aware of Unicode. First,
36935 convert TITLE to UCS-4, and predict the cursor position by
36938 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
36940 * kern/misc.c (grub_utf16_to_utf8): Likewise.
36942 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36944 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
36945 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
36948 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
36949 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
36950 grub_strcpy and grub_strlen. Take it into account that a space
36951 character is inserted as a delimiter.
36953 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36955 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
36956 invalid magic in the error.
36958 * commands/search.c: New file.
36960 * util/grub-emu.c (main): Call grub_search_init and
36963 * kern/rescue.c (grub_rescue_print_disks): Removed.
36964 (grub_rescue_print_devices): New function.
36965 (grub_rescue_cmd_ls): Use grub_device_iterate with
36966 grub_rescue_print_devices instead of grub_disk_dev_iterate with
36967 grub_rescue_print_disks.
36969 * kern/partition.c (grub_partition_iterate): Return the result of
36970 PARTMAP->ITERATE instead of GRUB_ERRNO.
36972 * kern/device.c: Include grub/partition.h.
36973 (grub_device_iterate): New function.
36975 * include/grub/partition.h (grub_partition_iterate): Return int
36976 instead of grub_err_t.
36978 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
36980 [GRUB_UTIL] (grub_search_fini): Likewise.
36982 * include/grub/device.h (grub_device_iterate): New prototype.
36984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36986 (pkgdata_MODULES): Added search.mod.
36987 (search_mod_SOURCES): New variable.
36988 (search_mod_CFLAGS): Likewise.
36990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
36991 (pkgdata_MODULES): Added search.mod.
36992 (search_mod_SOURCES): New variable.
36993 (search_mod_CFLAGS): Likewise.
36995 * commands/ls.c (grub_ls_list_disks): Renamed to ...
36996 (grub_ls_list_devices): ... this, and use grub_device_iterate.
36997 All callers changed.
36999 * DISTLIST: Added commands/search.c.
37001 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37003 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37005 (grub_getcharwidth): New function.
37007 * kern/misc.c (grub_utf8_to_ucs4): New function.
37009 * include/grub/term.h (struct grub_term): Added a new member
37011 (grub_getcharwidth): New prototype.
37013 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37015 * term/i386/pc/console.c (map_char): New function. Segregated from
37016 grub_console_putchar.
37017 (grub_console_putchar): Use map_char.
37018 (grub_console_getcharwidth): New function.
37019 (grub_console_term): Specified grub_console_getcharwidth as
37022 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37023 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37025 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37027 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37028 on grub_strtoul completely.
37029 (write_char): Declare local variables in the beginning of the
37031 (grub_vesafb_getcharwidth): New function.
37032 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37035 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37037 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37038 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37039 commands/i386/pc/vbetest.c.
37041 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37042 call grub_vbe_get_controller_info again, because the returned
37043 information is volatile.
37044 (grub_vbe_set_video_mode): Mostly rewritten.
37045 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37046 grub_vbe_status_t correctly.
37047 (grub_vbe_get_video_mode_info): Likewise.
37048 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37049 several if statements.
37051 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37052 * commands/i386/pc/vbeinfo.c: ... this.
37054 * commands/i386/pc/vbe_test.c: Renamed to ...
37055 * commands/i386/pc/vbetest.c: ... this.
37057 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37059 (grub_cmd_vbeinfo): ... this. Save video modes before
37060 iterating. Skip a video mode, if it is not available, not enough
37061 information is given or it is monochrome. Show the memory
37062 model. Leave the interpretation of MODEVAR to grub_strtoul
37064 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37065 (GRUB_MOD_FINI): Likewise.
37067 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37068 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37069 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37070 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37071 grub_strtoul completely.
37072 (real2pm): Removed.
37073 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37074 (GRUB_MOD_FINI): Likewise.
37076 * normal/misc.c: Include grub/mm.h.
37078 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37079 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37080 (vbe_list_modes_mod_SOURCES): Removed.
37081 (vbe_list_modes_mod_CFLAGS): Likewise.
37082 (vbe_test_mod_SOURCES): Likewise.
37083 (vbe_test_mod_CFLAGS): Likewise.
37084 (vbeinfo_mod_SOURCES): New variable.
37085 (vbeinfo_mod_CFLAGS): Likewise.
37086 (vbetest_mod_SOURCES): Likewise.
37087 (vbetest_mod_CFLAGS): Likewise.
37089 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37091 * normal/misc.c: New file.
37093 * DISTLIST: Added normal/misc.c.
37095 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37096 DISK to HOOK. Call HOOK with DISK.
37097 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37098 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37099 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37101 * normal/menu_entry.c (struct screen): Added a new member
37102 "completion_shown".
37103 (completion_buffer): New global variable.
37104 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37105 (store_completion): New function.
37106 (complete): Likewise.
37107 (clear_completions): Likewise.
37108 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37109 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37110 a tab, call complete.
37112 * normal/completion.c (disk_dev): Removed.
37113 (print_simple_completion): Likewise.
37114 (print_partition_completion): Likewise.
37115 (print_func): New global variable.
37116 (add_completion): Do not take the arguments WHAT or PRINT any
37117 longer. Added a new argument TYPE. Instead of printing directly,
37118 call PRINT_FUNC if not NULL.
37119 All callers changed.
37120 (complete_device): Use a local variable DEV instead of
37121 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37122 (grub_normal_do_completion): Take a new argument HOOK. Do not
37123 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37124 empty string, return NULL instead.
37125 All callers changed.
37127 * normal/cmdline.c (print_completion): New function.
37129 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37131 All callers changed.
37133 * kern/disk.c (grub_print_partinfo): Removed.
37135 * include/grub/partition.h (struct grub_partition_map): Add a new
37136 argument DISK into HOOK of ITERATE.
37137 (grub_partition_iterate): Add a new argument DISK to HOOK.
37139 * include/grub/normal.h (enum grub_completion_type): New enum.
37140 (grub_completion_type_t): New type.
37141 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37142 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37143 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37144 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37145 (grub_normal_do_completion): Added a new argument HOOK.
37146 (grub_normal_print_device_info): New prototype.
37148 * include/grub/disk.h (grub_print_partinfo): Removed.
37150 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37151 (normal_mod_SOURCES): Likewise.
37152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37153 (normal_mod_SOURCES): Likewise.
37155 * commands/ls.c (grub_ls_list_disks): Use
37156 grub_normal_print_device_info instead of grub_print_partinfo. Free
37158 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37159 duplicating the code.
37161 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37163 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37164 follow GCS more precisely.
37165 * commands/i386/pc/vbe_test.c: Likewise.
37166 * include/grub/i386/pc/vbe.h: Likewise.
37167 * term/i386/pc/vesafb.c: Likewise.
37168 * video/i386/pc/vbe.c: Likewise.
37170 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37172 * DISTLIST: Added term/i386/pc/vesafb.c
37173 DISTLIST: Added video/i386/pc/vbe.c
37174 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37175 DISTLIST: Added commands/i386/pc/vbe_test.c.
37176 * commands/i386/pc/vbe_list_modes.c: New file.
37177 * commands/i386/pc/vbe_test.c: Likewise.
37178 * term/i386/pc/vesafb.c: Likewise.
37179 * video/i386/pc/vbe.c: Likewise.
37180 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37181 (grub_vbe_probe) Added prototype.
37182 (grub_vbe_set_video_mode) Likewise.
37183 (grub_vbe_get_video_mode) Likewise.
37184 (grub_vbe_get_video_mode_info) Likewise.
37185 (grub_vbe_set_pixel_rgb) Likewise.
37186 (grub_vbe_set_pixel_index) Likewise.
37187 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37188 (pkgdata_MODULES): Added vesafb.mod.
37189 (pkgdata_MODULES): Added vbe_list_modes.mod.
37190 (pkgdata_MODULES): Added vbe_test.mod.
37191 (vbe_mod_SOURCES): Added.
37192 (vbe_mod_CFLAGS): Likewise.
37193 (vesafb_mod_SOURCES): Likewise.
37194 (vesafb_mod_CFLAGS): Likewise.
37195 (vbe_list_modes_mod_SOURCES): Likewise.
37196 (vbe_list_modes_mod_CFLAGS): Likewise.
37197 (vbe_test_mod_SOURCES): Likewise.
37198 (vbe_test_mod_CFLAGS): Likewise.
37200 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37202 * normal/command.c (grub_command_execute): If INTERACTIVE is
37203 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37204 CMDLINE. Disable the pager if INTERACTIVE is true.
37205 All callers are changed.
37207 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37208 before reading a config file.
37209 * normal/main.c (read_config_file): Even if a command is not
37210 found, register it if it is within an entry.
37212 * util/grub-emu.c: Include sys/types.h and unistd.h.
37213 (options): Added --hold.
37214 (struct arguments): Added a new member "hold".
37215 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37217 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37218 cleared by a debugger, if it is not zero.
37220 * include/grub/normal.h (grub_command_execute): Add an argument
37223 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37225 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37227 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37229 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
37230 program with another one, because the old one didn't detect a bug
37231 in gcc-3.4. Always use regparm 2, because the new test is still
37232 not enough for gcc-4.0. Someone must investigate a simple test
37233 case which detects a bug in gcc-4.0.
37235 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37237 * DISTLIST: Added normal/completion.c.
37239 * normal/completion.c: New file.
37241 * term/i386/pc/console.c (grub_console_getwh): New function.
37242 (grub_console_term): Assign grub_console_getwh to getwh.
37244 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
37245 function is defined in normal/completion.c as
37246 grub_normal_do_completion.
37247 (grub_cmdline_get): Use grub_normal_do_completion instead of
37250 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
37251 returns non-zero, otherwise return 0.
37252 (grub_partition_iterate): First, probe the partition map. Then,
37253 call ITERATE only for this partition map.
37255 * kern/misc.c (grub_strncmp): Rewritten.
37257 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37258 returns non-zero. Otherwise return 0.
37260 * include/grub/partition.h (grub_partition_map_iterate): Return
37261 int instead of void.
37263 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37265 * include/grub/misc.h (grub_strncmp): Change the type of N to
37268 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37271 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37272 unsigned explicitly before comparing it with I.
37274 * kern/main.c (grub_env_write_root): Add the attribute unused into
37277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37278 normal/completion.c.
37279 (normal_mod_SOURCES): Likewise.
37280 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37281 (normal_mod_SOURCES): Likewise.
37283 * normal/command.c (grub_iterate_commands): If ITERATE returns
37284 non-zero, return one immediately.
37286 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
37288 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
37289 * kern/i386/pc/startup.S: Updated Global Descriptor table's
37291 (grub_vbe_get_controller_info): New function.
37292 (grub_vbe_get_mode_info): Likewise.
37293 (grub_vbe_set_mode): Likewise.
37294 (grub_vbe_get_mode): Likewise.
37295 (grub_vbe_set_memory_window): Likewise.
37296 (grub_vbe_get_memory_window): Likewise.
37297 (grub_vbe_set_scanline_length): Likewise.
37298 (grub_vbe_get_scanline_length): Likewise.
37299 (grub_vbe_set_display_start): Likewise.
37300 (grub_vbe_get_display_start): Likewise.
37301 (grub_vbe_set_palette_data): Likewise.
37302 * include/grub/i386/pc/vbe.h: New file.
37304 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37306 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37307 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
37308 * DISTLIST: Likewise.
37309 * kern/ieee1275/of.c: Moved to ...
37310 * kern/ieee1275/ieee1275.c: ... here.
37312 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37314 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
37315 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
37316 Pass 0 as `end' parameter to grub_strtoul().
37318 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37320 * include/grub/powerpc/ieee1275/console.h: Do not include
37321 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
37323 (grub_console_cur_color): Remove i386-specific prototype.
37324 (grub_console_real_putchar): Likewise.
37325 (grub_console_checkkey): Likewise.
37326 (grub_console_getkey): Likewise.
37327 (grub_console_getxy): Likewise.
37328 (grub_console_gotoxy): Likewise.
37329 (grub_console_cls): Likewise.
37330 (grub_console_setcursor): Likewise.
37331 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
37332 Include <grub/machine/console.h>.
37333 * term/ieee1275/ofconsole.c: Likewise.
37335 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
37337 * Makefile.in (LIBLZO): New variable.
37339 * configure.ac: Check for LZO version 2.
37341 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
37342 lzo/lzo1x.h instead of lzo1x.h.
37344 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
37347 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
37348 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
37350 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
37351 copying the data from PARTITION to P.
37353 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37355 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
37356 negative, unload the module.
37358 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
37359 map is "pc_partition_map" but not "pc".
37360 (usage): Fix the description. The options are --boot-image and
37361 --core-image but not --boot-file or --core-file.
37362 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
37363 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
37366 * util/i386/pc/grub-install.in: Do not specify --boot-file or
37367 --core-file. Specify INSTALL_DEVICE as an argument.
37369 * util/console.c: Include config.h.
37370 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
37371 [HAVE_NCURSES_H]: Include ncurses.h.
37372 [HAVE_CURSES_H]: Include curses.h.
37373 [!A_NORMAL] (A_NORMAL): Defined as zero.
37374 [!A_STANDOUT] (A_STANDOUT): Likewise.
37376 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
37378 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
37380 * configure.ac: Check for curses libraries and headers.
37382 * Makefile.in (LIBCURSES): New variable.
37384 * genmk.rb (Script::rule): Set the executable bits.
37386 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
37387 name of the PC partition map is "pc_partition_map" but not "pc".
37389 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37391 * util/i386/pc/grub-install.in (grub_probefs): New variable.
37392 (modules): Likewise.
37393 (usage): Added descriptions for --modules and --grub-probefs.
37394 Handle --modules and --grub-probefs. Save the arguments in MODULES
37395 and GRUB_PROBEFS, respectively.
37396 Auto-detect a filesystem module against GRUBDIR. If the result is
37397 empty and modules are not specified explicitly, abort the
37398 installation. Add the result to MODULES.
37400 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
37401 disk/powerpc/ieee1275/ofdisk.c,
37402 include/grub/powerpc/ieee1275/init.h and
37403 term/powerpc/ieee1275/ofconsole.c.
37404 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
37405 term/ieee1275/ofconsole.c.
37407 * include/grub/powerpc/ieee1275/console.h: Resurrected.
37409 * COPYING: Upgraded to the latest version. Only the address of the
37410 FSF office has changed.
37412 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37414 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37415 kern/ieee1275.c with kern/ieee1275/of.c.
37417 * kern/ieee1275.c: Moved to ...
37418 * kern/ieee1275/of.c: ... here.
37420 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
37422 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
37425 * config.guess: Updated to the latest version from gnulib.
37426 * config.sub: Likewise.
37427 * install.sh: Likewise.
37428 * mkinstalldirs: Likewise.
37430 * include/grub/console.h: Removed. This file is arch-specific. Do
37431 not put this in include/grub.
37433 * include/grub/i386/pc/console.h: Resurrected.
37435 * util/console.c: Include grub/machine/console.h instead of
37437 * util/grub-emu.c: Likewise.
37439 2005-08-04 Marco Gerards <metgerards@student.han.nl>
37441 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
37444 From Vincent Pelletier <subdino2004@yahoo.fr>
37445 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
37446 Redefined to use grub_getwh.
37447 (grub_term): New member named getwh.
37448 (grub_getwh): New prototype.
37449 * kern/term.c (grub_getwh): New function.
37450 * term/i386/pc/console.c (grub_console_getwh): New function.
37451 (grub_console_term): New member `getwh'.
37452 * term/i386/pc/vga.c (grub_vga_getwh): New function.
37453 (grub_vga_term): New member `getwh'.
37454 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
37456 (grub_ofconsole_getw): New function.
37457 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
37458 (grub_ofconsole_term): New field named getwh and new initial
37461 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
37463 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
37464 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
37465 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
37466 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
37467 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
37468 of <grub/machine/ieee1275.h>.
37469 * commands/ieee1275/reboot.c: Likewise.
37470 * boot/powerpc/ieee1275/ieee1275.c: Move ...
37471 * kern/ieee1275.c: ... to here. All users updated. Change all
37472 parameter structs to use new type `grub_ieee1275_cell_t'.
37473 * term/powerpc/ieee1275/ofconsole.c: Move ...
37474 * term/ieee1275/ofconsole.c: ... to here. All users updated.
37475 * disk/powerpc/ieee1275/ofdisk.c: Move ...
37476 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
37477 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
37479 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
37480 Remove unused prototypes. All users updated.
37481 * include/grub/powerpc/ieee1275/console.h: Removed.
37482 * include/grub/powerpc/ieee1275/ieee1275.h: Define
37483 `grub_ieee1275_cell_t'.
37484 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
37485 Cast comparisons with -1 to the correct type.
37486 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
37487 type to match `grub_ieee1275_entry_fn'.
37489 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
37491 * DISTLIST: Added util/i386/pc/grub-probefs.c.
37493 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
37494 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
37496 (grub_probefs_SOURCES): New variable.
37498 * util/i386/pc/grub-probefs.c: New file.
37500 * util/i386/pc/grub-setup.c (main): Call
37501 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
37502 grub_hfs_init and grub_jfs_init to initialize the system. Call
37503 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
37504 grub_pc_partition_map_fini to finish the system.
37506 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37508 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37510 (grub_multiboot_load_elf32): Likewise.
37511 (grub_multiboot_is_elf64): Likewise.
37512 (grub_multiboot_load_elf64): Likewise.
37513 (grub_multiboot_load_elf): Likewise.
37514 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
37515 an ELF32 or ELF64 file.
37516 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
37518 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
37519 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
37520 NULL before calling FS->LABEL.
37521 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
37522 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
37523 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
37524 before calling FS->LABEL.
37526 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37528 * util/i386/pc/grub-install.in (datadir): New variable.
37530 (pkgdatadir): New variable.
37531 (pkglibdir): Removed.
37533 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37535 * DISTLIST: Added util/i386/pc/grub-install.in.
37537 * util/i386/pc/grub-install.in: New file.
37539 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
37540 (grub_install_SOURCES): Likewise.
37542 * genmk.rb: Added support for scripts.
37543 (Script): New class.
37544 (scripts): New variable.
37546 * Makefile.in (install-local): Install sbin_SCRIPTS by
37548 (uninstall): Remove sbin_SCRIPTS.
37550 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
37551 device, try to get a GRUB device by
37552 grub_util_biosdisk_get_grub_dev.
37555 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
37556 description for --device-map.
37558 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37560 Change the semantics of variable hooks. They now return strings
37561 instead of error values.
37563 * util/i386/pc/grub-setup.c: Include grub/env.h.
37564 (setup): Use grub_device_set_root instead of grub_env_set.
37566 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
37567 grub_env_get instead of grub_device_set_root and
37568 grub_device_get_root, respectively.
37570 * kern/main.c (grub_env_write_root): New function.
37571 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
37572 grub_env_set instead of grub_device_set_root.
37574 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
37576 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
37577 rather than calling ENV->WRITE_HOOK afterwards.
37578 (grub_env_get): Return the result of ENV->READ_HOOK rather than
37579 passing a pointer of a pointer.
37580 (grub_register_variable_hook): Change the types of "read_hook" and
37581 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
37583 Allocate the default empty string on the heap, because this string
37584 may be freed later.
37586 * kern/device.c: Include grub/env.h.
37587 (grub_device_set_root): Removed.
37588 (grub_device_get_root): Likewise.
37589 (grub_device_open): Use grub_env_get instead of
37590 grub_device_get_root.
37592 * include/grub/env.h (grub_env_read_hook_t): New type.
37593 (grub_env_write_hook_t): Likewise.
37594 (grub_env_var): Change the types of "read_hook" and "write_hook"
37595 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
37596 (grub_register_variable_hook): Likewise.
37598 * include/grub/device.h (grub_device_set_root): Removed.
37599 (grub_device_set_root): Likewise.
37601 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
37602 make sure that DIRNAME terminates with '/', so that
37603 grub_fat_find_dir will fail if PATH is not a directory.
37605 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
37607 Use the qualifier auto for print_files and print_files_long.
37608 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
37610 Put a newline only if there is no error.
37611 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
37614 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37616 * kern/partition.c (grub_partition_probe): Initialize PART to
37617 NULL. Otherwise, when no partition map is registered, this returns
37620 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
37622 * partmap/apple.c (apple_partition_map_iterate): Check if POS
37623 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
37626 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
37628 * commands/ls.c (grub_ls_list_disks): Print the filesystem
37629 information on each device, if it does not have partitions. Print
37630 "Device" instead of "Disk", because this function is not specific
37633 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
37634 static to ensure that it is put on the memory rather than a
37637 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37639 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
37640 (grub_cat_init): Likewise.
37641 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
37642 (options): Likewise.
37643 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
37644 (grub_configfile_init): Likewise.
37645 * font/manager.c (GRUB_MOD_INIT): Likewise.
37646 * commands/help.c (GRUB_MOD_INIT): Likewise.
37647 (grub_help_init): Likewise.
37648 * normal/command.c (grub_command_init): Likewise.
37649 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
37650 * disk/loopback.c (grub_loop_init): Likewise.
37651 (GRUB_MOD_INIT): Likewise.
37652 * commands/ls.c (grub_ls_init): Likewise.
37653 (GRUB_MOD_INIT): Likewise.
37654 (options): Likewise.
37655 * commands/boot.c (grub_boot_init): Likewise.
37656 (GRUB_MOD_INIT): Likewise.
37657 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
37658 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
37659 (GRUB_MOD_INIT): Likewise.
37660 * commands/cmp.c (grub_cmp_init): Likewise.
37661 (GRUB_MOD_INIT): Likewise.
37663 * normal/arg.c: Use <> instead of "" to include header files.
37664 (SHORT_ARG_HELP): New macro.
37665 (SHORT_ARG_USAGE): Likewise.
37666 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
37667 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
37669 (find_short): Check if C is 'h' or 'u' explicitly.
37670 (grub_arg_show_help): Use space characters instead of tabs. Treat
37671 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
37672 are shown with --help and --usage only if they are not used for
37673 the command itself.
37674 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
37677 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
37678 const into "longarg". Change the type of "shortarg" to int.
37680 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37682 * boot/i386/pc/boot.S (boot_drive_check): New label.
37684 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
37687 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
37688 which do not pass a boot drive correctly. Copied from GRUB Legacy.
37690 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37692 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
37693 When turning off Gate A20, skip the check and return immediately,
37694 because this is not fatal usually.
37696 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37698 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
37699 be 0x7C00 instead of 0x8000.
37701 * boot/i386/pc/pxeboot.S: Rewritten.
37703 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
37705 (gate_a20_check_state): Read a byte from 0x108000. Invert the
37708 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
37710 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
37711 robustness. This routine now supports a BIOS call and System
37712 Control Port A to modify the gate A20.
37714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37715 Increased to 0x440.
37717 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
37719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
37720 device path and resulting ihandle.
37721 (grub_ofdisk_close): dprintf the ihandle being closed.
37722 (grub_ofdisk_read): dprintf function parameters.
37723 * kern/mm.c (grub_mm_init_region): Likewise.
37724 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
37725 (grub_linux_boot): dprintf the Linux entry point, initrd address and
37726 size, and boot arguments.
37727 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
37728 before loading into memory.
37729 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
37730 before loading into memory.
37732 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
37734 * kern/mm.c: Added much documentation.
37735 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
37736 8, set to 5 instead of 8.
37738 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37740 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
37742 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
37743 (grub_mkdevicemap_SOURCES): New variable.
37745 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
37746 lib/device.c of GRUB Legacy.
37748 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37750 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
37751 instead of PATH is NULL.
37753 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
37755 * commands/cmp.c (BUFFER_SIZE): New macro.
37756 (grub_cmd_cmp): Close the right file at the right time. Compare
37757 only data just read. Don't report files of different size as
37758 identical. Dynamically allocate buffers. Move variable
37759 declarations at the beginning of function.
37761 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
37763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
37766 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
37768 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
37769 when backspace is pressed at beginning of line.
37771 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
37773 * DISTLIST: Added genfslist.sh.
37775 * normal/main.c (fs_module_list): New variable.
37776 (autoload_fs_module): New function.
37777 (read_fs_list): Likewise.
37778 (grub_normal_execute): Call read_fs_list.
37780 * kern/fs.c (grub_fs_autoload_hook): New variable.
37781 (grub_fs_probe): Added support for auto-loading.
37783 * include/grub/normal.h (struct grub_fs_module_list): New struct.
37784 (grub_fs_module_list_t): New type.
37786 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
37787 (grub_fs_autoload_hook): New prototype.
37789 * genfslist.sh: New file.
37791 * genmk.rb: Added a rule to generate a filesystem list.
37793 2005-06-30 Marco Gerards <metgerards@student.han.nl>
37795 * configure.ac: Fix the test for cross-compiling.
37797 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
37798 define GRUB_UTIL anymore.
37800 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
37801 so this function works on other systems than just big endian.
37802 (load_modules): Likewise.
37803 (add_segments): Likewise.
37805 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
37807 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
37808 contains `l' modifier, get a long from va_arg().
37810 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
37812 * kern/mm.c (grub_free): If the next free block which is being
37813 merged is the first free block, set the first block to the block
37815 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
37817 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37819 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
37820 `grub_ieee1275_chosen'.
37822 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37824 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
37825 (grub_ieee1275_chosen): New variable.
37826 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
37828 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
37829 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37830 Rename first argument to `phandle' for consistency.
37831 (grub_ieee1275_get_property_length): Likewise.
37832 (grub_ieee1275_next_property): Likewise. Change type of first argument
37833 to grub_ieee1275_phandle_t.
37834 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
37835 Move export next to declaration.
37836 (grub_ieee1275_chosen): New variable.
37837 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
37838 Correct cosmetic typo.
37839 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
37840 `grub_ieee1275_chosen'.
37841 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
37842 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
37843 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
37844 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
37845 `grub_ieee1275_chosen'.
37847 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
37849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
37851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
37852 /chosen/bootargs as "variable=value" pairs.
37854 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
37856 * include/grub/misc.h (grub_dprintf): New macro.
37857 (grub_real_dprintf): New prototype.
37858 (grub_strword): Likewise.
37859 (grub_iswordseparator): Likewise.
37860 * kern/misc.c (grub_real_dprintf): New function.
37861 (grub_strword): Likewise.
37862 (grub_iswordseparator): Likewise.
37864 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
37866 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
37867 (roundup): Remove macro.
37868 (grub_ieee1275_flags): Make static.
37869 (grub_ieee1275_realmode): Remove.
37870 (grub_ieee1275_test_flag): New function.
37871 (grub_ieee1275_set_flag): Likewise.
37872 (find_options): Rename to `grub_ieee1275_find_options'; update
37873 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
37874 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
37875 (cmain): New prototype.
37876 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
37877 `grub_ieee1275_flags' directly.
37878 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
37879 machine/biosdisk.h.
37880 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
37881 Don't include grub/machine/init.h.
37882 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
37883 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
37885 (grub_ieee1275_realmode): Likewise.
37886 (grub_ieee1275_flag): New enum.
37887 (grub_ieee1275_test_flag): New prototype.
37888 (grub_ieee1275_set_flag): New prototype.
37889 * include/grub/powerpc/ieee1275/init.h: Remove file.
37890 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
37891 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
37892 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
37893 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
37895 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
37896 `grub_ieee1275_test_flag'.
37897 (grub_ieee1275_encode_devname): Likewise.
37899 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
37901 * include/grub/powerpc/ieee1275/ieee1275.h
37902 (grub_ieee1275_encode_devname): New prototype.
37903 (grub_ieee1275_get_filename): Likewise.
37904 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
37906 (grub_set_prefix): Likewise.
37907 (grub_machine_init): Call grub_set_prefix.
37908 * kern/powerpc/ieee1275/openfw.c: Fix typos.
37909 (grub_parse_type): New enum.
37910 (grub_ieee1275_get_devargs): New function.
37911 (grub_ieee1275_get_devname): Likewise.
37912 (grub_ieee1275_parse_args): Likewise.
37913 (grub_ieee1275_get_filename): Likewise.
37914 (grub_ieee1275_encode_devname): Likewise.
37916 2005-03-30 Marco Gerards <metgerards@student.han.nl>
37918 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
37919 `grub_loader_unset'.
37921 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
37923 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
37924 instead of grub_ieee1275_interpret.
37925 (grub_halt_init): New function.
37926 (grub_halt_fini): Likewise.
37927 (GRUB_MOD_INIT): Correct message grammar.
37928 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
37929 instead of grub_ieee1275_interpret.
37930 (grub_reboot_init): New function.
37931 (grub_reboot_fini): Likewise.
37932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
37933 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
37934 util/i386/pc/misc.c with commands/ieee1275/halt.c,
37935 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
37936 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
37938 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
37940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
37942 (grub_halt): Likewise.
37943 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
37944 (cmain): Remove __attribute__((unused)).
37945 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
37946 (grub_heap_len): Likewise.
37947 (grub_machine_fini): New function.
37948 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
37949 (grub_halt): Likewise.
37950 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
37952 * util/powerpc/ieee1275/misc.c: New file.
37954 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
37956 * DISTLIST: New file.
37957 * gendistlist.sh: Likewise.
37959 * Makefile.in (COMMON_DISTFILES): Removed.
37960 (BOOT_DISTFILES): Likewise.
37961 (CONF_DISTFILES): Likewise.
37962 (DISK_DISTFILES): Likewise.
37963 (FS_DISTFILES): Likewise.
37964 (INCLUDE_DISTFILES): Likewise.
37965 (KERN_DISTFILES): Likewise.
37966 (LOADER_DISTFILES): Likewise.
37967 (TERM_DISTFILES): Likewise.
37968 (UTIL_DISTFILES): Likewise.
37969 (DISTFILES): Likewise.
37970 (uninstall): Uninstall files in $(pkgdata_DATA).
37971 (DISTLIST): New target.
37972 (distdir): Use the contents of the file DISTLIST to get a list of
37975 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
37977 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
37978 descriptor. This is ported from GRUB Legacy.
37980 * gencmdlist.sh: Added an extra semicolon to make it work with
37981 old sed versions. Reported by Robert Bihlmeyer
37982 <robbe@orcus.priv.at>.
37984 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
37986 Automatic loading of commands is supported.
37988 * normal/main.c (read_command_list): New function.
37989 (grub_normal_execute): Call read_command_list.
37991 * normal/command.c (grub_register_command): Return zero or CMD.
37992 Allocate CMD->NAME from the heap.
37993 Initialize CMD->MODULE_NAME to zero.
37994 Find the same name as well. If the same command is found and it is
37995 a dummy command, overwrite members. If it is not a dummy command,
37997 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
37998 (grub_command_find): If a dummy command is found, load a module
37999 and retry to find a command only once.
38001 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38002 make sure that each command is loaded.
38004 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38006 (struct grub_command): Remove const from the member `name'.
38007 Add a new member `module_name'.
38008 (grub_register_command): Return grub_command_t.
38010 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38011 sure that each command is loaded.
38013 * genmk.rb (PModule::rule): Specify a module name without the
38014 suffix ".mod" to gencmdlist.sh.
38016 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38018 * gencmdlist.sh: New file.
38020 * genmk.rb (PModule::rule): Generate a rule for a command list.
38022 Generate command.lst from $(COMMANDFILES).
38024 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38025 (DATA): Added $(pkgdata_DATA).
38026 (install-local): Install files in $(pkgdata_DATA).
38028 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38030 * term/i386/pc/vga.c (debug_command): Removed.
38031 (GRUB_MOD_INIT): Do not register the command "debug".
38033 From Hollis Blanchard:
38034 * commands/configfile.c: New file.
38035 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38036 commands/configfile.c.
38037 (pkgdata_MODULES): Added configfile.mod.
38038 (configfile_mod_SOURCES): New variable.
38039 (configfile_mod_CFLAGS): Likewise.
38040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38041 commands/configfile.c.
38042 (pkgdata_MODULES): Added configfile.mod.
38043 (configfile_mod_SOURCES): New variable.
38044 (configfile_mod_CFLAGS): Likewise.
38045 * util/grub-emu.c (main): Call grub_configfile_init and
38046 grub_configfile_fini.
38047 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38049 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38051 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38053 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38056 * commands/help.c (grub_cmd_help): Do not print newlines after
38057 the last command in print_command_help.
38059 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38061 * commands/default.h: New file.
38062 * commands/timeout.h: Likewise.
38063 * normal/context.c: Likewise.
38065 * util/misc.c: Do not include sys/times.h.
38066 Include sys/time.h and grub/machine/time.h.
38067 (grub_get_rtc): Rewritten with gettimeofday.
38069 * util/grub-emu.c (main): Call grub_default_init and
38070 grub_timeout_init before grub_normal_init, and call
38071 grub_timeout_fini and grub_default_fini after grub_main.
38073 * util/console.c (grub_ncurses_checkkey): Return the read
38076 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38079 * normal/main.c (read_config_file): Push MENU. If this fails,
38080 print an error and wait for a user input.
38081 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38082 If a menu is empty or an error occurs, pop MENU.
38083 (grub_normal_execute): Pop and free MENU after grub_menu_run
38086 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38088 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38090 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38092 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38094 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38097 * include/grub/normal.h (struct grub_menu_list): New struct.
38098 (grub_menu_list_t): New type.
38099 (struct grub_context): New struct.
38100 (grub_context_t): New type.
38101 (grub_register_command): Got rid of EXPORT_FUNC.
38102 (grub_unregister_command): Likewise.
38103 (grub_context_get): New prototype.
38104 (grub_context_get_current_menu): Likewise.
38105 (grub_context_push_menu): Likewise.
38106 (grub_context_pop_menu): Likewise.
38107 [GRUB_UTIL] (grub_default_init): Likewise.
38108 [GRUB_UTIL] (grub_default_fini): Likewise.
38109 [GRUB_UTIL] (grub_timeout_init): Likewise.
38110 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38112 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38113 commands/timeout.c and normal/context.c.
38114 (pkgdata_MODULES): Added default.mod and timeout.mod.
38115 (normal_mod_SOURCES): Added normal/context.c.
38116 (default_mod_SOURCES): New variable.
38117 (default_mod_CFLAGS): Likewise.
38118 (timeout_mod_SOURCES): Likewise.
38119 (timeout_mod_CFLAGS): Likewise.
38120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38122 (pkgdata_MODULES): Added default.mod and timeout.mod.
38123 (normal_mod_SOURCES): Added normal/context.c.
38124 (default_mod_SOURCES): New variable.
38125 (default_mod_CFLAGS): Likewise.
38126 (timeout_mod_SOURCES): Likewise.
38127 (timeout_mod_CFLAGS): Likewise.
38129 * Makefile.in (all-local): Added $(MKFILES).
38131 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38134 (grub_emu_SOURCES): Likewise.
38135 (pkgdata_MODULES): Add `sun.mod'.
38136 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38139 (pkgdata_MODULES): Add `sun.mod'.
38140 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38141 * include/grub/partition.h (grub_sun_partition_map_init): New
38143 (grub_sun_partition_map_fini): Likewise.
38144 * partmap/sun.c: New file.
38145 * util/grub-emu.c (main): Initialize and de-initialize the sun
38146 partitionmap support.
38148 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38150 This implements an Emacs-like menu entry editor.
38152 * normal/menu_entry.c: New file.
38154 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38155 characters to ASCII.
38156 (saved_char): New variable.
38157 (grub_ncurses_checkkey): Rewritten completely.
38158 (grub_ncurses_getkey): Likewise.
38159 (grub_ncurses_init): Call raw instead of cbreak.
38161 * normal/menu.c (print_entry): Do not put a space.
38162 (init_page): Renamed to ...
38163 (grub_menu_init_page): ... this. All callers changed.
38164 (edit_menu_entry): Removed.
38165 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38167 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38169 * kern/misc.c (grub_vprintf): Call grub_refresh.
38171 * normal/menu.c (DISP_LEFT): Renamed to ...
38172 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38173 * normal/menu.c (DISP_UP): Renamed to ...
38174 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38175 * normal/menu.c (DISP_RIGHT): Renamed to ...
38176 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38177 * normal/menu.c (DISP_DOWN): Renamed to ...
38178 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38179 * normal/menu.c (DISP_HLINE): Renamed to ...
38180 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38181 * normal/menu.c (DISP_VLINE): Renamed to ...
38182 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38183 * normal/menu.c (DISP_UL): Renamed to ...
38184 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38185 * normal/menu.c (DISP_UR): Renamed to ...
38186 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38187 * normal/menu.c (DISP_LL): Renamed to ...
38188 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38189 * normal/menu.c (DISP_LR): Renamed to ...
38190 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38191 * normal/menu.c (TERM_WIDTH): Renamed to ...
38192 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38193 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38194 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38195 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38196 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38197 * normal/menu.c (TERM_MARGIN): Renamed to ...
38198 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38199 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38200 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38201 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38202 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38203 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38204 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38205 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38206 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38207 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38208 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38209 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38210 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38211 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38212 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38213 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38214 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38215 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38216 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38217 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38218 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38219 All callers changed.
38221 * include/grub/normal.h: New prototype.
38223 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38224 normal/menu_entry.c.
38225 (normal_mod_SOURCES): Likewise.
38226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38227 (normal_mod_SOURCES): Likewise.
38229 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38231 * include/grub/normal.h (grub_halt_init): New prototype.
38232 (grub_halt_fini): Likewise.
38233 (grub_reboot_init): Likewise.
38234 (grub_reboot_fini): Likewise.
38236 * util/grub-emu.c: Include signal.h.
38237 (main_env): New global variable.
38238 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38240 (grub_machine_fini): New function.
38241 (main): Call grub_halt_init and grub_reboot_init before
38242 grub_main, and grub_reboot_fini and grub_halt_fini after it.
38243 Call setjmp with MAIN_ENV to go back afterwards.
38244 Call grub_machine_fini right before return.
38246 * include/grub/util/misc.h: Include setjmp.h.
38247 (main_env): New prototype.
38249 * include/grub/kernel.h (grub_machine_fini): New prototype.
38250 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
38251 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
38253 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
38254 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
38255 * term/i386/pc/console.c (grub_console_fini): Likewise.
38257 * util/i386/pc/misc.c: New file.
38259 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38260 util/i386/pc/misc.c, commands/i386/pc/halt.c and
38261 commands/i386/pc/reboot.c.
38263 2005-02-14 Guillem Jover <guillem@hadrons.org>
38265 * include/grub/dl.h (grub_dl_check_header): New prototype.
38266 (grub_arch_dl_check_header): Change return type to grub_err_t,
38267 remove size parameter and export function. Update all callers.
38268 * kern/dl.c (grub_dl_check_header): New function.
38269 (grub_dl_load_core): Use `grub_dl_check_header' instead of
38270 `grub_arch_dl_check_header'. Check ELF type. Check if sections
38271 are inside the core.
38272 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
38273 independent ELF header checks.
38274 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38275 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
38276 `grub_dl_check_header' instead of explicit checks. Check for the
38278 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
38279 `grub_dl_check_header' instead of explicit checks. Remove arch
38280 specific ELF header checks.
38282 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38285 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
38287 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
38288 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
38290 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
38292 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
38293 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
38294 (part_map_iterate): Clear `grub_errno' and return 0 if
38295 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
38296 * partmap/amiga.c (amiga_partition_map_iterate): Return
38297 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
38298 * partmap/apple.c (apple_partition_map_iterate): Likewise.
38300 2005-02-01 Guillem Jover <guillem@hadrons.org>
38302 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
38305 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38307 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
38309 (grub_rescue_cmd_linux): New prototype.
38310 (grub_rescue_cmd_initrd): Likewise.
38311 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
38313 (grub_linux_release_mem): Release the memory for the initrd.
38314 (grub_load_linux): Renamed from this...
38315 (grub_rescue_cmd_linux): ...To this. Changed all callers.
38316 Changed `entry' not to be static. Loop over memory regions to
38317 find another one when the default fails.
38318 (grub_rescue_cmd_initrd): New function.
38319 (grub_linux_init): Remove function.
38320 (grub_linux_fini): Likewise.
38321 (GRUB_MOD_INIT): Register `initrd'.
38322 (GRUB_MOD_FINI): Unregister `initrd'.
38323 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
38325 (grub_linux_normal_fini): Likewise.
38326 (GRUB_MOD_INIT): Register `initrd'.
38327 (GRUB_MOD_FINI): Unregister `initrd'.
38329 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38331 * commands/help.c: New file.
38332 * normal/arg.c (show_help): Renamed to...
38333 (grub_arg_show_help): ... this.
38334 * commands/i386/pc/halt.c: New file.
38335 * commands/i386/pc/reboot.c: Likewise.
38336 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
38337 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
38338 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
38339 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
38341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38343 (pkgdata_MODULES): Add `help.mod'.
38344 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
38345 * grub/i386/pc/init.h (grub_reboot): New prototype.
38346 (grub_halt): Likewise.
38347 * include/grub/normal.h (grub_arg_show_help): New prototype.
38348 (grub_help_init): Likewise.
38349 (grub_help_fini): Likewise.
38350 * util/grub-emu.c (main): Initialize and deinitialize the help
38353 * normal/cmdline.c (grub_cmdline_get): Doc fix.
38355 * normal/command.c (grub_command_init): Fixed the description of
38356 the `set' and `unset' commands.
38358 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
38362 * commands/ieee1275/halt.c: New file.
38363 * commands/ieee1275/reboot.c: Likewise.
38364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
38365 `__attribute__ ((unused))'. Some GCS related fixed.
38366 (grub_suspend_init) [GRUB_UTIL]: Function removed.
38367 (grub_suspend_fini): Likewise.
38368 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
38370 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
38371 (halt_mod_CFLAGS): New variables.
38372 * include/grub/powerpc/ieee1275/ieee1275.h
38373 (grub_ieee1275_interpret): New prototype.
38375 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
38377 * include/grub/misc.h (memmove): New prototype.
38378 (memcpy): Likewise.
38380 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
38382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
38383 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
38385 2005-01-22 Marco Gerards <metgerards@student.han.nl>
38387 * kern/misc.c (grub_strndup): Function rewritten.
38389 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
38391 * normal/menu.c (TERM_WIDTH): Macro redefined.
38392 (TERM_TOP_BORDER_Y): Likewise.
38393 (draw_border): Replaced while-loop by a for-loop. Make the number
38394 of lines consistent with the number of lines displayed in
38395 print_entries. Added a margin below the rectangle.
38396 (print_entry): Make the entry fit in the rectangle.
38397 (print_entries): Display the scroll arrows next to the right
38400 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38402 * fs/minix.c (grub_minix_find_file): Reserve more space for
38403 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
38404 `grub_strncpy' to copy `path' into it.
38406 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38408 Add the loopback device, a device via which files can be accessed
38411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
38412 (pkgdata_MODULES): Add loopback.mod.
38413 (loopback_mod_SOURCES): New variable.
38414 (loopback_mod_CFLAGS): Likewise.
38415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38417 (pkgdata_MODULES): Add loopback.mod.
38418 (loopback_mod_SOURCES): New variable.
38419 (loopback_mod_CFLAGS): Likewise.
38420 * disk/loopback.c: new file.
38421 * include/grub/normal.h (grub_loop_init): New prototype.
38422 (grub_loop_fini): New prototype.
38423 * util/grub-emu.c (main): Initialize and de-initialize loopback
38425 * include/grub/disk.h (grub_disk_dev_id): Add
38426 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
38428 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
38430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
38432 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
38433 (suspend_mod_SOURCES): New variable.
38434 (suspend_mod_CFLAGS): Likewise.
38435 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
38437 * commands/ieee1275/suspend.c: New file.
38439 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38441 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
38442 ((unused))' to `__attribute__ ((used))'.
38443 (GRUB_MOD_FINI): Likewise.
38444 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
38445 * genmk.rb (PModule): Assign space to common symbols when linking
38448 2005-01-20 Marco Gerards <metgerards@student.han.nl>
38450 * include/grub/mm.h (grub_mm_init_region): Change the type of the
38451 `unsigned' arguments to `grub_size_t'.
38452 (grub_malloc): Likewise.
38453 (grub_realloc): Likewise.
38454 (grub_memalign): Likewise.
38455 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
38456 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38457 * util/misc.c (grub_malloc): Likewise.
38458 (grub_realloc): Likewise.
38459 * kern/mm.c (get_header_from_pointer): Change the casts to
38460 `unsigned' into a cast to `grub_size_t'.
38462 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
38463 point to `currnode' when `currnode' is changed.
38465 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
38466 Schottelius <nico-linux@schottelius.org>.
38468 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
38470 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
38471 (note_path): Remove variable.
38472 (GRUB_IEEE1275_NOTE_NAME): New macro.
38473 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
38474 (grub_ieee1275_note_hdr): New structure.
38475 (grub_ieee1275_note_desc): Likewise.
38476 (grub_ieee1275_note): Likewise.
38477 (load_note): Remove `dir' argument. All callers updated. Remove
38478 `note_img' and `path'. Do not load a file from `note_path'.
38479 Initialize a struct grub_ieee1275_note and write that to `out'.
38480 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
38482 2005-01-05 Marco Gerards <metgerards@student.han.nl>
38484 * util/misc.c (grub_util_read_image): Revert last change. It
38485 called `grub_util_read_at', which seeks from the beginning of the
38488 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
38490 * TODO: Add note about endianness in grub-mkimage.
38491 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
38493 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
38494 (grub_mkimage_SOURCES): New target.
38495 * include/grub/kernel.h (grub_start_addr): Remove variable.
38496 (grub_end_addr): Likewise.
38497 (grub_total_module_size): Likewise.
38498 (grub_kernel_image_size): Likewise.
38499 (GRUB_MODULE_MAGIC): New constant.
38500 (grub_module_info): New structure.
38501 (grub_arch_modules_addr): New prototype.
38502 (grub_get_end_addr): Remove prototype.
38503 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
38504 * include/grub/powerpc/ieee1275/kernel.h: New file.
38505 * include/grub/util/misc.h (grub_util_get_fp_size): New
38507 (grub_util_read_at): Likewise.
38508 (grub_util_write_image_at): Likewise.
38509 * kern/main.c (grub_get_end_addr): Remove function.
38510 (grub_load_modules): Call grub_arch_modules_addr instead of using
38511 grub_end_addr. Look for a grub_module_info struct in memory. Use
38512 the grub_module_info fields instead of calling grub_get_end_addr
38513 as loop conditions. Move grub_add_unused_region code here.
38514 (grub_add_unused_region): Remove function.
38515 * kern/i386/pc/init.c: Include grub/cache.h.
38516 (grub_machine_init): Remove call to grub_get_end_addr. Remove
38517 one call to add_mem_region.
38518 (grub_arch_modules_addr): New function.
38519 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
38520 (grub_total_module_size): Likewise.
38521 Include grub/machine/kernel.h.
38522 (grub_arch_modules_addr): New function.
38523 * util/grub-emu.c (grub_end_addr): Remove variable.
38524 (grub_total_module_size): Likewise.
38525 (grub_arch_modules_addr): New function.
38526 * util/misc.c: Include unistd.h.
38527 (grub_util_get_fp_size): New function.
38528 (grub_util_read_at): Likewise.
38529 (grub_util_write_image_at): Likewise.
38530 (grub_util_read_image): Call grub_util_read_at.
38531 (grub_util_write_image): Call grub_util_write_image_at.
38532 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
38533 additional memory in kernel_img for a struct grub_module_info.
38534 Fill in that grub_module_info.
38535 * util/powerpc/ieee1275/grub-mkimage.c: New file.
38537 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
38541 * include/grub/powerpc/ieee1275/ieee1275.h
38542 (grub_ieee1275_milliseconds): New prototype.
38543 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
38545 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
38546 grub_ieee1275_milliseconds.
38548 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38550 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
38552 (find_options): New function.
38553 (cmain): Call find_options.
38554 * include/grub/powerpc/ieee1275/ieee1275.h
38555 (grub_ieee1275_realmode): New extern variable.
38556 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
38557 grub_map if grub_ieee1275_realmode is false.
38559 2004-12-29 Marco Gerards <metgerards@student.han.nl>
38561 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
38562 lines are inserted and make it work like readline. Reported by
38563 Vincent Pelletier <subdino2004@yahoo.fr>.
38565 2004-12-28 Marco Gerards <metgerards@student.han.nl>
38567 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
38569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
38570 `kern/powerpc/cache.S'.
38572 2004-12-27 Marco Gerards <metgerards@student.han.nl>
38574 * genmk.rb: Handle the `Program' class in the main loop. Written
38575 by Johan Rydberg <jrydberg@gnu.org>.
38576 (Program): New class.
38577 (programs): New variable.
38578 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
38579 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
38580 instead of "grub/kernel.h". Include <grub/machine/init.h>.
38581 (help_arch): Function removed.
38582 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
38583 `powerpc/libgcc.h' and `loader.h'.
38584 (pkgdata_PROGRAMS): New variable.
38585 (sbin_UTILITIES): Variable removed.
38586 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
38587 (grubof_SOURCES): Variable re-defined so it only includes the
38588 core functionality.
38589 (grubof_CFLAGS): Remove `-DGRUBOF'.
38590 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
38591 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
38592 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
38593 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
38594 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
38595 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
38596 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
38597 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
38598 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
38599 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
38600 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38601 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
38602 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
38603 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
38604 (pc_mod_CFLAGS): New variables.
38605 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
38606 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
38607 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
38608 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
38610 * include/grub/i386/pc/init.h (grub_os_area_addr)
38611 (rub_os_area_size): ... to here.
38612 * include/grub/powerpc/ieee1275/ieee1275.h
38613 (grub_ieee1275_entry_fn): Export symbol.
38614 * include/grub/powerpc/ieee1275/init.h: New file.
38615 * include/grub/powerpc/libgcc.h: Likewise.
38616 * include/grub/cache.h: Likewise.
38617 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
38618 <hollis@penguinppc.org>.
38619 * kern/dl.c: Include <grub/cache.h>.
38620 (grub_dl_flush_cache): New function.
38621 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
38623 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
38624 (grub_console_init): Removed prototypes.
38625 (grub_machine_init): Don't initialize the modules anymore.
38626 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
38628 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
38629 Macro undef removed.
38630 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
38631 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
38632 relocation `R_PPC_REL32'. Return an error when the relocation is
38634 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
38635 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
38636 * util/misc.c (grub_arch_sync_caches): Likewise.
38638 2004-12-19 Marco Gerards <metgerards@student.han.nl>
38640 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
38641 `symlist.c', add `grubof_symlist.c'.
38642 (symlist.c): Variable removed.
38643 (grubof_HEADERS): Variable added.
38644 (grubof_symlist.c): New target.
38645 (kernel_syms.lst): Use `grubof_HEADERS' instead of
38646 `kernel_img_HEADERS'.
38647 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
38648 * kern/powerpc/dl.c: New file.
38649 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
38651 (grub_arch_dl_relocate_symbols): Likewise.
38652 (grub_register_exported_symbols): Likewise.
38654 2004-12-13 Marco Gerards <metgerards@student.han.nl>
38656 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
38657 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
38658 to fail instead. Reported by Vincent Pelletier
38659 <subdino2004@yahoo.fr>.
38661 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
38662 it is not allocated. Reported by Vincent Pelletier
38663 <subdino2004@yahoo.fr>.
38665 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
38666 output so the output looks better.
38668 2004-12-04 Marco Gerards <metgerards@student.han.nl>
38670 Modulize the partition map support and add support for the amiga
38673 * commands/ls.c: Include <grub/partition.h> instead of
38674 <grub/machine/partition.h>.
38675 * kern/disk.c: Likewise.
38676 * kern/rescue.c: Likewise.
38677 * loader/i386/pc/chainloader.c: Likewise.
38678 * normal/cmdline.c: Likewise.
38679 * kern/powerpc/ieee1275/init.c: Likewise.
38680 (grub_machine_init): Call `grub_pc_partition_map_init',
38681 `grub_amiga_partition_map_init' and
38682 `grub_apple_partition_map_init'.
38683 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
38684 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
38685 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
38686 `partition.h' and `pc_partition.h'.
38687 (grub_setup_SOURCES): Remove
38688 `disk/i386/pc/partition.c'. Add `kern/partition.c',
38689 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38690 (grub_emu_SOURCES): Likewise.
38691 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
38692 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
38693 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
38694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38695 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
38696 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38697 (grubof_SOURCES): Likewise.
38698 * disk/i386/pc/partition.c: File removed.
38699 * disk/powerpc/ieee1275/partition.c: Likewise.
38700 * include/grub/powerpc/ieee1275/partition.h: Likewise.
38701 * include/grub/i386/pc/partition.h: Likewise.
38702 * kern/partition.c: New file.
38703 * partmap/amiga.c: Likewise.
38704 * partmap/apple.c: Likewise.
38705 * partmap/pc.c: Likewise.
38706 * include/grub/partition.h: Likewise..
38707 * include/grub/pc_partition.h: Likewise.
38708 * util/grub-emu.c: Include <grub/partition.h> instead of
38709 <grub/machine/partition.h>.
38710 (main): Call `grub_pc_partition_map_init',
38711 `grub_amiga_partition_map_init' and
38712 `grub_apple_partition_map_init' and deinitialize afterwards.
38713 * util/i386/pc/biosdisk.c: Include `#include
38714 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38715 `<grub/machine/partition.h>'.
38716 * util/i386/pc/grub-setup.c: Likewise.
38717 * util/i386/pc/biosdisk.c: Likewise.
38718 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
38719 partition information in case of a PC partition.
38720 * util/i386/pc/grub-setup.c: Include `#include
38721 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38722 `<grub/machine/partition.h>'.
38723 (setup): Only access the PC specific partition information in case
38726 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
38728 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
38729 (grub_longjmp): Likewise.
38730 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
38732 * normal/powerpc/setjmp.S: New file.
38733 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
38734 `normal/powerpc/setjmp.S'.
38735 (grubof_CFLAGS): Add `-DGRUBOF'.
38736 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
38737 [GRUB_UTIL && !GRUBOF].
38739 2004-11-16 Marco Gerards <metgerards@student.han.nl>
38741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
38742 property named `name'. Correctly handle the error returned by
38743 `grub_ieee1275_finddevice' if a device can not be opened.
38745 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
38747 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
38748 `actual' for negativity.
38749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38752 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38754 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
38755 (PAGE_OFFSET): New macro.
38756 (CRTC_ADDR_PORT): Likewise.
38757 (CRTC_DATA_PORT): Likewise.
38758 (START_ADDR_HIGH_REGISTER): Likewise.
38759 (START_ADDR_LOW_REGISTER): Likewise.
38760 (GRAPHICS_ADDR_PORT): Likewise.
38761 (GRAPHICS_DATA_PORT): Likewise.
38762 (READ_MAP_REGISTER): Likewise.
38763 (INPUT_STATUS1_REGISTER): Likewise.
38764 (INPUT_STATUS1_VERTR_BIT): Likewise.
38765 (page): New variable.
38766 (wait_vretrace): New function.
38767 (set_read_map): Likewise.
38768 (set_start_address): Likewise.
38769 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
38771 (check_vga_mem): Take the page into account.
38772 (write_char): Likewise.
38773 (write_cursor): Likewise.
38774 (scroll_up): Likewise. Copy the page to the page that is not
38775 shown and switch between both pages.
38776 (grub_vga_putchar): Fix off by one error.
38777 (grub_vga_cls): Wait for the vertical retrace. Take the page into
38780 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38782 Add support for iso9660 (including rockridge).
38784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38785 (iso9660_mod_SOURCES): New variable.
38786 (iso9660_mod_CFLAGS): Likewise.
38787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38788 * include/grub/fs.h (grub_iso9660_init): New prototype.
38789 * util/grub-emu.c (main): Call `grub_iso9660_init'.
38790 * fs/iso9660.c: New file.
38792 * include/grub/misc.h (grub_strncat): New prototype.
38793 * kern/misc.c (grub_strncat): New function.
38795 * fs/hfs.c (grub_hfs_mount): Translate the error
38796 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
38797 * fs/jfs.c (grub_jfs_mount): Likewise.
38798 * fs/ufs.c (grub_ufs_mount): Likewise.
38800 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
38802 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
38803 which initialized BAT registers.
38804 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
38805 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38807 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
38808 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38810 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
38811 (grub_mapclaim): Likewise.
38812 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
38813 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
38816 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
38818 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
38819 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
38820 -ffreestanding and -msoft-float.
38822 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
38824 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
38825 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
38826 set in grub_ieee1275_flags.
38828 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
38830 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
38832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
38833 grub_console_init first.
38834 Change the memory range used for grub_ieee1275_claim and
38835 grub_mm_init_region.
38836 Print an error message if the claim fails.
38837 Include <grub/misc.h>.
38839 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
38841 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
38842 Call grub_children_iterate for device nodes of type `scsi',
38844 (grub_ofdisk_open): Remove manual device alias resolution.
38845 Fix memory leak when device cannot be opened.
38846 * include/grub/powerpc/ieee1275/ieee1275.h
38847 (grub_children_iterate): New prototype.
38848 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
38850 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38851 Return -1 if args.size was -1.
38853 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38855 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
38856 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
38857 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
38858 Open Firmware's memory for it; claim memory from _start to _end.
38859 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
38860 (_end): New extern.
38861 (_start): Zero BSS from __bss_start to _end.
38862 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38864 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
38866 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
38869 -1 if args.base was -1.
38871 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
38873 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
38874 escape sequence instead of a literal ^L. Also call
38875 grub_ofconsole_gotoxy.
38877 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
38879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
38880 void * arguments to grub_addr_t. All callers updated. Also make
38881 the `result' argument optional.
38882 (grub_ieee1275_release): change void * arguments to grub_addr_t.
38883 All callers updated.
38885 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
38887 * commands/ls.c (grub_ls_list_files): Use the string following the
38888 initial ')', if present, as the filesystem path.
38889 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
38891 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
38893 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
38895 Make the source code of the menu interface more readable.
38897 * normal/menu.c: Include grub/mm.h.
38898 (TERM_WIDTH): New macro.
38899 (TERM_HEIGHT): Likewise.
38900 (TERM_INFO_HEIGHT): Likewise.
38901 (TERM_MARGIN): Likewise.
38902 (TERM_SCROLL_WIDTH): Likewise.
38903 (TERM_TOP_BORDER_Y): Likewise.
38904 (TERM_LEFT_BORDER_X): Likewise.
38905 (TERM_BORDER_WIDTH): Likewise.
38906 (TERM_MESSAGE_HEIGHT): Likewise.
38907 (TERM_BORDER_HEIGHT): Likewise.
38908 (TERM_NUM_ENTRIES): Likewise.
38909 (TERM_FIRST_ENTRY_Y): Likewise.
38910 (TERM_ENTRY_WIDTH): Likewise.
38911 (TERM_CURSOR_X): Likewise.
38912 (draw_border): Use macros instead of magic numbers.
38913 (print_entry): Likewise.
38914 (print_entries): Likewise.
38915 (run_menu): Likewise. Also, handle the key 'e'.
38916 (run_menu_entry): Ignore empty command lines.
38917 (print_message): Added a new argument EDIT. If EDIT is true,
38918 print a different message.
38919 (init_page): Likewise.
38920 (edit_menu_entry): New function. Not implemented yet.
38922 2004-09-17 Marco Gerards <metgerards@student.han.nl>
38924 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
38925 can be loaded from normal mode.
38927 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
38929 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
38930 (multiboot_mod_CFLAGS): New variables.
38931 * loader/i386/pc/linux_normal.c: New file.
38932 * loader/i386/pc/multiboot_normal.c: Likewise.
38934 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
38935 attribute `unused'.
38937 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
38938 `fdiro' to read the mode information from instead of `diro'.
38940 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
38941 looking up a symlink.
38943 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
38945 * normal/command.c (grub_command_execute): Don't parse the
38946 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
38947 flags of the command.
38949 * normal/menu.c (grub_menu_run): Fix typo.
38951 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
38953 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
38955 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
38956 `y + 1' instead of `y - 1'.
38958 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
38960 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
38962 From Hollis Blanchard <hollis@penguinppc.org>:
38963 * kern/misc.c (memmove): New alias for grub_memmove.
38964 (memcmp): New alias for grub_memcmp.
38965 (memset): New alias for grub_memset.
38966 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38967 Change "int handle" to "grub_ieee1275_phandle_t handle".
38968 * include/grub/powerpc/ieee1275/ieee1275.h
38969 (grub_ieee1275_get_property): Likewise.
38971 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
38973 Added normal mode command `chainloader' as module chain.mod, which
38974 depends on normal.mod and _chain.mod.
38976 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
38977 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
38978 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
38980 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
38981 but arguments parsing moved to ...
38982 (grub_chainloader_cmd): ... here. New function.
38983 * include/grub/i386/pc/chainloader.h: New file.
38984 * loader/i386/pc/chainloader_normal.c: Likewise.
38986 2004-09-11 Marco Gerards <metgerards@student.han.nl>
38988 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
38989 (grub_mkimage_LDFLAGS): Likewise.
38990 (grub_emu_SOURCES): Likewise.
38991 (kernel_img_HEADERS): Added fshelp.h.
38992 * fs/ext2.c: Include <grub/fshelp.h>.
38993 (FILETYPE_REG): New macro.
38994 (FILETYPE_INO_REG): Likewise.
38995 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
38997 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
38999 (grub_fshelp_node): New struct.
39000 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39002 (grub_ext2_get_file_block): Removed function.
39003 (grub_ext2_read_block): New function.
39004 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39005 This function was written.
39006 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39007 (grub_ext2_find_file): Removed function.
39008 (grub_ext2_read_symlink): New function.
39009 (grub_ext2_iterate_dir): Likewise.
39010 (grub_ext2_open): Rewritten.
39011 (grub_ext2_dir): Rewritten.
39012 * include/grub/fshelp.h: New file.
39013 * fs/fshelp.c: Likewise.
39015 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39017 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39018 (print_message): Add a missing newline.
39019 (run_menu): Added timeout support.
39020 (run_menu_entry): New local function.
39021 (grub_menu_run): Added support for booting.
39023 * kern/loader.c (grub_loader_is_loaded): New function.
39025 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39026 (grub_get_rtc): Exported.
39028 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39029 (grub_get_rtc): Exported.
39031 * include/grub/normal.h (struct grub_command_list): Remove
39032 constant from the member `command'.
39034 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39036 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39040 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39042 Add support for the JFS filesystem.
39044 * fs/jfs.c: New file.
39045 * include/grub/fs.h (grub_jfs_init): New prototype.
39046 (grub_jfs_fini): New prototype.
39047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39048 (grub_emu_SOURCES): Likewise.
39049 (pkgdata_MODULES): Add jfs.mod.
39050 (jfs_mod_SOURCES): New variable.
39051 (jfs_mod_CFLAGS): Likewise.
39052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39053 (grubof_SOURCES): Likewise.
39054 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39056 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39057 endian to the host endian.
39058 (grub_fat_utf16_to_utf8): Move function from there...
39059 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39060 the endianness of the source string anymore.
39061 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39063 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39065 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39066 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39067 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39068 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39070 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39071 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39072 for `node_found' and `it_dir'.
39073 (grub_hfs_dir): Add prototype for `dir_hook'.
39075 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39076 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39077 and `indir32' to silence a gcc warning.
39079 * include/grub/fs.h (grub_hfs_init): New prototype.
39080 (grub_hfs_fini): Likewise.
39083 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39085 Each disk device has its own id now. This is useful to make use
39086 of multiple disk devices.
39088 * include/grub/disk.h (grub_disk_dev_id): New enum.
39089 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39090 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39092 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39093 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39096 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39098 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39099 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39101 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39102 "id" which is used by the cache manager.
39104 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39107 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39109 * fs/hfs.c: New file.
39110 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39111 (grub_emu_SOURCES): Likewise.
39112 (pkgdata_MODULES): Add hfs.mod.
39113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39114 (grubof_SOURCES): Likewise.
39115 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39117 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39118 * kern/misc.c (grub_strncasecmp): Add function.
39120 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39122 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39125 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39126 (grub_ext2_dir): In case the directory entry type is unknown, read
39129 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39131 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39132 grub_load_linux instead of grub_rescue_cmd_linux as second
39133 argument of grub_rescue_register_command.
39135 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39137 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39141 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39142 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39143 `loader/powerpc/ieee1275/linux.c',
39144 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39145 * include/grub/powerpc/ieee1275/ieee1275.h
39146 (grub_ieee1275_release): New prototype.
39147 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39149 normal, boot, linux and linux_normal.
39150 * loader/powerpc/ieee1275/linux.c: New file.
39151 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39153 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39155 * normal/arg.c (grub_arg_parse): Correct error handling after
39156 reallocating the argumentlist (check if `argl' is not null instead
39157 of checking if `args' is not null).
39158 * kern/mm.c (grub_realloc): Return the same pointer when using the
39159 same region, instead of returning the header address.
39161 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39163 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39164 one block instead of two when looking for the initial partition.
39165 (grub_partition_probe): Initialize the local variable `p' with 0.
39166 Use base 10 for the grub_strtoul call.
39167 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39168 need for one local variable.
39169 (grub_strtoul): Don't add the new value to `num', instead of that
39172 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39174 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39175 (pxeboot_img_SOURCES): New variable.
39176 (pxeboot_img_ASFLAGS): Likewise.
39177 (pxeboot_img_LDFLAGS): Likewise.
39178 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39179 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39180 <lode_leroy@hotmail.com>.
39182 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39184 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39185 there was no input.
39187 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39189 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39190 the history buffer logic.
39192 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39194 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39195 (FILETYPE_INO_SYMLINK): New macros.
39196 (grub_ext2_find_file): Check if the node is a directory using the
39197 inode stat information instead of using the filetype in the
39198 dirent. Exclude the first character of an absolute symlink.
39199 (grub_ext2_dir): Mask out the filetype part of the mode member of
39202 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39204 Add support for UFS version 1 and 2. Add support for the minix
39205 filesystem version 1 and 2, both the variants with 14 and 30 long
39208 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39210 (grub_emu_SOURCES): Likewise.
39211 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39212 (ufs_mod_SOURCES): New variable.
39213 (ufs_mod_CFLAGS): Likewise.
39214 (minix_mod_SOURCES): Likewise.
39215 (minix_mod_CFLAGS): Likewise.
39216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39218 (grubof_SOURCES): Likewise.
39219 * fs/ufs.c: New file.
39220 * fs/minix.c: New file.
39221 * include/grub/fs.h (grub_ufs_init): New prototype.
39222 (grub_ufs_fini): Likewise.
39223 (grub_minix_init): Likewise.
39224 (grub_minix_fini): Likewise.
39225 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39228 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
39231 commands/ls.c, commands/terminal.c, commands/boot.c,
39232 commands/cmp.c and commands/cat.c.
39233 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
39235 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39238 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39240 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
39241 and grub_, respectively. Because the conversion is trivial and
39242 mechanical, I omit the details here. Please refer to the CVS
39243 if you need more information.
39245 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39247 * include/pupa: Renamed to ...
39248 * include/grub: ... this.
39249 * util/i386/pc/pupa-mkimage.c: Renamed to ...
39250 * util/i386/pc/grub-mkimage.c: ... this.
39251 * util/i386/pc/pupa-setup.c: Renamed to ...
39252 * util/i386/pc/grub-setup.c: ... this.
39253 * util/pupa-emu.c: Renamed to ...
39254 * util/grub-emu.c: ... this.
39256 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39258 Add support for the newworld apple macintosh (PPC). This has been
39259 tested on the powerbook 2000 only. It only adds support for
39260 generic ieee1275 functions, console and disk support. This should
39261 be easy to port to other architectures with support for Open
39264 * configure.ac: Accept the powerpc as host_cpu. In the case of
39265 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
39266 specific tests are only executed while building for the i386.
39267 Inverse test for crosscompile.
39268 * genmk.rb (Utility): Allow assembler files.
39269 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
39270 * conf/powerpc-ieee1275.rmk: New file.
39271 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
39272 * disk/powerpc/ieee1275/partition.c: Likewise.
39273 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
39274 * include/pupa/powerpc/ieee1275/console.h: Likewise.
39275 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
39276 * include/pupa/powerpc/ieee1275/time.h: Likewise.
39277 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
39278 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
39279 * include/pupa/powerpc/ieee1275/loader.h
39280 * include/pupa/powerpc/setjmp.h: Likewise.
39281 * include/pupa/powerpc/types.h: Likewise.
39282 * kern/powerpc/ieee1275/init.c: Likewise.
39283 * kern/powerpc/ieee1275/openfw.c: Likewise.
39284 * term/powerpc/ieee1275/ofconsole.c: Likewise.
39286 These files were written by Johan Rydberg
39287 (jrydberg@night.trouble.net) and I only modified them slightly.
39289 * boot/powerpc/ieee1275/cmain.c: New file.
39290 * boot/powerpc/ieee1275/crt0.S: Likewise.
39291 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
39292 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
39294 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
39296 * Makefile.in: Update copyright.
39297 * genmodsrc.sh: Likewise.
39298 * gensymlist.sh: Likewise.
39299 * term/i386/pc/vga.c: Indent correctly.
39301 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
39302 bugreporting address.
39303 * util/i386/pc/pupa-setup.c (usage): Likewise,
39304 (main): Call pupa_ext2_init and pupa_ext2_fini.
39306 * fs/fat.c (log2): Renamed to ...
39307 (fat_log2): ... this.
39308 All callers changed.
39309 * kern/misc.c (memcpy): Alias to pupa_memmove.
39310 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
39312 * util/console.c (pupa_ncurses_fini): Return 0.
39314 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
39315 Move fail label here.
39316 [__GNU__]: Don't warn when using stat.
39317 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
39318 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
39319 long int. Use strtol instead of strtoul.
39321 2004-03-14 Marco Gerards <metgerards@student.han.nl>
39323 * commands/boot.c: New file.
39324 * commands/cat.c: Likewise.
39325 * commands/cmp.c: Likewise.
39326 * commands/ls.c: Likewise.
39327 * commands/terminal.c: Likewise.
39328 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
39329 (pupa_register_command): Changed interface to match the new
39331 (pupa_command_execute): Changed (almost rewritten) so it uses
39332 pupa_split_command. Added support for setting variables using the
39334 (rescue_command): Changed to work with the new argument parser.
39335 (terminal_command): Moved from here to commands/terminal.c.
39336 (set_command): New function.
39337 (unset_command): New function.
39338 (insmod_command): New function.
39339 (rmmod_command): New function.
39340 (lsmod_command): New function.
39341 (pupa_command_init): Don't initialize the command terminal
39342 anymore. Initialize the commands set, unset, insmod, rmmod and
39344 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
39345 (kernel_img_HEADERS): Add arg.h and env.h.
39346 (pupa_mkimage_LDFLAGS): Add kern/env.c.
39347 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
39348 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
39350 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
39352 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
39353 (boot_mod_SOURCES): New variable.
39354 (terminal_mod_SOURCES): Likewise.
39355 (ls_mod_SOURCES): Likewise.
39356 (cmp_mod_SOURCES): Likewise.
39357 (cat_mod_SOURCES): Likewise.
39359 * normal/arg.c: New file.
39360 * kern/env.c: Likewise.
39361 * include/pupa/arg.h: Likewise.
39362 * include/pupa/env.h: Likewise.
39363 * font/manager.c (font_command): Changed to match argument parsing
39365 (PUPA_MOD_INIT): Likewise.
39366 * hello/hello.c (pupa_cmd_hello): Likewise.
39367 (PUPA_MOD_INIT): Likewise.
39368 * include/pupa/disk.h: Include <pupa/device.h>.
39369 (pupa_print_partinfo): New prototype.
39370 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
39371 (pupa_dl_get_prefix): Likewise.
39372 * include/pupa/misc.h: Include <pupa/err.h>.
39373 (pupa_isgraph): New prototype.
39374 (pupa_isdigit): Likewise.
39375 (pupa_split_cmdline): Likewise.
39376 * include/pupa/normal.h: Include <pupa/arg.h>.
39377 (pupa_command): Changed the prototype of the member `func' to
39378 match the argument parsing interface. Added member `options'.
39379 (pupa_register_command): Updated to match function.
39380 (pupa_arg_parse): New prototype.
39381 (pupa_hello_init) [PUPA_UTIL]: New prototype.
39382 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
39383 (pupa_ls_init) [PUPA_UTIL]: Likewise.
39384 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
39385 (pupa_cat_init) [PUPA_UTIL]: Likewise.
39386 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
39387 (pupa_boot_init) [PUPA_UTIL]: Likewise.
39388 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
39389 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
39390 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
39391 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
39392 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
39393 * kern/disk.c: Include <pupa/file.h>.
39394 (pupa_print_partinfo): New function.
39395 * kern/dl.c: Include <pupa/env.h>.
39396 (pupa_dl_dir): Variable removed.
39397 (pupa_dl_load): Use the environment variable `prefix' instead of
39398 the variable pupa_dl_dir.
39399 (pupa_dl_set_prefix): Function removed.
39400 (pupa_dl_get_prefix): Likewise.
39401 * kern/i386/pc/init.c: Include <pupa/env.h>.
39402 (pupa_machine_init): Use the environment variable `prefix' instead of
39403 using pupa_dl_set_prefix to set the prefix.
39404 * kern/main.c: Include <pupa/env.h>.
39405 (pupa_set_root_dev): Use the environment variable `prefix' instead of
39406 using pupa_dl_get_prefix to get the prefix.
39407 * kern/misc.c: Include <pupa/env.h>.
39408 (pupa_isdigit): New function.
39409 (pupa_isgraph): Likewise.
39410 (pupa_ftoa): Likewise.
39411 (pupa_vsprintf): Added support for printing values of the type
39412 `double'. Make it possible to format variable output when using
39413 formatting like `%1.2%f'.
39414 (pupa_split_cmdline): New function.
39415 * kern/rescue.c: Include <pupa/env.h>.
39416 (next_word): Removed function.
39417 (pupa_rescue_cmd_prefix): Likewise.
39418 (pupa_rescue_cmd_set): New function.
39419 (pupa_rescue_cmd_unset): New function.
39420 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
39421 split the command line instead of splitting it here. Added
39422 support for setting variables using the syntax `foo=bar'. Don't
39423 initialize the prefix command anymore. Initialized the set and
39425 * normal/cmdline.c: Include <pupa/env.h>.
39426 (pupa_tab_complete): Added prototypes for print_simple_completion,
39427 print_partition_completion, add_completion, iterate_commands,
39428 iterate_dev, iterate_part and iterate_dir. Moved code to print
39429 partition information from here to kern/disk.c.
39430 (pupa_cmdline_run): Don't check if the function exists anymore.
39431 * normal/main.c: Include <pupa/env.h>.
39432 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
39433 instead of using pupa_dl_get_prefix to get the prefix.
39434 * term/i386/pc/vga.c: Include <pupa/arg.h>.
39435 (check_vga_mem): Cast pointers to `void *' to silence a gcc
39437 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
39438 (pupa_vga_setcolor): Declare unused variables with `__attribute__
39439 ((unused))' to silence a gcc warning.
39440 (pupa_vga_setcolor): Likewise.
39441 (debug_command): Changed to match argument parsing
39443 * util/pupa-emu.c: Include <pupa/env.h>.
39444 (options): Added 0's for unused fields to silence a gcc warning.
39446 (main): Use the environment variable `prefix' instead of using
39447 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
39448 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
39451 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
39452 * util/misc.c: Include <malloc.h>.
39453 (pupa_malloc): Rewritten so errors are correctly reported.
39454 (pupa_realloc): Likewise.
39455 (pupa_memalign): Likewise.
39456 (pupa_mm_init_region): Declare unused variables with
39457 `__attribute__ ((unused))' to silence a gcc warning.
39458 * normal/i386/setjmp.S: Remove tab at the end of the file to
39459 silence a gcc warning.
39460 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
39461 variables with `__attribute__ ((unused))' to silence a gcc
39463 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
39464 local variable i unsigned to silence a gcc warning.
39466 * kern/term.c: Include <pupa/misc.h>.
39467 (pupa_more_lines): New variable.
39468 (pupa_more): Likewise.
39469 (pupa_putcode): When the pager is active pause at the end of every
39471 (pupa_set_more): New function.
39472 * include/pupa/term.h (pupa_set_more): New prototype.
39475 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
39477 Now this project is GRUB 2 rather than PUPA. The location of
39478 the CVS repository was moved to GRUB's.
39480 * configure.ac: Use bug-grub as the reporting address.
39481 Use GRUB instead of PUPA.
39482 Change the version number to 1.90.
39484 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
39486 * genkernsyms.sh: Updated copyright information.
39487 * genmk.rb: Likewise.
39488 * genmodsrc.sh: Likewise.
39489 * gensymlist.sh: Likewise.
39490 * boot/i386/pc/boot.S: Likewise.
39491 * boot/i386/pc/diskboot.S: Likewise.
39492 * disk/i386/pc/biosdisk.c: Likewise.
39493 * disk/i386/pc/partition.c: Likewise.
39494 * font/manager.c: Likewise.
39495 * fs/ext2.c: Likewise.
39496 * fs/fat.c: Likewise.
39497 * include/pupa/boot.h: Likewise.
39498 * include/pupa/device.h: Likewise.
39499 * include/pupa/disk.h: Likewise.
39500 * include/pupa/dl.h: Likewise.
39501 * include/pupa/elf.h: Likewise.
39502 * include/pupa/err.h: Likewise.
39503 * include/pupa/file.h: Likewise.
39504 * include/pupa/font.h: Likewise.
39505 * include/pupa/fs.h: Likewise.
39506 * include/pupa/kernel.h: Likewise.
39507 * include/pupa/loader.h: Likewise.
39508 * include/pupa/misc.h: Likewise.
39509 * include/pupa/mm.h: Likewise.
39510 * include/pupa/net.h: Likewise.
39511 * include/pupa/normal.h: Likewise.
39512 * include/pupa/rescue.h: Likewise.
39513 * include/pupa/setjmp.h: Likewise.
39514 * include/pupa/symbol.h: Likewise.
39515 * include/pupa/term.h: Likewise.
39516 * include/pupa/types.h: Likewise.
39517 * include/pupa/i386/setjmp.h: Likewise.
39518 * include/pupa/i386/types.h: Likewise.
39519 * include/pupa/i386/pc/biosdisk.h: Likewise.
39520 * include/pupa/i386/pc/boot.h: Likewise.
39521 * include/pupa/i386/pc/console.h: Likewise.
39522 * include/pupa/i386/pc/init.h: Likewise.
39523 * include/pupa/i386/pc/kernel.h: Likewise.
39524 * include/pupa/i386/pc/linux.h: Likewise.
39525 * include/pupa/i386/pc/loader.h: Likewise.
39526 * include/pupa/i386/pc/memory.h: Likewise.
39527 * include/pupa/i386/pc/multiboot.h: Likewise.
39528 * include/pupa/i386/pc/partition.h: Likewise.
39529 * include/pupa/i386/pc/time.h: Likewise.
39530 * include/pupa/i386/pc/vga.h: Likewise.
39531 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
39532 * include/pupa/util/getroot.h: Likewise.
39533 * include/pupa/util/misc.h: Likewise.
39534 * include/pupa/util/resolve.h: Likewise.
39535 * kern/device.c: Likewise.
39536 * kern/disk.c: Likewise.
39537 * kern/dl.c: Likewise.
39538 * kern/err.c: Likewise.
39539 * kern/file.c: Likewise.
39540 * kern/fs.c: Likewise.
39541 * kern/loader.c: Likewise.
39542 * kern/main.c: Likewise.
39543 * kern/misc.c: Likewise.
39544 * kern/mm.c: Likewise.
39545 * kern/rescue.c: Likewise.
39546 * kern/term.c: Likewise.
39547 * kern/i386/dl.c: Likewise.
39548 * kern/i386/pc/init.c: Likewise.
39549 * kern/i386/pc/lzo1x.S: Likewise.
39550 * kern/i386/pc/startup.S: Likewise.
39551 * loader/i386/pc/chainloader.c: Likewise.
39552 * loader/i386/pc/linux.c: Likewise.
39553 * loader/i386/pc/multiboot.c: Likewise.
39554 * normal/cmdline.c: Likewise.
39555 * normal/command.c: Likewise.
39556 * normal/main.c: Likewise.
39557 * normal/menu.c: Likewise.
39558 * normal/i386/setjmp.S: Likewise.
39559 * term/i386/pc/console.c: Likewise.
39560 * term/i386/pc/vga.c: Likewise.
39561 * util/console.c: Likewise.
39562 * util/genmoddep.c: Likewise.
39563 * util/misc.c: Likewise.
39564 * util/pupa-emu.c: Likewise.
39565 * util/resolve.c: Likewise.
39566 * util/unifont2pff.rb: Likewise.
39567 * util/i386/pc/biosdisk.c: Likewise.
39568 * util/i386/pc/getroot.c: Likewise.
39569 * util/i386/pc/pupa-mkimage.c: Likewise.
39570 * util/i386/pc/pupa-setup.c: Likewise.
39572 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
39574 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
39575 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
39576 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
39577 reading and reset it after reading.
39578 (pupa_ext2_close): Return PUPA_ERR_NONE.
39580 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
39582 (struct linux_kernel_header): Add kernel_version and
39584 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
39585 pupa_file_read succeeds.
39586 (pupa_rescue_cmd_initrd): Implement.
39588 2003-12-03 Marco Gerards <metgerards@student.han.nl>
39590 * fs/ext2.c (pupa_ext2_label): New function.
39591 (pupa_ext2_fs): Added label.
39592 * fs/fat.c (pupa_fat_label): New function.
39593 (pupa_fat_fs): Added label.
39594 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
39596 * kern/misc.c (pupa_strndup): New function.
39597 * include/pupa/misc.h (pupa_strndup): New prototype.
39599 * include/pupa/normal.h: Include <pupa/err.h>.
39600 (pupa_set_history): New prototype.
39601 (pupa_iterate_commands): New prototype.
39602 * normal/cmdline.c: Include <pupa/machine/partition.h>,
39603 <pupa/disk.h>, <pupa/file.h>.
39604 (hist_size): New variable.
39605 (hist_lines): Likewise.
39606 (hist_end): Likewise.
39607 (hist_used): Likewise.
39608 (pupa_set_history): New function.
39609 (pupa_history_get): Likewise.
39610 (pupa_history_add): Likewise.
39611 (pupa_history_replace): Likewise.
39612 (pupa_tab_complete): Likewise.
39613 (pupa_cmdline_run): Added tab completion and history buffer. Tab
39614 completion shows partitionnames while completing partitions, this
39615 feature was suggested by Jeff Bailey.
39616 * normal/command.c (pupa_iterate_commands): New function.
39617 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
39618 (pupa_normal_init): Initialize history buffer.
39619 (PUPA_MOD_INIT): Likewise.
39620 (pupa_normal_fini): Free the history buffer.
39621 (PUPA_MOD_FINI): Likewise.
39623 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
39626 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
39627 * configure.ac [i386]: Check for regparam bug.
39628 (NESTED_FUNC_ATTR) [! i386]: Defined.
39630 2003-11-17 Marco Gerards <metgerards@student.han.nl>
39632 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
39633 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
39634 (pupa_emu_SOURCES): New variable.
39635 (pupa_emu_LDFLAGS): Likewise.
39636 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
39637 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
39638 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
39639 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39640 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
39641 (pupa_jmp_buf): New typedef.
39642 (pupa_setjmp) [PUPA_UTIL]: New macro.
39643 (pupa_longjmp) [PUPA_UTIL]: Likewise.
39644 * include/pupa/term.h (struct pupa_term): New member `refresh'.
39645 (pupa_refresh): New prototype.
39646 * include/pupa/util/getroot.h: New file.
39647 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
39649 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
39650 (pupa_rescue_cmd_cat): Likewise.
39651 (pupa_rescue_cmd_ls): Likewise.
39652 (pupa_rescue_cmd_testload): Likewise.
39653 (pupa_rescue_cmd_lsmod): Likewise.
39654 * normal/cmdline.c (pupa_cmdline_get): Likewise.
39655 * normal/menu.c (run_menu): Likewise.
39656 * kern/term.c (pupa_cls): Likewise.
39657 (pupa_refresh): New function.
39658 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
39659 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39660 * util/console.c: New file.
39662 * util/i386/pc/getroot.c: New file.
39663 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
39664 (pupa_putchar): New function.
39665 (pupa_refresh): Likewise.
39666 (xgetcwd): Function moved to ...
39667 (strip_extra_slashes): Likewise.
39668 (get_prefix): Likewise.
39669 * util/i386/pc/getroot.c: ... here.
39670 (find_root_device): Function moved and renamed to...
39671 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
39672 Changed all callers.
39673 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
39675 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
39676 Changed all callers.
39677 * util/misc.c (pupa_memalign): New function.
39678 (pupa_mm_init_region): Likewise.
39679 (pupa_register_exported_symbols): Likewise.
39680 (pupa_putchar): Function removed.
39681 * util/pupa-emu.c: New file.
39683 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
39685 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
39686 (_multiboot_mod_SOURCES): New variable.
39687 (_multiboot_mod_CFLAGS): Likewise.
39688 * loader/i386/pc/multiboot.c: New file.
39689 * include/pupa/i386/pc/multiboot.h: Likewise.
39690 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
39691 (pupa_multiboot_real_boot): New function.
39692 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
39693 (pupa_multiboot_real_boot): New prototype.
39694 (pupa_rescue_cmd_multiboot): Likewise
39695 (pupa_rescue_cmd_module): Likewise.
39697 * kern/loader.c (pupa_loader_set): Continue when
39698 pupa_loader_unload_func() fails.
39699 (pupa_loader_unset): New function.
39700 * include/pupa/loader.h (pupa_loader_unset): New prototype.
39702 * kern/misc.c (pupa_stpcpy): New function.
39703 * include/pupa/misc.h (pupa_stpcpy): New prototype.
39705 2003-11-12 Marco Gerards <metgerards@student.han.nl>
39707 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
39708 for available extensions.
39710 * include/pupa/i386/pc/time.h: New file.
39711 * kern/disk.c: Include <pupa/machine/time.h>.
39712 (PUPA_CACHE_TIMEOUT): New macro.
39713 (pupa_last_time): New variable.
39714 (pupa_disk_open): Flush the cache when there was a timeout.
39715 (pupa_disk_close): Reset the timer.
39716 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
39718 * util/misc.c: Include <sys/times.h>
39719 (pupa_get_rtc): New function.
39721 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
39723 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
39725 (pupa_ext2_get_file_block): Use blocks member.
39727 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
39728 first block. Return -1 instead of pupa_errno on error.
39730 2003-10-27 Marco Gerards <metgerards@student.han.nl>
39732 * README: In the pupa-mkimage example use _chain instead of chain
39733 and ext2 instead of fat.
39734 * TODO: Replace ext2fs with jfs as an example. Add an item for
39735 adding journal playback for ext2fs.
39736 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
39737 (pkgdata_MODULES): Added ext2.mod.
39738 (ext2_mod_SOURCES): New variable.
39739 (ext2_mod_CFLAGS): Likewise.
39740 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
39741 * include/pupa/misc.h (pupa_strncpy): New prototype.
39742 (pupa_strcat): Likewise.
39743 (pupa_strncmp): Likewise.
39744 * kern/misc.c (pupa_strcat): Enable function.
39745 (pupa_strncpy): New function.
39746 (pupa_strncmp): Likewise.
39747 * fs/ext2.c: New file.
39749 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
39750 when the read failed before retrying.
39751 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
39752 (_FILE_OFFSET_BITS): Likewise.
39753 * configure.ac: Added AC_SYS_LARGEFILE.
39755 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39757 * genmk.rb (PModule#rule): Make sure to get only symbol names
39758 from the output of nm.
39759 Reported by Robert Millan <rmh.grub@aybabtu.com>.
39761 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39763 I forgot to check in these changes for a long time. This adds
39764 incomplete support for VGA console, and this is still very
39765 buggy. Also, a lot of consideration is required for I18N,
39766 UNICODE, and VGA font issues. Therefore, assume that this is
39767 such that "better than nothing".
39769 * font/manager.c: New file.
39770 * include/pupa/font.h: Likewise.
39771 * include/pupa/i386/pc/vga.h: Likewise.
39772 * term/i386/pc/vga.c: Likewise.
39773 * util/unifont2pff.rb: Likewise.
39775 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
39776 (pkgdata_MODULES): Added vga.mod and font.mod.
39777 (vga_mod_SOURCES): New variables.
39778 (vga_mod_CFLAGS): Likewise.
39779 (font_mod_SOURCES): Likewise.
39780 (font_mod_CFLAGS): Likewise.
39782 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
39784 * include/pupa/term.h: Include pupa/err.h.
39785 (struct pupa_term): Added init and fini.
39786 Changed the argument of putchar to pupa_uint32_t.
39788 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
39789 (pupa_console_real_putchar): New prototype.
39790 (pupa_console_putchar): Removed.
39791 (pupa_console_checkkey): Exported.
39792 (pupa_console_getkey): Likewise.
39794 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
39797 * kern/term.c (pupa_term_set_current): Rewritten.
39798 (pupa_putchar): Likewise.
39799 (pupa_putcode): New function.
39801 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
39802 (pupa_console_real_putchar): ... this.
39803 (pupa_vga_set_mode): New function.
39804 (pupa_vga_get_font): Likewise.
39806 * normal/command.c: Include pupa/term.h.
39807 (terminal_command): New function.
39808 (pupa_command_init): Register the command "terminal".
39810 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
39811 (DISP_UP): Likewise.
39812 (DISP_RIGHT): Likewise.
39813 (DISP_DOWN): Likewise.
39814 (DISP_HLINE): Likewise.
39815 (DISP_VLINE): Likewise.
39816 (DISP_UL): Likewise.
39817 (DISP_UR): Likewise.
39818 (DISP_LL): Likewise.
39819 (DISP_LR): Likewise.
39821 * term/i386/pc/console.c (pupa_console_putchar): New function.
39823 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
39825 * util/resolve.c (pupa_util_resolve_dependencies): BUG
39826 FIX. Reverse the path_list.
39828 * include/pupa/normal.h: Export pupa_register_command and
39829 pupa_unregister_command.
39831 * hello/hello.c (pupa_cmd_hello): New module.
39832 * conf/i386-pc.rmk: Added hello.mod.
39834 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
39836 * kern/i386/pc/lzo1x.S: New file.
39838 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
39839 (compress_kernel): New variable.
39840 (generate_image): Heavily modified to support compressing a
39841 large part of the core image.
39843 * util/misc.c (pupa_util_read_image): Fix a file descriptor
39845 (pupa_util_load_image): New function.
39847 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
39848 (pupa_compressed_size): New variable.
39849 (codestart): Enable Gate A20 here.
39850 Decompress the compressed part of the core image.
39851 Rearrange the code to put functions and variables which are
39852 required for initialization in the non-compressed part.
39855 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
39858 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
39860 * include/pupa/i386/pc/kernel.h
39861 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
39862 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
39863 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
39864 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
39865 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
39867 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
39869 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
39870 (Utility#rule): Likewise.
39872 * configure.ac: Check if LZO is available.
39874 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
39876 * include/pupa/normal.h: New file.
39877 * include/pupa/setjmp.h: Likewise.
39878 * include/pupa/i386/setjmp.h: Likewise.
39879 * normal/cmdline.c: Likewise.
39880 * normal/command.c: Likewise.
39881 * normal/main.c: Likewise.
39882 * normal/menu.c: Likewise.
39883 * normal/i386/setjmp.S: Likewise.
39885 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
39886 (pupa_rescue_cmd_initrd): Likewise.
39888 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
39891 * kern/i386/pc/startup.S (translation_table): New variable.
39892 (translate_keycode): New function.
39893 (pupa_console_getkey): Call translate_keycode.
39895 * kern/rescue.c (attempt_normal_mode): New function.
39896 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
39897 it failed, print a message.
39899 * kern/mm.c (pupa_real_malloc): Print more information when a
39900 free magic is broken.
39901 (pupa_free): If the first free header is not free actually, set
39904 * kern/main.c (pupa_load_normal_mode): Just load the module
39906 (pupa_main): Don't print the message
39907 "Entering into rescue mode..." here.
39909 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
39911 (pupa_rescue_cmd_initrd): Likewise.
39912 (pupa_rescue_cmd_initrd): Likewise.
39914 * include/pupa/symbol.h (FUNCTION): Specify the type.
39915 (VARIABLE): Likewise.
39917 * include/pupa/err.h (pupa_err_t): Added
39918 PUPA_ERR_UNKNOWN_COMMAND.
39920 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
39921 (pupa_dl_get_prefix): Likewise.
39923 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
39924 Added _chain.mod and _linux.mod instead of chain.mod and
39926 (chain_mod_SOURCES): Renamed to ...
39927 (_chain_mod_SOURCES): ... this.
39928 (chain_mod_CFLAGS): Renamed to ...
39929 (_chain_mod_CFLAGS): ... this.
39930 (linux_mod_SOURCES): Renamed to ...
39931 (_linux_mod_SOURCES): ... this.
39932 (linux_mod_CFLAGS): Renamed to ...
39933 (_linux_mod_CFLAGS): ... this.
39934 (normal_mod_SOURCES): New variable.
39935 (normal_mod_CFLAGS): Likewise.
39936 (normal_mod_ASFLAGS): Likewise.
39938 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
39940 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
39943 * kern/dl.c (pupa_dl_ref): Refer depending modules
39945 (pupa_dl_unref): Unrefer depending modules recursively.
39946 Don't call pupa_dl_unload implicitly, because PUPA can crash if
39947 a module is unloaded before one depending on that module is
39949 (pupa_dl_unload): Unload depending modules explicitly,
39952 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
39954 * include/pupa/i386/pc/linux.h: New file.
39955 * loader/i386/pc/linux.c: Likewise.
39957 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
39959 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
39960 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
39961 of PUPA_CHAINLOADER_BOOT_SECTOR.
39963 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
39964 (pupa_linux_prot_size): New variable.
39965 (pupa_linux_tmp_addr): Likewise.
39966 (pupa_linux_real_addr): Likewise.
39967 (pupa_linux_boot_zimage): New function.
39968 (pupa_linux_boot_bzimage): Likewise.
39970 * kern/i386/pc/init.c (struct mem_region): New structure.
39971 (MAX_REGIONS): New macro.
39972 (mem_regions): New variable.
39973 (num_regions): Likewise.
39974 (pupa_os_area_addr): Likewise.
39975 (pupa_os_area_size): Likewise.
39976 (pupa_lower_mem): Likewise.
39977 (pupa_upper_mem): Likewise.
39978 (add_mem_region): New function.
39979 (compact_mem_regions): Likewise.
39980 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
39981 the size of the conventional memory and that of so-called upper
39982 memory (before the first memory hole).
39983 Instead of adding each found region to free memory, use
39984 add_mem_region and add them after removing overlaps.
39985 Also, add only 1/4 of the upper memory to free memory. The rest
39986 is used for loading OS images. Maybe this is ad hoc, but this
39987 makes it much easier to relocate OS images when booting.
39989 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
39990 (pupa_enter_rescue_mode): Don't register initrd and module.
39992 * kern/mm.c: Include pupa/dl.h.
39994 * kern/main.c: Include pupa/file.h and pupa/device.h.
39996 * kern/loader.c (pupa_loader_load_module_func): Removed.
39997 (pupa_loader_load_module): Likewise.
39999 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40002 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40003 (pupa_linux_tmp_addr): Likewise.
40004 (pupa_linux_real_addr): Likewise.
40005 (pupa_linux_boot_zimage): Likewise.
40006 (pupa_linux_boot_bzimage): Likewise.
40008 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40009 (pupa_upper_mem): Likewise.
40010 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40011 module is too dangerous.
40013 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40014 (pupa_os_area_size): Likewise.
40015 (pupa_loader_set): Remove the first argument. Loader doesn't
40016 manage modules or initrd any longer.
40017 (pupa_loader_load_module): Removed.
40019 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40020 (linux_mod_SOURCES): New variable.
40021 (linux_mod_CFLAGS): Likewise.
40023 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40025 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40026 the length of a blocklist correctly.
40028 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40029 Use ioctl only if the OS file is a block device.
40030 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40031 not very useful for normal files.
40033 * kern/main.c (pupa_set_root_dev): New function.
40034 (pupa_load_normal_mode): Likewise.
40035 (pupa_main): Call those above.
40037 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40040 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40042 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40044 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40045 (setup): Configure the installed partition information and the
40048 * loader/i386/pc/chainloader.c (my_mod): New variable.
40049 (pupa_chainloader_unload): New function.
40050 (pupa_rescue_cmd_chainloader): Refer itself.
40051 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40053 * kern/i386/pc/startup.S (install_partition): Removed.
40054 (version_string): Likewise.
40055 (config_file): Likewise.
40056 (pupa_install_dos_part): New variable.
40057 (pupa_install_bsd_part): Likewise.
40058 (pupa_prefix): Likewise.
40059 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40061 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40063 (make_install_device): New function.
40064 (pupa_machine_init): Set the dl prefix.
40066 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40067 (buf): Renamed to ...
40068 (linebuf): ... this.
40069 (pupa_rescue_cmd_prefix): New function.
40070 (pupa_rescue_cmd_insmod): Likewise.
40071 (pupa_rescue_cmd_rmmod): Likewise.
40072 (pupa_rescue_cmd_lsmod): Likewise.
40073 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40076 * kern/mm.c (pupa_memalign): If failed even after invalidating
40077 disk caches, unload unneeded modules and retry.
40079 * kern/misc.c (pupa_memmove): New function.
40080 (pupa_memcpy): Removed.
40081 (pupa_strcpy): New function.
40082 (pupa_itoa): Made static.
40084 * kern/dl.c (pupa_dl_iterate): New function.
40085 (pupa_dl_ref): Likewise.
40086 (pupa_dl_unref): Likewise.
40087 (pupa_dl_unload): Return if succeeded or not.
40088 (pupa_dl_unload_unneeded): New function.
40089 (pupa_dl_unload_all): Likewise.
40090 (pupa_dl_init): Renamed to ...
40091 (pupa_dl_set_prefix): ... this.
40092 (pupa_dl_get_prefix): New function.
40094 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40095 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40096 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40097 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40098 (pupa_install_dos_part): Declared.
40099 (pupa_install_bsd_part): Likewise.
40100 (pupa_prefix): Likewise.
40101 (pupa_boot_drive): Likewise.
40103 * include/pupa/types.h: Fix a typo.
40105 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40107 (pupa_memmove): Declared.
40108 (pupa_strcpy): Likewise.
40110 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40111 pupa_mod_init takes one argument, its own module.
40112 (pupa_dl_unload_unneeded): Declared.
40113 (pupa_dl_unload_all): Likewise.
40114 (pupa_dl_ref): Likewise.
40115 (pupa_dl_unref): Likewise.
40116 (pupa_dl_iterate): Likewise.
40117 (pupa_dl_init): Renamed to ...
40118 (pupa_dl_set_prefix): ... this.
40119 (pupa_dl_get_prefix): Declared.
40121 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40122 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40124 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40125 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40127 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40128 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40130 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40132 * util/i386/pc/pupa-setup.c (setup): Define the internal
40133 function find_first_partition_start at the top level, because GCC
40134 3.0.x cannot compile internal functions in deeper scopes
40136 (find_root_device): Use lstat instead of stat.
40137 Don't follow symbolic links.
40138 Fix the path-constructing code.
40140 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40141 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40142 by a BLKGETSIZE ioctl first, because block devices don't fill
40143 the member st_mode of the structure stat on Linux.
40144 [__linux__] (linux_find_partition): Use a temporary buffer
40145 REAL_DEV for the working space. Copy it to DEV before returning.
40146 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40147 buffer cache consistent.
40148 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40149 strncmp. The previous value was merely wrong.
40150 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40152 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40153 FAT size is 12. The previous value was merely wrong.
40155 * kern/main.c (pupa_main): Don't split the starting message from
40158 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40159 LF, because BIOS goes crazy about character attributes in this
40162 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40164 * include/i386/pc/util/biosdisk.h: New file.
40165 * util/i386/pc/biosdisk.c: Likewise.
40166 * util/i386/pc/pupa-setup.c: Likewise.
40168 * Makefile.in (INCLUDE_DISTFILES): Added
40169 include/pupa/i386/pc/util/biosdisk.h.
40170 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40171 directory util/i386/pc.
40172 (install-local): Added a rule for sbin_UTILITIES.
40173 (uninstall): Likewise.
40175 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40177 * util/misc.c (xrealloc): New function.
40178 (pupa_malloc): Likewise.
40179 (pupa_free): Likewise.
40180 (pupa_realloc): Likewise.
40181 (pupa_stop): Likewise.
40182 (pupa_putchar): Likewise.
40184 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40186 * include/pupa/util/misc.h (xrealloc): Declared.
40188 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40190 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40191 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40193 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40194 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40196 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40197 way should be implemented.
40198 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40201 the size of NAME for safety.
40202 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40205 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40206 (pupa_setup_SOURCES): Likewise.
40208 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40210 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40212 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40213 bunch of pushl's from pusha, because this destroys the return
40216 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40218 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40219 This means that any missing prototypes could be fatal. Also, you
40220 must take care when writing assembly code. See the comments at
40221 the beginning of startup.S, for more details.
40223 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40224 compilation mechanism.
40225 (pupa_chainloader_real_boot): Likewise.
40226 (pupa_biosdisk_rw_int13_extensions): Likewise.
40227 (pupa_biosdisk_rw_standard): Likewise.
40228 (pupa_biosdisk_check_int13_extensions): Likewise.
40229 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
40230 (pupa_biosdisk_get_diskinfo_standard): Likewise.
40231 (pupa_get_memsize): Likewise.
40232 (pupa_get_mmap_entry): Likewise.
40233 (pupa_console_putchar): Likewise.
40234 (pupa_console_setcursor): Likewise.
40235 (pupa_getrtsecs): Use pushl instead of push.
40237 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
40238 memory instead of the stack for a mmap entry, because some
40239 BIOSes may ignore the maximum size and overflow.
40241 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40243 * genmk.rb (PModule#rule): Compile automatically generated
40244 sources with module-specific CFLAGS as well as other sources.
40246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40248 * configure.ac: Check ld.
40249 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40250 respectively, before checking endianness and sizes.
40252 * Makefile.in (LD): New variable.
40254 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40256 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40258 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40260 * Changelog: New file.