]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
[grub2.git] / ChangeLog
1 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2
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.
9
10 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11
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.
15
16 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
19
20 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
23
24 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * unicode: Import Unicode 6.0 data.
27
28 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
31 outside of range.
32
33 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
34
35 Avoid cutting in the middle of UTF-8 character.
36
37 * include/grub/charset.h (grub_getend): New function.
38 * grub-core/script/function.c (grub_script_function_find): Use
39 grub_getend.
40 * grub-core/normal/completion.c (add_completion): Likewise.
41
42 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
43
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.
49
50 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
51
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.
55 Check length.
56
57 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
58
59 Make better Unicode-compliant and unify some UTF-8 code pathes.
60
61 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
62 valid character.
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
67 valid character.
68
69 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
72
73 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * docs/grub.texi (Filesystems): Mention AFS.
76
77 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * docs/grub.texi (Filesystems): Clarify restrictions.
80 (Regexp): Mention non-Unicode regexp behaviour.
81 (Other): Mention non-Unicode matching behaviour.
82
83 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
84
85 Make HFS implementation use MacRoman.
86
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.
93 Set case_insensitive.
94
95 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
98
99 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
100
101 Integrate hints into autogeneration scripts.
102
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.
108 (cache): New var.
109 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
110 * grub-core/commands/search_wrap.c (options): Add platform-specific
111 hint options.
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.
118 Set device_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.
137 (main): Likewise.
138 * util/ieee1275/devicemap.c: Removed.
139 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
140 updated.
141 (grub_util_devname_to_ofpath): Return NULL on failure.
142
143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
144 resource leak.
145 * util/getroot.c (grub_util_pull_device): Fix memory leak.
146
147 * po/POTFILES.in: Regenerated.
148
149 Allow purely long options
150
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.
155 All users updated
156
157 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
158
159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
160 Restructure to avoid warning.
161
162 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
163
164 * util/grub-install.in: Account for possible escaped comma in device
165 name.
166
167 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
170 channel.
171
172 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
173
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.
177
178 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
181 unaligned segments.
182
183 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
186 prefix.
187 (grub_ofdisk_open): Check and discard ieee1275 prefix.
188 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
189 Add ieee1275 prefix.
190
191 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * docs/grub.texi (Filesystems): Update.
194
195 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
196
197 Support odc, newc and bigendian cpio formats.
198
199 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
200 * grub-core/Makefile.core.def (newc): New module.
201 (odc): Likewise.
202 (cpio_be): Likewise.
203 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
204 (MAGIC): Likewise.
205 (MAGIC2): Likewise.
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.
225
226 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
227
228 Fix handling of tar numbers occupying the whole field.
229
230 * grub-core/fs/cpio.c (read_number): New function.
231 (grub_cpio_find_file): Use read_number instead of strtoull.
232
233 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
236 occupying the whole field size.
237
238 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
239
240 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
241
242 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
245
246 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
247
248 * grub-core/Makefile.core.def (lzma_decompress): Add missing
249 TARGET_IMG_LDFLAGS.
250
251 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * util/getroot.c (ESCAPED_PATH_MAX): New define.
254 (mountinfo_entry): Increase the field size to take escaping into
255 account.
256 (find_root_device_from_libzfs): Add one byte to size of strings for
257 security.
258
259 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
262 an assert.
263 * util/grub-setup.c (setup): Likewise.
264
265 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
268 _LzmaDecodeA.
269
270 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * docs/grub.texi (Internationalisation): New section.
273
274 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * docs/grub.texi (Loopback booting): New section.
277
278 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
279
280 * util/grub-mkstandalone.in: Fix minor typo errors.
281
282 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
283
284 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
285
286 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
287 net/icmp.c and net/icmp6.c.
288 (http): New module.
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
310 completion.
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.
315 (emucard): Set mtu.
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
319 mtu.
320 (get_card_packet): Handle allocation.
321 (grub_ofnet_findcards): Set mtu.
322 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
323 assert.
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.
329 (ip6hdr): Likewise.
330 (reassemble): Likewise.
331 (cmp): New function.
332 (reassembles): New variable.
333 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
334 (id): New variable.
335 (send_fragmented): New function.
336 (grub_net_send_ip_packet): Rename to ...
337 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
338 Handle non-UDP.
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.
375 (cmp): New function.
376 (ack): Likewise.
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.
431
432 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
435 UINT_TO_PTR with cast.
436
437 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
438
439 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
440 don't use them.
441
442 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
445 already there.
446
447 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
450 confusing ipxe.
451
452 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
453
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]:
457 Likewise.
458 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
459 Likewise.
460
461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
464 misaligned access.
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.
471
472 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
475
476 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
477
478 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
479
480 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
481 grub_addr_t casts.
482 (PTR_TO_UINT64): Likewise.
483 (PTR_TO_UINT32): Likewise.
484
485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * util/grub-mkimage.c (generate_image): Decrease the higher limit
488 because of stack.
489 * util/grub-setup.c (setup): Don't add redundancy past the higher load
490 limit.
491
492 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
495 text_width > available width a bit more gracefully.
496
497 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
500 current address calculation.
501
502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
503
504 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
505 stack.
506 (encode_block): Likewise.
507
508 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
511 certainety.
512
513 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
514
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.
519
520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
521
522 * grub-core/kern/i386/realmode.S: Increase alignment.
523 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
524
525 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
528 be deterministic.
529 (syndroms): Compute 0 syndrom.
530 (rs_recover): Use 0 syndrom.
531
532 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
535
536 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
539 brackets.
540
541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
542
543 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
544 account.
545 (get_top_pad): Likewise.
546 (get_right_pad): Likewise.
547 (get_bottom_pad): Likewise.
548
549 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
552
553 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
554
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.
585
586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
587
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.
593
594 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
595
596 AFFS never uses unicode.
597
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.
601
602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
605 overflow.
606
607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
608
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.
613
614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
617
618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
619
620 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
621 (grub_hfs_iterate_dir): Likewise.
622
623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
624
625 Fix video on platforms where unaligned access is forbidden.
626 Make several optimisations while on it.
627
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]:
632 Disable.
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]:
653 Disable.
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
658 void *.
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
665 definition.
666 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
667
668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
671 HH22 and HM10 relocations.
672
673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
676
677 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
678
679 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
680 allocation succeeded.
681
682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
685 argument a u8 pointer. All users updated.
686 Handle unaligned buffers.
687
688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
691 add_part to workaround compiler bug.
692
693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
696
697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
698
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.
704
705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
708 incorrect pointer.
709
710 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
711
712 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
713 (grub_pata_pio_write): Likewise.
714
715 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
716
717 Add noreturn attributes and remove unreachable code.
718
719 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
720 code.
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
726 unreachable code.
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.
733
734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
737 redundant declaration.
738
739 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * include/grub/net.h (grub_net_network_level_interfaces): Remove
742 redundant declaration.
743 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
744
745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
748 to ensure alignment.
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 *
753 to ensure alignment.
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.
757
758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
759
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.
766
767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
768
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.
774
775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
776
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.
780
781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
782
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
786 alignment.
787
788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
791 to ensure alignment.
792 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
793
794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
795
796 * grub-core/fs/ntfs.c (u16at): Make into inline function.
797 Handle unaligned pointers.
798 (u32at): Likewise.
799 (u64at): Likewise.
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.
805
806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
809 as it's not necessarily aligned.
810
811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
812
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.
817
818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
821 function.
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.
830 (NBBY): Removed.
831 (xor): LIkewise.
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
844 necessarily aligned.
845
846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
849
850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
853 arithmetic to conserve alignment invariants.
854
855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
856
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.
861
862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
865 to match types.
866
867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
868
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
872 alignment.
873 (grub_hfsplus_btree_search): Handle unaligned index.
874
875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
878 to get freetag and skip.
879
880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
883 array.
884 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
885 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
886
887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
890 name for checksum and fix allocation algorithm.
891
892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
893
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.
901
902 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
905
906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
907
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.
911
912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
913
914 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
915 conditionals.
916
917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
920 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
921
922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
923
924 Unify and improve RAID and crypto xor.
925
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.
931
932 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/disk/raid.c (scan_devices): Fix condition.
935
936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
939 Make name a const ptr.
940
941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
942
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
947 proto.
948 (grub_children_iterate): Likewise.
949 (grub_machine_mmap_iterate): Remove redundant declaration.
950
951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
954 (grub_cmd_acpi) [!x86]: Disable EBDA.
955
956 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
957
958 Enable UTF8 in gnulib regexp.
959
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.
975
976 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
977
978 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
979 specification.
980
981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
982
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.
986
987 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
988
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.
995
996 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
999
1000 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 Add missing const qualifiers.
1003
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):
1041 Likewise.
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.
1056
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):
1060 Moved from here ...
1061 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1062
1063 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1064
1065 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1066
1067 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1070 (read_device): Fix size calculation.
1071
1072 2011-11-25 Robert Millan <rmh@gnu.org>
1073
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.
1077
1078 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1079
1080 * po/Makefile.in.in: Add missing escape-continuation.
1081
1082 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1085
1086 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1089
1090 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1093
1094 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1097
1098 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1099
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.
1104
1105 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1106
1107 Add facility to debug GRUB with gdb under qemu.
1108
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.
1113
1114 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * util/grub-mount.c (argp_parser): Accept relative pathes.
1117 * util/grub-fstest.c (argp_parser): Likewise.
1118
1119 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 Plan9 support.
1122
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
1131 define.
1132 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1133 * include/grub/mm.h (grub_extend_alloc): New inline function.
1134
1135 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 Make Reed-Solomon faster by using power of generator representation of
1138 GF(256)*.
1139
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.
1147 (gf_mul): Use powx.
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.
1156
1157 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1160
1161 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1164 disk->partiton for safety.
1165
1166 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1169 Fix a memory leak.
1170 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1171
1172 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1175
1176 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1179
1180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Fix spaces handling in proc/self/mountinfo.
1183
1184 * util/getroot.c (unescape): New function.
1185 (grub_find_root_device_from_mountinfo): Use unescape.
1186
1187 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 Support ZFS embedding.
1190
1191 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1192 (grub_zfs_fs): Register grub_zfs_embed.
1193
1194 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 Fix MIPS compilation.
1197
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.
1202
1203 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 Defer multiboot device parsing until we're in compressed part.
1206
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
1215 grub_boot_device.
1216 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1217 Likewise.
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):
1228 Removed.
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.
1234
1235 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 Fix bug introduced by previous commit.
1238
1239 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1240
1241 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1242
1243 Use decompressors framework on i386-pc. It increases core size
1244 by 46 bytes but improves compatibility and maintainability.
1245
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.
1256
1257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * configure.ac: Add -fno-asynchronous-unwind-tables.
1260
1261 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 Move assembly code to C by using intwrap. It increases core size
1264 by 88 bytes but improves compatibility and maintainability.
1265
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.
1286 Translated to C.
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
1290 functions.
1291
1292 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 Move grub_chainloader_real_boot out of the kernel.
1295
1296 * grub-core/Makefile.am: Remove machine/loader.h.
1297 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1298 Removed.
1299 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
1300 variable.
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
1305 relocator.
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.
1311
1312 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1313 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
1314
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.
1320
1321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1322
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.
1347
1348 2011-11-11 Robert Millan <rmh@gnu.org>
1349
1350 * util/getroot.c (grub_util_get_geom_abstraction): Remove
1351 __attribute__((unused)) from `os_dev', which *is* being used.
1352
1353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
1356 forgotten define.
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.
1361
1362 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 Replace grub_fatal with normal errors in i386 linux loader.
1365
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.
1370
1371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1372
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.
1421
1422 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 Support %1$d syntax.
1425
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.
1429
1430 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
1433 fix.
1434
1435 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
1438 dprintf.
1439 * grub-core/font/font.c (grub_font_load): Likewise.
1440
1441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 * util/grub-macho2img.c: Add comment concerning gettext.
1444 * grub-core/lib/legacy_parse.c: Likewise.
1445
1446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
1449 (grub_xvasprintf): Likewise.
1450
1451 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 Add const keyword to grub_env_get and gettextize week days.
1454
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
1458 updated.
1459 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1460 Mark for gettext.
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.
1470
1471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
1474
1475 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
1478 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
1479
1480 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
1483 Fix prototype.
1484
1485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 Fix mips compilation.
1488
1489 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
1490 normal decoder.
1491 (hashes): Use in embed decoder as well (for sizes).
1492 (dec_stream_header): Fix embed decompressor logic.
1493 (dec_stream_footer): Likewise.
1494
1495 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1496
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.
1499
1500 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1503 Issue error rather than printf on unknown arguments.
1504
1505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1508 Make buf a const.
1509
1510 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1513 Fix module name.
1514
1515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1518 leftover debug printf.
1519
1520 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1523
1524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1527 A stylistic fix.
1528
1529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1532
1533 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1534
1535 Allow all modules to perform serial IO
1536
1537 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
1538 * include/grub/serial.h (grub_serial_port_configure): New inline
1539 function.
1540 (grub_serial_port_fetch): Likewise.
1541 (grub_serial_port_put): Likewise.
1542 (grub_serial_port_fini): Likewise.
1543 (grub_serial_find): New proto.
1544
1545 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 Put symlink at the end of the node and fix a potential
1548 memory corruption.
1549
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.
1555 Use new layout.
1556 (grub_iso9660_dir): Set have_symlink.
1557 (grub_iso9660_open): Likewise.
1558
1559 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 Remove local keyword.
1562
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.
1568
1569 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
1572
1573 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 Fix ZFS memory and resource leaks.
1576
1577 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
1578 All users updated.
1579 Free type on exit.
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.
1586
1587 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
1590 argument (access out of bounds).
1591
1592 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
1595 >= 6 drives.
1596
1597 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
1600 Fix declaration.
1601
1602 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 Fix several memory leaks.
1605
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.
1622
1623 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
1626 avoid accessing beyond the array.
1627
1628 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
1631
1632 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 Several AFFS fixes.
1635
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
1646 boot block.
1647 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
1648 safety.
1649 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
1650 space.
1651 (grub_affs_close): Free block cache.
1652 (grub_affs_read): Use grub_fshelp_read_file directly.
1653
1654 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
1657 with no error set.
1658
1659 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
1662 used variable.
1663 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1664 Likewise.
1665
1666 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
1669
1670 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
1671 byteswap when needed.
1672
1673 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Fix FreeBSD compilation.
1676
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.
1682
1683 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 Fix ZFS crypto error types.
1686
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
1690 from PBKDF2.
1691
1692 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 Illumos support.
1695
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
1705 device.
1706 * util/grub-probe.c (probe) [__sun__]: Do character check.
1707 * util/grub.d/10_illumos.in: New file.
1708
1709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 Support escaped commas in hostdisk.
1712
1713 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
1714 (find_grub_drive): Use unescape_cmp.
1715 (make_device_name): Escape commas.
1716
1717 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
1720
1721 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
1724 variable.
1725
1726 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Support trampoline jumps on powerpc.
1729
1730 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
1731 __ia64__ path.
1732 (grub_dl_load_segments): Set mod->sz.
1733 (grub_dl_flush_cache): Flush whole space occupied by module, not just
1734 segments.
1735 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
1736 (jump): Likewise.
1737 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
1738 function.
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.
1748
1749 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 ZFS crypto support.
1752
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.
1785
1786 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 Support zle compression on ZFS.
1789
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.
1793
1794 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 Support BtrFS embedding.
1797
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.
1803
1804 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * util/grub-install.in: Fix condition for config_opt.
1807
1808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 Support third redundancy strip on raidz3.
1811
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.
1815
1816 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 Support case-insensitive ZFS subvolumes.
1819
1820 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
1821 All users updated.
1822 (zap_hash): Likewise.
1823 (name_cmp): New function.
1824 (zap_leaf_array_equal): New parameter case_insensitive.
1825 All users updated.
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.
1832 All users updated.
1833 (grub_zfs_dir): Set info.case_insensitiveness.
1834
1835 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 Support second redundancy strip on raidz(2,3).
1838
1839 * grub-core/fs/zfs/zfs.c (powx): New array.
1840 (powx_inv): Likewise.
1841 (poly): New const.
1842 (xor_out): New function.
1843 (gf_mul): Likewise.
1844 (recovery): Likewise.
1845 (read_device): Use second redundancy strip.
1846
1847 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 Use a power of generator representation of GF(256) multiplication group
1850 to save space time and complexity.
1851
1852 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
1853 (raid6_table2): Likewise.
1854 (powx): New array.
1855 (powx_inv): Likewise.
1856 (poly): New const.
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.
1861
1862 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
1865 for the right device.
1866
1867 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1868
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
1871 padding.
1872
1873 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1874
1875 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
1876 disk.
1877 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
1878
1879 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
1880
1881 * util/grub-mkrescue.in: Fix handling xorriso option.
1882
1883 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
1886 NULL.
1887
1888 2011-11-03 crocket <crockabiscuit@gmail.com>
1889
1890 * util/grub.d/10_linux.in: Add Slackware initrd naming.
1891
1892 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 XZ CRC64 and SHA256 support.
1895
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.
1901 Fix the type.
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.
1919
1920 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
1923 as well.
1924
1925 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 Make reiserfs label retrieval similar to other *_label functions.
1928
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.
1933
1934 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
1937 field.
1938
1939 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
1942
1943 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
1946 drive failure on both raidz and raidz2.
1947
1948 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 Fix RAIDZ(2) for >= 5 devices.
1951
1952 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
1953 asize argument. All users updated.
1954
1955 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 Fix RAIDZ(2).
1958
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.
1962
1963 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1964
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.
1968
1969 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 Read label on UFS1.
1972
1973 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
1974 (grub_ufs_fs): Always set .label.
1975
1976 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 Use shifts in UFS.
1979
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.
1984
1985 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
1988 long symlinks.
1989
1990 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 Handle symlinks and long names on tar and cpio.
1993
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
2000 L and K entries.
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.
2006
2007 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 Fix iso9660 filename limitations and fix memory leaks.
2010
2011 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2012 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2013
2014 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2015
2016 Fix JFS file name length limitations.
2017
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.
2022
2023 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2026 string.
2027
2028 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 Leverage BFS implementation to read AFS.
2031
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.
2036
2037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2040
2041 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/fs/bfs.c: Run indent.
2044
2045 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 BFS implementation based on the specification.
2048
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.
2052
2053 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * util/grub-fstest.c (cmd_cp): Clarify error message.
2056 (cmd_cmp): Likewise.
2057
2058 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2059
2060 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2061 and befs_be.
2062
2063 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 Remove afs and befs because of copyright problem.
2066
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.
2073 (afs_be): Likewise.
2074 (befs): Likewise.
2075 (befs_be): Likewise.
2076
2077 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Prefer rockridge over Joliet.
2080
2081 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2082 to ...
2083 (set_rockridge): ... here.
2084 (grub_iso9660_mount): Check rockridge on the primary label when
2085 discovering. Ignore Joliet if Rockridge is present.
2086
2087 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 Use shifts in nilfs2.
2090
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.
2109
2110 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 Use shifts in minix filesystem.
2113
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.
2119
2120 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 Use shifts in squash4.
2123
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.
2127
2128 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 Correct befs block counting logic.
2131
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.
2140
2141 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/disk/raid.c (scan_devices): Check partition.
2144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2145
2146 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 Support BFS (befs) UUID.
2149
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.
2158
2159 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2162 (zfs_unmount): Fix memory leak.
2163
2164 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 Support NTFS reparse points.
2167
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.
2173
2174 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2177
2178 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 fstest xnu_uuid subcommand.
2181
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.
2188
2189 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2190
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.
2194
2195 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2198
2199 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 ZFS multi-device and version 33 support.
2202
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.
2240
2241 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2244 error.
2245
2246 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 ZFS fixes.
2249
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.
2253
2254 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2257
2258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 Read label on HFS+.
2261
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.
2265
2266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2269
2270 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2273
2274 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 Fix symlink handling on iso9660.
2277
2278 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2279 All users updated.
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.
2283
2284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2287 Use union to avoid breaking strict-aliasing rules.
2288
2289 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 Support multi-extent iso files.
2292
2293 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
2294 Add node.
2295 (grub_fshelp_node): Revamp. All users updated.
2296 (FLAG_*): New enum.
2297 (read_node): New function.
2298 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
2299 All users updated.
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
2303 entries.
2304 Fix memory leak on . and ..
2305 (grub_iso9660_read): Use read_node.
2306 (grub_iso9660_close): Free node.
2307
2308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 Fix tar 4G limit and handle paths containing dot.
2311
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
2315 grub_disk_addr_t.
2316 (grub_cpio_dir): Use grub_disk_addr_t.
2317 (grub_cpio_open): Likewise.
2318
2319 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 Fix handling of uncompressed blocks on squashfs and break 4G limit.
2322
2323 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
2324 unused flags.
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.
2338
2339 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
2342
2343 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
2346
2347 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 Fix 2G limit on ZFS.
2350
2351 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
2352 types.
2353 (uberblock_verify): Likewise.
2354 (dmu_read): Likewise.
2355 (grub_zfs_read): Likewise. Remove invalid cast.
2356
2357 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2358
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.
2362
2363 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 Support triple indirect on minix2 and minix3.
2366
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
2370 indirect.
2371
2372 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 Minix FS fixes.
2375
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.
2380
2381 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2382
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.
2387
2388 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
2391 save some space.
2392 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2394
2395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
2398
2399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * util/import_gcry.py: Accept space between # and include.
2402
2403 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
2406
2407 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 Fine grainely disable warnings on lexer. Remove Wno-error on it.
2410
2411 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
2412 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
2413 yylex_strncpy.
2414 * grub-core/script/yylex.l: Add fine-grained #pragma.
2415
2416 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2417
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]:
2421 Likewise.
2422 (memset) [GRUB_UTIL]: Likewise.
2423 (memcmp) [GRUB_UTIL]: Likewise.
2424
2425 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
2428 inline function rather than a define.
2429
2430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * util/grub-setup.c: Add missing include.
2433
2434 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * util/ieee1275/grub-ofpathname.c: Add missing include.
2437
2438 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2439
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):
2442 Likewise.
2443
2444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
2447 grub_memcmp usage.
2448
2449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 * util/grub-install.in: Add datarootdir as per automake manual
2452 suggestion.
2453 * util/grub-mknetdir.in: Likewise.
2454
2455 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
2458 suggestion.
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.
2464
2465 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 Remove redundant grub_kernel_image_size.
2468
2469 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
2470 _edata and _start.
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
2474 _start.
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):
2486 Removed.
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):
2495 Removed.
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.
2501
2502 2011-10-19 Szymon Janc <szymon@janc.net.pl>
2503
2504 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
2505 NULL pointer dereference.
2506
2507 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2510 done with a dedicated section.
2511
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
2516 other fields.
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):
2520 Removed.
2521 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2522
2523 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2526 name.
2527
2528 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2531
2532 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2535 Don't add the bogus brackets.
2536
2537 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 ExFAT support.
2540
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.
2564
2565 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 Move grub_reboot out of the kernel.
2568
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.
2591
2592 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 Make grub_prefix into module to fix the arbitrary limit and save
2595 some space.
2596
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
2640 from module.
2641 * util/grub-mkimage.c (image_target_desc): Removed prefix and
2642 prefix_end.
2643 (image_targets): Likewise.
2644 (generate_image): Put prefix as a module.
2645
2646 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 Replace grub_module_iterate with FOR_MODULES.
2649
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):
2677 Removed.
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.
2685
2686 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * configure.ac: Check for __ctzdi2 and __ctzsi2.
2689 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
2690
2691 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 Fix few obvious type discrepancies.
2694
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
2698 variable.
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
2702 offset.
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.
2707
2708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 Fix python 3.x incompatibilities.
2711
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.
2715
2716 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2717
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.
2730
2731 2011-10-15 Robert Millan <rmh@gnu.org>
2732
2733 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
2734
2735 2011-10-15 Robert Millan <rmh@gnu.org>
2736
2737 Fix build problem on FreeBSD and GNU/kFreeBSD.
2738
2739 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
2740
2741 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
2744
2745 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
2746 types.
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.
2758
2759 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2760
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.
2764
2765 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2766
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.
2773
2774 2011-10-09 Robert Millan <rmh@gnu.org>
2775
2776 LVM support for FreeBSD and GNU/kFreeBSD.
2777
2778 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
2779 GNU/kFreeBSD.
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
2788 support it.
2789 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
2790 GNU/kFreeBSD.
2791 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
2792 when LVM abstraction is required for ${GRUB_DEVICE}.
2793
2794 2011-10-06 Szymon Janc <szymon@janc.net.pl>
2795
2796 Add support for LZO compression in GRUB:
2797 - import of minilzo library,
2798 - LZO decompression for btrfs,
2799 - lzop files decompression.
2800
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
2811 cflags in cppflags.
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.
2838
2839 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
2840
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.
2844
2845 2011-10-01 Ales Nesrsta <starous@volny.cz>
2846
2847 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
2848 (fixed problem related to using UHCI with coreboot).
2849
2850 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2851
2852 * gentpl.py: Use Autogen macros so that the output template file
2853 (Makefile.tpl) size is reduced.
2854
2855 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
2856
2857 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
2858 extra_dist.
2859
2860 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2861
2862 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
2863 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
2864
2865 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2866
2867 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
2868 _fullpath.
2869
2870 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2871
2872 Remove extra declaration of sleep for mingw32.
2873
2874 * util/misc.c (sleep) [__MINGW32__]: Removed.
2875 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
2876
2877 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2878
2879 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
2880 type and packname.
2881 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
2882 Resurrected.
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):
2886 New function.
2887 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
2888
2889 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
2890
2891 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
2892 loader.
2893
2894 2011-09-28 Andreas Born <futur.andy@googlemail.com>
2895
2896 Fix incorrect identifiers in bash-completion.
2897
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.
2903
2904 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2907 Return 0 if disk isn't biosdisk.
2908
2909 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2910
2911 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
2912 on NetBSD.
2913 * Makefile.util.def (grub-fstest): Likewise.
2914
2915 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
2916
2917 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
2918 Get sector size from disk label.
2919
2920 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
2921
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.
2925
2926 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
2929 case of less than 256 MiB of RAM.
2930
2931 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/commands/wildcard.c (make_regex): Handle @.
2934
2935 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * util/grub-install.in: Move cryptodisk logic to appropriate place.
2938
2939 2011-08-21 Szymon Janc <szymon@janc.net.pl>
2940
2941 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
2942 AC_LANG_CONFTEST macros.
2943
2944 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2945
2946 Add grub-fstest option to uncompress data for commands.
2947
2948 * util/grub-fstest.c (uncompress): New var.
2949 (options): New option -u.
2950
2951 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2952
2953 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2954 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
2955
2956 2011-08-20 Szymon Janc <szymon@janc.net.pl>
2957
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).
2960
2961 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
2964 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
2965
2966 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
2969 loongson.
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.
2975
2976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
2979 define.
2980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
2981 that PRID matches the detected subplatform and reset the subplatform
2982 if it doesn't.
2983
2984 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
2987
2988 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 Fix PCI iterating on functions >= 4.
2991
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):
2994 Removed.
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.
3002
3003 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3006 can still be specified in TARGET_CFLAGS)
3007
3008 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3011
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
3027 loongson_defserial.
3028 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3029 Rename to ...
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.
3036
3037 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3038
3039 Make enable of disk cache statistics code configurable.
3040
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
3049 debug code.
3050 * include/grub/disk.h: Likewise.
3051
3052 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3053
3054 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3055 * grub-core/Makefile.am: Likewise.
3056
3057 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3060 non-zero pull.
3061
3062 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3065 All users updated.
3066 (grub_jfs_lookup_symlink): Use correct starting inode.
3067
3068 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * util/grub-setup.c (main): Add missing gcry initialisation.
3071
3072 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 Don't accept text modes on EFI when booting Linux.
3075
3076 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3077 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3078
3079 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3080 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3081
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
3084 symlinks correctly.
3085 Fixes Debian bug #637768.
3086
3087 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3088
3089 * util/grub-probe.c: Remove duplicate #include.
3090
3091 2011-08-10 Robert Millan <rmh@gnu.org>
3092
3093 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3094
3095 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3096 function.
3097 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3098 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3099
3100 2011-08-03 Robert Millan <rmh@gnu.org>
3101
3102 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3103 la_array as packed.
3104 Reported by: Zachary Bedell
3105
3106 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3107
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
3110 be built.
3111
3112 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3113
3114 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3115 processing arguments (otherwise help2man fails when GRUB has not yet
3116 been installed).
3117
3118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 New script grub-mkstandalone.
3121
3122 * Makefile.util.def (grub-mkstandalone): New script.
3123 * docs/man/grub-mkstandalone.h2m: New file.
3124 * util/grub-mkstandalone.in: Likewise.
3125
3126 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 Support ATA disks with 4K sectors.
3129
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.
3134
3135 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * util/grub-install.in: Don't use uhci outside of x86.
3138
3139 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * util/grub-mkrescue.in: Add missing quotes.
3142
3143 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3146 dereference.
3147
3148 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3151
3152 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * include/grub/video.h: add missing EXPORT_FUND on
3155 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3156
3157 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * include/grub/mips/kernel.h: Fix define conflict.
3160
3161 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3164 all four ways.
3165
3166 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3167
3168 Preferred resolution detection for VBE.
3169
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):
3174 New function.
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
3190 structure.
3191
3192 * grub-core/commands/videoinfo.c (print_edid): New function.
3193 (grub_cmd_videoinfo): Print EDID if available.
3194
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
3198 documentation.
3199
3200 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3203
3204 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * po/POTFILES.in: Regenerate.
3207
3208 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3211 incorrect memory usage.
3212
3213 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * util/grub-install.in: Source grub-mkconfig_lib.
3216
3217 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 Remove getroot.c from core on emu platform.
3220
3221 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3222 kern/emu/raid.c.
3223 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3224 useless.
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):
3232 Moved from here...
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.
3241
3242 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * po/POTFILES.in: Regenerate.
3245
3246 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 Fix compilation on GNU/Linux.
3249
3250 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3251 Disable geli.
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.
3255
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>
3259
3260 LUKS and GELI support.
3261
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.
3288 (luks): Likewise.
3289 (geli): Likewise.
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
3295 grub_util_is_lvm.
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]:
3315 New member modname.
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
3320 LUKS and GELI.
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
3335 cryptodisk.
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.
3343 Add modname member.
3344
3345 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 Lazy device scanning.
3348
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]:
3371 New function.
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.
3380 All users updated.
3381 * include/grub/disk.h (grub_disk_pull_t): New enum.
3382 (grub_disk_dev): Change iterate prototype.
3383 All users updated.
3384 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
3385 New proto.
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.
3390 All users updated.
3391 * include/grub/util/raid.h: Removed.
3392
3393 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * po/POTFILES.in: Regenerate.
3396
3397 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 Unify sparc init with other ieee1275.
3400
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):
3413 New definition.
3414 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
3415
3416 Move BOOTP to separate file.
3417
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.
3421
3422 Use frame interface on PXE.
3423
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.
3431
3432 EFI network support.
3433
3434 * grub-core/Makefile.core.def (efinet): New module.
3435 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
3436 here...
3437 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
3438 All users updated.
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.
3445
3446 Various cleanups and bugfixes.
3447
3448 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
3449 error.
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
3453 leak on failure.
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
3464 memory leak.
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.
3469
3470 Unify prefix handling
3471
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.
3477 (prefix): Removed.
3478 (root_dev): New variable.
3479 (dir): Likewise.
3480 (main): Use new variables.
3481 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
3482 Revamped into ...
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):
3490 Revamped into ...
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):
3495 Revamped into ...
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.
3500
3501 Less intrusive and more reliable seek on network implementation.
3502
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.
3509
3510 Unify IEEE1275 netwotk config with the other platforms.
3511
3512 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3513 New variable.
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
3519 into ...
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
3525 extern var.
3526 (grub_ieee1275_get_device_type): New function.
3527
3528 Unify network device closing across platforms and make more robust.
3529
3530 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3531 grub_grubnet_fini.
3532 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3533 already.
3534 * grub-core/net/net.c (grub_net_network_level_interface_register):
3535 Update num_ifaces.
3536 (grub_net_card_unregister): Close all interfaces.
3537 (receive_packets): Don't poll if no iterfaces are registered.
3538 Open if necessary.
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.
3544
3545 Poll network cards when idle.
3546
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.
3554
3555 Rename ofnet interfaces.
3556
3557 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
3558 (grub_ofnet_findcards): Use ofnet_%s names.
3559
3560 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
3561
3562 Cleanup socket opening.
3563
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.
3569
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.
3576
3577 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
3578
3579 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
3580 FS name.
3581
3582 * include/grub/net/ip.h (ipv4_ini): Removed.
3583 (ipv4_fini): Likewise.
3584
3585 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
3586 (grub_net_send_ip_packets): Likewise.
3587
3588 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
3591 grub_read_cmos prototype.
3592
3593 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 VGA text support in qemu-mips
3596
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
3600 text.
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__]:
3606 Adjust.
3607 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
3608 GRUB_MACHINE_PCI_IO_BASE.
3609
3610 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 MIPS qemu flash support.
3613
3614 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
3615 magic.
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.
3620
3621 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 MIPS qemu at_keyboard support.
3624
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
3629 modules.
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.
3634
3635 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 CMOS support on sparc.
3638
3639 * gentpl.py (cmos): Add powerpc and sparc.
3640 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
3641 powerpc and sparc.
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.
3658
3659 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3660
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.
3672
3673 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
3674
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
3679 default_bg_color.
3680
3681 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
3684
3685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
3688 mismerge.
3689
3690 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Chainloading on coreboot support.
3693
3694 * grub-core/Makefile.core.def (chain): Add coreboot.
3695 * grub-core/loader/i386/coreboot/chainloader.c: New file.
3696
3697 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
3700 if it happens.
3701
3702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 Implement time command.
3705
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.
3710
3711 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
3714
3715 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
3718 when handling leftovers.
3719
3720 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
3723 so that help2man doesn't fail.
3724
3725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
3728 type in pointers on sparc64.
3729 (get_card_packet): Likewise.
3730
3731 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
3732
3733 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
3734 with `*'.
3735 (grub_cmd_videoinfo): Fetch current video mode.
3736
3737 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
3740 because of underlying system restrictions.
3741
3742 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
3745 necessary.
3746
3747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 Coreboot video support.
3750
3751 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
3752 (vbe): Likewise.
3753 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
3754 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
3755 here ...
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]:
3764 Disable interrupts.
3765 * include/grub/i386/pc/vga.h: Removed. All users updated.
3766
3767 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3768
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.
3772
3773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
3776 prototype.
3777 (get_card_packet): Likewise.
3778
3779 2011-06-26 Yves Blusseau <blusseau@zetam.org>
3780
3781 Display the path of the file when file is not found
3782
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.
3791
3792 2011-06-26 Szymon Janc <szymon@janc.net.pl>
3793
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.
3807
3808 2011-06-25 Patrick <p55@mailinator.com>
3809
3810 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
3811
3812 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
3815 (grub_pxe_send): Likewise.
3816 (GRUB_MOD_INIT): Fix types.
3817
3818 2011-06-24 Szymon Janc <szymon@janc.net.pl>
3819
3820 * grub-core/io/xzio.c: Fix code style issues
3821
3822 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3823 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
3824
3825 Network infrastructure.
3826 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
3827
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
3848 export.h.
3849 * grub-core/Makefile.core.def (net): New module.
3850 (tftp): Likewise.
3851 (ofnet): Likewise.
3852 (emunet): Likewise.
3853 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
3854 network protocols.
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
3863 network root.
3864 (grub_machine_fini): Call grub_grubnet_fini.
3865 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
3866 network.
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.
3879
3880 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
3883 names.
3884
3885 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3886
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.
3891
3892 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
3895
3896 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
3899 partmap before abstraction.
3900
3901 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
3902
3903 * util/grub-mkconfig_lib.in: Add missing quotes.
3904
3905 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3906
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
3909 exist.
3910
3911 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 ZFS zlib support
3914
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.
3919
3920 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3921
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.
3929
3930 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 AHCI support.
3933
3934 * grub-core/Makefile.core.def (ata_pthru): Removed.
3935 (ahci): New module.
3936 (pata): Likewise.
3937 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
3938 on unload.
3939 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
3940 readwrite.
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.
3965
3966 2011-06-23 Szymon Janc <szymon@janc.net.pl>
3967
3968 Add support for DRI and RSTn markers in JPEG files.
3969
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.
3986
3987 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 * util/ieee1275/ofpath.c (check_sas): Close fd.
3990 (main): Free of_path.
3991 Reported by: David Volgyes <dvolgyes>.
3992
3993 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
3996 Reported by: David Volgyes <dvolgyes>.
3997
3998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4001 file after stat.
4002 Reported by: David Volgyes <dvolgyes>.
4003
4004 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4007
4008 Reported by: David Volgyes <dvolgyes>.
4009
4010 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4013 Prevent memory leak.
4014
4015 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4018 (main): Close file.
4019 Reported by: David Volgyes <dvolgyes>.
4020
4021 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4024 to continue if allocation is failed.
4025
4026 Reported by: David Volgyes <dvolgyes>.
4027
4028 2011-06-23 David Volgyes <dvolgyes>
4029
4030 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4031 dereference.
4032
4033 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 Fix spurious warning.
4036
4037 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4038 (acorn_partition_map_find): Use .bin member.
4039
4040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4043 /dev/root as a valid device.
4044
4045 2011-06-23 Jim Meyering <meyering@redhat.com>
4046
4047 Avoid NULL deref in grub_device_open.
4048
4049 * grub-core/kern/device.c (grub_device_open): Don't dereference
4050 a NULL pointer upon failed grub_env_get.
4051
4052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 Support non-512B sectors and agglomerate reads.
4055
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
4064 log_sector_size.
4065 (get_safe_sectors): Handle non-512B sectors.
4066 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4067 sectors.
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
4071 one level up).
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
4080 log_sector_size.
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
4085 non-512B sectors.
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.
4092
4093 2011-06-16 Robert Millan <rmh@gnu.org>
4094
4095 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4096 `ata' driver on kernel of FreeBSD 9.
4097
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().
4103
4104 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4105
4106 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4107 input format.
4108
4109 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4110
4111 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4112 `ftp.gnu.org' for `alpha.gnu.org'.
4113
4114 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4115
4116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4117 partitions under /dev/disk/by-id/.
4118
4119 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4120
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.
4126
4127 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4130 opening new one.
4131
4132 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4133 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 Don't stat devices unless we have to.
4136
4137 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4138 dir == /dev/mapper.
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.
4143
4144 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4145
4146 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4147 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4148 Reported by: Pawel Tecza.
4149
4150 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4153 (lsefisystab): Likewise.
4154 (lssal): Likewise.
4155 (lsefimmap): Likewise.
4156 (hdparm): Enable on qemu-mips.
4157 (setjmp): Add ia64 nodist.
4158 (serial): Simplify tags.
4159
4160 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4161
4162 * Makefile.util.def (grub-ofpathname): Install manual page.
4163
4164 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4165
4166 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4167
4168 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4169
4170 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4171
4172 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4175 into dprintf.
4176
4177 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 Use full 64-bit division.
4180
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
4184 version.
4185
4186 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4187
4188 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4189 `source'.
4190
4191 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4192
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.
4205
4206 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4207
4208 Move gfxmenu color handling to video, so that gfxterm can use it
4209 too.
4210
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):
4217 Move to ...
4218 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4219 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4220 to ...
4221 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4222
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
4230 to ...
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.
4234
4235 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4236 video/colors.c.
4237 (gfxmenu): Remove gfxmenu/named_colors.c.
4238 (video) [videomodules]: Add video/colors.c.
4239
4240 Add a background_color command.
4241
4242 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4243 function.
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
4249 changing bitmap.
4250
4251 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Patch BPB in ntldr and chainloader --bpb.
4254
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
4259 grub/ntfs.h.
4260 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4261 Moved from here...
4262 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4263 here.
4264 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4265 New function.
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
4272 proto.
4273 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4274
4275 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4278 for cleanness.
4279
4280 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 FreeDOS direct loading support.
4283
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
4287 variable.
4288 (grub_relocator16_boot): Handle %ebx.
4289 * grub-core/lib/i386/relocator16.S: Likewise.
4290 * grub-core/loader/i386/pc/freedos.c: New file.
4291
4292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 Long Linux command line support.
4295
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
4305 and cmdline_size.
4306
4307 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4308 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4309
4310 Improve devmapper support
4311
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
4319 updated.
4320 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
4321 (convert_system_partition_to_system_disk): Handle lvm, mpath and
4322 dmraid nodes.
4323 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
4324
4325 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
4328
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.
4334
4335 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4336
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.
4340
4341 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 Use mipsel- rather than mips- in directories involving mipsel ports to
4344 allow both endiannesses coexist.
4345
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
4349 variable.
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.
4353
4354 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 Avoid unnecessary copying on MIPS.
4357
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.
4362
4363 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 Reduce memory footprint on SGI by putting modules before the kernel
4366 as opposed to after.
4367
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
4372 address.
4373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
4374 layout change.
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
4379 here.
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):
4384 New definition.
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.
4393
4394 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 Prevent potential loss of memory map by overwrite on qemu-mips.
4397
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
4403 Loongson.
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
4407 external variable.
4408
4409 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4410
4411 * .bzrignore: Remove grub-dumpbios.
4412
4413 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4414
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.
4421
4422 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4423
4424 * util/grub-fstest.c (cmd_cat): New function.
4425 (fstest): Handle CMD_CAT.
4426 (options): Add cat.
4427 (argp_parser): Handle cat.
4428
4429 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4430
4431 * Makefile.util.def (grub-bin2h): Don't install.
4432 * docs/man/grub-bin2h.h2m: Remove.
4433
4434 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
4437 place.
4438
4439 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 Reenable qemu-mips port.
4442
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]:
4460 New variable.
4461 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
4462 parameter passing.
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):
4469 Removed.
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):
4477 New definition.
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.
4486
4487 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 SGI ARCS port.
4490
4491 * Makefile.util.def (libgrubmods.a): Add dvh.c.
4492 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
4493 platforms.
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
4507 aligned addresses.
4508 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4509 support.
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
4514 platforms.
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
4538 here...
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
4543 proto.
4544 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
4545 from here ...
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
4568 here ...
4569 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4570 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
4571 here ...
4572 * include/grub/mips/time.h (grub_get_rtc): ... here.
4573 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4574 here ...
4575 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4576 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
4577 here ...
4578 * include/grub/mips/time.h (grub_cpu_idle): ... here.
4579 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
4580 definition.
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
4590 to 6.
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.
4594
4595 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
4598 blocks.
4599
4600 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
4603 after enabling port.
4604
4605 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 Skip incorrect USB devices.
4608
4609 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
4610 configcnt == 0.
4611 * include/grub/usb.h (grub_usb_err_t): New enum value
4612 GRUB_USB_ERR_BADDEVICE.
4613
4614 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 Fuloong video init support.
4617
4618 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
4619 well.
4620 (grub_vga_read_arx): New function.
4621 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
4622 definition.
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.
4629
4630 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4631
4632 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
4633 non-loongson.
4634 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
4635 to grub_dl_register_symbol.
4636
4637 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 Fix compilation errors.
4640
4641 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
4642 potentially unused.
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.
4647
4648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 Several FS mtime support.
4651
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.
4696
4697 Support UDF symlinks.
4698
4699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
4700 (grub_ufs_read_symlink): New function. All users updated.
4701
4702 Check amiga partmap checksum.
4703
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.
4708
4709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 ROMFS support.
4712
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.
4716
4717 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 Squashfs v4 support.
4720
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.
4729
4730 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4731 2011-05-15 Feiran Zheng <famcool@gmail.com>
4732
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.
4745
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>
4749
4750 IA64 support.
4751
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):
4820 New protos.
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.
4825 All users updated.
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.
4834 (MASK19): Likewise.
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.
4841 (jump): Likewise.
4842 (make_trampoline): New function.
4843 (relocate_addresses): Handle ia64.
4844 (make_reloc_section): Likewise.
4845 (load_image): Likewise.
4846
4847 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
4850 warning. Move variables before code while on it.
4851
4852 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 Fuloong support.
4855
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
4867 architecture.
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
4878 type.
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
4885 definition.
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
4892 to ...
4893 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
4894 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
4895 definition.
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
4908 function.
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.
4916
4917 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
4918
4919 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
4920 and add some clarification.
4921
4922 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
4925 platforms if kernel is compressed.
4926
4927 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4928
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.
4932
4933 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
4936 rather than resetting it to allow modules to reference themselves
4937 in init.
4938
4939 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
4942 counter on dependencies since grub_dl_unref already handles this.
4943
4944 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
4947 on error if not already done.
4948
4949 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 Fix few potential memory misusage.
4952
4953 * grub-core/font/font.c (load_font_index): Don't free char_index to
4954 avoid double free.
4955 (grub_font_load): Zero-fill font at alloc for safety.
4956 Close file on error.
4957 (free_font): Free bmp_idx.
4958
4959 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4960
4961 * docs/grub.texi (Installation): Fix several outdated claims.
4962
4963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 Handle module_license on windows.
4966
4967 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
4968 sections shifted.
4969 (insert_string): Make argument const char * instead of char *.
4970 (write_section_data): Handle long section names.
4971 Handle module_license.
4972
4973 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4974
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.
4978
4979 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
4982 PgUp and PgDown.
4983
4984 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * configure.ac: Bump version to 1.99.
4987
4988 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 Give ATA device a bit more time on first try in order to allow disks
4991 to spin up.
4992
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'.
4998
4999 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * util/grub-mkimage.c (generate_image): Update hash.
5002
5003 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 Flush caches on DMA memory.
5006
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.
5011
5012 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5013
5014 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5015 to avoid asm treating ld and sd as macros.
5016
5017 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5020 decompressor.
5021
5022 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5023
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
5026 is too far.
5027
5028 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5029
5030 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5031 R_MIPS_JALR since it's used by newer compiler.
5032
5033 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5036
5037 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5038
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.
5044
5045 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5048 unknown key into a dprintf.
5049
5050 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5053 on first non-existant partition.
5054
5055 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5058 openning fails.
5059 Reported by: Mark Korenberg.
5060
5061 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5064 overflow.
5065
5066 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5067
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.
5070
5071 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5072
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.
5080
5081 The appleldr.mod was checked that to be binary identical to previous
5082 version.
5083
5084 2011-05-05 Zach <mikezackles>
5085
5086 Support 2010 Macbooks.
5087
5088 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5089 (devs): Add devpath_6.
5090
5091 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5092
5093 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5094 /dev/random. /dev/urandom is good enough for our purposes (salting).
5095
5096 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5099
5100 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5103 hexadecimal.
5104
5105 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5108 and not 0 on failure.
5109
5110 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5111
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
5115 filesystem.
5116 (grub_pxefs_open): Likewise, for consistency.
5117 Reported and tested by: Ezekiel Grave.
5118
5119 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5120
5121 * tests/partmap_test.in: Don't hardcode path to parted.
5122 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5123
5124 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5125
5126 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5127 of `ls' to find out which devices are available.
5128
5129 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5132 than source address for efi mmap buffer.
5133
5134 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5137 wrong action on non-detecting the magic.
5138
5139 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5140
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
5143 FreeBSD).
5144
5145 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5148 match the one used by mdadm.
5149
5150 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5151
5152 * po/README: Add instructions for creating po/LINGUAS.
5153
5154 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5155
5156 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5157 #551428.
5158
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.
5181
5182 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5183
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.
5188
5189 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5190
5191 Fix stack pointer handling in 16-bit relocator.
5192
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.
5196
5197 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * configure.ac: Bump version to 1.99~rc2.
5200
5201 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5202
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.
5209
5210 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5213 * grub-core/lib/efi/datetime.c: Likewise.
5214
5215 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5218 New function.
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.
5222
5223 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5226 bitmap.
5227 (grub_gfxterm_term_init): Likewise.
5228
5229 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 Take into account the decorations the computing menu entry width.
5232
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
5236 if available.
5237 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5238 get_border_width.
5239
5240 2011-04-18 Endres Puschner <code@e7p.de>
5241
5242 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5243 Don't skip first class.
5244
5245 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5248 chunks.
5249 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5250
5251 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 Complete 64-bit division support.
5254
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.
5260
5261 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5264
5265 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5268 performing the necessary test.
5269
5270 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5273 (kfreebsd.elf): Likewise.
5274 (pc-chainloader.elf): Likewise.
5275 (ntldr.elf): Likewise.
5276
5277 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5278
5279 Identify RAID by its UUID rather than (guessed) name.
5280
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.
5286
5287 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
5290 to negative size.
5291
5292 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5293
5294 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
5295 btrfs subvolume.
5296 * util/grub.d/20_linux_xen.in: Likewise.
5297
5298 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5299
5300 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
5301 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
5302
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.
5306
5307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5308
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.
5314
5315 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5316
5317 * NEWS: Drop obsolete entry about probe-only btrfs support.
5318
5319 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5320
5321 * util/import_gcry.py: Fix typo.
5322
5323 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 * NEWS: Add btrfs support.
5326
5327 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5328 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5329
5330 BtrFS support. Written by me (Vladimir) with important bugfixes and
5331 even more important testing by Colin.
5332
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
5351 proto.
5352 * include/grub/lib/crc.h: New file.
5353
5354 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 Implement automatic module license checking according to new GNU
5357 guidelines.
5358
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.
5365
5366 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5367
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
5370 loaders.
5371 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
5372
5373 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
5376
5377 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 * util/grub-fstest.c (read_file): Report GRUB error if file opening
5380 failed.
5381
5382 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/kern/file.c (grub_file_open): Don't take into account the
5385 parenthesis in the middle of the filename.
5386
5387 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5388
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>
5392
5393 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
5396 improperly removed string.
5397
5398 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
5401 is_disk.
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.
5406
5407 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
5408
5409 * util/grub-mkconfig_lib.in: Add missing quotes.
5410
5411 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
5412
5413 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
5414 is NULL.
5415
5416 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5417
5418 Dynamically count the number of lines for the lower banner.
5419
5420 * grub-core/normal/menu_entry.c (per_term_screen): New member
5421 num_entries.
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
5426 num_entries.
5427 (grub_print_message_indented): Move real part to ...
5428 (grub_print_message_indented_real): ... here. Additional argument
5429 dry_run.
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.
5437 All users updated.
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.
5444
5445 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
5448 Remove now unused string.
5449
5450 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5451
5452 * docs/grub-dev.texi (Finding your way around): Update for 1.99
5453 build system.
5454 (Getting started): GRUB is developed in Bazaar now, not Subversion.
5455
5456 (Comment): Fix typo.
5457 (Getting started): General copy-editing.
5458 (Typical Development Experience): Likewise.
5459 (Error Handling): Likewise.
5460 (Video API): Likewise.
5461
5462 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5463
5464 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
5465 throughout.
5466
5467 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * util/grub-mkimage.c (main): Handle special naming of yeeloong
5470 directory.
5471
5472 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5473
5474 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
5475 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
5476 "development".
5477
5478 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5479
5480 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
5481 grub_strcpy since the lines aren't necessarily 0-terminated.
5482
5483 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
5486 root on legacy.
5487
5488 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * grub-core/commands/probe.c (options): Argument to set isn't optional.
5491 (GRUB_MOD_INIT): DEVICE isn't optional.
5492
5493 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5494
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.
5497
5498 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
5501 const.
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>.
5506
5507 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5510 Place mbi on low memory for better compatibility.
5511
5512 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5515
5516 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5517 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5518
5519 * autogen.sh: Ensure that collate and ctype locale is C.
5520 * conf/Makefile.common: Likewise.
5521
5522 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * grub-core/normal/menu.c: Add missing include.
5525
5526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5529
5530 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5531
5532 * util/grub-mkconfig.in: Ignore emacsen backup.
5533
5534 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
5537 on open.
5538 (grub_util_biosdisk_close): Likewise.
5539
5540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
5543 const attribute and use grub_isdigit.
5544
5545 2011-04-06 Andrey <dev_null@ukr.net>
5546
5547 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
5548 gcc warning.
5549
5550 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
5553 useful grub_dprintf's.
5554
5555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
5558
5559 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
5562
5563 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 Output errors if theme loading failed.
5566
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.
5571
5572 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5573
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.
5577
5578 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5579
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.
5583
5584 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5585
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
5589 interchangeably.
5590
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.
5601
5602 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
5605 of function to allow further scanning for LVMs.
5606
5607 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
5610 on failed seek as it breaks open fd reusage.
5611
5612 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5613
5614 * util/grub-install.in: Add a recommendation to use --recheck before
5615 reporting bugs.
5616
5617 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
5620 are obtained.
5621
5622 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 GRUB developper manual based on existing Internals section and
5625 contributions by the various authors with active copyright assignment.
5626
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.
5633
5634 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5635
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.
5639
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.
5644
5645 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5646
5647 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
5648 when replacing an existing device.
5649
5650 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5651
5652 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
5653 memory corruptions.
5654
5655 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
5656 unsigned.
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
5668
5669 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5670
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.
5675
5676 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
5679 stack alignment.
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.
5688
5689 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5690
5691 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
5692 set-but-not-used variable.
5693
5694 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5695
5696 * docs/grub.texi (Simple configuration): Be more explicit about
5697 GRUB_DEFAULT, and add an example.
5698 Reported by: Leslie Rhorer.
5699
5700 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5701
5702 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
5703 shell".
5704
5705 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5706
5707 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
5708 * util/grub.d/20_linux_xen.in: Likewise.
5709
5710 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5711
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.
5715
5716 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5717
5718 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
5719 * util/grub.d/20_linux_xen.in: Likewise.
5720
5721 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * grub-core/disk/raid.c (insert_array): Add few potentially
5724 useful grub_util_info.
5725 (grub_raid_register): Likewise.
5726
5727 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
5730 Preserve partition number in mdadm code path.
5731
5732 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
5735 few potentially useful grub_util_info.
5736
5737 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
5740
5741 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5742
5743 * docs/grub.texi (default): Use @example rather than nested
5744 itemized lists to avoid breaking gendocs.
5745
5746 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5747
5748 * docs/grub.texi (Future): Update.
5749
5750 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5751
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
5757 respectively.
5758 (Shell-like scripting): Note that normal variables are stored in the
5759 environment.
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.
5764
5765 (Reporting bugs): Fix typo.
5766
5767 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5768
5769 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
5770 the example.
5771
5772 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * grub-core/term/at_keyboard.c (set_scancodes)
5775 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
5776
5777 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5778
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.
5785
5786 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5787
5788 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
5789
5790 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5791
5792 * docs/grub.texi (Simple configuration): Explain some of the
5793 current limitations of grub-mkconfig.
5794 Reported by: Leslie Rhorer.
5795
5796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 Old macs search for boot.efi rather than for bootia32.efi.
5799
5800 * util/grub-install.in: Copy bootia32.efi to boot.efi.
5801 * util/grub-mkrescue.in: Likewise.
5802 Suggested by: Peter Jones.
5803
5804 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
5807
5808 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5809
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.
5820
5821 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
5824
5825 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5826
5827 * docs/grub.texi (loopback): New section.
5828
5829 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5830
5831 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
5832 removed -p option.
5833
5834 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5835
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
5839 cross-reference.
5840 (Images): Likewise.
5841
5842 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/kern/emu/hostdisk.c (find_partition_start)
5845 [HAVE_DIOCGDINFO]: Add safety checks.
5846
5847 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5848
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.
5851
5852 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5853
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.
5858
5859 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
5862 printf clauses for printing size and start.
5863
5864 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
5867 Reported and tested by: Timothy Nikkel.
5868
5869 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5870
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
5874 scheduled repaint.
5875
5876 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5877
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.
5883
5884 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
5885
5886 * util/grub-setup.c: Copy the partition table zone if floppy support
5887 is disabled, even if no partition table is found.
5888
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.
5892
5893 2011-03-28 Colin Watson <cjwatson@debian.org>
5894
5895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
5896 comment.
5897
5898 2011-03-28 Colin Watson <cjwatson@debian.org>
5899
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.
5902
5903 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
5904
5905 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
5906 return freed string.
5907
5908 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
5911
5912 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 Use libgeom on FreeBSD to detect partitions.
5915
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.
5940
5941 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 Fix FreeBSD compilation problem.
5944
5945 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
5946 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
5947
5948 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
5949
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.
5954
5955 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5956
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.
5960
5961 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
5964 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
5965
5966 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
5969 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
5970 malloc is disabled.
5971
5972 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
5975 for modules headers when counting the needed allocation size.
5976
5977 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
5980 if no ASCII character is found to prevent crash.
5981
5982 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
5983
5984 * grub-core/video/bitmap.c (match_extension): Ignore case.
5985
5986 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
5989
5990 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
5991
5992 * grub-core/script/parser.y: Declare "time" as valid argument.
5993
5994 2011-03-23 Peter Jones <pjones@redhat.com>
5995
5996 Fix incorrect assert failure reporting.
5997
5998 * grub-core/tests/example_functional_test.c (example_test): Add
5999 a failure comment.
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.
6009
6010 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6013
6014 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6015
6016 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6017
6018 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6019
6020 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6021 into GRUB-style one.
6022
6023 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6024
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.
6028
6029 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6030
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.
6033
6034 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6035
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.
6041
6042 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6043
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.
6074
6075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6076
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.
6082
6083 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * util/grub-install.in: Correct the x86-64 name as x86_64.
6086
6087 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6088
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.
6092
6093 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6094
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
6097 times.
6098 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6099
6100 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6101
6102 * docs/grub.texi (Simple configuration): Tidy up formatting.
6103
6104 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6105
6106 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6107 Set-but-not-used variable removed.
6108
6109 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 Workaround yet another IEEE1275 bug.
6112
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
6117 is set.
6118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6119 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6120
6121 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6124 error.
6125
6126 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6127
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.
6132
6133 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6134
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.
6139
6140 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6141
6142 * util/grub-install.in: Remove unnecessary brackets from tr
6143 arguments.
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.
6149
6150 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6151
6152 * include/grub/file.h (not_easly_seekable): Rename to ...
6153 (not_easily_seekable): ... this. Update all users.
6154
6155 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6156
6157 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6158 grub-mkrescue.
6159
6160 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6161
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.
6165
6166 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6169
6170 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6171
6172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6173 super_offset field.
6174
6175 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6176
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
6179 sparc64.
6180 Reported by: Daniel Kahn Gillmor.
6181
6182 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6185
6186 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6187
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.
6190
6191 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6192
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.
6196
6197 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6200 logical expression more readable.
6201
6202 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6203
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.
6207
6208 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6209
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.
6214
6215 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6216
6217 * docs/grub.texi (Simple configuration): Document
6218 GRUB_PRELOAD_MODULES.
6219
6220 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6221
6222 * .bzrignore: Remove nonexistent grub-pbkdf2.
6223
6224 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * configure.ac: Bump version to 1.99~rc1.
6227
6228 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6231 for safety.
6232
6233 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6236 module.
6237
6238 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6241
6242 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6245 diskdevid.
6246
6247 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 Fix compilation on cygwin.
6250
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.
6261
6262 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6263
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.
6269
6270 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * util/grub.d/00_header.in (load_video): Handle the case when no video
6273 drivers available.
6274 Thanks to: Axel Beckert.
6275
6276 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6279 variable. Fixes problem on big endian platforms.
6280
6281 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6284 It doesn't work well there.
6285
6286 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
6289 warning.
6290 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
6291 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
6292 counter.
6293
6294 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 Use alias->path rather than buggy "canon".
6297
6298 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
6299 (ofdisk_hash_add): New argument curcan. All users updated.
6300
6301 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6302
6303 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
6304
6305 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6306
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.
6310
6311 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6312
6313 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
6314 with NULL.
6315 (console_grub_equivalences_unshift): Likewise.
6316 Reported by: Daniel Dehennin.
6317
6318 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6319
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
6329 prefix.
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.
6333
6334 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6335
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.
6339
6340 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * BUGS: New file.
6343
6344 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 Pass more appropriate video id to Linux.
6347
6348 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
6349 grub_video_get_driver_id and variable gfxpayloadforcelfb to
6350 fill have_vga.
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.
6354
6355 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 * util/grub-menulst2cfg.c: Add missing include of misc.h.
6358
6359 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6360
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.
6364
6365 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6366
6367 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
6368 implementations bug on them.
6369
6370 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
6371 memory.
6372 (filter_memory_map): Likewise.
6373
6374 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
6377 Reported by: nebuchadnezzar.
6378
6379 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
6382 Reported by: nebuchadnezzar.
6383
6384 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 Submenu default support.
6387
6388 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
6389 auto_boot. All users updated.
6390 Declared static.
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.
6401
6402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * util/grub-mklayout.c (usage): Update help text.
6405
6406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
6409
6410 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * util/grub-menulst2cfg.c (main): Trim the line.
6413
6414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6415
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.
6420
6421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
6424 (grub_machine_mmap_iterate): Take low memory into account
6425
6426 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
6429 badfs.
6430 Reported by: TiCPU.
6431
6432 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
6435 members errors.
6436
6437 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6438
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.
6441
6442 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6443
6444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
6445 openbsd and netbsd types being in part_bsd module.
6446
6447 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
6450 (_FILE_OFFSET_BITS): Likewise.
6451 Reported by: Seth Goldberg.
6452
6453 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6454
6455 * configure.ac: Check for libdevmapper header.
6456
6457 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
6460 avoid aliasing.
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.
6472
6473 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
6476 aliasing warning.
6477 (grub_cmd_terminal_output): Likewise.
6478 Reported and tested by: Grégoire Sutre.
6479
6480 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
6483 warning.
6484 Reported and tested by: Grégoire Sutre.
6485
6486 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * configure.ac: Do CPU substitution even if it's specified explicitly.
6489 Reported and tested by: Alain Greppin.
6490
6491 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
6494 Reported and tested by: Alain Greppin.
6495
6496 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 Satisfy some bison versions need for inttypes.h.
6499
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.
6506
6507 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6510 Silence spurious warning.
6511 Reported and tested by: Alain Greppin.
6512
6513 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6514
6515 * docs/grub.texi (Support automatic decompression): Update with xz
6516 decompression support.
6517
6518 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6519
6520 Improve loaders' kernel command line handling.
6521
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.
6531
6532 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6535 inopos might be unaligned.
6536
6537 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6538
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.
6543
6544 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
6545
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.
6549
6550 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
6553 Reported and tested by: Grégoire Sutre.
6554
6555 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6556
6557 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
6558 avoid causing test failures by clearing the screen.
6559
6560 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6561
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.
6566
6567 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 Run terminfo_cls on initing terminfo output to clear the screen and
6570 move the cursor to (0,0).
6571
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.
6577
6578 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
6581 only when needed.
6582
6583 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
6586 CTRL.
6587
6588 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 The E820 type 5 is BADRAM, not EXEC_CODE.
6591
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.
6598
6599 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6600
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.
6604
6605 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
6608 names.
6609 Reported by: David Pravec.
6610
6611 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
6614 BIOSes.
6615
6616 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6617
6618 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
6619 Prevent overflow.
6620 (grub_reed_solomon_recover): Likewise.
6621
6622 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
6625
6626 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
6629 variable.
6630
6631 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
6632
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.
6637
6638 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
6639
6640 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
6641 on devices that do not implement function 0.
6642
6643 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
6644
6645 * grub-core/fs/hfsplus.c: Make parent unsigned.
6646 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
6647 overflows.
6648 (grub_hfsplus_cmp_extkey): Likewise
6649
6650 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 * util/grub-install.in: Correctly use bootloader_id and not
6653 GRUB_DISTRIBUTOR on efibootmgr line.
6654
6655 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
6658
6659 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
6660
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
6664 Linux.
6665
6666 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6667
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.
6671
6672 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
6675 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
6676 Reported by:EHeM.
6677
6678 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
6681 spurious warning.
6682 Reported by: crocket
6683
6684 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
6687 Preload EFIemu.
6688 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
6689
6690 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
6693 is loaded
6694 (grub_cmd_xnu_kextdir): Likewise.
6695 (grub_cmd_xnu_splash): Likewise.
6696
6697 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 Avoid using Reed-Solomon with 0 redundancy.
6700
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
6703 or 0 redundancy.
6704 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
6705 (grub_reed_solomon_recover): Likewise.
6706
6707 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 Don't use disk subsystem in freebsd_boot.
6710
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.
6715
6716 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6717
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.
6722
6723 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
6724 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6725
6726 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
6727
6728 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
6729 floppy probe.
6730
6731 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
6732
6733 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
6734
6735 2010-12-25 Shea Levy <shlevy>
6736
6737 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
6738
6739 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
6742 Windows Server 2008.
6743 Reported by: Devin Giddings.
6744
6745 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6746
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.
6751
6752 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
6753
6754 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
6755 keep unit tests from failing when they shouldn't.
6756
6757 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6758
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.
6763
6764 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6765
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.
6771
6772 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6773
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.
6777
6778 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6779
6780 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
6781 initialising utf16.
6782
6783 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6784
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.
6795
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).
6801
6802 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
6805 Avoid next pointing to nowhere.
6806
6807 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6808
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.
6812
6813 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6814
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.
6820
6821 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 Fix handling of UTF-16 UDF labels.
6824
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.
6828
6829 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
6830
6831 * grub-core/normal/menu_entry.c (run): Execute commands from menu
6832 editor under argument scope.
6833 Reported by: Jordan Uggla
6834
6835 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
6838
6839 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
6840
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).
6844
6845 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6846
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.
6850
6851 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
6852
6853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
6854 correct cat to grub_uint8_t * rather than grub_uint32_t *.
6855
6856 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6857
6858 * .bzrignore: Ignore grub-core/rs_decoder.S.
6859
6860 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6861
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
6867 locale.
6868 Reported by: Mario Limonciello.
6869
6870 2010-12-09 Robert Millan <rmh@gnu.org>
6871
6872 * NEWS: Document addition of ZFS support.
6873
6874 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
6875
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.
6879
6880 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
6881
6882 * util/grub-script-check.c (main): Print script line number on
6883 error.
6884
6885 2010-12-01 Robert Millan <rmh@gnu.org>
6886
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.
6892
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.
6910
6911 * Makefile.util.def: Build ZFS into libgrubmods.
6912 * grub-core/Makefile.core.def: Build zfs.mod.
6913
6914 2010-11-30 Szymon Janc <szymon@janc.net.pl>
6915
6916 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
6917 variable.
6918 * grub-core/commands/wildcard.c (match_files): Likewise.
6919
6920 2010-11-30 Robert Millan <rmh@gnu.org>
6921
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.
6927
6928 2010-11-30 Robert Millan <rmh@gnu.org>
6929
6930 * grub-core/commands/echo.c: Include `<grub/term.h>'.
6931 (grub_cmd_echo): Call grub_refresh() after printing a message.
6932
6933 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 Avoid using tricks for initialising endian variables.
6936
6937 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
6938 Make const.
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.
6946
6947 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
6948
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.
6952
6953 2010-11-26 Robert Millan <rmh@gnu.org>
6954
6955 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
6956 Update all users.
6957
6958 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
6959
6960 Fix LVM-on-RAID probing.
6961
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.
6965
6966 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
6967
6968 Fix cmdline argument quotes for setparams command of menuentry
6969 definitions.
6970
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.
6975
6976 * include/grub/misc.h (grub_strchrsub): New function.
6977
6978 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6979
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.
6983
6984 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6985
6986 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
6987 ldflags to ldadd, to fix link line ordering.
6988 (none_decompress): Likewise.
6989
6990 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
6991
6992 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
6993 platforms.
6994 (grub-emu-lite): Remove kern/emu/cache.S.
6995
6996 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
6997
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.
7002
7003 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7004
7005 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7006 ldflags, to fix link line ordering.
7007
7008 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7009
7010 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7011 linkers are picky about this.
7012
7013 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7014
7015 * grub-core/Makefile.am (command.lst): Adjust sed expression
7016 ordering so that extended and priority commands aren't treated as
7017 ordinary commands.
7018
7019 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7020
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
7025 non-const.
7026 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7027 grub_gpt_partition_type_bios_boot.
7028
7029 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7030
7031 Fix test program build on GNU/kFreeBSD.
7032
7033 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7034 $(LIBNVPAIR)' library dependencies.
7035
7036 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7037
7038 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7039
7040 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7041
7042 * util/grub-install.in: Remove excessive quoting that broke
7043 installations to RAID devices.
7044
7045 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7048 bootloader version instead of 0.
7049
7050 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7051
7052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7053 warning.
7054
7055 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7056
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.
7060
7061 2010-11-18 Robert Millan <rmh@gnu.org>
7062
7063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7064 with grub_memcmp().
7065
7066 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7069 arrow.
7070 Reported by: Jordan Uggla.
7071
7072 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Make better UTF compliant.
7075
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.
7083
7084 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Make legacy_source behave like source.
7087
7088 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7089 grub_show_menu.
7090 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7091
7092 2010-11-16 Colin Watson <cjwatson@debian.org>
7093
7094 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7095 (-Wunused implies -Wunused-parameter, but not vice versa).
7096
7097 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7098
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).
7102
7103 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7106 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7107 (now unused).
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.
7111
7112 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7115 allocate_regbeg may need to create new chunk header.
7116
7117 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 Fix quoting in legacy parser.
7120
7121 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7122 single quotes.
7123 (grub_legacy_parse): Likewise.
7124 Reported by: Jordan Uggla.
7125 Tested by: Jordan Uggla.
7126
7127 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 Don't add -lgcc on i386 and x86_64.
7130
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.
7134
7135 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 * configure.ac: Add -Wno-trampolines when supported.
7138
7139 2010-11-14 Modestas Vainius <modax@debian.org>
7140
7141 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7142 fakeraid.
7143
7144 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7145
7146 Add generic logical block size support for UDF.
7147
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
7156 former.
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.
7160
7161 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7162
7163 Properly handle deleted files on UDF.
7164
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
7167 set.
7168
7169 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7170
7171 Support reading files larger than 2 GiB.
7172
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".
7176
7177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7178
7179 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7180 unavailable.
7181 (Simple configuration): Refer to Changes from GRUB Legacy about
7182 save_env availability.
7183
7184 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * util/grub-install.in: Ignore empty partition table detection
7187 instead of trying to include part_ module.
7188
7189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7192 LVM on RAID support.
7193
7194 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 Properly define WORDS_BIGENDIAN in wrapped environments.
7197
7198 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7199 definition.
7200 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7201
7202 Reported by: Manoel Rebelo Abranches.
7203 Tested by: Manoel Rebelo Abranches.
7204
7205 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 * util/grub-mkconfig.in: Fix quoting.
7208
7209 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 Support big ext2 files.
7212
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.
7219
7220 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 * util/grub-install.in: Handle filenames containing spaces.
7223 Reported by: Jordan Uggla.
7224 Tested by: Jordan Uggla.
7225
7226 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7227
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.
7231
7232 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * docs/grub.texi (menu): Correct the order.
7235 Reported by: D. Hugh Redelmeier.
7236
7237 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7240 jump.
7241
7242 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7243
7244 * include/grub/elfload.h (grub_elf32_size): New parameter.
7245 All users updated.
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.
7257
7258 2010-11-07 Robert Millan <rmh@gnu.org>
7259
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
7263 `-march=mips3'.
7264 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7265 or otherwise add -march=mips3.
7266
7267 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7268
7269 Suppress shell expansion on echo '*' and echo "*" like cases.
7270 Reported by: Jordan Uggla.
7271
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.
7275
7276 2010-11-07 Robert Millan <rmh@gnu.org>
7277
7278 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7279 transition.
7280
7281 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * grub-core/kern/emu/hostdisk.c
7284 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7285
7286 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7287
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.
7291
7292 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
7295
7296 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7297
7298 * util/grub-install.in: Replace useless recomendation to pass
7299 --modules with a recomendation to report a bug.
7300
7301 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 Properly register serial terminfo.
7304 Reported by: Jordan Uggla
7305
7306 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
7307 const.
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.
7312
7313 2010-11-05 Robert Millan <rmh@gnu.org>
7314
7315 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
7316 needed).
7317
7318 2010-11-05 Robert Millan <rmh@gnu.org>
7319
7320 On Yeeloong, pass machine type information to Linux.
7321
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.
7327
7328 2010-11-04 Robert Millan <rmh@gnu.org>
7329
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
7333 kFreeBSD).
7334 Reported by Carsten Aulbert.
7335
7336 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
7337
7338 * util/bin2h.c (main): Fix spelling error in generated output.
7339
7340 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
7341
7342 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
7343
7344 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
7347 vga= option is supplied.
7348
7349 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7350
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.
7355
7356 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
7359 argument as an argument to no-argument option.
7360
7361 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * util/grub.d/10_linux.in: Add missing load_video with explicit
7364 GRUB_GFXPAYLOAD_LINUX.
7365
7366 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
7369
7370 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7371
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
7376 members.
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.
7381
7382 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
7385 is modified
7386
7387 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
7388
7389 NetBSD build fix for getline function conflict from gnulib.
7390
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.
7395
7396 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
7399 install rather than creating a broken install.
7400
7401 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * util/grub-setup.c (argp): Remove misleading example of installing to
7404 a partition.
7405
7406 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * util/grub-setup.c (setup): Clarify the error message.
7409
7410 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
7413
7414 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7415
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.
7419
7420 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * grub-core/kern/emu/misc.c
7423 (grub_make_system_path_relative_to_its_root): Revert r2882.
7424
7425 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
7426
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.
7430
7431 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
7432
7433 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
7434 (Supported kernels): Likewise.
7435
7436 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7437
7438 Make mktemp invocations portable.
7439
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 `&&'
7448 instead of ';'.
7449 * util/grub-mkrescue.in: Use the same explicit template as above, and
7450 exit if mktemp fails.
7451
7452 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
7453
7454 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
7455 Linux kernel, reported by Dennis Schridde.
7456
7457 2010-10-17 Szymon Janc <szymon@janc.net.pl>
7458
7459 * grub-core/normal/auth.c (grub_auth_check_authentication):
7460 Set-but-not-used variable removed.
7461
7462 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * docs/grub.texi (GNU/Linux): Document APM unavailability with
7465 32-bit linux protocol.
7466
7467 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
7470 cursor shape for sanity.
7471
7472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * docs/grub.texi (Installation): Document buggy BIOS install.
7475
7476 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7477
7478 * docs/grub.texi (Installation): Indent.
7479
7480 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7481
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
7487 grub-setup.
7488
7489 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * util/grub-install.in: Handle partitionless disks.
7492
7493 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * util/grub-setup.c (setup): Don't clean blocklists before readability
7496 verfification.
7497
7498 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * docs/grub.texi (Installation): Document embedding zone. Remove
7501 obsolete grub-install example.
7502
7503 2010-10-16 Szymon Janc <szymon@janc.net.pl>
7504
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
7509 variable removed.
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):
7521 Likewise.
7522
7523 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7524
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
7527 enum value.
7528
7529 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7532 synonym to _S5_. Needed for some DSDTs.
7533
7534 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 Userspace ACPI parser debugging.
7537
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.
7543
7544 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 Remove dead grub_efi_mm_fini.
7547
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.
7556
7557 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7558
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.
7561
7562 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7563
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
7566 roken ports.
7567 * include/grub/serial.h (grub_serial_port): New field broken.
7568
7569 2010-10-16 Robert Millan <rmh@gnu.org>
7570
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.
7575
7576 2010-10-15 Robert Millan <rmh@gnu.org>
7577
7578 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
7579 guarantee compressed ones are processed first.
7580
7581 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
7584 grub_efiemu_autocore.
7585
7586 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
7589 rather than 0x1b.
7590 (grub_console_getkey): Use correct jae opcode rather than ja.
7591
7592 2010-10-12 Robert Millan <rmh@gnu.org>
7593
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.
7597
7598 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
7599
7600 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 Correctly distinguish mdraid flavours.
7603
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".
7609
7610 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
7613 handling of special keys.
7614
7615 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7616
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.
7619
7620 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7621
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
7624 users updated.
7625 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
7626 Use right endpoint when querying descriptor.
7627
7628 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Clear out 0x80 color bit on EFI.
7631 Tested by: decoder
7632 Reported by: decoder and meta tech.
7633
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.
7639
7640 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
7643 Set to "auto".
7644
7645 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
7648 mo_file after freeing.
7649
7650 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
7653
7654 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
7657 flags.
7658
7659 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
7662 usage.
7663
7664 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 Put terminfo into core on ieee1275 and yeeloong (needed for console).
7667
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.
7674 (extcmd): Likewise.
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 ->.
7679
7680 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
7683 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
7684
7685 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 Fix coreboot compilation.
7688
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
7692 is supported.
7693 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
7694 on coreboot, multiboot and qemu.
7695
7696 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
7699 debug messages.
7700 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
7701
7702 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
7705 parameters.
7706
7707 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
7710 if they were BSD-style.
7711
7712 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7713
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.
7717
7718 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 Write embedding zone using Reed-Solomon.
7721
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
7729 on boot.
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):
7733 New definition.
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.
7741
7742 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
7743
7744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7745 i386 and x86-64 definedness tests.
7746
7747 2010-09-27 Yves Blusseau <blusseau@zetam.org>
7748
7749 Fix generation of kernel_syms.lst
7750
7751 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
7752 ASM_PREFIX
7753
7754 2010-09-26 Robert Millan <rmh@gnu.org>
7755
7756 Support degraded ZFS arrays in "grub-probe -t device" resolution.
7757
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
7761 the first one).
7762
7763 2010-09-26 Robert Millan <rmh@gnu.org>
7764
7765 Build fixes for GNU/kFreeBSD.
7766
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.
7771
7772 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7773
7774 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
7775
7776 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7777
7778 Fix grub-emu build.
7779
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.
7783
7784 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
7785
7786 Re-enable grub-extras.
7787
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.
7800
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.
7812 (data): Likewise.
7813 (script): Likewise.
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.
7825
7826 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
7827
7828 * .bzrignore: Add contrib and grub-core/contrib. Remove
7829 grub-core/Makefile.gcry.am.
7830
7831 2010-09-24 Yves Blusseau <blusseau@zetam.org>
7832
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.
7843
7844 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
7845
7846 * Makefile.util.def (example_unit_test): Add
7847 grub-core/gnulib/libgnu.a.
7848
7849 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
7850
7851 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
7852
7853 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 Support xz compression on yeeloong.
7856
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
7869 nomacro.
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):
7880 Removed.
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
7894 (help): Likewise.
7895 (main): Handle new option.
7896
7897 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
7898
7899 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
7900
7901 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
7902
7903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7904 typo in __i386__ conditional.
7905
7906 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
7909 include.
7910
7911 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
7912
7913 Implement EFI and ACPI multiboot2 extensions.
7914
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.
7921
7922 2010-09-21 Aleš Nesrsta <starous@volny.cz>
7923
7924 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
7925 Added missing configuration of USB device.
7926
7927 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7928
7929 * grub-core/normal/menu_entry.c (run): Make sure we always return
7930 a value.
7931
7932 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7933
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.
7937
7938 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7939
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.
7943
7944 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7945
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
7949 points to.)
7950
7951 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7952
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.
7957
7958 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7959
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.
7963
7964 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7965
7966 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
7967 check hash checksum." consistently translatable.
7968
7969 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7970
7971 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
7972 $(top_builddir).
7973
7974 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7975
7976 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
7977 (GRUB_MOD_INIT): Register sha1sum command.
7978 (GRUB_MOD_FINI): Unregister sha1sum command.
7979
7980 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7981
7982 Keep boot and grub directory names in sync with utils scripts
7983
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.
7988
7989 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
7990
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
7993 is set.
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.
7997
7998 2010-09-21 Yves Blusseau <blusseau@zetam.org>
7999
8000 * util/grub-editenv.c: Update strings to avoid warnings when generating
8001 grub.pot file.
8002 * util/grub-setup.c: Likewise.
8003
8004 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * configure.ac: Change version to 1.99~beta0.
8007
8008 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8009
8010 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8011 Add BADRAM.
8012 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8013 Likewise.
8014 * include/multiboot.h: Resynced with specification.
8015 * include/multiboot2.h: Likewise.
8016
8017 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8018
8019 Fix po directory handling.
8020
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.
8061
8062 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8065
8066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 * util/grub.d/20_linux_xen.in: Use submenus.
8069
8070 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 Support submenus.
8073
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
8079 if requested.
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.
8085
8086 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 Menu entries extractor.
8089
8090 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8091 variants.
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
8100 as an extractor.
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
8106 as an extractor.
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.
8118
8119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 Make cutmem accept a region specification.
8122 Suggested by: Samuel Thibault
8123
8124 * grub-core/mmap/mmap.c (parsemem): New function.
8125 (grub_cmd_cutmem): Handle new arguments.
8126
8127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 New command cutmem.
8130
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.
8134
8135 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8136
8137 Support some annoying BSD and Minix subpartitions.
8138
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
8147 struct.
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
8161 proto.
8162 * include/grub/partition.h (grub_partition): New field msdostype.
8163 * util/grub-install.in: Handle openbsd and netbsd types being in
8164 part_bsd module.
8165
8166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8169
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.
8176
8177 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8180 vsprintf.
8181
8182 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8183
8184 * grub-core/commands/efi/lsefimmap.c: Correct header.
8185 * NEWS: Update.
8186
8187 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8188
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.
8192 (main): Likewise.
8193 * util/grub-fstest.c (argp_parser): Likewise.
8194 * util/grub-setup.c (argp_parser): Likewise.
8195 (main): Likewise.
8196
8197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 Use argp in grub-fstest.
8200
8201 * util/grub-fstest.c: Don't include getopt.h.
8202 Include argp.h.
8203 (root): New variable.
8204 (args_count): Likewise.
8205 (nparm): Likewise.
8206 (num_disks): Likewise.
8207 (images): Likewise.
8208 (cmd): Likewise.
8209 (debug_str): Likewise.
8210 (args): Likewise.
8211 (options): Transformed to argp.
8212 (usage): Removed.
8213 (main): Split argument parsing into ...
8214 (argp_parser): ... this. Changed to argp format.
8215 (argp): New variable.
8216 (main): Use argp_parse.
8217
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>
8221
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.
8225
8226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8227
8228 Pause the execution (10s max) if any errors are displayed so the user
8229 has a chance to see them.
8230
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
8238 users updated.
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.
8242
8243 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 Support multiboot VBE info.
8246
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
8254 as supported.
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
8261 function.
8262 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8263 proto.
8264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8265
8266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 Suport manual terminal geometry specification.
8269
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
8281 width and height.
8282 (grub_terminfo_getwh): New proto.
8283 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8284
8285 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 Handle legacy "terminal" command.
8288
8289 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
8290 and FLAG_TERMINAL.
8291 (legacy_commands): Add terminal and title.
8292 (grub_legacy_parse): Handle terminal. Simplify title handling.
8293
8294 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8295
8296 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
8297 parameters overflow.
8298
8299 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8300
8301 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
8302 widthspec.h.
8303
8304 * docs/grub.texi (Shell-like scripting): Document `!'.
8305 (Network): Simplify using new i386-pc-pxe format. Mention
8306 grub-mknetdir.
8307
8308 * NEWS: Update.
8309
8310 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8311
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
8314 when needed.
8315
8316 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8317
8318 * grub-core/commands/efi/lsefisystab.c: Correct header.
8319 * grub-core/commands/efi/lssal.c: Likewise.
8320 * grub-core/commands/testload.c: Likewise.
8321
8322 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8323
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).
8327
8328 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8329
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
8335 function.
8336 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
8337 on FreeBSD.
8338
8339 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8340
8341 * util/grub-editenv.c: Use argp instead of getopt.
8342
8343 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8344
8345 * util/grub-setup.c: Use argp instead of getopt.
8346
8347 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8348
8349 Use gnulib-tool to create gnulib source files.
8350
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
8361 build-aux
8362 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
8363 in gnulib headers
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
8367 header.
8368 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
8369 string.
8370
8371 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8372
8373 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
8374 grub-core/genmod.sh and grub-core/gensyminfo.sh
8375
8376 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
8377
8378 Add a test for echo command options.
8379
8380 * tests/grub_cmd_echo.in: New test.
8381 * Makefile.util.def: Rules for new test.
8382
8383 2010-09-20 Szymon Janc <szymon@janc.net.pl>
8384
8385 Remove crc.mod and move crc command to hashsum.mod.
8386 Remove lib/crc.c - users updated to use gcrypt implementation.
8387
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.
8402
8403 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
8406
8407 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 Split config.h for util and core.
8410
8411 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
8412 (ADDR32): Likewise.
8413 (DATA32): Likewise.
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
8422 updated.
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.
8433
8434 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8435
8436 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
8437 constants usage.
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.
8441
8442 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
8445 print pointer.
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
8449 print pointer.
8450 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
8451 PRIuGRUB_SIZE.
8452 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
8453
8454 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * grub-core/Makefile.core.def (legacycfg): Add
8457 lib/i386/pc/vesa_modes_table.c on emu.
8458
8459 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8460
8461 Reduce number of temporary files generated by build system.
8462
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.
8471
8472 * grub-core/genmod.sh.in: New file.
8473 * grub-core/gensyminfo.sh.in: New file.
8474
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-*
8479 and und-* files.
8480 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
8481 genmod.sh scripts.
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
8485 CLEANFILES.
8486
8487 2010-09-19 Yves Blusseau <blusseau@zetam.org>
8488
8489 * Makefile.util.def: Add forgotten $(LIBINTL) library.
8490
8491 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8492
8493 * util/grub-mkconfig.in: Check the config script for syntax errors
8494 before saving.
8495
8496 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
8497 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * Makefile.util.def (grub-install): Use util/grub-install.in on all
8500 platforms.
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.
8504
8505 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8506
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.
8512
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>
8516
8517 Add keyboard layouts support.
8518
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
8535 function.
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
8541 aliases.
8542 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
8543 support scancode 2.
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.
8548
8549 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 Unify memory types.
8552
8553 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
8554 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
8555 types.
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.
8560 All users updated.
8561
8562 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8563
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]:
8568 Likewise.
8569 * include/grub/i386/pc/apm.h: New file.
8570 * include/multiboot.h (multiboot_apm_info): New struct.
8571
8572 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 GRUB-legacy configuration file support.
8575
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.
8593
8594 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8595
8596 * grub-core/kern/emu/hostdisk.c
8597 (convert_system_partition_to_system_disk): Initialise node.
8598
8599 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8600
8601 * grub-core/kern/emu/hostdisk.c
8602 (convert_system_partition_to_system_disk): Fix devmapper memory pool
8603 leak.
8604 Reported and based on patch by: Modestas Vainius.
8605
8606 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8607
8608 Fix DM-RAID probing with recent versions of device-mapper udev
8609 rules.
8610
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.
8616
8617 2010-09-17 Yves Blusseau <blusseau@zetam.org>
8618
8619 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
8620
8621 2010-09-16 Yves Blusseau <blusseau@zetam.org>
8622
8623 * configure.ac: Avoid some annoying error messages if freetype-config
8624 program is not found.
8625
8626 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8627
8628 Support RAID on virtio devices, and others.
8629
8630 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
8631 Rename to ...
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
8637 ...
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.
8641
8642 * util/raid.c (grub_util_getdiskname): Remove.
8643 (grub_util_raid_getmembers): Use grub_find_device rather than
8644 grub_util_getdiskname.
8645
8646 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8647
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.
8653
8654 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8655
8656 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
8657 libgrub_a_init.c, and util/bash-completion.d/grub.
8658
8659 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8660
8661 * util/grub-setup.c (setup): Fix incorrect container semantics.
8662
8663 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
8666 misusage.
8667 Reported by: J. Nick Terry
8668
8669 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 Move embedding routines to partmap sources files.
8672
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]:
8679 New function.
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.
8685
8686 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
8689 function.
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.
8692
8693 2010-09-15 Yves Blusseau <blusseau@zetam.org>
8694
8695 Add function to get completions from usage.
8696
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.
8699
8700 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8701
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.
8708
8709 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8710
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.
8717
8718 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8719
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
8723 calculations.
8724
8725 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8726
8727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
8728
8729 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8730
8731 Fix incorrect echo options handling.
8732 Reported by: Yves Blusseau.
8733
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.
8738
8739 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
8742 users updated.
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.
8751
8752 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
8753
8754 Fix solaris compilation.
8755
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.
8759
8760 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 Remove deprecated root command.
8763
8764 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
8765 updated.
8766
8767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8768
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]:
8773 New struct.
8774
8775 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
8778 possible.
8779
8780 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
8783 allocate p.
8784
8785 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8786
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
8789 argument to set.
8790
8791 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
8794
8795 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 Don't export grub_gate_a20.
8798
8799 * grub-core/kern/i386/pc/init.c: Remove leftovers.
8800 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
8801 to ...
8802 (grub_gate_a20): ... this. All users updated.
8803 * include/grub/i386/pc/init.h: Removed. All users updated.
8804
8805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 Create euro.pf2 which supports most European languages.
8808
8809 * Makefile.am (grubdata_DATA): Add euro.pf2.
8810 (euro.pf2): New target.
8811 (CLEANFILES): Add euro.pf2.
8812
8813 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * configure.ac: Disable emu-usb by default to prevent inadvertent
8816 device takeover.
8817
8818 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 Disable usbserial on grub-emu since our libusb code isn't good enough
8821 yet.
8822
8823 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
8824 (usbserial_pl2303): Likewise.
8825 (usbserial_ftdi): Likewise.
8826
8827 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * include/grub/disk.h (grub_disk): Remove has_partitions.
8830 All users updated.
8831 * disk/loopback.c (grub_loopback): Remove has_partitions.
8832 All users updated.
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.
8837
8838 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 Remove readability checks (too many false negatives).
8841
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
8848 way.
8849
8850 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 Enable acpi shutdown on all ACPI platforms.
8853
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.
8863
8864 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
8867 context.
8868
8869 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/video/efi_gop.c: Fix over-80-chars line.
8872 * grub-core/video/efi_uga.c: Likewise.
8873
8874 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 Filter devaliases and never open same device twice.
8877
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):
8889 New function.
8890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
8891 New proto.
8892
8893 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 Fix sparc64.
8896
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.
8904
8905 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 * grub-core/normal/completion.c (complete_file): Handle device
8908 containing slash.
8909 Fix based on patch by Doug Nazar.
8910
8911 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 grub-mknetdir script.
8914
8915 * Makefile.util.def (grub-mknetdir): New module.
8916 * tests/util/grub-shell.in: Support boot=net
8917 * util/grub-mknetdir.in: New file.
8918
8919 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 videoinfo on non-vbe.
8922
8923 * grub-core/Makefile.core.def (vbeinfo): Removed.
8924 (vbetest): 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
8930 specification.
8931 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
8932 as vbetest.
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.
8948 All users updated.
8949 (grub_video_mode_info): New field mode_number.
8950 (grub_video_adapter): New fields iterate and
8951 print_adapter_specific_info.
8952
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>
8956
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.
8971
8972 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 Support explicit user claim that a device is BIOS-visible.
8975
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
8983 proto.
8984
8985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 Search hints support.
8988
8989 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
8990 All users updated.
8991
8992 2010-09-13 Yves Blusseau <blusseau@zetam.org>
8993
8994 Bash completion script for util commands
8995
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.
9000
9001 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9002
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.
9006
9007 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9010 partition size and offset.
9011
9012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9015
9016 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9019
9020 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9023 (grub_xvasprintf): Likewise.
9024
9025 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9026
9027 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9028
9029 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9032 args ending with NULL.
9033
9034 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9037 pointer.
9038
9039 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9040
9041 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9042
9043 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9044
9045 Shutdown using ACPI.
9046
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.
9056
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>
9060
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.
9074
9075 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9076
9077 Implement loading palette on ieee1275_fb.
9078
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.
9084
9085 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9086 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9087
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.
9092
9093 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 Fix emu on mipsel.
9096
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
9101 platforms.
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
9113 function.
9114
9115 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9116
9117 * util/grub-install.in: Don't try to verify core.img until after
9118 running grub-mkimage to create it.
9119
9120 2010-09-10 Robert Millan <rmh@gnu.org>
9121
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.
9125
9126 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9127
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.
9131
9132 2010-09-10 Robert Millan <rmh@gnu.org>
9133
9134 Solaris support in grub_find_zpool_from_dir(). Thanks
9135 Seth Goldberg for referring to getextmntent() facility.
9136
9137 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9138 `sys/mkdev.h'.
9139 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9140 `<sys/mnttab.h>'.
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.
9144
9145 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9146
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.
9150
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.
9155
9156 2010-09-10 Robert Millan <rmh@gnu.org>
9157
9158 * configure.ac: Check for `struct statfs.f_fstypename' and
9159 `struct statfs.f_mntfromname'.
9160
9161 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9162 kFreeBSD-specific code.
9163
9164 2010-09-10 Robert Millan <rmh@gnu.org>
9165
9166 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9167 on ZFS. Now non-main filesystems are supported as / too.
9168
9169 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9170
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.
9175
9176 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9177 when writing to a file, not when writing to stdout.
9178
9179 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9180
9181 * tests/partmap_test.in: New test for partitions.
9182 * Makefile.util.def: Rules for new test.
9183
9184 2010-09-09 Robert Millan <rmh@gnu.org>
9185
9186 * util/grub-probe.c (probe): Fix a pair of unhandled error
9187 conditions.
9188
9189 2010-09-09 Robert Millan <rmh@gnu.org>
9190
9191 Basic Btrfs support (detection and UUID).
9192
9193 * grub-core/fs/btrfs.c: New file.
9194 * Makefile.util.def (library): Register btrfs.c.
9195 * grub-core/Makefile.core.def: Likewise.
9196
9197 2010-09-08 Robert Millan <rmh@gnu.org>
9198
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.
9205
9206 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9207
9208 Split minix.mod into minix.mod and minix2.mod.
9209
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
9213 checking.
9214 * grub-core/fs/minix2.c: New file.
9215
9216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9217
9218 Add new --boot-directory option to replace --root-directory
9219
9220 * util/grub-install.in: Add new --boot-directory option
9221 * util/grub-reboot.in: Likewise.
9222 * util/grub-set-default.in: Likewise.
9223
9224 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9225
9226 * util/grub-mkconfig.in: Use new variable.
9227
9228 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9229
9230 * configure.ac: Define some useful variables.
9231
9232 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9233
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
9238 to work.
9239 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9240 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9241
9242 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9243
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.
9248
9249 2010-09-08 Robert Millan <rmh@gnu.org>
9250
9251 * configure.ac: Remove `--enable-grub-fstest' option.
9252 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9253
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.
9257
9258 2010-09-08 Robert Millan <rmh@gnu.org>
9259
9260 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9261 initializing `GRUB_FS'.
9262
9263 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9264
9265 Not command (!) support to GRUB script.
9266
9267 * tests/grub_script_not.in: New test.
9268 * Makefile.util.def: Rules for new test.
9269
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.
9273
9274 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9275
9276 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9277 grub_free.
9278
9279 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9280
9281 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9282
9283 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9284
9285 * docs/grub.texi (Shell-like scripting): Documentation for break,
9286 continue, shift and return commands.
9287
9288 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Rename CD-ROM to cd on BIOS.
9291
9292 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
9293 "cd".
9294 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
9295
9296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9297
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
9303
9304 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
9307 diagnostic info.
9308
9309 2010-09-05 Jo Shields <directhex@apebox.org>
9310
9311 * util/grub.d/30_os-prober.in: Add missing classes.
9312
9313 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * docs/grub.texi (Theme file format): Document new position format.
9316
9317 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
9320 a table. Use @code instead of @verbatim.
9321
9322 2010-09-05 Colin D Bennett <colin@gibibit.com>
9323
9324 Gfxmenu documentation.
9325
9326 * docs/grub.texi (Theme file format): New chapter.
9327
9328 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9329
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.
9342
9343 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
9346 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
9347 size.
9348
9349 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9350
9351 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
9352 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
9353
9354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 Uncompressed checksum support.
9357
9358 * grub-core/commands/hashsum.c (options): Add option --uncompress.
9359 (check_list): New parameter uncompress.
9360 (grub_cmd_hashsum): Handle --uncompress.
9361
9362 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9363
9364 Reintroduce testload.
9365
9366 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
9367 from here ...
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.
9372
9373 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9374
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.
9380
9381 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9382
9383 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
9384
9385 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
9388 Made static.
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.
9406
9407 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9408
9409 Filename expansion support for wildcards in GRUB script.
9410
9411 * tests/grub_script_expansion.in: New test.
9412 * Makefile.util.def: Rule for new test.
9413
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
9421 struct.
9422
9423 * tests/util/grub-shell.in: Fix quoting for read input.
9424
9425 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9426
9427 Support for updating environment variables with matched substrings
9428 of regexp.
9429
9430 * tests/grub_cmd_regexp.in: New test.
9431 * Makefile.util.def: Rule for new test.
9432
9433 * grub-core/commands/regexp.c: New option -s to update environment
9434 variables with regexp matches.
9435
9436 2010-09-04 Szymon Janc <szymon@janc.net.pl>
9437
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
9441 easily seekable.
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.
9445
9446 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9447
9448 Support for options to appear multiple times on cmdline.
9449
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.
9454
9455 Refactor menuentry into a regular command.
9456
9457 * grub-core/commands/menuentry.c: New file, menuentry command
9458 implementation.
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
9465 function.
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.
9475
9476 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9477
9478 "return" command for GRUB script functions.
9479
9480 * tests/grub_script_return.in: New test.
9481 * Makefile.util.def: Rules for new test.
9482
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.
9486
9487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9488
9489 "setparams" command to update positional parameters.
9490
9491 * tests/grub_script_setparams.in: New test.
9492 * Makefile.util.def: Rules for new test.
9493
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.
9501
9502 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9503
9504 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
9505 grub_free order.
9506
9507 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9508
9509 Support for passing block of commands as an argument to extcmds.
9510
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.
9515
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
9520 type.
9521 * include/grub/script_sh.h (struct grub_script): New members
9522 `children', `next_siblings' and `refcnt' for block arguments and
9523 reference counting.
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.
9531
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'
9540 non-terminals.
9541
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.
9572
9573 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9574
9575 Multi-line quoted strings support.
9576
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
9584 and resplit.
9585 * tests/grub_script_echo1.in: Added few more testcases.
9586
9587 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9588
9589 * grub-core/kern/misc.c: Don't add abort alias in utils.
9590 Reported by: echoline.
9591
9592 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
9593
9594 Add missing files into "make dist" tarball for other platforms.
9595
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.
9600
9601 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 Compress grub_prefix.
9604
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
9612 + 0x40.
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.
9616
9617 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
9620 value.
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.
9625
9626 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9627
9628 * configure.ac: Clean LIBS variable after tests.
9629
9630 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9631
9632 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
9633
9634 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
9637 echo if libdevmapper will be used.
9638
9639 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
9640
9641 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
9642 constant for the same file.
9643
9644 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
9647
9648 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9649
9650 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
9651 grub-core/*.pp.
9652
9653 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9654
9655 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
9656 required by the boot protocol.
9657
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
9666 and state.edi.
9667
9668 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9669
9670 Add i386-pc-pxe image target.
9671
9672 * util/grub-mkimage.c (image_target_desc): New enum value
9673 IMAGE_I386_PC_PXE.
9674 (image_targets): New target i386-pc-pxe.
9675 (generate_image): Handle i386-pc-pxe image.
9676
9677 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 Fix grub_pxe_scan.
9680
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.
9683 All users updated.
9684 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
9685 (grub_pxe_pxenv): Correct type.
9686
9687 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9688
9689 * NEWS: Document most of the important changes since 1.98.
9690
9691 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9692
9693 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
9694 generated manual page) a little.
9695
9696 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9697
9698 * docs/grub.texi: Add myself as an author.
9699
9700 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * Makefile.util.def (libgrub.a): Add missing sunpc.
9703 Reported by: Seth Goldberg.
9704
9705 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 Interrupt wrapping and code simplifications.
9708
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
9712 all noemu.
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.
9726 (cmos): New group.
9727 (usb): 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.
9756 (lspci): Likewise.
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.
9763 (bufio): Likewise.
9764 (datetime): Use tag cmos. Enable on all noemu.
9765 (mmap): Use tags common and x86.
9766 (gfxterm): Use tag videomodules.
9767 (bitmap): Likewise.
9768 (bitmap_scale): Likewise.
9769 (video_fb): Likewise.
9770 (video): 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.
9784 Made static.
9785 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
9786 Made static.
9787 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
9788 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
9789 Transformed into C.
9790 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
9791 Moved from here ...
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):
9795 Moved from here ...
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.
9802 Made static.
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):
9824 New function.
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):
9840 Moved from here...
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):
9844 Moved from here...
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):
9850 Moved from here...
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):
9854 Moved from here...
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):
9858 Moved from here...
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):
9862 Moved from here...
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):
9866 Moved from here...
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):
9874 Moved from here...
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):
9878 Moved from here...
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):
9882 Moved from here...
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):
9886 Moved from here...
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):
9890 Moved from here...
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):
9894 Moved from here...
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):
9898 Moved from here...
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
9916 grub_stop_floppy.
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
9927 prototypes.
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
9931 noreturn.
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.
9938
9939 2010-08-30 Robert Millan <rmh@gnu.org>
9940
9941 * NEWS: Document addition of ZFS support in `grub-install' and
9942 `grub-mkconfig'.
9943
9944 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
9945
9946 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
9947 dprintf output.
9948
9949 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 Remove leftover embedding of font objects.
9952
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
9956 updated.
9957
9958 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 Remove leftover embedding of font objects.
9961
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
9965 updated.
9966
9967 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * docs/grub.texi (Network): Fix reference to pxe_blksize.
9970 Reported by: Ian Turner
9971
9972 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
9975 timeout to avoid indefinite boot stalling.
9976
9977 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
9980 (grub_env_write_color_highlight): Likewise.
9981
9982 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * grub-core/normal/term.c (print_more): Return to normal and not
9985 to standard state after printing "---MORE---".
9986
9987 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9988
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.
9991
9992 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 New relocator. Allows for more kernel support and more straightforward
9995 loader writing.
9996
9997 * Makefile.am (BOOTTARGET): New variable.
9998 (QEMU32): Likewise.
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
10065 extra_dist.
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
10069 i386-qemu.
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
10084 function.
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
10098 finished.
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.
10125 All users updated.
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
10172 and finish EFI.
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
10189 kopenbsd_ramdisk.
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
10276 EFI is finished.
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):
10308 New definition.
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):
10314 Changed prototype.
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 *
10338 to grub_uint32_t.
10339 * include/grub/i386/loader.h: Removed.
10340 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
10341 value.
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):
10364 Likewise.
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]:
10392 New prototype.
10393 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
10394 New definition.
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.
10412
10413 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10414
10415 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
10416 on malloc error.
10417 (grub_bidi_logical_to_visual): Check that malloc succeded.
10418 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
10419 puts.
10420 (grub_xputs_normal): Likewise.
10421
10422 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10423
10424 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
10425 extra_dist.
10426
10427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 * grub-core/efiemu/runtime/efiemu.sh: Removed.
10430
10431 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
10434
10435 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
10438 dprintf.
10439
10440 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
10441
10442 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
10443
10444 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10445
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.
10449
10450 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
10453 the begining of the string
10454
10455 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * grub-core/script/script.c (grub_script_parse): Free parsed on
10458 failure.
10459
10460 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
10463 on failure.
10464
10465 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
10468 return.
10469
10470 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
10473 (scroll_up): Fix a memory leak.
10474
10475 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
10478 errors.
10479
10480 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
10481
10482 Handle USB pendrives exposed as floppies.
10483
10484 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
10485 floppy.
10486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10487 Check for partitions on all devices.
10488
10489 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10490
10491 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
10492 (readkey): Likewise.
10493
10494 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10495
10496 Multiple variable names support to "export" command.
10497
10498 * normal/context.c (grub_cmd_export): "export" command supports
10499 multiple variable names.
10500
10501 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
10502
10503 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
10504 --target=drive output to Mach device name.
10505
10506 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10507
10508 New Automake based build system for GRUB.
10509
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
10514 GRUB host utils.
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
10520 template.
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.
10528
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.
10536
10537 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
10538 necessary.
10539 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
10540 New prototype.
10541
10542 * include/grub/test.h: Fix functional test modules' naming.
10543 * grub-core/tests/example_functional_test.c: Fix test module name.
10544
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.
10557
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.
10561
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.
10569
10570 * grub-core/gensymlist.sh: New file. Script for generating kernel
10571 symbols file.
10572 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
10573
10574 * grub-core/gentrigtables.c: Fix unused variable warnings.
10575
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.
10599 * boot: Moved ...
10600 * grub-core/boot: ... to here.
10601 * bus: Moved ...
10602 * grub-core/bus: ... to here.
10603 * commands: Moved ...
10604 * grub-core/commands: ... to here.
10605 * disk: Moved ...
10606 * grub-core/disk: ... to here.
10607 * efiemu: Moved ...
10608 * grub-core/efiemu: ... to here.
10609 * font: Moved ...
10610 * grub-core/font: ... to here.
10611 * fs: Moved ...
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.
10643 * hello: Moved ...
10644 * grub-core/hello: ... to here.
10645 * hook: Moved ...
10646 * grub-core/hook: ... to here.
10647 * io: Moved ...
10648 * grub-core/io: ... to here.
10649 * kern: Moved ...
10650 * grub-core/kern: ... to here.
10651 * lib: Moved ...
10652 * grub-core/lib: ... to here.
10653 * loader: Moved ...
10654 * grub-core/loader: ... to here.
10655 * mmap: Moved ...
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.
10665 * term: Moved ...
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.
10673 * video: Moved ...
10674 * grub-core/video: ... to here.
10675
10676 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10677
10678 Replace --enable-grub-emu-modules with grub-emu-lite.
10679
10680 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
10681 cache.S.
10682
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.
10687
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.
10692
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.
10697
10698 * normal/main.c: Don't load list files on grub-emu-lite.
10699 * util/misc.c (grub_arch_sync_caches): Removed.
10700
10701 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
10702
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.
10706
10707 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
10708
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.
10711
10712 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10713
10714 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
10715 needed by libusb wrapper.
10716
10717 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10718
10719 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
10720
10721 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
10724 --nounzip is passed.
10725
10726 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 USB hotunplugging and USB serial support.
10729
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
10739 users updated.
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
10776 problems.
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
10803 according to spec.
10804
10805 2010-08-20 Robert Millan <rmh@gnu.org>
10806
10807 Make kFreeBSD code more generic to support ext2fs as root, ufs as
10808 a separate module and maybe other interesting combinations.
10809
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'.
10814
10815 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10816
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.
10820
10821 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10822
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.
10831
10832 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
10833
10834 * commands/i386/pc/sendkey.c (options): Fix three typos.
10835
10836 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10837
10838 Implement sendkey support.
10839
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.
10845
10846 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10847
10848 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
10849 fix warnings from Autoconf.
10850
10851 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10852
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.
10856
10857 2010-08-15 Robert Millan <rmh@gnu.org>
10858
10859 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
10860 errors.
10861 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
10862 grub_get_libzfs_handle() errors.
10863
10864 2010-08-14 Robert Millan <rmh@gnu.org>
10865
10866 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
10867 filesystem is not ZFS.
10868
10869 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10870
10871 Fix for misspelled color names defaulting to black/black (bug
10872 reported by Doug Nazar)
10873
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
10877 status.
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.
10881
10882 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10883
10884 "shift" command support to GRUB script.
10885
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.
10891
10892 * tests/grub_script_shift.in: New testcase.
10893 * conf/tests.rmk: Rules for new testcase.
10894
10895 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10896
10897 "continue" command support to GRUB script.
10898
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.
10903
10904 * tests/grub_script_continue.in: New testcase.
10905 * conf/tests.rmk: Rules for new testcase.
10906
10907 2010-08-12 BVK Chaitanya <bvk@dbook>
10908
10909 "break" command support to GRUB script.
10910
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.
10921
10922 * tests/grub_script_break.in: New testcase.
10923 * conf/tests.rmk: Rules for new test case.
10924
10925 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10926
10927 Function parameters support to GRUB script.
10928
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.
10944
10945 * conf/common.rmk (normal.mod): New source script/argv.c.
10946
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.
10951
10952 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10953
10954 Remove grub_script_cmdblock struct.
10955
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.
10961
10962 2010-08-11 Yves Blusseau <blusseau@zetam.org>
10963
10964 * .bzrignore: add grub-macho2img
10965
10966 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10967
10968 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
10969
10970 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
10971
10972 Remove the dump of sm712 initialisation sequence.
10973
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
10997 tests.
10998 * video/sm712_init.c (sm712_init): Removed.
10999 (sm712_sr_seq1): New array.
11000 (sm712_sr_seq2): Likewise.
11001
11002 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 * include/grub/vga.h: Add missing grub/pci.h include.
11005
11006 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11007
11008 * util/grub-macho2img.c (main): fix typo
11009
11010 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11011
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.
11024
11025 2010-08-09 Robert Millan <rmh@gnu.org>
11026
11027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11028 out unused variables on non-ZFS build.
11029
11030 2010-08-08 Robert Millan <rmh@gnu.org>
11031
11032 Fix path generation for sub-filesystems in ZFS.
11033
11034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11035 missing slash.
11036
11037 2010-08-08 Robert Millan <rmh@gnu.org>
11038
11039 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11040
11041 2010-08-08 Robert Millan <rmh@gnu.org>
11042
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
11045 strings).
11046
11047 2010-08-08 Robert Millan <rmh@gnu.org>
11048
11049 Fix grub-probe invocation.
11050
11051 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11052
11053 2010-08-04 Robert Millan <rmh@gnu.org>
11054
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
11061 function.
11062 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11063 via find_mount_point_from_dir() and getfsstat() / getmntany().
11064
11065 2010-08-04 Robert Millan <rmh@gnu.org>
11066
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.
11071
11072 * kern/emu/misc.c
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.
11077
11078 2010-08-04 Robert Millan <rmh@gnu.org>
11079
11080 Support OpenSolaris in ZFS device resolution.
11081
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
11085 support.
11086
11087 2010-08-03 Robert Millan <rmh@gnu.org>
11088
11089 Fix grub-emu build.
11090
11091 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11092 * include/grub/emu/misc.h: ... here.
11093
11094 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11095 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11096
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.
11102
11103 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11104
11105 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11106 as command name case.
11107
11108 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11109
11110 * disk/raid.c (insert_array): Select unique numbers for named arrays
11111 as well, for use as keys in the disk cache.
11112
11113 2010-08-01 Robert Millan <rmh@gnu.org>
11114
11115 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11116 kFreeBSD device name, except on ZFS where the filesystem label is
11117 used.
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}.
11121
11122 2010-08-01 Robert Millan <rmh@gnu.org>
11123
11124 Make it even harder to use uninitialized `libzfs_handle' (and
11125 make the interface a bit simpler).
11126
11127 * include/grub/util/misc.h (grub_util_init_libzfs)
11128 (libzfs_handle): Remove.
11129 (grub_get_libzfs_handle): New prototype.
11130
11131 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11132 attribute.
11133 (grub_util_init_libzfs): Remove.
11134 (grub_get_libzfs_handle): New function.
11135
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.
11139
11140 2010-08-01 Robert Millan <rmh@gnu.org>
11141
11142 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11143 (grub_find_zpool_from_mount_point): New function prototypes.
11144
11145 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11146 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11147
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.
11151
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.
11155
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.
11160
11161 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11162
11163 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11164 (void) rather than () so that this is a proper prototype.
11165
11166 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11169
11170 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11173 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11174
11175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11176
11177 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11178
11179 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11180
11181 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11182
11183 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11184
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).
11196
11197 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11198 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11199
11200 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11201
11202 2010-08-01 Robert Millan <rmh@gnu.org>
11203
11204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11205 (grub_find_zpool_from_mount_point): New function prototypes.
11206
11207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11209
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.
11213
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.
11217
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.
11222
11223 2010-08-01 Robert Millan <rmh@gnu.org>
11224
11225 Prevent accidental use of uninitialized libzfs_handle.
11226
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.
11230
11231 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11232
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.
11235
11236 2010-08-01 Robert Millan <rmh@gnu.org>
11237
11238 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11239
11240 2010-07-31 Robert Millan <rmh@gnu.org>
11241
11242 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11243
11244 2010-07-31 Robert Millan <rmh@gnu.org>
11245
11246 * kern/emu/misc.c: Add missing license header.
11247
11248 2010-07-31 Robert Millan <rmh@gnu.org>
11249
11250 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11251
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.
11258
11259 (libzfs_handle): Moved to ...
11260 * include/grub/util/misc.h (libzfs_handle): ... here.
11261 Include `<grub/util/libzfs.h>'.
11262
11263 2010-07-30 Robert Millan <rmh@gnu.org>
11264
11265 * include/grub/emu/misc.h: Add missing license header.
11266
11267 2010-07-30 Robert Millan <rmh@gnu.org>
11268
11269 Enable `grub-probe -t device' resolution on ZFS.
11270
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.
11274
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>'.
11279
11280 (find_mount_point_from_dir): New static function.
11281 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11282 function.
11283 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11284 find_root_device_from_libzfs() before ressorting to find_root_device().
11285
11286 * include/grub/util/misc.h (grub_util_init_libzfs): New function
11287 prototype.
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().
11294
11295 2010-07-30 Robert Millan <rmh@gnu.org>
11296
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.
11303
11304 2010-07-29 Robert Millan <rmh@gnu.org>
11305
11306 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
11307 (probe): Handle `PRINT_FS_LABEL'.
11308 (main): Handle `-t fs_label'.
11309
11310 2010-07-29 Robert Millan <rmh@gnu.org>
11311
11312 * configure.ac: Remove grub-mkisofs checks.
11313
11314 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
11315
11316 * util/ieee1275/grub-install.in: Don't use empty grub_device.
11317 Reported by: Lennart Sorensen.
11318
11319 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11320
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.
11324
11325 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
11326
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.
11330
11331 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11332
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.
11336
11337 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11338
11339 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11340
11341 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11342
11343 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
11344 handle on failure.
11345 (grub_loopback_close): Remove empty function.
11346 (grub_loopback_dev): Remove close method.
11347
11348 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11349
11350 Disable EFI cursor when the EFI console becomes inactive.
11351
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.
11355
11356 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * tests/util/grub-shell-tester.in: Remove bashism and declare as
11359 sh script.
11360
11361 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11362
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.
11368
11369 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
11372 with -p "".
11373 Reported by: Tito Keitel.
11374
11375 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * docs/grub.texi (Naming convention): Document new naming convention.
11378
11379 2010-07-20 Vadim Solomin <vadic052@gmail.com>
11380 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11381
11382 Generate device.map in something closer to the old ordering.
11383
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.
11391
11392 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
11393
11394 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
11395 on i386.
11396
11397 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * commands/acpi.c (setup_common_tables): Use sizeof instead of
11400 hardcoding size.
11401 (setv1table): Likewise.
11402
11403 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11404
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
11411 if possible.
11412 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
11413
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
11425 member.
11426 (struct grub_raid): Add start_sector parameter to `detect'.
11427
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.
11433
11434 2010-07-20 Peter Henn <peter.henn@web.de>
11435
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.
11440
11441 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
11442
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
11449 few comments.
11450 * util/getroot.c (grub_util_get_grub_dev): Add support for
11451 /dev/md/name style devices.
11452
11453 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11454
11455 * .bzrignore: Ignore 20_linux_xen.
11456
11457 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
11458
11459 * util/import_unicode.py: Remove unnecessary imports.
11460
11461 2010-07-17 Aleš Nesrsta <starous@volny.cz>
11462
11463 Hotplugging and USB hub support.
11464
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
11479 attachment.
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
11509 in detect_dev.
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.
11519
11520 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11521
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.
11525
11526 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11529 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11530
11531 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11534
11535 2010-07-14 Anton Blanchard <anton@samba.org>
11536
11537 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
11538 ET_DYN files.
11539
11540 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11541
11542 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
11543
11544 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11545
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
11553 comments.
11554 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
11555 partitions that start before their parent, and add debug printfs.
11556
11557 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11558
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
11562 Modula-2 compiler.
11563
11564 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11565
11566 * README: Point to the Info manual.
11567
11568 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
11569
11570 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
11571 2nd superblock position from partition size.
11572
11573 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
11574
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
11578 outputs.
11579
11580 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 Restructure SCSI .id handling.
11583 Reported and tested by: Aleš Nesrsta.
11584
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.
11595
11596 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * commands/help.c (grub_cmd_help): Fix a typo.
11599
11600 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
11603 Reported and tested by: Colin Watson.
11604
11605 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
11608 in this context.
11609
11610 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11611
11612 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
11613
11614 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
11615
11616 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
11617 indentation.
11618
11619 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11620
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.
11625
11626 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11627
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.
11632
11633 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11634
11635 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
11636 which we expect to be handled by upper layers.
11637
11638 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
11639
11640 * bus/usb/usbhub.c: #include time.h header.
11641
11642 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11643
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.
11647
11648 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11649
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.
11653
11654 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11655
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
11672 drive ordering.
11673
11674 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11675
11676 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
11677
11678 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11679
11680 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
11681 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
11682
11683 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11684
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
11692 Bicakci.
11693
11694 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11695
11696 * configure.ac: Avoid == in test command, it's not portable.
11697 * util/grub.d/30_os-prober.in: Likewise.
11698
11699 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
11700
11701 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
11702
11703 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11704
11705 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
11706 multiple (top-level) partmaps.
11707
11708 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11709
11710 * util/i386/efi/grub-install.in: Don't use empty grub_device.
11711 Reported by: Tino Keitel.
11712
11713 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11714
11715 Bidi and diacritics support.
11716
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
11744 and term/tparm.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
11926 key.
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.
11944 (xpos): Removed.
11945 (ypos): Likewise.
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.
12013 (help): Likewise.
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.
12029
12030 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12031
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.
12037
12038 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12039
12040 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12041 too long captions.
12042 (list_get_minimal_size): Take selection box into account.
12043
12044 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12047 NULL font.
12048
12049 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12050
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).
12054
12055 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12056
12057 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12058 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12059 fails.
12060 (grub_halt): Likewise.
12061 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12062 reset-all fails.
12063 (grub_halt): Don't return, even if all of shut-down, power-off, and
12064 poweroff fail.
12065
12066 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12067
12068 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12069 arguments, not three.
12070
12071 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12072
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.
12076
12077 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12078
12079 * docs/grub.texi (Changes from GRUB Legacy): New section.
12080 (Future): Fix typo.
12081
12082 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12083
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.
12087
12088 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12091 (gpt_partition_map_iterate): Support non-512B sectors.
12092
12093 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12096 Tested by: Seth Goldberg.
12097
12098 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12101 Properly align mbi.
12102 Reported by: Seth Goldberg.
12103
12104 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * util/grub-mkrescue.in: Avoid module duplication.
12107
12108 2010-07-01 Sean Finney <seanius@seanius.net>
12109
12110 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12111
12112 2010-07-01 Sean Finney <seanius@seanius.net>
12113
12114 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12115
12116 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 * disk/lvm.c (grub_lvm_checkvalue): New function.
12119 (grub_lvm_check_flag): Likewise.
12120
12121 2010-07-01 Robert Millan <rmh@gnu.org>
12122
12123 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12124 Support 'p' as partition separator on kernel of FreeBSD (used
12125 with GPT labels).
12126 (grub_util_biosdisk_get_grub_dev): Likewise.
12127
12128 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 Yeeloong firmware port.
12131
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
12188 argument.
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.
12204
12205 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12206
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
12211 manual pages.
12212
12213 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12214
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.
12227
12228 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12229
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.
12233
12234 2010-06-29 Robert Millan <rmh@gnu.org>
12235
12236 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12237 (Command-line and menu entry commands): Document `badram' command.
12238
12239 2010-06-28 Robert Millan <rmh@gnu.org>
12240
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.
12244
12245 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12246
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.
12251
12252 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12253
12254 Use normal parser for menu entries.
12255 Reported by: Thomas Frauendorfer
12256
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.
12260
12261 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12262
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
12267 immediately.
12268
12269 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12270
12271 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12272
12273 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12274
12275 * util/grub-install.in: Add --debug-image= option.
12276
12277 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12278
12279 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12280 possible on Linux.
12281
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.
12293
12294 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12295
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
12299 #586358).
12300 (GRUB_MOD_INIT): Use extcmd.
12301 (GRUB_MOD_FINI): Likewise.
12302 * docs/grub.texi (cat): Document --dos.
12303
12304 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12305
12306 XEN with Linux grub-mkconfig support.
12307
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.
12312
12313 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 Initialise VGA video on qemu ourselves.
12316
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.
12329
12330 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
12331
12332 2010-06-26 Pavel Roskin <proski@gnu.org>
12333
12334 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
12335 13.
12336
12337 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12338
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
12342 merely set.
12343
12344 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12345
12346 Make the `source' command slightly faster.
12347
12348 * normal/main.c (grub_normal_execute): Don't re-read list files when
12349 nested.
12350
12351 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12352
12353 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
12354 field position and mask size to red fields from mode_info, not
12355 green.
12356 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
12357 Remove redundant tag->common.framebuffer_type assignment.
12358 Reported by: Seth Goldberg.
12359
12360 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12361
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".
12364
12365 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
12366 grub_dprintf().
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.
12371
12372 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
12373
12374 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
12375 larger than MEMORY_MAP_SIZE.
12376
12377 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
12378
12379 Fix parallel build.
12380
12381 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
12382 dependency.
12383 * script/parser.y: #include grub_script.tab.h header.
12384
12385 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12386
12387 Support >3GiB and <16MiB RAM in i386-qemu.
12388
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
12397 support.
12398
12399 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 Cirrus 5446 and Bochs video cards support.
12402
12403 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
12404 video_bochs.mod
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.
12455 All users updated.
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.
12486
12487 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
12488
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
12494 again.
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.
12501
12502 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12503
12504 Use video functions in linux and xnu loaders.
12505
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.
12518
12519 Enable priorities in video drivers.
12520
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.
12531
12532 Fix SDL driver ID.
12533
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.
12537
12538 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12539
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.
12543
12544 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12545
12546 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
12547 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12548
12549 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12550
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.
12554
12555 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12556
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
12560 more work.
12561
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
12565 names will follow.
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.
12569
12570 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
12571
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
12576 bug #586056).
12577
12578 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12579
12580 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
12581 for manual page generation.
12582
12583 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12584
12585 * po/POTFILES: Remove leftover commands/handler.c.
12586
12587 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12588
12589 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
12590 left this script non-functional.
12591
12592 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12593
12594 * docs/man/grub-emu.h2m: New file.
12595
12596 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
12597
12598 * docs/grub.texi (Commands): Document reduced command set in rescue
12599 mode.
12600 (cpuid): New section.
12601
12602 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
12603
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.
12607
12608 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
12609
12610 Add "-o grub.iso" like cmdline options support.
12611
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.
12620
12621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12622
12623 * .bzrignore: Ignore 41_custom.
12624
12625 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12626
12627 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
12628
12629 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12630
12631 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
12632 prototype declarations.
12633
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.
12640
12641 2010-06-12 Javier Martín <lordhabbit@gmail.com>
12642
12643 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
12644
12645 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12646
12647 * util/grub-mkrescue.in: Support --xorriso argument.
12648
12649 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12650
12651 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
12652 Suggested by: Thomas Schmitt.
12653
12654 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
12657 Suggested by: Thomas Schmitt.
12658
12659 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 custom.cfg support.
12662
12663 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
12664 * util/grub.d/41_custom.in: New file.
12665
12666 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12667
12668 * util/grub-mkrescue.in (make_image): Remove sh module, which has
12669 been merged back into normal.
12670
12671 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12672
12673 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
12674 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
12675
12676 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12677
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.
12699
12700 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 Use FOR_* macros instead of *_iterate whenever possible.
12703
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
12765 declaration.
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
12774 element.
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
12818 FOR_LIST_ELEMENTS.
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
12823 grub_list_pop.
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
12830 grub_fini_all.
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.
12835
12836 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
12839 reported by Henrique Ferreiro.
12840
12841 2010-06-09 Robert Millan <rmh@gnu.org>
12842
12843 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
12844 ones, when both are available.
12845
12846 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12847
12848 Make --version uniform and avoid hard-coded program name.
12849
12850 * util/grub-mkimage.c (main): Use `program_name' instead of
12851 hard-coded string.
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.
12864
12865 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12866
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.
12869
12870 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12871
12872 * configure.ac: Add `.' to the directories searched for unifont.
12873
12874 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12875
12876 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
12877 grub_script.yy.h.
12878
12879 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12880
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.
12889
12890 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12891
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.
12895
12896 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12897
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
12901 prototype.
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.
12905
12906 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12907
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.
12912
12913 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12914
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.
12918
12919 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12920
12921 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
12922
12923 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12924
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.
12929
12930 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12931
12932 * docs/grub.texi (Troubleshooting): `echo' is not usually available
12933 in the rescue shell, so recommend using `set' instead. Thanks,
12934 Jordan Uggla.
12935
12936 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12937
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.
12946
12947 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12948
12949 * util/grub.d/00_header.in: Add some more quoting (of
12950 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
12951 work again.
12952 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
12953
12954 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12955
12956 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
12957 to `count', fixing variable shadowing that broke the -c option.
12958
12959 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
12960
12961 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
12962 in case they contain spaces.
12963
12964 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12965
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).
12969
12970 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
12971
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).
12976
12977 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
12978
12979 * INSTALL: Document several build requirements for optional features
12980 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
12981
12982 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12983
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.
12987
12988 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
12989
12990 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
12991 Thanks to Jordan Uggla for spotting this.
12992
12993 2010-06-02 Aleš Nesrsta <starous@volny.cz>
12994
12995 Finally make USB usable.
12996
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"
13019 array.
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
13039 control.
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.
13053
13054 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13055
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.
13063
13064 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 Dedicated DMA allocations.
13067
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.
13078
13079 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13080
13081 CS5536 support.
13082
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
13090 machine/pci.h.
13091 (kernel_img_SOURCES): Add bus/cs5536.c.
13092 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13093 usb_keyboard.mod.
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.
13111
13112 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13113
13114 * util/grub.d/00_header.in: Add safety check to make sure that
13115 ${locale_dir} exists before trying to probe it.
13116
13117 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13118
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
13121 documenting.
13122 (QNX): Likewise.
13123 (chainloader): Remove cross-reference to `SCO UnixWare'.
13124
13125 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13126
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.
13131 (QNX): Likewise.
13132 (chainloader): Add reference to `Block list syntax'.
13133 (drivemap): New section.
13134 (parttool): New section.
13135
13136 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13137
13138 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13139 the grub shell'.
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.
13146
13147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13148
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.
13154
13155 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13156
13157 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13158 (GNU GRUB manual): Likewise.
13159 (General commands): Update description of `terminfo' for GRUB 2.
13160
13161 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13162
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.
13167
13168 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13169
13170 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13171 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13172
13173 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13174
13175 Add btrfs probing support, currently only in the single-device case.
13176
13177 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13178 function.
13179 (grub_guess_root_device): Call find_root_device_from_mountinfo
13180 before looking in /dev.
13181
13182 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13183
13184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13185 GRUB_DISK_SIZE_UNKNOWN.
13186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13187
13188 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13189
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.
13193
13194 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13195
13196 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13197 Reported by: Seth Goldberg.
13198
13199 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13202 addition of dest.
13203 Reported by: Seth Goldberg.
13204
13205 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13208 Reported by: Seth Goldberg.
13209
13210 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13211
13212 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13213 64-bit address as signed on MIPS.
13214
13215 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13216
13217 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13218 to the empty string.
13219
13220 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13221
13222 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13223
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
13227 GRUB_MACHINE_EMU.
13228
13229 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13230
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.
13234
13235 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13236 /dev/mapper.
13237
13238 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13239
13240 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13241 input files (in which case exit zero).
13242
13243 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13244
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.
13249
13250 2010-05-27 Robert Millan <rmh@gnu.org>
13251
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!
13255
13256 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13257
13258 * util/grub-mkrescue.in: Initialise override_dir rather than
13259 assuming that it's unset or empty in the environment.
13260
13261 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13262
13263 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13264 variable index into p_index to suppress a warning with -Wshadow.
13265
13266 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13267
13268 * INSTALL: Added flex >= 2.5.35 requirement.
13269
13270 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13273
13274 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13275
13276 cmostest support.
13277
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.
13289
13290 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
13293 Removed drawing_scrollbar argument. All users updated
13294 Fixes #29792.
13295 Reported by Jo Shields
13296
13297 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
13300 buffer since gfxterm handles double repaint.
13301
13302 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13303
13304 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
13305 * term/gfxterm.c (real_scroll): Likewise.
13306
13307 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13308
13309 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
13310 before calling BIOS.
13311
13312 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 * include/grub/i18n.h: Always enable grub_gettext.
13315
13316 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13317
13318 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
13319 partition naming style.
13320
13321 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
13322
13323 * util/grub-mkconfig.in: Fix handling of -o so that it works when
13324 not the first option.
13325
13326 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13327
13328 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
13329
13330 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13331
13332 * util/misc.c: Move inclusion of <limits.h> to ...
13333 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
13334
13335 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
13336
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.
13340
13341 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
13342
13343 Fix grub-mkrescue usage unit testing.
13344
13345 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
13346
13347 2010-05-18 Christian Franke <franke@computer.org>
13348
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.
13352
13353 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
13354
13355 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
13356 gnumach and gnumach.gz.
13357
13358 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13359
13360 * include/grub/i18n.h (gettext): Inline instead of using #define.
13361 (grub_gettext): Likewise.
13362 (_): Likewise.
13363
13364 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13365
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.
13370
13371 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 * util/grub-install.in: Add missing "in" keyword.
13374
13375 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13376
13377 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
13378 Reported by: Seth Goldberg.
13379
13380 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
13383
13384 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13385
13386 * configure.ac: Check for Linux device-mapper support.
13387
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.
13401
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.
13410
13411 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13412
13413 Fix build with non-GNU libcs.
13414
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.
13418
13419 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13420
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.
13425
13426 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13427
13428 Remove grub-mkisofs.
13429
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.
13454
13455 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 Unify grub-mkimage accross platforms.
13458
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.
13539
13540 Support grub-mkrescue for efi, coreboot and qemu.
13541
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.
13564 Use xorriso.
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.
13578
13579 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
13580
13581 Source tree is reorganized for emu build.
13582
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.
13609
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
13612
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.
13620
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)
13630
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.
13635
13636 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13637
13638 Fix gfxmenu crash.
13639 Reported by: Thorsten Grützmacher.
13640
13641 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
13642 timeout hook.
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
13649 timeout hook.
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.
13664
13665 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13666
13667 Transform (broken) vga terminal into (working) vga video driver.
13668
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.
13683 (xpos): Likewise.
13684 (ypos): Likewise.
13685 (cursor_state): Likewise.
13686 (fg_color): Likewise.
13687 (bg_color): Likewise.
13688 (text_buf): Likewise.
13689 (page): Likewise.
13690 (font): 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.
13724
13725 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * video/readers/jpeg.c: Indented.
13728
13729 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13730
13731 Various jpeg cleanups.
13732
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.
13736
13737 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
13738
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.
13742
13743 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13744
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.
13751
13752 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13753
13754 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
13755 error.
13756
13757 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13758
13759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
13760
13761 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
13764 condition.
13765
13766 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
13769 part.
13770
13771 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13772
13773 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
13774 pointers.
13775
13776 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
13779
13780 2010-05-01 Christian Franke <franke@computer.org>
13781
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
13786 for Cygwin 1.7.
13787 (make_system_path_relative_to_its_root): Simplify loop, replace early
13788 return by break.
13789 [__CYGWIN__] Add conversion to win32 path.
13790 Include "/" case in trailing slash removal.
13791
13792 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13793
13794 * kern/main.c (grub_load_config): Fix copy-pasted comment.
13795 Reported by: Seth Goldberg
13796
13797 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * commands/help.c (grub_cmd_help): Fix a typo.
13800 Reported by: Seth Goldberg
13801
13802 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
13805 name and add N_.
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.
13821
13822 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
13825 extra == 0.
13826
13827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13828
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.
13834
13835 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13836
13837 Hotkey support
13838
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.
13843
13844 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 * kern/i386/coreboot/init.c (grub_machine_init): Call
13847 grub_machine_mmap_init on qemu.
13848
13849 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * boot/i386/qemu/boot.S: Add a missing .code16.
13852
13853 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 Use LBIO on coreboot.
13856
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):
13860 New declaration.
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.
13867
13868 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13869
13870 Split coreboot and multiboot ports.
13871
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.
13886
13887 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13888
13889 * kern/parser.c (grub_parser_execute): Cope with read-only config.
13890
13891 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 Merge handling of input and output terminals. Fix a hang.
13894
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.
13899
13900 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
13901
13902 Fix comment handling.
13903
13904 * tests/grub_script_comments.in: New testcase.
13905 * conf/tests.rmk: Rules for new testcase.
13906 * script/yylex.l: Updated flex rules.
13907
13908 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13909
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
13912 if argc is 1.
13913
13914 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
13917 autogen issues.
13918
13919 2010-04-26 Christian Franke <franke@computer.org>
13920
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.
13927
13928 2010-04-24 Christian Franke <franke@computer.org>
13929
13930 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
13931 (kernel_img_LDFLAGS): Remove -static-libgcc.
13932
13933 2010-04-24 Christian Franke <franke@computer.org>
13934
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.
13939
13940 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
13941
13942 Nilfs2 support.
13943
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.
13953
13954 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
13957 is not supported.
13958
13959 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
13960
13961 Add grub-mkconfig support for NetBSD.
13962
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.
13967
13968 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
13969
13970 Fix emu build with grub-emu-pci and grub-emu-modules.
13971
13972 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
13973 functions.
13974 * include/grub/libpciaccess.h: New file.
13975 * conf/any-emu.rmk: Update kernel headers for emu build.
13976
13977 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
13980
13981 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13982
13983 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
13984
13985 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13986
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
13998 const char *.
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
14002 install.
14003
14004 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14005
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.
14012
14013 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14016
14017 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * util/hostdisk.c (make_device_name): Change to new partition naming.
14020
14021 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14024
14025 2010-04-17 Christian Franke <franke@computer.org>
14026
14027 * Makefile.in: Add missing localedir setting.
14028
14029 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14030
14031 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14032 mistake in r2156. Noticed by Anthony Fok.
14033
14034 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14035 @localedir@.
14036 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14037
14038 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14039
14040 Fix a spurious, uninitialized variable warning.
14041
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.
14046
14047 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14048
14049 Fix for escaped dollar in double quoted strings.
14050
14051 * script/yylex.l: Updated flex rules.
14052 * conf/tests.rmk: Rule for new testcase.
14053 * tests/grub_script_dollar.in: New testcase.
14054
14055 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14056 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14057
14058 Enclose all translated strings in grub.cfg in single quotes, and
14059 escape them appropriately (Ubuntu bug #552921).
14060
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.
14065
14066 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 Fix cygwin compilation.
14069
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.
14077
14078 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14079
14080 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14081
14082 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 Unify libgcc processing.
14085
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
14089 overwriting.
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.
14109
14110 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14111
14112 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14113 disk_info_msg (conflicts with gettexting into languages with cases).
14114
14115 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14116
14117 Add grub-probe support for NetBSD.
14118
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.
14135
14136 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14137
14138 Documentation fix.
14139
14140 * util/grub-script-check.c: Better help message.
14141
14142 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14143
14144 Fix FreeBSD build.
14145
14146 * configure.ac: Flex version check.
14147 * conf/common.rmk: Add -Wno-error to sh.mod.
14148 * script/yylex.l: Remove all #pragma.
14149
14150 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14153 prototype.
14154 Reported by: Seth Goldberg.
14155
14156 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14159 Rename "module" to "module2".
14160 Reported by: Seth Goldberg.
14161
14162 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14165 EXPORT_FUNC.
14166 Reported by: Seth Goldberg.
14167
14168 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14169
14170 * lib/posix_wrap/locale.h: Add missing file.
14171 Reported by: Seth Goldberg.
14172
14173 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 grub-emu module load support.
14176
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.
14196
14197 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14198
14199 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14200 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14201 missing files.
14202 (maintainer-clean): Remove libgcrypt-grub.
14203
14204 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14207
14208 2010-04-09 EFI Coder <eficoder@hotmail.com>
14209
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.
14213
14214 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14215
14216 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14217 All users updated.
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.
14224
14225 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14226
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.
14230
14231 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14232
14233 * font/font.c: Indented.
14234
14235 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14236
14237 Elif support to GRUB script (by Deepak Vankadaru).
14238
14239 * tests/grub_script_if.in: New testcase.
14240 * conf/tests.rmk: Rule for new testcase.
14241 * script/parser.y: Grammar rules for elif.
14242
14243 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14244
14245 While and until loops support to GRUB script.
14246
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
14256 function.
14257
14258 * tests/grub_script_while1.in: New testcase.
14259 * conf/tests.rmk: Rule for new testcase.
14260
14261 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14264 as *.jpg.
14265
14266 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14267
14268 GRUB_BACKGROUND support.
14269
14270 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14271 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14272
14273 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 Load fonts and modules for gfxmenu in grub-mkconfig.
14276 Idea by: Mario Vazquez
14277
14278 * util/grub.d/00_header.in: Load pf2 and image modules.
14279
14280 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 grub-mkconfig multiple terminal support.
14283
14284 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14285 * util/grub.d/00_header.in: Likewise.
14286
14287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 * Makefile.in: Specify files explicitly instead of using $< and $@ since
14290 we use cd $(srcdir).
14291
14292 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
14293
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.
14299
14300 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
14301
14302 Fix unit testing framework for Qemu 0.12.
14303
14304 * tests/util/grub-shell.in: Remove -serial stdio option.
14305
14306 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 POSIX header file wrappers.
14309
14310 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
14311 equivalents.
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.
14330
14331 Regexp support.
14332
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.
14344
14345 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14346
14347 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
14348 unsupported video mode types.
14349
14350 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
14353
14354 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14355
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.
14358
14359 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 Remove unused grub_vga_get_font.
14362
14363 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
14364 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
14365
14366 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14367
14368 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
14369 * include/grub/misc.h: Likewise.
14370
14371 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14372
14373 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
14374 for which failure is fatal.
14375
14376 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14377
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.
14381
14382 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14383
14384 * Makefile.in (LEX): new variable.
14385
14386 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14387
14388 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
14389 `=' and added double quotes on operands of this equality test.
14390
14391 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14392
14393 * Makefile.in (uninstall): Remove a leftover debug echo.
14394 Reported by: Grégoire Sutre
14395
14396 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 MIPS multiboot2 support.
14399
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
14406 definition.
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.
14427
14428 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 Import gnulib argp module.
14431
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.
14447
14448 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * kern/device.c (grub_device_iterate): Clear errors after failed
14451 opening device.
14452
14453 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
14456 returned by firmware.
14457
14458 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14459
14460 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
14461 compilation on coreboot and qemu
14462
14463 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14464
14465 * include/multiboot2.h: Resync with spec.
14466
14467 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14468
14469 Multiboot2 tag support
14470
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
14491 users updated.
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):
14495 Removed.
14496 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
14497 Moved from here...
14498 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
14499 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14500 Moved from here...
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.
14504 All users updated.
14505 * loader/i386/multiboot_mbi2.c: New file.
14506
14507 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14508
14509 Resync with gnulib.
14510
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.
14527
14528 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14529
14530 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14531 which is the case with --disabled-nls.
14532
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.
14538
14539 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 Simplify Apple CC support.
14542
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.
14548
14549 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
14550
14551 Testcase and the fix for final semicolon on cmdline.
14552
14553 * tests/grub_script_final_semicolon.in: New testcase.
14554 * conf/tests.rmk: Rules for the new testcase.
14555 * script/parser.y: Grammar fix.
14556
14557 2010-03-26 BVK Chaitanya <bvk@localhost>
14558
14559 Blank lines testcase for GRUB script.
14560
14561 * tests/grub_script_blanklines.in: New testcase.
14562 * conf/tests.rmk: Rules for the new testcase.
14563
14564 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14565
14566 Don't use __FILE__.
14567
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.
14576
14577 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14578
14579 Sunpc partitions support.
14580
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.
14589
14590 2010-03-26 BVK Chaitanya <bvk@localhost>
14591
14592 For loop support to GRUB script.
14593
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
14602 function.
14603 * tests/grub_script_for1.in: New testcase.
14604 * conf/tests.rmk: Rules for new testcase.
14605
14606 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 Nested partitions
14609
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
14625 'get_name'.
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.
14646 Set 'number'.
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.
14650 Set 'number'.
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.
14655 Set 'number'.
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.
14661 Set 'number'.
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.
14668 Set 'number'.
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.
14673 Set 'number'.
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.
14684
14685 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
14686
14687 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
14688 grammar.
14689
14690 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
14691
14692 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
14693
14694 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
14695
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.
14699
14700 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
14701
14702 * .bzrignore: Add gentrigtables, grub-script-check,
14703 grub_script_check_init.c, grub_script_check_init.h, and
14704 trigtables.c.
14705
14706 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 * kern/parser.c: Indented.
14709
14710 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
14713
14714 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14715
14716 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
14717 alpha_mask_size == 0 case.
14718
14719 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
14720
14721 GRUB shell lexer and parser improvements.
14722
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.
14731
14732 * configure.ac: Configure check for flex.
14733
14734 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
14735 types.
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.
14747
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
14752 users by...
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.
14757
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.
14771
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.
14777
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
14785 unnecessary code.
14786
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.
14790
14791 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 Remove some redundancy in build system.
14794
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.
14802 Add util/time.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 *.
14860
14861 2010-03-14 Colin King <colin.king@ubuntu.com>
14862 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14863
14864 Shrink the pre-partition-table part of boot.img by eight bytes.
14865
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
14870 it inline instead.
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.
14874
14875 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14876
14877 Speed up consecutive hostdisk operations on the same device.
14878
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.
14889
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.
14895
14896 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 Compile parts of grub-emu as modules.
14899
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.
14953
14954 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14955
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.
14969
14970 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14971
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):
14977 New proto.
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
14981 type.
14982 Correct stop condition.
14983 (grub_ieee1275_devices_iterate): New function.
14984 * video/ieee1275.c: New file.
14985
14986 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
14989
14990 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
14991 as scratch.
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
14996 of 0x200000.
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):
15011 New definition
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
15025 variable.
15026 (grub_heap_init): Use grub_modules_get_end.
15027 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15028 stack.
15029 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15030 (main): Likewise.
15031 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15032
15033 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15034
15035 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15036
15037 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15038
15039 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15040 bug #559005).
15041
15042 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * genmoddep.awk: Output all missing symbols and not only first.
15045
15046 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15047
15048 * NEWS: Put the date of 1.98 release.
15049
15050 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15053 ft2build.h.
15054
15055 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15058 completition in the middle of string.
15059
15060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15061
15062 * util/grub-mkrescue.in: Use mktemp with explicit template.
15063
15064 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15067
15068 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15069
15070 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15071 right pointer.
15072
15073 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 Fix FreeBSD compilation.
15076
15077 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15078 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15079
15080 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15083
15084 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15087
15088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15089
15090 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15091
15092 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15093
15094 Support relative image path in theme file.
15095
15096 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15097 (image_set_property): Handle theme_dir and relative path.
15098
15099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 * configure.ac: Alias amd64 to x86_64.
15102
15103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15104
15105 * NEWS: mention multiboot on EFI.
15106
15107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 * kern/main.c (grub_load_modules): Handle errors from init functions of
15110 embeded modules.
15111
15112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * normal/autofs.c (autoload_fs_module): Handle errors.
15115
15116 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15117
15118 Disable linux.mod on qemu-mips since it's not functional and leads
15119 to compilation failure.
15120
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
15132
15133 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15134
15135 * INSTALL: Add gettext as a dependency and add qemu to a new section
15136 "Prerequisites for make-check".
15137
15138 2010-03-04 Christian Franke <franke@computer.org>
15139
15140 * util/grub-pe2elf.c: Add missing include "progname.h".
15141
15142 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * normal/crypto.c (read_crypto_list): Fix a typo.
15145 Reported by: Seth Goldberg.
15146
15147 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15150 Reported by: Seth Goldberg.
15151
15152 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15153
15154 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15155 ascii.bitmaps.
15156
15157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 * genmk.rb: Remove terminal*.lst in make clean.
15160 Reported by: Seth Goldberg.
15161
15162 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * util/i386/efi/grub-install.in: Copy gettext files.
15165
15166 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15169
15170 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 Wait for user entry basing on presence of output rather than on errors.
15173
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
15178 of output.
15179 * normal/term.c (grub_normal_line_counter): New variable.
15180 (grub_normal_get_line_counter): New function.
15181 (grub_install_newline_hook): Likewise.
15182
15183 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15186
15187 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * configure.ac: Update version to 1.98.
15190
15191 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * util/grub.d/10_linux.in (linux_entry): Don't default to
15194 gfxpayload=keep if Linux doesn't support video handover.
15195
15196 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15197
15198 Don't compile video modules on yeeloong since video subsystem is part
15199 of kernel.
15200
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.
15215
15216 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15217
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.
15223
15224 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15225
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.
15230
15231 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15232
15233 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15234 memory leak.
15235 Reported by: Seth Goldberg.
15236
15237 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15238
15239 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15240 duplicate declaration of `start'.
15241
15242 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15245 filename.
15246 Reported by: Georgy Buranov
15247
15248 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15249
15250 * util/grub-mkrawimage.c (usage): Change string formatting to
15251 improve gettext.
15252
15253 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15254
15255 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15256 backspace keys.
15257
15258 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15259
15260 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15261 Reported by: Michael Suchanek.
15262
15263 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15264
15265 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15266 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15267
15268 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15269
15270 Remove any reference to non-free fonts.
15271
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.
15280
15281 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15282
15283 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15284
15285 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
15288 Double divisor.
15289 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
15290 features.
15291 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
15292
15293 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * gensymlist.sh.in: Use TARGET_CC instead of CC.
15296
15297 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15298
15299 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
15300 * docs/grub.texi (Command-line and menu entry commands): Document play
15301 command.
15302
15303 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15304
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
15307 to...
15308 (play): ... new function.
15309
15310 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15311
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.
15316
15317 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
15318
15319 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
15320 GRUB_TICKS_PER_SECOND instead of 120.
15321
15322 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15323
15324 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
15325 escape sequence after \e.
15326
15327 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15328
15329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
15330 non-ASCII characters.
15331
15332 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
15335 set root in single quotes to prevent \, from being unescaped.
15336
15337 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 Prevent unknown commands from stopping menuentry execution.
15340
15341 * script/execute.c (grub_script_execute_cmdline): Print error after
15342 unknown command.
15343
15344 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15345
15346 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
15347 Reported by: Pavel Pisa.
15348
15349 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
15352
15353 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 Merge grub_ieee1275_map_physical into grub_map and rename to
15356 grub_ieee1275_map
15357
15358 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
15359 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
15360 Remove.
15361 * kern/ieee1275/openfw.c (grub_map): Rename to ...
15362 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
15363 necessary.
15364 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
15365
15366 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
15369 opening and not after.
15370
15371 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15372
15373 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
15374 constants.
15375
15376 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
15379 (alloc_phys): Use ALIGN_UP instead of align_addr.
15380
15381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
15384
15385 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15386
15387 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
15388
15389 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15390
15391 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
15392 verbose dprintf.
15393
15394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15395
15396 Fix over-4GiB seek on sparc64.
15397
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):
15401 New constant.
15402 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15403 Likewise.
15404 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
15405 and pos_lo.
15406
15407 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * util/grub-mkrawimage.c (main): Call set_program_name.
15410
15411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 Properly align 64-bit targets.
15414
15415 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
15416 (generate_image): Use ALIGN_ADDR.
15417
15418 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 Properly create cross-endian images.
15421
15422 * include/grub/types.h (grub_host_to_target_addr): New macro
15423 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
15424
15425 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
15428
15429 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15430
15431 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
15432
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.
15436
15437 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15438
15439 Support GRUB_GFXPAYLOAD_LINUX.
15440
15441 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
15442 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
15443
15444 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15445
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
15449 too as precaution.
15450
15451 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
15452
15453 * configure.ac: Check for ft2build.h.
15454
15455 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15456
15457 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
15458
15459 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 * genkernsyms.sh.in: Use TARGET_CC.
15462
15463 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
15464
15465 * NEWS: Update.
15466
15467 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15468
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.
15472
15473 2010-02-07 Yves Blusseau <blusseau@zetam.org>
15474
15475 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
15476
15477 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15478
15479 Fix warnings in grub-emu when compiling with maximum warning options.
15480
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.
15492
15493 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * loader/i386/linux.c (grub_linux_setup_video): Handle error
15496 appropriately.
15497
15498 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15499
15500 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
15501 code out.
15502
15503 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15504
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.
15511
15512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15513
15514 * include/grub/err.h (grub_err_printf): Don't export.
15515
15516 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15517
15518 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15519
15520 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15521
15522 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15523 * kern/misc.c (grub_gettext_dummy): Make static.
15524
15525 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15528 by non-valid ones.
15529 * kern/term.c (grub_putchar): Likewise.
15530
15531 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15532
15533 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15534 buggy hook call and memory leak.
15535
15536 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
15539
15540 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15541
15542 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
15543
15544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
15547 modevar.
15548 Return grub_errno on allocation error.
15549
15550 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15551
15552 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
15553
15554 2010-02-06 Yves Blusseau <blusseau@zetam.org>
15555
15556 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
15557 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
15558
15559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
15562 non-pxe disk.
15563 (grub_pxefs_open): Likewise.
15564
15565 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15566
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.
15570
15571 2010-02-06 Colin D Bennett <colin@gibibit.com>
15572
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
15578 argument as const.
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.
15602
15603 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 Agglomerate scrolling in gfxterm.
15606
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
15618 characters.
15619 (grub_gfxterm_refresh): Call real_scroll.
15620
15621 2010-02-06 Colin D Bennett <colin@gibibit.com>
15622
15623 * include/grub/misc.h (grub_iscntrl): New inline function.
15624 (grub_isalnum): Likewise.
15625 (grub_strtol): Likewise.
15626
15627 2010-02-06 Colin D Bennett <colin@gibibit.com>
15628
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):
15632 New prototype.
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.
15645
15646 2010-02-06 Colin D Bennet <colin@gibibit.com>
15647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 Support for gfxterm in a window.
15650
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.
15663 Use init_window.
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.
15682
15683 2010-02-06 Colin D Bennett <colin@gibibit.com>
15684
15685 Bitmap scaling support.
15686
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.
15699
15700 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 SDL support.
15703
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.
15711
15712 2010-02-06 Colin D Bennett <colin@gibibit.com>
15713 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 Double buffering support.
15716
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):
15720 New type.
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.
15743
15744 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15745
15746 * maintainance/gentrigtables.py: Remove.
15747 * lib/trig.c: Likewise.
15748
15749 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
15750
15751 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
15752 `trigtables.c'.
15753 (trigtables.c): New rule.
15754 (gentrigtables): Likewise.
15755 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
15756
15757 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15758
15759 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
15760 integer constants.
15761
15762 2010-02-06 Colin D Bennet <colin@gibibit.com>
15763
15764 Trigonometry support.
15765
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.
15773
15774 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
15777 disk devices.
15778
15779 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
15782 error.
15783
15784 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15785
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.
15792
15793 2010-02-03 Torsten Landschoff <torsten@debian.org>
15794
15795 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15796 last sectors.
15797
15798 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15799
15800 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
15801 CDROM reads.
15802 (grub_biosdisk_write): Refuse to write to CDROM.
15803
15804 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15805
15806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
15807
15808 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * font/font.c (find_glyph): Check that bmp_idx is available before
15811 using it.
15812 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
15813 with (font == NULL).
15814
15815 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
15816
15817 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
15818
15819 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
15820
15821 * include/grub/script_sh.h (sourcecode): Add const qualifier.
15822 * util/grub-script-check.c (getline): Fix empty lines case.
15823
15824 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
15825
15826 * Makefile.in (check): Exit with fail status when one of the tests
15827 fails.
15828 * tests/example_functional_test.c (example_test): Fix reversed assert.
15829 * tests/example_unit_test.c (example_test): Likewise.
15830
15831 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
15832
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.
15838
15839 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15840
15841 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
15842 of the line.
15843
15844 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15847 last sectors.
15848
15849 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
15852 having a 4KiB and not 32KiB buffer size.
15853
15854 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15855
15856 * util/hostfs.c: Include `<errno.h>'.
15857 (grub_hostfs_read): Handle errors from fseeko() and fread().
15858
15859 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15860
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.
15863
15864 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15865
15866 Remove unused parameter.
15867
15868 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
15869 (grub_iso9660_open): Remove initialization of `data->length'.
15870
15871 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15872
15873 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
15874 memleak conditions.
15875
15876 2010-01-27 Carles Pina i Estany <carles@pina.cat>
15877
15878 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
15879 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
15880
15881 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15882
15883 * util/bin2h.c (usage): Fix warning (space after backslash).
15884
15885 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15886
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.
15893
15894 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15895
15896 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
15897 does.
15898
15899 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15900
15901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
15902
15903 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
15904 (_start): Macroify `0x7F'.
15905
15906 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
15907 (make_install_device): Use "(pxe)" as fallback prefix when booting
15908 via PXE.
15909
15910 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 * configure.ac: Reset LIBS after check for libgcc symbols.
15913
15914 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
15915
15916 * util/hostdisk.c (open_device): Add trailing newline to debug
15917 message.
15918
15919 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
15920
15921 * configure.ac: Check for `limits.h'.
15922 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
15923
15924 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
15925
15926 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
15927 capitalize error strings.
15928
15929 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
15930
15931 * util/grub.d/10_hurd.in: Add a recovery mode.
15932
15933 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * configure.ac: Check for libgcc symbols with -nostdlib.
15936
15937 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
15938
15939 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
15940
15941 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15942
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.
15946
15947 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15948
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.
15952
15953 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
15954
15955 Use generic grub_reboot() for i386-efi.
15956
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>'.
15960
15961 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15962
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
15965 embedded.
15966
15967 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
15970 stack since heap is unavailable at that point.
15971
15972 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15973
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.
15977
15978 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
15979
15980 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
15981
15982 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
15983
15984 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
15985 domain now.
15986
15987 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
15988
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.
15992
15993 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15994
15995 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
15996
15997 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16000
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.
16005
16006 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16009 unnecessary calls.
16010
16011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 Move context handling out of the kernel.
16014
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.
16066
16067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 setpci support.
16070
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.
16076
16077 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 Byte-addressable PCI configuration space.
16080
16081 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16082 dword address.
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
16129 space.
16130
16131 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16132
16133 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16134 can be reliably determined to be supported.
16135
16136 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16137
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
16141 supported.
16142
16143 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16146
16147 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16148
16149 * util/misc.c (make_system_path_relative_to_its_root): Work around
16150 special-casing of "/", as previous incarnation of this routine did.
16151
16152 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 Fix any-emu compilation.
16155
16156 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16157 * grub_bin2h_SOURCES: New variable.
16158
16159 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16160
16161 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16162
16163 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16164
16165 * util/grub.d/00_header.in: Fix handling of locale_dir.
16166
16167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16170 as possible unifont location (Gentoo).
16171 Reported by: Alexander Brüning
16172
16173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 Don't try to generate lists for kernel.img.
16176
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.
16183
16184 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16185
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.
16201
16202 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16203
16204 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16205 fix grub-script-check warning.
16206
16207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16208
16209 * include/grub/font.h (grub_font_load): Fix prototype.
16210
16211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16212
16213 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16214
16215 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16216
16217 * include/grub/x86_64/at_keyboard.h: New file.
16218
16219 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16220
16221 * loader/mips/linux.c: Include missing grub/i18n.h.
16222
16223 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16224
16225 * normal/menu.c (notify_execution_failure): Clarify error message.
16226
16227 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16228
16229 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16230 return value (and revert all return statements). Update users.
16231
16232 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16233
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.
16237
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
16240 LVM signature.
16241
16242 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16243
16244 * loader/mips/linux.c (grub_cmd_initrd)
16245 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16246
16247 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16248
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.
16254
16255 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16256
16257 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16258 `gfxterm.mod' into core image.
16259
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 ...
16263
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 ...
16267
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.
16271
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'.
16275
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.
16281
16282 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16283
16284 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16285
16286 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
16287
16288 * include/grub/mips/libgcc.h: Only export symbols for functions
16289 that libgcc provides.
16290
16291 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
16292
16293 MIPS support.
16294
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
16308 mipsel-qemu-mips.
16309 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
16310 to port addresses.
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
16314 grub_font_load.
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]:
16327 New prototype.
16328 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
16329 updated.
16330 (grub_elf64_size): Likewise.
16331 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
16332 filename.
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
16369 updated.
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".
16416 (usage): Likewise.
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
16422 bg_color.
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.
16430
16431 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16432
16433 Fix parallel builds.
16434
16435 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
16436 font.c depend on ascii.h).
16437
16438 2010-01-12 Carles Pina i Estany <carles@pina.cat>
16439
16440 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
16441
16442 2010-01-11 Carles Pina i Estany <carles@pina.cat>
16443
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
16447 parameter.
16448
16449 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16450
16451 * font/font.c: Update copyright years.
16452 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
16453
16454 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16455
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'.
16473
16474 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16475
16476 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
16477 (grub_bin2h_SOURCES): New variable.
16478 * util/bin2h.c: New file.
16479
16480 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16481
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.
16486
16487 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16488
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.
16492
16493 * commands/terminal.c: Update copyright year.
16494
16495 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16496
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.
16500
16501 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 * include/grub/i386/bsd.h: Fix include pathes.
16504
16505 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 Add missing *BSD copyright headers.
16508
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.
16518
16519 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16520
16521 * acinclude.m4: Remove `nop' assembly instruction; it's not
16522 implemented by all architectures.
16523
16524 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16525
16526 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16527 ELILO. This is no longer necessary.
16528
16529 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16530
16531 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16532
16533 * util/grub-script-check.c: grub-script-check tool.
16534 * conf/common.rmk: Make rules for grub-script-check.
16535
16536 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16537
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.
16540
16541 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
16542
16543 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16544
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.
16551
16552 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
16553
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.
16560
16561 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
16562
16563 Use flag-based instead of hook-based video mode selection and "auto"
16564 keyword.
16565
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.
16571
16572 2010-01-17 Carles Pina i Estany <carles@pina.cat>
16573
16574 * util/misc.c (grub_util_info): Fix the order of the parameters in a
16575 fprintf call.
16576
16577 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
16578
16579 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
16580
16581 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16582
16583 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
16584 string.
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.
16590
16591 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16592
16593 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
16594 the message.
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.
16621
16622 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 Enable multiboot on non-pc.
16625
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):
16630 Moved to ...
16631 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
16632 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
16633 Moved to ...
16634 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
16635 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
16636 Moved to ...
16637 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
16638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
16639 Moved to ...
16640 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
16641 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
16642 relocator.mod.
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.
16650 Include i386.mk.
16651 * include/grub/x86_64/multiboot.h: New file.
16652 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
16653 Terminate EFI.
16654
16655 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 Video multiboot support.
16658
16659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
16660 New prototype.
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.
16673
16674 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16675
16676 Video driver ids.
16677
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.
16682
16683 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16684
16685 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
16686 `var=val'.
16687
16688 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16689
16690 * normal/cmdline.c (print_completion): Gettextizze.
16691
16692 2001-01-14 Carles Pina i Estany <carles@pina.cat>
16693
16694 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
16695
16696 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16697
16698 * gettext/gettext.c (grub_gettext_translate): Push and pop
16699 grub_errno.
16700 (grub_gettext_delete_list): Change comment style.
16701 * kern/err.c (grub_error): Gettextizze.
16702 (grub_fatal): Gettextizze.
16703
16704 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16705
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().
16712
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().
16716
16717 * loader/i386/multiboot.c: Include `<grub/video.h>'.
16718 (grub_multiboot_boot): Switch to text mode before calling
16719 grub_relocator32_boot().
16720
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().
16724
16725 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16726 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16727
16728 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
16729 non-empty value.
16730
16731 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16732 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16733
16734 * util/grub.d/00_header.in: Define a "savedefault" function for use
16735 in menu entries.
16736 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
16737
16738 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16739 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16740
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).
16745
16746 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16747
16748 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
16749
16750 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16751
16752 * util/grub.d/00_header.in: Use `set var=val' rather than plain
16753 `var=val'.
16754 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
16755
16756 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16757
16758 * util/grub-reboot.in: Fix --version output.
16759 * util/grub-set-default.in: Likewise.
16760
16761 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16762
16763 * util/grub.d/00_header.in: Silently ignore zero-sized environment
16764 blocks.
16765
16766 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16767
16768 * util/grub.d/00_header.in: Quote the value assigned to `default',
16769 in case it contains spaces.
16770
16771 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16772
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.
16775
16776 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16777 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
16778
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.
16784
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.
16789
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
16794 initialisation.
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.
16800
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.
16805
16806 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
16807
16808 Unit testing framework for GRUB.
16809
16810 * Makefile.in: Test framework build rules for 'make check'.
16811 * conf/tests.rmk: Build rules for individual tests and framework.
16812
16813 * include/grub/test.h: Header file for whitebox tests.
16814 * tests/lib/functional_test.c: Framework support for whitebox
16815 functional tests.
16816 * tests/lib/test.c: Common whitebox testing code for unit and
16817 functional tests.
16818 * tests/lib/unit_test.c: Framework support for whitebox unit
16819 tests.
16820
16821 * tests/util/grub-shell-tester.in: Support utility for grub-script
16822 tests.
16823 * tests/util/grub-shell.in: Utility to execute grub-script
16824 commands in a Qemu instance.
16825
16826 * tests/example_functional_test.c: Example whitebox functional
16827 test.
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.
16831
16832 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16833
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.
16857
16858 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
16861 it would result in module crash.
16862
16863 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16864
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.
16870
16871 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
16872
16873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
16874
16875 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16876
16877 * loader/i386/pc/multiboot2.c: Removed stalled file.
16878
16879 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16880
16881 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
16882 Reported by: Grégoire Sutre
16883
16884 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
16885
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().
16889
16890 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
16891
16892 * util/grub-install.in (usage): Clarify meaning of --root-directory,
16893 and make it clearer that it's optional. Based on confusion
16894 witnessed on IRC.
16895
16896 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
16899 in premature implicit newline.
16900
16901 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
16904 which resulted in garbled command line at the end of screen.
16905
16906 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16907
16908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
16909 initialization with similar approach as with other Linux loaders.
16910
16911 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16912
16913 Fix i386-ieee1275 build.
16914
16915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
16916 and grub_term_height() for video_{width,height} initialization.
16917
16918 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
16919
16920 Fix grub-emu build.
16921
16922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
16923
16924 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16925 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
16926
16927 Support for multiple terminals.
16928
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.
16996 All users updated.
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
17007 right terminal.
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
17027 ncurses headers.
17028 * term/terminfo.c: New argument oterm on all exported functions.
17029 All users updated.
17030 * util/grub-editenv.c (grub_term_input_class): Removed.
17031 (grub_term_output_class): Likewise.
17032
17033 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17034
17035 Make loader output a bit more user-friendly.
17036
17037 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17038 is being loaded. Likewise for the Hurd.
17039
17040 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17041 that kernel of FreeBSD ${version} is being loaded.
17042
17043 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17044 grub_dprintf().
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.
17048
17049 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17050
17051 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17052
17053 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17054
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'.
17091
17092 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17093
17094 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17095
17096 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17097
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.
17101
17102 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17103
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.
17107
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.
17113
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'.
17121
17122 * conf/i386-pc.rmk: Likewise.
17123
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.
17128
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.
17133
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'.
17141
17142 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17143
17144 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17145 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17146 all users.
17147
17148 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17149 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17150
17151 Fix breakage introduced with previous commit.
17152
17153 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17154 commands.
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.
17159
17160 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17161
17162 Merge prefix-redefinition-fix branch.
17163
17164 * normal/autofs.c (read_fs_list): Make function capable of being
17165 run multiple times, gracefuly replacing the previous data
17166 structures.
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}.
17174
17175 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 Merge crypto branch.
17178
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.
17225
17226 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17227
17228 Fix descent and ascent calculation.
17229
17230 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17231 (options): New option "asce".
17232 (usage): Likewise.
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.
17238
17239 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17240
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.
17249
17250 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17251
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'.
17259
17260 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17261
17262 * config.rpath: Update from Gnulib.
17263
17264 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17265
17266 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17267
17268 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17269
17270 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17271
17272 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17273
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.
17279
17280 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17281
17282 * util/mkisofs/write.c (padblock_write): Check return value of
17283 fread.
17284
17285 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17286
17287 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
17288 floppy images now.
17289
17290 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
17291
17292 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17293
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).
17300
17301 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17302
17303 * commands/crc.c (grub_cmd_crc): Abort on read errors.
17304 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
17305 it to upper layer.
17306
17307 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17308
17309 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
17310 New constant.
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.
17319
17320 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * loader/efi/appleloader.c: Restored. Update all users.
17323
17324 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17325
17326 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
17327
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.
17334
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.
17338
17339 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17340
17341 * loader/efi/appleloader.c: Remove. Update all users.
17342
17343 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17344
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.
17430
17431 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
17432
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
17436 ATTRIBUTE_ERROR.
17437
17438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17439
17440 * normal/menu_text.c (print_message): Change messages.
17441
17442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17443
17444 * normal/menu_entry.c (store_completion): Gettextizze.
17445
17446 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17447
17448 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
17449
17450 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17451
17452 * po/POTFILES: Sort correctly.
17453
17454 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17455
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
17459 full stop.
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
17465 full stop.
17466 (GRUB_MOD_INIT): Remove command name from summary.
17467 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
17468 summary.
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.
17472
17473 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17474
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.
17523
17524 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17525
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.
17529
17530 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17531
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.
17540
17541 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
17542
17543 Import from Gnulib.
17544
17545 * gnulib/getdelim.c: New file.
17546 * gnulib/getline.c: Likewise.
17547
17548 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
17549
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.
17560
17561 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
17562
17563 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
17564 Fix syntax error.
17565
17566 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
17567
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
17572 eh_frame)
17573
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
17578 name conflict.
17579
17580 2009-12-28 Carles Pina i Estany <carles@pina.cat>
17581
17582 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
17583 quotes.
17584
17585 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17586
17587 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
17588
17589 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17590
17591 * normal/menu_text.c (grub_print_message_indented): Prevent
17592 past-the-end-of-array dereference.
17593
17594 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
17597 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
17598
17599 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17600
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
17603 default prompt.
17604
17605 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17606
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.
17614
17615 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17616
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'.
17620 Assign to `cmd'.
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'.
17625 Assign to `cmd'.
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'.
17630 Assign to `cmd'.
17631 (GRUB_MOD_FINI): Use `cmd' to unregister.
17632
17633 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17634
17635 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
17636 stops.
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.
17653
17654 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17655
17656 * commands/help.c (grub_cmd_help): Print the command name before the
17657 summary.
17658 (GRUB_MOD_INIT): Remove command name from the summary.
17659 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
17660 string as summary.
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
17663 summary.
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.
17707
17708 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17709
17710 Use search command for preliminar UUID search.
17711
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
17724 search_label.mod.
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.
17748
17749 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17750
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.
17754
17755 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17756
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.
17763
17764 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17765
17766 Support for (pxe[:server[:gateway]]) syntax and
17767 use environment variable for PXE.
17768
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.
17800
17801 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17802
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'.
17819
17820 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17821
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.
17829
17830 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
17831
17832 * util/hostdisk.c (open_device): Fix a comment.
17833
17834 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17835
17836 * util/grub-install.in (host_os): New variable.
17837 * util/i386/efi/grub-install.in (host_os): Likewise.
17838
17839 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17840
17841 * util/mkisofs/write.c (padblock_write): Abort when given an
17842 excedingly large embed image, instead of silently truncating it.
17843
17844 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17845
17846 * include/multiboot.h: Indentation fixes.
17847
17848 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17849
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
17854 table information.
17855
17856 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
17857 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
17858 type aliases.
17859
17860 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17861
17862 * include/multiboot.h: Make comments src2texi-friendly.
17863
17864 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17865
17866 For consistency with [multiboot]/docs/boot.S.
17867
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.
17872
17873 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17874
17875 * include/multiboot.h: Remove `<grub/types.h>'.
17876 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
17877 types. Update all users.
17878
17879 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17880
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.
17902
17903 2009-12-24 Carles Pina i Estany <carles@pina.cat>
17904
17905 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
17906 grub_errno calls.
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.
17988
17989 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
17990
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.
18036
18037 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18038
18039 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18040 size counting.
18041
18042 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18043
18044 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18045 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18046
18047 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18048
18049 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18050 (GRUB_MOD_INIT(memrw)): Update help line.
18051
18052 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18053
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.
18059
18060 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18061
18062 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18063
18064 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18065
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'
18071
18072 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18073
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>.
18077
18078 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18079
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.
18087
18088 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18089
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>.
18093
18094 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18095
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.
18100
18101 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18102
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
18145 `$(XGETTEXT)'.
18146 * po/POTFILES: Add `commands/loadenv.c'.
18147
18148 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18149
18150 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18151 instead of specifying them explicit.
18152
18153 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18154
18155 * NEWS: Add grub-probe support for GNU/Hurd.
18156
18157 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18158
18159 * NEWS: gettext was added after 1.97.
18160
18161 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18162
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.
18172
18173 * util/grub-mkrescue.in: Use --protective-msdos-label.
18174
18175 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18176
18177 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18178 boot.
18179
18180 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18181
18182 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18183 variables.
18184 (ld_options, main): Recognize `--embedded-boot'.
18185 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18186 declarations.
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.
18190
18191 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18192 for BIOS-based disk boot instead of only ElTorito.
18193
18194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18195
18196 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18197 build (not needed for bootstrap).
18198
18199 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18200
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.
18204
18205 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18206
18207 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18208
18209 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18210
18211 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18212
18213 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18214
18215 * kern/env.c (grub_env_context_open): Mark exported variable for
18216 reexport.
18217
18218 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18219
18220 * kern/env.c (grub_env_export): Create nonexistent variables before
18221 exporting.
18222
18223 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18224
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
18228 menu_text.c.
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'.
18252
18253 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18254
18255 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18256 of arguments. Return number of tokens and not arguments. All users
18257 updated.
18258
18259 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18260
18261 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18262 non-MSDOS paritions.
18263
18264 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18265
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.
18269
18270 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18271
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
18281 normal/main.c).
18282 * po/POTFILES: Add normal/main.c.
18283
18284 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18285
18286 * normal/menu_text.c (STANDARD_MARGIN): New macro.
18287 (print_message_indented): Add `margin_left' and `margin_right'
18288 parameters.
18289 (print_message): Update `print_message_indented' calls. Adds '\n' to the
18290 strings.
18291 (print_timeout): Use `print_message_indented' to print the message.
18292 Deletes `second_stage' parameter.
18293 (run_menu): Update `print_timeout' calls.
18294
18295 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18296
18297 Fix console palette on OpenFirmware.
18298
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.
18304
18305 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18306
18307 Fix potential EfiEmu double prepare.
18308
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.
18312
18313 set_virtual_address_map support.
18314
18315 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
18316 prototype.
18317 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
18318 prototype.
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):
18323 New definition.
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.
18337
18338 Newer XNU parameters.
18339
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.
18346
18347 64-bit xnu support.
18348
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.
18384
18385 Eliminate ad-hoc tree format in XNU and EfiEmu.
18386
18387 * efiemu/main.c (grub_efiemu_prepare): Update comment.
18388 * efiemu/pnvram.c: Rewritten to use environment variables.
18389 All users updated.
18390
18391 Inline utf16_to_utf8.
18392
18393 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
18394 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
18395 All users updated.
18396 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
18397
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.
18402
18403 UTF-8 to UTF-16 transformation.
18404
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)
18411
18412 Support for device properties.
18413
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.
18448
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.
18451
18452 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18453
18454 Workaround for broken ATI VBE.
18455
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.
18460
18461 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
18462
18463 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
18464 the `find' command.
18465
18466 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 UUID support for HFS.
18469
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'.
18473
18474 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
18475
18476 Fix a segfault with parsing unknown long options.
18477
18478 * util/grub-mkrelpath.c (options): Zero terminate it.
18479
18480 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18481
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.
18486
18487 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18488
18489 * util/grub-probe.c (probe): Improve error message.
18490
18491 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18492
18493 * loader/i386/multiboot_elfxx.c
18494 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
18495 initialization.
18496
18497 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18498
18499 Relocator framework
18500
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.
18541 (entry): Removed.
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.
18572
18573 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18574
18575 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
18576 anything.
18577
18578 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18579
18580 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
18581 GRUB_ERR_NONE before calling grub_env_set.
18582
18583 2009-12-12 Robert Millan <rmh@aybabtu.com>
18584
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
18593 `video.lst'.
18594 * util/grub.d/30_os-prober.in: Replace `vbe' with
18595 ${GRUB_VIDEO_BACKEND}.
18596
18597 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
18598
18599 * THANKS: Add David Miller.
18600
18601 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
18602
18603 libpciaccess support.
18604
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.
18622
18623 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
18624
18625 * util/misc.c: Don't include <errno.h> twice.
18626
18627 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
18628
18629 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
18630 name in an error message.
18631 (grub_biosdisk_rw): Likewise.
18632
18633 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18634
18635 Eliminate NTFS 4Gib barrier.
18636
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.
18644 Use COM_LOG_LEN.
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.
18649
18650 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18651
18652 Eliminate grub-fstest 4Gib barrier.
18653
18654 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
18655 (read_file): Fix error reporting.
18656
18657 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18658
18659 Eliminate hexdump 4Gib barrier.
18660
18661 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
18662 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
18663
18664 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
18667 Fixes amarsh bug.
18668
18669 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
18670
18671 Remove miscellaneous files in distclean target.
18672
18673 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
18674
18675 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
18676
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.
18684
18685 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
18686
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'.
18690
18691 2009-12-08 Carles Pina i Estany <carles@pina.cat>
18692
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.
18698 (run): 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.
18704
18705 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
18706
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
18712 prototypes.
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.
18717
18718 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
18719
18720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
18721 anything even prefixed with 'cdrom' as a cdrom.
18722
18723 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
18724
18725 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
18726 mount points.
18727
18728 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18729
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 *
18733 and not 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.
18741
18742 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18743
18744 Rename kernel.mod to kernel.img.
18745
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".
18763
18764 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18765
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
18773 width.
18774 (get_entry_number): Gettextize and uses dynamic terminal width.
18775 (notify_booting, notify_fallback, notify_execution_failure):
18776 Gettextize.
18777 * normal/menu_entry.c (store_completion): Cleanup the gettextized
18778 string.
18779 (run): Likewise.
18780 (grub_menu_entry_run): Likewise.
18781 * PO/POTFILES: Add normal/menu_entry.c.
18782
18783 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18784
18785 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
18786
18787 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18788
18789 * util/grub-install.in: Install gettext .mo files.
18790 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
18791
18792 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18793
18794 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
18795 grub_dprintf.
18796
18797 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
18798
18799 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
18800 non-firmware-dependant one in realmode.S takes precedence.
18801
18802 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
18803
18804 * commands/halt.c: Replace misc arch-specific headers with
18805 `<grub/misc.h>'.
18806 * commands/reboot.c: Likewise.
18807 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
18808 `<grub/misc.h>'.
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.
18812
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.
18817
18818 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
18819
18820 * include/grub/i386/halt.h: Remove.
18821 * include/grub/i386/reboot.h: Likewise.
18822
18823 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
18824
18825 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
18826
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
18830 "progname.h"
18831 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18832 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18833 (usage): Add missing comma in printf.
18834
18835 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
18836
18837 Use the same reboot approach on i386 coreboot and qemu as we do on
18838 BIOS.
18839
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"'.
18849
18850 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
18851
18852 Fix $srcdir != $objdir build.
18853
18854 * Makefile.in (po/%.po): Rewrite as ...
18855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
18856
18857 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18858
18859 Fix GNU/Hurd grub-install crash.
18860 * util/grub-probe.c (probe): Try to access `path' only when it is not
18861 NULL.
18862
18863 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18864
18865 Correct module naming.
18866
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
18875
18876 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
18877
18878 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
18879 translatable.
18880 (usage): Translate `arg' strings using gettext().
18881 Thanks to Jordi Mallach for the suggestion.
18882
18883 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 GOP support. Based on patch from Bean
18886 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
18887
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
18892 variables.
18893 * conf/x86_64-efi.rmk: Likewise.
18894
18895 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18896
18897 Rename efi_fb to efi_uga.
18898
18899 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18900 'efi_uga.mod'.
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
18908 'efi_uga.mod'.
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_'.
18917
18918 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18919
18920 * po/README: New file. Explain our PO file workflow.
18921
18922 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18923
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
18930 empty set.
18931
18932 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
18933
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.
18938
18939 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18940
18941 * util/i386/efi/grub-mkimage.c: Include "progname.h".
18942 (main): Use `program_name' instead of nonexistent `progname'.
18943
18944 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18945
18946 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
18947 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
18948
18949 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18950
18951 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
18952 commit.
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.
18958
18959 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18960
18961 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
18962
18963 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
18964
18965 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
18966
18967 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
18968
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.
18996
18997 * util/misc.c: Include `"progname.h"'.
18998 (progname): Remove variable.
18999 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19000
19001 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19002
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.
19006
19007 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19008
19009 autoconf >= 2.60 support $(localedir).
19010
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.
19015
19016 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19017
19018 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19019 aclocal is run.
19020
19021 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19022
19023 * normal/main.c (grub_normal_read_line): Fix off-by-one
19024 buffer overflow.
19025
19026 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19027
19028 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19029 "parser.grub" in grub_command_execute() call.
19030
19031 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19032
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
19042 here ...
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.
19047
19048 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19049
19050 * util/Makefile.in (install-local): Convert a `for' into a normal
19051 shell expansion.
19052
19053 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19054
19055 * autogen.sh: Add automake call.
19056 * config.guess: Remove.
19057 * config.sub: Likewise.
19058 * install-sh: Likewise.
19059
19060 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19061
19062 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19063
19064 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19065
19066 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19067 function to a normal shell `for'.
19068
19069 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19070
19071 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19072
19073 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19074
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.
19080
19081 * util/grub-mkconfig_lib.in (bindir): New variable.
19082 (grub_mkrelpath): Likewise.
19083 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19084
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.
19088
19089 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19090 to its root.
19091
19092 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19093
19094 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19095 platform.
19096
19097 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19098
19099 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19100 strncmp().
19101
19102 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19103
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.
19107
19108 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19109
19110 * conf/common.rmk: Add grub-gettext_lib target and updates
19111 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19112 LDFLAGS.
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
19117 prototypes.
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.
19127
19128 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19129
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.
19137
19138 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19139
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.
19152
19153 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19154
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.
19159
19160 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19161 * gensymlist.sh.in: Likewise.
19162
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.
19171
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.
19187
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>'.
19193
19194 * Makefile.in (enable_grub_emu): Remove variable.
19195 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19196
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.
19201
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.
19205
19206 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19207
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
19212 "sh" to "grub".
19213
19214 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19215
19216 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19217 `$(XGETTEXT)'.
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
19221 around N_().
19222 (usage): Use gettext() to translate help strings when printing them.
19223
19224 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19225
19226 Based on patch from Bean
19227 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19228
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
19232 variables.
19233 * conf/x86_64-efi.rmk: Likewise.
19234
19235 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19236
19237 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19238 * util/i386/pc/grub-setup.c: Likewise.
19239
19240 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19241
19242 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19243 <hurd/fs.h>
19244 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19245 file_get_storage_info to implement grub_guess_root_device.
19246
19247 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19248
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.
19252
19253 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19254
19255 * util/grub-mkrescue.in: Print an error and usage if output option
19256 has not been given.
19257
19258 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19259
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.
19263
19264 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19265
19266 Fix build for srcdir != objdir.
19267
19268 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19269 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19270 $(srcdir).
19271 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19272 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19273 reference for input.
19274
19275 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19276
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.
19280
19281 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19282 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19283
19284 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19285 (process_input_dir): New function. Process an arbitrary input
19286 directory.
19287 Misc adjustments to support both "override mode" and system-wide mode.
19288
19289 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19290
19291 * configure.ac (UNIFONT_BDF): Rename to ...
19292 (FONT_SOURCE): ... this. Update all users.
19293
19294 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19295
19296 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
19297 to the list of unifont files to look for.
19298
19299 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19300
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().
19305
19306 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19307
19308 * Makefile.in (install-local): Add a missing backslash.
19309
19310 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19311
19312 * include/grub/x86_64/io.h: New file.
19313
19314 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19315
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.
19322
19323 * Makefile.in (po/*.po): Redefine as ...
19324 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
19325
19326 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
19327
19328 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19329
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>'.
19336 (_): New macro.
19337
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.
19345
19346 * po/POTFILES: Update with new files.
19347
19348 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19349
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.
19358
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.
19366
19367 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19368
19369 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
19370 instead of static allocation.
19371 * util/mkisofs/match.h: Likewise.
19372
19373 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19374
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.
19379
19380 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19381
19382 * Makefile.in ($(srcdir)/aclocal.m4): New target.
19383
19384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19385
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.
19391
19392 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19393
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.
19400
19401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19402
19403 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
19404 other things).
19405 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
19406 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
19407 bindtextdomain() calls for gettext initialization.
19408
19409 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19410
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.
19417
19418 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19419
19420 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
19421 from here ...
19422 * Makefile.in (CPPFLAGS): ... to here.
19423
19424 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19425
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.
19430
19431 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19432
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.
19447
19448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19449
19450 * import_gcry.py: New file (written by Vladimir with minor
19451 adjustments).
19452 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
19453 ciphers.
19454 * INSTALL: Document that Python is required for bootstrap.
19455
19456 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19457
19458 Import ciphers from libgcrypt 1.4.4.
19459
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
19497
19498 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19499
19500 Fix build for systems without error().
19501
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()).
19507
19508 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19509
19510 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19511 instead of relying that char is signed.
19512
19513 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19514
19515 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19516 blocksize different from specified.
19517 (grub_pxefs_read): Likewise.
19518
19519 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19520
19521 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19522
19523 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19524 (grub_ata_readwrite): Likewise. Update 2 format strings.
19525 (grub_atapi_read): Likewise.
19526
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.
19536
19537 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19538
19539 Relicense multiboot.h, with RMS' blessing.
19540
19541 * include/multiboot.h: Change to X11 license.
19542
19543 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
19544
19545 Support --version in grub-mkisofs.
19546
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'.
19553
19554 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
19555
19556 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
19557 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
19558
19559 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19560
19561 Fix help2man generation for mkisofs.
19562
19563 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
19564 (usage): Send output to stdout (rather than stderr).
19565
19566 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19567
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.
19574
19575 * util/grub-mkrescue.in: New file.
19576 * util/i386/pc/grub-mkfloppy.in: New file.
19577
19578 * util/i386/coreboot/grub-mkrescue.in: Remove.
19579 * util/i386/pc/grub-mkrescue.in: Remove.
19580
19581 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19582
19583 * include/grub/multiboot.h (struct grub_multiboot_header): Move
19584 from here ...
19585 * include/multiboot.h (struct multiboot_header): ... to here. Update
19586 all users.
19587 * include/grub/multiboot.h (struct grub_multiboot_info): Move
19588 from here ...
19589 * include/multiboot.h (struct multiboot_info): ... to here. Update
19590 all users.
19591 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
19592 from here ...
19593 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
19594 Update all users.
19595 * include/grub/multiboot.h (struct grub_mod_list): Move
19596 from here ...
19597 * include/multiboot.h (struct multiboot_mod_list): ... to here.
19598 Update all users.
19599
19600 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19601
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.
19620
19621 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19622
19623 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
19624 this platform we should support Multiboot1 first.
19625
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.
19629
19630 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19631
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.
19636
19637 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19638
19639 * util/i386/pc/grub-install.in: Move from here ...
19640 * util/grub-install.in: ... to here. Update all users.
19641
19642 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
19643
19644 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
19645
19646 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19647
19648 Support for El Torito without floppy emulation.
19649
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.
19667
19668 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
19669
19670 Fix the generation of the man page.
19671
19672 * util/pc/i386/grub-install.in: Source
19673 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19674
19675 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19676
19677 Large file support for grub-mkisofs.
19678
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'.
19687 Update all users.
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()
19692 return value.
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
19696 users.
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.
19702
19703 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
19704
19705 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
19706
19707 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19708
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'.
19717
19718 * configure.ac: Detect `mingw32msvc' host_os.
19719 Check for lstat(), getuid() and getgid().
19720
19721 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
19722 instances of `u_char' with `uint8_t'.
19723
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.
19730
19731 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19732
19733 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
19734 conditional expression).
19735
19736 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19737
19738 Import from Gnulib.
19739
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.
19748
19749 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19750
19751 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
19752 * normal/handler.c (read_handler_list): Likewise.
19753
19754 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19755
19756 Misc cleanup.
19757
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
19764 users.
19765 * normal/dyncmd.c (read_command_list): Add space between function
19766 call and parenthesis.
19767 * normal/handler.c (read_handler_list): Likewise.
19768
19769 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19770
19771 * normal/auth.c (punishment_delay): Moved from here ...
19772 (grub_auth_strcmp): ... to here (inside function).
19773
19774 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19775
19776 * include/grub/list.h (struct grub_named_list): Remove `const'
19777 qualifier from `name'.
19778 (struct grub_prio_list): Likewise.
19779
19780 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19781
19782 * normal/auth.c: Include `<grub/time.h>'.
19783 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
19784
19785 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19786
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.
19791
19792 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19793
19794 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
19795 path with $(srcdir).
19796
19797 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19798
19799 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
19800
19801 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19802
19803 * util/i386/coreboot/grub-mkrescue.in: New file.
19804 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
19805 variables.
19806
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
19810 requirements.
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.
19833
19834 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19835
19836 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
19837 being insecure.
19838
19839 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19840
19841 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
19842 `grub-mkimage' (and use $0 when possible).
19843
19844 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19845
19846 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
19847 error message for excessively large memory map.
19848
19849 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19850
19851 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
19852 executable bit.
19853
19854 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19855
19856 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
19857 message for coreboot users.
19858
19859 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
19860
19861 Fix build with GNU gold.
19862
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
19866 link addresses.
19867 * aclocal.m4: Likewise.
19868
19869 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
19870
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'.
19874
19875 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19876
19877 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
19878 OSes.
19879
19880 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19881
19882 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
19883
19884 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19885
19886 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
19887 giving it to GNU Mach.
19888
19889 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19890
19891 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
19892 GNU partition number to get internal GRUB partition number.
19893
19894 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19895
19896 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
19897 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
19898
19899 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
19900
19901 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
19902 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
19903 case.
19904
19905 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
19906
19907 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
19908
19909 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19910
19911 Fix build problem.
19912
19913 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
19914 `-isystem=$(srcdir)/include'.
19915
19916 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
19917
19918 * util/i386/pc/grub-install.in: Remove hint that device.map should be
19919 checked (grub-install doesn't currently rely on it).
19920
19921 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
19922
19923 Revert SVN r2660.
19924
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.
19933
19934 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19935
19936 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
19937
19938 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19939
19940 * include/grub/misc.h: Stop checking for APPLE_CC.
19941
19942 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
19943
19944 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
19945 doesn't cause an infinite call loop.
19946
19947 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
19948
19949 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
19950 strings.
19951
19952 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19953
19954 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
19955 variable.
19956 * Makefile.in: Likewise.
19957
19958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19959
19960 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
19961
19962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19963
19964 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
19965
19966 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19967
19968 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
19969
19970 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19971
19972 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
19973 from here ...
19974 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
19975
19976 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19977
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.
19981
19982 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
19983
19984 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
19985 from here ...
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.
19993
19994 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
19995
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.
19999
20000 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20001
20002 Improve grub-mkconfig performance when there are several menu
20003 entries on a single filesystem.
20004
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.
20009
20010 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20011
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.
20015
20016 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20017
20018 * docs/grub.cfg: Fix example usage of *BSD loaders.
20019
20020 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20021
20022 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20023 grub_util_error() call.
20024
20025 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20026
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().
20038
20039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20040
20041 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20042 (memset): Fix function prototype.
20043
20044 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20045 2009-10-25 Vasily Averin <vvs@parallels.com>
20046
20047 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20048 `dirent.direntlen == 0'.
20049
20050 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20051
20052 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20053 `cpio'.
20054 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20055
20056 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20057
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.
20062
20063 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20064
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.
20068
20069 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20070
20071 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20072 `cpio'.
20073 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20074
20075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20076
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.
20081
20082 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20083
20084 * config.guess: Update to latest version from config git
20085 repository.
20086 * config.sub: Likewise.
20087
20088 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20089
20090 Fix build on sparc64.
20091
20092 * configure.ac: Perform checks for libgcc symbols before
20093 adding `-nostdlib' to LDFLAGS.
20094
20095 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20096
20097 Let user specify OpenBSD root device.
20098
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'.
20104
20105 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20106
20107 * NEWS: Misc adjustments.
20108
20109 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20110
20111 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20112
20113 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20114
20115 * configure.ac: Bump version to 1.97.
20116
20117 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20118
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.
20123
20124 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20125
20126 Make entry text a bit more readable.
20127
20128 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20129
20130 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20133
20134 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20137 operations.
20138
20139 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20140
20141 * configure.ac: Add missing dollar.
20142
20143 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20144
20145 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20146
20147 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20148 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20149 exports.
20150 * include/grub/sparc64/libgcc.h: Likewise. Use
20151 preprocessor conditionals.
20152
20153 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20154
20155 * conf/common.rmk (grub-dumpbios): Remove rule.
20156 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20157 * util/grub-dumpbios.in: Remove file.
20158
20159 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20160
20161 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20162 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20163
20164 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20165 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20166 users.
20167
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
20172 users.
20173
20174 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20175
20176 * term/tparm.c: Switch to GPLv3.
20177
20178 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20179
20180 * include/grub/i386/cpuid.h: Add header protection.
20181
20182 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20183
20184 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20185
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.
20194
20195 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20196
20197 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20198 that version.texi is rebuilt on version number changes.
20199
20200 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20201
20202 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20203 Fixes bug #27602.
20204
20205 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20206
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.
20211
20212 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20213
20214 * configure.ac: Bump version to 1.97~beta4.
20215
20216 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20217
20218 Resync grub-mkdevicemap in x86_64-efi.
20219
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'.
20223
20224 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20225
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
20228 creation.
20229
20230 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20231
20232 Do not automatically install headers.
20233
20234 * Makefile.in (include_DATA): Remove. Update all users.
20235
20236 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20237
20238 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20239 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20240
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.
20298
20299 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
20300
20301 * docs/grub.texi (Command-line and menu entry commands): Document
20302 date and echo commands.
20303
20304 2009-09-24 Pavel Roskin <proski@gnu.org>
20305
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.
20314
20315 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20316
20317 Fix "lost keypress" bug in at_keyboard.
20318
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.
20323
20324 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20325
20326 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
20327 size check within GRUB_MACHINE_PCBIOS section.
20328
20329 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20330
20331 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
20332 return value.
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.
20338
20339 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
20340
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.
20346
20347 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20348
20349 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
20350
20351 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20352
20353 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
20354 for `*.dpkg-new'.
20355
20356 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
20357
20358 Build info documentation. Some code borrowed from Automake.
20359
20360 * configure.ac: Check for makeinfo.
20361 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
20362 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
20363 docs/version.texi.
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
20367 errors for now.
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'.
20374
20375 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20376
20377 * kern/term.c: Fix indentation.
20378
20379 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20380
20381 * util/hostdisk.c: Fix a comment.
20382
20383 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
20384
20385 Fix regression introduced in r2539.
20386
20387 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
20388 to 0xA1.
20389
20390 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
20391
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.
20396
20397 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
20398
20399 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
20400
20401 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20402
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).
20407
20408 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
20409 `--disable-werror' was used.
20410
20411 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20412
20413 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
20414 uninitialized `lastaddr'.
20415
20416 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
20419
20420 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20421
20422 * commands/test.c (get_fileinfo): Return immediately if
20423 grub_fs_probe fails.
20424
20425 2009-09-14 José Martínez <xosemp@gmail.com>
20426
20427 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
20428
20429 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20430
20431 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
20432 output.
20433
20434 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
20435
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.
20439
20440 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20441
20442 * configure.ac: Bump version to 1.97~beta3.
20443 * docs/version.texi: Likewise.
20444
20445 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20446
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)
20449 from here ...
20450 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
20451 (grub_linux_setup_video): ... to here (with some adjustments).
20452
20453 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20454
20455 Fix memory corruption issue (spotted by Colin Watson).
20456
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.
20460
20461 2009-09-12 Yves Blusseau <blusseau@zetam.org>
20462
20463 Change clean rules to properly remove files
20464
20465 * genmk.rb: add new clean rules
20466 * Makefile.in (clean): add the new targets
20467 (mostlyclean): likewise
20468
20469 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20470
20471 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
20472 to grub_uint64_t.
20473 * fs/ntfs.c (init_file): Understand 64-bit sizes for
20474 non-resident files.
20475
20476 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20477
20478 * configure.ac: Don't look for help2man when cross-compiling. Fixes
20479 part of bug #27349.
20480
20481 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20482
20483 * util/grub-mkconfig.in: Make the created config mode 400 and
20484 print a warning if it fails.
20485
20486 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
20487
20488 * util/grub.d/40_custom.in: Ask user to type custom entries below
20489 comment, rather than below 'exec tail' line.
20490
20491 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20492
20493 * util/grub.d/40_custom.in: Make sure that the explanatory text is
20494 visible in grub.cfg.
20495
20496 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20497
20498 * util/grub.d/40_custom.in: Make it a little clearer how to use this
20499 file.
20500
20501 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20502
20503 * docs/grub.cfg: Add an example menu entry for memtest86+.
20504
20505 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
20506
20507 * config.guess: Update to latest version from config git.
20508 * config.sub: Likewise.
20509
20510 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20511
20512 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20513 unknown-command case. Fixes bug #27320.
20514
20515 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20516
20517 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20518 `help' if the command exists.
20519
20520 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20521
20522 * INSTALL: Require GCC 4.1.3 or later.
20523
20524 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20525
20526 * Makefile.in (RMKFILES): add i386-qemu.rmk
20527 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20528 $(srcdir)/stamp-h.in
20529
20530 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20531
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.
20535
20536 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
20537
20538 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
20539 find searches for.
20540
20541 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20542
20543 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
20544 unnecessary calls to grub_error.
20545
20546 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
20547
20548 * NEWS: Mention `keystatus' and Unicode fonts.
20549
20550 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
20551
20552 * configure.ac: Bump version to 1.97~beta2.
20553 * docs/version.texi: Likewise.
20554
20555 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20556
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
20561 discussion.
20562
20563 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
20564
20565 Embedding loadenv module into grub-emu
20566
20567 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
20568 commands/loadenv.c
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
20575
20576 2009-09-03 Magnus Granberg <zorry@ume.nu>
20577
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
20581 to TARGET_CFLAGS.
20582
20583 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
20584
20585 * INSTALL: Note that GNU Bison 2.3 or later is required.
20586
20587 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20588
20589 * kern/i386/pc/startup.S: Fix typo.
20590
20591 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
20594 according to GCS.
20595
20596 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20597
20598 * docs/grub.texi (Naming convention): Describe one-based partition
20599 numbering.
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
20604 menu.lst.
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.
20608
20609 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20610
20611 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
20612 to avoid implying that only one of --shift, --ctrl, or --alt may be
20613 used.
20614
20615 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20616
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.
20619
20620 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20621
20622 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
20623 (write_blocklists): Likewise.
20624
20625 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
20626
20627 * script/lua/grub_lua.h (fputs): Supply a format string as the first
20628 argument to grub_printf.
20629
20630 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
20631
20632 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
20633 non GNU test.
20634
20635 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20636
20637 * kern/file.c (grub_file_read): Spelling fix
20638
20639 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20640
20641 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
20642 loading of headers in some cases.
20643
20644 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
20645
20646 * configure.ac: Bump version to 1.97~beta1.
20647 * docs/version.texi: Likewise.
20648
20649 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20650
20651 * include/grub/i386/xnu.h: Add license header.
20652 include grub/err.h explicitly.
20653
20654 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20655
20656 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
20657 to `ufs' in the vfs.root.mountfrom kernel parameter.
20658
20659 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20660
20661 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
20662
20663 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
20664 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
20665
20666 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
20667 `ARRAY_SIZE' macro.
20668
20669 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20670
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.
20678
20679 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20680
20681 * term/i386/pc/console.c (bios_data_area): Cast
20682 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
20683
20684 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20685
20686 1-bit optimised blitters.
20687
20688 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
20689 prototype.
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
20697 function.
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
20705 when possible.
20706 * video/video.c (grub_video_get_blit_format): Return
20707 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
20708
20709 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20710
20711 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
20712 the first argument to grub_printf.
20713
20714 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20715 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
20716
20717 Add `getkeystatus' terminal method. Add a new `keystatus' command
20718 to query it.
20719
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.
20726
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
20730 Data Area layout.
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
20734 constants.
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.
20739
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.
20753
20754 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20755
20756 Split befs.mod and afs.mod into *_be.mod and *.mod
20757
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.
20796
20797 2009-08-26 Bean <bean123ch@gmail.com>
20798
20799 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
20800 64-bit number.
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.
20804
20805 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20806
20807 NetBSD memory map support.
20808
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.
20813
20814 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20815
20816 Enable bsd.mod on coreboot.
20817
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.
20825
20826 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20827
20828 Cleanup NetBSD root support.
20829
20830 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
20831 grub_bsd_get_device.
20832 Fix typo.
20833
20834 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
20835
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.
20840
20841 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20842
20843 Fix breakage in grub-setup.
20844
20845 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
20846 "msdos_partition_map".
20847
20848 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20849
20850 Fix breakage in normal/auth.c.
20851
20852 * normal/auth.c (grub_iswordseparator): New function.
20853
20854 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20855
20856 Authentication support.
20857
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
20865 normal/auth.c.
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
20876 'users'.
20877 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
20878 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
20879 users updated.
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
20883 authentication.
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.
20889
20890 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 Save space by inlining misc.c functions.
20893
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.
20911
20912 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20913
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
20917 limit.
20918 * script/sh/script.c (grub_script_arg_add): Duplicate string.
20919
20920 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
20921
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.
20928
20929 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20930
20931 Rename *_partition_map to part_*
20932
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'.
20937 All users updated.
20938 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
20939 All users updated.
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.
20943
20944 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 Fix OpenBSD and NetBSD support.
20947
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.
20957
20958 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20959
20960 Let user specify NetBSD root device.
20961
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'.
20968
20969 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20970
20971 Support for 64-bit NetBSD.
20972
20973 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
20974 point when booting non-FreeBSD.
20975
20976 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20977
20978 Support --no-smp and --no-acpi for NetBSD.
20979
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.
20984
20985 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20986
20987 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
20988 errors.
20989 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
20990 errors. Call grub_error when needed.
20991
20992 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
20993
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.
20997
20998 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
20999
21000 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21001
21002 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21003
21004 * util/grub.d/30_os-prober.in: Disable os-prober if
21005 `GRUB_DISABLE_OS_PROBER' was set to true.
21006
21007 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21008
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.
21013
21014 * parttool/pcpart.c: Rename to ...
21015 * parttool/msdospart.c: ... this. Update all users.
21016
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.
21035
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
21053 to ...
21054 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21055 (msdospart_mod_LDFLAGS): ... this.
21056
21057 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21058
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
21076
21077 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21078
21079 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21080
21081 2009-08-21 Pavel Roskin <proski@gnu.org>
21082
21083 * Makefile.in (install-local): When checking if a file is in the
21084 build directory, use "test -e" to detect symlinks.
21085
21086 * Makefile.in (install-local): Remove all files in
21087 $(DESTDIR)$(pkglibdir) before installing new files there.
21088
21089 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21090
21091 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21092 grub-mkelfimage.
21093
21094 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21095
21096 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21097 explicitly specified by the user.
21098
21099 2009-08-18 Pavel Roskin <proski@gnu.org>
21100
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):
21104 Likewise.
21105 * video/fb/fbutil.c: Remove unnecessary casts.
21106
21107 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21108
21109 VBE cleanup.
21110
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
21115 second argument.
21116
21117 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21118
21119 Rename variables for clarity.
21120
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'.
21124 All users updated.
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'
21138
21139 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21140
21141 Remove duplicate grub_video_fb_get_video_ptr.
21142
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.
21150
21151 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21152
21153 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21154 grub_dprintf() that was just added.
21155
21156 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21157
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.
21162
21163 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21166 grub_dprintf.
21167 * fs/fat.c (grub_fat_read_data): Likewise.
21168
21169 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21170
21171 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21172 payload.
21173 (grub_module): Likewise.
21174
21175 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21178 mbi->cmdline but free playground.
21179
21180 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21181
21182 Handle group offset on UFS1.
21183
21184 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21185 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21186
21187 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21188
21189 Split ufs.mod into ufs1.mod and ufs2.mod.
21190
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):
21205 Likewise.
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):
21214 Likewise.
21215 * fs/ufs2.c: New file.
21216 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21217
21218 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21219
21220 Framebuffer split.
21221
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.
21271
21272 2009-08-14 Pavel Roskin <proski@gnu.org>
21273
21274 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21275 ABS and APPLE_CC.
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
21280 lnxboot.img.
21281
21282 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21283
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.
21287
21288 2009-08-13 Yves Blusseau <blusseau@zetam.org>
21289
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_".
21293
21294 2009-08-13 Pavel Roskin <proski@gnu.org>
21295
21296 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
21297 any modern compilers we support.
21298
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.
21302
21303 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
21304
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.
21308
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.
21312
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
21316 messages.
21317
21318 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21319
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.
21325
21326 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21327
21328 * fs/jfs.c: Update copyright year.
21329
21330 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21331
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.
21336
21337 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21338
21339 * util/grub-mkconfig.in: Allow the user to specify the used font
21340 with GRUB_FONT.
21341
21342 2009-08-08 Pavel Roskin <proski@gnu.org>
21343
21344 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
21345 available, xfs.mod needs it now.
21346
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.
21350
21351 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
21352 on it. Add missing space before closing bracket. Fix
21353 misleading formatting.
21354
21355 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21356
21357 * docs/grub.texi: Major overhaul. Remove all sections that are
21358 specific to GRUB Legacy, or mostly composed of Legacy-specific
21359 information.
21360
21361 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21362
21363 * docs/version.texi: New file. Provides version information for
21364 grub.texi.
21365
21366 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21367
21368 * docs/grub.texi: Update CVS information to SVN.
21369 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
21370
21371 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21372
21373 * util/grub-mkconfig.in: Remove a wrong `fi'.
21374
21375 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21376
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.
21380
21381 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21382
21383 * util/grub-mkconfig_lib.in (font_path): Move the functionality
21384 of it to ...
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.
21387
21388 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21389
21390 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
21391 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
21392 Update all users.
21393
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
21398 all users.
21399
21400 * util/grub.d/10_linux.in (find_latest): Moved from here ...
21401 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
21402 all users.
21403
21404 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21405
21406 * util/grub.d/10_freebsd.in: Use an absolute device path for
21407 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
21408
21409 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
21410
21411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
21412 handling of multiple abstraction modules.
21413
21414 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
21415
21416 Fix a bug resulting in black screen when loading Linux using a
21417 packed video mode.
21418
21419 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
21420 function.
21421
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()).
21427
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.
21434
21435 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
21436
21437 * commands/search.c (options): Fix help output to match actual code.
21438
21439 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
21440
21441 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
21442 of homegrown code.
21443
21444 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
21447 on XFS or ReiserFS.
21448
21449 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21450
21451 Support Apple partition map with sector size different from 512 bytes.
21452
21453 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
21454 (apple_partition_map_iterate): Respect 'aheader.blocksize'
21455 and 'apart.partmap_size'.
21456
21457 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21458 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
21459
21460 Fix cpuid command.
21461
21462 * commands/i386/cpuid.c (options): New variable.
21463 (grub_cmd_cpuid): Return real error.
21464 (GRUB_MOD_INIT(cpuid)): Declare options.
21465
21466 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
21467
21468 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
21469 valid.
21470
21471 2009-07-31 Bean <bean123ch@gmail.com>
21472
21473 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
21474 log2_inode.
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.
21487
21488 2009-07-31 Bean <bean123ch@gmail.com>
21489
21490 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
21491 Don't change pv->disk if it's already set.
21492
21493 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
21494 (grub_raid_register): ... here.
21495 (grub_raid_rescan): Removed.
21496
21497 * include/grub/raid.h (grub_raid_rescan): Removed.
21498
21499 * util/grub-fstest.c: Remove include file <grub/raid.h>.
21500 (fstest): Replace grub_raid_rescan with module fini function followed
21501 by init function.
21502
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.
21507
21508 2009-07-31 Pavel Roskin <proski@gnu.org>
21509
21510 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21511 to grub_zalloc(), it was erroneous.
21512 Reported by Bean <bean123ch@gmail.com>
21513
21514 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21517 embedding zone, not only the first one.
21518
21519 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21520
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.
21525
21526 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21527
21528 * util/deviceiter.c (get_acceleraid_disk_name): New static
21529 function.
21530 (grub_util_iterate_devices): Handle Accelraid devices.
21531 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21532
21533 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21534
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).
21538
21539 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21540
21541 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
21542 Clear direction flag before jumping to OS.
21543 (grub_multiboot2_real_boot): Likewise.
21544
21545 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21546
21547 * util/i386/pc/grub-install: Fix parsing of --disk-module
21548 option.
21549
21550 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21551
21552 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
21553 when embedding.
21554
21555 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
21556
21557 * util/grub-mkconfig.in (package_version): New variable.
21558 Use it do display the version.
21559
21560 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21561
21562 * kern/file.c (grub_file_open): Revert to previous check with
21563 grub_errno.
21564
21565 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
21568 from help line. It's out of sync with code.
21569
21570 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
21573 entries on failed boot.
21574
21575 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21576
21577 * kern/file.c (grub_file_open): Fix an error check.
21578
21579 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
21580
21581 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
21582 partition map couldn't be identified.
21583
21584 2009-07-23 Pavel Roskin <proski@gnu.org>
21585
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.
21591
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
21594 than addr.
21595
21596 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21597
21598 UUID support for UFS
21599
21600 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
21601 (grub_ufs_uuid): New function.
21602 (grub_ufs_fs): add .uuid
21603
21604 2009-07-21 Pavel Roskin <proski@gnu.org>
21605
21606 * kern/dl.c (grub_dl_check_header): Make static.
21607
21608 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
21609
21610 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
21611 add drivemap for Vista. It breaks Windows 7.
21612
21613 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
21616 128 bytes
21617
21618 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 Add BFS support
21621
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
21654
21655 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
21656
21657 * util/getroot.c (find_root_device): Add support for MacOSX.
21658 * util/hostdisk.c: Likewise.
21659
21660 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21661
21662 * font/font.c (find_glyph): Check whether a font is present to avoid
21663 segmentation fault.
21664
21665 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
21666
21667 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
21668
21669 2009-07-20 Pavel Roskin <proski@gnu.org>
21670
21671 * configure.ac: Trim excessively wordy excuses.
21672
21673 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21674
21675 Add symlink, mtime and label support to AtheFS.
21676
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.
21681 Pass mtime.
21682 (grub_afs_label): New function.
21683 (grub_afs_fs): Add grub_afs_label.
21684 (grub_afs_read_symlink): New function.
21685
21686 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21687
21688 Fix AtheFS support.
21689
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.
21704
21705 2009-07-19 Pavel Roskin <proski@gnu.org>
21706
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
21711 support.
21712 * kern/i386/pc/lzo1x.S: Remove.
21713 * kern/i386/pc/startup.S: Remove lzo support.
21714 * util/i386/pc/grub-mkimage.c: Likewise.
21715
21716 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
21717
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.
21727
21728 2009-07-16 Pavel Roskin <proski@gnu.org>
21729
21730 * configure.ac: Never add "-c" to CFLAGS.
21731
21732 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
21733
21734 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
21735 grub_cv_cc_efiemu should be used.
21736
21737 * configure.ac: Typo fixes.
21738
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.
21783
21784 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21785
21786 Enable all targets that can be built by default
21787
21788 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
21789 grub-mkfont and grub-fstest if they can be built
21790
21791 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21792
21793 Fix hang and segmentation fault in grub-emu-usb
21794
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
21807 by grub_init_all
21808
21809 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21810
21811 Fix libusb
21812
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.
21817
21818 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 Make FreeBSD accept zpool.cache
21821
21822 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
21823 type is /boot/zfs/zpool.cache
21824
21825 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21826
21827 Fix 64-bit efiemu
21828
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
21832
21833 2009-07-15 Pavel Roskin <proski@gnu.org>
21834
21835 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
21836 * kern/disk.c (struct grub_disk_cache): Likewise.
21837
21838 * commands/probe.c (options): Typo fix.
21839
21840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
21841 Increase to 0x5a to accommodate FAT32. Adjust other offsets
21842 accordingly.
21843 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
21844
21845 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
21846 the end of "Error" to make the message more readable.
21847
21848 * boot/i386/pc/boot.S (kernel_segment): Remove.
21849 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
21850 for destination.
21851
21852 * boot/i386/pc/boot.S (boot_version): Remove.
21853 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
21854 Remove.
21855
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.
21861
21862 2009-07-13 Pavel Roskin <proski@gnu.org>
21863
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.
21868
21869 * kern/dl.c: Force native word size to suppress warnings when
21870 compiling grub-emu.
21871
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.
21876
21877 2009-07-11 Bean <bean123ch@gmail.com>
21878
21879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
21880 childname.
21881
21882 2009-07-10 Bean <bean123ch@gmail.com>
21883 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
21884
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.
21888
21889 2009-07-07 Pavel Roskin <proski@gnu.org>
21890
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().
21894
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.
21898
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
21902 temporary buffer.
21903
21904 2009-07-06 Pavel Roskin <proski@gnu.org>
21905
21906 * commands/search.c (search_fs): Fix potential NULL pointer
21907 dereference.
21908
21909 * commands/search.c (search_fs): Replace QUID macro with quid_fn
21910 function pointer.
21911
21912 2009-07-06 Daniel Mierswa <impulze@impulze.org>
21913
21914 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
21915 comparison.
21916
21917 2009-07-05 Pavel Roskin <proski@gnu.org>
21918
21919 * include/grub/i386/linux.h (struct linux_kernel_params):
21920 Restore padding3, it's still needed.
21921
21922 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
21923 FreeBSD.
21924 * util/osdetect.lua: Likewise.
21925
21926 2009-07-05 Bean <bean123ch@gmail.com>
21927
21928 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
21929
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.
21947
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.
21955
21956 * script/lua/grub_main.c (scan_str): New function.
21957 (strcspn): Likewise.
21958 (strpbrk): Likewise.
21959 (memchr): Likewise.
21960
21961 * script/lua/linit.c (lualibs): Enable the string library.
21962
21963 * util/osdetect.lua: New file.
21964
21965 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
21966
21967 * include/grub/i386/linux.h (struct linux_kernel_params): Add
21968 `capabilities' member.
21969
21970 2009-07-02 Pavel Roskin <proski@gnu.org>
21971
21972 * genparttoollist.sh: Add missing newline at the end.
21973
21974 2009-07-01 Pavel Roskin <proski@gnu.org>
21975
21976 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
21977
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).
21981
21982 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
21983 using signed long int constants.
21984
21985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
21986 constant to avoid a warning on FreeBSD.
21987
21988 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
21989 where it's needed.
21990
21991 * Makefile.in: Install include/grub/machine symlink.
21992
21993 * Makefile.in: When installing symlinks, use "cp -fR", which
21994 works on FreeBSD and MacOSX.
21995 From Yves Blusseau <cl7m42e02@sneakemail.com>
21996
21997 * kern/dl.c (grub_dl_resolve_symbol): Make static.
21998 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
21999
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.
22003
22004 * kern/mm.c: Use correct format to print size_t.
22005
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.
22011
22012 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22013
22014 Fix grub-emu build on sparc64-ieee1275.
22015
22016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22018
22019 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22020
22021 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22022 (grub_reboot, grub_halt): New functions.
22023
22024 * util/i386/pc/misc.c: Delete. Update all users.
22025 * util/sparc64/ieee1275/misc.c: Likewise.
22026 * util/powerpc/ieee1275/misc.c: Likewise.
22027
22028 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22029
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.
22039
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.
22050
22051 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22052
22053 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22054 type to `grub_uint8_t', and adjust `padding9' accordingly.
22055
22056 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22057
22058 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22059
22060 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22061 assembly in final jump, using register constraints.
22062
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).
22065
22066 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22067 right before the final jump.
22068
22069 Set `video_mode' to 0x3.
22070
22071 Document initialization of `video_page', `video_mode' and
22072 `video_ega_bx'.
22073
22074 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22075
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.
22079
22080 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22081
22082 Fix build on Debian / sparc.
22083
22084 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22085
22086 2009-06-28 Pavel Roskin <proski@gnu.org>
22087
22088 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22089 fix a warning.
22090
22091 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22092
22093 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22094
22095 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22096 `err'.
22097
22098 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22099
22100 Revert r2338.
22101
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.
22106
22107 2009-06-27 Pavel Roskin <proski@gnu.org>
22108 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22109
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.
22121
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.
22135
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.
22146
22147 * configure.ac: Recognise `i386-qemu'.
22148
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
22155 ifdefs).
22156
22157 2009-06-27 Pavel Roskin <proski@gnu.org>
22158
22159 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22160 read.
22161 * efiemu/prepare32.c: Likewise.
22162 * efiemu/prepare64.c: Likewise.
22163
22164 2009-06-26 Pavel Roskin <proski@gnu.org>
22165
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
22171 ELF definitions.
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.
22177
22178 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22179
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.
22183
22184 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22185
22186 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22187 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22188
22189 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22190
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.
22195
22196 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22197
22198 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22199 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22200
22201 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22202
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.
22206
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.
22211
22212 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22213
22214 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22215 * kern/i386/realmode.S (real_to_prot): ... to here.
22216
22217 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22218
22219 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22220 with `kernel.img'.
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.
22233
22234 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22235 with "kernel.img".
22236
22237 2009-06-21 Pavel Roskin <proski@gnu.org>
22238
22239 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22240 to match nested functions.
22241 * loader/sparc64/ieee1275/linux.c: Likewise.
22242
22243 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22244
22245 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22246
22247 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22248 all i386 platforms.
22249
22250 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22251
22252 Fix asm file handling on ELF, and remove workarounds.
22253
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.
22258
22259 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 Load BSD ELF modules
22262
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
22290 All users updated
22291 (grub_elf64_load_hook_t): Likewise
22292
22293 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
22294
22295 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
22296 variable.
22297 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
22298 don't write a menu entry for recovery mode.
22299
22300 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22301
22302 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
22303 after it's no longer needed.
22304
22305 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22306
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.
22317
22318 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22319
22320 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
22321 grub_raid_register
22322 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
22323
22324 2009-06-19 Pavel Roskin <proski@gnu.org>
22325
22326 * configure.ac: Remove stray AC_MSG_CHECKING.
22327
22328 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
22329
22330 * disk/scsi.c (grub_scsi_open): use continue instead of big if
22331
22332 2009-06-18 Pavel Roskin <proski@gnu.org>
22333
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.
22338
22339 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22340
22341 Fix build with Apple's toolchain. Part 2
22342
22343 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
22344 a fake start
22345
22346 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22347
22348 Fix build with Apple's toolchain. Part 1
22349
22350 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
22351 for long calls
22352 * configure.ac: remove a leftover AC_MSG_RESULT
22353 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
22354 Apple's toolchain
22355
22356 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22357
22358 Fix warnings
22359
22360 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
22361 (decomp_block): initialize ch
22362 use grub_memcpy instead of memcpy
22363
22364 2009-06-17 Pavel Roskin <proski@gnu.org>
22365
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
22368 console.
22369
22370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
22371 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
22372 the kernel.
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
22375 unload.
22376
22377 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
22378
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.
22382
22383 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22384
22385 Fix newline handling
22386
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
22391
22392 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22393
22394 avoid double grub_adjust_range call. Bug reported by David Simner
22395
22396 * kern/disk.c (grub_disk_write): change to raw disk access before
22397 calling disk_read
22398
22399 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
22400
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.
22404
22405 2009-06-16 Pavel Roskin <proski@gnu.org>
22406
22407 * kern/i386/halt.c: Include grub/machine/init.h.
22408 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
22409
22410 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
22411
22412 * util/grub.d/30_os-prober.in: Use ${root} in the generated
22413 drivemap menuentry.
22414
22415 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
22416
22417 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
22418 `echo' command.
22419
22420 2009-06-16 Pavel Roskin <proski@gnu.org>
22421
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.
22435
22436 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22437
22438 xnu_uuid command
22439
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
22451
22452 2009-06-16 Pavel Roskin <proski@gnu.org>
22453
22454 * configure.ac: Avoid '==' in test command, it's not portable.
22455
22456 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22457
22458 Probe command
22459
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
22470
22471 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
22472
22473 Fix handling of string like \"hello\" and "a
22474 b"
22475
22476 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
22477 (grub_script_yylex): fix parsing of quoting, escaping and newline
22478
22479 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
22482 handling
22483
22484 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
22485
22486 * util/grub-mkconfig.in: Fix parsing of --output option.
22487
22488 2009-06-12 Pavel Roskin <proski@gnu.org>
22489
22490 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
22491 genmk.rb don't need to be generated or installed.
22492
22493 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22494
22495 * commands/i386/pc/drivemap_int13h.S: add more comments
22496
22497 2009-06-11 Pavel Roskin <proski@gnu.org>
22498
22499 * Makefile.in (uninstall): Uninstall manuals.
22500
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.
22505
22506 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22507 a compiler warning.
22508
22509 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22510 `entry_lo' to fix variable shadowing.
22511
22512 2009-06-11 Christian Franke <franke@computer.org>
22513
22514 * kern/misc.c (__enable_execute_stack): Add missing return type
22515 to prevent gcc warning.
22516
22517 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22518
22519 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22520
22521 2009-06-11 Pavel Roskin <proski@gnu.org>
22522
22523 * Makefile.in: Don't rely on any scripts being executable.
22524 Always use $(SHELL) to run shell scripts.
22525
22526 * configure.ac: Always define ___main if using -nostdlib. This
22527 fixes tests on Cygwin.
22528
22529 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22530
22531 UDF fix
22532
22533 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22534 is in bytes and not in blocks
22535
22536 2009-06-11 Pavel Roskin <proski@gnu.org>
22537
22538 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
22539 warning.
22540
22541 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22542
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
22546 chain entry.
22547
22548 2009-06-11 Pavel Roskin <proski@gnu.org>
22549
22550 * configure.ac: Remove host_m32. Issues with 64-bit utilities
22551 have long been resolved.
22552
22553 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
22554
22555 * util/grub.d/10_linux.in: Capitalise "Linux".
22556
22557 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
22558
22559 2009-06-11 Pavel Roskin <proski@gnu.org>
22560
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.
22563
22564 * kern/i386/ieee1275/init.c: Add missing prototype for
22565 grub_stop_floppy().
22566
22567 * loader/ieee1275/multiboot2.c [__i386__]: Include
22568 grub/cpu/multiboot.h.
22569
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.
22573
22574 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
22575
22576 Drivemap fixes
22577
22578 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
22579 new function
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
22604
22605 2009-06-10 Pavel Roskin <proski@gnu.org>
22606
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.
22610
22611 * kern/file.c (grub_file_read): Use void pointer for the buffer.
22612 Adjust all callers.
22613
22614 * kern/ieee1275/openfw.c: Remove libc includes.
22615 * kern/ieee1275/cmain.c: Likewise.
22616 * include/grub/ieee1275/ieee1275.h: Likewise.
22617
22618 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
22619 compiler warnings.
22620
22621 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22622
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.
22845
22846 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22847
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'
22852 to `mdate-sh'.
22853
22854 2009-06-10 Pavel Roskin <proski@gnu.org>
22855
22856 * include/grub/multiboot2.h: Provide compatibility defines for
22857 multiboot2.h.
22858 * include/multiboot2.h: Include stdint.h only if needed, using
22859 angle brackets.
22860 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
22861 grub/multiboot2.h.
22862 * loader/ieee1275/multiboot2.c: Likewise.
22863 * loader/multiboot2.c: Likewise.
22864 * loader/multiboot_loader.c: Likewise.
22865
22866 * configure.ac: Use -nostdlib when probing for the target. It
22867 should not be required to have libc for the target.
22868
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
22872 exports.
22873 * include/grub/sparc64/libgcc.h: Likewise. Don't use
22874 preprocessor conditionals.
22875
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.
22878
22879 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
22880
22881 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
22882
22883 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
22884
22885 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
22886 disk limit to 26 for IDE, Virtio, Xen and SCSI.
22887
22888 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
22889
22890 * util/i386/pc/grub-install.in: Change the error message if UUIDs
22891 aren't available if ata.mod gets used.
22892
22893 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
22894
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.
22898
22899 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22900
22901 * util/i386/pc/grub-install.in: Add a parameter --disk-module
22902 to choose between ata and biosdisk module on i386-pc.
22903
22904 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
22905
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.
22910
22911 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
22912 interface is OHCI. Add grub_dprintf for symmetry with
22913 bus/usb/uhci.c.
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.
22917
22918 * bus/usb/ohci.c: Set interf with correct field.
22919
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.
22923
22924 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
22925
22926 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
22927 as fallback an equivalent option without depth.
22928
22929 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22930
22931 Not fail if unable to retrieve C/H/S on LBA disks
22932
22933 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
22934 if unable to retrieve C/H/S on LBA disks
22935
22936 2009-06-08 Pavel Roskin <proski@gnu.org>
22937
22938 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
22939 about aliasing.
22940
22941 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22942
22943 * Makefile.in (uninstall): Remove all $lib_DATA files.
22944
22945 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
22946
22947 Bugfix: install on partitionless device
22948
22949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
22950 is a whole disk
22951
22952 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22953
22954 * Makefile.in (uninstall): Remove all $include_DATA files.
22955
22956 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22957
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.
22963
22964 2009-06-05 Colin D Bennett <colin@gibibit.com>
22965
22966 Optimized font character lookup using binary search instead of linear
22967 search. Fonts now are required to have the character index ordered by
22968 code point.
22969
22970 * font/font.c (load_font_index): Verify that fonts have ordered
22971 character indices.
22972 (find_glyph): Use binary search instead of linear search to find a
22973 character in a font.
22974
22975 2009-06-05 Michael Scherer <misc@mandriva.org>
22976
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.
22981
22982 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
22983
22984 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
22985 * conf/common.rmk (search_mod_CFLAGS): likewise
22986
22987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
22990 compensate a compiler bug
22991
22992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22993
22994 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
22995 instead of '\b'
22996
22997 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
22998
22999 Definitions for creating asm symbols with Apple's CC
23000
23001 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23002 [APPLE_CC] (VARIABLE): likewise
23003
23004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23005
23006 Disable lnxboot.img when compiled
23007 with Apple's CC
23008
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
23015
23016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23017
23018 Address in trampolines based on 32-bit registers when compiled
23019 with Apple's CC
23020
23021 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23022 for addresses
23023 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23024
23025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23026
23027 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23028
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
23033 (memset): likewise
23034 (abort): likewise
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
23039
23040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23041
23042 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23043
23044 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23045 grub-macho2img
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
23052
23053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 Use objconv when compiling with Apple's CC
23056
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
23064
23065 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23066
23067 Define segment as well as section when compiling with
23068 Apple's CC
23069
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
23080
23081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 Allow a compilation without -mcmodel=large
23084
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
23091
23092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 Remove nested functions in efiemu core
23095
23096 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23097
23098 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23101
23102 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23103 temporary storage
23104 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23105 using Apple's CC
23106 (grub_cpu_is_tsc_supported): likewise
23107 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23108
23109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23110
23111 Absolute addressing through constant with Apple's cc
23112
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
23121
23122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23123
23124 Check if compiler is apple cc
23125
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
23145
23146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23147
23148 Simplify sed expressions and improve awk
23149
23150 * Makefile.in (install-local): simplify sed expression
23151 * gencmdlist.sh: likewise
23152 * genmoddep.awk: avoid adding module as a dependency of itself
23153
23154 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 Add missing start symbols
23157
23158 * boot/i386/pc/boot.S: add start
23159 * boot/i386/pc/pxeboot.S: likewise
23160
23161 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23162
23163 Fix wrong assumptions with grub-mkimage on EFI
23164
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
23169
23170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23171
23172 Use .asciz instead of .string
23173
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
23178
23179 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 gfxpayload support
23182
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
23188 (vid_mode): remove
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
23200 loading xnu
23201 * video/video.c (grub_video_setup): removed
23202 (grub_video_set_mode): new function based on grub_gfxterm_init and
23203 grub_video_setup
23204
23205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23206
23207 Avoid calling biosdisk in drivemap
23208
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
23213
23214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 Script fixes
23217
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):
23227 make global
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
23242 ("else"): likewise
23243 ("then"): likewise
23244 ("fi"): likewise
23245 (text): remove
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
23254
23255 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23256
23257 Prevent GRUB from probing floppies during boot.
23258
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.
23264
23265 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23266
23267 Simplify the code duplication in commands/search.c.
23268
23269 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23270 (search_fs): ... this. Update all users.
23271
23272 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23273
23274 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23275
23276 2009-05-28 Pavel Roskin <proski@gnu.org>
23277
23278 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23279 Remove the original symlink explicitly.
23280
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.
23283
23284 2009-05-26 Pavel Roskin <proski@gnu.org>
23285
23286 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
23287 to `str'.
23288
23289 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
23290 possibly unused.
23291
23292 2009-05-25 Christian Franke <franke@computer.org>
23293
23294 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
23295 register.
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.
23305
23306 2009-05-23 Colin D Bennett <colin@gibibit.com>
23307
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.
23311
23312 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
23313 from normal.h.
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.
23320
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.
23332
23333 * normal/main.c (grub_menu_addentry): Renamed from this ...
23334 (grub_normal_add_menu_entry): ... to this.
23335
23336 * script/sh/execute.c (grub_script_execute_menuentry): Update
23337 reference to renamed grub_menu_addentry function.
23338
23339 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
23340
23341 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
23342
23343 2009-05-22 Pavel Roskin <proski@gnu.org>
23344
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.
23349
23350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
23351 to grub_uint8_t.
23352 (grub_root_drive): Likewise.
23353 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
23354 remove alignment.
23355 (grub_root_drive): Change size to byte.
23356 (grub_start_addr): Remove.
23357 (grub_end_addr): Likewise.
23358 (grub_apm_bios_info): Likewise.
23359
23360 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
23361
23362 * normal/i386: Remove.
23363 * normal/powerpc: Likewise.
23364 * normal/sparc64: Likewise.
23365 * normal/x86_64: Likewise.
23366
23367 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
23368
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
23372
23373 2009-05-18 Colin D Bennett <colin@gibibit.com>
23374
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.
23378
23379 * script/lua/grub_main.c (handle_lua_error): New function.
23380 (grub_lua_parse_line): Improved reporting of Lua parser and
23381 execution errors.
23382
23383 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23384
23385 Remove -Werror which causes build to fail on some systems
23386
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
23390
23391 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23392
23393 trampoline for linux on 64-bit platform
23394
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
23398 declaration
23399 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
23400 here
23401 * loader/i386/linux_trampoline.S: moved here
23402 * loader/i386/efi/linux.c (allocate_pages): reserve space for
23403 trampoline
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
23409
23410 2009-05-16 Pavel Roskin <proski@gnu.org>
23411
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.
23417
23418 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23419
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).
23428
23429 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23430
23431 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
23432
23433 2009-05-16 Bean <bean123ch@gmail.com>
23434
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.
23439
23440 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
23441 (setjmp_mod_SOURCES): New variable.
23442 (setjmp_mod_CFLAGS): Likewise.
23443 (setjmp_LDFLAGS): Likewise.
23444
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.
23449
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.
23454
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.
23459
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
23468
23469 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
23470 returns_twice in mingw.
23471
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.
23528
23529 2009-05-16 Bean <bean123ch@gmail.com>
23530
23531 * include/grub/kernel.h (grub_module_header_types): Add type
23532 OBJ_TYPE_CONFIG.
23533
23534 * kern/main.c (grub_load_config): New function.
23535 (grub_main): Call grub_load_config to read boot config.
23536
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.
23540
23541 2009-05-14 Christian Franke <franke@computer.org>
23542
23543 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
23544 This fixes build on Cygwin.
23545
23546 2009-05-14 Pavel Roskin <proski@gnu.org>
23547
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.
23551
23552 2009-05-13 Pavel Roskin <proski@gnu.org>
23553
23554 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
23555 grub_uint32_t to avoid a warning.
23556
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.
23562
23563 2009-05-13 Javier Martín <lordhabbit@gmail.com>
23564
23565 * commands/i386/pc/drivemap.c: New file - implement drivemap
23566 command.
23567 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
23568 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
23569
23570 2009-05-13 Pavel Roskin <proski@gnu.org>
23571
23572 * util/i386/pc/grub-setup.c (setup): Remove unused variable
23573 embedding_area_exists.
23574
23575 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
23576
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).
23581
23582 2009-05-13 Pavel Roskin <proski@gnu.org>
23583
23584 * loader/i386/pc/multiboot2.c: Add necessary includes for
23585 grub_multiboot2_real_boot().
23586
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
23589 bytes of the mode.
23590
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.
23595
23596 * kernel/disk.c (grub_disk_read): Use void pointer for the
23597 buffer.
23598 (grub_disk_write): Use const void pointer for the buffer.
23599 Adjust all callers. Remove unnecessary casts.
23600
23601 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
23602
23603 * util/i386/pc/grub-install.in: Update copyright year.
23604
23605 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 gptsync
23608
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):
23615 new definition
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
23621
23622 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23623
23624 Fixed grub-emu
23625
23626 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
23627 (grub_dl_ref): likewise
23628
23629 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
23630
23631 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
23632 split in two functions (one for msdos and one for gpt).
23633
23634 2009-05-08 Pavel Roskin <proski@gnu.org>
23635
23636 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
23637 not modified.
23638
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
23642 nerr variable.
23643
23644 2009-05-08 David S. Miller <davem@davemloft.net>
23645
23646 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
23647
23648 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
23649
23650 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
23651 existence.
23652
23653 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
23654
23655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23656 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
23657
23658 2009-05-05 David S. Miller <davem@davemloft.net>
23659
23660 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
23661
23662 2009-05-05 Pavel Roskin <proski@gnu.org>
23663
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.
23686
23687 2009-05-04 Pavel Roskin <proski@gnu.org>
23688
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.
23698
23699 2009-05-04 David S. Miller <davem@davemloft.net>
23700
23701 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
23702 pointer args to grub_ieee1275_get_property().
23703
23704 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
23705
23706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
23707 devices, and do not traverse down under controller nodes.
23708
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.
23719
23720 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23721
23722 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
23723 to 0x300.
23724 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
23725 resolutions.
23726 (linux_vesafb_modes): Add a lot of additional modes to the list (based
23727 on documentation from Wikipedia).
23728
23729 2009-05-04 Pavel Roskin <proski@gnu.org>
23730
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.
23774
23775 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23776
23777 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
23778
23779 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23780
23781 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
23782 build error.
23783
23784 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23785
23786 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
23787 parameter only available on BIOS.
23788
23789 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23790
23791 Removed wrong semicolon in declaration
23792
23793 * grub/misc.h (grub_dprintf): remove semicolon
23794
23795 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23796
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'.
23805
23806 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23807
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'.
23814
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.
23820
23821 * Makefile.in: Remove duplicated 2008 in Copyright line.
23822
23823 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23824
23825 * util/misc.c (grub_util_warn): New function. Emits a warning
23826 unconditionally.
23827 * include/grub/util/misc.h (grub_util_warn): New declaration.
23828
23829 * util/i386/pc/grub-install.in: Understand --force and pass it down
23830 to grub-setup.
23831
23832 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
23833 down to setup().
23834 (setup): Improve error messages and add warnings when requested to
23835 install in odd layouts. Refuse to install using blocklists unless
23836 --force was set.
23837
23838 2009-05-04 martin f. krafft <madduck@madduck.net>
23839
23840 * disk/raid.c (grub_raid_scan_device): Improve debug message.
23841
23842 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23843
23844 Updated copyright year
23845
23846 * fs/hfsplus.c: updated copyright year
23847
23848 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23849
23850 HFS+ UUID
23851
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
23856
23857 2009-05-03 Pavel Roskin <proski@gnu.org>
23858
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.
23909
23910 2009-05-03 David S. Miller <davem@davemloft.net>
23911
23912 * normal/menu.c: Include grub/parser.h
23913
23914 2009-05-03 Pavel Roskin <proski@gnu.org>
23915
23916 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
23917 not char*.
23918 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
23919 Suggested by Javier Martín <lordhabbit@gmail.com>
23920
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
23924 copying.
23925
23926 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
23927
23928 FreeBSD 64-bit support
23929
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
23944 of "attrib" member
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
23961
23962 2009-05-03 Bean <bean123ch@gmail.com>
23963
23964 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
23965 after we get the result of if statement.
23966
23967 2009-05-03 Bean <bean123ch@gmail.com>
23968
23969 * Makefile.in (enable_efiemu): New variable.
23970
23971 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
23972 set.
23973 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
23974 path.
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.
23979
23980 * configure.ac (--enable-efiemu): New option.
23981
23982 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23983
23984 xnu support
23985
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):
23995 new declaration
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
24016
24017 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24018
24019 Efiemu
24020
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
24028 files to copy
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
24057
24058 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 ACPI spoofing
24061
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
24072
24073 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24074
24075 Missing part from mmap patch
24076
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
24080
24081 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24082
24083 Mmap services
24084
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
24127 grub_upper_mem
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
24135
24136 2009-05-02 Bean <bean123ch@gmail.com>
24137
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.
24147
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.
24164
24165 * include/grub/command.h (grub_command_execute): New inline function.
24166
24167 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24168
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
24174 parameter script.
24175 (read_command_list): New function declaration.
24176 (read_fs_list): Likewise.
24177
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.
24188
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.
24195
24196 * include/grub/rescue.h: Removed.
24197 * normal/command.h: Likewise.
24198
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.
24211
24212 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24213 <grub/reader.h>.
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
24219 script parameter.
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
24231 rescue command.
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.
24243
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.
24247
24248 * normal/menu_text.c: Remove <grub/script.h>.
24249
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.
24254
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.
24261
24262 * kern/parser.c (grub_parser_split_cmdline): Change type of
24263 getline parameter.
24264 (grub_parser_class): New variable.
24265 (grub_parser_execute): New function.
24266
24267 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24268 * loader/multiboot2.c: Likewise.
24269 * loader/sparc64/ieee1275/linux.c: Likewise.
24270
24271 * util/grub-emu.c (read_command_list): New dummy function.
24272
24273 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24274
24275 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24276 count to 16 for CCISS and IDA.
24277
24278 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24279
24280 * normal/menu_text.c (grub_wait_after_message): Print a newline
24281 after waiting for user input.
24282
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).
24287
24288 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24289
24290 Added missing lst to grub-mkrescue
24291
24292 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
24293 and ${input_dir}/parttool.lst
24294
24295 2009-04-30 David S. Miller <davem@davemloft.net>
24296
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.
24300
24301 * util/hostdisk.c (convert_system_partition_to_system_disk):
24302 Handle virtual disk devices named /dev/vdiskX as found on sparc
24303 and powerpc.
24304
24305 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
24306 lettered partition specifier is found, convert to numbered.
24307
24308 2009-04-29 David S. Miller <davem@davemloft.net>
24309
24310 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
24311 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24312
24313 * normal/command.c: Add missing newline at end of file.
24314
24315 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
24316 warnings.
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 *".
24321
24322 2009-04-28 Pavel Roskin <proski@gnu.org>
24323
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
24327 grub_disk_close().
24328
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
24331 on close.
24332
24333 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24334
24335 Preboot hooks support
24336
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
24346
24347 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24348
24349 Warning fix
24350
24351 * disk/scsi.c (grub_scsi_open): added missing cast when
24352 calling grub_dprintf
24353
24354 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
24355
24356 Bug and warning fixes
24357
24358 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
24359 declaration
24360 * commands/test.c (test_parse): fixed bug with file tests and corrected
24361 declaration of find_file
24362
24363 2009-04-26 Pavel Roskin <proski@gnu.org>
24364
24365 * Makefile.in: Don't install empty manual pages if help2man is
24366 missing. Use help2man option for output, not shell redirection.
24367
24368 2009-04-26 David S. Miller <davem@davemloft.net>
24369
24370 * util/grub-mkdevicemap.c (make_device_map): Add missing
24371 NESTED_FUNC_ATTR to process_device().
24372
24373 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24374
24375 Test command
24376
24377 * commands/test.c: rewritten to use bash-like test
24378
24379 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24380
24381 Parttool autoloading and improvements
24382
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
24393 autoload modules
24394 (GRUB_MOD_INIT(parttool)): use helpmsg
24395
24396 2009-04-24 David S. Miller <davem@davemloft.net>
24397
24398 Avoiding opening same device multiple times in device iterator.
24399
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().
24403
24404 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
24405 on disk->data.
24406
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
24414 'grub_err_t'.
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.
24418
24419 2009-04-23 David S. Miller <davem@davemloft.net>
24420
24421 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
24422
24423 2009-04-22 David S. Miller <davem@davemloft.net>
24424
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.
24427
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.
24434
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.
24459
24460 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24461
24462 Correct GPT definition
24463
24464 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24465 of "attrib" member
24466
24467 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
24468
24469 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
24470
24471 2009-04-19 David S. Miller <davem@davemloft.net>
24472
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().
24481
24482 2009-04-17 Pavel Roskin <proski@gnu.org>
24483
24484 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
24485 format.
24486 (grub_ohci_transfer): Likewise.
24487
24488 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
24489
24490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
24491 return without a value. Fix inconsistent indentation.
24492
24493 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
24494 match struct grub_fs.
24495
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.
24500
24501 2009-04-16 Bean <bean123ch@gmail.com>
24502
24503 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
24504 value.
24505
24506 2009-04-15 Pavel Roskin <proski@gnu.org>
24507
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
24511 definitions.
24512
24513 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24514
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
24517 metadata header'.
24518
24519 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24520
24521 Move loader out of the kernel
24522
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
24548
24549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24550
24551 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
24552
24553 * kern/misc.c (grub_itoa): Removed function
24554 (grub_ltoa): likewise
24555 (grub_vsprintf): use grub_lltoa
24556
24557 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24558
24559 Restore grub-emu
24560
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
24565
24566 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24567
24568 * INSTALL: Add that `./autogen.sh' needs to be run before
24569 `./configure.'.
24570
24571 2009-04-14 Bean <bean123ch@gmail.com>
24572
24573 * Makefile.in (pkglib_DATA): Add handler.lst.
24574 (handler.lst): New rule.
24575
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.
24583
24584 * genhandlerlist.sh: New file.
24585
24586 * genmk.rb: Add rules to generate handler.lst.
24587
24588 * include/grub/normal.h (grub_file_getline): New function definition.
24589 (read_handler_list): Likewise.
24590 (free_handler_list): Likewise.
24591
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.
24595
24596 * normal/handler.c: New file.
24597
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.
24604
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.
24616
24617 2009-04-14 Bean <bean123ch@gmail.com>
24618
24619 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
24620 properly with null character.
24621
24622 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24623
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.
24637
24638 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
24639 develop on GRUB.
24640
24641 2009-04-14 John Stanley <jpsinthemix@verizon.net>
24642 David S. Miller <davem@davemloft.net>
24643
24644 * util/hostdisk.c (make_device_name): Fix buffer length
24645 calculations.
24646
24647 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24648
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.
24654
24655 2009-04-13 Pavel Roskin <proski@gnu.org>
24656
24657 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
24658 Reported by John Stanley <jpsinthemix@verizon.net>
24659
24660 2009-04-13 Robert Millan <rmh@aybabtu.com>
24661
24662 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
24663 that name for menuentries when appropriate.
24664
24665 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24666
24667 * util/grub.d/10_freebsd.in: Add a missing `fi'.
24668
24669 2009-04-13 Robert Millan <rmh@aybabtu.com>
24670
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.
24673
24674 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24675
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.
24679
24680 2009-04-13 Pavel Roskin <proski@gnu.org>
24681
24682 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
24683
24684 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24685
24686 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
24687 partition number.
24688 (grub_drive): Likewise.
24689
24690 2009-04-13 David S. Miller <davem@davemloft.net>
24691
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.
24699
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.
24704
24705 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
24706 (grub_fstest_SOURCES): Likewise.
24707
24708 * util/hostdisk.c (make_device_name): Do not make any assumptions
24709 about the length of drive names.
24710
24711 * kern/dl.c (grub_dl_load_file): Close file immediately when
24712 we are done using it.
24713
24714 2009-04-12 David S. Miller <davem@davemloft.net>
24715
24716 * kern/misc.c (grub_ltoa): Fix cast when handling negative
24717 values. Noticed by Pavel Roskin.
24718
24719 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
24720 target compiler.
24721
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.
24726
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.
24733
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.
24742
24743 2009-04-12 Pavel Roskin <proski@gnu.org>
24744
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.
24748
24749 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
24750
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.
24760
24761 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
24762 is a character device instead of a block device.
24763
24764 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
24765 is a character device instead of a block device.
24766
24767 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
24768
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.
24778
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.
24782
24783 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
24784 a character device instead of a block device.
24785
24786 * include/grub/util/getroot.h (grub_util_check_char_device): New
24787 prototype.
24788
24789 2009-04-11 David S. Miller <davem@davemloft.net>
24790
24791 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
24792 static libgcc.
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.
24797
24798 * include/grub/sparc64/ieee1275/boot.h: New file.
24799 * boot/sparc64/ieee1275/boot.S: Likewise.
24800 * boot/sparc64/ieee1275/diskboot.S: Likewise.
24801
24802 * kern/misc.c (grub_ltoa): New function.
24803 (grub_vsprintf): Use it to format 'long' integers.
24804
24805 2009-04-10 David S. Miller <davem@davemloft.net>
24806
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.
24825
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.
24829
24830 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24831
24832 UFS improvements
24833
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
24838 symlink is inline
24839 (grub_ufs_find_file): support for non-BSD dirents
24840 (grub_ufs_dir): support for non-BSD dirents
24841
24842 2009-04-10 Bean <bean123ch@gnail.com>
24843
24844 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
24845 attribute, otherwise the size would be wrong for i386 platform.
24846
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.
24852
24853 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
24854
24855 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
24856 (find_framebuf): Scan pci to locate the frame buffer address.
24857
24858 * commands/efi/fixvideo.c: New file.
24859
24860 * commands/efi/loadbios.c: Likewise.
24861
24862 * commands/memrw.c: Likewise.
24863
24864 * util/grub-dumpbios.in: Likewise.
24865
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.
24871
24872 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
24873 fixvideo.mod.
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.
24880
24881 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
24882 fixvideo.mod.
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.
24889
24890 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
24891
24892 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
24893
24894 2009-04-07 David S. Miller <davem@davemloft.net>
24895
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.
24900
24901 2009-04-06 Pavel Roskin <proski@gnu.org>
24902
24903 * include/grub/misc.h (ARRAY_SIZE): New macro.
24904 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
24905 New macro.
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".
24912
24913 * commands/help.c (print_command_help): Use cmd->prio, not
24914 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
24915
24916 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24917
24918 Parttool
24919
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
24937
24938 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24939
24940 Support for mtime and further expandability of dir command
24941
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
24946 struct grub_fs
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
24959 all users updated
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
24993
24994 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24995
24996 Trim trailing spaces in FAT label and support mtools-like labels
24997
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
25002
25003 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25004
25005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25006 and command.h
25007 remove extraneous kernel_elf_HEADERS
25008
25009 2009-04-04 Bean <bean123ch@gnail.com>
25010
25011 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25012
25013 * util/misc.c: Likewise.
25014
25015 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25016
25017 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25018 instead of grub_printf.
25019
25020 2009-04-03 Robert Millan <rmh@aybabtu.com>
25021
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
25025 values.
25026
25027 2009-04-01 Pavel Roskin <proski@gnu.org>
25028
25029 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25030 unused now.
25031 * genmk.rb: Likewise.
25032 * configure.ac: Likewise.
25033
25034 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25035
25036 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25037 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25038
25039 2009-04-01 David S. Miller <davem@davemloft.net>
25040
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.
25047
25048 2009-04-01 Robert Millan <rmh@aybabtu.com>
25049
25050 Reapply fix from 2008-07-28 which was accidentally reverted; also
25051 perform the same fix to a similar check in same function.
25052
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.
25056
25057 2009-03-31 Pavel Roskin <proski@gnu.org>
25058
25059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25060 for cross-compilation.
25061
25062 2009-03-30 Robert Millan <rmh@aybabtu.com>
25063
25064 Fix i386-ieee1275 build.
25065
25066 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25067 Remove declaration.
25068
25069 2009-03-30 Pavel Roskin <proski@gnu.org>
25070
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.
25075
25076 2009-03-30 Robert Millan <rmh@aybabtu.com>
25077
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.
25081
25082 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 Leak fixes
25085
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
25089
25090 2009-03-29 Robert Millan <rmh@aybabtu.com>
25091
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.
25095
25096 2009-03-29 Robert Millan <rmh@aybabtu.com>
25097
25098 * util/grub.d/10_linux.in (linux_entry): New function.
25099 Factorize generation of Linux boot entries.
25100
25101 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25102
25103 Make the format of Environment Block plain text. The boot loader
25104 part is not tested well yet.
25105
25106 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25107 (buffer): Removed.
25108 (envblk): Likewise.
25109 (usage): Remove "info" and "clear". Add "unset". Update the
25110 description of "set", as this does not delete variables any
25111 longer.
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.
25123
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.
25135
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.
25149
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.
25160
25161 2009-03-28 Robert Millan <rmh@aybabtu.com>
25162
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
25167 loader.
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.
25172
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.
25178
25179 2009-03-24 Pavel Roskin <proski@gnu.org>
25180
25181 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25182 not just for compilation.
25183
25184 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25185
25186 Move multiboot helper out of kernel
25187
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
25192
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
25199
25200 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25201
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
25205 file.
25206 All callers updated.
25207
25208 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25209
25210 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25211
25212 * kern/env.c (grub_env_context_close): Fix memory leaks.
25213
25214 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25215
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.
25222
25223 * include/grub/normal.h (grub_normal_execute): Updated the
25224 prototype.
25225
25226 2009-03-22 Pavel Roskin <proski@gno.org>
25227
25228 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25229 _start.
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.
25235
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.
25239
25240 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25241
25242 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25243
25244 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25245 limit detection.
25246 Use vaddr of correct segment for entry_point.
25247
25248 2009-03-21 Bean <bean123ch@gmail.com>
25249
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.
25301
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.
25307
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
25314 it.
25315
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.
25324
25325 * gencmdlist.sh: Scan new registration command grub_register_extcmd
25326 and grub_register_command_p1.
25327
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.
25340
25341 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
25342 kern/corecmd.c.
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
25346 and lib/arg.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.
25356
25357 * include/grub/arg.h: Move from here ...
25358 * include/grub/lib/arg.h: ... to here.
25359
25360 * normal/arg.c: Move from here ...
25361 * lib/arg.c: ... to here.
25362
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.
25369
25370 * kern/list.c (grub_list_iterate): Return int instead of void.
25371 (grub_list_insert): New function.
25372 (grub_prio_list_insert): Likewise.
25373
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.
25396
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.
25409
25410 * normal/completion.c (iterate_command): Use cmd->prio to check for
25411 active command.
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.
25415
25416 * normal/execute.c (grub_script_execute_cmd): No need to parse
25417 argument here.
25418
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.
25423
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.
25435
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.
25451
25452 * include/grub/rescue.h (grub_rescue_register_command): Removed.
25453 (grub_rescue_unregister_command): Likewise.
25454
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.
25458
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.
25463
25464 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
25465
25466 2009-03-21 Bean <bean123ch@gmail.com>
25467
25468 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
25469 instead of stat in mingw environment.
25470
25471 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
25472
25473 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
25474
25475 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
25476 AC_CONFIG_LINKS.
25477
25478 2009-03-21 Bean <bean123ch@gmail.com>
25479
25480 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
25481 out of range error.
25482
25483 2009-03-18 Michel Dänzer <michel@daenzer.net>
25484
25485 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
25486 checking inode flags for EXT4_EXTENTS_FLAG.
25487
25488 2009-03-18 Robert Millan <rmh@aybabtu.com>
25489
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
25497 unconditionally.
25498
25499 2009-03-14 Robert Millan <rmh@aybabtu.com>
25500
25501 Fix build on powerpc.
25502 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
25503
25504 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
25505
25506 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25507 background image command.
25508
25509 2009-03-12 Colin D Bennett <colin@gibibit.com>
25510
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.
25514
25515 2009-03-11 Pavel Roskin <proski@gnu.org>
25516
25517 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25518 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25519
25520 2009-03-11 Robert Millan <rmh@aybabtu.com>
25521
25522 * loader/i386/multiboot_elfxx.c
25523 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25524
25525 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25526
25527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25528 `kern/handler.c'.
25529
25530 2009-03-11 Robert Millan <rmh@aybabtu.com>
25531
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.
25537
25538 * loader/i386/multiboot_elfxx.c
25539 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
25540
25541 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
25542
25543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
25544 `fs/ext2.c'.
25545
25546 2009-03-08 Robert Millan <rmh@aybabtu.com>
25547
25548 Make loader/i386/linux.c usable on i386-pc again.
25549
25550 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
25551 memory to heap.
25552 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
25553 `#error' stanza.
25554
25555 2009-03-07 Bean <bean123ch@gmail.com>
25556
25557 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
25558 allocation.
25559
25560 2009-03-06 Robert Millan <rmh@aybabtu.com>
25561
25562 Fix display issue on terminals with screen size other than 80x25
25563 (e.g. gfxterm with resolution higher than 640x480).
25564
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.
25568
25569 2009-03-04 Robert Millan <rmh@aybabtu.com>
25570
25571 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
25572 installed.
25573
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'.
25578
25579 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25580
25581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
25582 `kern/handler.c'.
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.
25589
25590 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25591
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
25594 invalid magic.
25595
25596 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25597
25598 * util/misc.c: Include <time.h>.
25599 (grub_millisleep): New function.
25600
25601 2009-03-04 Bean <bean123ch@gmail.com>
25602
25603 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
25604 another option -mno-red-zone.
25605
25606 * commands/handler.c: Change module description.
25607
25608 * kern/handler.c: Add missing space at the end of description line.
25609
25610 * kern/list.c: Likewise.
25611
25612 2009-03-03 Robert Millan <rmh@aybabtu.com>
25613
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).
25617
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
25621 relocation area.
25622
25623 2009-03-01 Bean <bean123ch@gmail.com>
25624
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.
25629
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.
25637
25638 2009-03-01 Bean <bean123ch@gmail.com>
25639
25640 * commands/terminal.c: Removed.
25641
25642 * commands/handler.c: New file.
25643
25644 * include/grub/list.h: Likewise.
25645
25646 * include/grub/handler.h: Likewise.
25647
25648 * kern/list.c: Likewise.
25649
25650 * kern/handler.c: Likewise.
25651
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.
25667
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.
25684
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.
25690
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.
25695
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.
25700
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.
25705
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.
25710
25711 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
25712 handler.c.
25713 (kernel_img_SOURCES): Add list.c and handler.c.
25714 (kernel_img_HEADERS): Add list.h and handler.h.
25715
25716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25717 handler.c.
25718 (kernel_mod_SOURCES): Add list.c and handler.c.
25719 (kernel_mod_HEADERS): Add list.h and handler.h.
25720
25721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
25722 handler.c.
25723 (kernel_elf_SOURCES): Add list.c and handler.c.
25724 (kernel_elf_HEADERS): Add list.h and handler.h.
25725
25726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25727 handler.c.
25728 (kernel_elf_SOURCES): Add list.c and handler.c.
25729 (kernel_elf_HEADERS): Add list.h and handler.h.
25730
25731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25732 handler.c.
25733 (kernel_mod_SOURCES): Add list.c and handler.c.
25734 (kernel_mod_HEADERS): Add list.h and handler.h.
25735
25736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25737 handler.c.
25738 (kernel_elf_SOURCES): Add list.c and handler.c.
25739 (kernel_elf_HEADERS): Add list.h and handler.h.
25740
25741 2009-02-27 Robert Millan <rmh@aybabtu.com>
25742
25743 Factorize elf32 / elf64 code in Multiboot loader. This will
25744 prevent it from getting out of sync again.
25745
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).
25751
25752 2009-02-27 Robert Millan <rmh@aybabtu.com>
25753
25754 * util/grub.d/10_linux.in: Rename "single-user mode" to
25755 "recovery mode".
25756
25757 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
25758
25759 Don't leak in SCSI code.
25760 * disk/scsi.c (grub_scsi_close): free `scsi'.
25761
25762 2009-02-27 Robert Millan <rmh@aybabtu.com>
25763
25764 * loader/i386/pc/multiboot.c: Move from here ...
25765 * loader/i386/multiboot.c: ... to here. Update all users.
25766
25767 2009-02-27 Robert Millan <rmh@aybabtu.com>
25768
25769 Patch from Alexandre Bique <bique.alexandre@gmail.com>
25770 * util/i386/pc/grub-setup.c (setup): Fix directory path.
25771
25772 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
25773
25774 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
25775 b-tree.
25776
25777 2009-02-27 Robert Millan <rmh@aybabtu.com>
25778
25779 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
25780 `0x' qualifier as 0 when base is specified as parameter).
25781
25782 2009-02-24 Bean <bean123ch@gmail.com>
25783
25784 * configure.ac: Check for -mcmodel=large in x86_64 target.
25785
25786 * include/grub/efi/api.h (efi_call_10): New macro.
25787 (efi_wrap_10): New function.
25788
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.
25800
25801 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
25802 issue.
25803
25804 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
25805 (efi_wrap_10): New function.
25806
25807 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
25808
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.
25812
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
25824 line length.
25825
25826 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
25827 problem for x86_64.
25828
25829 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
25830
25831 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
25832
25833 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
25834 coding tool name.
25835
25836 2009-02-22 Robert Millan <rmh@aybabtu.com>
25837
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.
25842
25843 2009-02-21 Robert Millan <rmh@aybabtu.com>
25844
25845 Implement USB keyboard support (based on patch by Marco Gerards)
25846
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.
25850
25851 * term/usb_keyboard.c: New file.
25852
25853 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25854
25855 Corrected wrong declaration
25856
25857 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
25858
25859 2009-02-14 Christian Franke <franke@computer.org>
25860
25861 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
25862 (grub_lspci_iter): Print class code and programming interface byte.
25863
25864 2009-02-14 Christian Franke <franke@computer.org>
25865
25866 * gendistlist.sh: Ignore `.svn' directories.
25867
25868 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
25869
25870 * fs/fat.c: Add 2009 to Copyright line.
25871
25872 2009-02-14 Christian Franke <franke@computer.org>
25873
25874 * commands/hdparm.c: New file. Provides `hdparm' command
25875 which sends ATA commands via grub_disk_ata_pass_through ().
25876
25877 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
25878
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.
25897
25898 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
25899 function for hdparm.mod.
25900
25901 * include/grub/ata.h: New file, contains declarations from
25902 disk/ata.c.
25903 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
25904
25905 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
25906 (grub_disk_ata_pass_through): New exported variable.
25907
25908 * kern/disk.c (grub_disk_ata_pass_through): New variable.
25909
25910 2009-02-13 Colin D Bennett <colin@gibibit.com>
25911
25912 Support multiple fallback entries, and provide an API to support
25913 executing default+fallback menu entries. Renamed the `terminal' menu
25914 viewer to `text'.
25915
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.
25924
25925 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
25926
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.
25949
25950 * normal/menu_text.c: New file. Extracted text-menu-specific code
25951 from normal/menu.c.
25952
25953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
25954 (normal_mod_SOURCES): Likewise.
25955
25956 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25957 (normal_mod_SOURCES): Likewise.
25958
25959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25960 (normal_mod_SOURCES): Likewise.
25961
25962 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
25963 (normal_mod_SOURCES): Likewise.
25964
25965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25966 (normal_mod_SOURCES): Likewise.
25967
25968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25969 (normal_mod_SOURCES): Likewise.
25970
25971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25972 (normal_mod_SOURCES): Likewise.
25973
25974 2009-02-11 Robert Millan <rmh@aybabtu.com>
25975
25976 * util/grub.d/00_header.in: Update old reference to `font' command.
25977
25978 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
25979
25980 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
25981
25982 Based on patch from Javier Martín.
25983
25984 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25985
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.
25995
25996 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
25997
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.
26001
26002 2009-02-08 Robert Millan <rmh@aybabtu.com>
26003
26004 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26005
26006 2009-02-08 Robert Millan <rmh@aybabtu.com>
26007
26008 * Makefile.in (host_os, host_cpu): New variables.
26009 (target_os): Remove. Update all users.
26010
26011 2009-02-08 Marco Gerards <marco@gnu.org>
26012
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
26025 variables.
26026
26027 * disk/usbms.c: New file.
26028
26029 * include/grub/usb.h: Likewise.
26030
26031 * include/grub/usbtrans.h: Likewise.
26032
26033 * include/grub/usbdesc.h: Likewise.
26034
26035 * bus/usb/usbtrans.c: Likewise.
26036
26037 * bus/usb/ohci.c: Likewise.
26038
26039 * bus/usb/uhci.c: Likewise.
26040
26041 * bus/usb/usbhub.c: Likewise.
26042
26043 * bus/usb/usb.c: Likewise.
26044
26045 * commands/usbtest.c: Likewise.
26046
26047 * util/usb.c: Likewise.
26048
26049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26050
26051 * configure.ac: Test for libusb presence.
26052
26053 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26054
26055 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26056
26057 * kern/mm.c: Add more comments.
26058
26059 2009-02-08 Robert Millan <rmh@aybabtu.com>
26060
26061 Patch from Javier Martín.
26062 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26063 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26064
26065 2009-02-08 Robert Millan <rmh@aybabtu.com>
26066
26067 * fs/cpio.c: Split tar functionality to ...
26068 * fs/tar.c: ... here (new file). Update all users.
26069
26070 2009-02-07 Robert Millan <rmh@aybabtu.com>
26071
26072 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26073 backward-incompatible features.
26074
26075 Based on patch from Javier Martín, with some adjustments.
26076
26077 2009-02-07 Michael Scherer <misc@mandriva.org>
26078
26079 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26080
26081 2009-02-07 Robert Millan <rmh@aybabtu.com>
26082
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.
26086
26087 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26088
26089 Fixes problem when running vbetest command as reported by
26090 Vladimir Serbinenko <phcoder@gmail.com>.
26091
26092 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26093
26094 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26095
26096 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26097 /dev/md/NpN style mdraid devices.
26098
26099 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26100
26101 * util/unifont2pff.rb: Remove.
26102
26103 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26104
26105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26106 `#'.
26107
26108 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26109
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.
26117
26118 2009-02-02 Christian Franke <franke@computer.org>
26119
26120 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26121
26122 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26123
26124 * INSTALL: Note that we now require at least autoconf 2.59 and
26125 that LZO is optional.
26126
26127 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26128
26129 Base on patch on bug #24154 created by Tomas Tintera
26130 <trosos@seznam.cz>.
26131
26132 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26133
26134 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26135
26136 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26137 <bero@arklinux.org>.
26138
26139 * normal/parser.y (script_init): Add missing semicolon.
26140
26141 2009-01-31 Colin D Bennett <colin@gibibit.com>
26142
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.
26148
26149 * normal/menu_viewer.c: New file.
26150
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.
26157
26158 * include/grub/menu.h: New file.
26159
26160 * include/grub/menu_viewer.h: New file.
26161
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.
26170
26171 * DISTLIST: Added include/grub/menu.h.
26172 Added include/grub/menu_viewer.h.
26173 Added normal/menu_viewer.c.
26174
26175 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26176
26177 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26178 arglist for menutitle arguments.
26179
26180 * normal/main.c (grub_normal_menu_addentry): Likewise.
26181
26182 * normal/parser.y (menuentry): Likewise.
26183
26184 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26185
26186 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26187 (grub_script_create_cmdmenu): Likewise.
26188
26189 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26190
26191 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26192 changes.
26193
26194 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26195
26196 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26197
26198 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26199
26200 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26201
26202 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26203
26204 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26205
26206 2009-01-30 Christian Franke <franke@computer.org>
26207
26208 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26209 in option help text.
26210
26211 2009-01-27 Pavel Roskin <proski@gnu.org>
26212
26213 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26214
26215 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26216
26217 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26218
26219 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26220
26221 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26222 unregister function.
26223
26224 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26225
26226 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26227
26228 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26229
26230 * util/grub-mkfont.c (usage): Fix typo.
26231
26232 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26233
26234 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26235
26236 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26237
26238 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26239
26240 * kern/misc.c (grub_strcasecmp): New function.
26241 (grub_strcasecmp): Use grub_size_t instead of int for length.
26242 Fix return value.
26243 * include/grub/misc.h: Update function prototypes.
26244
26245 2009-01-26 Robert Millan <rmh@aybabtu.com>
26246
26247 * configure.ac: Fix cross-compilation check.
26248
26249 2009-01-22 Christian Franke <franke@computer.org>
26250
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 ().
26255
26256 2009-01-22 Christian Franke <franke@computer.org>
26257
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 ().
26283
26284 2009-01-19 Christian Franke <franke@computer.org>
26285
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
26296 assertion.
26297 (grub_atapi_write): Remove old implementation, return not
26298 implemented instead.
26299
26300 2009-01-19 Christian Franke <franke@computer.org>
26301
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.
26309
26310 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
26311
26312 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
26313
26314 * term/gfxterm.c (write_char): Fix background rendering for wide
26315 width glyphs.
26316
26317 2009-01-19 Robert Millan <rmh@aybabtu.com>
26318
26319 * config.guess: Update to latest version from config git.
26320 * config.sub: Likewise.
26321
26322 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
26323
26324 * Makefile.in: Change font compilation to use new grub-mkfont instead
26325 of java version.
26326
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.
26336
26337 2009-01-16 Christian Franke <franke@computer.org>
26338
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
26356 properly.
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 ().
26365
26366 2009-01-13 Carles Pina i Estany <carles@pina.cat>
26367
26368 * util/grub-editenv.c (main): Use fseeko(), not fseek().
26369
26370 2009-01-13 Bean <bean123ch@gmail.com>
26371
26372 * util/grub-mkfont.c (write_font): forget to remove some debug code.
26373
26374 2009-01-13 Bean <bean123ch@gmail.com>
26375
26376 * Makefile.in: (enable_grub_mkfont): New variable.
26377 (freetype_cflags): Likewise.
26378 (freetype_libs): Likewise.
26379
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.
26384
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.
26390
26391 * util/grub-mkfont.c: New file.
26392
26393 2009-01-12 Christian Franke <franke@computer.org>
26394
26395 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
26396 mode check. Fix setting of compat_use[].
26397
26398 2009-01-10 Robert Millan <rmh@aybabtu.com>
26399
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)
26402
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.
26452
26453 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
26454
26455 * commands/videotest.c: Removed include to grub/machine/memory.h.
26456
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.
26480
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.
26504
26505 * term/gfxterm.c: Removed include to grub/machine/memory.h,
26506 grub/machine/console.h.
26507
26508 2009-01-04 Jerone Young <jerone@gmail.com>
26509
26510 Make on screen instructions clearer
26511
26512 Based on patch created by Jidanni <jidanni@jidanni.org>
26513
26514 * normal/menu.c: print clearer instructions on the screen
26515
26516 2009-01-02 Colin D Bennett <colin@gibibit.com>
26517
26518 New font engine.
26519
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.
26522
26523 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26524
26525 * configure: Re-generated.
26526
26527 * DISTLIST: Removed font/manager.c.
26528 Added font/font.c.
26529 Added font/font_cmd.c.
26530
26531 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26532 compilation.
26533
26534 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
26535
26536 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
26537
26538 * kern/term.c: Changed users of grub_utf8_to_ucs4.
26539
26540 * normal/menu.c: Likewise.
26541
26542 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
26543 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
26544
26545 * include/grub/font.h: Replaced with new file.
26546
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.
26556
26557 * font/manager.c: Removed file.
26558
26559 * font/font.c: New file.
26560
26561 * font/font_cmd.c: Likewise.
26562
26563 * video/video.c (grub_video_blit_glyph): Removed.
26564
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.
26570
26571 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
26572 (get_pixel): Likewise.
26573 (set_pixel): Likewise.
26574
26575 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
26576
26577 * term/gfxterm.c: Adapted to new font engine.
26578
26579 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
26580
26581 * term/i386/pc/vga.c: Likewise.
26582
26583 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
26584
26585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26586
26587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26588
26589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26590
26591 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26592
26593 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26594
26595 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26596
26597 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26598
26599 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26600
26601 * util/grub.d/00_header.in: Changed to use new loadfont command.
26602
26603 * util/grub-mkconfig_lib.in: Changed font extension.
26604
26605 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
26606
26607 * util/getroot.c (grub_util_get_grub_dev): Add support for
26608 /dev/md/dNNpNN style partitionable mdraid devices.
26609
26610 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
26611
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.
26615
26616 2008-11-29 Robert Millan <rmh@aybabtu.com>
26617
26618 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
26619 grub_ata_device_initialize() calls.
26620
26621 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
26622
26623 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
26624 iteration failed.
26625 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
26626
26627 2008-11-28 Robert Millan <rmh@aybabtu.com>
26628
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.
26634
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.
26640
26641 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
26642
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'.
26647
26648 2008-11-22 Robert Millan <rmh@aybabtu.com>
26649
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().
26654
26655 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
26656 comments. Avoid copying one more byte than necessary (just in case).
26657
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
26662
26663 2008-11-20 Robert Millan <rmh@aybabtu.com>
26664
26665 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
26666 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
26667
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.
26673
26674 * loader/i386/linux.c (allocate_pages): Fix a warning.
26675 Move comment text to `#error' stanza.
26676
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
26687 with ...
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):
26693 Likewise.
26694
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
26699 variables.
26700 * conf/powerpc-ieee1275.rmk: Likewise.
26701 * conf/i386-coreboot.rmk: Likewise.
26702 * conf/i386-ieee1275.rmk: Likewise.
26703
26704 2008-11-19 Robert Millan <rmh@aybabtu.com>
26705
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.
26711
26712 2008-11-14 Robert Millan <rmh@aybabtu.com>
26713
26714 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
26715 order to cope with duplicate slashes.
26716
26717 2008-11-14 Robert Millan <rmh@aybabtu.com>
26718
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
26722 loader.
26723
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.
26730
26731 2008-11-14 Robert Millan <rmh@aybabtu.com>
26732
26733 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
26734 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
26735
26736 2008-11-12 Robert Millan <rmh@aybabtu.com>
26737
26738 Make loader/i386/linux.c buildable on i386-pc (although disabled).
26739
26740 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
26741 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
26742 from here ...
26743 * include/grub/i386/pc/memory.h: ... to here.
26744
26745 2008-11-12 Robert Millan <rmh@aybabtu.com>
26746
26747 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
26748 split).
26749
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).
26756
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>'.
26762
26763 2008-11-12 Robert Millan <rmh@aybabtu.com>
26764
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
26768 variables.
26769 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26770 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
26771
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().
26777
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.
26782
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.
26788
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).
26796
26797 2008-11-12 Robert Millan <rmh@aybabtu.com>
26798
26799 Use newly-added Multiboot support in coreboot.
26800
26801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26802 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
26803
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.
26808
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
26815 here (new file).
26816
26817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
26818 function prototype.
26819
26820 2008-11-12 Robert Millan <rmh@aybabtu.com>
26821
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.
26826
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.
26830
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).
26837
26838 2008-11-10 Robert Millan <rmh@aybabtu.com>
26839
26840 * util/grub.d/00_header.in: Add backward compatibility check for
26841 versions of terminal.mod that don't understand `terminal_input' or
26842 `terminal_output'.
26843
26844 2008-11-09 Robert Millan <rmh@aybabtu.com>
26845
26846 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
26847 `terminal_input' / `terminal_output', not `terminal'.
26848
26849 2008-11-08 Robert Millan <rmh@aybabtu.com>
26850
26851 * Makefile.in (include_DATA): Fix srcdir=. assumption.
26852 (DISTCLEANFILES): Add `build_env.mk'.
26853
26854 2008-11-08 Robert Millan <rmh@aybabtu.com>
26855
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'.
26863
26864 2008-11-08 Robert Millan <rmh@aybabtu.com>
26865
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).
26873
26874 2008-11-07 Pavel Roskin <proski@gnu.org>
26875
26876 * gendistlist.sh: Use C locale for sorting to ensure consistent
26877 output on all systems.
26878
26879 * util/grub.d/00_header.in: Remove incorrect space before
26880 "serial".
26881
26882 2008-11-07 Robert Millan <rmh@aybabtu.com>
26883
26884 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
26885 per specification.
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.
26892
26893 2008-11-07 Robert Millan <rmh@aybabtu.com>
26894
26895 Modularize at_keyboard.mod:
26896
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.
26900
26901 Actual terminal split:
26902
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.
26921
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.
26943
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).
26947
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.
26954
26955 Portability adjustments:
26956
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>'.
26968
26969 Migrate full terminals to new API:
26970
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.
26989
26990 Migrate input terminals to new API:
26991
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
26997 users.
26998 (grub_keyboard_controller_orig): New variable.
26999 (grub_console_getkey): Rename to ...
27000 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27001 users.
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
27007 functions.
27008
27009 Migrate output terminals to new API:
27010
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,
27019 etc).
27020
27021 Migrate `terminal' command and userland tools to new API:
27022
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).
27033
27034 2008-11-04 Robert Millan <rmh@aybabtu.com>
27035
27036 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27037 for FreeBSD.
27038 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27039
27040 2008-11-03 Bean <bean123ch@gmail.com>
27041
27042 * kern/elf.c (grub_elf32_load): Revert to previous code.
27043 (grub_elf64_load): Likewise.
27044
27045 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27046
27047 2008-11-01 Robert Millan <rmh@aybabtu.com>
27048
27049 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27050 (TARGET_CPPFLAGS): Likewise.
27051 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27052
27053 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27054
27055 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27056
27057 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27058
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.
27061
27062 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27063
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).
27067
27068 2008-10-29 Robert Millan <rmh@aybabtu.com>
27069
27070 * util/i386/pc/grub-install.in: Handle empty string as output from
27071 make_system_path_relative_to_its_root().
27072
27073 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27074
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.
27081
27082 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27083
27084 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27085
27086 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27087
27088 * util/update-grub_lib.in: Mention filename in warning message.
27089
27090 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27091
27092 * NEWS: Update for rename of update-grub to grub-mkconfig.
27093
27094 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27095
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.
27114
27115 2008-09-28 Robert Millan <rmh@aybabtu.com>
27116
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.
27121
27122 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27123
27124 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27125 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27126
27127 2008-09-28 Bean <bean123ch@gmail.com>
27128
27129 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27130 Thanks to Christian Franke for finding this bug.
27131
27132 2008-09-25 Robert Millan <rmh@aybabtu.com>
27133
27134 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27135 instances of grub_util_get_disk_name() (see previous commit).
27136
27137 2008-09-25 Robert Millan <rmh@aybabtu.com>
27138
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().
27153
27154 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27155
27156 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27157 warning.
27158 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27159
27160 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27161
27162 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27163 Changed to 0x5100.
27164 (GRUB_TERM_PPAGE): Changed to 0x4900.
27165
27166 2008-09-24 Robert Millan <rmh@aybabtu.com>
27167
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.
27172
27173 2008-09-22 Bean <bean123ch@gmail.com>
27174
27175 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27176 resident and in attribute list.
27177
27178 * include/grub/ntfs.h (BMP_LEN): Removed.
27179
27180 2008-09-22 Bean <bean123ch@gmail.com>
27181
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.
27184
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).
27188
27189 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27190
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.
27197
27198 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27199
27200 * autogen.sh: Add a call to `gendistlist.sh'.
27201
27202 2008-09-19 Christian Franke <franke@computer.org>
27203
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):
27209 New function.
27210
27211 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27212
27213 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27214 Sort the list.
27215
27216 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27217
27218 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27219 #include <grub/util/hostdisk.h>.
27220
27221 2008-09-08 Robert Millan <rmh@aybabtu.com>
27222
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.
27228
27229 2008-09-08 Robert Millan <rmh@aybabtu.com>
27230
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.
27234
27235 2008-09-08 Robert Millan <rmh@aybabtu.com>
27236
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.
27241
27242 2008-09-07 Robert Millan <rmh@aybabtu.com>
27243
27244 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27245 variables.
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.
27249
27250 2008-09-07 Robert Millan <rmh@aybabtu.com>
27251
27252 * conf/i386.rmk: New file. Provides declaration for building
27253 `cpuid.mod'.
27254 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27255 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27256 variables.
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.
27262
27263 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27264
27265 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27266 Adds optimization support for BGR based modes.
27267
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.
27292
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.
27300
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.
27307
27308 * video/video.c (grub_video_get_blit_format): Updated to use new
27309 blit formats. Added handling for 16 bit color modes.
27310
27311 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
27312 fillers.
27313 (common_blitter): Updated to use new blitters.
27314
27315 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
27316 Removed.
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.
27340
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.
27348
27349 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
27350 types.
27351
27352 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
27353 types.
27354
27355 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
27356 blitter types.
27357
27358 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
27359 types.
27360
27361 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27362
27363 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
27364 RAID level 1.
27365
27366 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27367
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.
27371
27372 2008-09-05 Bean <bean123ch@gmail.com>
27373
27374 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
27375
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.
27378
27379 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
27380
27381 * include/grub/types.h (LONG_MAX): Likewise.
27382
27383 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27384
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.
27388
27389 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27390
27391 * config.guess: Update to latest version from config git.
27392 * config.sub: Likewise.
27393
27394 2008-09-03 Robert Millan <rmh@aybabtu.com>
27395
27396 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
27397 `disk->total_sectors'.
27398
27399 2008-09-01 Colin D Bennett <colin@gibibit.com>
27400
27401 * include/grub/normal.h: Fixed incorrect comment for
27402 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
27403
27404 2008-09-01 Colin D Bennett <colin@gibibit.com>
27405
27406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
27407 values with defines.
27408
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.
27428
27429 2008-08-31 Robert Millan <rmh@aybabtu.com>
27430
27431 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
27432 declaration.
27433 (grub_multiboot): Fix a few warnings.
27434
27435 2008-08-31 Robert Millan <rmh@aybabtu.com>
27436
27437 * loader/i386/pc/multiboot.c: Update comment not to say that
27438 boot_device support is unimplemented.
27439
27440 2008-08-31 Robert Millan <rmh@aybabtu.com>
27441
27442 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
27443 or memory map support are unimplemented.
27444
27445 2008-08-31 Colin D Bennett <colin@gibibit.com>
27446
27447 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
27448
27449 2008-08-31 Colin D Bennett <colin@gibibit.com>
27450
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
27453 each video mode.
27454
27455 2008-08-30 Pavel Roskin <proski@gnu.org>
27456
27457 * util/genmoddep.c: Remove for real this time.
27458 * DISTLIST: Remove util/genmoddep.c.
27459
27460 2008-08-30 Robert Millan <rmh@aybabtu.com>
27461
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
27464 only by chance).
27465
27466 2008-08-29 Pavel Roskin <proski@gnu.org>
27467
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.
27472
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.
27479
27480 2008-08-29 Bean <bean123ch@gmail.com>
27481
27482 * configure.ac: Change host_os to cygwin for mingw.
27483 (asprintf): New check for function.
27484
27485 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
27486 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
27487
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.
27491
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.
27496
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.
27500
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.
27504
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.
27508 (sleep): Likewise.
27509 (grub_util_get_disk_size): Likewise.
27510
27511 2008-08-28 Pavel Roskin <proski@gnu.org>
27512
27513 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27514 kern/time.c.
27515
27516 2008-08-28 Robert Millan <rmh@aybabtu.com>
27517
27518 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27519
27520 2008-08-28 Robert Millan <rmh@aybabtu.com>
27521
27522 Change find_grub_drive() syntax so it doesn't prevent it from
27523 detecting NULL names as errors.
27524
27525 * util/biosdisk.c (find_grub_drive): Move free slot search code
27526 from here ...
27527 (find_free_slot): ... to here.
27528 (read_device_map): Use find_free_slot() to search for free slots.
27529
27530 2008-08-27 Marco Gerards <marco@gnu.org>
27531
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.
27536
27537 * disk/scsi.c: New file.
27538
27539 * include/grub/scsi.h: Likewise.
27540
27541 * include/grub/scsicmd.h: Likewise.
27542
27543 * disk/ata.c: Include <grub/scsi.h>.
27544 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
27545 instead.
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.
27560
27561 * include/grub/disk.h (enum grub_disk_dev_id): Add
27562 `GRUB_DISK_DEVICE_SCSI_ID'.
27563
27564 2008-08-26 Robert Millan <rmh@aybabtu.com>
27565
27566 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
27567 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
27568 descriptive.
27569
27570 2008-08-23 Bean <bean123ch@gmail.com>
27571
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
27576 dm_nv.mod.
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.
27589
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.
27593
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.
27596
27597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27598
27599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27600
27601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27602
27603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27604
27605 * disk/raid5_recover.c: New file.
27606
27607 * disk/raid6_recover.c: Likewise.
27608
27609 * disk/mdraid_linux.c: Likewise.
27610
27611 * disk/dmraid_nvidia.c: Likewise.
27612
27613 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
27614 ULONG_MAX.
27615
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.
27628
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.
27638
27639 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
27640 (CMD_CRC): New macro.
27641 (part): Removed.
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.
27649
27650 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
27651
27652 2008-08-23 Bean <bean123ch@gmail.com>
27653
27654 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
27655
27656 * genfslist.sh: Ignore kernel.mod.
27657
27658 * genpartmaplist.sh: Likewise.
27659
27660 2008-08-23 Robert Millan <rmh@aybabtu.com>
27661
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.
27664
27665 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
27666
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}.
27670
27671 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
27672
27673 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
27674
27675 2008-08-21 Robert Millan <rmh@aybabtu.com>
27676
27677 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
27678 loader.
27679 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
27680 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
27681
27682 2008-08-20 Carles Pina i Estany <carles@pina.cat>
27683
27684 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
27685 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
27686
27687 2008-08-19 Robert Millan <rmh@aybabtu.com>
27688
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'
27692 initialization.
27693 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
27694
27695 2008-08-18 Robert Millan <rmh@aybabtu.com>
27696
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.
27702
27703 2008-08-18 Robert Millan <rmh@aybabtu.com>
27704
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):
27710 New macros.
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.
27722
27723 2008-08-17 Robert Millan <rmh@aybabtu.com>
27724
27725 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
27726
27727 2008-08-17 Robert Millan <rmh@aybabtu.com>
27728
27729 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
27730
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
27735 structure.
27736 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
27737 macros.
27738
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.
27744
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
27750 to ...
27751 (grub_machine_mmap_iterate): ... this. Update all users.
27752
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.
27756
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.
27764
27765 2008-08-17 Carles Pina i Estany <carles@pina.cat>
27766
27767 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
27768
27769 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
27770
27771 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
27772 mdate-sh to the list `find' searches for.
27773 * DISTLIST: Regenerated.
27774
27775 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
27776
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.
27783
27784 2008-08-16 Robert Millan <rmh@aybabtu.com>
27785
27786 * disk/raid.c (grub_raid_init): Handle/report errors set by
27787 grub_device_iterate().
27788 * disk/lvm.c (grub_lvm_init): Likewise.
27789
27790 2008-08-15 Bean <bean123ch@gmail.com>
27791
27792 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27793 and datehook.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.
27803
27804 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27805 and datehook.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.
27815
27816 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27817 and datehook.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.
27827
27828 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27829 and datehook.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.
27839
27840 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27841 and datehook.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.
27851
27852 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
27853
27854 * commands/date.c: New file.
27855
27856 * hook/datehook.c: Likewise.
27857
27858 * include/grub/lib/datetime.h: Likewise.
27859
27860 * include/grub/i386/cmos.h: Likewise.
27861
27862 * lib/datetime.c: Likewise.
27863
27864 * lib/i386/datetime.c: Likewise.
27865
27866 * lib/efi/datetime.c: Likewise.
27867
27868 2008-08-14 Robert Millan <rmh@aybabtu.com>
27869
27870 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
27871 (grub_mkelfimage_SOURCES): New variable.
27872 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
27873
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.
27878
27879 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
27880 * kern/i386/coreboot/init.c: Likewise.
27881
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
27885 to ...
27886 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
27887 * kern/i386/coreboot/startup.S: Likewise.
27888
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.
27898
27899 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
27900 `grub-mkelfimage'.
27901 Use --directory when invoking grub_mkimage.
27902
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.
27907
27908 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
27909
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
27913 grub_printf.
27914 * kern/err.c (grub_print_error): Use grub_err_printf.
27915
27916 2008-08-13 Robert Millan <rmh@aybabtu.com>
27917
27918 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
27919
27920 2008-08-13 Robert Millan <rmh@aybabtu.com>
27921
27922 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
27923 boot entry.
27924
27925 2008-08-12 Robert Millan <rmh@aybabtu.com>
27926
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.
27939
27940 2008-08-12 Bean <bean123ch@gmail.com>
27941
27942 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
27943
27944 2008-08-11 Robert Millan <rmh@aybabtu.com>
27945
27946 * kern/i386/linuxbios/startup.S: Move from here ...
27947 * kern/i386/coreboot/startup.S: ... to here.
27948
27949 * kern/i386/linuxbios/init.c: Move from here ...
27950 * kern/i386/coreboot/init.c: ... to here.
27951
27952 * kern/i386/linuxbios/table.c: Move from here ...
27953 * kern/i386/coreboot/mmap.c: ... to here.
27954
27955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
27956
27957 2008-08-11 Robert Millan <rmh@aybabtu.com>
27958
27959 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
27960 errors. Leave it to the upper layer to handle them.
27961
27962 2008-08-09 Christian Franke <franke@computer.org>
27963
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'.
27970
27971 2008-08-08 Robert Millan <rmh@aybabtu.com>
27972
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.
27977
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().
27980
27981 * util/misc.c (grub_get_time_ms): New function.
27982
27983 2008-08-08 Marco Gerards <marco@gnu.org>
27984
27985 * disk/ata.c (grub_ata_regget): Change return type to
27986 `grub_uint8_t'.
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
27994 error handling.
27995 (grub_ata_pio_write): Add error handling.
27996 (grub_atapi_identify): Likewise.
27997 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
27998 handling.
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
28004 handling.
28005 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28006
28007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28008
28009 2008-08-08 Marco Gerards <marco@gnu.org>
28010
28011 * NEWS: Update.
28012
28013 2008-08-07 Bean <bean123ch@gmail.com>
28014
28015 * include/grub/x86_64/pci.h: New file.
28016
28017 2008-08-07 Christian Franke <franke@computer.org>
28018
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.
28023
28024 2008-08-07 Bean <bean123ch@gmail.com>
28025
28026 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28027 kern/i386/tsc.c and kern/i386/pit.c.
28028
28029 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28030 x86_64 platform.
28031
28032 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28033 <grub/i386/tsc.h>.
28034
28035 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28036
28037 2008-08-07 Bean <bean123ch@gmail.com>
28038
28039 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28040
28041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28042
28043 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28044 multiple inclusion. Add #include <grub/types.h>.
28045
28046 2008-08-06 Christian Franke <franke@computer.org>
28047
28048 * conf/common.rmk: Build and install `10_windows'.
28049 * util/grub.d/10_windows.in: New script.
28050
28051 2008-08-06 Pavel Roskin <proski@gnu.org>
28052
28053 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28054
28055 2008-08-06 Robert Millan <rmh@aybabtu.com>
28056
28057 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28058 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28059
28060 2008-08-06 Bean <bean123ch@gmail.com>
28061
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
28065 size setting.
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.
28068
28069 2008-08-06 Bean <bean123ch@gmail.com>
28070
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.
28080
28081 2008-08-06 Robert Millan <rmh@aybabtu.com>
28082
28083 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28084 `halt.mod'.
28085 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28086 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28087
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.
28092
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>'.
28097
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
28104 from here ...
28105 * include/grub/i386/at_keyboard.h: ... to here.
28106
28107 2008-08-05 Robert Millan <rmh@aybabtu.com>
28108
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'.
28114
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'.
28118
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().
28122
28123 * kern/i386/pit.c: New file.
28124 * include/grub/i386/pit.h: Likewise.
28125
28126 2008-08-05 Bean <bean123ch@gmail.com>
28127
28128 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28129
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.
28138
28139 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28140 (grub_pxe_call): Likewise.
28141
28142 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28143
28144 * commands/i386/pc/pxecmd.c: New file.
28145
28146 * fs/i386/pc/pxe.c: Likewise.
28147
28148 * include/grub/i386/pc/pxe.h: Likewise.
28149
28150 2008-08-05 Bean <bean123ch@gmail.com>
28151
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.
28165
28166 2008-08-05 Colin D Bennett <colin@gibibit.com>
28167
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.
28173
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'.
28177
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'.
28180
28181 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28182 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28183
28184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28185
28186 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28187 `kern/generic/millisleep.c'.
28188
28189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28190
28191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28192
28193 * kern/generic/rtc_get_time_ms.c: New file.
28194
28195 * kern/generic/millisleep.c: New file.
28196
28197 * kern/misc.c: Don't include
28198 <kern/time.h> anymore.
28199 (grub_millisleep_generic): Removed.
28200
28201 * commands/sleep.c (grub_interruptible_millisleep): Uses
28202 grub_get_time_ms() instead of grub_get_rtc().
28203
28204 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28205 function.
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.
28210
28211 * kern/i386/tsc.c (grub_get_time_ms): New file.
28212
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.
28218
28219 * kern/time.c (grub_get_time_ms): New function.
28220 (grub_install_get_time_ms): New function.
28221
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.
28226
28227 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28228 get_time_ms() implementation.
28229
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.
28233
28234 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28235 (grub_machine_init): Call grub_tsc_init().
28236 (grub_millisleep): Removed.
28237
28238 * kern/ieee1275/init.c (grub_millisleep): Removed.
28239 (grub_machine_init): Install ieee1275_get_time_ms()
28240 implementation.
28241 (ieee1275_get_time_ms): New function.
28242 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28243 real work.
28244
28245 2008-08-05 Marco Gerards <marco@gnu.org>
28246
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.
28251
28252 2008-08-04 Pavel Roskin <proski@gnu.org>
28253
28254 * kern/main.c: Include grub/mm.h.
28255
28256 2008-08-04 Robert Millan <rmh@aybabtu.com>
28257
28258 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28259 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28260 corruption problem).
28261
28262 2008-08-04 Robert Millan <rmh@aybabtu.com>
28263
28264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28265 warnings introduced in my last commit.
28266
28267 2008-08-03 Robert Millan <rmh@aybabtu.com>
28268
28269 Make PCI available on all i386 architectures.
28270
28271 * include/grub/i386/pc/pci.h: Move from here ...
28272 * include/grub/i386/pci.h: ... to here.
28273
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.
28277
28278 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28279 `<grub/cpu/pci.h>'.
28280
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.
28284
28285 * conf/i386-ieee1275.rmk: Likewise.
28286
28287 2008-08-03 Robert Millan <rmh@aybabtu.com>
28288
28289 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
28290 (grub_console_setcursor): Make it possible to set cursor off.
28291
28292 2008-08-03 Robert Millan <rmh@aybabtu.com>
28293
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.
28297
28298 2008-08-03 Robert Millan <rmh@aybabtu.com>
28299
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).
28304
28305 2008-08-02 Robert Millan <rmh@aybabtu.com>
28306
28307 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
28308
28309 2008-08-02 Robert Millan <rmh@aybabtu.com>
28310
28311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
28312 of informational grub_dprintf() calls.
28313
28314 2008-08-02 Robert Millan <rmh@aybabtu.com>
28315
28316 * disk/memdisk.c (memdisk_size): Don't initialize.
28317 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
28318
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.
28324
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.
28329
28330 * kern/device.c (grub_device_open): Do not hide error messages
28331 when grub_disk_open() fails. Use grub_print_error() instead.
28332
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).
28337
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.
28342
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.
28349
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'.
28359
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.
28365
28366 2008-08-02 Robert Millan <rmh@aybabtu.com>
28367
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.
28375
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.
28381
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.
28385
28386 2008-08-01 Bean <bean123ch@gmail.com>
28387
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
28390 using it.
28391
28392 2008-08-01 Robert Millan <rmh@aybabtu.com>
28393
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.
28397
28398 2008-08-01 Bean <bean123ch@gmail.com>
28399
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.
28404
28405 * include/grub/bufio.h: New file.
28406
28407 * io/bufio.c: Likewise.
28408
28409 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
28410 (grub_video_reader_png): Use grub_buffile_open to open file.
28411
28412 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
28413 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
28414
28415 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
28416 (grub_video_reader_tga): Use grub_buffile_open to open file.
28417
28418 * font/manager.c: Include <grub/bufio.h>.
28419 (add_font): Use grub_buffile_open to open file.
28420
28421 2008-07-31 Robert Millan <rmh@aybabtu.com>
28422
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.
28427
28428 2008-07-31 Bean <bean123ch@gmail.com>
28429
28430 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
28431 GRUB_KERNEL_MACHINE_DATA_END.
28432
28433 2008-07-30 Robert Millan <rmh@aybabtu.com>
28434
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
28439 possible, abort.
28440 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
28441 check, for cross-disk installs.
28442
28443 2008-07-30 Robert Millan <rmh@aybabtu.com>
28444
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().
28451
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.
28455
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
28460 to `start').
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.
28464
28465 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
28466 Overwrite grub_prefix with its contents, at the beginning of the
28467 first segment.
28468 (main): Understand -p|--prefix.
28469
28470 2008-07-30 Robert Millan <rmh@aybabtu.com>
28471
28472 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
28473
28474 2008-07-30 Robert Millan <rmh@aybabtu.com>
28475
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>
28479
28480 2008-07-29 Christian Franke <franke@computer.org>
28481
28482 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28483 Add conversion of emulated mount points on Cygwin.
28484
28485 2008-07-29 Christian Franke <franke@computer.org>
28486
28487 * util/update-grub.in: Add a check for admin
28488 group on Cygwin.
28489 Remove old `grub.cfg.new' before creation.
28490 Add `-f' to `mv' to handle the different filesystem
28491 semantics of Windows.
28492
28493 2008-07-29 Bean <bean123ch@gmail.com>
28494
28495 * normal/main.c (get_line): Fix buffer overflow bug.
28496
28497 2008-07-28 Robert Millan <rmh@aybabtu.com>
28498
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).
28504
28505 2008-07-28 Pavel Roskin <proski@gnu.org>
28506
28507 * genmk.rb: Add a warning to the beginning of the output that
28508 it's a generated file and should not be edited.
28509
28510 2008-07-28 Robert Millan <rmh@aybabtu.com>
28511
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.
28515
28516 2008-07-27 Robert Millan <rmh@aybabtu.com>
28517
28518 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28519 information.
28520
28521 2008-07-27 Bean <bean123ch@gmail.com>
28522
28523 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28524 (grub_fat_find_dir): Ignore case when comparing filename.
28525
28526 2008-07-27 Bean <bean123ch@gmail.com>
28527
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
28532 inode type.
28533
28534 2008-07-27 Bean <bean123ch@gmail.com>
28535
28536 * commands/crc.c: New file.
28537
28538 * lib/crc.c: Likewise.
28539
28540 * include/grub/lib/crc.h: Likewise.
28541
28542 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
28543
28544 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
28545 (hexdump): Move this function to ...
28546
28547 * lib/hexdump.c: ... here.
28548
28549 * include/grub/hexdump.h: Renamed to ...
28550
28551 * include/grub/lib/hexdump.h: ... this.
28552
28553 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
28554
28555 * util/grub-editenv.c: Likewise.
28556
28557 * include/envblk.h: Renamed to ...
28558
28559 * include/lib/envblk.h: ... this.
28560
28561 * util/envblk.c: Renamed to ...
28562
28563 * lib/envblk.c: ... this.
28564
28565 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
28566 lib/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.
28574
28575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
28576
28577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28578
28579 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28580
28581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28582
28583 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28584
28585 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
28586
28587 * commands/help.c: Include <grub/term.h>.
28588 (TERM_WIDTH): Removed. Updated all users.
28589
28590 2008-07-27 Pavel Roskin <proski@gnu.org>
28591
28592 * util/getroot.c (find_root_device): Rephrase a comment to avoid
28593 spurious warnings about a comment within a comment.
28594
28595 2008-07-25 Robert Millan <rmh@aybabtu.com>
28596
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.
28603
28604 2008-07-24 Pavel Roskin <proski@gnu.org>
28605
28606 * include/grub/types.h: Use __builtin_bswap32() and
28607 __builtin_bswap64() with gcc 4.3 and newer.
28608
28609 2008-07-24 Christian Franke <franke@computer.org>
28610
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.
28614
28615 2008-07-24 Bean <bean123ch@gmail.com>
28616
28617 * configure.ac: Fixed a bug caused by the previous cygwin patch,
28618 variable `target_platform' should be `platform'.
28619
28620 2008-07-24 Bean <bean123ch@gmail.com>
28621
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.
28625
28626 2008-07-24 Bean <bean123ch@gmail.com>
28627
28628 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
28629 (grub_pe2elf_SOURCES): New macro.
28630 (CLEANFILES): Add grub-pe2elf.
28631
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.
28649
28650 * util/grub-pe2elf.c: New file.
28651
28652 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
28653 start symbol in non pc platform.
28654
28655 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
28656
28657 The following patches are from Christian Franke.
28658
28659 * include/grub/dl.h: Remove .previous, gas supports this only
28660 for ELF format.
28661
28662 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
28663 Remove .type, gas supports this only for ELF format.
28664
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
28667 zero filled.
28668
28669 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
28670 TARGET_IMG_LDFLAGS and EXEEXT.
28671
28672 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
28673 TARGET_IMG_LDFLAGS_AC.
28674 (grub_CHECK_STACK_ARG_PROBE): New function.
28675
28676 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
28677
28678 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
28679
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.
28685
28686 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
28687
28688 * genmk.rb: Add EXEEXT to CLEANFILES.
28689
28690 2008-07-23 Robert Millan <rmh@aybabtu.com>
28691
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)
28695 as well.
28696
28697 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
28698 fonts, because the latter are too slow.
28699
28700 2008-07-21 Bean <bean123ch@gmail.com>
28701
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.
28704
28705 2008-07-18 Pavel Roskin <proski@gnu.org>
28706
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.
28711
28712 2008-07-17 Pavel Roskin <proski@gnu.org>
28713
28714 * configure.ac: Use -m32 or -m64 regardless of whether we had to
28715 change target_cpu. The compiler default can mismatch target_cpu
28716 in any case.
28717
28718 * disk/efi/efidisk.c: Fix format warnings on x86_64.
28719 * kern/efi/efi.c: Likewise.
28720
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
28724 are set up.
28725
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.
28732
28733 * configure.ac: Default to pc platform for x86_64.
28734
28735 2008-07-17 Robert Millan <rmh@aybabtu.com>
28736
28737 Partial LinuxBIOS -> Coreboot rename.
28738
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.
28746
28747 2008-07-17 Bean <bean123ch@gmail.com>
28748
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.
28759
28760 * conf/x86_64-efi.rmk: New file.
28761
28762 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
28763 macro.
28764 (grub_efidisk_write): Likewise.
28765
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.
28773
28774 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
28775 grub_rescue_cmd_chainloader.
28776
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
28779 x86_64 platform.
28780 (GRUB_PE32_PE32_MAGIC): Likewise.
28781
28782 * include/grub/efi/uga_draw.h: New file.
28783
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.
28801
28802 * include/grub/i386/efi/pci.h: New file.
28803
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.
28816
28817 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
28818
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.
28829
28830 * include/grub/x86_64/efi/kernel.h: New file.
28831
28832 * include/grub/x86_64/efi/loader.h: Likewise.
28833
28834 * include/grub/x86_64/efi/machine.h: Likewise.
28835
28836 * include/grub/x86_64/efi/pci.h: Likewise.
28837
28838 * include/grub/x86_64/efi/time.h: Likewise.
28839
28840 * include/grub/x86_64/linux.h: Likewise.
28841
28842 * include/grub/x86_64/setjmp.h: Likewise.
28843
28844 * include/grub/x86_64/time.h: Likewise.
28845
28846 * include/grub/x86_64/types.h: Likewise.
28847
28848 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
28849 GRUB_TARGET_SIZEOF_VOID_P.
28850
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.
28861
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.
28867
28868 * kern/x86_64/dl.c: New file.
28869
28870 * kern/x86_64/efi/callwrap.S: Likewise.
28871
28872 * kern/x86_64/efi/startup.S: Likewise.
28873
28874 * loader/efi/appleloader.c: Likewise.
28875
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
28880 command line.
28881
28882 * loader/efi/chainloader_normal.c (chainloader_command):
28883 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
28884 command line.
28885
28886 * loader/i386/efi/linux.c (allocate_pages): Change allocation
28887 method.
28888 (grub_e820_add_region): New function.
28889 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
28890 booting.
28891 (grub_find_video_card): New function.
28892 (grub_linux_setup_video): New function.
28893 (grub_rescue_cmd_linux): Probe for video information.
28894
28895 * normal/x86_64/setjmp.S: New file.
28896
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.
28906
28907 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
28908
28909 2008-07-16 Pavel Roskin <proski@gnu.org>
28910
28911 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
28912 format strings.
28913
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.
28918
28919 2008-07-15 Pavel Roskin <proski@gnu.org>
28920
28921 * kern/i386/ieee1275/init.c: Include grub/cache.h.
28922
28923 * term/ieee1275/ofconsole.c: Disable code unused on i386.
28924
28925 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
28926 Fix comparison between signed and unsigned.
28927
28928 * include/grub/i386/ieee1275/console.h: Declare
28929 grub_console_init() and grub_console_fini().
28930
28931 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
28932 It's empty and unused.
28933
28934 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
28935 beginning to avoid warnings with some compilers.
28936
28937 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
28938 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
28939
28940 2008-07-14 Pavel Roskin <proski@gnu.org>
28941
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.
28945
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.
28952
28953 2008-07-13 Pavel Roskin <proski@gnu.org>
28954
28955 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
28956 between signed and unsigned.
28957 (LzmaEnc_Finish): Fix warning about an unused parameter.
28958
28959 2008-07-13 Bean <bean123ch@gmail.com>
28960
28961 * Makefile.in (enable_lzo): New rule.
28962
28963 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
28964
28965 * configure.ac (ENABLE_LZO): New option --enable-lzo.
28966
28967 * boot/i386/pc/lnxboot.S: #include <config.h>.
28968
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.
28971
28972 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
28973 compression algorithm according to configure macro.
28974
28975 * kern/i386/pc/startup.S (codestart): Likewise.
28976
28977 * kern/i386/pc/lzma_decode.S: New file.
28978
28979 * include/grub/lib/LzFind.h: Likewise.
28980
28981 * include/grub/lib/LzHash.h: Likewise.
28982
28983 * include/grub/lib/LzmaDec.h: Likewise.
28984
28985 * include/grub/lib/LzmaEnc.h: Likewise.
28986
28987 * include/grub/lib/LzmaTypes.h: Likewise.
28988
28989 * lib/LzFind.c: Likewise.
28990
28991 * lib/LzmaDec.c: Likewise.
28992
28993 * lib/LzmaEnc.c: Likewise.
28994
28995 2008-07-13 Bean <bean123ch@gmail.com>
28996
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.
29003
29004 2008-07-12 Robert Millan <rmh@aybabtu.com>
29005
29006 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29007
29008 2008-07-11 Robert Millan <rmh@aybabtu.com>
29009
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).
29014
29015 2008-07-11 Pavel Roskin <proski@gnu.org>
29016
29017 * commands/read.c (grub_getline): Fix invalid memory access.
29018 Don't add newline to the variable value.
29019
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().
29024
29025 2008-07-07 Pavel Roskin <proski@gnu.org>
29026
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.
29030
29031 2008-07-05 Pavel Roskin <proski@gnu.org>
29032
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.
29036
29037 * disk/ata.c: Use named constants for status bits.
29038
29039 2008-07-04 Pavel Roskin <proski@gnu.org>
29040
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
29050 grub_stop().
29051
29052 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29053 prevent warnings.
29054
29055 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29056 pointer, which can cause warnings. Support 64-bit addresses.
29057
29058 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29059 of sizeof(long). This fixes PowerPC image generation on x86_64.
29060
29061 2008-07-04 Robert Millan <rmh@aybabtu.com>
29062
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).
29066
29067 Some callers relied on previous buggy behaviour, since they would
29068 raise an error when their own hooks caused early abortion of its
29069 iteration.
29070
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.
29074
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().
29079
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().
29084
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().
29088
29089 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29090 when grub_partition_iterate() returned with non-zero.
29091
29092 2008-07-03 Pavel Roskin <proski@gnu.org>
29093
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.
29100
29101 2008-07-02 Pavel Roskin <proski@gnu.org>
29102
29103 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29104 warning.
29105
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.
29109
29110 * util/grub-editenv.c (cmd_info): Cast argument to long
29111 explicitly. ptrdiff_t reduces to int on i386.
29112
29113 * util/grub-editenv.c (main): Be specific which parameter is
29114 missing.
29115
29116 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29117 (memdisk): Make memdisk_orig_addr a pointer.
29118
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
29121 warnings.
29122
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.
29126
29127 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29128 grub_disk_addr_t for memory addresses.
29129
29130 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29131 explicitly to fix a warning.
29132
29133 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29134
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
29139 MODULE_LDFLAGS.
29140 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29141
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
29144 inode.
29145 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29146 the end of struct grub_xfs_dir_header.
29147
29148 2008-07-02 Bean <bean123ch@gmail.com>
29149
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.
29153
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.
29157
29158 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29159 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29160
29161 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29162 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29163
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.
29167
29168 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29169 beginning of file.
29170
29171 2008-07-02 Bean <bean123ch@gmail.com>
29172
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.
29179
29180 * include/grub/envblk.h: New file.
29181
29182 * util/envblk.c: New file.
29183
29184 * util/grub-editenv.c: New file.
29185
29186 * commands/loadenv.c: New file.
29187
29188 2008-07-01 Pavel Roskin <proski@gnu.org>
29189
29190 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29191 not unsigned char. This fixes warnings and is consistent with
29192 other tags.
29193
29194 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29195
29196 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29197
29198 * term/tparm.c (analyze): Always set *popcount.
29199
29200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29201 cast to fix a warning.
29202
29203 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29204 cast to suppress a warning.
29205
29206 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29207 grub_fshelp_read_file() expects.
29208
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
29211 use it as such.
29212
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.
29221
29222 2008-06-30 Pavel Roskin <proski@gnu.org>
29223
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.
29228
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>
29232
29233 2008-06-29 Robert Millan <rmh@aybabtu.com>
29234
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>
29239
29240 2008-06-29 Robert Millan <rmh@aybabtu.com>
29241
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).
29245
29246 2008-06-26 Pavel Roskin <proski@gnu.org>
29247
29248 * util/biosdisk.c (read_device_map): Don't leave dead map
29249 entries for devices failing stat() check.
29250
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.
29253
29254 2008-06-26 Robert Millan <rmh@aybabtu.com>
29255
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().
29264
29265 2008-06-26 Robert Millan <rmh@aybabtu.com>
29266
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.
29270
29271 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29272
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
29275 name twice.
29276
29277 2008-06-21 Robert Millan <rmh@aybabtu.com>
29278
29279 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29280 call from here ...
29281
29282 * util/grub.d/10_hurd.in: ... to here ...
29283 * util/grub.d/10_linux.in: ... and here.
29284
29285 2008-06-19 Robert Millan <rmh@aybabtu.com>
29286
29287 * kern/main.c (grub_main): Export `prefix' variable immediately
29288 after it has been set by grub_machine_set_prefix().
29289
29290 2008-06-19 Robert Millan <rmh@aybabtu.com>
29291
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.
29295
29296 2008-06-19 Robert Millan <rmh@aybabtu.com>
29297
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
29301 multiple times.
29302
29303 2008-06-19 Robert Millan <rmh@aybabtu.com>
29304
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).
29309
29310 2008-06-19 Pavel Roskin <proski@gnu.org>
29311
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.
29318
29319 2008-06-18 Pavel Roskin <proski@gnu.org>
29320
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.
29325
29326 2008-06-18 Robert Millan <rmh@aybabtu.com>
29327
29328 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
29329 it in prefix.
29330
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
29337 value.
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.
29342
29343 2008-06-17 Robert Millan <rmh@aybabtu.com>
29344
29345 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
29346 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
29347 variables.
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.
29354
29355 2008-06-17 Robert Millan <rmh@aybabtu.com>
29356
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).
29360
29361 2008-06-16 Robert Millan <rmh@aybabtu.com>
29362
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
29366 want.
29367
29368 2008-06-16 Robert Millan <rmh@aybabtu.com>
29369
29370 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
29371 I2O devices.
29372 Patch from Sven Mueller <sven@debian.org>.
29373
29374 2008-06-16 Robert Millan <rmh@aybabtu.com>
29375
29376 * util/update-grub.in: Check for $EUID instead of $UID.
29377 Reported by Vincent Zweije.
29378
29379 2008-06-16 Bean <bean123ch@gmail.com>
29380
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.
29387
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.
29395
29396 * fs/fshelp.c (grub_fshelp_read): Removed.
29397 (grub_fshelp_map_block): Likewise.
29398
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.
29403
29404 2008-06-16 Pavel Roskin <proski@gnu.org>
29405
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.
29409
29410 2008-06-15 Pavel Roskin <proski@gnu.org>
29411
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.
29416
29417 2008-06-15 Robert Millan <rmh@aybabtu.com>
29418
29419 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
29420 devices.
29421 Reported by Max Vozeler.
29422
29423 2008-06-15 Robert Millan <rmh@aybabtu.com>
29424
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
29427 skipped later.
29428 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
29429 the beginning of the prefix.
29430
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.
29434
29435 2008-06-15 Robert Millan <rmh@aybabtu.com>
29436
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().
29440
29441 2008-06-15 Robert Millan <rmh@aybabtu.com>
29442
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>.
29446
29447 2008-06-14 Robert Millan <rmh@aybabtu.com>
29448
29449 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
29450 * util/i386/pc/grub-install.in (modules): Likewise.
29451
29452 2008-06-13 Pavel Roskin <proski@gnu.org>
29453
29454 * commands/ls.c (grub_ls_list_files): Fix format warnings.
29455
29456 2008-06-13 Bean <bean123ch@gmail.com>
29457
29458 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
29459
29460 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
29461
29462 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
29463 to indicate sparse block.
29464
29465 2008-06-12 Pavel Roskin <proski@gnu.org>
29466
29467 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
29468 number, grub_fshelp_read() does it for us.
29469
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().
29474
29475 2008-06-09 Pavel Roskin <proski@gnu.org>
29476
29477 * fs/minix.c (grub_minix_mount): Handle error reading
29478 superblock.
29479
29480 2008-06-08 Robert Millan <rmh@aybabtu.com>
29481
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.
29485
29486 2008-06-08 Robert Millan <rmh@aybabtu.com>
29487
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.
29492
29493 2008-06-08 Robert Millan <rmh@aybabtu.com>
29494
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.
29501
29502 2008-06-07 Pavel Roskin <proski@gnu.org>
29503
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.
29507
29508 2008-06-06 Robert Millan <rmh@aybabtu.com>
29509
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.
29512
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).
29518
29519 2008-06-06 Robert Millan <rmh@aybabtu.com>
29520
29521 * util/biosdisk.c (open_device): Do not modify sector offset when
29522 accessing a partition. kern/disk.c already handles this for us.
29523
29524 2008-06-06 Robert Millan <rmh@aybabtu.com>
29525
29526 * util/grub-emu.c (grub_machine_init): Move code in this function from
29527 here ...
29528 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29529 segfault in case grub_printf() is called).
29530
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
29536 every time.
29537
29538 2008-06-05 Robert Millan <rmh@aybabtu.com>
29539
29540 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
29541 is found, print it (same layout as with labels).
29542
29543 2008-06-04 Robert Millan <rmh@aybabtu.com>
29544
29545 * util/biosdisk.c (get_drive): Rename to ...
29546 (find_grub_drive): ... this. Update all users.
29547
29548 (get_os_disk): Rename to ...
29549 (convert_system_partition_to_system_disk): ... this. Update all users.
29550
29551 (find_drive): Rename to ...
29552 (find_system_device): ... this. Update all users.
29553
29554 2008-06-04 Robert Millan <rmh@aybabtu.com>
29555
29556 * util/biosdisk.c (get_os_disk): Handle IDA devices.
29557 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29558 (make_device_map): Likewise.
29559
29560 2008-06-01 Robert Millan <rmh@aybabtu.com>
29561
29562 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
29563 before dereferencing it.
29564
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.
29573
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
29577 member.
29578
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.
29582
29583 2008-06-01 Robert Millan <rmh@aybabtu.com>
29584
29585 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
29586 code that is backward compatible with pre-uuid search command.
29587
29588 2008-05-31 Robert Millan <rmh@aybabtu.com>
29589
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).
29593
29594 2008-05-31 Robert Millan <rmh@aybabtu.com>
29595
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.
29598
29599 2008-05-31 Robert Millan <rmh@aybabtu.com>
29600
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).
29604
29605 2008-05-31 Michael Gorven <michael@gorven.za.net>
29606
29607 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
29608 on and off sequences.
29609
29610 2008-05-31 Robert Millan <rmh@aybabtu.com>
29611
29612 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
29613 * util/update-grub.in: Likewise.
29614
29615 2008-05-30 Pavel Roskin <proski@gnu.org>
29616
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.
29622
29623 2008-05-30 Robert Millan <rmh@aybabtu.com>
29624
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.
29629
29630 2008-05-30 Robert Millan <rmh@aybabtu.com>
29631
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).
29637
29638 2008-05-30 Robert Millan <rmh@aybabtu.com>
29639
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.
29642
29643 2008-05-30 Robert Millan <rmh@aybabtu.com>
29644
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().
29654
29655 2008-05-30 Robert Millan <rmh@aybabtu.com>
29656
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
29662 the root device.
29663
29664 2008-05-30 Robert Millan <rmh@aybabtu.com>
29665
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
29680 whenever possible.
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
29685 via PRINT_FS_UUID.
29686 (main): Recognise `-t fs_uuid' argument.
29687
29688 2008-05-30 Robert Millan <rmh@aybabtu.com>
29689
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
29693 drive names.
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
29698 member.
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
29703 anymore).
29704 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
29705 (make_device_name): Remove assumption of BIOS-like drive names.
29706
29707 2008-05-30 Pavel Roskin <proski@gnu.org>
29708
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.
29718
29719 2008-05-29 Pavel Roskin <proski@gnu.org>
29720
29721 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
29722 when scanning metadata for volume group name.
29723
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.
29729
29730 2008-05-29 Robert Millan <rmh@aybabtu.com>
29731
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
29736 scan codes.
29737
29738 2008-05-29 Robert Millan <rmh@aybabtu.com>
29739
29740 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
29741 control key combinations.
29742
29743 2008-05-29 Robert Millan <rmh@aybabtu.com>
29744
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.
29750
29751 2008-05-29 Robert Millan <rmh@aybabtu.com>
29752
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.
29761
29762 2008-05-28 Robert Millan <rmh@aybabtu.com>
29763
29764 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
29765 might need to be fatfs to support some firmware implementations
29766 (e.g. OFW or EFI).
29767
29768 2008-05-28 Robert Millan <rmh@aybabtu.com>
29769
29770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
29771 devices.
29772 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29773 (make_device_map): Likewise.
29774
29775 2008-05-20 Bean <bean123ch@gmail.com>
29776
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.
29780
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.
29787
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
29808 number.
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.
29813
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
29821 number.
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.
29831
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.
29834
29835 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
29836
29837 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
29838
29839 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
29840
29841 * fs/udf.c (grub_udf_read_block): Change block type to
29842 grub_disk_addr_t. Use type cast to avoid warning.
29843
29844 * fs/xfs.c (grub_xfs_read_block): Likewise.
29845
29846 2008-05-16 Christian Franke <franke@computer.org>
29847
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.
29852
29853 2008-05-16 Christian Franke <franke@computer.org>
29854
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
29862 Cygwin.
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
29871 structure.
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.
29875
29876 2008-05-15 Bean <bean123ch@gmail.com>
29877
29878 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
29879 keyboard hang problem in apple's intel mac.
29880
29881 2008-05-09 Robert Millan <rmh@aybabtu.com>
29882
29883 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
29884 devices.
29885 * util/grub-mkdevicemap.c (get_virtio_disk_name)
29886 (make_device_map): Likewise.
29887 Reported by Aurelien Jarno <aurel32@debian.org>
29888
29889 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
29890
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.
29894
29895 2008-05-07 Robert Millan <rmh@aybabtu.com>
29896
29897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
29898 devices.
29899 * util/grub-mkdevicemap.c (get_cciss_disk_name)
29900 (make_device_map): Likewise.
29901 Reported by Roland Dreier <rdreier@cisco.com>
29902
29903 2008-05-07 Robert Millan <rmh@aybabtu.com>
29904
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.
29907
29908 2008-05-06 Robert Millan <rmh@aybabtu.com>
29909
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
29912 empty string).
29913 (convert_system_path_to_grub_path): Do not remove trailing slash
29914 from make_system_path_relative_to_its_root() output.
29915
29916 * util/i386/pc/grub-install.in: Add trailing slash to output from
29917 make_system_path_relative_to_its_root().
29918
29919 2008-05-06 Robert Millan <rmh@aybabtu.com>
29920
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.
29926
29927 2008-05-05 Christian Franke <franke@computer.org>
29928
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.
29936
29937 2008-04-30 Robert Millan <rmh@aybabtu.com>
29938
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
29941 first boot option.
29942 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
29943
29944 2008-04-29 Robert Millan <rmh@aybabtu.com>
29945
29946 * docs/grub.cfg: New file (example GRUB configuration).
29947
29948 2008-04-26 Robert Millan <rmh@aybabtu.com>
29949
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'.
29953
29954 2008-04-25 Bean <bean123ch@gmail.com>
29955
29956 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
29957 i386-linuxbios.
29958
29959 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
29960 change the buffer size to 4096 for cdrom device.
29961
29962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
29963 and nand.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.
29973
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)
29977
29978 * include/grub/disk.h (grub_disk_dev_id): New macro
29979 GRUB_DISK_DEVICE_NAND_ID.
29980
29981 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
29982 function prototype.
29983 (grub_rescue_cmd_initrd): Likewise.
29984
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.
29988
29989 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
29990 GRUB_MACHINE_IEEE1275 is defined.
29991
29992 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
29993 Use NESTED_FUNC_ATTR attribute on the hook parameter.
29994
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.
30000
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
30003 property.
30004
30005 * loader/i386/ieee1275/linux.c: New file.
30006
30007 * loader/i386/ieee1275/linux_normal.c: New file.
30008
30009 * disk/ieee1275/nand.c: New file.
30010
30011 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30012
30013 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30014 value.
30015 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30016
30017 2008-04-18 Robert Millan <rmh@aybabtu.com>
30018
30019 Restructures early code path on ieee1275 to unify grub_main() as
30020 the first C function that is executed in every platform.
30021
30022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30023 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30024 cmain().
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()
30029 at the beginning.
30030
30031 2008-04-18 Robert Millan <rmh@aybabtu.com>
30032
30033 * util/update-grub.in: Fix syntax error when setting
30034 `GRUB_PRELOAD_MODULES'.
30035 Reported by Stephane Chazelas <stephane@artesyncp.com>
30036
30037 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30038
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
30045 size
30046
30047 2008-04-15 Robert Millan <rmh@aybabtu.com>
30048
30049 * disk/lvm.c: Update copyright year.
30050 * kern/misc.c: Likewise.
30051
30052 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30053
30054 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30055 there is no memory left for physical volume name.
30056
30057 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30058
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.
30061
30062 2008-04-13 Robert Millan <rmh@aybabtu.com>
30063
30064 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30065 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30066
30067 2008-04-13 Christian Franke <franke@computer.org>
30068
30069 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30070 to create a floppy emulation boot CD when non emulation mode
30071 does not work.
30072 Enable Joliet CD filesystem extension.
30073
30074 2008-04-13 Robert Millan <rmh@aybabtu.com>
30075
30076 * kern/misc.c (grub_strncat): Fix off-by-one error.
30077 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30078
30079 * kern/env.c (grub_env_context_close): Clear current context, not
30080 previous one.
30081 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30082
30083 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30084
30085 2008-04-13 Robert Millan <rmh@aybabtu.com>
30086
30087 Improve robustness when handling LVM.
30088
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
30092 through it.
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
30096 through it.
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.
30100
30101 2008-04-13 Robert Millan <rmh@aybabtu.com>
30102
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.
30112
30113 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30114
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
30118 the boot menu.
30119 * conf/common.rmk: Build and install 30_os-prober.
30120
30121 2008-04-12 Robert Millan <rmh@aybabtu.com>
30122
30123 * kern/powerpc/ieee1275/init.c: Move from here ...
30124 * kern/ieee1275/init.c: ... to here. Update all users.
30125
30126 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30127 * kern/ieee1275/cmain.c: ... to here. Update all users.
30128
30129 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30130 * kern/ieee1275/openfw.c: ... to here. Update all users.
30131
30132 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30133 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30134
30135 2008-04-10 Pavel Roskin <proski@gnu.org>
30136
30137 * configure.ac: Always use "_cv_" in cache variables for
30138 compatibility with Autoconf 2.62.
30139
30140 2008-04-07 Robert Millan <rmh@aybabtu.com>
30141
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.
30146
30147 2008-04-07 Robert Millan <rmh@aybabtu.com>
30148
30149 * util/grub-probe.c (probe): Improve error message.
30150
30151 2008-04-07 Robert Millan <rmh@aybabtu.com>
30152
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
30155 thing).
30156
30157 2008-04-06 Pavel Roskin <proski@gnu.org>
30158
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
30166 grub/cache.h.
30167 * util/raid.c: Include grub/util/raid.h.
30168 (grub_util_getdiskname): Make static.
30169
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>
30175
30176 2008-04-05 Pavel Roskin <proski@gnu.org>
30177
30178 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30179 all 8 functions. Otherwise, probe function 0 only.
30180
30181 2008-04-04 Pavel Roskin <proski@gnu.org>
30182
30183 * commands/lspci.c (grub_lspci_iter): Print the bus number
30184 correctly.
30185
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.
30189
30190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30191 Fix signedness warnings.
30192 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30193 Likewise.
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.
30197
30198 2008-04-02 Pavel Roskin <proski@gnu.org>
30199
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.
30204
30205 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30206 * fs/cpio.c (grub_cpio_read): Likewise.
30207
30208 2008-04-01 Pavel Roskin <proski@gnu.org>
30209
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.
30215
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.
30220
30221 * disk/loopback.c (options): Improve help for "--partitions".
30222
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".
30225
30226 2008-03-31 Bean <bean123ch@gmail.com>
30227
30228 * video/reader/png.c (grub_png_data): New member is_16bit and
30229 image_data.
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.
30234
30235 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30236 4096 bytes.
30237 (grub_nfs_mount): Skip the test for sector per cluster.
30238
30239 * include/grub/ntfs.h (MAX_SPC): Removed.
30240
30241 2008-03-31 Bean <bean123ch@gmail.com>
30242
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.
30249
30250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30251 (grub_emu_SOURCES): Likewise.
30252
30253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30254
30255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30256
30257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30258
30259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30260
30261 * fs/afs.c: New file.
30262
30263 2008-03-30 Pavel Roskin <proski@gnu.org>
30264
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.
30268
30269 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30270 variable.
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
30274 fix a warning.
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.
30279
30280 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30281 missing grub_error() call.
30282
30283 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30284 2.60 and newer uses it to define datadir.
30285
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.
30291
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.
30295
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.
30301
30302 2008-03-28 Pavel Roskin <proski@gnu.org>
30303
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.
30310
30311 2008-03-28 Pavel Roskin <proski@gnu.org>
30312
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.
30318
30319 2008-03-26 Pavel Roskin <proski@gnu.org>
30320
30321 * normal/color.c (grub_parse_color_name_pair): Make `name' a
30322 const.
30323 * include/grub/normal.h: Add grub_parse_color_name_pair()
30324 declaration.
30325
30326 2008-03-24 Bean <bean123ch@gmail.com>
30327
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.
30337
30338 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
30339 Removed.
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.
30349
30350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
30351
30352 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
30353 device.
30354
30355 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
30356 New function.
30357
30358 2008-03-20 Robert Millan <rmh@aybabtu.com>
30359
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.
30365
30366 2008-03-05 Bean <bean123ch@gmail.com>
30367
30368 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
30369 (grub_multiboot): Set boot device.
30370
30371 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
30372
30373 2008-03-02 Bean <bean123ch@gmail.com>
30374
30375 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
30376 symlink_buffer.
30377
30378 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
30379
30380 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
30381 texinfo.tex.
30382
30383 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
30384 modified.
30385
30386 * docs/fdl.texi: New file.
30387
30388 * docs/mdate-sh: New file. Copied from gnulib.
30389 * docs/texinfo.tex: Likewise.
30390
30391 * config.guess: Updated from gnulib.
30392 * install-sh: Likewise.
30393
30394 2008-02-28 Robert Millan <rmh@aybabtu.com>
30395
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.
30400
30401 * conf/i386-ieee1275.rmk: Likewise.
30402
30403 2008-02-28 Robert Millan <rmh@aybabtu.com>
30404
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.
30408
30409 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
30410
30411 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
30412 function.
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.
30424
30425 2008-02-24 Bean <bean123ch@gmail.com>
30426
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.
30438
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.
30445
30446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
30447 (grub_emu_SOURCES): Likewise.
30448
30449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30450
30451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30452
30453 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30454
30455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30456
30457 * fs/udf.c: New file.
30458
30459 2008-02-24 Robert Millan <rmh@aybabtu.com>
30460
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.
30473
30474 2008-02-23 Robert Millan <rmh@aybabtu.com>
30475
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).
30479
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'.
30483
30484 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
30485
30486 * include/grub/efi/time.h: Fix a wrong comment.
30487
30488 2008-02-19 Pavel Roskin <proski@gnu.org>
30489
30490 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
30491 message.
30492
30493 2008-02-19 Bean <bean123ch@gmail.com>
30494
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.
30505
30506 * include/grub/aout.h: New file.
30507
30508 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30509
30510 * include/grub/i386/bsd.h: New file.
30511
30512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30513 to make it public.
30514
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.
30523
30524 * kern/i386/loader.S (grub_unix_real_boot): New function.
30525
30526 * loader/aout.c: New file.
30527
30528 * loader/i386/bsd.c: New file.
30529
30530 * loader/i386/bsd_normal.c: New file.
30531
30532 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30533
30534 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30535 can test other formats.
30536
30537 2008-02-19 Robert Millan <rmh@aybabtu.com>
30538
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.
30543
30544 Export `entry' as partmap-specific `part.data' struct.
30545 (grub_gpt_header, grub_gpt_partentry): Move from here ...
30546
30547 * include/grub/gpt_partition.h (grub_gpt_header)
30548 (grub_gpt_partentry): ... to here (new file).
30549
30550 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
30551
30552 (grub_gpt_partition_type_bios_boot): New const variable, defined
30553 with macro from `<grub/gpt_partition.h>'.
30554
30555 (setup): Replace `first_start' with `embed_region', which keeps
30556 track of the embed region (and is partmap-agnostic).
30557
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).
30561
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.
30565
30566 In grub_util_info() message, replace "into after the MBR" with an
30567 indication of the specific sector our embed region starts at.
30568
30569 2008-02-19 Robert Millan <rmh@aybabtu.com>
30570
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.
30578
30579 2008-02-17 Christian Franke <franke@computer.org>
30580
30581 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
30582
30583 2008-02-17 Robert Millan <rmh@aybabtu.com>
30584
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.
30587
30588 2008-02-16 Robert Millan <rmh@aybabtu.com>
30589
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.
30593
30594 2008-02-13 Robert Millan <rmh@aybabtu.com>
30595
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.
30599
30600 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
30601
30602 * configure.ac: Only a cosmetic change on the handling of
30603 -fno-stack-protector.
30604
30605 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
30606
30607 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
30608 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
30609 reboot.c.
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.
30617
30618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
30619 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
30620 reboot.c.
30621 (halt_mod_SOURCES): Likewise.
30622 (reboot_mod_SOURCES): Likewise.
30623
30624 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
30625 commands/i386/pc/reboot.c by commands/reboot.c.
30626 (reboot_mod_SOURCES): Likewise.
30627
30628 * commands/i386/pc/reboot.c: merge this file ...
30629
30630 * commands/ieee1275/reboot.c: ... and this file ...
30631
30632 * commands/reboot.c: ... to this file.
30633 Add some precompiler directive to include the correct header for
30634 each machine.
30635
30636 * commands/ieee1275/halt.c: move this file ...
30637
30638 * commands/halt.c: ... to here.
30639 Add some precompiler directive to include the correct header for
30640 each machine.
30641
30642 * include/grub/efi/efi.h (grub_reboot): New function declaration.
30643 (grub_halt): Likewise.
30644
30645 * kern/efi/efi.c (grub_reboot): New function.
30646 (grub_halt): Likewise.
30647
30648 2008-02-12 Robert Millan <rmh@aybabtu.com>
30649
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
30653 arises.
30654
30655 2008-02-11 Robert Millan <rmh@aybabtu.com>
30656
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.
30660
30661 2008-02-10 Robert Millan <rmh@aybabtu.com>
30662
30663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
30664 `disk/lvm.c'.
30665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30666 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30667
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.
30672
30673 2008-02-10 Robert Millan <rmh@aybabtu.com>
30674
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
30677 rescue mode.
30678 Based on suggestions from Sam Morris.
30679
30680 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
30681
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.
30684
30685 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
30686
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.
30690
30691 2008-02-09 Robert Millan <rmh@aybabtu.com>
30692
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
30699 output.
30700
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.
30703
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).
30710
30711 2008-02-09 Christian Franke <franke@computer.org>
30712
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.
30716
30717 2008-02-09 Robert Millan <rmh@aybabtu.com>
30718
30719 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
30720 drawing the menu.
30721
30722 2008-02-09 Robert Millan <rmh@aybabtu.com>
30723
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.
30729
30730 2008-02-09 Robert Millan <rmh@aybabtu.com>
30731
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
30734 doesn't match it.
30735
30736 2008-02-09 Robert Millan <rmh@aybabtu.com>
30737
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.
30741
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.
30745
30746 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
30747 prototype.
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.
30751
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
30757 memberlist().
30758
30759 2008-02-09 Robert Millan <rmh@aybabtu.com>
30760
30761 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
30762 environment variable to 'all' in order to obtain debug output from
30763 non-util/ code.
30764 * util/i386/pc/grub-setup.c (main): Likewise.
30765
30766 2008-02-08 Robert Millan <rmh@aybabtu.com>
30767
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.
30772
30773 2008-02-08 Robert Millan <rmh@aybabtu.com>
30774
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.
30780
30781 2008-02-08 Robert Millan <rmh@aybabtu.com>
30782
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
30786 `device[x]'.
30787 (grub_raid_scan_device): Replace `device[x].name' accesses with
30788 `device[x]->name'. Simplify initialization of `array->device[x]'.
30789
30790 2008-02-08 Robert Millan <rmh@aybabtu.com>
30791
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
30795 error message.
30796
30797 2008-02-07 Christian Franke <franke@computer.org>
30798
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.
30802
30803 2008-02-07 Robert Millan <rmh@aybabtu.com>
30804
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
30808 required.
30809
30810 2008-02-06 Robert Millan <rmh@aybabtu.com>
30811
30812 * util/grub-probe.c (probe): Simplify partmap probing (with the
30813 assumption that the first word up to the underscore equals to
30814 the module name).
30815
30816 2008-02-06 Christian Franke <franke@computer.org>
30817
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.
30827
30828 2008-02-05 Bean <bean123ch@gmail.com>
30829
30830 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
30831 address of entry.
30832 (grub_multiboot_load_elf64): Likewise.
30833 (grub_multiboot): Initialize mbi structure.
30834
30835 * util/grub-fstest.c: Don't include unused header file script.h.
30836
30837 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
30838 of file.
30839 (grub_fstest_SOURCES): Likewise.
30840
30841 2008-02-05 Robert Millan <rmh@aybabtu.com>
30842
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.
30847
30848 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
30849 (translation_table): Replace hardcoded values with macros
30850 provided by `<grub/term.h>'.
30851
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'.
30861
30862 2008-02-04 Bean <bean123ch@gmail.com>
30863
30864 * Makefile.in (enable_grub_fstest): New variable.
30865
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.
30871
30872 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
30873
30874 * util/grub-fstest.c: New file.
30875
30876 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30877
30878 Make grub-setup handle a separate root device.
30879
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
30882 device.
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
30885 0xFF.
30886 When not embedding, set ROOT_DRIVE to 0xFF.
30887
30888 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30889
30890 Add support for having a grub directory in a different drive. This
30891 is still only the data handling part.
30892
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.
30896
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
30900 as it was.
30901
30902 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
30903
30904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
30905 macro.
30906 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
30907
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
30910 correctly.
30911
30912 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
30913 am not sure if this is really correct.
30914
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.
30917
30918 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
30919 longer.
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
30923 be modified later.
30924 (copy_buffer): Restore %dx.
30925
30926 2008-02-03 Robert Millan <rmh@aybabtu.com>
30927
30928 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
30929 use `cdboot.img' for cdrom images.
30930
30931 2008-02-03 Robert Millan <rmh@aybabtu.com>
30932
30933 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
30934 only setup gfxterm when `font' command has succeeded.
30935
30936 2008-02-03 Robert Millan <rmh@aybabtu.com>
30937
30938 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
30939 (grub_rescue_cmd_multiboot_loader)
30940 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
30941
30942 2008-02-03 Pavel Roskin <proski@gnu.org>
30943
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.
30947
30948 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30949
30950 * configure.ac (AC_INIT): Bumped to 1.96.
30951
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.
30956
30957 2008-02-03 Bean <bean123ch@gmail.com>
30958
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.
30963
30964 * boot/i386/pc/cdboot.S: New file.
30965
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.
30975
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.
30979
30980 * kern/i386/pc/init.c (make_install_device): Check for cd device.
30981
30982 2008-02-02 Robert Millan <rmh@aybabtu.com>
30983
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.
30989
30990 2008-02-02 Robert Millan <rmh@aybabtu.com>
30991
30992 * normal/main.c (grub_normal_execute): Check for `menu->size' when
30993 determining whether menu has to be displayed.
30994
30995 2008-02-02 Marco Gerards <marco@gnu.org>
30996
30997 * bus/pci.c: New file.
30998
30999 * include/grub/pci.h: Likewise.
31000
31001 * include/grub/i386/pc/pci.h: Likewise.
31002
31003 * commands/lspci.c: Likewise.
31004
31005 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31006 `lspci.mod'.
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.
31013
31014 2008-02-02 Bean <bean123ch@gmail.com>
31015
31016 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31017 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31018
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.
31029
31030 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31031
31032 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31033 __attribute__ ((__regparm__ (1))).
31034
31035 2008-02-01 Robert Millan <rmh@aybabtu.com>
31036
31037 Correct a mistake in previous commit.
31038
31039 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31040 top.
31041 (normal/command.c_DEPENDENCIES): New variable.
31042
31043 2008-02-01 Robert Millan <rmh@aybabtu.com>
31044
31045 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31046 top.
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'.
31055
31056 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31057
31058 2008-02-01 Robert Millan <rmh@aybabtu.com>
31059
31060 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31061 call at beginning of function.
31062
31063 2008-01-31 Pavel Roskin <proski@gnu.org>
31064
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.
31069
31070 2008-01-30 Robert Millan <rmh@aybabtu.com>
31071
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.
31076
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.
31082
31083 2008-01-30 Tristan Gingold <gingold@free.fr>
31084
31085 * kern/rescue.c: Silently accept empty lines.
31086
31087 2008-01-29 Bean <bean123ch@gmail.com>
31088
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.
31092
31093 2008-01-29 Bean <bean123ch@gmail.com>
31094
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.
31099
31100 * video/readers/png.c: New file.
31101
31102 2008-01-28 Robert Millan <rmh@aybabtu.com>
31103
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.
31108
31109 2008-01-27 Robert Millan <rmh@aybabtu.com>
31110
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.
31114
31115 2008-01-27 Robert Millan <rmh@aybabtu.com>
31116
31117 Get grub-emu to build again (including parallel builds).
31118
31119 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31120 Split into ...
31121 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31122 (normal/execute.c_DEPENDENCIES): ... this, ...
31123 (grub-emu_DEPENDENCIES): ... and this.
31124
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'.
31130
31131 2008-01-27 Robert Millan <rmh@aybabtu.com>
31132
31133 * NEWS: Add a few items.
31134
31135 2008-01-27 Robert Millan <rmh@aybabtu.com>
31136
31137 Fix parallel builds with grub-emu. Based on earlier commit for
31138 grub-probe and grub-setup.
31139
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.
31150
31151 2008-01-27 Pavel Roskin <proski@gnu.org>
31152
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.
31158
31159 2008-01-26 Pavel Roskin <proski@gnu.org>
31160
31161 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31162 just return an error.
31163
31164 2008-01-26 Bean <bean123ch@gmail.com>
31165
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.
31169
31170 2008-01-25 Robert Millan <rmh@aybabtu.com>
31171
31172 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31173 make all filesystem sources appear together (possibly fixing omissions
31174 while at it).
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.
31179
31180 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31181 add `kern/file.c'.
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.
31186
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.
31190
31191 * genmk.rb: Update copyright year (2007).
31192
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.
31199
31200 2008-01-25 Robert Millan <rmh@aybabtu.com>
31201
31202 Revert my previous commits (based on wrong assumption of how grub_errno
31203 works).
31204
31205 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31206 * kern/file.c (grub_file_open): Likewise.
31207
31208 2008-01-24 Pavel Roskin <proski@gnu.org>
31209
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
31216 limitations.
31217
31218 2008-01-24 Robert Millan <rmh@aybabtu.com>
31219
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.
31223
31224 2008-01-24 Bean <bean123ch@gmail.com>
31225
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.
31230
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.
31236
31237 2008-01-23 Robert Millan <rmh@aybabtu.com>
31238
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.
31242
31243 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31244 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31245
31246 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31247 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31248
31249 2008-01-23 Robert Millan <rmh@aybabtu.com>
31250
31251 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31252 #ifdef'ed out grub_printf().
31253
31254 2008-01-23 Robert Millan <rmh@aybabtu.com>
31255
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.
31259
31260 2008-01-23 Robert Millan <rmh@aybabtu.com>
31261
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.
31268
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.
31274
31275 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31276 keyboard on i386.
31277
31278 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31279 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31280
31281 2008-01-23 Robert Millan <rmh@aybabtu.com>
31282
31283 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31284 present, "(memdisk)/boot/grub" becomes the default prefix.
31285
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.
31289
31290 2008-01-23 Robert Millan <rmh@aybabtu.com>
31291
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.
31301
31302 * include/grub/i386/ieee1275/loader.h: New file.
31303
31304 * include/grub/i386/ieee1275/machine.h: Likewise.
31305
31306 * include/grub/i386/ieee1275/memory.h: Likewise.
31307
31308 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
31309 variable declaration.
31310 (grub_os_area_size): Likewise.
31311
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).
31316
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"'.
31321
31322 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
31323 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
31324
31325 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
31326 rely on grub_multiboot2_real_boot() for final boot.
31327
31328 2008-01-22 Robert Millan <rmh@aybabtu.com>
31329
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
31337 found.
31338
31339 2008-01-22 Robert Millan <rmh@aybabtu.com>
31340
31341 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
31342 avoid claiming over our own code.
31343
31344 2008-01-22 Bean <bean123ch@gmail.com>
31345
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.
31350
31351 * video/readers/jpeg.c : New file.
31352
31353 2008-01-22 Bean <bean123ch@gmail.com>
31354
31355 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
31356 there are no more items.
31357
31358 2008-01-21 Robert Millan <rmh@aybabtu.com>
31359
31360 * kern/mm.c (grub_mm_init_region): Improve debug message.
31361
31362 2008-01-21 Robert Millan <rmh@aybabtu.com>
31363
31364 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
31365 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
31366 address.
31367 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
31368 a C macro.
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
31373 upper memory.
31374
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.
31382
31383 2008-01-21 Robert Millan <rmh@aybabtu.com>
31384
31385 * disk/memdisk.c (memdisk_size): New variable.
31386 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
31387 `memdisk_size'.
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.
31392
31393 2008-01-21 Robert Millan <rmh@aybabtu.com>
31394
31395 Fix detection of very small filesystems (like tar).
31396
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).
31401
31402 2008-01-21 Robert Millan <rmh@aybabtu.com>
31403
31404 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
31405 on grub_biosdisk_rw_standard() error.
31406
31407 2008-01-21 Robert Millan <rmh@aybabtu.com>
31408
31409 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
31410 recent changes.
31411 * kern/elf.c: Likewise.
31412 * kern/ieee1275/ieee1275.c: Likewise.
31413 * kern/powerpc/ieee1275/openfw.c: Likewise.
31414 * term/ieee1275/ofconsole.c: Likewise.
31415
31416 2008-01-21 Robert Millan <rmh@aybabtu.com>
31417
31418 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
31419
31420 * include/grub/kernel.h (grub_arch_memdisk_addr)
31421 (grub_arch_memdisk_size): Moved from here ...
31422
31423 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
31424 (grub_arch_memdisk_size): ... to here.
31425
31426 2008-01-21 Robert Millan <rmh@aybabtu.com>
31427
31428 Mostly based on bugfix from Bean.
31429
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()
31433 declaration.
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()
31437 declaration.
31438
31439 2008-01-21 Robert Millan <rmh@aybabtu.com>
31440
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.
31446
31447 * disk/memdisk.c: New file.
31448
31449 * include/grub/disk.h (grub_disk_dev_id): Add
31450 `GRUB_DISK_DEVICE_MEMDISK_ID'.
31451
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.
31458
31459 * include/grub/i386/pc/memory.h
31460 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
31461
31462 * include/grub/kernel.h: Include `<grub/symbol.h>'.
31463 (grub_arch_memdisk_addr): New variable declaration.
31464 (grub_arch_memdisk_size): Likewise.
31465
31466 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
31467 (grub_arch_memdisk_size): Likewise.
31468
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.
31472
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().
31481
31482 2008-01-20 Robert Millan <rmh@aybabtu.com>
31483
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.
31487
31488 2008-01-20 Robert Millan <rmh@aybabtu.com>
31489
31490 Fix detection of "real mode" when /options/real-mode? doesn't exist.
31491
31492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
31493 declaration.
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
31498 property).
31499 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
31500 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
31501
31502 2008-01-19 Robert Millan <rmh@aybabtu.com>
31503
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
31507 prototype.
31508 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31509 function.
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().
31513
31514 2008-01-19 Robert Millan <rmh@aybabtu.com>
31515
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.
31519
31520 2008-01-19 Robert Millan <rmh@aybabtu.com>
31521
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.
31531
31532 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31533 (grub_console_init): On coreboot/LinuxBIOS, call
31534 grub_keyboard_controller_init().
31535
31536 2008-01-19 Robert Millan <rmh@aybabtu.com>
31537
31538 PowerPC changes provided by Pavel Roskin.
31539
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.
31545
31546 2008-01-16 Robert Millan <rmh@aybabtu.com>
31547
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().
31555
31556 2008-01-15 Robert Millan <rmh@aybabtu.com>
31557
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.
31566
31567 2008-01-15 Robert Millan <rmh@aybabtu.com>
31568
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
31571 64-bit).
31572
31573 2008-01-15 Robert Millan <rmh@aybabtu.com>
31574
31575 * include/grub/ieee1275/ieee1275.h
31576 (grub_ieee1275_get_integer_property): New function prototype.
31577
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.
31581
31582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
31583 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
31584 where appropriate.
31585 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
31586 (grub_map): Likewise.
31587 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
31588
31589 2008-01-15 Bean <bean123ch@gmail.com>
31590
31591 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
31592 (grub_script_execute_cmdline): Reset grub_errno.
31593
31594 * normal/main.c (read_config_file): Reset grub_errno.
31595
31596 * normal/parse.y (script_init): New.
31597 (script): Move function and menuentry here.
31598 (delimiter): New.
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.
31604
31605 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
31606
31607 2008-01-15 Robert Millan <rmh@aybabtu.com>
31608
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.
31614
31615 2008-01-15 Robert Millan <rmh@aybabtu.com>
31616
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.
31620
31621 2008-01-15 Christian Franke <franke@computer.org>
31622
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.
31634
31635 2008-01-14 Robert Millan <rmh@aybabtu.com>
31636
31637 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
31638 for grub_ieee1275_exit(), in order to improve portability.
31639
31640 2008-01-14 Robert Millan <rmh@aybabtu.com>
31641
31642 * util/grub.d/10_linux.in (prefix): Define.
31643 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
31644
31645 2008-01-13 Pavel Roskin <proski@gnu.org>
31646
31647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
31648 grub_errno if no errors have been detected.
31649
31650 2008-01-12 Robert Millan <rmh@aybabtu.com>
31651
31652 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
31653 (grub_util_get_dev_abstraction): New function prototype.
31654
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).
31658
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'.
31663
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.
31668
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
31676 insmod commands).
31677
31678 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
31679
31680 Remove some unused code from reiserfs.
31681
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]:
31686 Likewise.
31687 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31688 Likewise.
31689 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31690 Likewise.
31691 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31692 Likewise.
31693 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31694 Likewise.
31695 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
31696 Likewise.
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.
31700
31701 2008-01-10 Robert Millan <rmh@aybabtu.com>
31702
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.
31710
31711 2008-01-10 Pavel Roskin <proski@gnu.org>
31712
31713 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
31714 to compile reiserfs.c on PowerPC.
31715
31716 2008-01-10 Robert Millan <rmh@aybabtu.com>
31717
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.
31722
31723 2008-01-08 Robert Millan <rmh@aybabtu.com>
31724
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.
31728
31729 2008-01-08 Robert Millan <rmh@aybabtu.com>
31730
31731 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
31732 `$(update-grub_DATA)'.
31733 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
31734 targets.
31735
31736 2008-01-07 Robert Millan <rmh@aybabtu.com>
31737
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).
31741
31742 2008-01-07 Robert Millan <rmh@aybabtu.com>
31743
31744 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
31745 listing actual TODO items.
31746
31747 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31748
31749 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
31750 correctly.
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.
31755
31756 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
31757 better to remove the bitfield version completely.
31758
31759 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31760
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.
31764
31765 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31766
31767 Mostly from Vincent Pelletier:
31768
31769 * fs/reiserfs.c: New file.
31770
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.
31775
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
31779 normal/color.c.
31780
31781 2008-01-06 Robert Millan <rmh@aybabtu.com>
31782
31783 * normal/color.c: Remove `<grub/env.h>'.
31784
31785 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
31786
31787 * include/grub/normal.h: Include <grub/env.h>.
31788
31789 2008-01-05 Robert Millan <rmh@aybabtu.com>
31790
31791 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
31792 usage example with `(hd0,1)'.
31793 Reported by Samuel Thibault.
31794
31795 2008-01-05 Robert Millan <rmh@aybabtu.com>
31796
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.
31802
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.
31807
31808 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
31809 (grub_linux_boot): Remove function.
31810
31811 2008-01-05 Robert Millan <rmh@aybabtu.com>
31812
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.
31816
31817 * normal/color.c: New file.
31818
31819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31820 (normal_mod_DEPENDENCIES): Likewise.
31821
31822 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31823 (normal_mod_DEPENDENCIES): Likewise.
31824
31825 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31826 (normal_mod_DEPENDENCIES): Likewise.
31827
31828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31829 (normal_mod_DEPENDENCIES): Likewise.
31830
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.
31837
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.
31852
31853 2008-01-05 Robert Millan <rmh@aybabtu.com>
31854
31855 * kern/env.c (grub_env_context_open): Propagate hooks for global
31856 variables to new context.
31857
31858 * kern/main.c (grub_set_root_dev): Export `root' variable.
31859
31860 2008-01-05 Robert Millan <rmh@aybabtu.com>
31861
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
31864 them.
31865
31866 2008-01-05 Robert Millan <rmh@aybabtu.com>
31867
31868 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
31869
31870 2008-01-04 Christian Franke <franke@computer.org>
31871
31872 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
31873 of eisa_mmap.
31874
31875 2008-01-03 Pavel Roskin <proski@gnu.org>
31876
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.
31883
31884 2008-01-02 Robert Millan <rmh@aybabtu.com>
31885
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.
31889
31890 2008-01-02 Pavel Roskin <proski@gnu.org>
31891
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.
31895
31896 2008-01-01 Robert Millan <rmh@aybabtu.com>
31897
31898 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
31899
31900 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
31901
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.
31905
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.
31910
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.
31917
31918 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
31919 with grub_video_vbe_unmap_color_int.
31920
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
31935 settings.
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
31939 terminal coloring.
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
31943 coloring.
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.
31950
31951 2007-12-30 Pavel Roskin <proski@gnu.org>
31952
31953 * loader/multiboot_loader.c: Fix multiboot command
31954 unregistration. Fix all typos in the word "multiboot".
31955
31956 2007-12-29 Pavel Roskin <proski@gnu.org>
31957
31958 * util/grub.d/10_linux.in: Refactor search for initrd. Add
31959 support for initrd names used in Fedora.
31960
31961 2007-12-26 Bean <bean123ch@gmail.com>
31962
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.
31967
31968 * fs/cpio.c: New file.
31969
31970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
31971
31972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31973
31974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31975
31976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31977
31978 2007-12-25 Robert Millan <rmh@aybabtu.com>
31979
31980 * include/grub/term.h (struct grub_term): Add `getcolor' function.
31981 (grub_getcolor): New function.
31982
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
31989 values afterwards.
31990 (grub_menu_init_page): Likewise. Fill an additional colored space
31991 that would otherwise be left blank.
31992
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.
31999
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.
32008
32009 2007-12-25 Robert Millan <rmh@aybabtu.com>
32010
32011 * configure.ac: Search for possible unifont.hex locations, and
32012 define UNIFONT_HEX if found.
32013
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)'.
32030
32031 * util/update-grub_lib.in (font_path): Search for *.pff files in
32032 a few more locations, including `${pkgdata}'.
32033
32034 2007-12-23 Robert Millan <rmh@aybabtu.com>
32035
32036 Patch from Bean <bean123ch@gmail.com>:
32037 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32038 `size'.
32039
32040 2007-12-21 Bean <bean123ch@gmail.com>
32041
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.
32046
32047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32048 (grub_probe_SOURCES): Likewise.
32049 (grub_emu_SOURCES): Likewise.
32050
32051 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32052 (grub_emu_SOURCES): Likewise.
32053
32054 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32055 (grub_emu_SOURCES): Likewise.
32056
32057 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32058 (grub_emu_SOURCES): Likewise.
32059
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.
32075
32076 * fs/ntfscomp.c: New file.
32077
32078 * include/grub/ntfs.h: New file.
32079
32080 2007-12-16 Robert Millan <rmh@aybabtu.com>
32081
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.
32085
32086 2007-12-15 Bean <bean123ch@gmail.com>
32087
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.
32092
32093 * boot/i386/pc/lnxboot.S: New file.
32094
32095 2007-11-24 Pavel Roskin <proski@gnu.org>
32096
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.
32103
32104 2007-11-24 Pavel Roskin <proski@gnu.org>
32105
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.
32110
32111 2007-11-18 Christian Franke <franke@computer.org>
32112
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.
32116
32117 2007-11-18 Christian Franke <franke@computer.org>
32118
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.
32122
32123 2007-11-18 Christian Franke <franke@computer.org>
32124
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)".
32130
32131 2007-11-18 Christian Franke <franke@computer.org>
32132
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.
32136
32137 2007-11-18 Bean <bean123ch@gmail.com>
32138
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.
32143
32144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32145
32146 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32147
32148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32149
32150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32151
32152 * include/grub/hexdump.h: New file.
32153
32154 * commands/hexdump.c: New file.
32155
32156 2007-11-10 Robert Millan <rmh@aybabtu.com>
32157
32158 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32159 in grub_outb() calls.
32160 (beep_on): Likewise.
32161
32162 2007-11-10 Christian Franke <franke@computer.org>
32163
32164 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32165 (grub_menu_run): Likewise.
32166
32167 2007-11-10 Robert Millan <rmh@aybabtu.com>
32168
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.
32174
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'.
32179
32180 2007-11-10 Bean <bean123ch@gmail.com>
32181
32182 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32183
32184 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32185
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.
32190
32191 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32192 grub_outb() calls.
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
32200 information.
32201 (grub_vga_putchar): Likewise.
32202 (grub_vga_getcharwidth): Likewise.
32203
32204 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32205
32206 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32207 flags.
32208 (pxeboot_img_LDFLAGS): Likewise.
32209 (diskboot_img_LDFLAGS): Likewise.
32210 (kernel_img_LDFLAGS): Likewise.
32211
32212 2007-11-06 Robert Millan <rmh@aybabtu.com>
32213
32214 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32215 in grub_outb() calls.
32216 (serial_hw_init): Likewise.
32217
32218 2007-11-05 Robert Millan <rmh@aybabtu.com>
32219
32220 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32221 spaces. Skip non-regular files.
32222
32223 2007-11-05 Robert Millan <rmh@aybabtu.com>
32224
32225 * kern/disk.c (grub_disk_firmware_fini)
32226 (grub_disk_firmware_is_tainted): New variables.
32227
32228 * include/grub/disk.h (grub_disk_firmware_fini)
32229 (grub_disk_firmware_is_tainted): Likewise.
32230
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'.
32237
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.
32242
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.
32247
32248 2007-11-05 Robert Millan <rmh@aybabtu.com>
32249
32250 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32251 (grub_ata_wait): Reimplement using grub_millisleep().
32252
32253 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32254 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32255
32256 2007-11-03 Marco Gerards <marco@gnu.org>
32257
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
32268 screen.
32269 (grub_console_setcursor): Implemented.
32270
32271 2007-11-03 Marco Gerards <marco@gnu.org>
32272
32273 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32274 become activate.
32275 (grub_ata_pio_write): Likewise.
32276
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.
32281
32282 2007-11-03 Marco Gerards <marco@gnu.org>
32283
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'.
32288
32289 2007-11-03 Marco Gerards <marco@gnu.org>
32290
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
32293 multiple sectors.
32294
32295 2007-10-31 Robert Millan <rmh@aybabtu.com>
32296
32297 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
32298
32299 * conf/i386-linuxbios.rmk: New file.
32300
32301 * kern/i386/pc/hardware.c: Likewise.
32302 * term/i386/pc/at_keyboard.c: Likewise.
32303 * term/i386/pc/vga_text.c: Likewise.
32304
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.
32313
32314 * kern/i386/linuxbios/init.c: Likewise.
32315 * kern/i386/linuxbios/startup.S: Likewise.
32316 * kern/i386/linuxbios/table.c: Likewise.
32317
32318 2007-10-31 Marco Gerards <marco@gnu.org>
32319
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.
32324
32325 * disk/ata.c: New file.
32326
32327 * include/grub/disk.h (grub_disk_dev_id): Add
32328 `GRUB_DISK_DEV_ATA_ID'.
32329
32330 2007-10-31 Robert Millan <rmh@aybabtu.com>
32331
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.
32334
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.
32337
32338 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
32339 `<grub/types.h>'.
32340
32341 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
32342
32343 2007-10-27 Robert Millan <rmh@aybabtu.com>
32344
32345 * include/grub/types.h (ULONG_MAX): Define macro.
32346
32347 2007-10-22 Robert Millan <rmh@aybabtu.com>
32348
32349 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
32350 `"../realmode.S"'.
32351 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
32352
32353 2007-10-22 Robert Millan <rmh@aybabtu.com>
32354
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
32358 variables.
32359
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.
32365
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().
32369
32370 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
32371
32372 2007-10-22 Robert Millan <rmh@aybabtu.com>
32373
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.
32378
32379 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
32380 instances to ...
32381 (KERNEL_MACHINE_TIME_HEADER): ... this.
32382 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32383 instances to ...
32384 (KERNEL_MACHINE_TIME_HEADER): ... this.
32385 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32386 instances to ...
32387 (KERNEL_MACHINE_TIME_HEADER): ... this.
32388
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.
32399
32400 * include/grub/misc.h (grub_div_roundup): New function.
32401
32402 * kern/misc.c: Include `<grub/time.h>'.
32403 (grub_millisleep_generic): New function.
32404
32405 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
32406 Add `time.h'.
32407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
32408 Add `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.
32412
32413 2007-10-21 Robert Millan <rmh@aybabtu.com>
32414
32415 * include/grub/misc.h (grub_max): New function.
32416
32417 2007-10-21 Robert Millan <rmh@aybabtu.com>
32418
32419 * util/misc.c (grub_util_info): Call fflush() before returning.
32420
32421 2007-10-20 Robert Millan <rmh@aybabtu.com>
32422
32423 * genmk.rb (Image): Copy `extra_flags' from here ...
32424 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
32425
32426 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
32427 to `argc' and `args' arguments.
32428
32429 2007-10-17 Robert Millan <rmh@aybabtu.com>
32430
32431 * kern/i386/loader.S: New file.
32432
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.
32447
32448 * kern/i386/realmode.S: New file.
32449
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.
32456
32457 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
32458 `kern/i386/realmode.S'.
32459
32460 2007-10-17 Robert Millan <rmh@aybabtu.com>
32461
32462 * include/grub/i386/loader.h: New file.
32463
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.
32474
32475 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
32476
32477 2007-10-15 Robert Millan <rmh@aybabtu.com>
32478
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.
32486
32487 2007-10-12 Robert Millan <rmh@aybabtu.com>
32488
32489 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
32490 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
32491
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.
32498
32499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32500 Renamed from to ...
32501 (GRUB_MOD_ALIGN): ...this. Update all users.
32502
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.
32511
32512 2007-10-12 Robert Millan <rmh@aybabtu.com>
32513
32514 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32515 * util/elf/grub-mkimage.c: ... here.
32516
32517 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32518 `util/powerpc/ieee1275/grub-mkimage.c'.
32519
32520 2007-10-07 Robert Millan <rmh@aybabtu.com>
32521
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.
32529
32530 2007-10-03 Robert Millan <rmh@aybabtu.com>
32531
32532 * include/grub/i386/io.h: New file.
32533 * commands/i386/pc/play.c (inb): Removed.
32534 (outb): Removed.
32535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32536 with grub_outb().
32537 * term/i386/pc/serial.c (inb): Removed.
32538 (outb): Removed.
32539 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32540 with grub_outb().
32541 * term/i386/pc/vga.c (inb): Removed.
32542 (outb): Removed.
32543 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32544 with grub_outb().
32545
32546 2007-10-02 Robert Millan <rmh@aybabtu.com>
32547
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.
32551
32552 2007-09-07 Robert Millan <rmh@aybabtu.com>
32553
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
32558 known broken.
32559
32560 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32561
32562 From Hitoshi Ozeki:
32563 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
32564 when merging two regions.
32565
32566 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32567
32568 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
32569 * normal/completion.c (grub_normal_do_completion): Likewise.
32570 Reported by Hitoshi Ozeki.
32571
32572 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32573
32574 Do not use devices at boot in chainloading.
32575
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>.
32582
32583 2007-08-29 Robert Millan <rmh@aybabtu.com>
32584
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.
32593
32594 2007-08-28 Robert Millan <rmh@aybabtu.com>
32595
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"
32599 feature).
32600
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.
32606
32607 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
32608
32609 * DISTLIST: Add util/i386/get_disk_name.c and
32610 util/ieee1275/get_disk_name.c.
32611
32612 * util/grub-mkdevicemap.c: Replace device naming logic with
32613 grub_util_get_disk_name() calls.
32614
32615 2007-08-20 Robert Millan <rmh@aybabtu.com>
32616
32617 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
32618 (so that it works for both plural and singular quantities).
32619
32620 2007-08-05 Robert Millan <rmh@aybabtu.com>
32621
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.
32624
32625 2007-08-02 Marco Gerards <marco@gnu.org>
32626
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'.
32640
32641 2007-08-02 Bean <bean123ch@gmail.com>
32642
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.
32647
32648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
32649 (grub_probe_SOURCES): Likewise.
32650 (grub_emu_SOURCES): Likewise.
32651
32652 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32653 (grub_emu_SOURCES): Likewise.
32654
32655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32656 (grub_emu_SOURCES): Likewise.
32657
32658 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
32659
32660 * fs/ntfs.c: New file.
32661
32662 2007-08-02 Bean <bean123ch@gmail.com>
32663
32664 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
32665
32666 * file.h (grub_file): Likewise.
32667
32668 * fshelp.h (grub_fshelp_read_file): Likewise.
32669
32670 * util/i386/pc/grub-setup.c (setup): Likewise.
32671 (save_first_sector): Likewise.
32672 (save_blocklists): Likewise.
32673
32674 * fs/affs.c (grub_affs_read_file): Likewise.
32675
32676 * fs/ext2.c (grub_ext2_read_file): Likewise.
32677
32678 * fs/fat.c (grub_fat_read_data): Likewise.
32679
32680 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
32681
32682 * fs/hfs.c (grub_hfs_read_file): Likewise.
32683
32684 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32685
32686 * fs/jfs.c (grub_jfs_read_file): Likewise.
32687
32688 * fs/minix.c (grub_minix_read_file): Likewise.
32689
32690 * fs/sfs.c (grub_sfs_read_file): Likewise.
32691
32692 * fs/ufs.c (grub_ufs_read_file): Likewise.
32693
32694 * fs/xfs.c (grub_xfs_read_file): Likewise.
32695
32696 * command/blocklist.c (read_blocklist): Likewise.
32697 (print_blocklist): Likewise.
32698
32699 2007-08-02 Marco Gerards <marco@gnu.org>
32700
32701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
32702 `util/hostfs.c'.
32703
32704 * disk/host.c: New file.
32705
32706 * util/hostfs.c: Likewise.
32707
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.
32712
32713 * include/grub/disk.h (enum grub_disk_dev_id): Add
32714 `GRUB_DISK_DEVICE_HOST_ID'.
32715
32716 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
32717
32718 2007-07-24 Jerone Young <jerone@gmail.com>
32719
32720 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
32721 modules for compilation.
32722 * conf/powerpc-ieee1275.rmk: Likewise.
32723
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.
32733
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
32740 2 functions.
32741 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
32742 ieee1275 specific multiboot2 code.
32743
32744 * kern/i386/pc/startup.S: Change headers and definition names for
32745 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
32746
32747 2007-07-22 Robert Millan <rmh@aybabtu.com>
32748
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.
32753
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].
32757
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.
32766
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
32772 functions.
32773
32774 2007-07-22 Robert Millan <rmh@aybabtu.com>
32775
32776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
32777 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
32778
32779 2007-07-22 Robert Millan <rmh@aybabtu.com>
32780
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
32787 was set.
32788
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.
32792
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.
32796
32797 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
32798 when nvsetenv failed.
32799
32800 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32801
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.
32805
32806 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32807
32808 Migrate to GNU General Public License Version 3.
32809
32810 * COPYING: Replaced with the plain text version of GPLv3.
32811
32812 * config.guess: Updated from gnulib.
32813 * config.sub: Likewise.
32814
32815 * geninit.sh: Output a GPLv3 copyright notice.
32816 * geninitheader.sh: Likewise.
32817 * genmodsrc.sh: Likewise.
32818 * gensymlist.sh.in: Likewise.
32819
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.
33069
33070 2007-07-02 Robert Millan <rmh@aybabtu.com>
33071
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.
33077
33078 * util/grub-emu.c (main): Fix unchecked pointer handling.
33079
33080 2007-07-02 Robert Millan <rmh@aybabtu.com>
33081
33082 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33083 invocation to fail, in order to support partition-less media.
33084
33085 * util/i386/pc/grub-install.in: Likewise.
33086
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).
33089
33090 Also use grub-probe to get rid of unportable /proc/mounts check.
33091
33092 Print the same informational message that the other scripts do, before
33093 exiting.
33094
33095 2007-06-23 Robert Millan <rmh@aybabtu.com>
33096
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.
33099
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.
33103
33104 * util/grub.d/00_header.in: Handle multiple terminals, based on
33105 environment setup by update-grub.
33106
33107 2007-06-23 Robert Millan <rmh@aybabtu.com>
33108
33109 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33110
33111 2007-06-21 Robert Millan <rmh@aybabtu.com>
33112
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.
33117
33118 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33119 space for it.
33120 * kern/i386/efi/startup.S: Likewise.
33121
33122 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33123 during image generation. Implement --prefix option to override this
33124 patch.
33125 * util/i386/efi/grub-mkimage.c: Likewise.
33126
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.
33129
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.
33133
33134 2007-06-13 Robert Millan <rmh@aybabtu.com>
33135
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
33139 defining them.
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.
33145
33146 2007-06-12 Robert Millan <rmh@aybabtu.com>
33147
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
33151 "pcdata".
33152 * util/grub-probe.c (probe): Likewise for "drive_name".
33153
33154 2007-06-11 Robert Millan <rmh@aybabtu.com>
33155
33156 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33157 not just the cdrom one.
33158
33159 2007-06-11 Robert Millan <rmh@aybabtu.com>
33160
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.
33166
33167 2007-06-11 Robert Millan <rmh@aybabtu.com>
33168
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.
33172
33173 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33174
33175 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33176 list of video modes.
33177
33178 2007-06-06 Robert Millan <rmh@aybabtu.com>
33179
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.
33182
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.
33186
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
33190 handles that).
33191
33192 2007-06-04 Robert Millan <rmh@aybabtu.com>
33193
33194 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33195
33196 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33197
33198 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33199
33200 2007-06-04 Robert Millan <rmh@aybabtu.com>
33201
33202 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33203
33204 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33205 grub_apple_partition_map_fini.
33206
33207 * util/biosdisk.c
33208 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33209 to access >2 TiB disks).
33210
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).
33214
33215 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33216 into a generic case that supports all (sane) partition maps.
33217
33218 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33219 breaks big-endian.
33220
33221 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33222 and grub_apple_partition_map_fini() after that.
33223
33224 2007-06-01 Robert Millan <rmh@aybabtu.com>
33225
33226 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33227
33228 * util/grub.d/00_header.in: Only enable gfxterm when
33229 convert_system_path_to_grub_path() succeeds.
33230
33231 2007-05-20 Robert Millan <rmh@aybabtu.com>
33232
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
33236 $(lib_DATA).
33237 * Makefile.in: Add install routine for $(lib_DATA).
33238
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
33241 unifont.pff.
33242 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33243 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33244
33245 2007-05-19 Robert Millan <rmh@aybabtu.com>
33246
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.
33251
33252 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33253
33254 * kern/disk.c (grub_disk_read): Check return value of
33255 grub_realloc().
33256
33257 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33258
33259 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33260 arrays.
33261 * disk/raid.c (grub_raid_open): Likewise.
33262
33263 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33264
33265 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33266 stack instead of on the heap.
33267
33268 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33269 before doing a read on it.
33270
33271 * configure.ac: Only use -fno-stack-protector for the target
33272 environment.
33273
33274 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33275
33276 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33277 __attribute_ ((unused)) to mode_type argument.
33278
33279 * util/getroot.c (grub_guess_root_device): Fix #endif.
33280
33281 * kern/misc.c (memcmp): Fix prototype.
33282
33283 * include/grub/partition.h [GRUB_UTIL]
33284 (grub_gpt_partition_map_init): Add prototype.
33285 (grub_gpt_partition_map_fini): Likewise.
33286
33287 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
33288 at the right place.
33289
33290 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
33291 (grub_fat_read_data): Likewise.
33292 (grub_fat_find_dir): Likewise.
33293
33294 * font/manager.c (find_glyph): Make table a const.
33295 (grub_font_get_glyph): Remove bitmap from if statement.
33296
33297 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
33298
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
33303 prototype.
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.
33310
33311 2007-05-16 Robert Millan <rmh@aybabtu.com>
33312
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.
33320
33321 2007-05-16 Robert Millan <rmh@aybabtu.com>
33322
33323 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
33324
33325 2007-05-16 Robert Millan <rmh@aybabtu.com>
33326
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
33331 include.
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.
33336
33337 2007-05-16 Robert Millan <rmh@aybabtu.com>
33338
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.
33349
33350 2007-05-15 Robert Millan <rmh@aybabtu.com>
33351
33352 * util/update-grub.in: Remove duplicated line in grub.cfg header
33353 message.
33354
33355 2007-05-13 Robert Millan <rmh@aybabtu.com>
33356
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.
33362
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 `'.
33365
33366 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
33367
33368 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
33369 the grub.cfg header message.
33370
33371 2007-05-11 Robert Millan <rmh@aybabtu.com>
33372
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.
33377 Remove test mode.
33378
33379 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
33380
33381 * Makefile.in: Add the datarootdir autoconf variable.
33382
33383 2007-05-09 Robert Millan <rmh@aybabtu.com>
33384
33385 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
33386 fail gracefully if dev->disk->partition == NULL.
33387
33388 2007-05-07 Robert Millan <rmh@aybabtu.com>
33389
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.
33394
33395 2007-05-07 Robert Millan <rmh@aybabtu.com>
33396
33397 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
33398 source directory differs from build directory.
33399
33400 2007-05-05 Robert Millan <rmh@aybabtu.com>
33401
33402 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
33403 initialisation.
33404
33405 2007-05-05 Robert Millan <rmh@aybabtu.com>
33406
33407 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
33408
33409 2007-05-05 Robert Millan <rmh@aybabtu.com>
33410
33411 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
33412 command-line arguments via ${GRUB_CMDLINE_LINUX}.
33413
33414 2007-05-05 Robert Millan <rmh@aybabtu.com>
33415
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
33421 install_bsd_part.
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.
33427
33428 2007-05-05 Robert Millan <rmh@aybabtu.com>
33429
33430 * term/i386/pc/console.c (grub_console_fini): Call
33431 grub_term_set_current() before grub_term_unregister().
33432
33433 2007-05-04 Robert Millan <rmh@aybabtu.com>
33434
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.
33446
33447 2007-05-01 Robert Millan <rmh@aybabtu.com>
33448
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.
33452
33453 2007-04-19 Robert Millan <rmh@aybabtu.com>
33454
33455 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
33456 it is used later.
33457
33458 2007-04-18 Jerone Young <jerone@gmail.com>
33459
33460 * kernel/elf.c: Add missing parenthesis for conditional statement
33461 stanza.
33462
33463 2007-04-10 Jerone Young <jerone@gmail.com>
33464
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.
33467
33468 2007-04-10 Jerone Young <jerone@gmail.com>
33469
33470 * configure.ac: Add argument for autoconf to use transformation
33471 ability.
33472 * Makefile.in: Add autoconf package transformation code.
33473 * util/i386/pc/grub-install.in: Likewise.
33474 * util/powerpc/ieee1275/grub-install.in: Likewise.
33475
33476 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33477
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
33483 "used_dirs".
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.
33488
33489 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33490
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.
33495
33496 2007-03-05 Marco Gerards <marco@gnu.org>
33497
33498 * normal/main.c (read_config_file): When "menu" is not set, create
33499 an initial context.
33500
33501 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33502
33503 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
33504 (HEAP_LIMIT): New macro.
33505 (grub_claim_heap): Claim memory up to `heaplimit'.
33506
33507 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33508
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):
33519 New macro.
33520 (GRUB_IEEE1275_MODULE_BASE): Removed.
33521
33522 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33523
33524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33525 loop boundary.
33526
33527 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33528
33529 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33530 All users updated.
33531 (grub_elf64_load_hook_t): Likewise.
33532 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33533 debug output.
33534
33535 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33536
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.
33543
33544 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33545
33546 * include/grub/ieee1275/ieee1275.h: Update copyright.
33547 * kern/powerpc/ieee1275/init.c: Likewise.
33548 * kern/powerpc/ieee1275/openfw.c: Likewise.
33549
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
33554 callers.
33555 (grub_elf64_load): Likewise.
33556 (grub_elf32_load_segment): Move to a nested function.
33557 (grub_elf64_load_segment): Likewise.
33558
33559 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33560
33561 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
33562 prototype.
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
33568 `grub_claim_heap'.
33569 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
33570 (grub_available_iterate): New function.
33571
33572 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
33573
33574 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
33575 * configure.ac: Use it for testing the HOST and TARGET compilers.
33576
33577 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
33578
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.
33586
33587 2006-12-12 Marco Gerards <marco@gnu.org>
33588
33589 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
33590
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
33593 pointer.
33594
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
33605 context.
33606
33607 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
33608 leak.
33609
33610 2006-12-11 Marco Gerards <marco@gnu.org>
33611
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.
33614
33615 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
33616
33617 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
33618
33619 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
33620
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>.
33624
33625 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
33626
33627 * kern/disk.c (grub_disk_read): When there is a read error, always
33628 try to read only the necessary data.
33629
33630 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
33631 disk/raid.c.
33632 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
33633 prototype.
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().
33641
33642 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33643
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.
33647
33648 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33649
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
33653 length.
33654
33655 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33656
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.
33680
33681 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
33682
33683 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
33684 `catch_result' to struct set_color_args.
33685
33686 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33687
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.
33691
33692 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33693
33694 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
33695
33696 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33697
33698 * kern/disk.c (grub_disk_open): Print debug messages when opening a
33699 disk.
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
33703 filesystem type.
33704 * kern/partition.c: Include misc.h.
33705 (grub_partition_iterate): Print debug messages when detecting
33706 partition type.
33707
33708 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33709
33710 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
33711 is negative.
33712 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
33713
33714 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
33715
33716 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33717 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
33718
33719 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
33720
33721 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
33722 instead of sizeof(lv). Patch by Michael Guntsche.
33723
33724 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
33725
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.
33730
33731 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33732
33733 * configure.ac (AC_INIT): Bumped to 1.95.
33734
33735 2006-10-14 Robert Millan <rmh@aybabtu.com>
33736
33737 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
33738 with "/dev/.static/dev/md".
33739
33740 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33741
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.
33746
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.
33750
33751 2006-10-14 Robert Millan <rmh@aybabtu.com>
33752
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.
33759
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.
33766
33767 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
33768 choose which information we want to print.
33769
33770 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33771
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.
33777
33778 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
33779
33780 Added support for RAID and LVM.
33781
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.
33790
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.
33797
33798 * kern/i386/pc/init.c (make_install_device): Copy the prefix
33799 verbatim if grub_install_dos_part is -2.
33800
33801 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
33802 and LVM devices.
33803
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.
33808
33809 * conf/common.rmk: Add RAID and LVM modules.
33810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
33811 util/lvm.c.
33812 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
33813
33814 * kern/misc.c (grub_strstr): New function.
33815 * include/grub/misc.h (grub_strstr): New prototype.
33816
33817 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
33818
33819 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
33820
33821 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
33822
33823 * kern/misc.c (grub_strtoull): Guess the base only if not
33824 specified.
33825
33826 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33827
33828 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
33829 PowerMac support.
33830
33831 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33832
33833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
33834
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
33847 code.
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.
33852
33853 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33854
33855 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
33856 `instance_to_package_args' to `instance_to_path_args'.
33857
33858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
33859 `grub_ieee1275_chosen'.
33860
33861 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
33862 `grub_ieee1275_interpret'.
33863
33864 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33865
33866 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
33867
33868 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33869
33870 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
33871 (__cmpdi): Likewise.
33872
33873 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
33874 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
33875 `grub_ssize_t'.
33876
33877 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
33878
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'.
33882
33883 2006-09-22 Marco Gerards <marco@gnu.org>
33884
33885 * normal/script.c (grub_script_create_cmdmenu): Skip leading
33886 newlines.
33887
33888 2006-09-22 Marco Gerards <marco@gnu.org>
33889
33890 * commands/echo.c: New file.
33891
33892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
33893
33894 * conf/common.rmk (echo_mod_SOURCES): New variable.
33895 (echo_mod_CFLAGS): Likewise.
33896 (echo_mod_LDFLAGS): Likewise.
33897
33898 2006-09-22 Marco Gerards <marco@gnu.org>
33899
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.
33903
33904 2006-09-22 Marco Gerards <marco@gnu.org>
33905
33906 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
33907 (normal_mod_DEPENDENCIES): Likewise.
33908
33909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
33910 (normal_mod_DEPENDENCIES): Likewise.
33911
33912 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
33913
33914 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
33915
33916 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
33917 programs.
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.
33925
33926 2006-09-22 Robert Millan <rmh@aybabtu.com>
33927
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.
33931
33932 2006-09-21 Robert Millan <rmh@aybabtu.com>
33933
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.
33937
33938 2006-09-14 Marco Gerards <marco@gnu.org>
33939
33940 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
33941 `-melf_i386'.
33942
33943 2006-09-14 Robert Millan <rmh@aybabtu.com>
33944
33945 * util/i386/pc/grub-install.in: Skip menu.lst when removing
33946 /boot/grub/*.lst.
33947
33948 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
33949
33950 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
33951 before adding it to device.map.
33952
33953 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
33954
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.
33962
33963 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
33964
33965 Move the prototypes of grub_setjmp and grub_longjmp to
33966 cpu/setjmp.h, so that each architecture may specify different
33967 attributes.
33968
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.
33975
33976 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
33977 [!GRUB_UTIL] (grub_longjmp): Removed.
33978
33979 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
33980
33981 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
33982 "color!" method does not return any value.
33983
33984 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
33985
33986 * include/grub/bitmap.h: New file.
33987
33988 * include/grub/i386/pc/vbeutil.h: Likewise.
33989
33990 * video/bitmap.c: Likewise.
33991
33992 * video/readers/tga.c: Likewise.
33993
33994 * video/i386/pc/vbeutil.c: Likewise.
33995
33996 * commands/videotest.c: Code cleanup and updated to reflect to new
33997 video API.
33998
33999 * term/gfxterm.c: Likewise.
34000
34001 * video/video.c: Likewise.
34002
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.
34011
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.
34019
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.
34026
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
34040 operator.
34041 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34042 operator.
34043
34044 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34045 include/grub/i386/pc/vbeblit.h.
34046
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.
34052
34053 * video/i386/pc/vbefill.c: Updated to reflect changes on
34054 include/grub/i386/pc/vbefill.h.
34055
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.
34068
34069 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34070
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
34073 available.
34074
34075 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34076
34077 * include/grub/video.h: Code cleanup.
34078
34079 * include/grub/i386/pc/vbe.h: Likewise.
34080
34081 * video/i386/pc/vbe.c: Likewise.
34082
34083 * video/i386/pc/vbeblit.c: Likewise.
34084
34085 * video/i386/pc/vbefill.c: Likewise.
34086
34087 * video/video.c: Likewise. Also added more comments.
34088
34089 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34090
34091 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34092 (struct grub_biosdisk_dap): Likewise.
34093
34094 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34095 linkage settings for all functions.
34096
34097 2006-07-12 Marco Gerards <marco@gnu.org>
34098
34099 * configure.ac (--enable-mm-debug): Fix typo.
34100
34101 * genkernsyms.sh.in: Use proper quoting for `CC'.
34102
34103 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34104
34105 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34106 (normal_mod_ASFLAGS): Remove "-m32".
34107
34108 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34109
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.
34114
34115 * util/grub-emu.c: Do not include malloc.h.
34116
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>.
34120
34121 * configure.ac (AC_GNU_SOURCE): Added.
34122 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34123 type.
34124
34125 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34126
34127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34128 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34129
34130 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34131
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.
34138
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.
34142
34143 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34144
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>.
34148
34149 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34150
34151 Count partitions from 1 instead of 0 in the string representation
34152 of partitions. Still use 0-based internally.
34153
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.
34160
34161 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34162 PCDATA->DOS_PART.
34163 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34164
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.
34169
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.
34174
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.
34181
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
34187 top.
34188 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34189
34190 * kern/i386/pc/init.c (make_install_device): Add 1 into
34191 GRUB_INSTALL_DOS_PART.
34192
34193 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34194 conditional.
34195
34196 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34197
34198 Clean up the code to support 64-bit addressing in disks and
34199 files. This change is not enough for filesystems yet.
34200
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
34206 convert addresses.
34207
34208 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34209 to grub_disk_addr_t.
34210
34211 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34212 string.
34213
34214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34215
34216 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34217 to char *.
34218
34219 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34220
34221 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34222
34223 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34224
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.
34228
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.
34234
34235 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34236 grub_disk_addr_t.
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
34239 grub_strtoul.
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,
34242 respectively.
34243
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.
34248
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
34255 grub_disk_addr_t.
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,
34265 respectively.
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
34269 grub_size_t.
34270
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
34275 to char *.
34276 (grub_gzio_read): Change the types of OFFSET and SIZE to
34277 grub_off_t and grub_size_t, respectively.
34278
34279 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34280 Removed.
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.
34286
34287 * include/grub/types.h (grub_off_t): Unconditionally set to
34288 grub_uint64_t.
34289 (grub_disk_addr_t): Changed to grub_uint64_t.
34290
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.
34296
34297 * include/grub/misc.h (grub_strtoull): New prototype.
34298 (grub_divmod64): Likewise.
34299
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.
34304
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.
34308
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
34312 "read_hook".
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
34315 grub_off_t.
34316 (grub_file_size): Return grub_off_t.
34317 (grub_file_tell): Likewise.
34318 All callers and references changed.
34319
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
34322 "write".
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
34325 "read_hook".
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.
34330
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
34336 return statement.
34337 (grub_iso9660_iterate_dir): Likewise.
34338 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
34339
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.
34342
34343 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34344
34345 * fs/jfs.c (grub_jfs_read_file): Likewise.
34346
34347 * fs/minix.c (grub_jfs_read_file): Likewise.
34348
34349 * fs/sfs.c (grub_jfs_read_file): Likewise.
34350
34351 * fs/ufs.c (grub_jfs_read_file): Likewise.
34352
34353 * fs/xfs.c (grub_jfs_read_file): Likewise.
34354
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,
34357 respectively.
34358
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.
34363
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.
34366
34367 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
34368 grub_file_read.
34369
34370 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
34371 string. Do not cast SECTOR explicitly.
34372
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.
34381
34382 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
34383 (grub_efidisk_write): Likewise.
34384
34385 * disk/loopback.c (delete_loopback): Cosmetic changes.
34386 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
34387 correctly.
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.
34391
34392 * commands/i386/pc/play.c: Include grub/machine/time.h.
34393
34394 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
34395 print FILE->SIZE.
34396
34397 * commands/configfile.c: Include grub/env.h.
34398
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.
34402
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.
34407
34408 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
34409 a length field.
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
34413 segment field.
34414 (blocklist_default_start): Allocate 64-bit space.
34415
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
34419 space.
34420 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
34421 is useless.
34422 (lba_mode): Refactored to support a 64-bit address. More size
34423 optimization.
34424 (setup_sectors): Likewise.
34425
34426 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34427
34428 * DISTLIST: Added include/grub/i386/linux.h. Removed
34429 include/grub/i386/pc/linux.h
34430
34431 * configure.ac (AC_INIT): Bumped to 1.94.
34432
34433 * config.guess: Updated from gnulib.
34434 * config.sub: Likewise.
34435 * install-sh: Likewise.
34436 * mkinstalldirs: Likewise.
34437
34438 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34439
34440 * conf/common.rmk (grub_modules_init.lst): Depended on
34441 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
34442 MODSRCFILES.
34443
34444 * genmk.rb (PModule::rule): Reverted the previous change.
34445
34446 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34447
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.
34453
34454 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
34455
34456 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
34457
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.
34461
34462 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34463
34464 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
34465 (PModule::rule): Likewise.
34466
34467 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34468
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.
34473
34474 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
34475
34476 * configure.ac (CMP): Check if cmp is available explicitly.
34477
34478 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
34479
34480 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
34481 (target_cpu): New variable.
34482 (pkglibdir): Use target_cpu instead of host_cpu.
34483
34484 * util/i386/pc/grub-install.in (host_cpu): Removed.
34485 (target_cpu): New variable.
34486 (pkglibdir): Use target_cpu instead of host_cpu.
34487
34488 * util/genmoddep.c: Removed.
34489
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.
34493
34494 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
34495 ...
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
34502 to ...
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
34509 to ...
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.
34515
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
34525 grub_host_ssize_t.
34526
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):
34534 Likewise.
34535 (genmoddep_SOURCES): Likewise.
34536
34537 * genmoddep.awk: New file.
34538
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,
34546 respectively.
34547
34548 * configure.ac: Rewritten intensively to use host and target
34549 instead of build and host, respectively.
34550
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.
34562 (AWK): Likewise.
34563 (include): Use target_cpu instead of host_cpu.
34564 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
34565
34566 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
34567
34568 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
34569
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
34574 changes.
34575
34576 * normal/execute.c (grub_script_execute_cmdif): Likewise.
34577
34578 * normal/script.c (grub_script_create_cmdif): Likewise.
34579
34580 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
34581
34582 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
34583 top.
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
34587 number.
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
34593 is found.
34594
34595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
34596 linux.mod.
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.
34603
34604 * DISTLIST: Added loader/i386/efi/linux.c,
34605 loader/i386/efi/linux_normal.c and
34606 include/grub/i386/efi/loader.h.
34607
34608 * loader/i386/efi/linux.c: New file.
34609 * loader/i386/efi/linux_normal.c: Likewise.
34610 * include/grub/i386/efi/loader.h: Likewise.
34611
34612 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
34613
34614 * commands/blocklist.c: New file.
34615
34616 * DISTLIST: Added commands/blocklist.c.
34617
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.
34623
34624 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
34625
34626 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
34627 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
34628
34629 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
34630 prototype.
34631
34632 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
34633 BG. The spec is wrong again.
34634
34635 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
34636 prototype.
34637 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
34638
34639 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34640 commands/blocklist.c.
34641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34642
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.
34647
34648 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
34649
34650 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
34651 duplication.
34652 (lba_mode): Use %eax more intensively to reduce the code size.
34653
34654 2006-05-20 Marco Gerards <marco@gnu.org>
34655
34656 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
34657
34658 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
34659 for `menuentry'.
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.
34667
34668 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
34669 front of the list, instead of to the end.
34670
34671 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
34672
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>.
34676
34677 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
34678
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.
34682
34683 * include/grub/i386/pc/linux.h: Moved to ...
34684 * include/grub/i386/linux.h: ... here.
34685
34686 * include/grub/i386/linux.h (struct linux_kernel_params): New
34687 struct.
34688
34689 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
34690
34691 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
34692 checking.
34693 (grub_video_vbe_blit_glyph): Likewise.
34694 (grub_video_vbe_blit_bitmap): Likewise.
34695 (grub_video_vbe_blit_render_target): Likewise.
34696
34697 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
34698
34699 * configure.ac (--with-platform): Properly quote the square
34700 brackets.
34701
34702 2006-05-08 Marco Gerards <marco@gnu.org>
34703
34704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
34705 this...
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.
34720
34721 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
34722 this...
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.
34737
34738 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
34739 `kernel.elf' instead of `grubof'.
34740
34741 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
34742
34743 Add --with-platform to configure. Use pkglibdir instead of
34744 pkgdatadir. This is reported by Roger Leigh.
34745
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.
34753
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.
34761
34762 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
34763 instead of GRUB_DATADIR.
34764 (main): Likewise.
34765 * util/i386/pc/grub-mkimage.c (usage): Likewise.
34766 (main): Likewise.
34767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34768 (main): Likewise.
34769
34770 * configure.ac (--with-platform): New option.
34771 Use PLATFORM instead of HOST_VENDOR to specify a platform.
34772
34773 * Makefile.in: Include a makefile based on PLATFORM instead of
34774 HOST_VENDOR.
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.
34782
34783 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
34784
34785 Use the environment context in the menu. Remove the commands
34786 "default" and "timeout", and use variables instead.
34787
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
34798 "fallback".
34799
34800 * normal/main.c (read_config_file): Do not initialize
34801 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
34802 NEWMENU->TIMEOUT.
34803 (grub_normal_execute): Use a data slot to store the menu.
34804
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.
34819
34820 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
34821 and timeout.mod.
34822 (normal_mod_SOURCES): Removed normal/context.c.
34823
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.
34827
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.
34831
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.
34835
34836 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
34837 timeout.mod.
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.
34844
34845 * DISTLIST: Removed commands/default.c, commands/timeout.c and
34846 normal/context.c.
34847
34848 * commands/default.c: Removed.
34849 * commands/timeout.c: Likewise.
34850 * normal/context.c: Likewise.
34851
34852 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
34853
34854 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
34855
34856 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
34857
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
34867 previous context.
34868 (grub_env_context_close): Rewritten according to the new
34869 scheme. Also, add an assertion to prevent the initial context from
34870 removed.
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
34879 function.
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.
34886
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
34892 "type".
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.
34899
34900 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34901
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.
34905
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.
34910
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
34915 other loaders.
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
34918 loader.
34919
34920 * kern/efi/init.c (grub_efi_set_prefix): Specify
34921 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
34922
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
34928 grub_efi_char16_t.
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
34932 path node.
34933
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
34939 grub_machine_fini.
34940
34941 * include/grub/efi/efi.h (grub_efi_get_device_path): New
34942 prototype.
34943 (grub_efi_get_loaded_image): Take an argument to specify an image
34944 handle.
34945
34946 * include/grub/loader.h (grub_loader_set): Added one more argument
34947 NORETURN.
34948
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.
34956
34957 * disk/efi/efidisk.c (device_path_guid): Moved to ...
34958 * kern/efi/efi.c (device_path_guid): ... here.
34959
34960 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
34961 chain.mod.
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.
34969
34970 * DISTLIST: Added include/grub/efi/chainloader.h,
34971 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
34972
34973 * include/grub/efi/chainloader.h: New file.
34974 * loader/efi/chainloader.c: Likewise.
34975 * loader/efi/chainloader_normal.c: Likewise.
34976
34977 2006-04-30 Marco Gerards <marco@gnu.org>
34978
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 `.'.
34982
34983 2006-04-30 Marco Gerards <marco@gnu.org>
34984
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.
34989
34990 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
34991
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
34999 entry.
35000
35001 2006-04-30 Marco Gerards <marco@gnu.org>
35002
35003 * include/grub/env.h (grub_env_export): New prototype. Reported
35004 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35005
35006 2006-04-30 Marco Gerards <marco@gnu.org>
35007
35008 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35009 size of the extents in a catalog file record.
35010
35011 2006-04-29 Marco Gerards <marco@gnu.org>
35012
35013 * commands/configfile.c (grub_cmd_configfile): Execute the
35014 configfile within its own context.
35015
35016 * include/grub/env.h (grub_env_context_open): New prototype.
35017 (grub_env_context_close): Likewise.
35018
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
35024 context.
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
35031 duplication.
35032 (grub_env_iterate): Rewritten so both the current context and the
35033 global context are being used.
35034
35035 * normal/command.c (export_command): New function.
35036 (grub_command_init): Register the `export' function.
35037
35038 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35039
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.
35066
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.
35071
35072 * include/grub/video.h: Do not include grub/symbol.h.
35073 (grub_video_register): Not exported. This symbol is not defined in
35074 the kernel.
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.
35097
35098 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35099 Undefined.
35100 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35101
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.
35106
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.
35111
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.
35116
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.
35121
35122 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35123 genkernsyms.sh.
35124
35125 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35126 genkernsyms.sh.
35127 (gensymlist.sh): New target.
35128 (genkernsyms.sh): Likewise.
35129
35130 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35131 genkernsyms.sh.in and gensymlist.sh.in.
35132
35133 * genkernsyms.sh: Removed.
35134 * gensymlist.sh: Likewise.
35135
35136 * genkernsyms.sh.in: New file.
35137 * gensymlist.sh.in: Likewise.
35138
35139 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35140
35141 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35142 clobber "prefix", since we may have already set it manually.
35143
35144 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35145
35146 * kern/misc.c (abort): New alias for grub_abort.
35147
35148 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35149
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".
35155
35156 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35157 PART.LEN.
35158
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.
35165
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.
35169
35170 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35171 (grub_machine_init): Do not set the prefix here.
35172
35173 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35174
35175 * kern/efi/init.c: Include grub/mm.h.
35176 (grub_efi_set_prefix): New function.
35177
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.
35182
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.
35192
35193 * kern/misc.c (grub_abort): Print a newline to distinguish
35194 the message.
35195
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.
35199
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.
35204
35205 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35206 and grub/disk.h.
35207 (grub_efidisk_get_device_handle): New prototype.
35208 (grub_efidisk_get_device_name): Likewise.
35209
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.
35221
35222 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35223
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.
35230
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.
35234
35235 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35236
35237 Use grub_abort instead of grub_stop, and grub_exit must be
35238 define in each architecture now. Also, this change adds support
35239 for EFI disks.
35240
35241 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35242 (grub_getkey): New function.
35243 (grub_term_get_current): Likewise.
35244
35245 * util/i386/pc/grub-setup.c: Include grub/term.h.
35246 (grub_getkey): New function.
35247 (grub_term_get_current): Likewise.
35248
35249 * util/misc.c (grub_stop): Renamed to ...
35250 (grub_exit): ... this.
35251
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.
35256
35257 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35258 abort.
35259
35260 * kern/i386/pc/startup.S (grub_exit): New function.
35261 (cold_reboot): New label.
35262
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.
35266
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.
35281
35282 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35283 (grub_enter_rescue_mode): Register "exit".
35284
35285 * kern/misc.c (grub_real_dprintf): A cosmetic change.
35286 (grub_abort): New function.
35287
35288 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
35289
35290 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
35291
35292 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
35293
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.
35298
35299 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
35300 * disk/efi/efidisk.c: Likewise.
35301
35302 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
35303
35304 * include/grub/efi/console_control.h
35305 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
35306
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
35313 grub_uint8_t.
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
35316 "subtype".
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.
35414
35415 * include/grub/misc.h (grub_stop): Removed.
35416 (grub_exit): New prototype.
35417 (grub_abort): Likewise.
35418
35419 * include/grub/disk.h (enum grub_disk_dev_id): Added
35420 GRUB_DISK_DEVICE_EFIDISK_ID.
35421
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.
35425
35426 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
35427
35428 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
35429 as it was simply too buggy.
35430
35431 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
35432
35433 * kern/misc.c (grub_lltoa): New function.
35434 (grub_vsprintf): Added support for the long long suffix,
35435 i.e. "ll".
35436
35437 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
35438
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
35447 variables.
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.
35451
35452 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
35453
35454 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
35455 length for unknown glyph.
35456
35457 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35458
35459 Add support for pre-loaded modules into the EFI port.
35460
35461 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
35462 completely. Accept one more argument DIR. The caller has changed.
35463
35464 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
35465
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.
35470
35471 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
35472 prototype.
35473
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.
35477
35478 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35479
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>.
35483
35484 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
35485
35486 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
35487
35488 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
35489
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.
35493
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.
35500
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.
35506
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.
35512
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.
35522
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.
35527
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.
35556
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.
35560
35561 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
35562
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.
35569
35570 * Makefile.in (RMKFILES): Added i386-efi.rmk.
35571
35572 * genmk.rb (PModule#rule): Do not export symbols if
35573 #{prefix}_EXPORTS is set to "no".
35574
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.
35586
35587 2006-04-17 Marco Gerards <marco@gnu.org>
35588
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.
35613
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
35625 global variables.
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.
35636
35637 * normal/parser.y (func_mem): Removed variable.
35638 (menu_entry): Likewise.
35639 (err): 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.
35650 (if): Likewise.
35651
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
35655 global variables.
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.
35665
35666 2006-04-16 Marco Gerards <marco@gnu.org>
35667
35668 * normal/command.c (grub_command_init): Remove the title command.
35669
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.
35675
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.
35679
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.
35690 (if): Likewise.
35691 (commands): Likewise. Add error handling.
35692
35693 * normal/script.c (grub_script_create_cmdline): If
35694 `grub_script_parsed' is 0, assume the parser encountered an error.
35695
35696 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
35697
35698 * configure.ac: Add support for EFI. Fix the typo
35699 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
35700
35701 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35702
35703 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
35704 foreign multibyte characters should be shown correctly.
35705
35706 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35707
35708 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
35709 calculation.
35710 (read_config_file): Made it to close file before returning.
35711
35712 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
35713
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.
35717
35718 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
35719 video/i386/pc/vbefill.c.
35720
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.
35724
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.
35729
35730 * include/grub/i386/pc/vbeblit.h: New file.
35731
35732 * include/grub/i386/pc/vbefill.h: New file.
35733
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.
35738
35739 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
35740 optimized fills.
35741 (grub_video_vbe_blit_render_target): Changed to use more optimized
35742 blits.
35743 (grub_video_vbe_setup): Added detection for optimized settings.
35744 (grub_video_vbe_create_render_target): Likewise.
35745
35746 * video/i386/pc/vbeblit.c: New file.
35747
35748 * video/i386/pc/vbefill.c: New file.
35749
35750 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
35751
35752 * font/manager.c (grub_font_get_glyph): Removed font fixup from
35753 here...
35754
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.
35758
35759 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
35760
35761 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
35762 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
35763
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.
35781
35782 * commands/videotest.c: New file.
35783
35784 * font/manager.c (fill_with_default_glyph): Modified to use
35785 grub_font_glyph.
35786 (grub_font_get_glyph): Likewise.
35787 (fontmanager): Renamed from this...
35788 (font_manager): ... to this.
35789
35790 * include/grub/font.h (grub_font_glyph): Added new structure.
35791 (grub_font_get_glyph): Modified to use grub_font_glyph.
35792
35793 * include/grub/misc.h (grub_abs): Added as inline function.
35794
35795 * include/grub/video.h: New file.
35796
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.
35824
35825 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
35826 from this...
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.
35857
35858 * normal/cmdline.c (cl_set_pos): Refresh the screen.
35859 (cl_insert): Likewise.
35860 (cl_delete): Likewise.
35861
35862 * term/gfxterm.c: New file.
35863
35864 * term/i386/pc/vesafb.c: Removed file.
35865
35866 * video/video.c: New file.
35867
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.
35905
35906 2006-03-10 Marco Gerards <marco@gnu.org>
35907
35908 * configure.ac (AC_INIT): Bumped to 1.93.
35909
35910 * DISTLIST: Added `include/grub/hfs.h'.
35911
35912 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
35913
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.
35916
35917 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
35918
35919 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
35920 Poe Chen <poe.poechen@gmail.com>.
35921
35922 2006-01-17 Marco Gerards <marco@gnu.org>
35923
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
35936 variables.
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
35950 the menu entry.
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.
35958
35959 2006-01-03 Marco Gerards <marco@gnu.org>
35960
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>.
35965
35966 2006-01-03 Marco Gerards <marco@gnu.org>
35967
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.
35972
35973 2006-01-03 Marco Gerards <marco@gnu.org>
35974
35975 * partmap/apple.c (apple_partition_map_iterate): Convert the data
35976 read from disk from big endian to host byte order.
35977
35978 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
35979
35980 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
35981 documentation.
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
35989 documentation.
35990 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
35991 New macros.
35992 (grub_hfsplus_volheader): Change type of member `magic' to
35993 `grub_uint16_t'.
35994 (grub_hfsplus_data): Add new member `embedded_offset'.
35995 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
35996 returned block.
35997 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
35998 Calculate the offset.
35999
36000 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36001
36002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36003 Removed.
36004 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36005
36006 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36007
36008 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36009 ENV->NAME is NULL after allocating ENV->VALUE.
36010
36011 2005-12-25 Marco Gerards <marco@gnu.org>
36012
36013 * kern/env.c (grub_env_set): Rewritten the error handling code.
36014
36015 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36016
36017 * geninit.sh: Made more robust, and more portable.
36018
36019 2005-12-25 Marco Gerards <marco@gnu.org>
36020
36021 Add support for Apple HFS+ filesystems.
36022
36023 * fs/hfsplus.c: New file.
36024
36025 * DISTLIST: Added `fs/hfsplus.c'.
36026
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.
36036
36037 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36038
36039 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36040
36041 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36042
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
36048 partmap/gpt.c.
36049 Removed kern/sparc64/cache.c.
36050
36051 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36052 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36053 grub_emu_init.c.
36054
36055 * configure.ac (AC_INIT): Bumped to 1.92.
36056
36057 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36058
36059 * kern/err.c (grub_error_push): Added new function to support error
36060 stacks.
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
36066 stack depth.
36067 (grub_print_error): Added support to print errors from error stack.
36068
36069 * include/grub/err.h (grub_error_push): Added function prototype.
36070 (grub_error_pop): Likewise.
36071
36072 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36073
36074 * configure.ac: Accept `powerpc64' as host_cpu.
36075 (amd64): Rename to `biarch32'.
36076
36077 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36078 non-cacheline-aligned addresses.
36079
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.
36083
36084 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36085
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
36088 directory name.
36089 (pkgdata_MODULES): Add `gpt.mod'.
36090 (gpt_mod_SOURCES): New variable.
36091 (gpt_mod_CFLAGS): Likewise.
36092 (gpt_mod_LDFLAGS): Likewise.
36093
36094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36095
36096 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36097 New macro.
36098
36099 * partmap/gpt.c: New file.
36100
36101 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36102 GPT partition map is detected.
36103
36104 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36105
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
36109 macros.
36110
36111 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36112
36113 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36114 ((unused))' to silence gcc warning.
36115
36116 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36117
36118 * configure.ac: Correct `AC_PROG_YACC' test.
36119
36120 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36121
36122 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36123 check before installing files.
36124
36125 2005-11-22 Mike Small <smallm@panix.com>
36126
36127 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36128 number regex so multidigit numbers are recognized correctly.
36129
36130 2005-11-22 Mike Small <smallm@panix.com>
36131
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.
36136
36137 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36138
36139 * term/tparm.c (get_space): Remove empty `if' statement.
36140
36141 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36142
36143 * kern/parser.c (check_varstate): Rename `state' to 's'.
36144
36145 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36146
36147 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36148 variable definitions to the beginning of each function. Sort stack
36149 variables by size.
36150 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36151 `buf' argument to `char *'.
36152
36153 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36154
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.
36185
36186 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36187 `grep --include'.
36188 (pkgdata_MODULES): Add test.mod.
36189
36190 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36191
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.
36195
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.
36199
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
36230 here...
36231 * conf/common.rmk: ... to here. New file.
36232
36233 * conf/common.mk: New file.
36234
36235 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36236
36237 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36238 (grub_script.tab.c): ... here.
36239
36240 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36241 (grub_script.tab.c): ... here.
36242
36243 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36244 (grub_script.tab.c): ... here.
36245
36246 * normal/command.c (grub_command_find): Fixed a memory leak of
36247 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36248
36249 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36250
36251 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36252 "@" which marks the start of a comment on ARM.
36253 (VARIABLE): Likewise.
36254
36255 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36256
36257 Add support for Linux/ADFS partition tables.
36258
36259 * partmap/acorn.c: New file.
36260
36261 * include/grub/acorn_filecore.h: Likewise.
36262
36263 * DISTLIST: Added `partmap/acorn.c' and
36264 `include/grub/acorn_filecore.h'.
36265
36266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36267 `partmap/acorn.c'.
36268 (pkgdata_MODULES): Add `acorn.mod'.
36269 (acorn_mod_SOURCES): New variable.
36270 (acorn_mod_CFLAGS): Likewise.
36271
36272 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36273 `partmap/acorn.c'.
36274 (pkgdata_MODULES): Add `acorn.mod'.
36275 (acorn_mod_SOURCES): New variable.
36276 (acorn_mod_CFLAGS): Likewise.
36277
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.
36283
36284 * include/types.h (grub_disk_addr_t): New typedef.
36285
36286 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
36287
36288 * geninit.sh: New file.
36289
36290 * geninitheader.sh: Likewise.
36291
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):
36298 Likewise.
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):
36303 Likewise.
36304 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
36305 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
36306 Likewise.
36307 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
36308 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
36309 Likewise.
36310 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
36311 Likewise.
36312 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
36313 Likewise.
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):
36335 Likewise.
36336
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.
36340
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
36344 all users.
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'.
36348
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
36351 rules.
36352
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.
36358
36359 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36360
36361 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
36362 escape sequence and a literal ^L to clear the screen.
36363
36364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
36365 when returning from Open Firmware.
36366
36367 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36368
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.
36375
36376 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
36377
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.
36391
36392 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
36393
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.
36404
36405 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
36406
36407 Add initial scripting support.
36408
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.
36416
36417 * configure.ac: Add `AC_PROG_YACC' test.
36418
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
36425 variables.
36426 (pkgdata_MODULES): Add `test.mod'.
36427 (grub_script.tab.c): New rule.
36428 (grub_script.tab.h): Likewise.
36429
36430 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
36431
36432 * include/grub/normal.h (grub_test_init): New prototype.
36433 (grub_test_fini): Likewise.
36434
36435 * normal/command.c: Include <grub/script.h>.
36436 (grub_command_execute): Rewritten.
36437
36438 * util/grub-emu.c (main): Call `grub_test_init' and
36439 `grub_test_fini'.
36440
36441 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36442
36443 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
36444 to 0.
36445 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
36446 there are no pending characters.
36447
36448 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36449
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'.
36453
36454 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36455
36456 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
36457 `debug' environment variable has been set.
36458
36459 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
36460
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
36469 variable.
36470 (add_segments): Call `grub_util_get_path'.
36471
36472 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36473
36474 From Timothy Baldwin:
36475 * commands/ls.c (grub_ls_list_files): Close FILE with
36476 grub_file_close.
36477 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
36478
36479 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
36480
36481 * include/grub/parser.h: New file.
36482
36483 * kern/parser.c: Likewise.
36484
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'.
36490
36491 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36492 (grub_emu_SOURCES): Add `kern/parser.c'.
36493 (grubof_SOURCES): Likewise.
36494
36495 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36496 (grubof_SOURCES): Add `kern/parser.c'.
36497
36498 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
36499
36500 * kern/misc.c (grub_split_cmdline): Removed function.
36501
36502 * kern/rescue.c: Include <grub/parser.h>.
36503 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
36504 of `grub_split_cmdline'.
36505
36506 * normal/command.c: Include <grub/parser.h>.
36507 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36508 of `grub_split_cmdline'.
36509
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.
36518
36519 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36520
36521 * normal/sparc64/setjmp.S: New file.
36522
36523 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36524
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.
36529
36530 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36531
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
36537 -mtune=ultrasparc.
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
36544 commented though.
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.
36564
36565 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
36566
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.
36570
36571 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36572
36573 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
36574 consistently within the loop.
36575
36576 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
36577
36578 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
36579 directory can not be read.
36580
36581 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36582
36583 * configure.ac (AC_INIT): Increase the version number to 1.91.
36584
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.
36588
36589 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36590
36591 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
36592 file size must be permitted.
36593
36594 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
36595 between %ah and %al.
36596
36597 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36598
36599 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
36600 grub_uint64_t.
36601 Call the hook with a NUL-terminated filename.
36602 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
36603 grub_cpu_to_be32.
36604
36605 * kern/term.c (cursor_state): New variable.
36606 (grub_term_set_current): Reset the cursor state on a new
36607 terminal.
36608 (grub_setcursor): Rewritten to use CURSOR_STATE.
36609 (grub_getcursor): New function.
36610
36611 * include/grub/term.h (grub_getcursor): New prototype.
36612
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>.
36616
36617 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
36618
36619 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
36620 allocated.
36621 (grub_sfs_dir): Likewise.
36622
36623 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
36624
36625 Add support for the SFS filesystem.
36626
36627 * fs/sfs.c: New file.
36628
36629 * DISTLIST: Added `fs/sfs.c'.
36630
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.
36638
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.
36643
36644 * util/grub-emu.c (main): Call `grub_sfs_init' and
36645 `grub_sfs_fini'.
36646
36647 * include/grub/fs.h (grub_sfs_init): New prototype.
36648 (grub_sfs_fini): Likewise.
36649
36650 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
36651
36652 Add support for the AFFS filesystem.
36653
36654 * fs/affs.c: New file.
36655
36656 * DISTLIST: Added `fs/affs.c'.
36657
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.
36665
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.
36670
36671 * util/grub-emu.c (main): Call `grub_affs_init' and
36672 `grub_affs_fini'.
36673
36674 * include/grub/fs.h (grub_affs_init): New prototype.
36675 (grub_affs_fini): Likewise.
36676
36677 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36678
36679 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
36680
36681 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36682
36683 * configure.ac: Accept `x86_64' as host_cpu. In that case add
36684 `-m32' to CFLAGS.
36685
36686 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
36687 linking.
36688
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
36706 variables.
36707 (normal_mod_ASFLAGS): Add `-m32'.
36708
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'.
36714
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'.
36721
36722 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
36723
36724 Make GRUB's kernel compliant to Multiboot Specification.
36725
36726 * kern/i386/pc/startup.S (multiboot_header): New label.
36727 (multiboot_entry): Likewise.
36728 (multiboot_trampoline): Likewise.
36729
36730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36731 Increased to 0x4A0.
36732
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.
36736
36737 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
36738
36739 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
36740
36741 Adds support for the XFS filesystem. Btrees are not supported
36742 yet.
36743
36744 * fs/xfs.c: New file.
36745
36746 * DISTLIST: Added `fs/xfs.c'.
36747
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.
36754
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.
36759
36760 * util/grub-emu.c (main): Call `grub_xfs_init' and
36761 `grub_xfs_fini'.
36762
36763 * include/grub/fs.h (grub_xfs_init): New prototype.
36764 (grub_xfs_fini): Likewise.
36765
36766
36767 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
36768
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
36771 a default palette.
36772
36773 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36774
36775 * normal/completion.c (complete_arguments): Add the qualifier
36776 const into OPTIONS.
36777
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
36786 serial.mod.
36787 (terminfo_mod_SOURCES): New variable.
36788 (terminfo_mod_CFLAGS): Likewise.
36789 (serial_mod_SOURCES): Likewise.
36790 (serial_mod_CFLAGS): Likewise.
36791
36792 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
36793
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.
36797
36798 * boot/powerpc/ieee1275/crt0.S: Moved to ...
36799 * kern/powerpc/ieee1275/crt0.S: ... here.
36800
36801 * boot/powerpc/ieee1275/cmain.c: Moved to ...
36802 * kern/powerpc/ieee1275/cmain.c: ... here.
36803
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.
36808
36809 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
36810 sectors. It was not used anyway.
36811
36812 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36813
36814 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
36815 `unused parameter' warning.
36816
36817 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36818
36819 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
36820 function.
36821 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
36822 getcharwidth.
36823
36824 2005-08-28 Marco Gerards <metgerards@student.han.nl>
36825
36826 * include/grub/normal.h (enum grub_completion_type): Added
36827 `GRUB_COMPLETION_TYPE_ARGUMENT'.
36828
36829 * normal/cmdline.c (print_completion): Handle
36830 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
36831 * normal/menu_entry.c (store_completion): Likewise.
36832
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.
36836
36837 2005-08-27 Marco Gerards <metgerards@student.han.nl>
36838
36839 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
36840 `gzio.mod' instead of `io.mod').
36841
36842 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
36843
36844 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
36845 (DISTDIRS): Added io and video.
36846 Rewrite the search routine to make an output consistently.
36847
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.
36854
36855 * include/grub/gzio.h: New file.
36856 * io/gzio.c: Likewise.
36857
36858 * kern/file.c (grub_file_close): Call grub_device_close only if
36859 FILE->DEVICE is not NULL.
36860
36861 * include/grub/mm.h [!NULL] (NULL): New macro.
36862
36863 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
36864
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.
36869
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.
36874
36875 * commands/cat.c: Include grub/gzio.h.
36876 (grub_cmd_cat): Use grub_gzfile_open instead of
36877 grub_file_open.
36878
36879 * commands/cmp.c: Include grub/gzio.h.
36880 (grub_cmd_cmp): Use grub_gzfile_open instead of
36881 grub_file_open.
36882
36883 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
36884 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
36885 grub_file_open.
36886 (grub_rescue_cmd_module): Likewise.
36887
36888 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36889
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.
36893
36894 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36895
36896 * configure.ac: Add support for sparc64 host with ieee1275
36897 firmware.
36898 * configure: Generated from configure.ac.
36899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
36900 instead of int.
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.
36925
36926 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
36927
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
36932 getcharwidth.
36933
36934 * normal/menu.c (print_entry): Made aware of Unicode. First,
36935 convert TITLE to UCS-4, and predict the cursor position by
36936 grub_getcharwidth.
36937
36938 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
36939 const to SRC.
36940 * kern/misc.c (grub_utf16_to_utf8): Likewise.
36941
36942 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36943
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
36946 grub_strcat.
36947
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.
36952
36953 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
36954
36955 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
36956 invalid magic in the error.
36957
36958 * commands/search.c: New file.
36959
36960 * util/grub-emu.c (main): Call grub_search_init and
36961 grub_search_fini.
36962
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.
36968
36969 * kern/partition.c (grub_partition_iterate): Return the result of
36970 PARTMAP->ITERATE instead of GRUB_ERRNO.
36971
36972 * kern/device.c: Include grub/partition.h.
36973 (grub_device_iterate): New function.
36974
36975 * include/grub/partition.h (grub_partition_iterate): Return int
36976 instead of grub_err_t.
36977
36978 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
36979 prototype.
36980 [GRUB_UTIL] (grub_search_fini): Likewise.
36981
36982 * include/grub/device.h (grub_device_iterate): New prototype.
36983
36984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
36985 commands/search.c.
36986 (pkgdata_MODULES): Added search.mod.
36987 (search_mod_SOURCES): New variable.
36988 (search_mod_CFLAGS): Likewise.
36989
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.
36994
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.
36998
36999 * DISTLIST: Added commands/search.c.
37000
37001 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37002
37003 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37004 conversion.
37005 (grub_getcharwidth): New function.
37006
37007 * kern/misc.c (grub_utf8_to_ucs4): New function.
37008
37009 * include/grub/term.h (struct grub_term): Added a new member
37010 "getcharwidth".
37011 (grub_getcharwidth): New prototype.
37012
37013 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37014
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
37020 getcharwidth.
37021
37022 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37023 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37024
37025 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37026 GRUB_ERRNO.
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
37030 function.
37031 (grub_vesafb_getcharwidth): New function.
37032 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37033 getcharwidth.
37034
37035 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37036
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.
37040
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.
37050
37051 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37052 * commands/i386/pc/vbeinfo.c: ... this.
37053
37054 * commands/i386/pc/vbe_test.c: Renamed to ...
37055 * commands/i386/pc/vbetest.c: ... this.
37056
37057 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37058 ...
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
37063 completely.
37064 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37065 (GRUB_MOD_FINI): Likewise.
37066
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.
37075
37076 * normal/misc.c: Include grub/mm.h.
37077
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.
37088
37089 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37090
37091 * normal/misc.c: New file.
37092
37093 * DISTLIST: Added normal/misc.c.
37094
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.
37100
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.
37111
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.
37126
37127 * normal/cmdline.c (print_completion): New function.
37128
37129 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37130 to HOOK.
37131 All callers changed.
37132
37133 * kern/disk.c (grub_print_partinfo): Removed.
37134
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.
37138
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.
37147
37148 * include/grub/disk.h (grub_print_partinfo): Removed.
37149
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.
37154
37155 * commands/ls.c (grub_ls_list_disks): Use
37156 grub_normal_print_device_info instead of grub_print_partinfo. Free
37157 PNAME.
37158 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37159 duplicating the code.
37160
37161 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37162
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.
37169
37170 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37171
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.
37199
37200 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37201
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.
37206
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.
37211
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
37216 missing.
37217 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37218 cleared by a debugger, if it is not zero.
37219
37220 * include/grub/normal.h (grub_command_execute): Add an argument
37221 INTERACTIVE.
37222
37223 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37224
37225 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37226
37227 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37228
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.
37234
37235 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37236
37237 * DISTLIST: Added normal/completion.c.
37238
37239 * normal/completion.c: New file.
37240
37241 * term/i386/pc/console.c (grub_console_getwh): New function.
37242 (grub_console_term): Assign grub_console_getwh to getwh.
37243
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
37248 grub_tab_complete.
37249
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.
37254
37255 * kern/misc.c (grub_strncmp): Rewritten.
37256
37257 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37258 returns non-zero. Otherwise return 0.
37259
37260 * include/grub/partition.h (grub_partition_map_iterate): Return
37261 int instead of void.
37262
37263 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37264
37265 * include/grub/misc.h (grub_strncmp): Change the type of N to
37266 grub_size_t.
37267
37268 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37269 of void.
37270
37271 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37272 unsigned explicitly before comparing it with I.
37273
37274 * kern/main.c (grub_env_write_root): Add the attribute unused into
37275 VAR.
37276
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.
37282
37283 * normal/command.c (grub_iterate_commands): If ITERATE returns
37284 non-zero, return one immediately.
37285
37286 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
37287
37288 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
37289 * kern/i386/pc/startup.S: Updated Global Descriptor table's
37290 descriptions.
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.
37303
37304 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37305
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.
37311
37312 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37313
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().
37317
37318 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37319
37320 * include/grub/powerpc/ieee1275/console.h: Do not include
37321 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
37322 ifdef.
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.
37334
37335 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
37336
37337 * Makefile.in (LIBLZO): New variable.
37338
37339 * configure.ac: Check for LZO version 2.
37340
37341 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
37342 lzo/lzo1x.h instead of lzo1x.h.
37343
37344 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
37345 of -llzo.
37346
37347 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
37348 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
37349
37350 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
37351 copying the data from PARTITION to P.
37352
37353 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37354
37355 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
37356 negative, unload the module.
37357
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
37364 DEFAULT_DIRECTORY.
37365
37366 * util/i386/pc/grub-install.in: Do not specify --boot-file or
37367 --core-file. Specify INSTALL_DEVICE as an argument.
37368
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.
37375
37376 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
37377 -lncurses.
37378 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
37379
37380 * configure.ac: Check for curses libraries and headers.
37381
37382 * Makefile.in (LIBCURSES): New variable.
37383
37384 * genmk.rb (Script::rule): Set the executable bits.
37385
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".
37388
37389 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37390
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.
37399
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.
37406
37407 * include/grub/powerpc/ieee1275/console.h: Resurrected.
37408
37409 * COPYING: Upgraded to the latest version. Only the address of the
37410 FSF office has changed.
37411
37412 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37413
37414 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37415 kern/ieee1275.c with kern/ieee1275/of.c.
37416
37417 * kern/ieee1275.c: Moved to ...
37418 * kern/ieee1275/of.c: ... here.
37419
37420 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
37421
37422 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
37423 readability.
37424
37425 * config.guess: Updated to the latest version from gnulib.
37426 * config.sub: Likewise.
37427 * install.sh: Likewise.
37428 * mkinstalldirs: Likewise.
37429
37430 * include/grub/console.h: Removed. This file is arch-specific. Do
37431 not put this in include/grub.
37432
37433 * include/grub/i386/pc/console.h: Resurrected.
37434
37435 * util/console.c: Include grub/machine/console.h instead of
37436 grub/console.h.
37437 * util/grub-emu.c: Likewise.
37438
37439 2005-08-04 Marco Gerards <metgerards@student.han.nl>
37440
37441 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
37442 hardcoded value.
37443
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
37455 grub_ssize_t.
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
37459 value.
37460
37461 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
37462
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
37478 to return int.
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'.
37488
37489 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
37490
37491 * DISTLIST: Added util/i386/pc/grub-probefs.c.
37492
37493 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
37494 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
37495 partmap/sun.c.
37496 (grub_probefs_SOURCES): New variable.
37497
37498 * util/i386/pc/grub-probefs.c: New file.
37499
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.
37505
37506 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37507
37508 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37509 function.
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>.
37517
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.
37525
37526 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37527
37528 * util/i386/pc/grub-install.in (datadir): New variable.
37529 (libdir): Removed.
37530 (pkgdatadir): New variable.
37531 (pkglibdir): Removed.
37532
37533 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37534
37535 * DISTLIST: Added util/i386/pc/grub-install.in.
37536
37537 * util/i386/pc/grub-install.in: New file.
37538
37539 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
37540 (grub_install_SOURCES): Likewise.
37541
37542 * genmk.rb: Added support for scripts.
37543 (Script): New class.
37544 (scripts): New variable.
37545
37546 * Makefile.in (install-local): Install sbin_SCRIPTS by
37547 INSTALL_SCRIPT.
37548 (uninstall): Remove sbin_SCRIPTS.
37549
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.
37553 Free DEST_DEV.
37554
37555 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
37556 description for --device-map.
37557
37558 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37559
37560 Change the semantics of variable hooks. They now return strings
37561 instead of error values.
37562
37563 * util/i386/pc/grub-setup.c: Include grub/env.h.
37564 (setup): Use grub_device_set_root instead of grub_env_set.
37565
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.
37569
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.
37573
37574 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
37575 many variables.
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,
37582 respectively.
37583 Allocate the default empty string on the heap, because this string
37584 may be freed later.
37585
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.
37591
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.
37597
37598 * include/grub/device.h (grub_device_set_root): Removed.
37599 (grub_device_set_root): Likewise.
37600
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.
37604
37605 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
37606 from DIRNAME.
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
37609 as a regular file.
37610 Put a newline only if there is no error.
37611 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
37612 used.
37613
37614 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37615
37616 * kern/partition.c (grub_partition_probe): Initialize PART to
37617 NULL. Otherwise, when no partition map is registered, this returns
37618 a garbage.
37619
37620 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
37621
37622 * partmap/apple.c (apple_partition_map_iterate): Check if POS
37623 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
37624 valid.
37625
37626 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
37627
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
37631 to disk devices.
37632
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
37635 register.
37636
37637 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37638
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.
37662
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
37668 descriptions.
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
37675 'h' and 'u'.
37676
37677 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
37678 const into "longarg". Change the type of "shortarg" to int.
37679
37680 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37681
37682 * boot/i386/pc/boot.S (boot_drive_check): New label.
37683
37684 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
37685 macro.
37686
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.
37689
37690 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37691
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.
37695
37696 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37697
37698 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
37699 be 0x7C00 instead of 0x8000.
37700
37701 * boot/i386/pc/pxeboot.S: Rewritten.
37702
37703 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
37704 EXT_C.
37705 (gate_a20_check_state): Read a byte from 0x108000. Invert the
37706 result.
37707
37708 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
37709
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.
37713
37714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37715 Increased to 0x440.
37716
37717 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
37718
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.
37731
37732 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
37733
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.
37737
37738 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37739
37740 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
37741
37742 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
37743 (grub_mkdevicemap_SOURCES): New variable.
37744
37745 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
37746 lib/device.c of GRUB Legacy.
37747
37748 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37749
37750 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
37751 instead of PATH is NULL.
37752
37753 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
37754
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.
37760
37761 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
37762
37763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
37764 reverse.
37765
37766 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
37767
37768 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
37769 when backspace is pressed at beginning of line.
37770
37771 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
37772
37773 * DISTLIST: Added genfslist.sh.
37774
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.
37779
37780 * kern/fs.c (grub_fs_autoload_hook): New variable.
37781 (grub_fs_probe): Added support for auto-loading.
37782
37783 * include/grub/normal.h (struct grub_fs_module_list): New struct.
37784 (grub_fs_module_list_t): New type.
37785
37786 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
37787 (grub_fs_autoload_hook): New prototype.
37788
37789 * genfslist.sh: New file.
37790
37791 * genmk.rb: Added a rule to generate a filesystem list.
37792
37793 2005-06-30 Marco Gerards <metgerards@student.han.nl>
37794
37795 * configure.ac: Fix the test for cross-compiling.
37796
37797 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
37798 define GRUB_UTIL anymore.
37799
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.
37804
37805 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
37806
37807 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
37808 contains `l' modifier, get a long from va_arg().
37809
37810 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
37811
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
37814 being freed.
37815 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
37816
37817 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37818
37819 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
37820 `grub_ieee1275_chosen'.
37821
37822 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37823
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
37827 `chosen'.
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'.
37846
37847 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
37848
37849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
37850 /chosen/bootargs.
37851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
37852 /chosen/bootargs as "variable=value" pairs.
37853
37854 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
37855
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.
37863
37864 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
37865
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):
37884 Remove prototype.
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
37894 comment.
37895 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
37896 `grub_ieee1275_test_flag'.
37897 (grub_ieee1275_encode_devname): Likewise.
37898
37899 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
37900
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
37905 function.
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.
37915
37916 2005-03-30 Marco Gerards <metgerards@student.han.nl>
37917
37918 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
37919 `grub_loader_unset'.
37920
37921 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
37922
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
37937 function.
37938 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
37939 Add prototype.
37940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
37941 prototype.
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
37951 function.
37952 * util/powerpc/ieee1275/misc.c: New file.
37953
37954 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
37955
37956 * DISTLIST: New file.
37957 * gendistlist.sh: Likewise.
37958
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
37973 distributed files.
37974
37975 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
37976
37977 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
37978 descriptor. This is ported from GRUB Legacy.
37979
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>.
37983
37984 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
37985
37986 Automatic loading of commands is supported.
37987
37988 * normal/main.c (read_command_list): New function.
37989 (grub_normal_execute): Call read_command_list.
37990
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,
37996 return zero.
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.
38000
38001 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38002 make sure that each command is loaded.
38003
38004 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38005 macro.
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.
38009
38010 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38011 sure that each command is loaded.
38012
38013 * genmk.rb (PModule::rule): Specify a module name without the
38014 suffix ".mod" to gencmdlist.sh.
38015
38016 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38017
38018 * gencmdlist.sh: New file.
38019
38020 * genmk.rb (PModule::rule): Generate a rule for a command list.
38021 Clean command.lst.
38022 Generate command.lst from $(COMMANDFILES).
38023
38024 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38025 (DATA): Added $(pkgdata_DATA).
38026 (install-local): Install files in $(pkgdata_DATA).
38027
38028 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38029
38030 * term/i386/pc/vga.c (debug_command): Removed.
38031 (GRUB_MOD_INIT): Do not register the command "debug".
38032
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
38048 prototype.
38049 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38050
38051 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38052
38053 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38054 address.
38055
38056 * commands/help.c (grub_cmd_help): Do not print newlines after
38057 the last command in print_command_help.
38058
38059 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38060
38061 * commands/default.h: New file.
38062 * commands/timeout.h: Likewise.
38063 * normal/context.c: Likewise.
38064
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.
38068
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.
38072
38073 * util/console.c (grub_ncurses_checkkey): Return the read
38074 character or -1.
38075
38076 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38077 timeouts.
38078
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
38084 returns.
38085
38086 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38087
38088 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38089 include time.h.
38090 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38091 without GRUB_UTIL.
38092 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38093 time.h.
38094 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38095 without GRUB_UTIL.
38096
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.
38111
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
38121 conf/i386-pc.rmk.
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.
38128
38129 * Makefile.in (all-local): Added $(MKFILES).
38130
38131 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38132
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
38138 `partmap/sun.c'.
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
38142 prototype.
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.
38147
38148 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38149
38150 This implements an Emacs-like menu entry editor.
38151
38152 * normal/menu_entry.c: New file.
38153
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.
38160
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.
38166
38167 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38168
38169 * kern/misc.c (grub_vprintf): Call grub_refresh.
38170
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.
38220
38221 * include/grub/normal.h: New prototype.
38222
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.
38228
38229 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38230
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.
38235
38236 * util/grub-emu.c: Include signal.h.
38237 (main_env): New global variable.
38238 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38239 catch C-c.
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.
38245
38246 * include/grub/util/misc.h: Include setjmp.h.
38247 (main_env): New prototype.
38248
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.
38252
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.
38256
38257 * util/i386/pc/misc.c: New file.
38258
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.
38262
38263 2005-02-14 Guillem Jover <guillem@hadrons.org>
38264
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
38277 ELF type.
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.
38281
38282 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38283 argument SIZE.
38284
38285 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
38286
38287 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
38288 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
38289
38290 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
38291
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.
38299
38300 2005-02-01 Guillem Jover <guillem@hadrons.org>
38301
38302 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
38303 help info.
38304
38305 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38306
38307 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
38308 Removed prototype.
38309 (grub_rescue_cmd_linux): New prototype.
38310 (grub_rescue_cmd_initrd): Likewise.
38311 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
38312 `bi_rec'.
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):
38324 Function removed.
38325 (grub_linux_normal_fini): Likewise.
38326 (GRUB_MOD_INIT): Register `initrd'.
38327 (GRUB_MOD_FINI): Unregister `initrd'.
38328
38329 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38330
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
38340 variables.
38341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38342 `commands/help.c'.
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
38351 command.
38352
38353 * normal/cmdline.c (grub_cmdline_get): Doc fix.
38354
38355 * normal/command.c (grub_command_init): Fixed the description of
38356 the `set' and `unset' commands.
38357
38358 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38359
38360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
38361 function.
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'
38369 and `halt.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.
38374
38375 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
38376
38377 * include/grub/misc.h (memmove): New prototype.
38378 (memcpy): Likewise.
38379
38380 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
38381
38382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
38383 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
38384
38385 2005-01-22 Marco Gerards <metgerards@student.han.nl>
38386
38387 * kern/misc.c (grub_strndup): Function rewritten.
38388
38389 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
38390
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
38398 border.
38399
38400 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38401
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.
38405
38406 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38407
38408 Add the loopback device, a device via which files can be accessed
38409 as devices.
38410
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
38416 `disk/loopback.c'.
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
38424 support.
38425 * include/grub/disk.h (grub_disk_dev_id): Add
38426 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
38427
38428 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
38429
38430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
38431 function.
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):
38436 New prototype.
38437 * commands/ieee1275/suspend.c: New file.
38438
38439 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38440
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
38446 modules.
38447
38448 2005-01-20 Marco Gerards <metgerards@student.han.nl>
38449
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'.
38461
38462 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
38463 point to `currnode' when `currnode' is changed.
38464
38465 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
38466 Schottelius <nico-linux@schottelius.org>.
38467
38468 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
38469
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.
38481
38482 2005-01-05 Marco Gerards <metgerards@student.han.nl>
38483
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
38486 file.
38487
38488 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
38489
38490 * TODO: Add note about endianness in grub-mkimage.
38491 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
38492 section.
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
38506 prototype.
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.
38536
38537 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38538
38539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
38540 New function.
38541 * include/grub/powerpc/ieee1275/ieee1275.h
38542 (grub_ieee1275_milliseconds): New prototype.
38543 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
38544 Change to 1000.
38545 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
38546 grub_ieee1275_milliseconds.
38547
38548 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38549
38550 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
38551 variable.
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.
38558
38559 2004-12-29 Marco Gerards <metgerards@student.han.nl>
38560
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>.
38564
38565 2004-12-28 Marco Gerards <metgerards@student.han.nl>
38566
38567 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
38568
38569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
38570 `kern/powerpc/cache.S'.
38571
38572 2004-12-27 Marco Gerards <metgerards@student.han.nl>
38573
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):
38609 Moved from here...
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
38622 for this module.
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
38627 static.
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
38633 unknown.
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.
38637
38638 2004-12-19 Marco Gerards <metgerards@student.han.nl>
38639
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):
38650 Function removed.
38651 (grub_arch_dl_relocate_symbols): Likewise.
38652 (grub_register_exported_symbols): Likewise.
38653
38654 2004-12-13 Marco Gerards <metgerards@student.han.nl>
38655
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>.
38660
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>.
38664
38665 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
38666 output so the output looks better.
38667
38668 2004-12-04 Marco Gerards <metgerards@student.han.nl>
38669
38670 Modulize the partition map support and add support for the amiga
38671 partition map.
38672
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
38724 of a PC partition.
38725
38726 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
38727
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
38731 20.
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].
38738
38739 2004-11-16 Marco Gerards <metgerards@student.han.nl>
38740
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.
38744
38745 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
38746
38747 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
38748 `actual' for negativity.
38749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38750 kern/fshelp.c.
38751
38752 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38753
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
38770 the right page.
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
38778 account.
38779
38780 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38781
38782 Add support for iso9660 (including rockridge).
38783
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.
38791
38792 * include/grub/misc.h (grub_strncat): New prototype.
38793 * kern/misc.c (grub_strncat): New function.
38794
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.
38799
38800 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
38801
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):
38806 Move from here...
38807 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
38808 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38809 ... to here.
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
38814 hand.
38815
38816 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
38817
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.
38821
38822 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
38823
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.
38827
38828 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
38829
38830 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
38831 prototype.
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>.
38838
38839 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
38840
38841 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
38842 Call grub_children_iterate for device nodes of type `scsi',
38843 `ide', or `ata'.
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):
38849 New function.
38850 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38851 Return -1 if args.size was -1.
38852
38853 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38854
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):
38863 New extern.
38864 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
38865
38866 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38867
38868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
38869 -1 if args.base was -1.
38870
38871 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
38872
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.
38876
38877 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
38878
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.
38884
38885 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
38886
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.
38890
38891 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
38892
38893 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
38894
38895 Make the source code of the menu interface more readable.
38896
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.
38921
38922 2004-09-17 Marco Gerards <metgerards@student.han.nl>
38923
38924 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
38925 can be loaded from normal mode.
38926
38927 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
38928 `multiboot.mod'.
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.
38933
38934 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
38935 attribute `unused'.
38936
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'.
38939
38940 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
38941 looking up a symlink.
38942
38943 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
38944 macro.
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.
38948
38949 * normal/menu.c (grub_menu_run): Fix typo.
38950
38951 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
38952
38953 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
38954
38955 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
38956 `y + 1' instead of `y - 1'.
38957
38958 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
38959
38960 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
38961
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.
38970
38971 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
38972
38973 Added normal mode command `chainloader' as module chain.mod, which
38974 depends on normal.mod and _chain.mod.
38975
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):
38979 Deleted prototype.
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.
38985
38986 2004-09-11 Marco Gerards <metgerards@student.han.nl>
38987
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'.
38996 Changed all users.
38997 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
38998 all users.
38999 (grub_fshelp_node): New struct.
39000 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39001 to a pointer.
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.
39014
39015 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39016
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.
39022
39023 * kern/loader.c (grub_loader_is_loaded): New function.
39024
39025 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39026 (grub_get_rtc): Exported.
39027
39028 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39029 (grub_get_rtc): Exported.
39030
39031 * include/grub/normal.h (struct grub_command_list): Remove
39032 constant from the member `command'.
39033
39034 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39035
39036 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39037
39038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39039
39040 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39041
39042 Add support for the JFS filesystem.
39043
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.
39055
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.
39062
39063 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39064
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.
39069
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'.
39074
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.
39078
39079 * include/grub/fs.h (grub_hfs_init): New prototype.
39080 (grub_hfs_fini): Likewise.
39081
39082
39083 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39084
39085 Each disk device has its own id now. This is useful to make use
39086 of multiple disk devices.
39087
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.
39091
39092 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39093 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39094
39095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39096 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39097
39098 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39099 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39100
39101 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39102 "id" which is used by the cache manager.
39103
39104 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39105 of just "GRUB".
39106
39107 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39108
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.
39116
39117 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39118 * kern/misc.c (grub_strncasecmp): Add function.
39119
39120 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39121
39122 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39123 with parentheses.
39124
39125 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39126 (grub_ext2_dir): In case the directory entry type is unknown, read
39127 it from the inode.
39128
39129 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39130
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.
39134
39135 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39136
39137 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39138
39139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39140 function.
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.
39152
39153 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39154
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.
39160
39161 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39162
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
39170 just assign it.
39171
39172 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39173
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>.
39181
39182 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39183
39184 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39185 there was no input.
39186
39187 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39188
39189 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39190 the history buffer logic.
39191
39192 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39193
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
39200 the inode.
39201
39202 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39203
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
39206 filenames.
39207
39208 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39209 fs/minix.c.
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
39217 fs/minix.c.
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
39226 minix fs.
39227
39228 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39229
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.
39234
39235 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39236 "env.h"
39237
39238 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39239
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.
39244
39245 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39246
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.
39255
39256 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39257
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
39262 Firmware.
39263
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.
39285
39286 These files were written by Johan Rydberg
39287 (jrydberg@night.trouble.net) and I only modified them slightly.
39288
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.
39293
39294 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
39295
39296 * Makefile.in: Update copyright.
39297 * genmodsrc.sh: Likewise.
39298 * gensymlist.sh: Likewise.
39299 * term/i386/pc/vga.c: Indent correctly.
39300
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.
39305
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
39311 lvalue cast.
39312 * util/console.c (pupa_ncurses_fini): Return 0.
39313
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.
39320
39321 2004-03-14 Marco Gerards <metgerards@student.han.nl>
39322
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
39330 argument parser.
39331 (pupa_command_execute): Changed (almost rewritten) so it uses
39332 pupa_split_command. Added support for setting variables using the
39333 syntax `foo=bar'.
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
39343 lsmod.
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,
39349 normal/arg.c.
39350 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
39351 terminal.mod.
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.
39358
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
39364 interface changes.
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
39424 unset commands.
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
39436 warning.
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
39442 interface changes.
39443 * util/pupa-emu.c: Include <pupa/env.h>.
39444 (options): Added 0's for unused fields to silence a gcc warning.
39445 (argp): Likewise.
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
39449 and terminal.
39450
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
39462 warning.
39463 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
39464 local variable i unsigned to silence a gcc warning.
39465
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
39470 screen.
39471 (pupa_set_more): New function.
39472 * include/pupa/term.h (pupa_set_more): New prototype.
39473
39474
39475 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
39476
39477 Now this project is GRUB 2 rather than PUPA. The location of
39478 the CVS repository was moved to GRUB's.
39479
39480 * configure.ac: Use bug-grub as the reporting address.
39481 Use GRUB instead of PUPA.
39482 Change the version number to 1.90.
39483
39484 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
39485
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.
39571
39572 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
39573
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.
39579
39580 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
39581 Correct value.
39582 (struct linux_kernel_header): Add kernel_version and
39583 initrd_addr_max.
39584 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
39585 pupa_file_read succeeds.
39586 (pupa_rescue_cmd_initrd): Implement.
39587
39588 2003-12-03 Marco Gerards <metgerards@student.han.nl>
39589
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.
39595
39596 * kern/misc.c (pupa_strndup): New function.
39597 * include/pupa/misc.h (pupa_strndup): New prototype.
39598
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.
39622
39623 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
39624 key.
39625
39626 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
39627 * configure.ac [i386]: Check for regparam bug.
39628 (NESTED_FUNC_ATTR) [! i386]: Defined.
39629
39630 2003-11-17 Marco Gerards <metgerards@student.han.nl>
39631
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
39648 it.
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.
39661
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
39674 and renamed to...
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.
39682
39683 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
39684
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.
39696
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.
39701
39702 * kern/misc.c (pupa_stpcpy): New function.
39703 * include/pupa/misc.h (pupa_stpcpy): New prototype.
39704
39705 2003-11-12 Marco Gerards <metgerards@student.han.nl>
39706
39707 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
39708 for available extensions.
39709
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
39717 pupa_currticks.
39718 * util/misc.c: Include <sys/times.h>
39719 (pupa_get_rtc): New function.
39720
39721 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
39722
39723 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
39724 as blocks.
39725 (pupa_ext2_get_file_block): Use blocks member.
39726
39727 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
39728 first block. Return -1 instead of pupa_errno on error.
39729
39730 2003-10-27 Marco Gerards <metgerards@student.han.nl>
39731
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.
39748
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.
39754
39755 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39756
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>.
39760
39761 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39762
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".
39768
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.
39774
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.
39781
39782 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
39783
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.
39787
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.
39793
39794 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
39795 characters.
39796
39797 * kern/term.c (pupa_term_set_current): Rewritten.
39798 (pupa_putchar): Likewise.
39799 (pupa_putcode): New function.
39800
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.
39805
39806 * normal/command.c: Include pupa/term.h.
39807 (terminal_command): New function.
39808 (pupa_command_init): Register the command "terminal".
39809
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.
39820
39821 * term/i386/pc/console.c (pupa_console_putchar): New function.
39822
39823 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
39824
39825 * util/resolve.c (pupa_util_resolve_dependencies): BUG
39826 FIX. Reverse the path_list.
39827
39828 * include/pupa/normal.h: Export pupa_register_command and
39829 pupa_unregister_command.
39830
39831 * hello/hello.c (pupa_cmd_hello): New module.
39832 * conf/i386-pc.rmk: Added hello.mod.
39833
39834 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
39835
39836 * kern/i386/pc/lzo1x.S: New file.
39837
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.
39842
39843 * util/misc.c (pupa_util_read_image): Fix a file descriptor
39844 leak.
39845 (pupa_util_load_image): New function.
39846
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.
39853 Include lzo1x.S.
39854
39855 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
39856 here.
39857
39858 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
39859
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.
39866
39867 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
39868
39869 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
39870 (Utility#rule): Likewise.
39871
39872 * configure.ac: Check if LZO is available.
39873
39874 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
39875
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.
39884
39885 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
39886 (pupa_rescue_cmd_initrd): Likewise.
39887
39888 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
39889 Likewise.
39890
39891 * kern/i386/pc/startup.S (translation_table): New variable.
39892 (translate_keycode): New function.
39893 (pupa_console_getkey): Call translate_keycode.
39894
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.
39898
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
39902 it to P.
39903
39904 * kern/main.c (pupa_load_normal_mode): Just load the module
39905 "normal".
39906 (pupa_main): Don't print the message
39907 "Entering into rescue mode..." here.
39908
39909 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
39910 Declared.
39911 (pupa_rescue_cmd_initrd): Likewise.
39912 (pupa_rescue_cmd_initrd): Likewise.
39913
39914 * include/pupa/symbol.h (FUNCTION): Specify the type.
39915 (VARIABLE): Likewise.
39916
39917 * include/pupa/err.h (pupa_err_t): Added
39918 PUPA_ERR_UNKNOWN_COMMAND.
39919
39920 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
39921 (pupa_dl_get_prefix): Likewise.
39922
39923 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
39924 Added _chain.mod and _linux.mod instead of chain.mod and
39925 linux.mod.
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.
39937
39938 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
39939
39940 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
39941 possible.
39942
39943 * kern/dl.c (pupa_dl_ref): Refer depending modules
39944 recursively.
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
39948 unloaded.
39949 (pupa_dl_unload): Unload depending modules explicitly,
39950 if possible.
39951
39952 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
39953
39954 * include/pupa/i386/pc/linux.h: New file.
39955 * loader/i386/pc/linux.c: Likewise.
39956
39957 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
39958 Removed.
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.
39962
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.
39969
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.
39988
39989 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
39990 (pupa_enter_rescue_mode): Don't register initrd and module.
39991
39992 * kern/mm.c: Include pupa/dl.h.
39993
39994 * kern/main.c: Include pupa/file.h and pupa/device.h.
39995
39996 * kern/loader.c (pupa_loader_load_module_func): Removed.
39997 (pupa_loader_load_module): Likewise.
39998
39999 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40000 ``.o''.
40001
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.
40007
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.
40012
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.
40018
40019 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40020 (linux_mod_SOURCES): New variable.
40021 (linux_mod_CFLAGS): Likewise.
40022
40023 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40024
40025 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40026 the length of a blocklist correctly.
40027
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.
40032
40033 * kern/main.c (pupa_set_root_dev): New function.
40034 (pupa_load_normal_mode): Likewise.
40035 (pupa_main): Call those above.
40036
40037 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40038 pupa_uint16_t.
40039
40040 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40041
40042 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40043
40044 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40045 (setup): Configure the installed partition information and the
40046 dl prefix.
40047
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.
40052
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.
40060
40061 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40062 and pupa/misc.h.
40063 (make_install_device): New function.
40064 (pupa_machine_init): Set the dl prefix.
40065
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,
40074 rmmod and lsmod.
40075
40076 * kern/mm.c (pupa_memalign): If failed even after invalidating
40077 disk caches, unload unneeded modules and retry.
40078
40079 * kern/misc.c (pupa_memmove): New function.
40080 (pupa_memcpy): Removed.
40081 (pupa_strcpy): New function.
40082 (pupa_itoa): Made static.
40083
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.
40093
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.
40102
40103 * include/pupa/types.h: Fix a typo.
40104
40105 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40106 pupa_memmove.
40107 (pupa_memmove): Declared.
40108 (pupa_strcpy): Likewise.
40109
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.
40120
40121 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40122 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40123 unloaded.
40124 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40125 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40126
40127 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40128 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40129
40130 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40131
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
40135 correctly.
40136 (find_root_device): Use lstat instead of stat.
40137 Don't follow symbolic links.
40138 Fix the path-constructing code.
40139
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.
40151
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.
40154
40155 * kern/main.c (pupa_main): Don't split the starting message from
40156 newlines.
40157
40158 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40159 LF, because BIOS goes crazy about character attributes in this
40160 case.
40161
40162 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40163
40164 * include/i386/pc/util/biosdisk.h: New file.
40165 * util/i386/pc/biosdisk.c: Likewise.
40166 * util/i386/pc/pupa-setup.c: Likewise.
40167
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.
40174
40175 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40176
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.
40183
40184 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40185
40186 * include/pupa/util/misc.h (xrealloc): Declared.
40187
40188 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40189 macro.
40190 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40191 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40192
40193 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40194 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40195
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.
40199
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
40203 0x88.
40204
40205 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40206 (pupa_setup_SOURCES): Likewise.
40207
40208 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40209
40210 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40211
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
40214 value.
40215
40216 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40217
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.
40222
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.
40236
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.
40240
40241 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40242
40243 * genmk.rb (PModule#rule): Compile automatically generated
40244 sources with module-specific CFLAGS as well as other sources.
40245
40246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40247
40248 * configure.ac: Check ld.
40249 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40250 respectively, before checking endianness and sizes.
40251
40252 * Makefile.in (LD): New variable.
40253
40254 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40255
40256 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40257
40258 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40259
40260 * Changelog: New file.
40261