]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Fix handling of wide characters in gfxterm.
[grub2.git] / ChangeLog
1 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Fix handling of wide characters in gfxterm.
4
5 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
6 (clear_char): Likewise.
7 (paint_char): Skip code == NULL chars.
8 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
9
10 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/normal/charset.c: Move comment to right place.
13
14 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
17 (GRUB_AFFS_FLAG_FFS): Put back where it was.
18 (grub_affs_mount): Revert the correct version checking.
19
20 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * docs/grub.texi (Unicode): Mention several other unsupported features.
23
24 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
27 case statements as compile-time one.
28 (direct_read): Prevent spurious warnings.
29 (grub_squash_read_data): Likewise.
30
31 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
32
33 Various squash4 fixes and LZO and XZ support.
34
35 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
36 Add xzembed source files.
37 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
38 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
39 (grub_squash_inode): New subtype long_dir.
40 (SQUASH_TYPE_LONG_DIR): New inode type.
41 (COMPRESSION): New enum.
42 (XZBUFSIZ): New const.
43 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
44 (read_chunk): Use data->decompress.
45 (zlib_decompress): New function.
46 (lzo_decompress): Likewise.
47 (xz_decompress): Likewise.
48 (squash_mount): Set new data fields.
49 (grub_squash_iterate_dir): Handle long dir.
50 (squash_unmount): Free xzdec and xzbuf.
51 (grub_squash_open): Check ino type.
52 (direct_read): Stylistic fixes. Use data->decompress.
53 (grub_squash_read_data): Likewise.
54 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
55 (get_byte): Likewise.
56 (grub_zlib_disk_read): Removed.
57 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
58 (GRUB_POSIX_BOOL_DEFINED): New define.
59 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
60 * grub-core/lib/xzembed/xz.h: Addmissing includes.
61 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
62 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
63
64 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
65
66 Don't override more informative errors.
67
68 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
69 * grub-core/font/font.c (open_section): Likewise.
70 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
71 filename. Don't override errors.
72 (grub_cmd_openbsd_ramdisk): Don't override errors.
73 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
74 (grub_cmd_initrd): Likewise.
75 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
76 (grub_cmd_initrd): Likewise.
77 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
78 (grub_cmd_linux): Likewise.
79 (grub_cmd_initrd): Likewise.
80 (grub_cmd_payload): Likewise.
81 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
82 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
83 (grub_cmd_module): Likewise.
84 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
85 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
86 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
87 (grub_cmd_xnu_mkext): Likewise.
88 (grub_cmd_xnu_ramdisk): Likewise.
89 (grub_xnu_check_os_bundle_required): Likewise.
90 (grub_xnu_load_kext_from_dir): Likewise.
91 (grub_cmd_xnu_kextdir): Likewise.
92 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
93
94 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
97 as 1024 in block size field. Found on one of my test images.
98 Small optimisation while on it.
99
100 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
103 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
104 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
105 performance fixes while on it.
106 (grub_sfs_close): Fix memory leak while on it.
107 (grub_sfs_label): Convert Latin1 to UTF-8.
108
109 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
112 space to avoid overflows.
113 (grub_hfs_label): Convert from macroman to UTF-8.
114
115 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
118
119 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
122
123 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * unicode: Import Unicode 6.0 data.
126
127 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
128
129 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
130 outside of range.
131
132 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
133
134 Avoid cutting in the middle of UTF-8 character.
135
136 * include/grub/charset.h (grub_getend): New function.
137 * grub-core/script/function.c (grub_script_function_find): Use
138 grub_getend.
139 * grub-core/normal/completion.c (add_completion): Likewise.
140
141 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
144 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
145 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
146 (GRUB_UNICODE_TAG_END): Likewise.
147 (GRUB_UNICODE_LAST_VALID): Likewise.
148
149 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
152 len and make it smaller. All users updated.
153 * util/import_unicode.py: Put length and not end character.
154 Check length.
155
156 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
157
158 Make better Unicode-compliant and unify some UTF-8 code pathes.
159
160 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
161 valid character.
162 (grub_is_valid_utf8): Use grub_utf8_process.
163 Check resulting code range.
164 (grub_utf8_to_ucs4): Use grub_utf8_process.
165 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
166 valid character.
167
168 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
171
172 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
173
174 * docs/grub.texi (Filesystems): Mention AFS.
175
176 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * docs/grub.texi (Filesystems): Clarify restrictions.
179 (Regexp): Mention non-Unicode regexp behaviour.
180 (Other): Mention non-Unicode matching behaviour.
181
182 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
183
184 Make HFS implementation use MacRoman.
185
186 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
187 (macroman): New const array.
188 (macroman_to_utf8): New function.
189 (utf8_to_macroman): Likewise.
190 (grub_hfs_find_dir): Use utf8_to_macroman.
191 (grub_hfs_dir): Use macroman_to_utf8.
192 Set case_insensitive.
193
194 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
197
198 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
199
200 Integrate hints into autogeneration scripts.
201
202 * docs/grub.texi (Filesystems): Add a hostdisk example.
203 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
204 (grub-probe): Add ofpath.
205 * gentpl.py: Remove group nosparc64.
206 * grub-core/commands/search.c (cache_entry): New struct.
207 (cache): New var.
208 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
209 * grub-core/commands/search_wrap.c (options): Add platform-specific
210 hint options.
211 (grub_cmd_search): Handle platform-specific hints.
212 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
213 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
214 (grub_util_biosdisk_data): Likewise.
215 (grub_util_biosdisk_open): Set device_map.
216 (read_device_map): Handle "" as indication of no map.
217 Set device_map.
218 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
219 (grub_util_biosdisk_get_compatibility_hint): New function.
220 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
221 * include/grub/emu/hostdisk.h
222 (grub_util_biosdisk_get_compatibility_hint): New proto.
223 * util/grub-install.in: Don't call grub-mkdevicemap.
224 Add platform-specific hint to load.cfg.
225 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
226 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
227 hints. Set root preliminary to compatibility hint, not to OS name.
228 * util/grub-probe.c (PRINT_*): Add hints.
229 (print): Make static.
230 (escape_of_path): New function.
231 (guess_bios_drive): Likewise.
232 (guess_efi_drive): Likewise.
233 (guess_baremetal_drive): Likewise.
234 (print_full_name): Likewise.
235 (probe): Handle hints.
236 (main): Likewise.
237 * util/ieee1275/devicemap.c: Removed.
238 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
239 updated.
240 (grub_util_devname_to_ofpath): Return NULL on failure.
241
242 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
243 resource leak.
244 * util/getroot.c (grub_util_pull_device): Fix memory leak.
245
246 * po/POTFILES.in: Regenerated.
247
248 Allow purely long options
249
250 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
251 (SHORT_ARG_USAGE): Likewise.
252 (grub_arg_show_help): Compare opt with help_options.
253 (parse_option): Receive opt as argument. If makes big simplificatons.
254 All users updated
255
256 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
259 Restructure to avoid warning.
260
261 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * util/grub-install.in: Account for possible escaped comma in device
264 name.
265
266 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
267
268 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
269 channel.
270
271 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
274 allocation and zero-setting.
275 (grub_ieee1275_get_devname): Check that alias is complete.
276
277 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
280 unaligned segments.
281
282 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
283
284 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
285 prefix.
286 (grub_ofdisk_open): Check and discard ieee1275 prefix.
287 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
288 Add ieee1275 prefix.
289
290 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * docs/grub.texi (Filesystems): Update.
293
294 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
295
296 Support odc, newc and bigendian cpio formats.
297
298 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
299 * grub-core/Makefile.core.def (newc): New module.
300 (odc): Likewise.
301 (cpio_be): Likewise.
302 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
303 (MAGIC): Likewise.
304 (MAGIC2): Likewise.
305 (head) [MODE_ODC]: Adapt for the format.
306 (head) [MODE_NEWC]: Likewise.
307 (head) [!MODE_*]: Write fields of interest as arrays.
308 (MAGIC_USTAR): Removed.
309 (read_number) [MODE_NEWC]: Change to hex.
310 (read_number) [!MODE_*]: Parse binary arrays.
311 (grub_cpio_find_file): Factor out the code for better structure and
312 always use read_number.
313 (grub_cpio_mount): Use MAGIC and MAGIC2.
314 (grub_cpio_dir): Exit on first hook non-0 return.
315 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
316 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
317 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
318 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
319 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
320 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
321 * grub-core/fs/newc.c: New file.
322 * grub-core/fs/odc.c: Likewise.
323 * grub-core/fs/cpio_be.c: Likewise.
324
325 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
326
327 Fix handling of tar numbers occupying the whole field.
328
329 * grub-core/fs/cpio.c (read_number): New function.
330 (grub_cpio_find_file): Use read_number instead of strtoull.
331
332 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
335 occupying the whole field size.
336
337 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
338
339 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
340
341 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
344
345 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
346
347 * grub-core/Makefile.core.def (lzma_decompress): Add missing
348 TARGET_IMG_LDFLAGS.
349
350 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * util/getroot.c (ESCAPED_PATH_MAX): New define.
353 (mountinfo_entry): Increase the field size to take escaping into
354 account.
355 (find_root_device_from_libzfs): Add one byte to size of strings for
356 security.
357
358 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
359
360 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
361 an assert.
362 * util/grub-setup.c (setup): Likewise.
363
364 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
365
366 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
367 _LzmaDecodeA.
368
369 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * docs/grub.texi (Internationalisation): New section.
372
373 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * docs/grub.texi (Loopback booting): New section.
376
377 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
378
379 * util/grub-mkstandalone.in: Fix minor typo errors.
380
381 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
382
383 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
384
385 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
386 net/icmp.c and net/icmp6.c.
387 (http): New module.
388 (priority_queue): Likewise.
389 * grub-core/io/bufio.c: Rewritten.
390 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
391 TYPE_WITH_CONFIGFILE_OPTION.
392 (legacy_commands): Add bootp and dhcp.
393 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
394 (grub_legacy_parse): Likewise.
395 * grub-core/lib/priority_queue.c: New file.
396 * grub-core/net/arp.c: Add missing license header.
397 (arp_find_entry): Removed.
398 (arp_find_entry): Likewise.
399 (grub_net_arp_resolve): Rename to ...
400 (grub_net_arp_send_request): ...this.
401 (grub_net_arp_receive): New card argument.
402 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
403 Set router and DNS server.
404 (grub_net_configure_by_dhcp_ack): Handle routing information.
405 (grub_cmd_bootp): Set checksum.
406 (grub_bootp_init): Remove net_dhcp.
407 * grub-core/net/dns.c: New file.
408 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
409 completion.
410 (get_card_packet): Handle allocation.
411 (grub_efinet_findcards): Set mtu.
412 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
413 (get_card_packet): Handle allocation.
414 (emucard): Set mtu.
415 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
416 (GRUB_MOD_INIT): Set mtu.
417 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
418 mtu.
419 (get_card_packet): Handle allocation.
420 (grub_ofnet_findcards): Set mtu.
421 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
422 assert.
423 (grub_net_recv_ethernet_packet): Handle IPv6.
424 * grub-core/net/http.c: New file.
425 * grub-core/net/icmp.c: Likewise.
426 * grub-core/net/icmp6.c: Likewise.
427 * grub-core/net/ip.c (ip6addr): New type.
428 (ip6hdr): Likewise.
429 (reassemble): Likewise.
430 (cmp): New function.
431 (reassembles): New variable.
432 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
433 (id): New variable.
434 (send_fragmented): New function.
435 (grub_net_send_ip_packet): Rename to ...
436 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
437 Handle non-UDP.
438 (grub_net_recv_ip_packets): Rename to ...
439 (handle_dgram): ... this. Check checksum. Handle non-UDP.
440 (free_rsm): New function.
441 (free_old_fragments): Likewise.
442 (grub_net_recv_ip4_packets): New function.
443 (grub_net_send_ip6_packet): Likewise.
444 (grub_net_send_ip_packet): Likewise.
445 (grub_net_recv_ip6_packets): Likewise.
446 (grub_net_recv_ip_packets): Likewise.
447 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
448 (LINK_LAYER_CACHE_SIZE): New const.
449 (link_layer_find_entry): New function.
450 (grub_net_link_layer_add_address): Likewise.
451 (grub_net_link_layer_resolve_check): Likewise.
452 (grub_net_link_layer_resolve): Likewise.
453 (grub_net_ipv6_get_slaac): Likewise.
454 (grub_net_ipv6_get_link_local): Likewise.
455 (grub_cmd_ipv6_autoconf): Likewise.
456 (parse_ip): Handle one number representation.
457 (parse_ip6): New functoion.
458 (match_net): Handle IPv6.
459 (grub_net_resolve_address): Handle IPv6 and DNS.
460 (grub_net_resolve_net_address): Handle IPv6.
461 (route_cmp): New function.
462 (grub_net_route_address): Find best route.
463 (grub_net_addr_to_str): Handle IPv6.
464 (grub_net_addr_cmp): New function.
465 (grub_net_add_addr): Register local route.
466 (print_net_address): Handle net address.
467 (grub_net_poll_cards): Retransmit TCP.
468 (grub_net_poll_cards_idle_real): Likewise.
469 (have_ahead): New function.
470 (grub_net_seek_real): Use underlying seek.
471 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
472 * grub-core/net/tcp.c: New file.
473 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
474 (cmp): New function.
475 (ack): Likewise.
476 (tftp_receive): Handle unordered input.
477 (destroy_pq): New function.
478 (tftp_close): Close pq.
479 * grub-core/net/udp.c: Put missing license header.
480 (grub_net_udp_socket): New function.
481 (udp_socket_register): Likewise.
482 (grub_net_udp_close): Likewise.
483 (grub_net_recv_udp_packet): Check checksum.
484 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
485 * include/grub/misc.h (grub_memchr): New function.
486 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
487 (grub_net_card_driver): Return buf in recv.
488 (grub_net_slaac_mac_list): New struct.
489 (grub_network_level_protocol_id): Add ipv6.
490 (grub_net_network_level_addr): Likewise.
491 (grub_net_network_level_net_addr): Likewise.
492 (grub_net_app_protocol): Add seek.
493 (grub_net_socket): Removed.
494 (grub_net_sockets): Likewise.
495 (grub_net_socket_register): Likewise.
496 (grub_net_socket_unregister): Likewise.
497 (FOR_NET_SOCKETS): Likewise.
498 (grub_net_add_addr): Add const.
499 (GRUB_NET_BOOTP_*): New enum.
500 (grub_net_addr_cmp): New proto.
501 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
502 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
503 (grub_net_hwaddr_to_str): NEw proto.
504 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
505 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
506 (grub_dns_init): New proto.
507 (grub_dns_fini): Likewise.
508 (grub_net_tcp_retransmit): Likewise.
509 (grub_net_link_layer_add_address): Likewise.
510 (grub_net_link_layer_resolve_check): Likewise.
511 (grub_net_link_layer_resolve): Likewise.
512 (grub_net_dns_lookup): Likewise.
513 (grub_net_add_dns_server): Likewise.
514 (grub_net_remove_dns_server): Likewise.
515 (GRUB_NET_TRIES): New const.
516 (GRUB_NET_INTERVAL): Likewise.
517 * include/grub/net/arp.h: Mostly rewritten.
518 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
519 * include/grub/net/ip.h: Mostly rewritten.
520 * include/grub/net/netbuff.h: Indent.
521 * include/grub/net/tcp.h: New file.
522 * include/grub/net/udp.h: Mostly rewritten.
523 * include/grub/priority_queue.h: New file.
524 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
525 (grub_swap_bytes64_compile_time): Likewise.
526 (grub_cpu_to_be16_compile_time): Likewise.
527 (grub_cpu_to_be32_compile_time): Likewise.
528 (grub_cpu_to_be64_compile_time): Likewise.
529 (grub_be_to_cpu64_compile_time): Likewise.
530
531 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
532
533 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
534 UINT_TO_PTR with cast.
535
536 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
539 don't use them.
540
541 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
542
543 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
544 already there.
545
546 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
547
548 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
549 confusing ipxe.
550
551 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
554 Add missing const attribute.
555 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
556 Likewise.
557 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
558 Likewise.
559
560 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
563 misaligned access.
564 (serpent_setkey): Likewise.
565 (serpent_encrypt_internal): Likewise.
566 (serpent_decrypt_internal): Likewise.
567 (serpent_encrypt): Don't put an alignment-increasing cast.
568 (serpent_decrypt): Likewise.
569 (serpent_test): Likewise.
570
571 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
574
575 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
576
577 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
578
579 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
580 grub_addr_t casts.
581 (PTR_TO_UINT64): Likewise.
582 (PTR_TO_UINT32): Likewise.
583
584 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * util/grub-mkimage.c (generate_image): Decrease the higher limit
587 because of stack.
588 * util/grub-setup.c (setup): Don't add redundancy past the higher load
589 limit.
590
591 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
594 text_width > available width a bit more gracefully.
595
596 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
599 current address calculation.
600
601 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
602
603 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
604 stack.
605 (encode_block): Likewise.
606
607 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
608
609 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
610 certainety.
611
612 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
615 non-RS part to avoid RS messing with GDT.
616 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
617 Increase to suit in realmode routines.
618
619 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
620
621 * grub-core/kern/i386/realmode.S: Increase alignment.
622 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
623
624 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
627 be deterministic.
628 (syndroms): Compute 0 syndrom.
629 (rs_recover): Use 0 syndrom.
630
631 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
634
635 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
638 brackets.
639
640 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
643 account.
644 (get_top_pad): Likewise.
645 (get_right_pad): Likewise.
646 (get_bottom_pad): Likewise.
647
648 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
651
652 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
655 attribute as the structure isn't guaranteed to be properly aligned.
656 (grub_efi_pci_device_path): Likewise.
657 (grub_efi_pccard_device_path): Likewise.
658 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
659 specify the size of `memory_type'.
660 (grub_efi_vendor_device_path): Likewise.
661 (grub_efi_controller_device_path): Likewise.
662 (grub_efi_acpi_device_path): Likewise.
663 (grub_efi_expanded_acpi_device_path): Likewise.
664 (grub_efi_atapi_device_path): Likewise.
665 (grub_efi_scsi_device_path): Likewise.
666 (grub_efi_fibre_channel_device_path): Likewise.
667 (grub_efi_1394_device_path): Likewise.
668 (grub_efi_usb_device_path): Likewise.
669 (grub_efi_usb_class_device_path): Likewise.
670 (grub_efi_i2o_device_path): Likewise.
671 (grub_efi_mac_address_device_path): Likewise.
672 (grub_efi_ipv4_device_path): Likewise.
673 (grub_efi_ipv6_device_path): Likewise.
674 (grub_efi_infiniband_device_path): Likewise.
675 (grub_efi_uart_device_path): Likewise.
676 (grub_efi_vendor_messaging_device_path): Likewise.
677 (grub_efi_hard_drive_device_path): Likewise.
678 (grub_efi_cdrom_device_path): Likewise.
679 (grub_efi_vendor_media_device_path): Likewise.
680 (grub_efi_file_path_device_path): Likewise.
681 (grub_efi_protocol_device_path): Likewise.
682 (grub_efi_piwg_device_path): Likewise.
683 (grub_efi_bios_device_path): Likewise.
684
685 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
686
687 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
688 (grub_ucs4_to_utf8_alloc): Likewise.
689 (grub_ucs4_to_utf8): Likewise.
690 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
691 (grub_ucs4_to_utf8_alloc): Likewise.
692
693 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
694
695 AFFS never uses unicode.
696
697 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
698 (grub_latin1_to_utf8): New inline function.
699 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
700
701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
704 overflow.
705
706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
707
708 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
709 (grub_squash_dirent_header): Likewise.
710 (read_chunk): Don't double swap.
711 (grub_squash_iterate_dir): Fix swap sizes.
712
713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
716
717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
720 (grub_hfs_iterate_dir): Likewise.
721
722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Fix video on platforms where unaligned access is forbidden.
725 Make several optimisations while on it.
726
727 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
728 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
729 (grub_video_fbblit_replace_32bit_1bit): Likewise.
730 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
731 Disable.
732 (grub_video_fbblit_replace_16bit_1bit):
733 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
734 (grub_video_fbblit_replace_8bit_1bit): Likewise.
735 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
736 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
737 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
738 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
739 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
740 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
741 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
742 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
743 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
744 (grub_video_fbblit_replace_index_RGB888): Likewise.
745 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
746 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
747 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
748 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
749 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
750 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
751 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
752 Disable.
753 (grub_video_fbblit_blend_XXX565_1bit):
754 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
755 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
756 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
757 void *.
758 * grub-core/video/fb/video_fb.c (common_blitter)
759 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
760 (grub_video_fb_create_render_target_from_pointer)
761 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
762 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
763 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
764 definition.
765 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
766
767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
770 HH22 and HM10 relocations.
771
772 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
775
776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
777
778 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
779 allocation succeeded.
780
781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
784 argument a u8 pointer. All users updated.
785 Handle unaligned buffers.
786
787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
788
789 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
790 add_part to workaround compiler bug.
791
792 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
795
796 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
799 Reserve alignment invariants.
800 (grub_multiboot_load): Likewise.
801 (retrieve_video_parameters): Likewise.
802 (grub_multiboot_make_mbi): Likewise.
803
804 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
807 incorrect pointer.
808
809 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
812 (grub_pata_pio_write): Likewise.
813
814 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
815
816 Add noreturn attributes and remove unreachable code.
817
818 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
819 code.
820 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
821 code. Mark as noreturn.
822 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
823 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
824 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
825 unreachable code.
826 * grub-core/kern/main.c (grub_main): Mark as noreturn.
827 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
828 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
829 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
830 * include/grub/kernel.h (grub_main): Mark as noreturn.
831 * include/grub/reader.h (grub_rescue_run): Likewise.
832
833 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
834
835 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
836 redundant declaration.
837
838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * include/grub/net.h (grub_net_network_level_interfaces): Remove
841 redundant declaration.
842 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
843
844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
847 to ensure alignment.
848 (grub_hdparm_print_identify): Make argument uint16 * to ensure
849 alignment. Ensure tmp alignment.
850 (grub_cmd_hdparm): Ensure buf alignment.
851 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
852 to ensure alignment.
853 (grub_ata_dumpinfo): Ensure text alignment.
854 (grub_atapi_identify): Preserve alignment invariant.
855 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
856
857 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
860 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
861 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
862 * include/grub/misc.h (grub_reboot)
863 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
864 (grub_halt) [__mips__]: Likewise.
865
866 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
867
868 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
869 Remove redundant declaration.
870 (grub_mmap_get_post64): Likewise.
871 (grub_mmap_get_upper): Likewise.
872 (grub_mmap_get_lower): Likewise.
873
874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
877 uint32_t * to ensure alignment.
878 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
879
880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
883 uint16_t * to ensure alignment.
884 (sun_pc_partition_map_iterate): Make `block' a union to ensure
885 alignment.
886
887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
890 to ensure alignment.
891 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
892
893 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/fs/ntfs.c (u16at): Make into inline function.
896 Handle unaligned pointers.
897 (u32at): Likewise.
898 (u64at): Likewise.
899 (fixup): Use byte access instead of v16at.
900 (find_attr): Fix imporper usage of v32at.
901 (read_data): Likewise.
902 (list_file): Handle byte-swapping and unaligned strings.
903 (grub_ntfs_label): Likewise.
904
905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
906
907 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
908 as it's not necessarily aligned.
909
910 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
911
912 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
913 redundant declaration.
914 (grub_serial_init): Likewise.
915 (grub_terminfo_init): Likewise.
916
917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
920 function.
921 (ZAP_HASH_IDX): Likewise.
922 (ZAP_LEAF_HASH_SHIFT): Likewise.
923 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
924 (LEAF_HASH): Likewise.
925 (ZAP_LEAF_NUMCHUNKS): Likewise.
926 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
927 alignment invariants. Return pointer. All users updated.
928 (ZAP_LEAF_ENTRY): Make into inline function.
929 (NBBY): Removed.
930 (xor): LIkewise.
931 (xor_out): Use grub_crypto_xor.
932 (dnode_get_path): Use grub_get_unaligned.
933 (nvlist_find_value): Likewise.
934 (grub_zfs_nvlist_lookup_uint64): Likewise.
935 (grub_zfs_nvlist_lookup_string): Likewise.
936 (get_nvlist_size): Likewise.
937 (grub_zfs_open): Likewise.
938 (fill_fs_info): Likewise.
939 (grub_zfs_dir): Likewise.
940 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
941 alignment invariants.
942 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
943 necessarily aligned.
944
945 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
948
949 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
952 arithmetic to conserve alignment invariants.
953
954 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
957 redundant declaration.
958 (grub_efiemu_mm_obtain_request): Likewise.
959 (grub_efiemu_prepare): Likewise.
960
961 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
964 to match types.
965
966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
969 case of aunaligned recptr.
970 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
971 alignment.
972 (grub_hfsplus_btree_search): Handle unaligned index.
973
974 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
977 to get freetag and skip.
978
979 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
982 array.
983 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
984 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
985
986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
989 name for checksum and fix allocation algorithm.
990
991 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * include/grub/types.h (grub_properly_aligned_t): New type.
994 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
995 (grub_get_unaligned16): Add explicit casts.
996 (grub_get_unaligned32): Likewise.
997 (grub_get_unaligned64): Likewise.
998 (grub_set_unaligned16): New function.
999 (grub_set_unaligned32): Likewise.
1000
1001 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1004
1005 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1008 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1009 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1010
1011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1014 conditionals.
1015
1016 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1019 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1020
1021 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 Unify and improve RAID and crypto xor.
1024
1025 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1026 changed to grub_crypto_xor
1027 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1028 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1029 Use bigger types when possible.
1030
1031 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * grub-core/disk/raid.c (scan_devices): Fix condition.
1034
1035 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1038 Make name a const ptr.
1039
1040 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1043 first argument a const pointer.
1044 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1045 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1046 proto.
1047 (grub_children_iterate): Likewise.
1048 (grub_machine_mmap_iterate): Remove redundant declaration.
1049
1050 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1053 (grub_cmd_acpi) [!x86]: Disable EBDA.
1054
1055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 Enable UTF8 in gnulib regexp.
1058
1059 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1060 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1061 (isupper): Use grub_isupper.
1062 (isascii): New inline function.
1063 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1064 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1065 * grub-core/normal/charset.c (grub_utf8_process): New function.
1066 (grub_utf8_to_utf16): Use grub_utf8_process.
1067 (grub_encode_utf8_character): New function.
1068 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1069 * include/grub/charset.h (grub_utf8_process): New declaration.
1070 (grub_encode_utf8_character): Likewise.
1071 * include/grub/misc.h (grub_islower): New inline function.
1072 (grub_isupper): Likewise.
1073 (grub_strchrsub): Moved down to fix the definitions.
1074
1075 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1078 specification.
1079
1080 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * include/grub/loader.h (grub_loader_register_preboot_hook):
1083 Use struct preboot * and not void * for handle. All users updated.
1084 (grub_loader_unregister_preboot_hook): Likewise.
1085
1086 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1089 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1090 UTF-16-BE. All users updated.
1091 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1092 (grub_hfsplus_iterate_dir): Likewise.
1093 (grub_hfsplus_label): Likewise.
1094
1095 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1098
1099 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 Add missing const qualifiers.
1102
1103 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1104 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1105 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1106 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1107 (grub_lvm_check_flag): Likewise.
1108 * grub-core/efiemu/i386/coredetect.c
1109 (grub_efiemu_get_default_core_name): Likewise
1110 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1111 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1112 * grub-core/fs/ntfs.c (fixup): Likewise.
1113 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1114 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1115 (fzap_lookup): Likewise.
1116 (zap_lookup): Likewise.
1117 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1118 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1119 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1120 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1121 (grub_freebsd_add_meta_module): Likewise.
1122 (grub_cmd_freebsd_module): Likewise.
1123 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1124 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1125 (grub_xnu_writetree_get_size): Likewise.
1126 (grub_xnu_writetree_toheap_real): Likewise.
1127 (grub_xnu_find_key): Likewise.
1128 (grub_xnu_create_key): Likewise.
1129 (grub_xnu_create_value): Likewise.
1130 (grub_xnu_register_memory): Likewise.
1131 (grub_xnu_check_os_bundle_required): Likewise.
1132 (grub_xnu_scan_dir_for_kexts): Likewise.
1133 (grub_xnu_load_kext_from_dir): Likewise.
1134 * grub-core/normal/color.c (color_list): Likewise.
1135 * grub-core/normal/completion.c (current_word): Likewise.
1136 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1137 * grub-core/term/serial.c (grub_serial_find): Likewise.
1138 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1139 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1140 Likewise.
1141 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1142 (grub_freebsd_add_meta_module): Likewise.
1143 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1144 * include/grub/net.h (grub_net_card_driver): Likewise.
1145 (grub_net_card): Likewise.
1146 (grub_net_app_protocol): Likewise.
1147 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1148 * include/grub/serial.h (grub_serial_find): Likewise.
1149 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1150 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1151 (grub_xnu_create_value): Likewise.
1152 (grub_xnu_find_key): Likewise.
1153 (grub_xnu_scan_dir_for_kexts): Likewise.
1154 (grub_xnu_load_kext_from_dir): Likewise.
1155
1156 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1157 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1158 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1159 Moved from here ...
1160 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1161
1162 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1163
1164 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1165
1166 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1169 (read_device): Fix size calculation.
1170
1171 2011-11-25 Robert Millan <rmh@gnu.org>
1172
1173 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1174 (find_root_device_from_libzfs): Add zpool output parser to be used
1175 as fallback when libzfs isn't available.
1176
1177 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1178
1179 * po/Makefile.in.in: Add missing escape-continuation.
1180
1181 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1184
1185 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1188
1189 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1192
1193 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1196
1197 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 * grub-core/lib/adler32.c: Add missing license specification.
1200 * grub-core/lib/crc64.c: Likewise.
1201 * grub-core/loader/i386/pc/plan9.c: Likewise.
1202 * grub-core/partmap/plan.c: Likewise.
1203
1204 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1205
1206 Add facility to debug GRUB with gdb under qemu.
1207
1208 * grub-core/gdb_grub.in: New file.
1209 * grub-core/gmodule.pl.in: Likewise.
1210 * grub-core/Makefile.core.def (gmodule.pl): New script.
1211 (gdb_grub): Likewise.
1212
1213 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * util/grub-mount.c (argp_parser): Accept relative pathes.
1216 * util/grub-fstest.c (argp_parser): Likewise.
1217
1218 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 Plan9 support.
1221
1222 * Makefile.util.def (libgrubmods): Add
1223 grub-core/partmap/plan.c.
1224 * docs/grub.texi: Notice Plan9 support.
1225 * grub-core/Makefile.core.def (plan9): New module.
1226 (part_plan): Likewise.
1227 * grub-core/loader/i386/pc/plan9.c: New file.
1228 * grub-core/partmap/plan.c: Likewise.
1229 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1230 define.
1231 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1232 * include/grub/mm.h (grub_extend_alloc): New inline function.
1233
1234 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 Make Reed-Solomon faster by using power of generator representation of
1237 GF(256)*.
1238
1239 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1240 (gf_double_t): Likewise.
1241 (gf_invert): Removed.
1242 (gf_powx): New array.
1243 (gf_powx_inv): Likewise.
1244 (scratch): Move higher.
1245 (gf_reduce): Removed.
1246 (gf_mul): Use powx.
1247 (gf_invert): Likewise.
1248 (init_inverts): Replaced with ...
1249 (init_powx): ...this. All users updated.
1250 (pol_evaluate): Replace multiplications with additions.
1251 (rs_encode): Likewise.
1252 (gauss_eliminate): Call gf_invert.
1253 (grub_reed_solomon_add_redundancy): Call init_powx.
1254 (grub_reed_solomon_recover): Call init_powx unconditionally.
1255
1256 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1259
1260 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1263 disk->partiton for safety.
1264
1265 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1268 Fix a memory leak.
1269 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1270
1271 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1274
1275 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1278
1279 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Fix spaces handling in proc/self/mountinfo.
1282
1283 * util/getroot.c (unescape): New function.
1284 (grub_find_root_device_from_mountinfo): Use unescape.
1285
1286 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 Support ZFS embedding.
1289
1290 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1291 (grub_zfs_fs): Register grub_zfs_embed.
1292
1293 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 Fix MIPS compilation.
1296
1297 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1298 * include/grub/offsets.h: Rename decompressor fields from
1299 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1300 * util/grub-mkimage.c (image_targets): Use new names.
1301
1302 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 Defer multiboot device parsing until we're in compressed part.
1305
1306 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1307 bsd_part. setdevice has fallen into disuse.
1308 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1309 (bsd_part): Likewise.
1310 (boot_dev): New variable.
1311 (multiboot_trampoline): Don't parse multiboot device.
1312 Pass multiboot device in %edx.
1313 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1314 grub_boot_device.
1315 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1316 Likewise.
1317 * grub-core/kern/i386/pc/startup.S: Save edx.
1318 (grub_boot_drive): Removed.
1319 (grub_install_dos_part): Likewise.
1320 (grub_install_bsd_part): Likewise.
1321 (grub_boot_device): New variable.
1322 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1323 (grub_install_bsd_part): Likewise.
1324 (grub_boot_drive): Likewise.
1325 (grub_boot_device): New variable.
1326 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
1327 Removed.
1328 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
1329 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
1330 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
1331 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
1332 * util/grub-install.in: Remove redundant condition.
1333
1334 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 Fix bug introduced by previous commit.
1337
1338 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
1339
1340 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Use decompressors framework on i386-pc. It increases core size
1343 by 46 bytes but improves compatibility and maintainability.
1344
1345 * grub-core/Makefile.core.def (lzma_decompress): New image.
1346 (kernel): Add i386_pc_ldflags.
1347 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
1348 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
1349 to real_to_prot, prot_to_real and device info.
1350 * include/grub/offsets.h: Renamed decompressor offsets.
1351 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
1352 (image_target_desc): Remove raw_size and rename decompressor fields.
1353 (compress_kernel): Handle lzma.
1354 (generate_image): Handle decompressors on i386-pc.
1355
1356 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * configure.ac: Add -fno-asynchronous-unwind-tables.
1359
1360 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 Move assembly code to C by using intwrap. It increases core size
1363 by 88 bytes but improves compatibility and maintainability.
1364
1365 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
1366 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
1367 ... here. Translated to C.
1368 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
1369 * grub-core/term/i386/pc/console.c (grub_console_getkey):
1370 ... here. Translated to C.
1371 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
1372 * grub-core/term/i386/pc/console.c (grub_console_getxy):
1373 ... here. Translated to C.
1374 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
1375 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
1376 ... here. Translated to C.
1377 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
1378 * grub-core/term/i386/pc/console.c (grub_console_cls):
1379 ... here. Translated to C.
1380 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
1381 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
1382 ... here. Translated to C.
1383 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
1384 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
1385 Translated to C.
1386 * grub-core/term/i386/pc/console.c (int10_9): New function.
1387 (grub_console_putchar): Likewise.
1388 * include/grub/i386/pc/console.h: Removed the not anymore shared
1389 functions.
1390
1391 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 Move grub_chainloader_real_boot out of the kernel.
1394
1395 * grub-core/Makefile.am: Remove machine/loader.h.
1396 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1397 Removed.
1398 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
1399 variable.
1400 (grub_relocator16_keep_a20_enabled): Likewise.
1401 (grub_relocator16_boot): Fill new variables.
1402 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
1403 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
1404 relocator.
1405 (grub_chainloader_unload): Likewise.
1406 (grub_chainloader_cmd): Likewise.
1407 * include/grub/i386/pc/loader.h: Removed.
1408 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
1409 and esi. All initialisers updated.
1410
1411 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1412 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
1413
1414 * Makefile.util.def (grub-mount): New util.
1415 * .bzrignore: Add grub-mount.
1416 * configure.ac: Check for fuse and enable grub-mount if available.
1417 * docs/man/grub-mount.h2m: New file.
1418 * util/grub-mount.c: Likewise.
1419
1420 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/commands/efi/fixvideo.c: Gettextize.
1423 * grub-core/commands/hashsum.c: Likewise.
1424 * grub-core/commands/i386/cmostest.c: Likewise.
1425 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1426 * grub-core/commands/i386/pc/lsapm.c: Likewise.
1427 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1428 * grub-core/commands/lsmmap.c: Likewise.
1429 * grub-core/commands/menuentry.c: Likewise.
1430 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
1431 * grub-core/commands/setpci.c: Likewise.
1432 * grub-core/loader/i386/bsd.c: Likewise.
1433 * grub-core/loader/i386/linux.c: Likewise.
1434 * util/getroot.c: Likewise.
1435 * util/grub-editenv.c: Likewise.
1436 * util/grub-fstest.c: Likewise.
1437 * util/grub-mkfont.c: Likewise.
1438 * util/grub-mkimage.c: Likewise.
1439 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1440 * util/grub-pe2elf.c: Likewise.
1441 * util/grub-probe.c: Likewise.
1442 * util/grub-setup.c: Likewise.
1443 * util/ieee1275/ofpath.c: Likewise.
1444 * util/misc.c: Likewise.
1445 * util/raid.c: Likewise.
1446
1447 2011-11-11 Robert Millan <rmh@gnu.org>
1448
1449 * util/getroot.c (grub_util_get_geom_abstraction): Remove
1450 __attribute__((unused)) from `os_dev', which *is* being used.
1451
1452 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1453
1454 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
1455 forgotten define.
1456 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
1457 GRUB_IA64_DL_GOT_ALIGN.
1458 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
1459 GRUB_IA64_DL_TRAMP_ALIGN.
1460
1461 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1462
1463 Replace grub_fatal with normal errors in i386 linux loader.
1464
1465 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
1466 (allocate_pages): Check find_efi_mmap_size return value.
1467 (grub_e820_add_region): Return error.
1468 (grub_linux_boot): Check mmap return value.
1469
1470 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * grub-core/commands/acpihalt.c: Gettextized.
1473 * grub-core/commands/cacheinfo.c: Likewise.
1474 * grub-core/commands/cmp.c: Likewise.
1475 * grub-core/commands/efi/loadbios.c: Likewise.
1476 * grub-core/commands/gptsync.c: Likewise.
1477 * grub-core/commands/ieee1275/suspend.c: Likewise.
1478 * grub-core/commands/legacycfg.c: Likewise.
1479 * grub-core/commands/memrw.c: Likewise.
1480 * grub-core/commands/minicmd.c: Likewise.
1481 * grub-core/commands/parttool.c: Likewise.
1482 * grub-core/commands/time.c: Likewise.
1483 * grub-core/commands/videoinfo.c: Likewise.
1484 * grub-core/disk/geli.c: Likewise.
1485 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
1486 * grub-core/disk/luks.c: Likewise.
1487 * grub-core/disk/lvm.c: Likewise.
1488 * grub-core/font/font_cmd.c: Likewise.
1489 * grub-core/fs/zfs/zfscrypt.c: Likewise.
1490 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1491 * grub-core/gfxmenu/view.c: Likewise.
1492 * grub-core/kern/emu/hostdisk.c: Likewise.
1493 * grub-core/kern/emu/main.c: Likewise.
1494 * grub-core/kern/emu/misc.c: Likewise.
1495 * grub-core/kern/emu/mm.c: Likewise.
1496 * grub-core/kern/mips/arc/init.c: Likewise.
1497 * grub-core/kern/mips/loongson/init.c: Likewise.
1498 * grub-core/kern/partition.c: Likewise.
1499 * grub-core/lib/i386/halt.c: Likewise.
1500 * grub-core/lib/mips/arc/reboot.c: Likewise.
1501 * grub-core/lib/mips/loongson/reboot.c: Likewise.
1502 * grub-core/loader/i386/pc/chainloader.c: Likewise.
1503 * grub-core/loader/i386/xnu.c: Likewise.
1504 * grub-core/loader/multiboot.c: Likewise.
1505 * grub-core/net/bootp.c: Likewise.
1506 * grub-core/net/net.c: Likewise.
1507 * grub-core/normal/term.c: Likewise.
1508 * grub-core/partmap/bsdlabel.c: Likewise.
1509 * grub-core/parttool/msdospart.c: Likewise.
1510 * grub-core/term/gfxterm.c: Likewise.
1511 * grub-core/term/terminfo.c: Likewise.
1512 * grub-core/video/i386/pc/vbe.c: Likewise.
1513 * util/grub-menulst2cfg.c: Likewise.
1514 * util/grub-mkdevicemap.c: Likewise.
1515 * util/grub-mklayout.c: Likewise.
1516 * util/grub-mkrelpath.c: Likewise.
1517 * util/grub-script-check.c: Likewise.
1518 * util/ieee1275/grub-ofpathname.c: Likewise.
1519 * util/resolve.c: Likewise.
1520
1521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 Support %1$d syntax.
1524
1525 * tests/printf_unit_test.c: New file.
1526 * Makefile.util.def (printf_test): New test.
1527 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
1528
1529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
1532 fix.
1533
1534 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
1537 dprintf.
1538 * grub-core/font/font.c (grub_font_load): Likewise.
1539
1540 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * util/grub-macho2img.c: Add comment concerning gettext.
1543 * grub-core/lib/legacy_parse.c: Likewise.
1544
1545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
1548 (grub_xvasprintf): Likewise.
1549
1550 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 Add const keyword to grub_env_get and gettextize week days.
1553
1554 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
1555 (grub_read_hook_datetime): Return const char *.
1556 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
1557 updated.
1558 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1559 Mark for gettext.
1560 (grub_get_weekday_name): Return const char *. Call gettext.
1561 * grub-core/script/argv.c (grub_script_argv_append): Receive const
1562 char * and len as the argument. All users updated.
1563 (grub_script_argv_split_append): Receive const char *.
1564 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
1565 * include/grub/env.h (grub_env_get): Likewise.
1566 (grub_env_read_hook_t): Return const char *.
1567 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
1568 (grub_script_argv_split_append): Likewise.
1569
1570 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
1573
1574 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
1577 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
1578
1579 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
1582 Fix prototype.
1583
1584 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 Fix mips compilation.
1587
1588 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
1589 normal decoder.
1590 (hashes): Use in embed decoder as well (for sizes).
1591 (dec_stream_header): Fix embed decompressor logic.
1592 (dec_stream_footer): Likewise.
1593
1594 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
1597 an error and not a fatal on unrecognised relocation types.
1598
1599 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
1602 Issue error rather than printf on unknown arguments.
1603
1604 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
1607 Make buf a const.
1608
1609 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
1612 Fix module name.
1613
1614 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
1617 leftover debug printf.
1618
1619 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
1622
1623 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
1626 A stylistic fix.
1627
1628 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
1631
1632 2011-11-10 Shea Levy <slevy@tieronedesign.com>
1633
1634 Allow all modules to perform serial IO
1635
1636 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
1637 * include/grub/serial.h (grub_serial_port_configure): New inline
1638 function.
1639 (grub_serial_port_fetch): Likewise.
1640 (grub_serial_port_put): Likewise.
1641 (grub_serial_port_fini): Likewise.
1642 (grub_serial_find): New proto.
1643
1644 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Put symlink at the end of the node and fix a potential
1647 memory corruption.
1648
1649 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
1650 Make symlink into an array.
1651 (set_rockridge): Set have_symlink and alloc_dirents.
1652 (grub_iso9660_read_symlink): Use new layout.
1653 (grub_iso9660_iterate_dir): Fix memory corruption.
1654 Use new layout.
1655 (grub_iso9660_dir): Set have_symlink.
1656 (grub_iso9660_open): Likewise.
1657
1658 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 Remove local keyword.
1661
1662 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
1663 (version_test_gt): Likewise.
1664 (version_find_latest): Likewise.
1665 (gettext_printf): Likewise.
1666 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
1667
1668 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1669
1670 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
1671
1672 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 Fix ZFS memory and resource leaks.
1675
1676 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
1677 All users updated.
1678 Free type on exit.
1679 (fill_vdev_info): New parameter inserted. All users updated.
1680 (check_pool_label): Likewise.
1681 (scan_disk): Likewise.
1682 (scan_devices): Close non-inserted disks.
1683 (fzap_iterate): Free l.
1684 (unmount_device): Free children descripto memory.
1685
1686 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
1689 argument (access out of bounds).
1690
1691 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
1694 >= 6 drives.
1695
1696 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
1699 Fix declaration.
1700
1701 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 Fix several memory leaks.
1704
1705 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
1706 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
1707 (grub_cpio_dir): Likewise.
1708 * grub-core/fs/fat.c (grub_fat_label): Likewise.
1709 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
1710 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
1711 (grub_romfs_label): Likewise.
1712 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
1713 (squash_unmount): New function.
1714 (grub_squash_dir): Fix memory leak.
1715 (grub_squash_open): Likewise.
1716 (grub_squash_read): Likewise.
1717 (grub_squash_mtime): Likewise.
1718 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
1719 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
1720 * util/grub-fstest.c (fstest): Likewise.
1721
1722 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
1725 avoid accessing beyond the array.
1726
1727 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
1730
1731 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 Several AFFS fixes.
1734
1735 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
1736 (GRUB_AFFS_FLAG_FFS): Removed.
1737 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
1738 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
1739 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
1740 (grub_fshelp_node): Make block 32-bit.
1741 Add block_cache and last_block_cache.
1742 (grub_affs_read_block): Fill and use block cache.
1743 (grub_affs_read_file): Removed.
1744 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
1745 boot block.
1746 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
1747 safety.
1748 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
1749 space.
1750 (grub_affs_close): Free block cache.
1751 (grub_affs_read): Use grub_fshelp_read_file directly.
1752
1753 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
1756 with no error set.
1757
1758 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
1761 used variable.
1762 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1763 Likewise.
1764
1765 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
1768
1769 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
1770 byteswap when needed.
1771
1772 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 Fix FreeBSD compilation.
1775
1776 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
1777 to avoid circular dependency.
1778 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
1779 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
1780 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
1781
1782 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 Fix ZFS crypto error types.
1785
1786 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
1787 (grub_gcm_decrypt): Likewise.
1788 (grub_zfs_load_key_real): Fix error code type. Handle possible error
1789 from PBKDF2.
1790
1791 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 Illumos support.
1794
1795 * Makefile.util.def (10_illumos): New script.
1796 * configure.ac: Set COND_HOST_ILLUMOS.
1797 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
1798 Support Illumos calls.
1799 (find_partition_start) [__sun__]: Likewise.
1800 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
1801 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
1802 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
1803 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
1804 device.
1805 * util/grub-probe.c (probe) [__sun__]: Do character check.
1806 * util/grub.d/10_illumos.in: New file.
1807
1808 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 Support escaped commas in hostdisk.
1811
1812 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
1813 (find_grub_drive): Use unescape_cmp.
1814 (make_device_name): Escape commas.
1815
1816 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
1819
1820 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
1823 variable.
1824
1825 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 Support trampoline jumps on powerpc.
1828
1829 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
1830 __ia64__ path.
1831 (grub_dl_load_segments): Set mod->sz.
1832 (grub_dl_flush_cache): Flush whole space occupied by module, not just
1833 segments.
1834 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
1835 (jump): Likewise.
1836 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
1837 function.
1838 (trampoline): New struct.
1839 (trampoline_template): New const.
1840 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
1841 * include/grub/dl.h (grub_dl): Add sz element.
1842 [__powerpc__]: Follow __ia64__.
1843 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
1844 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
1845 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
1846 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
1847
1848 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 ZFS crypto support.
1851
1852 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
1853 * grub-core/Makefile.core.def (zfscrypt): New module.
1854 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
1855 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
1856 it. All users updated.
1857 (grub_zfs_decrypt): New var.
1858 (grub_zfs_load_key): Likewise.
1859 (zio_checksum_functions): Add SHA256+MAC.
1860 (zio_checksum_verify): Handle incomplete comparison due to MAC.
1861 (zio_read): Handle encrypted blocks.
1862 (zap_verify): Remove incorrect check.
1863 (fzap_iterate): Handle non-standard fzap.
1864 (zap_iterate): Likewise.
1865 (zap_iterate_u64): New function.
1866 (dnode_get_fullpath): Load keys.
1867 * grub-core/fs/zfs/zfscrypt.c: New file.
1868 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
1869 (grub_crypto_ecb_encrypt): Make input const.
1870 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
1871 (grub_crypto_ecb_encrypt): Make input const.
1872 (GRUB_CIPHER_AES): New macro.
1873 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
1874 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
1875 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
1876 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
1877 prefix. All users updated.
1878 (grub_zfs_add_key): New proto.
1879 (grub_zfs_decrypt): Likewise.
1880 (grub_zfs_load_key): Likewise.
1881 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
1882 * util/grub-fstest.c (options): Add -K option.
1883 (argp_parser): Likewise.
1884
1885 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 Support zle compression on ZFS.
1888
1889 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
1890 (decomp_table): Add zle.
1891 * include/grub/zfs/zio.h (zio_compress): Add zle.
1892
1893 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 Support BtrFS embedding.
1896
1897 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
1898 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
1899 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
1900 * util/grub-setup.c (setup): Use fs embedding if available.
1901 Add additional sanity check.
1902
1903 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * util/grub-install.in: Fix condition for config_opt.
1906
1907 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 Support third redundancy strip on raidz3.
1910
1911 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
1912 Return error on singularity. All users updated.
1913 (read_device): Don't stop on 3rd failure on raidz3.
1914
1915 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 Support case-insensitive ZFS subvolumes.
1918
1919 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
1920 All users updated.
1921 (zap_hash): Likewise.
1922 (name_cmp): New function.
1923 (zap_leaf_array_equal): New parameter case_insensitive.
1924 All users updated.
1925 (zap_leaf_lookup): Likewise.
1926 (fzap_lookup): Likewise.
1927 (zap_lookup): Likewise.
1928 (dnode_get_path): New parameter case_insensitive. Retrieve case
1929 sensitiviness of a volume. All users updated.
1930 (dnode_get_fullpath): New parameter case_insensitive.
1931 All users updated.
1932 (grub_zfs_dir): Set info.case_insensitiveness.
1933
1934 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Support second redundancy strip on raidz(2,3).
1937
1938 * grub-core/fs/zfs/zfs.c (powx): New array.
1939 (powx_inv): Likewise.
1940 (poly): New const.
1941 (xor_out): New function.
1942 (gf_mul): Likewise.
1943 (recovery): Likewise.
1944 (read_device): Use second redundancy strip.
1945
1946 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1947
1948 Use a power of generator representation of GF(256) multiplication group
1949 to save space time and complexity.
1950
1951 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
1952 (raid6_table2): Likewise.
1953 (powx): New array.
1954 (powx_inv): Likewise.
1955 (poly): New const.
1956 (grub_raid_block_mul): Replace with ...
1957 (grub_raid_block_mulx): ...this.
1958 (grub_raid6_init_table): Rewritten.
1959 (grub_raid6_recover): Use power of generator representation.
1960
1961 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
1964 for the right device.
1965
1966 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
1969 expected by grub-mkimage and it's more clear since there is no implicit
1970 padding.
1971
1972 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
1975 disk.
1976 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
1977
1978 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
1979
1980 * util/grub-mkrescue.in: Fix handling xorriso option.
1981
1982 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
1985 NULL.
1986
1987 2011-11-03 crocket <crockabiscuit@gmail.com>
1988
1989 * util/grub.d/10_linux.in: Add Slackware initrd naming.
1990
1991 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 XZ CRC64 and SHA256 support.
1994
1995 * Makefile.util.def (libgrubmods): Add crc64.c.
1996 * grub-core/Makefile.core.def (crc64): New module.
1997 * grub-core/lib/crc64.c: New file.
1998 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
1999 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2000 Fix the type.
2001 (MAX_HASH_SIZE): New define.
2002 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2003 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2004 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2005 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2006 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2007 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2008 Handle non-crc32 hashes.
2009 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2010 (dec_stream_header): Handle non-crc32 hashes.
2011 (dec_stream_footer): Likewise.
2012 (dec_block_header): Likewise.
2013 (dec_main): Likewise.
2014 (xz_dec_init): Likewise.
2015 (xz_dec_reset): Likewise.
2016 (xz_dec_end): Likewise.
2017 * util/import_gcry.py: Add CRC64 line.
2018
2019 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2022 as well.
2023
2024 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 Make reiserfs label retrieval similar to other *_label functions.
2027
2028 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2029 (REISERFS_MAX_LABEL_LENGTH): Removed.
2030 (REISERFS_LABEL_OFFSET): Likewise.
2031 (grub_reiserfs_label): Rewritten.
2032
2033 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2036 field.
2037
2038 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2041
2042 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2045 drive failure on both raidz and raidz2.
2046
2047 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 Fix RAIDZ(2) for >= 5 devices.
2050
2051 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2052 asize argument. All users updated.
2053
2054 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 Fix RAIDZ(2).
2057
2058 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2059 (fill_vdev_info_real): Set ashift.
2060 (read_device): Rewrite RAIDZ part based on reverse engineering.
2061
2062 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2065 don't report potentially unavialiable fields in debug output.
2066 (find_path): Fix double-free and memory leak.
2067
2068 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 Read label on UFS1.
2071
2072 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2073 (grub_ufs_fs): Always set .label.
2074
2075 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 Use shifts in UFS.
2078
2079 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2080 (grub_ufs_data): New field log2_blksz.
2081 (grub_ufs_read_file): Use shifts.
2082 (grub_ufs_mount): Check block size and logarithm it.
2083
2084 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2087 long symlinks.
2088
2089 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 Handle symlinks and long names on tar and cpio.
2092
2093 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2094 (ATTR_FILE): Likewise.
2095 (ATTR_DIR): Likewise.
2096 (ATTR_LNK): Likewise.
2097 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2098 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2099 L and K entries.
2100 (grub_cpio_mount): Zero-fill data.
2101 (handle_symlink): New function.
2102 (grub_cpio_dir): Handle symlinks.
2103 (grub_cpio_open): Likewise.
2104 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2105
2106 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 Fix iso9660 filename limitations and fix memory leaks.
2109
2110 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2111 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2112
2113 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 Fix JFS file name length limitations.
2116
2117 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2118 (grub_jfs_diropen): Fix maximum filename length.
2119 (grub_jfs_getent): Fix filename length.
2120 (grub_jfs_lookup_symlink): Fix size checks.
2121
2122 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2125 string.
2126
2127 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 Leverage BFS implementation to read AFS.
2130
2131 * Makefile.util.def (libgrubmods): Add afs.c.
2132 * grub-core/Makefile.core.def (afs): New module
2133 * grub-core/fs/afs.c: New file.
2134 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2135
2136 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2139
2140 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/fs/bfs.c: Run indent.
2143
2144 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 BFS implementation based on the specification.
2147
2148 * grub-core/fs/bfs.c: New file.
2149 * Makefile.util.def (libgrubmods): Add bfs.c.
2150 * grub-core/Makefile.core.def (bfs): New module.
2151
2152 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 * util/grub-fstest.c (cmd_cp): Clarify error message.
2155 (cmd_cmp): Likewise.
2156
2157 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2158
2159 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2160 and befs_be.
2161
2162 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Remove afs and befs because of copyright problem.
2165
2166 * grub-core/fs/afs.c: Removed.
2167 * grub-core/fs/afs_be.c: Removed.
2168 * grub-core/fs/befs.c: Removed.
2169 * grub-core/fs/befs_be.c: Removed.
2170 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2171 * grub-core/Makefile.core.def (afs): Removed.
2172 (afs_be): Likewise.
2173 (befs): Likewise.
2174 (befs_be): Likewise.
2175
2176 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 Prefer rockridge over Joliet.
2179
2180 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2181 to ...
2182 (set_rockridge): ... here.
2183 (grub_iso9660_mount): Check rockridge on the primary label when
2184 discovering. Ignore Joliet if Rockridge is present.
2185
2186 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 Use shifts in nilfs2.
2189
2190 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2191 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2192 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2193 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2194 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2195 (grub_nilfs2_entries_per_block): Replaced with ...
2196 (grub_nilfs2_log_entries_per_block_log): ... this.
2197 (grub_nilfs2_blocks_per_group): Replaced with ...
2198 (grub_nilfs2_blocks_per_group_log): ... this.
2199 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2200 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2201 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2202 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2203 (grub_nilfs2_palloc_entry_offset): Replaced ...
2204 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2205 (grub_nilfs2_dat_translate): Use shifts.
2206 (grub_nilfs2_read_inode): Likewise.
2207 (GRUB_MOD_INIT): Ensure that logs are correct.
2208
2209 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 Use shifts in minix filesystem.
2212
2213 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2214 (GRUB_MINIX_ZONE2SECT): Likewise.
2215 (grub_minix_data): Replace block_size with log_block_size.
2216 (grub_minix_read_file): Use shifts.
2217 (grub_minix_mount): Check block size and take a logarithm.
2218
2219 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 Use shifts in squash4.
2222
2223 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2224 (squash_mount): Check block size and take logarithm.
2225 (direct_read): Use shifts.
2226
2227 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 Correct befs block counting logic.
2230
2231 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2232 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2233 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2234 (grub_afs_read_inode): Use block_shift.
2235 (RANGE_SHIFT): New definition.
2236 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2237 unexpected conditions, use shifts and appropriate types.
2238 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2239
2240 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * grub-core/disk/raid.c (scan_devices): Check partition.
2243 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2244
2245 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 Support BFS (befs) UUID.
2248
2249 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2250 (grub_afs_small_data_element_header): New struct.
2251 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2252 (grub_afs_read_attribute) [MODE_BFS]: New function.
2253 (grub_afs_iterate_dir): Allocate for complete inode.
2254 (grub_afs_mount): Likewise.
2255 (grub_afs_uuid) [MODE_BFS]: New function.
2256 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2257
2258 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2261 (zfs_unmount): Fix memory leak.
2262
2263 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 Support NTFS reparse points.
2266
2267 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2268 (symlink_descriptor): New struct.
2269 (grub_ntfs_read_symlink): New function.
2270 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2271 (grub_ntfs_open): Likewise.
2272
2273 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2276
2277 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 fstest xnu_uuid subcommand.
2280
2281 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2282 grub-core/commands/xnu_uuid.c.
2283 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2284 (fstest): Handle xnu_uuid.
2285 (options): Document xnu_uuid.
2286 (argp_parser): Parse xnu_uuid.
2287
2288 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2291 -l argument. Add newline at the end if printing.
2292 (GRUB_MOD_INIT): Document -l.
2293
2294 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2297
2298 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 ZFS multi-device and version 33 support.
2301
2302 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2303 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2304 (grub_zfs_data): Add multidev-ice-related fields.
2305 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2306 (dva_get_offset): Make dva const.
2307 (zfs_fetch_nvlist): New function.
2308 (fill_vdev_info_real): Likewise.
2309 (fill_vdev_info): Likewise.
2310 (check_pool_label): Likewise.
2311 (scan_disk): Likewise.
2312 (scan_devices): Likewise.
2313 (read_device): Likewise.
2314 (read_dva): Likewise.
2315 (zio_read_gang): Use read_dva.
2316 (zio_read_data): Likewise.
2317 (zap_leaf_lookup): Add missing endian conversion.
2318 (zap_verify): Add missing endian conversion. All users updated.
2319 (fzap_lookup): Likewise.
2320 (fzap_iterate): Likewise.
2321 (dnode_get_path): Handle SA bonus.
2322 (nvlist_find_value): Make input const. All users updated.
2323 (unmount_device): New function.
2324 (zfs_unmount): Use unmount_device.
2325 (zfs_mount): Use scan_disk.
2326 (zfs_mtime): New function.
2327 (grub_zfs_open): Handle system attributes.
2328 (fill_fs_info): Likewise.
2329 (grub_zfs_dir): Likewise.
2330 (grub_zfs_fs): Add mtime.
2331 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
2332 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
2333 (SA_MTIME_OFFSET): Likewise.
2334 (SA_SYMLINK_OFFSET): Likewise.
2335 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
2336 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
2337 (fstest): Support zfsinfo.
2338 (argp_parser): Likewise.
2339
2340 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
2343 error.
2344
2345 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 ZFS fixes.
2348
2349 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
2350 sharing the same block. Iterate over correct number of indices.
2351 (dnode_get_path): Handle symlinks correctly.
2352
2353 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
2356
2357 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 Read label on HFS+.
2360
2361 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
2362 (grub_hfsplus_btree_search): Fix types.
2363 (grub_hfsplus_label): Implement.
2364
2365 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
2368
2369 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
2372
2373 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 Fix symlink handling on iso9660.
2376
2377 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
2378 All users updated.
2379 (grub_iso9660_susp_iterate): Accept zero-size iterate.
2380 (grub_iso9660_read_symlink): Moved most of code ...
2381 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
2382
2383 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2386 Use union to avoid breaking strict-aliasing rules.
2387
2388 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 Support multi-extent iso files.
2391
2392 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
2393 Add node.
2394 (grub_fshelp_node): Revamp. All users updated.
2395 (FLAG_*): New enum.
2396 (read_node): New function.
2397 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
2398 All users updated.
2399 (grub_iso9660_mount): Don't attempt to read sua when there is none.
2400 (get_node_size): New function.
2401 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
2402 entries.
2403 Fix memory leak on . and ..
2404 (grub_iso9660_read): Use read_node.
2405 (grub_iso9660_close): Free node.
2406
2407 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 Fix tar 4G limit and handle paths containing dot.
2410
2411 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
2412 (canonicalize): New function.
2413 (grub_cpio_find_file): Use canonicalize. Store offs in
2414 grub_disk_addr_t.
2415 (grub_cpio_dir): Use grub_disk_addr_t.
2416 (grub_cpio_open): Likewise.
2417
2418 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 Fix handling of uncompressed blocks on squashfs and break 4G limit.
2421
2422 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
2423 unused flags.
2424 (grub_squash_inode): Add long_file and block_size.
2425 (grub_squash_cache_inode): New struct.
2426 (grub_squash_dirent): Make types into enum.
2427 (SQUASH_TYPE_LONG_REGULAR): New type.
2428 (grub_squash_frag_desc): Add field size.
2429 (SQUASH_BLOCK_FLAGS): New enum.
2430 (grub_squash_data): Use grub_squash_cache_inode.
2431 (grub_fshelp_node): Make ino_chunk 64-bit.
2432 (read_chunk): Minor argument change. All users updated.
2433 (squash_mount): Use correct le_to_cpu.
2434 (grub_squash_open): Handle LONG_REGULAR.
2435 (direct_read): New function.
2436 (grub_squash_read_data): Handle blocks correctly.
2437
2438 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
2441
2442 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
2445
2446 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 Fix 2G limit on ZFS.
2449
2450 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
2451 types.
2452 (uberblock_verify): Likewise.
2453 (dmu_read): Likewise.
2454 (grub_zfs_read): Likewise. Remove invalid cast.
2455
2456 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
2459 (grub_jfs_blkno): Fix incorrect shift.
2460 (grub_jfs_read_file): Use more appropriate types.
2461
2462 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 Support triple indirect on minix2 and minix3.
2465
2466 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
2467 Declare triple_indir_zone.
2468 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
2469 indirect.
2470
2471 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 Minix FS fixes.
2474
2475 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
2476 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
2477 Rename ctime to mtime. All users updated.
2478 (grub_minix_get_file_block): Fix types and double indirect computations.
2479
2480 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
2483 if no label is found.
2484 (grub_fat_iterate_dir): Fix file size type.
2485 (grub_fat_iterate_dir): Likewise.
2486
2487 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
2490 save some space.
2491 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2492 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2493
2494 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
2497
2498 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * util/import_gcry.py: Accept space between # and include.
2501
2502 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
2505
2506 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 Fine grainely disable warnings on lexer. Remove Wno-error on it.
2509
2510 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
2511 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
2512 yylex_strncpy.
2513 * grub-core/script/yylex.l: Add fine-grained #pragma.
2514
2515 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
2518 New inline function.
2519 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
2520 Likewise.
2521 (memset) [GRUB_UTIL]: Likewise.
2522 (memcmp) [GRUB_UTIL]: Likewise.
2523
2524 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
2527 inline function rather than a define.
2528
2529 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * util/grub-setup.c: Add missing include.
2532
2533 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * util/ieee1275/grub-ofpathname.c: Add missing include.
2536
2537 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
2540 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
2541 Likewise.
2542
2543 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
2546 grub_memcmp usage.
2547
2548 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * util/grub-install.in: Add datarootdir as per automake manual
2551 suggestion.
2552 * util/grub-mknetdir.in: Likewise.
2553
2554 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
2557 suggestion.
2558 * util/grub.d/10_kfreebsd.in: Likewise.
2559 * util/grub.d/10_linux.in: Likewise.
2560 * util/grub.d/10_netbsd.in: Likewise.
2561 * util/grub.d/10_windows.in: Likewise.
2562 * util/grub.d/20_linux_xen.in: Likewise.
2563
2564 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 Remove redundant grub_kernel_image_size.
2567
2568 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
2569 _edata and _start.
2570 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
2571 the small code. It moves it only by few bytes but simplifies the code.
2572 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
2573 _start.
2574 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
2575 (grub_kernel_image_size): Removed.
2576 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
2577 (grub_kernel_image_size): Removed.
2578 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
2579 compiled with Apple toolchain.
2580 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
2581 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
2582 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
2583 (grub_total_module_size): Likewise.
2584 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
2585 Removed.
2586 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
2587 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
2588 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2589 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
2590 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
2591 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
2592 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
2593 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
2594 Removed.
2595 (grub_total_module_size): Removed.
2596 * util/grub-mkimage.c (image_target_desc): Remove image_size.
2597 (image_targets): Likewise.
2598 Set .compressed_size to no field on sparc.
2599 (generate_image): Remove kernel_image_size handling.
2600
2601 2011-10-19 Szymon Janc <szymon@janc.net.pl>
2602
2603 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
2604 NULL pointer dereference.
2605
2606 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
2609 done with a dedicated section.
2610
2611 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
2612 Ensure the correct position of boot_path.
2613 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
2614 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
2615 other fields.
2616 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
2617 * include/grub/boot.h: Removed. All references removed.
2618 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2619 Removed.
2620 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
2621
2622 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
2625 name.
2626
2627 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
2630
2631 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2634 Don't add the bogus brackets.
2635
2636 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 ExFAT support.
2639
2640 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
2641 * grub-core/Makefile.core.def (exfat): New module.
2642 * grub-core/fs/exfat.c: New file.
2643 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
2644 (GRUB_FAT_ATTR_*): Make into an enum.
2645 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
2646 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
2647 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
2648 (GRUB_FAT_MAXFILE): Removed.
2649 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
2650 (grub_current_fat_bpb_t): New type.
2651 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
2652 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
2653 (grub_fat_dir_node_t): New type.
2654 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
2655 (fat_log2) [MODE_EXFAT]: Removed.
2656 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
2657 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
2658 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
2659 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
2660 (grub_fat_label) [MODE_EXFAT]: New function.
2661 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
2662 reserved_first_sector to 0.
2663
2664 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Move grub_reboot out of the kernel.
2667
2668 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
2669 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
2670 * grub-core/lib/efi/reboot.c: ... here.
2671 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
2672 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2673 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
2674 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
2675 * grub-core/lib/i386/reboot_trampoline.S: ... here.
2676 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
2677 * grub-core/lib/ieee1275/reboot.c: ... here.
2678 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
2679 * grub-core/lib/mips/arc/reboot.c: ... here.
2680 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
2681 * grub-core/lib/mips/loongson/reboot.c: ...here.
2682 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
2683 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
2684 * include/grub/emu/misc.h (grub_reboot): New function declaration.
2685 * include/grub/i386/reboot.h: New file.
2686 * include/grub/mips/loongson/ec.h: Fix includes.
2687 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
2688 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
2689 * grub-core/lib/i386/reboot.c: New file.
2690
2691 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 Make grub_prefix into module to fix the arbitrary limit and save
2694 some space.
2695
2696 * grub-core/kern/emu/main.c (grub_prefix): Removed.
2697 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
2698 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
2699 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
2700 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
2701 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
2702 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
2703 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
2704 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
2705 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
2706 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
2707 * include/grub/ia64/efi/kernel.h: Removed.
2708 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
2709 (grub_prefix): Removed.
2710 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
2711 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
2712 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
2713 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
2714 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
2715 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
2716 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
2717 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
2718 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
2719 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
2720 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
2721 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
2722 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
2723 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
2724 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
2725 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
2726 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
2727 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
2728 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
2729 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
2730 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
2731 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
2732 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
2733 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
2734 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
2735 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
2736 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
2737 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
2738 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
2739 from module.
2740 * util/grub-mkimage.c (image_target_desc): Removed prefix and
2741 prefix_end.
2742 (image_targets): Likewise.
2743 (generate_image): Put prefix as a module.
2744
2745 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 Replace grub_module_iterate with FOR_MODULES.
2748
2749 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
2750 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
2751 (grub_efi_modules_addr): ...this.
2752 * grub-core/kern/efi/init.c (grub_modbase): New variable.
2753 (grub_efi_init): Set grub_modbase.
2754 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
2755 (grub_modbase): New variable.
2756 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
2757 (grub_modbase): New variable.
2758 (grub_machine_init): Set grub_modbase.
2759 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
2760 (grub_modbase): New variable.
2761 (grub_machine_init): Set grub_modbase.
2762 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
2763 (grub_modbase): New variable.
2764 (grub_machine_init): Set grub_modbase.
2765 * grub-core/kern/main.c (grub_module_iterate): Remove.
2766 (grub_modules_get_end): Use grub_modbase.
2767 (grub_load_modules): Use FOR_MODULES.
2768 (grub_load_config): Likewise.
2769 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
2770 (grub_modbase): New variable.
2771 (grub_machine_init): Set grub_modbase.
2772 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
2773 (grub_modbase): New variable.
2774 (grub_machine_init): Set grub_modbase.
2775 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
2776 Removed.
2777 (grub_modbase): New variable.
2778 (grub_machine_init): Set grub_modbase.
2779 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
2780 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
2781 (grub_module_iterate): Likewise.
2782 (grub_modbase): New variable declaration.
2783 (FOR_MODULES): New macro.
2784
2785 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * configure.ac: Check for __ctzdi2 and __ctzsi2.
2788 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
2789
2790 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 Fix few obvious type discrepancies.
2793
2794 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
2795 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
2796 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
2797 variable.
2798 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
2799 and connected types.
2800 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
2801 offset.
2802 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
2803 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
2804 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
2805 and connected types.
2806
2807 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 Fix python 3.x incompatibilities.
2810
2811 * gentpl.py: Put brackets around print strings.
2812 * util/import_gcry.py: Open explicitly as utf-8.
2813 Use in instead of has_key.
2814
2815 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
2818 (GRUB_XFS_INO_AGBITS): Make into inline function.
2819 (GRUB_XFS_INO_INOINAG): Likewise.
2820 (GRUB_XFS_INO_AG): Likewise.
2821 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
2822 (GRUB_XFS_EXTENT_OFFSET): Likewise.
2823 (GRUB_XFS_EXTENT_BLOCK): Likewise.
2824 (GRUB_XFS_EXTENT_SIZE): Likewise.
2825 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
2826 (GRUB_XFS_NEXT_DIRENT): Likewise.
2827 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
2828 (grub_xfs_read_file): Fix offset type.
2829
2830 2011-10-15 Robert Millan <rmh@gnu.org>
2831
2832 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
2833
2834 2011-10-15 Robert Millan <rmh@gnu.org>
2835
2836 Fix build problem on FreeBSD and GNU/kFreeBSD.
2837
2838 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
2839
2840 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
2843
2844 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
2845 types.
2846 (grub_hfsplus_btree_recoffset): Likewise.
2847 (grub_hfsplus_btree_recptr): Likewise.
2848 (grub_hfsplus_find_block): Likewise.
2849 (grub_hfsplus_btree_search): Likewise.
2850 (grub_hfsplus_read_block): Likewise.
2851 (grub_hfsplus_read_file): Likewise.
2852 (grub_hfsplus_mount): Likewise.
2853 (grub_hfsplus_btree_iterate_node): Likewise.
2854 (grub_hfsplus_btree_search): Likewise.
2855 (grub_hfsplus_iterate_dir): Likewise.
2856 (grub_hfsplus_read): A small code simplification.
2857
2858 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/kern/emu/hostdisk.c
2861 (convert_system_partition_to_system_disk): Don't assume that children
2862 of mapper nodes are mapper nodes.
2863
2864 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
2867 * include/grub/misc.h (grub_isxdigit): New function.
2868 * grub-core/video/colors.c (my_isxdigit): Removed. All users
2869 switched to grub_isxdigit.
2870 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
2871 number starting with a letter.
2872
2873 2011-10-09 Robert Millan <rmh@gnu.org>
2874
2875 LVM support for FreeBSD and GNU/kFreeBSD.
2876
2877 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
2878 GNU/kFreeBSD.
2879 (LVM_DEV_MAPPER_STRING): Move from here ...
2880 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
2881 * util/getroot.c: Include `<grub/util/lvm.h>'.
2882 (grub_util_get_dev_abstraction): Enable
2883 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
2884 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
2885 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
2886 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
2887 support it.
2888 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
2889 GNU/kFreeBSD.
2890 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
2891 when LVM abstraction is required for ${GRUB_DEVICE}.
2892
2893 2011-10-06 Szymon Janc <szymon@janc.net.pl>
2894
2895 Add support for LZO compression in GRUB:
2896 - import of minilzo library,
2897 - LZO decompression for btrfs,
2898 - lzop files decompression.
2899
2900 * grub-core/io/lzopio.c: New file.
2901 * grub-core/lib/adler32.c: Likewise.
2902 * grub-core/lib/minilzo/lzoconf.h: Likewise.
2903 * grub-core/lib/minilzo/lzodefs.h: Likewise.
2904 * grub-core/lib/minilzo/minilzo.c: Likewise.
2905 * grub-core/lib/minilzo/minilzo.h: Likewise.
2906 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
2907 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
2908 grub-core/lib/minilzo/minilzo.c to common.
2909 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
2910 cflags in cppflags.
2911 * grub-core/Makefile.core.def (btrfs): Likewise.
2912 * grub-core/Makefile.core.def (lzopio): New module.
2913 (adler32): Likewise.
2914 * grub-core/fs/btrfs.c: Include minilzo.h.
2915 (GRUB_BTRFS_COMPRESSION_LZO): New define.
2916 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
2917 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
2918 (grub_btrfs_lzo_decompress): New function.
2919 (grub_btrfs_extent_read): Add support for LZO compression type.
2920 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
2921 (GRUB_USHRT_MAX): Likewise.
2922 (GRUB_UINT_MAX): Likewise.
2923 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
2924 (UINT_MAX): Likewise.
2925 (CHAR_BIT): Likewise.
2926 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
2927 grub-core/lib/posix_wrap/limits.h
2928 (UCHAR_MAX): Likewise.
2929 * include/grub/file.h (grub_file_filter_id): New compression filter
2930 GRUB_FILE_FILTER_LZOPIO.
2931 * include/grub/file.h (grub_file_filter_id): Set
2932 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
2933 * include/grub/types.h (grub_get_unaligned16): New function.
2934 (grub_get_unaligned32): Likewise.
2935 (grub_get_unaligned64): Likewise.
2936 * util/import_gcry.py (cryptolist): Add adler32.
2937
2938 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
2941 in perspective decreases the complexity of build system and fixes
2942 compilation right now.
2943
2944 2011-10-01 Ales Nesrsta <starous@volny.cz>
2945
2946 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
2947 (fixed problem related to using UHCI with coreboot).
2948
2949 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2950
2951 * gentpl.py: Use Autogen macros so that the output template file
2952 (Makefile.tpl) size is reduced.
2953
2954 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
2955
2956 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
2957 extra_dist.
2958
2959 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2960
2961 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
2962 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
2963
2964 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2965
2966 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
2967 _fullpath.
2968
2969 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
2970
2971 Remove extra declaration of sleep for mingw32.
2972
2973 * util/misc.c (sleep) [__MINGW32__]: Removed.
2974 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
2975
2976 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2977
2978 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
2979 type and packname.
2980 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
2981 Resurrected.
2982 (NETBSD_BTINFO_BOOTWEDGE): New definition.
2983 (grub_netbsd_btinfo_bootwedge): New struct.
2984 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2985 New function.
2986 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
2987
2988 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
2989
2990 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
2991 loader.
2992
2993 2011-09-28 Andreas Born <futur.andy@googlemail.com>
2994
2995 Fix incorrect identifiers in bash-completion.
2996
2997 * util/bash-completion.d/grub-completion.bash.in
2998 (_grub_mkpasswd-pbkdf2): Rename to ...
2999 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3000 (_grub_script-check): Rename to ...
3001 (_grub_script_check): ... this. All users updated.
3002
3003 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3006 Return 0 if disk isn't biosdisk.
3007
3008 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3009
3010 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3011 on NetBSD.
3012 * Makefile.util.def (grub-fstest): Likewise.
3013
3014 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3015
3016 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3017 Get sector size from disk label.
3018
3019 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3020
3021 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3022 */README* as well as README*.
3023 Reported by: Axel Beckert.
3024
3025 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3028 case of less than 256 MiB of RAM.
3029
3030 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * grub-core/commands/wildcard.c (make_regex): Handle @.
3033
3034 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3037
3038 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3039
3040 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3041 AC_LANG_CONFTEST macros.
3042
3043 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3044
3045 Add grub-fstest option to uncompress data for commands.
3046
3047 * util/grub-fstest.c (uncompress): New var.
3048 (options): New option -u.
3049
3050 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3051
3052 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3053 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3054
3055 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3056
3057 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3058 file type was not recognized correctly (not gzip or corrupted).
3059
3060 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3063 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3064
3065 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3068 loongson.
3069 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3070 video_radeon_fuloong2e.
3071 * grub-core/video/radeon_fuloong2e.c: New file.
3072 * include/grub/video.h (grub_video_id_t): Add new ID
3073 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3074
3075 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3078 define.
3079 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3080 that PRID matches the detected subplatform and reset the subplatform
3081 if it doesn't.
3082
3083 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3086
3087 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 Fix PCI iterating on functions >= 4.
3090
3091 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3092 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3093 Removed.
3094 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3095 (grub_pci_read): Fix bitmask.
3096 (grub_pci_read_word): Likewise.
3097 (grub_pci_read_byte): Likewise.
3098 (grub_pci_write): Likewise.
3099 (grub_pci_write_word): Likewise.
3100 (grub_pci_write_byte): Likewise.
3101
3102 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3105 can still be specified in TARGET_CFLAGS)
3106
3107 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3110
3111 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3112 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3113 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3114 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3115 (FULOONG): Rename to ...
3116 (FULOONG2F): ... this. All users updated.
3117 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3118 (machtype_fuloong2f_str): ... this.
3119 (machtype_fuloong2e_str): New string.
3120 Check for machtype_fuloong2e_str.
3121 * grub-core/loader/mips/linux.c (loongson_machtypes)
3122 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3123 * grub-core/term/serial.c (loongson_defserial)
3124 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3125 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3126 loongson_defserial.
3127 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3128 Rename to ...
3129 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3130 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3131 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3132 to IMAGE_FULOONG2F_FLASH. All users updated.
3133 (image_targets): Rename images.
3134 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3135
3136 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3137
3138 Make enable of disk cache statistics code configurable.
3139
3140 * configure.ac: --enable-cache-stats added.
3141 * config.h.in (DISK_CACHE_STATS): New define.
3142 * grub-core/Makefile.core.def (cacheinfo): New command.
3143 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3144 * grub-core/commands/cacheinfo.c: New file.
3145 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3146 moved to cacheinfo.c.
3147 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3148 debug code.
3149 * include/grub/disk.h: Likewise.
3150
3151 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3152
3153 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3154 * grub-core/Makefile.am: Likewise.
3155
3156 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3159 non-zero pull.
3160
3161 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3164 All users updated.
3165 (grub_jfs_lookup_symlink): Use correct starting inode.
3166
3167 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * util/grub-setup.c (main): Add missing gcry initialisation.
3170
3171 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Don't accept text modes on EFI when booting Linux.
3174
3175 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3176 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3177
3178 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3179 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3180
3181 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3182 use of "/path/.." as in grub-install for EFI as well as handling
3183 symlinks correctly.
3184 Fixes Debian bug #637768.
3185
3186 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3187
3188 * util/grub-probe.c: Remove duplicate #include.
3189
3190 2011-08-10 Robert Millan <rmh@gnu.org>
3191
3192 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3193
3194 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3195 function.
3196 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3197 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3198
3199 2011-08-03 Robert Millan <rmh@gnu.org>
3200
3201 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3202 la_array as packed.
3203 Reported by: Zachary Bedell
3204
3205 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3206
3207 * configure.ac: The Loongson port requires grub-mkfont due to its
3208 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3209 be built.
3210
3211 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3212
3213 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3214 processing arguments (otherwise help2man fails when GRUB has not yet
3215 been installed).
3216
3217 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 New script grub-mkstandalone.
3220
3221 * Makefile.util.def (grub-mkstandalone): New script.
3222 * docs/man/grub-mkstandalone.h2m: New file.
3223 * util/grub-mkstandalone.in: Likewise.
3224
3225 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 Support ATA disks with 4K sectors.
3228
3229 * include/grub/ata.h (grub_ata): New member log_sector_size.
3230 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3231 (grub_ata_identify): Read sector size.
3232 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3233
3234 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * util/grub-install.in: Don't use uhci outside of x86.
3237
3238 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3239
3240 * util/grub-mkrescue.in: Add missing quotes.
3241
3242 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3245 dereference.
3246
3247 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3250
3251 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * include/grub/video.h: add missing EXPORT_FUND on
3254 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3255
3256 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * include/grub/mips/kernel.h: Fix define conflict.
3259
3260 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3263 all four ways.
3264
3265 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3266
3267 Preferred resolution detection for VBE.
3268
3269 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3270 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3271 the Flat Panel extension, in line with the X.org VESA driver.
3272 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3273 New function.
3274 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3275 (grub_vbe_bios_read_edid): Likewise.
3276 (grub_vbe_get_preferred_mode): Likewise.
3277 (grub_video_vbe_setup): When the mode is "auto", try to get the
3278 preferred mode from VBE, and use the largest mode that is no larger
3279 than the preferred mode (some BIOSes expose a preferred mode that is
3280 not in their mode list!). If this fails, fall back to 640x480 as a
3281 safe conservative choice.
3282 (grub_video_vbe_get_edid): New function.
3283 (grub_video_vbe_adapter): Add get_edid.
3284 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3285 (struct grub_video_adapter): Add get_edid.
3286 (grub_video_edid_checksum): Add prototype.
3287 (grub_video_edid_preferred_mode): Likewise.
3288 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3289 structure.
3290
3291 * grub-core/commands/videoinfo.c (print_edid): New function.
3292 (grub_cmd_videoinfo): Print EDID if available.
3293
3294 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3295 is more appropriate on a wider range of platforms than 640x480.
3296 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3297 documentation.
3298
3299 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3302
3303 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * po/POTFILES.in: Regenerate.
3306
3307 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3310 incorrect memory usage.
3311
3312 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * util/grub-install.in: Source grub-mkconfig_lib.
3315
3316 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 Remove getroot.c from core on emu platform.
3319
3320 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3321 kern/emu/raid.c.
3322 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3323 useless.
3324 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3325 * util/getroot.c (get_win32_path): ... here.
3326 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
3327 * util/getroot.c (fini_libzfs): ... here.
3328 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
3329 * util/getroot.c (grub_get_libzfs_handle): ... here.
3330 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
3331 Moved from here...
3332 * util/getroot.c (grub_find_zpool_from_dir): ... here.
3333 * grub-core/kern/emu/misc.c
3334 (grub_make_system_path_relative_to_its_root): Moved from here...
3335 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
3336 * grub-core/kern/emu/getroot.c: Moved from here ...
3337 * util/getroot.c: ... here. All users updated.
3338 * grub-core/kern/emu/raid.c: Moved from here ...
3339 * util/raid.c: ... here. All users updated.
3340
3341 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * po/POTFILES.in: Regenerate.
3344
3345 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 Fix compilation on GNU/Linux.
3348
3349 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
3350 Disable geli.
3351 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
3352 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
3353 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
3354
3355 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3356 2011-07-07 Michael Gorven <michael@gorven.za.net>
3357 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
3358
3359 LUKS and GELI support.
3360
3361 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
3362 grub-core/disk/luks.c, grub-core/disk/geli.c,
3363 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
3364 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
3365 grub-core/lib/arg.c.
3366 (libgrubmods.a): Remove gcrypts cflags and cppflags.
3367 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
3368 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
3369 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
3370 (grub-bin2h): Add libgcry.a.
3371 (grub-mkimage): Likewise.
3372 (grub-mkrelpath): Likewise.
3373 (grub-script-check): Likewise.
3374 (grub-editenv): Likewise.
3375 (grub-mkpasswd-pbkdf2): Likewise.
3376 (grub-pe2elf): Likewise.
3377 (grub-fstest): Likewise.
3378 (grub-mkfont): Likewise.
3379 (grub-mkdevicemap): Likewise.
3380 (grub-probe): Likewise.
3381 (grub-ofpath): Likewise.
3382 (grub-mklayout): Likewise.
3383 (example_unit_test): Likewise.
3384 (grub-menulst2cfg): Likewise.
3385 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
3386 * grub-core/Makefile.core.def (cryptodisk): New module.
3387 (luks): Likewise.
3388 (geli): Likewise.
3389 * grub-core/disk/AFSplitter.c: New file.
3390 * grub-core/disk/cryptodisk.c: Likewise.
3391 * grub-core/disk/geli.c: Likewise.
3392 * grub-core/disk/luks.c: Likewise.
3393 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
3394 grub_util_is_lvm.
3395 (grub_util_get_dm_abstraction): New function.
3396 (grub_util_follow_gpart_up): Likewise.
3397 (grub_util_get_geom_abstraction): Likewise.
3398 (grub_util_get_dev_abstraction): Use new functions.
3399 (grub_util_pull_device): Pull GELI and LUKS.
3400 (grub_util_get_grub_dev): Handle LUKS and GELI.
3401 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
3402 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
3403 (follow_geom_up): Removed.
3404 (grub_util_fd_seek): New function.
3405 (open_device): Use grub_util_fd_seek.
3406 (nread): Rename to ..
3407 (grub_util_fd_read): ... this. All users updated.
3408 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
3409 (grub_crypto_cbc_decrypt): Likewise.
3410 (grub_crypto_hmac_write): Likewise.
3411 (grub_crypto_hmac_buffer): Likewise.
3412 (grub_password_get): Extend to util.
3413 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
3414 New member modname.
3415 (gcry_md_spec) [GRUB_UTIL]: Likewise.
3416 * include/grub/cryptodisk.h: New file.
3417 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
3418 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
3419 LUKS and GELI.
3420 (grub_util_follow_gpart_up): New proto.
3421 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
3422 (grub_util_fd_read): Likewise.
3423 (grub_cryptodisk_cheat_mount): Likewise.
3424 (grub_util_cryptodisk_print_uuid): Likewise.
3425 (grub_util_get_fd_sectors): Likewise.
3426 * util/grub-fstest.c (mount_crypt): New var.
3427 (fstest): Mount crypto if requested.
3428 (options): New option -C.
3429 (argp_parser): Parse -C.
3430 (main): Init and fini gcry.
3431 * util/grub-install.in: Support cryptodisk install.
3432 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
3433 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
3434 cryptodisk.
3435 (prepare_grub_to_access_device): Likewise.
3436 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
3437 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
3438 (probe_cryptodisk_uuid): New function.
3439 (probe_abstraction): Likewise.
3440 (probe): Use new functions.
3441 * util/import_gcry.py: Create Makefile.utilgcry.def.
3442 Add modname member.
3443
3444 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 Lazy device scanning.
3447
3448 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
3449 (grub-setup): Remove util/raid.c.
3450 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
3451 * grub-core/disk/lvm.c (scan_depth): New variable.
3452 (grub_lvm_iterate): Rescan if necessary.
3453 (find_lv): New function based on grub_lvm_open.
3454 (grub_lvm_open): Use find_lv. Rescan on error.
3455 (is_node_readable): New function.
3456 (is_lv_readable): Likewise.
3457 (grub_lvm_scan_device): Skip already found disks.
3458 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
3459 Stop if searched device is found and readable.
3460 * grub-core/disk/raid.c (inscnt): New variable.
3461 (scan_depth): Likewise.
3462 (scan_devices): New function based on grub_raid_register. Abort if
3463 looked for device is found.
3464 (grub_raid_iterate): Rescan if needed.
3465 (find_array): NEw function based on -grub_raid_open.
3466 (grub_raid_open): Use find_array and rescan.
3467 (insert_array): Set became_readable_at.
3468 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
3469 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
3470 New function.
3471 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
3472 (grub_util_pull_device): New function.
3473 (grub_util_get_grub_dev): Call grub_util_pull_device.
3474 * util/raid.c: Moved to ..
3475 * grub-core/kern/emu/raid.c: ... here.
3476 (grub_util_raid_getmembers): New parameter "bootable".
3477 All users updated. Support 1.x.
3478 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
3479 All users updated.
3480 * include/grub/disk.h (grub_disk_pull_t): New enum.
3481 (grub_disk_dev): Change iterate prototype.
3482 All users updated.
3483 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
3484 New proto.
3485 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
3486 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
3487 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
3488 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
3489 All users updated.
3490 * include/grub/util/raid.h: Removed.
3491
3492 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * po/POTFILES.in: Regenerate.
3495
3496 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 Unify sparc init with other ieee1275.
3499
3500 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
3501 instead of kern/sparc64/ieee1275/init.c.
3502 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
3503 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
3504 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
3505 grub/machine/kernel.h.
3506 (grub_ieee1275_original_stack) [__sparc__]: New variable.
3507 (grub_claim_heap) [__sparc__]: Use sparc version.
3508 (grub_machine_init): Moved args parsing to
3509 (grub_parse_cmdline): ...this.
3510 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
3511 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
3512 New definition.
3513 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
3514
3515 Move BOOTP to separate file.
3516
3517 * grub-core/Makefile.core.def (net): Add net/bootp.c.
3518 * grub-core/net/net.c: Move all BOOTP functions to
3519 * grub-core/net/bootp.c: ... here.
3520
3521 Use frame interface on PXE.
3522
3523 * grub-core/Makefile.core.def (pxecmd): Removed.
3524 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
3525 * grub-core/commands/i386/pc/pxecmd.c: Removed.
3526 * grub-core/i386/pc/pxe.c: Moved from here ...
3527 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
3528 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
3529 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
3530
3531 EFI network support.
3532
3533 * grub-core/Makefile.core.def (efinet): New module.
3534 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
3535 here...
3536 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
3537 All users updated.
3538 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
3539 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
3540 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
3541 * grub-core/net/drivers/efi/efinet.c: New file.
3542 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
3543 (grub_efi_net_config): New extern var.
3544
3545 Various cleanups and bugfixes.
3546
3547 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
3548 error.
3549 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
3550 disk declared as partition.
3551 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
3552 leak on failure.
3553 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
3554 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
3555 (grub_debug_zalloc): Likewise.
3556 (grub_debug_realloc): Likewise.
3557 (grub_debug_memalign): Likewise.
3558 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
3559 Check that target is IPv4.
3560 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
3561 local-mac-address as fallback.
3562 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
3563 memory leak.
3564 * grub-core/net/ip.c (ipchksum): Rename to ...
3565 (grub_net_ip_chksum): ... this. All users updated.
3566 (grub_net_recv_ip_packets): Special handling for DHCP.
3567 * util/grub-mkimage.c (generate_image): Zero-out aout header.
3568
3569 Unify prefix handling
3570
3571 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
3572 (grub_machine_get_bootlocation): ... this.
3573 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
3574 (grub_machine_get_bootlocation): ... this.
3575 (grub_prefix): New variable.
3576 (prefix): Removed.
3577 (root_dev): New variable.
3578 (dir): Likewise.
3579 (main): Use new variables.
3580 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
3581 Revamped into ...
3582 (grub_machine_get_bootlocation): ... this.
3583 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
3584 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
3585 (grub_machine_get_bootlocation): ... this.
3586 (grub_machine_set_prefix): Removed.
3587 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
3588 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
3589 Revamped into ...
3590 (grub_machine_get_bootlocation): ... this.
3591 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
3592 (grub_set_prefix_and_root): ... this. All users updated.
3593 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
3594 Revamped into ...
3595 (grub_machine_get_bootlocation): ... this.
3596 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
3597 (grub_machine_get_bootlocation): New proto.
3598 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
3599
3600 Less intrusive and more reliable seek on network implementation.
3601
3602 * grub-core/kern/file.c (grub_file_net_seek): Removed.
3603 (grub_file_seek): Don't call grub_file_net_seek.
3604 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
3605 (grub_net_fs_read_real): .. this.
3606 (grub_net_seek_real): Use net->offset.
3607 (grub_net_fs_read): Seek if necessary.
3608
3609 Unify IEEE1275 netwotk config with the other platforms.
3610
3611 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
3612 New variable.
3613 (grub_machine_get_bootlocation): Support network.
3614 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
3615 Support type and device parsing.
3616 (grub_ieee1275_get_device_type): New function.
3617 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
3618 into ...
3619 (grub_ieee1275_net_config_real): ... this.
3620 (grub_ofnet_probecards): Removed.
3621 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
3622 * include/grub/ieee1275/ofnet.h: Removed.
3623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
3624 extern var.
3625 (grub_ieee1275_get_device_type): New function.
3626
3627 Unify network device closing across platforms and make more robust.
3628
3629 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
3630 grub_grubnet_fini.
3631 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
3632 already.
3633 * grub-core/net/net.c (grub_net_network_level_interface_register):
3634 Update num_ifaces.
3635 (grub_net_card_unregister): Close all interfaces.
3636 (receive_packets): Don't poll if no iterfaces are registered.
3637 Open if necessary.
3638 (grub_net_fini_hw): New function.
3639 (grub_net_restore_hw): Likewise.
3640 (fini_hnd): New variable.
3641 (GRUB_MOD_INIT): Register preboot hook.
3642 (GRUB_MOD_FINI): Run and unregister preboot hook.
3643
3644 Poll network cards when idle.
3645
3646 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
3647 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
3648 * grub-core/net/net.c (receive_packets): Save last poll time.
3649 (grub_net_poll_cards_idle_real): New function.
3650 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
3651 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
3652 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
3653
3654 Rename ofnet interfaces.
3655
3656 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
3657 (grub_ofnet_findcards): Use ofnet_%s names.
3658
3659 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
3660
3661 Cleanup socket opening.
3662
3663 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
3664 (grub_net_fs_close): Likewise.
3665 (grub_net_fs_read_real): Use eof member.
3666 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
3667 (+grub_net_udp_close): New inline function.
3668
3669 * include/grub/net/tftp.h: Moved to the top of ...
3670 * grub-core/net/tftp.c: ... here.
3671 * include/grub/net/ip.h: Moved mostly to the top of ...
3672 * grub-core/net/ip.c: ... here.
3673 * include/grub/net/ethernet.h: Moved mostly to the top of ...
3674 * grub-core/net/ethernet.c: ... here.
3675
3676 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
3677
3678 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
3679 FS name.
3680
3681 * include/grub/net/ip.h (ipv4_ini): Removed.
3682 (ipv4_fini): Likewise.
3683
3684 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
3685 (grub_net_send_ip_packets): Likewise.
3686
3687 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
3690 grub_read_cmos prototype.
3691
3692 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 VGA text support in qemu-mips
3695
3696 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
3697 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
3698 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
3699 text.
3700 * grub-core/kern/i386/qemu/init.c: Renamed to ...
3701 * grub-core/kern/vga_init.c: ... this.
3702 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
3703 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
3704 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
3705 Adjust.
3706 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
3707 GRUB_MACHINE_PCI_IO_BASE.
3708
3709 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 MIPS qemu flash support.
3712
3713 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
3714 magic.
3715 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
3716 (grub_machine_init): Probe memory if its size isn't known.
3717 * util/grub-mkimage.c (image_targets): Add flash targets.
3718 (generate_image): Handle flash targets.
3719
3720 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 MIPS qemu at_keyboard support.
3723
3724 * gentpl.py (videoinkernel): Add qemu-mips.
3725 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
3726 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
3727 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
3728 modules.
3729 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
3730 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
3731 * grub-core/term/serial.c (grub_serial_register)
3732 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
3733
3734 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 CMOS support on sparc.
3737
3738 * gentpl.py (cmos): Add powerpc and sparc.
3739 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
3740 powerpc and sparc.
3741 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
3742 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
3743 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
3744 grub_set_datetime_cmos.
3745 * grub-core/lib/ieee1275/cmos.c: New file.
3746 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
3747 (find_rtc): Set no_ieee1275_rtc on error.
3748 (grub_get_datetime): Call grub_get_datetime_cmos on error.
3749 (grub_set_datetime): Call grub_set_datetime_cmos on error.
3750 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
3751 fail. Move value to argument. All users updated
3752 (grub_cmos_write): Likewise.
3753 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
3754 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
3755 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
3756 grub_get_datetime_cmos and grub_set_datetime_cmos.
3757
3758 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
3759
3760 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
3761 sourcing grub-mkconfig_lib.
3762 * util/update-grub_lib.in: Likewise.
3763 * util/grub.d/00_header.in: Likewise.
3764 * util/grub.d/10_hurd.in: Likewise.
3765 * util/grub.d/10_kfreebsd.in: Likewise.
3766 * util/grub.d/10_linux.in: Likewise.
3767 * util/grub.d/10_netbsd.in: Likewise.
3768 * util/grub.d/10_windows.in: Likewise.
3769 * util/grub.d/20_linux_xen.in: Likewise.
3770 * util/grub.d/30_os-prober.in: Likewise.
3771
3772 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
3773
3774 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3775 default_bg_color rather than black.
3776 (grub_gfxterm_fullscreen): Likewise.
3777 (grub_gfxterm_background_color_cmd): Save new background color in
3778 default_bg_color.
3779
3780 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
3783
3784 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
3787 mismerge.
3788
3789 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3790
3791 Chainloading on coreboot support.
3792
3793 * grub-core/Makefile.core.def (chain): Add coreboot.
3794 * grub-core/loader/i386/coreboot/chainloader.c: New file.
3795
3796 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
3799 if it happens.
3800
3801 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 Implement time command.
3804
3805 * grub-core/Makefile.core.def (time): New module.
3806 * grub-core/commands/time.c: New file.
3807 * grub-core/script/parser.y: Remove "time" keyword.
3808 * grub-core/script/yylex.l: Likewise.
3809
3810 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
3813
3814 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
3817 when handling leftovers.
3818
3819 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
3822 so that help2man doesn't fail.
3823
3824 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
3827 type in pointers on sparc64.
3828 (get_card_packet): Likewise.
3829
3830 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
3831
3832 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
3833 with `*'.
3834 (grub_cmd_videoinfo): Fetch current video mode.
3835
3836 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
3839 because of underlying system restrictions.
3840
3841 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
3844 necessary.
3845
3846 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 Coreboot video support.
3849
3850 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
3851 (vbe): Likewise.
3852 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
3853 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
3854 here ...
3855 * grub-core/kern/i386/int.S: ... here.
3856 * grub-core/video/i386/pc/vbe.c: Updated includes.
3857 * grub-core/video/i386/pc/vga.c: Likewise.
3858 * include/grub/i386/coreboot/memory.h
3859 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
3860 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
3861 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
3862 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
3863 Disable interrupts.
3864 * include/grub/i386/pc/vga.h: Removed. All users updated.
3865
3866 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
3869 definitions for dprintf.
3870 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
3871
3872 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
3875 prototype.
3876 (get_card_packet): Likewise.
3877
3878 2011-06-26 Yves Blusseau <blusseau@zetam.org>
3879
3880 Display the path of the file when file is not found
3881
3882 * grub-core/fs/fat.c: Display the filename when file is not found.
3883 * grub-core/fs/fshelp.c: Likewise.
3884 * grub-core/fs/hfs.c: Likewise.
3885 * grub-core/fs/jfs.c: Likewise.
3886 * grub-core/fs/minix.c: Likewise.
3887 * grub-core/fs/ufs.c: Likewise.
3888 * grub-core/fs/btrfs.c: Likewise.
3889 * grub-core/commands/i386/pc/play.c: Likewise.
3890
3891 2011-06-26 Szymon Janc <szymon@janc.net.pl>
3892
3893 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
3894 pointer checks before calling grub_free().
3895 * grub-core/commands/wildcard.c (match_devices): Likewise.
3896 * grub-core/commands/wildcard.c (match_files): Likewise.
3897 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
3898 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
3899 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
3900 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
3901 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
3902 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
3903 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
3904 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
3905 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
3906
3907 2011-06-25 Patrick <p55@mailinator.com>
3908
3909 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
3910
3911 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
3914 (grub_pxe_send): Likewise.
3915 (GRUB_MOD_INIT): Fix types.
3916
3917 2011-06-24 Szymon Janc <szymon@janc.net.pl>
3918
3919 * grub-core/io/xzio.c: Fix code style issues
3920
3921 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3922 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
3923
3924 Network infrastructure.
3925 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
3926
3927 * include/grub/net/arp.h: New file.
3928 * include/grub/net/device.h: Likewise.
3929 * include/grub/net/ethernet.h: Likewise.
3930 * include/grub/net/ip.h: Likewise.
3931 * include/grub/net/netbuff.h: Likewise.
3932 * include/grub/net/tftp.h: Likewise.
3933 * include/grub/net/udp.h: Likewise.
3934 * include/grub/ieee1275/ofnet.h: Likewise.
3935 * include/grub/emu/export.h: Likewise.
3936 * include/grub/net.h: Likewise.
3937 * grub-core/net/arp.c: Likewise.
3938 * grub-core/net/ethernet.c: Likewise.
3939 * grub-core/net/ip.c: Likewise.
3940 * grub-core/net/udp.c: Likewise.
3941 * grub-core/net/tftp.c: Likewise.
3942 * grub-core/net/netbuff.c: Likewise.
3943 * grub-core/net/net.c: Likewise.
3944 * grub-core/net/drivers/emu/emunet.c: Likewise.
3945 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
3946 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
3947 export.h.
3948 * grub-core/Makefile.core.def (net): New module.
3949 (tftp): Likewise.
3950 (ofnet): Likewise.
3951 (emunet): Likewise.
3952 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
3953 network protocols.
3954 * grub-core/kern/device.c (grub_net_open) : New variable.
3955 (grub_device_open): Handle network device.
3956 (grub_device_close): Likewise.
3957 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
3958 (grub_grubnet_fini): Likewise.
3959 (grub_file_seek): Seek in network device.
3960 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
3961 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
3962 network root.
3963 (grub_machine_fini): Call grub_grubnet_fini.
3964 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
3965 network.
3966 (grub_ieee1275_get_aliasdevname): New function.
3967 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3968 Add unofficial Solaris network info.
3969 (grub_multiboot_make_mbi): Likewise.
3970 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
3971 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
3972 * include/grub/device.h (grub_fs): Removed.
3973 * include/grub/err.h (grub_err_t): Add network-related values.
3974 * include/grub/i386/pc/pxe.h: Removed bootp parts.
3975 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
3976 (grub_ieee1275_get_aliasdevname): New proto.
3977 * include/grub/net.h: Rewritten.
3978
3979 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
3982 names.
3983
3984 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
3987 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
3988 it truncates the output.
3989 Reported by: Ximin Luo.
3990
3991 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3992
3993 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
3994
3995 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
3998 partmap before abstraction.
3999
4000 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4001
4002 * util/grub-mkconfig_lib.in: Add missing quotes.
4003
4004 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4007 old method if mountinfo would return /dev/root and /dev/root doesn't
4008 exist.
4009
4010 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 ZFS zlib support
4013
4014 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4015 (decomp_table): Add zlib entries.
4016 (zio_read): USe 8 bits for compression function rather than 3.
4017 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4018
4019 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4020
4021 * grub-core/disk/ahci.c: Add missing license statements.
4022 * grub-core/fs/romfs.c: Likewise.
4023 * grub-core/lib/ia64/setjmp.S: Likewise.
4024 * grub-core/loader/i386/pc/freedos.c: Likewise.
4025 * grub-core/loader/ia64/efi/linux.c: Likewise.
4026 * grub-core/video/colors.c: Likewise.
4027 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4028
4029 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 AHCI support.
4032
4033 * grub-core/Makefile.core.def (ata_pthru): Removed.
4034 (ahci): New module.
4035 (pata): Likewise.
4036 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4037 on unload.
4038 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4039 readwrite.
4040 (grub_hdparm_do_check_powermode_cmd): Likewise.
4041 (grub_hdparm_do_smart_cmd): Likewise.
4042 (grub_hdparm_set_val_cmd): Likewise.
4043 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4044 * grub-core/disk/ahci.c: New file.
4045 * grub-core/disk/ata.c: Factor out the low-level part into ...
4046 * grub-core/disk/pata.c: ... here.
4047 * grub-core/disk/ata_pthru.c: Contents moved to ...
4048 * grub-core/disk/pata.c: ... here.
4049 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4050 (grub_scsi_iterate): Use grub_scsi_names.
4051 (grub_scsi_open): Likewise.
4052 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4053 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4054 (grub_ata_regs_t): New struct.
4055 (grub_disk_ata_pass_through_parms): Likewise.
4056 (grub_ata_device): Renamed to ...
4057 (grub_ata): ... this.
4058 (grub_ata_dev): New struct.
4059 Removed all low-level inline functions.
4060 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4061 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4062 iterate hooks and open. All users updated.
4063 * util/grub-install.in: Handle AHCI disk module.
4064
4065 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4066
4067 Add support for DRI and RSTn markers in JPEG files.
4068
4069 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4070 (JPEG_MARKER_RST0): Likewise.
4071 (JPEG_MARKER_RST1): Likewise.
4072 (JPEG_MARKER_RST2): Likewise.
4073 (JPEG_MARKER_RST3): Likewise.
4074 (JPEG_MARKER_RST4): Likewise.
4075 (JPEG_MARKER_RST5): Likewise.
4076 (JPEG_MARKER_RST6): Likewise.
4077 (JPEG_MARKER_RST7): Likewise.
4078 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4079 (grub_jpeg_decode_dri): New function.
4080 (grub_jpeg_decode_sos): Move image data related part into
4081 grub_jpeg_decode_data function.
4082 (grub_jpeg_decode_data): New function.
4083 (grub_jpeg_reset): New function.
4084 (grub_jpeg_decode_jpeg): Handle new markers.
4085
4086 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * util/ieee1275/ofpath.c (check_sas): Close fd.
4089 (main): Free of_path.
4090 Reported by: David Volgyes <dvolgyes>.
4091
4092 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4095 Reported by: David Volgyes <dvolgyes>.
4096
4097 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4100 file after stat.
4101 Reported by: David Volgyes <dvolgyes>.
4102
4103 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4106
4107 Reported by: David Volgyes <dvolgyes>.
4108
4109 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4112 Prevent memory leak.
4113
4114 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4117 (main): Close file.
4118 Reported by: David Volgyes <dvolgyes>.
4119
4120 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4123 to continue if allocation is failed.
4124
4125 Reported by: David Volgyes <dvolgyes>.
4126
4127 2011-06-23 David Volgyes <dvolgyes>
4128
4129 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4130 dereference.
4131
4132 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4133
4134 Fix spurious warning.
4135
4136 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4137 (acorn_partition_map_find): Use .bin member.
4138
4139 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4142 /dev/root as a valid device.
4143
4144 2011-06-23 Jim Meyering <meyering@redhat.com>
4145
4146 Avoid NULL deref in grub_device_open.
4147
4148 * grub-core/kern/device.c (grub_device_open): Don't dereference
4149 a NULL pointer upon failed grub_env_get.
4150
4151 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 Support non-512B sectors and agglomerate reads.
4154
4155 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4156 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4157 (disk_io_guid): Removed.
4158 (make_devices): Locate solely by BlockIO.
4159 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4160 (grub_efidisk_read): Use read_blocks.
4161 (grub_efidisk_write): Use write_blocks.
4162 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4163 log_sector_size.
4164 (get_safe_sectors): Handle non-512B sectors.
4165 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4166 sectors.
4167 (grub_biosdisk_write): Handle non-512B sectors.
4168 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4169 (grub_scsi_read): Remove special non-512B block handling (now handled
4170 one level up).
4171 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4172 and do sanity checks.
4173 (grub_disk_adjust_range): Handle non-512B sectors.
4174 (transform_sector): New function.
4175 (grub_disk_read_small): Likewise.
4176 (grub_disk_read): Rewritten.
4177 (grub_disk_write): Handle non-512B sectors.
4178 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4179 log_sector_size.
4180 (open_device): Use log_sector_size.
4181 (grub_util_biosdisk_read): Likewise.
4182 (grub_util_biosdisk_write): Likewise.
4183 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4184 non-512B sectors.
4185 (pc_partition_map_embed): Likewise.
4186 * include/grub/disk.h (grub_disk): New field log_sector_size.
4187 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4188 (GRUB_DISK_CACHE_BITS): Increased to 6.
4189 * util/grub-fstest.c (fstest): New command testload.
4190 (argp_parser): Likewise.
4191
4192 2011-06-16 Robert Millan <rmh@gnu.org>
4193
4194 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4195 `ata' driver on kernel of FreeBSD 9.
4196
4197 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4198 (get_ataraid_disk_name): New functions.
4199 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4200 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4201 get_ataraid_disk_name() and get_ada_disk_name().
4202
4203 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4204
4205 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4206 input format.
4207
4208 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4209
4210 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4211 `ftp.gnu.org' for `alpha.gnu.org'.
4212
4213 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4214
4215 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4216 partitions under /dev/disk/by-id/.
4217
4218 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4219
4220 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4221 after ten consecutive open failures. Scanning all the way up to
4222 10000 is excessive and can cause serious performance problems in
4223 some configurations.
4224 Fixes Ubuntu bug #787461.
4225
4226 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4229 opening new one.
4230
4231 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4232 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 Don't stat devices unless we have to.
4235
4236 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4237 dir == /dev/mapper.
4238 (grub_guess_root_device): Use already known os_dev if possible.
4239 * grub-core/kern/emu/hostdisk.c
4240 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4241 if device is known to be a dm one.
4242
4243 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4244
4245 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4246 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4247 Reported by: Pawel Tecza.
4248
4249 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4252 (lsefisystab): Likewise.
4253 (lssal): Likewise.
4254 (lsefimmap): Likewise.
4255 (hdparm): Enable on qemu-mips.
4256 (setjmp): Add ia64 nodist.
4257 (serial): Simplify tags.
4258
4259 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4260
4261 * Makefile.util.def (grub-ofpathname): Install manual page.
4262
4263 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4264
4265 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4266
4267 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4268
4269 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4270
4271 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4274 into dprintf.
4275
4276 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4277
4278 Use full 64-bit division.
4279
4280 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4281 (grub_divmod64): ... this.
4282 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4283 version.
4284
4285 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4286
4287 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4288 `source'.
4289
4290 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4291
4292 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4293 to avoid accidents when debugging with 'sh -x'.
4294 * grub-core/gensyminfo.sh.in: Likewise.
4295 * tests/example_scripted_test.in: Likewise.
4296 * tests/grub_cmd_regexp.in: Likewise.
4297 * tests/grub_script_blanklines.in: Likewise.
4298 * tests/grub_script_dollar.in: Likewise.
4299 * tests/grub_script_expansion.in: Likewise.
4300 * tests/grub_script_final_semicolon.in: Likewise.
4301 * tests/partmap_test.in: Likewise.
4302 * tests/util/grub-shell-tester.in: Likewise.
4303 * tests/util/grub-shell.in: Likewise.
4304
4305 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4306
4307 Move gfxmenu color handling to video, so that gfxterm can use it
4308 too.
4309
4310 * grub-core/gfxmenu/named_colors.c: Move to ...
4311 * grub-core/video/colors.c: ... here. Rename
4312 grub_gui_get_named_color to grub_video_get_named_color.
4313 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4314 * grub-core/video/colors.c (my_isxdigit): ... here.
4315 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4316 Move to ...
4317 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4318 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4319 to ...
4320 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4321
4322 * include/grub/gui.h (grub_gui_color_t): Move to ...
4323 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4324 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4325 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4326 * include/grub/gui.h (grub_gui_map_color): Move to ...
4327 * include/grub/video.h (grub_video_map_rgba_color): ... here.
4328 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
4329 to ...
4330 * include/grub/video.h (grub_video_get_named_color): ... here.
4331 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
4332 * include/grub/video.h (grub_video_parse_color): ... here.
4333
4334 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
4335 video/colors.c.
4336 (gfxmenu): Remove gfxmenu/named_colors.c.
4337 (video) [videomodules]: Add video/colors.c.
4338
4339 Add a background_color command.
4340
4341 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
4342 function.
4343 (GRUB_MOD_INIT): Register background_color command.
4344 (GRUB_MOD_FINI): Unregister background_color command.
4345 (redraw_screen_rect): Allow blend/replace of text layer to be
4346 controlled independently from whether there is a background bitmap.
4347 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
4348 changing bitmap.
4349
4350 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 Patch BPB in ntldr and chainloader --bpb.
4353
4354 * grub-core/fs/fat.c: Include grub/fat.h.
4355 (grub_fat_bpb): Moved to ...
4356 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
4357 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
4358 grub/ntfs.h.
4359 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
4360 Moved from here...
4361 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
4362 here.
4363 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
4364 New function.
4365 (grub_chainloader_cmd): Patch BPB if --bpb is given.
4366 (GRUB_MOD_INIT): Show --bpb.
4367 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
4368 * grub-core/normal/main.c (features): New variable.
4369 (GRUB_MOD_INIT): Set feature_* variables.
4370 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
4371 proto.
4372 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
4373
4374 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
4377 for cleanness.
4378
4379 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 FreeDOS direct loading support.
4382
4383 * docs/grub.texi (Supported OS): Add FreeDOS.
4384 * grub-core/Makefile.core.def (freedos): New module.
4385 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
4386 variable.
4387 (grub_relocator16_boot): Handle %ebx.
4388 * grub-core/lib/i386/relocator16.S: Likewise.
4389 * grub-core/loader/i386/pc/freedos.c: New file.
4390
4391 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 Long Linux command line support.
4394
4395 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4396 (maximal_cmdline_size): New variable.
4397 (allocate_pages): Use maximal_cmdline_size.
4398 (grub_cmd_linux): Set and use maximal_cmdline_size.
4399 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
4400 (allocate_pages): Use maximal_cmdline_size.
4401 (grub_cmd_linux): Set and use maximal_cmdline_size.
4402 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
4403 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
4404 and cmdline_size.
4405
4406 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4407 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4408
4409 Improve devmapper support
4410
4411 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
4412 (grub_util_is_lvm): New function.
4413 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
4414 than lvm if not dmraid.
4415 Handle mapped md nodes.
4416 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
4417 (grub_util_device_is_mapped): ... this. Make always available. All users
4418 updated.
4419 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
4420 (convert_system_partition_to_system_disk): Handle lvm, mpath and
4421 dmraid nodes.
4422 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
4423
4424 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
4427
4428 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
4429 * grub-core/modinfo.sh.in: New file.
4430 * grub-core/Makefile.core.def (modinfo.sh): New script.
4431 * util/grub-mknetdir.in: Use modinfo.sh.
4432 * util/grub-mkrescue.in: Likewise.
4433
4434 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4437 Fix potential usage of Elf32 instead of Elf64 when compiling on
4438 32-bit architecture. Add endianness macros while on it.
4439
4440 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 Use mipsel- rather than mips- in directories involving mipsel ports to
4443 allow both endiannesses coexist.
4444
4445 * configure.ac: proparate target_cpu=mipsel rather than resetting to
4446 mips. All conditions adjusted.
4447 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
4448 variable.
4449 * util/grub-install.in: Adjust conditions to take renaming into account.
4450 * util/grub-mkimage.c (image_targets): Likewise. New target
4451 mips-qemu_mips-elf for bigendian mips.
4452
4453 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 Avoid unnecessary copying on MIPS.
4456
4457 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
4458 early if src == dest.
4459 * util/grub-mkimage.c (generate_image): Arange for src == dest if
4460 compression is none.
4461
4462 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 Reduce memory footprint on SGI by putting modules before the kernel
4465 as opposed to after.
4466
4467 * grub-core/Makefile.core.def (kernel): Increase linking address.
4468 (none_decompress): Likewise.
4469 (xz_decompress): Likewise.
4470 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
4471 address.
4472 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
4473 layout change.
4474 (grub_arch_modules_addr): New function.
4475 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
4476 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
4477 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
4478 here.
4479 * grub-core/kern/mips/startup.S (total_size): Rename to ...
4480 (grub_total_modules_size): ... this. Make global.
4481 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
4482 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
4483 New definition.
4484 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
4485 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
4486 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
4487 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
4488 * util/grub-mkimage.c (image_target_desc): New flag
4489 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
4490 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
4491 (generate_image): Handle images with modules before kernel.
4492
4493 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 Prevent potential loss of memory map by overwrite on qemu-mips.
4496
4497 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4498 Save ram size in $s4.
4499 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
4500 All users changed to grub_arch_memsize.
4501 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
4502 Loongson.
4503 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
4504 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
4505 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
4506 external variable.
4507
4508 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4509
4510 * .bzrignore: Remove grub-dumpbios.
4511
4512 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4513
4514 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
4515 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
4516 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
4517 existing options which append).
4518 * docs/grub.texi (Simple configuration): Document new options.
4519 Reported by: Ian Jackson. Fixes Debian bug #617538.
4520
4521 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4522
4523 * util/grub-fstest.c (cmd_cat): New function.
4524 (fstest): Handle CMD_CAT.
4525 (options): Add cat.
4526 (argp_parser): Handle cat.
4527
4528 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
4529
4530 * Makefile.util.def (grub-bin2h): Don't install.
4531 * docs/man/grub-bin2h.h2m: Remove.
4532
4533 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
4536 place.
4537
4538 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 Reenable qemu-mips port.
4541
4542 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
4543 Fix small arc bug while on it.
4544 * gentpl.py: Handle qemu_mips.
4545 * grub-core/Makefile.am: Likewise.
4546 * grub-core/Makefile.core.def: Likewise.
4547 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
4548 inappropriate includes.
4549 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
4550 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
4551 * grub-core/kern/main.c (grub_modules_get_end)
4552 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
4553 * grub-core/kern/mips/qemu-mips: Moved to ..
4554 * grub-core/kern/mips/qemu_mips: ... this.
4555 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
4556 (grub_machine_init): Call terminfo_init and serial_init.
4557 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
4558 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
4559 New variable.
4560 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
4561 parameter passing.
4562 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
4563 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
4564 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4565 * include/grub/mips/qemu_mips/cmos.h: New file.
4566 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
4567 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
4568 Removed.
4569 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
4570 Use correct mips-style address.
4571 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
4572 (GRUB_TICKS_PER_SECOND): Removed.
4573 (grub_get_rtc): Likewise.
4574 (grub_cpu_idle): Likewise.
4575 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
4576 New definition.
4577 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
4578 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
4579 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
4580 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
4581 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
4582 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
4583 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
4584 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
4585
4586 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 SGI ARCS port.
4589
4590 * Makefile.util.def (libgrubmods.a): Add dvh.c.
4591 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
4592 platforms.
4593 * configure.ac: New target mips-arc.
4594 * gentpl.py: Likewise.
4595 * grub-core/Makefile.am: Likewise.
4596 * grub-core/Makefile.core.def: Likewise.
4597 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
4598 (none_decompress): Likewise.
4599 (lsdev): New module.
4600 (datetime): Use lib/arc/datetime.c on ARC.
4601 (part_dvh): New module.
4602 * grub-core/commands/arc/lsdev.c: New file.
4603 * grub-core/disk/arc/arcdisk.c: Likewise.
4604 * grub-core/kern/mips/arc/init.c: Likewise.
4605 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
4606 aligned addresses.
4607 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
4608 support.
4609 (grub_arch_dl_relocate_symbols): Likewise.
4610 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
4611 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
4612 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
4613 platforms.
4614 * grub-core/lib/arc/datetime.c: New file.
4615 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
4616 pci.h on non-loongson.
4617 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
4618 (grub_linux_boot): Set unused registers to 0.
4619 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
4620 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
4621 * grub-core/mmap/mips/uppermem.c: ...here.
4622 * grub-core/partmap/dvh.c: New file.
4623 * grub-core/term/arc/console.c: Likewise.
4624 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
4625 (grub_terminfo_set_current): Add terminal "arc".
4626 (grub_terminfo_readkey): Support ARC sequences.
4627 * include/grub/arc/arc.h: New file.
4628 * include/grub/arc/console.h: Likewise.
4629 * include/grub/disk.h (grub_disk_dev_id): Add
4630 GRUB_DISK_DEVICE_ARCDISK_ID.
4631 * include/grub/mips/arc/kernel.h: New file.
4632 * include/grub/mips/arc/memory.h: Likewise.
4633 * include/grub/mips/arc/time.h: Likewise.
4634 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
4635 * include/grub/mips/kernel.h (grub_halt): ... here.
4636 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
4637 here...
4638 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
4639 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
4640 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
4641 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
4642 proto.
4643 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
4644 from here ...
4645 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
4646 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
4647 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
4648 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
4649 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
4650 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
4651 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
4652 (grub_phys_addr_t): Moved from here ...
4653 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
4654 (grub_vtop): Moved from here ...
4655 * include/grub/mips/memory.h (grub_vtop): ... here.
4656 (grub_map_memory): Moved from here ...
4657 * include/grub/mips/memory.h (grub_map_memory): ... here.
4658 (grub_unmap_memory): Moved from here ...
4659 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
4660 (grub_machine_mmap_iterate): Moved from here ...
4661 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
4662 (grub_mmap_get_lower): Moved from here ...
4663 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
4664 (grub_mmap_get_upper): Moved from here ...
4665 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
4666 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4667 here ...
4668 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4669 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
4670 here ...
4671 * include/grub/mips/time.h (grub_get_rtc): ... here.
4672 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
4673 here ...
4674 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
4675 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
4676 here ...
4677 * include/grub/mips/time.h (grub_cpu_idle): ... here.
4678 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
4679 definition.
4680 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
4681 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
4682 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
4683 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
4684 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
4685 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
4686 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
4687 (GRUB_MACHINE_LINK_ADDR): Likewise.
4688 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
4689 to 6.
4690 * util/grub-install.in: Run dvhtool on ARC.
4691 * util/grub-mkimage.c (image_targets): Add mips-arc.
4692 (generate_image): Handle ECOFF output for mips-arc.
4693
4694 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
4697 blocks.
4698
4699 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
4702 after enabling port.
4703
4704 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 Skip incorrect USB devices.
4707
4708 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
4709 configcnt == 0.
4710 * include/grub/usb.h (grub_usb_err_t): New enum value
4711 GRUB_USB_ERR_BADDEVICE.
4712
4713 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 Fuloong video init support.
4716
4717 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
4718 well.
4719 (grub_vga_read_arx): New function.
4720 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
4721 definition.
4722 (framebuffer): New members io, mmioptr and mmiobase.
4723 (read_sis_cmd): New function.
4724 (write_sis_cmd): Likewise.
4725 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
4726 rather than 640x400.
4727 * grub-core/video/sis315_init.c: New file.
4728
4729 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4730
4731 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
4732 non-loongson.
4733 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
4734 to grub_dl_register_symbol.
4735
4736 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 Fix compilation errors.
4739
4740 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
4741 potentially unused.
4742 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
4743 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
4744 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
4745 to loongson machines.
4746
4747 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4748
4749 Several FS mtime support.
4750
4751 * grub-core/fs/affs.c (grub_affs_time): New struct.
4752 (grub_affs_file): New field mtime.
4753 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
4754 type. Removed 'size'. New field 'di'. All users updated.
4755 (grub_affs_mount): Simplify checsum checking.
4756 (grub_affs_iterate_dir): New helper grub_affs_create_node.
4757 (grub_affs_dir): Handle mtime.
4758 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
4759 (grub_cpio_dir): Likewise.
4760 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
4761 (grub_hfs_filerec): New field mtime.
4762 (grub_hfs_dir): Handle mtime.
4763 (grub_hfs_mtime): New function.
4764 (grub_hfs_fs): Register grub_hfs_mtime.
4765 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
4766 (grub_iso9660_dir): New field mtime.
4767 (grub_fshelp_node): New field dirent.
4768 (iso9660_to_unixtime): New function.
4769 (iso9660_to_unixtime2): Likewise.
4770 (grub_iso9660_read_symlink): Use node->dirent.
4771 (grub_iso9660_iterate_dir): Likewise.
4772 (grub_iso9660_dir): Set mtime.
4773 (grub_iso9660_mtime): New function.
4774 (grub_iso9660_fs): Register grub_iso9660_mtime.
4775 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
4776 (grub_jfs_inode): New fields atime, ctime and mtime.
4777 (grub_jfs_dir): Set mtime.
4778 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
4779 * grub-core/fs/ntfs.c (list_file): Set mtime.
4780 (grub_ntfs_dir): Likewise.
4781 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
4782 (grub_reiserfs_iterate_dir): Set mtime.
4783 (grub_reiserfs_dir): Likewise.
4784 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
4785 (grub_fshelp_node): Likewise.
4786 (grub_sfs_iterate_dir): Set mtime.
4787 (grub_sfs_dir): Likewise.
4788 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
4789 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
4790 (grub_xfs_inode): New fields atime, mtime, ctime.
4791 (grub_xfs_dir): Set mtime.
4792 * include/grub/datetime.h (grub_datetime2unixtime): New function.
4793 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
4794 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
4795
4796 Support UDF symlinks.
4797
4798 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
4799 (grub_ufs_read_symlink): New function. All users updated.
4800
4801 Check amiga partmap checksum.
4802
4803 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
4804 (grub_amiga_partition): Likewise.
4805 (amiga_partition_map_checksum): New function.
4806 (amiga_partition_map_iterate): Check checksum.
4807
4808 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 ROMFS support.
4811
4812 * Makefile.util.def (libgrubmods.a): Add romfs.
4813 * grub-core/Makefile.core.def (romfs): New module.
4814 * grub-core/fs/romfs.c: New file.
4815
4816 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 Squashfs v4 support.
4819
4820 * Makefile.util.def (libgrubmods.a): Add squash4.
4821 * grub-core/Makefile.core.def (squash4): New module.
4822 * grub-core/fs/squash4.c: New file.
4823 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
4824 disk_input_start, disk_input.
4825 (get_byte): Handle disk_input.
4826 (grub_zlib_disk_read): New function.
4827 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
4828
4829 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4830 2011-05-15 Feiran Zheng <famcool@gmail.com>
4831
4832 * Makefile.util.def (libgrubmods.a): Add minix3.
4833 * grub-core/Makefile.core.def (minix3): New module.
4834 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
4835 (GRUB_MINIX_BSIZE): Removed.
4836 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
4837 (grub_minix_ino_t): New type.
4838 (grub_minix_le_to_cpu_ino): New macro.
4839 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
4840 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
4841 (grub_minix_data): New field block_size.
4842 (grub_minix_read_file): Handle 64-bit correctly.
4843 * grub-core/fs/minix3.c: New file.
4844
4845 2011-05-15 Tristan Gingold <gingold@free.fr>
4846 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
4847 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 IA64 support.
4850
4851 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
4852 * configure.ac: Add ia64-efi target.
4853 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
4854 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
4855 * gentpl.py: Add ia64_efi platform.
4856 Rename x86_efi to efi and Add ia64-efi. All users updated.
4857 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
4858 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
4859 Remove kern/generic/rtc_get_time_ms.c on EFI.
4860 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
4861 kern/ia64/dl_helper.c on ia64-efi.
4862 Add kern/emu/cache.c on emu.
4863 (linux): Use on loader/ia64/efi/linux.c on ia64.
4864 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
4865 whether symbol is a function.
4866 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
4867 (grub_symbol): New field 'isfunc'.
4868 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
4869 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
4870 (grub_dl_load_segments): Place all sections into the same region.
4871 [__ia64__]: Create trampolines and got.
4872 [GRUB_MACHINE_EMU]: Call mprotect.
4873 (grub_dl_resolve_symbols): Resolve symbol type as well.
4874 [__ia64__]: Create function descriptors.
4875 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
4876 (grub_rtc_get_time_ms): ... this. Expressions simplified.
4877 (grub_get_rtc): New function.
4878 * grub-core/kern/emu/cache.c [__ia64__]: New file.
4879 * grub-core/kern/emu/cache.S: Renamed to ...
4880 * grub-core/kern/emu/cache_s.S: ... this.
4881 [__ia64__]: Add a nop.
4882 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
4883 [__ia64__]: New function.
4884 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
4885 * grub-core/kern/ia64/dl.c: New file.
4886 * grub-core/kern/ia64/dl_helper.c: Likewise.
4887 * grub-core/kern/ia64/efi/init.c: New file.
4888 * grub-core/kern/ia64/efi/startup.S: Likewise.
4889 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
4890 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
4891 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
4892 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
4893 * grub-core/loader/ia64/efi/linux.c: New file.
4894 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
4895 (GRUB_MOD_DEP): Likewise.
4896 (grub_dl) [__ia64__]: New fields got and tramp.
4897 (grub_dl): New field 'base'.
4898 (grub_dl_register_symbol): New argument isfunc. All users updated.
4899 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
4900 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
4901 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
4902 (grub_ia64_dl_get_tramp_got_size): New proto.
4903 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
4904 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
4905 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
4906 * include/grub/efi/api.h: Skip call wrappers on ia64.
4907 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
4908 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
4909 * include/grub/elf.h (ELF_ST_INFO): New definition.
4910 * include/grub/ia64/efi/kernel.h: New file.
4911 * include/grub/ia64/efi/memory.h: Likewise.
4912 * include/grub/ia64/efi/time.h: Likewise.
4913 * include/grub/ia64/kernel.h: Likewise.
4914 * include/grub/ia64/setjmp.h: Likewise (from glibc).
4915 * include/grub/ia64/time.h: New file.
4916 * include/grub/ia64/types.h: Likewise.
4917 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
4918 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
4919 New protos.
4920 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
4921 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
4922 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
4923 * util/grub-mkimage.c (image_target_desc): New field pe_target.
4924 All users updated.
4925 (EFI64_HEADER_SIZE): New definition. All users updated.
4926 (image_targets): Add ia64-efi.
4927 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
4928 jumpers_addr. All users updated.
4929 Create function descriptors.
4930 (count_funcs): New function.
4931 (unaligned_uint32): New struct.
4932 (MASK20): New definition.
4933 (MASK19): Likewise.
4934 (MASKF21): Likewise.
4935 (add_value_to_slot_20b): New function.
4936 (add_value_to_slot_21_real): Likewise.
4937 (add_value_to_slot_21): Likewise.
4938 (ia64_kernel_trampoline): New struct.
4939 (nopm): New variable.
4940 (jump): Likewise.
4941 (make_trampoline): New function.
4942 (relocate_addresses): Handle ia64.
4943 (make_reloc_section): Likewise.
4944 (load_image): Likewise.
4945
4946 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4947
4948 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
4949 warning. Move variables before code while on it.
4950
4951 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 Fuloong support.
4954
4955 * configure.ac: Rename yeeloong platform to loongson. All users updated.
4956 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
4957 * grub-core/boot/mips/loongson/fuloong.S: New file.
4958 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
4959 Explicitly init CS5536.
4960 [FULOONG]: Don't use serial until CS5536 is available.
4961 Set GPIO based on dumps.
4962 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
4963 [FULOONG]: Handle GPIO and memory controller differences.
4964 Parse machine type in $a2.
4965 * grub-core/boot/mips/startup_raw.S: Determine and save the
4966 architecture.
4967 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
4968 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
4969 init on architecture type.
4970 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
4971 SIS315E. Don't init at_keyboard on fuloong.
4972 (grub_halt): Support Fuloong.
4973 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
4974 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
4975 (loongson_machtypes): New array.
4976 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
4977 type.
4978 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
4979 config. All users updated. Handle CS5536 serial.
4980 * grub-core/term/serial.c (grub_serial_register): Conditionalise
4981 default port on machine type. Register serial as inactive.
4982 * grub-core/video/sis315pro.c: New file.
4983 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
4984 definition.
4985 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
4986 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
4987 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
4988 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
4989 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
4990 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
4991 to ...
4992 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
4993 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
4994 definition.
4995 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
4996 (grub_arch_machine): New extern var.
4997 * include/grub/mips/loongson/serial.h
4998 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
4999 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5000 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5001 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5002 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5003 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5004 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5005 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5006 * include/grub/term.h (grub_term_register_input_inactive): New inline
5007 function.
5008 (grub_term_register_output_inactive): Likewise.
5009 * include/grub/video.h (grub_video_driver_id): New value
5010 GRUB_VIDEO_DRIVER_SIS315PRO.
5011 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5012 New field "names". All users updated.
5013 New field value IMAGE_FULOONG_FLASH.
5014 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5015
5016 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5017
5018 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5019 and add some clarification.
5020
5021 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5024 platforms if kernel is compressed.
5025
5026 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5029 unused modules since currently referrence counter isn't reliable and
5030 there isn't much memory to recover there anyway.
5031
5032 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5035 rather than resetting it to allow modules to reference themselves
5036 in init.
5037
5038 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5041 counter on dependencies since grub_dl_unref already handles this.
5042
5043 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5046 on error if not already done.
5047
5048 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 Fix few potential memory misusage.
5051
5052 * grub-core/font/font.c (load_font_index): Don't free char_index to
5053 avoid double free.
5054 (grub_font_load): Zero-fill font at alloc for safety.
5055 Close file on error.
5056 (free_font): Free bmp_idx.
5057
5058 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 * docs/grub.texi (Installation): Fix several outdated claims.
5061
5062 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 Handle module_license on windows.
5065
5066 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5067 sections shifted.
5068 (insert_string): Make argument const char * instead of char *.
5069 (write_section_data): Handle long section names.
5070 Handle module_license.
5071
5072 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5075 handle class-free menuentries.
5076 (grub_normal_add_menu_entry): Add a check to be sure.
5077
5078 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5081 PgUp and PgDown.
5082
5083 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * configure.ac: Bump version to 1.99.
5086
5087 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5088
5089 Give ATA device a bit more time on first try in order to allow disks
5090 to spin up.
5091
5092 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5093 if dev->present is 1. Reset dev->present on failure.
5094 (grub_ata_device_initialize): Set dev->present to 1.
5095 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5096 (grub_ata_device): New member 'present'.
5097
5098 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * util/grub-mkimage.c (generate_image): Update hash.
5101
5102 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 Flush caches on DMA memory.
5105
5106 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5107 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5108 (grub_dma_free): Likewise.
5109 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5110
5111 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5114 to avoid asm treating ld and sd as macros.
5115
5116 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5119 decompressor.
5120
5121 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5124 grub_decompress_core since later would fail if grub_decompress_core
5125 is too far.
5126
5127 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5130 R_MIPS_JALR since it's used by newer compiler.
5131
5132 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5135
5136 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5139 file_path to 0 for surety.
5140 (grub_chainloader_boot): Set exit_data to NULL.
5141 Unset the loader once done.
5142 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5143
5144 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5145
5146 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5147 unknown key into a dprintf.
5148
5149 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5150
5151 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5152 on first non-existant partition.
5153
5154 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5157 openning fails.
5158 Reported by: Mark Korenberg.
5159
5160 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5163 overflow.
5164
5165 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5168 before closing to ensure that it will be readable by grub-setup.
5169
5170 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5173 (devpath_1): Use MAKE_PIWG_PATH.
5174 (devpath_2): Likewise.
5175 (devpath_3): Likewise.
5176 (devpath_4): Likewise.
5177 (devpath_5): Likewise.
5178 (devpath_6): Likewise.
5179
5180 The appleldr.mod was checked that to be binary identical to previous
5181 version.
5182
5183 2011-05-05 Zach <mikezackles>
5184
5185 Support 2010 Macbooks.
5186
5187 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5188 (devs): Add devpath_6.
5189
5190 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5193 /dev/random. /dev/urandom is good enough for our purposes (salting).
5194
5195 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5198
5199 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5202 hexadecimal.
5203
5204 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5207 and not 0 on failure.
5208
5209 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5210
5211 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5212 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5213 disk; otherwise grub_fs_probe will not fall back to the next
5214 filesystem.
5215 (grub_pxefs_open): Likewise, for consistency.
5216 Reported and tested by: Ezekiel Grave.
5217
5218 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5219
5220 * tests/partmap_test.in: Don't hardcode path to parted.
5221 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5222
5223 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5224
5225 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5226 of `ls' to find out which devices are available.
5227
5228 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5231 than source address for efi mmap buffer.
5232
5233 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5236 wrong action on non-detecting the magic.
5237
5238 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5239
5240 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5241 already supplied by another part of the module (fixes compilation on
5242 FreeBSD).
5243
5244 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5247 match the one used by mdadm.
5248
5249 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5250
5251 * po/README: Add instructions for creating po/LINGUAS.
5252
5253 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5254
5255 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5256 #551428.
5257
5258 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5259 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5260 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5261 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5262 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5263 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5264 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5265 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5266 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5267 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5268 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5269 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5270 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5271 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5272 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5273 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5274 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5275 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5276 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5277 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5278 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5279 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5280
5281 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5282
5283 * grub-core/kern/emu/getroot.c
5284 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5285 test that was incorrectly reintroduced in r3214.
5286 Reported by: Ian Dall. Fixes Savannah bug #33133.
5287
5288 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5289
5290 Fix stack pointer handling in 16-bit relocator.
5291
5292 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5293 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5294 Fixes Ubuntu bug #683904.
5295
5296 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * configure.ac: Bump version to 1.99~rc2.
5299
5300 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5303 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5304 * grub-core/lib/x86_64/setjmp.S: Likewise.
5305 * grub-core/lib/mips/setjmp.S: Likewise.
5306 * grub-core/lib/powerpc/setjmp.S: Likewise.
5307 * grub-core/lib/sparc64/setjmp.S: Likewise.
5308
5309 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5312 * grub-core/lib/efi/datetime.c: Likewise.
5313
5314 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5317 New function.
5318 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5319 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5320 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5321
5322 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5325 bitmap.
5326 (grub_gfxterm_term_init): Likewise.
5327
5328 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 Take into account the decorations the computing menu entry width.
5331
5332 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
5333 (grub_gfxmenu_create_box): Register get_border_width.
5334 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
5335 if available.
5336 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
5337 get_border_width.
5338
5339 2011-04-18 Endres Puschner <code@e7p.de>
5340
5341 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
5342 Don't skip first class.
5343
5344 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
5347 chunks.
5348 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
5349
5350 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 Complete 64-bit division support.
5353
5354 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
5355 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
5356 * include/grub/misc.h (grub_divmod64): Rename to ...
5357 (grub_divmod64_full): ... this.
5358 (grub_divmod64): New inline function.
5359
5360 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * util/grub-mkimage.c (generate_image): Add forgotten comma.
5363
5364 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
5367 performing the necessary test.
5368
5369 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5370
5371 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
5372 (kfreebsd.elf): Likewise.
5373 (pc-chainloader.elf): Likewise.
5374 (ntldr.elf): Likewise.
5375
5376 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 Identify RAID by its UUID rather than (guessed) name.
5379
5380 * grub-core/disk/raid.c (ascii2hex): New function.
5381 (grub_raid_open): Accept mduuid/%s specification.
5382 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
5383 (get_mdadm_uuid): ... this.
5384 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
5385
5386 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
5389 to negative size.
5390
5391 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5392
5393 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
5394 btrfs subvolume.
5395 * util/grub.d/20_linux_xen.in: Likewise.
5396
5397 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
5398
5399 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
5400 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
5401
5402 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
5403 Build a list of relevant visible mounts using the mnt_id and
5404 parent_mnt_id fields, and then scan that list at the end.
5405
5406 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5407
5408 * docs/grub.texi (normal): New section.
5409 (normal_exit): New section.
5410 (Embedded configuration): Add reference to normal.
5411 (GRUB only offers a rescue shell): Likewise.
5412 * docs/grub-dev.texi (Error Handling): Fix typo.
5413
5414 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5415
5416 * NEWS: Drop obsolete entry about probe-only btrfs support.
5417
5418 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
5419
5420 * util/import_gcry.py: Fix typo.
5421
5422 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * NEWS: Add btrfs support.
5425
5426 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5427 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5428
5429 BtrFS support. Written by me (Vladimir) with important bugfixes and
5430 even more important testing by Colin.
5431
5432 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
5433 * grub-core/Makefile.core.def (btrfs): Add crc.c.
5434 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
5435 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
5436 mem_input_off and mem_input. All users updated to accept in-RAM input.
5437 (gzio_seek): New function.
5438 (test_zlib_header): Likewise.
5439 (grub_gzio_read): Likewise.
5440 (grub_zlib_decompress): Likewise.
5441 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
5442 Accept partial and non-virtual mounts.
5443 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
5444 avoid receiving /dev/dm-X as device.
5445 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
5446 Handle bind and partial mounts.
5447 * grub-core/lib/crc.c: New file.
5448 * include/grub/deflate.h: Likewise.
5449 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
5450 proto.
5451 * include/grub/lib/crc.h: New file.
5452
5453 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 Implement automatic module license checking according to new GNU
5456 guidelines.
5457
5458 * grub-core/kern/dl.c (grub_dl_check_license): New function.
5459 (grub_dl_load_core): Use grub_dl_check_license.
5460 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
5461 (GRUB_MOD_LICENSE): Likewise.
5462 (GRUB_MOD_DUAL_LICENSE): Likewise.
5463 All modules updated.
5464
5465 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
5466
5467 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
5468 reserved_first_sector to 1. btrfs reserves plenty of space for boot
5469 loaders.
5470 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
5471
5472 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
5475
5476 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 * util/grub-fstest.c (read_file): Report GRUB error if file opening
5479 failed.
5480
5481 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 * grub-core/kern/file.c (grub_file_open): Don't take into account the
5484 parenthesis in the middle of the filename.
5485
5486 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
5489 rather than trying to put initrd way too high.
5490 Reported by: Ryan Lortie <desrt@desrt.ca>
5491
5492 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
5495 improperly removed string.
5496
5497 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
5500 is_disk.
5501 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
5502 (open_device) Likewise.
5503 (grub_util_biosdisk_close): Likewise.
5504 Reported by: Mark Korenberg.
5505
5506 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
5507
5508 * util/grub-mkconfig_lib.in: Add missing quotes.
5509
5510 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
5511
5512 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
5513 is NULL.
5514
5515 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 Dynamically count the number of lines for the lower banner.
5518
5519 * grub-core/normal/menu_entry.c (per_term_screen): New member
5520 num_entries.
5521 (print_down): Use num_entries.
5522 (update_screen): Likewise.
5523 (grub_menu_entry_run): Set num_entries.
5524 * grub-core/normal/menu_text.c (menu_viewer_data): New member
5525 num_entries.
5526 (grub_print_message_indented): Move real part to ...
5527 (grub_print_message_indented_real): ... here. Additional argument
5528 dry_run.
5529 (draw_border): Additional argument num_entries.
5530 (print_message): Additional argument dry_run.
5531 (print_entries): Receive menu viewer data.
5532 (grub_menu_init_page): New argment num_entries.
5533 (menu_text_set_chosen_entry): Use num_entries.
5534 (grub_menu_try_text): Likewise.
5535 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
5536 All users updated.
5537 (grub_ucs4_count_lines): New function.
5538 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
5539 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
5540 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
5541 (grub_term_border_height): Likewise.
5542 (grub_term_num_entries): Likewise.
5543
5544 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
5547 Remove now unused string.
5548
5549 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5550
5551 * docs/grub-dev.texi (Finding your way around): Update for 1.99
5552 build system.
5553 (Getting started): GRUB is developed in Bazaar now, not Subversion.
5554
5555 (Comment): Fix typo.
5556 (Getting started): General copy-editing.
5557 (Typical Development Experience): Likewise.
5558 (Error Handling): Likewise.
5559 (Video API): Likewise.
5560
5561 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
5562
5563 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
5564 throughout.
5565
5566 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * util/grub-mkimage.c (main): Handle special naming of yeeloong
5569 directory.
5570
5571 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5572
5573 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
5574 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
5575 "development".
5576
5577 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
5580 grub_strcpy since the lines aren't necessarily 0-terminated.
5581
5582 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
5585 root on legacy.
5586
5587 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/commands/probe.c (options): Argument to set isn't optional.
5590 (GRUB_MOD_INIT): DEVICE isn't optional.
5591
5592 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
5595 word on new line if it's too long anyway. Fixes a hang.
5596
5597 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
5600 const.
5601 * util/grub-setup.c (main): Reuse md device name if available.
5602 * util/raid.c (grub_util_raid_getmembers): Receive device name and
5603 not GRUB name as argument.
5604 Based on patch by: Florian Wagner <fwagner>.
5605
5606 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
5609 Place mbi on low memory for better compatibility.
5610
5611 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
5614
5615 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5616 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
5617
5618 * autogen.sh: Ensure that collate and ctype locale is C.
5619 * conf/Makefile.common: Likewise.
5620
5621 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 * grub-core/normal/menu.c: Add missing include.
5624
5625 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
5628
5629 2011-04-08 Martin Zuther <mzuther@mzuther.de>
5630
5631 * util/grub-mkconfig.in: Ignore emacsen backup.
5632
5633 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
5636 on open.
5637 (grub_util_biosdisk_close): Likewise.
5638
5639 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
5642 const attribute and use grub_isdigit.
5643
5644 2011-04-06 Andrey <dev_null@ukr.net>
5645
5646 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
5647 gcc warning.
5648
5649 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
5652 useful grub_dprintf's.
5653
5654 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
5657
5658 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
5661
5662 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 Output errors if theme loading failed.
5665
5666 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
5667 grub_gfxterm_fullscreen on error paths to ...
5668 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
5669 theme loading error.
5670
5671 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
5674 space for older compilers.
5675 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5676
5677 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
5680 and report them as not RAID members since they are useless for GRUB.
5681 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5682
5683 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 Increase LVM implementation robustness in order not to crash on
5686 configurations like pvmove. Previously code assumed that in some places
5687 only lvs or only pvs are used whereas it seems that they are used
5688 interchangeably.
5689
5690 * grub-core/disk/lvm.c (read_node): New function.
5691 (read_lv): Use read_node.
5692 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
5693 Match volumes only at the end when all lvs are found. Take both
5694 pvs (first) and lvs (second) into account.
5695 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
5696 mirror_* into node_*. All users updated.
5697 (grub_lvm_stripe): Merge this ...
5698 (grub_lvm_mirror): ... and this ...
5699 (grub_lvm_node): ... into this. All users updated.
5700
5701 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
5704 of function to allow further scanning for LVMs.
5705
5706 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
5709 on failed seek as it breaks open fd reusage.
5710
5711 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * util/grub-install.in: Add a recommendation to use --recheck before
5714 reporting bugs.
5715
5716 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
5719 are obtained.
5720
5721 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 GRUB developper manual based on existing Internals section and
5724 contributions by the various authors with active copyright assignment.
5725
5726 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
5727 * docs/font_char_metrics.png: New file.
5728 * docs/font_char_metrics.txt: Likewise.
5729 * docs/grub-dev.texi: Likewise.
5730 * docs/grub.texi (Internals): Move from here ...
5731 * docs/grub-dev.texi: ... here.
5732
5733 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5734
5735 Store the loopback device as data on loopback grub_disk structures,
5736 rather than the file it points to. This fixes use of freed memory
5737 if an existing loopback device is replaced.
5738
5739 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
5740 disk->data, not dev->file.
5741 (grub_loopback_read): Adjust file assignment to match.
5742 Fixes Ubuntu bug #742967.
5743
5744 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5745
5746 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
5747 when replacing an existing device.
5748
5749 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
5752 memory corruptions.
5753
5754 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
5755 unsigned.
5756 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
5757 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
5758 (grub_jfs_read_inode): Likewise.
5759 (grub_jfs_opendir): Likewise. Remove now useless casts.
5760 (grub_jfs_getent): Likewise.
5761 Make ino a grub_uint32_t rather than int.
5762 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
5763 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
5764 division and module with bit operations.
5765 (grub_jfs_find_file): Make ino a grub_uint32_t.
5766 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
5767
5768 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
5769
5770 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
5771 warning. (This was in fact always initialised before use, but GCC
5772 wasn't smart enough to prove that.)
5773 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5774
5775 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
5778 stack alignment.
5779 (efi_wrap_1): Likewise.
5780 (efi_wrap_2): Likewise.
5781 (efi_wrap_3): Likewise.
5782 (efi_wrap_4): Likewise.
5783 (efi_wrap_5): Likewise.
5784 (efi_wrap_6): Likewise.
5785 (efi_wrap_10): Likewise.
5786 Based on information by: Red Hat/Peter Jones.
5787
5788 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5789
5790 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
5791 set-but-not-used variable.
5792
5793 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
5794
5795 * docs/grub.texi (Simple configuration): Be more explicit about
5796 GRUB_DEFAULT, and add an example.
5797 Reported by: Leslie Rhorer.
5798
5799 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5800
5801 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
5802 shell".
5803
5804 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5805
5806 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
5807 * util/grub.d/20_linux_xen.in: Likewise.
5808
5809 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * util/grub.d/10_linux.in: Try alternative config filenames where
5812 we parse config file.
5813 * util/grub.d/20_linux_xen.in: Likewise.
5814
5815 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
5816
5817 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
5818 * util/grub.d/20_linux_xen.in: Likewise.
5819
5820 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/disk/raid.c (insert_array): Add few potentially
5823 useful grub_util_info.
5824 (grub_raid_register): Likewise.
5825
5826 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
5829 Preserve partition number in mdadm code path.
5830
5831 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
5834 few potentially useful grub_util_info.
5835
5836 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
5839
5840 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5841
5842 * docs/grub.texi (default): Use @example rather than nested
5843 itemized lists to avoid breaking gendocs.
5844
5845 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5846
5847 * docs/grub.texi (Future): Update.
5848
5849 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5850
5851 * docs/grub.texi (Environment): New chapter.
5852 (Changes from GRUB Legacy): Link to "Environment block" section for
5853 details of limitations.
5854 (Simple configuration): Likewise. Link to documentation of gfxmode
5855 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
5856 respectively.
5857 (Shell-like scripting): Note that normal variables are stored in the
5858 environment.
5859 (gettext): Link to documentation of lang and locale_dir.
5860 (list_env): New section.
5861 (load_env): New section.
5862 (save_env): New section.
5863
5864 (Reporting bugs): Fix typo.
5865
5866 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5867
5868 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
5869 the example.
5870
5871 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * grub-core/term/at_keyboard.c (set_scancodes)
5874 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
5875
5876 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5877
5878 * docs/grub.texi (Menu-specific commands): Remove some semantics
5879 that were true in GRUB Legacy but not in GRUB 2.
5880 (submenu): New section.
5881 (false): New section.
5882 (read): New section.
5883 (true): New section.
5884
5885 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5886
5887 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
5888
5889 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
5890
5891 * docs/grub.texi (Simple configuration): Explain some of the
5892 current limitations of grub-mkconfig.
5893 Reported by: Leslie Rhorer.
5894
5895 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 Old macs search for boot.efi rather than for bootia32.efi.
5898
5899 * util/grub-install.in: Copy bootia32.efi to boot.efi.
5900 * util/grub-mkrescue.in: Likewise.
5901 Suggested by: Peter Jones.
5902
5903 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
5906
5907 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
5910 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
5911 (grub_lvm_mirror): New struct.
5912 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
5913 (grub_lvm_iterate): Iterate only visible volumes.
5914 (grub_lvm_read): Factor out to ..
5915 (read_lv): ... this. Support mirrors.
5916 (grub_lvm_read): New wrapper function.
5917 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
5918 stripped or mirrored.
5919
5920 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
5923
5924 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5925
5926 * docs/grub.texi (loopback): New section.
5927
5928 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5929
5930 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
5931 removed -p option.
5932
5933 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5934
5935 * docs/grub.texi (BIOS installation): New section, partly based on
5936 previous text in other sections.
5937 (Installing GRUB using grub-install): Replace BIOS discussion with a
5938 cross-reference.
5939 (Images): Likewise.
5940
5941 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * grub-core/kern/emu/hostdisk.c (find_partition_start)
5944 [HAVE_DIOCGDINFO]: Add safety checks.
5945
5946 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
5949 per default compiled in kernel and prior to 8.0 isn't shipped at all.
5950
5951 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
5952
5953 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
5954 real_sb->size is zero (e.g. RAID-0), get the disk size from
5955 real_sb->data_size instead.
5956 Fixes Ubuntu bug #743136.
5957
5958 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
5961 printf clauses for printing size and start.
5962
5963 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
5966 Reported and tested by: Timothy Nikkel.
5967
5968 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
5971 (dirty_region_add_real): ... this.
5972 (dirty_region_add): Don't discard margin refresh when performing
5973 scheduled repaint.
5974
5975 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * grub-core/lib/relocator.c (allocate_regstart)
5978 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
5979 terminals are capabple of malloc-free operation.
5980 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5981 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
5982
5983 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
5984
5985 * util/grub-setup.c: Copy the partition table zone if floppy support
5986 is disabled, even if no partition table is found.
5987
5988 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
5989 during POST if an invalid partition table is contained in the PBR
5990 of the active partition when GRUB is installed to a partition.
5991
5992 2011-03-28 Colin Watson <cjwatson@debian.org>
5993
5994 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
5995 comment.
5996
5997 2011-03-28 Colin Watson <cjwatson@debian.org>
5998
5999 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6000 to be specific about what kind of RAID device we're scanning for.
6001
6002 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6003
6004 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6005 return freed string.
6006
6007 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6010
6011 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 Use libgeom on FreeBSD to detect partitions.
6014
6015 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6016 (grub-mkrelpath): Likewise.
6017 (grub-script-check): Likewise.
6018 (grub-editenv): Likewise.
6019 (grub-mkpasswd-pbkdf2): Likewise.
6020 (grub-fstest): Likewise.
6021 (grub-mkfont): Likewise.
6022 (grub-mkdevicemap): Likewise.
6023 (grub-probe): Likewise.
6024 (grub-setup): Likewise.
6025 (grub-ofpathname): Likewise.
6026 (grub-mklayout): Likewise.
6027 (example_unit_test): Likewise.
6028 (grub-menulst2cfg): Likewise.
6029 * grub-core/Makefile.core.def (grub-emu): Likewise.
6030 (grub-emu-lite): Likewise.
6031 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6032 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6033 define HAVE_DIOCGDINFO.
6034 (follow_geom_up) [FreeBSD]: New function.
6035 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6036 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6037 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6038 unconditionally of HAVE_DIOCGDINFO.
6039
6040 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 Fix FreeBSD compilation problem.
6043
6044 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6045 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6046
6047 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6048
6049 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6050 Switch back to page zero before loading a kernel, since some kernel
6051 drivers expect that.
6052 Thanks to: Felix Kuehling.
6053
6054 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6057 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6058 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6059
6060 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6063 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6064
6065 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6068 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6069 malloc is disabled.
6070
6071 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6074 for modules headers when counting the needed allocation size.
6075
6076 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6079 if no ASCII character is found to prevent crash.
6080
6081 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6082
6083 * grub-core/video/bitmap.c (match_extension): Ignore case.
6084
6085 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6088
6089 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * grub-core/script/parser.y: Declare "time" as valid argument.
6092
6093 2011-03-23 Peter Jones <pjones@redhat.com>
6094
6095 Fix incorrect assert failure reporting.
6096
6097 * grub-core/tests/example_functional_test.c (example_test): Add
6098 a failure comment.
6099 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6100 (failure_start): ...this. Check that malloc succeeded.
6101 Don't call xvasprintf. Return failure struct.
6102 (failure_append_vtext): New function.
6103 (failure_append_text): Likewise.
6104 (add_failure): Likewise.
6105 (grub_test_assert_helper): Likewise.
6106 * include/grub/test.h (grub_test_assert_helper): New declaration.
6107 (grub_test_assert): Macro rewritten.
6108
6109 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6112
6113 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6116
6117 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6120 into GRUB-style one.
6121
6122 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6125 error and not grub_errno.
6126 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6127
6128 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6129
6130 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6131 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6132
6133 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * grub-core/efiemu/i386/pc/cfgtables.c
6136 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6137 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6138 (grub_xnu_unlock): Likewise.
6139 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6140
6141 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6144 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6145 * grub-core/commands/hashsum.c (aliases): Likewise.
6146 * grub-core/commands/setpci.c (pci_registers): Likewise.
6147 * grub-core/disk/usbms.c (attach_hook): Likewise.
6148 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6149 (zio_checksum_table): Likewise.
6150 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6151 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6152 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6153 * grub-core/lib/relocator.c (leftovers): Likewise.
6154 (extra_blocks): Likewise.
6155 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6156 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6157 (modules_last): Likewise.
6158 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6159 (devices): Likewise.
6160 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6161 (modules_last): Likewise.
6162 * grub-core/normal/auth.c (users): Likewise.
6163 * grub-core/normal/context.c (initial_menu): Likewise.
6164 (current_menu): Likewise.
6165 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6166 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6167 (grub_serial_terminfo_input_template): Likewise.
6168 (grub_serial_terminfo_output_template): Likewise.
6169 (grub_serial_terminfo_input): Likewise.
6170 (grub_serial_terminfo_output): Likewise.
6171 (registered): Likewise.
6172 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6173
6174 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6177 grub_video_mode_type_t.
6178 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6179 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6180 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6181
6182 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * util/grub-install.in: Correct the x86-64 name as x86_64.
6185
6186 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6187
6188 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6189 initial chunk read from the kernel always includes GRUB's multiboot
6190 header, which is now outside the first sector.
6191
6192 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6193
6194 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6195 cached mmap_size, so that this works correctly when called multiple
6196 times.
6197 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6198
6199 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6200
6201 * docs/grub.texi (Simple configuration): Tidy up formatting.
6202
6203 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6204
6205 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6206 Set-but-not-used variable removed.
6207
6208 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 Workaround yet another IEEE1275 bug.
6211
6212 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6213 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6214 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6215 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6216 is set.
6217 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6218 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6219
6220 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6223 error.
6224
6225 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6226
6227 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6228 empty, since in that case we can only generate either nothing or a
6229 syntactically invalid configuration file.
6230 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6231
6232 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6233
6234 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6235 (Making a GRUB bootable CD-ROM): Likewise.
6236 (Invoking grub-mkrescue): New section.
6237 Reported by: Yann Dirson. Fixes Debian bug #612585.
6238
6239 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6240
6241 * util/grub-install.in: Remove unnecessary brackets from tr
6242 arguments.
6243 * util/grub.d/10_hurd.in: Likewise.
6244 * util/grub.d/10_kfreebsd.in: Likewise.
6245 * util/grub.d/10_linux.in: Likewise.
6246 * util/grub.d/20_linux_xen.in: Likewise.
6247 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6248
6249 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6250
6251 * include/grub/file.h (not_easly_seekable): Rename to ...
6252 (not_easily_seekable): ... this. Update all users.
6253
6254 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6255
6256 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6257 grub-mkrescue.
6258
6259 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 * util/grub-mkimage.c (generate_image): Refuse to create the images
6262 bigger than the actual flash (512K) in Loongson machines. 512K is also
6263 the biggest chip supported by them.
6264
6265 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6268
6269 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6270
6271 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6272 super_offset field.
6273
6274 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * util/grub-install.in: Ignore install device on platforms
6277 where it doesn't make sense. Always use UUIDs except on pc, efi and
6278 sparc64.
6279 Reported by: Daniel Kahn Gillmor.
6280
6281 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6284
6285 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6288 (iterate_real): Don't rely on partition being non-NULL.
6289
6290 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6291
6292 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6293 supported platforms. Put a compile time assert for this rather than
6294 generate a warning with 32-bit shift.
6295
6296 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6299 logical expression more readable.
6300
6301 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6304 even if some elements have a name.
6305 Reported by: Alexander GQ Gerasiov.
6306
6307 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6308
6309 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6310 path unreadable if `grub-probe -t abstraction' fails, for example if
6311 memberlist fails on an LVM volume group.
6312 Reported by: Darius Jahandarie.
6313
6314 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6315
6316 * docs/grub.texi (Simple configuration): Document
6317 GRUB_PRELOAD_MODULES.
6318
6319 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6320
6321 * .bzrignore: Remove nonexistent grub-pbkdf2.
6322
6323 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * configure.ac: Bump version to 1.99~rc1.
6326
6327 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
6330 for safety.
6331
6332 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
6335 module.
6336
6337 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
6340
6341 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
6344 diskdevid.
6345
6346 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 Fix compilation on cygwin.
6349
6350 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
6351 -R .drectve on cygwin.
6352 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
6353 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
6354 (COND_CYGWIN): New condition.
6355 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
6356 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
6357 not @TARGET_OBJ2ELF@.
6358 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
6359 type to determine whether aux is to be used.
6360
6361 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
6364 realpath'ed device string.
6365 Handle floppy (somewhat).
6366 Issue error in unknown case rather than garbage.
6367 Reported by: Axel Beckert.
6368
6369 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * util/grub.d/00_header.in (load_video): Handle the case when no video
6372 drivers available.
6373 Thanks to: Axel Beckert.
6374
6375 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
6378 variable. Fixes problem on big endian platforms.
6379
6380 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
6383 It doesn't work well there.
6384
6385 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
6388 warning.
6389 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
6390 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
6391 counter.
6392
6393 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 Use alias->path rather than buggy "canon".
6396
6397 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
6398 (ofdisk_hash_add): New argument curcan. All users updated.
6399
6400 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6401
6402 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
6403
6404 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
6407 loadmask before doing any calculations. Use correct type for offset.
6408 (grub_linux_load64): Likewise.
6409
6410 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
6411
6412 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
6413 with NULL.
6414 (console_grub_equivalences_unshift): Likewise.
6415 Reported by: Daniel Dehennin.
6416
6417 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
6420 (set_env_limn_ro): Likewise.
6421 (GRUB_MOD_INIT): Likewise.
6422 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
6423 ARRAY_SIZE while on it.
6424 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
6425 * grub-core/normal/context.c (grub_env_export): Move from here ...
6426 * grub-core/kern/env.c (grub_env_export): ... here.
6427 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
6428 prefix.
6429 * grub-core/kern/main.c (grub_main): Export root and prefix.
6430 * include/grub/env.h (grub_env_export): Export.
6431 Reported by: Seth Goldberg.
6432
6433 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6436 Take into account space used by ELF sections and multiboot palette.
6437 Reported by: Grégoire Sutre.
6438
6439 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 * BUGS: New file.
6442
6443 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 Pass more appropriate video id to Linux.
6446
6447 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
6448 grub_video_get_driver_id and variable gfxpayloadforcelfb to
6449 fill have_vga.
6450 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
6451 shift params->lfb_size.
6452 * include/grub/i386/linux.h: Make an enume out of have_vga values.
6453
6454 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6455
6456 * util/grub-menulst2cfg.c: Add missing include of misc.h.
6457
6458 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6459
6460 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
6461 separator and pass bootpath/devid even if only one of them is available.
6462 Reported by: Seth Goldberg.
6463
6464 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
6467 implementations bug on them.
6468
6469 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
6470 memory.
6471 (filter_memory_map): Likewise.
6472
6473 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
6476 Reported by: nebuchadnezzar.
6477
6478 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
6481 Reported by: nebuchadnezzar.
6482
6483 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 Submenu default support.
6486
6487 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
6488 auto_boot. All users updated.
6489 Declared static.
6490 Handle chosen and default with submenus.
6491 (grub_menu_execute_with_fallback): Declared static.
6492 Don't notify failure if autobooted. Upper level does it.
6493 (menuentry_eq): New function.
6494 (get_entry_number): Use menuentry_eq.
6495 (show_menu): New parameter "autobooted". All users updated.
6496 (grub_show_menu): Likewise.
6497 * include/grub/normal.h (grub_show_menu): Likewise.
6498 * include/grub/menu.h (grub_menu_execute_entry): Removed.
6499 (grub_menu_execute_with_fallback): Likewise.
6500
6501 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * util/grub-mklayout.c (usage): Update help text.
6504
6505 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
6508
6509 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * util/grub-menulst2cfg.c (main): Trim the line.
6512
6513 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
6516 (grub_machine_init): Don't check amount of low memory as reportedly
6517 INT 12h can be broken and if low memory is too low we wouldn't have
6518 gotten into grub_machine_init anyway.
6519
6520 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
6523 (grub_machine_mmap_iterate): Take low memory into account
6524
6525 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
6528 badfs.
6529 Reported by: TiCPU.
6530
6531 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
6534 members errors.
6535
6536 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6537
6538 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
6539 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
6540
6541 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
6542
6543 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
6544 openbsd and netbsd types being in part_bsd module.
6545
6546 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
6549 (_FILE_OFFSET_BITS): Likewise.
6550 Reported by: Seth Goldberg.
6551
6552 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6553
6554 * configure.ac: Check for libdevmapper header.
6555
6556 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
6559 avoid aliasing.
6560 (fzap_lookup): Likewise.
6561 (dnode_get): Likewise.
6562 (make_mdn): Likewise.
6563 (zfs_mount): Likewise.
6564 (fzap_iterate): Use temporary pointer to avoid aliasing.
6565 (grub_zfs_read): Likewise.
6566 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
6567 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
6568 pointers to avoid aliasing.
6569 (grub_cmd_xnu_kernel64): Likewise.
6570 (grub_xnu_load_driver): Likewise.
6571
6572 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6573
6574 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
6575 aliasing warning.
6576 (grub_cmd_terminal_output): Likewise.
6577 Reported and tested by: Grégoire Sutre.
6578
6579 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
6582 warning.
6583 Reported and tested by: Grégoire Sutre.
6584
6585 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * configure.ac: Do CPU substitution even if it's specified explicitly.
6588 Reported and tested by: Alain Greppin.
6589
6590 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
6593 Reported and tested by: Alain Greppin.
6594
6595 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 Satisfy some bison versions need for inttypes.h.
6598
6599 * grub-core/lib/posix_wrap/inttypes.h: New file.
6600 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
6601 (int16_t): Likewise.
6602 (int32_t): Likewise.
6603 (int64_t): Likewise.
6604 Reported and tested by: Alain Greppin.
6605
6606 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
6607
6608 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
6609 Silence spurious warning.
6610 Reported and tested by: Alain Greppin.
6611
6612 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6613
6614 * docs/grub.texi (Support automatic decompression): Update with xz
6615 decompression support.
6616
6617 2011-01-07 Szymon Janc <szymon@janc.net.pl>
6618
6619 Improve loaders' kernel command line handling.
6620
6621 * grub-core/lib/cmdline.c: New file.
6622 * include/grub/lib/cmdline.h: Likewise.
6623 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
6624 grub_create_loader_cmdline to create kernel command line.
6625 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6626 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
6627 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
6628 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
6629 (linux): Add lib/cmdline.c on common.
6630
6631 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
6634 inopos might be unaligned.
6635
6636 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6639 endian transformations.
6640 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6641 Based on report by: Doug Nazar.
6642
6643 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
6644
6645 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
6646 array->members[i].start_sector.
6647 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6648
6649 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
6652 Reported and tested by: Grégoire Sutre.
6653
6654 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6655
6656 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
6657 avoid causing test failures by clearing the screen.
6658
6659 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
6660
6661 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6662 Fix prefix check to handle the case where dir ends with a slash
6663 (most significantly, "/" itself).
6664 Reported by: Michael Vogt.
6665
6666 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6667
6668 Run terminfo_cls on initing terminfo output to clear the screen and
6669 move the cursor to (0,0).
6670
6671 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
6672 Call grub_terminfo_output_init.
6673 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
6674 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
6675 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
6676
6677 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6678
6679 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
6680 only when needed.
6681
6682 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
6685 CTRL.
6686
6687 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 The E820 type 5 is BADRAM, not EXEC_CODE.
6690
6691 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6692 (GRUB_E820_BADRAM): New define.
6693 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
6694 into reserved. Propagate BADRAM.
6695 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
6696 (GRUB_E820_BADRAM): New define.
6697
6698 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
6701 Ignore the memory post-4G.
6702 (grub_relocator_firmware_alloc_region): Additional debug statement.
6703
6704 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6705
6706 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
6707 names.
6708 Reported by: David Pravec.
6709
6710 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
6713 BIOSes.
6714
6715 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
6718 Prevent overflow.
6719 (grub_reed_solomon_recover): Likewise.
6720
6721 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
6724
6725 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
6728 variable.
6729
6730 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
6731
6732 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
6733 descriptions of extract_legacy_entries_source and
6734 extract_legacy_entries_configfile.
6735 Reported by: Seung Soo, Ha.
6736
6737 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
6738
6739 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
6740 on devices that do not implement function 0.
6741
6742 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
6743
6744 * grub-core/fs/hfsplus.c: Make parent unsigned.
6745 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
6746 overflows.
6747 (grub_hfsplus_cmp_extkey): Likewise
6748
6749 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 * util/grub-install.in: Correctly use bootloader_id and not
6752 GRUB_DISTRIBUTOR on efibootmgr line.
6753
6754 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
6757
6758 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
6759
6760 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
6761 Xen and reorder menu item wording to make it clearer that this entry
6762 will launch Xen. Print separate messages when loading Xen and
6763 Linux.
6764
6765 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
6768 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
6769 loop in case of incorrect amiga partmap.
6770
6771 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
6774 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
6775 Reported by:EHeM.
6776
6777 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
6780 spurious warning.
6781 Reported by: crocket
6782
6783 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
6786 Preload EFIemu.
6787 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
6788
6789 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
6792 is loaded
6793 (grub_cmd_xnu_kextdir): Likewise.
6794 (grub_cmd_xnu_splash): Likewise.
6795
6796 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 Avoid using Reed-Solomon with 0 redundancy.
6799
6800 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
6801 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
6802 or 0 redundancy.
6803 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
6804 (grub_reed_solomon_recover): Likewise.
6805
6806 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 Don't use disk subsystem in freebsd_boot.
6809
6810 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
6811 (freebsd_biosdev): Likewise.
6812 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
6813 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
6814
6815 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 Handling of files of unknown size is currently limited. They can't be
6818 used e.g. for initrd or modules. Moreover gzip handling of not
6819 easily seekable files is buggy. Disable unknown file size for now. May
6820 be inefficient but works.
6821
6822 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
6823 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
6824
6825 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
6826
6827 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
6828 floppy probe.
6829
6830 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
6831
6832 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
6833
6834 2010-12-25 Shea Levy <shlevy>
6835
6836 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
6837
6838 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
6841 Windows Server 2008.
6842 Reported by: Devin Giddings.
6843
6844 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
6847 writing an error message because of async power management.
6848 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
6849 (grub_reboot): Likewise.
6850
6851 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
6852
6853 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
6854 keep unit tests from failing when they shouldn't.
6855
6856 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6857
6858 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
6859 previous patch increased the size of the RS code by 20 bytes (at
6860 least with gcc-4.4), so increase this by 20 bytes to match.
6861 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6862
6863 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6864
6865 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
6866 scratch area. Make sure to initialise chosen in standalone mode as
6867 well as non-standalone.
6868 Reported by: Robert Hooker and Andy Whitcroft.
6869 Tested by: Andy Whitcroft.
6870
6871 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6872
6873 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
6874 constructing a new unescaped string and passing it to grub_xputs in
6875 one go, rather than passing characters to grub_printf one at a time.
6876
6877 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6878
6879 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
6880 initialising utf16.
6881
6882 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
6883
6884 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
6885 comment. Add an extra layer of quotation, requiring the output of
6886 this function to be used in a printf format string.
6887 (gettext_printf): New function.
6888 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
6889 Extract translatable strings from here-documents and use a temporary
6890 variable instead, so that xgettext can find them.
6891 * util/grub.d/10_kfreebsd.in: Likewise.
6892 * util/grub.d/10_linux.in: Likewise.
6893 * util/grub.d/20_linux_xen.in: Likewise.
6894
6895 * po/grub.d.sed: New file.
6896 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
6897 arguments. Set c-format flags on all strings extracted from
6898 util/grub.d/ (xgettext refuses to include these itself for strings
6899 it extracted from a shell file, but these really are c-format).
6900
6901 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
6904 Avoid next pointing to nowhere.
6905
6906 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
6909 rather than assuming than rootblock is exactly in the middle.
6910 (grub_affs_label): Likewise.
6911
6912 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
6915 reserved_first_sector to 0.
6916 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
6917 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
6918 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
6919
6920 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 Fix handling of UTF-16 UDF labels.
6923
6924 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
6925 (read_string): .. here.
6926 (grub_udf_label): Use read_string.
6927
6928 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
6929
6930 * grub-core/normal/menu_entry.c (run): Execute commands from menu
6931 editor under argument scope.
6932 Reported by: Jordan Uggla
6933
6934 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
6937
6938 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
6939
6940 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
6941 line, and other keys scroll an entire page (previous handling was
6942 for \r and \n to scroll a page and other keys to scroll two lines).
6943
6944 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6947 Set ptrdest to correct get_physical_target_address rather than
6948 incorrect get_virtual_current_address.
6949
6950 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
6951
6952 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
6953 correct cat to grub_uint8_t * rather than grub_uint32_t *.
6954
6955 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6956
6957 * .bzrignore: Ignore grub-core/rs_decoder.S.
6958
6959 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
6960
6961 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
6962 .mo/.mo.gz opening sequence to ...
6963 (grub_mofile_open_lang): ... here.
6964 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
6965 * util/grub.d/00_header.in (grub_lang): Include country part of
6966 locale.
6967 Reported by: Mario Limonciello.
6968
6969 2010-12-09 Robert Millan <rmh@gnu.org>
6970
6971 * NEWS: Document addition of ZFS support.
6972
6973 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
6974
6975 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
6976 rather than `/ 2', as the latter requires -Wa,--divide which would
6977 require bumping our minimum binutils version.
6978
6979 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
6980
6981 * util/grub-script-check.c (main): Print script line number on
6982 error.
6983
6984 2010-12-01 Robert Millan <rmh@gnu.org>
6985
6986 * grub-core/fs/zfs/zfs.c: New file.
6987 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
6988 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
6989 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
6990 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6991
6992 * include/grub/zfs/dmu.h: Likewise.
6993 * include/grub/zfs/dmu_objset.h: Likewise.
6994 * include/grub/zfs/dnode.h: Likewise.
6995 * include/grub/zfs/dsl_dataset.h: Likewise.
6996 * include/grub/zfs/dsl_dir.h: Likewise.
6997 * include/grub/zfs/sa_impl.h: Likewise.
6998 * include/grub/zfs/spa.h: Likewise.
6999 * include/grub/zfs/uberblock_impl.h: Likewise.
7000 * include/grub/zfs/vdev_impl.h: Likewise.
7001 * include/grub/zfs/zap_impl.h: Likewise.
7002 * include/grub/zfs/zap_leaf.h: Likewise.
7003 * include/grub/zfs/zfs.h: Likewise.
7004 * include/grub/zfs/zfs_acl.h: Likewise.
7005 * include/grub/zfs/zfs_znode.h: Likewise.
7006 * include/grub/zfs/zil.h: Likewise.
7007 * include/grub/zfs/zio.h: Likewise.
7008 * include/grub/zfs/zio_checksum.h: Likewise.
7009
7010 * Makefile.util.def: Build ZFS into libgrubmods.
7011 * grub-core/Makefile.core.def: Build zfs.mod.
7012
7013 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7014
7015 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7016 variable.
7017 * grub-core/commands/wildcard.c (match_files): Likewise.
7018
7019 2010-11-30 Robert Millan <rmh@gnu.org>
7020
7021 * grub-core/loader/i386/bsd.c
7022 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7023 whether kernel is loaded using grub_loader_is_loaded(), rather
7024 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7025 certain error conditions.
7026
7027 2010-11-30 Robert Millan <rmh@gnu.org>
7028
7029 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7030 (grub_cmd_echo): Call grub_refresh() after printing a message.
7031
7032 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 Avoid using tricks for initialising endian variables.
7035
7036 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7037 Make const.
7038 (GRUB_MOD_INIT): Don't byte-swap.
7039 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7040 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7041 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7042 (grub_swap_bytes32_compile_time): Likewise.
7043 (grub_cpu_to_le32_compile_time): Likewise.
7044 (grub_cpu_to_le16_compile_time): Likewise.
7045
7046 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * util/grub-setup.c (setup): Stop recommending --force. People who
7049 understand the dangers of blocklists are able to find this option
7050 anyway and the ones who don't shouldn't use it anyway.
7051
7052 2010-11-26 Robert Millan <rmh@gnu.org>
7053
7054 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7055 Update all users.
7056
7057 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7058
7059 Fix LVM-on-RAID probing.
7060
7061 * util/grub-probe.c (probe): Remember which disk was detected as
7062 RAID (perhaps an LVM physical volume). Use that disk's raidname
7063 rather than that of the top-level disk.
7064
7065 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7066
7067 Fix cmdline argument quotes for setparams command of menuentry
7068 definitions.
7069
7070 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7071 quotes for arguments.
7072 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7073 grub_strchrsub function instead.
7074
7075 * include/grub/misc.h (grub_strchrsub): New function.
7076
7077 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7078
7079 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7080 effort by skipping "." and ".." entries up-front.
7081 Suggested by: Michael Lazarev.
7082
7083 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7084
7085 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7086 ldflags to ldadd, to fix link line ordering.
7087 (none_decompress): Likewise.
7088
7089 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7090
7091 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7092 platforms.
7093 (grub-emu-lite): Remove kern/emu/cache.S.
7094
7095 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7096
7097 * util/deviceiter.c (compare_devices): If the by-id link for a
7098 device couldn't be resolved, fall back to sorting by the by-id link
7099 rather than segfaulting.
7100 Reported and tested by: Daniel Mierswa.
7101
7102 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7103
7104 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7105 ldflags, to fix link line ordering.
7106
7107 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7108
7109 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7110 linkers are picky about this.
7111
7112 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7113
7114 * grub-core/Makefile.am (command.lst): Adjust sed expression
7115 ordering so that extended and priority commands aren't treated as
7116 ordinary commands.
7117
7118 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7119
7120 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7121 Remove byte-swapping function calls, which are not valid in
7122 structure initialisers.
7123 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7124 non-const.
7125 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7126 grub_gpt_partition_type_bios_boot.
7127
7128 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7129
7130 Fix test program build on GNU/kFreeBSD.
7131
7132 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7133 $(LIBNVPAIR)' library dependencies.
7134
7135 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7136
7137 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7138
7139 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7140
7141 * util/grub-install.in: Remove excessive quoting that broke
7142 installations to RAID devices.
7143
7144 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7147 bootloader version instead of 0.
7148
7149 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7152 warning.
7153
7154 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7157 retrieve the metadat sector if size isn't known.
7158 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7159
7160 2010-11-18 Robert Millan <rmh@gnu.org>
7161
7162 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7163 with grub_memcmp().
7164
7165 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7168 arrow.
7169 Reported by: Jordan Uggla.
7170
7171 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 Make better UTF compliant.
7174
7175 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7176 sequences as incorrect.
7177 (grub_is_valid_utf8): Likewise.
7178 (grub_utf8_to_ucs4): Likewise.
7179 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7180 (grub_ucs4_to_utf8_alloc): Likewise.
7181 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7182
7183 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 Make legacy_source behave like source.
7186
7187 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7188 grub_show_menu.
7189 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7190
7191 2010-11-16 Colin Watson <cjwatson@debian.org>
7192
7193 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7194 (-Wunused implies -Wunused-parameter, but not vice versa).
7195
7196 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7197
7198 * configure.ac: Make error messages less confusing by testing for
7199 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7200 accepted, but produces a diagnostic if something else is wrong).
7201
7202 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7205 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7206 (now unused).
7207 (grub_keyboard_controller_init)
7208 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7209 read the initial state since controller isn't inited yet.
7210
7211 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7214 allocate_regbeg may need to create new chunk header.
7215
7216 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 Fix quoting in legacy parser.
7219
7220 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7221 single quotes.
7222 (grub_legacy_parse): Likewise.
7223 Reported by: Jordan Uggla.
7224 Tested by: Jordan Uggla.
7225
7226 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 Don't add -lgcc on i386 and x86_64.
7229
7230 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7231 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7232 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7233
7234 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7235
7236 * configure.ac: Add -Wno-trampolines when supported.
7237
7238 2010-11-14 Modestas Vainius <modax@debian.org>
7239
7240 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7241 fakeraid.
7242
7243 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7244
7245 Add generic logical block size support for UDF.
7246
7247 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7248 (GRUB_UDF_BLKSZ): Removed.
7249 (struct grub_udf_data): New field "lbshift" to hold the logical block
7250 size of the file system in log2 format. All users updated.
7251 (sblocklist): Change type to unsigned.
7252 (grub_udf_mount): Change type of "sblklist" to unsigned.
7253 Move AVDP search before VRS recognition, because the latter requires
7254 knowledge of the logical block size, which is detected during the
7255 former.
7256 Detect and validate logical block size during AVDP search, adding
7257 support for block sizes 512, 1024 and 4096.
7258 Make VRS recognition independent of block size.
7259
7260 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7261
7262 Properly handle deleted files on UDF.
7263
7264 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7265 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7266 set.
7267
7268 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7269
7270 Support reading files larger than 2 GiB.
7271
7272 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7273 "offset" to grub_off_t.
7274 (grub_udf_read_file): Likewise for parameter "pos".
7275
7276 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7277
7278 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7279 unavailable.
7280 (Simple configuration): Refer to Changes from GRUB Legacy about
7281 save_env availability.
7282
7283 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * util/grub-install.in: Ignore empty partition table detection
7286 instead of trying to include part_ module.
7287
7288 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7291 LVM on RAID support.
7292
7293 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 Properly define WORDS_BIGENDIAN in wrapped environments.
7296
7297 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7298 definition.
7299 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7300
7301 Reported by: Manoel Rebelo Abranches.
7302 Tested by: Manoel Rebelo Abranches.
7303
7304 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * util/grub-mkconfig.in: Fix quoting.
7307
7308 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 Support big ext2 files.
7311
7312 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7313 (grub_ext2_read_block): Support triple indirect blocks.
7314 (grub_ext2_read_file): Use 64-bit types and read size_high.
7315 (grub_ext2_open): Read size_high.
7316 Reported by: Ximin Luo.
7317 Tested by: Manoel Rebelo Abranches.
7318
7319 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * util/grub-install.in: Handle filenames containing spaces.
7322 Reported by: Jordan Uggla.
7323 Tested by: Jordan Uggla.
7324
7325 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * util/grub-mkconfig.in (grub_script_check): New variable.
7328 Use grub_script_check instead of grub-script-check.
7329 Reported by: Barry Jackson.
7330
7331 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 * docs/grub.texi (menu): Correct the order.
7334 Reported by: D. Hugh Redelmeier.
7335
7336 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
7339 jump.
7340
7341 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7342
7343 * include/grub/elfload.h (grub_elf32_size): New parameter.
7344 All users updated.
7345 Return maximum segments alignment.
7346 (grub_elf64_size): Likewise.
7347 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
7348 Return maximum segments alignment.
7349 (grub_elf64_size): Likewise.
7350 * grub-core/loader/powerpc/ieee1275/linux.c:
7351 (grub_linux_claimmap_iterate): New function. Uses the
7352 "available" property in the "memory" node for memory allocation
7353 for kernel in the PowerPC loader.
7354 (grub_linux_load32): Correctly find linux entry point offset.
7355 (grub_linux_load64): Likewise.
7356
7357 2010-11-07 Robert Millan <rmh@gnu.org>
7358
7359 On mips-yeeloong, build with -march=loongson2f when this flag is
7360 available (GCC >= 4.4).
7361 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
7362 `-march=mips3'.
7363 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
7364 or otherwise add -march=mips3.
7365
7366 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
7367
7368 Suppress shell expansion on echo '*' and echo "*" like cases.
7369 Reported by: Jordan Uggla.
7370
7371 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
7372 string arguments before shell expansion.
7373 * tests/grub_cmd_echo.in: New testcases.
7374
7375 2010-11-07 Robert Millan <rmh@gnu.org>
7376
7377 * conf/mips-qemu-mips.rmk: Remove stale file from previous
7378 transition.
7379
7380 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * grub-core/kern/emu/hostdisk.c
7383 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
7384
7385 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
7388 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
7389 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
7390
7391 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7392
7393 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
7394
7395 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * util/grub-install.in: Replace useless recomendation to pass
7398 --modules with a recomendation to report a bug.
7399
7400 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 Properly register serial terminfo.
7403 Reported by: Jordan Uggla
7404
7405 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
7406 const.
7407 (grub_serial_terminfo_output_template): Likewise.
7408 (grub_cmd_serial): Register "serial" with terminfo.
7409 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
7410 grub_serial_terminfo_output.
7411
7412 2010-11-05 Robert Millan <rmh@gnu.org>
7413
7414 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
7415 needed).
7416
7417 2010-11-05 Robert Millan <rmh@gnu.org>
7418
7419 On Yeeloong, pass machine type information to Linux.
7420
7421 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
7422 (LOONGSON_MACHTYPE): New macro, set to
7423 "machtype=lemote-yeeloong-2f-8.9inches".
7424 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
7425 additional argument to Linux.
7426
7427 2010-11-04 Robert Millan <rmh@gnu.org>
7428
7429 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
7430 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
7431 (its SATA disks are detected as slaveless IDE master drives on
7432 kFreeBSD).
7433 Reported by Carsten Aulbert.
7434
7435 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
7436
7437 * util/bin2h.c (main): Fix spelling error in generated output.
7438
7439 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
7440
7441 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
7442
7443 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
7446 vga= option is supplied.
7447
7448 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
7451 * util/grub.d/10_kfreebsd.in: Likewise.
7452 * util/grub.d/10_linux.in: Likewise.
7453 * util/grub.d/20_linux_xen.in: Likewise.
7454
7455 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
7458 argument as an argument to no-argument option.
7459
7460 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * util/grub.d/10_linux.in: Add missing load_video with explicit
7463 GRUB_GFXPAYLOAD_LINUX.
7464
7465 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
7468
7469 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
7472 elements with invlid index.
7473 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7474 * grub-core/disk/raid.c (insert_array): Automatically reallocate
7475 members.
7476 * include/grub/raid.h (grub_raid_member): New struct.
7477 (grub_raid_array): Transform devices and start_sector into usage of
7478 grub_raid_member. All users updated
7479 (allocated_devs): New member.
7480
7481 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
7484 is modified
7485
7486 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
7487
7488 NetBSD build fix for getline function conflict from gnulib.
7489
7490 * Makefile.util.def (libgrubkern.a): New library for grub kernel
7491 components that depend on gnulib headers.
7492 (libgrubmods.a): Renamed from earlier libgrub.a.
7493 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
7494
7495 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
7498 install rather than creating a broken install.
7499
7500 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * util/grub-setup.c (argp): Remove misleading example of installing to
7503 a partition.
7504
7505 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * util/grub-setup.c (setup): Clarify the error message.
7508
7509 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
7512
7513 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/kern/emu/misc.c
7516 (grub_make_system_path_relative_to_its_root)
7517 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
7518
7519 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/kern/emu/misc.c
7522 (grub_make_system_path_relative_to_its_root): Revert r2882.
7523
7524 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
7527 useless field head. All users updated.
7528 (free_subchunk): Correct handling of IN_REGION subchunk.
7529
7530 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
7531
7532 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
7533 (Supported kernels): Likewise.
7534
7535 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7536
7537 Make mktemp invocations portable.
7538
7539 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
7540 exit if mktemp fails.
7541 * tests/grub_script_blockarg.in: Likewise.
7542 * tests/partmap_test.in: Likewise.
7543 * tests/util/grub-shell-tester.in: Likewise.
7544 * tests/util/grub-shell.in: Likewise.
7545 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7546 * Makefile.am: Likewise, and chain shell commands with `&&'
7547 instead of ';'.
7548 * util/grub-mkrescue.in: Use the same explicit template as above, and
7549 exit if mktemp fails.
7550
7551 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
7552
7553 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
7554 Linux kernel, reported by Dennis Schridde.
7555
7556 2010-10-17 Szymon Janc <szymon@janc.net.pl>
7557
7558 * grub-core/normal/auth.c (grub_auth_check_authentication):
7559 Set-but-not-used variable removed.
7560
7561 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 * docs/grub.texi (GNU/Linux): Document APM unavailability with
7564 32-bit linux protocol.
7565
7566 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
7569 cursor shape for sanity.
7570
7571 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7572
7573 * docs/grub.texi (Installation): Document buggy BIOS install.
7574
7575 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7576
7577 * docs/grub.texi (Installation): Indent.
7578
7579 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * util/grub-setup.c (setup): New parameter allow_floppy.
7582 (arguments): New member allow_floppy.
7583 (argp_parser): Handle --allow-floppy.
7584 (main): Pass allow_floppy.
7585 * util/grub-install.in: New option --allow-floppy passed though to
7586 grub-setup.
7587
7588 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * util/grub-install.in: Handle partitionless disks.
7591
7592 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
7593
7594 * util/grub-setup.c (setup): Don't clean blocklists before readability
7595 verfification.
7596
7597 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 * docs/grub.texi (Installation): Document embedding zone. Remove
7600 obsolete grub-install example.
7601
7602 2010-10-16 Szymon Janc <szymon@janc.net.pl>
7603
7604 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7605 Set-but-not-used variable ifdef'ed.
7606 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
7607 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
7608 variable removed.
7609 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
7610 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
7611 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7612 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
7613 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
7614 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7615 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
7616 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
7617 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
7618 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
7619 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
7620 Likewise.
7621
7622 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
7625 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
7626 enum value.
7627
7628 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
7631 synonym to _S5_. Needed for some DSDTs.
7632
7633 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 Userspace ACPI parser debugging.
7636
7637 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
7638 headers and add relevant defines. Don't include standard headers.
7639 (main) [GRUB_DSDT_TEST]: New function.
7640 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
7641 Don't declare functions.
7642
7643 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 Remove dead grub_efi_mm_fini.
7646
7647 * grub-core/kern/efi/mm.c (allocated_page): Removed.
7648 (ALLOCATED_PAGES_SIZE): Likewise.
7649 (MAX_ALLOCATED_PAGES): Likewise.
7650 (allocated_pages): Likewise.
7651 (grub_efi_allocate_pages): Don't record allocated pages.
7652 (grub_efi_free_pages): Likewise.
7653 (grub_efi_mm_init): Likewise.
7654 (grub_efi_mm_fini): Removed.
7655
7656 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
7659 (grub_efi_mm_init): Take into account the memory map size increase.
7660
7661 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
7664 (serial_hw_put): Wait based on real time rather than port reads. Don't
7665 roken ports.
7666 * include/grub/serial.h (grub_serial_port): New field broken.
7667
7668 2010-10-16 Robert Millan <rmh@gnu.org>
7669
7670 * grub-core/kern/emu/misc.c
7671 (grub_make_system_path_relative_to_its_root): Fix premature return
7672 when processing non-root ZFS filesystems.
7673 Reported by Sergio Talens-Oliag.
7674
7675 2010-10-15 Robert Millan <rmh@gnu.org>
7676
7677 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
7678 guarantee compressed ones are processed first.
7679
7680 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
7683 grub_efiemu_autocore.
7684
7685 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
7688 rather than 0x1b.
7689 (grub_console_getkey): Use correct jae opcode rather than ja.
7690
7691 2010-10-12 Robert Millan <rmh@gnu.org>
7692
7693 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
7694 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
7695 variable. All references updated.
7696
7697 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
7698
7699 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 Correctly distinguish mdraid flavours.
7702
7703 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
7704 (insert_array): New argument raid.
7705 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
7706 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
7707 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
7708
7709 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
7712 handling of special keys.
7713
7714 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7715
7716 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
7717 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
7718
7719 2010-10-02 Aleš Nesrsta <starous@volny.cz>
7720
7721 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
7722 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
7723 users updated.
7724 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
7725 Use right endpoint when querying descriptor.
7726
7727 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Clear out 0x80 color bit on EFI.
7730 Tested by: decoder
7731 Reported by: decoder and meta tech.
7732
7733 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
7734 (grub_console_setcolorstate): Clear out 0x80 bit.
7735 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
7736 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
7737 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
7738
7739 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
7742 Set to "auto".
7743
7744 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
7747 mo_file after freeing.
7748
7749 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
7752
7753 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
7756 flags.
7757
7758 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
7761 usage.
7762
7763 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 Put terminfo into core on ieee1275 and yeeloong (needed for console).
7766
7767 * gentpl.py: New groups terminfoinkernel and terminfomodule.
7768 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
7769 and terminfo.h when needed.
7770 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
7771 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
7772 (terminfo): Enable only on terminfokernel.
7773 (extcmd): Likewise.
7774 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
7775 * include/grub/lib/arg.h: Likewise.
7776 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
7777 incorrect usage of ->.
7778
7779 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
7782 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
7783
7784 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 Fix coreboot compilation.
7787
7788 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
7789 Take VBE info into account even if only text is supported.
7790 (fill_vbe_info): Take into account the case when only VGA text
7791 is supported.
7792 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
7793 on coreboot, multiboot and qemu.
7794
7795 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7796
7797 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
7798 debug messages.
7799 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
7800
7801 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
7804 parameters.
7805
7806 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
7809 if they were BSD-style.
7810
7811 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 * grub-core/boot/i386/pc/lnxboot.S: Replace
7814 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
7815 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
7816
7817 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 Write embedding zone using Reed-Solomon.
7820
7821 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
7822 * grub-core/Makefile.am (rs_decoder.S): New target.
7823 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
7824 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
7825 (multiboot): Move to RS part.
7826 (post_reed_solomon): New label.
7827 (grub_boot_drive): Move to non-RS part since it's modified in memory
7828 on boot.
7829 Include rs_decoder.S.
7830 * grub-core/lib/reed_solomon.c: New file.
7831 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
7832 New definition.
7833 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
7834 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
7835 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
7836 * include/grub/partition.h (grub_partition_map): Change prototype of
7837 embed to allow returning additional sectors.
7838 * include/grub/reed_solomon.h: New file.
7839 * util/grub-setup.c (setup): Handle Reed-Solomon.
7840
7841 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
7842
7843 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
7844 i386 and x86-64 definedness tests.
7845
7846 2010-09-27 Yves Blusseau <blusseau@zetam.org>
7847
7848 Fix generation of kernel_syms.lst
7849
7850 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
7851 ASM_PREFIX
7852
7853 2010-09-26 Robert Millan <rmh@gnu.org>
7854
7855 Support degraded ZFS arrays in "grub-probe -t device" resolution.
7856
7857 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
7858 the pool is an array of devices, iterate through it and return the
7859 first device that passes a stat() test (instead of blindly returning
7860 the first one).
7861
7862 2010-09-26 Robert Millan <rmh@gnu.org>
7863
7864 Build fixes for GNU/kFreeBSD.
7865
7866 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
7867 to programs that require ZFS conversion.
7868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
7869 kernels that don't have FLOPPY_MAJOR.
7870
7871 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7872
7873 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
7874
7875 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
7876
7877 Fix grub-emu build.
7878
7879 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
7880 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
7881 mdraid09 and mdraid1x.
7882
7883 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
7884
7885 Re-enable grub-extras.
7886
7887 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
7888 avoid confusing Automake. Run autogen only twice, once for the top
7889 level and once for grub-core. Add Makefile.util.def and
7890 Makefile.core.def from extra modules to the appropriate autogen
7891 invocations. If Makefile.common exists in an extra module, include
7892 it in both Makefile.util.am and grub-core/Makefile.core.am;
7893 similarly, include any Makefile.util.common file in Makefile.util.am
7894 and any Makefile.core.common file in grub-core/Makefile.core.am.
7895 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
7896 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
7897 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
7898 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
7899
7900 * gentpl.py (gvar_add): Turn GVARS into a set.
7901 (global_variable_initializers): Sort global variables on output.
7902 (vars_init): New function.
7903 (first_time): Likewise.
7904 (library): Ensure that non-global variable initialisations are
7905 emitted before the first time we emit code for a library block.
7906 Append to variables rather than setting them. Only emit
7907 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
7908 each conditional path.
7909 (program): installdir() emits an Autogen macro, so must be passed to
7910 var_add rather than gvar_add.
7911 (data): Likewise.
7912 (script): Likewise.
7913 (rules): New function, centralising handling for different target
7914 types. Set up Guile association lists for first_time and vars_init,
7915 and send most output to a diversion so that variable initialisations
7916 can be emitted first.
7917 (module_rules): Use new rules function.
7918 (kernel_rules): Likewise.
7919 (image_rules): Likewise.
7920 (library_rules): Likewise.
7921 (program_rules): Likewise.
7922 (script_rules): Likewise.
7923 (data_rules): Likewise.
7924
7925 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
7926
7927 * .bzrignore: Add contrib and grub-core/contrib. Remove
7928 grub-core/Makefile.gcry.am.
7929
7930 2010-09-24 Yves Blusseau <blusseau@zetam.org>
7931
7932 * grub-core/lib/LzFind.c: Add missing include.
7933 * grub-core/lib/LzmaEnc.c: Likewise.
7934 * grub-core/script/lexer.c: Likewise.
7935 * grub-core/script/yylex.l: Likewise.
7936 * util/grub-macho2img.c: Likewise.
7937 * util/grub-menulst2cfg.c: Likewise.
7938 * util/grub-mklayout.c: Likewise.
7939 * util/grub-mkpasswd-pbkdf2.c
7940 * util/grub-mkrelpath.c: Likewise.
7941 * util/resolve.c: Likewise.
7942
7943 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
7944
7945 * Makefile.util.def (example_unit_test): Add
7946 grub-core/gnulib/libgnu.a.
7947
7948 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
7949
7950 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
7951
7952 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 Support xz compression on yeeloong.
7955
7956 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
7957 * configure.ac: Check for LZMA.
7958 * grub-core/Makefile.core.def (xz_decompress): New target.
7959 (none_decompress): Likewise.
7960 * grub-core/boot/decompressor/minilib.c: New file.
7961 * grub-core/boot/decompressor/none.c: Likewise.
7962 * grub-core/boot/decompressor/xz.c: Likewise.
7963 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
7964 * grub-core/kern/mips/cache_flush.S: Likewise.
7965 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
7966 * grub-core/kern/mips/startup.S: Move first stage to ...
7967 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
7968 nomacro.
7969 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
7970 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
7971 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
7972 Allocate statically.
7973 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
7974 Allocate statically or use scratch. Don't check CRC32.
7975 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
7976 Allocate statically. Don't check CRC32.
7977 * include/grub/decompressor.h: New file.
7978 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
7979 Removed.
7980 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
7981 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
7982 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
7983 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
7984 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
7985 * util/grub-mkimage.c (grub_compression_t): New type.
7986 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
7987 (image_target_desc): New field default_compression.
7988 (image_targets): Adjust yeeloong targets.
7989 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
7990 (compress_kernel): New parameter comp.
7991 (generate_image): Likewise. Handle new compression case.
7992 (options): New option --compression
7993 (help): Likewise.
7994 (main): Handle new option.
7995
7996 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
7997
7998 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
7999
8000 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8001
8002 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8003 typo in __i386__ conditional.
8004
8005 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8006
8007 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8008 include.
8009
8010 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 Implement EFI and ACPI multiboot2 extensions.
8013
8014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8015 new tags as supported.
8016 (acpiv2_size): New function.
8017 (grub_multiboot_get_mbi_size): Take new tags into account.
8018 (grub_multiboot_make_mbi): Add new tags.
8019 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8020
8021 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8022
8023 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8024 Added missing configuration of USB device.
8025
8026 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8027
8028 * grub-core/normal/menu_entry.c (run): Make sure we always return
8029 a value.
8030
8031 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8032
8033 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8034 NumberOfPages is UINT64 according to the UEFI specification, not
8035 UINTN. Fix printf format.
8036
8037 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8038
8039 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8040 `err' to grub_usb_err_t.
8041 Reported and tested by: KESHAV P.R.
8042
8043 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8044
8045 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8046 tpart non-const, so that we can assign to it. (Since this is a
8047 typedef, the constness refers to the pointer rather than what it
8048 points to.)
8049
8050 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8051
8052 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8053 $(top_srcdir)/grub-core/gnulib as well as
8054 $(top_builddir)/grub-core/gnulib.
8055 Reported by: KESHAV P.R.
8056
8057 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8058
8059 * util/grub-install.in: Fix the bootloader ID option to be
8060 consistently --bootloader-id, not --bootloader_id.
8061 Reported by: KESHAV P.R.
8062
8063 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8064
8065 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8066 check hash checksum." consistently translatable.
8067
8068 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8069
8070 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8071 $(top_builddir).
8072
8073 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8074
8075 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8076 (GRUB_MOD_INIT): Register sha1sum command.
8077 (GRUB_MOD_FINI): Unregister sha1sum command.
8078
8079 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8080
8081 Keep boot and grub directory names in sync with utils scripts
8082
8083 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8084 * config.h.in: Add previous macros.
8085 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8086 * util/grub-install.in: Use $bootdir and $grubdir variables.
8087
8088 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8089
8090 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8091 convert partition names to disk names if the new `convert' parameter
8092 is set.
8093 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8094 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8095 disk in its own right. This can happen with Xen disk images.
8096
8097 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8098
8099 * util/grub-editenv.c: Update strings to avoid warnings when generating
8100 grub.pot file.
8101 * util/grub-setup.c: Likewise.
8102
8103 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * configure.ac: Change version to 1.99~beta0.
8106
8107 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8110 Add BADRAM.
8111 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8112 Likewise.
8113 * include/multiboot.h: Resynced with specification.
8114 * include/multiboot2.h: Likewise.
8115
8116 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8117
8118 Fix po directory handling.
8119
8120 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8121 * grub-core/gnulib/Makefile.am: Import gettext module.
8122 * m4/gnulib-cache.m4: Likewise.
8123 * m4/gnulib-comp.m4: Likewise.
8124 * m4/gettext.m4: New file, from gnulib.
8125 * m4/glibc2.m4: Likewise.
8126 * m4/iconv.m4: Likewise.
8127 * m4/intdiv0.m4: Likewise.
8128 * m4/intl.m4: Likewise.
8129 * m4/intldir.m4: Likewise.
8130 * m4/intlmacosx.m4: Likewise.
8131 * m4/intmax.m4: Likewise.
8132 * m4/inttypes-pri.m4: Likewise.
8133 * m4/lcmessage.m4: Likewise.
8134 * m4/lib-ld.m4: Likewise.
8135 * m4/lib-link.m4: Likewise.
8136 * m4/lib-prefix.m4: Likewise.
8137 * m4/lock.m4: Likewise.
8138 * m4/nls.m4: Likewise.
8139 * m4/po.m4: Likewise.
8140 * m4/printf-posix.m4: Likewise.
8141 * m4/progtest.m4: Likewise.
8142 * m4/threadlib.m4: Likewise.
8143 * m4/uintmax_t.m4: Likewise.
8144 * m4/visibility.m4: Likewise.
8145 * po/Makefile.am: Remove.
8146 * po/Makefile.in.in: New file, from gettext.
8147 ($(DOMAIN).pot-update): Support POTFILES-shell.
8148 * po/Makevars: New file.
8149 * po/POTFILES-shell: Rename to ...
8150 * po/POTFILES-shell.in: ... this. Update.
8151 * po/POTFILES: Rename to ...
8152 * po/POTFILES.in: ... this. Update.
8153 * po/Rules-quot: New file, from gettext.
8154 * po/boldquot.sed: Likewise.
8155 * po/en@boldquot.header: Likewise.
8156 * po/en@quot.header: Likewise.
8157 * po/insert-header.sin: Likewise.
8158 * po/quot.sed: Likewise.
8159 * po/remove-potcdate.sin: Likewise.
8160
8161 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8164
8165 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * util/grub.d/20_linux_xen.in: Use submenus.
8168
8169 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 Support submenus.
8172
8173 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8174 parameter submenu. All users updated.
8175 * grub-core/normal/main.c (free_menu): Rename to ...
8176 (grub_normal_free_menu): ... this. Made global.
8177 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8178 if requested.
8179 * grub-core/normal/menu_entry.c (screen): New field submenu.
8180 (make_screen): Set submenu.
8181 (run): Open new context if requested.
8182 * include/grub/menu.h (grub_menu_entry): New field submenu.
8183 * include/grub/normal.h (grub_normal_free_menu): New proto.
8184
8185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 Menu entries extractor.
8188
8189 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8190 variants.
8191 (GRUB_MOD_INIT): Register new variants.
8192 (GRUB_MOD_FINI): Unregister new variants.
8193 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8194 into grub_cmd_legacy_source.
8195 (grub_cmd_legacy_source): Implement extractor variants.
8196 (GRUB_MOD_INIT): Register new variants.
8197 (GRUB_MOD_FINI): Unregister new variants.
8198 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8199 as an extractor.
8200 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8201 search as an extractor.
8202 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8203 test as an extractor.
8204 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8205 as an extractor.
8206 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8207 (grub_env_new_context): New function.
8208 (grub_env_context_open): Likewise.
8209 (grub_env_extractor_open): Likewise.
8210 (grub_env_extractor_close): Likewise.
8211 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8212 grub_extractor_level.
8213 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8214 * include/grub/env.h (grub_env_extractor_open): New proto.
8215 (grub_env_extractor_close): Likewise.
8216 * include/grub/normal.h (grub_extractor_level): New external variable.
8217
8218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 Make cutmem accept a region specification.
8221 Suggested by: Samuel Thibault
8222
8223 * grub-core/mmap/mmap.c (parsemem): New function.
8224 (grub_cmd_cutmem): Handle new arguments.
8225
8226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8227
8228 New command cutmem.
8229
8230 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8231 (GRUB_MOD_INIT): Register new command.
8232 (GRUB_MOD_FINI): Unregister new command.
8233
8234 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 Support some annoying BSD and Minix subpartitions.
8237
8238 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8239 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8240 Properly handle concatenation.
8241 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8242 * grub-core/normal/completion.c (iterate_partition): Likewise.
8243 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8244 contain partition. All users updated.
8245 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8246 struct.
8247 (grub_openbsdlabel_partition_map): Likewise.
8248 (bsdlabel_partition_map_iterate): Rename to ..
8249 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8250 (bsdlabel_partition_map_iterate): New function.
8251 (netopenbsdlabel_partition_map_iterate): Likewise.
8252 (netbsdlabel_partition_map_iterate): Likewise.
8253 (openbsdlabel_partition_map_iterate): Likewise.
8254 (GRUB_MOD_INIT): Register new partmaps.
8255 (GRUB_MOD_FINI): Unregister new partmaps.
8256 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8257 (grub_partition_msdos_iterate): ... this. All users updated.
8258 Don't support embedding other than in a minix partition.
8259 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8260 proto.
8261 * include/grub/partition.h (grub_partition): New field msdostype.
8262 * util/grub-install.in: Handle openbsd and netbsd types being in
8263 part_bsd module.
8264
8265 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8268
8269 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8270 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8271 (mdraid09): ... this.
8272 (mdraid1x): New module.
8273 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8274 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8275
8276 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8279 vsprintf.
8280
8281 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8282
8283 * grub-core/commands/efi/lsefimmap.c: Correct header.
8284 * NEWS: Update.
8285
8286 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8287
8288 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8289 as printf format strings; the translations might contain '%' which
8290 could cause a crash.
8291 (main): Likewise.
8292 * util/grub-fstest.c (argp_parser): Likewise.
8293 * util/grub-setup.c (argp_parser): Likewise.
8294 (main): Likewise.
8295
8296 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8297
8298 Use argp in grub-fstest.
8299
8300 * util/grub-fstest.c: Don't include getopt.h.
8301 Include argp.h.
8302 (root): New variable.
8303 (args_count): Likewise.
8304 (nparm): Likewise.
8305 (num_disks): Likewise.
8306 (images): Likewise.
8307 (cmd): Likewise.
8308 (debug_str): Likewise.
8309 (args): Likewise.
8310 (options): Transformed to argp.
8311 (usage): Removed.
8312 (main): Split argument parsing into ...
8313 (argp_parser): ... this. Changed to argp format.
8314 (argp): New variable.
8315 (main): Use argp_parse.
8316
8317 2010-09-20 Tristan Gingold <gingold@free.fr>
8318 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8319 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8320
8321 * grub-core/commands/efi/lsefimmap.c: New file.
8322 * grub-core/Makefile.core.def (lsefimmap): New module.
8323 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8324
8325 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 Pause the execution (10s max) if any errors are displayed so the user
8328 has a chance to see them.
8329
8330 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
8331 (grub_print_error): Increment grub_err_printed_errors.
8332 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
8333 execution if any errors were displayed.
8334 (show_menu): Remove old code for pause.
8335 * grub-core/normal/menu_entry.c (run): Likewise.
8336 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
8337 users updated.
8338 (grub_normal_get_char_counter): Likewise.
8339 * include/grub/err.h (grub_err_printed_errors): New external variable.
8340 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
8341
8342 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 Support multiboot VBE info.
8345
8346 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8347 Take VBE info into account.
8348 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
8349 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8350 Call fill_vbe_info when appropriate.
8351 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
8352 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
8353 as supported.
8354 (grub_multiboot_get_mbi_size): Take new tags into account.
8355 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
8356 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
8357 Call fill_vbe_tag when appropriate.
8358 (grub_multiboot_make_mbi): Properly align tags.
8359 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
8360 function.
8361 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
8362 proto.
8363 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
8364
8365 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 Suport manual terminal geometry specification.
8368
8369 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
8370 Save state in grub_ofconsole_terminfo_output.
8371 (grub_ofconsole_term): Use grub_terminfo_getwh.
8372 (grub_ofconsole_getwh): Removed.
8373 * grub-core/term/serial.c (grub_serial_getwh): Removed.
8374 (grub_serial_term): Use grub_terminfo_getwh.
8375 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
8376 (options): New struct.
8377 (OPTION_*): New enum.
8378 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
8379 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
8380 width and height.
8381 (grub_terminfo_getwh): New proto.
8382 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
8383
8384 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 Handle legacy "terminal" command.
8387
8388 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
8389 and FLAG_TERMINAL.
8390 (legacy_commands): Add terminal and title.
8391 (grub_legacy_parse): Handle terminal. Simplify title handling.
8392
8393 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8394
8395 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
8396 parameters overflow.
8397
8398 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8399
8400 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
8401 widthspec.h.
8402
8403 * docs/grub.texi (Shell-like scripting): Document `!'.
8404 (Network): Simplify using new i386-pc-pxe format. Mention
8405 grub-mknetdir.
8406
8407 * NEWS: Update.
8408
8409 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8410
8411 * Makefile.am (SUBDIRS): Restore "."; it's important to force
8412 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
8413 when needed.
8414
8415 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8416
8417 * grub-core/commands/efi/lsefisystab.c: Correct header.
8418 * grub-core/commands/efi/lssal.c: Likewise.
8419 * grub-core/commands/testload.c: Likewise.
8420
8421 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8422
8423 * util/grub-mkrescue.in: Add explicit root argument to --set to
8424 prevent the UUID being interpreted as an argument to --set (matches
8425 previous change to prepare_grub_to_access_device).
8426
8427 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8428
8429 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
8430 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
8431 the verbosity of later #ifs.
8432 (find_partition_start): Define this function on FreeBSD too.
8433 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
8434 function.
8435 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
8436 on FreeBSD.
8437
8438 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8439
8440 * util/grub-editenv.c: Use argp instead of getopt.
8441
8442 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8443
8444 * util/grub-setup.c: Use argp instead of getopt.
8445
8446 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8447
8448 Use gnulib-tool to create gnulib source files.
8449
8450 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
8451 grub-core/gnulib directories
8452 * .bzignore: Add **/.deps and autogenerated gnulib files
8453 * configure.ac: Assign auxiliary directory to build-aux, add invocation
8454 of gnulib macros, add grub-core/gnulib/Makefile
8455 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
8456 include m4 directory to aclocal.
8457 * Makefile.util.def: Remove direct compilation of gnulib source files
8458 and use the new grub-core/gnulib/libgnu.a.
8459 * build-aux/config.rpath: move config.rpath from top directory to
8460 build-aux
8461 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
8462 in gnulib headers
8463 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
8464 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
8465 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
8466 header.
8467 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
8468 string.
8469
8470 2010-09-20 Yves Blusseau <blusseau@zetam.org>
8471
8472 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
8473 grub-core/genmod.sh and grub-core/gensyminfo.sh
8474
8475 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
8476
8477 Add a test for echo command options.
8478
8479 * tests/grub_cmd_echo.in: New test.
8480 * Makefile.util.def: Rules for new test.
8481
8482 2010-09-20 Szymon Janc <szymon@janc.net.pl>
8483
8484 Remove crc.mod and move crc command to hashsum.mod.
8485 Remove lib/crc.c - users updated to use gcrypt implementation.
8486
8487 * grub-core/commands/crc.c: Removed.
8488 * grub-core/Makefile.core.def (crc): Module removed.
8489 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
8490 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
8491 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
8492 * grub-core/lib/crc.c: Removed.
8493 * include/grub/lib/crc.h: Removed.
8494 * Makefile.util.def (crc): Remove lib/crc.c
8495 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
8496 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
8497 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
8498 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
8499 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
8500 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
8501
8502 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8503
8504 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
8505
8506 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 Split config.h for util and core.
8509
8510 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
8511 (ADDR32): Likewise.
8512 (DATA32): Likewise.
8513 (BSS_START_SYMBOL): Likewise.
8514 (END_SYMBOL): Likewise.
8515 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
8516 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
8517 * config.h.in: New file.
8518 * configure.ac: Use config-util.h as config define file.
8519 Rename MACHINE into GRUB_MACHINE. All users updated.
8520 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
8521 updated.
8522 (NESTED_FUNC_ATTR): Likewise.
8523 Substitue new variables.
8524 (COND_HAVE_ASM_USCORE): New conditional.
8525 * grub-core/Makefile.am (ASM_PREFIX): New variable.
8526 (kernel_syms.lst): Use ASM_PREFIX.
8527 * grub-core/kern/emu/console.c: Include config-util.h.
8528 * grub-core/kern/emu/misc.c: Likewise.
8529 * grub-core/kern/emu/mm.c: Likewise.
8530 * include/grub/emu/misc.h: Likewise.
8531 * include/grub/libgcc.h: Likewise.
8532
8533 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
8536 constants usage.
8537 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
8538 Fix GRUB_TERM_KEY_* constants usage.
8539 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
8540
8541 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
8544 print pointer.
8545 * grub-core/bus/usb/uhci.c: Remove empty define.
8546 (grub_uhci_check_transfer): Add missing cast.
8547 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
8548 print pointer.
8549 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
8550 PRIuGRUB_SIZE.
8551 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
8552
8553 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * grub-core/Makefile.core.def (legacycfg): Add
8556 lib/i386/pc/vesa_modes_table.c on emu.
8557
8558 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8559
8560 Reduce number of temporary files generated by build system.
8561
8562 * grub-core/gencmdlist.sh: Removed.
8563 * grub-core/genfslist.sh: Removed.
8564 * grub-core/genhandlerlist.sh: Removed.
8565 * grub-core/genmodsrc.sh: Removed.
8566 * grub-core/genpartmaplist.sh: Removed.
8567 * grub-core/genparttoollist.sh: Removed.
8568 * grub-core/gentermiinallist.sh: Removed.
8569 * grub-core/genvideolist.sh: Removed.
8570
8571 * grub-core/genmod.sh.in: New file.
8572 * grub-core/gensyminfo.sh.in: New file.
8573
8574 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
8575 * conf/Makefile.extra-dist: Update with new files.
8576 * gentpl.py: Remove rules related to unnecessary temporary files.
8577 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
8578 and und-* files.
8579 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
8580 genmod.sh scripts.
8581 * grub-core/bus/usb/uhci.c: Remove empty #define.
8582 * grub-core/genmoddep.awk: Updated with new syminfo format.
8583 * util/bash-completion.d/Makefile.am: Add config.log to
8584 CLEANFILES.
8585
8586 2010-09-19 Yves Blusseau <blusseau@zetam.org>
8587
8588 * Makefile.util.def: Add forgotten $(LIBINTL) library.
8589
8590 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
8591
8592 * util/grub-mkconfig.in: Check the config script for syntax errors
8593 before saving.
8594
8595 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
8596 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * Makefile.util.def (grub-install): Use util/grub-install.in on all
8599 platforms.
8600 * util/grub-install.in: Add EFI and IEEE1275 support.
8601 * util/i386/efi/grub-install.in: Removed.
8602 * util/ieee1275/grub-install.in: Likewise.
8603
8604 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
8607 (grub_cmd_cmosclean): Likewise.
8608 (GRUB_MOD_INIT): Register command cmosclean.
8609 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
8610 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
8611
8612 2010-09-18 Carles Pina i Estany <carles@pina.cat>
8613 2010-09-18 Aleš Nesrsta <starous@volny.cz>
8614 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 Add keyboard layouts support.
8617
8618 * Makefile.util.def (grub-mklayout): New file.
8619 (grub-kbdcomp): New script.
8620 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
8621 Add keyboard_layouts.h.
8622 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
8623 commands/boot.c on yeeloong.
8624 (keylayouts): New module.
8625 * grub-core/bus/usb/ohci.c
8626 * grub-core/bus/usb/uhci.c
8627 * grub-core/bus/usb/usbhub.c (rescan): New variable.
8628 (grub_usb_add_hub): Poll interrupt pipe for device handling.
8629 (attach_root_port): Likewise.
8630 (poll_nonroot_hub): Likewise.
8631 (grub_usb_poll_devices): Likewise.
8632 (detach_device): Close transfer.
8633 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
8634 function.
8635 (grub_usb_bulk_setup_readwrite): Likewise.
8636 (grub_usb_bulk_finish_readwrite): Likewise.
8637 * grub-core/commands/keylayouts.c: New file.
8638 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
8639 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
8640 aliases.
8641 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
8642 support scancode 2.
8643 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
8644 * include/grub/keyboard_layouts.h: New file.
8645 * util/grub-mklayout.c: New file.
8646 * util/grub-kbdcomp.in: Likewise.
8647
8648 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 Unify memory types.
8651
8652 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
8653 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
8654 types.
8655 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
8656 (grub_upper_mem): Likewise.
8657 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
8658 * include/grub/memory.h (grub_memory_type_t): New enum.
8659 All users updated.
8660
8661 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/Makefile.core.def (lsapm): New module.
8664 * grub-core/commands/i386/pc/lsapm.c: New file.
8665 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
8666 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
8667 Likewise.
8668 * include/grub/i386/pc/apm.h: New file.
8669 * include/multiboot.h (multiboot_apm_info): New struct.
8670
8671 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 GRUB-legacy configuration file support.
8674
8675 * Makefile.util.def (grub-menulst2cfg): New util.
8676 * docs/man/grub-menulst2cfg.h2m: New file.
8677 * grub-core/Makefile.core.def (legacycfg): New module.
8678 * grub-core/commands/legacycfg.c: New file.
8679 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
8680 (grub_normal_add_menu_entry): ... this.
8681 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
8682 (grub_normal_set_password): ...this.
8683 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
8684 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
8685 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
8686 * grub-core/lib/legacy_parse.c: New file.
8687 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
8688 * include/grub/i386/pc/vesa_modes_table.h: New file.
8689 * include/grub/legacy_parse.h: Likewise.
8690 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
8691 * util/grub-menulst2cfg.c: New file.
8692
8693 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8694
8695 * grub-core/kern/emu/hostdisk.c
8696 (convert_system_partition_to_system_disk): Initialise node.
8697
8698 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8699
8700 * grub-core/kern/emu/hostdisk.c
8701 (convert_system_partition_to_system_disk): Fix devmapper memory pool
8702 leak.
8703 Reported and based on patch by: Modestas Vainius.
8704
8705 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
8706
8707 Fix DM-RAID probing with recent versions of device-mapper udev
8708 rules.
8709
8710 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
8711 canonicalise device paths under /dev/mapper/.
8712 (convert_system_partition_to_system_disk): Compare the
8713 uncanonicalised path to /dev/mapper/ rather than the canonicalised
8714 path, since device nodes under /dev/mapper/ are often symlinks.
8715
8716 2010-09-17 Yves Blusseau <blusseau@zetam.org>
8717
8718 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
8719
8720 2010-09-16 Yves Blusseau <blusseau@zetam.org>
8721
8722 * configure.ac: Avoid some annoying error messages if freetype-config
8723 program is not found.
8724
8725 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8726
8727 Support RAID on virtio devices, and others.
8728
8729 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
8730 Rename to ...
8731 [__MINGW32__] (grub_find_device): ... this.
8732 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
8733 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
8734 reasonable default if dir is NULL.
8735 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
8736 ...
8737 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
8738 (grub_guess_root_device): Update callers.
8739 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
8740
8741 * util/raid.c (grub_util_getdiskname): Remove.
8742 (grub_util_raid_getmembers): Use grub_find_device rather than
8743 grub_util_getdiskname.
8744
8745 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8746
8747 * docs/grub.texi (serial): Remove obsolete comment about GRUB
8748 needing to be compiled with serial support.
8749 (ls): Indicate that multiple files are accepted.
8750 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
8751 indicate that multiple files are accepted.
8752
8753 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
8754
8755 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
8756 libgrub_a_init.c, and util/bash-completion.d/grub.
8757
8758 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * util/grub-setup.c (setup): Fix incorrect container semantics.
8761
8762 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8763
8764 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
8765 misusage.
8766 Reported by: J. Nick Terry
8767
8768 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 Move embedding routines to partmap sources files.
8771
8772 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
8773 [GRUB_UTIL]: New variable.
8774 (gpt_partition_map_iterate): Set part.parent.
8775 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
8776 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
8777 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
8778 New function.
8779 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
8780 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
8781 (grub_partition_map) [GRUB_UTIL]: New field embed.
8782 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
8783 (setup): Use ->embed.
8784
8785 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
8788 function.
8789 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
8790 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
8791
8792 2010-09-15 Yves Blusseau <blusseau@zetam.org>
8793
8794 Add function to get completions from usage.
8795
8796 * util/bash-completion.d/grub-completion.bash.in: Add function to get
8797 completions from usage. Use LC_ALL=C to get options properly.
8798
8799 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * grub-core/gnulib/basename-lgpl.c: Imported.
8802 * grub-core/gnulib/basename.c: Likewise.
8803 * grub-core/gnulib/dirname-lgpl.c: Likewise.
8804 * grub-core/gnulib/dirname.c: Likewise.
8805 * grub-core/gnulib/dirname.h: Likewise.
8806 * grub-core/gnulib/stripslash.c: Likewise.
8807
8808 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 * grub-core/gnulib/error.c: Resynced.
8811 * grub-core/gnulib/getopt.c: Likewise.
8812 * grub-core/gnulib/getopt_int.h: Likewise.
8813 * grub-core/gnulib/regex.h: Likewise.
8814 * grub-core/gnulib/regex_internal.c: Likewise.
8815 * grub-core/gnulib/regex_internal.h: Likewise.
8816
8817 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8818
8819 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
8820 CRC calculations and validity checks.
8821 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
8822 calculations.
8823
8824 2010-09-15 Szymon Janc <szymon@janc.net.pl>
8825
8826 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
8827
8828 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 Fix incorrect echo options handling.
8831 Reported by: Yves Blusseau.
8832
8833 * include/grub/command.h (grub_command_flags_t): New flags
8834 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
8835 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
8836 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
8837
8838 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
8841 users updated.
8842 (GRUB_COMMAND_FLAG_MENU): Likewise.
8843 (GRUB_COMMAND_FLAG_BOTH): Likewise.
8844 (GRUB_COMMAND_FLAG_TITLE): Removed.
8845 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
8846 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
8847 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
8848 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
8849 (grub_command_flags_t): New enum. All users updated.
8850
8851 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
8852
8853 Fix solaris compilation.
8854
8855 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
8856 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
8857 (grub-emu-list): Likewise.
8858
8859 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 Remove deprecated root command.
8862
8863 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
8864 updated.
8865
8866 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 * util/i386/pc/grub-setup.c: Merge this ...
8869 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
8870 * util/grub-setup.c: ... into this.
8871 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
8872 New struct.
8873
8874 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
8877 possible.
8878
8879 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8880
8881 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
8882 allocate p.
8883
8884 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8885
8886 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8887 explicit root argument to set to prevent UUID to be interpreted as
8888 argument to set.
8889
8890 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
8893
8894 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 Don't export grub_gate_a20.
8897
8898 * grub-core/kern/i386/pc/init.c: Remove leftovers.
8899 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
8900 to ...
8901 (grub_gate_a20): ... this. All users updated.
8902 * include/grub/i386/pc/init.h: Removed. All users updated.
8903
8904 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 Create euro.pf2 which supports most European languages.
8907
8908 * Makefile.am (grubdata_DATA): Add euro.pf2.
8909 (euro.pf2): New target.
8910 (CLEANFILES): Add euro.pf2.
8911
8912 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * configure.ac: Disable emu-usb by default to prevent inadvertent
8915 device takeover.
8916
8917 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 Disable usbserial on grub-emu since our libusb code isn't good enough
8920 yet.
8921
8922 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
8923 (usbserial_pl2303): Likewise.
8924 (usbserial_ftdi): Likewise.
8925
8926 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * include/grub/disk.h (grub_disk): Remove has_partitions.
8929 All users updated.
8930 * disk/loopback.c (grub_loopback): Remove has_partitions.
8931 All users updated.
8932 (options): Remove partitions. All users updated.
8933 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
8934 * util/i386/pc/grub-setup.c (setup): copy partition table only when
8935 actual partition table is found.
8936
8937 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 Remove readability checks (too many false negatives).
8940
8941 * util/grub-install.in: Remove readability checks.
8942 * util/grub-mkconfig.in: Likewise.
8943 * util/grub.d/10_hurd.in: Likewise.
8944 * util/grub.d/10_kfreebsd.in: Likewise.
8945 * util/grub.d/10_linux.in: Likewise.
8946 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
8947 way.
8948
8949 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 Enable acpi shutdown on all ACPI platforms.
8952
8953 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
8954 on coreboo, multiboot and EFI.
8955 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
8956 (grub_acpi_halt): Likewise.
8957 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
8958 (grub_cmd_halt): Don't call grub_acpi_halt directly.
8959 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
8960 * grub-core/lib/i386/halt.c (grub_halt)
8961 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
8962
8963 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
8966 context.
8967
8968 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/video/efi_gop.c: Fix over-80-chars line.
8971 * grub-core/video/efi_uga.c: Likewise.
8972
8973 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 Filter devaliases and never open same device twice.
8976
8977 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
8978 (last_ihandle): Likewise.
8979 (ofdisk_hash_ent): New member shortest.
8980 (ofdisk_hash_add): Add canonical path too.
8981 (scan): New function.
8982 (grub_ofdisk_iterate): Iterate over hashed entries.
8983 (compute_dev_path): Don't add :0.
8984 (grub_ofdisk_open): Don't really open the disk.
8985 (grub_ofdisk_close): Avoid closing unrelated disk.
8986 (grub_ofdisk_read): Implement reopen logic.
8987 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
8988 New function.
8989 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
8990 New proto.
8991
8992 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 Fix sparc64.
8995
8996 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
8997 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
8998 right address. Add sparc64_ieee1275_ldflags.
8999 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9000 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9001 to grub_host_to_target_addr
9002 (load_image): Likewise.
9003
9004 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/normal/completion.c (complete_file): Handle device
9007 containing slash.
9008 Fix based on patch by Doug Nazar.
9009
9010 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9011
9012 grub-mknetdir script.
9013
9014 * Makefile.util.def (grub-mknetdir): New module.
9015 * tests/util/grub-shell.in: Support boot=net
9016 * util/grub-mknetdir.in: New file.
9017
9018 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 videoinfo on non-vbe.
9021
9022 * grub-core/Makefile.core.def (vbeinfo): Removed.
9023 (vbetest): Removed.
9024 (videoinfo): New module.
9025 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9026 * grub-core/commands/i386/pc/vbetest.c: Removed.
9027 * grub-core/commands/videoinfo.c: New file.
9028 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9029 specification.
9030 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9031 as vbetest.
9032 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9033 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9034 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9035 mode_number. New parameter mode. All users updated.
9036 (grub_video_gop_iterate): New function.
9037 (grub_video_efi_gop): New member iterate.
9038 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9039 (grub_vbe_set_video_mode): Remove setting useless fields.
9040 (vbe2videoinfo): New function.
9041 (grub_video_vbe_iterate): Likewise.
9042 (grub_video_vbe_setup): Use vbe2videoinfo.
9043 (grub_video_vbe_print_adapter_specific_info): New function.
9044 (grub_video_vbe_adapter): New fields iterate and
9045 print_adapter_specific_info.
9046 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9047 All users updated.
9048 (grub_video_mode_info): New field mode_number.
9049 (grub_video_adapter): New fields iterate and
9050 print_adapter_specific_info.
9051
9052 2010-09-13 Tristan Gingold <gingold@free.fr>
9053 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9054 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * grub-core/commands/efi/lsefisystab.c: New file.
9057 * grub-core/commands/efi/lssal.c: Likewise.
9058 * grub-core/Makefile.core.def (lsacpi): New module.
9059 (lsefisystab): Likewise.
9060 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9061 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9062 (grub_efi_sal_system_table): New struct.
9063 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9064 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9065 (grub_efi_sal_system_table_platform_features): Likewise.
9066 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9067 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9068 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9069 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9070
9071 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 Support explicit user claim that a device is BIOS-visible.
9074
9075 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9076 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9077 * grub-core/kern/emu/hostdisk.c
9078 (convert_system_partition_to_system_disk): Support mdX.
9079 (find_system_device): New parameter add. All users updated.
9080 (grub_util_biosdisk_is_present): New function.
9081 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9082 proto.
9083
9084 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9085
9086 Search hints support.
9087
9088 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9089 All users updated.
9090
9091 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9092
9093 Bash completion script for util commands
9094
9095 * Makefile.am: Add util/bash-completion.d directory
9096 * configure.ac: Likewise.
9097 * util/bash-completion.d/Makefile.am: New file.
9098 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9099
9100 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9103 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9104 Reported by: Yves Blusseau.
9105
9106 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9109 partition size and offset.
9110
9111 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9114
9115 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9118
9119 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9122 (grub_xvasprintf): Likewise.
9123
9124 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9127
9128 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9131 args ending with NULL.
9132
9133 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9136 pointer.
9137
9138 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9139
9140 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9141
9142 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 Shutdown using ACPI.
9145
9146 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9147 * grub-core/commands/acpihalt.c: New file.
9148 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9149 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9150 (grub_acpi_halt): New proto.
9151 (GRUB_ACPI_SLP_EN): New const.
9152 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9153 (GRUB_ACPI_OPCODE_*): New enum.
9154 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9155
9156 2010-09-11 Tristan Gingold <gingold@free.fr>
9157 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9158 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * commands/lsacpi.c: New file.
9161 * grub-core/Makefile.core.def (lsacpi): New module.
9162 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9163 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9164 (grub_acpi_madt_entry_header): New struct.
9165 (grub_acpi_madt): Likewise.
9166 (grub_acpi_madt_entry_interrupt_override): Likewise.
9167 (grub_acpi_madt_entry_sapic): Likewise.
9168 (grub_acpi_madt_entry_lsapic): Likewise.
9169 (grub_acpi_madt_entry_platform_int_source): Likewise.
9170 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9171 (PRIuGRUB_UINT32_T): Likewise.
9172 (PRIxGRUB_UINT64_T): Likewise.
9173
9174 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 Implement loading palette on ieee1275_fb.
9177
9178 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9179 (have_setcolors): Likewise.
9180 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9181 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9182 (grub_video_ieee1275_set_palette): Implement.
9183
9184 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9185 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9186
9187 * util/grub-install.in (grub_partition): New variable.
9188 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9189 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9190 Fixes a bug reported by Yves Blusseau.
9191
9192 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 Fix emu on mipsel.
9195
9196 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9197 =grub_cpu_flush_cache on all mips and not only yeeloong.
9198 * configure.ac (COND_mips): New conditional.
9199 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9200 platforms.
9201 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9202 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9203 [GRUB_LINKER_HAVE_INIT]: New function.
9204 (grub_emu_post_init): Likewise.
9205 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9206 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9207 * include/grub/cache.h (_mips): Include mips/cache.h.
9208 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9209 LVM and RAID prototypes.
9210 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9211 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9212 function.
9213
9214 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9215
9216 * util/grub-install.in: Don't try to verify core.img until after
9217 running grub-mkimage to create it.
9218
9219 2010-09-10 Robert Millan <rmh@gnu.org>
9220
9221 * util/grub.d/10_hurd.in: Add misc readability checks.
9222 * util/grub.d/10_kfreebsd.in: Likewise.
9223 * util/grub.d/10_linux.in: Likewise.
9224
9225 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9226
9227 * util/grub-install.in: ${imgext} won't be defined here until the
9228 install branch is merged. For the meantime, only verify core.img on
9229 i386-pc and sparc64-ieee1275 platforms.
9230
9231 2010-09-10 Robert Millan <rmh@gnu.org>
9232
9233 Solaris support in grub_find_zpool_from_dir(). Thanks
9234 Seth Goldberg for referring to getextmntent() facility.
9235
9236 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9237 `sys/mkdev.h'.
9238 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9239 `<sys/mnttab.h>'.
9240 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9241 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9242 method for finding zpool name.
9243
9244 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9245
9246 grub-fstest needs the host and hostfs modules while other utilities
9247 actively require those modules to be absent, so grub-fstest needs
9248 its own initialisation and finalisation code.
9249
9250 * Makefile.am (grub_fstest.pp): New target.
9251 (grub_fstest_init.lst): Likewise.
9252 (grub_fstest_init.c): Likewise.
9253 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9254
9255 2010-09-10 Robert Millan <rmh@gnu.org>
9256
9257 * configure.ac: Check for `struct statfs.f_fstypename' and
9258 `struct statfs.f_mntfromname'.
9259
9260 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9261 kFreeBSD-specific code.
9262
9263 2010-09-10 Robert Millan <rmh@gnu.org>
9264
9265 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9266 on ZFS. Now non-main filesystems are supported as / too.
9267
9268 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9269
9270 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9271 and grub-core/disk/host.c to ...
9272 (grub-fstest): ... here. Having the host disk implementation
9273 present confuses grub-probe and other utility programs.
9274
9275 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9276 when writing to a file, not when writing to stdout.
9277
9278 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9279
9280 * tests/partmap_test.in: New test for partitions.
9281 * Makefile.util.def: Rules for new test.
9282
9283 2010-09-09 Robert Millan <rmh@gnu.org>
9284
9285 * util/grub-probe.c (probe): Fix a pair of unhandled error
9286 conditions.
9287
9288 2010-09-09 Robert Millan <rmh@gnu.org>
9289
9290 Basic Btrfs support (detection and UUID).
9291
9292 * grub-core/fs/btrfs.c: New file.
9293 * Makefile.util.def (library): Register btrfs.c.
9294 * grub-core/Makefile.core.def: Likewise.
9295
9296 2010-09-08 Robert Millan <rmh@gnu.org>
9297
9298 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9299 with (optional) parameters to specify device and relative path.
9300 * util/grub-install.in: Use is_path_readable_by_grub() to
9301 verify readability of a few critical files.
9302 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9303 verify readability of grub.cfg.new.
9304
9305 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 Split minix.mod into minix.mod and minix2.mod.
9308
9309 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9310 * grub-core/Makefile.core.def (minix2): New module.
9311 * grub-core/fs/minix.c: Use definitions instead of runtime version
9312 checking.
9313 * grub-core/fs/minix2.c: New file.
9314
9315 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9316
9317 Add new --boot-directory option to replace --root-directory
9318
9319 * util/grub-install.in: Add new --boot-directory option
9320 * util/grub-reboot.in: Likewise.
9321 * util/grub-set-default.in: Likewise.
9322
9323 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9324
9325 * util/grub-mkconfig.in: Use new variable.
9326
9327 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9328
9329 * configure.ac: Define some useful variables.
9330
9331 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9334 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
9335 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
9336 Use terminfo and don't use cursor-on/cursor-off unless it's known
9337 to work.
9338 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
9339 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
9340
9341 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
9342
9343 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
9344 starts with "(,", fill the drive containing the loaded image in
9345 between those two characters, but expect that a full partition
9346 specification including partition map names will follow.
9347
9348 2010-09-08 Robert Millan <rmh@gnu.org>
9349
9350 * configure.ac: Remove `--enable-grub-fstest' option.
9351 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
9352
9353 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
9354 `grub-fstest' instead of `grub-probe' for readability verification.
9355 * util/grub-probe.c (probe): Remove readability verification kludge.
9356
9357 2010-09-08 Robert Millan <rmh@gnu.org>
9358
9359 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
9360 initializing `GRUB_FS'.
9361
9362 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
9363
9364 Not command (!) support to GRUB script.
9365
9366 * tests/grub_script_not.in: New test.
9367 * Makefile.util.def: Rules for new test.
9368
9369 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
9370 ! command as a special case.
9371 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
9372
9373 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9374
9375 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
9376 grub_free.
9377
9378 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9379
9380 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
9381
9382 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
9383
9384 * docs/grub.texi (Shell-like scripting): Documentation for break,
9385 continue, shift and return commands.
9386
9387 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 Rename CD-ROM to cd on BIOS.
9390
9391 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
9392 "cd".
9393 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
9394
9395 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
9398 * util/grub-probe.c (main): Likewise.
9399 * util/i386/pc/grub-setup.c (main): Likewise.
9400 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9401 Reported and debugged by: alexxy
9402
9403 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
9406 diagnostic info.
9407
9408 2010-09-05 Jo Shields <directhex@apebox.org>
9409
9410 * util/grub.d/30_os-prober.in: Add missing classes.
9411
9412 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * docs/grub.texi (Theme file format): Document new position format.
9415
9416 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9417
9418 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
9419 a table. Use @code instead of @verbatim.
9420
9421 2010-09-05 Colin D Bennett <colin@gibibit.com>
9422
9423 Gfxmenu documentation.
9424
9425 * docs/grub.texi (Theme file format): New chapter.
9426
9427 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9428
9429 * grub-core/Makefile.core.def (xzio): New module.
9430 * grub-core/io/xzio.c: New file.
9431 * grub-core/lib/xzembed/xz.h: New file (from xembed).
9432 * grub-core/lib/xzembed/xz_config.h: Likewise.
9433 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
9434 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
9435 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
9436 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
9437 * grub-core/lib/xzembed/xz_private.h: Likewise.
9438 * grub-core/lib/xzembed/xz_stream.h: Likewise.
9439 * include/grub/file.h (grub_file_filter_id): New compression filter
9440 GRUB_FILE_FILTER_XZIO.
9441
9442 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
9445 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
9446 size.
9447
9448 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
9451 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
9452
9453 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 Uncompressed checksum support.
9456
9457 * grub-core/commands/hashsum.c (options): Add option --uncompress.
9458 (check_list): New parameter uncompress.
9459 (grub_cmd_hashsum): Handle --uncompress.
9460
9461 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 Reintroduce testload.
9464
9465 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
9466 from here ...
9467 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
9468 (GRUB_MOD_INIT): New function.
9469 (GRUB_MOD_FINI): Likewise.
9470 * grub-core/Makefile.core.def (testload): New module.
9471
9472 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9473
9474 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
9475 (uint8_t): New type.
9476 (uint16_t): Likewise.
9477 (uint32_t): Likewise.
9478 (uint64_t): Likewise.
9479
9480 2010-09-05 Szymon Janc <szymon@janc.net.pl>
9481
9482 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
9483
9484 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
9487 Made static.
9488 (grub_gzfile_open): Removed. All users updated.
9489 (GRUB_MOD_INIT): New function.
9490 (GRUB_MOD_FINI): Likewise.
9491 * grub-core/kern/file.c (grub_file_filters_all): New variable.
9492 (grub_file_filters_enabled): Likewise.
9493 (grub_file_open): Handle filters.
9494 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
9495 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
9496 * include/grub/file.h (grub_file_filter_id_t): New type.
9497 (grub_file_filter_t): Likewise.
9498 (grub_file_filters_all): New extern variable.
9499 (grub_file_filters_enabled): Likewise.
9500 (grub_file_filter_register): New inline function.
9501 (grub_file_filter_unregister): Likewise.
9502 (grub_file_filter_disable): Likewise.
9503 (grub_file_filter_disable_compression): Likewise.
9504 * include/grub/gzio.h: Removed.
9505
9506 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9507
9508 Filename expansion support for wildcards in GRUB script.
9509
9510 * tests/grub_script_expansion.in: New test.
9511 * Makefile.util.def: Rule for new test.
9512
9513 * grub-core/commands/wildcard.c: New file, implements filename
9514 expansion support for GRUB script.
9515 * grub-core/Makefile.core.def: Rule update for regexp.mod.
9516 * grub-core/script/argv.c: Cosmetic changes.
9517 * grub-core/script/execute.c (grub_script_arglist_to_argv):
9518 Refactored to perform wildcard expansion on arguments.
9519 * include/grub/script_sh.h (grub_script_wildcard_translator): New
9520 struct.
9521
9522 * tests/util/grub-shell.in: Fix quoting for read input.
9523
9524 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9525
9526 Support for updating environment variables with matched substrings
9527 of regexp.
9528
9529 * tests/grub_cmd_regexp.in: New test.
9530 * Makefile.util.def: Rule for new test.
9531
9532 * grub-core/commands/regexp.c: New option -s to update environment
9533 variables with regexp matches.
9534
9535 2010-09-04 Szymon Janc <szymon@janc.net.pl>
9536
9537 * include/grub/file.h (grub_file): New member not_easly_seekable.
9538 (grub_file_seekable): New inline function.
9539 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
9540 easily seekable.
9541 (grub_gzio_open): Set not_easly_seekable.
9542 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
9543 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
9544
9545 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9546
9547 Support for options to appear multiple times on cmdline.
9548
9549 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
9550 * grub-core/commands/extcmd.c: Support for repeatable option.
9551 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
9552 repeatable option support.
9553
9554 Refactor menuentry into a regular command.
9555
9556 * grub-core/commands/menuentry.c: New file, menuentry command
9557 implementation.
9558 * grub-core/Makefile.core.def: Rule update for normal.mod.
9559 * grub-core/normal/main.c: Moved menuentry creation to
9560 grub-core/commands/menuentry.c.
9561 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
9562 (grub_menu_execute_entry_real): Removed.
9563 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
9564 function.
9565 (grub_script_execute_menuentry): Removed.
9566 * grub-core/script/parser.y (menuentry): Removed.
9567 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
9568 * grub-core/script/yylex.l (menuentry): Removed.
9569 * include/grub/menu.h (grub_menu_init): New prototype.
9570 (grub_menu_fini): New prototype.
9571 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
9572 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
9573 (grub_script_execute_sourcecode): New prototype.
9574
9575 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9576
9577 "return" command for GRUB script functions.
9578
9579 * tests/grub_script_return.in: New test.
9580 * Makefile.util.def: Rules for new test.
9581
9582 * grub-core/script/execute.c (grub_script_return): New function.
9583 * grub-core/script/main.c: Register/unregister return commaond.
9584 * include/grub/script_sh.h (grub_script_return): New prototype.
9585
9586 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9587
9588 "setparams" command to update positional parameters.
9589
9590 * tests/grub_script_setparams.in: New test.
9591 * Makefile.util.def: Rules for new test.
9592
9593 * grub-core/script/argv.c (grub_script_argv_make): New function.
9594 * grub-core/script/execute.c (replace_scope): New function.
9595 (grub_script_setparams): New function.
9596 * grub-core/script/lexer.c: Remove unused variables.
9597 * grub-core/script/main.c: Register/unregister setparams command.
9598 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
9599 (grub_script_setparams): New prototype.
9600
9601 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9602
9603 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
9604 grub_free order.
9605
9606 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9607
9608 Support for passing block of commands as an argument to extcmds.
9609
9610 * Makefile.util.def: Rules for new test.
9611 * tests/grub_script_blockarg.in: New test.
9612 * grub-core/tests/test_blockarg.c: New file, block argument
9613 command used in the test.
9614
9615 * include/grub/extcmd.h (grub_extcmd_context): New struct.
9616 (grub_register_extcmd_prio): New function prototype.
9617 (grub_extcmd_dispatcher): New function prototype.
9618 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
9619 type.
9620 * include/grub/script_sh.h (struct grub_script): New members
9621 `children', `next_siblings' and `refcnt' for block arguments and
9622 reference counting.
9623 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
9624 (grub_script_arg): New member `script' for block argument.
9625 (grub_script_argv): New member `script' for block argument.
9626 (grub_parser_param): New member `scripts' for block argument.
9627 (grub_script_mem_free): New extern function prototype.
9628 (grub_script_ref): New function prototype.
9629 (grub_script_unref): New function prototype.
9630
9631 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
9632 extcmd form to support block arguments.
9633 * grub-core/script/argv.c: Block arguments support.
9634 * grub-core/script/execute.c: Likewise.
9635 * grub-core/script/lexer.c: Likewise.
9636 * grub-core/script/main.c: Likewise.
9637 * grub-core/script/script.c: Likewise.
9638 * grub-core/script/parser.y: Likewise. New `block' and `block0'
9639 non-terminals.
9640
9641 * grub-core/commands/acpi.c: Update extcmd implementations with
9642 grub_extcmd_context_t.
9643 * grub-core/commands/cat.c: Likewise.
9644 * grub-core/commands/echo.c: Likewise.
9645 * grub-core/commands/extcmd.c: Likewise.
9646 * grub-core/commands/hashsum.c: Likewise.
9647 * grub-core/commands/hdparm.c: Likewise.
9648 * grub-core/commands/help.c: Likewise.
9649 * grub-core/commands/hexdump.c: Likewise.
9650 * grub-core/commands/i386/cpuid.c: Likewise.
9651 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9652 * grub-core/commands/i386/pc/halt.c: Likewise.
9653 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9654 * grub-core/commands/iorw.c: Likewise.
9655 * grub-core/commands/keystatus.c: Likewise.
9656 * grub-core/commands/loadenv.c: Likewise.
9657 * grub-core/commands/ls.c: Likewise.
9658 * grub-core/commands/lspci.c: Likewise.
9659 * grub-core/commands/memrw.c: Likewise.
9660 * grub-core/commands/probe.c: Likewise.
9661 * grub-core/commands/search_wrap.c: Likewise.
9662 * grub-core/commands/setpci.c: Likewise.
9663 * grub-core/commands/sleep.c: Likewise.
9664 * grub-core/disk/loopback.c: Likewise.
9665 * grub-core/hello/hello.c: Likewise.
9666 * grub-core/loader/i386/bsd.c: Likewise.
9667 * grub-core/loader/xnu.c: Likewise.
9668 * grub-core/term/gfxterm.c: Likewise.
9669 * grub-core/term/serial.c: Likewise.
9670 * grub-core/tests/lib/functional_test.c: Likewise.
9671
9672 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
9673
9674 Multi-line quoted strings support.
9675
9676 * grub-core/script/lexer.c (append_newline): Removed.
9677 (grub_script_lexer_yywrap): Refactored.
9678 (grub_script_lexer_init): Refactored.
9679 * grub-core/script/yylex.l (yywrap): New function.
9680 (grub_lexer_resplit): New function.
9681 (grub_lexer_unput): New function.
9682 * include/grub/script_sh.h (grub_lexer_param): New members, unput
9683 and resplit.
9684 * tests/grub_script_echo1.in: Added few more testcases.
9685
9686 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/kern/misc.c: Don't add abort alias in utils.
9689 Reported by: echoline.
9690
9691 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
9692
9693 Add missing files into "make dist" tarball for other platforms.
9694
9695 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
9696 * conf/Makefile.common (dist_noinst_DATA): New variable.
9697 * conf/Makefile.extra-dist: Added missing make dist files.
9698 * grub-core/Makefile.core.def: Likewise.
9699
9700 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 Compress grub_prefix.
9703
9704 * grub-core/boot/i386/pc/lnxboot.S: Use
9705 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
9706 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
9707 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
9708 GRUB_MACHINE_PREFIX_END. All users updated.
9709 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
9710 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
9711 + 0x40.
9712 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9713 * util/grub-mkimage.c (image_target_desc): Change data_end to
9714 prefix_end. All users updated.
9715
9716 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
9719 value.
9720 (grub_openbsd_boot): Likewise.
9721 (grub_netbsd_boot): Likewise.
9722 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
9723 (grub_xnu_boot): Likewise.
9724
9725 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9726
9727 * configure.ac: Clean LIBS variable after tests.
9728
9729 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9730
9731 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
9732
9733 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
9736 echo if libdevmapper will be used.
9737
9738 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
9739
9740 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
9741 constant for the same file.
9742
9743 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
9746
9747 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9748
9749 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
9750 grub-core/*.pp.
9751
9752 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
9753
9754 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
9755 required by the boot protocol.
9756
9757 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
9758 ebp and edi members.
9759 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
9760 state.ebp and state.edi.
9761 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
9762 %ebp and %edi according to grub_relocator32_ebp and
9763 grub_relocator32_edi respectively.
9764 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
9765 and state.edi.
9766
9767 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 Add i386-pc-pxe image target.
9770
9771 * util/grub-mkimage.c (image_target_desc): New enum value
9772 IMAGE_I386_PC_PXE.
9773 (image_targets): New target i386-pc-pxe.
9774 (generate_image): Handle i386-pc-pxe image.
9775
9776 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 Fix grub_pxe_scan.
9779
9780 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
9781 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
9782 All users updated.
9783 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
9784 (grub_pxe_pxenv): Correct type.
9785
9786 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9787
9788 * NEWS: Document most of the important changes since 1.98.
9789
9790 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9791
9792 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
9793 generated manual page) a little.
9794
9795 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
9796
9797 * docs/grub.texi: Add myself as an author.
9798
9799 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * Makefile.util.def (libgrub.a): Add missing sunpc.
9802 Reported by: Seth Goldberg.
9803
9804 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 Interrupt wrapping and code simplifications.
9807
9808 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
9809 x86_noieee1275 which are functionaly equivalent in this case.
9810 (grub-install): Make source on each platform explicit. Enable on
9811 all noemu.
9812 * gentpl.py (x86_efi_pc): Removed group.
9813 (x86_noefi): Likewise.
9814 (i386_noefi): Likewise.
9815 (x86_noieee1275): Likewise.
9816 (i386_noieee1275): Likewise.
9817 (i386_noefi_noieee1275): Likewise.
9818 (i386_pc_qemu_coreboot): Likewise.
9819 (i386_coreboot_multiboot): Likewise.
9820 (i386_pc_coreboot_multiboot_qemu): Likewise.
9821 (x86_noefi_mips): Likewise.
9822 (noieee1275): Likewise.
9823 (ieee1275_mips): Likewise.
9824 (noemu_noieee1275): Likewise.
9825 (cmos): New group.
9826 (usb): Likewise.
9827 (videoinkernel): Likewise.
9828 (videomodules): Likewise.
9829 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9830 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
9831 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
9832 include/grub/loader.h, include/grub/msdos_partition.h,
9833 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
9834 include/grub/machine/console.h, include/grub/machine/vga.h,
9835 include/grub/machine/vbe.h, include/grub/machine/init.h,
9836 include/grub/machine/kernel.h, include/grub/cpu/time.h,
9837 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
9838 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9839 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
9840 * grub-core/Makefile.core.def (kernel): Explicit the source for
9841 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
9842 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
9843 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
9844 Use videoinkernel tag.
9845 (usb): Enable on all usb.
9846 (usbserial_common): Likewise.
9847 (usbserial_pl2303): Likewise.
9848 (usbserial_ftdi): Likewise.
9849 (uhci): Enable on all x86.
9850 (ohci): Enable on all pci.
9851 (cmostest): Enable on all CMOS.
9852 (acpi): Include commands/acpi.c on all platforms.
9853 (halt): Add relevant lib/*/halt.c.
9854 (hdparm): Enable on all pci.
9855 (lspci): Likewise.
9856 (usbtest): Enable on all usb.
9857 (ata): Enable on all pci.
9858 (ata_pthru): Likewise.
9859 (usbms): Enable on all usb.
9860 (usb_keyboard): Likewise.
9861 (font): Use tag videomodules.
9862 (bufio): Likewise.
9863 (datetime): Use tag cmos. Enable on all noemu.
9864 (mmap): Use tags common and x86.
9865 (gfxterm): Use tag videomodules.
9866 (bitmap): Likewise.
9867 (bitmap_scale): Likewise.
9868 (video_fb): Likewise.
9869 (video): Likewise.
9870 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
9871 adjust padding accordingly. All users updated.
9872 (grub_ohci_transaction): Fix bad format specification.
9873 (GRUB_MOD_INIT): Add asserts for struct size.
9874 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
9875 (grub_alloc_td): Likewise.
9876 (grub_free_queue): Likewise.
9877 (grub_uhci_transfer): Likewise.
9878 (grub_uhci_transaction): Fix bad format specification.
9879 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9880 (grub_usb_bulk_readwrite): Likewise.
9881 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
9882 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
9883 Made static.
9884 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
9885 Made static.
9886 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
9887 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
9888 Transformed into C.
9889 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
9890 Moved from here ...
9891 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
9892 ... here. Transformed into C. Made static.
9893 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
9894 Moved from here ...
9895 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
9896 ... here. Transformed into C. Made static.
9897 * grub-core/kern/i386/pc/startup.S
9898 (grub_biosdisk_check_int13_extensions): Moved from here ...
9899 * grub-core/disk/i386/pc/biosdisk.c
9900 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
9901 Made static.
9902 * grub-core/kern/i386/pc/startup.S
9903 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
9904 * grub-core/disk/i386/pc/biosdisk.c
9905 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
9906 Transformed into C. Made static.
9907 * grub-core/kern/i386/pc/startup.S
9908 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
9909 * grub-core/disk/i386/pc/biosdisk.c
9910 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
9911 Transformed into C. Made static.
9912 * grub-core/kern/i386/pc/startup.S
9913 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
9914 * grub-core/disk/i386/pc/biosdisk.c
9915 (grub_biosdisk_get_diskinfo_standard): ... here.
9916 Transformed into C. Made static.
9917 * grub-core/kern/i386/pc/startup.S
9918 (grub_biosdisk_get_num_floppies): Moved from here ...
9919 * grub-core/disk/i386/pc/biosdisk.c
9920 (grub_biosdisk_get_num_floppies): ... here.
9921 Transformed into C. Made static.
9922 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
9923 New function.
9924 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
9925 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
9926 Transformed into C. Made static.
9927 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
9928 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
9929 Transformed into C. Made static.
9930 * grub-core/kern/i386/ieee1275/init.c: Removed.
9931 * grub-core/kern/i386/misc.S: Likewise.
9932 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
9933 Splitted from here ...
9934 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
9935 Transformed into C. Made static. All users updated.
9936 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
9937 Transformed into C. Made static. All users updated.
9938 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
9939 Moved from here...
9940 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
9941 Transformed into C. Made static. All users updated.
9942 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
9943 Moved from here...
9944 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
9945 Transformed into C. Made static. All users updated.
9946 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
9947 Removed (replaced by C version).
9948 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
9949 Moved from here...
9950 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
9951 Transformed into C. Made static.
9952 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
9953 Moved from here...
9954 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
9955 ... here. Transformed into C.
9956 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
9957 Moved from here...
9958 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
9959 ... here. Transformed into C.
9960 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
9961 Moved from here...
9962 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
9963 ... here. Transformed into C. Made static.
9964 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
9965 Moved from here...
9966 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
9967 ... here. Transformed into C.
9968 * grub-core/kern/i386/pc/startup.S
9969 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
9970 * grub-core/video/i386/pc/vbe.c
9971 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9972 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
9973 Moved from here...
9974 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
9975 ... here. Transformed into C.
9976 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
9977 Moved from here...
9978 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
9979 ... here. Transformed into C.
9980 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
9981 Moved from here...
9982 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
9983 ... here. Transformed into C.
9984 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
9985 Moved from here...
9986 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
9987 ... here. Transformed into C.
9988 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
9989 Moved from here...
9990 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
9991 ... here. Transformed into C. Made static.
9992 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
9993 Moved from here...
9994 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
9995 ... here. Transformed into C. Made static.
9996 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
9997 Moved from here...
9998 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
9999 ... here. Transformed into C. Made static.
10000 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10001 pxe_rm_entry as third argument.
10002 (grub_bios_interrupt): New function.
10003 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10004 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10005 of calling grub_stop.
10006 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10007 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10008 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10009 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10010 * grub-core/lib/i386/halt.c: Moved from here ...
10011 * grub-core/lib/i386/halt.c: ... here.
10012 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10013 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10014 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10015 grub_stop_floppy.
10016 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10017 * include/grub/i386/coreboot/init.h: Removed.
10018 * include/grub/i386/multiboot/init.h: Likewise.
10019 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10020 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10021 * include/grub/i386/pc/int.h: New file.
10022 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10023 (grub_pxe_scan): Removed.
10024 (grub_pxe_call): Update prototype.
10025 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10026 prototypes.
10027 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10028 * include/grub/i386/qemu/init.h: Removed.
10029 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10030 noreturn.
10031 (grub_halt): Likewise.
10032 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10033 (grub_reboot): Likewise.
10034 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10035 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10036 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10037
10038 2010-08-30 Robert Millan <rmh@gnu.org>
10039
10040 * NEWS: Document addition of ZFS support in `grub-install' and
10041 `grub-mkconfig'.
10042
10043 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10044
10045 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10046 dprintf output.
10047
10048 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 Remove leftover embedding of font objects.
10051
10052 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10053 * util/grub-install.in (font): Removed.
10054 * util/grub-mkimage.c (generate_image): Remove font support. All users
10055 updated.
10056
10057 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 Remove leftover embedding of font objects.
10060
10061 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10062 * util/grub-install.in (font): Removed.
10063 * util/grub-mkimage.c (generate_image): Remove font support. All users
10064 updated.
10065
10066 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10069 Reported by: Ian Turner
10070
10071 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10072
10073 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10074 timeout to avoid indefinite boot stalling.
10075
10076 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10079 (grub_env_write_color_highlight): Likewise.
10080
10081 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/normal/term.c (print_more): Return to normal and not
10084 to standard state after printing "---MORE---".
10085
10086 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10089 Mask out the bit 0x80 since it has other meaning that specifiing color.
10090
10091 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 New relocator. Allows for more kernel support and more straightforward
10094 loader writing.
10095
10096 * Makefile.am (BOOTTARGET): New variable.
10097 (QEMU32): Likewise.
10098 (linux.init.x86_64): New target.
10099 (linux.init.i386): Likewise.
10100 (multiboot.elf): Likewise.
10101 (kfreebsd.elf): Likewise.
10102 (kfreebsd.aout): Likewise.
10103 (pc-chainloader.elf): Likewise.
10104 (pc-chainloader.bin): Likewise.
10105 (ntldr.elf): Likewise.
10106 (ntldr.bin): Likewise.
10107 (multiboot2.elf): Likewise.
10108 (kfreebsd.init.x86_64): Likewise.
10109 (kfreebsd.init.i386): Likewise.
10110 (knetbsd.init.i386): Likewise.
10111 (kopenbsd.init.i386): Likewise.
10112 (knetbsd.init.x86_64): Likewise.
10113 (kopenbsd.init.x86_64): Likewise.
10114 (linux-initramfs.i386): Likewise.
10115 (linux-initramfs.x86_64): Likewise.
10116 (kfreebsd-mfsroot.i386.img): Likewise.
10117 (knetbsd.image.i386): Likewise.
10118 (kopenbsd.image.i386): Likewise.
10119 (kopenbsd.image.x86_64): Likewise.
10120 (knetbsd.miniroot-image.i386.img): Likewise.
10121 (kfreebsd-mfsroot.x86_64.img): Likewise.
10122 (knetbsd.image.x86_64): Likewise.
10123 (knetbsd.miniroot-image.x86_64.img): Likewise.
10124 (kfreebsd-mfsroot.i386.gz): Likewise.
10125 (bootcheck-kfreebsd-i386): Likewise.
10126 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10127 (bootcheck-kfreebsd-x86_64): Likewise.
10128 (knetbsd.miniroot-image.i386.gz): Likewise.
10129 (bootcheck-knetbsd-i386): Likewise.
10130 (bootcheck-kopenbsd-i386): Likewise.
10131 (bootcheck-kopenbsd-x86_64): Likewise.
10132 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10133 (bootcheck-knetbsd-x86_64): Likewise.
10134 (bootcheck-linux-i386): Likewise.
10135 (bootcheck-linux-x86_64): Likewise.
10136 (bootcheck-linux16-i386): Likewise.
10137 (bootcheck-linux16-x86_64): Likewise.
10138 (bootcheck-multiboot): Likewise.
10139 (bootcheck-multiboot2): Likewise.
10140 (bootcheck-kfreebsd-aout): Likewise.
10141 (bootcheck-pc-chainloader): Likewise.
10142 (bootcheck-ntldr): Likewise.
10143 (CLEANFILES): Add new targets.
10144 (BOOTCHECKS): New variable.
10145 (.PHONY): Add bootchecks.
10146 (SUCCESSFUL_BOOT_STRING): New variable.
10147 (BOOTCHECK_TIMEOUT): Likewise.
10148 (bootcheck): New target
10149 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10150 * configure.ac: Correct efiemu excuse.
10151 * docs/grub.texi (Supported kernels): New chapter.
10152 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10153 include/grub/mm_private.h. Simplify inclusion of
10154 include/grub/boot.h, include/grub/loader.h
10155 and include/grub/msdos_partition.h
10156 (KERNEL_HEADER_FILES) [i386_coreboot]:
10157 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10158 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10159 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10160 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10161 include/grub/machine/loader.h.
10162 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10163 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10164 extra_dist.
10165 (pci.mod): Enable on i386-multiboot.
10166 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10167 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10168 i386-qemu.
10169 (relocator.mod): Rewritten.
10170 (aout.mod): Enable on all x86.
10171 (bsd.mod): Likewise.
10172 (ntldr.mod): New module.
10173 (linux.mod): Use loader/i386/linux.c on all x86.
10174 (xnu.mod): Enable on all x86.
10175 (vga_text.mod): disable on EFI and QEMU.
10176 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10177 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10178 * grub-core/efiemu/loadcore.c: Likewise.
10179 * grub-core/efiemu/main.c: Likewise.
10180 (grub_efiemu_exit_boot_services): Removed.
10181 (grub_efiemu_finish_boot_services): Likewise.
10182 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10183 function.
10184 * grub-core/efiemu/i386/nocfgtables.c: New file.
10185 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10186 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10187 (grub_efi_finish_boot_services): Moved from here ...
10188 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10189 Fille finish memory map and related data.
10190 (finish_mmap_buf): New variable.
10191 (grub_efi_uintn_t finish_mmap_size): Likewise.
10192 (grub_efi_uintn_t finish_key): Likewise.
10193 (grub_efi_uintn_t finish_desc_size): Likewise.
10194 (grub_efi_uint32_t finish_desc_version): Likewise.
10195 (grub_efi_is_finished): Likewise.
10196 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10197 finished.
10198 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10199 (grub_elf64_phdr_iterate): Likewise.
10200 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10201 (grub_os_area_size): Likewise.
10202 (grub_machine_init): Don't reserve os area.
10203 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10204 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10205 * grub-core/kern/i386/loader.S: Removed.
10206 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10207 (grub_os_area_size): Likewise.
10208 (grub_machine_init): Don't reserve os area.
10209 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10210 Don't call grub_dl_unload_all.
10211 Don't include loader.S.
10212 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10213 Declare the memory after _end as available.
10214 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10215 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10216 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10217 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10218 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10219 * include/grub/mm_private.h (grub_mm_header): ... here.
10220 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10221 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10222 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10223 (grub_mm_region): ..here. Removed addr. Added pre_size.
10224 All users updated.
10225 * grub-core/kern/mm.c (base): Renamed to ...
10226 (grub_mm_base): ... this. Made global.
10227 (grub_real_malloc): Alloc from end of region.
10228 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10229 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10230 * grub-core/kern/powerpc/cache_flush.S: ... here.
10231 * grub-core/lib/efi/relocator.c: New file.
10232 * grub-core/lib/i386/relocator.c: Rewritten.
10233 * grub-core/lib/i386/relocator16.S: New file.
10234 * grub-core/lib/i386/relocator32.S: Likewise.
10235 * grub-core/lib/i386/relocator64.S: Likewise.
10236 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10237 * grub-core/lib/i386/relocator_common.S: New file.
10238 * grub-core/lib/ieee1275/relocator.c: Likewise.
10239 * grub-core/lib/mips/relocator.c: Rewritten.
10240 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10241 stylistic adjustments.
10242 * grub-core/lib/powerpc/relocator.c: New file.
10243 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10244 * grub-core/lib/relocator.c: Rewritten.
10245 * grub-core/lib/x86_64/relocator_asm.S: New file.
10246 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10247 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10248 (bsd_tag): New struct.
10249 (tags): New variable.
10250 (tags_last): Likewise.
10251 (netbsd_module): New struct.
10252 (netbsd_mods): New variable.
10253 (netbsd_mods_last): Likewise.
10254 (openbsd_opts): New parameter "serial".
10255 (OPENBSD_SERIAL_ARG): New definition.
10256 (netbsd_opts): New parameter "serial".
10257 (NETBSD_SERIAL_ARG): New definition.
10258 (grub_freebsd_add_meta): Reorganised into ...
10259 (grub_bsd_add_meta): ...this. All users updated.
10260 (grub_freebsd_add_mmap): Reorganised into ...
10261 (generate_e820_mmap): ...this...
10262 (grub_bsd_add_mmap): ...and this. All users updated.
10263 (grub_freebsd_list_modules): Use tags.
10264 (grub_netbsd_add_meta_module): New function.
10265 (grub_netbsd_list_modules): Likewise.
10266 (grub_freebsd_boot): Use relocator and finish EFI.
10267 (grub_openbsd_boot): Likewise.
10268 (grub_netbsd_setup_video): New function.
10269 (grub_netbsd_add_modules): Likewise.
10270 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10271 and finish EFI.
10272 (grub_bsd_unload): Unload tags.
10273 (grub_bsd_load_aout): Use relocator.
10274 (grub_bsd_elf32_size_hook): New function.
10275 (grub_bsd_elf32_hook): Use relocator.
10276 (grub_bsd_elf64_size_hook): New function.
10277 (grub_bsd_elf64_hook): Use relocator.
10278 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10279 (grub_bsd_load): Zero-out openbsd_ramdisk.
10280 (grub_bsd_load): Use relocator.
10281 (grub_cmd_openbsd): Support serial.
10282 (grub_cmd_netbsd): Support modules.
10283 (grub_cmd_freebsd_module): Use relocator.
10284 (grub_netbsd_module_load): New function.
10285 (grub_cmd_netbsd_module): Likewise.
10286 (grub_cmd_openbsd_ramdisk): Likewise.
10287 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10288 kopenbsd_ramdisk.
10289 (GRUB_MOD_FINI): Unregister new commands.
10290 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10291 (grub_freebsd_load_elfmodule_obj): Use relocator.
10292 (grub_freebsd_load_elfmodule): Likewise.
10293 (grub_freebsd_load_elf_meta): Likewise.
10294 (grub_netbsd_load_elf_meta): New function.
10295 (grub_openbsd_find_ramdisk): Likewise.
10296 * grub-core/loader/i386/bsd_helper.S: Removed.
10297 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10298 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10299 * grub-core/loader/i386/efi/linux.c: Likewise.
10300 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10301 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10302 (DEFAULT_VIDEO_MODE): Likewise.
10303 (real_mode_target): New variable.
10304 (prot_mode_target): Likewise.
10305 (initrd_mem_target): Likewise.
10306 (relocator): Likewise.
10307 (efi_mmap_buf): Likewise.
10308 (efi_mmap_size): Likewise.
10309 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10310 (free_pages): Use relocator.
10311 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10312 (grub_linux_setup_video): Return error.
10313 (grub_linux_trampoline_start): Removed.
10314 (grub_linux_trampoline_end): Likewise.
10315 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10316 andd video parameters depending on firmware.
10317 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10318 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10319 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10320 (grub_cmd_initrd): Use relocator.
10321 * grub-core/loader/i386/linux_trampoline.S: Removed.
10322 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10323 (elf_sec_entsize): Likewise.
10324 (elf_sec_shstrndx): Likewise.
10325 (elf_sections): Likewise.
10326 (grub_multiboot_load): Use relocator.
10327 (grub_multiboot_get_mbi_size): Account for sections.
10328 (grub_multiboot_make_mbi): Use relocator and support sections.
10329 (grub_multiboot_add_elfsyms): New function.
10330 (grub_multiboot_free_mbi): Free sections.
10331 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
10332 (grub_linux_real_target): Likewise.
10333 (grub_linux_real_chunk): Likewise.
10334 (grub_linux16_prot_size): Likewise.
10335 (grub_linux16_boot): Use relocator.
10336 (grub_linux_unload): Unload relocator.
10337 (grub_cmd_linux): Use relocator.
10338 (grub_cmd_initrd): Likewise.
10339 * grub-core/loader/i386/pc/ntldr.c: New file.
10340 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
10341 Don't try to guess CPU frequency.
10342 (grub_xnu_set_video): Stretch bitmap.
10343 (grub_xnu_boot): Use relocator.
10344 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
10345 (grub_linux_unload): Free relocator.
10346 (grub_linux_load32): Use relocator.
10347 (grub_linux_load64): Likewise.
10348 (grub_cmd_initrd): Likewise.
10349 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
10350 (grub_multiboot_unload): Unload relocator.
10351 (grub_cmd_multiboot): Use relocator.
10352 (grub_cmd_module): Likewise.
10353 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
10354 Use relocator and support sections.
10355 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
10356 (elf_sec_entsize): Likewise.
10357 (elf_sec_shstrndx): Likewise.
10358 (elf_sections): Likewise.
10359 (grub_multiboot_load): Use relocator.
10360 (grub_multiboot_get_mbi_size): Account for sections.
10361 (grub_multiboot_make_mbi): Use relocator and support sections.
10362 (grub_multiboot_add_elfsyms): New function.
10363 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
10364 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
10365 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
10366 Prototype changed. All users updated.
10367 (grub_xnu_align_heap): Simplified.
10368 (grub_xnu_writetree_toheap): Likewise.
10369 (grub_xnu_unload): Unload relocator.
10370 (grub_cmd_xnu_kernel): Use relocator.
10371 (grub_cmd_xnu_kernel64): Likewise.
10372 (grub_xnu_register_memory): Simplified.
10373 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
10374 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
10375 EFI is finished.
10376 (grub_console_checkkey): Likewise.
10377 (grub_console_getkey): Likewise.
10378 (grub_console_getwh): Likewise.
10379 (grub_console_getxy): Likewise.
10380 (grub_console_gotoxy): Likewise.
10381 (grub_console_cls): Likewise.
10382 (grub_console_setcolorstate): Likewise.
10383 (grub_console_setcursor): Likewise.
10384 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
10385 * grub-core/tests/boot/kbsd.init-i386.S: New file.
10386 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
10387 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
10388 * grub-core/tests/boot/kernel-8086.S: Likewise.
10389 * grub-core/tests/boot/kernel-i386.S: Likewise.
10390 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
10391 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
10392 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
10393 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
10394 * grub-core/tests/boot/knetbsd.cfg: Likewise.
10395 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
10396 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
10397 * grub-core/tests/boot/linux.cfg: Likewise.
10398 * grub-core/tests/boot/linux.init-i386.S: Likewise.
10399 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
10400 * grub-core/tests/boot/linux16.cfg: Likewise.
10401 * grub-core/tests/boot/multiboot.cfg: Likewise.
10402 * grub-core/tests/boot/multiboot2.cfg: Likewise.
10403 * grub-core/tests/boot/ntldr.cfg: Likewise.
10404 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
10405 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
10406 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
10407 New definition.
10408 * include/grub/dl.h (grub_dl_unload_all): Removed.
10409 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
10410 (grub_efi_finish_boot_services): Change prototype.
10411 (grub_efi_is_finished): New variable.
10412 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
10413 Changed prototype.
10414 (grub_efiemu_finish_boot_services): Removed.
10415 (grub_machine_efiemu_init_tables): New prototype.
10416 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
10417 (grub_elf64_phdr_iterate): Likewise.
10418 * include/grub/i386/bsd.h: Include relocator.h.
10419 (freebsd_tag_header): New struct.
10420 (grub_openbsd_bios_mmap): Removed.
10421 (grub_unix_real_boot): Removed.
10422 (grub_freebsd_load_elfmodule32): Changed prototype.
10423 (grub_freebsd_load_elfmodule_obj64): Likewise.
10424 (grub_freebsd_load_elf_meta32): Likewise.
10425 (grub_freebsd_load_elf_meta64): Likewise.
10426 (grub_freebsd_add_meta): Removed.
10427 (grub_netbsd_load_elf_meta32): New prototype.
10428 (grub_netbsd_load_elf_meta64): Likewise.
10429 (grub_bsd_add_meta): Likewise.
10430 (grub_openbsd_ramdisk_descriptor): New struct.
10431 (grub_openbsd_find_ramdisk32): New prototype.
10432 (grub_openbsd_find_ramdisk64): Likewise.
10433 * include/grub/i386/coreboot/loader.h: Removed.
10434 * include/grub/i386/efi/loader.h: Likewise.
10435 * include/grub/i386/ieee1275/loader.h: Likewise.
10436 * include/grub/i386/linux.h (linux_kernel_header): Change void *
10437 to grub_uint32_t.
10438 * include/grub/i386/loader.h: Removed.
10439 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
10440 value.
10441 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
10442 (grub_phys_addr_t): New type.
10443 (grub_vtop): New inline function.
10444 (grub_map_memory): Likewise.
10445 (grub_unmap_memory): Likewise.
10446 * include/grub/i386/multiboot/loader.h: Removed.
10447 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
10448 (NETBSD_BTINFO_CONSOLE): New definition.
10449 (NETBSD_BTINFO_SYMTAB): Likewise.
10450 (NETBSD_BTINFO_MODULES): Likewise.
10451 (NETBSD_BTINFO_FRAMEBUF): Likewise.
10452 (grub_netbsd_bootinfo): New struct.
10453 (grub_netbsd_btinfo_common): Use explicit bitsize.
10454 (grub_netbsd_btinfo_mmap_entry): Removed.
10455 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
10456 (grub_netbsd_btinfo_bootdisk): New struct.
10457 (grub_netbsd_btinfo_symtab): Likewise.
10458 (grub_netbsd_btinfo_serial): Likewise.
10459 (grub_netbsd_btinfo_modules): Likewise.
10460 (grub_netbsd_btinfo_framebuf): Likewise.
10461 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
10462 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
10463 Likewise.
10464 (grub_openbsd_bootargs): Use explicit bitsize.
10465 (grub_openbsd_bootarg_console): New struct.
10466 (GRUB_OPENBSD_COM_MAJOR): New definition.
10467 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
10468 * include/grub/i386/pc/efiemu.h: Removed.
10469 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
10470 * include/grub/i386/qemu/loader.h: Removed.
10471 * include/grub/i386/relocator.h: Rewritten.
10472 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
10473 * include/grub/mips/memory.h: New file.
10474 * include/grub/mips/multiboot.h: Rewritten.
10475 * include/grub/mips/relocator.h: Rewritten.
10476 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
10477 (grub_vtop): New function.
10478 (grub_map_memory): Likewise.
10479 (grub_unmap_memory): Likewise.
10480 * include/grub/misc.h (ALIGN_DOWN): New definition.
10481 * include/grub/mm.h (grub_mm_check_real): New proto.
10482 (GRUB_MM_CHECK): New definition.
10483 * include/grub/mm_private.h: New file.
10484 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
10485 (grub_multiboot_get_mbi_size): Removed.
10486 (grub_multiboot_make_mbi): Change prottype.
10487 (grub_multiboot_set_accepts_video): New proto.
10488 (grub_multiboot_add_elfsyms): Likewise.
10489 (grub_multiboot_payload_eip): New variable.
10490 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
10491 New prototype.
10492 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
10493 New definition.
10494 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
10495 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
10496 * include/grub/powerpc/ieee1275/loader.h: Removed.
10497 * include/grub/powerpc/memory.h: New file.
10498 * include/grub/powerpc/relocator.h: Likewise.
10499 * include/grub/relocator.h: Likewise.
10500 * include/grub/relocator_private.h: Likewise.
10501 * include/grub/sparc64/ieee1275/loader.h: Removed.
10502 * include/grub/x86_64/memory.h: New file.
10503 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
10504 (grub_xnu_heap_malloc): Likewise.
10505 (grub_xnu_heap_real_start): Removed.
10506 (grub_xnu_heap_start): Likewise.
10507 (grub_xnu_relocator): New variable.
10508 (grub_xnu_heap_target_start): Likewise.
10509 * tests/util/grub-shell.in: Support non-pc.
10510 * util/grub-mkimage.c (image_targets): Fix multiboot target.
10511
10512 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
10515 on malloc error.
10516 (grub_bidi_logical_to_visual): Check that malloc succeded.
10517 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
10518 puts.
10519 (grub_xputs_normal): Likewise.
10520
10521 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
10524 extra_dist.
10525
10526 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10527
10528 * grub-core/efiemu/runtime/efiemu.sh: Removed.
10529
10530 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
10533
10534 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
10537 dprintf.
10538
10539 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
10540
10541 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
10542
10543 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10544
10545 * grub-core/normal/term.c (print_more): Fix a memory leak.
10546 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
10547 (grub_xputs_normal): Likewise.
10548
10549 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
10552 the begining of the string
10553
10554 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10555
10556 * grub-core/script/script.c (grub_script_parse): Free parsed on
10557 failure.
10558
10559 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
10562 on failure.
10563
10564 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
10567 return.
10568
10569 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
10572 (scroll_up): Fix a memory leak.
10573
10574 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
10577 errors.
10578
10579 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 Handle USB pendrives exposed as floppies.
10582
10583 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
10584 floppy.
10585 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10586 Check for partitions on all devices.
10587
10588 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
10591 (readkey): Likewise.
10592
10593 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10594
10595 Multiple variable names support to "export" command.
10596
10597 * normal/context.c (grub_cmd_export): "export" command supports
10598 multiple variable names.
10599
10600 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
10601
10602 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
10603 --target=drive output to Mach device name.
10604
10605 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10606
10607 New Automake based build system for GRUB.
10608
10609 * ABOUT-NLS: New file.
10610 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
10611 in Makefile.util.def file.
10612 * Makefile.util.def: New file. Autogen build definitions file for
10613 GRUB host utils.
10614 * conf/Makefile.common: New file. Common variables for GRUB host
10615 utils and target modules.
10616 * conf/Makefile.extra-dist: New file. Extra files for make dist.
10617 * docs/Makefile.am: New file. Automake file for docs.
10618 * gentpl.py: New file. Python script to generate Autogen
10619 template.
10620 * grub-core/Makefile.am: New file. GRUB target modules' rules
10621 that doesn't fit in Makefile.core.def file.
10622 * grub-core/Makefile.core.def: New file. Autogen build
10623 definitions file for GRUB target modules.
10624 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
10625 specific setjmp.S file.
10626 * po/Makefile.am: New file.
10627
10628 * .bzrignore: New ignores.
10629 * INSTALL: New requirements, without Ruby.
10630 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
10631 * autogen.sh: Updated to invoke autogen as necessary.
10632 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
10633 and defines for Automake conditionals.
10634 * geninit.sh: Refactoring.
10635
10636 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
10637 necessary.
10638 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
10639 New prototype.
10640
10641 * include/grub/test.h: Fix functional test modules' naming.
10642 * grub-core/tests/example_functional_test.c: Fix test module name.
10643
10644 * util/misc.c: Hosted versions' of grub functions for libgrub.a
10645 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
10646 * util/grub-editenv.c: Likewise.
10647 * util/grub-fstest.c: Likewise.
10648 * util/grub-mkdevicemap.c: Likewise.
10649 * util/grub-mkfont.c: Likewise.
10650 * util/grub-mkimage.c: Likewise.
10651 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10652 * util/grub-probe.c: Likewise.
10653 * util/grub-script-check.c: Likewise.
10654 * util/i386/pc/grub-setup.c: Likewise.
10655 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10656
10657 * tests/util/grub-shell.in: Fix override directory path.
10658 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
10659 * util/import_gcry.py: Create Makefile.gcry.def file instead.
10660
10661 * util/lvm.c: Update #includes.
10662 * util/raid.c: Likewise.
10663 * util/resolve.c: Likewise.
10664 * grub-core/bus/emu/pci.c: Likewise.
10665 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
10666 * grub-core/lib/posix_wrap/string.h: Likewise.
10667 * grub-core/kern/emu/main.c: Likewise.
10668
10669 * grub-core/gensymlist.sh: New file. Script for generating kernel
10670 symbols file.
10671 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
10672
10673 * grub-core/gentrigtables.c: Fix unused variable warnings.
10674
10675 * Makefile.in: Removed.
10676 * conf/any-emu.rmk: Removed.
10677 * conf/common.rmk: Removed.
10678 * conf/i386-coreboot.rmk: Removed.
10679 * conf/i386-efi.rmk: Removed.
10680 * conf/i386-ieee1275.rmk: Removed.
10681 * conf/i386-multiboot.rmk: Removed.
10682 * conf/i386-pc.rmk: Removed.
10683 * conf/i386-qemu.rmk: Removed.
10684 * conf/i386.rmk: Removed.
10685 * conf/mips-yeeloong.rmk: Removed.
10686 * conf/mips.rmk: Removed.
10687 * conf/powerpc-ieee1275.rmk: Removed.
10688 * conf/sparc64-ieee1275.rmk: Removed.
10689 * conf/tests.rmk: Removed.
10690 * conf/x86-efi.rmk: Removed.
10691 * conf/x86_64-efi.rmk: Removed.
10692 * gendistlist.sh: Removed.
10693 * geninitheader.sh: Removed.
10694 * genkernsyms.sh.in: Removed.
10695 * genmk.rb: Removed.
10696 * gensymlist.sh.in: Removed.
10697 * mkinstalldirs: Removed.
10698 * boot: Moved ...
10699 * grub-core/boot: ... to here.
10700 * bus: Moved ...
10701 * grub-core/bus: ... to here.
10702 * commands: Moved ...
10703 * grub-core/commands: ... to here.
10704 * disk: Moved ...
10705 * grub-core/disk: ... to here.
10706 * efiemu: Moved ...
10707 * grub-core/efiemu: ... to here.
10708 * font: Moved ...
10709 * grub-core/font: ... to here.
10710 * fs: Moved ...
10711 * grub-core/fs: ... to here.
10712 * gencmdlist.sh: Moved ...
10713 * grub-core/gencmdlist.sh: ... to here.
10714 * genemuinit.sh: Moved ...
10715 * grub-core/genemuinit.sh: ... to here.
10716 * genemuinitheader.sh: Moved ...
10717 * grub-core/genemuinitheader.sh: ... to here.
10718 * genfslist.sh: Moved ...
10719 * grub-core/genfslist.sh: ... to here.
10720 * genhandlerlist.sh: Moved ...
10721 * grub-core/genhandlerlist.sh: ... to here.
10722 * genmoddep.awk: Moved ...
10723 * grub-core/genmoddep.awk: ... to here.
10724 * genmodsrc.sh: Moved ...
10725 * grub-core/genmodsrc.sh: ... to here.
10726 * genpartmaplist.sh: Moved ...
10727 * grub-core/genpartmaplist.sh: ... to here.
10728 * genparttoollist.sh: Moved ...
10729 * grub-core/genparttoollist.sh: ... to here.
10730 * genterminallist.sh: Moved ...
10731 * grub-core/genterminallist.sh: ... to here.
10732 * gentrigtables.c: Moved ...
10733 * grub-core/gentrigtables.c: ... to here.
10734 * genvideolist.sh: Moved ...
10735 * grub-core/genvideolist.sh: ... to here.
10736 * gettext: Moved ...
10737 * grub-core/gettext: ... to here.
10738 * gfxmenu: Moved ...
10739 * grub-core/gfxmenu: ... to here.
10740 * gnulib: Moved ...
10741 * grub-core/gnulib: ... to here.
10742 * hello: Moved ...
10743 * grub-core/hello: ... to here.
10744 * hook: Moved ...
10745 * grub-core/hook: ... to here.
10746 * io: Moved ...
10747 * grub-core/io: ... to here.
10748 * kern: Moved ...
10749 * grub-core/kern: ... to here.
10750 * lib: Moved ...
10751 * grub-core/lib: ... to here.
10752 * loader: Moved ...
10753 * grub-core/loader: ... to here.
10754 * mmap: Moved ...
10755 * grub-core/mmap: ... to here.
10756 * normal: Moved ...
10757 * grub-core/normal: ... to here.
10758 * partmap: Moved ...
10759 * grub-core/partmap: ... to here.
10760 * parttool: Moved ...
10761 * grub-core/parttool: ... to here.
10762 * script: Moved ...
10763 * grub-core/script: ... to here.
10764 * term: Moved ...
10765 * grub-core/term: ... to here
10766 * tests/example_functional_test.c: Moved ...
10767 * grub-core/tests/example_functional_test.c: ... to here.
10768 * tests/lib/functional_test.c: Moved ...
10769 * grub-core/tests/lib/functional_test.c: ... to here.
10770 * tests/lib/test.c: Moved ...
10771 * grub-core/tests/lib/test.c: ... to here.
10772 * video: Moved ...
10773 * grub-core/video: ... to here.
10774
10775 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
10776
10777 Replace --enable-grub-emu-modules with grub-emu-lite.
10778
10779 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
10780 cache.S.
10781
10782 * include/grub/emu/misc.h (grub_emu_init): New prototype.
10783 * kern/emu/full.c: New file. For grub-emu specific initialization.
10784 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
10785 * kern/emu/main.c: Call initialization function grub_emu_init.
10786
10787 * Makefile.in: Include grub-emu-lite in install.
10788 * commands/parttool.c: Use grub_no_autoload to differentiate
10789 between grub-emu and grub-emu-lite.
10790 * include/grub/misc.h: New variable grub_no_autoload.
10791
10792 * conf/any-emu.rmk: New rules for grub-emu-lite.
10793 * configure.ac: Remove --enable-grub-emu-modules.
10794 * genmk.rb: Cleanup unnecessary rules.
10795 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
10796
10797 * normal/main.c: Don't load list files on grub-emu-lite.
10798 * util/misc.c (grub_arch_sync_caches): Removed.
10799
10800 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
10801
10802 * kern/mips/startup.S (grub_prefix): Update comment to refer to
10803 grub-mkimage rather than grub-mkelfimage.
10804 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10805
10806 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
10809 a key after CapsLock or NumLock. It's just a qemu bug.
10810
10811 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10812
10813 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
10814 needed by libusb wrapper.
10815
10816 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10817
10818 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
10819
10820 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
10821
10822 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
10823 --nounzip is passed.
10824
10825 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 USB hotunplugging and USB serial support.
10828
10829 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
10830 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
10831 (grub_uhci_transfer): Respect timeout and set *actual.
10832 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
10833 non-standard length.
10834 (grub_usb_device_attach): Autoload modules.
10835 (GRUB_MOD_INIT): Set grub_term_poll_usb.
10836 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
10837 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
10838 users updated.
10839 (grub_usb_add_hub): Fill nports and children.
10840 (attach_root_port): Receive hub instead of controller.
10841 All users updated. Fill hub->devices.
10842 (grub_usb_root_hub): Allocate hub->devices.
10843 (detach_device): New function.
10844 (poll_nonroot_hub): Fill children and detach devices.
10845 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
10846 actual arguments. All users updated.
10847 (grub_usb_bulk_read_extended): New function.
10848 * bus/usb/serial/common.c: New file.
10849 * bus/usb/serial/ftdi.c: Likewise.
10850 * bus/usb/serial/pl2303.c: Likewise.
10851 * commands/terminal.c (handle_command): Support wildcard.
10852 * commands/usbtest.c: Output "Unknown" instead of empty string.
10853 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
10854 (usbserial_common_mod_SOURCES): New variable.
10855 (usbserial_common_mod_CFLAGS): Likewise.
10856 (usbserial_common_mod_LDFLAGS): Likewise.
10857 (pkglib_MODULES): Add usbserial_pl2303.mod.
10858 (usbserial_pl2303_mod_SOURCES): New variable.
10859 (usbserial_pl2303_mod_CFLAGS): Likewise.
10860 (usbserial_pl2303_mod_LDFLAGS): Likewise.
10861 (pkglib_MODULES): Add usbserial_ftdi.mod.
10862 (usbserial_ftdi_mod_SOURCES): New variable.
10863 (usbserial_ftdi_mod_CFLAGS): Likewise.
10864 (usbserial_ftdi_mod_LDFLAGS): Likewise.
10865 (pkglib_MODULES): Add serial.mod.
10866 (serial_mod_SOURCES): New variable.
10867 (serial_mod_CFLAGS): Likewise.
10868 (serial_mod_LDFLAGS): Likewise.
10869 * conf/i386-pc.rmk: Likewise.
10870 * conf/mips-yeeloong.rmk: Likewise.
10871 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
10872 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
10873 * disk/usbms.c (first_available_slot): New variable.
10874 (grub_usbms_attach): Don't reuse free slots due to potential cache
10875 problems.
10876 * include/grub/serial.h: Moved to ..
10877 * include/grub/ns8250.h: ...this.
10878 * include/grub/serial.h: New file.
10879 * include/grub/term.h (grub_term_poll_usb): New variable.
10880 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
10881 readkey. All users updated.
10882 (grub_terminfo_output_state): Pass term to put.
10883 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
10884 (grub_usb_controller_dev): Add timeout and actual arguments to
10885 transfer. All users updated.
10886 (grub_usb_interface): New field detach_data.
10887 (grub_usb_device): New fields children and nports.
10888 (grub_usb_ep_type_t): New type.
10889 (grub_usb_get_ep_type): New function.
10890 (grub_usb_bulk_read_extended): Likewise.
10891 * include/grub/usbdesc.h (grub_usb_desc): New type.
10892 * include/grub/usbserial.h: New file.
10893 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
10894 * kern/term.c (grub_term_poll_usb): New variable.
10895 (grub_getkey): Call grub_term_poll_usb if set.
10896 (grub_checkkey): Likewise.
10897 (grub_getkeystatus): Likewise.
10898 * term/serial.c: Moved controller-specific parts to ...
10899 * term/ns8250.c: ... here.
10900 * term/serial.c: Mostly rewritten.
10901 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
10902 according to spec.
10903
10904 2010-08-20 Robert Millan <rmh@gnu.org>
10905
10906 Make kFreeBSD code more generic to support ext2fs as root, ufs as
10907 a separate module and maybe other interesting combinations.
10908
10909 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
10910 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
10911 (kfreebsd_entry): Add generic filesystem module load routine.
10912 Map GRUB `ext2' to kFreeBSD `ext2fs'.
10913
10914 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10915
10916 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
10917 "numcenter" (I misunderstood the purpose of this entry).
10918 * docs/grub.texi (sendkey): Likewise.
10919
10920 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
10921
10922 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
10923 status flag options; simply omitting the option is equivalent and
10924 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
10925 (keysym_table): Rename "num5numlock" to "numlock".
10926 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
10927 can uniformly say that only the last of multiple `sendkey'
10928 invocations has any effect.
10929 * docs/grub.texi (sendkey): New section.
10930
10931 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
10932
10933 * commands/i386/pc/sendkey.c (options): Fix three typos.
10934
10935 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10936
10937 Implement sendkey support.
10938
10939 * commands/i386/pc/sendkey.c: New file.
10940 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
10941 (sendkey_mod_SOURCES): New variable.
10942 (sendkey_mod_CFLAGS): Likewise.
10943 (sendkey_mod_LDFLAGS): Likewise.
10944
10945 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10946
10947 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
10948 fix warnings from Autoconf.
10949
10950 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
10951
10952 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
10953 to avoid false positives with some assemblers that output things
10954 like "someprefix_func" as part of their output.
10955
10956 2010-08-15 Robert Millan <rmh@gnu.org>
10957
10958 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
10959 errors.
10960 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
10961 grub_get_libzfs_handle() errors.
10962
10963 2010-08-14 Robert Millan <rmh@gnu.org>
10964
10965 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
10966 filesystem is not ZFS.
10967
10968 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10969
10970 Fix for misspelled color names defaulting to black/black (bug
10971 reported by Doug Nazar)
10972
10973 * include/grub/normal.h (grub_parse_color_name_pair): Add return
10974 status to prototype.
10975 * normal/color.c (grub_parse_color_name_pair): Return failure
10976 status.
10977 (grub_env_write_color_normal): Ignore bad color names.
10978 (grub_env_write_color_highlight): Likewise.
10979 * normal/main.c (GRUB_MOD_INIT): Set default color names.
10980
10981 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10982
10983 "shift" command support to GRUB script.
10984
10985 * include/grub/script_sh.h (grub_script_shift): New prototype.
10986 * script/execute.c (grub_script_shift): New function.
10987 * script/main.c (grub_script_init): Register shift command.
10988 (grub_script_fini): Unregister shift command.
10989 * util/grub-script-check.c (grub_script_cmd_shift): New function.
10990
10991 * tests/grub_script_shift.in: New testcase.
10992 * conf/tests.rmk: Rules for new testcase.
10993
10994 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
10995
10996 "continue" command support to GRUB script.
10997
10998 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
10999 (grub_script_break): Continue support.
11000 * script/main.c (grub_script_init): Register continue command.
11001 (grub_script_fini): Unregister continue command.
11002
11003 * tests/grub_script_continue.in: New testcase.
11004 * conf/tests.rmk: Rules for new testcase.
11005
11006 2010-08-12 BVK Chaitanya <bvk@dbook>
11007
11008 "break" command support to GRUB script.
11009
11010 * conf/common.rmk: Rule updates to grub-script-check.
11011 * include/grub/misc.h (grub_min): New function.
11012 * include/grub/script_sh.h (grub_script_init): New prototype.
11013 (grub_script_fini): New prototype.
11014 (grub_script_break): New prototype.
11015 * script/main.c (grub_script_init): New function.
11016 (grub_script_fini): New function.
11017 * script/execute.c (grub_script_break): New function.
11018 * normal/main.c: Calls to grub_script_{init,fini}.
11019 * util/grub-script-check.c (grub_script_break): New function.
11020
11021 * tests/grub_script_break.in: New testcase.
11022 * conf/tests.rmk: Rules for new test case.
11023
11024 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11025
11026 Function parameters support to GRUB script.
11027
11028 * script/yylex.l (VARIABLE): Regular expression update.
11029 * script/function.c (grub_script_function_call): Moved ...
11030 * script/execute.c (grub_script_function_call): ... to here.
11031 (grub_script_execute_arglist_to_argv): Removed.
11032 (grub_script_arglist_to_argv): New function.
11033 * script/argv.c: New file.
11034 (grub_script_argv_free): New function.
11035 (grub_script_argv_next): Likewise.
11036 (grub_script_argv_append): Likewise.
11037 (grub_script_argv_split_append): Likewise.
11038 * include/grub/script_sh.h (grub_script_argv): New struct.
11039 (grub_script_argv_free): New function.
11040 (grub_script_argv_next): Likewise.
11041 (grub_script_argv_append): Likewise.
11042 (grub_script_argv_split_append): Likewise.
11043
11044 * conf/common.rmk (normal.mod): New source script/argv.c.
11045
11046 * tests/grub_script_echo1.in: More tests.
11047 * tests/grub_script_vars1.in: Likewise.
11048 * tests/grub_script_functions.in: New test case.
11049 * conf/tests.rmk: Rules for new testcase.
11050
11051 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11052
11053 Remove grub_script_cmdblock struct.
11054
11055 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11056 * script/parser.y: Likewise.
11057 * script/execute.c: Rename cmdblock suffix to cmdlist.
11058 * script/script.c: Likewise.
11059 * util/grub-script-check.c: Likewise.
11060
11061 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11062
11063 * .bzrignore: add grub-macho2img
11064
11065 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11068
11069 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 Remove the dump of sm712 initialisation sequence.
11072
11073 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11074 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11075 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11076 (GRUB_VGA_CR_*): Added many registers.
11077 (GRUB_VGA_SR_*): Likewise.
11078 (GRUB_VGA_GR_*): Likewise.
11079 (grub_vga_write_arx): New function.
11080 (grub_video_hw_config): New struct.
11081 (grub_vga_set_geometry): New function.
11082 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11083 GRUB_PCI_CLASS_SUBCLASS_VGA.
11084 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11085 * video/sm712.c (grub_sm712_write_reg): New function
11086 (grub_sm712_read_reg): Likewise.
11087 (grub_sm712_sr_write): Likewise.
11088 (grub_sm712_gr_write): Likewise.
11089 (grub_sm712_cr_write): Likewise.
11090 (grub_sm712_write_arx): Likewise.
11091 (grub_sm712_cr_shadow_write): Likewise.
11092 (grub_sm712_write_dda_lookup): Likewise.
11093 (grub_video_sm712_setup): Initialise the video rather then
11094 blindly replay the dump.
11095 (main) [TEST]: Add a routine to be able to compile as standalone for
11096 tests.
11097 * video/sm712_init.c (sm712_init): Removed.
11098 (sm712_sr_seq1): New array.
11099 (sm712_sr_seq2): Likewise.
11100
11101 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 * include/grub/vga.h: Add missing grub/pci.h include.
11104
11105 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11106
11107 * util/grub-macho2img.c (main): fix typo
11108
11109 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11112 (grub_vga_gr_read): Likewise.
11113 (grub_vga_cr_write): Likewise.
11114 (grub_vga_cr_read): Likewise.
11115 (grub_vga_sr_write): Likewise.
11116 (grub_vga_sr_read): Likewise.
11117 (grub_vga_palette_read): Likewise.
11118 (grub_vga_palette_write): Likewise.
11119 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11120 (grub_sm712_sr_read): New function.
11121 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11122 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11123
11124 2010-08-09 Robert Millan <rmh@gnu.org>
11125
11126 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11127 out unused variables on non-ZFS build.
11128
11129 2010-08-08 Robert Millan <rmh@gnu.org>
11130
11131 Fix path generation for sub-filesystems in ZFS.
11132
11133 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11134 missing slash.
11135
11136 2010-08-08 Robert Millan <rmh@gnu.org>
11137
11138 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11139
11140 2010-08-08 Robert Millan <rmh@gnu.org>
11141
11142 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11143 exist, issue a proper error message (rely on `ls' for translated
11144 strings).
11145
11146 2010-08-08 Robert Millan <rmh@gnu.org>
11147
11148 Fix grub-probe invocation.
11149
11150 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11151
11152 2010-08-04 Robert Millan <rmh@gnu.org>
11153
11154 * configure.ac: Remove checks for getfsstat() and getmntany().
11155 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11156 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11157 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11158 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11159 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11160 function.
11161 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11162 via find_mount_point_from_dir() and getfsstat() / getmntany().
11163
11164 2010-08-04 Robert Millan <rmh@gnu.org>
11165
11166 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11167 (grub_find_zpool_from_mount_point): Merge into ...
11168 (grub_find_zpool_from_dir): ... this.
11169 * kern/emu/misc.c: Likewise.
11170
11171 * kern/emu/misc.c
11172 (grub_make_system_path_relative_to_its_root): Replace
11173 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11174 with grub_find_zpool_from_dir().
11175 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11176
11177 2010-08-04 Robert Millan <rmh@gnu.org>
11178
11179 Support OpenSolaris in ZFS device resolution.
11180
11181 * configure.ac: Check for getmntany().
11182 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11183 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11184 support.
11185
11186 2010-08-03 Robert Millan <rmh@gnu.org>
11187
11188 Fix grub-emu build.
11189
11190 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11191 * include/grub/emu/misc.h: ... here.
11192
11193 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11194 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11195
11196 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11197 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11198 (grub_get_libzfs_handle): Move to ...
11199 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11200 (grub_get_libzfs_handle): ... here.
11201
11202 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11203
11204 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11205 as command name case.
11206
11207 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11208
11209 * disk/raid.c (insert_array): Select unique numbers for named arrays
11210 as well, for use as keys in the disk cache.
11211
11212 2010-08-01 Robert Millan <rmh@gnu.org>
11213
11214 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11215 kFreeBSD device name, except on ZFS where the filesystem label is
11216 used.
11217 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11218 `/boot/zfs/zpool.cache'.
11219 Set mountfrom kernel variable using ${kfreebsd_device}.
11220
11221 2010-08-01 Robert Millan <rmh@gnu.org>
11222
11223 Make it even harder to use uninitialized `libzfs_handle' (and
11224 make the interface a bit simpler).
11225
11226 * include/grub/util/misc.h (grub_util_init_libzfs)
11227 (libzfs_handle): Remove.
11228 (grub_get_libzfs_handle): New prototype.
11229
11230 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11231 attribute.
11232 (grub_util_init_libzfs): Remove.
11233 (grub_get_libzfs_handle): New function.
11234
11235 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11236 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11237 accessing `libzfs_handle' directly.
11238
11239 2010-08-01 Robert Millan <rmh@gnu.org>
11240
11241 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11242 (grub_find_zpool_from_mount_point): New function prototypes.
11243
11244 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11245 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11246
11247 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11248 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11249 `static' attribute.
11250
11251 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11252 finding zpool from mount point into ...
11253 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11254
11255 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11256 requested path is part of a ZFS pool, use
11257 grub_find_zpool_from_mount_point() to detect its filesystem name,
11258 and generate a path with `/fsname@path' syntax.
11259
11260 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11261
11262 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11263 (void) rather than () so that this is a proper prototype.
11264
11265 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11266
11267 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11268
11269 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11272 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11273
11274 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11275
11276 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11277
11278 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11279
11280 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11281
11282 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11283
11284 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11285 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11286 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11287 disable gfxpayload.
11288 (Shell-like scripting): Add real content.
11289 (Serial terminal): Suggest `terminal_input serial; terminal_output
11290 serial' rather than putting the two commands on separate lines,
11291 since console input will be inoperative after the first command.
11292 (menuentry): Document --class, --users, and --hotkey options.
11293 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11294 Vladimir Serbinenko).
11295
11296 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11297 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11298
11299 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11300
11301 2010-08-01 Robert Millan <rmh@gnu.org>
11302
11303 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11304 (grub_find_zpool_from_mount_point): New function prototypes.
11305
11306 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11307 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11308
11309 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11310 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11311 `static' attribute.
11312
11313 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11314 finding zpool from mount point into ...
11315 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11316
11317 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11318 requested path is part of a ZFS pool, use
11319 grub_find_zpool_from_mount_point() to detect its filesystem name,
11320 and generate a path with `/fsname@path' syntax.
11321
11322 2010-08-01 Robert Millan <rmh@gnu.org>
11323
11324 Prevent accidental use of uninitialized libzfs_handle.
11325
11326 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
11327 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
11328 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
11329
11330 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11331
11332 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
11333 util/grub.d/10_linux.in). Fixes Debian bug #591093.
11334
11335 2010-08-01 Robert Millan <rmh@gnu.org>
11336
11337 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
11338
11339 2010-07-31 Robert Millan <rmh@gnu.org>
11340
11341 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
11342
11343 2010-07-31 Robert Millan <rmh@gnu.org>
11344
11345 * kern/emu/misc.c: Add missing license header.
11346
11347 2010-07-31 Robert Millan <rmh@gnu.org>
11348
11349 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
11350
11351 * include/grub/util/libnvpair.h: Include `<config.h>'.
11352 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
11353 declaring libnvpair prototypes ourselves.
11354 * include/grub/util/libzfs.h: Include `<config.h>'.
11355 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
11356 declaring libzfs prototypes ourselves.
11357
11358 (libzfs_handle): Moved to ...
11359 * include/grub/util/misc.h (libzfs_handle): ... here.
11360 Include `<grub/util/libzfs.h>'.
11361
11362 2010-07-30 Robert Millan <rmh@gnu.org>
11363
11364 * include/grub/emu/misc.h: Add missing license header.
11365
11366 2010-07-30 Robert Millan <rmh@gnu.org>
11367
11368 Enable `grub-probe -t device' resolution on ZFS.
11369
11370 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
11371 * include/grub/util/libnvpair.h: New file.
11372 * include/grub/util/libzfs.h: New file.
11373
11374 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
11375 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
11376 `<grub/util/libnvpair.h>'.
11377 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
11378
11379 (find_mount_point_from_dir): New static function.
11380 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
11381 function.
11382 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
11383 find_root_device_from_libzfs() before ressorting to find_root_device().
11384
11385 * include/grub/util/misc.h (grub_util_init_libzfs): New function
11386 prototype.
11387 * util/misc.c: Include `<grub/util/libzfs.h>'.
11388 (grub_util_init_libzfs): New function.
11389 [HAVE_LIBZFS] (libzfs_handle): New global variable.
11390 [HAVE_LIBZFS] (fini_libzfs): New static function.
11391 (grub_util_init_libzfs): New function.
11392 * util/grub-probe.c (main): Call grub_util_init_libzfs().
11393
11394 2010-07-30 Robert Millan <rmh@gnu.org>
11395
11396 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
11397 (xmalloc, xrealloc, xstrdup, xasprintf): Add
11398 `warn_unused_result' attribute.
11399 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
11400 (grub_xasprintf, grub_xvasprintf): Likewise.
11401 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
11402
11403 2010-07-29 Robert Millan <rmh@gnu.org>
11404
11405 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
11406 (probe): Handle `PRINT_FS_LABEL'.
11407 (main): Handle `-t fs_label'.
11408
11409 2010-07-29 Robert Millan <rmh@gnu.org>
11410
11411 * configure.ac: Remove grub-mkisofs checks.
11412
11413 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
11414
11415 * util/ieee1275/grub-install.in: Don't use empty grub_device.
11416 Reported by: Lennart Sorensen.
11417
11418 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11419
11420 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
11421 prior to terminal_input/terminal_output separation. It's been over 1.5
11422 years and those versions weren't widely deployed.
11423
11424 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
11425
11426 * disk/raid.c (insert_array): Don't count named arrays when looking
11427 for unused array numbers.
11428 Reported and tested by: Michael Guntsche.
11429
11430 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11431
11432 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
11433 implementation of this so that grub-emu links again, with a note
11434 that this should support hotplugging in the future.
11435
11436 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11437
11438 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11439
11440 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11441
11442 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
11443 handle on failure.
11444 (grub_loopback_close): Remove empty function.
11445 (grub_loopback_dev): Remove close method.
11446
11447 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11448
11449 Disable EFI cursor when the EFI console becomes inactive.
11450
11451 * term/efi/console.c (grub_efi_console_init): New function.
11452 (grub_efi_console_fini): New function.
11453 (grub_console_term_output): Register init and fini methods.
11454
11455 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * tests/util/grub-shell-tester.in: Remove bashism and declare as
11458 sh script.
11459
11460 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11461
11462 * disk/loopback.c (grub_loopback): Replace filename with file.
11463 (delete_loopback): Handle new semantics.
11464 (grub_cmd_loopback): Likewise.
11465 (grub_loopback_iterate): Likewise.
11466 (grub_loopback_close): Likewise.
11467
11468 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
11471 with -p "".
11472 Reported by: Tito Keitel.
11473
11474 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * docs/grub.texi (Naming convention): Document new naming convention.
11477
11478 2010-07-20 Vadim Solomin <vadic052@gmail.com>
11479 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11480
11481 Generate device.map in something closer to the old ordering.
11482
11483 * util/deviceiter.c (struct device): New declaration.
11484 (compare_file_names): Rename to ...
11485 (compare_devices): ... this. Sort by kernel name in preference to
11486 the stable by-id name, but keep the latter as a fallback comparison.
11487 Update header comment.
11488 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
11489 of `struct device' rather than of plain file names.
11490
11491 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
11492
11493 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
11494 on i386.
11495
11496 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
11497
11498 * commands/acpi.c (setup_common_tables): Use sizeof instead of
11499 hardcoding size.
11500 (setv1table): Likewise.
11501
11502 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11503
11504 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
11505 removing the homehost if present.
11506 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
11507 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
11508 removing the homehost if present.
11509 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
11510 if possible.
11511 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
11512
11513 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
11514 parameter. Set its pointer target to 0.
11515 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
11516 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
11517 `data_offset' value from the superblock for 1.x metadata.
11518 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
11519 data on the device.
11520 (insert_array): Record the start sector of data on the device.
11521 (grub_raid_register): Pass start_sector parameters to
11522 grub_raid_list->detect and insert_array.
11523 * include/grub/raid.h (struct grub_raid_array): Add start_sector
11524 member.
11525 (struct grub_raid): Add start_sector parameter to `detect'.
11526
11527 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
11528 __attribute__ ((packed)), leaving a comment.
11529 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
11530 (grub_mdraid_detect_09): ... here and ...
11531 (grub_mdraid_detect_1x): ... here.
11532
11533 2010-07-20 Peter Henn <peter.henn@web.de>
11534
11535 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
11536 chunk size and disk size, which are already given as sector counts
11537 as distinct from the 0.90 units. Fetch the correct device number
11538 from the role table instead of using the table index.
11539
11540 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
11541
11542 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
11543 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
11544 (WriteMostly1): New macro.
11545 Set array->name to NULL for metadata format 0.90. Add support for
11546 metadata 1.x. Fix some comments.
11547 * disk/raid.c (): Add support for name based RAID arrays. Fix a
11548 few comments.
11549 * util/getroot.c (grub_util_get_grub_dev): Add support for
11550 /dev/md/name style devices.
11551
11552 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
11553
11554 * .bzrignore: Ignore 20_linux_xen.
11555
11556 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
11557
11558 * util/import_unicode.py: Remove unnecessary imports.
11559
11560 2010-07-17 Aleš Nesrsta <starous@volny.cz>
11561
11562 Hotplugging and USB hub support.
11563
11564 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
11565 (grub_ohci): Likewise.
11566 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
11567 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
11568 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
11569 (GRUB_OHCI_CTRL_EDS): Likewise.
11570 (GRUB_OHCI_BULK_EDS): Likewise.
11571 (GRUB_OHCI_TDS): Likewise.
11572 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
11573 (grub_ohci_ed_phys2virt): New function.
11574 (grub_ohci_virt_to_phys): Likewise.
11575 (grub_ohci_td_phys2virt): Likewise.
11576 (grub_ohci_td_virt2phys): Likewise.
11577 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
11578 attachment.
11579 (grub_ohci_find_ed): New function.
11580 (grub_ohci_alloc_td): Likewise.
11581 (grub_ohci_free_td): Likewise.
11582 (grub_ohci_free_tds): Likewise.
11583 (grub_ohci_transfer): Use previously allocated memory.
11584 (grub_ohci_portstatus): Reset status changed bit.
11585 (grub_ohci_detect_dev): Supply status changed.
11586 (grub_ohci_fini_hw): Free memory.
11587 (grub_ohci_restore_hw): Reallocate memory.
11588 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
11589 Reset status change.
11590 (grub_uhci_detect_dev): Supply status_change.
11591 * bus/usb/usb.c (attach_hooks): New var.
11592 (grub_usb_device_attach): New function.
11593 (grub_usb_register_attach_hook_class): Likewise.
11594 (grub_usb_unregister_attach_hook_class): Likewise.
11595 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
11596 (grub_usb_add_hub): Reset connection changed bit.
11597 (attach_root_port): New function.
11598 (grub_usb_root_hub): Likewise.
11599 (poll_nonroot_hub): Likewise.
11600 (grub_usb_poll_devices): Likewise.
11601 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
11602 * disk/usbms.c (grub_usbms_open): Use device hooks.
11603 (grub_usbms_iterate) :Poll devices.
11604 (grub_usbms_finddevs): Split into ...
11605 (grub_usbms_attach): ... this ...
11606 (grub_usbms_attach): ... and this.
11607 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
11608 in detect_dev.
11609 (grub_usb_interface): New fields attached and detach_hook.
11610 (grub_usb_attach_hook_class): New type.
11611 (grub_usb_attach_desc): New struct.
11612 (grub_usb_register_attach_hook_class): New function.
11613 (grub_usb_unregister_attach_hook_class): Likewise.
11614 (grub_usb_poll_devices): Likewise.
11615 (grub_usb_device_attach): Likewise.
11616 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
11617 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
11618
11619 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
11622 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
11623 delta determination style. Works with most NetBSD partitions too.
11624
11625 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11626
11627 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
11628 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
11629
11630 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
11633
11634 2010-07-14 Anton Blanchard <anton@samba.org>
11635
11636 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
11637 ET_DYN files.
11638
11639 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11640
11641 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
11642
11643 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
11644
11645 * kern/partition.c (grub_partition_check_containment): New function to
11646 check that a partition is physically contained in a parent. Since
11647 offsets are relative (and non-negative), this reduces to checking that
11648 the partition ends before its parent.
11649 (grub_partition_map_probe): Discard out-of-range sub-partitions.
11650 (grub_partition_iterate): Likewise.
11651 * include/grub/partition.h (grub_partition_map): Slightly more detailed
11652 comments.
11653 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
11654 partitions that start before their parent, and add debug printfs.
11655
11656 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11657
11658 * Makefile.in (.SUFFIX): Spell correctly, as ...
11659 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
11660 bare module name without `.mod', e.g. `test') tried to invoke a
11661 Modula-2 compiler.
11662
11663 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
11664
11665 * README: Point to the Info manual.
11666
11667 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
11668
11669 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
11670 2nd superblock position from partition size.
11671
11672 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
11673
11674 * Makefile.in (MAINTAINER_CLEANFILES): Remove
11675 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
11676 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
11677 outputs.
11678
11679 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11680
11681 Restructure SCSI .id handling.
11682 Reported and tested by: Aleš Nesrsta.
11683
11684 * disk/ata.c (grub_atapi_close): Removed. All users updated.
11685 (grub_atapi_dev): Changed .name to "ata". New field .id.
11686 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
11687 (grub_usbms_dev): New field .id.
11688 * disk/scsi.c (grub_scsi_iterate): Generate name.
11689 (grub_scsi_open): Parse name.
11690 * include/grub/scsi.h (grub_make_scsi_id): New function.
11691 (grub_scsi_dev): Change iterate and open to number instead of naming
11692 busses. All users updated.
11693 (grub_scsi): Remove name. Add .bus.
11694
11695 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 * commands/help.c (grub_cmd_help): Fix a typo.
11698
11699 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
11702 Reported and tested by: Colin Watson.
11703
11704 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11705
11706 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
11707 in this context.
11708
11709 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
11712
11713 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
11714
11715 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
11716 indentation.
11717
11718 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11719
11720 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
11721 and disk/raid6_recover.c.
11722 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11723 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
11724
11725 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11726
11727 * term/gfxterm.c (repaint_schedulded): Rename to ...
11728 (repaint_scheduled): ... this. Update all callers.
11729 (repaint_was_schedulded): Rename to ...
11730 (repaint_was_scheduled): ... this. Update all callers.
11731
11732 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11733
11734 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
11735 which we expect to be handled by upper layers.
11736
11737 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
11738
11739 * bus/usb/usbhub.c: #include time.h header.
11740
11741 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11742
11743 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
11744 entry_name also for entries without stat blocks (e.g. ".."); fixes
11745 corruption of the first entry in a directory.
11746
11747 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
11748
11749 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
11750 after setting gfxterm as the active terminal. GRUB_BACKGROUND
11751 doesn't work otherwise.
11752
11753 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11754
11755 * docs/grub.texi (Features): Update list of supported file systems.
11756 (GNU/Linux): Update for GRUB 2.
11757 (Serial terminal): Remove mention of --disable-serial, which was a
11758 GRUB Legacy configure option. Update instructions to use
11759 `terminal_input' and `terminal_output' rather than `terminal'.
11760 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
11761 configuration' and `Installing GRUB using grub-install'.
11762 (Menu entry editor): Update for GRUB 2.
11763 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
11764 Document new -a, -u, and -v options.
11765 (initrd): New section.
11766 (initrd16): New section.
11767 (linux): New section.
11768 (linux16): New section.
11769 (search): The `var' argument to `--set' is optional.
11770 (GRUB only offers a rescue shell): Go into a little more detail on
11771 drive ordering.
11772
11773 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11774
11775 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
11776
11777 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11778
11779 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
11780 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
11781
11782 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
11783
11784 * util/i386/pc/grub-setup.c (setup): Rename prefix to
11785 install_prefix, in line with install_dos_part and install_bsd_part.
11786 Add new prefix variable, which is copied to install_prefix after
11787 comparing core.img in memory with the one read from disk in the
11788 no-embedding case, and use that rather than overwriting
11789 install_prefix immediately when installing to a partition.
11790 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
11791 Bicakci.
11792
11793 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11794
11795 * configure.ac: Avoid == in test command, it's not portable.
11796 * util/grub.d/30_os-prober.in: Likewise.
11797
11798 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
11799
11800 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
11801
11802 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
11803
11804 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
11805 multiple (top-level) partmaps.
11806
11807 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 * util/i386/efi/grub-install.in: Don't use empty grub_device.
11810 Reported by: Tino Keitel.
11811
11812 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 Bidi and diacritics support.
11815
11816 * Makefile.in (widthspec.bin): New target.
11817 (widthspec.h): Likewise.
11818 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
11819 * autogen.sh: Generate unidata.c.
11820 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
11821 * commands/ls.c (grub_ls_list_devices): Likewise.
11822 (grub_ls_list_files): Likewise.
11823 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
11824 (grub_mini_cmd_lsmod): Likewise.
11825 * commands/read.c: Likewise.
11826 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
11827 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
11828 * lib/arg.c (grub_arg_show_help): Likewise.
11829 * lib/crypto.c (grub_password_get): Likewise.
11830 * normal/auth.c (grub_username_get): Likewise.
11831 * normal/misc.c (grub_normal_print_device_info): Likewise.
11832 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
11833 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
11834 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
11835 (normal/charset.c_DEPENDENCIES): New variable.
11836 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
11837 (pkglib_MODULES): Remove charset.mod.
11838 (charset_mod_SOURCES): Removed.
11839 (charset_mod_CFLAGS): Likewise.
11840 (charset_mod_LDFLAGS): Likewise.
11841 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
11842 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
11843 and term/tparm.c.
11844 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11845 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
11846 (kernel_img_HEADERS): Add terminfo.h.
11847 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
11848 Fill ->font. Reverse ascii bitmaps.
11849 (grub_font_get_xheight): New function.
11850 * font/font.c (grub_font_get_string_width): Moved from here ...
11851 * gfxmenu/font.c (grub_font_get_string_width): ... here.
11852 * font/font.c (grub_font_draw_string): Moved from here ...
11853 * gfxmenu/font.c (grub_font_draw_string): ... here.
11854 * font/font.c (grub_font_dup_glyph): New function.
11855 (grub_font_blit_glyph): Likewise.
11856 (grub_font_blit_glyph_mirror): Likewise.
11857 (blit_comb): Likewise.
11858 (grub_font_construct_dry_run): Likewise.
11859 (grub_font_get_constructed_device_width): Likewise.
11860 (grub_font_construct_glyph): Likewise.
11861 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
11862 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
11863 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
11864 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
11865 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
11866 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
11867 (grub_font_get_xheight): New proto.
11868 (grub_font_get_constructed_device_width): Likewise.
11869 (grub_font_construct_glyph): Likewise.
11870 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
11871 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
11872 * include/grub/font.h (grub_font_draw_string): Moved from here ...
11873 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
11874 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
11875 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
11876 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
11877 (grub_console_getcharwidth): Likewise.
11878 * include/grub/misc.h (grub_xputs): New proto.
11879 (grub_puts): Inlined.
11880 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
11881 (grub_normal_get_line_counter): Removed.
11882 (grub_install_newline_hook): Likewise.
11883 (grub_normal_get_char_counter): New proto.
11884 (grub_normal_reset_more): Likewise.
11885 (grub_xputs_normal): Likewise.
11886 * include/grub/powerpc/ieee1275/console.h: Removed.
11887 * include/grub/sparc64/ieee1275/console.h: Likewise.
11888 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
11889 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
11890 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
11891 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
11892 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
11893 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
11894 (grub_term_input): Pass reference to self. All users updated.
11895 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
11896 Pass reference to self. New fields normal_color, highlight_color and
11897 data. All users updated.
11898 (grub_putchar): Removed.
11899 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
11900 (grub_unicode_estimate_width): New function.
11901 (grub_term_getcharwidth): Add defaults.
11902 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
11903 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
11904 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
11905 (grub_cls): Remove EXPORT_FUNC.
11906 (grub_setcolorstate): Inline.
11907 (grub_newline_hook): Removed.
11908 * include/grub/terminfo.h: Rewritten. All users updated.
11909 * include/grub/unicode.h: New file.
11910 * include/grub/video.h (grub_video_signed_rect): New type.
11911 * kern/emu/console.c (grub_console_highlight_color): Removed.
11912 (grub_console_normal_color): Likewise.
11913 (grub_console_standard_color): Made static.
11914 (grub_ncurses_putchar): Remove mapping.
11915 (grub_ncurses_getcharwidth): Removed.
11916 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
11917 (grub_ncurses_setcolor): Removed.
11918 (grub_ncurses_getcolor): Likewise.
11919 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
11920 (grub_console_putchar): ... this.
11921 (grub_console_putchar): Handle argument difference.
11922 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
11923 console_init_early and console_init_lately.
11924 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
11925 * kern/misc.c (grub_puts): Removed.
11926 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
11927 (grub_vsnprintf_real): Remove str = NULL support.
11928 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
11929 * normal/charset.c (grub_utf8_to_ucs4): ... here.
11930 * kern/term.c (grub_putcode): Renamed to ...
11931 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
11932 (grub_putchar): Removed.
11933 (grub_xputs_dumb): New function.
11934 (grub_xputs): New variable.
11935 * lib/charset.c: Move from here ...
11936 * normal/charset.c: ... to here.
11937 (grub_ucs4_to_utf8): New function.
11938 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
11939 (join_types): New variable.
11940 (unpack_join): New function.
11941 (bidi_types): New variable.
11942 (unpack_bidi): New function.
11943 (get_bidi_type): Likewise.
11944 (get_join_type): Likewise.
11945 (is_mirrored): Likewise.
11946 (grub_unicode_get_comb_type): Likewise.
11947 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
11948 (is_type_after): Likewise.
11949 (grub_unicode_aglomerate_comb): Likewise.
11950 (bidi_line_wrap): Likewise.
11951 (grub_bidi_line_logical_to_visual): Likewise.
11952 (grub_bidi_logical_to_visual): Likewise.
11953 (grub_unicode_mirror_code): Likewise.
11954 (grub_unicode_shape_code): Likewise.
11955 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
11956 Don't use grub_putchar.
11957 * normal/main.c (grub_normal_init_page): Use grub_putcode.
11958 (grub_normal_reader_init): Likewise.
11959 (grub_xputs_saved): New variable.
11960 (GRUB_MOD_INIT): Set grub_xputs.
11961 (GRUB_MOD_FINI): Restore grub_xputs.
11962 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
11963 (menu_init): Avoid printing gfxmenu error.
11964 (show_menu): Use grub_normal_get_char_counter.
11965 * normal/menu_entry.c (update_screen): Fix out-of-array.
11966 (complete): Avoid NULL dereferencing.
11967 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
11968 * normal/menu_text.c (print_spaces): Removed.
11969 (grub_print_ucs4): Likewise.
11970 (grub_print_message_indented): Use grub_print_ucs4.
11971 (print_message): Use grub_putcode.
11972 (print_entry): Hanlde diacritics.
11973 * normal/term.c (term_state): New type.
11974 (grub_more_lines): Removed.
11975 (term_states): New variable.
11976 (grub_normal_line_counter): Renamed to ..
11977 (grub_normal_char_counter): ...this. All users updated.
11978 (grub_normal_get_line_counter): Renamed to ...
11979 (grub_normal_get_char_counter): ... this.
11980 (grub_normal_reset_more): New function.
11981 (process_newline): Removed.
11982 (print_more): New function.
11983 (grub_install_newline_hook): Removed.
11984 (map_code): New function.
11985 (grub_puts_terminal): Use grub_print_ucs4.
11986 (putglyph): New function.
11987 (putcode_real): Likewise.
11988 (grub_putcode): Use putcode_real.
11989 (get_maxwidth): New function.
11990 (get_startwidth): Likewise.
11991 (print_ucs4_terminal): Likewise.
11992 (find_term_state): Likewise.
11993 (put_glyphs_terminal): Likewise.
11994 (print_backlog): Likewise.
11995 (print_ucs4_real): Likewise.
11996 (grub_print_ucs4): Likewise.
11997 (grub_xputs_normal): Likewise.
11998 * term/efi/console.c (grub_console_putchar): Output diacritics.
11999 (grub_console_getcharwidth): Removed.
12000 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12001 * term/gfxterm.c (clear_char): Free chars.
12002 (scroll_up): Avoid leaking memory.
12003 (grub_gfxterm_putchar): Support diacritics.
12004 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12005 * term/i386/pc/console.c (grub_console_term_output): Declare as
12006 GRUB_TERM_CODE_TYPE_VGA.
12007 * term/i386/pc/vga.c (grub_vga_term): Declare as
12008 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12009 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12010 GRUB_TERM_CODE_TYPE_VGA.
12011 * term/i386/vga_common.c (map_char): Removed.
12012 (grub_console_putchar): Likewise.
12013 (grub_console_getcharwidth): Likewise.
12014 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12015 (colors): Reordered to match terminfo.
12016 (grub_ofconsole_normal_color): Removed.
12017 (grub_ofconsole_writeesc): Likewise.
12018 (grub_ofconsole_highlight_color): Likewise.
12019 (grub_ofconsole_getcharwidth): Likewise.
12020 (grub_ofconsole_setcolorstate): Likewise.
12021 (grub_ofconsole_setcolor): Likewise.
12022 (grub_ofconsole_getcolor): Likewise.
12023 (grub_ofconsole_readkey): Renamed to ...
12024 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12025 key.
12026 (grub_ofconsole_checkkey): Removed.
12027 (grub_ofconsole_getkey): Likewise.
12028 (grub_ofconsole_getxy): Likewise.
12029 (grub_ofconsole_gotoxy): Likewise.
12030 (grub_ofconsole_cls): Likewise.
12031 (grub_ofconsole_refresh): Likewise.
12032 (grub_ofconsole_terminfo_input): New struct.
12033 (grub_ofconsole_terminfo_output): Likewise.
12034 (grub_ofconsole_term_input): Use terminfo.
12035 (grub_ofconsole_term_output): Likewise.
12036 (grub_console_init): Split into ...
12037 (grub_console_init_early): ...this and ...
12038 (grub_console_init_lately): ...this. Use terminfo.
12039 (grub_ofconsole_putchar): Renamed to ...
12040 (put): ... this. Remove mapping.
12041 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12042 * term/serial.c: Simplify using terminfo.
12043 (xpos): Removed.
12044 (ypos): Likewise.
12045 (keep_track): Likewise.
12046 (registered): Likewise.
12047 (input_buf): Likewise.
12048 (npending): Likewise.
12049 (serial_translate_key_sequence): Likewise.
12050 (fill_input_buf): Likewise.
12051 (grub_serial_checkkey): Likewise.
12052 (grub_serial_getkey): Likewise.
12053 (grub_serial_getxy): Likewise.
12054 (grub_serial_gotoxy): Likewise.
12055 (grub_serial_putchar): Likewise.
12056 (grub_serial_cls): Likewise.
12057 (grub_serial_setcolorstate): Likewise.
12058 (grub_serial_setcursor): Likewise.
12059 (serial_hw_init): Use serial_hw_fetch.
12060 (grub_serial_terminfo_input): New variable.
12061 (grub_serial_terminfo_output): Likewise.
12062 (grub_serial_term_input): Use terminfo.
12063 (grub_serial_term_output): Likewise.
12064 * term/terminfo.c (putstr): Use put.
12065 (grub_terminfo_all_free): New function
12066 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12067 (grub_terminfo_output_register): New function.
12068 (grub_terminfo_output_unregister): Likewise.
12069 (grub_terminfo_getxy): Likewise.
12070 (grub_terminfo_readkey): Likewise.
12071 (grub_terminfo_checkkey): Likewise.
12072 (grub_terminfo_getkey): Likewise.
12073 (grub_terminfo_input_init): Likewise.
12074 (print_terminfo): Likewise.
12075 (grub_cmd_terminfo): Handle encoding.
12076 (grub_terminfo_gotoxy): Track position.
12077 (grub_terminfo_cls): Likewise.
12078 (grub_terminfo_putchar): Likewise.
12079 (grub_terminfo_setcolorstate): Handle colors
12080 (grub_terminfo_cursor_on): This ...
12081 (grub_terminfo_cursor_off): ... and this merged into ...
12082 (grub_terminfo_setcursor): ... this.
12083 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12084 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12085 * unicode/BidiMirroring.txt: Likewise.
12086 * unicode/UnicodeData.txt: Likewise.
12087 * unicode/COPYING: Likewise.
12088 * util/grub-editenv.c (grub_putchar): Removed.
12089 (grub_xputs_real): New function.
12090 (grub_xputs): New variable.
12091 * util/grub-fstest.c (grub_putchar): Removed.
12092 (grub_xputs_real): New function.
12093 (grub_xputs): New variable.
12094 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12095 (grub_xputs_real): New function.
12096 (grub_xputs): New variable.
12097 * util/grub-probe.c (grub_putchar): Removed.
12098 (grub_xputs_real): New function.
12099 (grub_xputs): New variable.
12100 * util/grub-script-check.c (grub_putchar): Removed.
12101 (grub_xputs_real): New function.
12102 (grub_xputs): New variable.
12103 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12104 (grub_xputs_real): New function.
12105 (grub_xputs): New variable.
12106 * util/import_unicode.py: New file.
12107 * util/grub-mkfont.c (ft_errmsgs): New array.
12108 (grub_glyph_info): Make bitmap a pointer.
12109 (file_formats): New type WIDTH_SPEC.
12110 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12111 (options): Add width-spec.
12112 (help): Likewise.
12113 (add_char): Renamed to ...
12114 (add_glyph): ... this.
12115 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12116 (glyph_replace): New type.
12117 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12118 (add_char): New function.
12119 (add_subst): Likewise.
12120 (process_cursive): Likewise.
12121 (add_font): Handle GSUB.
12122 (write_font_width_spec): New function.
12123 (main): Sort glyphs.
12124 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12125 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12126 * kern/term.c (grub_cls): Moved from here...
12127 * normal/term.c (grub_cls): ... here.
12128
12129 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12130
12131 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12132 suitable for using within the format argument of printf when
12133 converting grub_size_t.
12134 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12135 "x" to convert grub_size_t arguments.
12136
12137 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12138
12139 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12140 too long captions.
12141 (list_get_minimal_size): Take selection box into account.
12142
12143 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12146 NULL font.
12147
12148 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12149
12150 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12151 devices when iterating over /dev/disk/by-id; they will be handled
12152 later if appropriate, which they aren't always (e.g. LVM).
12153
12154 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12155
12156 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12157 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12158 fails.
12159 (grub_halt): Likewise.
12160 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12161 reset-all fails.
12162 (grub_halt): Don't return, even if all of shut-down, power-off, and
12163 poweroff fail.
12164
12165 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12166
12167 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12168 arguments, not three.
12169
12170 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12171
12172 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12173 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12174 LVM-on-RAID is handled correctly.
12175
12176 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12177
12178 * docs/grub.texi (Changes from GRUB Legacy): New section.
12179 (Future): Fix typo.
12180
12181 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12182
12183 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12184 grub.d/README accidentally ends up executable for one reason or
12185 another. Ignore it.
12186
12187 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12190 (gpt_partition_map_iterate): Support non-512B sectors.
12191
12192 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12193
12194 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12195 Tested by: Seth Goldberg.
12196
12197 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12198
12199 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12200 Properly align mbi.
12201 Reported by: Seth Goldberg.
12202
12203 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 * util/grub-mkrescue.in: Avoid module duplication.
12206
12207 2010-07-01 Sean Finney <seanius@seanius.net>
12208
12209 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12210
12211 2010-07-01 Sean Finney <seanius@seanius.net>
12212
12213 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12214
12215 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12216
12217 * disk/lvm.c (grub_lvm_checkvalue): New function.
12218 (grub_lvm_check_flag): Likewise.
12219
12220 2010-07-01 Robert Millan <rmh@gnu.org>
12221
12222 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12223 Support 'p' as partition separator on kernel of FreeBSD (used
12224 with GPT labels).
12225 (grub_util_biosdisk_get_grub_dev): Likewise.
12226
12227 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 Yeeloong firmware port.
12230
12231 * boot/mips/yeeloong/fwstart.S: New file.
12232 * bus/cs5536.c (gpiodump): New const.
12233 (set_io_space): New function.
12234 (set_iod): Likewise.
12235 (set_p2d): Likewise.
12236 (grub_cs5536_init_geode): Likewise.
12237 * commands/mips/yeeloong/lsspd.c: New file.
12238 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12239 (serial_mod_SOURCES): New variable.
12240 (serial_mod_CFLAGS): Likewise.
12241 (serial_mod_LDFLAGS): Likewise.
12242 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12243 term/terminfo.c and term/tparm.c.
12244 (pkglib_IMAGES): Add fwstart.img.
12245 (fwstart_img_SOURCES): New variable.
12246 (fwstart_img_CFLAGS): Likewise.
12247 (fwstart_img_ASFLAGS): Likewise.
12248 (fwstart_img_LDFLAGS): Likewise.
12249 (fwstart_img_FORMAT): Likewise.
12250 (pkglib_MODULES): Add lsspd.mod.
12251 (lsspd_mod_SOURCES): New variable.
12252 (lsspd_mod_CFLAGS): Likewise.
12253 (lsspd_mod_LDFLAGS): Likewise.
12254 (pkglib_MODULES): Add halt.mod.
12255 (halt_mod_SOURCES): New variable.
12256 (halt_mod_CFLAGS): Likewise.
12257 (halt_mod_LDFLAGS): Likewise.
12258 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12259 (serial_mod_SOURCES): Removed.
12260 (serial_mod_CFLAGS): Likewise.
12261 (serial_mod_LDFLAGS): Likewise.
12262 * disk/ata.c (check_device): New function.
12263 (grub_ata_device_initialize): Use check_device.
12264 (grub_ata_iterate): Recheck devices.
12265 (grub_ata_open): Likewise.
12266 (grub_atapi_iterate): Likewise.
12267 (grub_atapi_open): Likewise.
12268 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12269 (GRUB_ATA_CH1_PORT1): Likewise.
12270 (GRUB_ATA_CH0_PORT2): Likewise.
12271 (GRUB_ATA_CH1_PORT2): Likewise.
12272 * include/grub/mips/loongson.h: New file.
12273 * include/grub/mips/yeeloong/ec.h: Likewise.
12274 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12275 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12276 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12277 * include/grub/misc.h (grub_halt): Declare as noreturn.
12278 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12279 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12280 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12281 (UART_ENABLE_DTRRTS): Likewise.
12282 (UART_ENABLE_MODEM): Removed.
12283 (UART_ENABLE_OUT2): New const.
12284 * include/grub/term.h (grub_term_register_input_active): New function.
12285 (grub_term_register_output_active): Likewise.
12286 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12287 argument.
12288 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12289 (init_pci): New function.
12290 (grub_machine_init): Execute platform init when firmware. Init serial.
12291 (grub_halt): Implement.
12292 (grub_exit): Likewise.
12293 (grub_reboot): Likewise.
12294 * term/serial.c (serial_hw_init): Update macros.
12295 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12296 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12297 (image_targets): New target mipsel-yeeloong-flash.
12298 (generate_image): Support IMAGE_YEELOONG_FLASH.
12299 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12300 (grub_video_sm712_setup): Init card.
12301 (grub_video_sm712_set_palette): Removed.
12302 * video/sm712_init.c: New file.
12303
12304 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12305
12306 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12307 PATH when running help2man and then run it on the unadorned
12308 executable names, rather than passing $(builddir)/* paths to
12309 help2man. This avoids the build directory ending up in generated
12310 manual pages.
12311
12312 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12313
12314 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12315 to avoid accidents when debugging with 'sh -x'.
12316 * util/grub-mkrescue.in: Likewise.
12317 * util/grub.d/00_header.in: Likewise.
12318 * util/grub.d/10_hurd.in: Likewise.
12319 * util/grub.d/10_kfreebsd.in: Likewise.
12320 * util/grub.d/10_linux.in: Likewise.
12321 * util/grub.d/10_netbsd.in: Likewise.
12322 * util/grub.d/10_windows.in: Likewise.
12323 * util/grub.d/20_linux_xen.in: Likewise.
12324 * util/grub.d/30_os-prober.in: Likewise.
12325 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12326
12327 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12328
12329 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
12330 last character in the buffer.
12331 Reported by: Vladimir Serbinenko.
12332
12333 2010-06-29 Robert Millan <rmh@gnu.org>
12334
12335 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
12336 (Command-line and menu entry commands): Document `badram' command.
12337
12338 2010-06-28 Robert Millan <rmh@gnu.org>
12339
12340 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
12341 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
12342 command using ${GRUB_BADRAM} as parameter.
12343
12344 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12345
12346 * docs/grub.texi (Device map): New section.
12347 (Themes): New section (stub).
12348 * Makefile.in (docs/grub.info): The info documentation now builds
12349 without errors. Make sure it stays that way.
12350
12351 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 Use normal parser for menu entries.
12354 Reported by: Thomas Frauendorfer
12355
12356 * include/grub/parser.h (grub_parser_execute): Don't export.
12357 * normal/menu.c (grub_menu_execute_entry_real): New function.
12358 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
12359
12360 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12361
12362 * docs/grub.texi (Embedded configuration): New section (replacing
12363 old "Preset Menu" stub).
12364 (Images): New section.
12365 (configfile): Note that any menu entries defined in `file' are shown
12366 immediately.
12367
12368 2010-06-28 Josh Triplett <josh@joshtriplett.org>
12369
12370 * mmap/i386/pc/mmap_helper.S: Set CF on return.
12371
12372 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12373
12374 * util/grub-install.in: Add --debug-image= option.
12375
12376 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12377
12378 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
12379 possible on Linux.
12380
12381 * util/deviceiter.c (check_device): Rename to ...
12382 (check_device_readable_unique): ... this. Update all callers.
12383 Maintain and check a list of which devices (by canonicalized name)
12384 have already been seen.
12385 (clear_seen_devices): New function.
12386 (compare_file_names) [__linux__]: New function.
12387 (grub_util_iterate_devices): Clear the list of seen devices on exit
12388 and (just in case) on entry.
12389 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
12390 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
12391 seen-devices list, superseded by general code in check_device.
12392
12393 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
12394
12395 * commands/cat.c (options): New variable.
12396 (grub_cmd_cat): Parse options. If the --dos option is given, print
12397 DOS-style "\r\n" line endings as simple newlines (Debian bug
12398 #586358).
12399 (GRUB_MOD_INIT): Use extcmd.
12400 (GRUB_MOD_FINI): Likewise.
12401 * docs/grub.texi (cat): Document --dos.
12402
12403 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 XEN with Linux grub-mkconfig support.
12406
12407 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
12408 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
12409 GRUB_CMDLINE_XEN_DEFAULT.
12410 * util/grub.d/20_linux_xen.in: New file.
12411
12412 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
12413
12414 Initialise VGA video on qemu ourselves.
12415
12416 * boot/i386/qemu/boot.S: Don't call 0xc000.
12417 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
12418 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
12419 (kernel_img_HEADERS): Add pci.h.
12420 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
12421 * configure.ac: Force unifont on qemu and yeeloong.
12422 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
12423 (grub_vga_palette_write): Use correct register.
12424 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
12425 Call grub_qemu_init_cirrus.
12426 * kern/i386/qemu/init.c: New file.
12427 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
12428
12429 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
12430
12431 2010-06-26 Pavel Roskin <proski@gnu.org>
12432
12433 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
12434 13.
12435
12436 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12437
12438 * docs/grub.texi (Simple configuration): Explain that
12439 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
12440 set to `true' to disable their respective recovery entries, not
12441 merely set.
12442
12443 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
12444
12445 Make the `source' command slightly faster.
12446
12447 * normal/main.c (grub_normal_execute): Don't re-read list files when
12448 nested.
12449
12450 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12451
12452 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
12453 field position and mask size to red fields from mode_info, not
12454 green.
12455 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
12456 Remove redundant tag->common.framebuffer_type assignment.
12457 Reported by: Seth Goldberg.
12458
12459 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
12460
12461 Sync up other versions of the Linux loader with Robert Millan's
12462 change of 2010-01-09, "Make loader output a bit more user-friendly".
12463
12464 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
12465 grub_dprintf().
12466 (grub_cmd_linux): Likewise.
12467 (grub_cmd_initrd): Likewise.
12468 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
12469 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12470
12471 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
12472
12473 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
12474 larger than MEMORY_MAP_SIZE.
12475
12476 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
12477
12478 Fix parallel build.
12479
12480 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
12481 dependency.
12482 * script/parser.y: #include grub_script.tab.h header.
12483
12484 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 Support >3GiB and <16MiB RAM in i386-qemu.
12487
12488 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
12489 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
12490 (grub_lower_mem): Removed.
12491 (grub_upper_mem): Likewise.
12492 (mem_size): Made static.
12493 (above_4g): New variable.
12494 (grub_machine_mmap_init): Detect small mem_size and above_4g.
12495 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
12496 support.
12497
12498 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12499
12500 Cirrus 5446 and Bochs video cards support.
12501
12502 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
12503 video_bochs.mod
12504 (video_cirrus_mod_SOURCES): New variable.
12505 (video_cirrus_mod_CFLAGS): Likewise.
12506 (video_cirrus_mod_LDFLAGS): Likewise.
12507 (video_bochs_mod_SOURCES): Likewise.
12508 (video_bochs_mod_CFLAGS): Likewise.
12509 (video_bochs_mod_LDFLAGS): Likewise.
12510 * include/grub/vga.h: New file.
12511 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
12512 (grub_video_fb_set_page_t): New type.
12513 (grub_video_fb_setup): New prototype.
12514 (grub_video_fb_swap_buffers): Likewise.
12515 (grub_video_fb_get_info_and_fini): Likewise.
12516 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
12517 (CRTC_DATA_PORT): Likewise.
12518 (CRTC_CURSOR): Likewise.
12519 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12520 (CRTC_CURSOR_ADDR_LOW): Likewise.
12521 (CRTC_CURSOR_DISABLE): Likewise.
12522 (update_cursor): Use grub_vga_cr_write.
12523 (grub_vga_text_setcursor): Likewise.
12524 * video/bochs.c: New file.
12525 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
12526 (palette): Likewise.
12527 (palette_size): Likewise.
12528 (framebuffer): New variable.
12529 (grub_video_fb_init): Use 'framebuffer'.
12530 (grub_video_fb_fini): Likewise.
12531 (grub_video_fb_get_info): Likewise.
12532 (grub_video_fb_get_palette): Likewise.
12533 (grub_video_fb_set_palette): Likewise.
12534 (grub_video_fb_set_viewport): Likewise.
12535 (grub_video_fb_get_viewport): Likewise.
12536 (grub_video_fb_map_color): Likewise.
12537 (grub_video_fb_map_rgb): Likewise.
12538 (grub_video_fb_map_rgba): Likewise.
12539 (grub_video_fb_unmap_color): Likewise.
12540 (grub_video_fb_unmap_color_int): Likewise.
12541 (grub_video_fb_fill_rect): Likewise.
12542 (grub_video_fb_blit_bitmap): Likewise.
12543 (grub_video_fb_blit_render_target): Likewise.
12544 (grub_video_fb_scroll): Likewise.
12545 (grub_video_fb_create_render_target): Likewise.
12546 (grub_video_fb_doublebuf_blit_init): Likewise.
12547 (grub_video_fb_set_active_render_target): Handle doublebuffering.
12548 (doublebuf_pageflipping_update_screen): New function.
12549 (doublebuf_pageflipping_init): Likewise.
12550 (grub_video_fb_setup): Likewise.
12551 (grub_video_fb_swap_buffers): Likewise.
12552 (grub_video_fb_get_info_and_fini): Likewise.
12553 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
12554 All users updated.
12555 (doublebuf_pageflipping_commit): Restructured into ...
12556 (doublebuf_pageflipping_set_page): ... this.
12557 (doublebuf_pageflipping_update_screen): Removed.
12558 (doublebuf_pageflipping_init): Likewise.
12559 (double_buffering_init): Likewise.
12560 (grub_video_vbe_setup): Use grub_video_fb_setup.
12561 (grub_video_vbe_swap_buffers): Removed.
12562 (grub_video_vbe_set_active_render_target): Likewise.
12563 (grub_video_vbe_get_active_render_target): Likewise.
12564 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
12565 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
12566 grub_video_fb_set_active_render_target and
12567 grub_video_fb_get_active_render_target.
12568 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
12569 (SEQUENCER_DATA_PORT): Likewise.
12570 (MAP_MASK_REGISTER): Likewise.
12571 (CRTC_ADDR_PORT): Likewise.
12572 (CRTC_DATA_PORT): Likewise.
12573 (START_ADDR_HIGH_REGISTER): Likewise.
12574 (START_ADDR_LOW_REGISTER): Likewise.
12575 (GRAPHICS_ADDR_PORT): Likewise.
12576 (GRAPHICS_DATA_PORT): Likewise.
12577 (READ_MAP_REGISTER): Likewise.
12578 (INPUT_STATUS1_REGISTER): Likewise.
12579 (INPUT_STATUS1_VERTR_BIT): Likewise.
12580 (get_map_mask): Use grub_vga_sr_read.
12581 (set_map_mask): Use grub_vga_sr_write.
12582 (set_read_map): Use grub_vga_gr_write.
12583 (set_start_address): Use grub_vga_cr_write.
12584 * video/sm712.c (framebuffer): Remove leftover fields.
12585
12586 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
12587
12588 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
12589 setting GRUB_VIDEO_BACKEND. Make it available as a user override
12590 instead. Replace the gfxterm backend check with a check that
12591 ${GRUB_PREFIX}/video.lst is non-empty.
12592 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
12593 again.
12594 (load_video): New generated function. Call it before loading
12595 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
12596 * util/grub.d/10_linux.in (linux_entry): Call load_video.
12597 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
12598 * docs/grub.texi (Simple configuration): Document
12599 GRUB_VIDEO_BACKEND.
12600
12601 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 Use video functions in linux and xnu loaders.
12604
12605 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
12606 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
12607 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
12608 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
12609 loader/i386/pc/linux.c.
12610 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
12611 (find_line_len): Removed.
12612 (find_framebuf): Likewise.
12613 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
12614 * loader/i386/efi/xnu.c: Removed.
12615 * loader/i386/pc/xnu.c: Moved from here...
12616 * loader/i386/xnu.c: ...here.
12617
12618 Enable priorities in video drivers.
12619
12620 * include/grub/video.h (grub_video_adapter_prio_t): New type.
12621 (grub_video_adapter): New field prio.
12622 (grub_video_register): Respect prio when inserting.
12623 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
12624 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
12625 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
12626 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
12627 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
12628 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
12629 * video/sm712.c (grub_video_sm712_adapter): Likewise.
12630
12631 Fix SDL driver ID.
12632
12633 * include/grub/video.h (grub_video_driver_id_t): New value
12634 GRUB_VIDEO_DRIVER_SDL.
12635 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
12636
12637 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12638
12639 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
12640 argument to printf.
12641 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12642
12643 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12644
12645 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
12646 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12647
12648 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12649
12650 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
12651 directly, and recommend grub-install instead.
12652 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
12653
12654 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
12655
12656 Fix i386-pc prefix handling with nested partitions (Debian bug
12657 #585068). Note that the case where the core image is booted using
12658 multiboot and relocated from its original location still requires
12659 more work.
12660
12661 * kern/i386/pc/init.c (make_install_device): If the prefix starts
12662 with "(,", fill the boot drive in between those two characters, but
12663 expect that a full partition specification including partition map
12664 names will follow.
12665 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
12666 specified, write a prefix without the drive name but including a
12667 full partition specification.
12668
12669 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
12670
12671 * util/grub-mkconfig.in: Ignore non-option arguments, for
12672 compatibility with older versions (before 2010-06-12) which did the
12673 same. In particular, this makes it easier to ship an update-grub
12674 wrapper which is compatible with that used with GRUB Legacy (Debian
12675 bug #586056).
12676
12677 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12678
12679 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
12680 for manual page generation.
12681
12682 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12683
12684 * po/POTFILES: Remove leftover commands/handler.c.
12685
12686 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12687
12688 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
12689 left this script non-functional.
12690
12691 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
12692
12693 * docs/man/grub-emu.h2m: New file.
12694
12695 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
12696
12697 * docs/grub.texi (Commands): Document reduced command set in rescue
12698 mode.
12699 (cpuid): New section.
12700
12701 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
12702
12703 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
12704 new partition naming style.
12705 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
12706
12707 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
12708
12709 Add "-o grub.iso" like cmdline options support.
12710
12711 * util/grub-install.in: Improve cmdline option parsing.
12712 * util/grub-mkconfig.in: Likewise.
12713 * util/grub-mkrescue.in: Likewise.
12714 * util/grub-reboot.in: Likewise.
12715 * util/grub-set-default.in: Likewise.
12716 * util/i386/efi/grub-install.in: Likewise.
12717 * util/ieee1275/grub-install.in: Likewise.
12718 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12719
12720 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12721
12722 * .bzrignore: Ignore 41_custom.
12723
12724 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12725
12726 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
12727
12728 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12729
12730 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
12731 prototype declarations.
12732
12733 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
12734 generating fs, partmap, and video lists.
12735 * include/grub/fs.h (grub_fs_register): Omit prototype if
12736 GRUB_LST_GENERATOR is defined.
12737 * include/grub/partition.h (grub_partition_map_register): Likewise.
12738 * include/grub/video.h (grub_video_register): Likewise.
12739
12740 2010-06-12 Javier Martín <lordhabbit@gmail.com>
12741
12742 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
12743
12744 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
12745
12746 * util/grub-mkrescue.in: Support --xorriso argument.
12747
12748 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
12751 Suggested by: Thomas Schmitt.
12752
12753 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
12756 Suggested by: Thomas Schmitt.
12757
12758 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 custom.cfg support.
12761
12762 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
12763 * util/grub.d/41_custom.in: New file.
12764
12765 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
12766
12767 * util/grub-mkrescue.in (make_image): Remove sh module, which has
12768 been merged back into normal.
12769
12770 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12771
12772 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
12773 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
12774
12775 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
12776
12777 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
12778 when generating manual pages.
12779 * docs/man/grub-bin2h.h2m: New file.
12780 * docs/man/grub-editenv.h2m: New file.
12781 * docs/man/grub-fstest.h2m: New file.
12782 * docs/man/grub-install.h2m: New file.
12783 * docs/man/grub-macho2img.h2m: New file.
12784 * docs/man/grub-mkconfig.h2m: New file.
12785 * docs/man/grub-mkdevicemap.h2m: New file.
12786 * docs/man/grub-mkfont.h2m: New file.
12787 * docs/man/grub-mkimage.h2m: New file.
12788 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
12789 * docs/man/grub-mkrelpath.h2m: New file.
12790 * docs/man/grub-mkrescue.h2m: New file.
12791 * docs/man/grub-ofpathname.h2m: New file.
12792 * docs/man/grub-pe2elf.h2m: New file.
12793 * docs/man/grub-probe.h2m: New file.
12794 * docs/man/grub-reboot.h2m: New file.
12795 * docs/man/grub-script-check.h2m: New file.
12796 * docs/man/grub-set-default.h2m: New file.
12797 * docs/man/grub-setup.h2m: New file.
12798
12799 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 Use FOR_* macros instead of *_iterate whenever possible.
12802
12803 * commands/handler.c: Removed.
12804 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
12805 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
12806 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12807 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
12808 (grub_probe_SOURCES): Remove kern/parser.c.
12809 (util/grub-script-check.c_DEPENDENCIES): Removed.
12810 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
12811 and grub_script_check_init.c.
12812 (grub_script_check_init.lst): Removed.
12813 (grub_script_check_init.h): Likewise.
12814 (grub_script_check_init.c): Likewise.
12815 (pkglib_MODULES): Remove handler.mod and sh.mod.
12816 (handler_mod_SOURCES): Removed.
12817 (handler_mod_CFLAGS): Likewise.
12818 (handler_mod_LDFLAGS): Likewise.
12819 (normal_mod_SOURCES): Remove normal/handler.c.
12820 Add script/main.c, script/script.c, script/execute.c,
12821 script/function.c, script/lexer.c, grub_script.tab.c
12822 and grub_script.yy.c.
12823 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12824 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12825 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
12826 (grub_setup_SOURCES): Remove kern/parser.c.
12827 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12828 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
12829 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
12830 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12831 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12832 (grub_setup_SOURCES): Remove kern/parser.c.
12833 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
12834 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
12835 * include/grub/command.h (grub_command_iterate): Removed.
12836 (FOR_COMMANDS): New macro.
12837 * include/grub/dl.h (grub_dl): New member next.
12838 (grub_dl_iterate): Removed.
12839 (grub_dl_head): New variable declaration.
12840 (FOR_DL_MODULES): New macro.
12841 * include/grub/fs.h: Include list.h.
12842 (grub_fs): Make next first element.
12843 (grub_fs_list): New variable declaration.
12844 (grub_fs_register): Make inline.
12845 (grub_fs_unregister): Likewise.
12846 (grub_fs_iterate): Removed.
12847 (FOR_FILESYSTEMS): New macro.
12848 * include/grub/handler.h: Removed.
12849 * include/grub/list.h (grub_list_hook_t): Removed.
12850 (grub_list_test_t): Likewise.
12851 (grub_list_pop): Likewise.
12852 (grub_list_iterate): Likewise.
12853 (grub_list_insert): Likewise.
12854 (FOR_LIST_ELEMENTS): New macro.
12855 * include/grub/parser.h (grub_parser_class): Removed.
12856 (grub_parser_register): Likewise.
12857 (grub_parser_unregister): Likewise.
12858 (grub_parser_get_current): Likewise.
12859 (grub_parser_set_current): Likewise.
12860 (grub_register_rescue_parser): Likewise.
12861 (grub_rescue_parse_line): New function.
12862 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
12863 * include/grub/script_sh.h (grub_script_function_list): New variable
12864 declaration.
12865 (FOR_SCRIPT_FUNCTIONS): New macro.
12866 (grub_script_function_iterate): Removed.
12867 (grub_normal_parse_line): New prototype.
12868 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
12869 (FOR_DISABLED_TERM_INPUTS): Likewise.
12870 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
12871 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
12872 * include/grub/video.h (grub_video_adapter): Move 'next' to first
12873 element.
12874 (grub_video_register): Inline.
12875 (grub_video_unregister): Likewise.
12876 (grub_video_adapter_list): New variable declaration.
12877 (grub_video_iterate): Removed.
12878 (FOR_VIDEO_ADAPTERS): New macro.
12879 * kern/dl.c (grub_dl_list): Removed. All users updated.
12880 (grub_dl_iterate): Removed.
12881 * kern/fs.c (grub_fs_list): Make global.
12882 (grub_fs_register): Removed.
12883 (grub_fs_unregister): Likewise.
12884 (grub_fs_iterate): Likewise.
12885 * kern/handler.c: Removed.
12886 * kern/list.c (grub_list_pop): Removed.
12887 (grub_list_iterate): Likewise.
12888 (grub_list_insert): Likewise.
12889 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
12890 (grub_prio_list_insert): Don't use grub_list_insert.
12891 * kern/main.c (grub_register_rescue_parser): Don't call
12892 grub_register_rescue_parser.
12893 * kern/parser.c (grub_parser_class): Removed.
12894 (grub_parser_execute): Use grub_rescue_parse_line.
12895 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
12896 (grub_rescue_parser): Removed.
12897 (grub_register_rescue_parser): Likewise.
12898 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
12899 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
12900 (grub_auth_check_authentication): Likewise.
12901 * normal/completion.c (iterate_command): Removed.
12902 (grub_normal_do_completion): Use FOR_COMMANDS.
12903 * normal/handler.c: Removed.
12904 * normal/main.c (read_config_file): Remove parser changing.
12905 (grub_normal_execute): Don't call read_handler_list.
12906 (grub_normal_read_line_real): Statically allocate prompt.
12907 (grub_cmdline_run): Use grub_normal_parse_line.
12908 (GRUB_MOD_FINI): Don't call free_handler_list.
12909 * normal/menu_entry.c (run): Likewise.
12910 * script/function.c (grub_script_function_list): Make global.
12911 (grub_script_function_iterate): Removed.
12912 * script/main.c (grub_normal_parse_line): Make global.
12913 (grub_sh_parser): Removed.
12914 (GRUB_MOD_INIT): Likewise.
12915 (GRUB_MOD_FINI): Likewise.
12916 * tests/lib/functional_test.c (grub_functional_test): Use
12917 FOR_LIST_ELEMENTS.
12918 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
12919 (grub_test_run): Use FOR_LIST_ELEMENTS.
12920 * tests/lib/unit_test.c (main): Likewise.
12921 * util/deviceiter.c (grub_util_iterate_devices): Don't use
12922 grub_list_pop.
12923 * util/grub-fstest.c (grub_term_input_class): Removed.
12924 (grub_term_output_class): Likewise.
12925 * util/grub-probe.c: Likewise.
12926 * util/i386/pc/grub-setup.c: Likewise.
12927 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12928 * util/grub-script-check.c (main): Don't call grub_init_all and
12929 grub_fini_all.
12930 * video/video.c (grub_video_adapter_list): Make global.
12931 (grub_video_register): Removed.
12932 (grub_video_unregister): Likewise.
12933 (grub_video_iterate): Likewise.
12934
12935 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
12938 reported by Henrique Ferreiro.
12939
12940 2010-06-09 Robert Millan <rmh@gnu.org>
12941
12942 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
12943 ones, when both are available.
12944
12945 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12946
12947 Make --version uniform and avoid hard-coded program name.
12948
12949 * util/grub-mkimage.c (main): Use `program_name' instead of
12950 hard-coded string.
12951 * util/i386/pc/grub-setup.c (main): Likewise.
12952 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
12953 * util/grub-install.in: Save the basename of $0 in $self, and use the
12954 latter in informational messages. Use the same format for --version
12955 as the binary programs.
12956 * util/grub-mkconfig.in: Likewise.
12957 * util/grub-mkrescue.in: Likewise.
12958 * util/grub-reboot.in: Likewise.
12959 * util/grub-set-default.in: Likewise.
12960 * util/i386/efi/grub-install.in: Likewise.
12961 * util/ieee1275/grub-install.in: Likewise.
12962 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12963
12964 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12965
12966 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
12967 embedding area. Use <= instead of == when checking for non-emptiness.
12968
12969 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12970
12971 * configure.ac: Add `.' to the directories searched for unifont.
12972
12973 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12974
12975 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
12976 grub_script.yy.h.
12977
12978 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12979
12980 * docs/grub.texi (History): Expand to cover GRUB 2.
12981 (Serial terminal): Refer to `terminal_input' and `terminal_output'
12982 commands, not `terminal'.
12983 (serial): Likewise.
12984 (terminal_input): New section.
12985 (terminal_output): New section.
12986 (uppermem): New section (stub).
12987 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
12988
12989 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
12990
12991 * docs/grub.texi (Security): Menu entries are unrestricted by
12992 default, not restricted to superusers as I had previously thought.
12993 Reword to account for this.
12994
12995 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
12996
12997 * kern/emu/misc.c (device_mapper_null_log): New function.
12998 (grub_device_mapper_supported): New function.
12999 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13000 prototype.
13001 * kern/emu/hostdisk.c (find_partition_start): Check whether
13002 device-mapper is supported before trying to use it.
13003 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13004
13005 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13006
13007 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13008 (File name syntax): Likewise.
13009 (help): --all is no longer supported in GRUB 2. Be more precise
13010 about pattern matching.
13011
13012 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13013
13014 * normal/completion.c (grub_normal_do_completion): When completing
13015 arguments to "set" and the current word contains an equals sign,
13016 skip to after the equals sign before starting completion.
13017
13018 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13019
13020 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13021
13022 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13023
13024 * docs/grub.texi (Network): New section.
13025 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13026 `(nd)' as in GRUB Legacy.
13027 (pxe_unload): New section.
13028
13029 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13030
13031 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13032 in the rescue shell, so recommend using `set' instead. Thanks,
13033 Jordan Uggla.
13034
13035 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13036
13037 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13038 (password): New section.
13039 (password_pbkdf2): New section.
13040 (search): New section.
13041 (Security): New section.
13042 (Troubleshooting): New section, currently very incomplete.
13043 (Invoking grub-mkpasswd-pbkdf2): New section.
13044 (Internals): New section, currently very incomplete.
13045
13046 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13047
13048 * util/grub.d/00_header.in: Add some more quoting (of
13049 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13050 work again.
13051 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13052
13053 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13054
13055 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13056 to `count', fixing variable shadowing that broke the -c option.
13057
13058 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13059
13060 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13061 in case they contain spaces.
13062
13063 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13064
13065 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13066 "part_" to partmap module names, in line with grub-install.
13067 Reported by: Jindřich Makovička (Debian bug #584426).
13068
13069 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13070
13071 * util/grub-mkimage.c: Make target-related error messages slightly
13072 more helpful; -O talks about "format". Explicitly point to the use
13073 of -O if no target is specified.
13074 Reported by: Didier Raboud (Debian bug #584415).
13075
13076 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13077
13078 * INSTALL: Document several build requirements for optional features
13079 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13080
13081 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13082
13083 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13084 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13085 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13086
13087 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13088
13089 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13090 Thanks to Jordan Uggla for spotting this.
13091
13092 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13093
13094 Finally make USB usable.
13095
13096 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13097 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13098 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13099 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13100 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13101 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13102 (GRUB_OHCI_FSMPS): Likewise.
13103 (GRUB_OHCI_PERIODIC_START): Likewise.
13104 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13105 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13106 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13107 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13108 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13109 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13110 (grub_ohci_transaction): Likewise.
13111 (grub_ohci_transfer): Improve condition detection algorithms.
13112 Handle toggle property. Program the transactions correctly.
13113 Improve error handling. Various important fixups.
13114 (grub_ohci_portstatus): Put register writes in right order.
13115 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13116 (grub_uhci_transfer): Don't show "failed" message on success.
13117 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13118 array.
13119 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13120 determine its size.
13121 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13122 before initialization is completed. Use IN direction for empty
13123 transfers. Use last_trans and compute toggle.
13124 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13125 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13126 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13127 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13128 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13129 (grub_usb_device): Increase toggle to 256.
13130 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13131 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13132 GRUB_USBMS_SUBCLASS_SFF8070.
13133 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13134 (grub_scsi_inquiry): New member page and alloc_length.
13135 (grub_scsi_request_sense): New structure.
13136 (grub_scsi_request_sense_data): Likewise.
13137 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13138 control.
13139 * disk/scsi.c (grub_scsi_request_sense): New function.
13140 (grub_scsi_test_unit_ready): Likewise.
13141 (grub_scsi_inquiry): Fill new fields.
13142 (grub_scsi_read_capacity): Likewise.
13143 (grub_scsi_read10): Add request sense at the end.
13144 (grub_scsi_read12): Likewise.
13145 (grub_scsi_write10): Likewise.
13146 (grub_scsi_write12): Likewise.
13147 (grub_scsi_open): Add Test Unit Ready.
13148 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13149 Support additional subclasses. Con't clear halt yet. Activate the
13150 proper config. Calculate LUNs correctly.
13151 (grub_usbms_transfer): Various important fixups.
13152
13153 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13154
13155 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13156 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13157 (grub_ohci_fini_hw): New function.
13158 (grub_ohci_restore_hw): Likewise.
13159 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13160 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13161 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13162
13163 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Dedicated DMA allocations.
13166
13167 * bus/pci.c (grub_memalign_dma32): New function
13168 (grub_dma_free): Likewise.
13169 (grub_dma_get_virt): Likewise.
13170 (grub_dma_get_phys): Likewise.
13171 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13172 (grub_ohci_pci_iter): Use dma32_alloc.
13173 (grub_ohci_transfer): Likewise.
13174 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13175 (grub_usb_bulk_readwrite): Likewise.
13176 * include/grub/pci.h: Add declarations.
13177
13178 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 CS5536 support.
13181
13182 * bus/cs5536.c: New file.
13183 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13184 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13185 (cs5536_mod_SOURCES): New variable.
13186 (cs5536_mod_CFLAGS): Likewise.
13187 (cs5536_mod_LDFLAGS): Likewise.
13188 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13189 machine/pci.h.
13190 (kernel_img_SOURCES): Add bus/cs5536.c.
13191 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13192 usb_keyboard.mod.
13193 (usb_mod_SOURCES): New variable.
13194 (usb_mod_CFLAGS): New variable.
13195 (usb_mod_LDFLAGS): New variable.
13196 (usbtest_mod_SOURCES): New variable.
13197 (usbtest_mod_CFLAGS): New variable.
13198 (usbtest_mod_LDFLAGS): New variable.
13199 (ohci_mod_SOURCES): New variable.
13200 (ohci_mod_CFLAGS): New variable.
13201 (ohci_mod_LDFLAGS): New variable.
13202 (usbms_mod_SOURCES): New variable.
13203 (usbms_mod_CFLAGS): New variable.
13204 (usbms_mod_LDFLAGS): New variable.
13205 (usb_keyboard_mod_SOURCES): New variable.
13206 (usb_keyboard_mod_CFLAGS): New variable.
13207 (usb_keyboard_mod_LDFLAGS): New variable.
13208 * include/grub/smbus.h: New file.
13209 * include/grub/cs5536.h: New file.
13210
13211 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13212
13213 * util/grub.d/00_header.in: Add safety check to make sure that
13214 ${locale_dir} exists before trying to probe it.
13215
13216 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13217
13218 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13219 per the GNU Coding Standards; this is now too obscure to be worth
13220 documenting.
13221 (QNX): Likewise.
13222 (chainloader): Remove cross-reference to `SCO UnixWare'.
13223
13224 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13225
13226 * docs/grub.texi (Chain-loading): New section.
13227 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13228 adjusted for GRUB 2.
13229 (SCO UnixWare): Likewise.
13230 (QNX): Likewise.
13231 (chainloader): Add reference to `Block list syntax'.
13232 (drivemap): New section.
13233 (parttool): New section.
13234
13235 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13236
13237 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13238 the grub shell'.
13239 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13240 (Installing GRUB using grub-install): Remove reference to the grub
13241 shell; mention `grub-mkimage' and `grub-setup' instead.
13242 (Invoking grub-install): Likewise.
13243 (Interface): Add reference to `Menu entry editor'.
13244 (serial): Remove `--device' option.
13245
13246 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13247
13248 * docs/grub.texi (Configuration): New section, documenting
13249 configuration file generation using grub-mkconfig. I've left a slot
13250 for documenting the full shell scripting format but have not yet
13251 started on writing that up.
13252 (Invoking grub-mkconfig): New section.
13253
13254 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13255
13256 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13257 (GNU GRUB manual): Likewise.
13258 (General commands): Update description of `terminfo' for GRUB 2.
13259
13260 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13261
13262 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13263 (GRUB_MOD_INIT): Fix capitalisation.
13264 * docs/grub.texi (Command-line and menu entry commands): Document
13265 gettext and gptsync commands.
13266
13267 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13268
13269 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13270 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13271
13272 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13273
13274 Add btrfs probing support, currently only in the single-device case.
13275
13276 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13277 function.
13278 (grub_guess_root_device): Call find_root_device_from_mountinfo
13279 before looking in /dev.
13280
13281 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13284 GRUB_DISK_SIZE_UNKNOWN.
13285 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13286
13287 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13288
13289 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13290 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13291 corrupted or not synced properly.
13292
13293 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13296 Reported by: Seth Goldberg.
13297
13298 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13299
13300 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13301 addition of dest.
13302 Reported by: Seth Goldberg.
13303
13304 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13307 Reported by: Seth Goldberg.
13308
13309 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13310
13311 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13312 64-bit address as signed on MIPS.
13313
13314 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13315
13316 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13317 to the empty string.
13318
13319 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13320
13321 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13322
13323 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13324 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13325 * kern/misc.c (__enable_execute_stack): Disable on
13326 GRUB_MACHINE_EMU.
13327
13328 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13329
13330 Make grub-probe work with symbolic links under /dev/mapper as well
13331 as with real block devices. The Linux world seems to be (at best)
13332 in transition here, and GRUB shouldn't get caught in the middle.
13333
13334 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
13335 /dev/mapper.
13336
13337 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13338
13339 * util/grub-script-check.c (main): Ensure defined behaviour on empty
13340 input files (in which case exit zero).
13341
13342 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13343
13344 * kern/emu/misc.c (canonicalize_file_name): realpath can still
13345 return NULL for various reasons even if it has a maximum-length
13346 buffer: for example, there might be a symlink loop, or the path
13347 might exceed PATH_MAX. If this happens, return NULL.
13348
13349 2010-05-27 Robert Millan <rmh@gnu.org>
13350
13351 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
13352 partmap module to handle cross-partmap setups.
13353 Reported by Orestes Mas. Gràcies!
13354
13355 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
13356
13357 * util/grub-mkrescue.in: Initialise override_dir rather than
13358 assuming that it's unset or empty in the environment.
13359
13360 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
13361
13362 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
13363 variable index into p_index to suppress a warning with -Wshadow.
13364
13365 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
13366
13367 * INSTALL: Added flex >= 2.5.35 requirement.
13368
13369 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13372
13373 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 cmostest support.
13376
13377 * commands/i386/cmostest.c: New file.
13378 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
13379 (cmostest_mod_SOURCES): New variable.
13380 (cmostest_mod_CFLAGS): Likewise.
13381 (cmostest_mod_LDFLAGS): Likewise.
13382 * conf/i386-pc.rmk: Likewise.
13383 * docs/grub.texi (Vendor power-on keys): New section.
13384 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
13385 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
13386 and GRUB_BUTTON_CMOS_ADDRESS.
13387 * util/grub.d/00_header.in: Handle powering-on by separate button.
13388
13389 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
13392 Removed drawing_scrollbar argument. All users updated
13393 Fixes #29792.
13394 Reported by Jo Shields
13395
13396 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
13399 buffer since gfxterm handles double repaint.
13400
13401 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
13404 * term/gfxterm.c (real_scroll): Likewise.
13405
13406 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13407
13408 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
13409 before calling BIOS.
13410
13411 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * include/grub/i18n.h: Always enable grub_gettext.
13414
13415 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
13418 partition naming style.
13419
13420 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
13421
13422 * util/grub-mkconfig.in: Fix handling of -o so that it works when
13423 not the first option.
13424
13425 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13426
13427 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
13428
13429 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
13430
13431 * util/misc.c: Move inclusion of <limits.h> to ...
13432 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
13433
13434 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
13435
13436 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
13437 Fix merge error in NetBSD code.
13438 (find_partition_start) [__NetBSD__]: Likewise.
13439
13440 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
13441
13442 Fix grub-mkrescue usage unit testing.
13443
13444 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
13445
13446 2010-05-18 Christian Franke <franke@computer.org>
13447
13448 * util/grub.d/10_windows.in: Use path names instead of
13449 drive letters to prevent warning from Cygwin 1.7.
13450 Add drivemap command to menuentry if needed.
13451
13452 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
13453
13454 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
13455 gnumach and gnumach.gz.
13456
13457 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13458
13459 * include/grub/i18n.h (gettext): Inline instead of using #define.
13460 (grub_gettext): Likewise.
13461 (_): Likewise.
13462
13463 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
13466 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
13467 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
13468 (main): Add a slash after pkglibdirroot.
13469
13470 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 * util/grub-install.in: Add missing "in" keyword.
13473
13474 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
13477 Reported by: Seth Goldberg.
13478
13479 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13480
13481 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
13482
13483 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13484
13485 * configure.ac: Check for Linux device-mapper support.
13486
13487 * util/hostdisk.c (device_is_mapped): New function.
13488 (find_partition_start): New function, partly broken out from
13489 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
13490 device-mapper support added.
13491 (linux_find_partition): Use find_partition_start.
13492 (convert_system_partition_to_system_disk): Add `st' argument.
13493 Support Linux /dev/mapper/* devices if device-mapper support is
13494 available; only DM-RAID devices are understood at present.
13495 (find_system_device): Add `st' argument. Pass it to
13496 convert_system_partition_to_system_disk.
13497 (grub_util_biosdisk_get_grub_dev): Pass stat result to
13498 find_system_device and convert_system_partition_to_system_disk. Use
13499 find_partition_start.
13500
13501 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
13502 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
13503 * util/deviceiter.c [__linux__]: Define MINOR.
13504 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
13505 * util/mkdevicemap.c (grub_putchar): New function.
13506 (grub_getkey): New function.
13507 (grub_refresh): New function.
13508 (main): Set debug=all if -v -v is used.
13509
13510 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13511
13512 Fix build with non-GNU libcs.
13513
13514 * util/misc.c (canonicalize_file_name): Move to ...
13515 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
13516 grub_make_system_path_relative_to_its_root.
13517
13518 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
13519
13520 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
13521 we handle finding grub-mkimage. Default to finding grub-mkimage in
13522 ${bindir} with program_transform_name applied, and provide a
13523 --grub-mkimage option to override this.
13524
13525 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 Remove grub-mkisofs.
13528
13529 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
13530 (grub_mkisofs_SOURCES): Removed.
13531 (grub_mkisofs_CFLAGS): Removed.
13532 * util/mkisofs/defaults.h: Removed.
13533 * util/mkisofs/eltorito.c: Likewise.
13534 * util/mkisofs/exclude.h: Likewise.
13535 * util/mkisofs/hash.c: Likewise.
13536 * util/mkisofs/include/: Likewise.
13537 * util/mkisofs/include/fctldefs.h: Likewise.
13538 * util/mkisofs/include/mconfig.h: Likewise.
13539 * util/mkisofs/include/prototyp.h: Likewise.
13540 * util/mkisofs/include/statdefs.h: Likewise.
13541 * util/mkisofs/iso9660.h: Likewise.
13542 * util/mkisofs/joliet.c: Likewise.
13543 * util/mkisofs/match.c: Likewise.
13544 * util/mkisofs/match.h: Likewise.
13545 * util/mkisofs/mkisofs.c: Likewise.
13546 * util/mkisofs/mkisofs.h: Likewise.
13547 * util/mkisofs/msdos_partition.h: Likewise.
13548 * util/mkisofs/multi.c: Likewise.
13549 * util/mkisofs/name.c: Likewise.
13550 * util/mkisofs/rock.c: Likewise.
13551 * util/mkisofs/tree.c: Likewise.
13552 * util/mkisofs/write.c: Likewise.
13553
13554 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13555
13556 Unify grub-mkimage accross platforms.
13557
13558 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
13559 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
13560 (grub_mkelfimage_SOURCES): Removed.
13561 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
13562 (util/grub-mkimage.c_DEPENDENCIES): .. this.
13563 (bin_UTILITIES): Add grub-mkimage.
13564 (grub_mkimage_SOURCES): New variable.
13565 (kernel_img_HEADERS): Remove machine/kernel.h.
13566 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
13567 (pkglib_PROGRAMS): Add kernel.img.
13568 (kernel_img_HEADERS): Add machine/kernel.h.
13569 (kernel_img_FORMAT): Removed.
13570 (bin_UTILITIES): Remove grub-mkimage.
13571 (grub_mkimage_SOURCES): Removed.
13572 (grub_mkimage_CFLAGS): Likewise.
13573 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13574 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
13575 (pkglib_PROGRAMS): Add kernel.img.
13576 (bin_UTILITIES): Remove grub-mkimage.
13577 (grub_mkimage_SOURCES): Removed.
13578 (grub_mkimage_CFLAGS): Likewise.
13579 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13580 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
13581 (pkglib_PROGRAMS): Add kernel.img.
13582 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
13583 (pkglib_PROGRAMS): Add kernel.img.
13584 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
13585 (grub_mkimage_SOURCES): Removed.
13586 (grub_mkimage_CFLAGS): Likewise.
13587 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13588 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
13589 (pkglib_PROGRAMS): Add kernel.img.
13590 (bin_UTILITIES): Remove grub-mkimage.
13591 (grub_mkimage_SOURCES): Removed.
13592 (grub_mkimage_CFLAGS): Likewise.
13593 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13594 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
13595 (grub_mkimage_SOURCES): Removed.
13596 (grub_mkimage_CFLAGS): Likewise.
13597 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
13598 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
13599 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
13600 (grub_pe32_optional_header): ... this.
13601 (grub_pe64_optional_header): ... and this. All users updated.
13602 (GRUB_PE32_PE32_MAGIC): Split into ..
13603 (GRUB_PE32_PE32_MAGIC): .. this.
13604 (GRUB_PE32_PE64_MAGIC): .. and this.
13605 (GRUB_PE32_SIGNATURE_SIZE): New definition.
13606 * include/grub/elf.h (PT_GNU_STACK): New definition.
13607 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
13608 * include/grub/i386/efi/kernel.h: Likewise.
13609 * include/grub/i386/kernel.h: Likewise.
13610 * include/grub/i386/pc/kernel.h: Likewise.
13611 * include/grub/i386/qemu/boot.h: Likewise.
13612 * include/grub/mips/kernel.h: Likewise.
13613 * include/grub/mips/qemu-mips/kernel.h: Likewise.
13614 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13615 * include/grub/powerpc/kernel.h: Likewise.
13616 * include/grub/sparc64/ieee1275/boot.h: Likewise.
13617 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13618 * include/grub/sparc64/kernel.h: Likewise.
13619 * include/grub/x86_64/efi/kernel.h: Likewise.
13620 * include/grub/x86_64/kernel.h: Likewise.
13621 * include/grub/offsets.h: New file.
13622 * include/grub/kernel.h (grub_module_info): Split into ...
13623 (grub_module_info32): ... this.
13624 (grub_module_info64): ... and this.
13625 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
13626 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
13627 (grub_boot_blocklist): Moved from here ...
13628 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
13629 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
13630 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
13631 * include/grub/types.h (grub_target_to_host16): Removed.
13632 (grub_target_to_host32): Likewise.
13633 (grub_target_to_host64): Likewise.
13634 (grub_host_to_target16): Likewise.
13635 (grub_host_to_target32): Likewise.
13636 (grub_host_to_target64): Likewise.
13637 (grub_host_to_target_addr): Likewise.
13638
13639 Support grub-mkrescue for efi, coreboot and qemu.
13640
13641 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
13642 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
13643 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
13644 * util/grub-mkrawimage.c: Moved from here ...
13645 * util/grub-mkimage.c: ... here. All users updated.
13646 (ALIGN_ADDR): Use image_target.
13647 (TARGET_NO_FIELD): New const.
13648 (image_target_desc): New type.
13649 (image_targets): New array.
13650 (grub_target_to_host64): Use image_target.
13651 (grub_target_to_host32): Likewise.
13652 (grub_target_to_host16): Likewise.
13653 (grub_host_to_target64): Likewise.
13654 (grub_host_to_target32): Likewise.
13655 (grub_host_to_target16): Likewise.
13656 (grub_host_to_target_addr): Likewise.
13657 (generate_image): Handle multiimage.
13658 (main): Require -O parameter. All users updated.
13659 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
13660 util/efi/grub-mkimage.c
13661 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
13662 New option --rom-directory.
13663 Use xorriso.
13664 * util/i386/efi/grub-mkimage.c: Removed.
13665 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
13666 (grub_target_to_host32): Likewise.
13667 (grub_target_to_host64): Likewise.
13668 (grub_host_to_target16): Likewise.
13669 (grub_host_to_target32): Likewise.
13670 (grub_host_to_target64): Likewise.
13671 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
13672 (grub_target_to_host32): Likewise.
13673 (grub_target_to_host64): Likewise.
13674 (grub_host_to_target16): Likewise.
13675 (grub_host_to_target32): Likewise.
13676 (grub_host_to_target64): Likewise.
13677
13678 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
13679
13680 Source tree is reorganized for emu build.
13681
13682 * include/grub/util/console.h: Move from here...
13683 * include/grub/emu/console.h: ...to here.
13684 * include/grub/util/getroot.h: Move from here...
13685 * include/grub/emu/getroot.h: ...to here.
13686 * include/grub/util/hostdisk.h: Move from here...
13687 * include/grub/emu/hostdisk.h: ...to here.
13688 * util/console.c: Move from here...
13689 * kern/emu/console.c: ...to here.
13690 * util/getroot.c: Move from here...
13691 * kern/emu/getroot.c: ...to here.
13692 * util/grub-emu.c: Move from here...
13693 * kern/emu/main.c: ...to here.
13694 * util/hostdisk.c: Move from here...
13695 * kern/emu/hostdisk.c: ...to here.
13696 * util/hostfs.c: Move from here...
13697 * kern/emu/hostfs.c: ...to here.
13698 * util/mm.c: Move from here...
13699 * kern/emu/mm.c: ...to here.
13700 * util/pci.c: Move from here...
13701 * bus/emu/pci.c: ...to here.
13702 * util/sdl.c: Move from here...
13703 * video/emu/sdl.c: ...to here.
13704 * util/time.c: Move from here...
13705 * kern/emu/time.c: ...to here.
13706 * util/usb.c: Move from here...
13707 * bus/usb/emu/usb.c: ...to here.
13708
13709 * include/grub/emu/misc.h: New header for grub-emu functions.
13710 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
13711
13712 * conf/any-emu.rmk: Rule updates for above renames.
13713 * conf/common.rmk: Likewise.
13714 * conf/i386-pc.rmk: Likewise.
13715 * conf/i386-qemu.rmk: Likewise.
13716 * conf/mips.rmk: Likewise.
13717 * conf/sparc64-ieee1275.rmk: Likewise.
13718 * conf/x86-efi.rmk: Likewise.
13719
13720 * disk/lvm.h: #include updates for above renames.
13721 * util/grub-mkrelpath.c: Likewise.
13722 * util/grub-probe.c: Likewise.
13723 * util/i386/pc/grub-setup.c: Likewise.
13724 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13725 * kern/emu/console.c: Likewise.
13726 * kern/emu/getroot.c: Likewise.
13727 * kern/emu/hostdisk.c: Likewise.
13728 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
13729
13730 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
13731 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
13732 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
13733 * util/misc.c: Remove grub-emu functions.
13734
13735 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 Fix gfxmenu crash.
13738 Reported by: Thorsten Grützmacher.
13739
13740 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
13741 timeout hook.
13742 (circprog_set_property): Register and unregister timeout hook.
13743 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
13744 (label_destroy): Free template. and unregister hook.
13745 (label_set_state): New function.
13746 (label_set_property): Handle templates and hooks.
13747 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
13748 timeout hook.
13749 (progress_bar_set_property): Register and unregister timeout hook.
13750 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
13751 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
13752 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
13753 (update_timeout_visit): Removed.
13754 (update_timeouts): New function.
13755 (redraw_timeouts): Likewise.
13756 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
13757 (grub_gfxmenu_clear_timeout): Likewise.
13758 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
13759 (grub_gfxmenu_timeout_notify): Likewise.
13760 (grub_gfxmenu_timeout_notifications): New external variable.
13761 (grub_gfxmenu_timeout_register): New function.
13762 (grub_gfxmenu_timeout_unregister): Likewise.
13763
13764 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 Transform (broken) vga terminal into (working) vga video driver.
13767
13768 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
13769 video/i386/pc/vga.c.
13770 * include/grub/video.h (grub_video_driver_id):
13771 Add GRUB_VIDEO_DRIVER_VGA.
13772 * term/i386/pc/vga.c: Renamed to ...
13773 * video/i386/pc/vga.c: ...this
13774 (DEBUG_VGA): Removed.
13775 (CHAR_WIDTH): Likewise.
13776 (CHAR_HEIGHT): Likewise.
13777 (TEXT_WIDTH): Likewise.
13778 (TEXT_HEIGHT): Likewise.
13779 (DEFAULT_FG_COLOR): Likewise.
13780 (DEFAULT_BG_COLOR): Likewise.
13781 (colored_char): Likewise.
13782 (xpos): Likewise.
13783 (ypos): Likewise.
13784 (cursor_state): Likewise.
13785 (fg_color): Likewise.
13786 (bg_color): Likewise.
13787 (text_buf): Likewise.
13788 (page): Likewise.
13789 (font): Likewise.
13790 (framebuffer): New variable.
13791 (set_read_map): Disabled.
13792 (setup): New variable.
13793 (is_target): Likewise.
13794 (grub_vga_mod_init): Likewise.
13795 (grub_vga_mod_fini): Likewise.
13796 (check_vga_mem): Likewise.
13797 (write_char): Likewise.
13798 (write_cursor): Likewise.
13799 (scroll_up): Likewise.
13800 (grub_vga_putchar): Likewise.
13801 (grub_vga_getcharwidth): Likewise.
13802 (grub_vga_getwh): Likewise.
13803 (grub_vga_getxy): Likewise.
13804 (grub_vga_gotoxy): Likewise.
13805 (grub_vga_cls): Likewise.
13806 (grub_vga_setcolorstate): Likewise.
13807 (grub_vga_setcursor): Likewise.
13808 (grub_video_vga_init): New function.
13809 (grub_video_vga_setup): Likewise.
13810 (grub_video_vga_fini): Likewise.
13811 (update_target): Likewise.
13812 (grub_video_vga_blit_bitmap): Likewise.
13813 (grub_video_vga_blit_render_target): Likewise.
13814 (grub_video_vga_set_active_render_target): Likewise.
13815 (grub_video_vga_get_active_render_target): Likewise.
13816 (grub_video_vga_swap_buffers): Likewise.
13817 (grub_video_vga_set_palette): Likewise.
13818 (grub_video_vga_get_info_and_fini): Likewise.
13819 (grub_vga_term): Removed.
13820 (grub_video_vga_adapter): New variable.
13821 (GRUB_MOD_INIT): Register a video driver instead of terminal.
13822 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
13823
13824 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * video/readers/jpeg.c: Indented.
13827
13828 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 Various jpeg cleanups.
13831
13832 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
13833 (grub_jpeg_decode_quan_table): Use sizeof.
13834 (grub_jpeg_decode_du): Use ARRAY_SIZE.
13835
13836 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
13837
13838 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
13839 tables. Ignore non-last ac bit.
13840 (grub_jpeg_decode_quan_table): Likewise.
13841
13842 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13843
13844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
13845 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
13846 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13847 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
13848 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
13849 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
13850
13851 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
13854 error.
13855
13856 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13857
13858 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
13859
13860 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
13863 condition.
13864
13865 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13866
13867 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
13868 part.
13869
13870 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
13873 pointers.
13874
13875 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13876
13877 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
13878
13879 2010-05-01 Christian Franke <franke@computer.org>
13880
13881 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
13882 Remove broken Cygwin path conversion.
13883 * util/misc.c: [__CYGWIN__] Add include and define.
13884 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
13885 for Cygwin 1.7.
13886 (make_system_path_relative_to_its_root): Simplify loop, replace early
13887 return by break.
13888 [__CYGWIN__] Add conversion to win32 path.
13889 Include "/" case in trailing slash removal.
13890
13891 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13892
13893 * kern/main.c (grub_load_config): Fix copy-pasted comment.
13894 Reported by: Seth Goldberg
13895
13896 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * commands/help.c (grub_cmd_help): Fix a typo.
13899 Reported by: Seth Goldberg
13900
13901 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
13904 name and add N_.
13905 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
13906 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
13907 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
13908 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
13909 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
13910 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
13911 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13912 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13913 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13914 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13915 * normal/context.c (GRUB_MOD_INIT): Likewise.
13916 * normal/main.c (GRUB_MOD_INIT): Likewise.
13917 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13918 * term/serial.c (GRUB_MOD_INIT): Likewise.
13919 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13920
13921 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
13924 extra == 0.
13925
13926 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * commands/iorw.c: New file.
13929 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
13930 (iorw_mod_SOURCES): New variable.
13931 (iorw_mod_CFLAGS): Likewise.
13932 (iorw_mod_LDFLAGS): Likewise.
13933
13934 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13935
13936 Hotkey support
13937
13938 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
13939 * normal/main.c (hotkey_aliases): New variable.
13940 (grub_normal_add_menu_entry): Parse "--hotkey".
13941 * normal/menu_text.c (run_menu): Handle hotkeys.
13942
13943 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13944
13945 * kern/i386/coreboot/init.c (grub_machine_init): Call
13946 grub_machine_mmap_init on qemu.
13947
13948 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * boot/i386/qemu/boot.S: Add a missing .code16.
13951
13952 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13953
13954 Use LBIO on coreboot.
13955
13956 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
13957 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
13958 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
13959 New declaration.
13960 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
13961 grub_machine_mmap_init on coreboot.
13962 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
13963 GRUB_LINUXBIOS_MEMBER_LINK.
13964 (grub_machine_mmap_iterate): Fix declaration.
13965 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
13966
13967 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 Split coreboot and multiboot ports.
13970
13971 * conf/i386-multiboot.rmk: New file.
13972 * configure.ac: Add multiboot port.
13973 * include/grub/i386/multiboot/boot.h: New file.
13974 * include/grub/i386/multiboot/console.h: Likewise.
13975 * include/grub/i386/multiboot/init.h: Likewise.
13976 * include/grub/i386/multiboot/kernel.h: Likewise.
13977 * include/grub/i386/multiboot/loader.h: Likewise.
13978 * include/grub/i386/multiboot/memory.h: Likewise.
13979 * include/grub/i386/multiboot/serial.h: Likewise.
13980 * include/grub/i386/multiboot/time.h: Likewise.
13981 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
13982 * loader/multiboot.c: Likewise.
13983 * loader/multiboot_mbi2.c: Likewise.
13984 * util/grub-mkrescue.in: Generate multiboot rescue.
13985
13986 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * kern/parser.c (grub_parser_execute): Cope with read-only config.
13989
13990 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
13991
13992 Merge handling of input and output terminals. Fix a hang.
13993
13994 * commands/terminal.c (abstract_terminal): New struct.
13995 (handle_command): New function. Based on grub_cmd_terminal_input.
13996 (grub_cmd_terminal_input): Use handle_command.
13997 (grub_cmd_terminal_output): Use handle_command.
13998
13999 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14000
14001 Fix comment handling.
14002
14003 * tests/grub_script_comments.in: New testcase.
14004 * conf/tests.rmk: Rules for new testcase.
14005 * script/yylex.l: Updated flex rules.
14006
14007 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14008
14009 * docs/grub.texi (play): Document that zero pitches produce rests.
14010 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14011 if argc is 1.
14012
14013 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14016 autogen issues.
14017
14018 2010-04-26 Christian Franke <franke@computer.org>
14019
14020 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14021 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14022 (grub_get_prefix): Remove function.
14023 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14024 make_system_path_relative_to_its_root ().
14025 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14026
14027 2010-04-24 Christian Franke <franke@computer.org>
14028
14029 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14030 (kernel_img_LDFLAGS): Remove -static-libgcc.
14031
14032 2010-04-24 Christian Franke <franke@computer.org>
14033
14034 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14035 and CHECK_END_SYMBOL if grub-emu is built.
14036 Unset TARGET_OBJ2ELF if grub-emu is built
14037 without module support.
14038
14039 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14040
14041 Nilfs2 support.
14042
14043 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14044 (grub_fstest_SOURCES): Likewise.
14045 (pkglib_MODULES): Add nilfs2.mod.
14046 (nilfs2_mod_SOURCES): New variable.
14047 (nilfs2_mod_CFLAGS): Likewise.
14048 (nilfs2_mod_LDFLAGS): Likewise.
14049 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14050 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14051 * fs/nilfs2.c: New file.
14052
14053 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14056 is not supported.
14057
14058 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14059
14060 Add grub-mkconfig support for NetBSD.
14061
14062 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14063 * util/grub-mkconfig.in: export new NetBSD specific variables.
14064 * po/POTFILES-shell: added 10_netbsd.in.
14065 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14066
14067 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14068
14069 Fix emu build with grub-emu-pci and grub-emu-modules.
14070
14071 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14072 functions.
14073 * include/grub/libpciaccess.h: New file.
14074 * conf/any-emu.rmk: Update kernel headers for emu build.
14075
14076 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14079
14080 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14083
14084 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14087 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14088 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14089 util/ieee1275/ofpath.c.
14090 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14091 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14092 * include/grub/sparc64/ieee1275/boot.h
14093 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14094 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14095 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14096 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14097 const char *.
14098 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14099 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14100 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14101 install.
14102
14103 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14104
14105 * util/grub-mkconfig.in: Corrected two == equality tests.
14106 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14107 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14108 expect a number appended to it.
14109 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14110 expects a number appended to it.
14111
14112 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14113
14114 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14115
14116 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * util/hostdisk.c (make_device_name): Change to new partition naming.
14119
14120 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14123
14124 2010-04-17 Christian Franke <franke@computer.org>
14125
14126 * Makefile.in: Add missing localedir setting.
14127
14128 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14129
14130 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14131 mistake in r2156. Noticed by Anthony Fok.
14132
14133 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14134 @localedir@.
14135 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14136
14137 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14138
14139 Fix a spurious, uninitialized variable warning.
14140
14141 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14142 Initialize variable, shdr.
14143 (grub_freebsd_load_elfmodule): Likewise.
14144 (grub_freebsd_load_elf_meta): Likewise.
14145
14146 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14147
14148 Fix for escaped dollar in double quoted strings.
14149
14150 * script/yylex.l: Updated flex rules.
14151 * conf/tests.rmk: Rule for new testcase.
14152 * tests/grub_script_dollar.in: New testcase.
14153
14154 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14155 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14156
14157 Enclose all translated strings in grub.cfg in single quotes, and
14158 escape them appropriately (Ubuntu bug #552921).
14159
14160 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14161 * util/grub.d/10_hurd.in: Use it.
14162 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14163 * util/grub.d/10_linux.in (linux_entry): Likewise.
14164
14165 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14166
14167 Fix cygwin compilation.
14168
14169 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14170 * include/grub/misc.h (__register_frame_info)
14171 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14172 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14173 * kern/misc.c (__register_frame_info)
14174 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14175 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14176
14177 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14178
14179 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14180
14181 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 Unify libgcc processing.
14184
14185 * Makefile.in (kernel_img_LDFLAGS): New variable.
14186 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14187 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14188 overwriting.
14189 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14190 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14191 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14192 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14193 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14194 overwriting. Remove -lgcc and -static-libgcc
14195 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14196 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14197 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14198 (kernel_img_LDFLAGS): Append instead of overwriting.
14199 Remove -lgcc and -static-libgcc
14200 * conf/sparc64-ieee1275.rmk: Likewise.
14201 * include/grub/powerpc/libgcc.h: Move to ...
14202 * include/grub/libgcc.h: .. this.
14203 * include/grub/libgcc.h: Don't export most of the function on x86.
14204 (__bswapsi2): New export.
14205 (__bswapdi2): Likewise.
14206 * include/grub/mips/libgcc.h: Removed.
14207 * include/grub/sparc64/libgcc.h: Likewise.
14208
14209 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14210
14211 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14212 disk_info_msg (conflicts with gettexting into languages with cases).
14213
14214 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14215
14216 Add grub-probe support for NetBSD.
14217
14218 * util/getroot.c (find_root_device): Convert block device to
14219 character device on NetBSD.
14220 * util/probe.c (probe): Require character device on NetBSD.
14221 * util/hostdisk.c: NetBSD specific headers.
14222 (configure_device_driver): new function to tune device driver
14223 parameters (currently only for NetBSD floppy driver).
14224 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14225 via disklabel ioctl).
14226 (open_device): call configure_device_driver on NetBSD.
14227 (convert_system_partition_to_system_disk): NetBSD specific code.
14228 (device_is_wholedisk): Likewise.
14229 (grub_util_biosdisk_get_grub_dev): Likewise.
14230 (make_device_name): Fixed a typo in bsd_part_str.
14231 * configure.ac: check for opendisk() and getrawpartition() on
14232 NetBSD and set LIBUTIL.
14233 * Makefile.in: add LIBUTIL to LIBS.
14234
14235 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14236
14237 Documentation fix.
14238
14239 * util/grub-script-check.c: Better help message.
14240
14241 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14242
14243 Fix FreeBSD build.
14244
14245 * configure.ac: Flex version check.
14246 * conf/common.rmk: Add -Wno-error to sh.mod.
14247 * script/yylex.l: Remove all #pragma.
14248
14249 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14252 prototype.
14253 Reported by: Seth Goldberg.
14254
14255 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14256
14257 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14258 Rename "module" to "module2".
14259 Reported by: Seth Goldberg.
14260
14261 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14264 EXPORT_FUNC.
14265 Reported by: Seth Goldberg.
14266
14267 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 * lib/posix_wrap/locale.h: Add missing file.
14270 Reported by: Seth Goldberg.
14271
14272 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 grub-emu module load support.
14275
14276 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14277 NO_DYNAMIC_MODULES switched to this.
14278 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14279 (CFLAGS): Likewise.
14280 * conf/any-emu.rmk: Generate symlist.
14281 (kernel_img_HEADERS): Add util/datetime.h.
14282 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14283 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14284 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14285 kern/$(target_cpu)/cache.S.
14286 * configure.ac (grub-emu-modules): New option.
14287 * genmk.rb: Handle multiple source lists.
14288 * include/grub/sdl.h: New file.
14289 * include/grub/libusb.h: Likewise.
14290 * util/grub-emu.c (main): Hanle (host) root.
14291 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14292 GRUB_ERR_UNKNOWN_DEVICE.
14293 * util/misc.c: Move mm functions to ...
14294 * util/mm.c: ... here. All users updated.
14295
14296 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14299 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14300 missing files.
14301 (maintainer-clean): Remove libgcrypt-grub.
14302
14303 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14304
14305 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14306
14307 2010-04-09 EFI Coder <eficoder@hotmail.com>
14308
14309 * normal/menu_text.c (print_message): Clean up the message and show
14310 the Fn information when on EFI
14311 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14312
14313 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14316 All users updated.
14317 * normal/crypto.c (read_crypto_list): Likewise.
14318 * normal/dyncmd.c (read_command_list): Likewise.
14319 * normal/term.c (read_terminal_list): Likewise.
14320 * normal/main.c (read_lists): Use explicit prefix.
14321 (read_lists_hook): Use read_lists.
14322 (grub_normal_execute): Likewise.
14323
14324 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14325
14326 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
14327 Reported by: Thomas Schmitt.
14328 Add -no-emul-boot to grub-mkisofs parameters.
14329
14330 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14331
14332 * font/font.c: Indented.
14333
14334 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14335
14336 Elif support to GRUB script (by Deepak Vankadaru).
14337
14338 * tests/grub_script_if.in: New testcase.
14339 * conf/tests.rmk: Rule for new testcase.
14340 * script/parser.y: Grammar rules for elif.
14341
14342 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
14343
14344 While and until loops support to GRUB script.
14345
14346 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
14347 (grub_script_create_cmdwhile): New function prototype.
14348 (grub_script_execute_cmdwhile): New function prototype.
14349 * script/execute.c (grub_script_execute_cmdwhile): New function.
14350 * script/parser.y (command): New commands.
14351 (whilecmd): New grammar rule.
14352 (untilcmd): New grammar rule.
14353 * script/script.c (grub_script_create_cmdwhile): New function.
14354 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
14355 function.
14356
14357 * tests/grub_script_while1.in: New testcase.
14358 * conf/tests.rmk: Rule for new testcase.
14359
14360 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
14363 as *.jpg.
14364
14365 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
14366
14367 GRUB_BACKGROUND support.
14368
14369 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
14370 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
14371
14372 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 Load fonts and modules for gfxmenu in grub-mkconfig.
14375 Idea by: Mario Vazquez
14376
14377 * util/grub.d/00_header.in: Load pf2 and image modules.
14378
14379 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14380
14381 grub-mkconfig multiple terminal support.
14382
14383 * util/grub-mkconfig.in: Handle multiple terminals correctly.
14384 * util/grub.d/00_header.in: Likewise.
14385
14386 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 * Makefile.in: Specify files explicitly instead of using $< and $@ since
14389 we use cd $(srcdir).
14390
14391 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
14392
14393 * util/grub.d/10_linux.in: Only use the first word of
14394 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
14395 spaces in GRUB_DISTRIBUTOR.
14396 * util/grub.d/10_kfreebsd.in: Likewise.
14397 * util/grub.d/10_hurd.in: Likewise.
14398
14399 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
14400
14401 Fix unit testing framework for Qemu 0.12.
14402
14403 * tests/util/grub-shell.in: Remove -serial stdio option.
14404
14405 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 POSIX header file wrappers.
14408
14409 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
14410 equivalents.
14411 * lib/posix_wrap/ctype.h: Likewise.
14412 * lib/posix_wrap/errno.h: Likewise.
14413 * lib/posix_wrap/langinfo.h: Likewise.
14414 * lib/posix_wrap/limits.h: Likewise.
14415 * lib/posix_wrap/localcharset.h: Likewise.
14416 * lib/posix_wrap/stdint.h: Likewise.
14417 * lib/posix_wrap/stdio.h: Likewise.
14418 * lib/posix_wrap/stdlib.h: Likewise.
14419 * lib/posix_wrap/string.h: Likewise.
14420 * lib/posix_wrap/sys/types.h: Likewise.
14421 * lib/posix_wrap/unistd.h: Likewise.
14422 * lib/posix_wrap/wchar.h: Likewise.
14423 * lib/posix_wrap/wctype.h: Likewise.
14424 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
14425 (grub_script.yy.h): Likewise.
14426 * script/yylex.l: Remove POSIX emulation #defines.
14427 * Makefile.in (POSIX_CFLAGS): New variable.
14428 (GNULIB_UTIL_CFLAGS): Likewise.
14429
14430 Regexp support.
14431
14432 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
14433 (regexp_mod_SOURCES): New variable.
14434 (regexp_mod_CFLAGS): Likewise.
14435 (regexp_mod_LDFLAGS): Likewise.
14436 * commands/regexp.c: New file.
14437 * gnulib/regcomp.c: New file. Imported from gnulib.
14438 * gnulib/regex.c: Likewise.
14439 * gnulib/regex_internal.c: Likewise.
14440 * gnulib/regex_internal.h: Likewise.
14441 * gnulib/regexec.c: Likewise.
14442 * gnulib/regex.h: Likewise.
14443
14444 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14445
14446 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
14447 unsupported video mode types.
14448
14449 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14450
14451 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
14452
14453 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
14456 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
14457
14458 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14459
14460 Remove unused grub_vga_get_font.
14461
14462 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
14463 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
14464
14465 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14466
14467 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
14468 * include/grub/misc.h: Likewise.
14469
14470 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14471
14472 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
14473 for which failure is fatal.
14474
14475 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14476
14477 * util/grub-install.in: Use mkdir -p to create grub directory.
14478 * util/i386/efi/grub-install.in: Likewise.
14479 * util/ieee1275/grub-install.in: Likewise.
14480
14481 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14482
14483 * Makefile.in (LEX): new variable.
14484
14485 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14486
14487 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
14488 `=' and added double quotes on operands of this equality test.
14489
14490 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 * Makefile.in (uninstall): Remove a leftover debug echo.
14493 Reported by: Grégoire Sutre
14494
14495 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
14496
14497 MIPS multiboot2 support.
14498
14499 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
14500 (multiboot2_mod_SOURCES): New variable.
14501 (multiboot2_mod_CFLAGS): Likewise.
14502 (multiboot2_mod_LDFLAGS): Likewise.
14503 (multiboot2_mod_ASFLAGS): Likewise.
14504 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
14505 definition.
14506 (MULTIBOOT_ENTRY_REGISTER): Likewise.
14507 (MULTIBOOT_MBI_REGISTER): Likewise.
14508 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
14509 (MULTIBOOT_ELF32_MACHINE): Likewise.
14510 (MULTIBOOT_ELF64_MACHINE): Likewise.
14511 * include/grub/mips/multiboot.h: New file.
14512 * include/grub/video.h (grub_video_driver_id): New type
14513 GRUB_VIDEO_DRIVER_SM712.
14514 (grub_video_get_info_and_fini): Export.
14515 (grub_video_get_palette): Likewise.
14516 (grub_video_get_driver_id): Likewise.
14517 * include/multiboot2.h: Resynced with spec.
14518 * loader/i386/multiboot.c: Moved from here ...
14519 * loader/multiboot.c: ... here. All users updated.
14520 (grub_multiboot_boot): Use platform-specific macros.
14521 * loader/i386/multiboot_elfxx.c: Moved from here ...
14522 * loader/multiboot_elfxx.c: ... here. All users updated.
14523 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
14524 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
14525 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
14526
14527 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14528
14529 Import gnulib argp module.
14530
14531 * gnulib/argp-ba.c: New file.
14532 * gnulib/argp-eexst.c: Likewise.
14533 * gnulib/argp-fmtstream.c: Likewise.
14534 * gnulib/argp-fmtstream.h: Likewise.
14535 * gnulib/argp-fs-xinl.c: Likewise.
14536 * gnulib/argp-help.c: Likewise.
14537 * gnulib/argp-namefrob.h: Likewise.
14538 * gnulib/argp-parse.c: Likewise.
14539 * gnulib/argp-pin.c: Likewise.
14540 * gnulib/argp-pv.c: Likewise.
14541 * gnulib/argp-pvh.c: Likewise.
14542 * gnulib/argp-version-etc.c: Likewise.
14543 * gnulib/argp-version-etc.h: Likewise.
14544 * gnulib/argp-xinl.c: Likewise.
14545 * gnulib/argp.h: Likewise.
14546
14547 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * kern/device.c (grub_device_iterate): Clear errors after failed
14550 opening device.
14551
14552 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
14555 returned by firmware.
14556
14557 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
14560 compilation on coreboot and qemu
14561
14562 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 * include/multiboot2.h: Resync with spec.
14565
14566 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
14567
14568 Multiboot2 tag support
14569
14570 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
14571 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
14572 Remove loader/multiboot_loader.c.
14573 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
14574 (grub_multiboot2_real_boot): Likewise.
14575 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
14576 (grub_get_multiboot_mmap_count): New proto.
14577 (grub_fill_multiboot_mmap): Likewise.
14578 (grub_multiboot_set_video_mode): Likewise.
14579 (grub_multiboot_set_console): Likewise.
14580 (grub_multiboot_load): Likewise.
14581 (grub_multiboot_load_elf): Likewise.
14582 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
14583 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
14584 * include/multiboot.h: Resynced with specification.
14585 * include/multiboot2.h: Resynced with specification.
14586 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
14587 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
14588 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
14589 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
14590 users updated.
14591 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
14592 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
14593 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
14594 Removed.
14595 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
14596 Moved from here...
14597 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
14598 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14599 Moved from here...
14600 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
14601 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
14602 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
14603 All users updated.
14604 * loader/i386/multiboot_mbi2.c: New file.
14605
14606 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 Resync with gnulib.
14609
14610 * Makefile.in (GNULIB_CFLAGS): New variable.
14611 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
14612 (grub_script_check_CFLAGS): New variable.
14613 * gnulib/alloca.h: Resync with gnulib.
14614 * gnulib/error.c: Likewise.
14615 * gnulib/error.h: Likewise.
14616 * gnulib/fnmatch.c: Likewise.
14617 * gnulib/fnmatch_loop.c: Likewise.
14618 * gnulib/getdelim.c: Likewise.
14619 * gnulib/getline.c: Likewise.
14620 * gnulib/getopt.c: Likewise.
14621 * gnulib/getopt1.c: Likewise.
14622 * gnulib/getopt_int.h: Likewise.
14623 * gnulib/gettext.h: Likewise.
14624 * gnulib/progname.c: Likewise.
14625 * gnulib/progname.h: Likewise.
14626
14627 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
14628
14629 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
14630 which is the case with --disabled-nls.
14631
14632 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
14633 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
14634 * util/misc.c: Likewise.
14635 * util/mkisofs/mkisofs.c: Likewise.
14636 * util/mkisofs/mkisofs.h: Likewise.
14637
14638 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 Simplify Apple CC support.
14641
14642 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
14643 Add 0 byte at the end not to have a symbol with empty target.
14644 * mmap/i386/pc/mmap_helper.S: Likewise.
14645 * genmk.rb: Ignore errors 2030 and 2050.
14646 * kern/i386/pc/startup.S: Use LOCAL when possible.
14647
14648 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
14649
14650 Testcase and the fix for final semicolon on cmdline.
14651
14652 * tests/grub_script_final_semicolon.in: New testcase.
14653 * conf/tests.rmk: Rules for the new testcase.
14654 * script/parser.y: Grammar fix.
14655
14656 2010-03-26 BVK Chaitanya <bvk@localhost>
14657
14658 Blank lines testcase for GRUB script.
14659
14660 * tests/grub_script_blanklines.in: New testcase.
14661 * conf/tests.rmk: Rules for the new testcase.
14662
14663 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 Don't use __FILE__.
14666
14667 * genmk.rb: Add -DGRUB_FILE to all C targets.
14668 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
14669 * include/grub/list.h: Likewise.
14670 * include/grub/misc.h: Likewise.
14671 * include/grub/mm.h: Likewise.
14672 * include/grub/test.h: Likewise.
14673 * kern/mm.c: Likewise.
14674 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
14675
14676 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 Sunpc partitions support.
14679
14680 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
14681 (grub_fstest_SOURCES): Likewise.
14682 (pkglib_MODULES): Add part_sunpc.mod.
14683 (part_sunpc_mod_SOURCES): New variable.
14684 (part_sunpc_mod_CFLAGS): Likewise.
14685 (part_sunpc_mod_LDFLAGS): Likewise.
14686 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
14687 * partmap/sunpc.c: New file.
14688
14689 2010-03-26 BVK Chaitanya <bvk@localhost>
14690
14691 For loop support to GRUB script.
14692
14693 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
14694 (grub_script_create_cmdfor): New function prototype.
14695 (grub_script_execute_cmdfor): New function prototype.
14696 * script/execute.c (grub_script_execute_cmdfor): New function.
14697 * script/parser.y (command): New for command.
14698 (forcmd): New grammar rule.
14699 * script/script.c (grub_script_create_cmdfor): New function.
14700 * util/grub-script-check.c (grub_script_execute_cmdfor): New
14701 function.
14702 * tests/grub_script_for1.in: New testcase.
14703 * conf/tests.rmk: Rules for new testcase.
14704
14705 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14706
14707 Nested partitions
14708
14709 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
14710 'partition' is NULL, grub_partition_get_start already does that.
14711 * commands/loadenv.c (check_blocklists): Likewise.
14712 (write_blocklists): Likewise.
14713 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
14714 (grub_fstest_SOURCES): Likewise.
14715 (pkglib_MODULES): Add part_bsd.mod.
14716 (part_bsd_mod_SOURCES): New variable.
14717 (part_bsd_mod_CFLAGS): Likewise.
14718 (part_bsd_mod_LDFLAGS): Likewise.
14719 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
14720 (grub_emu_SOURCES): Likewise.
14721 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14722 * include/grub/bsdlabel.h: New file.
14723 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
14724 'get_name'.
14725 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
14726 (grub_partition_map_list): New variable.
14727 (grub_partition_map_register): Inline.
14728 (grub_partition_map_unregister): Likewise.
14729 (FOR_PARTITION_MAPS): New macro.
14730 (grub_partition_map_iterate): Removed.
14731 (grub_partition_get_start): Handle nested partitions.
14732 * include/grub/msdos_partition.h: Remove bsd-related entries.
14733 (grub_pc_partition): Remove.
14734 * kern/disk.c (grub_disk_close): Free partition data.
14735 (grub_disk_adjust_range): Handle nested partitions.
14736 * kern/partition.c (grub_partition_map_probe): New function.
14737 (grub_partition_probe): Parse name to number, handle subpartitions.
14738 (get_partmap): New function.
14739 (grub_partition_iterate): Handle subpartitions.
14740 (grub_partition_get_name): Likewise.
14741 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
14742 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
14743 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
14744 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
14745 Set 'number'.
14746 (acorn_partition_map_probe): Remove.
14747 (acorn_partition_map_get_name): Likewise.
14748 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
14749 Set 'number'.
14750 Set 'index' to 0 since there can be only one partition entry per sector.
14751 (amiga_partition_map_probe): Remove.
14752 (amiga_partition_map_get_name): Likewise.
14753 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
14754 Set 'number'.
14755 Set 'offset' and 'index' to real positions of partitions.
14756 (apple_partition_map_probe): Remove.
14757 (apple_partition_map_get_name): Likewise.
14758 * partmap/bsdlabel.c: New file.
14759 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
14760 Set 'number'.
14761 Allocate 'data' so it can be correctly freed.
14762 Set 'index' to offset inside sector.
14763 (gpt_partition_map_probe): Remove.
14764 (gpt_partition_map_get_name): Likewise.
14765 * partmap/msdos.c (grub_partition_parse): Remove.
14766 (pc_partition_map_iterate): Don't force raw access.
14767 Set 'number'.
14768 Make 'ext_offset' a local variable.
14769 (pc_partition_map_probe): Remove.
14770 (pc_partition_map_get_name): Remove.
14771 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
14772 Set 'number'.
14773 (sun_partition_map_probe): Remove.
14774 (sun_partition_map_get_name): Likewise.
14775 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
14776 (grub_pcpart_type): Likewise.
14777 * util/hostdisk.c (open_device): Handle new numbering scheme.
14778 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
14779 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
14780 * util/grub-probe.c (probe_partmap): Handle nested paritions.
14781 * util/grub-install.in: Insert all subpartition modules.
14782 * util/ieee1275/grub-install.in: Likewise.
14783
14784 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
14785
14786 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
14787 grammar.
14788
14789 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
14790
14791 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
14792
14793 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
14794
14795 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
14796 match where 'make install' puts them.
14797 * util/i386/efi/grub-install.in: Likewise.
14798
14799 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
14800
14801 * .bzrignore: Add gentrigtables, grub-script-check,
14802 grub_script_check_init.c, grub_script_check_init.h, and
14803 trigtables.c.
14804
14805 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 * kern/parser.c: Indented.
14808
14809 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14810
14811 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
14812
14813 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
14816 alpha_mask_size == 0 case.
14817
14818 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
14819
14820 GRUB shell lexer and parser improvements.
14821
14822 * conf/any-emu.rmk: Build rule updates.
14823 * conf/common.rmk: Likewise.
14824 * conf/i386-coreboot.rmk: Likewise.
14825 * conf/i386-efi.rmk: Likewise.
14826 * conf/i386-ieee1275.rmk: Likewise.
14827 * conf/i386-pc.rmk: Likewise.
14828 * conf/powerpc-ieee1275.rmk: Likewise.
14829 * conf/x86_64-efi.rmk: Likewise.
14830
14831 * configure.ac: Configure check for flex.
14832
14833 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
14834 types.
14835 (grub_lexer_param): Struct member updates.
14836 (grub_parser_param): Likewise.
14837 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
14838 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
14839 (grub_script_lexer_init): Prototype update.
14840 (grub_script_lexer_record_start): Likewise.
14841 (grub_script_lexer_record_stop): Likewise.
14842 (grub_script_lexer_yywrap): New function prototype.
14843 (grub_script_lexer_fini): Likewise.
14844 (grub_script_execute_argument_to_string): Removed by...
14845 (grub_script_execute_argument_to_argv): ...better version.
14846
14847 * script/execute.c (ROUND_UPTO): New macro.
14848 (grub_script_execute_cmdline): Out of memory fixes.
14849 (grub_script_execute_menuentry): Likewise.
14850 (grub_script_execute_argument_to_string): Removed. Update all
14851 users by...
14852 (grub_script_execute_argument_to_argv): ...better version.
14853 * script/function.c (grub_script_function_create): Use
14854 grub_script_execute_argument_to_argv instead of
14855 grub_script_execute_argument_to_string.
14856
14857 * script/lexer.c (check_varstate): Removed.
14858 (check_textstate): Removed.
14859 (grub_script_lexer_record_start): Likewise.
14860 (grub_script_lexer_record_stop): Likewise.
14861 (recordchar): Replaced with...
14862 (grub_script_lexer_record): ...new function.
14863 (nextchar): Removed.
14864 (grub_script_lexer_init): Rewritten.
14865 (grub_script_yylex): Rewritten.
14866 (append_newline): New function.
14867 (grub_script_lexer_yywrap): New function.
14868 (grub_script_lexer_fini): New function.
14869 (grub_script_yyerror): Sets error flag.
14870
14871 * script/yylex.l: New file.
14872 (grub_lexer_yyfree): Wrapper for flex yyffre.
14873 (grub_lexer_yyalloc): Likewise.
14874 (grub_lexer_yyrealloc): Likewise.
14875 * script/parser.y: Refactored.
14876
14877 * script/script.c (grub_script_arg_add): Out of memory fixes.
14878 (grub_script_add_arglist): Likewise.
14879 (grub_script_create_cmdline): Likewise.
14880 (grub_script_create_cmdmenu): Likewise.
14881 (grub_script_add_cmd): Likewise.
14882 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
14883 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
14884 unnecessary code.
14885
14886 * tests/grub_script_echo1.in: New testcase.
14887 * tests/grub_script_vars1.in: New testcase.
14888 * tests/grub_script_echo_keywords.in: New testcase.
14889
14890 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 Remove some redundancy in build system.
14893
14894 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
14895 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
14896 (TARGET_LDFLAGS): Add -nostdlib.
14897 (TARGET_IMG_LDFLAGS): Likewise.
14898 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
14899 anything since mmap isn't available.
14900 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
14901 Add util/time.c.
14902 (pkglib_MODULES): Remove reboot.mod.
14903 (reboot_mod_SOURCES): Removed.
14904 (reboot_mod_CFLAGS): Likewise.
14905 (reboot_mod_LDFLAGS): Likewise.
14906 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
14907 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
14908 (DEFSYMFILES): Add kernel_syms.lst.
14909 (kernel_img_HEADERS): Add common headers.
14910 (symlist.c): New target.
14911 (kernel_syms.lst): Likewise.
14912 (pkglib_MODULES): Add memdisk.mod.
14913 (memdisk_mod_SOURCES): New variable.
14914 (memdisk_mod_CFLAGS): Likewise.
14915 (memdisk_mod_LDFLAGS): Likewise.
14916 (pkglib_MODULES): Add reboot.mod.
14917 (reboot_mod_SOURCES): New variable.
14918 (reboot_mod_CFLAGS): Likewise.
14919 (reboot_mod_LDFLAGS): Likewise.
14920 (pkglib_MODULES): Add date.mod.
14921 (date_mod_SOURCES): New variable.
14922 (date_mod_CFLAGS): Likewise.
14923 (date_mod_LDFLAGS): Likewise.
14924 (pkglib_MODULES): Add datehook.mod.
14925 (datehook_mod_SOURCES): New variable.
14926 (datehook_mod_CFLAGS): Likewise.
14927 (datehook_mod_LDFLAGS): Likewise.
14928 (pkglib_MODULES): Add lsmmap.mod.
14929 (lsmmap_mod_SOURCES): New variable.
14930 (lsmmap_mod_CFLAGS): Likewise.
14931 (lsmmap_mod_LDFLAGS): Likewise.
14932 (pkglib_MODULES): Add boot.mod.
14933 (boot_mod_SOURCES): New variable.
14934 (boot_mod_CFLAGS): Likewise.
14935 (boot_mod_LDFLAGS): Likewise.
14936 * conf/i386-coreboot.rmk: Removed redundant parts.
14937 * conf/i386-ieee1275.rmk: Likewise.
14938 * conf/i386-pc.rmk: Likewise.
14939 * conf/mips-yeeloong.rmk: Likewise.
14940 * conf/mips.rmk: Likewise.
14941 * conf/powerpc-ieee1275.rmk: Likewise.
14942 * conf/sparc64-ieee1275.rmk: Likewise.
14943 * conf/x86_64-efi.rmk: Likewise.
14944 * conf/i386-coreboot.rmk: Moved qemu parts ..
14945 * conf/i386-qemu.rmk: ... here
14946 * conf/i386-efi.rmk: Moved common parts to...
14947 * conf/x86-efi.rmk: ... here.
14948 * conf/i386.rmk: Added modules common to all x86 variants.
14949 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
14950 * disk/memdisk.c: Remove grub/machine/kernel.h.
14951 * gensymlist.sh.in: Include symbol.h.
14952 * hook/datehook.c: Correct module name.
14953 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
14954 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
14955 * include/grub/i386/efi/serial.h: New file.
14956 * include/grub/x86_64/efi/serial.h: Likewise.
14957 * util/time.c: Likewise.
14958 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
14959
14960 2010-03-14 Colin King <colin.king@ubuntu.com>
14961 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14962
14963 Shrink the pre-partition-table part of boot.img by eight bytes.
14964
14965 * boot/i386/pc/boot.S (ERR): New macro.
14966 (chs_mode): Use ERR.
14967 (geometry_error): Likewise.
14968 (hd_probe_error): Remove. This is only used once, so we wrwite
14969 it inline instead.
14970 (read_error): Instead of printing read_error_string, just set up
14971 %si and fall through to ...
14972 (error_message): ... this new function, also used by ERR.
14973
14974 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
14975
14976 Speed up consecutive hostdisk operations on the same device.
14977
14978 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
14979 (grub_util_biosdisk_open): Initialise disk->data.
14980 (struct linux_partition_cache): New structure.
14981 (linux_find_partition): Cache partition start positions; these are
14982 expensive to compute on every read and write.
14983 (open_device): Cache open file descriptor in disk->data, so that we
14984 don't have to reopen it and flush the buffer cache for consecutive
14985 operations on the same device.
14986 (grub_util_biosdisk_close): New function.
14987 (grub_util_biosdisk_dev): Set `close' member.
14988
14989 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
14990 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
14991 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14992 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14993 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
14994
14995 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
14996
14997 Compile parts of grub-emu as modules.
14998
14999 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15000 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15001 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15002 (all-local): Add $(GRUB_EMU).
15003 (install-local): Install $(GRUB_EMU).
15004 (uninstall): Uninstall $(GRUB_EMU).
15005 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15006 * kern/dl.c: Likewise.
15007 * commands/sleep.c: Not include machine/time.h.
15008 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15009 (COMMON_CFLAGS): Likewise.
15010 (sbin_UTILITIES): Remove grub-emu.
15011 (grub_emu_SOURCES): Removed.
15012 (kernel_img_RELOCATABLE): New variable.
15013 (pkglib_PROGRAMS): Add kernel.img.
15014 (kernel_img_SOURCES): New variable
15015 (kernel_img_CFLAGS): Likewise.
15016 (kernel_img_LDFLAGS): Likewise.
15017 (TARGET_NO_STRIP): Likewise.
15018 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15019 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15020 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15021 (grub-emu): New target.
15022 (GRUB_EMU): New variable.
15023 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15024 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15025 * loader/xnu.c: Likewise.
15026 * include/grub/pci.h: Likewise.
15027 * genemuinit.sh: New file.
15028 * genemuinitheader.sh: Likewise.
15029 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15030 Support TARGET_NO_DYNAMIC_MODULES.
15031 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15032 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15033 * disk/loopback.c: Likewise.
15034 * font/font_cmd.c: Likewise.
15035 * partmap/acorn.c: Likewise.
15036 * partmap/amiga.c: Likewise.
15037 * partmap/apple.c: Likewise.
15038 * partmap/gpt.c: Likewise.
15039 * partmap/msdos.c: Likewise.
15040 * partmap/sun.c: Likewise.
15041 * parttool/msdospart.c: Likewise.
15042 * term/gfxterm.c: Likewise.
15043 * video/bitmap.c: Likewise.
15044 * video/readers/jpeg.c: Likewise.
15045 * video/readers/png.c: Likewise.
15046 * video/readers/tga.c: Likewise.
15047 * video/video.c: Likewise.
15048 * util/grub-emu.c (read_command_list): Removed.
15049 (main): Don't call util_init_nls.
15050 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15051 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15052
15053 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15056 date.mod, datehook.mod.
15057 (datetime_mod_SOURCES): New variable.
15058 (datetime_mod_CFLAGS): Likewise.
15059 (datetime_mod_LDFLAGS): Likewise.
15060 (date_mod_SOURCES): Likewise.
15061 (date_mod_CFLAGS): Likewise.
15062 (date_mod_LDFLAGS): Likewise.
15063 (datehook_mod_SOURCES): Likewise.
15064 (datehook_mod_CFLAGS): Likewise.
15065 (datehook_mod_LDFLAGS): Likewise.
15066 * conf/sparc64-ieee1275.rmk: Likewise.
15067 * lib/ieee1275/datetime.c: New file.
15068
15069 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15070
15071 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15072 (ieee1275_fb_mod_SOURCES): New variable.
15073 (ieee1275_fb_mod_CFLAGS): Likewise.
15074 (ieee1275_fb_mod_LDFLAGS): Likewise.
15075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15076 New proto.
15077 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15078 (HEAP_MAX_ADDR): Likewise.
15079 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15080 type.
15081 Correct stop condition.
15082 (grub_ieee1275_devices_iterate): New function.
15083 * video/ieee1275.c: New file.
15084
15085 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15086
15087 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15088
15089 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15090 as scratch.
15091 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15092 SCRATCH_PAD_DISKBOOT as scratch.
15093 (bootit): Pass Openfirmware pointer in %o4.
15094 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15095 of 0x200000.
15096 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15097 with util/grub-mkrawimage.c.
15098 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15099 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15100 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15101 (grub_aout_load) [GRUB_UTIL]: Likewise.
15102 * include/grub/kernel.h (grub_modules_get_end): New proto.
15103 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15104 (SCRATCH_PAD_BOOT): New definition.
15105 (SCRATCH_PAD_DISKBOOT): Likewise.
15106 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15107 * include/grub/sparc64/ieee1275/ieee1275.h
15108 (grub_ieee1275_original_stack): New variable
15109 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15110 New definition
15111 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15112 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15113 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15114 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15115 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15116 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15117 (grub_platform_image_format_t): New type.
15118 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15119 * kern/main.c (grub_modules_get_end)
15120 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15121 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15122 (codestart): Switch stacks.
15123 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15124 variable.
15125 (grub_heap_init): Use grub_modules_get_end.
15126 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15127 stack.
15128 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15129 (main): Likewise.
15130 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15131
15132 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15133
15134 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15135
15136 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15137
15138 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15139 bug #559005).
15140
15141 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * genmoddep.awk: Output all missing symbols and not only first.
15144
15145 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * NEWS: Put the date of 1.98 release.
15148
15149 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15152 ft2build.h.
15153
15154 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15155
15156 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15157 completition in the middle of string.
15158
15159 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 * util/grub-mkrescue.in: Use mktemp with explicit template.
15162
15163 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15164
15165 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15166
15167 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15170 right pointer.
15171
15172 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 Fix FreeBSD compilation.
15175
15176 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15177 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15178
15179 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15180
15181 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15182
15183 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15186
15187 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15190
15191 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15192
15193 Support relative image path in theme file.
15194
15195 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15196 (image_set_property): Handle theme_dir and relative path.
15197
15198 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15199
15200 * configure.ac: Alias amd64 to x86_64.
15201
15202 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15203
15204 * NEWS: mention multiboot on EFI.
15205
15206 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * kern/main.c (grub_load_modules): Handle errors from init functions of
15209 embeded modules.
15210
15211 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 * normal/autofs.c (autoload_fs_module): Handle errors.
15214
15215 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15216
15217 Disable linux.mod on qemu-mips since it's not functional and leads
15218 to compilation failure.
15219
15220 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15221 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15222 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15223 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15224 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15225 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15226 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15227 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15228 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15229 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15230 Reported by: BVK Chaitanya
15231
15232 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15233
15234 * INSTALL: Add gettext as a dependency and add qemu to a new section
15235 "Prerequisites for make-check".
15236
15237 2010-03-04 Christian Franke <franke@computer.org>
15238
15239 * util/grub-pe2elf.c: Add missing include "progname.h".
15240
15241 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * normal/crypto.c (read_crypto_list): Fix a typo.
15244 Reported by: Seth Goldberg.
15245
15246 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15249 Reported by: Seth Goldberg.
15250
15251 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15254 ascii.bitmaps.
15255
15256 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15257
15258 * genmk.rb: Remove terminal*.lst in make clean.
15259 Reported by: Seth Goldberg.
15260
15261 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 * util/i386/efi/grub-install.in: Copy gettext files.
15264
15265 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15268
15269 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15270
15271 Wait for user entry basing on presence of output rather than on errors.
15272
15273 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15274 (grub_install_newline_hook): Likewise.
15275 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15276 * normal/menu.c (show_menu): Check line_counter to determine presence
15277 of output.
15278 * normal/term.c (grub_normal_line_counter): New variable.
15279 (grub_normal_get_line_counter): New function.
15280 (grub_install_newline_hook): Likewise.
15281
15282 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15283
15284 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15285
15286 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15287
15288 * configure.ac: Update version to 1.98.
15289
15290 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15291
15292 * util/grub.d/10_linux.in (linux_entry): Don't default to
15293 gfxpayload=keep if Linux doesn't support video handover.
15294
15295 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15296
15297 Don't compile video modules on yeeloong since video subsystem is part
15298 of kernel.
15299
15300 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15301 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15302 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15303 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15304 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15305 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15306 * include/grub/bitmap_scale.h: Likewise.
15307 * include/grub/bufio.h: Likewise.
15308 * include/grub/font.h: Likewise.
15309 * include/grub/gfxterm.h: Likewise.
15310 * include/grub/video.h: Likewise.
15311 * include/grub/vbe.h: Don't include video_fb.h.
15312 * video/i386/pc/vbe.c: Include video_fb.h.
15313 * commands/i386/pc/vbetest.c: Include video.h.
15314
15315 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15316
15317 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15318 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15319 default entry if GRUB_SAVEDEFAULT=true. This allows using
15320 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15321 saving a new default on every boot.
15322
15323 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15324
15325 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15326 * normal/term.c (read_terminal_list): Likewise.
15327 * normal/main.c (grub_normal_init_page): Likewise.
15328 (grub_normal_read_line_real): Likewise.
15329
15330 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15331
15332 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
15333 memory leak.
15334 Reported by: Seth Goldberg.
15335
15336 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
15337
15338 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
15339 duplicate declaration of `start'.
15340
15341 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
15344 filename.
15345 Reported by: Georgy Buranov
15346
15347 2010-02-20 Carles Pina i Estany <carles@pina.cat>
15348
15349 * util/grub-mkrawimage.c (usage): Change string formatting to
15350 improve gettext.
15351
15352 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15353
15354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
15355 backspace keys.
15356
15357 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
15358
15359 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
15360 Reported by: Michael Suchanek.
15361
15362 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15363
15364 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
15365 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
15366
15367 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
15368
15369 Remove any reference to non-free fonts.
15370
15371 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
15372 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
15373 uses non-free components.
15374 * font/font.c (grub_font_get_name): Remove example name.
15375 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
15376 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15377 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
15378 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
15379
15380 2010-02-16 Georgy Buranov <gburanov@gmail.com>
15381
15382 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
15383
15384 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15385
15386 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
15387 Double divisor.
15388 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
15389 features.
15390 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
15391
15392 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 * gensymlist.sh.in: Use TARGET_CC instead of CC.
15395
15396 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15397
15398 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
15399 * docs/grub.texi (Command-line and menu entry commands): Document play
15400 command.
15401
15402 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15403
15404 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
15405 parse arguments as inline tempo and notes. Move code for playing notes
15406 to...
15407 (play): ... new function.
15408
15409 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15410
15411 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
15412 grub_uint16_t instead of short.
15413 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
15414 disk from little endian to cpu endianness.
15415
15416 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
15417
15418 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
15419 GRUB_TICKS_PER_SECOND instead of 120.
15420
15421 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
15424 escape sequence after \e.
15425
15426 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
15429 non-ASCII characters.
15430
15431 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15432
15433 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
15434 set root in single quotes to prevent \, from being unescaped.
15435
15436 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 Prevent unknown commands from stopping menuentry execution.
15439
15440 * script/execute.c (grub_script_execute_cmdline): Print error after
15441 unknown command.
15442
15443 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
15446 Reported by: Pavel Pisa.
15447
15448 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15449
15450 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
15451
15452 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15453
15454 Merge grub_ieee1275_map_physical into grub_map and rename to
15455 grub_ieee1275_map
15456
15457 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
15458 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
15459 Remove.
15460 * kern/ieee1275/openfw.c (grub_map): Rename to ...
15461 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
15462 necessary.
15463 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
15464
15465 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15466
15467 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
15468 opening and not after.
15469
15470 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15471
15472 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
15473 constants.
15474
15475 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
15478 (alloc_phys): Use ALIGN_UP instead of align_addr.
15479
15480 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
15483
15484 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15485
15486 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
15487
15488 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15489
15490 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
15491 verbose dprintf.
15492
15493 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 Fix over-4GiB seek on sparc64.
15496
15497 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
15498 Replace pos_i and pos_lo with pos. All users updated.
15499 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15500 New constant.
15501 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
15502 Likewise.
15503 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
15504 and pos_lo.
15505
15506 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * util/grub-mkrawimage.c (main): Call set_program_name.
15509
15510 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15511
15512 Properly align 64-bit targets.
15513
15514 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
15515 (generate_image): Use ALIGN_ADDR.
15516
15517 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15518
15519 Properly create cross-endian images.
15520
15521 * include/grub/types.h (grub_host_to_target_addr): New macro
15522 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
15523
15524 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
15525
15526 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
15527
15528 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15529
15530 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
15531
15532 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
15533 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
15534 (grub_linux_boot): Divide by 64K when on VESA.
15535
15536 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 Support GRUB_GFXPAYLOAD_LINUX.
15539
15540 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
15541 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
15542
15543 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
15544
15545 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
15546 to show messages instead of discarding them.
15547 Process errors after executing command and not before. Keep old method
15548 too as precaution.
15549
15550 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
15551
15552 * configure.ac: Check for ft2build.h.
15553
15554 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
15557
15558 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15559
15560 * genkernsyms.sh.in: Use TARGET_CC.
15561
15562 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
15563
15564 * NEWS: Update.
15565
15566 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 * include/grub/multiboot2.h: Remove leftover file.
15569 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
15570 * include/grub/partition.h [GRUB_UTIL]: Likewise.
15571
15572 2010-02-07 Yves Blusseau <blusseau@zetam.org>
15573
15574 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
15575
15576 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 Fix warnings in grub-emu when compiling with maximum warning options.
15579
15580 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
15581 (grub_arch_modules_addr): Return 0 and not NULL.
15582 * util/misc.c (ENABLE_RELOCATABLE): New definition.
15583 (xstrdup): Use newstr instead of dup.
15584 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
15585 of disk to dsk to avoid shadowing.
15586 (find_free_slot): Fix prototype.
15587 * util/getroot.c (grub_util_is_dmraid): Make static.
15588 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
15589 Add missing prototype.
15590 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
15591
15592 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 * loader/i386/linux.c (grub_linux_setup_video): Handle error
15595 appropriately.
15596
15597 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15598
15599 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
15600 code out.
15601
15602 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
15605 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
15606 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
15607 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
15608 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
15609 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
15610
15611 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15612
15613 * include/grub/err.h (grub_err_printf): Don't export.
15614
15615 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
15618
15619 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
15620
15621 * include/grub/i18n.h (grub_gettext_dummy): Removed.
15622 * kern/misc.c (grub_gettext_dummy): Make static.
15623
15624 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15625
15626 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
15627 by non-valid ones.
15628 * kern/term.c (grub_putchar): Likewise.
15629
15630 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
15633 buggy hook call and memory leak.
15634
15635 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
15638
15639 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15640
15641 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
15642
15643 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
15646 modevar.
15647 Return grub_errno on allocation error.
15648
15649 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
15652
15653 2010-02-06 Yves Blusseau <blusseau@zetam.org>
15654
15655 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
15656 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
15657
15658 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
15661 non-pxe disk.
15662 (grub_pxefs_open): Likewise.
15663
15664 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15665
15666 * util/grub.d/10_hurd.in: Add --class information to menuentries.
15667 * util/grub.d/10_kfreebsd.in: Likewise.
15668 * util/grub.d/10_linux.in: Likewise.
15669
15670 2010-02-06 Colin D Bennett <colin@gibibit.com>
15671
15672 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
15673 (gfxmenu_mod_SOURCES): New variable.
15674 (gfxmenu_mod_CFLAGS): Likewise.
15675 (gfxmenu_mod_LDFLAGS): Likewise.
15676 * include/grub/term.h (grub_term_set_current_output): Declare
15677 argument as const.
15678 * docs/gfxmenu-theme-example.txt: New file.
15679 * gfxmenu/gfxmenu.c: Likewise.
15680 * gfxmenu/gui_box.c: Likewise.
15681 * gfxmenu/gui_canvas.c: Likewise.
15682 * gfxmenu/gui_circular_progress.c: Likewise.
15683 * gfxmenu/gui_image.c: Likewise.
15684 * gfxmenu/gui_label.c: Likewise.
15685 * gfxmenu/gui_list.c: Likewise.
15686 * gfxmenu/gui_progress_bar.c: Likewise.
15687 * gfxmenu/gui_string_util.c: Likewise.
15688 * gfxmenu/gui_util.c: Likewise.
15689 * gfxmenu/icon_manager.c: Likewise.
15690 * gfxmenu/model.c: Likewise.
15691 * gfxmenu/named_colors.c: Likewise.
15692 * gfxmenu/theme_loader.c: Likewise.
15693 * gfxmenu/view.c: Likewise.
15694 * gfxmenu/widget-box.c: Likewise.
15695 * include/grub/gfxmenu_model.h: Likewise.
15696 * include/grub/gfxmenu_view.h: Likewise.
15697 * include/grub/gfxwidgets.h: Likewise.
15698 * include/grub/gui.h: Likewise.
15699 * include/grub/gui_string_util.h: Likewise.
15700 * include/grub/icon_manager.h: Likewise.
15701
15702 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 Agglomerate scrolling in gfxterm.
15705
15706 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
15707 (grub_virtual_screen_setup): Initialise 'total_screen'.
15708 (write_char): Split to ...
15709 (paint_char): ... this ...
15710 (write_char): ... and this.
15711 (paint_char): Handle delayed scrolling.
15712 (draw_cursor): Likewise.
15713 (scroll_up): Split to ...
15714 (real_scroll): ... this ...
15715 (scroll_up): ... and this.
15716 (real_scroll): Handle multi-line scroll and draw below-the-bottom
15717 characters.
15718 (grub_gfxterm_refresh): Call real_scroll.
15719
15720 2010-02-06 Colin D Bennett <colin@gibibit.com>
15721
15722 * include/grub/misc.h (grub_iscntrl): New inline function.
15723 (grub_isalnum): Likewise.
15724 (grub_strtol): Likewise.
15725
15726 2010-02-06 Colin D Bennett <colin@gibibit.com>
15727
15728 * normal/menu_text.c (get_entry_number): Move from here ...
15729 * normal/menu.c (get_entry_number): ... moved here.
15730 * include/grub/menu.h (grub_menu_get_default_entry_index):
15731 New prototype.
15732 * normal/menu.c (grub_menu_get_default_entry_index): New function.
15733 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
15734 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
15735 (grub_menu_viewer_should_return): Likewise.
15736 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
15737 * normal/menu_text.c (run_menu): Enable menu switching.
15738 * normal/menu_viewer.c (should_return): New variable.
15739 (menu_viewer_changed): Likewise.
15740 (grub_menu_viewer_show_menu): Handle menu viewer changes.
15741 (grub_menu_viewer_should_return): New function.
15742 (menuviewer_write_hook): Likewise.
15743 (grub_menu_viewer_init): Likewise.
15744
15745 2010-02-06 Colin D Bennet <colin@gibibit.com>
15746 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 Support for gfxterm in a window.
15749
15750 * include/grub/gfxterm.h: New file.
15751 * include/grub/video.h (struct grub_video_rect): New declaration.
15752 (grub_video_rect_t): Likewise.
15753 * term/gfxterm.c (struct grub_gfxterm_window): New type.
15754 (refcount): New variable.
15755 (render_target): Likewise.
15756 (window): Likewise.
15757 (repaint_callback): Likewise.
15758 (grub_virtual_screen_setup): Use 'render_target'.
15759 (init_window): New function.
15760 (grub_gfxterm_init_window): Likewise.
15761 (grub_gfxterm_init): Check reference counter.
15762 Use init_window.
15763 (destroy_window): New function.
15764 (grub_gfxterm_destroy_window): Likewise.
15765 (grub_gfxterm_fini): Check reference counter.
15766 Use destroy_window.
15767 (redraw_screen_rect): Restore viewport.
15768 Use 'render_target' and 'window'.
15769 Call 'repaint_callback'.
15770 (write_char): Use 'render_target'.
15771 (draw_cursor): Likewise.
15772 (scroll_up): Restore viewport.
15773 Use 'render_target' and 'window'.
15774 Call 'repaint_callback'.
15775 (grub_gfxterm_cls): Likewise.
15776 (grub_gfxterm_refresh): Use 'window'.
15777 (grub_gfxterm_set_repaint_callback): New function.
15778 (grub_gfxterm_background_image_cmd): Use 'window'.
15779 (grub_gfxterm_get_term): New function.
15780 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
15781
15782 2010-02-06 Colin D Bennett <colin@gibibit.com>
15783
15784 Bitmap scaling support.
15785
15786 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
15787 (bitmap_scale_mod_SOURCES): New variable.
15788 (bitmap_scale_mod_CFLAGS): Likewise.
15789 (bitmap_scale_mod_LDFLAGS): Likewise.
15790 * include/grub/bitmap_scale.h: New file.
15791 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
15792 (background_image_cmd_options): New variable.
15793 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
15794 (cmd): Rename and change type to ...
15795 (background_image_cmd_handle): ... this. All users updated.
15796 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
15797 * video/bitmap_scale.c: New file.
15798
15799 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 SDL support.
15802
15803 * Makefile.in (LIBSDL): New variable.
15804 (enable_grub_emu_sdl): Likewise.
15805 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
15806 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
15807 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
15808 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
15809 * util/sdl.c: New file.
15810
15811 2010-02-06 Colin D Bennett <colin@gibibit.com>
15812 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 Double buffering support.
15815
15816 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
15817 * include/grub/video.h: Update comment.
15818 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
15819 New type.
15820 (grub_video_fb_doublebuf_blit_init): New prototype.
15821 * term/gfxterm.c (scroll_up): Support double buffering.
15822 (grub_gfxterm_refresh): Likewise.
15823 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
15824 (grub_video_fb_doublebuf_blit_init): Likewise.
15825 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
15826 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
15827 'displayed_page', 'render_page' and 'update_screen'.
15828 (grub_video_vbe_fini): Free offscreen buffer.
15829 (doublebuf_pageflipping_commit): New function.
15830 (doublebuf_pageflipping_update_screen): Likewise.
15831 (doublebuf_pageflipping_init): Likewise.
15832 (double_buffering_init): Likewise.
15833 (grub_video_vbe_setup): Enable doublebuffering.
15834 (grub_video_vbe_swap_buffers): Implement.
15835 (grub_video_vbe_set_active_render_target): Handle double buffering.
15836 (grub_video_vbe_get_active_render_target): Likewise.
15837 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
15838 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
15839 (grub_video_vbe_enable_double_buffering): Likewise.
15840 (grub_video_vbe_swap_buffers): Use update_screen.
15841 (grub_video_set_mode): Use double buffering.
15842
15843 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15844
15845 * maintainance/gentrigtables.py: Remove.
15846 * lib/trig.c: Likewise.
15847
15848 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
15849
15850 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
15851 `trigtables.c'.
15852 (trigtables.c): New rule.
15853 (gentrigtables): Likewise.
15854 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
15855
15856 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
15857
15858 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
15859 integer constants.
15860
15861 2010-02-06 Colin D Bennet <colin@gibibit.com>
15862
15863 Trigonometry support.
15864
15865 * include/grub/trig.h: New file.
15866 * lib/trig.c: Likewise.
15867 * maintainance/gentrigtables.py: Likewise.
15868 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
15869 (trig_mod_SOURCES): New variable.
15870 (trig_mod_CFLAGS): Likewise.
15871 (trig_mod_LDFLAGS): Likewise.
15872
15873 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
15876 disk devices.
15877
15878 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
15881 error.
15882
15883 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15884
15885 * util/hostdisk.c (open_device): Don't use partition device when reading
15886 before the partition.
15887 (grub_util_biosdisk_read): Don't read from partition and before the
15888 partition in single operation.
15889 (grub_util_biosdisk_write): Don't write to partition and before the
15890 partition in single operation.
15891
15892 2010-02-03 Torsten Landschoff <torsten@debian.org>
15893
15894 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15895 last sectors.
15896
15897 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
15900 CDROM reads.
15901 (grub_biosdisk_write): Refuse to write to CDROM.
15902
15903 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15904
15905 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
15906
15907 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
15908
15909 * font/font.c (find_glyph): Check that bmp_idx is available before
15910 using it.
15911 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
15912 with (font == NULL).
15913
15914 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
15915
15916 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
15917
15918 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
15919
15920 * include/grub/script_sh.h (sourcecode): Add const qualifier.
15921 * util/grub-script-check.c (getline): Fix empty lines case.
15922
15923 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
15924
15925 * Makefile.in (check): Exit with fail status when one of the tests
15926 fails.
15927 * tests/example_functional_test.c (example_test): Fix reversed assert.
15928 * tests/example_unit_test.c (example_test): Likewise.
15929
15930 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
15931
15932 * util/grub.d/10_linux.in: This script does not use any of the
15933 contents of gettext.sh, only the external command `gettext', so stop
15934 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
15935 the same prefix as GRUB.)
15936 * util/grub.d/10_kfreebsd.in: Likewise.
15937
15938 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
15941 of the line.
15942
15943 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15944
15945 * kern/disk.c (grub_disk_read): Fix offset computation when reading
15946 last sectors.
15947
15948 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
15949
15950 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
15951 having a 4KiB and not 32KiB buffer size.
15952
15953 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15954
15955 * util/hostfs.c: Include `<errno.h>'.
15956 (grub_hostfs_read): Handle errors from fseeko() and fread().
15957
15958 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15959
15960 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
15961 loop when using read hooks on files whose size isn't sector-aligned.
15962
15963 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15964
15965 Remove unused parameter.
15966
15967 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
15968 (grub_iso9660_open): Remove initialization of `data->length'.
15969
15970 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
15971
15972 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
15973 memleak conditions.
15974
15975 2010-01-27 Carles Pina i Estany <carles@pina.cat>
15976
15977 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
15978 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
15979
15980 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15981
15982 * util/bin2h.c (usage): Fix warning (space after backslash).
15983
15984 2010-01-26 Carles Pina i Estany <carles@pina.cat>
15985
15986 * font/font.c: Include `grub/fontformat.h.
15987 Remove font file format constants.
15988 (grub_font_load): Use the new macros.
15989 * include/grub/fontformat.h: New file.
15990 * util/grub-mkfont.c: Include `grub/fontformat.c'.
15991 (write_font_pf2): Use the new macros.
15992
15993 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15994
15995 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
15996 does.
15997
15998 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
15999
16000 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16001
16002 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16003 (_start): Macroify `0x7F'.
16004
16005 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16006 (make_install_device): Use "(pxe)" as fallback prefix when booting
16007 via PXE.
16008
16009 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16010
16011 * configure.ac: Reset LIBS after check for libgcc symbols.
16012
16013 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16014
16015 * util/hostdisk.c (open_device): Add trailing newline to debug
16016 message.
16017
16018 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16019
16020 * configure.ac: Check for `limits.h'.
16021 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16022
16023 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16024
16025 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16026 capitalize error strings.
16027
16028 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16029
16030 * util/grub.d/10_hurd.in: Add a recovery mode.
16031
16032 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16033
16034 * configure.ac: Check for libgcc symbols with -nostdlib.
16035
16036 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16037
16038 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16039
16040 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16043 stack since heap may be unavailable at that point.
16044 (grub_ofconsole_gotoxy): Likewise.
16045
16046 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * configure.ac: Check for _restgpr_14_x.
16049 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16050 and _savegpr_* prototypes.
16051
16052 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16053
16054 Use generic grub_reboot() for i386-efi.
16055
16056 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16057 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16058 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16059
16060 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16061
16062 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16063 presence of "prefix" variable as it breaks when normal.mod is
16064 embedded.
16065
16066 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16069 stack since heap is unavailable at that point.
16070
16071 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16074 (grub_freebsd_bootinfo): Rewritten.
16075 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16076
16077 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16080
16081 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16082
16083 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16084 domain now.
16085
16086 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16087
16088 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16089 around for handling "/" to the correct fix. Fix a memory leak. Use
16090 xstrdup instead of strdup.
16091
16092 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16095
16096 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16099
16100 * font/font.c (struct grub_font): New member 'bmp_idx'.
16101 (font_init): Initialise 'bmp_idx'.
16102 (load_font_index): Fill 'bmp_idx'.
16103 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16104
16105 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16106
16107 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16108 unnecessary calls.
16109
16110 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16111
16112 Move context handling out of the kernel.
16113
16114 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16115 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16116 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16117 * conf/i386-efi.rmk: Likewise.
16118 * conf/i386-ieee1275.rmk: Likewise.
16119 * conf/i386-pc.rmk: Likewise.
16120 * conf/powerpc-ieee1275.rmk: Likewise.
16121 * conf/sparc64-ieee1275.rmk: Likewise.
16122 * conf/x86_64-efi.rmk: Likewise.
16123 * include/grub/env.h: Include grub/menu.h.
16124 (grub_env_var_type): Removed.
16125 (grub_env_var): Replaced field 'type' with 'global'.
16126 (grub_env_find): New prototype.
16127 (grub_env_context_open): Remove EXPORT_FUNC.
16128 (grub_env_context_close): Likewise.
16129 (grub_env_export): Likewise.
16130 (grub_env_set_data_slot): Removed.
16131 (grub_env_get_data_slot): Likewise.
16132 (grub_env_unset_data_slot): Likewise.
16133 (grub_env_unset_menu): New prototype.
16134 (grub_env_set_menu): Likewise.
16135 (grub_env_get_menu): Likewise.
16136 * include/grub/env_private.h: New file.
16137 * include/grub/normal.h (grub_context_init): New prototype.
16138 (grub_context_fini): Likewise.
16139 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16140 * normal/context.c (grub_cmd_export): ... to here.
16141 * kern/env.c: Include env_private.h.
16142 (HASHSZ): Moved to include/grub/env_private.h.
16143 (grub_env_context): Likewise.
16144 (grub_env_sorted_var): Likewise.
16145 (current_context): Renamed from this ...
16146 (grub_current_context): ...to this. 'static' removed. All users updated.
16147 (grub_env_find): Removed 'static'.
16148 (grub_env_context_open): Moved to normal/context.c.
16149 (grub_env_context_close): Likewise.
16150 (grub_env_export): Likewise.
16151 (mangle_data_slot_name): Removed.
16152 (grub_env_set_data_slot): Likewise.
16153 (grub_env_get_data_slot): Likewise.
16154 (grub_env_unset_data_slot): Likewise.
16155 * kern/main.c (grub_set_root_dev): Don't export root.
16156 It will be done later.
16157 (grub_main): Don't export prefix.
16158 It will be done later.
16159 * normal/context.c: New file.
16160 * normal/main.c (free_menu): Use grub_env_unset_menu.
16161 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16162 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16163 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16164 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16165
16166 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16167
16168 setpci support.
16169
16170 * commands/setpci.c: New file.
16171 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16172 (setpci_mod_SOURCES): New variable.
16173 (setpci_mod_CFLAGS): Likewise.
16174 (setpci_mod_LDFLAGS): Likewise.
16175
16176 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16177
16178 Byte-addressable PCI configuration space.
16179
16180 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16181 dword address.
16182 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16183 GRUB_PCI_REG_CACHELINE.
16184 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16185 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16186 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16187 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16188 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16189 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16190 grub_pci_make_address.
16191 (lock_rom_area): Likewise.
16192 * commands/lspci.c (grub_lspci_iter): Use macroses
16193 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16194 of grub_pci_make_address.
16195 * disk/ata.c (grub_ata_pciinit): Likewise.
16196 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16197 (GRUB_PCI_REG_VENDOR): Likewise.
16198 (GRUB_PCI_REG_DEVICE): Likewise.
16199 (GRUB_PCI_REG_COMMAND): Likewise.
16200 (GRUB_PCI_REG_STATUS): Likewise.
16201 (GRUB_PCI_REG_REVISION): Likewise.
16202 (GRUB_PCI_REG_CLASS): Likewise.
16203 (GRUB_PCI_REG_CACHELINE): Likewise.
16204 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16205 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16206 (GRUB_PCI_REG_BIST): Likewise.
16207 (GRUB_PCI_REG_ADDRESSES): Likewise.
16208 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16209 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16210 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16211 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16212 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16213 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16214 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16215 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16216 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16217 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16218 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16219 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16220 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16221 (GRUB_PCI_REG_MIN_GNT): Likewise.
16222 (GRUB_PCI_REG_MAX_LAT): Likewise.
16223 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16224 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16225 * video/efi_uga.c (find_framebuf): Likewise.
16226 * video/sm712.c (grub_video_sm712_setup): Likewise.
16227 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16228 space.
16229
16230 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16231
16232 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16233 can be reliably determined to be supported.
16234
16235 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16236
16237 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16238 that VESA is supported.
16239 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16240 supported.
16241
16242 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16245
16246 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16247
16248 * util/misc.c (make_system_path_relative_to_its_root): Work around
16249 special-casing of "/", as previous incarnation of this routine did.
16250
16251 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 Fix any-emu compilation.
16254
16255 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16256 * grub_bin2h_SOURCES: New variable.
16257
16258 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16259
16260 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16261
16262 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16263
16264 * util/grub.d/00_header.in: Fix handling of locale_dir.
16265
16266 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16269 as possible unifont location (Gentoo).
16270 Reported by: Alexander Brüning
16271
16272 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16273
16274 Don't try to generate lists for kernel.img.
16275
16276 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16277 (pkglib_MODULES): Remove kernel.img.
16278 (kernel_img_EXPORTS): Removed.
16279 (kernel_img_RELOCATABLE): New variable.
16280 * conf/x86_64-efi.rmk: Likewise.
16281 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16282
16283 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16286 grub_xasprintf or grub_snprintf.
16287 (grub_vsprintf): Likewise.
16288 (grub_snprintf): New proto.
16289 (grub_vsnprintf): Likewise.
16290 (grub_xasprintf): Likewise.
16291 (grub_xvasprintf): Likewise.
16292 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16293 (grub_sprintf): Removed.
16294 (grub_vsnprintf): New function.
16295 (grub_snprintf): Likewise.
16296 (grub_xvasprintf): Likewise.
16297 (grub_xasprintf): Likewise.
16298 (grub_vsprintf): Renamed to ...
16299 (grub_vsnprintf_real): ...this. New argument max_len.
16300
16301 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16302
16303 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16304 fix grub-script-check warning.
16305
16306 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16307
16308 * include/grub/font.h (grub_font_load): Fix prototype.
16309
16310 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16311
16312 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16313
16314 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16315
16316 * include/grub/x86_64/at_keyboard.h: New file.
16317
16318 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 * loader/mips/linux.c: Include missing grub/i18n.h.
16321
16322 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16323
16324 * normal/menu.c (notify_execution_failure): Clarify error message.
16325
16326 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16327
16328 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
16329 return value (and revert all return statements). Update users.
16330
16331 2010-01-20 Dan Merillat <debian@dan.merillat.org>
16332
16333 * kern/device.c (grub_device_iterate): Allocate new part_ent
16334 structure based on sizeof (*p) rather than sizeof (p->next), to
16335 account for structure padding.
16336
16337 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
16338 disk is NULL, which might happen for LVM physical volumes with no
16339 LVM signature.
16340
16341 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16342
16343 * loader/mips/linux.c (grub_cmd_initrd)
16344 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
16345
16346 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16347
16348 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
16349 (grub_video_video_init, grub_video_bitmap_init)
16350 (grub_font_manager_init, grub_term_gfxterm_init)
16351 (grub_at_keyboard_init): New extern declarations.
16352 (grub_machine_init): Initialize gfxterm and at_keyboard.
16353
16354 * kern/main.c (grub_main): Revert grub_printf delay kludge.
16355
16356 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
16357 `gfxterm.mod' into core image.
16358
16359 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16360 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16361 (kernel_img_FORMAT): Copy to ...
16362
16363 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16364 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16365 (kernel_img_FORMAT): ... here, and ...
16366
16367 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
16368 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16369 (kernel_img_FORMAT): ... here.
16370
16371 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
16372 and input (at_keyboard) terminals in kernel.
16373 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
16374
16375 (pkglib_MODULES): Remove `pci.mod'.
16376 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
16377 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
16378 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16379 (at_keyboard_mod_LDFLAGS): Remove variables.
16380
16381 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
16382
16383 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
16384
16385 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
16386
16387 * include/grub/mips/libgcc.h: Only export symbols for functions
16388 that libgcc provides.
16389
16390 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 MIPS support.
16393
16394 * bus/bonito.c: New file.
16395 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
16396 GRUB_PCI_NUM_DEVICES.
16397 * term/i386/pc/serial.c: Move to ...
16398 * term/serial.c: ... here. All users updated.
16399 * util/i386/pc/grub-mkimage.c: Move to ...
16400 * util/grub-mkrawimage.c: ... here. All users updated.
16401 * term/i386/pc/at_keyboard.c: Move to ...
16402 * term/at_keyboard.c: ... here. All users updated.
16403 * conf/mips-qemu-mips.rmk: New file.
16404 * conf/mips-yeeloong.rmk: Likewise.
16405 * conf/mips.rmk: Likewise.
16406 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
16407 mipsel-qemu-mips.
16408 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
16409 to port addresses.
16410 (grub_ata_pciinit): Support CS5536.
16411 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
16412 * font/font_cmd.c (loadfont_command): Open file before passing it to
16413 grub_font_load.
16414 (pseudo_file_read): New function.
16415 (pseudo_file_close): Likewise.
16416 (pseudo_fs): New structure.
16417 (load_font_module): New function.
16418 (GRUB_MOD_INIT(font_manager)): Load embedded font.
16419 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
16420 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
16421 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
16422 * include/grub/i386/at_keyboard.h: Split into ...
16423 * include/grub/at_keyboard.h: ... this ...
16424 * include/grub/i386/at_keyboard.h: ... and this.
16425 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
16426 New prototype.
16427 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
16428 updated.
16429 (grub_elf64_size): Likewise.
16430 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
16431 filename.
16432 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
16433 * include/grub/i386/coreboot/serial.h: Rewritten.
16434 * include/grub/i386/ieee1275/serial.h: Include
16435 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
16436 * include/grub/i386/pc/serial.h: Moved from here ...
16437 * include/grub/serial.h: ... to here. All users updated.
16438 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
16439 (GRUB_PCI_NUM_BUS): Likewise.
16440 (GRUB_PCI_NUM_DEVICES): Likewise.
16441 (grub_pci_device_map_range): Add missing volatile keyword.
16442 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
16443 * include/grub/mips/at_keyboard.h: New file.
16444 * include/grub/mips/cache.h: Likewise.
16445 * include/grub/mips/io.h: Likewise.
16446 * include/grub/mips/kernel.h: Likewise.
16447 * include/grub/mips/libgcc.h: Likewise.
16448 * include/grub/mips/pci.h: Likewise.
16449 * include/grub/mips/qemu-mips/boot.h: Likewise.
16450 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16451 * include/grub/mips/qemu-mips/loader.h: Likewise.
16452 * include/grub/mips/qemu-mips/memory.h: Likewise.
16453 * include/grub/mips/qemu-mips/serial.h: Likewise.
16454 * include/grub/mips/qemu-mips/time.h: Likewise.
16455 * include/grub/mips/relocator.h: Likewise.
16456 * include/grub/mips/time.h: Likewise.
16457 * include/grub/mips/types.h: Likewise.
16458 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
16459 * include/grub/mips/yeeloong/boot.h: Likewise.
16460 * include/grub/mips/yeeloong/kernel.h: Likewise.
16461 * include/grub/mips/yeeloong/loader.h: Likewise.
16462 * include/grub/mips/yeeloong/memory.h: Likewise.
16463 * include/grub/mips/yeeloong/pci.h: Likewise.
16464 * include/grub/mips/yeeloong/serial.h: Likewise.
16465 * include/grub/mips/yeeloong/time.h: Likewise.
16466 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
16467 * kern/elf.c (grub_elf32_size): New parameter. All users
16468 updated.
16469 (grub_elf64_size): Likewise.
16470 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
16471 Load modules before saying "Welcome to GRUB!".
16472 Call grub_refresh after saying "Welcome to GRUB!".
16473 * kern/mips/cache.S: New file.
16474 * kern/mips/cache_flush.S: Likewise.
16475 * kern/mips/dl.c: Likewise.
16476 * kern/mips/init.c: Likewise.
16477 * kern/mips/qemu-mips/init.c: Likewise.
16478 * kern/mips/startup.S: Likewise.
16479 * kern/mips/yeeloong/init.c: Likewise.
16480 * kern/term.c (grub_putcode): Handle NULL terminal.
16481 (grub_getcharwidth): Likewise.
16482 (grub_getkey): Likewise.
16483 (grub_checkkey): Likewise.
16484 (grub_getkeystatus): Likewise.
16485 (grub_getxy): Likewise.
16486 (grub_getwh): Likewise.
16487 (grub_gotoxy): Likewise.
16488 (grub_cls): Likewise.
16489 (grub_setcolorstate): Likewise.
16490 (grub_setcolor): Likewise.
16491 (grub_getcolor): Likewise.
16492 (grub_refresh): Likewise.
16493 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
16494 (write_jump): Add hatch nop.
16495 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
16496 * lib/mips/setjmp.S: New file.
16497 * loader/mips/linux.c: Likewise.
16498 * term/i386/pc/at_keyboard.c: Move from here ...
16499 * term/at_keyboard.c: ... to here.
16500 * term/i386/pc/serial.c: Moved from here ...
16501 * term/serial.c: ... to here. All users updated.
16502 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
16503 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
16504 (serial_translate_key_sequence): Avoid deadlock.
16505 (grub_serial_getkey): Handle backspace.
16506 (grub_serial_putchar): Fix newline handling.
16507 * util/i386/pc/grub-mkimage.c: Move from here ...
16508 * util/grub-mkrawimage.c: ... to here. All users updated.
16509 (generate_image): New parameters 'font_path' and 'format'.
16510 Support embedding font.
16511 Use grub_host_to_target* instead of grub_cpu_to_le*.
16512 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
16513 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
16514 (options): New option "--font".
16515 (usage): Likewise.
16516 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
16517 (main): Handle "--font".
16518 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
16519 (grub_virtual_screen_setup): Set bg_color_display.
16520 (redraw_screen_rect): Use bg_color_display instead of incorrect
16521 bg_color.
16522 (grub_gfxterm_cls): Likewise.
16523 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
16524 Support embedding config file.
16525 (add_segments): Likewise.
16526 (options): New option "--config".
16527 (main): Handle "--config".
16528 * video/sm712.c: New file.
16529
16530 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16531
16532 Fix parallel builds.
16533
16534 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
16535 font.c depend on ascii.h).
16536
16537 2010-01-12 Carles Pina i Estany <carles@pina.cat>
16538
16539 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
16540
16541 2010-01-11 Carles Pina i Estany <carles@pina.cat>
16542
16543 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
16544 By default: disabled.
16545 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
16546 parameter.
16547
16548 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16549
16550 * font/font.c: Update copyright years.
16551 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
16552
16553 2010-01-10 Carles Pina i Estany <carles@pina.cat>
16554
16555 * font/font.c: Include `ascii.h'.
16556 (ASCII_BITMAP_SIZE): New macro.
16557 (ascii_font_glyph): Define.
16558 (ascii_glyph_lookup): New function.
16559 (grub_font_get_string_width): Change comment. If glyph not found, use
16560 ascii_glyph_lookup.
16561 (grub_font_get_glyph_with_fallback): If glyph not available returns
16562 ascii_glyph_lookup.
16563 * util/grub-mkfont.c (file_formats): New enum.
16564 (options): Add `ascii-bitmaps' new option.
16565 (usage): Add `asii-bitmaps' new option.
16566 (write_font_ascii_bitmap): New function.
16567 (write_font): Rename to ...
16568 (write_font_p2): ... this. Remove print_glyphs call.
16569 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
16570 used. Call print_glyphs.
16571 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
16572
16573 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16574
16575 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
16576 (grub_bin2h_SOURCES): New variable.
16577 * util/bin2h.c: New file.
16578
16579 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16580
16581 * include/multiboot.h: Resynced with spec.
16582 * include/multiboot2.h: Likewise.
16583 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
16584 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
16585
16586 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16587
16588 * include/grub/term.h (grub_term_register_input,
16589 grub_term_register_output): Check return of terminal init()
16590 routines, and abort if errors are raised.
16591
16592 * commands/terminal.c: Update copyright year.
16593
16594 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16595
16596 * commands/terminal.c (grub_cmd_terminal_input)
16597 (grub_cmd_terminal_output): Check return of terminal init()
16598 routines, and abort if errors are raised.
16599
16600 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 * include/grub/i386/bsd.h: Fix include pathes.
16603
16604 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 Add missing *BSD copyright headers.
16607
16608 * include/grub/aout.h: Add BSD licence.
16609 * include/grub/i386/bsd.h: Parts under different licences moved to ...
16610 * include/grub/i386/freebsd_linker.h: ... here,
16611 * include/grub/i386/freebsd_reboot.h: ... here,
16612 * include/grub/i386/netbsd_bootinfo.h: ... here,
16613 * include/grub/i386/netbsd_reboot.h: ... here,
16614 * include/grub/i386/openbsd_bootarg.h: ... here,
16615 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
16616 licence to each file.
16617
16618 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16619
16620 * acinclude.m4: Remove `nop' assembly instruction; it's not
16621 implemented by all architectures.
16622
16623 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16624
16625 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
16626 ELILO. This is no longer necessary.
16627
16628 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
16629
16630 Added new tool, grub-scrit-check to verify grub.cfg syntax.
16631
16632 * util/grub-script-check.c: grub-script-check tool.
16633 * conf/common.rmk: Make rules for grub-script-check.
16634
16635 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16636
16637 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
16638 spotting it back in 2008. Shame on me for forgetting he did.
16639
16640 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
16641
16642 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
16643
16644 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
16645 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
16646 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
16647 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
16648 (GRUB_VIDEO_TYPE_EFI): Rename to ...
16649 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
16650
16651 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
16652
16653 * include/grub/test.h: Add license header.
16654 * tests/example_functional_test.c: Likewise.
16655 * tests/example_unit_test.c: Likewise.
16656 * tests/lib/functional_test.c: Likewise.
16657 * tests/lib/test.c: Likewise.
16658 * tests/lib/unit_test.c: Likewise.
16659
16660 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 Use flag-based instead of hook-based video mode selection and "auto"
16663 keyword.
16664
16665 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
16666 (grub_video_set_mode): Changed prototype. All users updated.
16667 (grub_video_check_mode_flag): New inline function.
16668 * video/video.c (parse_modespec): New function.
16669 (grub_video_set_mode): Parse flags and keywords.
16670
16671 2010-01-17 Carles Pina i Estany <carles@pina.cat>
16672
16673 * util/misc.c (grub_util_info): Fix the order of the parameters in a
16674 fprintf call.
16675
16676 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
16677
16678 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
16679
16680 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16681
16682 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
16683 string.
16684 * util/grub-emu.c (usage): Likewise.
16685 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
16686 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16687 * util/i386/pc/grub-mkimage.c (usage): Likewise.
16688 * util/i386/pc/grub-setup.c (usage): Likewise.
16689
16690 2010-01-16 Carles Pina i Estany <carles@pina.cat>
16691
16692 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
16693 the message.
16694 (grub_util_info): Likewise.
16695 (grub_util_error): Likewise.
16696 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
16697 and/or new lines in `grub_util_warna', `grub_util_info',
16698 `grub_util_error' calls.
16699 * util/getroot.c: Likewise.
16700 * util/grub-editenv.c: Likewise.
16701 * util/grub-emu.c: Likewise.
16702 * util/grub-fstest.c: Likewise.
16703 * util/grub-mkdevicemap.c: Likewise.
16704 * util/grub-mkfont.c: Likewise.
16705 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16706 * util/grub-mkrelpath.c: Likewise.
16707 * util/grub-pe2elf.c: Likewise.
16708 * util/grub-probe.c: Likewise.
16709 * util/hostdisk.c: Likewise.
16710 * util/i386/efi/grub-mkimage.c: Likewise.
16711 * util/i386/pc/grub-mkimage.c: Likewise.
16712 * util/i386/pc/grub-setup.c: Likewise.
16713 * util/ieee1275/ofpath.c: Likewise.
16714 * util/mkisofs/eltorito.c: Likewise.
16715 * util/mkisofs/rock.c: Likewise.
16716 * util/mkisofs/write.c: Likewise.
16717 * util/raid.c: Likewise.
16718 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
16719 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16720
16721 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 Enable multiboot on non-pc.
16724
16725 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
16726 multiboot.mod and multiboot2.mod to ...
16727 * conf/i386.rmk (pkglib_MODULES): ... here.
16728 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
16729 Moved to ...
16730 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
16731 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
16732 Moved to ...
16733 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
16734 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
16735 Moved to ...
16736 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
16737 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
16738 Moved to ...
16739 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
16740 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
16741 relocator.mod.
16742 (ata_mod_SOURCES): Removed.
16743 (ata_mod_CFLAGS): Likewise.
16744 (ata_mod_LDFLAGS): Likewise.
16745 (relocator_mod_SOURCES): Removed.
16746 (relocator_mod_CFLAGS): Likewise.
16747 (relocator_mod_ASFLAGS): Likewise.
16748 (relocator_mod_LDFLAGS): Likewise.
16749 Include i386.mk.
16750 * include/grub/x86_64/multiboot.h: New file.
16751 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
16752 Terminate EFI.
16753
16754 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16755
16756 Video multiboot support.
16757
16758 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
16759 New prototype.
16760 * include/multiboot.h: Resynced with multiboot specification.
16761 * include/multiboot2.h: Likewise.
16762 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
16763 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
16764 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
16765 (HAS_VGA_TEXT): Likewise.
16766 (accepts_video): New variable.
16767 (grub_multiboot_set_accepts_video): New function.
16768 (grub_multiboot_get_mbi_size): Account for video structures.
16769 (set_video_mode): New function.
16770 (retrieve_video_parameters): Likewise.
16771 (grub_multiboot_make_mbi): Fill video fields.
16772
16773 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16774
16775 Video driver ids.
16776
16777 * include/grub/video.h (grub_video_driver_id): New type.
16778 (grub_video_adapter): New member 'id'. All users updated.
16779 (grub_video_get_driver_id): New proto.
16780 * video/video.c (grub_video_get_driver_id): New function.
16781
16782 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16783
16784 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
16785 `var=val'.
16786
16787 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16788
16789 * normal/cmdline.c (print_completion): Gettextizze.
16790
16791 2001-01-14 Carles Pina i Estany <carles@pina.cat>
16792
16793 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
16794
16795 2010-01-14 Carles Pina i Estany <carles@pina.cat>
16796
16797 * gettext/gettext.c (grub_gettext_translate): Push and pop
16798 grub_errno.
16799 (grub_gettext_delete_list): Change comment style.
16800 * kern/err.c (grub_error): Gettextizze.
16801 (grub_fatal): Gettextizze.
16802
16803 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
16804
16805 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
16806 (grub_linux16_real_boot): ... this.
16807 * kern/i386/loader.S: Likewise.
16808 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
16809 (grub_linux16_boot): New function. Switches to text mode and calls
16810 grub_linux16_real_boot().
16811
16812 * loader/i386/bsd.c: Include `<grub/video.h>'.
16813 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
16814 text mode before calling grub_unix_real_boot().
16815
16816 * loader/i386/multiboot.c: Include `<grub/video.h>'.
16817 (grub_multiboot_boot): Switch to text mode before calling
16818 grub_relocator32_boot().
16819
16820 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
16821 (grub_chainloader_boot): Switch to text mode before calling
16822 grub_chainloader_real_boot().
16823
16824 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16825 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16826
16827 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
16828 non-empty value.
16829
16830 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16831 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16832
16833 * util/grub.d/00_header.in: Define a "savedefault" function for use
16834 in menu entries.
16835 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
16836
16837 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
16838 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
16839
16840 * util/grub-mkconfig_lib.in (save_default_entry): Only set
16841 saved_entry if boot_once is unset.
16842 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
16843 previous saved entry (i.e. grub-reboot).
16844
16845 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16846
16847 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
16848
16849 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16850
16851 * util/grub.d/00_header.in: Use `set var=val' rather than plain
16852 `var=val'.
16853 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
16854
16855 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16856
16857 * util/grub-reboot.in: Fix --version output.
16858 * util/grub-set-default.in: Likewise.
16859
16860 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16861
16862 * util/grub.d/00_header.in: Silently ignore zero-sized environment
16863 blocks.
16864
16865 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16866
16867 * util/grub.d/00_header.in: Quote the value assigned to `default',
16868 in case it contains spaces.
16869
16870 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
16871
16872 * util/grub.d/30_os-prober.in: Fix merge error that moved a
16873 `save_default_entry' call from the macosx case to the linux case.
16874
16875 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
16876 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
16877
16878 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
16879 in `chosen' environment variable.
16880 * normal/menu_text.c (get_entry_number): Check if the variable
16881 matches the title of a menu entry.
16882 (run_menu): Pass menu to get_entry_number.
16883
16884 * util/grub-reboot.in: New file.
16885 * util/grub-set-default.in: New file.
16886 * conf/common.rmk (grub-reboot): New utility.
16887 (grub-set-default): New utility.
16888
16889 * util/grub-mkconfig_lib.in (save_default_entry): New function.
16890 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
16891 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
16892 move it to `saved_entry' for the next boot. Load environment on
16893 initialisation.
16894 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
16895 * util/grub.d/10_hurd.in: Likewise.
16896 * util/grub.d/10_linux.in (linux_entry): Likewise.
16897 * util/grub.d/10_windows.in: Likewise.
16898 * util/grub.d/30_os-prober.in: Likewise.
16899
16900 * util/grub-install.in: Create environment block.
16901 * util/i386/efi/grub-install.in: Likewise.
16902 * util/ieee1275/grub-install.in: Likewise.
16903 * util/sparc64/ieee1275/grub-install.in: Likewise.
16904
16905 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
16906
16907 Unit testing framework for GRUB.
16908
16909 * Makefile.in: Test framework build rules for 'make check'.
16910 * conf/tests.rmk: Build rules for individual tests and framework.
16911
16912 * include/grub/test.h: Header file for whitebox tests.
16913 * tests/lib/functional_test.c: Framework support for whitebox
16914 functional tests.
16915 * tests/lib/test.c: Common whitebox testing code for unit and
16916 functional tests.
16917 * tests/lib/unit_test.c: Framework support for whitebox unit
16918 tests.
16919
16920 * tests/util/grub-shell-tester.in: Support utility for grub-script
16921 tests.
16922 * tests/util/grub-shell.in: Utility to execute grub-script
16923 commands in a Qemu instance.
16924
16925 * tests/example_functional_test.c: Example whitebox functional
16926 test.
16927 * tests/example_grub_script_test.in: Example grub-script test.
16928 * tests/example_scripted_test.in: Example scripted test.
16929 * tests/example_unit_test.c: Example whitebox unit test.
16930
16931 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
16934 Add loader/i386/multiboot_mbi.c.
16935 (multiboot2_mod_SOURCES): Likewise.
16936 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
16937 (multiboot2_mod_SOURCES): Likewise.
16938 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
16939 (grub_multiboot_make_mbi): Likewise.
16940 (grub_multiboot_free_mbi): Likewise.
16941 (grub_multiboot_init_mbi): Likewise.
16942 (grub_multiboot_add_module): Likewise.
16943 (grub_multiboot_set_bootdev): Likewise.
16944 * loader/i386/multiboot.c (mbi): Removed.
16945 (mbi_dest): Likewise.
16946 (alloc_mbi): New variable.
16947 (grub_multiboot_payload_size): Removed. All users updated.
16948 (grub_multiboot_pure_size): New variable.
16949 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
16950 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
16951 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
16952 (grub_fill_multiboot_mmap): Likewise.
16953 (grub_multiboot_get_bootdev): Likewise.
16954 (grub_multiboot): Use multiboot_mbi functions.
16955 * loader/i386/multiboot_mbi.c: New file.
16956
16957 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
16960 it would result in module crash.
16961
16962 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
16965 (grub_ofconsole_getwh): Split to ...
16966 (grub_ofconsole_getwh): ... this.
16967 (grub_ofconsole_dimensions): ...and this.
16968 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
16969
16970 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
16971
16972 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
16973
16974 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16975
16976 * loader/i386/pc/multiboot2.c: Removed stalled file.
16977
16978 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16979
16980 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
16981 Reported by: Grégoire Sutre
16982
16983 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
16984
16985 * util/misc.c (canonicalize_file_name): New function.
16986 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
16987 instead of realpath().
16988
16989 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
16990
16991 * util/grub-install.in (usage): Clarify meaning of --root-directory,
16992 and make it clearer that it's optional. Based on confusion
16993 witnessed on IRC.
16994
16995 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16996
16997 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
16998 in premature implicit newline.
16999
17000 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17001
17002 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17003 which resulted in garbled command line at the end of screen.
17004
17005 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17006
17007 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17008 initialization with similar approach as with other Linux loaders.
17009
17010 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17011
17012 Fix i386-ieee1275 build.
17013
17014 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17015 and grub_term_height() for video_{width,height} initialization.
17016
17017 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17018
17019 Fix grub-emu build.
17020
17021 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17022
17023 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17024 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17025
17026 Support for multiple terminals.
17027
17028 * Makefile.in (pkglib_DATA): terminal.lst.
17029 (terminal.lst): New target.
17030 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17031 (GRUB_MOD_INIT(handler)): Likewise.
17032 (GRUB_MOD_FINI(handler)): Likewise.
17033 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17034 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17035 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17036 (grub_cmd_sleep): Use grub_term_save_pos.
17037 * commands/terminal.c: New file.
17038 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17039 commands/terminal.c and lib/charset.c.
17040 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17041 (pkglib_MODULES): Add terminal.mod.
17042 (terminal_mod_SOURCES): New variable.
17043 (terminal_mod_CFLAGS): Likewise.
17044 (terminal_mod_LDFLAGS): Likewise.
17045 * genhandlerlist.sh: Don't handle terminals.
17046 * genmk.rb: Generate terminal-*.lst.
17047 * genterminallist.sh: New file.
17048 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17049 (grub_is_valid_utf8): Likewise.
17050 (grub_utf8_to_ucs4_alloc): Likewise.
17051 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17052 (grub_menu_register_viewer): Changed argument.
17053 (grub_menu_try_text): New proto.
17054 (grub_gfxmenu_try_hook): New declaration.
17055 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17056 (grub_menu_init_page): Additional argument term.
17057 (grub_normal_init_page): Likewise.
17058 (grub_cmdline_get): Arguments simplified.
17059 (grub_utf8_to_ucs4_alloc): Removed.
17060 (grub_print_ucs4): Additional argument term.
17061 (grub_getstringwidth): Likewise.
17062 (grub_print_message_indented): Likewise.
17063 (grub_menu_text_register_instances): New proto.
17064 (grub_show_menu): Likewise.
17065 (read_terminal_list): Likewise.
17066 (grub_set_more): Likewise.
17067 * include/grub/parser.h: Include handler.h.
17068 * include/grub/reader.h: Rewritten.
17069 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17070 (GRUB_TERM_WIDTH): Changed to function.
17071 (GRUB_TERM_HEIGHT): Likewise.
17072 (GRUB_TERM_BORDER_WIDTH): Likewise.
17073 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17074 (GRUB_TERM_NUM_ENTRIES): Likewise.
17075 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17076 (GRUB_TERM_CURSOR_X): Likewise.
17077 (grub_term_input_class): Likewise.
17078 (grub_term_output_class): Likewise.
17079 (grub_term_outputs_disabled): New declaration.
17080 (grub_term_inputs_disabled): Likewise.
17081 (grub_term_outputs): Likewise.
17082 (grub_term_inputs): Likewise.
17083 (grub_term_register_input): Rewritten.
17084 (grub_term_register_output): Likewise.
17085 (grub_term_unregister_input): Likewise.
17086 (grub_term_unregister_output): Likewise.
17087 (FOR_ACTIVE_TERM_INPUTS): New macro.
17088 (FOR_DISABLED_TERM_INPUTS): Likewise.
17089 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17090 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17091 * include/grub/terminfo.h: Add oterm argument to all protypes.
17092 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17093 Use grub_rescue_run.
17094 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17095 All users updated.
17096 * kern/reader.c: Removed. All users updated.
17097 * kern/rescue_reader.c (grub_rescue_init): Removed.
17098 (grub_rescue_reader): Likewise.
17099 (grub_register_rescue_reader): Likewise.
17100 (grub_rescue_run): New function based on kern/reader.c.
17101 * kern/term.c: Adapted for multiterm.
17102 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17103 (grub_is_valid_utf8): Likewise.
17104 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17105 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17106 right terminal.
17107 * loader/i386/linux.c (grub_linux_boot): Likewise.
17108 * normal/auth.c (grub_username_get): New function.
17109 (grub_auth_check_authentication): Use grub_username_get.
17110 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17111 * normal/color.c: Adapt for multiterm.
17112 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17113 (grub_normal_init_page): Additional argument term.
17114 (read_lists): Call read_terminal_lists.
17115 (grub_enter_normal_mode): Call grub_cmdline_run.
17116 Handle grub_normal_exit_level.
17117 (grub_cmd_normal): Make reentrant.
17118 (grub_cmd_normal_exit): New function.
17119 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17120 * normal/menu.c: Adapt for multiterm.
17121 * normal/menu_entry.c: Likewise.
17122 * normal/menu_text.c: Likewise.
17123 * normal/menu_viewer.c: Removed. All users updated.
17124 * normal/term.c: New file.
17125 * util/console.c: Change order of includes to workaround a bug in
17126 ncurses headers.
17127 * term/terminfo.c: New argument oterm on all exported functions.
17128 All users updated.
17129 * util/grub-editenv.c (grub_term_input_class): Removed.
17130 (grub_term_output_class): Likewise.
17131
17132 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17133
17134 Make loader output a bit more user-friendly.
17135
17136 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17137 is being loaded. Likewise for the Hurd.
17138
17139 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17140 that kernel of FreeBSD ${version} is being loaded.
17141
17142 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17143 grub_dprintf().
17144 (grub_cmd_initrd): Likewise.
17145 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17146 that Linux ${version} is being loaded. Likewise for initrd.
17147
17148 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17149
17150 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17151
17152 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17153
17154 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17155 (GRUB_MOD_INIT): Gettextizze.
17156 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17157 (GRUB_MOD_INIT): Gettextizze.
17158 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17159 (grub_cmd_linux): Capitalise Linux.
17160 (GRUB_MOD_INIT): Gettextizze.
17161 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17162 (grub_cmd_linux): Capitalise Linux.
17163 (GRUB_MOD_INIT): Gettextizze.
17164 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17165 (grub_cmd_linux): Capitalise Linux.
17166 (GRUB_MOD_INIT): Gettextizze.
17167 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17168 (GRUB_MOD_INIT): Gettextizze.
17169 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17170 (grub_cmd_linux): Capitalise Linux.
17171 (GRUB_MOD_INIT): Gettextizze.
17172 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17173 (grub_cpu_xnu_init): Gettextizze.
17174 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17175 (GRUB_MOD_INIT): Gettextizze.
17176 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17177 (GRUB_MOD_INIT): Gettextizze.
17178 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17179 (grub_linux_load64): Capitalise Linux.
17180 (GRUB_MOD_INIT): Gettextizze.
17181 * loader/xnu.c: Include `<grub/i18n.h>'.
17182 (GRUB_MOD_INIT): Gettextizze.
17183 * po/POTFILES: Add `loader/efi/appleloader.c',
17184 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17185 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17186 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17187 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17188 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17189 and `loader/xnu.c'.
17190
17191 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17192
17193 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17194
17195 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17196
17197 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17198 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17199 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17200
17201 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17202
17203 Reset Multiboot 2 support. New loader implements the draft in
17204 /branches/multiboot2 and shares as much code as possible with the
17205 production Multiboot 1 implementation.
17206
17207 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17208 * loader/multiboot2.c: Likewise.
17209 * loader/i386/multiboot_helper.S: Likewise.
17210 * include/multiboot2.h: Replace with latest version from the draft
17211 in /branches/multiboot2.
17212
17213 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17214 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17215 and `loader/multiboot2.c'.
17216 (pkglib_MODULES): Add `multiboot2.mod'.
17217 (multiboot2_mod_SOURCES): New variable.
17218 (multiboot2_mod_LDFLAGS): Likewise.
17219 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17220
17221 * conf/i386-pc.rmk: Likewise.
17222
17223 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17224 (multiboot_mod_SOURCES): Remove variable.
17225 (multiboot_mod_LDFLAGS): Likewise.
17226 (multiboot_mod_CFLAGS): Likewise.
17227
17228 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17229 `<multiboot2.h>' instead of `<multiboot.h>'.
17230 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17231 (MULTIBOOT_HEADER_MAGIC): New macros.
17232
17233 * loader/multiboot_loader.c (module_version_status): Remove variable.
17234 (find_multi_boot2_header): Remove function.
17235 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17236 logic. Always check for the Multiboot version we're compiling for.
17237 (grub_cmd_module_loader): Likewise.
17238 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17239 command instead of `multiboot'.
17240
17241 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17242
17243 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17244 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17245 all users.
17246
17247 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17248 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Fix breakage introduced with previous commit.
17251
17252 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17253 commands.
17254 * normal/handler.c (read_handler_list): Revert part of previous commit
17255 affecting this file.
17256 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17257 (grub_normal_execute): ... here.
17258
17259 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17260
17261 Merge prefix-redefinition-fix branch.
17262
17263 * normal/autofs.c (read_fs_list): Make function capable of being
17264 run multiple times, gracefuly replacing the previous data
17265 structures.
17266 * normal/dyncmd.c (read_command_list): Likewise.
17267 * normal/handler.c (read_handler_list): Likewise.
17268 * normal/main.c (read_lists): New function. Calls all the
17269 list reading functions.
17270 (grub_normal_execute): Use read_lists() instead of calling all
17271 list reading functions explicitly. Register read_lists() as a
17272 variable hook attached to ${prefix}.
17273
17274 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 Merge crypto branch.
17277
17278 * Makefile.in (pkglib_DATA): Add crypto.lst.
17279 (crypto.lst): New target.
17280 * commands/hashsum.c: New file.
17281 * commands/password.c (check_password): Use grub_crypto_memcmp.
17282 * commands/password_pbkdf2.c: New file.
17283 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17284 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17285 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17286 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17287 -I$(srcdir)/lib/libgcrypt_wrap.
17288 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17289 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17290 password_pbkdf2.mod.
17291 (crypto_mod_SOURCES): New variable.
17292 (crypto_mod_CFLAGS): Likewise.
17293 (crypto_mod_LDFLAGS): Likewise.
17294 (hashsum_mod_SOURCES): New variable.
17295 (hashsum_mod_CFLAGS): Likewise.
17296 (hashsum_mod_LDFLAGS): Likewise.
17297 (pbkdf2_mod_SOURCES): New variable.
17298 (pbkdf2_mod_CFLAGS): Likewise.
17299 (pbkdf2_mod_LDFLAGS): Likewise.
17300 (password_pbkdf2_mod_SOURCES): New variable.
17301 (password_pbkdf2_mod_CFLAGS): Likewise.
17302 (password_pbkdf2_mod_LDFLAGS): Likewise.
17303 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17304 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17305 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17306 Include conf/gcry.rmk.
17307 * include/grub/auth.h: Rewritten.
17308 * include/grub/crypto.h: New file.
17309 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17310 * include/grub/normal.h (read_crypto_list): New prototype.
17311 * lib/crypto.c: New file.
17312 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17313 * lib/pbkdf2.c: Likewise.
17314 * normal/auth.c (grub_auth_strcmp): Removed.
17315 (grub_iswordseparator): Likewise.
17316 (grub_auth_strword): Likewise.
17317 (is_authenticated): Use grub_strword.
17318 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17319 and grub_strword. Pass entered password to authentication callback.
17320 * normal/crypto.c: New file.
17321 * normal/main.c: Call read_crypto_list.
17322 * util/grub-mkpasswd-pbkdf2.c: New file.
17323 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17324
17325 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17326
17327 Fix descent and ascent calculation.
17328
17329 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
17330 (options): New option "asce".
17331 (usage): Likewise.
17332 (add_char): Ignore invalid glyphs for descent calculation.
17333 Calculate ascent from actual content.
17334 (print_glyphs): Use 'asce'.
17335 (write_font): Likewise. Allow ascent override.
17336 (main): Handle "asce" option.
17337
17338 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17339
17340 * kern/err.c: Include `<grub/i18n.h>'.
17341 (grub_print_error): Add full stop. Gettextizze.
17342 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
17343 (grub_bsd_load_elf): Capitalise ELF.
17344 (grub_cmd_freebsd_loadenv): Add `s' in error string.
17345 (grub_cmd_freebsd_module): Likewise.
17346 (grub_cmd_freebsd_module_elf): Likewise.
17347 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
17348
17349 2010-01-06 Carles Pina i Estany <carles@pina.cat>
17350
17351 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
17352 * commands/search_file.c (HELP_MESSAGE): New macro.
17353 * commands/search_label.c (HELP_MESSAGE): Likewise.
17354 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
17355 * po/POTFILES: Add `commands/search_file.c',
17356 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
17357 `commands/search.c'.
17358
17359 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17360
17361 * config.rpath: Update from Gnulib.
17362
17363 2010-01-05 Yves Blusseau <blusseau@zetam.org>
17364
17365 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
17366
17367 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
17368
17369 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
17370
17371 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17372
17373 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
17374 arguments to fread so that we get a return value in bytes, rather
17375 than something that will normally be rounded down to 0.
17376 Adjust error handling to avoid producing garbage when size_t is not
17377 the same size as long long.
17378
17379 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17380
17381 * util/mkisofs/write.c (padblock_write): Check return value of
17382 fread.
17383
17384 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
17385
17386 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
17387 floppy images now.
17388
17389 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
17390
17391 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17392
17393 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
17394 instead of manual alignment.
17395 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
17396 verbose). Avoid attempts to read past end of the device
17397 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
17398 but GRUB_DISK_CACHE_SIZE may exceed that).
17399
17400 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
17401
17402 * commands/crc.c (grub_cmd_crc): Abort on read errors.
17403 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
17404 it to upper layer.
17405
17406 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17407
17408 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
17409 New constant.
17410 (grub_efi_piwg_device_path): New structure
17411 (grub_efi_piwg_device_path_t): New type.
17412 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
17413 (devpath_1): Transform to a structure. All users updated.
17414 (devpath_2): Likewise.
17415 (devpath_3): Likewise.
17416 (devpath_4): Likewise.
17417 (devpath_5): Likewise.
17418
17419 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 * loader/efi/appleloader.c: Restored. Update all users.
17422
17423 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17424
17425 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
17426
17427 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
17428 (struct boot_blocklist): Move from here ...
17429 * include/grub/i386/pc/boot.h [ASM_FILE]
17430 (struct grub_boot_blocklist): ... to here. Update all users.
17431 (setup): Only initialize `start' member of `first_block'
17432 structure. Add assert() calls to verify the other members.
17433
17434 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
17435 (generate_image): Fix broken blocklist length initialization.
17436 Add assert() call to verify blocklist `segment' field.
17437
17438 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17439
17440 * loader/efi/appleloader.c: Remove. Update all users.
17441
17442 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
17443
17444 * boot/i386/pc/boot.S: Update copyright year.
17445 * boot/i386/pc/cdboot.S: Likewise.
17446 * boot/i386/pc/diskboot.S: Likewise.
17447 * boot/i386/pc/lnxboot.S: Likewise.
17448 * boot/i386/pc/pxeboot.S: Likewise.
17449 * bus/pci.c: Likewise.
17450 * commands/cmp.c: Likewise.
17451 * commands/help.c: Likewise.
17452 * commands/hexdump.c: Likewise.
17453 * commands/i386/pc/halt.c: Likewise.
17454 * commands/i386/pc/play.c: Likewise.
17455 * commands/i386/pc/vbeinfo.c: Likewise.
17456 * commands/ls.c: Likewise.
17457 * commands/test.c: Likewise.
17458 * disk/dmraid_nvidia.c: Likewise.
17459 * disk/i386/pc/biosdisk.c: Likewise.
17460 * disk/ieee1275/nand.c: Likewise.
17461 * disk/ieee1275/ofdisk.c: Likewise.
17462 * disk/lvm.c: Likewise.
17463 * disk/raid.c: Likewise.
17464 * disk/raid6_recover.c: Likewise.
17465 * disk/scsi.c: Likewise.
17466 * fs/affs.c: Likewise.
17467 * fs/cpio.c: Likewise.
17468 * fs/ext2.c: Likewise.
17469 * fs/hfs.c: Likewise.
17470 * fs/iso9660.c: Likewise.
17471 * fs/ntfs.c: Likewise.
17472 * fs/sfs.c: Likewise.
17473 * fs/udf.c: Likewise.
17474 * fs/ufs.c: Likewise.
17475 * fs/xfs.c: Likewise.
17476 * gencmdlist.sh: Likewise.
17477 * genmk.rb: Likewise.
17478 * include/grub/disk.h: Likewise.
17479 * include/grub/efi/api.h: Likewise.
17480 * include/grub/efi/efi.h: Likewise.
17481 * include/grub/efi/pe32.h: Likewise.
17482 * include/grub/elf.h: Likewise.
17483 * include/grub/fs.h: Likewise.
17484 * include/grub/i386/at_keyboard.h: Likewise.
17485 * include/grub/i386/pc/memory.h: Likewise.
17486 * include/grub/i386/pc/vbe.h: Likewise.
17487 * include/grub/i386/pci.h: Likewise.
17488 * include/grub/i386/tsc.h: Likewise.
17489 * include/grub/ieee1275/ieee1275.h: Likewise.
17490 * include/grub/ntfs.h: Likewise.
17491 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17492 * include/grub/sparc64/libgcc.h: Likewise.
17493 * include/grub/symbol.h: Likewise.
17494 * include/grub/types.h: Likewise.
17495 * include/multiboot2.h: Likewise.
17496 * io/gzio.c: Likewise.
17497 * kern/device.c: Likewise.
17498 * kern/disk.c: Likewise.
17499 * kern/efi/efi.c: Likewise.
17500 * kern/efi/mm.c: Likewise.
17501 * kern/elf.c: Likewise.
17502 * kern/file.c: Likewise.
17503 * kern/i386/dl.c: Likewise.
17504 * kern/i386/pc/init.c: Likewise.
17505 * kern/i386/pc/startup.S: Likewise.
17506 * kern/ieee1275/ieee1275.c: Likewise.
17507 * kern/ieee1275/init.c: Likewise.
17508 * kern/main.c: Likewise.
17509 * kern/mm.c: Likewise.
17510 * kern/powerpc/dl.c: Likewise.
17511 * kern/sparc64/dl.c: Likewise.
17512 * kern/x86_64/dl.c: Likewise.
17513 * lib/hexdump.c: Likewise.
17514 * loader/efi/appleloader.c: Likewise.
17515 * loader/i386/ieee1275/linux.c: Likewise.
17516 * loader/i386/pc/chainloader.c: Likewise.
17517 * loader/i386/pc/linux.c: Likewise.
17518 * loader/i386/pc/multiboot2.c: Likewise.
17519 * loader/ieee1275/multiboot2.c: Likewise.
17520 * loader/multiboot2.c: Likewise.
17521 * loader/multiboot_loader.c: Likewise.
17522 * loader/powerpc/ieee1275/linux.c: Likewise.
17523 * normal/completion.c: Likewise.
17524 * normal/menu_entry.c: Likewise.
17525 * partmap/apple.c: Likewise.
17526 * util/grub.d/10_hurd.in: Likewise.
17527 * util/hostfs.c: Likewise.
17528 * video/readers/png.c: Likewise.
17529
17530 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
17531
17532 * include/grub/misc.h (GNUC_PREREQ): New macro.
17533 (ATTRIBUTE_ERROR): New macro.
17534 * include/grub/list.h (grub_bad_type_cast_real): Use
17535 ATTRIBUTE_ERROR.
17536
17537 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17538
17539 * normal/menu_text.c (print_message): Change messages.
17540
17541 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17542
17543 * normal/menu_entry.c (store_completion): Gettextizze.
17544
17545 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17546
17547 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
17548
17549 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17550
17551 * po/POTFILES: Sort correctly.
17552
17553 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17554
17555 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
17556 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
17557 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
17558 full stop.
17559 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
17560 summary. Gettextizze the strings.
17561 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
17562 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
17563 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
17564 full stop.
17565 (GRUB_MOD_INIT): Remove command name from summary.
17566 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
17567 summary.
17568 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
17569 * term/i386/pc/serial.c (options): Add full stops.
17570 (GRUB_MOD_INIT): Remove command name from the summary.
17571
17572 2010-01-03 Carles Pina i Estany <carles@pina.cat>
17573
17574 * commands/acpi.c: Gettextizze help strings and/or options. Include
17575 `grub/i18n.h' if needed.
17576 * commands/blocklist.c: Likewise.
17577 * commands/boot.c: Likewise.
17578 * commands/cat.c: Likewise.
17579 * commands/cmp.c: Likewise.
17580 * commands/configfile.c: Likewise.
17581 * commands/crc.c: Likewise.
17582 * commands/date.c: Likewise.
17583 * commands/echo.c: Likewise.
17584 * commands/efi/fixvideo.c: Likewise.
17585 * commands/efi/loadbios.c: Likewise.
17586 * commands/gptsync.c: Likewise.
17587 * commands/halt.c: Likewise.
17588 * commands/handler.c: Likewise.
17589 * commands/hdparm.c: Likewise.
17590 * commands/hexdump.c: Likewise.
17591 * commands/i386/cpuid.c: Likewise.
17592 * commands/i386/pc/drivemap.c: Likewise.
17593 * commands/i386/pc/halt.c: Likewise.
17594 * commands/i386/pc/pxecmd.c: Likewise.
17595 * commands/i386/pc/vbeinfo.c: Likewise.
17596 * commands/i386/pc/vbetest.c: Likewise.
17597 * commands/ieee1275/suspend.c: Likewise.
17598 * commands/keystatus.c: Likewise.
17599 * commands/loadenv.c: Likewise.
17600 * commands/ls.c: Likewise.
17601 * commands/lsmmap.c: Likewise.
17602 * commands/lspci.c: Likewise.
17603 * commands/memrw.c: Likewise.
17604 * commands/minicmd.c: Likewise.
17605 * commands/parttool.c: Likewise.
17606 * commands/password.c: Likewise.
17607 * commands/probe.c: Likewise.
17608 * commands/read.c: Likewise.
17609 * commands/reboot.c: Likewise.
17610 * commands/search.c: Likewise.
17611 * commands/sleep.c: Likewise.
17612 * commands/test.c: Likewise.
17613 * commands/true.c: Likewise.
17614 * commands/usbtest.c: Likewise.
17615 * commands/videotest.c: Likewise.
17616 * commands/xnu_uuid.c: Likewise.
17617 * disk/loopback.c: Likewise.
17618 * hello/hello.c: Likewise.
17619 * loader/i386/bsd.c: Likewise.
17620 * term/i386/pc/serial.c: Likewise.
17621 * po/POTFILES: Add new files.
17622
17623 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
17624
17625 * term/i386/pc/at_keyboard.c
17626 (keyboard_controller_wait_untill_ready): Rename to ...
17627 (keyboard_controller_wait_until_ready): ... this. Update all users.
17628
17629 2010-01-01 Carles Pina i Estany <carles@pina.cat>
17630
17631 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
17632 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
17633 string using string width.
17634 * normal/menu_text.c (grub_print_message_indented): Use
17635 grub_print_spaces and not print_spaces.
17636 (print_timeout): Likewise.
17637 (print_spaces): Move to...
17638 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
17639
17640 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
17641
17642 Import from Gnulib.
17643
17644 * gnulib/getdelim.c: New file.
17645 * gnulib/getline.c: Likewise.
17646
17647 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
17648
17649 * include/grub/list.h (grub_assert_fail): Removed.
17650 (grub_bad_type_cast_real): New function.
17651 (grub_bad_type_cast): New macro.
17652 (GRUB_AS_LIST): Use grub_bad_type_cast.
17653 (GRUB_AS_LIST_P): Likewise.
17654 (GRUB_AS_NAMED_LIST): Likewise.
17655 (GRUB_AS_NAMED_LIST_P): Likewise.
17656 (GRUB_AS_PRIO_LIST): Likewise.
17657 (GRUB_AS_PRIO_LIST_P): Likewise.
17658 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
17659
17660 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
17661
17662 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
17663 Fix syntax error.
17664
17665 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
17666
17667 * configure.ac: Check for TARGET_CFLAGS initialization before we
17668 initialize it ourselves (sigh).
17669 Move a few modifications to TARGET_CFLAGS to be unconditional
17670 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
17671 eh_frame)
17672
17673 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
17674 * term/i386/pc/at_keyboard.c
17675 (keyboard_controller_wait_untill_ready): Likewise.
17676 (keyboard_controller_led): Rename `led_status' paramter to avoid
17677 name conflict.
17678
17679 2009-12-28 Carles Pina i Estany <carles@pina.cat>
17680
17681 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
17682 quotes.
17683
17684 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17685
17686 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
17687
17688 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17689
17690 * normal/menu_text.c (grub_print_message_indented): Prevent
17691 past-the-end-of-array dereference.
17692
17693 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17694
17695 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
17696 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
17697
17698 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17699
17700 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
17701 * normal/main.c (grub_normal_read_line): Remove a space from the
17702 default prompt.
17703
17704 2009-12-27 Carles Pina i Estany <carles@pina.cat>
17705
17706 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
17707 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17708 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17709 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17710 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17711 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17712 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17713
17714 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17715
17716 * video/readers/jpeg.c (cmd): Declare.
17717 (grub_cmd_jpegtest): Use `grub_command_t' type.
17718 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17719 Assign to `cmd'.
17720 (GRUB_MOD_FINI): Use `cmd' to unregister.
17721 * video/readers/png.c (cmd): Declare.
17722 (grub_cmd_pngtest): Use `grub_command_t' type.
17723 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17724 Assign to `cmd'.
17725 (GRUB_MOD_FINI): Use `cmd' to unregister.
17726 * video/readers/tga.c (cmd): Declare.
17727 (grub_cmd_tgatest): Use `grub_command_t' type.
17728 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
17729 Assign to `cmd'.
17730 (GRUB_MOD_FINI): Use `cmd' to unregister.
17731
17732 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17733
17734 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
17735 stops.
17736 * kern/corecmd.c (grub_register_core_commands): Likewise.
17737 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
17738 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17739 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
17740 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17741 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
17742 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
17743 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
17744 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
17745 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17746 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
17747 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17748 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17749 * normal/handler.c (insert_handler): Likewise.
17750 * normal/main.c (GRUB_MOD_INIT): Likewise.
17751 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
17752
17753 2009-12-26 Carles Pina i Estany <carles@pina.cat>
17754
17755 * commands/help.c (grub_cmd_help): Print the command name before the
17756 summary.
17757 (GRUB_MOD_INIT): Remove command name from the summary.
17758 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
17759 string as summary.
17760 * lib/arg.c (find_long): Print the command name before the summary.
17761 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
17762 summary.
17763 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
17764 * commands/cat.c (GRUB_MOD_INIT): Likewise.
17765 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
17766 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17767 * commands/crc.c (GRUB_MOD_INIT): Likewise.
17768 * commands/date.c (GRUB_MOD_INIT): Likewise.
17769 * commands/echo.c (GRUB_MOD_INIT): Likewise.
17770 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
17771 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
17772 * commands/handler.c (GRUB_MOD_INIT): Likewise.
17773 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
17774 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
17775 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
17776 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
17777 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
17778 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
17779 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
17780 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
17781 * commands/ls.c (GRUB_MOD_INIT): Likewise.
17782 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
17783 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
17784 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
17785 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
17786 * commands/password.c (GRUB_MOD_INIT): Likewise.
17787 * commands/probe.c (GRUB_MOD_INIT): Likewise.
17788 * commands/read.c (GRUB_MOD_INIT): Likewise.
17789 * commands/search.c (GRUB_MOD_INIT): Likewise.
17790 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
17791 * commands/test.c (GRUB_MOD_INIT): Likewise.
17792 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
17793 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
17794 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
17795 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
17796 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
17797 * lib/arg.c (GRUB_MOD_INIT): Likewise.
17798 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
17799 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
17800 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
17801 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
17802 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
17803 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
17804 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
17805 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
17806
17807 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17808
17809 Use search command for preliminar UUID search.
17810
17811 * commands/search.c: Split into ...
17812 * commands/search_wrap.c: ...this
17813 * commands/search.c: ...and this.
17814 * commands/search_file.c: New file.
17815 * commands/search_label.c: New file.
17816 * commands/search_uuid.c: New file.
17817 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
17818 Add commands/search_wrap.c, commands/search_file.c,
17819 commands/search_label.c and commands/search_uuid.c.
17820 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
17821 (search_mod_SOURCES): Set to commands/search_wrap.c.
17822 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
17823 search_label.mod.
17824 (search_fs_file_mod_SOURCES): New variable.
17825 (search_fs_file_mod_CFLAGS): Likewise.
17826 (search_fs_file_mod_LDFLAGS): Likewise.
17827 (search_label_mod_SOURCES): Likewise.
17828 (search_label_mod_CFLAGS): Likewise.
17829 (search_label_mod_LDFLAGS): Likewise.
17830 (search_fs_uuid_mod_SOURCES): New variable.
17831 (search_fs_uuid_mod_CFLAGS): Likewise.
17832 (search_fs_uuid_mod_LDFLAGS): Likewise.
17833 (fs_file_mod_SOURCES): Removed.
17834 (fs_file_mod_CFLAGS): Likewise.
17835 (fs_file_mod_LDFLAGS): Likewise.
17836 (fs_uuid_mod_SOURCES): Removed.
17837 (fs_uuid_mod_CFLAGS): Likewise.
17838 (fs_uuid_mod_LDFLAGS): Likewise.
17839 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
17840 Set to util/grub-install.in.
17841 * disk/fs_file.c: Removed.
17842 * disk/fs_uuid.c: Likewise.
17843 * include/grub/search.h: New file.
17844 * util/grub-install.in: Handle sparc64.
17845 Create and use load.cfg.
17846 * util/sparc64/ieee1275/grub-install.in: Removed.
17847
17848 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17849
17850 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
17851 Ignore return status if CF is cleared.
17852 (grub_biosdisk_get_diskinfo_standard): Likewise.
17853
17854 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17855
17856 * term/i386/pc/at_keyboard.c
17857 (keyboard_controller_wait_untill_ready): New function.
17858 (grub_keyboard_controller_write, grub_keyboard_controller_read)
17859 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
17860 for keyboard polling, rather than duplicate the same loop. This
17861 saves a few bytes in code size.
17862
17863 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 Support for (pxe[:server[:gateway]]) syntax and
17866 use environment variable for PXE.
17867
17868 * commands/i386/pc/pxecmd.c (options): Removed.
17869 (print_ip): Removed.
17870 (grub_cmd_pxe): Removed
17871 (grub_cmd_pxe_unload): New function.
17872 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
17873 (grub_pxe_your_ip): Made static.
17874 (grub_pxe_default_server_ip): Likewise.
17875 (grub_pxe_default_gateway_ip): Likewise.
17876 (grub_pxe_blksize): Likewise.
17877 (parse_ip): New function.
17878 (grub_pxe_open): Support server and gateway specification.
17879 (grub_pxe_close): Free disk->data.
17880 (grub_pxefs_open): Use disk->data.
17881 (grub_pxefs_read): Likewise.
17882 (grub_env_write_readonly): New function.
17883 (set_mac_env): Likewise.
17884 (set_env_limn_ro): Likewise.
17885 (parse_dhcp_vendor): Likewise.
17886 (grub_pxe_detect): Set the environment variables.
17887 (set_ip_env): New function.
17888 (write_ip_env): Likewise.
17889 (grub_env_write_pxe_default_server): Likewise.
17890 (grub_env_write_pxe_default_gateway): Likewise.
17891 (grub_env_write_pxe_blocksize): Likewise.
17892 (GRUB_MOD_INIT(pxe)): Set environment variables.
17893 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
17894 (grub_pxe_mac_addr_t): ... this. All users updated.
17895 (grub_pxe_your_ip): Removed.
17896 (grub_pxe_server_ip): Likewise.
17897 (grub_pxe_gateway_ip): Likewise.
17898 (grub_pxe_blksize): Likewise.
17899
17900 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17901
17902 * commands/help.c: Include `<grub/i18n.h>'.
17903 (grub_cmd_help): Gettextizze.
17904 (GRUB_MOD_INIT): Likewise.
17905 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
17906 (GRUB_MOD_INIT): Gettextizze.
17907 * commands/search.c: Include `<grub/i18n.h>'.
17908 (options): Gettextizze.
17909 (GRUB_MOD_INIT): Gettextizze.
17910 * lib/arg.c: Include `<grub/i18n.h>'.
17911 (help_options): Gettextizze.
17912 (find_long): Likewise.
17913 (grub_arg_show_help): Likewise.
17914 * normal/dyncmd.c: Include `<grub/i18n.h>'.
17915 (read_command_list): Gettextizze.
17916 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
17917 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
17918
17919 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
17920
17921 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
17922 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
17923 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
17924 (led_status): New variable.
17925 (keyboard_controller_led): New function.
17926 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
17927 update led status for caps lock, num lock and scroll lock.
17928
17929 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
17930
17931 * util/hostdisk.c (open_device): Fix a comment.
17932
17933 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17934
17935 * util/grub-install.in (host_os): New variable.
17936 * util/i386/efi/grub-install.in (host_os): Likewise.
17937
17938 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17939
17940 * util/mkisofs/write.c (padblock_write): Abort when given an
17941 excedingly large embed image, instead of silently truncating it.
17942
17943 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17944
17945 * include/multiboot.h: Indentation fixes.
17946
17947 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17948
17949 * include/multiboot.h (struct multiboot_aout_symbol_table)
17950 (struct multiboot_elf_section_header_table): New structure
17951 declarations (stolen from GRUB Legacy).
17952 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
17953 table information.
17954
17955 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
17956 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
17957 type aliases.
17958
17959 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17960
17961 * include/multiboot.h: Make comments src2texi-friendly.
17962
17963 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17964
17965 For consistency with [multiboot]/docs/boot.S.
17966
17967 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
17968 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
17969 (MULTIBOOT_MAGIC2): Rename from this ...
17970 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
17971
17972 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
17973
17974 * include/multiboot.h: Remove `<grub/types.h>'.
17975 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
17976 types. Update all users.
17977
17978 2009-12-25 Carles Pina i Estany <carles@pina.cat>
17979
17980 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
17981 `couldn't' and `can not' by `cannot'.
17982 * commands/i386/pc/drivemap.c: Likewise.
17983 * disk/ata.c: Likewise.
17984 * disk/ieee1275/nand.c: Likewise.
17985 * fs/affs.c: Likewise.
17986 * fs/fat.c: Likewise.
17987 * fs/hfs.c: Likewise.
17988 * fs/hfsplus.c: Likewise.
17989 * fs/iso9660.c: Likewise.
17990 * fs/jfs.c: Likewise.
17991 * fs/minix.c: Likewise.
17992 * fs/reiserfs.c: Likewise.
17993 * fs/sfs.c: Likewise.
17994 * fs/udf.c: Likewise.
17995 * fs/ufs.c: Likewise.
17996 * fs/xfs.c: Likewise.
17997 * loader/powerpc/ieee1275/linux.c: Likewise.
17998 * loader/sparc64/ieee1275/linux.c: Likewise.
17999 * util/grub-probe.c: Likewise.
18000 * util/misc.c: Likewise.
18001
18002 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18003
18004 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18005 grub_errno calls.
18006 * commands/acpi.c: Likewise.
18007 * commands/blocklist.c: Likewise.
18008 * commands/efi/loadbios.c: Likewise.
18009 * commands/i386/pc/drivemap.c: Likewise.
18010 * commands/loadenv.c: Likewise.
18011 * commands/memrw.c: Likewise.
18012 * commands/password.c: Likewise.
18013 * commands/videotest.c: Likewise.
18014 * disk/ata.c: Likewise.
18015 * disk/ata_pthru.c: Likewise.
18016 * disk/dmraid_nvidia.c: Likewise.
18017 * disk/ieee1275/nand.c: Likewise.
18018 * disk/ieee1275/ofdisk.c: Likewise.
18019 * disk/loopback.c: Likewise.
18020 * disk/lvm.c: Likewise.
18021 * disk/mdraid_linux.c: Likewise.
18022 * disk/raid.c: Likewise.
18023 * disk/raid6_recover.c: Likewise.
18024 * disk/scsi.c: Likewise.
18025 * efiemu/main.c: Likewise.
18026 * efiemu/mm.c: Likewise.
18027 * efiemu/pnvram.c: Likewise.
18028 * efiemu/symbols.c: Likewise.
18029 * font/font.c: Likewise.
18030 * fs/cpio.c: Likewise.
18031 * fs/hfsplus.c: Likewise.
18032 * fs/iso9660.c: Likewise.
18033 * fs/jfs.c: Likewise.
18034 * fs/minix.c: Likewise.
18035 * fs/ntfs.c: Likewise.
18036 * fs/ntfscomp.c: Likewise.
18037 * fs/reiserfs.c: Likewise.
18038 * fs/ufs.c: Likewise.
18039 * fs/xfs.c: Likewise.
18040 * gettext/gettext.c: Likewise.
18041 * include/grub/auth.h: Likewise.
18042 * kern/elf.c: Likewise.
18043 * kern/file.c: Likewise.
18044 * kern/ieee1275/init.c: Likewise.
18045 * kern/ieee1275/mmap.c: Likewise.
18046 * kern/ieee1275/openfw.c: Likewise.
18047 * kern/powerpc/dl.c: Likewise.
18048 * kern/sparc64/dl.c: Likewise.
18049 * lib/arg.c: Likewise.
18050 * loader/i386/bsd.c: Likewise.
18051 * loader/i386/bsdXX.c: Likewise.
18052 * loader/i386/efi/linux.c: Likewise.
18053 * loader/i386/efi/xnu.c: Likewise.
18054 * loader/i386/ieee1275/linux.c: Likewise.
18055 * loader/i386/linux.c: Likewise.
18056 * loader/i386/multiboot.c: Likewise.
18057 * loader/i386/pc/linux.c: Likewise.
18058 * loader/i386/pc/multiboot2.c: Likewise.
18059 * loader/i386/xnu.c: Likewise.
18060 * loader/ieee1275/multiboot2.c: Likewise.
18061 * loader/macho.c: Likewise.
18062 * loader/machoXX.c: Likewise.
18063 * loader/multiboot2.c: Likewise.
18064 * loader/multiboot_loader.c: Likewise.
18065 * loader/powerpc/ieee1275/linux.c: Likewise.
18066 * loader/sparc64/ieee1275/linux.c: Likewise.
18067 * loader/xnu.c: Likewise.
18068 * loader/xnu_resume.c: Likewise.
18069 * mmap/i386/pc/mmap.c: Likewise.
18070 * normal/menu_viewer.c: Likewise.
18071 * partmap/acorn.c: Likewise.
18072 * partmap/amiga.c: Likewise.
18073 * partmap/apple.c: Likewise.
18074 * script/lexer.c: Likewise.
18075 * term/gfxterm.c: Likewise.
18076 * term/i386/pc/serial.c: Likewise.
18077 * term/i386/pc/vga.c: Likewise.
18078 * term/ieee1275/ofconsole.c: Likewise.
18079 * term/terminfo.c: Likewise.
18080 * video/bitmap.c: Likewise.
18081 * video/efi_gop.c: Likewise.
18082 * video/efi_uga.c: Likewise.
18083 * video/fb/video_fb.c: Likewise.
18084 * video/i386/pc/vbe.c: Likewise.
18085 * video/readers/tga.c: Likewise.
18086 * video/video.c: Likewise.
18087
18088 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18089
18090 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18091 * commands/lspci.c: Likewise.
18092 * commands/probe.c: Likewise.
18093 * commands/xnu_uuid.c: Likewise.
18094 * conf/i386-coreboot.rmk: Likewise.
18095 * conf/i386-efi.rmk: Likewise.
18096 * conf/i386-ieee1275.rmk: Likewise.
18097 * conf/i386-pc.rmk: Likewise.
18098 * conf/powerpc-ieee1275.rmk: Likewise.
18099 * conf/sparc64-ieee1275.rmk: Likewise.
18100 * conf/x86_64-efi.rmk: Likewise.
18101 * fs/i386/pc/pxe.c: Likewise.
18102 * gettext/gettext.c: Likewise.
18103 * include/grub/efi/graphics_output.h: Likewise.
18104 * include/grub/i386/pc/memory.h: Likewise.
18105 * kern/env.c: Likewise.
18106 * kern/i386/qemu/startup.S: Likewise.
18107 * lib/i386/pc/biosnum.c: Likewise.
18108 * lib/i386/relocator.c: Likewise.
18109 * lib/i386/relocator_asm.S: Likewise.
18110 * lib/relocator.c: Likewise.
18111 * loader/i386/bsd.c: Likewise.
18112 * loader/i386/multiboot.c: Likewise.
18113 * loader/i386/pc/chainloader.c: Likewise.
18114 * loader/i386/xnu.c: Likewise.
18115 * loader/xnu.c: Likewise.
18116 * normal/main.c: Likewise.
18117 * normal/menu_text.c: Likewise.
18118 * util/getroot.c: Likewise.
18119 * util/grub-mkconfig_lib.in: Likewise.
18120 * util/grub.d/00_header.in: Likewise.
18121 * util/i386/pc/grub-mkimage.c: Likewise.
18122 * util/mkisofs/eltorito.c: Likewise.
18123 * util/mkisofs/exclude.h: Likewise.
18124 * util/mkisofs/hash.c: Likewise.
18125 * util/mkisofs/iso9660.h: Likewise.
18126 * util/mkisofs/joliet.c: Likewise.
18127 * util/mkisofs/mkisofs.c: Likewise.
18128 * util/mkisofs/mkisofs.h: Likewise.
18129 * util/mkisofs/multi.c: Likewise.
18130 * util/mkisofs/name.c: Likewise.
18131 * util/mkisofs/rock.c: Likewise.
18132 * util/mkisofs/tree.c: Likewise.
18133 * util/mkisofs/write.c: Likewise.
18134 * video/efi_gop.c: Likewise.
18135
18136 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18137
18138 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18139 size counting.
18140
18141 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18142
18143 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18144 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18145
18146 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18147
18148 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18149 (GRUB_MOD_INIT(memrw)): Update help line.
18150
18151 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18154 Use grub_extcmd_t. All users updated.
18155 (options): New variable.
18156 (grub_cmd_read): Restructure for readability. Support "-v" option.
18157 (grub_cmd_write): Restructure for readability.
18158
18159 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18160
18161 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18162
18163 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18164
18165 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18166 with the actual contents of the correspondending make variable.
18167 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18168 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18169 specifying `*.lst' and `efiemu??.o'
18170
18171 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18172
18173 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18174 after function name.
18175 Noticed by Rene Engelhard <rene@debian.org>.
18176
18177 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18178
18179 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18180 (options): New variable.
18181 (iospace): Likewise.
18182 (grub_lspci_iter): List IO spaces if "-i" was given.
18183 (grub_cmd_lspci): Parse options.
18184 (GRUB_MOD_INIT(lspci)): Use extcmd.
18185 (GRUB_MOD_FINI(lspci)): Likewise.
18186
18187 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18188
18189 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18190 `function' keyword.
18191 Patch by Tony Mancill <tmancill@debian.org>.
18192
18193 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18196 (grub_uhci_portstatus): Likewise.
18197 (grub_uhci_portstatus): Add necessary delay.
18198 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18199
18200 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18201
18202 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18203 (GRUB_MOD_INIT): Likewise.
18204 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18205 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18206 * commands/echo.c (options): Fix capitalizations and/or full stops.
18207 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18208 (enable_rom_area): Likewise.
18209 (GRUB_MOD_INIT): Likewise.
18210 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18211 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18212 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18213 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18214 * commands/hexdump.c (options): Likewise.
18215 * commands/i386/cpuid.c (options): Likewise.
18216 (GRUB_MOD_INIT): Likewise.
18217 * commands/i386/pc/drivemap.c (options): Likewise.
18218 (GRUB_MOD_INIT): Likewise.
18219 * commands/i386/pc/halt (options): Likewise.
18220 (GRUB_MOD_INIT): Likewise.
18221 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18222 * commands/i386/pc/pxecmd.c (options): Likewise.
18223 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18224 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18225 * commands/keystatus.c (options): Likewise.
18226 (GRUB_MOD_INIT): Likewise.
18227 * commands/loadenv.c (options): Likewise.
18228 * commands/ls.c (options): Likewise.
18229 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18230 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18231 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18232 * commands/parttool.c (helpmsg): Likewise.
18233 * commands/probe.c (options): Likewise.
18234 * commands/read.c (GRUB_MOD_INIT): Likewise.
18235 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18236 * commands/search.c (options): Likewise.
18237 * commands/sleep.c (options): Likewise.
18238 * commands/test.c (GRUB_MOD_INIT): Likewise.
18239 * commands/true.c (GRUB_MOD_INIT): Likewise.
18240 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18241 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18242 * lib/arg.c (help_options): Likewise.
18243 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18244 `$(XGETTEXT)'.
18245 * po/POTFILES: Add `commands/loadenv.c'.
18246
18247 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18248
18249 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18250 instead of specifying them explicit.
18251
18252 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18253
18254 * NEWS: Add grub-probe support for GNU/Hurd.
18255
18256 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18257
18258 * NEWS: gettext was added after 1.97.
18259
18260 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18261
18262 * util/mkisofs/msdos_partition.h: New file (based on
18263 include/grub/msdos_partition.h).
18264 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18265 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18266 (ld_options, main): Recognize --protective-msdos-label.
18267 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18268 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18269 (padblock_write): If `use_protective_msdos_label' is set, patch a
18270 protective DOS-style label in the output image.
18271
18272 * util/grub-mkrescue.in: Use --protective-msdos-label.
18273
18274 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18275
18276 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18277 boot.
18278
18279 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18280
18281 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18282 variables.
18283 (ld_options, main): Recognize `--embedded-boot'.
18284 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18285 declarations.
18286 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18287 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18288 (padblock_write): Likewise. Rewrite to support embedded boot image.
18289
18290 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18291 for BIOS-based disk boot instead of only ElTorito.
18292
18293 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18294
18295 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18296 build (not needed for bootstrap).
18297
18298 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18299
18300 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18301 from i386-pc build (not needed for bootstrap).
18302 Rewrite a pair of strings.
18303
18304 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18305
18306 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18307
18308 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18309
18310 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18311
18312 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18313
18314 * kern/env.c (grub_env_context_open): Mark exported variable for
18315 reexport.
18316
18317 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18318
18319 * kern/env.c (grub_env_export): Create nonexistent variables before
18320 exporting.
18321
18322 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18323
18324 * include/grub/auth.h: Include `<grub/i18n.h>'.
18325 (GRUB_GET_PASSWORD): Gettextizze string.
18326 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
18327 menu_text.c.
18328 (grub_utf8_to_ucs4_alloc): Fix indentation.
18329 (grub_print_ucs4): Likewise.
18330 (grub_getstringwidth): Likewise.
18331 (print_message_indented): New declaration.
18332 * normal/auth.c: Include `<grub/i18n.h>'.
18333 (grub_auth_check_authentication): Gettexttize string.
18334 * normal/cmdline.c: Include `<grub/i18n.h>'.
18335 (grub_cmdline_get): Gettextizze.
18336 * normal/color.c: Include `<grub/i18n.h>'.
18337 (grub_parse_color_name_pair): Gettexttize strings.
18338 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
18339 string (use `print_message_indented').
18340 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
18341 `include/grub/normal.h'.
18342 (print_message_indented): Renamed to ...
18343 (grub_print_message_indented): ... this. Remove `static' qualifer (now
18344 used in normal/main.c).
18345 (print_message): Use `grub_print_message_indented' instead of
18346 `print_message_indented'.
18347 (print_timeout): Likewise.
18348 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
18349 (grub_normal_print_device_info): Gettexttize strings.
18350 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
18351
18352 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18353
18354 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
18355 of arguments. Return number of tokens and not arguments. All users
18356 updated.
18357
18358 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18359
18360 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
18361 non-MSDOS paritions.
18362
18363 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18364
18365 * include/grub/types.h (UNUSED): Removed since it conflicts with
18366 NetBSD headers. All users changed to direct __attribute__ ((unused)).
18367 Reported by Grégoire Sutre.
18368
18369 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18370
18371 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
18372 (grub_print_ucs4_alloc): Likewise.
18373 (grub_getstringwidth): Likewise.
18374 * normal/main.c (grub_normal_init_page): Gettextize version string.
18375 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
18376 (getstringwidth): Renamed to ...
18377 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
18378 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
18379 (grub_print_ucs4): Remove `static' qualifer (now used in
18380 normal/main.c).
18381 * po/POTFILES: Add normal/main.c.
18382
18383 2009-12-19 Carles Pina i Estany <carles@pina.cat>
18384
18385 * normal/menu_text.c (STANDARD_MARGIN): New macro.
18386 (print_message_indented): Add `margin_left' and `margin_right'
18387 parameters.
18388 (print_message): Update `print_message_indented' calls. Adds '\n' to the
18389 strings.
18390 (print_timeout): Use `print_message_indented' to print the message.
18391 Deletes `second_stage' parameter.
18392 (run_menu): Update `print_timeout' calls.
18393
18394 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18395
18396 Fix console palette on OpenFirmware.
18397
18398 * term/ieee1275/ofconsole.c (MAX): Removed.
18399 (colors): Redone based on VGA palette.
18400 (grub_ofconsole_setcolor): Discard brightness bit since only 8
18401 colors are supported.
18402 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
18403
18404 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18405
18406 Fix potential EfiEmu double prepare.
18407
18408 * efiemu/main.c (prepared): New variable
18409 (grub_efiemu_unload): Set prepare to '0'.
18410 (grub_efiemu_prepare): Return if already prepared. Set prepared.
18411
18412 set_virtual_address_map support.
18413
18414 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
18415 prototype.
18416 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
18417 prototype.
18418 (grub_efiemu_crc32): Likewise.
18419 (grub_efiemu_crc64): Likewise.
18420 (grub_efiemu_set_virtual_address_map): Likewise.
18421 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
18422 New definition.
18423 (grub_autoefi_set_virtual_address_map): Likewise.
18424 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
18425 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
18426 Restructure flow to accomodate it.
18427 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
18428 (grub_efiemu_crc): Recompute CRC32.
18429 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
18430 (efiemu_ptv_relocated): ... this. Made global. All users updated.
18431 * efiemu/symbols.c (relocated_handle): New variable.
18432 (grub_efiemu_free_syms): Free relocated_handle.
18433 (grub_efiemu_alloc_syms): Allocate relocated_handle.
18434 (grub_efiemu_write_sym_markers): New function.
18435 (grub_efiemu_set_virtual_address_map): Likewise.
18436
18437 Newer XNU parameters.
18438
18439 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
18440 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
18441 (grub_xnu_fill_devicetree): New prototype.
18442 (grub_xnu_heap_real_start): New variable.
18443 * loader/xnu.c (get_name_ptr): New function.
18444 (grub_xnu_load_driver): Fill namelen and name.
18445
18446 64-bit xnu support.
18447
18448 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
18449 and 'loader/macho64.c'.
18450 * conf/i386-pc.rmk: Likewise.
18451 * conf/x86_64-efi.rmk: Likewise.
18452 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
18453 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
18454 * include/grub/macho.h (grub_macho_segment64): New structure.
18455 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
18456 (grub_macho_size32): ... to this.
18457 (grub_macho32_get_entry_point): Renamed from ...
18458 (grub_macho_get_entry_point32): ... to this.
18459 (grub_macho_contains_macho64): New prototype.
18460 (grub_macho_size64): Likewise.
18461 (grub_macho_get_entry_point64): Likewise.
18462 (grub_macho32_load): Renamed from ...
18463 (grub_macho_load32): ... to this.
18464 (grub_macho32_filesize): Renamed from ...
18465 (grub_macho_filesize32): ... to this.
18466 (grub_macho32_readfile): Renamed from ...
18467 (grub_macho_readfile32): ... to this.
18468 (grub_macho_filesize64): New prototype.
18469 (grub_macho_readfile64): Likewise.
18470 (grub_macho_parse32): Likewise.
18471 (grub_macho_parse64): Likewise.
18472 * loader/macho.c: Split into ...
18473 * loader/machoXX.c: ... and this. Replace 32 with XX.
18474 * loader/macho32.c: New file.
18475 * loader/macho64.c: Likewise.
18476 * loader/xnu.c (grub_xnu_is_64bit): New variable.
18477 (grub_cmd_xnu_kernel): Make 32-bit only.
18478 (grub_cmd_xnu_kernel64): New function.
18479 (grub_xnu_load_driver): Support Mach-O 64.
18480 (grub_cmd_xnu_mkext): Likewise.
18481 * util/grub.d/30_os-prober.in (osx_entry): New function.
18482 Generate entries for 64-bit boot too.
18483
18484 Eliminate ad-hoc tree format in XNU and EfiEmu.
18485
18486 * efiemu/main.c (grub_efiemu_prepare): Update comment.
18487 * efiemu/pnvram.c: Rewritten to use environment variables.
18488 All users updated.
18489
18490 Inline utf16_to_utf8.
18491
18492 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
18493 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
18494 All users updated.
18495 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
18496
18497 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
18498 * commands/usbtest.c (grub_usb_get_string): ... move here.
18499 (usb_print_str): Fix error handling.
18500 * include/grub/usb.h (grub_usb_get_string): Remove.
18501
18502 UTF-8 to UTF-16 transformation.
18503
18504 * conf/common.rmk (pkglib_MODULES): Add charset.mod
18505 (charset_mod_SOURCES): New variable.
18506 (charset_mod_CFLAGS): Likewise.
18507 (charset_mod_LDFLAGS): Likewise.
18508 * include/grub/utf.h: New file.
18509 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
18510
18511 Support for device properties.
18512
18513 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
18514 (grub_xnu_devprop_device_header): Likewise.
18515 (grub_xnu_devprop_device_descriptor): Likewise.
18516 (grub_xnu_devprop_add_device): New prototype.
18517 (grub_xnu_devprop_remove_device): Likewise.
18518 (grub_xnu_devprop_remove_property): Likewise.
18519 (grub_xnu_devprop_add_property_utf8): Likewise.
18520 (grub_xnu_devprop_add_property_utf16): Likewise.
18521 (grub_cpu_xnu_init): Likewise.
18522 (grub_cpu_xnu_fini): Likewise.
18523 (grub_cpu_xnu_unload): Likewise.
18524 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
18525 (property_descriptor): Likewise.
18526 (devices): New variable.
18527 (grub_xnu_devprop_remove_property): New function.
18528 (grub_xnu_devprop_add_device): Likewise.
18529 (grub_xnu_devprop_remove_device): Likewise.
18530 (grub_xnu_devprop_add_property): Likewise.
18531 (grub_xnu_devprop_add_property_utf8): Likewise.
18532 (grub_xnu_devprop_add_property_utf16): Likewise.
18533 (hextoval): Likewise.
18534 (grub_cpu_xnu_fill_devprop): Likewise.
18535 (grub_cmd_devprop_load): Likewise.
18536 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
18537 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
18538 (cmd_devprop_load): New variable.
18539 (grub_cpu_xnu_init): New function.
18540 (grub_cpu_xnu_fini): Likewise.
18541 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
18542 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
18543 (grub_cmd_xnu_devtree): Likewise.
18544 (hextoval): New function.
18545 (unescape): Likewise.
18546 (grub_xnu_fill_devicetree): Likewise.
18547
18548 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
18549 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
18550
18551 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18552
18553 Workaround for broken ATI VBE.
18554
18555 * video/i386/pc/vbe.c (last_set_mode): New variable.
18556 (grub_vbe_set_video_mode): Set 'last_set_mode'.
18557 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
18558 (grub_video_vbe_setup): Don't check for reserved flag.
18559
18560 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
18561
18562 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
18563 the `find' command.
18564
18565 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
18566
18567 UUID support for HFS.
18568
18569 * fs/hfs.c (grub_hfs_uuid): New function.
18570 (grub_hfs_fs): New value .uuid.
18571 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
18572
18573 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
18574
18575 Fix a segfault with parsing unknown long options.
18576
18577 * util/grub-mkrelpath.c (options): Zero terminate it.
18578
18579 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18580
18581 * include/grub/misc.h (grub_puts): New declaration.
18582 (grub_puts_): Likewise.
18583 * kern/misc.c (grub_puts): New definition.
18584 (grub_puts_): Likewise.
18585
18586 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18587
18588 * util/grub-probe.c (probe): Improve error message.
18589
18590 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
18591
18592 * loader/i386/multiboot_elfxx.c
18593 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
18594 initialization.
18595
18596 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18597
18598 Relocator framework
18599
18600 * loader/i386/xnu_helper.S: Removed. All users updated.
18601 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
18602 (relocator_mod_SOURCES): New variable.
18603 (relocator_mod_CFLAGS): Likewise.
18604 (relocator_mod_LDFLAGS): Likewise.
18605 (relocator_mod_ASFLAGS): Likewise.
18606 * conf/x86_64.rmk: Likewise.
18607 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
18608 (grub_multiboot_payload_entry_offset): Likewise.
18609 (grub_multiboot_forward_relocator): Likewise.
18610 (grub_multiboot_forward_relocator_end): Likewise.
18611 (grub_multiboot_backward_relocator): Likewise.
18612 (grub_multiboot_backward_relocator_end): Likewise.
18613 (grub_multiboot_payload_eip): New variable.
18614 (grub_multiboot_payload_orig): Likewise.
18615 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
18616 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
18617 * include/grub/i386/memory.h
18618 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
18619 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
18620 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
18621 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
18622 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
18623 * include/grub/i386/relocator.h: New file.
18624 * include/grub/x86_64/relocator.h: Likewise.
18625 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
18626 (XNU_RELOCATOR): New macro.
18627 (grub_xnu_launcher_start): Remove.
18628 (grub_xnu_launcher_end): Likewise.
18629 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
18630 (grub_xnu_heap_real_start): Remove.
18631 (grub_xnu_heap_start): Change to void *. All users updated.
18632 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
18633 * lib/i386/relocator.c: New file.
18634 * lib/i386/relocator_asm.S: Likewise.
18635 * lib/i386/relocator_backward.S: Likewise.
18636 * lib/mips/relocator.c: Likewise.
18637 * lib/mips/relocator_asm.S: Likewise.
18638 * lib/relocator.c: Likewise.
18639 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
18640 (entry): Removed.
18641 (playground): Likewise.
18642 (grub_multiboot_payload_orig): New variable.
18643 (grub_multiboot_payload_dest): Likewise.
18644 (grub_multiboot_payload_size): Likewise.
18645 (grub_multiboot_payload_eip): Likewise.
18646 (grub_multiboot_payload_esp): Likewise.
18647 (grub_multiboot_boot): Use grub_relocator32_boot.
18648 (grub_multiboot_unload): Free relocators.
18649 (grub_multiboot): Setup stack. Use relocators.
18650 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
18651 (grub_multiboot_load_elfXX): Use relocators.
18652 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
18653 (grub_multiboot_payload_size): Likewise.
18654 (grub_multiboot_payload_dest): Likewise.
18655 (grub_multiboot_payload_entry_offset): Likewise.
18656 (grub_multiboot_forward_relocator): Likewise.
18657 (grub_multiboot_backward_relocator): Likewise.
18658 (grub_multiboot_real_boot): Likewise.
18659 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
18660 (grub_xnu_entry_point): Likewise.
18661 (grub_xnu_arg1): Likewise.
18662 (grub_xnu_stack): Likewise.
18663 (grub_xnu_launch): Removed.
18664 (grub_xnu_boot_resume): New function.
18665 (grub_xnu_boot): Use relocators.
18666 * loader/i386/xnu_helper.S: Removed.
18667 * loader/xnu.c (grub_xnu_heap_start): New variable.
18668 (grub_xnu_heap_size): Likewise.
18669 (grub_xnu_heap_malloc): Use relocators.
18670 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
18671
18672 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
18675 anything.
18676
18677 2009-12-13 Carles Pina i Estany <carles@pina.cat>
18678
18679 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
18680 GRUB_ERR_NONE before calling grub_env_set.
18681
18682 2009-12-12 Robert Millan <rmh@aybabtu.com>
18683
18684 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
18685 * genmk.rb (video): New variable.
18686 (CLEANFILES, VIDEOFILES): Add #{video}.
18687 (#{video}): New target rule.
18688 * genvideolist.sh: New file.
18689 * Makefile.in (pkglib_DATA): Add video.lst.
18690 (video.lst): New target rule.
18691 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
18692 `video.lst'.
18693 * util/grub.d/30_os-prober.in: Replace `vbe' with
18694 ${GRUB_VIDEO_BACKEND}.
18695
18696 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
18697
18698 * THANKS: Add David Miller.
18699
18700 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 libpciaccess support.
18703
18704 * Makefile.in (LIBPCIACCESS): New variable.
18705 (enable_grub_emu_pci): Likewise.
18706 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
18707 util/pci.c and commands/lspci.c.
18708 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
18709 * configure.ac (grub-emu-pci): New option.
18710 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
18711 (grub_pci_device_unmap_range): Likewise.
18712 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
18713 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
18714 (grub_pci_address_t) [!GRUB_UTIL]: New type.
18715 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
18716 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
18717 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
18718 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
18719 * include/grub/pciutils.h: New file.
18720 * util/pci.c: Likewise.
18721
18722 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
18723
18724 * util/misc.c: Don't include <errno.h> twice.
18725
18726 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
18727
18728 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
18729 name in an error message.
18730 (grub_biosdisk_rw): Likewise.
18731
18732 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 Eliminate NTFS 4Gib barrier.
18735
18736 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
18737 (read_run_data): Likewise.
18738 (grub_ntfs_read_run_list): Likewise.
18739 (grub_ntfs_read_block): Likewise.
18740 (grub_ntfs_iterate_dir): Likewise.
18741 (read_mft): Likewise.
18742 (read_data): Likewise.
18743 Use COM_LOG_LEN.
18744 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
18745 to avoid 64-bit division
18746 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
18747 (grub_ntfs_rlst): Use grub_disk_addr_t.
18748
18749 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 Eliminate grub-fstest 4Gib barrier.
18752
18753 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
18754 (read_file): Fix error reporting.
18755
18756 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 Eliminate hexdump 4Gib barrier.
18759
18760 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
18761 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
18762
18763 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
18766 Fixes amarsh bug.
18767
18768 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
18769
18770 Remove miscellaneous files in distclean target.
18771
18772 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
18773
18774 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
18775
18776 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
18777 if they're already set. This resolves the conflict between my
18778 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
18779 fixing the --grub-probe option again.
18780 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
18781 change on 2009-10-06, so that we now once again source
18782 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
18783
18784 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
18785
18786 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
18787 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
18788 `util/devicemap.c'.
18789
18790 2009-12-08 Carles Pina i Estany <carles@pina.cat>
18791
18792 * include/grub/misc.h (grub_printf_): New declaration.
18793 * kern/misc.c (grub_printf_): New definition.
18794 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
18795 instead of `grub_printf' and `_'.
18796 * normal/menu_entry.c (store_completion): Likewise.
18797 (run): Likewise.
18798 (grub_menu_entry_run): Likewise.
18799 * normal/menu_text.c (grub_wait_after_message): Likewise.
18800 (notify_booting): Likewise.
18801 (notify_fallback): Likewise.
18802 (notify_execution_failure): Likewise.
18803
18804 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
18805
18806 * configure.ac: Check for vasprintf.
18807 * util/misc.c (asprintf): Move allocation from here ...
18808 (vasprintf): ... to here. New function.
18809 (xasprintf): New function.
18810 * include/grub/util/misc.h (vasprintf, xasprintf): Add
18811 prototypes.
18812 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18813 * util/grub-mkfont.c (write_font): Likewise.
18814 * util/grub-probe.c (probe): Likewise.
18815 * util/hostdisk.c (make_device_name): Likewise.
18816
18817 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
18818
18819 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
18820 anything even prefixed with 'cdrom' as a cdrom.
18821
18822 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
18823
18824 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
18825 mount points.
18826
18827 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18828
18829 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
18830 grub_gettext_msg_list.
18831 (grub_gettext_gettranslation_from_position): Return const char *
18832 and not char *.
18833 (grub_gettext_translate): Add the translated strings into a list,
18834 returns from the list if existing there.
18835 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
18836 (grub_gettext_delete_list): Delete the list.
18837 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
18838 lang environment variable is changed.
18839 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
18840
18841 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18842
18843 Rename kernel.mod to kernel.img.
18844
18845 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
18846 (kernel_mod_EXPORTS): Rename to ...
18847 (kernel_img_EXPORTS): ... this.
18848 (kernel_mod_SOURCES): Rename to ...
18849 (kernel_img_SOURCES): ... this.
18850 (kernel_mod_HEADERS): Rename to ...
18851 (kernel_img_HEADERS): ... this. All users updated.
18852 (kernel_mod_CFLAGS): Rename to ...
18853 (kernel_img_CFLAGS): ... this.
18854 (kernel_mod_ASFLAGS): Rename to ...
18855 (kernel_img_ASFLAGS): ... this.
18856 (kernel_mod_LDFLAGS): Rename to ...
18857 (kernel_img_LDFLAGS): ... this.
18858 * conf/x86_64-efi.rmk: Likewise.
18859 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
18860 (read_kernel_image): ... this. All users updated.
18861 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
18862
18863 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18864
18865 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
18866 (print_spaces): New function.
18867 (grub_print_ucs4): New function.
18868 (getstringwidth): New function.
18869 (print_message_indented): New function.
18870 (print_message): Gettexttize strings using print_message_indented.
18871 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
18872 width.
18873 (get_entry_number): Gettextize and uses dynamic terminal width.
18874 (notify_booting, notify_fallback, notify_execution_failure):
18875 Gettextize.
18876 * normal/menu_entry.c (store_completion): Cleanup the gettextized
18877 string.
18878 (run): Likewise.
18879 (grub_menu_entry_run): Likewise.
18880 * PO/POTFILES: Add normal/menu_entry.c.
18881
18882 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
18883
18884 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
18885
18886 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18887
18888 * util/grub-install.in: Install gettext .mo files.
18889 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
18890
18891 2009-12-05 Carles Pina i Estany <carles@pina.cat>
18892
18893 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
18894 grub_dprintf.
18895
18896 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
18897
18898 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
18899 non-firmware-dependant one in realmode.S takes precedence.
18900
18901 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
18902
18903 * commands/halt.c: Replace misc arch-specific headers with
18904 `<grub/misc.h>'.
18905 * commands/reboot.c: Likewise.
18906 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
18907 `<grub/misc.h>'.
18908 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
18909 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
18910 (kernel_img_SOURCES): ... to here.
18911
18912 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
18913 * include/grub/i386/pc/init.h: Likewise.
18914 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
18915 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18916
18917 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
18918
18919 * include/grub/i386/halt.h: Remove.
18920 * include/grub/i386/reboot.h: Likewise.
18921
18922 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
18923
18924 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
18925
18926 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
18927 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
18928 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
18929 "progname.h"
18930 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
18931 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18932 (usage): Add missing comma in printf.
18933
18934 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
18935
18936 Use the same reboot approach on i386 coreboot and qemu as we do on
18937 BIOS.
18938
18939 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
18940 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
18941 * kern/i386/reboot.c: Remove.
18942 * include/grub/i386/reboot.h (grub_reboot): Export function.
18943 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
18944 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
18945 0xf000:0xfff0 instead of 0xffff:0x0000.
18946 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
18947 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
18948
18949 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
18950
18951 Fix $srcdir != $objdir build.
18952
18953 * Makefile.in (po/%.po): Rewrite as ...
18954 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
18955
18956 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18957
18958 Fix GNU/Hurd grub-install crash.
18959 * util/grub-probe.c (probe): Try to access `path' only when it is not
18960 NULL.
18961
18962 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 Correct module naming.
18965
18966 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18967 (GRUB_MOD_INIT(efi_uga)): ... to this
18968 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18969 (GRUB_MOD_FINI(efi_uga)): ... to this
18970 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
18971 (GRUB_MOD_INIT(efi_gop)): ... to this
18972 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
18973 (GRUB_MOD_FINI(efi_gop)): ... to this
18974
18975 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
18976
18977 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
18978 translatable.
18979 (usage): Translate `arg' strings using gettext().
18980 Thanks to Jordi Mallach for the suggestion.
18981
18982 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18983
18984 GOP support. Based on patch from Bean
18985 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
18986
18987 * video/efi_gop.c: New file.
18988 * include/grub/efi/graphics_output.h: Likewise.
18989 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
18990 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
18991 variables.
18992 * conf/x86_64-efi.rmk: Likewise.
18993
18994 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
18995
18996 Rename efi_fb to efi_uga.
18997
18998 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
18999 'efi_uga.mod'.
19000 (efi_fb_mod_SOURCES): Rename this ...
19001 (efi_uga_mod_SOURCES): ... to this.
19002 (efi_fb_mod_CFLAGS): Rename this ...
19003 (efi_uga_mod_CFLAGS): ... to this.
19004 (efi_fb_mod_LDFLAGS): Rename this ...
19005 (efi_uga_mod_LDFLAGS): ... to this.
19006 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19007 'efi_uga.mod'.
19008 (efi_fb_mod_SOURCES): Rename this ...
19009 (efi_uga_mod_SOURCES): ... to this.
19010 (efi_fb_mod_CFLAGS): Rename this ...
19011 (efi_uga_mod_CFLAGS): ... to this.
19012 (efi_fb_mod_LDFLAGS): Rename this ...
19013 (efi_uga_mod_LDFLAGS): ... to this.
19014 * video/efi_fb.c: Move this ...
19015 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19016
19017 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19018
19019 * po/README: New file. Explain our PO file workflow.
19020
19021 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19022
19023 * po/ChangeLog: Remove. Move relevant entries back to ...
19024 * ChangeLog: ... here.
19025 * po/ca.po: Remove (now handled by TLP).
19026 * po/id.po: Likewise.
19027 * po/zh_CN.po: Likewise.
19028 * Makefile.in (LINGUAS): Initialize in a way that supports
19029 empty set.
19030
19031 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19032
19033 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19034 reliing on po/LINGUAS.
19035 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19036 (po/%.po): ... this.
19037
19038 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19039
19040 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19041 (main): Use `program_name' instead of nonexistent `progname'.
19042
19043 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19044
19045 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19046 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19047
19048 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19049
19050 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19051 commit.
19052 * conf/i386-efi.rmk: Likewise.
19053 * conf/i386-ieee1275.rmk: Likewise.
19054 * conf/powerpc-ieee1275.rmk: Likewise.
19055 * conf/sparc64-ieee1275.rmk: Likewise.
19056 * conf/x86_64-efi.rmk: Likewise.
19057
19058 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19059
19060 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19061
19062 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19063
19064 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19065
19066 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19067
19068 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19069 (grub_mkdevicemap_SOURCES): New variable.
19070 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19071 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19072 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19073 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19074 (grub_mkdevicemap_SOURCES): Remove.
19075 * conf/i386-efi.rmk: Likewise.
19076 * conf/i386-ieee1275.rmk: Likewise.
19077 * conf/i386-pc.rmk: Likewise.
19078 * conf/powerpc-ieee1275.rmk: Likewise.
19079 * conf/sparc64-ieee1275.rmk: Likewise.
19080 * conf/x86_64-efi.rmk: Likewise.
19081 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19082 (usage): Fix strings to use `program_name'.
19083 (main): Initialize gettext.
19084 * util/grub-editenv.c: Likewise.
19085 * util/grub-emu.c: Likewise.
19086 * util/grub-fstest.c: Likewise.
19087 * util/grub-mkdevicemap.c: Likewise.
19088 * util/grub-mkfont.c: Likewise.
19089 * util/grub-mkrelpath.c: Likewise.
19090 * util/grub-pe2elf.c: Likewise.
19091 * util/grub-probe.c: Likewise.
19092 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19093 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19094 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19095
19096 * util/misc.c: Include `"progname.h"'.
19097 (progname): Remove variable.
19098 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19099
19100 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19101
19102 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19103 printf and print a newline after the menuentry header line.
19104 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19105
19106 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19107
19108 autoconf >= 2.60 support $(localedir).
19109
19110 * INSTALL: Note that autoconf 2.60 is required.
19111 * configure.ac (AC_PREREQ): Bump to 2.60.
19112 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19113 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19114
19115 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19116
19117 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19118 aclocal is run.
19119
19120 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19121
19122 * normal/main.c (grub_normal_read_line): Fix off-by-one
19123 buffer overflow.
19124
19125 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19126
19127 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19128 "parser.grub" in grub_command_execute() call.
19129
19130 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19131
19132 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19133 * conf/i386-efi.rmk: Likewise.
19134 * conf/i386-ieee1275.rmk: Likewise.
19135 * conf/i386-pc.rmk: Likewise.
19136 * conf/powerpc-ieee1275.rmk: Likewise.
19137 * conf/sparc64-ieee1275.rmk: Likewise.
19138 * conf/x86_64-efi.rmk: Likewise.
19139 * gettext/gettex.c: Include <grub/i18n.h>.
19140 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19141 here ...
19142 * include/grub/i18n.h: ... to here
19143 * include/grub/i18n.h: ... to here.
19144 * kern/misc.c: Include <grub/i18n.h>
19145 (grub_gettext_dummy): Move above user.
19146
19147 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19148
19149 * util/Makefile.in (install-local): Convert a `for' into a normal
19150 shell expansion.
19151
19152 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19153
19154 * autogen.sh: Add automake call.
19155 * config.guess: Remove.
19156 * config.sub: Likewise.
19157 * install-sh: Likewise.
19158
19159 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19160
19161 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19162
19163 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19164
19165 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19166 function to a normal shell `for'.
19167
19168 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19169
19170 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19171
19172 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19173
19174 * util/grub-mkrelpath.c: New file.
19175 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19176 (grub_mkrelpath_SOURCES): New variable.
19177 * include/grub/util/misc.h: New function prototype.
19178 * util/misc.c (make_system_path_relative_to_its_root): New function.
19179
19180 * util/grub-mkconfig_lib.in (bindir): New variable.
19181 (grub_mkrelpath): Likewise.
19182 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19183
19184 * util/probe.c (probe): Make the file path relative to its root.
19185 Change a info message to use the GRUB path. Enable again the
19186 check if we can read the file with GRUB facilities.
19187
19188 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19189 to its root.
19190
19191 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19192
19193 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19194 platform.
19195
19196 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19197
19198 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19199 strncmp().
19200
19201 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19202
19203 * util/getroot.c (grub_util_is_dmraid): New function.
19204 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19205 devices as normal ones, not as LVM.
19206
19207 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19208
19209 * conf/common.rmk: Add grub-gettext_lib target and updates
19210 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19211 LDFLAGS.
19212 * gettext/gettext.c: New file. (Reads mo files).
19213 * include/grub/file.h (grub_file_pread): New prototype.
19214 * include/grub/i18n.h (_): New prototype.
19215 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19216 prototypes.
19217 * kern/misc.c (grub_gettext_dummy): New function.
19218 * normal/menu_text.c: Include <grub/i18n.h>.
19219 * normal/menu_text.c (print_timeout): Gettexttize string.
19220 * normal/menu_text.c (print_message): Gettexttize string.
19221 * po/POTFILES: Add `normal/menu_text.c'.
19222 * po/ca.po: Add new translations.
19223 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19224 gettext module and defines locale_dir and lang in grub.cfg.
19225 * NEWS: Add gettext support.
19226
19227 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19228
19229 * util/hostdisk.c: Include `<grub/i18n.h>'.
19230 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19231 (make_device_name): Rewrite using asprintf.
19232 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19233 (find_system_device): If a device is not found, generate one just
19234 by reusing the OS path name.
19235 (read_device_map): Make it permissible for device.map not to exist.
19236
19237 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19238
19239 * script/sh/execute.c: Move from here ...
19240 * script/execute.c: ... to here. Update all users.
19241 * script/sh/function.c: Move from here ...
19242 * script/function.c: ... to here. Update all users.
19243 * script/sh/lexer.c: Move from here ...
19244 * script/lexer.c: ... to here. Update all users.
19245 * script/sh/main.c: Move from here ...
19246 * script/main.c: ... to here. Update all users.
19247 * script/sh/parser.y: Move from here ...
19248 * script/parser.y: ... to here. Update all users.
19249 * script/sh/script.c: Move from here ...
19250 * script/script.c: ... to here. Update all users.
19251
19252 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19253
19254 * configure.ac: Detect all `emu' platforms. Define
19255 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19256 --enable-grub-emu logic. Disable include/grub/machine
19257 symlink on `emu' platforms.
19258
19259 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19260 * gensymlist.sh.in: Likewise.
19261
19262 * include/grub/i386/coreboot/machine.h: Remove file.
19263 * include/grub/i386/efi/machine.h: Likewise.
19264 * include/grub/i386/ieee1275/machine.h: Likewise.
19265 * include/grub/i386/pc/machine.h: Likewise.
19266 * include/grub/i386/qemu/machine.h: Likewise.
19267 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19268 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19269 * include/grub/x86_64/efi/machine.h: Likewise.
19270
19271 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19272 * commands/halt.c: Likewise.
19273 * commands/reboot.c: Likewise.
19274 * include/grub/autoefi.h: Likewise.
19275 * include/grub/i386/at_keyboard.h: Likewise.
19276 * include/grub/i386/kernel.h: Likewise.
19277 * include/grub/i386/loader.h: Likewise.
19278 * include/grub/i386/pc/memory.h: Likewise.
19279 * kern/dl.c: Likewise.
19280 * kern/i386/coreboot/init.c: Likewise.
19281 * loader/i386/bsd.c: Likewise.
19282 * loader/i386/linux.c: Likewise.
19283 * loader/multiboot_loader.c: Likewise.
19284 * term/i386/pc/serial.c: Likewise.
19285 * term/usb_keyboard.c: Likewise.
19286
19287 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19288 `<grub/machine/machine.h>'
19289 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19290 * util/misc.c: Remove `<grub/machine/machine.h>' and
19291 `<grub/machine/time.h>'.
19292
19293 * Makefile.in (enable_grub_emu): Remove variable.
19294 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19295
19296 * conf/any-emu.rmk: New file.
19297 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19298 (grub_emu_init.c): Move from here ...
19299 * conf/any-emu.rmk: ... to here.
19300
19301 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19302 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19303 * conf/any-emu.rmk: ... to here.
19304
19305 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19306
19307 * include/grub/parser.h (grub_parser_register): Document need
19308 of `name' parameter.
19309 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19310 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19311 "sh" to "grub".
19312
19313 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19314
19315 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19316 `$(XGETTEXT)'.
19317 * include/grub/i18n.h (N_): New macro.
19318 * util/mkisofs/mkisofs.h: Likewise.
19319 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19320 around N_().
19321 (usage): Use gettext() to translate help strings when printing them.
19322
19323 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19324
19325 Based on patch from Bean
19326 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19327
19328 * video/efi_fb.c: New file.
19329 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
19330 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19331 variables.
19332 * conf/x86_64-efi.rmk: Likewise.
19333
19334 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
19335
19336 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
19337 * util/i386/pc/grub-setup.c: Likewise.
19338
19339 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19340
19341 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
19342 <hurd/fs.h>
19343 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
19344 file_get_storage_info to implement grub_guess_root_device.
19345
19346 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19347
19348 * Makefile.in (target): Use make's builtin $(shell) function
19349 instead of calling directly $(SHELL) to create the locale directories,
19350 inside the $(foreach) function.
19351
19352 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19353
19354 * util/grub-mkrescue.in: Print an error and usage if output option
19355 has not been given.
19356
19357 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
19358
19359 Patch from Loïc Minier <loic.minier@ubuntu.com>.
19360 * util/grub.d/30_os-prober.in: Cope with Linux entries where
19361 root and /boot are on different devices.
19362
19363 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19364
19365 Fix build for srcdir != objdir.
19366
19367 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
19368 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
19369 $(srcdir).
19370 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
19371 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
19372 reference for input.
19373
19374 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19375
19376 * util/grub-mkrescue.in: Use source directory direcly (without copiing
19377 or hardlinking it). Remove -J option, Joliet is not compatible with
19378 multiple source directories.
19379
19380 2009-11-21 Carles Pina i Estany <carles@pina.cat>
19381 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
19382
19383 * util/grub-mkrescue.in: Recognize `--override-directory' option.
19384 (process_input_dir): New function. Process an arbitrary input
19385 directory.
19386 Misc adjustments to support both "override mode" and system-wide mode.
19387
19388 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19389
19390 * configure.ac (UNIFONT_BDF): Rename to ...
19391 (FONT_SOURCE): ... this. Update all users.
19392
19393 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
19394
19395 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
19396 to the list of unifont files to look for.
19397
19398 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19399
19400 Patch from Joe Auricchio <jauricchio@gmail.com>
19401 * commands/minicmd.c (grub_mini_cmd_clear): New function.
19402 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
19403 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
19404
19405 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19406
19407 * Makefile.in (install-local): Add a missing backslash.
19408
19409 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
19410
19411 * include/grub/x86_64/io.h: New file.
19412
19413 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19414
19415 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
19416 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
19417 Include `"progname.h"'.
19418 (main): Initialize gettext.
19419 * util/i386/pc/grub-setup.c: Gettexttize.
19420 * util/i386/pc/grub-mkimage.c: Likewise.
19421
19422 * Makefile.in (po/*.po): Redefine as ...
19423 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
19424
19425 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
19426
19427 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
19428
19429 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
19430 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
19431 (program_name): Remove.
19432 (main): Initialize gettext support.
19433 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
19434 Include `<libintl.h>'.
19435 (_): New macro.
19436
19437 * util/mkisofs/eltorito.c: Gettexttize.
19438 * util/mkisofs/joliet.c: Likewise.
19439 * util/mkisofs/mkisofs.c: Likewise.
19440 * util/mkisofs/multi.c: Likewise.
19441 * util/mkisofs/rock.c: Likewise.
19442 * util/mkisofs/tree.c: Likewise.
19443 * util/mkisofs/write.c: Likewise.
19444
19445 * po/POTFILES: Update with new files.
19446
19447 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19448
19449 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
19450 * util/mkisofs/iso9660.h: Likewise.
19451 * util/mkisofs/joliet.c: Likewise.
19452 * util/mkisofs/mkisofs.c: Likewise.
19453 * util/mkisofs/mkisofs.h: Likewise.
19454 * util/mkisofs/rock.c: Likewise.
19455 * util/mkisofs/tree.c: Likewise.
19456 * util/mkisofs/write.c: Likewise.
19457
19458 * util/mkisofs/eltorito.c (rcsid): Remove.
19459 * util/mkisofs/hash.c: Likewise.
19460 * util/mkisofs/joliet.c: Likewise.
19461 * util/mkisofs/name.c: Likewise.
19462 * util/mkisofs/rock.c: Likewise.
19463 * util/mkisofs/tree.c: Likewise.
19464 * util/mkisofs/write.c: Likewise.
19465
19466 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19467
19468 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
19469 instead of static allocation.
19470 * util/mkisofs/match.h: Likewise.
19471
19472 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19473
19474 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
19475 and `util/grub.d/10_linux.in'.
19476 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
19477 translatable Shell files.
19478
19479 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
19480
19481 * Makefile.in ($(srcdir)/aclocal.m4): New target.
19482
19483 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19484
19485 * INSTALL: Document Automake is needed for bootstrap.
19486 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
19487 * util/grub.d/10_kfreebsd.in (bindir): New variable.
19488 Add gettext initialization.
19489 (kfreebsd_entry): Make menuentry output translatable.
19490
19491 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19492
19493 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
19494 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
19495 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
19496 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
19497 (LINGUAS): Auto-generate using `po/LINGUAS'.
19498 * po/LINGUAS: New file.
19499
19500 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19501
19502 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
19503 other things).
19504 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
19505 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
19506 bindtextdomain() calls for gettext initialization.
19507
19508 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19509
19510 * gnulib/progname.c: New file (imported from Gnulib).
19511 * gnulib/progname.h: Likewise.
19512 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19513 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
19514 (usage): Replace `progname' with `program_name'.
19515 (main): Use set_program_name() for program name initialization.
19516
19517 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19518
19519 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
19520 from here ...
19521 * Makefile.in (CPPFLAGS): ... to here.
19522
19523 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19524
19525 * aclocal.m4: Move from here ...
19526 * acinclude.m4: ... to here.
19527 * autogen.sh: Add call to `aclocal'.
19528 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
19529
19530 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19531
19532 * Makefile.in (CLEANFILES): Add `po/*.mo'.
19533 (LINGUAS): New variable.
19534 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
19535 (install-local): Install MO files.
19536 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
19537 * include/grub/i18n.h: New file.
19538 * po/POTFILES: New file.
19539 * po/ca.po: New file.
19540 * util/grub.d/10_linux.in (bindir): New variable.
19541 Add gettext initialization.
19542 (linux_entry): Make menuentry output translatable.
19543 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
19544 (usage): Make --help output translatable.
19545 (main): Initialize gettext.
19546
19547 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19548
19549 * import_gcry.py: New file (written by Vladimir with minor
19550 adjustments).
19551 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
19552 ciphers.
19553 * INSTALL: Document that Python is required for bootstrap.
19554
19555 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
19556
19557 Import ciphers from libgcrypt 1.4.4.
19558
19559 * lib/libgcrypt/cipher/ChangeLog
19560 * lib/libgcrypt/cipher/ac.c
19561 * lib/libgcrypt/cipher/arcfour.c
19562 * lib/libgcrypt/cipher/bithelp.h
19563 * lib/libgcrypt/cipher/blowfish.c
19564 * lib/libgcrypt/cipher/camellia-glue.c
19565 * lib/libgcrypt/cipher/camellia.c
19566 * lib/libgcrypt/cipher/camellia.h
19567 * lib/libgcrypt/cipher/cast5.c
19568 * lib/libgcrypt/cipher/cipher.c
19569 * lib/libgcrypt/cipher/crc.c
19570 * lib/libgcrypt/cipher/des.c
19571 * lib/libgcrypt/cipher/dsa.c
19572 * lib/libgcrypt/cipher/ecc.c
19573 * lib/libgcrypt/cipher/elgamal.c
19574 * lib/libgcrypt/cipher/hash-common.c
19575 * lib/libgcrypt/cipher/hash-common.h
19576 * lib/libgcrypt/cipher/hmac-tests.c
19577 * lib/libgcrypt/cipher/md.c
19578 * lib/libgcrypt/cipher/md4.c
19579 * lib/libgcrypt/cipher/md5.c
19580 * lib/libgcrypt/cipher/primegen.c
19581 * lib/libgcrypt/cipher/pubkey.c
19582 * lib/libgcrypt/cipher/rfc2268.c
19583 * lib/libgcrypt/cipher/rijndael-tables.h
19584 * lib/libgcrypt/cipher/rijndael.c
19585 * lib/libgcrypt/cipher/rmd.h
19586 * lib/libgcrypt/cipher/rmd160.c
19587 * lib/libgcrypt/cipher/rsa.c
19588 * lib/libgcrypt/cipher/seed.c
19589 * lib/libgcrypt/cipher/serpent.c
19590 * lib/libgcrypt/cipher/sha1.c
19591 * lib/libgcrypt/cipher/sha256.c
19592 * lib/libgcrypt/cipher/sha512.c
19593 * lib/libgcrypt/cipher/tiger.c
19594 * lib/libgcrypt/cipher/twofish.c
19595 * lib/libgcrypt/cipher/whirlpool.c
19596
19597 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19598
19599 Fix build for systems without error().
19600
19601 * gnulib/error.c: New file (imported from Gnulib).
19602 * gnulib/error.h: Likewise.
19603 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
19604 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
19605 (this variable is now used by error()).
19606
19607 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19608
19609 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
19610 instead of relying that char is signed.
19611
19612 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19613
19614 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
19615 blocksize different from specified.
19616 (grub_pxefs_read): Likewise.
19617
19618 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
19619
19620 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
19621
19622 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
19623 (grub_ata_readwrite): Likewise. Update 2 format strings.
19624 (grub_atapi_read): Likewise.
19625
19626 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
19627 * conf/i386.rmk (pkglib_MODULES): ... to here ...
19628 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
19629 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
19630 (ata_mod_LDFLAGS): Move from here ...
19631 * conf/i386.rmk: ... to here ...
19632 * conf/x86_64-efi.rmk: ... and here.
19633 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
19634 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
19635
19636 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
19637
19638 Relicense multiboot.h, with RMS' blessing.
19639
19640 * include/multiboot.h: Change to X11 license.
19641
19642 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
19643
19644 Support --version in grub-mkisofs.
19645
19646 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
19647 (OPTION_VERSION): New macro.
19648 (ld_options): Recognize --version.
19649 (usage): Move `program_name' from here ...
19650 (program_name): ... to here. Add `static' qualifier.
19651 (main): Recognize `OPTION_VERSION'.
19652
19653 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
19654
19655 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
19656 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
19657
19658 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19659
19660 Fix help2man generation for mkisofs.
19661
19662 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
19663 (usage): Send output to stdout (rather than stderr).
19664
19665 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
19666
19667 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
19668 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19669 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
19670 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19671 (bin_SCRIPTS): Add `grub-mkfloppy'.
19672 (grub_mkfloppy_SOURCES): New variable.
19673
19674 * util/grub-mkrescue.in: New file.
19675 * util/i386/pc/grub-mkfloppy.in: New file.
19676
19677 * util/i386/coreboot/grub-mkrescue.in: Remove.
19678 * util/i386/pc/grub-mkrescue.in: Remove.
19679
19680 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19681
19682 * include/grub/multiboot.h (struct grub_multiboot_header): Move
19683 from here ...
19684 * include/multiboot.h (struct multiboot_header): ... to here. Update
19685 all users.
19686 * include/grub/multiboot.h (struct grub_multiboot_info): Move
19687 from here ...
19688 * include/multiboot.h (struct multiboot_info): ... to here. Update
19689 all users.
19690 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
19691 from here ...
19692 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
19693 Update all users.
19694 * include/grub/multiboot.h (struct grub_mod_list): Move
19695 from here ...
19696 * include/multiboot.h (struct multiboot_mod_list): ... to here.
19697 Update all users.
19698
19699 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19700
19701 * include/multiboot2.h (multiboot_word): Rename from this ...
19702 (multiboot2_word): ... to this. Update all users.
19703 (multiboot_header): Rename from this ...
19704 (multiboot2_header): ... to this. Update all users.
19705 (multiboot_tag_header): Rename from this ...
19706 (multiboot2_tag_header): ... to this. Update all users.
19707 (multiboot_tag_start): Rename from this ...
19708 (multiboot2_tag_start): ... to this. Update all users.
19709 (multiboot_tag_name): Rename from this ...
19710 (multiboot2_tag_name): ... to this. Update all users.
19711 (multiboot_tag_module): Rename from this ...
19712 (multiboot2_tag_module): ... to this. Update all users.
19713 (multiboot_tag_memory): Rename from this ...
19714 (multiboot2_tag_memory): ... to this. Update all users.
19715 (multiboot_tag_unused): Rename from this ...
19716 (multiboot2_tag_unused): ... to this. Update all users.
19717 (multiboot_tag_end): Rename from this ...
19718 (multiboot2_tag_end): ... to this. Update all users.
19719
19720 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
19721
19722 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
19723 this platform we should support Multiboot1 first.
19724
19725 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19726 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
19727 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
19728
19729 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19730
19731 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
19732 of write calls (converting them to fwrite() if they aren't already).
19733 (get_torito_desc): Likewise.
19734 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
19735
19736 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
19737
19738 * util/i386/pc/grub-install.in: Move from here ...
19739 * util/grub-install.in: ... to here. Update all users.
19740
19741 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
19742
19743 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
19744
19745 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19746
19747 Support for El Torito without floppy emulation.
19748
19749 * util/mkisofs/eltorito.c: Include `<errno.h>'.
19750 (init_boot_catalog): Improve error handling.
19751 (get_torito_desc): Don't use floppy emulation unless requested by
19752 user. Patch boot information table when requested via
19753 `-boot-info-table'.
19754 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
19755 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
19756 (use_boot_info_table): New variables.
19757 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
19758 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
19759 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
19760 `--eltorito-emul-floppy'.
19761 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
19762 and `OPTION_ELTORITO_EMUL_FLOPPY'.
19763 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
19764 (use_boot_info_table, get_731): New prototypes.
19765 * util/mkisofs/write.c (get_731): New function.
19766
19767 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
19768
19769 Fix the generation of the man page.
19770
19771 * util/pc/i386/grub-install.in: Source
19772 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19773
19774 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
19775
19776 Large file support for grub-mkisofs.
19777
19778 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
19779 * util/mkisofs/mkisofs.c (next_extent, last_extent)
19780 (session_start): Upgrade type to `uint64_t'. Update all users.
19781 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
19782 (struct directory_entry): Upgrade type of `starting_block' and
19783 `size' to `uint64_t'. Update all users.
19784 (struct deferred): Remove unused structure.
19785 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
19786 Update all users.
19787 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
19788 file is larger than `UINT32_MAX'.
19789 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
19790 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
19791 return value.
19792 (struct deferred_write): Upgrade type of `extent' and `size' to
19793 `uint64_t'. Update all users.
19794 (last_extent_written): Upgrade type to `uint64_t'. Update all
19795 users.
19796 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
19797 Update all users. Upgrade type of `remain' to `int64_t' and
19798 `use' to `size_t'. Use error() to handle fread() errors.
19799 (write_files): Rely on write_one_file() rather than calling
19800 xfwrite() directly.
19801
19802 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
19803
19804 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
19805
19806 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19807
19808 * util/mkisofs/fnmatch.c: Remove.
19809 * util/mkisofs/getopt1.c: Likewise.
19810 * util/mkisofs/getopt.c: Likewise.
19811 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
19812 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
19813 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
19814 `gnulib/getopt1.c' and `gnulib/getopt.c'.
19815 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
19816
19817 * configure.ac: Detect `mingw32msvc' host_os.
19818 Check for lstat(), getuid() and getgid().
19819
19820 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
19821 instances of `u_char' with `uint8_t'.
19822
19823 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
19824 [!HAVE_GETUID] (getuid): New function (stub).
19825 [!HAVE_GETGID] (getgid): Likewise.
19826 [!HAVE_LSTAT] (lstat): Likewise.
19827 [!S_IROTH] (S_IROTH): New macro (dummy).
19828 [!S_IRGRP] (S_IRGRP): Likewise.
19829
19830 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19831
19832 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
19833 conditional expression).
19834
19835 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19836
19837 Import from Gnulib.
19838
19839 * gnulib/fnmatch.c: New file.
19840 * gnulib/fnmatch.h: Likewise.
19841 * gnulib/fnmatch_loop.c: Likewise.
19842 * gnulib/getopt.c: Likewise.
19843 * gnulib/getopt.h: Likewise.
19844 * gnulib/getopt1.c: Likewise.
19845 * gnulib/getopt_int.h: Likewise.
19846 * gnulib/gettext.h: Likewise.
19847
19848 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19849
19850 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
19851 * normal/handler.c (read_handler_list): Likewise.
19852
19853 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19854
19855 Misc cleanup.
19856
19857 * kern/command.c (grub_register_command_prio): Use
19858 grub_zalloc() instead of explicitly zeroing data.
19859 * kern/list.c: Include `<grub/mm.h>'.
19860 (grub_named_list_find): Replace `0' with `NULL'.
19861 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
19862 (fs_module_list): Change type to `grub_named_list_t'. Update all
19863 users.
19864 * normal/dyncmd.c (read_command_list): Add space between function
19865 call and parenthesis.
19866 * normal/handler.c (read_handler_list): Likewise.
19867
19868 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19869
19870 * normal/auth.c (punishment_delay): Moved from here ...
19871 (grub_auth_strcmp): ... to here (inside function).
19872
19873 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19874
19875 * include/grub/list.h (struct grub_named_list): Remove `const'
19876 qualifier from `name'.
19877 (struct grub_prio_list): Likewise.
19878
19879 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19880
19881 * normal/auth.c: Include `<grub/time.h>'.
19882 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
19883
19884 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19885
19886 * normal/auth.c (punishment_delay): New variable.
19887 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
19888 (grub_auth_check_authentication): Punish failed login attempts with
19889 an incremental (2^N) delay.
19890
19891 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19892
19893 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
19894 path with $(srcdir).
19895
19896 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19897
19898 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
19899
19900 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
19901
19902 * util/i386/coreboot/grub-mkrescue.in: New file.
19903 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
19904 variables.
19905
19906 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
19907 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
19908 * configure.ac: Add header and function checks to satisfy grub-mkisofs
19909 requirements.
19910 * util/mkisofs/defaults.h: New file.
19911 * util/mkisofs/eltorito.c: Likewise.
19912 * util/mkisofs/exclude.h: Likewise.
19913 * util/mkisofs/fnmatch.c: Likewise.
19914 * util/mkisofs/getopt.c: Likewise.
19915 * util/mkisofs/getopt1.c: Likewise.
19916 * util/mkisofs/hash.c: Likewise.
19917 * util/mkisofs/include/fctldefs.h: Likewise.
19918 * util/mkisofs/include/mconfig.h: Likewise.
19919 * util/mkisofs/include/prototyp.h: Likewise.
19920 * util/mkisofs/include/statdefs.h: Likewise.
19921 * util/mkisofs/iso9660.h: Likewise.
19922 * util/mkisofs/joliet.c: Likewise.
19923 * util/mkisofs/match.c: Likewise.
19924 * util/mkisofs/match.h: Likewise.
19925 * util/mkisofs/mkisofs.c: Likewise.
19926 * util/mkisofs/mkisofs.h: Likewise.
19927 * util/mkisofs/multi.c: Likewise.
19928 * util/mkisofs/name.c: Likewise.
19929 * util/mkisofs/rock.c: Likewise.
19930 * util/mkisofs/tree.c: Likewise.
19931 * util/mkisofs/write.c: Likewise.
19932
19933 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
19934
19935 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
19936 being insecure.
19937
19938 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19939
19940 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
19941 `grub-mkimage' (and use $0 when possible).
19942
19943 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19944
19945 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
19946 error message for excessively large memory map.
19947
19948 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19949
19950 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
19951 executable bit.
19952
19953 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
19954
19955 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
19956 message for coreboot users.
19957
19958 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
19959
19960 Fix build with GNU gold.
19961
19962 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
19963 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
19964 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
19965 link addresses.
19966 * aclocal.m4: Likewise.
19967
19968 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
19969
19970 * configure.ac (AC_PREREQ): Bump to 2.59d.
19971 * INSTALL: Make it more clear when Autoconf and Ruby are
19972 needed and when to run `./autogen.sh'.
19973
19974 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19975
19976 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
19977 OSes.
19978
19979 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19980
19981 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
19982
19983 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19984
19985 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
19986 giving it to GNU Mach.
19987
19988 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19989
19990 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
19991 GNU partition number to get internal GRUB partition number.
19992
19993 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19994
19995 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
19996 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
19997
19998 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
19999
20000 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20001 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20002 case.
20003
20004 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20005
20006 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20007
20008 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20009
20010 Fix build problem.
20011
20012 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20013 `-isystem=$(srcdir)/include'.
20014
20015 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20016
20017 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20018 checked (grub-install doesn't currently rely on it).
20019
20020 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20021
20022 Revert SVN r2660.
20023
20024 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20025 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20026 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20027 * conf/i386-ieee1275.rmk: Likewise.
20028 * conf/i386-pc.rmk: Likewise.
20029 * conf/powerpc-ieee1275.rmk: Likewise.
20030 * conf/sparc64-ieee1275.rmk: Likewise.
20031 * conf/x86_64-efi.rmk: Likewise.
20032
20033 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20034
20035 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20036
20037 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20038
20039 * include/grub/misc.h: Stop checking for APPLE_CC.
20040
20041 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20042
20043 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20044 doesn't cause an infinite call loop.
20045
20046 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20047
20048 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20049 strings.
20050
20051 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20052
20053 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20054 variable.
20055 * Makefile.in: Likewise.
20056
20057 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20058
20059 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20060
20061 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20062
20063 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20064
20065 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20066
20067 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20068
20069 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20070
20071 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20072 from here ...
20073 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20074
20075 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20076
20077 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20078 in $(MAKEINFO) invocation. This makes it clear in output that
20079 errors are being ignored.
20080
20081 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20082
20083 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20084 from here ...
20085 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20086 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20087 * conf/i386-ieee1275.rmk: Likewise.
20088 * conf/i386-pc.rmk: Likewise.
20089 * conf/powerpc-ieee1275.rmk: Likewise.
20090 * conf/sparc64-ieee1275.rmk: Likewise.
20091 * conf/x86_64-efi.rmk: Likewise.
20092
20093 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20094
20095 * util/grub-editenv.c (main): If only a command is given, use
20096 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20097 (usage): FILENAME is now optional and has a default.
20098
20099 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20100
20101 Improve grub-mkconfig performance when there are several menu
20102 entries on a single filesystem.
20103
20104 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20105 prepare_grub_to_access_device.
20106 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20107 * util/grub.d/30_os-prober.in: Likewise.
20108
20109 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20110
20111 * util/grub.d/10_freebsd.in: Remove.
20112 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20113 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20114
20115 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20116
20117 * docs/grub.cfg: Fix example usage of *BSD loaders.
20118
20119 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20120
20121 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20122 grub_util_error() call.
20123
20124 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20125
20126 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20127 `reserved_first_sector' member.
20128 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20129 `reserved_first_sector' to 1.
20130 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20131 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20132 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20133 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20134 filesystems which begin at first sector.
20135 (options): New option --skip-fs-probe.
20136 (main): Handle --skip-fs-probe and pass it to setup().
20137
20138 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20139
20140 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20141 (memset): Fix function prototype.
20142
20143 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20144 2009-10-25 Vasily Averin <vvs@parallels.com>
20145
20146 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20147 `dirent.direntlen == 0'.
20148
20149 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20150
20151 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20152 `cpio'.
20153 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20154
20155 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20156
20157 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20158 `__trampoline_setup' and `__ucmpdi2'.
20159 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20160 that libgcc provides.
20161
20162 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20163
20164 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20165 * include/grub/sparc64/libgcc.h (memset): Likewise.
20166 * include/grub/misc.h (memset, memcmp): New function prototypes.
20167
20168 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20169
20170 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20171 `cpio'.
20172 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20173
20174 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20175
20176 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20177 * docs/grub.cfg: Compensate for recent change in multiboot
20178 loader (since 2009-08-14 it won't pass filename to payload).
20179 * util/grub.d/10_hurd.in: Likewise.
20180
20181 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20182
20183 * config.guess: Update to latest version from config git
20184 repository.
20185 * config.sub: Likewise.
20186
20187 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20188
20189 Fix build on sparc64.
20190
20191 * configure.ac: Perform checks for libgcc symbols before
20192 adding `-nostdlib' to LDFLAGS.
20193
20194 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20195
20196 Let user specify OpenBSD root device.
20197
20198 * loader/i386/bsd.c (openbsd_root): New variable.
20199 (openbsd_opts): New option 'root'.
20200 (OPENBSD_ROOT_ARG): New macro.
20201 (grub_openbsd_boot): Use 'openbsd_root'.
20202 (grub_cmd_openbsd): Fill 'openbsd_root'.
20203
20204 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20205
20206 * NEWS: Misc adjustments.
20207
20208 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20209
20210 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20211
20212 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20213
20214 * configure.ac: Bump version to 1.97.
20215
20216 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20217
20218 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20219 -mno-3dnow on x86 architectures. Some toolchains enable these
20220 features by default, but they rely on registers that aren't enabled
20221 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20222
20223 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20224
20225 Make entry text a bit more readable.
20226
20227 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20228
20229 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20230
20231 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20232
20233 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20234
20235 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20236 operations.
20237
20238 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20239
20240 * configure.ac: Add missing dollar.
20241
20242 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20245
20246 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20247 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20248 exports.
20249 * include/grub/sparc64/libgcc.h: Likewise. Use
20250 preprocessor conditionals.
20251
20252 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20253
20254 * conf/common.rmk (grub-dumpbios): Remove rule.
20255 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20256 * util/grub-dumpbios.in: Remove file.
20257
20258 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20259
20260 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20261 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20262
20263 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20264 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20265 users.
20266
20267 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20268 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20269 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20270 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20271 users.
20272
20273 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20274
20275 * term/tparm.c: Switch to GPLv3.
20276
20277 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20278
20279 * include/grub/i386/cpuid.h: Add header protection.
20280
20281 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20282
20283 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20284
20285 * include/grub/i386/cpuid.h: New file.
20286 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20287 (has_longmode): Rename to ...
20288 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20289 `static' attribute.
20290 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20291 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20292 on a CPU that doesn't implement AMD64 instruction set.
20293
20294 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20295
20296 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20297 that version.texi is rebuilt on version number changes.
20298
20299 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20300
20301 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20302 Fixes bug #27602.
20303
20304 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20305
20306 * util/i386/pc/grub-install.in: Source
20307 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20308 that the --grub-probe option will work.
20309 * util/sparc64/ieee1275/grub-install.in: Likewise.
20310
20311 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20312
20313 * configure.ac: Bump version to 1.97~beta4.
20314
20315 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20316
20317 Resync grub-mkdevicemap in x86_64-efi.
20318
20319 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20320 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20321 `util/devicemap.c'.
20322
20323 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20324
20325 * util/grub-editenv.c (create_envblk_file): Write new block with a
20326 .new suffix and then rename it into place, to ensure atomic
20327 creation.
20328
20329 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
20330
20331 Do not automatically install headers.
20332
20333 * Makefile.in (include_DATA): Remove. Update all users.
20334
20335 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
20336
20337 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
20338 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
20339
20340 * util/osdetect.lua: Remove.
20341 * script/lua/lauxlib.c: Likewise.
20342 * script/lua/ldebug.c: Likewise.
20343 * script/lua/grub_main.c: Likewise.
20344 * script/lua/lauxlib.h: Likewise.
20345 * script/lua/ldebug.h: Likewise.
20346 * script/lua/ltablib.c: Likewise.
20347 * script/lua/liolib.c: Likewise.
20348 * script/lua/lstrlib.c: Likewise.
20349 * script/lua/lualib.h: Likewise.
20350 * script/lua/ldo.c: Likewise.
20351 * script/lua/ldump.c: Likewise.
20352 * script/lua/ldo.h: Likewise.
20353 * script/lua/loslib.c: Likewise.
20354 * script/lua/lundump.c: Likewise.
20355 * script/lua/grub_lib.c: Likewise.
20356 * script/lua/ldblib.c: Likewise.
20357 * script/lua/lundump.h: Likewise.
20358 * script/lua/lmem.c: Likewise.
20359 * script/lua/grub_lib.h: Likewise.
20360 * script/lua/lmathlib.c: Likewise.
20361 * script/lua/lstate.c: Likewise.
20362 * script/lua/ltm.c: Likewise.
20363 * script/lua/lvm.c: Likewise.
20364 * script/lua/lmem.h: Likewise.
20365 * script/lua/lstate.h: Likewise.
20366 * script/lua/ltm.h: Likewise.
20367 * script/lua/ltable.c: Likewise.
20368 * script/lua/lvm.h: Likewise.
20369 * script/lua/llex.c: Likewise.
20370 * script/lua/lgc.c: Likewise.
20371 * script/lua/grub_lua.h: Likewise.
20372 * script/lua/loadlib.c: Likewise.
20373 * script/lua/lfunc.c: Likewise.
20374 * script/lua/lopcodes.c: Likewise.
20375 * script/lua/lparser.c: Likewise.
20376 * script/lua/ltable.h: Likewise.
20377 * script/lua/llex.h: Likewise.
20378 * script/lua/lgc.h: Likewise.
20379 * script/lua/lfunc.h: Likewise.
20380 * script/lua/lbaselib.c: Likewise.
20381 * script/lua/lopcodes.h: Likewise.
20382 * script/lua/lparser.h: Likewise.
20383 * script/lua/lzio.c: Likewise.
20384 * script/lua/linit.c: Likewise.
20385 * script/lua/lobject.c: Likewise.
20386 * script/lua/llimits.h: Likewise.
20387 * script/lua/lstring.c: Likewise.
20388 * script/lua/lzio.h: Likewise.
20389 * script/lua/lapi.c: Likewise.
20390 * script/lua/lcode.c: Likewise.
20391 * script/lua/lua.h: Likewise.
20392 * script/lua/lobject.h: Likewise.
20393 * script/lua/lstring.h: Likewise.
20394 * script/lua/lapi.h: Likewise.
20395 * script/lua/lcode.h: Likewise.
20396 * script/lua/luaconf.h: Likewise.
20397
20398 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
20399
20400 * docs/grub.texi (Command-line and menu entry commands): Document
20401 date and echo commands.
20402
20403 2009-09-24 Pavel Roskin <proski@gnu.org>
20404
20405 * include/grub/kernel.h (struct grub_module_header): Remove
20406 `grub_module_header_types'. Make `type' unsigned. Make `size'
20407 32-bit on all platforms.
20408 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
20409 8-bit field. Use grub_host_to_target32() for `size'.
20410 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
20411 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
20412 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
20413
20414 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20415
20416 Fix "lost keypress" bug in at_keyboard.
20417
20418 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
20419 Checks for readyness of input buffer (without flushing it).
20420 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
20421 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
20422
20423 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20424
20425 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
20426 size check within GRUB_MACHINE_PCBIOS section.
20427
20428 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
20429
20430 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
20431 return value.
20432 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
20433 KEYBOARD_ISREADY check.
20434 (grub_at_keyboard_checkkey): Rename to ...
20435 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
20436 Remove gratuitous cast.
20437
20438 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
20439
20440 * configure.ac: Call AC_PROG_MKDIR_P.
20441 * Makefile.in (docs/stamp-vti): Create docs directory. Create
20442 version.texi in $(builddir) rather than $(srcdir).
20443 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
20444 to makeinfo's @include search path.
20445
20446 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20447
20448 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
20449
20450 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
20451
20452 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
20453 for `*.dpkg-new'.
20454
20455 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
20456
20457 Build info documentation. Some code borrowed from Automake.
20458
20459 * configure.ac: Check for makeinfo.
20460 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
20461 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
20462 docs/version.texi.
20463 (MOSTLYCLEANFILES): Add vti.tmp.
20464 (docs/version.texi, docs/stamp-vti): Update automatically.
20465 (docs/grub.info): Build info documentation. Use --force and ignore
20466 errors for now.
20467 (all-local): Add $(INFOS).
20468 (install-local): Install info files.
20469 (uninstall): Uninstall info files.
20470 * docs/version.texi: Remove from revision control. This file is
20471 automatically generated on build now.
20472 * gendistlist.sh: Add `*.info'.
20473
20474 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20475
20476 * kern/term.c: Fix indentation.
20477
20478 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
20479
20480 * util/hostdisk.c: Fix a comment.
20481
20482 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
20483
20484 Fix regression introduced in r2539.
20485
20486 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
20487 to 0xA1.
20488
20489 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
20490
20491 * util/grub.d/30_os-prober.in: Don't throw away stderr from
20492 os-prober. Under normal operation, it does not print anything to
20493 stderr; if it does, we need to debug it, and throwing away stderr
20494 makes that excessively difficult.
20495
20496 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
20497
20498 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
20499
20500 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20501
20502 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
20503 AC_LANG_PROGRAM from autoconf.
20504 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
20505 prototypes (fixes warning).
20506
20507 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
20508 `--disable-werror' was used.
20509
20510 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
20511
20512 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
20513 uninitialized `lastaddr'.
20514
20515 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20516
20517 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
20518
20519 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20520
20521 * commands/test.c (get_fileinfo): Return immediately if
20522 grub_fs_probe fails.
20523
20524 2009-09-14 José Martínez <xosemp@gmail.com>
20525
20526 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
20527
20528 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
20529
20530 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
20531 output.
20532
20533 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
20534
20535 * configure.ac: Remove --enable-grub-pe2elf. Only build
20536 grub-pe2elf when needed by the build system itself.
20537 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
20538
20539 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20540
20541 * configure.ac: Bump version to 1.97~beta3.
20542 * docs/version.texi: Likewise.
20543
20544 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20545
20546 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
20547 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
20548 from here ...
20549 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
20550 (grub_linux_setup_video): ... to here (with some adjustments).
20551
20552 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
20553
20554 Fix memory corruption issue (spotted by Colin Watson).
20555
20556 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
20557 causing returned size to be stored in an incorrect memory location.
20558 Fix use of uninitialized value when storing the returned size.
20559
20560 2009-09-12 Yves Blusseau <blusseau@zetam.org>
20561
20562 Change clean rules to properly remove files
20563
20564 * genmk.rb: add new clean rules
20565 * Makefile.in (clean): add the new targets
20566 (mostlyclean): likewise
20567
20568 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20569
20570 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
20571 to grub_uint64_t.
20572 * fs/ntfs.c (init_file): Understand 64-bit sizes for
20573 non-resident files.
20574
20575 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
20576
20577 * configure.ac: Don't look for help2man when cross-compiling. Fixes
20578 part of bug #27349.
20579
20580 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20581
20582 * util/grub-mkconfig.in: Make the created config mode 400 and
20583 print a warning if it fails.
20584
20585 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
20586
20587 * util/grub.d/40_custom.in: Ask user to type custom entries below
20588 comment, rather than below 'exec tail' line.
20589
20590 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20591
20592 * util/grub.d/40_custom.in: Make sure that the explanatory text is
20593 visible in grub.cfg.
20594
20595 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
20596
20597 * util/grub.d/40_custom.in: Make it a little clearer how to use this
20598 file.
20599
20600 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
20601
20602 * docs/grub.cfg: Add an example menu entry for memtest86+.
20603
20604 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
20605
20606 * config.guess: Update to latest version from config git.
20607 * config.sub: Likewise.
20608
20609 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
20610
20611 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
20612 unknown-command case. Fixes bug #27320.
20613
20614 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
20615
20616 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
20617 `help' if the command exists.
20618
20619 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
20620
20621 * INSTALL: Require GCC 4.1.3 or later.
20622
20623 2009-09-06 Yves Blusseau <blusseau@zetam.org>
20624
20625 * Makefile.in (RMKFILES): add i386-qemu.rmk
20626 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
20627 $(srcdir)/stamp-h.in
20628
20629 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
20630
20631 * util/grub-probe.c (probe): Comment out buggy codepath, which
20632 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
20633 should be re-enabled after 1.97.
20634
20635 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
20636
20637 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
20638 find searches for.
20639
20640 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20641
20642 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
20643 unnecessary calls to grub_error.
20644
20645 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
20646
20647 * NEWS: Mention `keystatus' and Unicode fonts.
20648
20649 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
20650
20651 * configure.ac: Bump version to 1.97~beta2.
20652 * docs/version.texi: Likewise.
20653
20654 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20655
20656 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
20657 containing unwind information in some cases where it previously did
20658 not. Use -fno-dwarf2-cfi-asm if available to restore the old
20659 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
20660 discussion.
20661
20662 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
20663
20664 Embedding loadenv module into grub-emu
20665
20666 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
20667 commands/loadenv.c
20668 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
20669 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
20670 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
20671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
20672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
20673 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
20674
20675 2009-09-03 Magnus Granberg <zorry@ume.nu>
20676
20677 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
20678 include -fPIE in the default specs.
20679 * configure.ac: Check if pie_possible is yes and add -fno-PIE
20680 to TARGET_CFLAGS.
20681
20682 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
20683
20684 * INSTALL: Note that GNU Bison 2.3 or later is required.
20685
20686 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
20687
20688 * kern/i386/pc/startup.S: Fix typo.
20689
20690 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20691
20692 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
20693 according to GCS.
20694
20695 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20696
20697 * docs/grub.texi (Naming convention): Describe one-based partition
20698 numbering.
20699 (Device syntax): Likewise.
20700 (File name syntax): Likewise.
20701 (Block list syntax): Likewise.
20702 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
20703 menu.lst.
20704 (File name syntax): Likewise.
20705 (Command-line and menu entry commands): Document acpi, blocklist,
20706 crc, export, insmod, keystatus, ls, set, and unset commands.
20707
20708 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
20711 to avoid implying that only one of --shift, --ctrl, or --alt may be
20712 used.
20713
20714 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
20715
20716 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
20717 rather than comparing against S_IFREG, which will almost never work.
20718
20719 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20720
20721 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
20722 (write_blocklists): Likewise.
20723
20724 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
20725
20726 * script/lua/grub_lua.h (fputs): Supply a format string as the first
20727 argument to grub_printf.
20728
20729 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
20730
20731 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
20732 non GNU test.
20733
20734 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20735
20736 * kern/file.c (grub_file_read): Spelling fix
20737
20738 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20739
20740 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
20741 loading of headers in some cases.
20742
20743 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
20744
20745 * configure.ac: Bump version to 1.97~beta1.
20746 * docs/version.texi: Likewise.
20747
20748 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20749
20750 * include/grub/i386/xnu.h: Add license header.
20751 include grub/err.h explicitly.
20752
20753 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20754
20755 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
20756 to `ufs' in the vfs.root.mountfrom kernel parameter.
20757
20758 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
20759
20760 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
20761
20762 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
20763 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
20764
20765 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
20766 `ARRAY_SIZE' macro.
20767
20768 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 * kern/file.c (grub_file_read): Check offset.
20771 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
20772 * fs/jfs.c (grub_jfs_read_file): Likewise.
20773 * fs/ntfs.c (grub_ntfs_read): Likewise.
20774 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
20775 * fs/minix.c (grub_minix_read_file): Correct offset check.
20776 * fs/ufs.c (grub_ufs_read_file): Likewise.
20777
20778 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20779
20780 * term/i386/pc/console.c (bios_data_area): Cast
20781 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
20782
20783 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20784
20785 1-bit optimised blitters.
20786
20787 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
20788 prototype.
20789 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20790 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20791 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20792 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20793 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20794 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20795 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
20796 function.
20797 (grub_video_fbblit_replace_24bit_1bit): Likewise.
20798 (grub_video_fbblit_replace_16bit_1bit): Likewise.
20799 (grub_video_fbblit_replace_8bit_1bit): Likewise.
20800 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
20801 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
20802 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
20803 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
20804 when possible.
20805 * video/video.c (grub_video_get_blit_format): Return
20806 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
20807
20808 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20809
20810 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
20811 the first argument to grub_printf.
20812
20813 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
20814 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
20815
20816 Add `getkeystatus' terminal method. Add a new `keystatus' command
20817 to query it.
20818
20819 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
20820 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
20821 modifier key bitmasks.
20822 (struct grub_term_input): Add `getkeystatus' member.
20823 (grub_getkeystatus): Add prototype.
20824 * kern/term.c (grub_getkeystatus): New function.
20825
20826 * include/grub/i386/pc/memory.h
20827 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
20828 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
20829 Data Area layout.
20830 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
20831 (grub_console_term_input): Set `getkeystatus' member.
20832 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
20833 constants.
20834 (grub_usb_keyboard_getreport): Likewise.
20835 (grub_usb_keyboard_checkkey): Likewise.
20836 (grub_usb_keyboard_getkeystatus): New function.
20837 (grub_usb_keyboard_term): Set `getkeystatus' member.
20838
20839 * commands/keystatus.c: New file.
20840 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
20841 (keystatus_mod_SOURCES): New variable.
20842 (keystatus_mod_CFLAGS): Likewise.
20843 (keystatus_mod_LDFLAGS): Likewise.
20844 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
20845 commands/keystatus.c.
20846 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20847 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20848 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20850 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20851 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20852
20853 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20854
20855 Split befs.mod and afs.mod into *_be.mod and *.mod
20856
20857 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
20858 (grub_fstest_SOURCES): Likewise.
20859 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
20860 (afs_be_mod_SOURCES): New variable.
20861 (afs_be_mod_CFLAGS): Likewise.
20862 (afs_be_mod_LDFLAGS): Likewise.
20863 (befs_be_mod_SOURCES): Likewise.
20864 (befs_be_mod_CFLAGS): Likewise.
20865 (befs_be_mod_LDFLAGS): Likewise.
20866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
20867 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20869 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20870 (grub_emu_SOURCES): Likewise.
20871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20873 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20874 * fs/afs_be.c: New file.
20875 * fs/befs_be.c: New file.
20876 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
20877 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
20878 (U16): Replaced with ...
20879 (grub_afs_to_cpu16): ...this. All users updated.
20880 (U32): Replaced with ...
20881 (grub_afs_to_cpu32): ...this. All users updated.
20882 (U64): Replaced with ...
20883 (grub_afs_to_cpu64): ...this. All users updated.
20884 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
20885 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
20886 (grub_afs_validate_sblock): Check only one endianness.
20887 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20888 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20889 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20890 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20891 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
20892 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
20893 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
20894 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
20895
20896 2009-08-26 Bean <bean123ch@gmail.com>
20897
20898 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
20899 64-bit number.
20900 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
20901 (grub_xfs_inode_block): Change return type to grub_uint64_t.
20902 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
20903
20904 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 NetBSD memory map support.
20907
20908 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
20909 (grub_netbsd_btinfo_mmap_header): New structure.
20910 (grub_netbsd_btinfo_mmap_entry): Likewise.
20911 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
20912
20913 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20914
20915 Enable bsd.mod on coreboot.
20916
20917 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
20918 (bsd_mod_SOURCES): New variable.
20919 (bsd_mod_CFLAGS): Likewise.
20920 (bsd_mod_LDFLAGS): Likewise.
20921 (bsd_mod_ASFLAGS): Likewise.
20922 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
20923 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
20924
20925 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20926
20927 Cleanup NetBSD root support.
20928
20929 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
20930 grub_bsd_get_device.
20931 Fix typo.
20932
20933 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
20934
20935 * util/grub.d/00_header.in: Move check for the video backend of
20936 gfxterm from here ...
20937 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
20938 a suitable video backend.
20939
20940 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20941
20942 Fix breakage in grub-setup.
20943
20944 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
20945 "msdos_partition_map".
20946
20947 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 Fix breakage in normal/auth.c.
20950
20951 * normal/auth.c (grub_iswordseparator): New function.
20952
20953 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20954
20955 Authentication support.
20956
20957 * commands/password.c: New file.
20958 * conf/common.rmk (pkglib_MODULES): Add password.mod.
20959 (password_mod_SOURCES): New variable.
20960 (password_mod_CFLAGS): Likewise.
20961 (password_mod_LDFLAGS): Likewise.
20962 (normal_mod_SOURCES): Add normal/auth.c.
20963 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
20964 normal/auth.c.
20965 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20966 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20967 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20968 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20969 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20970 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20971 * include/grub/auth.h: New file.
20972 * include/grub/err.h (grub_err_t): New enum value
20973 GRUB_ERR_ACCESS_DENIED.
20974 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
20975 'users'.
20976 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
20977 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
20978 users updated.
20979 * normal/auth.c: New file.
20980 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
20981 (grub_cmdline_run): Don't allow to go to command line without
20982 authentication.
20983 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
20984 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
20985 menuentry without superuser rights.
20986 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
20987 user isn't a superuser.
20988
20989 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
20990
20991 Save space by inlining misc.c functions.
20992
20993 * kern/misc.c (grub_iswordseparator): Made static.
20994 * kern/misc.c (grub_strcat): Moved from here ...
20995 * include/grub/misc.h (grub_strcat): ... here. Inlined.
20996 * kern/misc.c (grub_strncat): Moved from here ...
20997 * include/grub/misc.h (grub_strncat): ... here. Inlined.
20998 * kern/misc.c (grub_strcasecmp): Moved from here ...
20999 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21000 * kern/misc.c (grub_strncasecmp): Moved from here ...
21001 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21002 * kern/misc.c (grub_isalpha): Moved from here ...
21003 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21004 * kern/misc.c (grub_isdigit): Moved from here ...
21005 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21006 * kern/misc.c (grub_isgraph): Moved from here ...
21007 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21008 * kern/misc.c (grub_tolower): Moved from here ...
21009 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21010
21011 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21012
21013 * script/sh/function.c (grub_script_function_find): Cut error message
21014 not to flood terminal.
21015 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21016 limit.
21017 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21018
21019 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21020
21021 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21022 `report' grub_uint8_t *.
21023 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21024 Use a 50-millisecond timeout rather than just repeating
21025 grub_usb_keyboard_getreport 50 times.
21026 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21027
21028 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21029
21030 Rename *_partition_map to part_*
21031
21032 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21033 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21034 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21035 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21036 All users updated.
21037 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21038 All users updated.
21039 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21040 * util/grub-probe.c (probe_partmap): Don't transform partition name
21041 to get module name.
21042
21043 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21044
21045 Fix OpenBSD and NetBSD support.
21046
21047 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21048 memory address conflict.
21049 (OPENBSD_MMAP_ACPI): New definition.
21050 (OPENBSD_MMAP_NVS): Likewise.
21051 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21052 and OPENBSD_MMAP_NVS.
21053 Add memory map terminator
21054 Explicit cast when calling grub_unix_real_boot.
21055 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21056
21057 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21058
21059 Let user specify NetBSD root device.
21060
21061 * loader/i386/bsd.c (netbsd_root): New variable.
21062 (netbsd_opts): New option 'root'.
21063 (NETBSD_ROOT_ARG): New macro.
21064 (grub_netbsd_boot): Use 'netbsd_root'.
21065 (grub_bsd_unload): Free 'netbsd_root'.
21066 (grub_cmd_netbsd): Fill 'netbsd_root'.
21067
21068 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 Support for 64-bit NetBSD.
21071
21072 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21073 point when booting non-FreeBSD.
21074
21075 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 Support --no-smp and --no-acpi for NetBSD.
21078
21079 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21080 (NETBSD_AB_NOACPI): Likewise.
21081 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21082 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21083
21084 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21085
21086 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21087 errors.
21088 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21089 errors. Call grub_error when needed.
21090
21091 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * commands/search.c (search_fs): Try searching without autoload first.
21094 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21095 filesystem module explicitly for faster booting.
21096
21097 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21098
21099 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21100
21101 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21102
21103 * util/grub.d/30_os-prober.in: Disable os-prober if
21104 `GRUB_DISABLE_OS_PROBER' was set to true.
21105
21106 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21107
21108 * partmap/pc.c: Rename to ...
21109 * partmap/msdos.c: ... this. Update all users.
21110 (grub_pc_partition_map): Rename to ...
21111 (grub_msdos_partition_map): ... this. Update all users.
21112
21113 * parttool/pcpart.c: Rename to ...
21114 * parttool/msdospart.c: ... this. Update all users.
21115
21116 * include/grub/pc_partition.h: Rename to ...
21117 * include/grub/msdos_partition.h: ... this. Update all users.
21118 (grub_pc_partition_bsd_entry): Rename to ...
21119 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21120 (grub_pc_partition_disk_label): Rename to ...
21121 (grub_msdos_partition_disk_label): ... this. Update all users.
21122 (grub_pc_partition_entry): Rename to ...
21123 (grub_msdos_partition_entry): ... this. Update all users.
21124 (grub_pc_partition_mbr): Rename to ...
21125 (grub_msdos_partition_mbr): ... this. Update all users.
21126 (grub_pc_partition): Rename to ...
21127 (grub_msdos_partition): ... this. Update all users.
21128 (grub_pc_partition_is_empty): Rename to ...
21129 (grub_msdos_partition_is_empty): ... this. Update all users.
21130 (grub_pc_partition_is_extended): Rename to ...
21131 (grub_msdos_partition_is_extended): ... this. Update all users.
21132 (grub_pc_partition_is_bsd): Rename to ...
21133 (grub_msdos_partition_is_bsd): ... this. Update all users.
21134
21135 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21136 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21137 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21138 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21139 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21140 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21141 (gpt_mod_LDFLAGS): Rename to ...
21142 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21143 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21144 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21145 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21146 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21147 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21148 (part_gpt_mod_LDFLAGS): ... this.
21149 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21150 `pcpart.mod' to `msdospart.mod'.
21151 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21152 to ...
21153 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21154 (msdospart_mod_LDFLAGS): ... this.
21155
21156 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21159 (openbsd_opts): Likewise.
21160 (netbsd_opts): Likewise.
21161 (freebsd_flags): Added 0 terminator.
21162 (openbsd_flags): Likewise.
21163 (netbsd_flags): Likewise.
21164 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21165 (grub_cmd_freebsd): Transformed into extended command.
21166 (grub_cmd_openbsd): Likewise.
21167 (grub_cmd_netbsd): Likewise.
21168 (cmd_freebsd): Changed type to grub_extcmd_t.
21169 (cmd_openbsd): Likewise.
21170 (cmd_netbsd): Likewise.
21171 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21172 grub_cmd_openbsd as extended commands.
21173 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21174 cmd_netbsd and cmd_openbsd
21175
21176 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21177
21178 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21179
21180 2009-08-21 Pavel Roskin <proski@gnu.org>
21181
21182 * Makefile.in (install-local): When checking if a file is in the
21183 build directory, use "test -e" to detect symlinks.
21184
21185 * Makefile.in (install-local): Remove all files in
21186 $(DESTDIR)$(pkglibdir) before installing new files there.
21187
21188 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21189
21190 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21191 grub-mkelfimage.
21192
21193 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21194
21195 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21196 explicitly specified by the user.
21197
21198 2009-08-18 Pavel Roskin <proski@gnu.org>
21199
21200 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21201 grub_uint8_t pointer for data.
21202 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21203 Likewise.
21204 * video/fb/fbutil.c: Remove unnecessary casts.
21205
21206 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21207
21208 VBE cleanup.
21209
21210 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21211 (grub_vbe_set_video_mode): Save active mode info
21212 only after setting the mode.
21213 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21214 second argument.
21215
21216 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21217
21218 Rename variables for clarity.
21219
21220 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21221 (active_vbe_mode_info): ... this. All users updated.
21222 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21223 All users updated.
21224 (initial_mode): Rename to ...
21225 (initial_vbe_mode): ... this. All users updated.
21226 (mode_in_use): Rename to ..
21227 (vbe_mode_in_use): ... this. All users updated.
21228 (mode_list): Rename to ..
21229 (vbe_mode_list): ... this. All users updated.
21230 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21231 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21232 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21233 'mode_list_size' to 'vbe_mode_list_size'.
21234 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21235 'best_mode_info' to 'best_vbe_mode_info' and
21236 'best_mode' to 'best_vbe_mode'
21237
21238 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21239
21240 Remove duplicate grub_video_fb_get_video_ptr.
21241
21242 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21243 (grub_video_fb_get_video_ptr): ... this.
21244 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21245 * video/fb/fbutil.c: Add comment about addressing.
21246 (get_data_ptr): Rename to ...
21247 (grub_video_fb_get_video_ptr): ... this. All users updated.
21248 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21249
21250 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21251
21252 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21253 grub_dprintf() that was just added.
21254
21255 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21256
21257 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21258 (DEFAULT_VIDEO_MODE): Remove macros.
21259 (grub_linux_boot): Remove assumption that Linux has FB support,
21260 and use "text" as default video mode.
21261
21262 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21263
21264 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21265 grub_dprintf.
21266 * fs/fat.c (grub_fat_read_data): Likewise.
21267
21268 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21269
21270 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21271 payload.
21272 (grub_module): Likewise.
21273
21274 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21275
21276 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21277 mbi->cmdline but free playground.
21278
21279 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21280
21281 Handle group offset on UFS1.
21282
21283 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21284 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21285
21286 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21287
21288 Split ufs.mod into ufs1.mod and ufs2.mod.
21289
21290 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21291 (grub_fstest_SOURCES): Likewise.
21292 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21293 (ufs_mod_SOURCES): Remove.
21294 (ufs_mod_CFLAGS): Likewise.
21295 (ufs_mod_LDFLAGS): Likewise.
21296 (ufs1_mod_SOURCES): New variable.
21297 (ufs1_mod_CFLAGS): Likewise.
21298 (ufs1_mod_LDFLAGS): Likewise.
21299 (ufs2_mod_SOURCES): New variable.
21300 (ufs2_mod_CFLAGS): Likewise.
21301 (ufs2_mod_LDFLAGS): Likewise.
21302 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21303 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21304 Likewise.
21305 (grub_emu_SOURCES): Likewise.
21306 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21307 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21308 (grub_setup_SOURCES): Likewise.
21309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21310 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21311 (grub_setup_SOURCES): Likewise.
21312 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21313 Likewise.
21314 * fs/ufs2.c: New file.
21315 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21316
21317 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 Framebuffer split.
21320
21321 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21322 subsystem at the end.
21323 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21324 (video_fb_mod_SOURCES): New variable.
21325 (video_fb_mod_CFLAGS): Likewise.
21326 (video_fb_mod_LDFLAGS): Likewise.
21327 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
21328 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
21329 * video/i386/pc/vbeblit.c: Moved from here ...
21330 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
21331 * video/i386/pc/vbefill.c: Moved from here ...
21332 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
21333 * video/i386/pc/vbeutil.c: Moved from here ...
21334 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
21335 * include/grub/i386/pc/vbeblit.h: Moved from here ...
21336 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
21337 * include/grub/i386/pc/vbefill.h: Moved from here ...
21338 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
21339 * include/grub/i386/pc/vbeutil.h: Moved from here ...
21340 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
21341 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
21342 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
21343 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
21344 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
21345 (grub_video_adapter): Added 'get_info_and_fini'.
21346 (grub_video_get_info_and_fini): New prototype.
21347 (grub_video_set_mode): make modestring const char *.
21348 * loader/i386/linux.c (grub_linux_setup_video): Use
21349 grub_video_get_info_and_fini.
21350 (grub_linux_boot): Move modesetting just before booting.
21351 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
21352 grub_video_get_info_and_fini.
21353 * video/i386/pc/vbe.c: Moved framebuffer part ...
21354 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
21355 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
21356 grub_video_fbstd_colors and grub_video_fb_set_palette.
21357 (grub_video_vbe_init): Clear 'framebuffer' variable and use
21358 grub_video_fb_init.
21359 (grub_video_vbe_fini): Use grub_video_fb_fini.
21360 (grub_video_vbe_setup): Use framebuffer.render_target instead of
21361 render_target and use grub_video_fb_set_active_render_target and
21362 grub_video_fb_set_palette.
21363 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
21364 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
21365 (grub_video_vbe_adapter): Use framebuffer.
21366 * video/video.c (grub_video_get_info_and_fini): New function.
21367 (grub_video_set_mode): Make modestring const char *.
21368 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
21369 values are already initialised.
21370
21371 2009-08-14 Pavel Roskin <proski@gnu.org>
21372
21373 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
21374 ABS and APPLE_CC.
21375 * boot/i386/pc/diskboot.S: Likewise.
21376 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
21377 sectors allow compilation on MacOSX.
21378 * conf/i386-pc.rmk: Enable unconditional compilation of
21379 lnxboot.img.
21380
21381 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
21382
21383 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
21384 * util/grub.d/00_header.in: Enter interruptible sleep if
21385 GRUB_HIDDEN_TIMEOUT is set.
21386
21387 2009-08-13 Yves Blusseau <blusseau@zetam.org>
21388
21389 * include/grub/symbol.h: Add the LOCAL macro.
21390 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
21391 starting with "L_".
21392
21393 2009-08-13 Pavel Roskin <proski@gnu.org>
21394
21395 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
21396 any modern compilers we support.
21397
21398 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
21399 Use local labels starting with "L_" so that Apple assembler
21400 knows they are local.
21401
21402 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
21403
21404 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
21405 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
21406 (bsd_kernel_types): ... this enum.
21407
21408 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
21409 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
21410 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
21411
21412 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
21413 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
21414 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
21415 messages.
21416
21417 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21418
21419 * util/grub-dumpdevtree: Moved from here ...
21420 * util/i386/efi/grub-dumpdevtree: ... to here.
21421 (hexify): New function. Converts a string to its hex version.
21422 Generate hex versions of "efi" and "device-properties" by calling
21423 hexify() on the ASCII strings rather than by hardcoding numbers.
21424
21425 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
21426
21427 * fs/jfs.c: Update copyright year.
21428
21429 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21430
21431 * util/grub.d/00_header.in: Fix a comment.
21432 * util/grub.d/10_linux.in: Likewise.
21433 * util/grub.d/10_windows.in: Likewise.
21434 * util/grub.d/10_hurd.in: Likewise.
21435
21436 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
21437
21438 * util/grub-mkconfig.in: Allow the user to specify the used font
21439 with GRUB_FONT.
21440
21441 2009-08-08 Pavel Roskin <proski@gnu.org>
21442
21443 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
21444 available, xfs.mod needs it now.
21445
21446 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
21447 the "g" modifier in sed when the intention is to strip something
21448 once. This fixes comparison of kernels with multiple dashes.
21449
21450 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
21451 on it. Add missing space before closing bracket. Fix
21452 misleading formatting.
21453
21454 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21455
21456 * docs/grub.texi: Major overhaul. Remove all sections that are
21457 specific to GRUB Legacy, or mostly composed of Legacy-specific
21458 information.
21459
21460 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21461
21462 * docs/version.texi: New file. Provides version information for
21463 grub.texi.
21464
21465 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21466
21467 * docs/grub.texi: Update CVS information to SVN.
21468 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
21469
21470 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21471
21472 * util/grub-mkconfig.in: Remove a wrong `fi'.
21473
21474 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21475
21476 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
21477 (grub_jfs_uuid): New function.
21478 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
21479
21480 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
21481
21482 * util/grub-mkconfig_lib.in (font_path): Move the functionality
21483 of it to ...
21484 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
21485 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
21486
21487 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21488
21489 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
21490 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
21491 Update all users.
21492
21493 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
21494 not just "vmlinu[zx]".
21495 Moved from here ...
21496 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
21497 all users.
21498
21499 * util/grub.d/10_linux.in (find_latest): Moved from here ...
21500 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
21501 all users.
21502
21503 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
21504
21505 * util/grub.d/10_freebsd.in: Use an absolute device path for
21506 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
21507
21508 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
21509
21510 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
21511 handling of multiple abstraction modules.
21512
21513 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
21514
21515 Fix a bug resulting in black screen when loading Linux using a
21516 packed video mode.
21517
21518 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
21519 function.
21520
21521 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
21522 (grub_vbe_bios_getset_dac_palette_width): New function.
21523 (grub_vbe_bios_get_dac_palette_width)
21524 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
21525 grub_vbe_bios_getset_dac_palette_width()).
21526
21527 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
21528 check for return status.
21529 (grub_vbe_get_video_mode_info): When getting information for a packed
21530 mode (<= 8 bpp), obtain DAC palette width using
21531 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
21532 {red,green,blue}_mark_size.
21533
21534 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
21535
21536 * commands/search.c (options): Fix help output to match actual code.
21537
21538 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
21541 of homegrown code.
21542
21543 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21544
21545 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
21546 on XFS or ReiserFS.
21547
21548 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 Support Apple partition map with sector size different from 512 bytes.
21551
21552 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
21553 (apple_partition_map_iterate): Respect 'aheader.blocksize'
21554 and 'apart.partmap_size'.
21555
21556 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21557 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
21558
21559 Fix cpuid command.
21560
21561 * commands/i386/cpuid.c (options): New variable.
21562 (grub_cmd_cpuid): Return real error.
21563 (GRUB_MOD_INIT(cpuid)): Declare options.
21564
21565 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
21568 valid.
21569
21570 2009-07-31 Bean <bean123ch@gmail.com>
21571
21572 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
21573 log2_inode.
21574 (grub_fshelp_node): Move inode field to the end.
21575 (grub_xfs_data): Remove inode field.
21576 (grub_xfs_inode_block): Calculate inode size using sblock.
21577 (grub_xfs_inode_offset): Likewise.
21578 (grub_xfs_read_inode): Calculate inode size using sblock.
21579 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
21580 (grub_xfs_iterate_dir): Calculate inode size using sblock.
21581 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
21582 to match inode size.
21583 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
21584 not accessible when data is null.
21585 (grub_xfs_open): Likewise.
21586
21587 2009-07-31 Bean <bean123ch@gmail.com>
21588
21589 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
21590 Don't change pv->disk if it's already set.
21591
21592 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
21593 (grub_raid_register): ... here.
21594 (grub_raid_rescan): Removed.
21595
21596 * include/grub/raid.h (grub_raid_rescan): Removed.
21597
21598 * util/grub-fstest.c: Remove include file <grub/raid.h>.
21599 (fstest): Replace grub_raid_rescan with module fini function followed
21600 by init function.
21601
21602 * util/grub-probe.c: Add include file <grub/raid.h>.
21603 (probe_raid_level): New function.
21604 (probe): Detect abstraction by walking the disk device, support two
21605 level of abstraction (LVM on RAID) when detecting partition map.
21606
21607 2009-07-31 Pavel Roskin <proski@gnu.org>
21608
21609 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
21610 to grub_zalloc(), it was erroneous.
21611 Reported by Bean <bean123ch@gmail.com>
21612
21613 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
21616 embedding zone, not only the first one.
21617
21618 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
21619
21620 * term/gfxterm.c (clear_char): New function.
21621 (grub_virtual_screen_setup): Use clear_char.
21622 (scroll_up): Likewise.
21623 (grub_virtual_screen_cls): Likewise.
21624
21625 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
21626
21627 * util/deviceiter.c (get_acceleraid_disk_name): New static
21628 function.
21629 (grub_util_iterate_devices): Handle Accelraid devices.
21630 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
21631
21632 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
21633
21634 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
21635 separator for the suggested gfxpayload string (';' collides with the
21636 parser and needs escaping).
21637
21638 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21639
21640 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
21641 Clear direction flag before jumping to OS.
21642 (grub_multiboot2_real_boot): Likewise.
21643
21644 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21645
21646 * util/i386/pc/grub-install: Fix parsing of --disk-module
21647 option.
21648
21649 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
21650
21651 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
21652 when embedding.
21653
21654 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
21655
21656 * util/grub-mkconfig.in (package_version): New variable.
21657 Use it do display the version.
21658
21659 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21660
21661 * kern/file.c (grub_file_open): Revert to previous check with
21662 grub_errno.
21663
21664 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21665
21666 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
21667 from help line. It's out of sync with code.
21668
21669 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
21670
21671 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
21672 entries on failed boot.
21673
21674 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
21675
21676 * kern/file.c (grub_file_open): Fix an error check.
21677
21678 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
21681 partition map couldn't be identified.
21682
21683 2009-07-23 Pavel Roskin <proski@gnu.org>
21684
21685 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
21686 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
21687 case of little endian words becomes just an optimization.
21688 Respect const modifier.
21689 (md5_final): Use code that doesn't depend on endianness.
21690
21691 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
21692 to avoid loss of upper bits if align is unsigned and shorter
21693 than addr.
21694
21695 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21696
21697 UUID support for UFS
21698
21699 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
21700 (grub_ufs_uuid): New function.
21701 (grub_ufs_fs): add .uuid
21702
21703 2009-07-21 Pavel Roskin <proski@gnu.org>
21704
21705 * kern/dl.c (grub_dl_check_header): Make static.
21706
21707 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
21708
21709 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
21710 add drivemap for Vista. It breaks Windows 7.
21711
21712 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
21715 128 bytes
21716
21717 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21718
21719 Add BFS support
21720
21721 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
21722 (grub_fstest_SOURCES): Likewise.
21723 (pkglib_MODULES): Add befs.mod.
21724 (befs_mod_SOURCES): New variable.
21725 (befs_mod_CFLAGS): Likewise.
21726 (befs_mod_LDFLAGS): Likewise.
21727 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21728 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21729 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21730 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21731 (grub_setup_SOURCES): Likewise.
21732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21733 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21734 (grub_setup_SOURCES): Likewise.
21735 * fs/befs.c: New file.
21736 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
21737 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
21738 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
21739 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
21740 (B_KEY_INDEX_ALIGN): New declaration.
21741 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
21742 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
21743 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
21744 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
21745 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
21746 (grub_afs_mount) [MODE_BFS]: Likewise.
21747 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
21748 (grub_afs_fs): Use GRUB_AFS_FSNAME
21749 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
21750 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
21751 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
21752 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
21753
21754 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
21755
21756 * util/getroot.c (find_root_device): Add support for MacOSX.
21757 * util/hostdisk.c: Likewise.
21758
21759 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21760
21761 * font/font.c (find_glyph): Check whether a font is present to avoid
21762 segmentation fault.
21763
21764 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
21765
21766 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
21767
21768 2009-07-20 Pavel Roskin <proski@gnu.org>
21769
21770 * configure.ac: Trim excessively wordy excuses.
21771
21772 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21773
21774 Add symlink, mtime and label support to AtheFS.
21775
21776 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
21777 (grub_afs_iterate_dir): Handle symlinks.
21778 (grub_afs_open): Use grub_afs_read_symlink.
21779 (grub_afs_dir): Likewise.
21780 Pass mtime.
21781 (grub_afs_label): New function.
21782 (grub_afs_fs): Add grub_afs_label.
21783 (grub_afs_read_symlink): New function.
21784
21785 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 Fix AtheFS support.
21788
21789 * fs/afs.c: Fix comments style.
21790 (grub_afs_blockrun): Declare as packed.
21791 (grub_afs_datastream): Likewise.
21792 (grub_afs_bnode): Likewise.
21793 (grub_afs_btree): Likewise.
21794 (grub_afs_sblock): Likewise.
21795 Declare `name' as char.
21796 (grub_afs_inode): Declare as packed.
21797 Change void *vnode to grub_uint32_t unused.
21798 (grub_afs_iterate_dir): Check that key_size is positive.
21799 (grub_afs_mount): Don't read superblock twice.
21800 (grub_afs_dir): Don't free node in case of error,
21801 grub_fshelp_find_file already handles this.
21802 (grub_afs_open): Likewise.
21803
21804 2009-07-19 Pavel Roskin <proski@gnu.org>
21805
21806 * Makefile.in: Remove LIBLZO and enable_lzo.
21807 * conf/i386-pc.rmk: Remove lzo support.
21808 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
21809 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
21810 support.
21811 * kern/i386/pc/lzo1x.S: Remove.
21812 * kern/i386/pc/startup.S: Remove lzo support.
21813 * util/i386/pc/grub-mkimage.c: Likewise.
21814
21815 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
21816
21817 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
21818 * fs/xfs.c (grub_xfs_dir): Likewise.
21819 * fs/afs.c (grub_afs_dir): Likewise.
21820 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
21821 (grub_iso9660_open): Likewise.
21822 * fs/jfs.c (grub_jfs_open): Likewise.
21823 * fs/ext2.c (grub_ext2_dir): Likewise.
21824 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
21825 * script/sh/lexer.c (grub_script_yylex): Likewise.
21826
21827 2009-07-16 Pavel Roskin <proski@gnu.org>
21828
21829 * configure.ac: Never add "-c" to CFLAGS.
21830
21831 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
21832
21833 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
21834 grub_cv_cc_efiemu should be used.
21835
21836 * configure.ac: Typo fixes.
21837
21838 * kern/mm.c (grub_zalloc): New function.
21839 (grub_debug_zalloc): Likewise.
21840 * include/grub/mm.h: Declare grub_zalloc() and
21841 grub_debug_zalloc().
21842 * util/misc.c (grub_zalloc): New function.
21843 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
21844 instead of grub_malloc(), remove unneeded initializations.
21845 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
21846 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
21847 * commands/parttool.c (grub_cmd_parttool): Likewise.
21848 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21849 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
21850 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
21851 * disk/usbms.c (grub_usbms_finddevs): Likewise.
21852 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
21853 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
21854 (grub_cmd_efiemu_pnvram): Likewise.
21855 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
21856 * fs/iso9660.c (grub_iso9660_mount): Likewise.
21857 (grub_iso9660_iterate_dir): Likewise.
21858 * fs/jfs.c (grub_jfs_opendir): Likewise.
21859 * fs/ntfs.c (list_file): Likewise.
21860 (grub_ntfs_mount): Likewise.
21861 * kern/disk.c (grub_disk_open): Likewise.
21862 * kern/dl.c (grub_dl_load_core): Likewise.
21863 * kern/elf.c (grub_elf_file): Likewise.
21864 * kern/env.c (grub_env_context_open): Likewise.
21865 (grub_env_set): Likewise.
21866 (grub_env_set_data_slot): Likewise.
21867 * kern/file.c (grub_file_open): Likewise.
21868 * kern/fs.c (grub_fs_blocklist_open): Likewise.
21869 * loader/i386/multiboot.c (grub_module): Likewise.
21870 * loader/xnu.c (grub_xnu_create_key): Likewise.
21871 (grub_xnu_create_value): Likewise.
21872 * normal/main.c (grub_normal_add_menu_entry): Likewise.
21873 (read_config_file): Likewise.
21874 * normal/menu_entry.c (make_screen): Likewise.
21875 * partmap/sun.c (sun_partition_map_iterate): Likewise.
21876 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
21877 * script/sh/script.c (grub_script_parse): Likewise.
21878 * video/bitmap.c (grub_video_bitmap_create): Likewise.
21879 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
21880 * video/readers/png.c (grub_png_output_byte): Likewise.
21881 (grub_video_reader_png): Likewise.
21882
21883 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21884
21885 Enable all targets that can be built by default
21886
21887 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
21888 grub-mkfont and grub-fstest if they can be built
21889
21890 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21891
21892 Fix hang and segmentation fault in grub-emu-usb
21893
21894 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
21895 * util/usb.c (grub_libusb_devices): likewise
21896 (grub_libusb_init): rename to ...
21897 (GRUB_MOD_INIT (libusb)):...this
21898 (grub_libusb_fini): rename to ..
21899 (GRUB_MOD_FINI (libusb)):...this
21900 * disk/usbms.c (grub_usbms_transfer): fix retry logic
21901 * include/grub/disk.h (grub_raid_init): removed, it's useless
21902 (grub_raid_fini): likewise
21903 (grub_lvm_init): likewise
21904 (grub_lvm_fini): likewise
21905 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
21906 by grub_init_all
21907
21908 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21909
21910 Fix libusb
21911
21912 * Makefile.in (LIBUSB): new macro
21913 * genmk.rb (Utility/print_tail): new method
21914 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
21915 (top level): call util.print_tail at the end.
21916
21917 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21918
21919 Make FreeBSD accept zpool.cache
21920
21921 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
21922 type is /boot/zfs/zpool.cache
21923
21924 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
21925
21926 Fix 64-bit efiemu
21927
21928 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
21929 correct wrong typedef
21930 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
21931
21932 2009-07-15 Pavel Roskin <proski@gnu.org>
21933
21934 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
21935 * kern/disk.c (struct grub_disk_cache): Likewise.
21936
21937 * commands/probe.c (options): Typo fix.
21938
21939 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
21940 Increase to 0x5a to accommodate FAT32. Adjust other offsets
21941 accordingly.
21942 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
21943
21944 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
21945 the end of "Error" to make the message more readable.
21946
21947 * boot/i386/pc/boot.S (kernel_segment): Remove.
21948 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
21949 for destination.
21950
21951 * boot/i386/pc/boot.S (boot_version): Remove.
21952 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
21953 Remove.
21954
21955 * include/grub/i386/pc/boot.h: Sort all offsets.
21956 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
21957 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
21958 * boot/i386/pc/boot.S: Assert location of every offset listed in
21959 include/grub/i386/pc/boot.h.
21960
21961 2009-07-13 Pavel Roskin <proski@gnu.org>
21962
21963 * include/grub/i386/coreboot/machine.h: Rename
21964 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
21965 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
21966 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
21967
21968 * kern/dl.c: Force native word size to suppress warnings when
21969 compiling grub-emu.
21970
21971 * kern/device.c (grub_device_iterate): Change struct part_ent to
21972 hold the name, not a pointer to it. Use one grub_malloc() per
21973 partition, not two. Free partition_name if grub_malloc() fails.
21974 Set ents to NULL only before grub_partition_iterate() is called.
21975
21976 2009-07-11 Bean <bean123ch@gmail.com>
21977
21978 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
21979 childname.
21980
21981 2009-07-10 Bean <bean123ch@gmail.com>
21982 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
21983
21984 * kern/ieee1275/openfw.c (grub_children_iterate)
21985 (grub_devalias_iterate): Fix size evaluation for property or path
21986 strings, which was broken since r2132.
21987
21988 2009-07-07 Pavel Roskin <proski@gnu.org>
21989
21990 * commands/search.c (search_file): Merge into ...
21991 (search_fs): ... this. Accept search type as argument.
21992 (grub_cmd_search): Pass search type to search_fs().
21993
21994 * include/grub/util/console.h: New file.
21995 * util/console.c: Use it instead of grub/machine/console.h.
21996 * util/grub-emu.c: Likewise.
21997
21998 * lib/arg.c (find_long_option): Remove.
21999 (find_long): Add `len' argument, make `s' const char *.
22000 (grub_arg_parse): Parse long options in place, not in a
22001 temporary buffer.
22002
22003 2009-07-06 Pavel Roskin <proski@gnu.org>
22004
22005 * commands/search.c (search_fs): Fix potential NULL pointer
22006 dereference.
22007
22008 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22009 function pointer.
22010
22011 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22012
22013 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22014 comparison.
22015
22016 2009-07-05 Pavel Roskin <proski@gnu.org>
22017
22018 * include/grub/i386/linux.h (struct linux_kernel_params):
22019 Restore padding3, it's still needed.
22020
22021 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22022 FreeBSD.
22023 * util/osdetect.lua: Likewise.
22024
22025 2009-07-05 Bean <bean123ch@gmail.com>
22026
22027 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22028
22029 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22030 (grub_lua_getenv): Likewise.
22031 (grub_lua_setenv): Likewise.
22032 (save_errno): New function.
22033 (push_result): Likewise.
22034 (grub_lua_enum_device): Likewise.
22035 (grub_lua_enum_file): Likewise.
22036 (grub_lua_file_open): Likewise.
22037 (grub_lua_file_close): Likewise.
22038 (grub_lua_file_seek): Likewise.
22039 (grub_lua_file_read): Likewise.
22040 (grub_lua_file_getline): Likewise.
22041 (grub_lua_file_getsize): Likewise.
22042 (grub_lua_file_getpos): Likewise.
22043 (grub_lua_file_eof): Likewise.
22044 (grub_lua_file_exist): Likewise.
22045 (grub_lua_add_menu): Likewise.
22046
22047 * script/lua/grub_lua.h (isupper): New inline function.
22048 (islower): Likewise.
22049 (ispunct): Likewise.
22050 (isxdigit): Likewise.
22051 (strcspn): Change to normal function.
22052 (strpbkr): New function declaration.
22053 (memchr): Likewise.
22054
22055 * script/lua/grub_main.c (scan_str): New function.
22056 (strcspn): Likewise.
22057 (strpbrk): Likewise.
22058 (memchr): Likewise.
22059
22060 * script/lua/linit.c (lualibs): Enable the string library.
22061
22062 * util/osdetect.lua: New file.
22063
22064 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22065
22066 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22067 `capabilities' member.
22068
22069 2009-07-02 Pavel Roskin <proski@gnu.org>
22070
22071 * genparttoollist.sh: Add missing newline at the end.
22072
22073 2009-07-01 Pavel Roskin <proski@gnu.org>
22074
22075 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22076
22077 * util/hostdisk.c (open_device): Remove `const' from
22078 `sysctl_size', as sysctlbyname() can change it (in this case it
22079 doesn't actually happen).
22080
22081 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22082 using signed long int constants.
22083
22084 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22085 constant to avoid a warning on FreeBSD.
22086
22087 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22088 where it's needed.
22089
22090 * Makefile.in: Install include/grub/machine symlink.
22091
22092 * Makefile.in: When installing symlinks, use "cp -fR", which
22093 works on FreeBSD and MacOSX.
22094 From Yves Blusseau <cl7m42e02@sneakemail.com>
22095
22096 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22097 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22098
22099 * util/misc.c: Move grub_reboot() and grub_halt() ...
22100 * util/grub-emu.c: ... here. Make main_env static.
22101 * include/grub/util/misc.h: Remove main_env.
22102
22103 * kern/mm.c: Use correct format to print size_t.
22104
22105 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22106 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22107 * kern/powerpc/dl.c: Likewise.
22108 * kern/sparc64/dl.c: Likewise.
22109 * kern/x86_64/dl.c: Likewise.
22110
22111 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22112
22113 Fix grub-emu build on sparc64-ieee1275.
22114
22115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22117
22118 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22119
22120 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22121 (grub_reboot, grub_halt): New functions.
22122
22123 * util/i386/pc/misc.c: Delete. Update all users.
22124 * util/sparc64/ieee1275/misc.c: Likewise.
22125 * util/powerpc/ieee1275/misc.c: Likewise.
22126
22127 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22128
22129 * conf/i386.rmk (setjmp_mod_SOURCES)
22130 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22131 * conf/common.rmk (setjmp_mod_SOURCES)
22132 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22133 to use $(target_cpu).
22134 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22135 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22136 * conf/powerpc-ieee1275.rmk: Likewise.
22137 * conf/sparc64-ieee1275.rmk: Likewise.
22138
22139 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22140 $(target_cpu) for kern/$(target_cpu)/dl.c.
22141 * conf/i386-efi.rmk: Likewise.
22142 * conf/i386-ieee1275.rmk: Likewise.
22143 * conf/x86_64-efi.rmk: Likewise.
22144 * conf/i386-coreboot.rmk: Likewise.
22145 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22146 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22147 kern/$(target_cpu)/cache.S.
22148 * conf/sparc64-ieee1275.rmk: Likewise.
22149
22150 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22151
22152 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22153 type to `grub_uint8_t', and adjust `padding9' accordingly.
22154
22155 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22156
22157 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22158
22159 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22160 assembly in final jump, using register constraints.
22161
22162 (grub_linux_boot): For text mode, initialize `have_vga' using
22163 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22164
22165 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22166 right before the final jump.
22167
22168 Set `video_mode' to 0x3.
22169
22170 Document initialization of `video_page', `video_mode' and
22171 `video_ega_bx'.
22172
22173 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22174
22175 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22176 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22177 and set GRUB_LINUX_FLAG_QUIET appropriately.
22178
22179 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22180
22181 Fix build on Debian / sparc.
22182
22183 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22184
22185 2009-06-28 Pavel Roskin <proski@gnu.org>
22186
22187 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22188 fix a warning.
22189
22190 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22191
22192 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22193
22194 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22195 `err'.
22196
22197 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22198
22199 Revert r2338.
22200
22201 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22202 file can't be opened. grub_file_open() is already supposed to set
22203 grub_errno / grub_errmsg appropriately.
22204 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22205
22206 2009-06-27 Pavel Roskin <proski@gnu.org>
22207 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22208
22209 * include/grub/dl.h: Include grub/elf.h.
22210 (struct grub_dl): Add symtab field.
22211 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22212 GRUB_MODULES_MACHINE_READONLY.
22213 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22214 of the header for read-only modules.
22215 (grub_dl_unload): Free mod->symtab for read-only modules.
22216 * kern/i386/dl.c: Use mod->symtab.
22217 * kern/powerpc/dl.c: Likewise.
22218 * kern/sparc64/dl.c: Likewise.
22219 * kern/x86_64/dl.c: Likewise.
22220
22221 * conf/i386-qemu.rmk: New file.
22222 * kern/i386/qemu/startup.S: Likewise.
22223 * kern/i386/qemu/mmap.c: Likewise.
22224 * boot/i386/qemu/boot.S: Likewise.
22225 * include/grub/i386/qemu/time.h: Likewise.
22226 * include/grub/i386/qemu/serial.h: Likewise.
22227 * include/grub/i386/qemu/kernel.h: Likewise.
22228 * include/grub/i386/qemu/console.h: Likewise.
22229 * include/grub/i386/qemu/boot.h: Likewise.
22230 * include/grub/i386/qemu/init.h: Likewise.
22231 * include/grub/i386/qemu/machine.h: Likewise.
22232 * include/grub/i386/qemu/loader.h: Likewise.
22233 * include/grub/i386/qemu/memory.h: Likewise.
22234
22235 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22236 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22237 [qemu] (pkglib_IMAGES): Add `boot.img'.
22238 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22239 [qemu] (boot_img_FORMAT): New variables.
22240 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22241 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22242 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22243 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22244 [qemu] (kernel_img_FORMAT): New variables.
22245
22246 * configure.ac: Recognise `i386-qemu'.
22247
22248 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22249 (for no compression).
22250 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22251 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22252 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22253 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22254 ifdefs).
22255
22256 2009-06-27 Pavel Roskin <proski@gnu.org>
22257
22258 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22259 read.
22260 * efiemu/prepare32.c: Likewise.
22261 * efiemu/prepare64.c: Likewise.
22262
22263 2009-06-26 Pavel Roskin <proski@gnu.org>
22264
22265 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22266 * include/grub/elf.h: Define symbols without "32" or "64" based
22267 on GRUB_TARGET_WORDSIZE.
22268 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22269 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22270 ELF definitions.
22271 * efiemu/loadcore64.c: Likewise.
22272 * loader/i386/bsd32.c: Likewise.
22273 * loader/i386/bsd64.c: Likewise.
22274 * kern/dl.c: Remove own ELF definitions.
22275 * util/i386/efi/grub-mkimage.c: Likewise.
22276
22277 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22278
22279 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22280 segment 0x0 unconditionally, because the reference generated by
22281 GAS is an absolute address.
22282
22283 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22284
22285 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22286 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22287
22288 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22289
22290 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22291 indexes. Check for -f explicitly.
22292 (search_file): Improve error message.
22293 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22294
22295 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22296
22297 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22298 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22299
22300 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22301
22302 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22303 * conf/i386-ieee1275.rmk: Likewise.
22304 * conf/i386-coreboot.rmk: Likewise.
22305
22306 * kern/i386/pc/startup.S (grub_stop): Remove function.
22307 * kern/i386/ieee1275/startup.S: Likewise.
22308 * kern/i386/coreboot/startup.S: Likewise.
22309 * kern/i386/misc.S (grub_stop): New function.
22310
22311 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22312
22313 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22314 * kern/i386/realmode.S (real_to_prot): ... to here.
22315
22316 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22317
22318 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22319 with `kernel.img'.
22320 (kernel_elf_SOURCES): Rename to ...
22321 (kernel_img_SOURCES): ... this.
22322 (kernel_elf_HEADERS): Rename to ...
22323 (kernel_img_HEADERS): ... this. Update all users.
22324 (kernel_elf_ASFLAGS): Rename to ...
22325 (kernel_img_ASFLAGS): ... this.
22326 (kernel_elf_CFLAGS): Rename to ...
22327 (kernel_img_CFLAGS): ... this.
22328 (kernel_elf_LDFLAGS): Rename to ...
22329 (kernel_img_LDFLAGS): ... this.
22330 * conf/i386-coreboot.rmk: Likewise.
22331 * conf/powerpc-ieee1275.rmk: Likewise.
22332
22333 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
22334 with "kernel.img".
22335
22336 2009-06-21 Pavel Roskin <proski@gnu.org>
22337
22338 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
22339 to match nested functions.
22340 * loader/sparc64/ieee1275/linux.c: Likewise.
22341
22342 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
22343
22344 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22345
22346 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
22347 all i386 platforms.
22348
22349 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
22350
22351 Fix asm file handling on ELF, and remove workarounds.
22352
22353 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
22354 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
22355 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
22356 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
22357
22358 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
22359
22360 Load BSD ELF modules
22361
22362 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
22363 and loader/i386/bsd64.c
22364 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
22365 (FREEBSD_MODTYPE_ELF_MODULE): New definition
22366 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
22367 (grub_freebsd_load_elfmodule32): New declaration
22368 (grub_freebsd_load_elfmoduleobj64): Likewise
22369 (grub_freebsd_load_elf_meta32): Likewise
22370 (grub_freebsd_load_elf_meta64): Likewise
22371 (grub_freebsd_add_meta): Likewise
22372 (grub_freebsd_add_meta_module): Likewise
22373 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
22374 (grub_freebsd_add_meta_module): Likewise and move module-specific
22375 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
22376 (grub_cmd_freebsd): Add elf-kernel specific parts
22377 based on grub_freebsd_add_meta_module
22378 (grub_cmd_freebsd_module): Add type parsing moved from
22379 grub_freebsd_add_meta_module
22380 (grub_cmd_freebsd_module_elf): New function
22381 (cmd_freebsd_module_elf): New variable
22382 (GRUB_MOD_INIT): Register freebsd_module_elf
22383 * loader/i386/bsd32.c: New file
22384 * loader/i386/bsd64.c: Likewise
22385 * loader/i386/bsdXX.c: Likewise
22386 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
22387 (grub_elf64_load): Likewise
22388 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
22389 All users updated
22390 (grub_elf64_load_hook_t): Likewise
22391
22392 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
22393
22394 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
22395 variable.
22396 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
22397 don't write a menu entry for recovery mode.
22398
22399 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22400
22401 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
22402 after it's no longer needed.
22403
22404 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
22405
22406 * include/grub/i386/loader.h (grub_linux_prot_size)
22407 (grub_linux_tmp_addr, grub_linux_real_addr)
22408 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
22409 GRUB_MACHINE_PCBIOS.
22410 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
22411 common grub_util_info() call to ...
22412 (generate_image): ... here.
22413 Fix use of uninitialized memory, comparison of signed with
22414 unsigned integers and memory leak.
22415 Remove bogus module address message.
22416
22417 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22418
22419 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
22420 grub_raid_register
22421 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
22422
22423 2009-06-19 Pavel Roskin <proski@gnu.org>
22424
22425 * configure.ac: Remove stray AC_MSG_CHECKING.
22426
22427 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * disk/scsi.c (grub_scsi_open): use continue instead of big if
22430
22431 2009-06-18 Pavel Roskin <proski@gnu.org>
22432
22433 * conf/common.rmk: Add fs_file.mod.
22434 * disk/fs_file.c: New file.
22435 * include/grub/disk.h (enum grub_disk_dev_id): Add
22436 GRUB_DISK_DEVICE_FILE_ID.
22437
22438 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22439
22440 Fix build with Apple's toolchain. Part 2
22441
22442 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
22443 a fake start
22444
22445 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 Fix build with Apple's toolchain. Part 1
22448
22449 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
22450 for long calls
22451 * configure.ac: remove a leftover AC_MSG_RESULT
22452 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
22453 Apple's toolchain
22454
22455 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 Fix warnings
22458
22459 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
22460 (decomp_block): initialize ch
22461 use grub_memcpy instead of memcpy
22462
22463 2009-06-17 Pavel Roskin <proski@gnu.org>
22464
22465 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
22466 version, use declarations needed to use vga_text as the startup
22467 console.
22468
22469 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
22470 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
22471 the kernel.
22472 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
22473 and grub_at_keyboard_fini(), it's done on module load and
22474 unload.
22475
22476 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
22477
22478 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
22479 file can't be found.
22480 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22481
22482 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22483
22484 Fix newline handling
22485
22486 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
22487 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
22488 (grub_script_yylex): don't segfault on unterminated script
22489 newline terminates command and variable
22490
22491 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
22492
22493 avoid double grub_adjust_range call. Bug reported by David Simner
22494
22495 * kern/disk.c (grub_disk_write): change to raw disk access before
22496 calling disk_read
22497
22498 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
22499
22500 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
22501 spaces, for the benefit of help2man.
22502 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22503
22504 2009-06-16 Pavel Roskin <proski@gnu.org>
22505
22506 * kern/i386/halt.c: Include grub/machine/init.h.
22507 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
22508
22509 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
22510
22511 * util/grub.d/30_os-prober.in: Use ${root} in the generated
22512 drivemap menuentry.
22513
22514 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
22515
22516 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
22517 `echo' command.
22518
22519 2009-06-16 Pavel Roskin <proski@gnu.org>
22520
22521 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
22522 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
22523 save %dx, we only need %dl and we never change it.
22524 * boot/i386/pc/cdboot.S: Don't set the root drive.
22525 * boot/i386/pc/pxeboot.S: Likewise.
22526 * include/grub/i386/pc/boot.h: Remove
22527 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
22528 GRUB_BOOT_MACHINE_DRIVE_CHECK.
22529 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
22530 * kern/i386/pc/init.c (make_install_device): Remove references
22531 to grub_root_drive.
22532 * kern/i386/pc/startup.S: Likewise.
22533 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
22534
22535 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22536
22537 xnu_uuid command
22538
22539 * commands/xnu_uuid.c: new file
22540 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
22541 (xnu_uuid_mod_SOURCES): new variable
22542 (xnu_uuid_mod_CFLAGS): likewise
22543 (xnu_uuid_mod_LDFLAGS): likewise
22544 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22545 * conf/i386-ieee1275.rmk: likewise
22546 * conf/i386-pc.rmk: likewise
22547 * conf/powerpc-ieee1275.rmk: likewise
22548 * conf/sparc64-ieee1275.rmk: likewise
22549 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
22550
22551 2009-06-16 Pavel Roskin <proski@gnu.org>
22552
22553 * configure.ac: Avoid '==' in test command, it's not portable.
22554
22555 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 Probe command
22558
22559 * commands/probe.c: new file
22560 * conf/common.rmk (pkglib_MODULES): add probe.mod
22561 (probe_mod_SOURCES): new variable
22562 (probe_mod_CFLAGS): likewise
22563 (probe_mod_LDFLAGS): likewise
22564 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
22565 * conf/i386-ieee1275.rmk: likewise
22566 * conf/i386-pc.rmk: likewise
22567 * conf/powerpc-ieee1275.rmk: likewise
22568 * conf/sparc64-ieee1275.rmk: likewise
22569
22570 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
22571
22572 Fix handling of string like \"hello\" and "a
22573 b"
22574
22575 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
22576 (grub_script_yylex): fix parsing of quoting, escaping and newline
22577
22578 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
22579
22580 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
22581 handling
22582
22583 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
22584
22585 * util/grub-mkconfig.in: Fix parsing of --output option.
22586
22587 2009-06-12 Pavel Roskin <proski@gnu.org>
22588
22589 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
22590 genmk.rb don't need to be generated or installed.
22591
22592 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22593
22594 * commands/i386/pc/drivemap_int13h.S: add more comments
22595
22596 2009-06-11 Pavel Roskin <proski@gnu.org>
22597
22598 * Makefile.in (uninstall): Uninstall manuals.
22599
22600 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
22601 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
22602 and update-grub_lib in two places.
22603 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
22604
22605 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
22606 a compiler warning.
22607
22608 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
22609 `entry_lo' to fix variable shadowing.
22610
22611 2009-06-11 Christian Franke <franke@computer.org>
22612
22613 * kern/misc.c (__enable_execute_stack): Add missing return type
22614 to prevent gcc warning.
22615
22616 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22617
22618 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
22619
22620 2009-06-11 Pavel Roskin <proski@gnu.org>
22621
22622 * Makefile.in: Don't rely on any scripts being executable.
22623 Always use $(SHELL) to run shell scripts.
22624
22625 * configure.ac: Always define ___main if using -nostdlib. This
22626 fixes tests on Cygwin.
22627
22628 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
22629
22630 UDF fix
22631
22632 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
22633 is in bytes and not in blocks
22634
22635 2009-06-11 Pavel Roskin <proski@gnu.org>
22636
22637 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
22638 warning.
22639
22640 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
22641
22642 * util/grub.d/30_os-prober.in: Fix a comment. Source
22643 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
22644 to set the root device. Place drivemap command in the generated
22645 chain entry.
22646
22647 2009-06-11 Pavel Roskin <proski@gnu.org>
22648
22649 * configure.ac: Remove host_m32. Issues with 64-bit utilities
22650 have long been resolved.
22651
22652 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
22653
22654 * util/grub.d/10_linux.in: Capitalise "Linux".
22655
22656 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
22657
22658 2009-06-11 Pavel Roskin <proski@gnu.org>
22659
22660 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
22661 fix a gcc warning and ensure that the function won't ever exit.
22662
22663 * kern/i386/ieee1275/init.c: Add missing prototype for
22664 grub_stop_floppy().
22665
22666 * loader/ieee1275/multiboot2.c [__i386__]: Include
22667 grub/cpu/multiboot.h.
22668
22669 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
22670 casts to short - they are not portable and cause warnings. Fix
22671 use of uninitialized values in input_buf. Use ARRAY_SIZE.
22672
22673 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 Drivemap fixes
22676
22677 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
22678 new function
22679 (grub_get_root_biosnumber_saved): new variable
22680 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
22681 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
22682 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
22683 %dx after the call if necessary
22684 * conf/common.rmk (pkglib_MODULES): remove boot.mod
22685 (boot_mod_SOURCES): remove
22686 (boot_mod_CFLAGS): remove
22687 (boot_mod_LDFLAGS): remove
22688 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
22689 (boot_mod_SOURCES): new variable
22690 (boot_mod_CFLAGS): likewise
22691 (boot_mod_LDFLAGS): likewise
22692 * conf/i386-efi.rmk: likewise
22693 * conf/i386-ieee1275.rmk: likewise
22694 * conf/i386-pc.rmk: likewise
22695 * conf/powerpc-ieee1275.rmk: likewise
22696 * conf/sparc64-ieee1275.rmk: likewise
22697 * conf/x86_64-efi.rmk: likewise
22698 * include/grub/i386/pc/biosnum.h: new file
22699 * lib/i386/pc/biosnum.c: likewise
22700 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
22701 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
22702 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
22703
22704 2009-06-10 Pavel Roskin <proski@gnu.org>
22705
22706 * io/gzio.c (test_header): Don't reuse one buffer for all data.
22707 Use separate variables. Read only the file size at the end, but
22708 not the checksum that we don't use.
22709
22710 * kern/file.c (grub_file_read): Use void pointer for the buffer.
22711 Adjust all callers.
22712
22713 * kern/ieee1275/openfw.c: Remove libc includes.
22714 * kern/ieee1275/cmain.c: Likewise.
22715 * include/grub/ieee1275/ieee1275.h: Likewise.
22716
22717 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
22718 compiler warnings.
22719
22720 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22721
22722 * Makefile.in: Remove all trailing whitespace.
22723 * conf/i386-pc.rmk: Likewise.
22724 * conf/powerpc-ieee1275.rmk: Likewise.
22725 * conf/sparc64-ieee1275.rmk: Likewise.
22726 * docs/grub.texi: Likewise.
22727 * docs/texinfo.tex: Likewise.
22728 * disk/fs_uuid.c: Likewise.
22729 * disk/lvm.c: Likewise.
22730 * disk/scsi.c: Likewise.
22731 * disk/ata.c: Likewise.
22732 * disk/ieee1275/ofdisk.c: Likewise.
22733 * disk/i386/pc/biosdisk.c: Likewise.
22734 * disk/host.c: Likewise.
22735 * disk/raid.c: Likewise.
22736 * disk/efi/efidisk.c: Likewise.
22737 * disk/usbms.c: Likewise.
22738 * disk/memdisk.c: Likewise.
22739 * disk/loopback.c: Likewise.
22740 * kern/powerpc/dl.c: Likewise.
22741 * kern/device.c: Likewise.
22742 * kern/dl.c: Likewise.
22743 * kern/sparc64/dl.c: Likewise.
22744 * kern/ieee1275/ieee1275.c: Likewise.
22745 * kern/term.c: Likewise.
22746 * kern/fs.c: Likewise.
22747 * kern/i386/dl.c: Likewise.
22748 * kern/i386/pc/startup.S: Likewise.
22749 * kern/i386/pc/init.c: Likewise.
22750 * kern/i386/pc/mmap.c: Likewise.
22751 * kern/i386/pc/lzo1x.S: Likewise.
22752 * kern/i386/ieee1275/init.c: Likewise.
22753 * kern/i386/realmode.S: Likewise.
22754 * kern/i386/tsc.c: Likewise.
22755 * kern/partition.c: Likewise.
22756 * kern/corecmd.c: Likewise.
22757 * kern/file.c: Likewise.
22758 * kern/efi/efi.c: Likewise.
22759 * kern/efi/init.c: Likewise.
22760 * kern/efi/mm.c: Likewise.
22761 * kern/main.c: Likewise.
22762 * kern/err.c: Likewise.
22763 * kern/env.c: Likewise.
22764 * kern/disk.c: Likewise.
22765 * kern/generic/millisleep.c: Likewise.
22766 * kern/generic/rtc_get_time_ms.c: Likewise.
22767 * kern/misc.c: Likewise.
22768 * kern/parser.c: Likewise.
22769 * genmk.rb: Likewise.
22770 * configure.ac: Likewise.
22771 * boot/i386/pc/diskboot.S: Likewise.
22772 * boot/i386/pc/pxeboot.S: Likewise.
22773 * boot/i386/pc/boot.S: Likewise.
22774 * boot/i386/pc/lnxboot.S: Likewise.
22775 * boot/i386/pc/cdboot.S: Likewise.
22776 * parttool/pcpart.c: Likewise.
22777 * video/readers/tga.c: Likewise.
22778 * video/video.c: Likewise.
22779 * video/bitmap.c: Likewise.
22780 * lib/envblk.c: Likewise.
22781 * lib/i386/setjmp.S: Likewise.
22782 * fs/xfs.c: Likewise.
22783 * fs/afs.c: Likewise.
22784 * fs/fat.c: Likewise.
22785 * fs/ntfs.c: Likewise.
22786 * fs/udf.c: Likewise.
22787 * fs/affs.c: Likewise.
22788 * fs/iso9660.c: Likewise.
22789 * fs/hfs.c: Likewise.
22790 * fs/fshelp.c: Likewise.
22791 * fs/ext2.c: Likewise.
22792 * fs/jfs.c: Likewise.
22793 * fs/reiserfs.c: Likewise.
22794 * fs/hfsplus.c: Likewise.
22795 * fs/minix.c: Likewise.
22796 * fs/cpio.c: Likewise.
22797 * fs/sfs.c: Likewise.
22798 * fs/ufs.c: Likewise.
22799 * efiemu/prepare.c: Likewise.
22800 * efiemu/loadcore_common.c: Likewise.
22801 * efiemu/runtime/efiemu.sh: Likewise.
22802 * efiemu/runtime/efiemu.S: Likewise.
22803 * efiemu/runtime/efiemu.c: Likewise.
22804 * efiemu/pnvram.c: Likewise.
22805 * efiemu/main.c: Likewise.
22806 * efiemu/i386/pc/cfgtables.c: Likewise.
22807 * efiemu/i386/loadcore64.c: Likewise.
22808 * efiemu/i386/loadcore32.c: Likewise.
22809 * efiemu/loadcore.c: Likewise.
22810 * efiemu/symbols.c: Likewise.
22811 * efiemu/mm.c: Likewise.
22812 * include/grub/autoefi.h: Likewise.
22813 * include/grub/datetime.h: Likewise.
22814 * include/grub/term.h: Likewise.
22815 * include/grub/hfs.h: Likewise.
22816 * include/grub/lvm.h: Likewise.
22817 * include/grub/i386/tsc.h: Likewise.
22818 * include/grub/i386/linux.h: Likewise.
22819 * include/grub/i386/xnu.h: Likewise.
22820 * include/grub/i386/efiemu.h: Likewise.
22821 * include/grub/i386/pc/biosdisk.h: Likewise.
22822 * include/grub/i386/pc/memory.h: Likewise.
22823 * include/grub/i386/pc/vbe.h: Likewise.
22824 * include/grub/parttool.h: Likewise.
22825 * include/grub/video.h: Likewise.
22826 * include/grub/memory.h: Likewise.
22827 * include/grub/fs.h: Likewise.
22828 * include/grub/partition.h: Likewise.
22829 * include/grub/xnu.h: Likewise.
22830 * include/grub/efi/api.h: Likewise.
22831 * include/grub/efi/pe32.h: Likewise.
22832 * include/grub/efi/memory.h: Likewise.
22833 * include/grub/multiboot.h: Likewise.
22834 * include/grub/usbdesc.h: Likewise.
22835 * include/grub/multiboot2.h: Likewise.
22836 * include/grub/acpi.h: Likewise.
22837 * include/grub/efiemu/efiemu.h: Likewise.
22838 * include/grub/disk.h: Likewise.
22839 * include/grub/ieee1275/ieee1275.h: Likewise.
22840 * include/grub/net.h: Likewise.
22841 * include/grub/machoload.h: Likewise.
22842 * include/grub/macho.h: Likewise.
22843 * include/multiboot.h: Likewise.
22844 * genmoddep.awk: Likewise.
22845 * normal/main.c: Likewise.
22846 * normal/menu_entry.c: Likewise.
22847 * normal/menu_viewer.c: Likewise.
22848 * normal/completion.c: Likewise.
22849 * normal/cmdline.c: Likewise.
22850 * normal/misc.c: Likewise.
22851 * normal/datetime.c: Likewise.
22852 * bus/usb/usbtrans.c: Likewise.
22853 * bus/usb/ohci.c: Likewise.
22854 * bus/usb/uhci.c: Likewise.
22855 * bus/usb/usb.c: Likewise.
22856 * mmap/efi/mmap.c: Likewise.
22857 * mmap/i386/pc/mmap_helper.S: Likewise.
22858 * mmap/i386/pc/mmap.c: Likewise.
22859 * mmap/i386/mmap.c: Likewise.
22860 * mmap/i386/uppermem.c: Likewise.
22861 * mmap/mmap.c: Likewise.
22862 * commands/acpi.c: Likewise.
22863 * commands/echo.c: Likewise.
22864 * commands/blocklist.c: Likewise.
22865 * commands/loadenv.c: Likewise.
22866 * commands/usbtest.c: Likewise.
22867 * commands/boot.c: Likewise.
22868 * commands/parttool.c: Likewise.
22869 * commands/search.c: Likewise.
22870 * commands/cat.c: Likewise.
22871 * commands/i386/pc/play.c: Likewise.
22872 * commands/i386/pc/drivemap.c: Likewise.
22873 * commands/i386/pc/vbeinfo.c: Likewise.
22874 * commands/i386/pc/acpi.c: Likewise.
22875 * commands/i386/pc/vbetest.c: Likewise.
22876 * commands/ls.c: Likewise.
22877 * commands/cmp.c: Likewise.
22878 * commands/test.c: Likewise.
22879 * commands/efi/acpi.c: Likewise.
22880 * commands/gptsync.c: Likewise.
22881 * commands/help.c: Likewise.
22882 * partmap/amiga.c: Likewise.
22883 * partmap/apple.c: Likewise.
22884 * partmap/acorn.c: Likewise.
22885 * partmap/pc.c: Likewise.
22886 * partmap/sun.c: Likewise.
22887 * partmap/gpt.c: Likewise.
22888 * script/sh/lexer.c: Likewise.
22889 * script/sh/function.c: Likewise.
22890 * font/font.c: Likewise.
22891 * font/font_cmd.c: Likewise.
22892 * loader/powerpc/ieee1275/linux.c: Likewise.
22893 * loader/efi/chainloader.c: Likewise.
22894 * loader/multiboot_loader.c: Likewise.
22895 * loader/macho.c: Likewise.
22896 * loader/i386/multiboot.c: Likewise.
22897 * loader/i386/linux.c: Likewise.
22898 * loader/i386/pc/linux.c: Likewise.
22899 * loader/i386/pc/multiboot2.c: Likewise.
22900 * loader/i386/pc/chainloader.c: Likewise.
22901 * loader/i386/pc/xnu.c: Likewise.
22902 * loader/i386/bsd_trampoline.S: Likewise.
22903 * loader/i386/efi/linux.c: Likewise.
22904 * loader/i386/multiboot_elfxx.c: Likewise.
22905 * loader/i386/bsd_helper.S: Likewise.
22906 * loader/i386/bsd.c: Likewise.
22907 * loader/i386/linux_trampoline.S: Likewise.
22908 * loader/i386/xnu_helper.S: Likewise.
22909 * loader/i386/xnu.c: Likewise.
22910 * loader/i386/bsd_pagetable.c: Likewise.
22911 * loader/i386/multiboot_helper.S: Likewise.
22912 * loader/xnu.c: Likewise.
22913 * loader/xnu_resume.c: Likewise.
22914 * io/gzio.c: Likewise.
22915 * term/efi/console.c: Likewise.
22916 * term/terminfo.c: Likewise.
22917 * term/ieee1275/ofconsole.c: Likewise.
22918 * term/i386/pc/serial.c: Likewise.
22919 * term/i386/pc/vesafb.c: Likewise.
22920 * term/i386/pc/vga.c: Likewise.
22921 * term/usb_keyboard.c: Likewise.
22922 * term/gfxterm.c: Likewise.
22923 * aclocal.m4: Likewise.
22924 * util/lvm.c: Likewise.
22925 * util/grub.d/30_os-prober.in: Likewise.
22926 * util/grub.d/10_hurd.in: Likewise.
22927 * util/console.c: Likewise.
22928 * util/grub-macho2img.c: Likewise.
22929 * util/grub-probe.c: Likewise.
22930 * util/hostfs.c: Likewise.
22931 * util/i386/pc/grub-mkimage.c: Likewise.
22932 * util/i386/pc/grub-setup.c: Likewise.
22933 * util/i386/efi/grub-mkimage.c: Likewise.
22934 * util/grub-mkconfig.in: Likewise.
22935 * util/raid.c: Likewise.
22936 * util/resolve.c: Likewise.
22937 * util/grub-mkdevicemap.c: Likewise.
22938 * util/grub-emu.c: Likewise.
22939 * util/getroot.c: Likewise.
22940 * util/hostdisk.c: Likewise.
22941 * util/usb.c: Likewise.
22942 * util/grub-editenv.c: Likewise.
22943 * util/misc.c: Likewise.
22944
22945 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
22946
22947 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
22948 `genparttoollist.sh'.
22949 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
22950 Add `*.sh' to the list find searches for and change `mdate.sh'
22951 to `mdate-sh'.
22952
22953 2009-06-10 Pavel Roskin <proski@gnu.org>
22954
22955 * include/grub/multiboot2.h: Provide compatibility defines for
22956 multiboot2.h.
22957 * include/multiboot2.h: Include stdint.h only if needed, using
22958 angle brackets.
22959 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
22960 grub/multiboot2.h.
22961 * loader/ieee1275/multiboot2.c: Likewise.
22962 * loader/multiboot2.c: Likewise.
22963 * loader/multiboot_loader.c: Likewise.
22964
22965 * configure.ac: Use -nostdlib when probing for the target. It
22966 should not be required to have libc for the target.
22967
22968 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
22969 they fail without libc headers for the target.
22970 * include/grub/powerpc/libgcc.h: Use weak attribute for all
22971 exports.
22972 * include/grub/sparc64/libgcc.h: Likewise. Don't use
22973 preprocessor conditionals.
22974
22975 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
22976 build system doesn't need to be aware of the tar.c internals.
22977
22978 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
22979
22980 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
22981
22982 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
22983
22984 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
22985 disk limit to 26 for IDE, Virtio, Xen and SCSI.
22986
22987 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
22988
22989 * util/i386/pc/grub-install.in: Change the error message if UUIDs
22990 aren't available if ata.mod gets used.
22991
22992 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
22993
22994 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
22995 initialising controller.
22996 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
22997
22998 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
22999
23000 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23001 to choose between ata and biosdisk module on i386-pc.
23002
23003 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23004
23005 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23006 Subclass and Programming Interface fields in terms of the 3 byte
23007 Class Code register.
23008 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23009
23010 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23011 interface is OHCI. Add grub_dprintf for symmetry with
23012 bus/usb/uhci.c.
23013 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23014 interface is UHCI. Add interf variable for programming
23015 interface. Print interface with class/subclass.
23016
23017 * bus/usb/ohci.c: Set interf with correct field.
23018
23019 * bus/usb/uhci.c: Remove unneeded doubled lines.
23020 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23021 Remove whitespace inside comment.
23022
23023 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23024
23025 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23026 as fallback an equivalent option without depth.
23027
23028 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 Not fail if unable to retrieve C/H/S on LBA disks
23031
23032 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23033 if unable to retrieve C/H/S on LBA disks
23034
23035 2009-06-08 Pavel Roskin <proski@gnu.org>
23036
23037 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23038 about aliasing.
23039
23040 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23041
23042 * Makefile.in (uninstall): Remove all $lib_DATA files.
23043
23044 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23045
23046 Bugfix: install on partitionless device
23047
23048 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23049 is a whole disk
23050
23051 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23052
23053 * Makefile.in (uninstall): Remove all $include_DATA files.
23054
23055 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23056
23057 * commands/true.c: New file. Implement the true and false commands.
23058 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23059 (true_mod_SOURCES): New variable.
23060 (true_mod_CFLAGS): Likewise.
23061 (true_mod_LDFLAGS): Likewise.
23062
23063 2009-06-05 Colin D Bennett <colin@gibibit.com>
23064
23065 Optimized font character lookup using binary search instead of linear
23066 search. Fonts now are required to have the character index ordered by
23067 code point.
23068
23069 * font/font.c (load_font_index): Verify that fonts have ordered
23070 character indices.
23071 (find_glyph): Use binary search instead of linear search to find a
23072 character in a font.
23073
23074 2009-06-05 Michael Scherer <misc@mandriva.org>
23075
23076 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23077 uses case sensitive btree.
23078 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23079 only for case insensitive filesystems.
23080
23081 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23084 * conf/common.rmk (search_mod_CFLAGS): likewise
23085
23086 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23087
23088 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23089 compensate a compiler bug
23090
23091 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23092
23093 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23094 instead of '\b'
23095
23096 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23097
23098 Definitions for creating asm symbols with Apple's CC
23099
23100 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23101 [APPLE_CC] (VARIABLE): likewise
23102
23103 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23104
23105 Disable lnxboot.img when compiled
23106 with Apple's CC
23107
23108 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23109 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23110 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23111 [! APPLE_CC] (CODE_LENG): skip
23112 [! APPLE_CC] (setup_sects): likewise
23113 [! APPLE_CC]: skip filling
23114
23115 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23116
23117 Address in trampolines based on 32-bit registers when compiled
23118 with Apple's CC
23119
23120 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23121 for addresses
23122 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23123
23124 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23125
23126 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23127
23128 * kern/misc.c [APPLE_CC] (memcpy): new function
23129 [APPLE_CC] (memmove): likewise
23130 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23131 (memcpy): define alias conditionally on !APPLE_CC
23132 (memset): likewise
23133 (abort): likewise
23134 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23135 APPLE_CC are defined
23136 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23137 (grub_assert_fail): make prototype conditional
23138
23139 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23140
23141 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23142
23143 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23144 grub-macho2img
23145 (CLEANFILES): add grub-macho2img
23146 (grub_macho2img_SOURCES): new variable
23147 * kern/i386/pc/startup.S (bss_start): new variable
23148 (bss_end): likewise
23149 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23150 * util/grub-macho2img.c: new file
23151
23152 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23153
23154 Use objconv when compiling with Apple's CC
23155
23156 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23157 (efiemu64.o): likewise
23158 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23159 when compiling with Apple's CC
23160 (efiemu64_s.o): likewise
23161 * configure.ac: check for objconv when compiling with Apple's CC
23162 * genmk.rb: use objconv for modules when compiled with Apple's CC
23163
23164 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23165
23166 Define segment as well as section when compiling with
23167 Apple's CC
23168
23169 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23170 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23171 (efiemu_convert_pointer): likewise
23172 (efiemu_set_virtual_address_map): likewise
23173 (efiemu_convert_pointer): likewise
23174 (efiemu_getcrc32): likewise
23175 (init_crc32_table): likewise
23176 (reflect): likewise
23177 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23178 (GRUB_MOD_DEP): likewise
23179
23180 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23181
23182 Allow a compilation without -mcmodel=large
23183
23184 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23185 when compiled without -mcmodel=large
23186 (filter_memory_map): remove memory post 4 GiB when compiled
23187 without -mcmodel=large
23188 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23189 TARGET_CFLAGS when -mcmodel=large isn't supported
23190
23191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23192
23193 Remove nested functions in efiemu core
23194
23195 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23196
23197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23198
23199 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23200
23201 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23202 temporary storage
23203 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23204 using Apple's CC
23205 (grub_cpu_is_tsc_supported): likewise
23206 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23207
23208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 Absolute addressing through constant with Apple's cc
23211
23212 * kern/i386/pc/startup.S: Define necessary constants
23213 and address through it when using ABS with Apple's CC
23214 * boot/i386/pc/diskboot.S: likewise
23215 * boot/i386/pc/boot.S: likewise
23216 * boot/i386/pc/lnxboot.S: likewise
23217 * boot/i386/pc/cdboot.S: likewise
23218 * mmap/i386/pc/mmap_helper.S: likewise
23219 * commands/i386/pc/drivemap_int13h.S: likewise
23220
23221 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23222
23223 Check if compiler is apple cc
23224
23225 * Makefile.in (ASFLAGS): new variable
23226 (TARGET_ASFLAGS): likewise
23227 (TARGET_MODULE_FORMAT): likewise
23228 (TARGET_APPLE_CC): likewise
23229 (OBJCONV): likewise
23230 (TARGET_IMG_CFLAGS): likewise
23231 (TARGET_CPPFLAGS): add includedir
23232 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23233 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23234 Check for linker script only if compiler isn't Apple's CC
23235 (TARGET_MODULE_FORMAT): set
23236 (TARGET_APPLE_CC): likewise
23237 (TARGET_ASFLAGS): likewise
23238 (ASFLAGS): likewise
23239 Check for objcopy only if compiler isn't Apple's CC
23240 Check for BSS symbol only if compiler isn't Apple's CC
23241 * genmk.rb: adapt nm options if we use Apple's utils
23242 * aclocal.m4 (grub_apple_cc): new test
23243 (grub_apple_target_cc): likewise
23244
23245 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23246
23247 Simplify sed expressions and improve awk
23248
23249 * Makefile.in (install-local): simplify sed expression
23250 * gencmdlist.sh: likewise
23251 * genmoddep.awk: avoid adding module as a dependency of itself
23252
23253 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23254
23255 Add missing start symbols
23256
23257 * boot/i386/pc/boot.S: add start
23258 * boot/i386/pc/pxeboot.S: likewise
23259
23260 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23261
23262 Fix wrong assumptions with grub-mkimage on EFI
23263
23264 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23265 (relocate_addresses): consider both r_addend and value at offset
23266 (make_mods_section): zerofill modinfo and header
23267 (convert_elf): write prefix here
23268
23269 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23270
23271 Use .asciz instead of .string
23272
23273 * i386/pc/diskboot.S: use .asciz instead of .string
23274 * i386/pc/boot.S: likewise
23275 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23276 (GRUB_MOD_NAME): likewise
23277
23278 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23279
23280 gfxpayload support
23281
23282 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23283 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23284 (grub_video_setup): remove
23285 (grub_video_set_mode): new prototype
23286 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23287 (vid_mode): remove
23288 (linux_vesafb_res): compile only on PCBIOS
23289 (grub_linux_boot): support gfxpayload
23290 * loader/i386/pc/xnu.c (video_hook): new function
23291 (grub_xnu_set_video): support gfxpayload
23292 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23293 (DEFAULT_VIDEO_HEIGHT): likewise
23294 (DEFAULT_VIDEO_FLAGS): likewise
23295 (DEFAULT_VIDEO_MODE): new definition
23296 (video_hook): new function
23297 (grub_gfxterm_init): use grub_video_set_mode
23298 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23299 loading xnu
23300 * video/video.c (grub_video_setup): removed
23301 (grub_video_set_mode): new function based on grub_gfxterm_init and
23302 grub_video_setup
23303
23304 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23305
23306 Avoid calling biosdisk in drivemap
23307
23308 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23309 (revparse_biosdisk): likewise
23310 (list_mappings): derive name from id directly
23311 (grub_cmd_drivemap): use tryparse_diskstring
23312
23313 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23314
23315 Script fixes
23316
23317 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23318 (grub_lexer_param): add tokenonhold
23319 (grub_script_create_cmdline): remove cmdline. All callers updated
23320 (grub_script_function_create): make functionname
23321 grub_script_arg. All callers updated
23322 (grub_script_execute_argument_to_string): new prototype
23323 * kern/parser.c (state_transitions): reorder
23324 (grub_parser_cmdline_state): fix a bug and make more compact
23325 * script/sh/execute.c (grub_script_execute_argument_to_string):
23326 make global
23327 (grub_script_execute_cmdline): use new format
23328 * script/sh/function.c (grub_script_function_create): make functionname
23329 grub_script_arg. All callers updated
23330 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
23331 (grub_script_yylex): remove
23332 (grub_script_yylex2): renamed to ...
23333 (grub_script_yylex): ...renamed
23334 parse the expressions like a${b}c
23335 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
23336 (GRUB_PARSER_TOKEN_VAR): remove
23337 (GRUB_PARSER_TOKEN_NAME): likewise
23338 ("if"): declare as typeless
23339 ("while"): likewise
23340 ("function"): likewise
23341 ("else"): likewise
23342 ("then"): likewise
23343 ("fi"): likewise
23344 (text): remove
23345 (argument): likewise
23346 (script): accept empty scripts and make exit on error
23347 (arguments): use GRUB_PARSER_TOKEN_ARG
23348 (function): likewise
23349 (command): move error handling to script
23350 (menuentry): move grub_script_lexer_ref before
23351 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
23352 argument. All callers updated
23353
23354 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23355
23356 Prevent GRUB from probing floppies during boot.
23357
23358 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
23359 * commands/search.c (options): Add --no-floppy.
23360 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
23361 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
23362 --no-floppy when searching for UUIDs.
23363
23364 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
23365
23366 Simplify the code duplication in commands/search.c.
23367
23368 * commands/search.c (search_label, search_fs_uuid): Merge into ...
23369 (search_fs): ... this. Update all users.
23370
23371 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
23372
23373 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
23374
23375 2009-05-28 Pavel Roskin <proski@gnu.org>
23376
23377 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
23378 Remove the original symlink explicitly.
23379
23380 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
23381 just one slash. That's how grub_fshelp_find_file() does it.
23382
23383 2009-05-26 Pavel Roskin <proski@gnu.org>
23384
23385 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
23386 to `str'.
23387
23388 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
23389 possibly unused.
23390
23391 2009-05-25 Christian Franke <franke@computer.org>
23392
23393 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
23394 register.
23395 (grub_atapi_identify): Add wait after drive select.
23396 (grub_ata_identify): Do more strict status register check before
23397 calling grub_atapi_identify (). Suppress error message if status
23398 register is 0x00 after command failure. Add status register
23399 check after PIO read to avoid bogus identify due to stuck DRQ.
23400 Thanks to Pavel Roskin for testing.
23401 (grub_device_initialize): Remove unsafe status register check.
23402 Thanks to 'phcoder' for problem report and patch.
23403 Prevent sign extension in debug message.
23404
23405 2009-05-23 Colin D Bennett <colin@gibibit.com>
23406
23407 Cleaned up `include/grub/normal.h'. Grouped prototypes by
23408 definition file, and functions defined in `normal/menu.c' have had
23409 their prototypes moved to `include/grub/menu.h' for consistency.
23410
23411 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
23412 from normal.h.
23413 (grub_menu_get_entry): Likewise.
23414 (grub_menu_get_timeout): Likewise.
23415 (grub_menu_set_timeout): Likewise.
23416 (grub_menu_execute_entry): Likewise.
23417 (grub_menu_execute_with_fallback): Likewise.
23418 (grub_menu_entry_run): Likewise.
23419
23420 * include/grub/normal.h: Re-ordered and grouped function
23421 prototypes by file that the function is defined in.
23422 (grub_menu_execute_callback): Removed; moved to menu.h.
23423 (grub_menu_get_entry): Likewise.
23424 (grub_menu_get_timeout): Likewise.
23425 (grub_menu_set_timeout): Likewise.
23426 (grub_menu_execute_entry): Likewise.
23427 (grub_menu_execute_with_fallback): Likewise.
23428 (grub_menu_entry_run): Likewise.
23429 (grub_menu_addentry): Renamed from this ...
23430 (grub_normal_add_menu_entry): ... to this.
23431
23432 * normal/main.c (grub_menu_addentry): Renamed from this ...
23433 (grub_normal_add_menu_entry): ... to this.
23434
23435 * script/sh/execute.c (grub_script_execute_menuentry): Update
23436 reference to renamed grub_menu_addentry function.
23437
23438 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
23439
23440 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
23441
23442 2009-05-22 Pavel Roskin <proski@gnu.org>
23443
23444 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
23445 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
23446 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
23447 compiling for the i386 targets, but not for the utilities.
23448
23449 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
23450 to grub_uint8_t.
23451 (grub_root_drive): Likewise.
23452 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
23453 remove alignment.
23454 (grub_root_drive): Change size to byte.
23455 (grub_start_addr): Remove.
23456 (grub_end_addr): Likewise.
23457 (grub_apm_bios_info): Likewise.
23458
23459 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
23460
23461 * normal/i386: Remove.
23462 * normal/powerpc: Likewise.
23463 * normal/sparc64: Likewise.
23464 * normal/x86_64: Likewise.
23465
23466 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
23467
23468 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
23469 * loader/i386/linux_trampoline.S: Fix indentation
23470 * loader/i386/xnu_helper.S: Likewise
23471
23472 2009-05-18 Colin D Bennett <colin@gibibit.com>
23473
23474 Display error messages when parsing a Lua statement fails.
23475 Previously, executing a syntactically invalid statement like
23476 ")foo" or "bar;" would silently fail.
23477
23478 * script/lua/grub_main.c (handle_lua_error): New function.
23479 (grub_lua_parse_line): Improved reporting of Lua parser and
23480 execution errors.
23481
23482 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23483
23484 Remove -Werror which causes build to fail on some systems
23485
23486 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
23487 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
23488 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
23489
23490 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 trampoline for linux on 64-bit platform
23493
23494 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
23495 loader/i386/efi/linux_trampoline.S
23496 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
23497 declaration
23498 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
23499 here
23500 * loader/i386/linux_trampoline.S: moved here
23501 * loader/i386/efi/linux.c (allocate_pages): reserve space for
23502 trampoline
23503 (jumpvector): removed
23504 (grub_linux_trampoline_start): new declaration
23505 (grub_linux_trampoline_end): likewise
23506 (grub_linux_boot): use trampoline when on 64-bit platform
23507 * loader/i386/linux.c: likewise
23508
23509 2009-05-16 Pavel Roskin <proski@gnu.org>
23510
23511 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
23512 const to avoid a warning.
23513 (grub_lua_setenv): Likewise.
23514 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
23515 lmsg to fix a warning.
23516
23517 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23518
23519 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
23520 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23521 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
23522 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23523 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23524 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23525 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
23526 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
23527
23528 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
23529
23530 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
23531
23532 2009-05-16 Bean <bean123ch@gmail.com>
23533
23534 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
23535 (lua_mod_SOURCES): New variable.
23536 (lua_mod_CFLAGS): Likewise.
23537 (lua_mod_LDFLAGS): Likewise.
23538
23539 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
23540 (setjmp_mod_SOURCES): New variable.
23541 (setjmp_mod_CFLAGS): Likewise.
23542 (setjmp_LDFLAGS): Likewise.
23543
23544 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
23545 (setjmp_mod_SOURCES): New variable.
23546 (setjmp_mod_CFLAGS): Likewise.
23547 (setjmp_LDFLAGS): Likewise.
23548
23549 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23550 (setjmp_mod_SOURCES): New variable.
23551 (setjmp_mod_CFLAGS): Likewise.
23552 (setjmp_LDFLAGS): Likewise.
23553
23554 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
23555 (setjmp_mod_SOURCES): New variable.
23556 (setjmp_mod_CFLAGS): Likewise.
23557 (setjmp_LDFLAGS): Likewise.
23558
23559 * normal/i386/setjmp.S: Moved from here ...
23560 * lib/i386/setjmp.S: ... Moved here
23561 * normal/x86_64/setjmp.S: Moved from here ...
23562 * lib/x86_64/setjmp.S: ... Moved here
23563 * normal/powerpc/setjmp.S: Moved from here ...
23564 * lib/powerpc/setjmp.S: ... Moved here
23565 * normal/sparc64/setjmp.S: Moved from here ...
23566 * lib/sparc64/setjmp.S: ... Moved here
23567
23568 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
23569 returns_twice in mingw.
23570
23571 * script/lua/grub_lib.c: New file.
23572 * script/lua/grub_lib.h: Likewise.
23573 * script/lua/grub_lua.h: Likewise.
23574 * script/lua/grub_main.c: Likewise.
23575 * script/lua/lapi.c: Likewise.
23576 * script/lua/lapi.h: Likewise.
23577 * script/lua/lauxlib.c: Likewise.
23578 * script/lua/lauxlib.h: Likewise.
23579 * script/lua/lbaselib.c: Likewise.
23580 * script/lua/lcode.c: Likewise.
23581 * script/lua/lcode.h: Likewise.
23582 * script/lua/ldblib.c: Likewise.
23583 * script/lua/ldebug.c: Likewise.
23584 * script/lua/ldebug.h: Likewise.
23585 * script/lua/ldo.c: Likewise.
23586 * script/lua/ldo.h: Likewise.
23587 * script/lua/ldump.c: Likewise.
23588 * script/lua/lfunc.c: Likewise.
23589 * script/lua/lfunc.h: Likewise.
23590 * script/lua/lgc.c: Likewise.
23591 * script/lua/lgc.h: Likewise.
23592 * script/lua/linit.c: Likewise.
23593 * script/lua/liolib.c: Likewise.
23594 * script/lua/llex.c: Likewise.
23595 * script/lua/llex.h: Likewise.
23596 * script/lua/llimits.h: Likewise.
23597 * script/lua/lmathlib.c: Likewise.
23598 * script/lua/lmem.c: Likewise.
23599 * script/lua/lmem.h: Likewise.
23600 * script/lua/loadlib.c: Likewise.
23601 * script/lua/lobject.c: Likewise.
23602 * script/lua/lobject.h: Likewise.
23603 * script/lua/lopcodes.c: Likewise.
23604 * script/lua/lopcodes.h: Likewise.
23605 * script/lua/loslib.c: Likewise.
23606 * script/lua/lparser.c: Likewise.
23607 * script/lua/lparser.h: Likewise.
23608 * script/lua/lstate.c: Likewise.
23609 * script/lua/lstate.h: Likewise.
23610 * script/lua/lstring.c: Likewise.
23611 * script/lua/lstring.h: Likewise.
23612 * script/lua/lstrlib.c: Likewise.
23613 * script/lua/ltable.c: Likewise.
23614 * script/lua/ltable.h: Likewise.
23615 * script/lua/ltablib.c: Likewise.
23616 * script/lua/ltm.c: Likewise.
23617 * script/lua/ltm.h: Likewise.
23618 * script/lua/lua.h: Likewise.
23619 * script/lua/luaconf.h: Likewise.
23620 * script/lua/lualib.h: Likewise.
23621 * script/lua/lundump.c: Likewise.
23622 * script/lua/lundump.h: Likewise.
23623 * script/lua/lvm.c: Likewise.
23624 * script/lua/lvm.h: Likewise.
23625 * script/lua/lzio.c: Likewise.
23626 * script/lua/lzio.h: Likewise.
23627
23628 2009-05-16 Bean <bean123ch@gmail.com>
23629
23630 * include/grub/kernel.h (grub_module_header_types): Add type
23631 OBJ_TYPE_CONFIG.
23632
23633 * kern/main.c (grub_load_config): New function.
23634 (grub_main): Call grub_load_config to read boot config.
23635
23636 * grub-mkimage (generate_image): New parameter config_path.
23637 (options): New option --config.
23638 (main): Parse --config option, and pass it to generate_image.
23639
23640 2009-05-14 Christian Franke <franke@computer.org>
23641
23642 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
23643 This fixes build on Cygwin.
23644
23645 2009-05-14 Pavel Roskin <proski@gnu.org>
23646
23647 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
23648 jump. This saves two bytes, so the typical case of 2 swapped
23649 drives would fit 32 bytes.
23650
23651 2009-05-13 Pavel Roskin <proski@gnu.org>
23652
23653 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
23654 grub_uint32_t to avoid a warning.
23655
23656 * loader/i386/linux.c (allocate_pages): When assigning
23657 real_mode_mem, cast through grub_size_t to fix a warning. The
23658 code already makes sure that the value would fit a pointer.
23659 (grub_linux_setup_video): Cast render_target->data to
23660 grub_size_t to fix a warning.
23661
23662 2009-05-13 Javier Martín <lordhabbit@gmail.com>
23663
23664 * commands/i386/pc/drivemap.c: New file - implement drivemap
23665 command.
23666 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
23667 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
23668
23669 2009-05-13 Pavel Roskin <proski@gnu.org>
23670
23671 * util/i386/pc/grub-setup.c (setup): Remove unused variable
23672 embedding_area_exists.
23673
23674 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
23675
23676 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
23677 it easier to understand / work with.
23678 Improve warning messages for cases where there's no embedding area,
23679 or when it is too small (or core.img too large).
23680
23681 2009-05-13 Pavel Roskin <proski@gnu.org>
23682
23683 * loader/i386/pc/multiboot2.c: Add necessary includes for
23684 grub_multiboot2_real_boot().
23685
23686 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
23687 PX record is always little-endian. We only need the lower 2
23688 bytes of the mode.
23689
23690 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
23691 facilitate code reuse.
23692 (grub_cpio_mount): Use "struct head", not a char buffer. This
23693 fixes a warning reported by gcc 4.4.
23694
23695 * kernel/disk.c (grub_disk_read): Use void pointer for the
23696 buffer.
23697 (grub_disk_write): Use const void pointer for the buffer.
23698 Adjust all callers. Remove unnecessary casts.
23699
23700 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
23701
23702 * util/i386/pc/grub-install.in: Update copyright year.
23703
23704 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 gptsync
23707
23708 * commands/gptsync.c: new file
23709 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
23710 (gptsync_mod_SOURCES): new variable
23711 (gptsync_mod_CFLAGS): likewise
23712 (gptsync_mod_LDFLAGS): likewise
23713 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
23714 new definition
23715 (GRUB_PC_PARTITION_TYPE_HFS): likewise
23716 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
23717 * conf/i386-ieee1275.rmk: likewise
23718 * conf/i386-pc.rmk: likewise
23719 * conf/powerpc-ieee1275.rmk: likewise
23720
23721 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23722
23723 Fixed grub-emu
23724
23725 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
23726 (grub_dl_ref): likewise
23727
23728 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
23729
23730 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
23731 split in two functions (one for msdos and one for gpt).
23732
23733 2009-05-08 Pavel Roskin <proski@gnu.org>
23734
23735 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
23736 not modified.
23737
23738 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
23739 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
23740 Initialize them with -1. Add sanity check for bad1. Eliminate
23741 nerr variable.
23742
23743 2009-05-08 David S. Miller <davem@davemloft.net>
23744
23745 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
23746
23747 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
23748
23749 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
23750 existence.
23751
23752 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
23753
23754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23755 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
23756
23757 2009-05-05 David S. Miller <davem@davemloft.net>
23758
23759 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
23760
23761 2009-05-05 Pavel Roskin <proski@gnu.org>
23762
23763 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
23764 of grub_dl_ref() and grub_dl_unref().
23765 * commands/parttool.c: Remove preprocessor conditionals around
23766 grub_dl_ref() and grub_dl_unref().
23767 * fs/affs.c: Likewise.
23768 * fs/afs.c: Likewise.
23769 * fs/cpio.c: Likewise.
23770 * fs/ext2.c: Likewise.
23771 * fs/fat.c: Likewise.
23772 * fs/hfs.c: Likewise.
23773 * fs/hfsplus.c: Likewise.
23774 * fs/iso9660.c: Likewise.
23775 * fs/jfs.c: Likewise.
23776 * fs/minix.c: Likewise.
23777 * fs/ntfs.c: Likewise.
23778 * fs/reiserfs.c: Likewise.
23779 * fs/sfs.c: Likewise.
23780 * fs/udf.c: Likewise.
23781 * fs/ufs.c: Likewise.
23782 * fs/xfs.c: Likewise.
23783 * include/grub/dl.h: Likewise.
23784 * loader/xnu.c: Likewise.
23785
23786 2009-05-04 Pavel Roskin <proski@gnu.org>
23787
23788 * commands/acpi.c: Remove unused variable my_mod.
23789 * partmap/amiga.c: Likewise.
23790 * partmap/apple.c: Likewise.
23791 * partmap/gpt.c: Likewise.
23792 * partmap/pc.c: Likewise.
23793 * partmap/sun.c: Likewise.
23794 * term/gfxterm.c: Likewise.
23795 * term/i386/pc/vesafb.c: Likewise.
23796 * term/i386/pc/vga.c: Likewise.
23797
23798 2009-05-04 David S. Miller <davem@davemloft.net>
23799
23800 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
23801 pointer args to grub_ieee1275_get_property().
23802
23803 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
23804
23805 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
23806 devices, and do not traverse down under controller nodes.
23807
23808 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
23809 (grub_ofdisk_open): Use it to un-escape "," characters.
23810 * kern/disk.c (find_part_sep): New.
23811 (grub_disk_open): Use it to find the first non-escaped ','
23812 character in the disk name.
23813 * util/ieee1275/devicemap.c (escape_of_path): New.
23814 (grub_util_emit_devicemap_entry): Use it.
23815 * util/sparc64/ieee1275/grub-install.in: Update script to
23816 strip partition specifiers properly by not triggering on
23817 '\' escaped ',' characters.
23818
23819 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23820
23821 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
23822 to 0x300.
23823 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
23824 resolutions.
23825 (linux_vesafb_modes): Add a lot of additional modes to the list (based
23826 on documentation from Wikipedia).
23827
23828 2009-05-04 Pavel Roskin <proski@gnu.org>
23829
23830 * disk/ata.c: Spelling fixes.
23831 * disk/raid.c: Likewise.
23832 * disk/usbms.c: Likewise.
23833 * disk/dmraid_nvidia.c: Likewise.
23834 * kern/ieee1275/openfw.c: Likewise.
23835 * kern/ieee1275/init.c: Likewise.
23836 * kern/ieee1275/cmain.c: Likewise.
23837 * boot/i386/pc/cdboot.S: Likewise.
23838 * video/readers/png.c: Likewise.
23839 * video/i386/pc/vbe.c: Likewise.
23840 * fs/udf.c: Likewise.
23841 * fs/hfs.c: Likewise.
23842 * fs/reiserfs.c: Likewise.
23843 * efiemu/runtime/efiemu.c: Likewise.
23844 * efiemu/main.c: Likewise.
23845 * efiemu/mm.c: Likewise.
23846 * include/grub/elf.h: Likewise.
23847 * include/grub/xnu.h: Likewise.
23848 * include/grub/usbdesc.h: Likewise.
23849 * include/grub/usb.h: Likewise.
23850 * include/grub/script_sh.h: Likewise.
23851 * include/grub/lib/LzmaEnc.h: Likewise.
23852 * include/grub/efiemu/efiemu.h: Likewise.
23853 * include/grub/command.h: Likewise.
23854 * normal/menu.c: Likewise.
23855 * normal/main.c: Likewise.
23856 * normal/datetime.c: Likewise.
23857 * bus/usb/uhci.c: Likewise.
23858 * mmap/i386/uppermem.c: Likewise.
23859 * mmap/mmap.c: Likewise.
23860 * commands/acpi.c: Likewise.
23861 * commands/test.c: Likewise.
23862 * partmap/apple.c: Likewise.
23863 * font/font.c: Likewise.
23864 * loader/sparc64/ieee1275/linux.c: Likewise.
23865 * loader/macho.c: Likewise.
23866 * loader/i386/bsd_trampoline.S: Likewise.
23867 * loader/i386/bsd.c: Likewise.
23868 * loader/xnu.c: Likewise.
23869 * term/i386/pc/vesafb.c: Likewise.
23870 * term/usb_keyboard.c: Likewise.
23871 * util/resolve.c: Likewise.
23872 * util/getroot.c: Likewise.
23873
23874 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23875
23876 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
23877
23878 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23879
23880 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
23881 build error.
23882
23883 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23884
23885 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
23886 parameter only available on BIOS.
23887
23888 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 Removed wrong semicolon in declaration
23891
23892 * grub/misc.h (grub_dprintf): remove semicolon
23893
23894 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23895
23896 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
23897 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
23898 is done by grub_cmd_linux() now).
23899 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
23900 restore video to text mode.
23901 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
23902 indicates lack of "vga=" parameter. "vga=0" is mapped to
23903 `GRUB_LINUX_VID_MODE_NORMAL'.
23904
23905 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
23906
23907 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
23908 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
23909 and `normal/script.c'. Add `kern/rescue_reader.c',
23910 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
23911 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
23912 `grub_script.tab.c'.
23913
23914 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23915 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23917 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
23918 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23919
23920 * Makefile.in: Remove duplicated 2008 in Copyright line.
23921
23922 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
23923
23924 * util/misc.c (grub_util_warn): New function. Emits a warning
23925 unconditionally.
23926 * include/grub/util/misc.h (grub_util_warn): New declaration.
23927
23928 * util/i386/pc/grub-install.in: Understand --force and pass it down
23929 to grub-setup.
23930
23931 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
23932 down to setup().
23933 (setup): Improve error messages and add warnings when requested to
23934 install in odd layouts. Refuse to install using blocklists unless
23935 --force was set.
23936
23937 2009-05-04 martin f. krafft <madduck@madduck.net>
23938
23939 * disk/raid.c (grub_raid_scan_device): Improve debug message.
23940
23941 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23942
23943 Updated copyright year
23944
23945 * fs/hfsplus.c: updated copyright year
23946
23947 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 HFS+ UUID
23950
23951 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
23952 in the space previously used by unused3
23953 (grub_hfsplus_uuid): new function
23954 (grub_hfsplus_fs): added uuid field
23955
23956 2009-05-03 Pavel Roskin <proski@gnu.org>
23957
23958 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
23959 suppress warnings. It's no longer needed.
23960 * disk/host.c: Likewise.
23961 * disk/ata_pthru.c: Likewise.
23962 * disk/loopback.c: Likewise.
23963 * hook/datehook.c: Likewise.
23964 * parttool/pcpart.c: Likewise.
23965 * fs/i386/pc/pxe.c: Likewise.
23966 * fs/ntfscomp.c: Likewise.
23967 * efiemu/main.c: Likewise.
23968 * mmap/mmap.c: Likewise.
23969 * commands/crc.c: Likewise.
23970 * commands/hexdump.c: Likewise.
23971 * commands/hdparm.c: Likewise.
23972 * commands/acpi.c: Likewise.
23973 * commands/echo.c: Likewise.
23974 * commands/minicmd.c: Likewise.
23975 * commands/blocklist.c: Likewise.
23976 * commands/memrw.c: Likewise.
23977 * commands/loadenv.c: Likewise.
23978 * commands/usbtest.c: Likewise.
23979 * commands/lsmmap.c: Likewise.
23980 * commands/boot.c: Likewise.
23981 * commands/parttool.c: Likewise.
23982 * commands/configfile.c: Likewise.
23983 * commands/search.c: Likewise.
23984 * commands/ieee1275/suspend.c: Likewise.
23985 * commands/cat.c: Likewise.
23986 * commands/i386/pc/pxecmd.c: Likewise.
23987 * commands/i386/pc/play.c: Likewise.
23988 * commands/i386/pc/halt.c: Likewise.
23989 * commands/i386/pc/vbeinfo.c: Likewise.
23990 * commands/i386/pc/vbetest.c: Likewise.
23991 * commands/lspci.c: Likewise.
23992 * commands/date.c: Likewise.
23993 * commands/handler.c: Likewise.
23994 * commands/ls.c: Likewise.
23995 * commands/test.c: Likewise.
23996 * commands/cmp.c: Likewise.
23997 * commands/efi/loadbios.c: Likewise.
23998 * commands/efi/fixvideo.c: Likewise.
23999 * commands/halt.c: Likewise.
24000 * commands/help.c: Likewise.
24001 * commands/reboot.c: Likewise.
24002 * hello/hello.c: Likewise.
24003 * script/sh/main.c: Likewise.
24004 * loader/xnu.c: Likewise.
24005 * term/terminfo.c: Likewise.
24006 * term/i386/pc/serial.c: Likewise.
24007 * term/usb_keyboard.c: Likewise.
24008
24009 2009-05-03 David S. Miller <davem@davemloft.net>
24010
24011 * normal/menu.c: Include grub/parser.h
24012
24013 2009-05-03 Pavel Roskin <proski@gnu.org>
24014
24015 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24016 not char*.
24017 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24018 Suggested by Javier Martín <lordhabbit@gmail.com>
24019
24020 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24021 efiemu??.o doesn't exist.
24022 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24023 copying.
24024
24025 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24026
24027 FreeBSD 64-bit support
24028
24029 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24030 and loader/i386/bsd_trampoline.S
24031 (bsd_mod_ASFLAGS): new variable
24032 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24033 (FREEBSD_MODTYPE_KERNEL64): likewise
24034 (grub_bsd64_trampoline_start): likewise
24035 (grub_bsd64_trampoline_end): likewise
24036 (grub_bsd64_trampoline_selfjump): likewise
24037 (grub_bsd64_trampoline_gdt): likewise
24038 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24039 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24040 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24041 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24042 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24043 of "attrib" member
24044 * loader/i386/bsd_pagetable.c: new file
24045 * loader/i386/bsd_trampoline.S: likewise
24046 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24047 (ALIGN_VAR): likewise
24048 (entry_hi): new variable
24049 (kern_end_mdofs): likewise
24050 (is_64bit): likewise
24051 (grub_freebsd_add_meta): use ALIGN_VAR
24052 (grub_e820_mmap): new declaration
24053 (grub_freebsd_add_mmap): new function
24054 (grub_freebsd_add_meta_module): support 64 bit kernels
24055 (grub_freebsd_list_modules): use ALIGN_VAR
24056 (gdt_descriptor): new declaration
24057 (grub_freebsd_boot): support 64 bit kernels
24058 (grub_bsd_elf64_hook): new function
24059 (grub_bsd_load_elf): support elf64
24060
24061 2009-05-03 Bean <bean123ch@gmail.com>
24062
24063 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24064 after we get the result of if statement.
24065
24066 2009-05-03 Bean <bean123ch@gmail.com>
24067
24068 * Makefile.in (enable_efiemu): New variable.
24069
24070 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24071 set.
24072 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24073 path.
24074 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24075 path, add -mno-red-zone option.
24076 (efiemu64_s.o): Likewise.
24077 (efiemu64.o): Use macro $^ for source file.
24078
24079 * configure.ac (--enable-efiemu): New option.
24080
24081 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24082
24083 xnu support
24084
24085 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24086 (pkglib_MODULES): add xnu.mod
24087 (xnu_mod_SOURCES): new variable
24088 (xnu_mod_CFLAGS): likewise
24089 (xnu_mod_LDFLAGS): likewise
24090 (xnu_mod_ASFLAGS): likewise
24091 * conf/i386-pc.rmk: likewise
24092 * conf/x86_64-efi.rmk: likewise
24093 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24094 new declaration
24095 * include/grub/i386/macho.h: new file
24096 * include/grub/i386/xnu.h: likewise
24097 * include/grub/macho.h: likewise
24098 * include/grub/machoload.h: likewise
24099 * include/grub/x86_64/macho.h: likewise
24100 * include/grub/x86_64/xnu.h: likewise
24101 * include/grub/xnu.h: likewise
24102 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24103 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24104 * loader/i386/efi/xnu.c: new file
24105 * loader/i386/pc/xnu.c: likewise
24106 * loader/i386/xnu.c: likewise
24107 * loader/i386/xnu_helper.S: likewise
24108 * loader/macho.c: likewise
24109 * loader/xnu.c: likewise
24110 * loader/xnu_resume.c: likewise
24111 * util/grub-dumpdevtree: likewise
24112 * include/grub/i386/pit.h: include grub/err.h
24113 (grub_pit_wait): export
24114 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24115
24116 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24117
24118 Efiemu
24119
24120 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24121 _linux_efi, linux_efi.
24122 new files in grub-emu
24123 new targets efiemu32.o and efiemu64.o
24124 * loader/linux_normal_efiemu.c: likewise
24125 * loader/i386/efi/linux.c: added preliminary efiemu support
24126 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24127 files to copy
24128 * include/grub/autoefi.h: new file
24129 * include/grub/i386/efiemu.h: likewise
24130 * include/grub/i386/pc/efiemu.h: likewise
24131 * include/grub/efi/api.h: add LL suffix when necessary
24132 new definitions relating to tables
24133 * include/grub/efiemu/efiemu.h: new file
24134 * include/grub/efiemu/runtime.h: likewise
24135 * efiemu/prepare.c: likewise
24136 * efiemu/loadcore_common.c: likewise
24137 * efiemu/loadcore64.c: likewise
24138 * efiemu/runtime/efiemu.sh: likewise
24139 * efiemu/runtime/efiemu.S: likewise
24140 * efiemu/runtime/efiemu.c: likewise
24141 * efiemu/runtime/config.h: likewise
24142 * efiemu/prepare32.c: likewise
24143 * efiemu/main.c: likewise
24144 * efiemu/modules/pnvram.c: likewise
24145 * efiemu/modules/i386: likewise
24146 * efiemu/modules/i386/pc: likewise
24147 * efiemu/modules/acpi.c: likewise
24148 * efiemu/i386/pc/cfgtables.c: likewise
24149 * efiemu/i386/loadcore64.c: likewise
24150 * efiemu/i386/loadcore32.c: likewise
24151 * efiemu/prepare64.c: likewise
24152 * efiemu/loadcore.c: likewise
24153 * efiemu/symbols.c: likewise
24154 * efiemu/mm.c: likewise
24155 * efiemu/loadcore32.c: likewise
24156
24157 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24158
24159 ACPI spoofing
24160
24161 * commands/acpi.c: new file
24162 * commands/i386/pc/acpi.c: likewise
24163 * commands/efi/acpi.c: likewise
24164 * include/grub/acpi.h: likewise
24165 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24166 (acpi_mod_SOURCES): new variable
24167 (acpi_mod_CFLAGS): likewise
24168 (acpi_mod_LDFLAGS): likewise
24169 * conf/i386-efi.rmk: likewise
24170 * conf/x86_64-efi.rmk: likewise
24171
24172 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24173
24174 Missing part from mmap patch
24175
24176 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24177 (grub_mmap_unregister)
24178 (grub_mmap_free_and_unregister): use grub_mmap_register
24179
24180 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24181
24182 Mmap services
24183
24184 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24185 * loader/i386/linux.c (find_mmap_size): likewise
24186 (allocate_pages): likewise
24187 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24188 (grub_fill_multiboot_mmap): likewise
24189 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24190 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24191 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24192 (OPENBSD_MMAP_RESERVED): likewise
24193 * include/grub/i386/pc/memory.h: include grub/memory.h
24194 (grub_lower_mem): removed
24195 (grub_upper_mem): likewise
24196 (GRUB_MACHINE_MEMORY_ACPI): new definition
24197 (GRUB_MACHINE_MEMORY_NVS): likewise
24198 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24199 (GRUB_MACHINE_MEMORY_HOLE): likewise
24200 (grub_machine_mmap_register): likewise
24201 (grub_machine_mmap_unregister): likewise
24202 (grub_machine_get_upper): likewise
24203 (grub_machine_get_lower): likewise
24204 (grub_machine_get_post64): likewise
24205 * include/grub/i386/efi/memory.h: new file
24206 * include/grub/x86_64/efi/memory.h: likewise
24207 * include/grub/efi/memory.h: likewise
24208 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24209 (mmap_mod_SOURCES): new variable
24210 (mmap_mod_LDFLAGS): likewise
24211 (mmap_mod_ASFLAGS): likewise
24212 * conf/i386-coreboot.rmk: likewise
24213 * conf/i386-ieee1275.rmk: likewise
24214 * conf/i386-efi.rmk: likewise
24215 * conf/x86_64-efi.rmk: likewise
24216 * include/grub/types.h (UINT_TO_PTR): new macro
24217 (PTR_TO_UINT32): likewise
24218 (PTR_TO_UINT64): likewise
24219 * include/grub/memory.h: new file
24220 * mmap/i386/pc/mmap.c: likewise
24221 * mmap/i386/pc/mmap_helper.S: likewise
24222 * mmap/i386/uppermem.c: likewise
24223 * mmap/mmap.c: likewise
24224 * mmap/efi/mmap.c: likewise
24225 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24226 grub_upper_mem
24227 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24228 (grub_upper_mem): likewise
24229 (grub_machine_init): don't use grub_upper_mem,
24230 make grub_lower_mem local
24231 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24232 grub_mmap_iterate and grub_mmap_get_upper
24233 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24234
24235 2009-05-02 Bean <bean123ch@gmail.com>
24236
24237 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24238 script/sh/parser.y.
24239 (pkglib_MODULES): Add normal.mod and sh.mod.
24240 (normal_SOURCES): New variable.
24241 (normal_mod_CFLAGS): Likewise.
24242 (normal_mod_LDFLAGS): Likewise.
24243 (sh_mod_SOURCES): Likewise.
24244 (sh_mod_CFLAGS): Likewise.
24245 (sh_mod_LDFLAGS): Likewise.
24246
24247 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24248 script/sh/lexer.c_DEPENDENCIES.
24249 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24250 kern/rescue_reader.c and kern/rescue_parser.c.
24251 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24252 (grub_emu_SOURCES): Change source files.
24253 (pkglib_MODULES): Remove normal.mod.
24254 (normal_SOURCES): Removed.
24255 (normal_mod_CFLAGS): Likewise.
24256 (normal_mod_LDFLAGS): Likewise.
24257 * conf/i386-coreboot.rmk: Likewise.
24258 * conf/i386-efi.rmk: Likewise.
24259 * conf/i386-ieee1276.rmk: Likewise.
24260 * conf/powerpc-ieee1275.rmk: Likewise.
24261 * conf/sparc64-ieee1275.rmk: Likewise.
24262 * conf/x86_64-efi.rmk: Likewise.
24263
24264 * include/grub/command.h (grub_command_execute): New inline function.
24265
24266 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24267
24268 * include/grub/normal.h: Remove <grub/setjmp.h>.
24269 (grub_fs_module_list): Moved to normal/autofs.c.
24270 (grub_exit_env): Removed.
24271 (grub_command_execute): Likewise.
24272 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24273 parameter script.
24274 (read_command_list): New function declaration.
24275 (read_fs_list): Likewise.
24276
24277 * include/parser.h: Include <grub/reader.h>.
24278 (grub_parser_split_cmdline): Change type of getline parameter.
24279 (grub_parser): New structure.
24280 (grub_parser_class): New variable.
24281 (grub_parser_execute): New function declaration.
24282 (grub_register_rescue_parser): Likewise.
24283 (grub_parser_register): New inline function.
24284 (grub_parser_unregister): Likewise.
24285 (grub_parser_get_current): Likewise.
24286 (grub_parser_set_current): Likewise.
24287
24288 * include/grub/reader.h: New file.
24289 * kern/reader.c: Likewise.
24290 * kern/rescue_parser.c: Likewise.
24291 * kern/rescue_reader.c: Likewise.
24292 * normal/autofs.c: Likewise.
24293 * normal/dyncmd.c: Likewise.
24294
24295 * include/grub/rescue.h: Removed.
24296 * normal/command.h: Likewise.
24297
24298 * include/grub/script.h: Moved to ...
24299 * include/grub/script_sh.h: ... Moved here.
24300 * normal/execute.c: Moved to ...
24301 * script/sh/execute.c: ... Moved here.
24302 * normal/function.c: Moved to ...
24303 * script/sh/function.c: ... Moved here.
24304 * normal/lexer.c: Moved to ...
24305 * script/sh/lexer.c: ... Moved here.
24306 * normal/parser.y: Moved to ...
24307 * script/sh/parser.y: ... Moved here.
24308 * normal/script.c: Moved to ...
24309 * script/sh/script.c: ... Moved here.
24310
24311 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24312 <grub/reader.h>.
24313 (grub_exit_env): Removed.
24314 (fs_module_list): Moved to normal/autofs.c.
24315 (grub_file_getline): Don't handle comment here.
24316 (free_menu): Skip removed field entry->commands.
24317 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24318 script parameter.
24319 (read_config_file): Removed nested parameter, change getline function.
24320 (grub_enter_normal_mode): Removed.
24321 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24322 (read_command_list): Likewise.
24323 (autoload_fs_module): Moved to normal/autofs.c.
24324 (read_fs_list): Likewise.
24325 (reader_nested): New variable.
24326 (grub_normal_execute): Run parser.sh to switch to sh parser.
24327 (grub_cmd_rescue): Removed.
24328 (cmd_normal): Removed.
24329 (grub_cmd_normal): Unregister itself at the beginning. Don't register
24330 rescue command.
24331 (grub_cmdline_run): New function.
24332 (grub_normal_reader_init): Likewise.
24333 (grub_normal_read_line): Likewise.
24334 (grub_env_write_pager): Likewise.
24335 (cmdline): New variable.
24336 (grub_normal_reader): Likewise.
24337 (GRUB_MOD_INIT): Register normal reader and set as current, register
24338 pager hook, register normal command with grub_register_command_prio,
24339 so that it won't show up in command.lst.
24340 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
24341 grub_fs_autoload_hook.
24342
24343 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
24344 (grub_menu_execute_entry): Replace grub_script_execute with
24345 grub_parser_execute, change parameter to grub_command_execute.
24346
24347 * normal/menu_text.c: Remove <grub/script.h>.
24348
24349 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
24350 and <grub/parser.h>.
24351 (run): Change editor_getline to use new parser interface. Change
24352 parameter to grub_command_execute.
24353
24354 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
24355 <grub/reader.h> and <grub/parser.h>.
24356 (grub_load_normal_mode): Execute normal command.
24357 (grub_main): Call grub_register_core_commands,
24358 grub_register_rescue_parser and grub_register_rescue_reader, use
24359 grub_reader_loop to enter input loop.
24360
24361 * kern/parser.c (grub_parser_split_cmdline): Change type of
24362 getline parameter.
24363 (grub_parser_class): New variable.
24364 (grub_parser_execute): New function.
24365
24366 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
24367 * loader/multiboot2.c: Likewise.
24368 * loader/sparc64/ieee1275/linux.c: Likewise.
24369
24370 * util/grub-emu.c (read_command_list): New dummy function.
24371
24372 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24373
24374 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
24375 count to 16 for CCISS and IDA.
24376
24377 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
24378
24379 * normal/menu_text.c (grub_wait_after_message): Print a newline
24380 after waiting for user input.
24381
24382 * loader/i386/linux.c: Include `<grub/normal.h>'.
24383 (grub_cmd_linux): Improve the error message about `ask' mode, by
24384 waiting for user input so it's not missed (we can do this, since
24385 user requested interaction).
24386
24387 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24388
24389 Added missing lst to grub-mkrescue
24390
24391 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
24392 and ${input_dir}/parttool.lst
24393
24394 2009-04-30 David S. Miller <davem@davemloft.net>
24395
24396 * util/hostdisk.c (device_is_wholedisk): New function.
24397 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
24398 zero only if device_is_wholedisk() returns true.
24399
24400 * util/hostdisk.c (convert_system_partition_to_system_disk):
24401 Handle virtual disk devices named /dev/vdiskX as found on sparc
24402 and powerpc.
24403
24404 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
24405 lettered partition specifier is found, convert to numbered.
24406
24407 2009-04-29 David S. Miller <davem@davemloft.net>
24408
24409 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
24410 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24411
24412 * normal/command.c: Add missing newline at end of file.
24413
24414 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
24415 warnings.
24416 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
24417 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
24418 grub_ofdisk_read): Likewise, and deal similarly with the fact that
24419 ihandles have a 32-bit type but need to be stored in a "void *".
24420
24421 2009-04-28 Pavel Roskin <proski@gnu.org>
24422
24423 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
24424 not disk. Adjust all dependencies.
24425 (grub_fs_uuid_close): Use grub_device_close(), not
24426 grub_disk_close().
24427
24428 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
24429 parent's partition, don't copy it by reference, as it gets freed
24430 on close.
24431
24432 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24433
24434 Preboot hooks support
24435
24436 * commands/boot.c (struct grub_preboot_t): new declaration
24437 (preboots_head): new variable
24438 (preboots_tail): likewise
24439 (grub_loader_register_preboot_hook): new function
24440 (grub_loader_unregister_preboot_hook): likewise
24441 (grub_loader_set): launch preboot hooks
24442 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
24443 (grub_loader_register_preboot_hook): new declaration
24444 (grub_loader_unregister_preboot_hook): likewise
24445
24446 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24447
24448 Warning fix
24449
24450 * disk/scsi.c (grub_scsi_open): added missing cast when
24451 calling grub_dprintf
24452
24453 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 Bug and warning fixes
24456
24457 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
24458 declaration
24459 * commands/test.c (test_parse): fixed bug with file tests and corrected
24460 declaration of find_file
24461
24462 2009-04-26 Pavel Roskin <proski@gnu.org>
24463
24464 * Makefile.in: Don't install empty manual pages if help2man is
24465 missing. Use help2man option for output, not shell redirection.
24466
24467 2009-04-26 David S. Miller <davem@davemloft.net>
24468
24469 * util/grub-mkdevicemap.c (make_device_map): Add missing
24470 NESTED_FUNC_ATTR to process_device().
24471
24472 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24473
24474 Test command
24475
24476 * commands/test.c: rewritten to use bash-like test
24477
24478 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
24479
24480 Parttool autoloading and improvements
24481
24482 * Makefile.in (pkglib_DATA): add parttool.lst
24483 (parttool.lst): new target
24484 * genmk.rb: generate parttool-*
24485 (CLEANFILES): add #{parttool}
24486 (PARTTOOLFILES): new variable
24487 * genparttoollist.sh: new file
24488 * parttool/pcpart.c (grub_pcpart_boot): more feedback
24489 (grub_pcpart_type): likewise
24490 * commands/parttool.c (helpmsg): new variable
24491 (grub_cmd_parttool): output help if not enough arguments are supplied
24492 autoload modules
24493 (GRUB_MOD_INIT(parttool)): use helpmsg
24494
24495 2009-04-24 David S. Miller <davem@davemloft.net>
24496
24497 Avoiding opening same device multiple times in device iterator.
24498
24499 * kern/device.c: (grub_device_iterate): Define struct part_ent,
24500 and use it to build a list of partitions in iterate_disk() and
24501 iterate_partition().
24502
24503 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
24504 on disk->data.
24505
24506 * disk/ieee1275/nand.c (grub_nand_iterate): Return
24507 grub_devalias_iterate() result instead of unconditional 0.
24508 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
24509 Also, capture hook return value, either directly or via
24510 grub_children_iterate(), and propagate to caller.
24511 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
24512 grub_children_iterate): Return value is now 'int' instead of
24513 'grub_err_t'.
24514 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
24515 like a proper iterator, stopping when hooks return non-zero.
24516 (grub_devalias_iterate): Likewise.
24517
24518 2009-04-23 David S. Miller <davem@davemloft.net>
24519
24520 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
24521
24522 2009-04-22 David S. Miller <davem@davemloft.net>
24523
24524 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
24525 is larger than address_cells, use that value for address_cells too.
24526
24527 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
24528 IEEE1275_MAX_PATH_LEN): Define.
24529 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
24530 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
24531 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
24532 'devtype'. Explicitly NULL terminate devalias expansion.
24533
24534 * util/sparc64/ieee1275/misc.c: New file.
24535 * util/sparc64/ieee1275/grub-setup.c: New file.
24536 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
24537 * util/sparc64/ieee1275/grub-mkimage.c: New file.
24538 * util/sparc64/ieee1275/grub-install.in: New file.
24539 * util/ieee1275/ofpath.c: New file.
24540 * util/ieee1275/devicemap.c: New file.
24541 * util/devicemap.c: New file.
24542 * util/deviceiter.c: New file.
24543 * kern/sparc64/ieee1275/init.c: New file.
24544 * include/grub/util/ofpath.h: New file.
24545 * include/grub/util/deviceiter.h: New file.
24546 * util/grub-mkdevicemap.c: Include deviceiter.h.
24547 Implement using grub_util_emit_devicemap_entry and
24548 grub_util_iterate_devices.
24549 * conf/i386-corebook.rmk: Build util/deviceiter.c and
24550 util/devicemap.c into grub-mkdevicemap
24551 * conf/i386-efi.rmk: Likewise.
24552 * conf/i386-ieee1275.rmk: Likewise.
24553 * conf/i386-pc.rmk: Likewise.
24554 * conf/powerpc-ieee1275.rmk: Likewise.
24555 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
24556 images and installation utilities. Build kernel as image
24557 instead of as elf binary. Use common rules as much as possible.
24558
24559 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24560
24561 Correct GPT definition
24562
24563 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24564 of "attrib" member
24565
24566 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
24567
24568 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
24569
24570 2009-04-19 David S. Miller <davem@davemloft.net>
24571
24572 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
24573 (grub_rescue_cmd_linux): Rename to...
24574 (grub_cmd_linux): and fix prototype.
24575 (grub_rescue_cmd_initrd): Rename to...
24576 (grub_cmd_initrd): and fix prototype.
24577 (cmd_linux, cmd_initrd): New.
24578 (GRUB_MOD_INIT(linux)): Use grub_register_command().
24579 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
24580
24581 2009-04-17 Pavel Roskin <proski@gnu.org>
24582
24583 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
24584 format.
24585 (grub_ohci_transfer): Likewise.
24586
24587 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
24588
24589 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
24590 return without a value. Fix inconsistent indentation.
24591
24592 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
24593 match struct grub_fs.
24594
24595 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
24596 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
24597 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
24598 * commands/lspci.c (grub_lspci_iter): Likewise.
24599
24600 2009-04-16 Bean <bean123ch@gmail.com>
24601
24602 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
24603 value.
24604
24605 2009-04-15 Pavel Roskin <proski@gnu.org>
24606
24607 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
24608 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
24609 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
24610 definitions.
24611
24612 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24613
24614 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
24615 that no multiple data or metadata areas are supported and `Unknown
24616 metadata header'.
24617
24618 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24619
24620 Move loader out of the kernel
24621
24622 * kern/loader.c: moved to ...
24623 * commands/boot.c: ... moved here
24624 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
24625 * commands/boot.c (grub_cmd_boot): moved here. All users updated
24626 * include/grub/kernel.h (grub_machine_fini): export
24627 * include/grub/loader.h (grub_loader_is_loaded): update declaration
24628 (grub_loader_set): likewise
24629 (grub_loader_unset): likewise
24630 (grub_loader_boot): likewise
24631 * conf/common.rmk: new module boot.mod
24632 (pkglib_MODULES): add boot.mod
24633 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
24634 (grub_emu_SOURCES): likewise
24635 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
24636 (grub_emu_SOURCES): likewise
24637 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
24638 (grub_emu_SOURCES): likewise
24639 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
24640 (grub_emu_SOURCES): likewise
24641 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
24642 (grub_emu_SOURCES): likewise
24643 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
24644 (grub_emu_SOURCES): likewise
24645 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
24646 (grub_emu_SOURCES): likewise
24647
24648 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24649
24650 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
24651
24652 * kern/misc.c (grub_itoa): Removed function
24653 (grub_ltoa): likewise
24654 (grub_vsprintf): use grub_lltoa
24655
24656 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
24657
24658 Restore grub-emu
24659
24660 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
24661 * conf/i386-coreboot.rmk: likewise
24662 * conf/i386-ieee1275.rmk: likewise
24663 * conf/powerpc-ieee1275.rmk: likewise
24664
24665 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
24666
24667 * INSTALL: Add that `./autogen.sh' needs to be run before
24668 `./configure.'.
24669
24670 2009-04-14 Bean <bean123ch@gmail.com>
24671
24672 * Makefile.in (pkglib_DATA): Add handler.lst.
24673 (handler.lst): New rule.
24674
24675 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
24676 * conf/i386-coreboot.rmk: Likewise.
24677 * conf/i386-ieee1275.rmk: Likewise.
24678 * conf/i386-efi.rmk: Likewise.
24679 * conf/x86_64-efi.rmk: Likewise.
24680 * conf/powerpc-ieee1275.rmk: Likewise.
24681 * conf/sparc64-ieee1275.rmk: Likewise.
24682
24683 * genhandlerlist.sh: New file.
24684
24685 * genmk.rb: Add rules to generate handler.lst.
24686
24687 * include/grub/normal.h (grub_file_getline): New function definition.
24688 (read_handler_list): Likewise.
24689 (free_handler_list): Likewise.
24690
24691 * include/grub/term.h (grub_term_register_input): Add name parameter
24692 for auto generation of handler.lst.
24693 (grub_term_register_output): Likewise.
24694
24695 * normal/handler.c: New file.
24696
24697 * normal/main.c (get_line): Renamed to grub_file_getline.
24698 (read_config_file): Use the newly renamed grub_file_getline.
24699 (read_command_list): Likewise.
24700 (read_fs_list): Likewise.
24701 (grub_normal_execute): Call read_handler_list to parse handler.lst.
24702 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
24703
24704 * term/efi/console.c (grub_console_init): Add name parameter for auto
24705 generation of handler.lst.
24706 * term/gfxterm.c: Likewise.
24707 * term/i386/pc/at_keyboard.c: Likewise.
24708 * term/i386/pc/console.c: Likewise.
24709 * term/i386/pc/serial.c: Likewise.
24710 * term/i386/pc/vesafb.c: Likewise.
24711 * term/i386/pc/vga.c: Likewise.
24712 * term/i386/pc/vga_text.c: Likewise.
24713 * term/ieee1275/ofconsole.c: Likewise.
24714 * term/usb_keyboard.c: Likewise.
24715
24716 2009-04-14 Bean <bean123ch@gmail.com>
24717
24718 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
24719 properly with null character.
24720
24721 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24722
24723 * configure: Remove.
24724 * config.h.in: Likewise.
24725 * stamp-h.in: Likewise.
24726 * DISTLIST: Likewise.
24727 * conf/common.mk: Likewise.
24728 * conf/i386-coreboot.mk: Likewise.
24729 * conf/i386-efi.mk: Likewise.
24730 * conf/i386-ieee1275.mk: Likewise.
24731 * conf/i386.mk: Likewise.
24732 * conf/i386-pc.mk: Likewise.
24733 * conf/powerpc-ieee1275.mk: Likewise.
24734 * conf/sparc64-ieee1275.mk: Likewise.
24735 * conf/x86_64-efi.mk: Likewise.
24736
24737 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
24738 develop on GRUB.
24739
24740 2009-04-14 John Stanley <jpsinthemix@verizon.net>
24741 David S. Miller <davem@davemloft.net>
24742
24743 * util/hostdisk.c (make_device_name): Fix buffer length
24744 calculations.
24745
24746 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
24747
24748 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
24749 <sys/param.h> and <sys/sysctl.h>.
24750 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
24751 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
24752 opening the device and reset them afterwards.
24753
24754 2009-04-13 Pavel Roskin <proski@gnu.org>
24755
24756 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
24757 Reported by John Stanley <jpsinthemix@verizon.net>
24758
24759 2009-04-13 Robert Millan <rmh@aybabtu.com>
24760
24761 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
24762 that name for menuentries when appropriate.
24763
24764 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24765
24766 * util/grub.d/10_freebsd.in: Add a missing `fi'.
24767
24768 2009-04-13 Robert Millan <rmh@aybabtu.com>
24769
24770 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
24771 to Linux, simply abort telling the user it's no longer supported.
24772
24773 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24774
24775 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
24776 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
24777 `freebsd_loadenv' only when devices.hints exist.
24778
24779 2009-04-13 Pavel Roskin <proski@gnu.org>
24780
24781 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
24782
24783 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
24784
24785 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
24786 partition number.
24787 (grub_drive): Likewise.
24788
24789 2009-04-13 David S. Miller <davem@davemloft.net>
24790
24791 * kern/sparc64/ieee1275/ieee1275.c: New file.
24792 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
24793 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
24794 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
24795 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
24796 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
24797 grub_ieee1275_alloc_physmem): Declare new exported functions.
24798
24799 * include/grub/sparc64/ieee1275/loader.h: New file.
24800 * include/grub/sparc64/ieee1275/memory.h: Likewise.
24801 * include/grub/sparc64/kernel.h: Likewise.
24802 * loader/sparc64/ieee1275/linux.c: Likewise.
24803
24804 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
24805 (grub_fstest_SOURCES): Likewise.
24806
24807 * util/hostdisk.c (make_device_name): Do not make any assumptions
24808 about the length of drive names.
24809
24810 * kern/dl.c (grub_dl_load_file): Close file immediately when
24811 we are done using it.
24812
24813 2009-04-12 David S. Miller <davem@davemloft.net>
24814
24815 * kern/misc.c (grub_ltoa): Fix cast when handling negative
24816 values. Noticed by Pavel Roskin.
24817
24818 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
24819 target compiler.
24820
24821 * genmk.rb: Add more flexible image type specification, also
24822 pass --strip-unneeded to objcopy.
24823 * conf/i386-pc.rmk: Use *_FORMAT.
24824 * conf/i386-pc.mk: Rebuilt.
24825
24826 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
24827 (OFDISK_HASH_SZ): Define.
24828 (ofdisk_hash): New hash table.
24829 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
24830 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
24831 instead of device phandle which is not unique.
24832
24833 * kern/sparc64/ieee1275/init.c: Delete, replace with...
24834 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
24835 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
24836 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
24837 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
24838 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
24839 GRUB_KERNEL_MACHINE_DATA_END): Define.
24840 (grub_kernel_image_size, grub_total_module_size): Declare.
24841
24842 2009-04-12 Pavel Roskin <proski@gnu.org>
24843
24844 * configure.ac: Change the logic when we check for target tools.
24845 Do it when the target is specified and it's different from the
24846 specified value of the host.
24847
24848 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
24849
24850 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
24851 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
24852 GNU/kFreeBSD. Check if a device is a character device. Use
24853 DIOCGMEDIASIZE to get the size.
24854 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
24855 support for GNU/kFreeBSD.
24856 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
24857 is a character device instead of a block device. Add support for
24858 FreeBSD device names.
24859
24860 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
24861 is a character device instead of a block device.
24862
24863 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
24864 is a character device instead of a block device.
24865
24866 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
24867
24868 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
24869 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
24870 FreeBSD. Check if a device is a character device. Use
24871 DIOCGMEDIASIZE to get the size.
24872 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
24873 support for FreeBSD.
24874 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
24875 is a character device instead of a block device. Add support for
24876 FreeBSD device names.
24877
24878 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
24879 a character device instead of a block device.
24880 (grub_util_check_char_device): New function.
24881
24882 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
24883 a character device instead of a block device.
24884
24885 * include/grub/util/getroot.h (grub_util_check_char_device): New
24886 prototype.
24887
24888 2009-04-11 David S. Miller <davem@davemloft.net>
24889
24890 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
24891 static libgcc.
24892 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
24893 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
24894 function, if present.
24895 (__bswapdi2): Likewise.
24896
24897 * include/grub/sparc64/ieee1275/boot.h: New file.
24898 * boot/sparc64/ieee1275/boot.S: Likewise.
24899 * boot/sparc64/ieee1275/diskboot.S: Likewise.
24900
24901 * kern/misc.c (grub_ltoa): New function.
24902 (grub_vsprintf): Use it to format 'long' integers.
24903
24904 2009-04-10 David S. Miller <davem@davemloft.net>
24905
24906 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
24907 slots are of type grub_ieee1275_cell_t.
24908 (grub_nand_read): Likewise.
24909 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
24910 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
24911 macros are used to compare values in arg/ret block of the call.
24912 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
24913 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
24914 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
24915 grub_ieee1275_instance_to_path, grub_ieee1275_write,
24916 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
24917 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
24918 grub_ieee1275_close, grub_ieee1275_set_property,
24919 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
24920 grub_ieee1275_cell_t.
24921 * kern/ieee1275/openfw.c (grub_map): Likewise.
24922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
24923 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
24924
24925 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
24926 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
24927 (grub_devalias_iterate): Likewise.
24928
24929 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24930
24931 UFS improvements
24932
24933 * fs/ufs.c (INODE_NBLOCKS): new definition
24934 (struct grub_ufs_dirent): added fields for non-BSD dirents
24935 (grub_ufs_get_file_block): fixed double indirect handling
24936 (grub_ufs_lookup_symlink): use more robust way to determine whether
24937 symlink is inline
24938 (grub_ufs_find_file): support for non-BSD dirents
24939 (grub_ufs_dir): support for non-BSD dirents
24940
24941 2009-04-10 Bean <bean123ch@gnail.com>
24942
24943 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
24944 attribute, otherwise the size would be wrong for i386 platform.
24945
24946 * include/grub/pci.h (grub_pci_read_word): New inline function.
24947 (grub_pci_read_byte): Likewise.
24948 (grub_pci_write): Likewise.
24949 (grub_pci_write_word): Likewise.
24950 (grub_pci_write_byte): Likewise.
24951
24952 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
24953
24954 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
24955 (find_framebuf): Scan pci to locate the frame buffer address.
24956
24957 * commands/efi/fixvideo.c: New file.
24958
24959 * commands/efi/loadbios.c: Likewise.
24960
24961 * commands/memrw.c: Likewise.
24962
24963 * util/grub-dumpbios.in: Likewise.
24964
24965 * conf/common.rmk (grub-dumpbios): New utility.
24966 (pkglib_MODULES): New module memrw.mod.
24967 (memrw_mod_SOURCE): New macro.
24968 (memrw_mod_CFLAGS): Likewise.
24969 (memrw_mod_LDFLAGS): Likewise.
24970
24971 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
24972 fixvideo.mod.
24973 (loadbios_mod_SOURCE): New macro.
24974 (loadbios_mod_CFLAGS): Likewise.
24975 (loadbios_mod_LDFLAGS): Likewise.
24976 (fixvideo_mod_SOURCE): Likewise.
24977 (fixvideo_mod_CFLAGS): Likewise.
24978 (fixvideo_mod_LDFLAGS): Likewise.
24979
24980 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
24981 fixvideo.mod.
24982 (loadbios_mod_SOURCE): New macro.
24983 (loadbios_mod_CFLAGS): Likewise.
24984 (loadbios_mod_LDFLAGS): Likewise.
24985 (fixvideo_mod_SOURCE): Likewise.
24986 (fixvideo_mod_CFLAGS): Likewise.
24987 (fixvideo_mod_LDFLAGS): Likewise.
24988
24989 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
24990
24991 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
24992
24993 2009-04-07 David S. Miller <davem@davemloft.net>
24994
24995 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
24996 support for R_SPARC_OLO10 relocations. Fix compile warning for
24997 R_SPARC_WDISP30 case.
24998 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
24999
25000 2009-04-06 Pavel Roskin <proski@gnu.org>
25001
25002 * include/grub/misc.h (ARRAY_SIZE): New macro.
25003 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25004 New macro.
25005 * loader/i386/linux.c (allocate_pages): Use free_pages().
25006 (grub_linux_unload): Don't use free_pages().
25007 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25008 wrong index. Treat all other modes as text modes.
25009 (grub_cmd_linux): Initialize vid_mode unconditionally to
25010 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25011
25012 * commands/help.c (print_command_help): Use cmd->prio, not
25013 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25014
25015 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25016
25017 Parttool
25018
25019 * parttool/pcpart.c: new file
25020 * commands/parttool.c: likewise
25021 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25022 (parttool_mod_SOURCES): new variable
25023 (parttool_mod_CFLAGS): likewise
25024 (parttool_mod_LDFLAGS): likewise
25025 (pcpart_mod_SOURCES): likewise
25026 (pcpart_mod_CFLAGS): likewise
25027 (pcpart_mod_LDFLAGS): likewise
25028 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25029 and parttool/pcpart.c
25030 * conf/i386-efi.rmk: likewise
25031 * conf/i386-ieee1275.rmk: likewise
25032 * conf/i386-pc.rmk: likewise
25033 * conf/powerpc-ieee1275.rmk: likewise
25034 * conf/sparc64-ieee1275.rmk: likewise
25035 * conf/x86_64-ieee1275.rmk: likewise
25036
25037 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25038
25039 Support for mtime and further expandability of dir command
25040
25041 * include/grub/lib/datetime.h: moved to ...
25042 * include/grub/datetime.h: ... moved here and added
25043 declaration of grub_unixtime2datetime. All users updated
25044 * include/grub/fs.h: new syntax for dir and mtime functions in
25045 struct grub_fs
25046 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25047 and GRUB_FSHELP_FLAGS_MASK
25048 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25049 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25050 (grub_ext2_mtime): new function
25051 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25052 (grub_hfsplus_mtime): new function
25053 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25054 (GRUB_UFS_ATTR_FILE): likewise
25055 (GRUB_UFS_ATTR_LNK): likewise
25056 (struct grub_ufs_sblock): new fields mtime
25057 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25058 all users updated
25059 (grub_ufs_dir): mtime support
25060 (grub_ufs_mtime): new function
25061 * fs/affs.c (grub_affs_dir): use new dir syntax
25062 * fs/afs.c (grub_afs_dir): likewise
25063 * fs/cpio.c (grub_cpio_dir): likewise
25064 * fs/fat.c (grub_fat_find_dir): likewise
25065 * fs/hfs.c (grub_hfs_dir): likewise
25066 * fs/iso9660.c (grub_iso9660_dir): likewise
25067 * fs/jfs.c (grub_jfs_dir): likewise
25068 * fs/minix.c (grub_minix_dir): likewise
25069 * fs/ntfs.c (grub_ntfs_dir): likewise
25070 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25071 * fs/sfs.c (grub_sfs_dir): likewise
25072 * fs/xfs.c (grub_xfs_dir): likewise
25073 * util/hostfs.c (grub_hostfs_dir): likewise
25074 * lib/datetime.c: moved to ...
25075 * normal/datetime.c: ... moved here
25076 (grub_unixtime2datetime): new function
25077 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25078 * normal/completion.c (iterate_dir): use new dir syntax
25079 * normal/misc.c (grub_normal_print_device_info): tell the
25080 last modification time of a volume
25081 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25082 * conf/common.rmk: added lib/datetime.c to ls.mod
25083 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25084 (normal_mod_SOURCES): likewise
25085 (datetime_mod_SOURCES): Removed lib/datetime.c
25086 * conf/i386-efi.rmk: likewise
25087 * conf/i386-ieee1275.rmk: likewise
25088 * conf/i386-pc.rmk: likewise
25089 * conf/powerpc-ieee1275.rmk: likewise
25090 * conf/sparc64-ieee1275.rmk: likewise
25091 * conf/x86_64-efi.rmk: likewise
25092
25093 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25094
25095 Trim trailing spaces in FAT label and support mtools-like labels
25096
25097 * fs/fat.c (grub_fat_iterate_dir): New function based
25098 on grub_fat_find_dir
25099 (grub_fat_find_dir): use grub_fat_iterate_dir
25100 (grub_fat_label): likewise
25101
25102 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25103
25104 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25105 and command.h
25106 remove extraneous kernel_elf_HEADERS
25107
25108 2009-04-04 Bean <bean123ch@gnail.com>
25109
25110 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25111
25112 * util/misc.c: Likewise.
25113
25114 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25115
25116 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25117 instead of grub_printf.
25118
25119 2009-04-03 Robert Millan <rmh@aybabtu.com>
25120
25121 * loader/i386/linux.c (grub_linux_setup_video): Fill
25122 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25123 values from `mode info' structure instead of hardcoded
25124 values.
25125
25126 2009-04-01 Pavel Roskin <proski@gnu.org>
25127
25128 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25129 unused now.
25130 * genmk.rb: Likewise.
25131 * configure.ac: Likewise.
25132
25133 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25134
25135 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25136 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25137
25138 2009-04-01 David S. Miller <davem@davemloft.net>
25139
25140 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25141 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25142 (grub_setjmp): Mark with 'returns_twice' attribute.
25143 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25144 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25145 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25146
25147 2009-04-01 Robert Millan <rmh@aybabtu.com>
25148
25149 Reapply fix from 2008-07-28 which was accidentally reverted; also
25150 perform the same fix to a similar check in same function.
25151
25152 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25153 with the same number are found, just use issue a warning with
25154 grub_dprintf(), as this error has been reported to be non-fatal.
25155
25156 2009-03-31 Pavel Roskin <proski@gnu.org>
25157
25158 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25159 for cross-compilation.
25160
25161 2009-03-30 Robert Millan <rmh@aybabtu.com>
25162
25163 Fix i386-ieee1275 build.
25164
25165 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25166 Remove declaration.
25167
25168 2009-03-30 Pavel Roskin <proski@gnu.org>
25169
25170 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25171 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25172 zero-terminated, rely only on the strlen value. Fix comparison
25173 of strings differing in length.
25174
25175 2009-03-30 Robert Millan <rmh@aybabtu.com>
25176
25177 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25178 checking for abi version. Improve error messages on BIOS to notify
25179 user about `linux16' command.
25180
25181 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25182
25183 Leak fixes
25184
25185 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25186 in case of collision
25187 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25188
25189 2009-03-29 Robert Millan <rmh@aybabtu.com>
25190
25191 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25192 set `vid_mode' accordingly.
25193 (grub_linux_boot): Process `vid_mode' and set video mode.
25194
25195 2009-03-29 Robert Millan <rmh@aybabtu.com>
25196
25197 * util/grub.d/10_linux.in (linux_entry): New function.
25198 Factorize generation of Linux boot entries.
25199
25200 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25201
25202 Make the format of Environment Block plain text. The boot loader
25203 part is not tested well yet.
25204
25205 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25206 (buffer): Removed.
25207 (envblk): Likewise.
25208 (usage): Remove "info" and "clear". Add "unset". Update the
25209 description of "set", as this does not delete variables any
25210 longer.
25211 (create_envblk_file): Complete rewrite.
25212 (open_envblk_file): Likewise.
25213 (cmd_info): Removed.
25214 (cmd_list): Likewise.
25215 (cmd_set): Likewise.
25216 (cmd_clear): Likewise.
25217 (list_variables): New function.
25218 (write_envblk): Likewise.
25219 (set_variables): Likewise.
25220 (unset_variables): Likewise.
25221 (main): Complete rewrite.
25222
25223 * commands/loadenv.c (buffer): Removed.
25224 (envblk): Likewise.
25225 (open_envblk_file): New function.
25226 (read_envblk_file): Complete rewrite.
25227 (grub_cmd_load_env): Likewise.
25228 (grub_cmd_list_env): Likewise.
25229 (struct blocklist): New struct.
25230 (free_blocklists): New function.
25231 (check_blocklists): Likewise.
25232 (write_blocklists): Likewise.
25233 (grub_cmd_save_env): Complete rewrite.
25234
25235 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25236 a plain text signature.
25237 (GRUB_ENVBLK_MAXLEN): Removed.
25238 (struct grub_envblk): Complete rewrite.
25239 (grub_envblk_find): Removed.
25240 (grub_envblk_insert): Likewise.
25241 (grub_envblk_open): New prototype.
25242 (grub_envblk_set): Likewise.
25243 (grub_envblk_delete): Put const to VALUE.
25244 (grub_envblk_iterate): Put const to NAME and VALUE.
25245 (grub_envblk_close): New prototype.
25246 (grub_envblk_buffer): New inline function.
25247 (grub_envblk_size): Likewise.
25248
25249 * lib/envblk.c: Include grub/mm.h.
25250 (grub_env_find): Removed.
25251 (grub_envblk_open): New function.
25252 (grub_envblk_close): Likewise.
25253 (escaped_value_len): Likewise.
25254 (find_next_line): Likewise.
25255 (grub_envblk_insert): Removed.
25256 (grub_envblk_set): New function.
25257 (grub_envblk_delete): Complete rewrite.
25258 (grub_envblk_iterate): Likewise.
25259
25260 2009-03-28 Robert Millan <rmh@aybabtu.com>
25261
25262 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25263 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25264 variables. Use 16-bit loader.
25265 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25266 loader.
25267 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25268 (grub_linux16_boot): ... this. Update all users.
25269 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25270 (grub_linux_boot): ... this. Update all users.
25271
25272 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25273 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25274 commands to `linux16' and `initrd16'.
25275 (GRUB_MOD_FINI(linux)): Rename to ...
25276 (GRUB_MOD_FINI(linux16)): ... this.
25277
25278 2009-03-24 Pavel Roskin <proski@gnu.org>
25279
25280 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25281 not just for compilation.
25282
25283 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25284
25285 Move multiboot helper out of kernel
25286
25287 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25288 `loader/i386/multiboot_helper.S'.
25289 * conf/i386-coreboot.rmk: Likewise
25290 * conf/i386-ieee1275.rmk: Likewise
25291
25292 * kern/i386/loader.S: Move multiboot helpers from here...
25293 * loader/i386/multiboot_helper.S: ...moved here
25294 * include/grub/i386/loader.h: Move declarations of multiboot
25295 helpers from here...
25296 * include/grub/i386/multiboot.h: ...moved here
25297 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25298
25299 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25300
25301 * kern/env.c (grub_env_context_open): Added an argument to specify
25302 whether a new context inherits exported variables from current
25303 one. This is useful when making a sandbox to interpret a config
25304 file.
25305 All callers updated.
25306
25307 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25308
25309 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25310
25311 * kern/env.c (grub_env_context_close): Fix memory leaks.
25312
25313 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25314
25315 * normal/main.c (grub_normal_execute): Added an argument
25316 BATCH to specify if an interactive interface should be provided
25317 after reading a config file.
25318 All callers updated.
25319 (read_command_list): Prevent being executed twice.
25320 (read_fs_list): Likewise.
25321
25322 * include/grub/normal.h (grub_normal_execute): Updated the
25323 prototype.
25324
25325 2009-03-22 Pavel Roskin <proski@gno.org>
25326
25327 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
25328 _start.
25329 * kern/i386/pc/startup.S: Likewise.
25330 * kern/i386/efi/startup.S: Likewise.
25331 * kern/i386/ieee1275/startup.S: Likewise.
25332 * kern/i386/coreboot/startup.S: Likewise.
25333 * kern/x86_64/efi/startup.S: Likewise.
25334
25335 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
25336 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
25337 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
25338
25339 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
25340
25341 Bugfixes in multiboot for bugs uncovered by solaris kernel.
25342
25343 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
25344 limit detection.
25345 Use vaddr of correct segment for entry_point.
25346
25347 2009-03-21 Bean <bean123ch@gmail.com>
25348
25349 * commands/blocklist.c: Add include file <grub/command.h>, remove
25350 <grub/normal.h> and <grub/arg.h>.
25351 (grub_cmd_blocklist): Use the new command interface.
25352 (GRUB_MOD_INIT): Likewise.
25353 (GRUB_MOD_FINI): Likewise.
25354 * commands/boot.c: Likewise.
25355 * commands/cat.c: Likewise.
25356 * commands/cmp.c: Likewise.
25357 * commands/configfile.c: Likewise.
25358 * commands/crc.c: Likewise.
25359 * commands/echo.c: Likewise.
25360 * commands/halt.c: Likewise.
25361 * commands/handler.c: Likewise.
25362 * commands/hdparm.c: Likewise.
25363 * commands/help.c: Likewise.
25364 * commands/hexdump.c: Likewise.
25365 * commands/loadenv.c: Likewise.
25366 * commands/ls.c: Likewise.
25367 * commands/lsmmap.c: Likewise.
25368 * commands/lspci.c: Likewise.
25369 * commands/loadenv.c: Likewise.
25370 * commands/read.c: Likewise.
25371 * commands/reboot.c: Likewise.
25372 * commands/search.c: Likewise.
25373 * commands/sleep.c: Likewise.
25374 * commands/test.c: Likewise.
25375 * commands/usbtest.c: Likewise.
25376 * commands/videotest.c: Likewise.
25377 * commands/i386/cpuid.c: Likewise.
25378 * commands/i386/pc/halt.c: Likewise.
25379 * commands/i386/pc/play.c: Likewise.
25380 * commands/i386/pc/pxecmd.c: Likewise.
25381 * commands/i386/pc/vbeinfo.c: Likewise.
25382 * commands/i386/pc/vbetest.c: Likewise.
25383 * commands/ieee1275/suspend.c: Likewise.
25384 * disk/loopback.c: Likewise.
25385 * font/font_cmd.c: Likewise.
25386 * hello/hello.c: Likewise.
25387 * loader/efi/appleloader.c: Likewise.
25388 * loader/efi/chainloader.c: Likewise.
25389 * loader/i386/bsd.c: Likewise.
25390 * loader/i386/efi/linux.c: Likewise.
25391 * loader/i386/ieee1275/linux.c: Likewise.
25392 * loader/i386/linux.c: Likewise.
25393 * loader/i386/pc/chainloader.c: Likewise.
25394 * loader/i386/pc/linux.c: Likewise.
25395 * loader/powerpc/ieee1275/linux.c: Likewise.
25396 * loader/multiboot_loader.c: Likewise.
25397 * term/gfxterm.c: Likewise.
25398 * term/i386/pc/serial.c: Likewise.
25399 * term/terminfo.c: Likewise.
25400
25401 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
25402 * term/i386/pc/vga.c: Likewise.
25403 * video/readers/jpeg.c: Likewise.
25404 * video/readers/png.c: Likewise.
25405 * video/readers/tga.c: Likewise.
25406
25407 * util/grub-fstest (cmd_loopback): Removed.
25408 (cmd_blocklist): Likewise.
25409 (cmd_ls): Likewise.
25410 (grub_register_command): Likewise.
25411 (grub_unregister_command): Likewise.
25412 (execute_command): Use grub_command_find to locate command and execute
25413 it.
25414
25415 * include/grub/efi/chainloader.h: Removed.
25416 * loader/efi/chainloader_normal.c: Likewise.
25417 * loader/i386/bsd_normal.c: Likewise.
25418 * loader/i386/pc/chainloader_normal.c: Likewise.
25419 * loader/i386/pc/multiboot_normal.c: Likewise.
25420 * loader/linux_normal.c: Likewise.
25421 * loader/multiboot_loader_normal.c: Likewise.
25422 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25423
25424 * gencmdlist.sh: Scan new registration command grub_register_extcmd
25425 and grub_register_command_p1.
25426
25427 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
25428 kern/command.c, lib/arg.c and commands/extcmd.c.
25429 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
25430 (minicmd_mod_SOURCES): New variable.
25431 (minicmd_mod_CFLAGS): Likewise.
25432 (minicmd_mod_LDFLAGS): Likewise.
25433 (extcmd_mod_SOURCES): Likewise.
25434 (extcmd_mod_CFLAGS): Likewise.
25435 (extcmd_mod_LDFLAGS): Likewise.
25436 (boot_mod_SOURCES): Removed.
25437 (boot_mod_CFLAGS): Likewise.
25438 (boot_mod_LDFLAGS): Likewise.
25439
25440 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
25441 kern/corecmd.c.
25442 (kernel_img_HEADERS): Add command.h.
25443 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
25444 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
25445 and lib/arg.c.
25446 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
25447 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
25448 remove the corresponding normal mode command.
25449 (normal_mod_SOURCES): Remove normal/arg.c.
25450 * conf/i386-coreboot.rmk: Likewise.
25451 * conf/i386-efi.rmk: Likewise.
25452 * conf/i386-ieee1275.rmk: Likewise.
25453 * conf/powerpc-ieee1275.rmk: Likewise.
25454 * conf/x86_64-efi.rmk: Likewise.
25455
25456 * include/grub/arg.h: Move from here ...
25457 * include/grub/lib/arg.h: ... to here.
25458
25459 * normal/arg.c: Move from here ...
25460 * lib/arg.c: ... to here.
25461
25462 * commands/extcmd.c: New file.
25463 * commands/minicmd.c: Likewise.
25464 * include/grub/command.h: Likewise.
25465 * include/grub/extcmd.h: Likewise.
25466 * kern/command.c: Likewise.
25467 * kern/corecmd.c: Likewise.
25468
25469 * kern/list.c (grub_list_iterate): Return int instead of void.
25470 (grub_list_insert): New function.
25471 (grub_prio_list_insert): Likewise.
25472
25473 * kern/rescue.c (grub_rescue_command): Removed.
25474 (grub_rescue_command_list): Likewise.
25475 (grub_rescue_register_command): Likewise.
25476 (grub_rescue_unregister_command): Likewise.
25477 (grub_rescue_cmd_boot): Move to minicmd.c
25478 (grub_rescue_cmd_help): Likewise.
25479 (grub_rescue_cmd_info): Likewise.
25480 (grub_rescue_cmd_boot): Likewise.
25481 (grub_rescue_cmd_testload): Likewise.
25482 (grub_rescue_cmd_dump): Likewise.
25483 (grub_rescue_cmd_rmmod): Likewise.
25484 (grub_rescue_cmd_lsmod): Likewise.
25485 (grub_rescue_cmd_exit): Likewise.
25486 (grub_rescue_print_devices): Moved to corecmd.c.
25487 (grub_rescue_print_files): Likewise.
25488 (grub_rescue_cmd_ls): Likewise.
25489 (grub_rescue_cmd_insmod): Likewise.
25490 (grub_rescue_cmd_set): Likewise.
25491 (grub_rescue_cmd_unset): Likewise.
25492 (attempt_normal_mode): Use grub_command_find to get normal module.
25493 (grub_enter_rescue_mode): Use grub_register_core_commands to register
25494 commands, remove grub_rescue_register_command calls.
25495
25496 * normal/command.c (grub_register_command): Removed.
25497 (grub_unregister_command): Likewise.
25498 (grub_command_find): Likewise.
25499 (grub_iterate_commands): Likewise.
25500 (rescue_command): Likewise.
25501 (export_command): Moved to corecmd.c.
25502 (set_command): Removed.
25503 (unset_command): Likewise.
25504 (insmod_command): Likewise.
25505 (rmmod_command): Likewise.
25506 (lsmod_command): Likewise.
25507 (grub_command_init): Likewise.
25508
25509 * normal/completion.c (iterate_command): Use cmd->prio to check for
25510 active command.
25511 (complete_arguments): Use grub_extcmd_t structure to find options.
25512 (grub_normal_do_completion): Change function grub_iterate_commands to
25513 grub_command_iterate.
25514
25515 * normal/execute.c (grub_script_execute_cmd): No need to parse
25516 argument here.
25517
25518 * normal/main.c (grub_dyncmd_dispatcher): New function.
25519 (read_command_list): Register unload commands as dyncmd.
25520 (grub_cmd_normal): Use new command interface, register rescue,
25521 unregister normal at entry, register normal, unregister rescue at exit.
25522
25523 * include/grub/list.h (grub_list_test_t): New type.
25524 (grub_list_iterate): Return int instead of void.
25525 (grub_list_insert): New function.
25526 (GRUB_AS_NAMED_LIST_P): New macro.
25527 (GRUB_AS_PRIO_LIST): Likewise.
25528 (GRUB_AS_PRIO_LIST_P): Likewise.
25529 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
25530 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
25531 (grub_prio_list): New structure.
25532 (grub_prio_list_insert): New function.
25533 (grub_prio_list_remove): New inline function.
25534
25535 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
25536 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
25537 (GRUB_COMMAND_FLAG_MENU): Likewise.
25538 (GRUB_COMMAND_FLAG_BOTH): Likewise.
25539 (GRUB_COMMAND_FLAG_TITLE): Likewise.
25540 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
25541 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
25542 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
25543 (grub_command): Likewise.
25544 (grub_register_command): Likewise.
25545 (grub_command_find): Likewise.
25546 (grub_iterate_commands): Likewise.
25547 (grub_command_init): Likewise.
25548 (grub_arg_parse): Likewise.
25549 (grub_arg_show_help): Likewise.
25550
25551 * include/grub/rescue.h (grub_rescue_register_command): Removed.
25552 (grub_rescue_unregister_command): Likewise.
25553
25554 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
25555 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
25556 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
25557
25558 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
25559 grub_rescue_cmd_initrd.
25560 * include/grub/i386/loader.h: Likewise.
25561 * include/grub/x86_64/loader.h: Likewise.
25562
25563 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
25564
25565 2009-03-21 Bean <bean123ch@gmail.com>
25566
25567 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
25568 instead of stat in mingw environment.
25569
25570 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
25571
25572 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
25573
25574 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
25575 AC_CONFIG_LINKS.
25576
25577 2009-03-21 Bean <bean123ch@gmail.com>
25578
25579 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
25580 out of range error.
25581
25582 2009-03-18 Michel Dänzer <michel@daenzer.net>
25583
25584 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
25585 checking inode flags for EXT4_EXTENTS_FLAG.
25586
25587 2009-03-18 Robert Millan <rmh@aybabtu.com>
25588
25589 * loader/i386/linux.c: Include `<grub/video.h>' and
25590 `<grub/i386/pc/vbe.h>'..
25591 (grub_linux_setup_video): New function. Loosely based on the EFI one.
25592 (grub_linux32_boot): Attempt to configure video settings with
25593 grub_linux_setup_video().
25594 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
25595 to avoid grub_console_fini() which would step out of graphical mode
25596 unconditionally.
25597
25598 2009-03-14 Robert Millan <rmh@aybabtu.com>
25599
25600 Fix build on powerpc.
25601 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
25602
25603 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
25604
25605 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
25606 background image command.
25607
25608 2009-03-12 Colin D Bennett <colin@gibibit.com>
25609
25610 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
25611 (grub_gfxterm_putchar): Extract pairs of identical calls to
25612 draw_cursor out of conditional blocks.
25613
25614 2009-03-11 Pavel Roskin <proski@gnu.org>
25615
25616 * fs/hfs.c (grub_hfs_strncasecmp): New function.
25617 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
25618
25619 2009-03-11 Robert Millan <rmh@aybabtu.com>
25620
25621 * loader/i386/multiboot_elfxx.c
25622 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
25623
25624 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
25625
25626 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
25627 `kern/handler.c'.
25628
25629 2009-03-11 Robert Millan <rmh@aybabtu.com>
25630
25631 * loader/i386/multiboot.c (code_size): New variable.
25632 (grub_multiboot): Define offsets by adding to `code_size' rather
25633 than subtracting from `grub_multiboot_payload_size'. Provide
25634 4-byte alignment to MBI and others by increasing
25635 `boot_loader_name_length' appropriately.
25636
25637 * loader/i386/multiboot_elfxx.c
25638 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
25639
25640 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
25641
25642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
25643 `fs/ext2.c'.
25644
25645 2009-03-08 Robert Millan <rmh@aybabtu.com>
25646
25647 Make loader/i386/linux.c usable on i386-pc again.
25648
25649 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
25650 memory to heap.
25651 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
25652 `#error' stanza.
25653
25654 2009-03-07 Bean <bean123ch@gmail.com>
25655
25656 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
25657 allocation.
25658
25659 2009-03-06 Robert Millan <rmh@aybabtu.com>
25660
25661 Fix display issue on terminals with screen size other than 80x25
25662 (e.g. gfxterm with resolution higher than 640x480).
25663
25664 * normal/main.c (grub_normal_init_page): Display title text in a
25665 position relative to the center of the terminal instead of relying
25666 on a hardcoded offset.
25667
25668 2009-03-04 Robert Millan <rmh@aybabtu.com>
25669
25670 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
25671 installed.
25672
25673 * Makefile.in (host_kernel): New variable.
25674 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
25675 scripts instead of just the windows one.
25676 * configure.ac: Initialize and AC_SUBST `host_kernel'.
25677
25678 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25679
25680 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
25681 `kern/handler.c'.
25682 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25683 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
25684 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
25685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25686 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25687 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25688
25689 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25690
25691 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
25692 or if there's no space for the disk label and print the partition number on a
25693 invalid magic.
25694
25695 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
25696
25697 * util/misc.c: Include <time.h>.
25698 (grub_millisleep): New function.
25699
25700 2009-03-04 Bean <bean123ch@gmail.com>
25701
25702 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
25703 another option -mno-red-zone.
25704
25705 * commands/handler.c: Change module description.
25706
25707 * kern/handler.c: Add missing space at the end of description line.
25708
25709 * kern/list.c: Likewise.
25710
25711 2009-03-03 Robert Millan <rmh@aybabtu.com>
25712
25713 Move more components to the relocation area, and fix mbi pointer
25714 handling to use the destination rather than the origin (thanks to
25715 Vladimir Serbinenko for spotting).
25716
25717 * loader/i386/multiboot.c (mbi_dest): New variable.
25718 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
25719 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
25720 relocation area.
25721
25722 2009-03-01 Bean <bean123ch@gmail.com>
25723
25724 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
25725 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
25726 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
25727 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
25728
25729 * loader/i386/efi/linux.c (acpi_guid): New variable.
25730 (acpi_guid): Likewise.
25731 (EBDA_SEG_ADDR): New constant.
25732 (LOW_MEM_ADDR): Likewise.
25733 (FAKE_EBDA_SEG): Likewise.
25734 (fake_bios_data): New function.
25735 (grub_linux_boot): Call fake_bios_data.
25736
25737 2009-03-01 Bean <bean123ch@gmail.com>
25738
25739 * commands/terminal.c: Removed.
25740
25741 * commands/handler.c: New file.
25742
25743 * include/grub/list.h: Likewise.
25744
25745 * include/grub/handler.h: Likewise.
25746
25747 * kern/list.c: Likewise.
25748
25749 * kern/handler.c: Likewise.
25750
25751 * kern/term.h: Include header file <grub/handler.h>.
25752 (grub_term_input): Move next field to the beginning.
25753 (grub_term_output): Likewise.
25754 (grub_term_input_class): New variable.
25755 (grub_term_output_class): Likewise.
25756 (grub_term_register_input): Changed to inline function.
25757 (grub_term_register_output): Likewise.
25758 (grub_term_unregister_input): Likewise.
25759 (grub_term_unregister_output): Likewise.
25760 (grub_term_set_current_input): Likewise.
25761 (grub_term_set_current_output): Likewise.
25762 (grub_term_get_current_input): Likewise.
25763 (grub_term_get_current_output): Likewise.
25764 (grub_term_iterate_input): Removed.
25765 (grub_term_iterate_output): Likewise.
25766
25767 * kern/term.c (grub_term_list_input): Removed.
25768 (grub_term_list_output): Likewise.
25769 (grub_term_input_class): New variable.
25770 (grub_term_output_class): Likewise.
25771 (grub_cur_term_input): Change variable as macro.
25772 (grub_cur_term_output): Likewise.
25773 (grub_term_register_input): Removed.
25774 (grub_term_register_output): Likewise.
25775 (grub_term_unregister_input): Likewise.
25776 (grub_term_unregister_output): Likewise.
25777 (grub_term_set_current_input): Likewise.
25778 (grub_term_set_current_output): Likewise.
25779 (grub_term_iterate_input): Likewise.
25780 (grub_term_iterate_output): Likewise.
25781 (grub_term_get_current_input): Likewise.
25782 (grub_term_get_current_output): Likewise.
25783
25784 * util/grub-editenv.c: Include header file <grub/handler.h>.
25785 (grub_term_get_current_input): Removed.
25786 (grub_term_get_current_output): Likewise.
25787 (grub_term_input_class): New variable.
25788 (grub_term_output_class): Likewise.
25789
25790 * util/grub-fstest.c (grub_term_get_current_input): Removed.
25791 (grub_term_get_current_output): Likewise.
25792 (grub_term_input_class): New variable.
25793 (grub_term_output_class): Likewise.
25794
25795 * util/grub-probe.c (grub_term_get_current_input): Removed.
25796 (grub_term_get_current_output): Likewise.
25797 (grub_term_input_class): New variable.
25798 (grub_term_output_class): Likewise.
25799
25800 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
25801 (grub_term_get_current_output): Likewise.
25802 (grub_term_input_class): New variable.
25803 (grub_term_output_class): Likewise.
25804
25805 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
25806 (terminal_mod_SOURCES): Likewise.
25807 (terminal_mod_CFLAGS): Likewise.
25808 (terminal_mod_LDFLAGS): Likewise.
25809
25810 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
25811 handler.c.
25812 (kernel_img_SOURCES): Add list.c and handler.c.
25813 (kernel_img_HEADERS): Add list.h and handler.h.
25814
25815 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25816 handler.c.
25817 (kernel_mod_SOURCES): Add list.c and handler.c.
25818 (kernel_mod_HEADERS): Add list.h and handler.h.
25819
25820 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
25821 handler.c.
25822 (kernel_elf_SOURCES): Add list.c and handler.c.
25823 (kernel_elf_HEADERS): Add list.h and handler.h.
25824
25825 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25826 handler.c.
25827 (kernel_elf_SOURCES): Add list.c and handler.c.
25828 (kernel_elf_HEADERS): Add list.h and handler.h.
25829
25830 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
25831 handler.c.
25832 (kernel_mod_SOURCES): Add list.c and handler.c.
25833 (kernel_mod_HEADERS): Add list.h and handler.h.
25834
25835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
25836 handler.c.
25837 (kernel_elf_SOURCES): Add list.c and handler.c.
25838 (kernel_elf_HEADERS): Add list.h and handler.h.
25839
25840 2009-02-27 Robert Millan <rmh@aybabtu.com>
25841
25842 Factorize elf32 / elf64 code in Multiboot loader. This will
25843 prevent it from getting out of sync again.
25844
25845 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
25846 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
25847 grub_multiboot_load_elf64): Move from here ...
25848 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
25849 grub_multiboot_load_elf): ... to here (new file).
25850
25851 2009-02-27 Robert Millan <rmh@aybabtu.com>
25852
25853 * util/grub.d/10_linux.in: Rename "single-user mode" to
25854 "recovery mode".
25855
25856 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
25857
25858 Don't leak in SCSI code.
25859 * disk/scsi.c (grub_scsi_close): free `scsi'.
25860
25861 2009-02-27 Robert Millan <rmh@aybabtu.com>
25862
25863 * loader/i386/pc/multiboot.c: Move from here ...
25864 * loader/i386/multiboot.c: ... to here. Update all users.
25865
25866 2009-02-27 Robert Millan <rmh@aybabtu.com>
25867
25868 Patch from Alexandre Bique <bique.alexandre@gmail.com>
25869 * util/i386/pc/grub-setup.c (setup): Fix directory path.
25870
25871 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
25872
25873 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
25874 b-tree.
25875
25876 2009-02-27 Robert Millan <rmh@aybabtu.com>
25877
25878 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
25879 `0x' qualifier as 0 when base is specified as parameter).
25880
25881 2009-02-24 Bean <bean123ch@gmail.com>
25882
25883 * configure.ac: Check for -mcmodel=large in x86_64 target.
25884
25885 * include/grub/efi/api.h (efi_call_10): New macro.
25886 (efi_wrap_10): New function.
25887
25888 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
25889 (GRUB_PE32_REL_BASED_HIGH): Likewise.
25890 (GRUB_PE32_REL_BASED_LOW): Likewise.
25891 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
25892 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
25893 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
25894 (GRUB_PE32_REL_BASED_SECTION): Likewise.
25895 (GRUB_PE32_REL_BASED_REL): Likewise.
25896 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
25897 (GRUB_PE32_REL_BASED_DIR64): Likewise.
25898 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
25899
25900 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
25901 issue.
25902
25903 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
25904 (efi_wrap_10): New function.
25905
25906 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
25907
25908 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
25909 MB/MBP model (NV chipset).
25910 (devdata_devs): Add devpath_5 to the list.
25911
25912 * load/i386/efi/linux.c (video_base): Remove variable.
25913 (RGB_MASK): New macro.
25914 (RGB_MAGIC): Likewise.
25915 (LINE_MIN): Likewise.
25916 (LINE_MAX): Likewise.
25917 (FBTEST_STEP): Likewise.
25918 (FBTEST_COUNT): Likewise.
25919 (fb_list): New variable.
25920 (grub_find_video_card): Remove function.
25921 (find_framebuf): New function.
25922 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
25923 line length.
25924
25925 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
25926 problem for x86_64.
25927
25928 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
25929
25930 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
25931
25932 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
25933 coding tool name.
25934
25935 2009-02-22 Robert Millan <rmh@aybabtu.com>
25936
25937 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
25938 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
25939 in our relocation, instead of using it directly from heap. Also
25940 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
25941
25942 2009-02-21 Robert Millan <rmh@aybabtu.com>
25943
25944 Implement USB keyboard support (based on patch by Marco Gerards)
25945
25946 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
25947 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
25948 (usb_keyboard_mod_LDFLAGS): New variables.
25949
25950 * term/usb_keyboard.c: New file.
25951
25952 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25953
25954 Corrected wrong declaration
25955
25956 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
25957
25958 2009-02-14 Christian Franke <franke@computer.org>
25959
25960 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
25961 (grub_lspci_iter): Print class code and programming interface byte.
25962
25963 2009-02-14 Christian Franke <franke@computer.org>
25964
25965 * gendistlist.sh: Ignore `.svn' directories.
25966
25967 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
25968
25969 * fs/fat.c: Add 2009 to Copyright line.
25970
25971 2009-02-14 Christian Franke <franke@computer.org>
25972
25973 * commands/hdparm.c: New file. Provides `hdparm' command
25974 which sends ATA commands via grub_disk_ata_pass_through ().
25975
25976 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
25977
25978 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
25979 and <grub/cpu/io.h> to include/grub/ata.h.
25980 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
25981 (GRUB_CDROM_SECTOR_SIZE): Remove.
25982 (GRUB_ATA_*): Move to include/grub/ata.h.
25983 (GRUB_ATAPI_*): Likewise.
25984 (enum grub_ata_commands): Likewise.
25985 (enum grub_ata_timeout_milliseconds): Likewise.
25986 (struct grub_ata_device): Likewise.
25987 (grub_ata_regset): Likewise.
25988 (grub_ata_regget): Likewise.
25989 (grub_ata_regset2): Likewise.
25990 (grub_ata_regget2): Likewise.
25991 (grub_ata_check_ready): Likewise.
25992 (grub_ata_wait_not_busy): Remove static, exported in
25993 include/grub/ata.h.
25994 (grub_ata_wait_drq): Likewise.
25995 (grub_ata_pio_read): Likewise.
25996
25997 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
25998 function for hdparm.mod.
25999
26000 * include/grub/ata.h: New file, contains declarations from
26001 disk/ata.c.
26002 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26003
26004 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26005 (grub_disk_ata_pass_through): New exported variable.
26006
26007 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26008
26009 2009-02-13 Colin D Bennett <colin@gibibit.com>
26010
26011 Support multiple fallback entries, and provide an API to support
26012 executing default+fallback menu entries. Renamed the `terminal' menu
26013 viewer to `text'.
26014
26015 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26016 variable declaration.
26017 (grub_menu_execute_callback): New structure declaration.
26018 (grub_menu_execute_callback_t): New typedef.
26019 (grub_menu_execute_with_fallback): New function declaration.
26020 (grub_menu_get_entry): Likewise.
26021 (grub_menu_get_timeout): Likewise.
26022 (grub_menu_set_timeout): Likewise.
26023
26024 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26025
26026 * normal/menu.c (grub_wait_after_message): Moved to
26027 `normal/menu_text.c'.
26028 (draw_border): Likewise.
26029 (print_message): Likewise.
26030 (print_entry): Likewise.
26031 (print_entries): Likewise.
26032 (grub_menu_init_page): Likewise.
26033 (get_entry_number): Likewise.
26034 (print_timeout): Likewise.
26035 (run_menu): Likewise.
26036 (grub_menu_execute_entry): Likewise.
26037 (show_text_menu): Likewise.
26038 (get_and_remove_first_entry_number): New function.
26039 (grub_menu_execute_with_fallback): Likewise.
26040 (get_entry): Renamed to ...
26041 (grub_menu_get_entry): .. this and made it global.
26042 (get_timeout): Renamed to ...
26043 (grub_menu_get_timeout): ... this and made it global.
26044 (set_timeout): Renamed to ...
26045 (grub_menu_set_timeout): ... this and made it global.
26046 (grub_normal_terminal_menu_viewer): Renamed to ...
26047 (grub_normal_text_menu_viewer): ... this.
26048
26049 * normal/menu_text.c: New file. Extracted text-menu-specific code
26050 from normal/menu.c.
26051
26052 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26053 (normal_mod_SOURCES): Likewise.
26054
26055 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26056 (normal_mod_SOURCES): Likewise.
26057
26058 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26059 (normal_mod_SOURCES): Likewise.
26060
26061 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26062 (normal_mod_SOURCES): Likewise.
26063
26064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26065 (normal_mod_SOURCES): Likewise.
26066
26067 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26068 (normal_mod_SOURCES): Likewise.
26069
26070 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26071 (normal_mod_SOURCES): Likewise.
26072
26073 2009-02-11 Robert Millan <rmh@aybabtu.com>
26074
26075 * util/grub.d/00_header.in: Update old reference to `font' command.
26076
26077 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26078
26079 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26080
26081 Based on patch from Javier Martín.
26082
26083 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26084
26085 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26086 to avoid false positives with FAT.
26087 (grub_fstest_SOURCES): Likewise.
26088 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26092 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26093 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26094
26095 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26096
26097 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26098 bpb.version_specific.fat12_or_fat16.fstype and
26099 bpb.version_specific.fat32.fstype.
26100
26101 2009-02-08 Robert Millan <rmh@aybabtu.com>
26102
26103 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26104
26105 2009-02-08 Robert Millan <rmh@aybabtu.com>
26106
26107 * Makefile.in (host_os, host_cpu): New variables.
26108 (target_os): Remove. Update all users.
26109
26110 2009-02-08 Marco Gerards <marco@gnu.org>
26111
26112 * Makefile.in (enable_grub_emu_usb): New variable.
26113 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26114 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26115 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26116 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26117 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26118 `usbtest.mod' and `usbms.mod'.
26119 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26120 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26121 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26122 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26123 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26124 variables.
26125
26126 * disk/usbms.c: New file.
26127
26128 * include/grub/usb.h: Likewise.
26129
26130 * include/grub/usbtrans.h: Likewise.
26131
26132 * include/grub/usbdesc.h: Likewise.
26133
26134 * bus/usb/usbtrans.c: Likewise.
26135
26136 * bus/usb/ohci.c: Likewise.
26137
26138 * bus/usb/uhci.c: Likewise.
26139
26140 * bus/usb/usbhub.c: Likewise.
26141
26142 * bus/usb/usb.c: Likewise.
26143
26144 * commands/usbtest.c: Likewise.
26145
26146 * util/usb.c: Likewise.
26147
26148 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26149
26150 * configure.ac: Test for libusb presence.
26151
26152 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26153
26154 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26155
26156 * kern/mm.c: Add more comments.
26157
26158 2009-02-08 Robert Millan <rmh@aybabtu.com>
26159
26160 Patch from Javier Martín.
26161 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26162 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26163
26164 2009-02-08 Robert Millan <rmh@aybabtu.com>
26165
26166 * fs/cpio.c: Split tar functionality to ...
26167 * fs/tar.c: ... here (new file). Update all users.
26168
26169 2009-02-07 Robert Millan <rmh@aybabtu.com>
26170
26171 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26172 backward-incompatible features.
26173
26174 Based on patch from Javier Martín, with some adjustments.
26175
26176 2009-02-07 Michael Scherer <misc@mandriva.org>
26177
26178 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26179
26180 2009-02-07 Robert Millan <rmh@aybabtu.com>
26181
26182 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26183 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26184 after the RAID stuff.
26185
26186 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26187
26188 Fixes problem when running vbetest command as reported by
26189 Vladimir Serbinenko <phcoder@gmail.com>.
26190
26191 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26192
26193 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26194
26195 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26196 /dev/md/NpN style mdraid devices.
26197
26198 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26199
26200 * util/unifont2pff.rb: Remove.
26201
26202 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26203
26204 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26205 `#'.
26206
26207 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26208
26209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26211 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26212 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26214 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26215 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26216
26217 2009-02-02 Christian Franke <franke@computer.org>
26218
26219 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26220
26221 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26222
26223 * INSTALL: Note that we now require at least autoconf 2.59 and
26224 that LZO is optional.
26225
26226 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26227
26228 Base on patch on bug #24154 created by Tomas Tintera
26229 <trosos@seznam.cz>.
26230
26231 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26232
26233 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26234
26235 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26236 <bero@arklinux.org>.
26237
26238 * normal/parser.y (script_init): Add missing semicolon.
26239
26240 2009-01-31 Colin D Bennett <colin@gibibit.com>
26241
26242 * normal/main.c: Add include to grub/menu_viewer.h.
26243 (free_menu_entry_classes): Added.
26244 (grub_normal_menu_addentry): Added class property handling.
26245 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26246 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26247
26248 * normal/menu_viewer.c: New file.
26249
26250 * normal/menu.c (run_menu_entry): Renamed to ...
26251 (grub_menu_execute_entry): ... this and made it as global.
26252 (grub_menu_run): Renamed to ...
26253 (show_text_menu): ... this and made it local.
26254 (show_text_menu): Adapt to new function names.
26255 (grub_normal_terminal_menu_viewer): New global variable.
26256
26257 * include/grub/menu.h: New file.
26258
26259 * include/grub/menu_viewer.h: New file.
26260
26261 * include/grub/normal.h: Added include to grub/menu.h.
26262 (grub_menu_entry): Moved to include/grub/menu.h.
26263 (grub_menu_entry_t): Likewise.
26264 (grub_menu): Likewise.
26265 (grub_menu_t): Likewise.
26266 (grub_normal_terminal_menu_viewer): Added.
26267 (grub_menu_execute_entry): Likewise.
26268 (grub_menu_run): Removed.
26269
26270 * DISTLIST: Added include/grub/menu.h.
26271 Added include/grub/menu_viewer.h.
26272 Added normal/menu_viewer.c.
26273
26274 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26275
26276 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26277 arglist for menutitle arguments.
26278
26279 * normal/main.c (grub_normal_menu_addentry): Likewise.
26280
26281 * normal/parser.y (menuentry): Likewise.
26282
26283 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26284
26285 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26286 (grub_script_create_cmdmenu): Likewise.
26287
26288 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26289
26290 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26291 changes.
26292
26293 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26294
26295 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26296
26297 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26298
26299 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26300
26301 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26302
26303 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26304
26305 2009-01-30 Christian Franke <franke@computer.org>
26306
26307 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26308 in option help text.
26309
26310 2009-01-27 Pavel Roskin <proski@gnu.org>
26311
26312 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26313
26314 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26315
26316 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26317
26318 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26319
26320 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26321 unregister function.
26322
26323 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26324
26325 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26326
26327 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
26328
26329 * util/grub-mkfont.c (usage): Fix typo.
26330
26331 * util/elf/grub-mkimage.c (load_modules): Fix warning.
26332
26333 2009-01-26 Daniel Mierswa <impulze@impulze.org>
26334
26335 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
26336
26337 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
26338
26339 * kern/misc.c (grub_strcasecmp): New function.
26340 (grub_strcasecmp): Use grub_size_t instead of int for length.
26341 Fix return value.
26342 * include/grub/misc.h: Update function prototypes.
26343
26344 2009-01-26 Robert Millan <rmh@aybabtu.com>
26345
26346 * configure.ac: Fix cross-compilation check.
26347
26348 2009-01-22 Christian Franke <franke@computer.org>
26349
26350 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
26351 (precision) digit string. Allow `.format2' without `format1' (width).
26352 Limit input chars for `%s' output to `format2' if specified. This is
26353 compatible with standard printf ().
26354
26355 2009-01-22 Christian Franke <franke@computer.org>
26356
26357 * disk/ata.c (grub_ata_wait_status): Replace by ...
26358 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
26359 other status bits may be invalid while BSY is asserted.
26360 (grub_ata_check_ready): New function.
26361 (grub_ata_cmd): Removed.
26362 (grub_ata_wait_drq): New function.
26363 (grub_ata_strncpy): Remove inline.
26364 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
26365 and error check now done by grub_ata_wait_drq ().
26366 (grub_ata_pio_write): Likewise.
26367 (grub_atapi_identify): Set DEV before check for !BSY. Use
26368 grub_ata_wait_drq () to wait for data.
26369 (grub_ata_device_initialize): Add status register check to
26370 detect missing SATA slave devices. Add debug messages.
26371 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
26372 (grub_atapi_packet): Set DEV before check for !BSY. Replace
26373 transfer loop by grub_ata_pio_write ().
26374 (grub_ata_identify): Set DEV before check for !BSY. Use
26375 grub_ata_wait_drq () to wait for data.
26376 (grub_ata_setaddress): Set DEV before check for !BSY.
26377 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
26378 read/write in one loop. Fix invalid command on write. Fix incomplete
26379 command on (size % batch) == 0. Add missing error check after write of
26380 last block. Add debug messages.
26381 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
26382
26383 2009-01-19 Christian Franke <franke@computer.org>
26384
26385 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
26386 (GRUB_ATAPI_IREASON_*): Likewise.
26387 (grub_ata_pio_write): Fix timeout error return.
26388 (grub_atapi_identify): Add grub_ata_wait () after cmd.
26389 (grub_atapi_wait_drq): New function.
26390 (grub_atapi_packet): New parameter `size'.
26391 Use grub_atapi_wait_drq () and direct write instead of
26392 grub_ata_pio_write ().
26393 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
26394 reads the number of bytes requested by the device for each DRQ
26395 assertion.
26396 (grub_atapi_write): Remove old implementation, return not
26397 implemented instead.
26398
26399 2009-01-19 Christian Franke <franke@computer.org>
26400
26401 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
26402 of 512 to calculate data size.
26403 (grub_scsi_read12): Likewise.
26404 (grub_scsi_write10): Likewise.
26405 (grub_scsi_write12): Likewise.
26406 (grub_scsi_read): Adjust size according to blocksize.
26407 Add checks for invalid blocksize and unaligned transfer.
26408
26409 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
26410
26411 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
26412
26413 * term/gfxterm.c (write_char): Fix background rendering for wide
26414 width glyphs.
26415
26416 2009-01-19 Robert Millan <rmh@aybabtu.com>
26417
26418 * config.guess: Update to latest version from config git.
26419 * config.sub: Likewise.
26420
26421 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
26422
26423 * Makefile.in: Change font compilation to use new grub-mkfont instead
26424 of java version.
26425
26426 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
26427 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26428 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26429 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26430 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26431 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26432 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26433 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26434 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26435
26436 2009-01-16 Christian Franke <franke@computer.org>
26437
26438 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
26439 (enum grub_ata_timeout_milliseconds): New enum.
26440 (grub_ata_wait_status): Add parameter milliseconds.
26441 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
26442 recovery from timed-out commands.
26443 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
26444 return grub_errno instead of REG_ERROR.
26445 (grub_ata_pio_write): Add parameter milliseconds.
26446 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
26447 Pass milliseconds to grub_ata_wait_status () and
26448 grub_ata_pio_read ().
26449 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
26450 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
26451 grub_ata_wait_status (). Fix IDENTIFY timeout check.
26452 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
26453 It is not suitable for device detection, because DEV bit is ignored,
26454 the command may run too long, and not all devices set the signature
26455 properly.
26456 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
26457 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
26458 Fix device selection, DEV bit must be set first to address the registers
26459 of the correct device.
26460 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
26461 grub_ata_pio_read/write ().
26462 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
26463 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
26464
26465 2009-01-13 Carles Pina i Estany <carles@pina.cat>
26466
26467 * util/grub-editenv.c (main): Use fseeko(), not fseek().
26468
26469 2009-01-13 Bean <bean123ch@gmail.com>
26470
26471 * util/grub-mkfont.c (write_font): forget to remove some debug code.
26472
26473 2009-01-13 Bean <bean123ch@gmail.com>
26474
26475 * Makefile.in: (enable_grub_mkfont): New variable.
26476 (freetype_cflags): Likewise.
26477 (freetype_libs): Likewise.
26478
26479 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
26480 (grub_mkfont_SOURCES): New variable.
26481 (grub_mkfont_CFLAGS): Likewise.
26482 (grub_mkfont_LDFLAGS): Likewise.
26483
26484 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
26485 library if `--enable-grub-mkfont' is requested.
26486 (enable_grub_mkfont): New variable.
26487 (freetype_cflags): Likewise.
26488 (freetype_libs): Likewise.
26489
26490 * util/grub-mkfont.c: New file.
26491
26492 2009-01-12 Christian Franke <franke@computer.org>
26493
26494 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
26495 mode check. Fix setting of compat_use[].
26496
26497 2009-01-10 Robert Millan <rmh@aybabtu.com>
26498
26499 Update a few copyright years which we forgot to do in 2008 (only for
26500 files whose changes made in 2008 were copyright-significant)
26501
26502 * Makefile.in: Add 2008 to Copyright line.
26503 * disk/ieee1275/ofdisk.c: Likewise.
26504 * disk/efi/efidisk.c: Likewise.
26505 * kern/dl.c: Likewise.
26506 * kern/sparc64/ieee1275/init.c: Likewise.
26507 * kern/mm.c: Likewise.
26508 * kern/efi/mm.c: Likewise.
26509 * boot/i386/pc/boot.S: Likewise.
26510 * genfslist.sh: Likewise.
26511 * fs/iso9660.c: Likewise.
26512 * fs/hfs.c: Likewise.
26513 * fs/jfs.c: Likewise.
26514 * fs/minix.c: Likewise.
26515 * fs/ufs.c: Likewise.
26516 * gensymlist.sh.in: Likewise.
26517 * genkernsyms.sh.in: Likewise.
26518 * include/grub/misc.h: Likewise.
26519 * include/grub/types.h: Likewise.
26520 * include/grub/symbol.h: Likewise.
26521 * include/grub/elf.h: Likewise.
26522 * include/grub/kernel.h: Likewise.
26523 * include/grub/disk.h: Likewise.
26524 * include/grub/dl.h: Likewise.
26525 * include/grub/i386/linux.h: Likewise.
26526 * include/grub/i386/pc/biosdisk.h: Likewise.
26527 * include/grub/efi/api.h: Likewise.
26528 * include/grub/efi/pe32.h: Likewise.
26529 * include/grub/util/misc.h: Likewise.
26530 * normal/execute.c: Likewise.
26531 * normal/arg.c: Likewise.
26532 * normal/completion.c: Likewise.
26533 * normal/lexer.c: Likewise.
26534 * normal/parser.y: Likewise.
26535 * normal/misc.c: Likewise.
26536 * commands/i386/pc/vbeinfo.c: Likewise.
26537 * commands/hexdump.c: Likewise.
26538 * commands/terminal.c: Likewise.
26539 * commands/ls.c: Likewise.
26540 * commands/help.c: Likewise.
26541 * partmap/pc.c: Likewise.
26542 * loader/efi/chainloader.c: Likewise.
26543 * loader/multiboot_loader.c: Likewise.
26544 * loader/i386/pc/multiboot2.c: Likewise.
26545 * term/efi/console.c: Likewise.
26546 * term/i386/pc/serial.c: Likewise.
26547 * util/lvm.c: Likewise.
26548 * util/console.c: Likewise.
26549 * util/i386/efi/grub-mkimage.c: Likewise.
26550 * util/raid.c: Likewise.
26551
26552 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
26553
26554 * commands/videotest.c: Removed include to grub/machine/memory.h.
26555
26556 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
26557 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
26558 (video_mod_SOURCES): Removed.
26559 (video_mod_CFLAGS): Likewise.
26560 (video_mod_LDFLAGS): Likewise.
26561 (gfxterm_mod_SOURCES): Likewise.
26562 (gfxterm_mod_CFLAGS): Likewise.
26563 (gfxterm_mod_LDFLAGS): Likewise.
26564 (videotest_mod_SOURCES): Likewise.
26565 (videotest_mod_CFLAGS): Likewise.
26566 (videotest_mod_LDFLAGS): Likewise.
26567 (bitmap_mod_SOURCES): Likewise.
26568 (bitmap_mod_CFLAGS): Likewise.
26569 (bitmap_mod_LDFLAGS): Likewise.
26570 (tga_mod_SOURCES): Likewise.
26571 (tga_mod_CFLAGS): Likewise.
26572 (tga_mod_LDFLAGS): Likewise.
26573 (jpeg_mod_SOURCES): Likewise.
26574 (jpeg_mod_CFLAGS): Likewise.
26575 (jpeg_mod_LDFLAGS): Likewise.
26576 (png_mod_SOURCES): Likewise.
26577 (png_mod_CFLAGS): Likewise.
26578 (png_mod_LDFLAGS): Likewise.
26579
26580 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
26581 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
26582 (video_mod_SOURCES): Added.
26583 (video_mod_CFLAGS): Likewise.
26584 (video_mod_LDFLAGS): Likewise.
26585 (videotest_mod_SOURCES): Likewise.
26586 (videotest_mod_CFLAGS): Likewise.
26587 (videotest_mod_LDFLAGS): Likewise.
26588 (bitmap_mod_SOURCES): Likewise.
26589 (bitmap_mod_CFLAGS): Likewise.
26590 (bitmap_mod_LDFLAGS): Likewise.
26591 (tga_mod_SOURCES): Likewise.
26592 (tga_mod_CFLAGS): Likewise.
26593 (tga_mod_LDFLAGS): Likewise.
26594 (jpeg_mod_SOURCES): Likewise.
26595 (jpeg_mod_CFLAGS): Likewise.
26596 (jpeg_mod_LDFLAGS): Likewise.
26597 (png_mod_SOURCES): Likewise.
26598 (png_mod_CFLAGS): Likewise.
26599 (png_mod_LDFLAGS): Likewise.
26600 (gfxterm_mod_SOURCES): Likewise.
26601 (gfxterm_mod_CFLAGS): Likewise.
26602 (gfxterm_mod_LDFLAGS): Likewise.
26603
26604 * term/gfxterm.c: Removed include to grub/machine/memory.h,
26605 grub/machine/console.h.
26606
26607 2009-01-04 Jerone Young <jerone@gmail.com>
26608
26609 Make on screen instructions clearer
26610
26611 Based on patch created by Jidanni <jidanni@jidanni.org>
26612
26613 * normal/menu.c: print clearer instructions on the screen
26614
26615 2009-01-02 Colin D Bennett <colin@gibibit.com>
26616
26617 New font engine.
26618
26619 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
26620 build system and fixed gfxterm.c to work with different sized fonts.
26621
26622 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
26623
26624 * configure: Re-generated.
26625
26626 * DISTLIST: Removed font/manager.c.
26627 Added font/font.c.
26628 Added font/font_cmd.c.
26629
26630 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
26631 compilation.
26632
26633 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
26634
26635 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
26636
26637 * kern/term.c: Changed users of grub_utf8_to_ucs4.
26638
26639 * normal/menu.c: Likewise.
26640
26641 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
26642 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
26643
26644 * include/grub/font.h: Replaced with new file.
26645
26646 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
26647 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
26648 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
26649 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
26650 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
26651 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
26652 fg_red, fg_green, fg_blue, fg_alpha.
26653 (grub_video_adapter): Removed blit_glyph.
26654 (grub_video_blit_glyph): Removed.
26655
26656 * font/manager.c: Removed file.
26657
26658 * font/font.c: New file.
26659
26660 * font/font_cmd.c: Likewise.
26661
26662 * video/video.c (grub_video_blit_glyph): Removed.
26663
26664 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
26665 (grub_video_vbe_map_rgba): Likewise.
26666 (grub_video_vbe_unmap_color_int): Likewise.
26667 (grub_video_vbe_blit_glyph): Removed.
26668 (grub_video_vbe_adapter): Removed blit_glyph.
26669
26670 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
26671 (get_pixel): Likewise.
26672 (set_pixel): Likewise.
26673
26674 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
26675
26676 * term/gfxterm.c: Adapted to new font engine.
26677
26678 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
26679
26680 * term/i386/pc/vga.c: Likewise.
26681
26682 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
26683
26684 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
26685
26686 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26687
26688 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
26689
26690 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
26691
26692 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
26693
26694 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
26695
26696 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
26697
26698 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
26699
26700 * util/grub.d/00_header.in: Changed to use new loadfont command.
26701
26702 * util/grub-mkconfig_lib.in: Changed font extension.
26703
26704 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
26705
26706 * util/getroot.c (grub_util_get_grub_dev): Add support for
26707 /dev/md/dNNpNN style partitionable mdraid devices.
26708
26709 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
26710
26711 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
26712 at a time limit of the PXE TFTP API correctly.
26713 (grub_pxefs_close): Likewise.
26714
26715 2008-11-29 Robert Millan <rmh@aybabtu.com>
26716
26717 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
26718 grub_ata_device_initialize() calls.
26719
26720 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
26721
26722 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
26723 iteration failed.
26724 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
26725
26726 2008-11-28 Robert Millan <rmh@aybabtu.com>
26727
26728 Fix build on powerpc-ieee1275. Based on patch created by
26729 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
26730 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
26731 `kern/ieee1275/mmap.c'.
26732 * include/grub/powerpc/ieee1275/memory.h: New file.
26733
26734 Provide grub-install on coreboot.
26735 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
26736 (grub_install_SOURCES): New variable.
26737 * util/i386/pc/grub-install.in: Add a few condition checks to make it
26738 usable on coreboot.
26739
26740 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
26741
26742 * util/grub-fstest.c (grub_term_get_current_input): Change return type
26743 to `grub_term_input_t'.
26744 (grub_term_get_current_output): Change return type to
26745 `grub_term_output_t'.
26746
26747 2008-11-22 Robert Millan <rmh@aybabtu.com>
26748
26749 Fix breakage on coreboot due to declaration mismatch.
26750 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
26751 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
26752 grub_vga_text_cls().
26753
26754 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
26755 comments. Avoid copying one more byte than necessary (just in case).
26756
26757 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
26758 to 0x200000 (avoids trouble with some OFW implementations, and matches
26759 with the one in Yaboot).
26760 Reported by Manoel Abranches
26761
26762 2008-11-20 Robert Millan <rmh@aybabtu.com>
26763
26764 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
26765 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
26766
26767 * util/grub-mkconfig_lib.in (grub_warn): New function.
26768 (convert_system_path_to_grub_path): Use grub_warn() when issuing
26769 warnings, to obtain consistent formatting.
26770 * util/grub.d/00_header.in: Likewise.
26771 * util/update-grub_lib.in: Likewise.
26772
26773 * loader/i386/linux.c (allocate_pages): Fix a warning.
26774 Move comment text to `#error' stanza.
26775
26776 Harmonize ieee1275's grub_available_iterate() with the generic
26777 grub_machine_mmap_iterate() interface (fixes a recently-introduced
26778 build problem on i386-ieee1275):
26779 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
26780 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
26781 parameter `type'. Update all users of this function.
26782 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
26783 `kern/ieee1275/mmap.c'.
26784 * kern/ieee1275/init.c
26785 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
26786 with ...
26787 (grub_machine_mmap_iterate): ... this.
26788 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
26789 return type to `grub_err_t'. Update all implementations of this
26790 function prototype.
26791 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
26792 Likewise.
26793
26794 Add `lsmmap' command (lists firmware-provided memory map):
26795 * commands/lsmmap.c: New file.
26796 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
26797 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
26798 variables.
26799 * conf/powerpc-ieee1275.rmk: Likewise.
26800 * conf/i386-coreboot.rmk: Likewise.
26801 * conf/i386-ieee1275.rmk: Likewise.
26802
26803 2008-11-19 Robert Millan <rmh@aybabtu.com>
26804
26805 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
26806 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
26807 constraints to initrd allocation (based on code from
26808 loader/i386/pc/linux.c). Without them, initrd was allocated too high
26809 for Linux to find it.
26810
26811 2008-11-14 Robert Millan <rmh@aybabtu.com>
26812
26813 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
26814 order to cope with duplicate slashes.
26815
26816 2008-11-14 Robert Millan <rmh@aybabtu.com>
26817
26818 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
26819 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
26820 don't want to mess with lower memory, because it is used in the Linux
26821 loader.
26822
26823 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
26824 an appropriate place in lower memory, between 0x10000 and 0x90000,
26825 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
26826 is in our heap (probably as a result of it being corrupted during
26827 decompression). Add #error instance with comment to explain why this
26828 loader isn't currently usable on PC/BIOS.
26829
26830 2008-11-14 Robert Millan <rmh@aybabtu.com>
26831
26832 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
26833 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
26834
26835 2008-11-12 Robert Millan <rmh@aybabtu.com>
26836
26837 Make loader/i386/linux.c buildable on i386-pc (although disabled).
26838
26839 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
26840 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
26841 from here ...
26842 * include/grub/i386/pc/memory.h: ... to here.
26843
26844 2008-11-12 Robert Millan <rmh@aybabtu.com>
26845
26846 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
26847 split).
26848
26849 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
26850 (grub_console_cur_color, grub_console_real_putchar)
26851 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26852 (grub_console_setcolorstate, grub_console_setcolor)
26853 (grub_console_getcolor): Move from here ...
26854 * include/grub/i386/vga_common.h: ... to here (new file).
26855
26856 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
26857 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
26858 `<grub/i386/io.h>'.
26859 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
26860 `<grub/i386/vga_common.h>'.
26861
26862 2008-11-12 Robert Millan <rmh@aybabtu.com>
26863
26864 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
26865 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
26866 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
26867 variables.
26868 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26869 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
26870
26871 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
26872 grub_console_init() with call to grub_vga_text_init().
26873 (grub_machine_fini): Replace call to
26874 grub_console_fini() with call to grub_vga_text_fini() and
26875 grub_at_keyboard_fini().
26876
26877 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
26878 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
26879 (grub_console_setcolorstate, grub_console_setcolor)
26880 (grub_console_getcolor): New function prototypes.
26881
26882 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
26883 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
26884 (grub_vga_text_setcursor): Static-ize.
26885 (grub_vga_text_term): New structure.
26886 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
26887
26888 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
26889 (grub_console_cur_color, grub_console_standard_color)
26890 (grub_console_normal_color, grub_console_highlight_color)
26891 (map_char, grub_console_putchar, grub_console_getcharwidth)
26892 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
26893 (grub_console_getcolor): Move from here ...
26894 * term/i386/vga_common.c: ... to here (same function names).
26895
26896 2008-11-12 Robert Millan <rmh@aybabtu.com>
26897
26898 Use newly-added Multiboot support in coreboot.
26899
26900 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
26901 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
26902
26903 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
26904 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
26905 (codestart): Store the MBI in `startup_multiboot_info' when we're
26906 being loaded using Multiboot.
26907
26908 * kern/i386/coreboot/init.c (grub_machine_init): Move
26909 grub_at_keyboard_init() call to beginning of function (useful for
26910 debugging). Call grub_machine_mmap_init() before attempting to use
26911 grub_machine_mmap_iterate().
26912 (grub_lower_mem, grub_upper_mem): Move from here ...
26913 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
26914 here (new file).
26915
26916 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
26917 function prototype.
26918
26919 2008-11-12 Robert Millan <rmh@aybabtu.com>
26920
26921 Fix a regression introduced by the at_keyboard.mod split. Because
26922 some terminals are default on some platforms and non-default on
26923 others, the first terminal being registered determines which is
26924 going to be default.
26925
26926 * kern/term.c (grub_term_register_input): If this is the first
26927 terminal being registered, set it as the current one.
26928 (grub_term_register_output): Likewise.
26929
26930 * term/efi/console.c (grub_console_init): Do not call
26931 grub_term_set_current_output() or grub_term_set_current_input().
26932 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
26933 * term/i386/pc/console.c (grub_console_init): Likewise.
26934 (grub_console_fini): Do not call grub_term_set_current_input()
26935 (but leave grub_term_set_current_output() to restore text mode).
26936
26937 2008-11-10 Robert Millan <rmh@aybabtu.com>
26938
26939 * util/grub.d/00_header.in: Add backward compatibility check for
26940 versions of terminal.mod that don't understand `terminal_input' or
26941 `terminal_output'.
26942
26943 2008-11-09 Robert Millan <rmh@aybabtu.com>
26944
26945 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
26946 `terminal_input' / `terminal_output', not `terminal'.
26947
26948 2008-11-08 Robert Millan <rmh@aybabtu.com>
26949
26950 * Makefile.in (include_DATA): Fix srcdir=. assumption.
26951 (DISTCLEANFILES): Add `build_env.mk'.
26952
26953 2008-11-08 Robert Millan <rmh@aybabtu.com>
26954
26955 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
26956 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
26957 members. Update all users.
26958 * util/console.c (grub_ncurses_term): Split in ...
26959 (grub_ncurses_term_input): ... this, and ...
26960 (grub_ncurses_term_output): ... this. Update all users.
26961 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
26962
26963 2008-11-08 Robert Millan <rmh@aybabtu.com>
26964
26965 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
26966 (PKGDATA): Add $(pkgdata_SRCDIR).
26967 (pkglib_BUILDDIR): New variable.
26968 (pkgdata_SRCDIR): New variable.
26969 (build_env.mk): New target.
26970 (include_DATA): New variable.
26971 (install-local): Install $(include_DATA) files in $(includedir).
26972
26973 2008-11-07 Pavel Roskin <proski@gnu.org>
26974
26975 * gendistlist.sh: Use C locale for sorting to ensure consistent
26976 output on all systems.
26977
26978 * util/grub.d/00_header.in: Remove incorrect space before
26979 "serial".
26980
26981 2008-11-07 Robert Millan <rmh@aybabtu.com>
26982
26983 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
26984 per specification.
26985 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
26986 * loader/multiboot_loader.c (find_multi_boot2_header): New function
26987 (based on find_multi_boot1_header).
26988 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
26989 using find_multi_boot2_header(), and abort if neither Multiboot or
26990 Multiboot headers were found.
26991
26992 2008-11-07 Robert Millan <rmh@aybabtu.com>
26993
26994 Modularize at_keyboard.mod:
26995
26996 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
26997 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26998 (at_keyboard_mod_LDFLAGS): New variables.
26999
27000 Actual terminal split:
27001
27002 * include/grub/term.h (struct grub_term): Split in ...
27003 (struct grub_term_input): ... this, and ...
27004 (struct grub_term_output): ... this. Update all users.
27005 (grub_term_set_current): Split in ...
27006 (grub_term_set_current_input): ... this, and ...
27007 (grub_term_set_current_output): ... this.
27008 (grub_term_get_current): Split in ...
27009 (grub_term_get_current_input): ... this, and ...
27010 (grub_term_get_current_output): ... this.
27011 (grub_term_register): Split in ...
27012 (grub_term_register_input): ... this, and ...
27013 (grub_term_register_output): ... this.
27014 (grub_term_unregister): Split in ...
27015 (grub_term_unregister_input): ... this, and ...
27016 (grub_term_unregister_output): ... this.
27017 (grub_term_iterate): Split in ...
27018 (grub_term_iterate_input): ... this, and ...
27019 (grub_term_iterate_output): ... this.
27020
27021 * kern/term.c (grub_term_list): Split in ...
27022 (grub_term_list_input): ... this, and ...
27023 (grub_term_list_output): ... this. Update all users.
27024 (grub_cur_term): Split in ...
27025 (grub_cur_term_input): ... this, and ...
27026 (grub_cur_term_output): ... this. Update all users.
27027 (grub_term_set_current): Split in ...
27028 (grub_term_set_current_input): ... this, and ...
27029 (grub_term_set_current_output): ... this.
27030 (grub_term_get_current): Split in ...
27031 (grub_term_get_current_input): ... this, and ...
27032 (grub_term_get_current_output): ... this.
27033 (grub_term_register): Split in ...
27034 (grub_term_register_input): ... this, and ...
27035 (grub_term_register_output): ... this.
27036 (grub_term_unregister): Split in ...
27037 (grub_term_unregister_input): ... this, and ...
27038 (grub_term_unregister_output): ... this.
27039 (grub_term_iterate): Split in ...
27040 (grub_term_iterate_input): ... this, and ...
27041 (grub_term_iterate_output): ... this.
27042
27043 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27044 a check for input and one for output (and only attempt to get keys
27045 from user when input works).
27046
27047 * util/grub-probe.c (grub_term_get_current): Split in ...
27048 (grub_term_get_current_input): ... this, and ...
27049 (grub_term_get_current_output): ... this.
27050 * util/grub-fstest.c: Likewise.
27051 * util/i386/pc/grub-setup.c: Likewise.
27052 * util/grub-editenv.c: Likewise.
27053
27054 Portability adjustments:
27055
27056 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27057 `term/i386/pc/at_keyboard.c'.
27058 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27059 grub_keyboard_controller_init() (now handled by terminal .init).
27060 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27061 grub_at_keyboard_init().
27062 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27063 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27064 at_keyboard.mod via input terminal interface).
27065 * include/grub/i386/coreboot/console.h: Convert into a stub for
27066 `<grub/i386/pc/console.h>'.
27067
27068 Migrate full terminals to new API:
27069
27070 * term/efi/console.c (grub_console_term): Split into ...
27071 (grub_console_term_input): ... this, and ...
27072 (grub_console_term_output): ... this. Update all users.
27073 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27074 (grub_ofconsole_init): Split into ...
27075 (grub_ofconsole_init_input): ... this, and ...
27076 (grub_ofconsole_init_output): ... this.
27077 (grub_ofconsole_term): Split into ...
27078 (grub_ofconsole_term_input): ... this, and ...
27079 (grub_ofconsole_term_output): ... this. Update all users.
27080 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27081 (grub_serial_term_input): ... this, and ...
27082 (grub_serial_term_output): ... this. Update all users.
27083 * term/i386/pc/console.c (grub_console_term): Split into ...
27084 (grub_console_term_input): ... this, and ...
27085 (grub_console_term_output): ... this. Update all users.
27086 (grub_console_term_input): Only enable it on PC/BIOS platform.
27087 (grub_console_init): Remove grub_keyboard_controller_init() call.
27088
27089 Migrate input terminals to new API:
27090
27091 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27092 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27093 i386-specific anyway).
27094 (grub_console_checkkey): Rename to ...
27095 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27096 users.
27097 (grub_keyboard_controller_orig): New variable.
27098 (grub_console_getkey): Rename to ...
27099 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27100 users.
27101 (grub_keyboard_controller_init): Static-ize. Save original
27102 controller value so that it can be restored ...
27103 (grub_keyboard_controller_fini): ... here (new function).
27104 (grub_at_keyboard_term): New structure.
27105 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27106 functions.
27107
27108 Migrate output terminals to new API:
27109
27110 * term/i386/pc/vga.c (grub_vga_term): Change type to
27111 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27112 members. Update all users.
27113 * term/gfxterm.c (grub_video_term): Change type to
27114 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27115 members. Update all users.
27116 * include/grub/i386/pc/console.h (grub_console_checkkey)
27117 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27118 etc).
27119
27120 Migrate `terminal' command and userland tools to new API:
27121
27122 * commands/terminal.c (grub_cmd_terminal): Split into ...
27123 (grub_cmd_terminal_input): ... this, and ...
27124 (grub_cmd_terminal_output): ... this.
27125 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27126 `terminal_input' and `terminal_output'.
27127 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27128 `terminal_input' / `terminal_output' API.
27129 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27130 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27131 provided ${GRUB_TERMINAL}, convert it).
27132
27133 2008-11-04 Robert Millan <rmh@aybabtu.com>
27134
27135 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27136 for FreeBSD.
27137 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27138
27139 2008-11-03 Bean <bean123ch@gmail.com>
27140
27141 * kern/elf.c (grub_elf32_load): Revert to previous code.
27142 (grub_elf64_load): Likewise.
27143
27144 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27145
27146 2008-11-01 Robert Millan <rmh@aybabtu.com>
27147
27148 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27149 (TARGET_CPPFLAGS): Likewise.
27150 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27151
27152 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27153
27154 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27155
27156 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27157
27158 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27159 addition of objects until the code is not going to be able to fail.
27160
27161 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27162
27163 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27164 (add a missing NULL check, and correct them by moving the pointer
27165 operations after the actual check).
27166
27167 2008-10-29 Robert Millan <rmh@aybabtu.com>
27168
27169 * util/i386/pc/grub-install.in: Handle empty string as output from
27170 make_system_path_relative_to_its_root().
27171
27172 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27173
27174 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27175 circular metadata worst case scenario. If the metadata is circular
27176 then copy the wrap in place.
27177 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27178 project lib/format_text/layout.h
27179 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27180
27181 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27182
27183 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27184
27185 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27186
27187 * util/update-grub_lib.in: Mention filename in warning message.
27188
27189 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27190
27191 * NEWS: Update for rename of update-grub to grub-mkconfig.
27192
27193 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27194
27195 * util/update-grub_lib.in: Copy to ...
27196 * util/grub-mkconfig_lib.in: ... this. Update all users.
27197 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27198 * util/update-grub.in: Rename to ...
27199 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27200 option. Add `--output' option to allow users to specify the generated
27201 configuration file. Default to stdout.
27202 (update_grub_dir): Rename to ...
27203 (grub_mkconfig_dir): ... this.
27204 (grub_cfg): Default to an empty string.
27205 * conf/common.rmk (update-grub): Rename to ...
27206 (grub-mkconfig): ... this.
27207 (update-grub_lib): Copy to ...
27208 (grub-mkconfig_lib): ... this.
27209 (update-grub_SCRIPTS): Copy to ...
27210 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27211 (update-grub_DATA): Rename to ...
27212 (grub-mkconfig_DATA): ... this.
27213
27214 2008-09-28 Robert Millan <rmh@aybabtu.com>
27215
27216 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27217 to `modified'. Add the real `created' field.
27218 (grub_iso9660_uuid): Use `modified' rather than `created' for
27219 constructing the UUID.
27220
27221 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27222
27223 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27224 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27225
27226 2008-09-28 Bean <bean123ch@gmail.com>
27227
27228 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27229 Thanks to Christian Franke for finding this bug.
27230
27231 2008-09-25 Robert Millan <rmh@aybabtu.com>
27232
27233 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27234 instances of grub_util_get_disk_name() (see previous commit).
27235
27236 2008-09-25 Robert Millan <rmh@aybabtu.com>
27237
27238 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27239 `util/i386/get_disk_name.c'.
27240 * conf/i386-efi.rmk: Likewise.
27241 * conf/x86_64-efi.rmk: Likewise.
27242 * conf/i386-coreboot.rmk: Likewise.
27243 * conf/i386-ieee1275.rmk: Likewise.
27244 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27245 `util/ieee1275/get_disk_name.c'.
27246 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27247 * util/ieee1275/get_disk_name.c: Remove file.
27248 * util/i386/get_disk_name.c: Remove file.
27249 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27250 "hd%d" for device.map entries, rather than using
27251 grub_util_get_disk_name().
27252
27253 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27254
27255 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27256 warning.
27257 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27258
27259 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27260
27261 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27262 Changed to 0x5100.
27263 (GRUB_TERM_PPAGE): Changed to 0x4900.
27264
27265 2008-09-24 Robert Millan <rmh@aybabtu.com>
27266
27267 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27268 macros (they were i386-pc specific).
27269 * include/grub/sparc64/ieee1275/console.h: Likewise.
27270 * include/grub/efi/console.h: Likewise.
27271
27272 2008-09-22 Bean <bean123ch@gmail.com>
27273
27274 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27275 resident and in attribute list.
27276
27277 * include/grub/ntfs.h (BMP_LEN): Removed.
27278
27279 2008-09-22 Bean <bean123ch@gmail.com>
27280
27281 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27282 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27283
27284 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27285 error occurs, as grub_disk_open will call grub_disk_close, which will
27286 call p->close (scsi).
27287
27288 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27289
27290 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27291 (AC_PREREQ): Bumped to 2.59.
27292 (AC_TRY_COMPILE): Replace obsolete macro with ...
27293 (AC_COMPILE_IFELSE): ... this.
27294 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27295 (AC_LINK_IFELSE): ... this.
27296
27297 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27298
27299 * autogen.sh: Add a call to `gendistlist.sh'.
27300
27301 2008-09-19 Christian Franke <franke@computer.org>
27302
27303 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27304 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27305 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27306 Export __enable_execute_stack() to modules.
27307 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27308 New function.
27309
27310 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27311
27312 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27313 Sort the list.
27314
27315 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27316
27317 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27318 #include <grub/util/hostdisk.h>.
27319
27320 2008-09-08 Robert Millan <rmh@aybabtu.com>
27321
27322 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27323 segments when their filesz is zero (grub_file_read() interprets
27324 zero-size as "read until EOF", which results in memory corruption).
27325 Use `lowest_segment' rather than 0 for calculating the current
27326 segment load address.
27327
27328 2008-09-08 Robert Millan <rmh@aybabtu.com>
27329
27330 * util/hostdisk.c (open_device): Replace a grub_util_info() call
27331 with grub_dprintf("hostdisk", ...), as it was so verbose that it
27332 clobbered useful information.
27333
27334 2008-09-08 Robert Millan <rmh@aybabtu.com>
27335
27336 * include/grub/util/biosdisk.h: Move to ...
27337 * include/grub/util/hostdisk.h: ... here. Update all users.
27338 * util/biosdisk.c: Move to ...
27339 * util/hostdisk.c: ... here. Update all users.
27340
27341 2008-09-07 Robert Millan <rmh@aybabtu.com>
27342
27343 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
27344 variables.
27345 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
27346 and length can be stored directly in the `mbi->mmap_addr' and
27347 `mbi->mmap_length' struct fields.
27348
27349 2008-09-07 Robert Millan <rmh@aybabtu.com>
27350
27351 * conf/i386.rmk: New file. Provides declaration for building
27352 `cpuid.mod'.
27353 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
27354 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
27355 variables.
27356 Include `conf/i386.mk'.
27357 * conf/i386-efi.rmk: Likewise.
27358 * conf/x86_64-efi.rmk: Likewise.
27359 * conf/i386-coreboot.rmk: Likewise.
27360 * conf/i386-ieee1275.rmk: Likewise.
27361
27362 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
27363
27364 Based on patch created by Colin D Bennett <colin@gibibit.com>.
27365 Adds optimization support for BGR based modes.
27366
27367 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
27368 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27369 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27370 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27371 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27372 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27373 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27374 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27375 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27376 (grub_video_i386_vbeblit_index_index): Likewise.
27377 (grub_video_i386_vbeblit_replace_directN): Added.
27378 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27379 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27380 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27381 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27382 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27383 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27384 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27385 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27386 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27387 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27388 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27389 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27390 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27391
27392 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
27393 (grub_video_i386_vbefill_R8G8B8): Likewise.
27394 (grub_video_i386_vbefill_index): Likewise.
27395 (grub_video_i386_vbefill_direct32): Added.
27396 (grub_video_i386_vbefill_direct24): Likewise.
27397 (grub_video_i386_vbefill_direct16): Likewise.
27398 (grub_video_i386_vbefill_direct8): Likewise.
27399
27400 * include/grub/video.h (grub_video_blit_format): Removed
27401 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
27402 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
27403 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
27404 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
27405 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
27406
27407 * video/video.c (grub_video_get_blit_format): Updated to use new
27408 blit formats. Added handling for 16 bit color modes.
27409
27410 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
27411 fillers.
27412 (common_blitter): Updated to use new blitters.
27413
27414 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
27415 Removed.
27416 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
27417 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27418 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27419 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27420 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27421 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27422 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27423 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27424 (grub_video_i386_vbeblit_index_index): Likewise.
27425 (grub_video_i386_vbeblit_replace_directN): Added.
27426 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
27427 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
27428 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
27429 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
27430 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
27431 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
27432 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
27433 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
27434 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
27435 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
27436 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
27437 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
27438 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
27439
27440 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
27441 (grub_video_i386_vbefill_R8G8B8): Likewise.
27442 (grub_video_i386_vbefill_index): Likewise.
27443 (grub_video_i386_vbefill_direct32): Added.
27444 (grub_video_i386_vbefill_direct24): Likewise.
27445 (grub_video_i386_vbefill_direct16): Likewise.
27446 (grub_video_i386_vbefill_direct8): Likewise.
27447
27448 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
27449 types.
27450
27451 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
27452 types.
27453
27454 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
27455 blitter types.
27456
27457 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
27458 types.
27459
27460 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27461
27462 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
27463 RAID level 1.
27464
27465 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
27466
27467 * fs/iso9660.c (grub_iso9660_date): New structure.
27468 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
27469 (grub_iso9660_uuid): New function.
27470
27471 2008-09-05 Bean <bean123ch@gmail.com>
27472
27473 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
27474
27475 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
27476 insensitive bit for names in Win32 and Win32 & DOS namespace.
27477
27478 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
27479
27480 * include/grub/types.h (LONG_MAX): Likewise.
27481
27482 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27483
27484 * util/getroot.c: Include <config.h>.
27485 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
27486 add support for /dev/md/N devices and handle LVM double dash escaping.
27487
27488 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
27489
27490 * config.guess: Update to latest version from config git.
27491 * config.sub: Likewise.
27492
27493 2008-09-03 Robert Millan <rmh@aybabtu.com>
27494
27495 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
27496 `disk->total_sectors'.
27497
27498 2008-09-01 Colin D Bennett <colin@gibibit.com>
27499
27500 * include/grub/normal.h: Fixed incorrect comment for
27501 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
27502
27503 2008-09-01 Colin D Bennett <colin@gibibit.com>
27504
27505 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
27506 values with defines.
27507
27508 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
27509 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
27510 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
27511 (GRUB_VBE_MODEATTR_COLOR): Likewise.
27512 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
27513 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
27514 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
27515 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
27516 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
27517 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
27518 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
27519 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
27520 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
27521 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
27522 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
27523 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
27524 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
27525 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
27526 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
27527
27528 2008-08-31 Robert Millan <rmh@aybabtu.com>
27529
27530 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
27531 declaration.
27532 (grub_multiboot): Fix a few warnings.
27533
27534 2008-08-31 Robert Millan <rmh@aybabtu.com>
27535
27536 * loader/i386/pc/multiboot.c: Update comment not to say that
27537 boot_device support is unimplemented.
27538
27539 2008-08-31 Robert Millan <rmh@aybabtu.com>
27540
27541 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
27542 or memory map support are unimplemented.
27543
27544 2008-08-31 Colin D Bennett <colin@gibibit.com>
27545
27546 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
27547
27548 2008-08-31 Colin D Bennett <colin@gibibit.com>
27549
27550 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
27551 total video memory in 'vbeinfo' output; show color format details for
27552 each video mode.
27553
27554 2008-08-30 Pavel Roskin <proski@gnu.org>
27555
27556 * util/genmoddep.c: Remove for real this time.
27557 * DISTLIST: Remove util/genmoddep.c.
27558
27559 2008-08-30 Robert Millan <rmh@aybabtu.com>
27560
27561 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
27562 as required by Multiboot spec (it was already 4-byte aligned, but
27563 only by chance).
27564
27565 2008-08-29 Pavel Roskin <proski@gnu.org>
27566
27567 * kern/powerpc/ieee1275/crt0.S: Rename to ...
27568 * kern/powerpc/ieee1275/startup.S: ... this.
27569 * conf/powerpc-ieee1275.rmk: Adjust for the above.
27570 * DISTLIST: Likewise.
27571
27572 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
27573 grub/cpu/kernel.h. Add start label for consistency with other
27574 platforms. Add grub_prefix immediately after start. Add jump
27575 to the code after grub_prefix.
27576 * include/grub/powerpc/kernel.h: Provide valid values for
27577 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
27578
27579 2008-08-29 Bean <bean123ch@gmail.com>
27580
27581 * configure.ac: Change host_os to cygwin for mingw.
27582 (asprintf): New check for function.
27583
27584 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
27585 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
27586
27587 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
27588 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
27589 sync, sleep and grub_util_get_disk_size for mingw.
27590
27591 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
27592 to get size in mingw.
27593 (open_device): Use flag O_BINARY if it's defined.
27594 (find_root_device): Add dummy code for mingw.
27595
27596 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
27597 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
27598 (get_scsi_disk_name): Return 0 for mingw.
27599
27600 * util/hostfs.c: #include <grub/util/misc.h>.
27601 (grub_hostfs_open): Use "rb" flag to open file, use
27602 grub_util_get_disk_size to get disk size for mingw.
27603
27604 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
27605 (asprintf): New function if HAVE_ASPRINTF is not set.
27606 (sync): New function for mingw.
27607 (sleep): Likewise.
27608 (grub_util_get_disk_size): Likewise.
27609
27610 2008-08-28 Pavel Roskin <proski@gnu.org>
27611
27612 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27613 kern/time.c.
27614
27615 2008-08-28 Robert Millan <rmh@aybabtu.com>
27616
27617 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
27618
27619 2008-08-28 Robert Millan <rmh@aybabtu.com>
27620
27621 Change find_grub_drive() syntax so it doesn't prevent it from
27622 detecting NULL names as errors.
27623
27624 * util/biosdisk.c (find_grub_drive): Move free slot search code
27625 from here ...
27626 (find_free_slot): ... to here.
27627 (read_device_map): Use find_free_slot() to search for free slots.
27628
27629 2008-08-27 Marco Gerards <marco@gnu.org>
27630
27631 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
27632 (scsi_mod_SOURCES): New variable.
27633 (scsi_mod_CFLAGS): Likewise
27634 (scsi_mod_LDFLAGS): Likewise.
27635
27636 * disk/scsi.c: New file.
27637
27638 * include/grub/scsi.h: Likewise.
27639
27640 * include/grub/scsicmd.h: Likewise.
27641
27642 * disk/ata.c: Include <grub/scsi.h>.
27643 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
27644 instead.
27645 (grub_ata_iterate): Skip ATAPI devices.
27646 (grub_ata_open): Only handle ATAPI devices.
27647 (struct grub_atapi_read): Removed.
27648 (grub_atapi_readsector): Likewise.
27649 (grub_ata_read): No longer handle ATAPI devices.
27650 (grub_ata_write): Likewise.
27651 (grub_atapi_iterate): New function.
27652 (grub_atapi_read): Likewise.
27653 (grub_atapi_write): Likewise.
27654 (grub_atapi_open): Likewise.
27655 (grub_atapi_close): Likewise.
27656 (grub_atapi_dev): New variable.
27657 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
27658 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
27659
27660 * include/grub/disk.h (enum grub_disk_dev_id): Add
27661 `GRUB_DISK_DEVICE_SCSI_ID'.
27662
27663 2008-08-26 Robert Millan <rmh@aybabtu.com>
27664
27665 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
27666 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
27667 descriptive.
27668
27669 2008-08-23 Bean <bean123ch@gmail.com>
27670
27671 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
27672 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27673 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
27674 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
27675 dm_nv.mod.
27676 (raid5rec_mod_SOURCES): New macro.
27677 (raid5rec_mod_CFLAGS): Likewise.
27678 (raid5rec_mod_LDFLAGS): Likewise.
27679 (raid6rec_mod_SOURCES): Likewise.
27680 (raid6rec_mod_CFLAGS): Likewise.
27681 (raid6rec_mod_LDFLAGS): Likewise.
27682 (mdraid_mod_SOURCES): Likewise.
27683 (mdraid_mod_CFLAGS): Likewise.
27684 (mdraid_mod_LDFLAGS): Likewise.
27685 (dm_nv_mod_SOURCES): Likewise.
27686 (dm_nv_mod_CFLAGS): Likewise.
27687 (dm_nv_mod_LDFLAGS): Likewise.
27688
27689 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
27690 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
27691 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27692
27693 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
27694 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
27695
27696 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27697
27698 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27699
27700 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27701
27702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27703
27704 * disk/raid5_recover.c: New file.
27705
27706 * disk/raid6_recover.c: Likewise.
27707
27708 * disk/mdraid_linux.c: Likewise.
27709
27710 * disk/dmraid_nvidia.c: Likewise.
27711
27712 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
27713 ULONG_MAX.
27714
27715 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
27716 calculate the size of raid device.
27717 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
27718 different layout of raid5.
27719 (grub_raid_scan_device): Remove code specific to mdraid.
27720 (grub_raid_list): New variable.
27721 (free_array): New function.
27722 (grub_raid_register): Likewise.
27723 (grub_raid_unregister): Likewise.
27724 (grub_raid_rescan): Likewise.
27725 (GRUB_MOD_INIT): Don't iterate device here.
27726 (GRUB_MOD_FINI): Use free_array to release resource.
27727
27728 * include/grub/raid.h: Remove macro and structure specific to mdraid.
27729 (grub_raid5_recover_func_t): New function variable type.
27730 (grub_raid6_recover_func_t): Likewise.
27731 (grub_raid5_recover_func): New variable.
27732 (grub_raid6_recover_func): Likewise.
27733 (grub_raid_register): New function.
27734 (grub_raid_unregister): Likewise.
27735 (grub_raid_rescan): Likewise.
27736 (grub_raid_block_xor): Likewise.
27737
27738 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
27739 (CMD_CRC): New macro.
27740 (part): Removed.
27741 (read_file): Handle device as well as file.
27742 (cmd_crc): New function.
27743 (fstest): Handle multiple disks.
27744 (options): Remove part, raw and long, add root and diskcount.
27745 (usage): Add crc, remove -p, -r, -l, add -r and -c.
27746 (main): Find the first non option entry and ignore subsequent options,
27747 add handling for the new options, support multiple disks.
27748
27749 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
27750
27751 2008-08-23 Bean <bean123ch@gmail.com>
27752
27753 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
27754
27755 * genfslist.sh: Ignore kernel.mod.
27756
27757 * genpartmaplist.sh: Likewise.
27758
27759 2008-08-23 Robert Millan <rmh@aybabtu.com>
27760
27761 * util/getroot.c (find_root_device): Skip anything that starts with
27762 a dot, not just directories. This avoids things like /dev/.tmp.md0.
27763
27764 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
27765
27766 * util/update-grub.in (GRUB_GFXMODE): Export variable.
27767 * util/grub.d/00_header.in: Allow the administrator to change default
27768 gfxmode via ${GRUB_GFXMODE}.
27769
27770 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
27771
27772 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
27773
27774 2008-08-21 Robert Millan <rmh@aybabtu.com>
27775
27776 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
27777 loader.
27778 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
27779 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
27780
27781 2008-08-20 Carles Pina i Estany <carles@pina.cat>
27782
27783 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
27784 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
27785
27786 2008-08-19 Robert Millan <rmh@aybabtu.com>
27787
27788 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
27789 (struct grub_virtual_screen): Remove `cursor_color'.
27790 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
27791 initialization.
27792 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
27793
27794 2008-08-18 Robert Millan <rmh@aybabtu.com>
27795
27796 Unify (identical) linux_normal.c files.
27797 * loader/i386/efi/linux_normal.c: Move from here ...
27798 * loader/linux_normal.c: ... to here. Update all users.
27799 * loader/i386/pc/linux_normal.c: Delete. Update all users.
27800 * loader/i386/ieee1275/linux_normal.c: Likewise.
27801
27802 2008-08-18 Robert Millan <rmh@aybabtu.com>
27803
27804 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
27805 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
27806 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
27807 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
27808 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
27809 New macros.
27810 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
27811 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
27812 (GRUB_LINUX_CL_END_OFFSET): ... to here.
27813 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
27814 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
27815 (GRUB_EFI_CL_END_OFFSET): Rename to ...
27816 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
27817 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
27818 Initialize `params->video_cursor_x' and `params->video_cursor_y'
27819 portably using grub_getxy().
27820 Replace `-EFI' with `-bzImage' in boot message.
27821
27822 2008-08-17 Robert Millan <rmh@aybabtu.com>
27823
27824 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
27825
27826 2008-08-17 Robert Millan <rmh@aybabtu.com>
27827
27828 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
27829
27830 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
27831 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
27832 (grub_machine_mmap_iterate): New function declaration.
27833 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
27834 structure.
27835 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
27836 macros.
27837
27838 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
27839 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
27840 Move e820 parsing from here ...
27841 * kern/i386/pc/mmap.c: New file.
27842 (grub_machine_mmap_iterate): ... to here.
27843
27844 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
27845 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
27846 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
27847 (grub_available_iterate): Redeclare to return `void', and redeclare
27848 its hook to use grub_uint64_t as addr and size parameters, and rename
27849 to ...
27850 (grub_machine_mmap_iterate): ... this. Update all users.
27851
27852 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
27853 to make it more readable. Rename to ...
27854 (grub_machine_mmap_iterate): ... this.
27855
27856 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
27857 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
27858 (grub_multiboot): Allocate an extra region after the payload, and fill
27859 it with a Multiboot memory map. Adjust a.out loader to calculate size
27860 with the extra space.
27861 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
27862 with the extra space.
27863
27864 2008-08-17 Carles Pina i Estany <carles@pina.cat>
27865
27866 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
27867
27868 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
27869
27870 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
27871 mdate-sh to the list `find' searches for.
27872 * DISTLIST: Regenerated.
27873
27874 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
27875
27876 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
27877 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
27878 genmoddep.awk, gensymlist.sh.in.
27879 (DISTDIRS): Add bus, docs, hook, lib.
27880 * DISTLIST: Regenerated.
27881 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
27882
27883 2008-08-16 Robert Millan <rmh@aybabtu.com>
27884
27885 * disk/raid.c (grub_raid_init): Handle/report errors set by
27886 grub_device_iterate().
27887 * disk/lvm.c (grub_lvm_init): Likewise.
27888
27889 2008-08-15 Bean <bean123ch@gmail.com>
27890
27891 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27892 and datehook.mod.
27893 (datetime_mod_SOURCES): New macro.
27894 (datetime_mod_CFLAGS): Likewise.
27895 (datetime_mod_LDFLAGS): Likewise.
27896 (date_mod_SOURCES): Likewise.
27897 (date_mod_CFLAGS): Likewise.
27898 (date_mod_LDFLAGS): Likewise.
27899 (datehook_mod_SOURCES): Likewise.
27900 (datehook_mod_CFLAGS): Likewise.
27901 (datehook_mod_LDFLAGS): Likewise.
27902
27903 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27904 and datehook.mod.
27905 (datetime_mod_SOURCES): New macro.
27906 (datetime_mod_CFLAGS): Likewise.
27907 (datetime_mod_LDFLAGS): Likewise.
27908 (date_mod_SOURCES): Likewise.
27909 (date_mod_CFLAGS): Likewise.
27910 (date_mod_LDFLAGS): Likewise.
27911 (datehook_mod_SOURCES): Likewise.
27912 (datehook_mod_CFLAGS): Likewise.
27913 (datehook_mod_LDFLAGS): Likewise.
27914
27915 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27916 and datehook.mod.
27917 (datetime_mod_SOURCES): New macro.
27918 (datetime_mod_CFLAGS): Likewise.
27919 (datetime_mod_LDFLAGS): Likewise.
27920 (date_mod_SOURCES): Likewise.
27921 (date_mod_CFLAGS): Likewise.
27922 (date_mod_LDFLAGS): Likewise.
27923 (datehook_mod_SOURCES): Likewise.
27924 (datehook_mod_CFLAGS): Likewise.
27925 (datehook_mod_LDFLAGS): Likewise.
27926
27927 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27928 and datehook.mod.
27929 (datetime_mod_SOURCES): New macro.
27930 (datetime_mod_CFLAGS): Likewise.
27931 (datetime_mod_LDFLAGS): Likewise.
27932 (date_mod_SOURCES): Likewise.
27933 (date_mod_CFLAGS): Likewise.
27934 (date_mod_LDFLAGS): Likewise.
27935 (datehook_mod_SOURCES): Likewise.
27936 (datehook_mod_CFLAGS): Likewise.
27937 (datehook_mod_LDFLAGS): Likewise.
27938
27939 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
27940 and datehook.mod.
27941 (datetime_mod_SOURCES): New macro.
27942 (datetime_mod_CFLAGS): Likewise.
27943 (datetime_mod_LDFLAGS): Likewise.
27944 (date_mod_SOURCES): Likewise.
27945 (date_mod_CFLAGS): Likewise.
27946 (date_mod_LDFLAGS): Likewise.
27947 (datehook_mod_SOURCES): Likewise.
27948 (datehook_mod_CFLAGS): Likewise.
27949 (datehook_mod_LDFLAGS): Likewise.
27950
27951 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
27952
27953 * commands/date.c: New file.
27954
27955 * hook/datehook.c: Likewise.
27956
27957 * include/grub/lib/datetime.h: Likewise.
27958
27959 * include/grub/i386/cmos.h: Likewise.
27960
27961 * lib/datetime.c: Likewise.
27962
27963 * lib/i386/datetime.c: Likewise.
27964
27965 * lib/efi/datetime.c: Likewise.
27966
27967 2008-08-14 Robert Millan <rmh@aybabtu.com>
27968
27969 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
27970 (grub_mkelfimage_SOURCES): New variable.
27971 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
27972
27973 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
27974 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
27975 * conf/powerpc-ieee1275.rmk: Likewise.
27976 * conf/i386-ieee1275.rmk: Likewise.
27977
27978 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
27979 * kern/i386/coreboot/init.c: Likewise.
27980
27981 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
27982 with `<grub/cpu/kernel.h>'.
27983 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
27984 to ...
27985 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
27986 * kern/i386/coreboot/startup.S: Likewise.
27987
27988 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
27989 (GRUB_MOD_GAP): Remove.
27990 * include/grub/powerpc/kernel.h: New file.
27991 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
27992 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27993 * include/grub/i386/kernel.h: New file.
27994 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
27995 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
27996 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
27997
27998 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
27999 `grub-mkelfimage'.
28000 Use --directory when invoking grub_mkimage.
28001
28002 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28003 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28004 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28005 and GRUB_KERNEL_CPU_PREFIX.
28006
28007 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28008
28009 * include/grub/err.h (grub_err_printf): New function prototype.
28010 * util/misc.c (grub_err_printf): New function.
28011 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28012 grub_printf.
28013 * kern/err.c (grub_print_error): Use grub_err_printf.
28014
28015 2008-08-13 Robert Millan <rmh@aybabtu.com>
28016
28017 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28018
28019 2008-08-13 Robert Millan <rmh@aybabtu.com>
28020
28021 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28022 boot entry.
28023
28024 2008-08-12 Robert Millan <rmh@aybabtu.com>
28025
28026 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28027 of the relocation code from here ...
28028 (grub_multiboot): ... to here.
28029 (forward_relocator, backward_relocator): Move from here ...
28030 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28031 (grub_multiboot_backward_relocator): ... to here.
28032 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28033 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28034 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28035 (grub_multiboot_forward_relocator_end)
28036 (grub_multiboot_backward_relocator)
28037 (grub_multiboot_backward_relocator_end): New variables.
28038
28039 2008-08-12 Bean <bean123ch@gmail.com>
28040
28041 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28042
28043 2008-08-11 Robert Millan <rmh@aybabtu.com>
28044
28045 * kern/i386/linuxbios/startup.S: Move from here ...
28046 * kern/i386/coreboot/startup.S: ... to here.
28047
28048 * kern/i386/linuxbios/init.c: Move from here ...
28049 * kern/i386/coreboot/init.c: ... to here.
28050
28051 * kern/i386/linuxbios/table.c: Move from here ...
28052 * kern/i386/coreboot/mmap.c: ... to here.
28053
28054 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28055
28056 2008-08-11 Robert Millan <rmh@aybabtu.com>
28057
28058 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28059 errors. Leave it to the upper layer to handle them.
28060
28061 2008-08-09 Christian Franke <franke@computer.org>
28062
28063 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28064 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28065 Install `grub.d/10_windows' only on Cygwin.
28066 * configure.ac: Add subst of `target_os'.
28067 Check `target_os' also before setting TARGET_OBJ2ELF.
28068 Add `--enable-grub-pe2elf'.
28069
28070 2008-08-08 Robert Millan <rmh@aybabtu.com>
28071
28072 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28073 (grub_last_time): Change type to grub_uint64_t.
28074 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28075 (grub_disk_close): Likewise.
28076
28077 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28078 (run_menu): Migrate code from to using grub_get_time_ms().
28079
28080 * util/misc.c (grub_get_time_ms): New function.
28081
28082 2008-08-08 Marco Gerards <marco@gnu.org>
28083
28084 * disk/ata.c (grub_ata_regget): Change return type to
28085 `grub_uint8_t'.
28086 (grub_ata_regget2): Likewise.
28087 (grub_ata_wait_status): New function.
28088 (grub_ata_wait_busy): Removed function, updated all users to use
28089 `grub_ata_wait_status'.
28090 (grub_ata_wait_drq): Likewise.
28091 (grub_ata_cmd): New function.
28092 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28093 error handling.
28094 (grub_ata_pio_write): Add error handling.
28095 (grub_atapi_identify): Likewise.
28096 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28097 handling.
28098 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28099 handling. Actually use the detected registers. Reorder the
28100 detection logic such that it is easier to read.
28101 (grub_ata_pciinit): Do not assign the same ID to each controller.
28102 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28103 handling.
28104 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28105
28106 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28107
28108 2008-08-08 Marco Gerards <marco@gnu.org>
28109
28110 * NEWS: Update.
28111
28112 2008-08-07 Bean <bean123ch@gmail.com>
28113
28114 * include/grub/x86_64/pci.h: New file.
28115
28116 2008-08-07 Christian Franke <franke@computer.org>
28117
28118 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28119 (TIMER2_GATE): Likewise.
28120 (grub_pit_wait): Add enable/disable of the timer2 gate
28121 bit of port 0x61. This fixes a possible infinite loop.
28122
28123 2008-08-07 Bean <bean123ch@gmail.com>
28124
28125 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28126 kern/i386/tsc.c and kern/i386/pit.c.
28127
28128 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28129 x86_64 platform.
28130
28131 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28132 <grub/i386/tsc.h>.
28133
28134 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28135
28136 2008-08-07 Bean <bean123ch@gmail.com>
28137
28138 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28139
28140 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28141
28142 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28143 multiple inclusion. Add #include <grub/types.h>.
28144
28145 2008-08-06 Christian Franke <franke@computer.org>
28146
28147 * conf/common.rmk: Build and install `10_windows'.
28148 * util/grub.d/10_windows.in: New script.
28149
28150 2008-08-06 Pavel Roskin <proski@gnu.org>
28151
28152 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28153
28154 2008-08-06 Robert Millan <rmh@aybabtu.com>
28155
28156 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28157 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28158
28159 2008-08-06 Bean <bean123ch@gmail.com>
28160
28161 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28162 (grub_pxefs_fs_int): Remove dummy definition.
28163 (grub_pxefs_open): Use data->block_size to store the current block
28164 size setting.
28165 (grub_pxefs_read): Use block size stored in data->block_size. As the
28166 value of grub_pxe_blksize can be changed after the file is opened.
28167
28168 2008-08-06 Bean <bean123ch@gmail.com>
28169
28170 * fs/i386/pc/pxe.c (curr_file): new variable.
28171 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28172 require the dummy internal file system anymore.
28173 (grub_pxefs_read): Removed.
28174 (grub_pxefs_close): Likewise.
28175 (grub_pxefs_fs_int): Likewise.
28176 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28177 connection when we switch file.
28178 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28179
28180 2008-08-06 Robert Millan <rmh@aybabtu.com>
28181
28182 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28183 `halt.mod'.
28184 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28185 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28186
28187 * kern/i386/halt.c: New file.
28188 * kern/i386/reboot.c: Likewise.
28189 * include/grub/i386/reboot.h: Likewise.
28190 * include/grub/i386/halt.h: Likewise.
28191
28192 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28193 Include `<grub/cpu/halt.h>'.
28194 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28195 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28196
28197 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28198 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28199 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28200 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28201 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28202 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28203 from here ...
28204 * include/grub/i386/at_keyboard.h: ... to here.
28205
28206 2008-08-05 Robert Millan <rmh@aybabtu.com>
28207
28208 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28209 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28210 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28211 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28212 `kern/generic/millisleep.c'.
28213
28214 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28215 instead of grub_get_rtc().
28216 (grub_tsc_init): Initialize `tsc_boot_time'.
28217
28218 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28219 (grub_machine_init): Use grub_tsc_init() rather than
28220 installing an RTC-based handler via grub_install_get_time_ms().
28221
28222 * kern/i386/pit.c: New file.
28223 * include/grub/i386/pit.h: Likewise.
28224
28225 2008-08-05 Bean <bean123ch@gmail.com>
28226
28227 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28228
28229 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28230 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28231 (pxe_mod_SOURCES): New macro.
28232 (pxe_mod_CFLAGS): Likewise.
28233 (pxe_mod_LDFLAGS): Likewise.
28234 (pxecmd_mod_SOURCES): Likewise.
28235 (pxecmd_mod_CFLAGS): Likewise.
28236 (pxecmd_mod_LDFLAGS): Likewise.
28237
28238 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28239 (grub_pxe_call): Likewise.
28240
28241 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28242
28243 * commands/i386/pc/pxecmd.c: New file.
28244
28245 * fs/i386/pc/pxe.c: Likewise.
28246
28247 * include/grub/i386/pc/pxe.h: Likewise.
28248
28249 2008-08-05 Bean <bean123ch@gmail.com>
28250
28251 * util/console.c (grub_console_cur_color): New variable.
28252 (grub_console_standard_color): Likewise.
28253 (grub_console_normal_color): Likewise.
28254 (grub_console_highlight_color): Likewise.
28255 (color_map): Likewise.
28256 (use_color): Likewise.
28257 (NUM_COLORS): New macro.
28258 (grub_ncurses_setcolorstate): Handle color properly.
28259 (grub_ncurses_setcolor): Don't change color here, just remember the
28260 settings, color will be set in grub_ncurses_setcolorstate.
28261 (grub_ncurses_getcolor): New function.
28262 (grub_ncurses_init): Initialize color pairs.
28263 (grub_ncurses_term): New member grub_ncurses_getcolor.
28264
28265 2008-08-05 Colin D Bennett <colin@gibibit.com>
28266
28267 High resolution timer support. Implemented for x86 CPUs using TSC.
28268 Extracted generic grub_millisleep() so it's linked in only as needed.
28269 This requires a Pentium compatible CPU; if the RDTSC instruction is
28270 not supported, then it falls back on the generic grub_get_time_ms()
28271 implementation that uses the machine's RTC.
28272
28273 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28274 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28275 `kern/generic/millisleep.c'.
28276
28277 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28278 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28279
28280 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28281 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28282
28283 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28284
28285 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28286 `kern/generic/millisleep.c'.
28287
28288 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28289
28290 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28291
28292 * kern/generic/rtc_get_time_ms.c: New file.
28293
28294 * kern/generic/millisleep.c: New file.
28295
28296 * kern/misc.c: Don't include
28297 <kern/time.h> anymore.
28298 (grub_millisleep_generic): Removed.
28299
28300 * commands/sleep.c (grub_interruptible_millisleep): Uses
28301 grub_get_time_ms() instead of grub_get_rtc().
28302
28303 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28304 function.
28305 (grub_cpu_is_cpuid_supported): New inline function.
28306 (grub_cpu_is_tsc_supported): New inline function.
28307 (grub_tsc_init): New function prototype.
28308 (grub_tsc_get_time_ms): New function prototype.
28309
28310 * kern/i386/tsc.c (grub_get_time_ms): New file.
28311
28312 * include/grub/time.h: Include <grub/types.h.
28313 (grub_millisleep_generic): Removed.
28314 (grub_get_time_ms): New prototype.
28315 (grub_install_get_time_ms): New prototype.
28316 (grub_rtc_get_time_ms): New prototype.
28317
28318 * kern/time.c (grub_get_time_ms): New function.
28319 (grub_install_get_time_ms): New function.
28320
28321 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28322 <grub/time.h> anymore.
28323 (grub_millisleep): Removed.
28324 (grub_machine_init): Call grub_tsc_init.
28325
28326 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
28327 get_time_ms() implementation.
28328
28329 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
28330 (ieee1275_get_time_ms): New function.
28331 (grub_machine_init): Install get_time_ms() implementation.
28332
28333 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
28334 (grub_machine_init): Call grub_tsc_init().
28335 (grub_millisleep): Removed.
28336
28337 * kern/ieee1275/init.c (grub_millisleep): Removed.
28338 (grub_machine_init): Install ieee1275_get_time_ms()
28339 implementation.
28340 (ieee1275_get_time_ms): New function.
28341 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
28342 real work.
28343
28344 2008-08-05 Marco Gerards <marco@gnu.org>
28345
28346 * disk/ata.c: Include <grub/pci.h>.
28347 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
28348 (grub_ata_initialize): Rewritten.
28349 (grub_ata_device_initialize): New function.
28350
28351 2008-08-04 Pavel Roskin <proski@gnu.org>
28352
28353 * kern/main.c: Include grub/mm.h.
28354
28355 2008-08-04 Robert Millan <rmh@aybabtu.com>
28356
28357 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
28358 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
28359 corruption problem).
28360
28361 2008-08-04 Robert Millan <rmh@aybabtu.com>
28362
28363 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
28364 warnings introduced in my last commit.
28365
28366 2008-08-03 Robert Millan <rmh@aybabtu.com>
28367
28368 Make PCI available on all i386 architectures.
28369
28370 * include/grub/i386/pc/pci.h: Move from here ...
28371 * include/grub/i386/pci.h: ... to here.
28372
28373 * include/grub/i386/pc/pci.h: Remove.
28374 * include/grub/i386/efi/pci.h: Remove.
28375 * include/grub/x86_64/efi/pci.h: Remove.
28376
28377 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
28378 `<grub/cpu/pci.h>'.
28379
28380 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
28381 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
28382 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
28383
28384 * conf/i386-ieee1275.rmk: Likewise.
28385
28386 2008-08-03 Robert Millan <rmh@aybabtu.com>
28387
28388 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
28389 (grub_console_setcursor): Make it possible to set cursor off.
28390
28391 2008-08-03 Robert Millan <rmh@aybabtu.com>
28392
28393 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
28394 of modules instead of assuming which platform provides what.
28395 * util/update-grub.in: Likewise.
28396
28397 2008-08-03 Robert Millan <rmh@aybabtu.com>
28398
28399 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
28400 instead of `grub_install_dos_part' to determine whether a drive needs
28401 to be prepended to prefix (`grub_install_dos_part' is not reliable,
28402 because it can be overridden when loading GRUB via Multiboot).
28403
28404 2008-08-02 Robert Millan <rmh@aybabtu.com>
28405
28406 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
28407
28408 2008-08-02 Robert Millan <rmh@aybabtu.com>
28409
28410 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
28411 of informational grub_dprintf() calls.
28412
28413 2008-08-02 Robert Millan <rmh@aybabtu.com>
28414
28415 * disk/memdisk.c (memdisk_size): Don't initialize.
28416 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
28417
28418 * include/grub/i386/pc/kernel.h
28419 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
28420 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
28421 (grub_memdisk_image_size, grub_arch_memdisk_addr)
28422 (grub_arch_memdisk_size): Remove.
28423
28424 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
28425 field (was only used to transfer a constant). Add `type' field to
28426 support multiple module types.
28427 (grub_module_iterate): New function.
28428
28429 * kern/device.c (grub_device_open): Do not hide error messages
28430 when grub_disk_open() fails. Use grub_print_error() instead.
28431
28432 * kern/i386/pc/init.c (grub_arch_modules_addr)
28433 (grub_arch_memdisk_size): Remove functions.
28434 (grub_arch_modules_addr): Return the module address in high memory
28435 (now that it isn't copied anymore).
28436
28437 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
28438 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
28439 decompression routine (grub_total_module_size already includes that
28440 now). Don't copy modules back to low memory.
28441
28442 * kern/main.c: Include `<grub/mm.h>'.
28443 (grub_load_modules): Split out (and use) ...
28444 (grub_module_iterate): ... this function, which iterates through
28445 module objects and runs a hook.
28446 Comment out grub_mm_init_region() call, as it would cause non-ELF
28447 modules to be overwritten.
28448
28449 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
28450 the memdisk image in its own region, make it part of the module list.
28451 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
28452 (main): Parse --memdisk|-m option, and pass user-provided path as
28453 parameter to generate_image().
28454 (add_segments): Pass `memdisk_path' down to load_modules().
28455 (load_modules): Embed memdisk image in module section when requested.
28456 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
28457 `header.type' instead of `header.offset'.
28458
28459 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
28460 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
28461 (memdisk_mod_LDFLAGS): New variables.
28462 * conf/i386-coreboot.rmk: Likewise.
28463 * conf/i386-ieee1275.rmk: Likewise.
28464
28465 2008-08-02 Robert Millan <rmh@aybabtu.com>
28466
28467 * loader/i386/pc/multiboot.c (playground, forward_relocator)
28468 (backward_relocator): New variables. Used to allocate and relocate
28469 the payload, respectively.
28470 (grub_multiboot_load_elf32): Load into heap instead of requested
28471 address, install the appropriate relocator code in each bound of
28472 the payload, and set the entry point such that
28473 grub_multiboot_real_boot() will jump to one of them.
28474
28475 * kern/i386/loader.S (grub_multiboot_payload_size)
28476 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28477 (grub_multiboot_payload_entry_offset): New variables.
28478 (grub_multiboot_real_boot): Set cpu context to what the relocator
28479 expects, and jump to the relocator instead of the payload.
28480
28481 * include/grub/i386/loader.h (grub_multiboot_payload_size)
28482 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
28483 (grub_multiboot_payload_entry_offset): Export.
28484
28485 2008-08-01 Bean <bean123ch@gmail.com>
28486
28487 * normal/menu_entry.c (editor_getline): Don't return the original
28488 string as result, as it will be released by lexer once it has done
28489 using it.
28490
28491 2008-08-01 Robert Millan <rmh@aybabtu.com>
28492
28493 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
28494 within menuentries, not before them.
28495 util/grub.d/10_hurd.in: Likewise.
28496
28497 2008-08-01 Bean <bean123ch@gmail.com>
28498
28499 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
28500 (bufio_mod_SOURCES): New macro.
28501 (bufio_mod_CFLAGS): Likewise.
28502 (bufio_mod_LDFLAGS): Likewise.
28503
28504 * include/grub/bufio.h: New file.
28505
28506 * io/bufio.c: Likewise.
28507
28508 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
28509 (grub_video_reader_png): Use grub_buffile_open to open file.
28510
28511 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
28512 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
28513
28514 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
28515 (grub_video_reader_tga): Use grub_buffile_open to open file.
28516
28517 * font/manager.c: Include <grub/bufio.h>.
28518 (add_font): Use grub_buffile_open to open file.
28519
28520 2008-07-31 Robert Millan <rmh@aybabtu.com>
28521
28522 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
28523 ELF segments, use a macro for arbitrarily accessing any of them instead
28524 of preparing a pointer that allows access to one at a time.
28525 (grub_multiboot_load_elf64): Likewise.
28526
28527 2008-07-31 Bean <bean123ch@gmail.com>
28528
28529 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
28530 GRUB_KERNEL_MACHINE_DATA_END.
28531
28532 2008-07-30 Robert Millan <rmh@aybabtu.com>
28533
28534 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
28535 Increase from 0x50 to 0x60.
28536 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
28537 use UUIDs to identify the root drive for them. If that's not
28538 possible, abort.
28539 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
28540 check, for cross-disk installs.
28541
28542 2008-07-30 Robert Millan <rmh@aybabtu.com>
28543
28544 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
28545 is non-empty, use it to set the `prefix' environment variable instead
28546 of the usual approach.
28547 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
28548 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
28549 environment variable instead of dummy make_install_device().
28550
28551 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
28552 (start): Insert a data section, with `grub_prefix' variable.
28553 * kern/i386/linuxbios/startup.S: Likewise.
28554
28555 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
28556 New variable reference.
28557 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
28558 New macro. Defines offset of `grub_prefix' within startup.S (relative
28559 to `start').
28560 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
28561 section within startup.S (relative to `start').
28562 * include/grub/i386/coreboot/kernel.h: Likewise.
28563
28564 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
28565 Overwrite grub_prefix with its contents, at the beginning of the
28566 first segment.
28567 (main): Understand -p|--prefix.
28568
28569 2008-07-30 Robert Millan <rmh@aybabtu.com>
28570
28571 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
28572
28573 2008-07-30 Robert Millan <rmh@aybabtu.com>
28574
28575 * term/i386/pc/vga_text.c (grub_console_cls): Use
28576 grub_console_gotoxy() to go back to beginning of the screen.
28577 Found by Patrick Georgi <patrick.georgi@coresystems.de>
28578
28579 2008-07-29 Christian Franke <franke@computer.org>
28580
28581 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
28582 Add conversion of emulated mount points on Cygwin.
28583
28584 2008-07-29 Christian Franke <franke@computer.org>
28585
28586 * util/update-grub.in: Add a check for admin
28587 group on Cygwin.
28588 Remove old `grub.cfg.new' before creation.
28589 Add `-f' to `mv' to handle the different filesystem
28590 semantics of Windows.
28591
28592 2008-07-29 Bean <bean123ch@gmail.com>
28593
28594 * normal/main.c (get_line): Fix buffer overflow bug.
28595
28596 2008-07-28 Robert Millan <rmh@aybabtu.com>
28597
28598 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
28599 (struct grub_apple_header): New struct. Describes the layout of
28600 the partmap header.
28601 (apple_partition_map_iterate): Check the header magic as well as the
28602 partition magic (which was already being checked).
28603
28604 2008-07-28 Pavel Roskin <proski@gnu.org>
28605
28606 * genmk.rb: Add a warning to the beginning of the output that
28607 it's a generated file and should not be edited.
28608
28609 2008-07-28 Robert Millan <rmh@aybabtu.com>
28610
28611 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
28612 with the same number are found, just use issue a warning with
28613 grub_dprintf(), as this error has been reported to be non-fatal.
28614
28615 2008-07-27 Robert Millan <rmh@aybabtu.com>
28616
28617 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
28618 information.
28619
28620 2008-07-27 Bean <bean123ch@gmail.com>
28621
28622 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
28623 (grub_fat_find_dir): Ignore case when comparing filename.
28624
28625 2008-07-27 Bean <bean123ch@gmail.com>
28626
28627 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
28628 smallino, as it's more descriptive, and i8count can be confused with
28629 the other field count.
28630 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
28631 inode type.
28632
28633 2008-07-27 Bean <bean123ch@gmail.com>
28634
28635 * commands/crc.c: New file.
28636
28637 * lib/crc.c: Likewise.
28638
28639 * include/grub/lib/crc.h: Likewise.
28640
28641 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
28642
28643 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
28644 (hexdump): Move this function to ...
28645
28646 * lib/hexdump.c: ... here.
28647
28648 * include/grub/hexdump.h: Renamed to ...
28649
28650 * include/grub/lib/hexdump.h: ... this.
28651
28652 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
28653
28654 * util/grub-editenv.c: Likewise.
28655
28656 * include/envblk.h: Renamed to ...
28657
28658 * include/lib/envblk.h: ... this.
28659
28660 * util/envblk.c: Renamed to ...
28661
28662 * lib/envblk.c: ... this.
28663
28664 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
28665 lib/hexdump.c.
28666 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
28667 (pkglib_MODULES): Add crc.mod.
28668 (hexdump_mod_SOURCES): Add lib/hexdump.c.
28669 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
28670 (crc_mod_SOURCES): New macro.
28671 (crc_mod_CFLAGS): Likewise.
28672 (crc_mod_LDFLAGS): Likewise.
28673
28674 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
28675
28676 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28677
28678 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28679
28680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28681
28682 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28683
28684 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
28685
28686 * commands/help.c: Include <grub/term.h>.
28687 (TERM_WIDTH): Removed. Updated all users.
28688
28689 2008-07-27 Pavel Roskin <proski@gnu.org>
28690
28691 * util/getroot.c (find_root_device): Rephrase a comment to avoid
28692 spurious warnings about a comment within a comment.
28693
28694 2008-07-25 Robert Millan <rmh@aybabtu.com>
28695
28696 * util/getroot.c (find_root_device): Skip devices that match
28697 /dev/dm-[0-9]. This lets the real device be found for any type of
28698 abstraction (LVM, EVMS, RAID..).
28699 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
28700 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
28701 device is found first, find_root_device() will now skip it.
28702
28703 2008-07-24 Pavel Roskin <proski@gnu.org>
28704
28705 * include/grub/types.h: Use __builtin_bswap32() and
28706 __builtin_bswap64() with gcc 4.3 and newer.
28707
28708 2008-07-24 Christian Franke <franke@computer.org>
28709
28710 * util/i386/pc/grub-install.in: If `--debug' is specified,
28711 pass `--verbose' to grub-setup.
28712 Abort script if make_system_path_relative_to_its_root() fails.
28713
28714 2008-07-24 Bean <bean123ch@gmail.com>
28715
28716 * configure.ac: Fixed a bug caused by the previous cygwin patch,
28717 variable `target_platform' should be `platform'.
28718
28719 2008-07-24 Bean <bean123ch@gmail.com>
28720
28721 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
28722 (grub_png_init_fixed_block): New function.
28723 (grub_png_decode_image_data): Handle fixed huffman code compression.
28724
28725 2008-07-24 Bean <bean123ch@gmail.com>
28726
28727 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
28728 (grub_pe2elf_SOURCES): New macro.
28729 (CLEANFILES): Add grub-pe2elf.
28730
28731 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
28732 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
28733 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
28734 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
28735 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
28736 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
28737 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
28738 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
28739 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
28740 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
28741 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
28742 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
28743 (GRUB_PE32_DT_FUNCTION): Likewise.
28744 (GRUB_PE32_REL_I386_DIR32): Likewise.
28745 (GRUB_PE32_REL_I386_REL32): Likewise.
28746 (grub_pe32_symbol): New structure.
28747 (grub_pe32_reloc): Likewise.
28748
28749 * util/grub-pe2elf.c: New file.
28750
28751 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
28752 start symbol in non pc platform.
28753
28754 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
28755
28756 The following patches are from Christian Franke.
28757
28758 * include/grub/dl.h: Remove .previous, gas supports this only
28759 for ELF format.
28760
28761 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
28762 Remove .type, gas supports this only for ELF format.
28763
28764 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
28765 nullbytes in symbol table. This fixes an infinite loop if table is
28766 zero filled.
28767
28768 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
28769 TARGET_IMG_LDFLAGS and EXEEXT.
28770
28771 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
28772 TARGET_IMG_LDFLAGS_AC.
28773 (grub_CHECK_STACK_ARG_PROBE): New function.
28774
28775 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
28776
28777 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
28778
28779 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
28780 to set TARGET_IMG_LD* accordingly.
28781 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
28782 Add call to grub_CHECK_STACK_ARG_PROBE.
28783 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
28784
28785 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
28786
28787 * genmk.rb: Add EXEEXT to CLEANFILES.
28788
28789 2008-07-23 Robert Millan <rmh@aybabtu.com>
28790
28791 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
28792 define the codes for arrows and lines used for the menu).
28793 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
28794 as well.
28795
28796 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
28797 fonts, because the latter are too slow.
28798
28799 2008-07-21 Bean <bean123ch@gmail.com>
28800
28801 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
28802 a20. Run keyboard test last, as it will cause macbook to halt.
28803
28804 2008-07-18 Pavel Roskin <proski@gnu.org>
28805
28806 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
28807 load foreign architecture modules correctly anyway. Keep
28808 support for loading host architecture modules, whether we
28809 compile them or not.
28810
28811 2008-07-17 Pavel Roskin <proski@gnu.org>
28812
28813 * configure.ac: Use -m32 or -m64 regardless of whether we had to
28814 change target_cpu. The compiler default can mismatch target_cpu
28815 in any case.
28816
28817 * disk/efi/efidisk.c: Fix format warnings on x86_64.
28818 * kern/efi/efi.c: Likewise.
28819
28820 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
28821 target compiler is functional.
28822 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
28823 are set up.
28824
28825 * configure.ac: Default to efi platform for x86_64-apple. Allow
28826 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
28827 adjustments from the rest, only do them if target is not
28828 explicitly given. Merge other adjustments with the final sanity
28829 check. Remove an extraneous check for supported CPU. Be
28830 specific which CPU and which platform is not supported.
28831
28832 * configure.ac: Default to pc platform for x86_64.
28833
28834 2008-07-17 Robert Millan <rmh@aybabtu.com>
28835
28836 Partial LinuxBIOS -> Coreboot rename.
28837
28838 * conf/i386-linuxbios.rmk: Renamed to ...
28839 * conf/i386-coreboot.rmk: ... this.
28840 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
28841 * configure.ac: Accept "coreboot" as input platform (but maintain
28842 compatibility with "linuxbios").
28843 * include/grub/i386/linuxbios: Renamed to ...
28844 * include/grub/i386/coreboot: ... this.
28845
28846 2008-07-17 Bean <bean123ch@gmail.com>
28847
28848 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
28849 (appleldr_mod_SOURCE): New variable.
28850 (appleldr_mod_CFLAGS): Likewise.
28851 (appleldr_mod_LDFLAGS): Likewise.
28852 (pci_mod_SOURCES): Likewise.
28853 (pci_mod_CFLAGS): Likewise.
28854 (pci_mod_LDFLAGS): Likewise.
28855 (lspci_mod_SOURCES): Likewise.
28856 (lspci_mod_CFLAGS): Likewise.
28857 (lspci_mod_LDFLAGS): Likewise.
28858
28859 * conf/x86_64-efi.rmk: New file.
28860
28861 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
28862 macro.
28863 (grub_efidisk_write): Likewise.
28864
28865 * include/efi/api.h (efi_call_0): New macro.
28866 (efi_call_1): Likewise.
28867 (efi_call_2): Likewise.
28868 (efi_call_3): Likewise.
28869 (efi_call_4): Likewise.
28870 (efi_call_5): Likewise.
28871 (efi_call_6): Likewise.
28872
28873 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
28874 grub_rescue_cmd_chainloader.
28875
28876 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
28877 (grub_pe32_optional_header): Change some fields based on i386 or
28878 x86_64 platform.
28879 (GRUB_PE32_PE32_MAGIC): Likewise.
28880
28881 * include/grub/efi/uga_draw.h: New file.
28882
28883 * include/grub/elf.h (STN_ABS): New constant.
28884 (R_X86_64_NONE): Relocation constant for x86_64.
28885 (R_X86_64_64): Likewise.
28886 (R_X86_64_PC32): Likewise.
28887 (R_X86_64_GOT32): Likewise.
28888 (R_X86_64_PLT32): Likewise.
28889 (R_X86_64_COPY): Likewise.
28890 (R_X86_64_GLOB_DAT): Likewise.
28891 (R_X86_64_JUMP_SLOT): Likewise.
28892 (R_X86_64_RELATIVE): Likewise.
28893 (R_X86_64_GOTPCREL): Likewise.
28894 (R_X86_64_32): Likewise.
28895 (R_X86_64_32S): Likewise.
28896 (R_X86_64_16): Likewise.
28897 (R_X86_64_PC16): Likewise.
28898 (R_X86_64_8): Likewise.
28899 (R_X86_64_PC8): Likewise.
28900
28901 * include/grub/i386/efi/pci.h: New file.
28902
28903 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
28904 Change it value based on platform.
28905 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
28906 (GRUB_E820_RAM): Likewise.
28907 (GRUB_E820_RESERVED): Likewise.
28908 (GRUB_E820_ACPI): Likewise.
28909 (GRUB_E820_NVS): Likewise.
28910 (GRUB_E820_EXEC_CODE): Likewise.
28911 (GRUB_E820_MAX_ENTRY): Likewise.
28912 (grub_e820_mmap): New structure.
28913 (linux_kernel_header): Change the efi field according to different
28914 kernel version, also field from linux_kernel_header.
28915
28916 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
28917
28918 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
28919 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
28920 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
28921 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
28922 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
28923 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
28924 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
28925 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
28926 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
28927 (GRUB_PCI_ADDR_IO_MASK): Likewise.
28928
28929 * include/grub/x86_64/efi/kernel.h: New file.
28930
28931 * include/grub/x86_64/efi/loader.h: Likewise.
28932
28933 * include/grub/x86_64/efi/machine.h: Likewise.
28934
28935 * include/grub/x86_64/efi/pci.h: Likewise.
28936
28937 * include/grub/x86_64/efi/time.h: Likewise.
28938
28939 * include/grub/x86_64/linux.h: Likewise.
28940
28941 * include/grub/x86_64/setjmp.h: Likewise.
28942
28943 * include/grub/x86_64/time.h: Likewise.
28944
28945 * include/grub/x86_64/types.h: Likewise.
28946
28947 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
28948 GRUB_TARGET_SIZEOF_VOID_P.
28949
28950 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
28951 (grub_efi_locate_handle): Likewise.
28952 (grub_efi_open_protocol): Likewise.
28953 (grub_efi_set_text_mode): Likewise.
28954 (grub_efi_stall): Likewise.
28955 (grub_exit): Likewise.
28956 (grub_reboot): Likewise.
28957 (grub_halt): Likewise.
28958 (grub_efi_exit_boot_services): Likewise.
28959 (grub_get_rtc): Likewise.
28960
28961 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
28962 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
28963 (grub_efi_allocate_pages): Wrap efi calls.
28964 (grub_efi_free_pages): Wrap efi calls.
28965 (grub_efi_get_memory_map): Wrap efi calls.
28966
28967 * kern/x86_64/dl.c: New file.
28968
28969 * kern/x86_64/efi/callwrap.S: Likewise.
28970
28971 * kern/x86_64/efi/startup.S: Likewise.
28972
28973 * loader/efi/appleloader.c: Likewise.
28974
28975 * loader/efi/chainloader.c (cmdline): New variable.
28976 (grub_chainloader_unload): Wrap efi calls.
28977 (grub_chainloader_boot): Likewise.
28978 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
28979 command line.
28980
28981 * loader/efi/chainloader_normal.c (chainloader_command):
28982 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
28983 command line.
28984
28985 * loader/i386/efi/linux.c (allocate_pages): Change allocation
28986 method.
28987 (grub_e820_add_region): New function.
28988 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
28989 booting.
28990 (grub_find_video_card): New function.
28991 (grub_linux_setup_video): New function.
28992 (grub_rescue_cmd_linux): Probe for video information.
28993
28994 * normal/x86_64/setjmp.S: New file.
28995
28996 * term/efi/console.c (map_char): New function.
28997 (grub_console_putchar): Map unicode char.
28998 (grub_console_checkkey): Wrap efi calls.
28999 (grub_console_getkey): Likewise.
29000 (grub_console_getwh): Likewise.
29001 (grub_console_gotoxy): Likewise.
29002 (grub_console_cls): Likewise.
29003 (grub_console_setcolorstate): Likewise.
29004 (grub_console_setcursor): Likewise.
29005
29006 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29007
29008 2008-07-16 Pavel Roskin <proski@gnu.org>
29009
29010 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29011 format strings.
29012
29013 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29014 pointer, not an integer. This fixes a warning and prevents
29015 precision loss on 64-bit systems.
29016 (relocate_addresses): Remove unneeded cast.
29017
29018 2008-07-15 Pavel Roskin <proski@gnu.org>
29019
29020 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29021
29022 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29023
29024 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29025 Fix comparison between signed and unsigned.
29026
29027 * include/grub/i386/ieee1275/console.h: Declare
29028 grub_console_init() and grub_console_fini().
29029
29030 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29031 It's empty and unused.
29032
29033 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29034 beginning to avoid warnings with some compilers.
29035
29036 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29037 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29038
29039 2008-07-14 Pavel Roskin <proski@gnu.org>
29040
29041 * kern/env.c (grub_register_variable_hook): Don't copy empty
29042 string, it leaks memory. Pass "" to grub_env_set(), it should
29043 handle constant strings.
29044
29045 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29046 * commands/cmp.c (grub_cmd_cmp): Likewise.
29047 * kern/dl.c (grub_dl_flush_cache): Likewise.
29048 (grub_dl_load_core): Likewise.
29049 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29050 (grub_elf64_load_phdrs): Likewise.
29051
29052 2008-07-13 Pavel Roskin <proski@gnu.org>
29053
29054 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29055 between signed and unsigned.
29056 (LzmaEnc_Finish): Fix warning about an unused parameter.
29057
29058 2008-07-13 Bean <bean123ch@gmail.com>
29059
29060 * Makefile.in (enable_lzo): New rule.
29061
29062 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29063
29064 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29065
29066 * boot/i386/pc/lnxboot.S: #include <config.h>.
29067
29068 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29069 its value according to the compression algorithm used, lzo or lzma.
29070
29071 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29072 compression algorithm according to configure macro.
29073
29074 * kern/i386/pc/startup.S (codestart): Likewise.
29075
29076 * kern/i386/pc/lzma_decode.S: New file.
29077
29078 * include/grub/lib/LzFind.h: Likewise.
29079
29080 * include/grub/lib/LzHash.h: Likewise.
29081
29082 * include/grub/lib/LzmaDec.h: Likewise.
29083
29084 * include/grub/lib/LzmaEnc.h: Likewise.
29085
29086 * include/grub/lib/LzmaTypes.h: Likewise.
29087
29088 * lib/LzFind.c: Likewise.
29089
29090 * lib/LzmaDec.c: Likewise.
29091
29092 * lib/LzmaEnc.c: Likewise.
29093
29094 2008-07-13 Bean <bean123ch@gmail.com>
29095
29096 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29097 (grub_ext4_extent_header): New structure.
29098 (grub_ext4_extent): Likewise.
29099 (grub_ext4_extent_idx): Likewise.
29100 (grub_ext4_find_leaf): New function.
29101 (grub_ext2_read_block): Handle extents.
29102
29103 2008-07-12 Robert Millan <rmh@aybabtu.com>
29104
29105 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29106
29107 2008-07-11 Robert Millan <rmh@aybabtu.com>
29108
29109 * util/grub.d/40_custom.in: New file. Example on how to add custom
29110 entries to /etc/grub.d.
29111 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29112 40_custom (implicitly, by merging all the grub.d rules).
29113
29114 2008-07-11 Pavel Roskin <proski@gnu.org>
29115
29116 * commands/read.c (grub_getline): Fix invalid memory access.
29117 Don't add newline to the variable value.
29118
29119 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29120 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29121 (serial_hw_get_port): Check validity of the port number.
29122 (grub_cmd_serial): Check return value of serial_hw_get_port().
29123
29124 2008-07-07 Pavel Roskin <proski@gnu.org>
29125
29126 * boot/i386/pc/diskboot.S (notification_string): Replace
29127 "Loading kernel" with just "loading". This is shorter, less
29128 confusing and saves a few bytes for possible future changes.
29129
29130 2008-07-05 Pavel Roskin <proski@gnu.org>
29131
29132 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29133 size for ATAPI devices, they are undefined. Output sector
29134 number in decimal form.
29135
29136 * disk/ata.c: Use named constants for status bits.
29137
29138 2008-07-04 Pavel Roskin <proski@gnu.org>
29139
29140 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29141 grub_addr_t before casting it to the void pointer to fix a
29142 warning. Non-addressable regions are discarded earlier.
29143 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29144 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29145 (check_signature): Don't shadow table_header.
29146 (grub_linuxbios_table_iterate): Cast numeric constants to
29147 grub_linuxbios_table_header_t.
29148 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29149 grub_stop().
29150
29151 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29152 prevent warnings.
29153
29154 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29155 pointer, which can cause warnings. Support 64-bit addresses.
29156
29157 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29158 of sizeof(long). This fixes PowerPC image generation on x86_64.
29159
29160 2008-07-04 Robert Millan <rmh@aybabtu.com>
29161
29162 This fixes a performance issue when pc & gpt partmap iterators
29163 didn't abort iteration even after our hook found what it was
29164 looking for (often causing expensive probes of non-existent drives).
29165
29166 Some callers relied on previous buggy behaviour, since they would
29167 raise an error when their own hooks caused early abortion of its
29168 iteration.
29169
29170 * kern/device.c (grub_device_open): Improve error message.
29171 * disk/lvm.c (grub_lvm_open): Likewise.
29172 * disk/raid.c (grub_raid_open): Likewise.
29173
29174 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29175 when hook requests it, independently of grub_errno.
29176 (pc_partition_map_probe): Do not fail when find_func() caused
29177 early abortion of pc_partition_map_iterate().
29178
29179 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29180 when hook requests it, independently of grub_errno.
29181 (gpt_partition_map_probe): Do not fail when find_func() caused
29182 early abortion of gpt_partition_map_iterate().
29183
29184 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29185 when hook requests it, independently of grub_errno. Do not fail when
29186 part_map_iterate_hook() caused early abortion of p->iterate().
29187
29188 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29189 when grub_partition_iterate() returned with non-zero.
29190
29191 2008-07-03 Pavel Roskin <proski@gnu.org>
29192
29193 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29194 like we do in grub_ata_pio_read().
29195 (grub_ata_readwrite): Always write individual sectors. Fix the
29196 sector count for the remainder.
29197 (grub_ata_write): Enable writing to ATA devices. Correctly
29198 report error for ATAPI devices.
29199
29200 2008-07-02 Pavel Roskin <proski@gnu.org>
29201
29202 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29203 warning.
29204
29205 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29206 for every read sector, we already increment it for the whole
29207 batch. This fixes reading more than 256 sectors at once.
29208
29209 * util/grub-editenv.c (cmd_info): Cast argument to long
29210 explicitly. ptrdiff_t reduces to int on i386.
29211
29212 * util/grub-editenv.c (main): Be specific which parameter is
29213 missing.
29214
29215 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29216 (memdisk): Make memdisk_orig_addr a pointer.
29217
29218 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29219 for file offsets, use grub_off_t instead. Fix printf format
29220 warnings.
29221
29222 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29223 there. Real unexpected warnings should not drown in the noise
29224 about known problems.
29225
29226 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29227 grub_disk_addr_t for memory addresses.
29228
29229 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29230 explicitly to fix a warning.
29231
29232 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29233
29234 * Makefile.in (MODULE_LDFLAGS): New variable.
29235 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29236 the linker accepts --build-id=none.
29237 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29238 MODULE_LDFLAGS.
29239 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29240
29241 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29242 those in Linux XFS code. Provide a way to access 64-bit parent
29243 inode.
29244 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29245 the end of struct grub_xfs_dir_header.
29246
29247 2008-07-02 Bean <bean123ch@gmail.com>
29248
29249 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29250 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29251 and GRUB_IEEE1275_FLAG_NO_ANSI.
29252
29253 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29254 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29255 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29256
29257 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29258 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29259
29260 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29261 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29262
29263 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29264 esc sequence on non ANSI terminal.
29265 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29266
29267 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29268 beginning of file.
29269
29270 2008-07-02 Bean <bean123ch@gmail.com>
29271
29272 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29273 (grub_editenv_SOURCES): New variable.
29274 (pkglib_MODULES): Add loadenv.mod.
29275 (loadenv_mod_SOURCES): New variable.
29276 (loadenv_mod_CFLAGS): Likewise.
29277 (loadenv_mod_LDFLAGS): Likewise.
29278
29279 * include/grub/envblk.h: New file.
29280
29281 * util/envblk.c: New file.
29282
29283 * util/grub-editenv.c: New file.
29284
29285 * commands/loadenv.c: New file.
29286
29287 2008-07-01 Pavel Roskin <proski@gnu.org>
29288
29289 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29290 not unsigned char. This fixes warnings and is consistent with
29291 other tags.
29292
29293 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29294
29295 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29296
29297 * term/tparm.c (analyze): Always set *popcount.
29298
29299 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29300 cast to fix a warning.
29301
29302 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29303 cast to suppress a warning.
29304
29305 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29306 grub_fshelp_read_file() expects.
29307
29308 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29309 write uuid as a 32-bit value in CPU byte order, so declare and
29310 use it as such.
29311
29312 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29313 long if the format specifier expects it.
29314 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29315 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29316 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29317 long to fix a warning.
29318 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29319 grub_dprintf() arguments to fix warnings.
29320
29321 2008-06-30 Pavel Roskin <proski@gnu.org>
29322
29323 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29324 install_bsd_part immediately before core.img is embedded or
29325 modified on disk. This fixes core.img verification if core.img
29326 cannot be embedded.
29327
29328 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
29329 core_path to calculate the blocklist.
29330 Patch from Javier Martín <lordhabbit@gmail.com>
29331
29332 2008-06-29 Robert Millan <rmh@aybabtu.com>
29333
29334 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
29335 block to disk block.
29336 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
29337 Patch from Niels Böhm <bitbucket@arcor.de>
29338
29339 2008-06-29 Robert Millan <rmh@aybabtu.com>
29340
29341 * util/update-grub_lib.in (font_path): Search for fonts in
29342 /boot/grub first, which is more likely to be readable (we aren't
29343 deciding where fonts live, just looking for them).
29344
29345 2008-06-26 Pavel Roskin <proski@gnu.org>
29346
29347 * util/biosdisk.c (read_device_map): Don't leave dead map
29348 entries for devices failing stat() check.
29349
29350 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
29351 core_path_dev for the core.img path on the target device.
29352
29353 2008-06-26 Robert Millan <rmh@aybabtu.com>
29354
29355 * disk/fs_uuid.c: New file.
29356 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
29357 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
29358 (fs_uuid_mod_LDFLAGS): New variables.
29359 * include/grub/disk.h (grub_disk_dev_id): Add
29360 `GRUB_DISK_DEVICE_UUID_ID'.
29361 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
29362 implement iterate().
29363
29364 2008-06-26 Robert Millan <rmh@aybabtu.com>
29365
29366 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
29367 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
29368 Linux image includes no initrd.
29369
29370 2008-06-21 Javier Martín <lordhabbit@gmail.com>
29371
29372 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
29373 call to resolve the core image location that effectively appended the
29374 name twice.
29375
29376 2008-06-21 Robert Millan <rmh@aybabtu.com>
29377
29378 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
29379 call from here ...
29380
29381 * util/grub.d/10_hurd.in: ... to here ...
29382 * util/grub.d/10_linux.in: ... and here.
29383
29384 2008-06-19 Robert Millan <rmh@aybabtu.com>
29385
29386 * kern/main.c (grub_main): Export `prefix' variable immediately
29387 after it has been set by grub_machine_set_prefix().
29388
29389 2008-06-19 Robert Millan <rmh@aybabtu.com>
29390
29391 * commands/search.c (search_label, search_fs_uuid, search_file): Print
29392 search result when not saving to variable, not the other way around.
29393 When saving to variable, abort iteration as soon as a match is found.
29394
29395 2008-06-19 Robert Millan <rmh@aybabtu.com>
29396
29397 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
29398 check for partition that provides /boot/grub. Its logic is flawed,
29399 as it prevents prepare_grub_to_access_device() from being called
29400 multiple times.
29401
29402 2008-06-19 Robert Millan <rmh@aybabtu.com>
29403
29404 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
29405 "insmod" command directly when abstraction modules are needed,
29406 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
29407 since it had already been processed).
29408
29409 2008-06-19 Pavel Roskin <proski@gnu.org>
29410
29411 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
29412 changed. This is needed in case GRUB_LIBDIR changes.
29413 * conf/i386-ieee1275.rmk: Likewise.
29414 * conf/i386-linuxbios.rmk: Likewise.
29415 * conf/i386-pc.rmk: Likewise.
29416 * conf/powerpc-ieee1275.rmk: Likewise.
29417
29418 2008-06-18 Pavel Roskin <proski@gnu.org>
29419
29420 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
29421 kernel_elf_symlist.c to symlist.c for consistency with other
29422 architectures. Update all users.
29423 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
29424
29425 2008-06-18 Robert Millan <rmh@aybabtu.com>
29426
29427 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
29428 it in prefix.
29429
29430 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
29431 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
29432 a RAID device, run setup() for all members independently on whether
29433 LVM abstraction is being used.
29434 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
29435 If grub-mkimage has set `*install_dos_part == -2', don't override this
29436 value.
29437 Perform *install_dos_part adjustments independently on whether
29438 we're embedding or not.
29439 Clarify error message when image is too big for embedding.
29440 Remove duplicate *install_dos_part stanza.
29441
29442 2008-06-17 Robert Millan <rmh@aybabtu.com>
29443
29444 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
29445 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
29446 variables.
29447 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
29448 values in grub_ofconsole_normal_color and
29449 grub_ofconsole_highlight_color (they're not directly related to
29450 background and foreground).
29451 (grub_ofconsole_setcolorstate): Extract background and foreground
29452 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
29453
29454 2008-06-17 Robert Millan <rmh@aybabtu.com>
29455
29456 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
29457 /boot/grub for the check in last commit, not /boot (they could be
29458 different partitions).
29459
29460 2008-06-16 Robert Millan <rmh@aybabtu.com>
29461
29462 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
29463 asked to setup access for the same partition that provides /boot,
29464 don't bother using UUIDs since our root already has the value we
29465 want.
29466
29467 2008-06-16 Robert Millan <rmh@aybabtu.com>
29468
29469 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
29470 I2O devices.
29471 Patch from Sven Mueller <sven@debian.org>.
29472
29473 2008-06-16 Robert Millan <rmh@aybabtu.com>
29474
29475 * util/update-grub.in: Check for $EUID instead of $UID.
29476 Reported by Vincent Zweije.
29477
29478 2008-06-16 Bean <bean123ch@gmail.com>
29479
29480 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
29481 (grub_ext2_read_block): Likewise.
29482 (grub_ext2_read_inode): Likewise.
29483 (grub_ext2_mount): Likewise.
29484 (grub_ext2_close): Likewise.
29485 (grub_ext3_get_journal): Removed.
29486
29487 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
29488 (grub_reiserfs_read_symlink): Likewise.
29489 (grub_reiserfs_mount): Likewise.
29490 (grub_reiserfs_open): Likewise.
29491 (grub_reiserfs_read): Likewise.
29492 (grub_reiserfs_close): Likewise.
29493 (grub_reiserfs_get_journal): Removed.
29494
29495 * fs/fshelp.c (grub_fshelp_read): Removed.
29496 (grub_fshelp_map_block): Likewise.
29497
29498 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
29499 (grub_fshelp_journal): Likewise.
29500 (grub_fshelp_read): Likewise.
29501 (grub_fshelp_map_block): Likewise.
29502
29503 2008-06-16 Pavel Roskin <proski@gnu.org>
29504
29505 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
29506 floating point anymore.
29507 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
29508
29509 2008-06-15 Pavel Roskin <proski@gnu.org>
29510
29511 * commands/ls.c (grub_ls_list_files): Use integer calculations
29512 for human readable format, avoid floating point use.
29513 * kern/misc.c (grub_ftoa): Remove.
29514 (grub_vsprintf): Remove floating point support.
29515
29516 2008-06-15 Robert Millan <rmh@aybabtu.com>
29517
29518 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
29519 devices.
29520 Reported by Max Vozeler.
29521
29522 2008-06-15 Robert Millan <rmh@aybabtu.com>
29523
29524 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
29525 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
29526 skipped later.
29527 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
29528 the beginning of the prefix.
29529
29530 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
29531 It is assumed that if we have a memdisk, grub-mkimage has set
29532 grub_prefix to include the "(memdisk)" drive in it.
29533
29534 2008-06-15 Robert Millan <rmh@aybabtu.com>
29535
29536 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
29537 Initialize keyboard controller after registering the terminal, so that
29538 grub_printf() can be called from grub_keyboard_controller_init().
29539
29540 2008-06-15 Robert Millan <rmh@aybabtu.com>
29541
29542 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
29543 extent-btree which is written as big endian on disk.
29544 Reported by Alain Greppin <al@chilibi.org>.
29545
29546 2008-06-14 Robert Millan <rmh@aybabtu.com>
29547
29548 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
29549 * util/i386/pc/grub-install.in (modules): Likewise.
29550
29551 2008-06-13 Pavel Roskin <proski@gnu.org>
29552
29553 * commands/ls.c (grub_ls_list_files): Fix format warnings.
29554
29555 2008-06-13 Bean <bean123ch@gmail.com>
29556
29557 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
29558
29559 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
29560
29561 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
29562 to indicate sparse block.
29563
29564 2008-06-12 Pavel Roskin <proski@gnu.org>
29565
29566 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
29567 number, grub_fshelp_read() does it for us.
29568
29569 * fs/fshelp.c (grub_fshelp_read): New function. Implement
29570 linear disk read with journal translation.
29571 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
29572 * include/grub/fshelp.h: Declare grub_fshelp_read().
29573
29574 2008-06-09 Pavel Roskin <proski@gnu.org>
29575
29576 * fs/minix.c (grub_minix_mount): Handle error reading
29577 superblock.
29578
29579 2008-06-08 Robert Millan <rmh@aybabtu.com>
29580
29581 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
29582 don't append the RAID prefix afterwards.
29583 Reported by Clint Adams.
29584
29585 2008-06-08 Robert Millan <rmh@aybabtu.com>
29586
29587 Based on description from Pavel:
29588 * kern/disk.c (grub_disk_check_range): Rename to ...
29589 (grub_disk_adjust_range): ... this. Add a comment explaining the
29590 tasks performed by this function.
29591
29592 2008-06-08 Robert Millan <rmh@aybabtu.com>
29593
29594 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
29595 `num_serial' (for consistency with other variables).
29596 (struct grub_ntfs_data): Add `uuid' member.
29597 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
29598 (grub_ntfs_uuid): New function.
29599 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
29600
29601 2008-06-07 Pavel Roskin <proski@gnu.org>
29602
29603 * util/biosdisk.c (open_device): Revert last change to the
29604 function, it broke installation. The sector needs to be
29605 different dependent on which device is opened.
29606
29607 2008-06-06 Robert Millan <rmh@aybabtu.com>
29608
29609 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
29610 rest of GRUB, and breakage doesn't happen if its value were modified.
29611
29612 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29613 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
29614 a constant (same value).
29615 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
29616 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
29617
29618 2008-06-06 Robert Millan <rmh@aybabtu.com>
29619
29620 * util/biosdisk.c (open_device): Do not modify sector offset when
29621 accessing a partition. kern/disk.c already handles this for us.
29622
29623 2008-06-06 Robert Millan <rmh@aybabtu.com>
29624
29625 * util/grub-emu.c (grub_machine_init): Move code in this function from
29626 here ...
29627 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
29628 segfault in case grub_printf() is called).
29629
29630 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
29631 grub_probe. Update all users not to explicitly add it again.
29632 (grub_device): New variable; contains corresponding device for grubdir.
29633 (fs_module, partmap_module, devabstraction_module): Pass
29634 `--device ${grub_device}' to grub_probe to avoid traversing /dev
29635 every time.
29636
29637 2008-06-05 Robert Millan <rmh@aybabtu.com>
29638
29639 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
29640 is found, print it (same layout as with labels).
29641
29642 2008-06-04 Robert Millan <rmh@aybabtu.com>
29643
29644 * util/biosdisk.c (get_drive): Rename to ...
29645 (find_grub_drive): ... this. Update all users.
29646
29647 (get_os_disk): Rename to ...
29648 (convert_system_partition_to_system_disk): ... this. Update all users.
29649
29650 (find_drive): Rename to ...
29651 (find_system_device): ... this. Update all users.
29652
29653 2008-06-04 Robert Millan <rmh@aybabtu.com>
29654
29655 * util/biosdisk.c (get_os_disk): Handle IDA devices.
29656 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29657 (make_device_map): Likewise.
29658
29659 2008-06-01 Robert Millan <rmh@aybabtu.com>
29660
29661 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
29662 before dereferencing it.
29663
29664 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
29665 union with fat12/fat16-specific ones. Add some new fields, including
29666 `num_serial' for both versions.
29667 (struct grub_fat_data): Add `uuid' member.
29668 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
29669 names. Initialize `data->uuid' using `num_serial'.
29670 (grub_fat_uuid): New function.
29671 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
29672
29673 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
29674 (grub_reiserfs_uuid): New function.
29675 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
29676 member.
29677
29678 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
29679 (grub_xfs_uuid): New function.
29680 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
29681
29682 2008-06-01 Robert Millan <rmh@aybabtu.com>
29683
29684 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
29685 code that is backward compatible with pre-uuid search command.
29686
29687 2008-05-31 Robert Millan <rmh@aybabtu.com>
29688
29689 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
29690 floppies after everything else, to ensure floppy drive isn't accessed
29691 unnecessarily (patch from Bean).
29692
29693 2008-05-31 Robert Millan <rmh@aybabtu.com>
29694
29695 * commands/search.c (search_label, search_fs_uuid, search_file): Do
29696 not print device names when we were asked to set a variable.
29697
29698 2008-05-31 Robert Millan <rmh@aybabtu.com>
29699
29700 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
29701 using "cursor-on" and "cursor-off" commands (understood at least by
29702 the Open Firmware flavour on OLPC).
29703
29704 2008-05-31 Michael Gorven <michael@gorven.za.net>
29705
29706 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
29707 on and off sequences.
29708
29709 2008-05-31 Robert Millan <rmh@aybabtu.com>
29710
29711 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
29712 * util/update-grub.in: Likewise.
29713
29714 2008-05-30 Pavel Roskin <proski@gnu.org>
29715
29716 * util/biosdisk.c (linux_find_partition): Simplify logic and
29717 make the code more universal. Keep special processing for
29718 devfs, but use a simple rule for all other devices. If the
29719 device ends with a number, append 'p' and the partition number.
29720 Otherwise, append only the partition number.
29721
29722 2008-05-30 Robert Millan <rmh@aybabtu.com>
29723
29724 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
29725 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
29726 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
29727 the `root' parameter to Linux.
29728
29729 2008-05-30 Robert Millan <rmh@aybabtu.com>
29730
29731 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
29732 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
29733 --fs_uuid with --fs-uuid.
29734 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
29735 all filesystems support them).
29736
29737 2008-05-30 Robert Millan <rmh@aybabtu.com>
29738
29739 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
29740 grub_printf() flags, since we're printing in units of 2 bytes.
29741
29742 2008-05-30 Robert Millan <rmh@aybabtu.com>
29743
29744 * util/grub.d/00_header.in: Remove obsolete comment referencing
29745 convert_system_path_to_grub_path().
29746 * util/update-grub.in: Likewise.
29747 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
29748 (convert_system_path_to_grub_path): Add a warning message explaining
29749 that this function is deprecated. Rely on is_path_readable_by_grub()
29750 for the readability checks.
29751 (font_path): Use is_path_readable_by_grub() for the readability
29752 check rather than convert_system_path_to_grub_path().
29753
29754 2008-05-30 Robert Millan <rmh@aybabtu.com>
29755
29756 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
29757 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
29758 converting it first.
29759 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
29760 grub.cfg for access to font file, and afterwards call it again to set
29761 the root device.
29762
29763 2008-05-30 Robert Millan <rmh@aybabtu.com>
29764
29765 * commands/search.c (options): Add --fs_uuid option.
29766 (search_fs_uuid): New function.
29767 (grub_cmd_search): Fix --set argument passing.
29768 Use search_fs_uuid() when requested via --fs_uuid.
29769 (grub_search_init): Update help message.
29770 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
29771 and redeclare it as an array of 16-bit words.
29772 (grub_ext2_uuid): New function.
29773 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
29774 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
29775 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
29776 (GRUB_DEVICE_BOOT_UUID): New variables.
29777 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
29778 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
29779 whenever possible.
29780 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
29781 just assume `root' variable has the right value.
29782 * util/grub.d/10_linux.in: Likewise.
29783 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
29784 via PRINT_FS_UUID.
29785 (main): Recognise `-t fs_uuid' argument.
29786
29787 2008-05-30 Robert Millan <rmh@aybabtu.com>
29788
29789 * util/biosdisk.c (map): Redefine structure to hold information
29790 about GRUB drive name.
29791 (get_drive): Reimplement without assuming (and verifying) BIOS-like
29792 drive names.
29793 (call_hook): Remove.
29794 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
29795 member. Assume drive has partitions.
29796 (grub_util_biosdisk_open): Access device names via `.device' struct
29797 member.
29798 (open_device): Likewise.
29799 (find_drive): Likewise.
29800 (read_device_map): Adjust map[] usage to match the new struct
29801 definition. Don't check for duplicates (still possible, but not cheap
29802 anymore).
29803 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
29804 (make_device_name): Remove assumption of BIOS-like drive names.
29805
29806 2008-05-30 Pavel Roskin <proski@gnu.org>
29807
29808 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
29809 compiling execute.c doesn't need grub_script.tab.h anymore.
29810 (normal/command.c_DEPENDENCIES): Likewise.
29811 (normal/function.c_DEPENDENCIES): Likewise.
29812 * conf/i386-ieee1275.rmk: Likewise.
29813 * conf/i386-linuxbios.rmk: Likewise.
29814 * conf/i386-pc.rmk: Likewise.
29815 * conf/powerpc-ieee1275.rmk: Likewise.
29816 * conf/sparc64-ieee1275.rmk: Likewise.
29817
29818 2008-05-29 Pavel Roskin <proski@gnu.org>
29819
29820 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
29821 when scanning metadata for volume group name.
29822
29823 * include/grub/script.h: Don't include grub_script.tab.h. It's
29824 a generated file, which may only be included from the files with
29825 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
29826 use union YYSTYPE, as the later allows forward declaration.
29827 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
29828
29829 2008-05-29 Robert Millan <rmh@aybabtu.com>
29830
29831 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
29832 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
29833 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
29834 (grub_console_checkkey): Add grub_dprintf() call to report unknown
29835 scan codes.
29836
29837 2008-05-29 Robert Millan <rmh@aybabtu.com>
29838
29839 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
29840 control key combinations.
29841
29842 2008-05-29 Robert Millan <rmh@aybabtu.com>
29843
29844 * util/powerpc/ieee1275/grub-install.in: Move from here ...
29845 * util/ieee1275/grub-install.in: ... to here.
29846 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
29847 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
29848 (grub_install_SOURCES): Likewise.
29849
29850 2008-05-29 Robert Millan <rmh@aybabtu.com>
29851
29852 * fs/affs.c: Update copyright year.
29853 * fs/ext2.c: Likewise.
29854 * fs/fshelp.c: Likewise.
29855 * fs/hfsplus.c: Likewise.
29856 * fs/ntfs.c: Likewise.
29857 * fs/xfs.c: Likewise.
29858 * include/grub/fshelp.h: Likewise.
29859 * util/grub-mkdevicemap.c: Likewise.
29860
29861 2008-05-28 Robert Millan <rmh@aybabtu.com>
29862
29863 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
29864 might need to be fatfs to support some firmware implementations
29865 (e.g. OFW or EFI).
29866
29867 2008-05-28 Robert Millan <rmh@aybabtu.com>
29868
29869 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
29870 devices.
29871 * util/grub-mkdevicemap.c (get_mmc_disk_name)
29872 (make_device_map): Likewise.
29873
29874 2008-05-20 Bean <bean123ch@gmail.com>
29875
29876 * fs/fshelp.c (grub_fshelp_map_block): New function.
29877 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
29878 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
29879
29880 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
29881 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
29882 (grub_fshelp_journal): New structure.
29883 (grub_fshelp_map_block): New function prototype.
29884 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
29885 (grub_fshelp_map_block): Likewise.
29886
29887 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
29888 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
29889 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
29890 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
29891 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
29892 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
29893 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
29894 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
29895 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
29896 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
29897 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
29898 (grub_ext2_sblock): New members for journal support.
29899 (grub_ext3_journal_header): New structure.
29900 (grub_ext3_journal_revoke_header): Likewise.
29901 (grub_ext3_journal_block_tag): Likewise.
29902 (grub_ext3_journal_sblock): Likewise.
29903 (grub_fshelp_node): New members logfile and journal.
29904 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
29905 grub_fshelp_map_block to get real block number.
29906 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
29907 number.
29908 (grub_ext2_read_inode): Likewise.
29909 (grub_ext3_get_journal): New function.
29910 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
29911 (grub_ext2_close): Release memory used by journal.
29912
29913 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
29914 (REISERFS_MAGIC_DESC_BLOCK): New macro.
29915 (grub_reiserfs_transaction_header): Renamed to
29916 grub_reiserfs_description_block, replace field data with real_blocks.
29917 (grub_reiserfs_commit_block): New structure.
29918 (grub_reiserfs_data): New member journal.
29919 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
29920 number.
29921 (grub_reiserfs_read_symlink): Likewise.
29922 (grub_reiserfs_iterate_dir): Likewise.
29923 (grub_reiserfs_open): Likewise.
29924 (grub_reiserfs_read): Likewise.
29925 (grub_reiserfs_get_journal): New function.
29926 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
29927 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
29928 using grub_reiserfs_get_journal.
29929 (grub_reiserfs_close): Release memory used by journal.
29930
29931 * fs/affs.c (grub_affs_read_block): Change block type to
29932 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
29933
29934 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
29935
29936 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
29937
29938 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
29939
29940 * fs/udf.c (grub_udf_read_block): Change block type to
29941 grub_disk_addr_t. Use type cast to avoid warning.
29942
29943 * fs/xfs.c (grub_xfs_read_block): Likewise.
29944
29945 2008-05-16 Christian Franke <franke@computer.org>
29946
29947 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
29948 to ensure that break with ESC will always work.
29949 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
29950 Remove ESC from keyboard queue.
29951
29952 2008-05-16 Christian Franke <franke@computer.org>
29953
29954 * util/biosdisk.c: [__CYGWIN__] Add includes.
29955 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
29956 (get_os_disk): Move variable declarations to OS specific
29957 parts to avoid warning.
29958 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
29959 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
29960 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
29961 Cygwin.
29962 * util/getroot.c: [__CYGWIN__] Add includes.
29963 (strip_extra_slashes): Fix "/" case.
29964 [__CYGWIN__] (get_win32_path): New function.
29965 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
29966 [__CYGWIN__] (find_root_device): Disable.
29967 [__CYGWIN__] (get_bootsec_serial): New function.
29968 [__CYGWIN__] (find_cygwin_root_device): Likewise.
29969 [__linux__] (grub_guess_root_device): Add early returns to simplify
29970 structure.
29971 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
29972 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
29973 check for Linux only.
29974
29975 2008-05-15 Bean <bean123ch@gmail.com>
29976
29977 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
29978 keyboard hang problem in apple's intel mac.
29979
29980 2008-05-09 Robert Millan <rmh@aybabtu.com>
29981
29982 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
29983 devices.
29984 * util/grub-mkdevicemap.c (get_virtio_disk_name)
29985 (make_device_map): Likewise.
29986 Reported by Aurelien Jarno <aurel32@debian.org>
29987
29988 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
29989
29990 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
29991 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
29992 (make_device_map): Output entries for xvd type disks.
29993
29994 2008-05-07 Robert Millan <rmh@aybabtu.com>
29995
29996 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
29997 devices.
29998 * util/grub-mkdevicemap.c (get_cciss_disk_name)
29999 (make_device_map): Likewise.
30000 Reported by Roland Dreier <rdreier@cisco.com>
30001
30002 2008-05-07 Robert Millan <rmh@aybabtu.com>
30003
30004 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30005 grub_strstr() call. Correct a few mistakes in failure path handling.
30006
30007 2008-05-06 Robert Millan <rmh@aybabtu.com>
30008
30009 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30010 Do not print a trailing slash (therefore, the root directory is an
30011 empty string).
30012 (convert_system_path_to_grub_path): Do not remove trailing slash
30013 from make_system_path_relative_to_its_root() output.
30014
30015 * util/i386/pc/grub-install.in: Add trailing slash to output from
30016 make_system_path_relative_to_its_root().
30017
30018 2008-05-06 Robert Millan <rmh@aybabtu.com>
30019
30020 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30021 ensures that output lines aren't intermangled with those sent to
30022 stderr (via grub_util_info()).
30023 * util/grub-probe.c (grub_refresh): Likewise.
30024 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30025
30026 2008-05-05 Christian Franke <franke@computer.org>
30027
30028 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30029 Add Cygwin device names.
30030 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30031 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30032 (check_device): Return error instead of success on empty name.
30033 (make_device_map): Move label inside linux specific code to
30034 prevent compiler warning.
30035
30036 2008-04-30 Robert Millan <rmh@aybabtu.com>
30037
30038 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30039 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30040 first boot option.
30041 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30042
30043 2008-04-29 Robert Millan <rmh@aybabtu.com>
30044
30045 * docs/grub.cfg: New file (example GRUB configuration).
30046
30047 2008-04-26 Robert Millan <rmh@aybabtu.com>
30048
30049 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30050 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30051 and `disk/ieee1275/nand.c'.
30052
30053 2008-04-25 Bean <bean123ch@gmail.com>
30054
30055 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30056 i386-linuxbios.
30057
30058 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30059 change the buffer size to 4096 for cdrom device.
30060
30061 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30062 and nand.mod.
30063 (_linux_mod_SOURCES): New variable.
30064 (_linux_mod_CFLAGS): Likewise.
30065 (_linux_mod_LDFLAGS): Likewise.
30066 (linux_mod_SOURCES): Likewise.
30067 (linux_mod_CFLAGS): Likewise.
30068 (linux_mod_LDFLAGS): Likewise.
30069 (nand_mod_SOURCES): Likewise.
30070 (nand_mod_CFLAGS): Likewise.
30071 (nand_mod_LDFLAGS): Likewise.
30072
30073 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30074 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30075 type property. (nand device in olpc don't have this property)
30076
30077 * include/grub/disk.h (grub_disk_dev_id): New macro
30078 GRUB_DISK_DEVICE_NAND_ID.
30079
30080 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30081 function prototype.
30082 (grub_rescue_cmd_initrd): Likewise.
30083
30084 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30085 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30086 ofw_cif_handler and ofw_idt, adjust padding number.
30087
30088 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30089 GRUB_MACHINE_IEEE1275 is defined.
30090
30091 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30092 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30093
30094 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30095 on nested function heap_init.
30096 (grub_upper_mem): New variable for i386-ieee1275.
30097 (grub_get_extended_memory): New function for i386-ieee1275.
30098 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30099
30100 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30101 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30102 property.
30103
30104 * loader/i386/ieee1275/linux.c: New file.
30105
30106 * loader/i386/ieee1275/linux_normal.c: New file.
30107
30108 * disk/ieee1275/nand.c: New file.
30109
30110 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30111
30112 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30113 value.
30114 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30115
30116 2008-04-18 Robert Millan <rmh@aybabtu.com>
30117
30118 Restructures early code path on ieee1275 to unify grub_main() as
30119 the first C function that is executed in every platform.
30120
30121 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30122 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30123 cmain().
30124 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30125 * kern/ieee1275/cmain.c (cmain): Rename to ...
30126 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30127 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30128 at the beginning.
30129
30130 2008-04-18 Robert Millan <rmh@aybabtu.com>
30131
30132 * util/update-grub.in: Fix syntax error when setting
30133 `GRUB_PRELOAD_MODULES'.
30134 Reported by Stephane Chazelas <stephane@artesyncp.com>
30135
30136 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30137
30138 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30139 section into account, newer toolchains generate unique build ids
30140 * configure.ac: remove the test for --build-id=none acceptance,
30141 we want build ids to be preserved
30142 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30143 far from other sections don't cause the raw binary images grow
30144 size
30145
30146 2008-04-15 Robert Millan <rmh@aybabtu.com>
30147
30148 * disk/lvm.c: Update copyright year.
30149 * kern/misc.c: Likewise.
30150
30151 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30152
30153 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30154 there is no memory left for physical volume name.
30155
30156 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30157
30158 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30159 volume name mapping to support bigger than 9 character names properly.
30160
30161 2008-04-13 Robert Millan <rmh@aybabtu.com>
30162
30163 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30164 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30165
30166 2008-04-13 Christian Franke <franke@computer.org>
30167
30168 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30169 to create a floppy emulation boot CD when non emulation mode
30170 does not work.
30171 Enable Joliet CD filesystem extension.
30172
30173 2008-04-13 Robert Millan <rmh@aybabtu.com>
30174
30175 * kern/misc.c (grub_strncat): Fix off-by-one error.
30176 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30177
30178 * kern/env.c (grub_env_context_close): Clear current context, not
30179 previous one.
30180 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30181
30182 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30183
30184 2008-04-13 Robert Millan <rmh@aybabtu.com>
30185
30186 Improve robustness when handling LVM.
30187
30188 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30189 (and leave `*p' unmodified).
30190 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30191 through it.
30192 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30193 iterating through it.
30194 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30195 through it.
30196 (grub_lvm_scan_device): Check the return value (and fail gracefully
30197 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30198 Don't assume `vg->pvs != NULL' when iterating through it.
30199
30200 2008-04-13 Robert Millan <rmh@aybabtu.com>
30201
30202 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30203 * genmk.rb (partmap): New variable.
30204 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30205 (#{partmap}): New target rule.
30206 * genpartmaplist.sh: New file.
30207 * Makefile.in (pkglib_DATA): Add partmap.lst.
30208 (partmap.lst): New target rule.
30209 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30210 modules (including all partition maps), instead of preloading them.
30211
30212 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30213
30214 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30215 `linux-boot-prober' (if installed) to detect other operating
30216 systems which are installed on the computer and add them to
30217 the boot menu.
30218 * conf/common.rmk: Build and install 30_os-prober.
30219
30220 2008-04-12 Robert Millan <rmh@aybabtu.com>
30221
30222 * kern/powerpc/ieee1275/init.c: Move from here ...
30223 * kern/ieee1275/init.c: ... to here. Update all users.
30224
30225 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30226 * kern/ieee1275/cmain.c: ... to here. Update all users.
30227
30228 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30229 * kern/ieee1275/openfw.c: ... to here. Update all users.
30230
30231 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30232 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30233
30234 2008-04-10 Pavel Roskin <proski@gnu.org>
30235
30236 * configure.ac: Always use "_cv_" in cache variables for
30237 compatibility with Autoconf 2.62.
30238
30239 2008-04-07 Robert Millan <rmh@aybabtu.com>
30240
30241 Revert grub/machine/init.h addition by Pavel (since it breaks on
30242 i386-ieee1275 and others):
30243 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30244 * util/powerpc/ieee1275/misc.c: Likewise.
30245
30246 2008-04-07 Robert Millan <rmh@aybabtu.com>
30247
30248 * util/grub-probe.c (probe): Improve error message.
30249
30250 2008-04-07 Robert Millan <rmh@aybabtu.com>
30251
30252 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30253 (this prevents the presence of a bogus entry from ruining the whole
30254 thing).
30255
30256 2008-04-06 Pavel Roskin <proski@gnu.org>
30257
30258 * util/biosdisk.c: Include grub/util/biosdisk.h.
30259 * util/grub-fstest.c (execute_command): Make static.
30260 * util/grub-mkdevicemap.c (check_device): Likewise.
30261 * util/i386/pc/misc.c: Include grub/machine/init.h.
30262 * util/powerpc/ieee1275/misc.c: Likewise.
30263 * util/lvm.c: Include grub/util/lvm.h.
30264 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30265 grub/cache.h.
30266 * util/raid.c: Include grub/util/raid.h.
30267 (grub_util_getdiskname): Make static.
30268
30269 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30270 grub_hostfs_fini(), as they are called from grub_init_all() and
30271 grub_fini_all() respectively. This fixes an infinite loop in
30272 grub-fstest due to double registration of hostfs.
30273 Reported by Christian Franke <Christian.Franke@t-online.de>
30274
30275 2008-04-05 Pavel Roskin <proski@gnu.org>
30276
30277 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30278 all 8 functions. Otherwise, probe function 0 only.
30279
30280 2008-04-04 Pavel Roskin <proski@gnu.org>
30281
30282 * commands/lspci.c (grub_lspci_iter): Print the bus number
30283 correctly.
30284
30285 * commands/lspci.c (grub_pci_classes): Fix typos.
30286 (grub_lspci_iter): Don't print func twice. Print vendor ID
30287 before device ID, as it's normally done.
30288
30289 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30290 Fix signedness warnings.
30291 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30292 Likewise.
30293 * util/ieee1275/get_disk_name.c: Include config.h so that
30294 _GNU_SOURCE is defined and getline() is declared. Mark an
30295 unused argument as such. Fix a signedness warning.
30296
30297 2008-04-02 Pavel Roskin <proski@gnu.org>
30298
30299 * genkernsyms.sh.in: Use more robust assignments for CC and
30300 srcdir. Quote srcdir.
30301 * gensymlist.sh.in: Likewise. Assert at the compile time that
30302 the symbol table is not empty.
30303
30304 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30305 * fs/cpio.c (grub_cpio_read): Likewise.
30306
30307 2008-04-01 Pavel Roskin <proski@gnu.org>
30308
30309 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30310 * disk/host.c (grub_host_open): Likewise.
30311 * disk/loopback.c (grub_loopback_open): Likewise.
30312 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30313 disk->id as in disk/host.c, not a multi-character constant.
30314
30315 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30316 later is obsolete, potentially dangerous and sets a bad example.
30317 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30318 * util/misc.c (grub_util_get_image_size): Likewise.
30319
30320 * disk/loopback.c (options): Improve help for "--partitions".
30321
30322 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30323 options to align them with the short options, e.g. "echo -e".
30324
30325 2008-03-31 Bean <bean123ch@gmail.com>
30326
30327 * video/reader/png.c (grub_png_data): New member is_16bit and
30328 image_data.
30329 (grub_png_decode_image_header): Detect 16 bit png image.
30330 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
30331 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
30332 (grub_video_reader_png): Release memory occupied by image_data.
30333
30334 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
30335 4096 bytes.
30336 (grub_nfs_mount): Skip the test for sector per cluster.
30337
30338 * include/grub/ntfs.h (MAX_SPC): Removed.
30339
30340 2008-03-31 Bean <bean123ch@gmail.com>
30341
30342 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
30343 (grub_probe_SOURCES): Add fs/afs.c.
30344 (grub_fstest_SOURCES): Likewise.
30345 (afs_mod_SOURCES): New variable.
30346 (afs_mod_CFLAGS): Likewise.
30347 (afs_mod_LDFLAGS): Likewise.
30348
30349 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
30350 (grub_emu_SOURCES): Likewise.
30351
30352 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30353
30354 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30355
30356 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30357
30358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30359
30360 * fs/afs.c: New file.
30361
30362 2008-03-30 Pavel Roskin <proski@gnu.org>
30363
30364 * disk/host.c: Include grub/misc.h to fix a warning.
30365 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
30366 warnings about implicit declarations.
30367
30368 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
30369 variable.
30370 * include/grub/i386/loader.h: Change declaration of
30371 grub_linux_boot() to match what grub_loader_set() expects.
30372 * util/getroot.c (grub_guess_root_device): Return const char* to
30373 fix a warning.
30374 * util/grub-probe.c (probe): Fix a warning about uninitialized
30375 abstraction_name variable.
30376 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
30377 second argument as unused to fix a warning.
30378
30379 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
30380 missing grub_error() call.
30381
30382 * util/update-grub_lib.in: Define datarootdir, since Autoconf
30383 2.60 and newer uses it to define datadir.
30384
30385 * commands/sleep.c: Fix warning about implicit declaration.
30386 * disk/memdisk.c: Likewise.
30387 * loader/aout.c: Likewise.
30388 * loader/i386/bsd_normal.c: Likewise.
30389 * util/grub-probe.c: Likewise.
30390
30391 * commands/i386/cpuid.c (has_longmode): Make static.
30392 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
30393 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
30394
30395 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
30396 GDT. This is more robust, as %ds can change.
30397 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
30398 calling real_to_prot().
30399 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
30400
30401 2008-03-28 Pavel Roskin <proski@gnu.org>
30402
30403 * kern/i386/pc/startup.S: Assert that uncompressed functions
30404 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
30405 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
30406 code, as they push parts of the code (error handlers) beyond
30407 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
30408 code as correctness and size.
30409
30410 2008-03-28 Pavel Roskin <proski@gnu.org>
30411
30412 * kern/i386/pc/startup.S
30413 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
30414 data block address to the real mode, keep offset minimal. This
30415 works around a bug in AWARD BIOS on old Athlon systems, which
30416 makes CD detection hang.
30417
30418 2008-03-26 Pavel Roskin <proski@gnu.org>
30419
30420 * normal/color.c (grub_parse_color_name_pair): Make `name' a
30421 const.
30422 * include/grub/normal.h: Add grub_parse_color_name_pair()
30423 declaration.
30424
30425 2008-03-24 Bean <bean123ch@gmail.com>
30426
30427 * disk/i386/pc/biosdisk.c (cd_start): Removed.
30428 (cd_count): Removed.
30429 (cd_drive): New variable.
30430 (grub_biosdisk_get_drive): Don't check for (cdN) device.
30431 (grub_biosdisk_call_hook): Likewise.
30432 (grub_biosdisk_iterate): Change cdrom detection method.
30433 (grub_biosdisk_open): Replace cd_start with cd_drive.
30434 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
30435 detect cdrom device.
30436
30437 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
30438 Removed.
30439 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
30440 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
30441 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
30442 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
30443 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
30444 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
30445 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
30446 (grub_biosdisk_cdrp): New structure.
30447 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
30448
30449 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
30450
30451 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
30452 device.
30453
30454 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
30455 New function.
30456
30457 2008-03-20 Robert Millan <rmh@aybabtu.com>
30458
30459 Remove 2 TiB limit in ata.mod.
30460 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
30461 (grub_ata_dumpinfo): Print sector count with 0x%llx.
30462 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
30463 grub_uint64_t instead of grub_uint32_t.
30464
30465 2008-03-05 Bean <bean123ch@gmail.com>
30466
30467 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
30468 (grub_multiboot): Set boot device.
30469
30470 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
30471
30472 2008-03-02 Bean <bean123ch@gmail.com>
30473
30474 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
30475 symlink_buffer.
30476
30477 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
30478
30479 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
30480 texinfo.tex.
30481
30482 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
30483 modified.
30484
30485 * docs/fdl.texi: New file.
30486
30487 * docs/mdate-sh: New file. Copied from gnulib.
30488 * docs/texinfo.tex: Likewise.
30489
30490 * config.guess: Updated from gnulib.
30491 * install-sh: Likewise.
30492
30493 2008-02-28 Robert Millan <rmh@aybabtu.com>
30494
30495 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
30496 (aout_mod_SOURCES): New variable.
30497 (aout_mod_CFLAGS): Likewise.
30498 (aout_mod_LDFLAGS): Likewise.
30499
30500 * conf/i386-ieee1275.rmk: Likewise.
30501
30502 2008-02-28 Robert Millan <rmh@aybabtu.com>
30503
30504 * util/update-grub.in: Reorganise terminal validity check. Accept
30505 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
30506 Based on suggestion by Franklin PIAT.
30507
30508 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
30509
30510 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
30511 function.
30512 * util/getroot.c (grub_util_check_block_device): New function that
30513 returns the given argument if it is a block device and returns NULL else.
30514 * util/grub-probe.c (argument_is_device): New variable.
30515 (probe): Promote device_name from a variable to an argument. Receive
30516 device_name from grub_util_check_block_device() if path is NULL and from
30517 grub_guess_root_device() else. Do not free() device_name anymore.
30518 (options): Introduce new parameter '-d, --device'.
30519 (main): Add description of the new parameter to the help screen.
30520 Rename path variable to argument. Set argument_is_device if the '-d'
30521 option is given. Pass argument to probe() depending on
30522 argument_is_device.
30523
30524 2008-02-24 Bean <bean123ch@gmail.com>
30525
30526 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
30527 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
30528 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
30529 (GRUB_ISO9660_VOLDESC_PART): Likewise.
30530 (GRUB_ISO9660_VOLDESC_END): Likewise.
30531 (grub_iso9660_primary_voldesc): New member escape.
30532 (grub_iso9660_data): New member joliet.
30533 (grub_iso9660_convert_string): New function.
30534 (grub_iso9660_mount): Detect joliet extension.
30535 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
30536 (grub_iso9660_iso9660_label): Likewise.
30537
30538 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
30539 (grub_setup_SOURCES): Add fs/udf.c.
30540 (grub_fstest_SOURCES): Likewise.
30541 (udf_mod_SOURCES): New variable.
30542 (udf_mod_CFLAGS): Likewise.
30543 (udf_mod_LDFLAGS): Likewise.
30544
30545 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
30546 (grub_emu_SOURCES): Likewise.
30547
30548 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30549
30550 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30551
30552 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30553
30554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30555
30556 * fs/udf.c: New file.
30557
30558 2008-02-24 Robert Millan <rmh@aybabtu.com>
30559
30560 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
30561 (normal/lexer.c_DEPENDENCIES): New variables.
30562 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30563 (normal/lexer.c_DEPENDENCIES): Likewise.
30564 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
30565 (normal/lexer.c_DEPENDENCIES): Likewise.
30566 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
30567 (normal/lexer.c_DEPENDENCIES): Likewise.
30568 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30569 (normal/lexer.c_DEPENDENCIES): Likewise.
30570 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
30571 (normal/lexer.c_DEPENDENCIES): Likewise.
30572
30573 2008-02-23 Robert Millan <rmh@aybabtu.com>
30574
30575 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
30576 since they were intended to be in hex. This didn't break previously
30577 because of a bug in gpt_partition_map_iterate() (see below).
30578
30579 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
30580 when checking the validity of GPT header.
30581 Remove `partno', since it always provides the same information as `i'.
30582
30583 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
30584
30585 * include/grub/efi/time.h: Fix a wrong comment.
30586
30587 2008-02-19 Pavel Roskin <proski@gnu.org>
30588
30589 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
30590 message.
30591
30592 2008-02-19 Bean <bean123ch@gmail.com>
30593
30594 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
30595 (aout_mod_SOURCES): New variable.
30596 (aout_mod_CFLAGS): Likewise.
30597 (aout_mod_LDFLAGS): Likewise.
30598 (_bsd_mod_SOURCES): New variable.
30599 (_bsd_mod_CFLAGS): Likewise.
30600 (_bsd_mod_LDFLAGS): Likewise.
30601 (bsd_mod_SOURCES): New variable.
30602 (bsd_mod_CFLAGS): Likewise.
30603 (bsd_mod_LDFLAGS): Likewise.
30604
30605 * include/grub/aout.h: New file.
30606
30607 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
30608
30609 * include/grub/i386/bsd.h: New file.
30610
30611 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
30612 to make it public.
30613
30614 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
30615 function is called, so that it's possible to change it inside the hook.
30616 (grub_elf64_load): Likewise.
30617 (grub_elf_file): Don't close the file if elf header is not found.
30618 (grub_elf_close): Close the file if grub_elf_file fails (The new
30619 grub_elf_file won't close it).
30620 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
30621 (grub_elf64_size): Likewise.
30622
30623 * kern/i386/loader.S (grub_unix_real_boot): New function.
30624
30625 * loader/aout.c: New file.
30626
30627 * loader/i386/bsd.c: New file.
30628
30629 * loader/i386/bsd_normal.c: New file.
30630
30631 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
30632
30633 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
30634 can test other formats.
30635
30636 2008-02-19 Robert Millan <rmh@aybabtu.com>
30637
30638 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
30639 (grub_gpt_partition_type_empty): Redefine with macro from
30640 `<grub/gpt_partition.h>'.
30641 (gpt_partition_map_iterate): Adjust partition type comparison.
30642
30643 Export `entry' as partmap-specific `part.data' struct.
30644 (grub_gpt_header, grub_gpt_partentry): Move from here ...
30645
30646 * include/grub/gpt_partition.h (grub_gpt_header)
30647 (grub_gpt_partentry): ... to here (new file).
30648
30649 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
30650
30651 (grub_gpt_partition_type_bios_boot): New const variable, defined
30652 with macro from `<grub/gpt_partition.h>'.
30653
30654 (setup): Replace `first_start' with `embed_region', which keeps
30655 track of the embed region (and is partmap-agnostic).
30656
30657 Replace find_first_partition_start() with find_usable_region(),
30658 which finds a usable region for embedding using partmap-specific
30659 knowledge (supports PC/MSDOS and GPT).
30660
30661 Fix all assumptions that the embed region start at sector 1, using
30662 `embed_region.start' from now on. Similarly, use `embed_region.end'
30663 rather than `first_start' to calculate available size.
30664
30665 In grub_util_info() message, replace "into after the MBR" with an
30666 indication of the specific sector our embed region starts at.
30667
30668 2008-02-19 Robert Millan <rmh@aybabtu.com>
30669
30670 * DISTLIST: Replace `commands/ieee1275/halt.c' and
30671 `commands/ieee1275/reboot.c' with `commands/halt.c' and
30672 `commands/reboot.c'.
30673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30674 (halt_mod_SOURCES): Likewise.
30675 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
30676 (halt_mod_SOURCES): Likewise.
30677
30678 2008-02-17 Christian Franke <franke@computer.org>
30679
30680 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
30681
30682 2008-02-17 Robert Millan <rmh@aybabtu.com>
30683
30684 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30685 set `first_start' to 0 for non-PC/MSDOS partition maps.
30686
30687 2008-02-16 Robert Millan <rmh@aybabtu.com>
30688
30689 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
30690 do not assume partition map is PC/MSDOS before performing checks that
30691 are specific to that layout.
30692
30693 2008-02-13 Robert Millan <rmh@aybabtu.com>
30694
30695 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
30696 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
30697 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
30698
30699 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
30700
30701 * configure.ac: Only a cosmetic change on the handling of
30702 -fno-stack-protector.
30703
30704 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
30705
30706 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
30707 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
30708 reboot.c.
30709 (grub_install_SOURCES): Add halt.mod and reboot.mod.
30710 (halt_mod_SOURCES): New variable.
30711 (halt_mod_CFLAGS): Likewise.
30712 (halt_mod_LDFLAGS): Likewise.
30713 (reboot_mod_SOURCES): Likewise.
30714 (reboot_mod_CFLAGS): Likewise.
30715 (reboot_mod_LDFLAGS): Likewise.
30716
30717 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
30718 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
30719 reboot.c.
30720 (halt_mod_SOURCES): Likewise.
30721 (reboot_mod_SOURCES): Likewise.
30722
30723 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
30724 commands/i386/pc/reboot.c by commands/reboot.c.
30725 (reboot_mod_SOURCES): Likewise.
30726
30727 * commands/i386/pc/reboot.c: merge this file ...
30728
30729 * commands/ieee1275/reboot.c: ... and this file ...
30730
30731 * commands/reboot.c: ... to this file.
30732 Add some precompiler directive to include the correct header for
30733 each machine.
30734
30735 * commands/ieee1275/halt.c: move this file ...
30736
30737 * commands/halt.c: ... to here.
30738 Add some precompiler directive to include the correct header for
30739 each machine.
30740
30741 * include/grub/efi/efi.h (grub_reboot): New function declaration.
30742 (grub_halt): Likewise.
30743
30744 * kern/efi/efi.c (grub_reboot): New function.
30745 (grub_halt): Likewise.
30746
30747 2008-02-12 Robert Millan <rmh@aybabtu.com>
30748
30749 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
30750 /dev (like it is done for /dev/mapper). This doesn't provide support
30751 for EVMS, but at least it is now easy to identify the problem when it
30752 arises.
30753
30754 2008-02-11 Robert Millan <rmh@aybabtu.com>
30755
30756 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
30757 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
30758 comparing it with -1, not 0.
30759
30760 2008-02-10 Robert Millan <rmh@aybabtu.com>
30761
30762 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
30763 `disk/lvm.c'.
30764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30765 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30766
30767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
30768 `disk/lvm.c' to the end of the list.
30769 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
30770 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30771
30772 2008-02-10 Robert Millan <rmh@aybabtu.com>
30773
30774 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
30775 grub_print_error() instead. This will let user know why we're entering
30776 rescue mode.
30777 Based on suggestions from Sam Morris.
30778
30779 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
30780
30781 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
30782 on remaining N args, instead of "--" arg N times.
30783
30784 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
30785
30786 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
30787 (fill_with_default_glyph): Changed to use unknown_glyph for fill
30788 pattern for unknown glyphs.
30789
30790 2008-02-09 Robert Millan <rmh@aybabtu.com>
30791
30792 * configure.ac: Probe for `help2man'.
30793 * Makefile.in (builddir): New variable.
30794 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
30795 or otherwise add a few flags/options to it.
30796 (install-local): For every executable utility or script that is
30797 installed, invoke $(HELP2MAN) to install a manpage based on --help
30798 output.
30799
30800 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
30801 that it doesn't prevent --help from working in build tree.
30802
30803 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
30804 with `bug-grub@gnu.org'.
30805 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
30806 * util/update-grub.in (usage): New function.
30807 Implement proper argument check, with support for --help and --version
30808 (as well as existing -y).
30809
30810 2008-02-09 Christian Franke <franke@computer.org>
30811
30812 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
30813 avoid overwriting previous output.
30814 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
30815
30816 2008-02-09 Robert Millan <rmh@aybabtu.com>
30817
30818 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
30819 drawing the menu.
30820
30821 2008-02-09 Robert Millan <rmh@aybabtu.com>
30822
30823 * commands/sleep.c: New file.
30824 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
30825 (sleep_mod_SOURCES): New variable.
30826 (sleep_mod_CFLAGS): Likewise.
30827 (sleep_mod_LDFLAGS): Likewise.
30828
30829 2008-02-09 Robert Millan <rmh@aybabtu.com>
30830
30831 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
30832 situations in which we can deduce the RAID size and the superblock
30833 doesn't match it.
30834
30835 2008-02-09 Robert Millan <rmh@aybabtu.com>
30836
30837 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
30838 and return a grub_diskmemberlist_t composed of LVM physical volumes.
30839 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
30840
30841 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
30842 and return a grub_diskmemberlist_t composed of physical array members.
30843 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
30844
30845 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
30846 prototype.
30847 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
30848 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
30849 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
30850
30851 * util/grub-probe.c (probe): Move partmap probing code from here ...
30852 (probe_partmap): ... to here.
30853 (probe): Use probe_partmap() once for the disk we're probing, and
30854 additionally, when such disk contains a memberlist() struct member,
30855 once for each disk that is contained in the structure returned by
30856 memberlist().
30857
30858 2008-02-09 Robert Millan <rmh@aybabtu.com>
30859
30860 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
30861 environment variable to 'all' in order to obtain debug output from
30862 non-util/ code.
30863 * util/i386/pc/grub-setup.c (main): Likewise.
30864
30865 2008-02-08 Robert Millan <rmh@aybabtu.com>
30866
30867 * disk/raid.c (grub_raid_scan_device): Check for
30868 `array->device[sb.this_disk.number]' rather than for
30869 `array->device[sb.this_disk.number]->name', since the latter is not
30870 guaranteed to be accessible.
30871
30872 2008-02-08 Robert Millan <rmh@aybabtu.com>
30873
30874 * disk/raid.c: Update copyright.
30875 * fs/cpio.c: Likewise.
30876 * include/grub/raid.h: Likewise.
30877 * loader/i386/pc/multiboot.c: Likewise.
30878 * util/hostfs.c: Likewise.
30879
30880 2008-02-08 Robert Millan <rmh@aybabtu.com>
30881
30882 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
30883 to a grub_disk_t array.
30884 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
30885 `device[x]'.
30886 (grub_raid_scan_device): Replace `device[x].name' accesses with
30887 `device[x]->name'. Simplify initialization of `array->device[x]'.
30888
30889 2008-02-08 Robert Millan <rmh@aybabtu.com>
30890
30891 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
30892 grub_dprintf() calls.
30893 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
30894 error message.
30895
30896 2008-02-07 Christian Franke <franke@computer.org>
30897
30898 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
30899 instead of fseek and ftell to support large files.
30900 (grub_hostfs_read): Likewise.
30901
30902 2008-02-07 Robert Millan <rmh@aybabtu.com>
30903
30904 Patch from Jeroen Dekkers.
30905 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
30906 failure, since successfully reading all array members might not be
30907 required.
30908
30909 2008-02-06 Robert Millan <rmh@aybabtu.com>
30910
30911 * util/grub-probe.c (probe): Simplify partmap probing (with the
30912 assumption that the first word up to the underscore equals to
30913 the module name).
30914
30915 2008-02-06 Christian Franke <franke@computer.org>
30916
30917 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
30918 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
30919 last block of a cpio or tar stream.
30920 Check for "TRAILER!!!" instead of any empty data
30921 block to detect last block of a cpio stream.
30922 (grub_cpio_dir): Fix constness of variable np.
30923 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
30924 cpio or tar trailer is detected. This fixes a crash
30925 on open of a non existing file.
30926
30927 2008-02-05 Bean <bean123ch@gmail.com>
30928
30929 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
30930 address of entry.
30931 (grub_multiboot_load_elf64): Likewise.
30932 (grub_multiboot): Initialize mbi structure.
30933
30934 * util/grub-fstest.c: Don't include unused header file script.h.
30935
30936 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
30937 of file.
30938 (grub_fstest_SOURCES): Likewise.
30939
30940 2008-02-05 Robert Millan <rmh@aybabtu.com>
30941
30942 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
30943 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
30944 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
30945 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
30946
30947 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
30948 (translation_table): Replace hardcoded values with macros
30949 provided by `<grub/term.h>'.
30950
30951 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
30952 (keyboard_map): Correct/add a few values, with macros provided
30953 by `<grub/term.h>'.
30954 (keyboard_map_shift): Zero values that don't differ from their
30955 `keyboard_map' equivalents.
30956 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
30957 Discard the second scan code that is always sent by Caps lock.
30958 Only use `keyboard_map_shift' when it provides a non-zero value,
30959 otherwise fallback to `keyboard_map'.
30960
30961 2008-02-04 Bean <bean123ch@gmail.com>
30962
30963 * Makefile.in (enable_grub_fstest): New variable.
30964
30965 * conf/common.rmk (grub_fstest_init.lst): New rule.
30966 (grub_fstest_init.h): Likewise.
30967 (grub_fstest_init.c): Likewise.
30968 (util/grub-fstest.c_DEPENDENCIES): New variable.
30969 (grub_fstest_SOURCES): Likewise.
30970
30971 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
30972
30973 * util/grub-fstest.c: New file.
30974
30975 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30976
30977 Make grub-setup handle a separate root device.
30978
30979 * util/i386/pc/grub-setup.c (setup): Always open the root device,
30980 so that the root device can be compared with the destination
30981 device.
30982 When embedding the core image, if the root and destination devices
30983 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
30984 0xFF.
30985 When not embedding, set ROOT_DRIVE to 0xFF.
30986
30987 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
30988
30989 Add support for having a grub directory in a different drive. This
30990 is still only the data handling part.
30991
30992 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
30993 (codestart): Save %dh in GRUB_ROOT_DRIVE.
30994 (grub_root_drive): New variable.
30995
30996 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
30997 instead of GRUB_BOOT_DRIVE to construct a device name. Set
30998 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
30999 as it was.
31000
31001 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31002
31003 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31004 macro.
31005 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31006
31007 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31008 is bogus, because PXE booting does not specify any drive
31009 correctly.
31010
31011 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31012 am not sure if this is really correct.
31013
31014 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31015 is always identical to the boot drive when booting from a CD.
31016
31017 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31018 longer.
31019 (root_drive): New variable.
31020 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31021 (setup_sectors): Push %dx right after popping it, because %dh will
31022 be modified later.
31023 (copy_buffer): Restore %dx.
31024
31025 2008-02-03 Robert Millan <rmh@aybabtu.com>
31026
31027 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31028 use `cdboot.img' for cdrom images.
31029
31030 2008-02-03 Robert Millan <rmh@aybabtu.com>
31031
31032 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31033 only setup gfxterm when `font' command has succeeded.
31034
31035 2008-02-03 Robert Millan <rmh@aybabtu.com>
31036
31037 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31038 (grub_rescue_cmd_multiboot_loader)
31039 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31040
31041 2008-02-03 Pavel Roskin <proski@gnu.org>
31042
31043 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31044 %edx and %esi from stack only after grub_gate_a20() is called.
31045 grub_gate_a20() clobbers %edx.
31046
31047 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31048
31049 * configure.ac (AC_INIT): Bumped to 1.96.
31050
31051 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31052 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31053 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31054 video/readers/png.c.
31055
31056 2008-02-03 Bean <bean123ch@gmail.com>
31057
31058 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31059 (cdboot_img_SOURCES): New variable.
31060 (cdboot_img_ASFLAGS): New variable.
31061 (cdboot_img_LDFLAGS): New variable.
31062
31063 * boot/i386/pc/cdboot.S: New file.
31064
31065 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31066 (cd_count): Likewise.
31067 (grub_biosdisk_get_drive): Add support for cd device.
31068 (grub_biosdisk_call_hook): Likewise.
31069 (grub_biosdisk_iterate): Likewise.
31070 (grub_biosdisk_open): Likewise.
31071 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31072 (grub_biosdisk_rw): Support reading from cd device.
31073 (GRUB_MOD_INIT): Iterate cd devices.
31074
31075 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31076 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31077 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31078
31079 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31080
31081 2008-02-02 Robert Millan <rmh@aybabtu.com>
31082
31083 * commands/read.c: New file.
31084 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31085 (read_mod_SOURCES): New variable.
31086 (read_mod_CFLAGS): Likewise.
31087 (read_mod_LDFLAGS): Likewise.
31088
31089 2008-02-02 Robert Millan <rmh@aybabtu.com>
31090
31091 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31092 determining whether menu has to be displayed.
31093
31094 2008-02-02 Marco Gerards <marco@gnu.org>
31095
31096 * bus/pci.c: New file.
31097
31098 * include/grub/pci.h: Likewise.
31099
31100 * include/grub/i386/pc/pci.h: Likewise.
31101
31102 * commands/lspci.c: Likewise.
31103
31104 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31105 `lspci.mod'.
31106 (pci_mod_SOURCES): New variable.
31107 (pci_mod_CFLAGS): Likewise.
31108 (pci_mod_LDFLAGS): Likewise.
31109 (lspci_mod_SOURCES): Likewise.
31110 (lspci_mod_CFLAGS): Likewise.
31111 (lspci_mod_LDFLAGS): Likewise.
31112
31113 2008-02-02 Bean <bean123ch@gmail.com>
31114
31115 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31116 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31117
31118 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31119 (grub_xfs_btree_node): New structure.
31120 (grub_xfs_btree_root): New structure.
31121 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31122 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31123 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31124 (GRUB_XFS_EXTENT_SIZE): Likewise.
31125 (grub_xfs_read_block): Support btree format type.
31126 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31127 Use directory block as basic unit.
31128
31129 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31130
31131 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31132 __attribute__ ((__regparm__ (1))).
31133
31134 2008-02-01 Robert Millan <rmh@aybabtu.com>
31135
31136 Correct a mistake in previous commit.
31137
31138 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31139 top.
31140 (normal/command.c_DEPENDENCIES): New variable.
31141
31142 2008-02-01 Robert Millan <rmh@aybabtu.com>
31143
31144 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31145 top.
31146 (normal/command.c_DEPENDENCIES): New variable.
31147 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31148 * conf/i386-ieee1275.rmk: Likewise.
31149 * conf/i386-linuxbios.rmk: Likewise.
31150 * conf/i386-pc.rmk: Likewise.
31151 * conf/sparc64-ieee1275.rmk: Likewise.
31152 * conf/powerpc-ieee1275.rmk: Likewise.
31153 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31154
31155 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31156
31157 2008-02-01 Robert Millan <rmh@aybabtu.com>
31158
31159 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31160 call at beginning of function.
31161
31162 2008-01-31 Pavel Roskin <proski@gnu.org>
31163
31164 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31165 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31166 (grub_mkrescue_SOURCES): Likewise.
31167 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31168
31169 2008-01-30 Robert Millan <rmh@aybabtu.com>
31170
31171 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31172 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31173 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31174 (grub_probe_SOURCES): ... to here.
31175
31176 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31177 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31178 * conf/i386-ieee1275.rmk: Likewise.
31179 * conf/i386-linuxbios.rmk: Likewise.
31180 * conf/powerpc-ieee1275.rmk: Likewise.
31181
31182 2008-01-30 Tristan Gingold <gingold@free.fr>
31183
31184 * kern/rescue.c: Silently accept empty lines.
31185
31186 2008-01-29 Bean <bean123ch@gmail.com>
31187
31188 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31189 (real_code_2): Code cleanup and change comment style.
31190 (move_memory): Avoid using 32-bit address mode.
31191
31192 2008-01-29 Bean <bean123ch@gmail.com>
31193
31194 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31195 (png_mod_SOURCES): New variable.
31196 (png_mod_CFLAGS): Likewise.
31197 (png_mod_LDFLAGS): Likewise.
31198
31199 * video/readers/png.c: New file.
31200
31201 2008-01-28 Robert Millan <rmh@aybabtu.com>
31202
31203 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31204 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31205 `ifndef GRUB_MOD_GAP' hack.
31206 * util/elf/grub-mkimage.c (add_segments): Likewise.
31207
31208 2008-01-27 Robert Millan <rmh@aybabtu.com>
31209
31210 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31211 `GRUB_MOD_GAP' for platforms in which it's not defined.
31212 * util/elf/grub-mkimage.c (add_segments): Likewise.
31213
31214 2008-01-27 Robert Millan <rmh@aybabtu.com>
31215
31216 Get grub-emu to build again (including parallel builds).
31217
31218 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31219 Split into ...
31220 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31221 (normal/execute.c_DEPENDENCIES): ... this, ...
31222 (grub-emu_DEPENDENCIES): ... and this.
31223
31224 * conf/i386-efi.rmk: Likewise.
31225 * conf/i386-linuxbios.rmk: Likewise.
31226 * conf/i386-ieee1275.rmk: Likewise.
31227 * conf/powerpc-ieee1275.rmk: Likewise.
31228 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31229
31230 2008-01-27 Robert Millan <rmh@aybabtu.com>
31231
31232 * NEWS: Add a few items.
31233
31234 2008-01-27 Robert Millan <rmh@aybabtu.com>
31235
31236 Fix parallel builds with grub-emu. Based on earlier commit for
31237 grub-probe and grub-setup.
31238
31239 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31240 (util/grub-emu.c_DEPENDENCIES): ... this.
31241 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31242 (util/grub-emu.c_DEPENDENCIES): ... this.
31243 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31244 (util/grub-emu.c_DEPENDENCIES): ... this.
31245 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31246 (util/grub-emu.c_DEPENDENCIES): ... this.
31247 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31248 (util/grub-emu.c_DEPENDENCIES): ... this.
31249
31250 2008-01-27 Pavel Roskin <proski@gnu.org>
31251
31252 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31253 to create a gap between _end and the modules added to the image
31254 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31255 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31256 * util/elf/grub-mkimage.c (add_segments): Likewise.
31257
31258 2008-01-26 Pavel Roskin <proski@gnu.org>
31259
31260 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31261 just return an error.
31262
31263 2008-01-26 Bean <bean123ch@gmail.com>
31264
31265 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31266 (grub_reiserfs_get_item): Save offset of the next item.
31267 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31268
31269 2008-01-25 Robert Millan <rmh@aybabtu.com>
31270
31271 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31272 make all filesystem sources appear together (possibly fixing omissions
31273 while at it).
31274 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31275 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31276 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31278
31279 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31280 add `kern/file.c'.
31281 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31282 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31283 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31284 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31285
31286 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31287 (probe): Add a sanity check to make sure of our ability to read
31288 requested files when probing for filesystem type.
31289
31290 * genmk.rb: Update copyright year (2007).
31291
31292 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31293 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31294 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31295 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31296 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31297 : Remove function prototypes.
31298
31299 2008-01-25 Robert Millan <rmh@aybabtu.com>
31300
31301 Revert my previous commits (based on wrong assumption of how grub_errno
31302 works).
31303
31304 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31305 * kern/file.c (grub_file_open): Likewise.
31306
31307 2008-01-24 Pavel Roskin <proski@gnu.org>
31308
31309 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31310 that hang if GRUB tries to setup colors.
31311 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31312 colors for firmwares that don't support it.
31313 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31314 Recognize Open Hack'Ware, set flags to work around its
31315 limitations.
31316
31317 2008-01-24 Robert Millan <rmh@aybabtu.com>
31318
31319 * kern/file.c (grub_file_open): Do not account previous failures of
31320 unrelated functions when grub_errno is checked for.
31321 Reported by Oleg Strikov.
31322
31323 2008-01-24 Bean <bean123ch@gmail.com>
31324
31325 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31326 (grub_ufs_sblock): New member volume name.
31327 (grub_ufs_find_file): Fix string copy bug.
31328 (grub_ufs_label): Implement this function properly.
31329
31330 * fs/hfs.c (grub_hfs_cnid_type): New enum.
31331 (grub_hfs_iterate_records): Use the correct file number for extents
31332 and catalog file. Fix problem in next index calculation.
31333 (grub_hfs_find_node): Replace recursive function call with loop.
31334 (grub_hfs_iterate_dir): Replace recursive function call with loop.
31335
31336 2008-01-23 Robert Millan <rmh@aybabtu.com>
31337
31338 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
31339 `<grub/symbol.h>' and `<grub/multiboot.h>'.
31340 (grub_multiboot2_real_boot): New function prototype.
31341
31342 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
31343 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
31344
31345 * kern/i386/ieee1275/init.c (grub_os_area_addr)
31346 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
31347
31348 2008-01-23 Robert Millan <rmh@aybabtu.com>
31349
31350 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
31351 #ifdef'ed out grub_printf().
31352
31353 2008-01-23 Robert Millan <rmh@aybabtu.com>
31354
31355 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
31356 grub_dprintf calls, since they make "debug=all" mode unusable.
31357 (grub_console_checkkey): Likewise.
31358
31359 2008-01-23 Robert Millan <rmh@aybabtu.com>
31360
31361 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
31362 `term/i386/pc/at_keyboard.c'.
31363 (pkglib_MODULES): Add `serial.mod'.
31364 (serial_mod_SOURCES): New variable.
31365 (serial_mod_CFLAGS): Likewise.
31366 (serial_mod_LDFLAGS): Likewise.
31367
31368 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
31369 `<grub/powerpc/ieee1275/console.h>'.
31370 (grub_keyboard_controller_init): New function prototype.
31371 (grub_console_checkkey): Likewise.
31372 (grub_console_getkey): Likewise.
31373
31374 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
31375 keyboard on i386.
31376
31377 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
31378 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
31379
31380 2008-01-23 Robert Millan <rmh@aybabtu.com>
31381
31382 * kern/i386/pc/init.c (make_install_device): When memdisk image is
31383 present, "(memdisk)/boot/grub" becomes the default prefix.
31384
31385 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
31386 a memdisk tarball with all the modules. Add --overlay=DIR option that
31387 allows users to overlay additional files into the image.
31388
31389 2008-01-23 Robert Millan <rmh@aybabtu.com>
31390
31391 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
31392 and `machine/memory.h'.
31393 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
31394 (_multiboot_mod_SOURCES): New variable.
31395 (_multiboot_mod_CFLAGS): Likewise.
31396 (_multiboot_mod_LDFLAGS): Likewise.
31397 (multiboot_mod_SOURCES): Likewise.
31398 (multiboot_mod_CFLAGS): Likewise.
31399 (multiboot_mod_LDFLAGS): Likewise.
31400
31401 * include/grub/i386/ieee1275/loader.h: New file.
31402
31403 * include/grub/i386/ieee1275/machine.h: Likewise.
31404
31405 * include/grub/i386/ieee1275/memory.h: Likewise.
31406
31407 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
31408 variable declaration.
31409 (grub_os_area_size): Likewise.
31410
31411 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
31412 (grub_lower_mem, grub_upper_mem): New variables.
31413 (grub_stop_floppy): New function (just to make
31414 grub_multiboot2_real_boot() happy).
31415
31416 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
31417 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
31418 (grub_stop): New function.
31419 Include `"../realmode.S"' and `"../loader.S"'.
31420
31421 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
31422 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
31423
31424 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
31425 rely on grub_multiboot2_real_boot() for final boot.
31426
31427 2008-01-22 Robert Millan <rmh@aybabtu.com>
31428
31429 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
31430 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
31431 device that doesn't look like an SD card.
31432 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
31433 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
31434 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
31435 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
31436 found.
31437
31438 2008-01-22 Robert Millan <rmh@aybabtu.com>
31439
31440 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
31441 avoid claiming over our own code.
31442
31443 2008-01-22 Bean <bean123ch@gmail.com>
31444
31445 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
31446 (jpeg_mod_SOURCES): New variable.
31447 (jpeg_mod_CFLAGS): Likewise.
31448 (jpeg_mod_LDFLAGS): Likewise.
31449
31450 * video/readers/jpeg.c : New file.
31451
31452 2008-01-22 Bean <bean123ch@gmail.com>
31453
31454 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
31455 there are no more items.
31456
31457 2008-01-21 Robert Millan <rmh@aybabtu.com>
31458
31459 * kern/mm.c (grub_mm_init_region): Improve debug message.
31460
31461 2008-01-21 Robert Millan <rmh@aybabtu.com>
31462
31463 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
31464 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
31465 address.
31466 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
31467 a C macro.
31468 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
31469 Indicates start of upper memory.
31470 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
31471 (generate_image): Abort when image size is big enough to corrupt
31472 upper memory.
31473
31474 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
31475 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
31476 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31477 instead of hardcoding 0xA0000.
31478 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
31479 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
31480 instead of hardcoding 0xA0000.
31481
31482 2008-01-21 Robert Millan <rmh@aybabtu.com>
31483
31484 * disk/memdisk.c (memdisk_size): New variable.
31485 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
31486 `memdisk_size'.
31487 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
31488 image to dynamic memory.
31489 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
31490 `memdisk_size'. Free memdisk block.
31491
31492 2008-01-21 Robert Millan <rmh@aybabtu.com>
31493
31494 Fix detection of very small filesystems (like tar).
31495
31496 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
31497 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
31498 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
31499 a problem with this disk).
31500
31501 2008-01-21 Robert Millan <rmh@aybabtu.com>
31502
31503 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
31504 on grub_biosdisk_rw_standard() error.
31505
31506 2008-01-21 Robert Millan <rmh@aybabtu.com>
31507
31508 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
31509 recent changes.
31510 * kern/elf.c: Likewise.
31511 * kern/ieee1275/ieee1275.c: Likewise.
31512 * kern/powerpc/ieee1275/openfw.c: Likewise.
31513 * term/ieee1275/ofconsole.c: Likewise.
31514
31515 2008-01-21 Robert Millan <rmh@aybabtu.com>
31516
31517 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
31518
31519 * include/grub/kernel.h (grub_arch_memdisk_addr)
31520 (grub_arch_memdisk_size): Moved from here ...
31521
31522 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
31523 (grub_arch_memdisk_size): ... to here.
31524
31525 2008-01-21 Robert Millan <rmh@aybabtu.com>
31526
31527 Mostly based on bugfix from Bean.
31528
31529 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
31530 attribute with hook() parameter.
31531 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
31532 declaration.
31533 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
31534 attribute with hook() parameter.
31535 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
31536 declaration.
31537
31538 2008-01-21 Robert Millan <rmh@aybabtu.com>
31539
31540 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
31541 (pkglib_MODULES): Add `memdisk.mod'.
31542 (memdisk_mod_SOURCES): New variable.
31543 (memdisk_mod_CFLAGS): Likewise.
31544 (memdisk_mod_LDFLAGS): Likewise.
31545
31546 * disk/memdisk.c: New file.
31547
31548 * include/grub/disk.h (grub_disk_dev_id): Add
31549 `GRUB_DISK_DEVICE_MEMDISK_ID'.
31550
31551 * include/grub/i386/pc/kernel.h
31552 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
31553 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
31554 (grub_kernel_image_size): New variable declaration.
31555 (grub_total_module_size): Likewise.
31556 (grub_memdisk_image_size): Likewise.
31557
31558 * include/grub/i386/pc/memory.h
31559 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
31560
31561 * include/grub/kernel.h: Include `<grub/symbol.h>'.
31562 (grub_arch_memdisk_addr): New variable declaration.
31563 (grub_arch_memdisk_size): Likewise.
31564
31565 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
31566 (grub_arch_memdisk_size): Likewise.
31567
31568 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
31569 (codestart): Replace hardcoded `0x100000' with
31570 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
31571
31572 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
31573 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
31574 not NULL, append the contents of the file it refers to, at the end of
31575 the compressed kernel image. Initialize `grub_memdisk_image_size'
31576 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
31577 (options): Add "memdisk"|'m' option.
31578 (main): Parse --memdisk|-m option, and pass user-provided path as
31579 parameter to generate_image().
31580
31581 2008-01-20 Robert Millan <rmh@aybabtu.com>
31582
31583 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
31584 grub_dprintf() calls from here ...
31585 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
31586
31587 2008-01-20 Robert Millan <rmh@aybabtu.com>
31588
31589 Fix detection of "real mode" when /options/real-mode? doesn't exist.
31590
31591 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
31592 declaration.
31593 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
31594 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
31595 `GRUB_IEEE1275_FLAG_REAL_MODE'.
31596 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
31597 property).
31598 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
31599 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
31600
31601 2008-01-19 Robert Millan <rmh@aybabtu.com>
31602
31603 Get rid of confusing function (superseded by
31604 `grub_ieee1275_get_integer_property')
31605 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
31606 prototype.
31607 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
31608 function.
31609 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
31610 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
31611 in native endianness from grub_ieee1275_get_integer_property().
31612
31613 2008-01-19 Robert Millan <rmh@aybabtu.com>
31614
31615 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
31616 command after "shut-down", since implementations differ on which
31617 the command for halt is.
31618
31619 2008-01-19 Robert Millan <rmh@aybabtu.com>
31620
31621 * include/grub/i386/linuxbios/console.h: Add header protection.
31622 (grub_keyboard_controller_init): New function prototype.
31623 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
31624 (KEYBOARD_COMMAND_READ): Likewise.
31625 (KEYBOARD_COMMAND_WRITE): Likewise.
31626 (KEYBOARD_SCANCODE_SET1): Likewise.
31627 (grub_keyboard_controller_write): New function.
31628 (grub_keyboard_controller_read): Likewise.
31629 (grub_keyboard_controller_init): Likewise.
31630
31631 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
31632 (grub_console_init): On coreboot/LinuxBIOS, call
31633 grub_keyboard_controller_init().
31634
31635 2008-01-19 Robert Millan <rmh@aybabtu.com>
31636
31637 PowerPC changes provided by Pavel Roskin.
31638
31639 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
31640 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
31641 don't rely on cmain() doing it.
31642 * kern/i386/ieee1275/startup.S (_start): Store %eax in
31643 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
31644
31645 2008-01-16 Robert Millan <rmh@aybabtu.com>
31646
31647 * include/grub/i386/linuxbios/memory.h
31648 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
31649 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
31650 receive `table_header' as argument. Instead, probe for it in the
31651 known memory ranges where it can be present.
31652 (grub_available_iterate): Do not pass a fixed `table_header' address
31653 to grub_linuxbios_table_iterate().
31654
31655 2008-01-15 Robert Millan <rmh@aybabtu.com>
31656
31657 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
31658 * conf/i386-ieee1275.rmk: New file.
31659 * include/grub/i386/ieee1275/console.h: Likewise.
31660 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
31661 * include/grub/i386/ieee1275/kernel.h: Likewise.
31662 * include/grub/i386/ieee1275/time.h: Likewise.
31663 * kern/i386/ieee1275/init.c: Likewise.
31664 * kern/i386/ieee1275/startup.S: Likewise.
31665
31666 2008-01-15 Robert Millan <rmh@aybabtu.com>
31667
31668 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
31669 when pointers are 32-bit (but still do set it to one when they are
31670 64-bit).
31671
31672 2008-01-15 Robert Millan <rmh@aybabtu.com>
31673
31674 * include/grub/ieee1275/ieee1275.h
31675 (grub_ieee1275_get_integer_property): New function prototype.
31676
31677 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
31678 (grub_ieee1275_get_integer_property): New function. Wraps around
31679 grub_ieee1275_get_property() to handle endianness.
31680
31681 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
31682 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
31683 where appropriate.
31684 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
31685 (grub_map): Likewise.
31686 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
31687
31688 2008-01-15 Bean <bean123ch@gmail.com>
31689
31690 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
31691 (grub_script_execute_cmdline): Reset grub_errno.
31692
31693 * normal/main.c (read_config_file): Reset grub_errno.
31694
31695 * normal/parse.y (script_init): New.
31696 (script): Move function and menuentry here.
31697 (delimiter): New.
31698 (command): Add delimiter at the end of command.
31699 (commands): Adjust to match the new command.
31700 (commandblock): Remove grub_script_lexer_record_start.
31701 (menuentry): Add grub_script_lexer_record_start, use the new commands.
31702 (if): Use the new commands.
31703
31704 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
31705
31706 2008-01-15 Robert Millan <rmh@aybabtu.com>
31707
31708 * normal/menu.c (run_menu): Move timeout message from here ...
31709 (print_timeout): ... to here.
31710 (run_menu): Use print_timeout() once during initial draw to print
31711 the whole message, and again in every clock tick to update only
31712 the number of seconds.
31713
31714 2008-01-15 Robert Millan <rmh@aybabtu.com>
31715
31716 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
31717 actual size of `available' from grub_ieee1275_get_property(), and
31718 restrict parsing to that bound.
31719
31720 2008-01-15 Christian Franke <franke@computer.org>
31721
31722 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
31723 (argp_program_version): Remove variable.
31724 (argp_program_bug_address): Likewise.
31725 (options): Convert from struct argp_option to struct option.
31726 (struct arguments): Remove.
31727 (parse_opt): Remove.
31728 (usage): New function.
31729 (main): Replace struct args members by simple variables.
31730 Replace argp_parse() by getopt_long().
31731 Add switch to evaluate options.
31732 Add missing "(...)" around root_dev in prefix string.
31733
31734 2008-01-14 Robert Millan <rmh@aybabtu.com>
31735
31736 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
31737 for grub_ieee1275_exit(), in order to improve portability.
31738
31739 2008-01-14 Robert Millan <rmh@aybabtu.com>
31740
31741 * util/grub.d/10_linux.in (prefix): Define.
31742 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
31743
31744 2008-01-13 Pavel Roskin <proski@gnu.org>
31745
31746 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
31747 grub_errno if no errors have been detected.
31748
31749 2008-01-12 Robert Millan <rmh@aybabtu.com>
31750
31751 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
31752 (grub_util_get_dev_abstraction): New function prototype.
31753
31754 * util/getroot.c: Include `<grub/util/getroot.h>'
31755 (grub_util_get_grub_dev): Move detection of abstraction type to ...
31756 (grub_util_get_dev_abstraction): ... here (new function).
31757
31758 * util/grub-probe.c: Convert PRINT_* to an enum. Add
31759 `PRINT_ABSTRACTION'.
31760 (probe): Probe for abstraction type when requested.
31761 (main): Understand `--target=abstraction'.
31762
31763 * util/i386/efi/grub-install.in: Add abstraction module to core
31764 image when it is found to be necessary.
31765 * util/i386/pc/grub-install.in: Likewise.
31766 * util/powerpc/ieee1275/grub-install.in: Likewise.
31767
31768 * util/update-grub_lib.in (font_path): Return system path without
31769 converting to GRUB path.
31770 * util/update-grub.in: Convert system path returned by font_path()
31771 to a GRUB path. Use `grub-probe -t abstraction' to determine what
31772 abstraction module is needed for loading fonts (if any). Export
31773 that as `GRUB_PRELOAD_MODULES'.
31774 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
31775 insmod commands).
31776
31777 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
31778
31779 Remove some unused code from reiserfs.
31780
31781 * fs/reiserfs.c (struct grub_reiserfs_key)
31782 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
31783 (struct grub_reiserfs_node_body): Removed.
31784 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31785 Likewise.
31786 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31787 Likewise.
31788 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31789 Likewise.
31790 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
31791 Likewise.
31792 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
31793 Likewise.
31794 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
31795 Likewise.
31796 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31797 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31798 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
31799
31800 2008-01-10 Robert Millan <rmh@aybabtu.com>
31801
31802 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
31803 Determines if a file is garbage left by packaging systems, etc.
31804 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
31805 for processing /etc/grub.d scripts.
31806 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
31807 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
31808 as a condition for processing Linux images.
31809
31810 2008-01-10 Pavel Roskin <proski@gnu.org>
31811
31812 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
31813 to compile reiserfs.c on PowerPC.
31814
31815 2008-01-10 Robert Millan <rmh@aybabtu.com>
31816
31817 * kern/device.c (grub_device_iterate): Do not abort device iteration
31818 when one of the devices cannot be opened.
31819 * kern/disk.c (grub_disk_open): Do not account previous failures of
31820 unrelated functions when grub_errno is checked for.
31821
31822 2008-01-08 Robert Millan <rmh@aybabtu.com>
31823
31824 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
31825 `! grub_linux_is_bzimage', change order of address comparison to make
31826 it more intuitive, and improve "too big zImage" error message.
31827
31828 2008-01-08 Robert Millan <rmh@aybabtu.com>
31829
31830 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
31831 `$(update-grub_DATA)'.
31832 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
31833 targets.
31834
31835 2008-01-07 Robert Millan <rmh@aybabtu.com>
31836
31837 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
31838 which instruction is modified by grub-setup during installation
31839 (since it wasn't obvious by only looking at this file).
31840
31841 2008-01-07 Robert Millan <rmh@aybabtu.com>
31842
31843 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
31844 listing actual TODO items.
31845
31846 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31847
31848 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
31849 correctly.
31850 (grub_reiserfs_get_key_offset): Likewise.
31851 (grub_reiserfs_set_key_offset): Likewise.
31852 (grub_reiserfs_set_key_type): Likewise.
31853 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
31854
31855 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
31856 better to remove the bitfield version completely.
31857
31858 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31859
31860 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
31861 allocated from the heap, due to the fshelp implementation.
31862 (grub_reiserfs_dir): Free NODE, due to the same reason.
31863
31864 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31865
31866 Mostly from Vincent Pelletier:
31867
31868 * fs/reiserfs.c: New file.
31869
31870 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
31871 (reiserfs_mod_SOURCES): New variable.
31872 (reiserfs_mod_CFLAGS): Likewise.
31873 (reiserfs_mod_LDFLAGS): Likewise.
31874
31875 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
31876 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
31877 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
31878 normal/color.c.
31879
31880 2008-01-06 Robert Millan <rmh@aybabtu.com>
31881
31882 * normal/color.c: Remove `<grub/env.h>'.
31883
31884 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
31885
31886 * include/grub/normal.h: Include <grub/env.h>.
31887
31888 2008-01-05 Robert Millan <rmh@aybabtu.com>
31889
31890 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
31891 usage example with `(hd0,1)'.
31892 Reported by Samuel Thibault.
31893
31894 2008-01-05 Robert Millan <rmh@aybabtu.com>
31895
31896 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
31897 (grub_linux_boot_zimage): Rename to ...
31898 (grub_linux_boot): ... this.
31899 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
31900 (grub_linux_boot_zimage): Conditionalize zImage copy.
31901
31902 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
31903 (grub_linux_boot_bzimage): Remove prototype.
31904 (grub_linux_boot_zimage): Rename to ...
31905 (grub_linux_boot): ... this.
31906
31907 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
31908 (grub_linux_boot): Remove function.
31909
31910 2008-01-05 Robert Millan <rmh@aybabtu.com>
31911
31912 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
31913 (grub_env_write_color_highlight): Likewise.
31914 (grub_wait_after_message): Likewise.
31915
31916 * normal/color.c: New file.
31917
31918 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31919 (normal_mod_DEPENDENCIES): Likewise.
31920
31921 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31922 (normal_mod_DEPENDENCIES): Likewise.
31923
31924 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31925 (normal_mod_DEPENDENCIES): Likewise.
31926
31927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
31928 (normal_mod_DEPENDENCIES): Likewise.
31929
31930 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
31931 for waiting after a message is printed.
31932 * normal/main.c (read_config_file): Likewise.
31933 (grub_normal_init): Register grub_env_write_color_normal() and
31934 grub_env_write_color_highlight() hooks. Mark `color_normal' and
31935 `color_highlight' variables as global.
31936
31937 * normal/menu.c (grub_wait_after_message): New function.
31938 (grub_color_menu_normal): New variable. Replaces ...
31939 (GRUB_COLOR_MENU_NORMAL): ... this macro.
31940 (grub_color_menu_highlight): New variable. Replaces ...
31941 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
31942 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
31943 `GRUB_TERM_COLOR_STANDARD'.
31944 (print_message): Use `grub_setcolorstate' to reload colors. Rename
31945 `normal_code' and `highlight_code' to `old_color_normal' and
31946 `old_color_highlight', respectively.
31947 (grub_menu_init_page): Update colors when drawing the menu, based on
31948 `menu_color_normal' and `menu_color_highlight' variables.
31949 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
31950 a message is printed.
31951
31952 2008-01-05 Robert Millan <rmh@aybabtu.com>
31953
31954 * kern/env.c (grub_env_context_open): Propagate hooks for global
31955 variables to new context.
31956
31957 * kern/main.c (grub_set_root_dev): Export `root' variable.
31958
31959 2008-01-05 Robert Millan <rmh@aybabtu.com>
31960
31961 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
31962 discs unconditionally, since udev and others have options to provide
31963 them.
31964
31965 2008-01-05 Robert Millan <rmh@aybabtu.com>
31966
31967 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
31968
31969 2008-01-04 Christian Franke <franke@computer.org>
31970
31971 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
31972 of eisa_mmap.
31973
31974 2008-01-03 Pavel Roskin <proski@gnu.org>
31975
31976 * kern/i386/linuxbios/init.c: Put "void" to all function
31977 declarations with no arguments.
31978 * kern/powerpc/ieee1275/init.c: Likewise.
31979 * term/i386/pc/at_keyboard.c: Likewise.
31980 * term/i386/pc/vga_text.c: Likewise.
31981 * util/grub-mkdevicemap.c: Likewise.
31982
31983 2008-01-02 Robert Millan <rmh@aybabtu.com>
31984
31985 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
31986 message when loaded image is out of bounds.
31987 (grub_multiboot_load_elf64): Likewise.
31988
31989 2008-01-02 Pavel Roskin <proski@gnu.org>
31990
31991 * util/grub.d/10_linux.in: Try version without ".old" when
31992 looking for initrd. It's better to use initrd from the newer
31993 kernel of the same version than no initrd at all.
31994
31995 2008-01-01 Robert Millan <rmh@aybabtu.com>
31996
31997 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
31998
31999 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32000
32001 * include/grub/video.h: Added grub_video_unmap_color and
32002 grub_video_get_active_render_target.
32003 (grub_video_adapter): Added unmap_color and get_active_render_target.
32004
32005 * video/video.c: Added grub_video_unmap_color and
32006 grub_video_get_active_render_target.
32007 (grub_video_get_info): Changed method to accept NULL pointer as an
32008 argument to allow detection of active video adapter.
32009
32010 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32011 grub_video_vbe_unmap_color_int.
32012 Added grub_video_vbe_unmap_color and
32013 grub_video_vbe_get_active_render_target.
32014 (grub_video_vbe_adapter): Added unmap_color and
32015 get_active_render_target.
32016
32017 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32018 with grub_video_vbe_unmap_color_int.
32019
32020 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32021 (DEFAULT_NORMAL_COLOR): Likewise.
32022 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32023 (DEFAULT_FG_COLOR): Removed.
32024 (DEFAULT_BG_COLOR): Likewise.
32025 (DEFAULT_CURSOR_COLOR): Changed value.
32026 (grub_virtual_screen): Added standard_color_setting,
32027 normal_color_setting, highlight_color_setting and term_color.
32028 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32029 (bitmap_width): Added.
32030 (bitmap_height): Likewise.
32031 (bitmap): Likewise.
32032 (set_term_color): Likewise.
32033 (grub_virtual_screen_setup): Changed to use new terminal coloring
32034 settings.
32035 (grub_gfxterm_init): Added init for bitmap.
32036 (grub_gfxterm_fini): Added destroy for bitmap.
32037 (redraw_screen_rect): Updated to use background bitmap and new
32038 terminal coloring.
32039 (scroll_up): Added optimization for case when there is no bitmap.
32040 (grub_gfxterm_cls): Fixed to use correct background color.
32041 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32042 coloring.
32043 (grub_virtual_screen_setcolor): Likewise.
32044 (grub_virtual_screen_getcolor): Added.
32045 (grub_gfxterm_background_image_cmd): Likewise.
32046 (grub_video_term): Added setcolor and getcolor.
32047 (MOD_INIT): Added registration of background_image command.
32048 (MOD_TERM): Added unregistration for background_image command.
32049
32050 2007-12-30 Pavel Roskin <proski@gnu.org>
32051
32052 * loader/multiboot_loader.c: Fix multiboot command
32053 unregistration. Fix all typos in the word "multiboot".
32054
32055 2007-12-29 Pavel Roskin <proski@gnu.org>
32056
32057 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32058 support for initrd names used in Fedora.
32059
32060 2007-12-26 Bean <bean123ch@gmail.com>
32061
32062 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32063 (cpio_mod_SOURCES): New variable.
32064 (cpio_mod_CFLAGS): Likewise.
32065 (cpio_mod_LDFLAGS): Likewise.
32066
32067 * fs/cpio.c: New file.
32068
32069 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32070
32071 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32072
32073 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32074
32075 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32076
32077 2007-12-25 Robert Millan <rmh@aybabtu.com>
32078
32079 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32080 (grub_getcolor): New function.
32081
32082 * kern/term.c (grub_getcolor): New function.
32083 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32084 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32085 (print_entry): Set normal and highlight colors to
32086 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32087 respectively, before printing and restore them to old
32088 values afterwards.
32089 (grub_menu_init_page): Likewise. Fill an additional colored space
32090 that would otherwise be left blank.
32091
32092 * term/efi/console.c (grub_console_getcolor): New function.
32093 (struct grub_console_term.getcolor): New variable.
32094 * term/i386/pc/console.c (grub_console_getcolor): New function.
32095 (struct grub_console_term.getcolor): New variable.
32096 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32097 (struct grub_console_term.getcolor): New variable.
32098
32099 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32100 (struct grub_console_term.setcolor): Remove variable.
32101 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32102 (struct grub_console_term.setcolor): Remove variable.
32103 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32104 (struct grub_console_term.setcolor): Remove variable.
32105 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32106 (struct grub_console_term.setcolor): Remove variable.
32107
32108 2007-12-25 Robert Millan <rmh@aybabtu.com>
32109
32110 * configure.ac: Search for possible unifont.hex locations, and
32111 define UNIFONT_HEX if found.
32112
32113 * Makefile.in (UNIFONT_HEX): Define variable.
32114 (DATA): Rename to ...
32115 (PKGLIB): ... this. Update all users.
32116 (PKGDATA): New variable.
32117 (pkgdata_IMAGES): Rename to ...
32118 (pkglib_IMAGES): ... this. Update all users.
32119 (pkgdata_MODULES): Rename to ...
32120 (pkglib_MODULES): ... this. Update all users.
32121 (pkgdata_PROGRAMS): Rename to ...
32122 (pkglib_PROGRAMS): ... this. Update all users.
32123 (pkgdata_DATA): Rename to ...
32124 (pkglib_DATA): ... this. Update all users.
32125 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32126 (unicode.pff, ascii.pff): New rules.
32127 (all-local): Add `$(PKGDATA)' dependency.
32128 (install-local): Process `$(PKGDATA)'.
32129
32130 * util/update-grub_lib.in (font_path): Search for *.pff files in
32131 a few more locations, including `${pkgdata}'.
32132
32133 2007-12-23 Robert Millan <rmh@aybabtu.com>
32134
32135 Patch from Bean <bean123ch@gmail.com>:
32136 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32137 `size'.
32138
32139 2007-12-21 Bean <bean123ch@gmail.com>
32140
32141 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32142 (ntfscomp_mod_SOURCES): New variable.
32143 (ntfscomp_mod_CFLAGS): Likewise.
32144 (ntfscomp_mod_LDFLAGS): Likewise.
32145
32146 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32147 (grub_probe_SOURCES): Likewise.
32148 (grub_emu_SOURCES): Likewise.
32149
32150 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32151 (grub_emu_SOURCES): Likewise.
32152
32153 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32154 (grub_emu_SOURCES): Likewise.
32155
32156 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32157 (grub_emu_SOURCES): Likewise.
32158
32159 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32160 (read_run_list): Renamed to grub_ntfs_read_run_list.
32161 (decomp_nextvcn): Moved to ntfscomp.c.
32162 (decomp_getch): Likewise.
32163 (decomp_get16): Likewise.
32164 (decomp_block): Likewise.
32165 (read_block): Likewise.
32166 (read_data): Partially moved to ntfscomp.c.
32167 (fixup): Change unsigned to grub_uint16_t.
32168 (read_mft): Change unsigned long to grub_uint32_t.
32169 (read_attr): Likewise.
32170 (read_data): Likewise.
32171 (read_run_data): Likewise.
32172 (read_run_list): Likewise.
32173 (read_mft): Likewise.
32174
32175 * fs/ntfscomp.c: New file.
32176
32177 * include/grub/ntfs.h: New file.
32178
32179 2007-12-16 Robert Millan <rmh@aybabtu.com>
32180
32181 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32182 IDE disk check, since Linux is known to support 20 IDE disks.
32183 Reported by Colin Watson.
32184
32185 2007-12-15 Bean <bean123ch@gmail.com>
32186
32187 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32188 (lnxboot_img_SOURCES): New variable.
32189 (lnxboot_img_ASFLAGS): Likewise.
32190 (lnxboot_img_LDFLAGS): Likewise.
32191
32192 * boot/i386/pc/lnxboot.S: New file.
32193
32194 2007-11-24 Pavel Roskin <proski@gnu.org>
32195
32196 * configure.ac: Test if '--build-id=none' is supported by the
32197 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32198 objcopy to generate incorrect binary files (binutils
32199 2.17.50.0.18-1 as shipped by Fedora 8).
32200 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32201 linking, so that build ID doesn't break the test.
32202
32203 2007-11-24 Pavel Roskin <proski@gnu.org>
32204
32205 * include/grub/i386/time.h: use "void" in the argument list
32206 of grub_cpu_idle().
32207 * include/grub/powerpc/time.h: Likewise.
32208 * include/grub/sparc64/time.h: Likewise.
32209
32210 2007-11-18 Christian Franke <franke@computer.org>
32211
32212 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32213 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32214 This fixes the problem that function keys did not work in grub-emu.
32215
32216 2007-11-18 Christian Franke <franke@computer.org>
32217
32218 * disk/host.c (grub_host_open): Remove attribute unused from
32219 name parameter. Add check for "host". This fixes the problem
32220 that grub-emu does not find partitions.
32221
32222 2007-11-18 Christian Franke <franke@computer.org>
32223
32224 * util/hostfs.c (is_dir): New function.
32225 (grub_hostfs_dir): Handle missing dirent.d_type case.
32226 (grub_hostfs_read): Add missing fseek().
32227 (grub_hostfs_label): Clear label pointer. This fixes a crash
32228 of grub-emu on "ls (host)".
32229
32230 2007-11-18 Christian Franke <franke@computer.org>
32231
32232 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32233 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32234 to 64 bit boundary by default.
32235
32236 2007-11-18 Bean <bean123ch@gmail.com>
32237
32238 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32239 (hexdump_mod_SOURCES): New variable.
32240 (hexdump_mod_CFLAGS): Likewise.
32241 (hexdump_mod_LDFLAGS): Likewise.
32242
32243 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32244
32245 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32246
32247 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32248
32249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32250
32251 * include/grub/hexdump.h: New file.
32252
32253 * commands/hexdump.c: New file.
32254
32255 2007-11-10 Robert Millan <rmh@aybabtu.com>
32256
32257 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32258 in grub_outb() calls.
32259 (beep_on): Likewise.
32260
32261 2007-11-10 Christian Franke <franke@computer.org>
32262
32263 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32264 (grub_menu_run): Likewise.
32265
32266 2007-11-10 Robert Millan <rmh@aybabtu.com>
32267
32268 * include/grub/i386/efi/machine.h: New file.
32269 * include/grub/i386/linuxbios/machine.h: Likewise.
32270 * include/grub/i386/pc/machine.h: Likewise.
32271 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32272 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32273
32274 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32275 (serial_hw_io_addr): New variable.
32276 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32277 instead of `(unsigned short *) 0x400'.
32278
32279 2007-11-10 Bean <bean123ch@gmail.com>
32280
32281 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32282
32283 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32284
32285 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32286 (vga_mod_SOURCES): Added.
32287 (vga_mod_CFLAGS): Likewise.
32288 (vga_mod_LDFLAGS): Likewise.
32289
32290 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32291 grub_outb() calls.
32292 (set_map_mask): Likewise.
32293 (set_read_map): Likewise.
32294 (set_read_address): Likewise.
32295 (vga_font): Removed variable.
32296 (get_vga_glyph): Removed function.
32297 (invalidate_char): Likewise.
32298 (write_char): Changed to use grub_font_get_glyph() for font
32299 information.
32300 (grub_vga_putchar): Likewise.
32301 (grub_vga_getcharwidth): Likewise.
32302
32303 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32304
32305 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32306 flags.
32307 (pxeboot_img_LDFLAGS): Likewise.
32308 (diskboot_img_LDFLAGS): Likewise.
32309 (kernel_img_LDFLAGS): Likewise.
32310
32311 2007-11-06 Robert Millan <rmh@aybabtu.com>
32312
32313 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32314 in grub_outb() calls.
32315 (serial_hw_init): Likewise.
32316
32317 2007-11-05 Robert Millan <rmh@aybabtu.com>
32318
32319 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32320 spaces. Skip non-regular files.
32321
32322 2007-11-05 Robert Millan <rmh@aybabtu.com>
32323
32324 * kern/disk.c (grub_disk_firmware_fini)
32325 (grub_disk_firmware_is_tainted): New variables.
32326
32327 * include/grub/disk.h (grub_disk_firmware_fini)
32328 (grub_disk_firmware_is_tainted): Likewise.
32329
32330 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
32331 (grub_disk_biosdisk_fini): ... to here.
32332 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
32333 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
32334 is set. Register grub_disk_biosdisk_fini() in
32335 `grub_disk_firmware_fini'.
32336
32337 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
32338 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
32339 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
32340 to finish existing firmware disk interface.
32341
32342 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
32343 (ata_mod_SOURCES): New variable.
32344 (ata_mod_CFLAGS): Likewise.
32345 (ata_mod_LDFLAGS): Likewise.
32346
32347 2007-11-05 Robert Millan <rmh@aybabtu.com>
32348
32349 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
32350 (grub_ata_wait): Reimplement using grub_millisleep().
32351
32352 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
32353 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
32354
32355 2007-11-03 Marco Gerards <marco@gnu.org>
32356
32357 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
32358 (CRTC_ADDR_PORT): New macro.
32359 (CRTC_DATA_PORT): Likewise.
32360 (CRTC_CURSOR): Likewise.
32361 (CRTC_CURSOR_ADDR_HIGH): Likewise.
32362 (CRTC_CURSOR_ADDR_LOW): Likewise.
32363 (update_cursor): New function.
32364 (grub_console_real_putchar): Call `update_cursor'.
32365 (grub_console_gotoxy): Likewise.
32366 (grub_console_cls): Set the default color when clearing the
32367 screen.
32368 (grub_console_setcursor): Implemented.
32369
32370 2007-11-03 Marco Gerards <marco@gnu.org>
32371
32372 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
32373 become activate.
32374 (grub_ata_pio_write): Likewise.
32375
32376 (grub_atapi_identify): Wait after issuing an ATA command.
32377 (grub_atapi_packet): Likewise.
32378 (grub_ata_identify): Likewise.
32379 (grub_ata_readwrite): Likewise.
32380
32381 2007-11-03 Marco Gerards <marco@gnu.org>
32382
32383 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
32384 (grub_ata_pio_write): Likewise.
32385 (grub_ata_readwrite): Use `grub_error', instead of
32386 returning `grub_errno'.
32387
32388 2007-11-03 Marco Gerards <marco@gnu.org>
32389
32390 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
32391 grub_ata_pio_write once for every single sector, instead of for
32392 multiple sectors.
32393
32394 2007-10-31 Robert Millan <rmh@aybabtu.com>
32395
32396 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
32397
32398 * conf/i386-linuxbios.rmk: New file.
32399
32400 * kern/i386/pc/hardware.c: Likewise.
32401 * term/i386/pc/at_keyboard.c: Likewise.
32402 * term/i386/pc/vga_text.c: Likewise.
32403
32404 * include/grub/i386/linuxbios/boot.h: Likewise.
32405 * include/grub/i386/linuxbios/console.h: Likewise.
32406 * include/grub/i386/linuxbios/init.h: Likewise.
32407 * include/grub/i386/linuxbios/kernel.h: Likewise.
32408 * include/grub/i386/linuxbios/loader.h: Likewise.
32409 * include/grub/i386/linuxbios/memory.h: Likewise.
32410 * include/grub/i386/linuxbios/serial.h: Likewise.
32411 * include/grub/i386/linuxbios/time.h: Likewise.
32412
32413 * kern/i386/linuxbios/init.c: Likewise.
32414 * kern/i386/linuxbios/startup.S: Likewise.
32415 * kern/i386/linuxbios/table.c: Likewise.
32416
32417 2007-10-31 Marco Gerards <marco@gnu.org>
32418
32419 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
32420 (ata_mod_SOURCES): New variable.
32421 (ata_mod_CFLAGS): Likewise.
32422 (ata_mod_LDFLAGS): Likewise.
32423
32424 * disk/ata.c: New file.
32425
32426 * include/grub/disk.h (grub_disk_dev_id): Add
32427 `GRUB_DISK_DEV_ATA_ID'.
32428
32429 2007-10-31 Robert Millan <rmh@aybabtu.com>
32430
32431 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
32432 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
32433
32434 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
32435 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
32436
32437 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
32438 `<grub/types.h>'.
32439
32440 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
32441
32442 2007-10-27 Robert Millan <rmh@aybabtu.com>
32443
32444 * include/grub/types.h (ULONG_MAX): Define macro.
32445
32446 2007-10-22 Robert Millan <rmh@aybabtu.com>
32447
32448 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
32449 `"../realmode.S"'.
32450 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
32451
32452 2007-10-22 Robert Millan <rmh@aybabtu.com>
32453
32454 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
32455 (pkgdata_MODULES): Add `biosdisk.mod'.
32456 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
32457 variables.
32458
32459 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
32460 (grub_biosdisk_init): Replace with ...
32461 (GRUB_MOD_INIT(biosdisk)): ... this.
32462 (grub_biosdisk_fini): Replace with ...
32463 (GRUB_MOD_FINI(biosdisk)): ... this.
32464
32465 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
32466 (grub_machine_init): Remove call to grub_biosdisk_init().
32467 (grub_machine_fini): Remove call to grub_machine_fini().
32468
32469 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
32470
32471 2007-10-22 Robert Millan <rmh@aybabtu.com>
32472
32473 * include/grub/time.h: New file.
32474 * include/grub/i386/time.h: Likewise.
32475 * include/grub/powerpc/time.h: Likewise.
32476 * include/grub/sparc64/time.h: Likewise.
32477
32478 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
32479 instances to ...
32480 (KERNEL_MACHINE_TIME_HEADER): ... this.
32481 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32482 instances to ...
32483 (KERNEL_MACHINE_TIME_HEADER): ... this.
32484 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
32485 instances to ...
32486 (KERNEL_MACHINE_TIME_HEADER): ... this.
32487
32488 * kern/i386/efi/init.c: Include `<grub/time.h>'.
32489 (grub_millisleep): New function.
32490 * kern/i386/pc/init.c: Include `<grub/time.h>'.
32491 (grub_millisleep): New function.
32492 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
32493 Remove `grub/machine/time.h' include.
32494 (grub_millisleep): New function.
32495 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
32496 Remove `grub/machine/time.h' include.
32497 (grub_millisleep): New function.
32498
32499 * include/grub/misc.h (grub_div_roundup): New function.
32500
32501 * kern/misc.c: Include `<grub/time.h>'.
32502 (grub_millisleep_generic): New function.
32503
32504 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
32505 Add `time.h'.
32506 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
32507 Add `time.h'.
32508 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
32509 `machine/time.h'. Add `time.h'.
32510 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
32511
32512 2007-10-21 Robert Millan <rmh@aybabtu.com>
32513
32514 * include/grub/misc.h (grub_max): New function.
32515
32516 2007-10-21 Robert Millan <rmh@aybabtu.com>
32517
32518 * util/misc.c (grub_util_info): Call fflush() before returning.
32519
32520 2007-10-20 Robert Millan <rmh@aybabtu.com>
32521
32522 * genmk.rb (Image): Copy `extra_flags' from here ...
32523 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
32524
32525 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
32526 to `argc' and `args' arguments.
32527
32528 2007-10-17 Robert Millan <rmh@aybabtu.com>
32529
32530 * kern/i386/loader.S: New file.
32531
32532 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
32533 * kern/i386/loader.S (grub_linux_prot_size)... to here.
32534 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
32535 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
32536 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
32537 * kern/i386/loader.S (grub_linux_real_addr)... to here.
32538 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
32539 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
32540 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
32541 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
32542 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
32543 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
32544 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
32545 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
32546
32547 * kern/i386/realmode.S: New file.
32548
32549 * kern/i386/pc/startup.S (protstack): Moved from here ...
32550 * kern/i386/realmode.S (protstack)... to here.
32551 * kern/i386/pc/startup.S (gdt): Moved from here ...
32552 * kern/i386/realmode.S (gdt)... to here.
32553 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
32554 * kern/i386/realmode.S (prot_to_real)... to here.
32555
32556 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
32557 `kern/i386/realmode.S'.
32558
32559 2007-10-17 Robert Millan <rmh@aybabtu.com>
32560
32561 * include/grub/i386/loader.h: New file.
32562
32563 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
32564 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32565 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32566 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32567 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
32568 * include/grub/i386/loader.h (grub_linux_prot_size)
32569 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
32570 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
32571 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
32572 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
32573
32574 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
32575
32576 2007-10-15 Robert Millan <rmh@aybabtu.com>
32577
32578 * normal/misc.c (grub_normal_print_device_info): Do not probe for
32579 filesystem when dev->disk is unset.
32580 Do probe for filesystem even when dev->disk->has_partitions is set.
32581 In case a filesystem is found, always report it.
32582 In case it isn't, if dev->disk->has_partitions is set, report that
32583 a partition table was found instead of reporting that no filesystem
32584 could be identified.
32585
32586 2007-10-12 Robert Millan <rmh@aybabtu.com>
32587
32588 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
32589 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
32590
32591 * include/grub/types.h (grub_host_to_target16): New macro.
32592 (grub_host_to_target32): Likewise.
32593 (grub_host_to_target64): Likewise.
32594 (grub_target_to_host16): Likewise.
32595 (grub_target_to_host32): Likewise.
32596 (grub_target_to_host64): Likewise.
32597
32598 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
32599 Renamed from to ...
32600 (GRUB_MOD_ALIGN): ...this. Update all users.
32601
32602 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
32603 grub_host_to_target32.
32604 Replace grub_be_to_cpu32 with grub_target_to_host32.
32605 (load_modules): Likewise.
32606 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
32607 Replace grub_be_to_cpu32 with grub_target_to_host32.
32608 Replace grub_cpu_to_be16 with grub_host_to_target16.
32609 Replace grub_cpu_to_be32 grub_host_to_target32.
32610
32611 2007-10-12 Robert Millan <rmh@aybabtu.com>
32612
32613 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
32614 * util/elf/grub-mkimage.c: ... here.
32615
32616 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
32617 `util/powerpc/ieee1275/grub-mkimage.c'.
32618
32619 2007-10-07 Robert Millan <rmh@aybabtu.com>
32620
32621 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
32622 and make it easier to figure out.
32623 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
32624 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
32625 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
32626 leave us with less than HEAP_MIN_SIZE total heap.
32627 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
32628
32629 2007-10-03 Robert Millan <rmh@aybabtu.com>
32630
32631 * include/grub/i386/io.h: New file.
32632 * commands/i386/pc/play.c (inb): Removed.
32633 (outb): Removed.
32634 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32635 with grub_outb().
32636 * term/i386/pc/serial.c (inb): Removed.
32637 (outb): Removed.
32638 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32639 with grub_outb().
32640 * term/i386/pc/vga.c (inb): Removed.
32641 (outb): Removed.
32642 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
32643 with grub_outb().
32644
32645 2007-10-02 Robert Millan <rmh@aybabtu.com>
32646
32647 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
32648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32649 Reported by Marcin Kurek.
32650
32651 2007-09-07 Robert Millan <rmh@aybabtu.com>
32652
32653 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
32654 SmartFirmware version updates (as released by Sven Luther), and avoid
32655 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
32656 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
32657 known broken.
32658
32659 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32660
32661 From Hitoshi Ozeki:
32662 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
32663 when merging two regions.
32664
32665 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32666
32667 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
32668 * normal/completion.c (grub_normal_do_completion): Likewise.
32669 Reported by Hitoshi Ozeki.
32670
32671 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32672
32673 Do not use devices at boot in chainloading.
32674
32675 * loader/i386/pc/chainloader.c (boot_drive): New variable.
32676 (boot_part_addr): Likewise.
32677 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
32678 with BOOT_DRIVE and BOOT_PART_ADDR.
32679 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
32680 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
32681
32682 2007-08-29 Robert Millan <rmh@aybabtu.com>
32683
32684 Patch from Simon Peter <dn.tlp@gmx.net>:
32685 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
32686 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
32687 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
32688 util/i386/pc/grub-setup.c_DEPENDENCIES.
32689 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
32690 util/grub-probe.c_DEPENDENCIES.
32691 * conf/powerpc-ieee1275.rmk: Likewise.
32692
32693 2007-08-28 Robert Millan <rmh@aybabtu.com>
32694
32695 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
32696 to tell grub-mkdevicemap how to name devices.
32697 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
32698 feature).
32699
32700 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
32701 util/i386/get_disk_name.c.
32702 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
32703 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
32704 util/ieee1275/get_disk_name.c.
32705
32706 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
32707
32708 * DISTLIST: Add util/i386/get_disk_name.c and
32709 util/ieee1275/get_disk_name.c.
32710
32711 * util/grub-mkdevicemap.c: Replace device naming logic with
32712 grub_util_get_disk_name() calls.
32713
32714 2007-08-20 Robert Millan <rmh@aybabtu.com>
32715
32716 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
32717 (so that it works for both plural and singular quantities).
32718
32719 2007-08-05 Robert Millan <rmh@aybabtu.com>
32720
32721 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
32722 so that [xz] isn't taken into account when determining order.
32723
32724 2007-08-02 Marco Gerards <marco@gnu.org>
32725
32726 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
32727 `include/multiboot2.h', `include/grub/elfload.h',
32728 `include/multiboot.h', `include/grub/multiboot.h',
32729 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
32730 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
32731 `kern/elf.c', `loader/multiboot_loader.c',
32732 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
32733 `loader/i386/pc/multiboot2.c',
32734 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
32735 `util/i386/pc/grub-mkrescue.in'. Remove
32736 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
32737 `include/grub/i386/pc/util/biosdisk.h' and
32738 `include/grub/powerpc/ieee1275/multiboot.h'.
32739
32740 2007-08-02 Bean <bean123ch@gmail.com>
32741
32742 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
32743 (ntfs_mod_SOURCES): New variable.
32744 (ntfs_mod_CFLAGS): Likewise.
32745 (ntfs_mod_LDFLAGS): Likewise.
32746
32747 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
32748 (grub_probe_SOURCES): Likewise.
32749 (grub_emu_SOURCES): Likewise.
32750
32751 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32752 (grub_emu_SOURCES): Likewise.
32753
32754 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
32755 (grub_emu_SOURCES): Likewise.
32756
32757 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
32758
32759 * fs/ntfs.c: New file.
32760
32761 2007-08-02 Bean <bean123ch@gmail.com>
32762
32763 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
32764
32765 * file.h (grub_file): Likewise.
32766
32767 * fshelp.h (grub_fshelp_read_file): Likewise.
32768
32769 * util/i386/pc/grub-setup.c (setup): Likewise.
32770 (save_first_sector): Likewise.
32771 (save_blocklists): Likewise.
32772
32773 * fs/affs.c (grub_affs_read_file): Likewise.
32774
32775 * fs/ext2.c (grub_ext2_read_file): Likewise.
32776
32777 * fs/fat.c (grub_fat_read_data): Likewise.
32778
32779 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
32780
32781 * fs/hfs.c (grub_hfs_read_file): Likewise.
32782
32783 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
32784
32785 * fs/jfs.c (grub_jfs_read_file): Likewise.
32786
32787 * fs/minix.c (grub_minix_read_file): Likewise.
32788
32789 * fs/sfs.c (grub_sfs_read_file): Likewise.
32790
32791 * fs/ufs.c (grub_ufs_read_file): Likewise.
32792
32793 * fs/xfs.c (grub_xfs_read_file): Likewise.
32794
32795 * command/blocklist.c (read_blocklist): Likewise.
32796 (print_blocklist): Likewise.
32797
32798 2007-08-02 Marco Gerards <marco@gnu.org>
32799
32800 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
32801 `util/hostfs.c'.
32802
32803 * disk/host.c: New file.
32804
32805 * util/hostfs.c: Likewise.
32806
32807 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
32808 return `GRUB_ERR_BAD_FS'.
32809 * fs/sfs.c (grub_sfs_mount): Likewise.
32810 * fs/xfs.c (grub_xfs_mount): Likewise.
32811
32812 * include/grub/disk.h (enum grub_disk_dev_id): Add
32813 `GRUB_DISK_DEVICE_HOST_ID'.
32814
32815 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
32816
32817 2007-07-24 Jerone Young <jerone@gmail.com>
32818
32819 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
32820 modules for compilation.
32821 * conf/powerpc-ieee1275.rmk: Likewise.
32822
32823 * include/multiboot.h: Move multiboot definitions to one file. Rename
32824 many definitions to not get grub specific.
32825 * include/multiboot2.h: Create header with multiboot 2 definitions.
32826 * include/grub/multiboot.h: Header for grub specific function
32827 prototypes and definitions.
32828 * include/grub/multiboot2.h: Likewise.
32829 * include/grub/multiboot_loader.h: Likewise.
32830 * include/grub/i386/pc/multiboot.h: Removed.
32831 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
32832
32833 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
32834 and 2 to allow for one multiboot and module commands.
32835 * loader/multiboot2.c: Add multiboot2 functionality.
32836 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
32837 and definition names.
32838 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
32839 2 functions.
32840 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
32841 ieee1275 specific multiboot2 code.
32842
32843 * kern/i386/pc/startup.S: Change headers and definition names for
32844 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
32845
32846 2007-07-22 Robert Millan <rmh@aybabtu.com>
32847
32848 * geninitheader.sh: Process file specified in first parameter rather
32849 than hardcoding grub_modules_init.lst.
32850 * geninit.sh: Likewise. Also, construct header name dynamically rather
32851 than hardcoding grub_modules_init.h.
32852
32853 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
32854 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
32855 grub_probe_init.[ch] and grub_setup_init.[ch].
32856
32857 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
32858 grub_modules_init.h with grub_emu_init.h.
32859 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
32860 grub_probe_init.[ch] files.
32861 * conf/i386-efi.rmk: Likewise.
32862 * conf/i386-pc.rmk: Likewise.
32863 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
32864 grub_setup_init.[ch] files.
32865
32866 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
32867 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
32868 to initialize modules rather than a list of hardcoded functions.
32869 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
32870 grub_init_all() to initialize modules rather than a list of hardcoded
32871 functions.
32872
32873 2007-07-22 Robert Millan <rmh@aybabtu.com>
32874
32875 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
32876 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
32877
32878 2007-07-22 Robert Millan <rmh@aybabtu.com>
32879
32880 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32881 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
32882 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
32883 flag when running on SmartFirmware.
32884 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
32885 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
32886 was set.
32887
32888 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
32889 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
32890 rather than decreasing it.
32891
32892 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
32893 there's not enough space to do it, fail in the same way as when it
32894 can't be done because there are no partitions.
32895
32896 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
32897 when nvsetenv failed.
32898
32899 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32900
32901 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
32902 because this rule is automatically generated.
32903 (grub-mkrescue): Removed for the same reason as above.
32904
32905 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
32906
32907 Migrate to GNU General Public License Version 3.
32908
32909 * COPYING: Replaced with the plain text version of GPLv3.
32910
32911 * config.guess: Updated from gnulib.
32912 * config.sub: Likewise.
32913
32914 * geninit.sh: Output a GPLv3 copyright notice.
32915 * geninitheader.sh: Likewise.
32916 * genmodsrc.sh: Likewise.
32917 * gensymlist.sh.in: Likewise.
32918
32919 * boot/i386/pc/boot.S: Upgraded to GPLv3.
32920 * boot/i386/pc/diskboot.S: Likewise.
32921 * boot/i386/pc/pxeboot.S: Likewise.
32922 * commands/blocklist.c: Likewise.
32923 * commands/boot.c: Likewise.
32924 * commands/cat.c: Likewise.
32925 * commands/cmp.c: Likewise.
32926 * commands/configfile.c: Likewise.
32927 * commands/echo.c: Likewise.
32928 * commands/help.c: Likewise.
32929 * commands/ls.c: Likewise.
32930 * commands/search.c: Likewise.
32931 * commands/terminal.c: Likewise.
32932 * commands/test.c: Likewise.
32933 * commands/videotest.c: Likewise.
32934 * commands/i386/cpuid.c: Likewise.
32935 * commands/i386/pc/halt.c: Likewise.
32936 * commands/i386/pc/play.c: Likewise.
32937 * commands/i386/pc/reboot.c: Likewise.
32938 * commands/i386/pc/vbeinfo.c: Likewise.
32939 * commands/i386/pc/vbetest.c: Likewise.
32940 * commands/ieee1275/halt.c: Likewise.
32941 * commands/ieee1275/reboot.c: Likewise.
32942 * commands/ieee1275/suspend.c: Likewise.
32943 * disk/loopback.c: Likewise.
32944 * disk/lvm.c: Likewise.
32945 * disk/raid.c: Likewise.
32946 * disk/efi/efidisk.c: Likewise.
32947 * disk/i386/pc/biosdisk.c: Likewise.
32948 * disk/ieee1275/ofdisk.c: Likewise.
32949 * font/manager.c: Likewise.
32950 * fs/affs.c: Likewise.
32951 * fs/ext2.c: Likewise.
32952 * fs/fat.c: Likewise.
32953 * fs/fshelp.c: Likewise.
32954 * fs/hfs.c: Likewise.
32955 * fs/hfsplus.c: Likewise.
32956 * fs/iso9660.c: Likewise.
32957 * fs/jfs.c: Likewise.
32958 * fs/minix.c: Likewise.
32959 * fs/sfs.c: Likewise.
32960 * fs/ufs.c: Likewise.
32961 * fs/xfs.c: Likewise.
32962 * hello/hello.c: Likewise.
32963 * include/grub/acorn_filecore.h: Likewise.
32964 * include/grub/arg.h: Likewise.
32965 * include/grub/bitmap.h: Likewise.
32966 * include/grub/boot.h: Likewise.
32967 * include/grub/cache.h: Likewise.
32968 * include/grub/device.h: Likewise.
32969 * include/grub/disk.h: Likewise.
32970 * include/grub/dl.h: Likewise.
32971 * include/grub/elfload.h: Likewise.
32972 * include/grub/env.h: Likewise.
32973 * include/grub/err.h: Likewise.
32974 * include/grub/file.h: Likewise.
32975 * include/grub/font.h: Likewise.
32976 * include/grub/fs.h: Likewise.
32977 * include/grub/fshelp.h: Likewise.
32978 * include/grub/gzio.h: Likewise.
32979 * include/grub/hfs.h: Likewise.
32980 * include/grub/kernel.h: Likewise.
32981 * include/grub/loader.h: Likewise.
32982 * include/grub/lvm.h: Likewise.
32983 * include/grub/misc.h: Likewise.
32984 * include/grub/mm.h: Likewise.
32985 * include/grub/net.h: Likewise.
32986 * include/grub/normal.h: Likewise.
32987 * include/grub/parser.h: Likewise.
32988 * include/grub/partition.h: Likewise.
32989 * include/grub/pc_partition.h: Likewise.
32990 * include/grub/raid.h: Likewise.
32991 * include/grub/rescue.h: Likewise.
32992 * include/grub/script.h: Likewise.
32993 * include/grub/setjmp.h: Likewise.
32994 * include/grub/symbol.h: Likewise.
32995 * include/grub/term.h: Likewise.
32996 * include/grub/terminfo.h: Likewise.
32997 * include/grub/tparm.h: Likewise.
32998 * include/grub/types.h: Likewise.
32999 * include/grub/video.h: Likewise.
33000 * include/grub/efi/api.h: Likewise.
33001 * include/grub/efi/chainloader.h: Likewise.
33002 * include/grub/efi/console.h: Likewise.
33003 * include/grub/efi/console_control.h: Likewise.
33004 * include/grub/efi/disk.h: Likewise.
33005 * include/grub/efi/efi.h: Likewise.
33006 * include/grub/efi/pe32.h: Likewise.
33007 * include/grub/efi/time.h: Likewise.
33008 * include/grub/i386/linux.h: Likewise.
33009 * include/grub/i386/setjmp.h: Likewise.
33010 * include/grub/i386/types.h: Likewise.
33011 * include/grub/i386/efi/kernel.h: Likewise.
33012 * include/grub/i386/efi/loader.h: Likewise.
33013 * include/grub/i386/efi/time.h: Likewise.
33014 * include/grub/i386/pc/biosdisk.h: Likewise.
33015 * include/grub/i386/pc/boot.h: Likewise.
33016 * include/grub/i386/pc/chainloader.h: Likewise.
33017 * include/grub/i386/pc/console.h: Likewise.
33018 * include/grub/i386/pc/init.h: Likewise.
33019 * include/grub/i386/pc/kernel.h: Likewise.
33020 * include/grub/i386/pc/loader.h: Likewise.
33021 * include/grub/i386/pc/memory.h: Likewise.
33022 * include/grub/i386/pc/multiboot.h: Likewise.
33023 * include/grub/i386/pc/serial.h: Likewise.
33024 * include/grub/i386/pc/time.h: Likewise.
33025 * include/grub/i386/pc/vbe.h: Likewise.
33026 * include/grub/i386/pc/vbeblit.h: Likewise.
33027 * include/grub/i386/pc/vbefill.h: Likewise.
33028 * include/grub/i386/pc/vbeutil.h: Likewise.
33029 * include/grub/i386/pc/vga.h: Likewise.
33030 * include/grub/ieee1275/ieee1275.h: Likewise.
33031 * include/grub/ieee1275/ofdisk.h: Likewise.
33032 * include/grub/powerpc/libgcc.h: Likewise.
33033 * include/grub/powerpc/setjmp.h: Likewise.
33034 * include/grub/powerpc/types.h: Likewise.
33035 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33036 * include/grub/powerpc/ieee1275/console.h: Likewise.
33037 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33038 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33039 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33040 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33041 * include/grub/powerpc/ieee1275/time.h: Likewise.
33042 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33043 * include/grub/sparc64/libgcc.h: Likewise.
33044 * include/grub/sparc64/setjmp.h: Likewise.
33045 * include/grub/sparc64/types.h: Likewise.
33046 * include/grub/sparc64/ieee1275/console.h: Likewise.
33047 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33048 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33049 * include/grub/sparc64/ieee1275/time.h: Likewise.
33050 * include/grub/util/biosdisk.h: Likewise.
33051 * include/grub/util/getroot.h: Likewise.
33052 * include/grub/util/lvm.h: Likewise.
33053 * include/grub/util/misc.h: Likewise.
33054 * include/grub/util/raid.h: Likewise.
33055 * include/grub/util/resolve.h: Likewise.
33056 * io/gzio.c: Likewise.
33057 * kern/device.c: Likewise.
33058 * kern/disk.c: Likewise.
33059 * kern/dl.c: Likewise.
33060 * kern/elf.c: Likewise.
33061 * kern/env.c: Likewise.
33062 * kern/err.c: Likewise.
33063 * kern/file.c: Likewise.
33064 * kern/fs.c: Likewise.
33065 * kern/loader.c: Likewise.
33066 * kern/main.c: Likewise.
33067 * kern/misc.c: Likewise.
33068 * kern/mm.c: Likewise.
33069 * kern/parser.c: Likewise.
33070 * kern/partition.c: Likewise.
33071 * kern/rescue.c: Likewise.
33072 * kern/term.c: Likewise.
33073 * kern/efi/efi.c: Likewise.
33074 * kern/efi/init.c: Likewise.
33075 * kern/efi/mm.c: Likewise.
33076 * kern/i386/dl.c: Likewise.
33077 * kern/i386/efi/init.c: Likewise.
33078 * kern/i386/efi/startup.S: Likewise.
33079 * kern/i386/pc/init.c: Likewise.
33080 * kern/i386/pc/lzo1x.S: Likewise.
33081 * kern/i386/pc/startup.S: Likewise.
33082 * kern/ieee1275/ieee1275.c: Likewise.
33083 * kern/powerpc/cache.S: Likewise.
33084 * kern/powerpc/dl.c: Likewise.
33085 * kern/powerpc/ieee1275/cmain.c: Likewise.
33086 * kern/powerpc/ieee1275/crt0.S: Likewise.
33087 * kern/powerpc/ieee1275/init.c: Likewise.
33088 * kern/powerpc/ieee1275/openfw.c: Likewise.
33089 * kern/sparc64/cache.S: Likewise.
33090 * kern/sparc64/dl.c: Likewise.
33091 * kern/sparc64/ieee1275/init.c: Likewise.
33092 * kern/sparc64/ieee1275/openfw.c: Likewise.
33093 * loader/efi/chainloader.c: Likewise.
33094 * loader/efi/chainloader_normal.c: Likewise.
33095 * loader/i386/efi/linux.c: Likewise.
33096 * loader/i386/efi/linux_normal.c: Likewise.
33097 * loader/i386/pc/chainloader.c: Likewise.
33098 * loader/i386/pc/chainloader_normal.c: Likewise.
33099 * loader/i386/pc/linux.c: Likewise.
33100 * loader/i386/pc/linux_normal.c: Likewise.
33101 * loader/i386/pc/multiboot.c: Likewise.
33102 * loader/i386/pc/multiboot_normal.c: Likewise.
33103 * loader/powerpc/ieee1275/linux.c: Likewise.
33104 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33105 * normal/arg.c: Likewise.
33106 * normal/cmdline.c: Likewise.
33107 * normal/command.c: Likewise.
33108 * normal/completion.c: Likewise.
33109 * normal/execute.c: Likewise.
33110 * normal/function.c: Likewise.
33111 * normal/lexer.c: Likewise.
33112 * normal/main.c: Likewise.
33113 * normal/menu.c: Likewise.
33114 * normal/menu_entry.c: Likewise.
33115 * normal/misc.c: Likewise.
33116 * normal/parser.y: Likewise.
33117 * normal/script.c: Likewise.
33118 * normal/i386/setjmp.S: Likewise.
33119 * normal/powerpc/setjmp.S: Likewise.
33120 * normal/sparc64/setjmp.S: Likewise.
33121 * partmap/acorn.c: Likewise.
33122 * partmap/amiga.c: Likewise.
33123 * partmap/apple.c: Likewise.
33124 * partmap/gpt.c: Likewise.
33125 * partmap/pc.c: Likewise.
33126 * partmap/sun.c: Likewise.
33127 * term/gfxterm.c: Likewise.
33128 * term/terminfo.c: Likewise.
33129 * term/efi/console.c: Likewise.
33130 * term/i386/pc/console.c: Likewise.
33131 * term/i386/pc/serial.c: Likewise.
33132 * term/i386/pc/vesafb.c: Likewise.
33133 * term/i386/pc/vga.c: Likewise.
33134 * term/ieee1275/ofconsole.c: Likewise.
33135 * util/biosdisk.c: Likewise.
33136 * util/console.c: Likewise.
33137 * util/genmoddep.c: Likewise.
33138 * util/getroot.c: Likewise.
33139 * util/grub-emu.c: Likewise.
33140 * util/grub-mkdevicemap.c: Likewise.
33141 * util/grub-probe.c: Likewise.
33142 * util/lvm.c: Likewise.
33143 * util/misc.c: Likewise.
33144 * util/raid.c: Likewise.
33145 * util/resolve.c: Likewise.
33146 * util/update-grub.in: Likewise.
33147 * util/update-grub_lib.in: Likewise.
33148 * util/grub.d/00_header.in: Likewise.
33149 * util/grub.d/10_hurd.in: Likewise.
33150 * util/grub.d/10_linux.in: Likewise.
33151 * util/i386/efi/grub-install.in: Likewise.
33152 * util/i386/efi/grub-mkimage.c: Likewise.
33153 * util/i386/pc/grub-install.in: Likewise.
33154 * util/i386/pc/grub-mkimage.c: Likewise.
33155 * util/i386/pc/grub-mkrescue.in: Likewise.
33156 * util/i386/pc/grub-setup.c: Likewise.
33157 * util/i386/pc/misc.c: Likewise.
33158 * util/powerpc/ieee1275/grub-install.in: Likewise.
33159 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33160 * util/powerpc/ieee1275/misc.c: Likewise.
33161 * video/bitmap.c: Likewise.
33162 * video/video.c: Likewise.
33163 * video/i386/pc/vbe.c: Likewise.
33164 * video/i386/pc/vbeblit.c: Likewise.
33165 * video/i386/pc/vbefill.c: Likewise.
33166 * video/i386/pc/vbeutil.c: Likewise.
33167 * video/readers/tga.c: Likewise.
33168
33169 2007-07-02 Robert Millan <rmh@aybabtu.com>
33170
33171 * conf/i386-efi.rmk: Replace obsolete reference to
33172 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33173 with util/getroot.c.
33174 * conf/powerpc-ieee1275.rmk: Likewise.
33175 * conf/sparc64-ieee1275.rmk: Likewise.
33176
33177 * util/grub-emu.c (main): Fix unchecked pointer handling.
33178
33179 2007-07-02 Robert Millan <rmh@aybabtu.com>
33180
33181 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33182 invocation to fail, in order to support partition-less media.
33183
33184 * util/i386/pc/grub-install.in: Likewise.
33185
33186 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33187 which fs or partmap modules are needed (akin to its sister scripts).
33188
33189 Also use grub-probe to get rid of unportable /proc/mounts check.
33190
33191 Print the same informational message that the other scripts do, before
33192 exiting.
33193
33194 2007-06-23 Robert Millan <rmh@aybabtu.com>
33195
33196 * util/update-grub_lib.in (font_path): New function. Determine whether
33197 a font file can be found and, if so, echo the GRUB path to it.
33198
33199 * util/update-grub.in: Handle multiple terminals depending on user
33200 input, platform availability and font file presence. Propagate
33201 variables of our findings to /etc/grub.d/ children.
33202
33203 * util/grub.d/00_header.in: Handle multiple terminals, based on
33204 environment setup by update-grub.
33205
33206 2007-06-23 Robert Millan <rmh@aybabtu.com>
33207
33208 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33209
33210 2007-06-21 Robert Millan <rmh@aybabtu.com>
33211
33212 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33213 indicate end of data section in kernel image.
33214 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33215 GRUB_KERNEL_MACHINE_DATA_END.
33216
33217 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33218 space for it.
33219 * kern/i386/efi/startup.S: Likewise.
33220
33221 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33222 during image generation. Implement --prefix option to override this
33223 patch.
33224 * util/i386/efi/grub-mkimage.c: Likewise.
33225
33226 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33227 code to make path relative to its root into a separate function.
33228
33229 * util/i386/pc/grub-install.in: Use newly provided
33230 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33231 pass the result to grub-install --prefix.
33232
33233 2007-06-13 Robert Millan <rmh@aybabtu.com>
33234
33235 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33236 DEFAULT_DEVICE_MAP.
33237 * util/grub-emu.c: Use above definitions from misc.h instead of
33238 defining them.
33239 * util/grub-mkdevicemap.c: Likewise.
33240 * util/i386/pc/grub-setup.c: Likewise.
33241 * util/grub-probe.c: Likewise.
33242 (probe): Abort with grub_util_error() when either
33243 grub_guess_root_device or grub_util_get_grub_dev fails.
33244
33245 2007-06-12 Robert Millan <rmh@aybabtu.com>
33246
33247 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33248 "pager" assignment.
33249 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33250 "pcdata".
33251 * util/grub-probe.c (probe): Likewise for "drive_name".
33252
33253 2007-06-11 Robert Millan <rmh@aybabtu.com>
33254
33255 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33256 not just the cdrom one.
33257
33258 2007-06-11 Robert Millan <rmh@aybabtu.com>
33259
33260 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33261 Add --pkglibdir=DIR option to override pkglibdir.
33262 Mention --image-type=TYPE in help output.
33263 Fix --grub-mkimage (it was a no-op).
33264 Abort gracefully when no parameter is given.
33265
33266 2007-06-11 Robert Millan <rmh@aybabtu.com>
33267
33268 * util/i386/pc/grub-mkrescue.in: New file.
33269 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33270 * Makefile.in: Handle bin_SCRIPTS.
33271
33272 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33273
33274 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33275 list of video modes.
33276
33277 2007-06-06 Robert Millan <rmh@aybabtu.com>
33278
33279 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33280 file doesn't exist, or if it is in a filesystem grub can't read.
33281
33282 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33283 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33284 header comment to fit in 80 columns when the variables are resolved.
33285
33286 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33287 could be identified by update-grub. Remove redundant check for
33288 unifont.pff existence (since convert_system_path_to_grub_path now
33289 handles that).
33290
33291 2007-06-04 Robert Millan <rmh@aybabtu.com>
33292
33293 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33294
33295 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33296
33297 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33298
33299 2007-06-04 Robert Millan <rmh@aybabtu.com>
33300
33301 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33302
33303 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33304 grub_apple_partition_map_fini.
33305
33306 * util/biosdisk.c
33307 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33308 to access >2 TiB disks).
33309
33310 Print disk->total_sectors with %llu instead of %lu, since this
33311 variable is always 64-bit (prevents wrong disk size from being displayed
33312 on either >2 TiB disk or big-endian CPU).
33313
33314 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33315 into a generic case that supports all (sane) partition maps.
33316
33317 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33318 breaks big-endian.
33319
33320 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33321 and grub_apple_partition_map_fini() after that.
33322
33323 2007-06-01 Robert Millan <rmh@aybabtu.com>
33324
33325 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33326
33327 * util/grub.d/00_header.in: Only enable gfxterm when
33328 convert_system_path_to_grub_path() succeeds.
33329
33330 2007-05-20 Robert Millan <rmh@aybabtu.com>
33331
33332 * util/update-grub_lib.in: New file.
33333 * DISTLIST: Add update-grub_lib.in.
33334 * conf/common.rmk: Generate update-grub_lib and install it in
33335 $(lib_DATA).
33336 * Makefile.in: Add install routine for $(lib_DATA).
33337
33338 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
33339 function provided by update-grub_lib to support arbitrary paths of
33340 unifont.pff.
33341 * util/update-grub.in: Use convert_system_path_to_grub_path() to
33342 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
33343
33344 2007-05-19 Robert Millan <rmh@aybabtu.com>
33345
33346 * commands/i386/cpuid.c: New module.
33347 * DISTLIST: Add it.
33348 * conf/i386-efi.rmk: Enable cpuid.mod.
33349 * conf/i386-pc.rmk: Likewise.
33350
33351 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33352
33353 * kern/disk.c (grub_disk_read): Check return value of
33354 grub_realloc().
33355
33356 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
33357
33358 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
33359 arrays.
33360 * disk/raid.c (grub_raid_open): Likewise.
33361
33362 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33363
33364 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
33365 stack instead of on the heap.
33366
33367 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
33368 before doing a read on it.
33369
33370 * configure.ac: Only use -fno-stack-protector for the target
33371 environment.
33372
33373 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
33374
33375 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
33376 __attribute_ ((unused)) to mode_type argument.
33377
33378 * util/getroot.c (grub_guess_root_device): Fix #endif.
33379
33380 * kern/misc.c (memcmp): Fix prototype.
33381
33382 * include/grub/partition.h [GRUB_UTIL]
33383 (grub_gpt_partition_map_init): Add prototype.
33384 (grub_gpt_partition_map_fini): Likewise.
33385
33386 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
33387 at the right place.
33388
33389 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
33390 (grub_fat_read_data): Likewise.
33391 (grub_fat_find_dir): Likewise.
33392
33393 * font/manager.c (find_glyph): Make table a const.
33394 (grub_font_get_glyph): Remove bitmap from if statement.
33395
33396 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
33397
33398 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
33399 code, first search for device in /dev/mapper, then in /dev.
33400 (grub_util_get_grub_dev): New function.
33401 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
33402 prototype.
33403 * util/grub-probe.c (probe): Remove check for RAID, call
33404 grub_util_get_grub_dev() instead of
33405 grub_util_biosdisk_get_grub_dev().
33406 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
33407 grub_util_biosdisk_get_grub_dev().
33408 * util/i386/pc/grub-setup.c (main): Likewise.
33409
33410 2007-05-16 Robert Millan <rmh@aybabtu.com>
33411
33412 * DISTLIST: Update for the latest changes.
33413 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
33414 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
33415 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
33416 grub/util/biosdisk.h.
33417 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
33418 grub/util/biosdisk.h.
33419
33420 2007-05-16 Robert Millan <rmh@aybabtu.com>
33421
33422 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
33423
33424 2007-05-16 Robert Millan <rmh@aybabtu.com>
33425
33426 * util/i386/efi/grub-install.in: New.
33427 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
33428 newly added grub-install.
33429 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
33430 include.
33431 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
33432 grub/util/biosdisk.h.
33433 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
33434 grub/util/biosdisk.h.
33435
33436 2007-05-16 Robert Millan <rmh@aybabtu.com>
33437
33438 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
33439 * include/grub/util/biosdisk.h: ... here.
33440 * util/i386/pc/biosdisk.c: Moved to ...
33441 * util/biosdisk.c: ... here.
33442 * util/i386/pc/getroot.c: Moved to ...
33443 * util/getroot.c: ... here.
33444 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
33445 * util/grub-mkdevicemap.c: ... here.
33446 * util/i386/pc/grub-probe.c: Moved to ...
33447 * util/grub-probe.c: ... here.
33448
33449 2007-05-15 Robert Millan <rmh@aybabtu.com>
33450
33451 * util/update-grub.in: Remove duplicated line in grub.cfg header
33452 message.
33453
33454 2007-05-13 Robert Millan <rmh@aybabtu.com>
33455
33456 * util/update-grub.in: Fix a few assumptions about the devices holding
33457 /, /boot and /boot/grub being the same.
33458 * util/grub.d/00_header.in: Likewise.
33459 * util/grub.d/10_hurd.in: Likewise.
33460 * util/grub.d/10_linux.in: Likewise.
33461
33462 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
33463 patterns. Use that to define the `.old' suffix as older than `'.
33464
33465 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
33466
33467 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
33468 the grub.cfg header message.
33469
33470 2007-05-11 Robert Millan <rmh@aybabtu.com>
33471
33472 * util/update-grub.in: Create device.map if it doesn't already exist,
33473 before attempting to run grub-probe.
33474 Check for grub-probe and grub-mkdevicemap with the same code
33475 grub-install is using.
33476 Remove test mode.
33477
33478 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
33479
33480 * Makefile.in: Add the datarootdir autoconf variable.
33481
33482 2007-05-09 Robert Millan <rmh@aybabtu.com>
33483
33484 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
33485 fail gracefully if dev->disk->partition == NULL.
33486
33487 2007-05-07 Robert Millan <rmh@aybabtu.com>
33488
33489 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
33490 determine partition map module.
33491 * util/i386/pc/grub-install.in: Use this feature to decide which
33492 partition module to load, instead of hardcoding pc and gpt.
33493
33494 2007-05-07 Robert Millan <rmh@aybabtu.com>
33495
33496 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
33497 source directory differs from build directory.
33498
33499 2007-05-05 Robert Millan <rmh@aybabtu.com>
33500
33501 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
33502 initialisation.
33503
33504 2007-05-05 Robert Millan <rmh@aybabtu.com>
33505
33506 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
33507
33508 2007-05-05 Robert Millan <rmh@aybabtu.com>
33509
33510 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
33511 command-line arguments via ${GRUB_CMDLINE_LINUX}.
33512
33513 2007-05-05 Robert Millan <rmh@aybabtu.com>
33514
33515 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
33516 (grub_probe_SOURCES): Likewise.
33517 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
33518 GPT and initialize dos_part and bsd_part accordingly.
33519 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
33520 install_bsd_part.
33521 (main): Activate gpt module for use during partition identification,
33522 and deactivate it afterwards.
33523 * util/i386/pc/grub-install.in: Add gpt module to core.img.
33524 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
33525 partition identification, and deactivate it afterwards.
33526
33527 2007-05-05 Robert Millan <rmh@aybabtu.com>
33528
33529 * term/i386/pc/console.c (grub_console_fini): Call
33530 grub_term_set_current() before grub_term_unregister().
33531
33532 2007-05-04 Robert Millan <rmh@aybabtu.com>
33533
33534 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
33535 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
33536 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
33537 and update-grub_DATA.
33538 * conf/common.rmk: Build and install update-grub components.
33539 * conf/common.mk: Regenerate.
33540 * util/update-grub.in: New. Core of update-grub.
33541 * util/grub.d/00_header.in: New. Generates grub.cfg header.
33542 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
33543 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
33544 * util/grub.d/README: New. Document grub.d directory layout.
33545
33546 2007-05-01 Robert Millan <rmh@aybabtu.com>
33547
33548 * util/grub-emu.c: Move initialization functions
33549 grub_util_biosdisk_init() and grub_init_all() before
33550 grub_util_biosdisk_get_grub_dev(), which relies on them.
33551
33552 2007-04-19 Robert Millan <rmh@aybabtu.com>
33553
33554 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
33555 it is used later.
33556
33557 2007-04-18 Jerone Young <jerone@gmail.com>
33558
33559 * kernel/elf.c: Add missing parenthesis for conditional statement
33560 stanza.
33561
33562 2007-04-10 Jerone Young <jerone@gmail.com>
33563
33564 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
33565 continue on and look for device node with real device name.
33566
33567 2007-04-10 Jerone Young <jerone@gmail.com>
33568
33569 * configure.ac: Add argument for autoconf to use transformation
33570 ability.
33571 * Makefile.in: Add autoconf package transformation code.
33572 * util/i386/pc/grub-install.in: Likewise.
33573 * util/powerpc/ieee1275/grub-install.in: Likewise.
33574
33575 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33576
33577 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
33578 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
33579 (EXT2_REVISION): Likewise.
33580 (EXT2_INODE_SIZE): Likewise.
33581 (struct grub_ext2_block_group): Added a missing member
33582 "used_dirs".
33583 (grub_ext2_read_inode): Divide by the inode size in a superblock
33584 instead of 128 to obtain INODES_PER_BLOCK.
33585 Use the macro EXT2_INODE_SIZE instead of directly using
33586 SBLOCK->INODE_SIZE.
33587
33588 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33589
33590 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
33591 superblock instead of the structure size to compute an
33592 offset. This fixes the problem that GRUB could not read a
33593 filesystem when inode size is different from 128-byte.
33594
33595 2007-03-05 Marco Gerards <marco@gnu.org>
33596
33597 * normal/main.c (read_config_file): When "menu" is not set, create
33598 an initial context.
33599
33600 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33601
33602 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
33603 (HEAP_LIMIT): New macro.
33604 (grub_claim_heap): Claim memory up to `heaplimit'.
33605
33606 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
33607
33608 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
33609 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
33610 (_start): Likewise.
33611 (grub_arch_modules_addr): Return address after `_end'.
33612 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
33613 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
33614 (add_segments): Calculate `_end' from phdr size and location.
33615 (ALIGN_UP): Moved to ...
33616 * include/grub/misc.h: here.
33617 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33618 New macro.
33619 (GRUB_IEEE1275_MODULE_BASE): Removed.
33620
33621 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33622
33623 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
33624 loop boundary.
33625
33626 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33627
33628 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
33629 All users updated.
33630 (grub_elf64_load_hook_t): Likewise.
33631 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
33632 debug output.
33633
33634 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
33635
33636 * kern/mm.c: Update copyright.
33637 (grub_mm_debug): Correct syntax error.
33638 (grub_mm_dump_free): New function.
33639 (grub_debug_free): Call `grub_free'.
33640 * include/grub/mm.h: Update copyright.
33641 (grub_mm_dump_free): Add declaration.
33642
33643 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33644
33645 * include/grub/ieee1275/ieee1275.h: Update copyright.
33646 * kern/powerpc/ieee1275/init.c: Likewise.
33647 * kern/powerpc/ieee1275/openfw.c: Likewise.
33648
33649 * loader/powerpc/ieee1275/linux.c: Likewise.
33650 * include/grub/elfload.h: Likewise.
33651 * kern/elf.c: Likewise.
33652 (grub_elf32_load): Pass `base' and `size' parameters. Update all
33653 callers.
33654 (grub_elf64_load): Likewise.
33655 (grub_elf32_load_segment): Move to a nested function.
33656 (grub_elf64_load_segment): Likewise.
33657
33658 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
33659
33660 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
33661 prototype.
33662 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
33663 (grub_heap_len): Likewise.
33664 (HEAP_SIZE): New macro.
33665 (grub_claim_heap): New function.
33666 (grub_machine_init): Don't claim heap directly. Call
33667 `grub_claim_heap'.
33668 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
33669 (grub_available_iterate): New function.
33670
33671 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
33672
33673 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
33674 * configure.ac: Use it for testing the HOST and TARGET compilers.
33675
33676 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
33677
33678 * Makefile.in (enable_grub_emu): New variable.
33679 * configure.ac (--enable-grub-emu): New option.
33680 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
33681 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
33682 * conf/i386-pc.rmk: Likewise.
33683 * conf/powerpc-ieee1275.rmk: Likewise.
33684 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
33685
33686 2006-12-12 Marco Gerards <marco@gnu.org>
33687
33688 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
33689
33690 * kern/env.c (grub_env_unset): Don't free the member `value' when
33691 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
33692 pointer.
33693
33694 * normal/main.c (current_menu): Removed.
33695 (free_menu): Unset the `menu' environment variable.
33696 (grub_normal_menu_addentry): Make use of the environment variable
33697 `menu', instead of using the global `current_menu'. Allocate
33698 memory for the sourcecode of this entry.
33699 (read_config_file): New argument `nested', changed all callers.
33700 Only in the case of a new context, initialize a new menu. Set the
33701 `menu' environment variable.
33702 (grub_normal_execute): Don't set and unset the environment
33703 variable `menu' here anymore. Only free the menu when leaving the
33704 context.
33705
33706 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
33707 leak.
33708
33709 2006-12-11 Marco Gerards <marco@gnu.org>
33710
33711 * normal/menu_entry.c (run): Fix off by one bug so the last line
33712 is executed. Move the loader check to outside the loop.
33713
33714 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
33715
33716 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
33717
33718 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
33719
33720 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
33721 the number of sectors. Reported by Andrey Shuvikov
33722 <mr_hyro@yahoo.com>.
33723
33724 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
33725
33726 * kern/disk.c (grub_disk_read): When there is a read error, always
33727 try to read only the necessary data.
33728
33729 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
33730 disk/raid.c.
33731 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
33732 prototype.
33733 [GRUB_UTIL] (grub_raid_fini): Likewise.
33734 [GRUB_UTIL] (grub_lvm_init): Likewise.
33735 [GRUB_UTIL] (grub_lvm_fini): Likewise.
33736 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
33737 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
33738 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
33739 and grub_raid_fini().
33740
33741 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33742
33743 * include/grub/types.h (__unused): Rename to UNUSED.
33744 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
33745 (grub_elf64_size): Likewise.
33746
33747 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33748
33749 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
33750 grub_error_push and grub_error_pop in the error-handling path.
33751 (grub_elf32_load_segment): Only call grub_file_read with non-zero
33752 length.
33753
33754 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
33755
33756 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
33757 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33759 (kernel_elf_SOURCES): Likewise.
33760 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
33761 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
33762 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33763 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33764 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
33765 (elf_mod_SOURCES): New variable.
33766 (elf_mod_CFLAGS): Likewise.
33767 (elf_mod_LDFLAGS): Likewise.
33768 * include/grub/types.h (__unused): New macro.
33769 * include/grub/elfload.h: New file.
33770 * kern/elf.c: Likewise.
33771 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
33772 (ELF32_LOADMASK): New macro.
33773 (ELF64_LOADMASK): Likewise.
33774 (vmlinux): Removed.
33775 (grub_linux_load32): New function.
33776 (grub_linux_load64): Likewise.
33777 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
33778 Use grub_elf_t instead of grub_file_t.
33779
33780 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
33781
33782 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
33783 `catch_result' to struct set_color_args.
33784
33785 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
33786
33787 * normal/menu.c: Include grub/script.h.
33788 * normal/menu_entry.c: Likewise.
33789 * include/grub/normal.h: Do not include grub/script.h.
33790
33791 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33792
33793 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
33794
33795 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33796
33797 * kern/disk.c (grub_disk_open): Print debug messages when opening a
33798 disk.
33799 (grub_disk_close): Print debug messages when closing a disk.
33800 (grub_disk_read): Print debug messages when disk read fails.
33801 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
33802 filesystem type.
33803 * kern/partition.c: Include misc.h.
33804 (grub_partition_iterate): Print debug messages when detecting
33805 partition type.
33806
33807 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
33808
33809 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
33810 is negative.
33811 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
33812
33813 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
33814
33815 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33816 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
33817
33818 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
33819
33820 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
33821 instead of sizeof(lv). Patch by Michael Guntsche.
33822
33823 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
33824
33825 * disk/lvm.c: Rename VGS to VG_LIST.
33826 (grub_lvm_iterate): Change VGS->LV to VG-LV.
33827 (grub_lvm_open): Likewise.
33828 Thanks to Michael Guntsche for finding this bug.
33829
33830 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
33831
33832 * configure.ac (AC_INIT): Bumped to 1.95.
33833
33834 2006-10-14 Robert Millan <rmh@aybabtu.com>
33835
33836 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
33837 with "/dev/.static/dev/md".
33838
33839 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33840
33841 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
33842 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
33843 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
33844 DRIVE_NAME are always freed.
33845
33846 * util/i386/pc/biosdisk.c (make_device_name): Add one into
33847 DOS_PART, as a DOS partition is counted from one instead of zero
33848 now. Reported by Robert Millan.
33849
33850 2006-10-14 Robert Millan <rmh@aybabtu.com>
33851
33852 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
33853 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
33854 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
33855 string returned by grub_guess_root_device.
33856 * util/i386/pc/grub-setup.c: Likewise.
33857 * util/i386/pc/grub-probefs.c: Likewise.
33858
33859 * util/i386/pc/grub-probefs.c: Rename to ...
33860 * util/i386/pc/grub-probe.c: ... this.
33861 * DISTLIST: Remove grub-probefs, add grub-probe.
33862 * conf/i386-efi.rmk: Likewise.
33863 * conf/i386-pc.rmk: Likewise.
33864 * util/i386/pc/grub-install.in: Likewise.
33865
33866 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
33867 choose which information we want to print.
33868
33869 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
33870
33871 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
33872 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
33873 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
33874 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
33875 video/readers/tga.c and video/i386/pc/vbeutil.c.
33876
33877 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
33878
33879 Added support for RAID and LVM.
33880
33881 * disk/lvm.c: New file.
33882 * disk/raid.c: Likewise.
33883 * include/grub/lvm.h: Likewise.
33884 * include/grub/raid.h: Likewise.
33885 * include/grub/util/lvm.h: Likewise.
33886 * include/grub/util/raid.h: Likewise.
33887 * util/lvm.c: Likewise.
33888 * util/raid.c: Likewise.
33889
33890 * include/grub/disk.h (grub_disk_dev_id): Add
33891 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
33892 (grub_disk_get_size): New prototype.
33893 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
33894 returns a partition.
33895 (grub_disk_get_size): New function.
33896
33897 * kern/i386/pc/init.c (make_install_device): Copy the prefix
33898 verbatim if grub_install_dos_part is -2.
33899
33900 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
33901 and LVM devices.
33902
33903 * util/i386/pc/grub-setup.c (setup): New argument
33904 MUST_EMBED. Force embedding of GRUB when the argument is
33905 true. Close FILE before returning.
33906 (main): Add support for RAID and LVM.
33907
33908 * conf/common.rmk: Add RAID and LVM modules.
33909 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
33910 util/lvm.c.
33911 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
33912
33913 * kern/misc.c (grub_strstr): New function.
33914 * include/grub/misc.h (grub_strstr): New prototype.
33915
33916 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
33917
33918 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
33919
33920 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
33921
33922 * kern/misc.c (grub_strtoull): Guess the base only if not
33923 specified.
33924
33925 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33926
33927 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
33928 PowerMac support.
33929
33930 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33931
33932 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
33933
33934 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
33935 Remove `flags' argument. All callers changed.
33936 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
33937 (IEEE1275_IHANDLE_INVALID): New variable.
33938 (IEEE1275_CELL_INVALID): New variable.
33939 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33940 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
33941 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
33942 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
33943 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
33944 codes from Open Firmware. All callers updated.
33945 (grub_ieee1275_next_property): Directly return Open Firmware return
33946 code.
33947 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
33948 Standardize error checking from `grub_ieee1275_get_property'.
33949 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
33950 `devalias' to `aliases'. Correct comments. Consolidate error paths.
33951
33952 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
33953
33954 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
33955 `instance_to_package_args' to `instance_to_path_args'.
33956
33957 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
33958 `grub_ieee1275_chosen'.
33959
33960 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
33961 `grub_ieee1275_interpret'.
33962
33963 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33964
33965 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
33966
33967 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
33968
33969 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
33970 (__cmpdi): Likewise.
33971
33972 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
33973 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
33974 `grub_ssize_t'.
33975
33976 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
33977
33978 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
33979 to type `grub_ssize_t'.
33980 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
33981
33982 2006-09-22 Marco Gerards <marco@gnu.org>
33983
33984 * normal/script.c (grub_script_create_cmdmenu): Skip leading
33985 newlines.
33986
33987 2006-09-22 Marco Gerards <marco@gnu.org>
33988
33989 * commands/echo.c: New file.
33990
33991 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
33992
33993 * conf/common.rmk (echo_mod_SOURCES): New variable.
33994 (echo_mod_CFLAGS): Likewise.
33995 (echo_mod_LDFLAGS): Likewise.
33996
33997 2006-09-22 Marco Gerards <marco@gnu.org>
33998
33999 * normal/main.c (get_line): Malloc memory instead of using
34000 preallocated memory. Removed the arguments `cmdline' and
34001 `max_len'. Updated all callers.
34002
34003 2006-09-22 Marco Gerards <marco@gnu.org>
34004
34005 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34006 (normal_mod_DEPENDENCIES): Likewise.
34007
34008 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34009 (normal_mod_DEPENDENCIES): Likewise.
34010
34011 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34012
34013 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34014
34015 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34016 programs.
34017 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34018 (normal_mod_DEPENDENCIES): Likewise.
34019 * conf/i386-pc.mk: Regenerate.
34020 * conf/i386-efi.mk: Likewise
34021 * conf/common.mk: Likewise.
34022 * conf/powerpc-ieee1275.mk: Likewise.
34023 * conf/sparc64-ieee1275.mk: Likewise.
34024
34025 2006-09-22 Robert Millan <rmh@aybabtu.com>
34026
34027 Sync with i386 version.
34028 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34029 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34030
34031 2006-09-21 Robert Millan <rmh@aybabtu.com>
34032
34033 Import from GRUB Legacy (lib/device.c):
34034 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34035 (init_device_map) [__linux__]: Add support for I2O devices.
34036
34037 2006-09-14 Marco Gerards <marco@gnu.org>
34038
34039 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34040 `-melf_i386'.
34041
34042 2006-09-14 Robert Millan <rmh@aybabtu.com>
34043
34044 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34045 /boot/grub/*.lst.
34046
34047 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34048
34049 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34050 before adding it to device.map.
34051
34052 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34053
34054 * genmk.rb: Let GCC generate dependencies the first time it
34055 compiles a file; using the -MD option.
34056 * conf/common.mk: Regenerate.
34057 * conf/i386-pc.mk: Likewise.
34058 * conf/i386-efi.mk: Likewise.
34059 * conf/powerpc-ieee1275.mk: Likewise.
34060 * conf/sparc64-ieee1275.mk: Likewise.
34061
34062 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34063
34064 Move the prototypes of grub_setjmp and grub_longjmp to
34065 cpu/setjmp.h, so that each architecture may specify different
34066 attributes.
34067
34068 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34069 (grub_longjmp): Likewise.
34070 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34071 (grub_longjmp): Likewise.
34072 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34073 (grub_longjmp): Likewise.
34074
34075 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34076 [!GRUB_UTIL] (grub_longjmp): Removed.
34077
34078 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34079
34080 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34081 "color!" method does not return any value.
34082
34083 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34084
34085 * include/grub/bitmap.h: New file.
34086
34087 * include/grub/i386/pc/vbeutil.h: Likewise.
34088
34089 * video/bitmap.c: Likewise.
34090
34091 * video/readers/tga.c: Likewise.
34092
34093 * video/i386/pc/vbeutil.c: Likewise.
34094
34095 * commands/videotest.c: Code cleanup and updated to reflect to new
34096 video API.
34097
34098 * term/gfxterm.c: Likewise.
34099
34100 * video/video.c: Likewise.
34101
34102 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34103 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34104 (bitmap_mod_SOURCES): New entry.
34105 (bitmap_mod_CFLAGS): Likewise.
34106 (bitmap_mod_LDFLAGS): Likewise.
34107 (tga_mod_SOURCES): Likewise.
34108 (tga_mod_CFLAGS): Likewise.
34109 (tga_mod_LDFLAGS): Likewise.
34110
34111 * include/grub/video.h (grub_video_blit_operators): New enum type.
34112 (grub_video_render_target): Changed as forward declaration and moved
34113 actual definition to be video driver specific.
34114 (grub_video_adapter.blit_bitmap): Added blitting operator.
34115 (grub_video_adapter.blit_render_target): Likewise.
34116 (grub_video_blit_bitmap): Likewise.
34117 (grub_video_blit_render_target): Likewise.
34118
34119 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34120 driver specific render target definition.
34121 (grub_video_vbe_map_rgba): Added driver internal helper.
34122 (grub_video_vbe_unmap_color): Updated to use
34123 grub_video_i386_vbeblit_info.
34124 (grub_video_vbe_get_video_ptr): Likewise.
34125
34126 * include/grub/i386/pc/vbeblit.h
34127 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34128 grub_video_i386_vbeblit_info.
34129 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34130 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34131 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34132 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34133 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34134 (grub_video_i386_vbeblit_index_index): Likewise.
34135 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34136 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34137 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34138 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34139 operator.
34140 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34141 operator.
34142
34143 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34144 include/grub/i386/pc/vbeblit.h.
34145
34146 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34147 Updated to use grub_video_i386_vbeblit_info.
34148 (grub_video_i386_vbefill_R8G8B8): Likewise.
34149 (grub_video_i386_vbefill_index): Likewise.
34150 (grub_video_i386_vbefill): Added generic filler.
34151
34152 * video/i386/pc/vbefill.c: Updated to reflect changes on
34153 include/grub/i386/pc/vbefill.h.
34154
34155 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34156 grub_video_i386_vbeblit_info.
34157 (grub_video_vbe_unmap_color): Likewise.
34158 (grub_video_vbe_blit_glyph): Likewise.
34159 (grub_video_vbe_scroll): Likewise.
34160 (grub_video_vbe_draw_pixel): Removed function.
34161 (grub_video_vbe_get_pixel): Likewise.
34162 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34163 updated code to use it.
34164 (common_blitter): Added common blitter for render target and bitmap.
34165 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34166 (grub_video_vbe_blit_render_target): Likewise.
34167
34168 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34169
34170 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34171 is in text mode if there is no console control protocol instance
34172 available.
34173
34174 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34175
34176 * include/grub/video.h: Code cleanup.
34177
34178 * include/grub/i386/pc/vbe.h: Likewise.
34179
34180 * video/i386/pc/vbe.c: Likewise.
34181
34182 * video/i386/pc/vbeblit.c: Likewise.
34183
34184 * video/i386/pc/vbefill.c: Likewise.
34185
34186 * video/video.c: Likewise. Also added more comments.
34187
34188 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34189
34190 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34191 (struct grub_biosdisk_dap): Likewise.
34192
34193 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34194 linkage settings for all functions.
34195
34196 2006-07-12 Marco Gerards <marco@gnu.org>
34197
34198 * configure.ac (--enable-mm-debug): Fix typo.
34199
34200 * genkernsyms.sh.in: Use proper quoting for `CC'.
34201
34202 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34203
34204 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34205 (normal_mod_ASFLAGS): Remove "-m32".
34206
34207 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34208
34209 * util/misc.c: Include config.h.
34210 [!HAVE_MEMALIGN]: Do not include malloc.h.
34211 (grub_memalign): Use posix_memalign, if present. Then, use
34212 memalign, if present. Otherwise, emit an error.
34213
34214 * util/grub-emu.c: Do not include malloc.h.
34215
34216 * include/grub/util/misc.h: Include unistd.h. This is required for
34217 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34218 D. Eades III <hde@foobar-qux.org>.
34219
34220 * configure.ac (AC_GNU_SOURCE): Added.
34221 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34222 type.
34223
34224 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34225
34226 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34227 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34228
34229 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34230
34231 * include/grub/types.h (grub_host_addr_t): Rename to
34232 grub_target_addr_t.
34233 (grub_host_off_t): Rename to grub_target_off_t.
34234 (grub_host_size_t): Rename to grub_target_size_t.
34235 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34236 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34237
34238 * include/grub/kernel.h (struct grub_module_header): Change type
34239 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34240 (grub_module_info): Likewise.
34241
34242 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34243
34244 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34245 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34246 Velazquez <jesus.velazquez@gmail.com>.
34247
34248 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34249
34250 Count partitions from 1 instead of 0 in the string representation
34251 of partitions. Still use 0-based internally.
34252
34253 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34254 (sun_partition_map_iterate): Use grub_partition_t instead of
34255 struct grub_partition *. Cast DESC->START_CYLINDER to
34256 grub_uint64_t after converting the endian.
34257 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34258 (sun_partition_map_get_name): Add 1 to P->INDEX.
34259
34260 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34261 PCDATA->DOS_PART.
34262 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34263
34264 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34265 zero instead of one.
34266 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34267 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34268
34269 * partmap/apple.c (apple_partition_map_iterate): Change the type
34270 of POS to unsigned.
34271 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34272 (apple_partition_map_get_name): Add 1 into P->INDEX.
34273
34274 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34275 of POS to unsigned.
34276 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34277 calculate the offset of a partition.
34278 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34279 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34280
34281 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34282 SECTOR to grub_disk_addr_t.
34283 (acorn_partition_map_iterate): Likewise.
34284 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34285 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34286 top.
34287 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34288
34289 * kern/i386/pc/init.c (make_install_device): Add 1 into
34290 GRUB_INSTALL_DOS_PART.
34291
34292 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34293 conditional.
34294
34295 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34296
34297 Clean up the code to support 64-bit addressing in disks and
34298 files. This change is not enough for filesystems yet.
34299
34300 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34301 type of "start" to grub_uint64_t.
34302 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34303 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34304 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34305 convert addresses.
34306
34307 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34308 to grub_disk_addr_t.
34309
34310 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34311 string.
34312
34313 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34314
34315 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34316 to char *.
34317
34318 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34319
34320 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34321
34322 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34323
34324 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34325 to grub_off_t, to detect an error from grub_file_seek.
34326 (grub_multiboot_load_elf32): Likewise.
34327
34328 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
34329 maximum unsigned long value when an overflow is detected.
34330 (grub_strtoull): New function.
34331 (grub_divmod64): Likewise.
34332 (grub_lltoa): use grub_divmod64.
34333
34334 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
34335 grub_disk_addr_t.
34336 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
34337 the pointer to next character. Use grub_strtoull instead of
34338 grub_strtoul.
34339 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
34340 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
34341 respectively.
34342
34343 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
34344 return value is signed.
34345 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
34346 test if OFFSET is less than zero, as OFFSET is unsigned now.
34347
34348 * kern/disk.c (struct grub_disk_cache): Change the type of
34349 "sector" to grub_disk_addr_t.
34350 (grub_disk_cache_get_index): Change the type of SECTOR to
34351 grub_disk_addr_t. Calculate the hash with SECTOR casted to
34352 unsigned after shifting.
34353 (grub_disk_cache_invalidate): Change the type of SECTOR to
34354 grub_disk_addr_t.
34355 (grub_disk_cache_unlock): Likewise.
34356 (grub_disk_cache_store): Likewise.
34357 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
34358 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
34359 grub_disk_addr_t and grub_uint64_t, respectively.
34360 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
34361 body, as the value of OFFSET is tweaked by
34362 grub_disk_check_range. Change the types of START_SECTOR, LEN and
34363 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
34364 respectively.
34365 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
34366 body, as the value of OFFSET is tweaked by
34367 grub_disk_check_range. Change the types of LEN and N to
34368 grub_size_t.
34369
34370 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
34371 and "saved_offset" to grub_off_t.
34372 (test_header): Cast BUF to char *.
34373 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
34374 to char *.
34375 (grub_gzio_read): Change the types of OFFSET and SIZE to
34376 grub_off_t and grub_size_t, respectively.
34377
34378 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
34379 Removed.
34380 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
34381 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
34382 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
34383 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
34384 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
34385
34386 * include/grub/types.h (grub_off_t): Unconditionally set to
34387 grub_uint64_t.
34388 (grub_disk_addr_t): Changed to grub_uint64_t.
34389
34390 * include/grub/partition.h (struct grub_partition): Change the
34391 types of "start", "len" and "offset" to grub_disk_addr_t,
34392 grub_uint64_t and grub_disk_addr_t, respectively.
34393 (grub_partition_get_start): Return grub_disk_addr_t.
34394 (grub_partition_get_len): Return grub_uint64_t.
34395
34396 * include/grub/misc.h (grub_strtoull): New prototype.
34397 (grub_divmod64): Likewise.
34398
34399 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
34400 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
34401 grub_off_t, respectively.
34402 All callers and references changed.
34403
34404 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
34405 grub_size_t in "read".
34406 All callers and references changed.
34407
34408 * include/grub/file.h (struct grub_file): Change the types of
34409 "offset" and "size" to grub_off_t and grub_off_t,
34410 respectively. Change the type of SECTOR to grub_disk_addr_t in
34411 "read_hook".
34412 (grub_file_read): Change the type of LEN to grub_size_t.
34413 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
34414 grub_off_t.
34415 (grub_file_size): Return grub_off_t.
34416 (grub_file_tell): Likewise.
34417 All callers and references changed.
34418
34419 * include/grub/disk.h (struct grub_disk_dev): Change the types of
34420 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
34421 "write".
34422 (struct grub_disk): Change the type of "total_sectors" to
34423 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
34424 "read_hook".
34425 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
34426 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
34427 (grub_disk_write): Likewise.
34428 All callers and references changed.
34429
34430 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
34431 char * for grub_strncmp to silence gcc.
34432 (grub_iso9660_mount): Likewise.
34433 (grub_iso9660_mount): Likewise.
34434 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
34435 return statement.
34436 (grub_iso9660_iterate_dir): Likewise.
34437 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
34438
34439 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
34440 LEN to grub_disk_addr_t and grub_size_t, respectively.
34441
34442 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
34443
34444 * fs/jfs.c (grub_jfs_read_file): Likewise.
34445
34446 * fs/minix.c (grub_jfs_read_file): Likewise.
34447
34448 * fs/sfs.c (grub_jfs_read_file): Likewise.
34449
34450 * fs/ufs.c (grub_jfs_read_file): Likewise.
34451
34452 * fs/xfs.c (grub_jfs_read_file): Likewise.
34453
34454 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
34455 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
34456 respectively.
34457
34458 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
34459 BLKNR to -1 instead of returning GRUB_ERRNO.
34460 (grub_ext2_read_file): Change the types of SECTOR and
34461 LEN to grub_disk_addr_t and grub_size_t, respectively.
34462
34463 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
34464 LEN to grub_disk_addr_t and grub_size_t, respectively.
34465
34466 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
34467 grub_file_read.
34468
34469 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
34470 string. Do not cast SECTOR explicitly.
34471
34472 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
34473 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
34474 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
34475 grub_disk_addr_t and grub_size_t, respectively. If the sector is
34476 over 2TB and LBA mode is not supported, raise an error.
34477 (get_safe_sectors): New function.
34478 (grub_biosdisk_read): Use get_safe_sectors.
34479 (grub_biosdisk_write): Likewise.
34480
34481 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
34482 (grub_efidisk_write): Likewise.
34483
34484 * disk/loopback.c (delete_loopback): Cosmetic changes.
34485 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
34486 correctly.
34487 (grub_loopback_open): Likewise.
34488 (grub_loopback_read): Likewise. Also, change the type of POS to
34489 grub_off_t, and fix the usage of grub_memset.
34490
34491 * commands/i386/pc/play.c: Include grub/machine/time.h.
34492
34493 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
34494 print FILE->SIZE.
34495
34496 * commands/configfile.c: Include grub/env.h.
34497
34498 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
34499 GRUB_ERRNO directly instead. Change the type of POS to
34500 grub_off_t. Follow the coding standard.
34501
34502 * commands/blocklist.c: Include grub/partition.h.
34503 (grub_cmd_blocklist): Return an error if the underlying device is
34504 not a disk. Take the starting sector of a partition into account,
34505 if a partition is used.
34506
34507 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
34508 a length field.
34509 (lba_mode): Support 64-bit addresses.
34510 (chs_mode): Likewise.
34511 (copy_buffer): Adapted to the new offsets of a length field and a
34512 segment field.
34513 (blocklist_default_start): Allocate 64-bit space.
34514
34515 * boot/i386/pc/boot.S (force_lba): Removed.
34516 (boot_drive): Moved to under KERNEL_SECTOR.
34517 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
34518 space.
34519 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
34520 is useless.
34521 (lba_mode): Refactored to support a 64-bit address. More size
34522 optimization.
34523 (setup_sectors): Likewise.
34524
34525 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34526
34527 * DISTLIST: Added include/grub/i386/linux.h. Removed
34528 include/grub/i386/pc/linux.h
34529
34530 * configure.ac (AC_INIT): Bumped to 1.94.
34531
34532 * config.guess: Updated from gnulib.
34533 * config.sub: Likewise.
34534 * install-sh: Likewise.
34535 * mkinstalldirs: Likewise.
34536
34537 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34538
34539 * conf/common.rmk (grub_modules_init.lst): Depended on
34540 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
34541 MODSRCFILES.
34542
34543 * genmk.rb (PModule::rule): Reverted the previous change.
34544
34545 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
34546
34547 * conf/common.rmk (grub_modules_init.lst): Depends on
34548 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
34549 that the target does not exist before producing.
34550 (grub_modules_init.h): Remove the target before generating.
34551 (grub_emu_init.c): Likewise.
34552
34553 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
34554
34555 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
34556
34557 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
34558 for the target-specific tests. Make sure that we also have the
34559 up-to-date target variables for those tests.
34560
34561 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34562
34563 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
34564 (PModule::rule): Likewise.
34565
34566 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
34567
34568 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
34569 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
34570 target-specific flags should be prefixed.
34571 (PModule::rule): Likewise.
34572
34573 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
34574
34575 * configure.ac (CMP): Check if cmp is available explicitly.
34576
34577 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
34578
34579 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
34580 (target_cpu): New variable.
34581 (pkglibdir): Use target_cpu instead of host_cpu.
34582
34583 * util/i386/pc/grub-install.in (host_cpu): Removed.
34584 (target_cpu): New variable.
34585 (pkglibdir): Use target_cpu instead of host_cpu.
34586
34587 * util/genmoddep.c: Removed.
34588
34589 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
34590 instead of GRUB_HOST_SIZEOF_VOID_P.
34591 * kern/dl.c: Likewise.
34592
34593 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
34594 ...
34595 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34596 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34597 (GRUB_TARGET_SIZEOF_LONG): ... this.
34598 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34599 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34600 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34601 to ...
34602 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34603 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34604 (GRUB_TARGET_SIZEOF_LONG): ... this.
34605 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34606 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34607 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
34608 to ...
34609 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
34610 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
34611 (GRUB_TARGET_SIZEOF_LONG): ... this.
34612 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
34613 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
34614
34615 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
34616 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
34617 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
34618 instead of GRUB_HOST_SIZEOF_LONG.
34619 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
34620 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
34621 GRUB_CPU_WORDS_BIGENDIAN.
34622 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
34623 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
34624 grub_host_ssize_t.
34625
34626 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
34627 (genmoddep_SOURCES): Likewise.
34628 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
34629 (genmoddep_SOURCES): Likewise.
34630 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
34631 (genmoddep_SOURCES): Likewise.
34632 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
34633 Likewise.
34634 (genmoddep_SOURCES): Likewise.
34635
34636 * genmoddep.awk: New file.
34637
34638 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
34639 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
34640 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
34641 (PModule::rule): Likewise.
34642 (Program::rule): Likewise.
34643 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
34644 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
34645 respectively.
34646
34647 * configure.ac: Rewritten intensively to use host and target
34648 instead of build and host, respectively.
34649
34650 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
34651 (host_cpu): Removed.
34652 (target_cpu): New variable.
34653 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
34654 (BUILD_CC): Removed.
34655 (BUILD_CFLAGS): Likewise.
34656 (BUILD_CPPFLAGS): Likewise.
34657 (TARGET_CC): New variable.
34658 (TARGET_CFLAGS): Likewise.
34659 (TARGET_CPPFLAGS): Likewise.
34660 (TARGET_LDFLAGS): Likewise.
34661 (AWK): Likewise.
34662 (include): Use target_cpu instead of host_cpu.
34663 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
34664
34665 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
34666
34667 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
34668
34669 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
34670 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
34671 field 'false' to 'exec_on_false'.
34672 (grub_script_create_cmdif): Renamed argument names to reflect above
34673 changes.
34674
34675 * normal/execute.c (grub_script_execute_cmdif): Likewise.
34676
34677 * normal/script.c (grub_script_create_cmdif): Likewise.
34678
34679 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
34680
34681 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
34682 top.
34683 (grub_hfsplus_btree_recptr): Likewise.
34684 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
34685 FILEBLOCK both to pass a block number and store next block
34686 number.
34687 (grub_hfsplus_read_block): Rewritten heavily to support an extent
34688 overflow file correctly. Specify errors appropriately, because
34689 fshelp expects that GRUB_ERRNO is set when fails. Reuse
34690 grub_hfsplus_btree_recptr to get the pointer to a found key.
34691 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
34692 is found.
34693
34694 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
34695 linux.mod.
34696 (_linux_mod_SOURCES): New variable.
34697 (_linux_mod_CFLAGS): Likewise.
34698 (_linux_mod_LDFLAGS): Likewise.
34699 (linux_mod_SOURCES): Likewise.
34700 (linux_mod_CFLAGS): Likewise.
34701 (linux_mod_LDFLAGS): Likewise.
34702
34703 * DISTLIST: Added loader/i386/efi/linux.c,
34704 loader/i386/efi/linux_normal.c and
34705 include/grub/i386/efi/loader.h.
34706
34707 * loader/i386/efi/linux.c: New file.
34708 * loader/i386/efi/linux_normal.c: Likewise.
34709 * include/grub/i386/efi/loader.h: Likewise.
34710
34711 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
34712
34713 * commands/blocklist.c: New file.
34714
34715 * DISTLIST: Added commands/blocklist.c.
34716
34717 * term/efi/console.c (grub_console_highlight_color): Use a lighter
34718 color for the background, and a darker color for the foreground.
34719 (grub_console_checkkey): Return READ_KEY.
34720 (grub_console_cls): Set the background to
34721 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
34722
34723 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
34724
34725 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
34726 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
34727
34728 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
34729 prototype.
34730
34731 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
34732 BG. The spec is wrong again.
34733
34734 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
34735 prototype.
34736 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
34737
34738 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34739 commands/blocklist.c.
34740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34741
34742 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
34743 (blocklist_mod_SOURCES): New variable.
34744 (blocklist_mod_CFLAGS): Likewise.
34745 (blocklist_mod_LDFLAGS): Likewise.
34746
34747 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
34748
34749 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
34750 duplication.
34751 (lba_mode): Use %eax more intensively to reduce the code size.
34752
34753 2006-05-20 Marco Gerards <marco@gnu.org>
34754
34755 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
34756
34757 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
34758 for `menuentry'.
34759 (script): Accept leading newlines.
34760 (newlines): New rule to describe 0 or more newlines.
34761 (commands): Accept `command' with trailing newline. Fixed the
34762 order in which arguments were passed to `grub_script_add_cmd'.
34763 Accept commands separated by newlines.
34764 (function): Changed to accept newlines.
34765 (menuentry) Rewritten.
34766
34767 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
34768 front of the list, instead of to the end.
34769
34770 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
34771
34772 * util/i386/pc/grub-install.in (bindir): New variable.
34773 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
34774 Shaver <lbgwjl@gmail.com>.
34775
34776 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
34777
34778 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
34779 grub/machine/linux.h
34780 * loader/i386/pc/linux.c: Likewise.
34781
34782 * include/grub/i386/pc/linux.h: Moved to ...
34783 * include/grub/i386/linux.h: ... here.
34784
34785 * include/grub/i386/linux.h (struct linux_kernel_params): New
34786 struct.
34787
34788 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
34789
34790 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
34791 checking.
34792 (grub_video_vbe_blit_glyph): Likewise.
34793 (grub_video_vbe_blit_bitmap): Likewise.
34794 (grub_video_vbe_blit_render_target): Likewise.
34795
34796 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
34797
34798 * configure.ac (--with-platform): Properly quote the square
34799 brackets.
34800
34801 2006-05-08 Marco Gerards <marco@gnu.org>
34802
34803 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
34804 this...
34805 (kernel_elf_HEADERS): ...to this. Updated all users.
34806 (grubof_symlist.c): Renamed from this...
34807 (kernel_elf_symlist.c): ...to this. Updated all users.
34808 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34809 (grubof_SOURCES): Renamed from this...
34810 (kernel_elf_SOURCES): ...to this.
34811 (grubof_HEADERS): Renamed from this...
34812 (kernel_elf_HEADERS): ...to this.
34813 (grubof_CFLAGS): Renamed from this...
34814 (kernel_elf_CFLAGS): ...to this.
34815 (grubof_ASFLAGS): Renamed from this...
34816 (kernel_elf_ASFLAGS): ...to this.
34817 (grubof_LDFLAGS): Renamed from this...
34818 (kernel_elf_LDFLAGS): ...to this.
34819
34820 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
34821 this...
34822 (kernel_elf_HEADERS): ...to this. Updated all users.
34823 (grubof_symlist.c): Renamed from this...
34824 (kernel_elf_symlist.c): ...to this. Updated all users.
34825 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
34826 (grubof_SOURCES): Renamed from this...
34827 (kernel_elf_SOURCES): ...to this.
34828 (grubof_HEADERS): Renamed from this...
34829 (kernel_elf_HEADERS): ...to this.
34830 (grubof_CFLAGS): Renamed from this...
34831 (kernel_elf_CFLAGS): ...to this.
34832 (grubof_ASFLAGS): Renamed from this...
34833 (kernel_elf_ASFLAGS): ...to this.
34834 (grubof_LDFLAGS): Renamed from this...
34835 (kernel_elf_LDFLAGS): ...to this.
34836
34837 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
34838 `kernel.elf' instead of `grubof'.
34839
34840 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
34841
34842 Add --with-platform to configure. Use pkglibdir instead of
34843 pkgdatadir. This is reported by Roger Leigh.
34844
34845 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
34846 (host_vendor): Likewise.
34847 (host_os): Likewise.
34848 (pkgdatadir): Likewise.
34849 (platform): New variable.
34850 (pkglibdir): Likewise.
34851 Use PKGLIBDIR instead of PKGDATADIR.
34852
34853 * util/i386/pc/grub-install.in (datadir): Removed.
34854 (host_vendor): Likewise.
34855 (host_os): Likewise.
34856 (pkgdatadir): Likewise.
34857 (platform): New variable.
34858 (pkglibdir): Likewise.
34859 Use PKGLIBDIR instead of PKGDATADIR.
34860
34861 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
34862 instead of GRUB_DATADIR.
34863 (main): Likewise.
34864 * util/i386/pc/grub-mkimage.c (usage): Likewise.
34865 (main): Likewise.
34866 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34867 (main): Likewise.
34868
34869 * configure.ac (--with-platform): New option.
34870 Use PLATFORM instead of HOST_VENDOR to specify a platform.
34871
34872 * Makefile.in: Include a makefile based on PLATFORM instead of
34873 HOST_VENDOR.
34874 (pkgdatadir): Not appended by the machine type.
34875 (pkglibdir): Appended by the machine type.
34876 (host_vendor): Removed.
34877 (platform): New variable.
34878 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
34879 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
34880 (uninstall): Likewise.
34881
34882 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
34883
34884 Use the environment context in the menu. Remove the commands
34885 "default" and "timeout", and use variables instead.
34886
34887 * normal/menu.c: Include grub/env.h.
34888 (print_entry): Cast TITLE to silence gcc.
34889 (get_timeout): New function.
34890 (set_timeout): Likewise.
34891 (get_entry_number): Likewise.
34892 (run_menu): Use a default entry, a fallback entry and a timeout
34893 in the environment variables "default", "fallback" and
34894 "timeout". Also, tweak the default entry if it is not within the
34895 current menu entries.
34896 (grub_menu_run): Use a fallback entry in the environment variable
34897 "fallback".
34898
34899 * normal/main.c (read_config_file): Do not initialize
34900 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
34901 NEWMENU->TIMEOUT.
34902 (grub_normal_execute): Use a data slot to store the menu.
34903
34904 * include/grub/normal.h (struct grub_menu): Removed default_entry,
34905 fallback_entry and timeout.
34906 (struct grub_menu_list): Removed.
34907 (grub_menu_list_t): Likewise.
34908 (struct grub_context): Likewise.
34909 (grub_context_t): Likewise.
34910 (grub_context_get): Likewise.
34911 (grub_context_get_current_menu): Likewise.
34912 (grub_context_push_menu): Likewise.
34913 (grub_context_pop_menu): Likewise.
34914 (grub_default_init): Likewise.
34915 (grub_default_fini): Likewise.
34916 (grub_timeout_init): Likewise.
34917 (grub_timeout_fini): Likewise.
34918
34919 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
34920 and timeout.mod.
34921 (normal_mod_SOURCES): Removed normal/context.c.
34922
34923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
34924 commands/default.c, commands/timeout.c and normal/context.c.
34925 (normal_mod_SOURCES): Removed normal/context.c.
34926
34927 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
34928 commands/timeout.c and normal/context.c.
34929 (normal_mod_SOURCES): Removed normal/context.c.
34930
34931 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
34932 commands/default.c, commands/timeout.c and normal/context.c.
34933 (normal_mod_SOURCES): Removed normal/context.c.
34934
34935 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
34936 timeout.mod.
34937 (default_mod_SOURCES): Removed.
34938 (default_mod_CFLAGS): Likewise.
34939 (default_mod_LDFLAGS): Likewise.
34940 (timeout_mod_SOURCES): Removed.
34941 (timeout_mod_CFLAGS): Likewise.
34942 (timeout_mod_LDFLAGS): Likewise.
34943
34944 * DISTLIST: Removed commands/default.c, commands/timeout.c and
34945 normal/context.c.
34946
34947 * commands/default.c: Removed.
34948 * commands/timeout.c: Likewise.
34949 * normal/context.c: Likewise.
34950
34951 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
34952
34953 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
34954
34955 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
34956
34957 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
34958 "next" to "prev" for readability.
34959 (struct grub_env_sorted_var): New struct.
34960 (grub_env_context): Renamed to ...
34961 (initial_context): ... this.
34962 (grub_env_var_context): Renamed to ...
34963 (current_context): ... this.
34964 (grub_env_find): Look only at CURRENT_CONTEXT.
34965 (grub_env_context_open): Rewritten to copy exported variables from
34966 previous context.
34967 (grub_env_context_close): Rewritten according to the new
34968 scheme. Also, add an assertion to prevent the initial context from
34969 removed.
34970 (grub_env_insert): Removed the code for the sorted list.
34971 (grub_env_remove): Likewise.
34972 (grub_env_export): Simply mark the variable with
34973 GRUB_ENV_VAR_GLOBAL.
34974 (grub_env_set): A cosmetic change for naming consistency.
34975 (grub_env_get): Likewise.
34976 (grub_env_unset): Likewise.
34977 (grub_env_iterate): Rewritten to sort variables within this
34978 function.
34979 (grub_register_variable_hook): Fixed for naming consistency. Call
34980 grub_env_find again, only if NAME is not found at the first time.
34981 (mangle_data_slot_name): New function.
34982 (grub_env_set_data_slot): Likewise.
34983 (grub_env_get_data_slot): Likewise.
34984 (grub_env_unset_data_slot): Likewise.
34985
34986 * include/grub/env.h (grub_env_var_type): New enum.
34987 (GRUB_ENV_VAR_LOCAL): New constant.
34988 (GRUB_ENV_VAR_GLOBAL): Likewise.
34989 (GRUB_ENV_VAR_DATA): Likewise.
34990 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
34991 "type".
34992 (grub_env_set): Replace VAR with NAME for consistency.
34993 (grub_register_variable_hook): Likewise.
34994 (grub_env_export): Specify the name of the argument.
34995 (grub_env_set_data_slot): New prototype.
34996 (grub_env_get_data_slot): Likewise.
34997 (grub_env_unset_data_slot): Likewise.
34998
34999 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35000
35001 Extend the loader so that GRUB can accept a loader which comes
35002 back to GRUB when a loaded image exits. Also, this change adds
35003 support for a chainloader on EFI.
35004
35005 * term/efi/console.c: Include grub/misc.h.
35006 (grub_console_checkkey): Display a scan code on the top for
35007 debugging. This will be removed once the EFI port gets stable.
35008 Correct the scan code mapping.
35009
35010 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35011 allocate memory from larger regions, in order to reduce the number
35012 of allocated regions. Otherwise, the MacOSX loader panics.
35013 (filter_memory_map): Avoid less than 1MB for compatibility with
35014 other loaders.
35015 (add_memory_regions): Allocate from the tail of a region, if
35016 possible, to avoid allocating a region near to 1MB, for the MacOSX
35017 loader.
35018
35019 * kern/efi/init.c (grub_efi_set_prefix): Specify
35020 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35021
35022 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35023 argument IMAGE_HANDLE and specify it to get a loaded image.
35024 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35025 grub_efi_get_loaded_image.
35026 (grub_efi_get_filename): Divide the length by the size of
35027 grub_efi_char16_t.
35028 (grub_efi_get_device_path): New function.
35029 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35030 the length by the size of grub_efi_char16_t for a file path device
35031 path node.
35032
35033 * kern/loader.c (grub_loader_noreturn): New variable.
35034 (grub_loader_set): Accept a new argument NORETURN. Set
35035 GRUB_LOADER_NORETURN to NORETURN.
35036 All callers changed.
35037 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35038 grub_machine_fini.
35039
35040 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35041 prototype.
35042 (grub_efi_get_loaded_image): Take an argument to specify an image
35043 handle.
35044
35045 * include/grub/loader.h (grub_loader_set): Added one more argument
35046 NORETURN.
35047
35048 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35049 instead of grub_efi_open_protocol.
35050 (grub_efidisk_get_device_name): Likewise.
35051 (grub_efidisk_close): Print a newline.
35052 (grub_efidisk_get_device_handle): Fixed to use
35053 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35054 GRUB_EFI_DEVICE_PATH_TYPE.
35055
35056 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35057 * kern/efi/efi.c (device_path_guid): ... here.
35058
35059 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35060 chain.mod.
35061 (kernel_mod_HEADERS): Added efi/disk.h.
35062 (_chain_mod_SOURCES): New variable.
35063 (_chain_mod_CFLAGS): Likewise.
35064 (_chain_mod_LDFLAGS): Likewise.
35065 (chain_mod_SOURCES): Likewise.
35066 (chain_mod_CFLAGS): Likewise.
35067 (chain_mod_LDFLAGS): Likewise.
35068
35069 * DISTLIST: Added include/grub/efi/chainloader.h,
35070 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35071
35072 * include/grub/efi/chainloader.h: New file.
35073 * loader/efi/chainloader.c: Likewise.
35074 * loader/efi/chainloader_normal.c: Likewise.
35075
35076 2006-04-30 Marco Gerards <marco@gnu.org>
35077
35078 * commands/configfile.c (grub_cmd_source): New function.
35079 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35080 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35081
35082 2006-04-30 Marco Gerards <marco@gnu.org>
35083
35084 * normal/execute.c (grub_script_execute_cmd): Change the return
35085 type to `grub_err_t'. Correctly return the error.
35086 (grub_script_execute_cmdline): In case a command line is not a
35087 command or a function, try to interpret it as an assignment.
35088
35089 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35090
35091 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35092 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35093 skip a node whose name is obviously invalid as UTF-16,
35094 i.e. contains a NUL character. Stop the iteration when the last
35095 directory entry is found. Instead of using the return value of
35096 grub_hfsplus_btree_iterate_node, store the value in RET and use
35097 it, because the iterator can be stopped by the last directory
35098 entry.
35099
35100 2006-04-30 Marco Gerards <marco@gnu.org>
35101
35102 * include/grub/env.h (grub_env_export): New prototype. Reported
35103 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35104
35105 2006-04-30 Marco Gerards <marco@gnu.org>
35106
35107 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35108 size of the extents in a catalog file record.
35109
35110 2006-04-29 Marco Gerards <marco@gnu.org>
35111
35112 * commands/configfile.c (grub_cmd_configfile): Execute the
35113 configfile within its own context.
35114
35115 * include/grub/env.h (grub_env_context_open): New prototype.
35116 (grub_env_context_close): Likewise.
35117
35118 * kern/env.c (grub_env): Removed.
35119 (grub_env_sorted): Likewise.
35120 (grub_env_context): New variable.
35121 (grub_env_var_context): Likewise.
35122 (grub_env_find): Search both the active context and the global
35123 context.
35124 (grub_env_context_open): New function.
35125 (grub_env_context_close): Likewise.
35126 (grub_env_insert): Likewise.
35127 (grub_env_remove): Likewise.
35128 (grub_env_export): Likewise.
35129 (grub_env_set): Changed to use helper functions to avoid code
35130 duplication.
35131 (grub_env_iterate): Rewritten so both the current context and the
35132 global context are being used.
35133
35134 * normal/command.c (export_command): New function.
35135 (grub_command_init): Register the `export' function.
35136
35137 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35138
35139 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35140 explicitly to suppress gcc's warnings.
35141 * fs/fat.c (grub_fat_find_dir): Likewise.
35142 (grub_fat_label): Likewise.
35143 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35144 (grub_xfs_mount): Likewise.
35145 (grub_xfs_label): Likewise.
35146 * fs/affs.c (grub_affs_mount): Likewise.
35147 (grub_affs_label): Likewise.
35148 (grub_affs_iterate_dir): Likewise.
35149 * fs/sfs.c (grub_sfs_mount): Likewise.
35150 (grub_sfs_iterate_dir): Likewise.
35151 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35152 * fs/hfs.c (grub_hfs_mount): Likewise.
35153 (grub_hfs_cmp_catkeys): Likewise.
35154 (grub_hfs_find_dir): Likewise.
35155 (grub_hfs_dir): Likewise.
35156 (grub_hfs_label): Likewise.
35157 * fs/jfs.c (grub_jfs_mount): Likewise.
35158 (grub_jfs_opendir): Likewise.
35159 (grub_jfs_getent): Likewise.
35160 (grub_jfs_lookup_symlink): Likewise.
35161 (grub_jfs_label): Likewise.
35162 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35163 (grub_hfsplus_iterate_dir): Likewise.
35164 (grub_hfsplus_btree_iterate_node): Made static.
35165
35166 * util/grub-emu.c (prefix): New variable.
35167 (grub_machine_set_prefix): New function.
35168 (main): Do not set the environment variable "prefix" here. Only
35169 set PREFIX, which is used later by grub_machine_set_prefix.
35170
35171 * include/grub/video.h: Do not include grub/symbol.h.
35172 (grub_video_register): Not exported. This symbol is not defined in
35173 the kernel.
35174 (grub_video_unregister): Likewise.
35175 (grub_video_iterate): Likewise.
35176 (grub_video_setup): Likewise.
35177 (grub_video_restore): Likewise.
35178 (grub_video_get_info): Likewise.
35179 (grub_video_get_blit_format): Likewise.
35180 (grub_video_set_palette): Likewise.
35181 (grub_video_get_palette): Likewise.
35182 (grub_video_set_viewport): Likewise.
35183 (grub_video_get_viewport): Likewise.
35184 (grub_video_map_color): Likewise.
35185 (grub_video_map_rgb): Likewise.
35186 (grub_video_map_rgba): Likewise.
35187 (grub_video_fill_rect): Likewise.
35188 (grub_video_blit_glyph): Likewise.
35189 (grub_video_blit_bitmap): Likewise.
35190 (grub_video_blit_render_target): Likewise.
35191 (grub_video_scroll): Likewise.
35192 (grub_video_swap_buffers): Likewise.
35193 (grub_video_create_render_target): Likewise.
35194 (grub_video_delete_render_target): Likewise.
35195 (grub_video_set_active_render_target): Likewise.
35196
35197 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35198 Undefined.
35199 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35200
35201 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35202 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35203 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35204 instead of $(srcdir)/genkernsyms.sh.
35205
35206 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35207 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35208 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35209 instead of $(srcdir)/genkernsyms.sh.
35210
35211 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35212 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35213 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35214 instead of $(srcdir)/genkernsyms.sh.
35215
35216 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35217 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35218 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35219 instead of $(srcdir)/genkernsyms.sh.
35220
35221 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35222 genkernsyms.sh.
35223
35224 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35225 genkernsyms.sh.
35226 (gensymlist.sh): New target.
35227 (genkernsyms.sh): Likewise.
35228
35229 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35230 genkernsyms.sh.in and gensymlist.sh.in.
35231
35232 * genkernsyms.sh: Removed.
35233 * gensymlist.sh: Likewise.
35234
35235 * genkernsyms.sh.in: New file.
35236 * gensymlist.sh.in: Likewise.
35237
35238 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35239
35240 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35241 clobber "prefix", since we may have already set it manually.
35242
35243 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35244
35245 * kern/misc.c (abort): New alias for grub_abort.
35246
35247 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35248
35249 A new machine-specific function "grub_machine_set_prefix" is
35250 defined. This is called after loading modules, so that a prefix
35251 initialization can use modules. Also, this change adds an
35252 intensive debugging feature for the memory manager via the
35253 configure option "--enable-mm-debug".
35254
35255 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35256 PART.LEN.
35257
35258 * kern/sparc64/ieee1275/init.c (abort): Removed.
35259 (grub_stop): Likewise.
35260 (grub_exit): New function.
35261 (grub_set_prefix): Renamed to ...
35262 (grub_machine_set_prefix): ... this.
35263 (grub_machine_init): Do not call grub_set_prefix.
35264
35265 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35266 (grub_machine_set_prefix): ... this.
35267 (grub_machine_init): Do not call grub_set_prefix.
35268
35269 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35270 (grub_machine_init): Do not set the prefix here.
35271
35272 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35273
35274 * kern/efi/init.c: Include grub/mm.h.
35275 (grub_efi_set_prefix): New function.
35276
35277 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35278 (grub_efi_get_filename): New function.
35279 (grub_print_device_path): Renamed to ...
35280 (grub_efi_print_device_path): ... this.
35281
35282 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35283 [MM_DEBUG] (grub_realloc): Likewise.
35284 [MM_DEBUG] (grub_free): Likewise.
35285 [MM_DEBUG] (grub_memalign): Likewise.
35286 [MM_DEBUG] (grub_mm_debug): New variable.
35287 [MM_DEBUG] (grub_debug_malloc): New function.
35288 [MM_DEBUG] (grub_debug_free): New function.
35289 [MM_DEBUG] (grub_debug_realloc): New function.
35290 [MM_DEBUG] (grub_debug_memalign): New function.
35291
35292 * kern/misc.c (grub_abort): Print a newline to distinguish
35293 the message.
35294
35295 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35296 grub_set_root_dev after loading modules. This is necessary when
35297 setting a prefix depends on modules.
35298
35299 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35300 (grub_efi_print_device_path): ... this.
35301 (grub_efi_get_filename): New prototype.
35302 (grub_efi_set_prefix): Likewise.
35303
35304 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35305 and grub/disk.h.
35306 (grub_efidisk_get_device_handle): New prototype.
35307 (grub_efidisk_get_device_name): Likewise.
35308
35309 * include/grub/mm.h: Include config.h.
35310 (MM_DEBUG): Removed.
35311 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35312 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35313 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35314 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35315 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35316 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35317 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35318 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35319 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35320
35321 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35322
35323 * disk/efi/efidisk.c: Include grub/partition.h.
35324 (iterate_child_devices): New function.
35325 (add_device): First, compare only last device path nodes, so that
35326 devices are sorted by the types.
35327 (grub_efidisk_get_device_handle): New function.
35328 (grub_efidisk_get_device_name): Likewise.
35329
35330 * configure.ac (--enable-mm-debug): New option to enable the
35331 memory manager debugging feature. This makes the binary much
35332 bigger, so is disabled by default.
35333
35334 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
35335
35336 Use grub_abort instead of grub_stop, and grub_exit must be
35337 define in each architecture now. Also, this change adds support
35338 for EFI disks.
35339
35340 * util/i386/pc/grub-probefs.c: Include grub/term.h.
35341 (grub_getkey): New function.
35342 (grub_term_get_current): Likewise.
35343
35344 * util/i386/pc/grub-setup.c: Include grub/term.h.
35345 (grub_getkey): New function.
35346 (grub_term_get_current): Likewise.
35347
35348 * util/misc.c (grub_stop): Renamed to ...
35349 (grub_exit): ... this.
35350
35351 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
35352 (grub_exit): ... this.
35353 (grub_machine_init): Use grub_abort instead of abort.
35354 (grub_stop): Removed.
35355
35356 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
35357 abort.
35358
35359 * kern/i386/pc/startup.S (grub_exit): New function.
35360 (cold_reboot): New label.
35361
35362 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
35363 (grub_efi_init): Call grub_efidisk_init.
35364 (grub_efi_fini): Call grub_efidisk_fini.
35365
35366 * kern/efi/efi.c: Include grub/mm.h.
35367 (grub_efi_console_control_guid): Renamed to ...
35368 (console_control_guid): ... this.
35369 (grub_efi_loaded_image_guid): Renamed to ...
35370 (loaded_image_guid): ... this.
35371 (grub_efi_locate_handle): New function.
35372 (grub_efi_open_protocol): Likewise.
35373 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
35374 GRUB_EFI_CONSOLE_CONTROL_GUID.
35375 (grub_efi_exit): Removed.
35376 (grub_stop): Likewise.
35377 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
35378 (grub_exit): New function.
35379 (grub_print_device_path): Likewise.
35380
35381 * kern/rescue.c (grub_rescue_cmd_exit): New function.
35382 (grub_enter_rescue_mode): Register "exit".
35383
35384 * kern/misc.c (grub_real_dprintf): A cosmetic change.
35385 (grub_abort): New function.
35386
35387 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
35388
35389 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
35390
35391 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
35392
35393 * include/grub/efi/efi.h (grub_efi_exit): Removed.
35394 (grub_print_device_path): New prototype.
35395 (grub_efi_locate_handle): Likewise.
35396 (grub_efi_open_protocol): Likewise.
35397
35398 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
35399 * disk/efi/efidisk.c: Likewise.
35400
35401 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
35402
35403 * include/grub/efi/console_control.h
35404 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
35405
35406 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
35407 last 8 bytes as an array.
35408 (GRUB_EFI_DISK_IO_GUID): New macro.
35409 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
35410 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
35411 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
35412 grub_uint8_t.
35413 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
35414 (struct grub_efi_device_path): Rename the member "sub_type" to
35415 "subtype".
35416 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
35417 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
35418 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
35419 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
35420 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
35421 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
35422 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
35423 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
35424 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
35425 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
35426 (struct grub_efi_pci_device_path): New structure.
35427 (grub_efi_pci_device_path_t): New type.
35428 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
35429 (struct grub_efi_pccard_device_path): New structure.
35430 (grub_efi_pccard_device_path_t): New type.
35431 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
35432 (struct grub_efi_memory_mapped_device_path): New structure.
35433 (grub_efi_memory_mapped_device_path_t): New type.
35434 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
35435 (struct grub_efi_vendor_device_path): New structure.
35436 (grub_efi_vendor_device_path_t): New type.
35437 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
35438 (struct grub_efi_controller_device_path): New structure.
35439 (grub_efi_controller_device_path_t): New type.
35440 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
35441 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
35442 (struct grub_efi_acpi_device_path): New structure.
35443 (grub_efi_acpi_device_path_t): New type.
35444 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
35445 (struct grub_efi_expanded_acpi_device_path): New structure.
35446 (grub_efi_expanded_acpi_device_path_t): New type.
35447 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
35448 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
35449 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
35450 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
35451 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
35452 (struct grub_efi_atapi_device_path): New structure.
35453 (grub_efi_atapi_device_path_t): New type.
35454 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
35455 (struct grub_efi_fibre_channel_device_path): New structure.
35456 (grub_efi_fibre_channel_device_path_t): New type.
35457 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
35458 (struct grub_efi_1394_device_path): New structure.
35459 (grub_efi_1394_device_path_t): New type.
35460 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
35461 (struct grub_efi_usb_device_path): New structure.
35462 (grub_efi_usb_device_path_t): New type.
35463 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
35464 (struct grub_efi_usb_class_device_path): New structure.
35465 (grub_efi_usb_class_device_path_t): New type.
35466 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
35467 (struct grub_efi_i2o_device_path): New structure.
35468 (grub_efi_i2o_device_path_t): New type.
35469 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
35470 (struct grub_efi_mac_address_device_path): New structure.
35471 (grub_efi_mac_address_device_path_t): New type.
35472 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
35473 (struct grub_efi_ipv4_device_path): New structure.
35474 (grub_efi_ipv4_device_path_t): New type.
35475 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
35476 (struct grub_efi_ipv6_device_path): New structure.
35477 (grub_efi_ipv6_device_path_t): New type.
35478 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
35479 (struct grub_efi_infiniband_device_path): New structure.
35480 (grub_efi_infiniband_device_path_t): New type.
35481 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
35482 (struct grub_efi_uart_device_path): New structure.
35483 (grub_efi_uart_device_path_t): New type.
35484 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
35485 (struct grub_efi_vendor_messaging_device_path): New structure.
35486 (grub_efi_vendor_messaging_device_path_t): New type.
35487 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
35488 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
35489 (struct grub_efi_hard_drive_device_path): New structure.
35490 (grub_efi_hard_drive_device_path_t): New type.
35491 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
35492 (struct grub_efi_cdrom_device_path): New structure.
35493 (grub_efi_cdrom_device_path_t): New type.
35494 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
35495 (struct grub_efi_vendor_media_device_path): New structure.
35496 (grub_efi_vendor_media_device_path_t): New type.
35497 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
35498 (struct grub_efi_file_path_device_path): New structure.
35499 (grub_efi_file_path_device_path_t): New type.
35500 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
35501 (struct grub_efi_protocol_device_path): New structure.
35502 (grub_efi_protocol_device_path_t): New type.
35503 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
35504 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
35505 (struct grub_efi_bios_device_path): New structure.
35506 (grub_efi_bios_device_path_t): New type.
35507 (struct grub_efi_disk_io): New structure.
35508 (grub_efi_disk_io_t): New type.
35509 (struct grub_efi_block_io_media): New structure.
35510 (grub_efi_block_io_media_t): New type.
35511 (struct grub_efi_block_io): New structure.
35512 (grub_efi_block_io_t): New type.
35513
35514 * include/grub/misc.h (grub_stop): Removed.
35515 (grub_exit): New prototype.
35516 (grub_abort): Likewise.
35517
35518 * include/grub/disk.h (enum grub_disk_dev_id): Added
35519 GRUB_DISK_DEVICE_EFIDISK_ID.
35520
35521 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
35522 disk/efi/efidisk.c.
35523 (kernel_syms.lst): Remove the target if an error occurs.
35524
35525 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
35526
35527 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
35528 as it was simply too buggy.
35529
35530 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
35531
35532 * kern/misc.c (grub_lltoa): New function.
35533 (grub_vsprintf): Added support for the long long suffix,
35534 i.e. "ll".
35535
35536 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
35537
35538 * Makefile.in (LDFLAGS): Add variable.
35539 (LD): Remove variable.
35540 * configure.ac: Add -m32 to LDFLAGS.
35541 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
35542 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
35543 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
35544 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
35545 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
35546 variables.
35547 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
35548 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
35549 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
35550
35551 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
35552
35553 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
35554 length for unknown glyph.
35555
35556 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35557
35558 Add support for pre-loaded modules into the EFI port.
35559
35560 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
35561 completely. Accept one more argument DIR. The caller has changed.
35562
35563 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
35564
35565 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
35566 (grub_efi_loaded_image_guid): New variable.
35567 (grub_efi_get_loaded_image): New function.
35568 (grub_arch_modules_addr): Likewise.
35569
35570 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
35571 prototype.
35572
35573 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
35574 (struct grub_efi_loaded_image): New structure.
35575 (grub_efi_loaded_image_t): New type.
35576
35577 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
35578
35579 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
35580 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
35581 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
35582
35583 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
35584
35585 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
35586
35587 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
35588
35589 * DISTLIST: Added include/grub/efi/console.h,
35590 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
35591 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35592
35593 * include/grub/efi/console.h: New file.
35594 * include/grub/efi/time.h: Likewise.
35595 * include/grub/i386/efi/kernel.h: Likewise.
35596 * kern/efi/init.c: Likewise.
35597 * kern/efi/mm.c: Likewise.
35598 * term/efi/console.c: Likewise.
35599
35600 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
35601 (grub_stop): Removed.
35602 (grub_get_rtc): Likewise.
35603 (grub_machine_init): Simply call grub_efi_init.
35604 (grub_machine_fini): Call grub_efi_fini.
35605
35606 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
35607 (grub_efi_output_string): Removed.
35608 (grub_efi_stall): New function.
35609 (grub_stop): Likewise.
35610 (grub_get_rtc): Likewise.
35611
35612 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
35613 (grub_efi_stall): New prototype.
35614 (grub_efi_allocate_pages): Likewise.
35615 (grub_efi_free_pages): Likewise.
35616 (grub_efi_get_memory_map): Likewise.
35617 (grub_efi_mm_init): Likewise.
35618 (grub_efi_mm_fini): Likewise.
35619 (grub_efi_init): Likewise.
35620 (grub_efi_fini): Likewise.
35621
35622 * include/grub/i386/efi/time.h: Do not include
35623 grub/symbol.h. Include grub/efi/time.h.
35624 (GRUB_TICKS_PER_SECOND): Removed.
35625 (grub_get_rtc): Likewise.
35626
35627 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
35628 Added padding. The EFI spec is buggy.
35629 (GRUB_EFI_BLACK): New macro.
35630 (GRUB_EFI_BLUE): Likewise.
35631 (GRUB_EFI_GREEN): Likewise.
35632 (GRUB_EFI_CYAN): Likewise.
35633 (GRUB_EFI_RED): Likewise.
35634 (GRUB_EFI_MAGENTA): Likewise.
35635 (GRUB_EFI_BROWN): Likewise.
35636 (GRUB_EFI_LIGHTGRAY): Likewise.
35637 (GRUB_EFI_BRIGHT): Likewise.
35638 (GRUB_EFI_DARKGRAY): Likewise.
35639 (GRUB_EFI_LIGHTBLUE): Likewise.
35640 (GRUB_EFI_LIGHTGREEN): Likewise.
35641 (GRUB_EFI_LIGHTCYAN): Likewise.
35642 (GRUB_EFI_LIGHTRED): Likewise.
35643 (GRUB_EFI_LIGHTMAGENTA): Likewise.
35644 (GRUB_EFI_YELLOW): Likewise.
35645 (GRUB_EFI_WHITE): Likewise.
35646 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
35647 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
35648 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
35649 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
35650 (GRUB_EFI_BACKGROUND_RED): Likewise.
35651 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
35652 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
35653 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
35654 (GRUB_EFI_TEXT_ATTR): Likewise.
35655
35656 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
35657 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
35658 (kernel_mod_HEADERS): Added efi/time.h.
35659
35660 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
35661
35662 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
35663 include/grub/efi/api.h, include/grub/efi/console_control.h,
35664 include/grub/efi/efi.h, include/grub/efi/pe32.h,
35665 include/grub/i386/efi/time.h, kern/efi/efi.c,
35666 kern/i386/efi/init.c, kern/i386/efi/startup.S,
35667 and util/i386/efi/grub-mkimage.c.
35668
35669 * Makefile.in (RMKFILES): Added i386-efi.rmk.
35670
35671 * genmk.rb (PModule#rule): Do not export symbols if
35672 #{prefix}_EXPORTS is set to "no".
35673
35674 * conf/i386-efi.mk: New file.
35675 * conf/i386-efi.rmk: Likewise.
35676 * include/grub/efi/api.h: Likewise.
35677 * include/grub/efi/console_control.h: Likewise.
35678 * include/grub/efi/efi.h: Likewise.
35679 * include/grub/efi/pe32.h: Likewise.
35680 * include/grub/i386/efi/time.h: Likewise.
35681 * kern/efi/efi.c: Likewise.
35682 * kern/i386/efi/init.c: Likewise.
35683 * kern/i386/efi/startup.S: Likewise.
35684 * util/i386/efi/grub-mkimage.c: Likewise.
35685
35686 2006-04-17 Marco Gerards <marco@gnu.org>
35687
35688 * include/grub/script.h: Include <grub/parser.h> and
35689 "grub_script.tab.h".
35690 (struct grub_lexer_param): New struct.
35691 (struct grub_parser_param): Likewise.
35692 (grub_script_create_arglist): Pass the state in an argument.
35693 (grub_script_add_arglist): Likewise.
35694 (grub_script_create_cmdline): Likewise.
35695 (grub_script_create_cmdblock): Likewise.
35696 (grub_script_create_cmdif): Likewise.
35697 (grub_script_create_cmdmenu): Likewise.
35698 (grub_script_add_cmd): Likewise.
35699 (grub_script_arg_add): Likewise.
35700 (grub_script_lexer_ref): Likewise.
35701 (grub_script_lexer_deref): Likewise.
35702 (grub_script_lexer_record_start): Likewise.
35703 (grub_script_lexer_record_stop): Likewise.
35704 (grub_script_mem_record): Likewise.
35705 (grub_script_mem_record_stop): Likewise.
35706 (grub_script_malloc): Likewise.
35707 (grub_script_yylex): Likewise.
35708 (grub_script_yyparse): Likewise.
35709 (grub_script_yyerror): Likewise.
35710 (grub_script_yylex): Likewise.
35711 (grub_script_lexer_init): Return the state.
35712
35713 * normal/lexer.c (grub_script_lexer_state): Removed variable.
35714 (grub_script_lexer_done): Likewise.
35715 (grub_script_lexer_getline): Likewise.
35716 (grub_script_lexer_refs): Likewise.
35717 (script): Likewise.
35718 (newscript): Likewise.
35719 (record): Likewise.
35720 (recording): Likewise.
35721 (recordpos): Likewise.
35722 (recordlen): Likewise.
35723 (grub_script_lexer_init): Return the state instead of setting
35724 global variables.
35725 (grub_script_lexer_ref): Use the newly added argument for state
35726 instead of globals.
35727 (grub_script_lexer_deref): Likewise.
35728 (grub_script_lexer_record_start): Likewise.
35729 (grub_script_lexer_record_stop): Likewise.
35730 (recordchar): Likewise.
35731 (nextchar): Likewise.
35732 (grub_script_yylex2): Likewise.
35733 (grub_script_yylex): Likewise.
35734 (grub_script_yyerror): Likewise.
35735
35736 * normal/parser.y (func_mem): Removed variable.
35737 (menu_entry): Likewise.
35738 (err): Likewise.
35739 (%lex-param): New parser option.
35740 (%parse-param): Likewise.
35741 (script): Always return the AST.
35742 (argument): Pass the state around.
35743 (arguments): Likewise.
35744 (grubcmd): Likewise.
35745 (commands): Likewise.
35746 (function): Likewise.
35747 (menuentry): Likewise.
35748 (if_statement): Likewise.
35749 (if): Likewise.
35750
35751 * normal/script.c (grub_script_memused): Removed variable.
35752 (grub_script_parsed): Likewise.
35753 (grub_script_malloc): Added a state argument. Use that instead of
35754 global variables.
35755 (grub_script_mem_record): Likewise.
35756 (grub_script_mem_record_stop): Likewise.
35757 (grub_script_arg_add): Likewise.
35758 (grub_script_add_arglist): Likewise.
35759 (grub_script_create_cmdline): Likewise.
35760 (grub_script_create_cmdif): Likewise.
35761 (grub_script_create_cmdmenu): Likewise.
35762 (grub_script_add_cmd): Likewise.
35763 (grub_script_parse): Setup the state before calling the parser.
35764
35765 2006-04-16 Marco Gerards <marco@gnu.org>
35766
35767 * normal/command.c (grub_command_init): Remove the title command.
35768
35769 * normal/lexer.c (grub_script_yylex): Renamed from this...
35770 (grub_script_yylex2): ... to this.
35771 (grub_script_yylex): New function. Temporary
35772 introduced to filter some tokens.
35773 (grub_script_yyerror): Print a newline.
35774
35775 * normal/main.c (read_config_file): Output information about the
35776 lines that contain errors. Wait for a key after all lines have
35777 been processed. Don't return an empty menu.
35778
35779 * normal/parser.y (func_mem): Don't initialize.
35780 (menu_entry): Likewise.
35781 (err): New variable.
35782 (script): Don't return anything when an error was encountered.
35783 (ws, returns): Removed rules.
35784 (argument): Disabled concatenated variable support.
35785 (arguments): Remove explicit separators.
35786 (grubcmd): Likewise.
35787 (function): Likewise.
35788 (menuentry): Likewise.
35789 (if): Likewise.
35790 (commands): Likewise. Add error handling.
35791
35792 * normal/script.c (grub_script_create_cmdline): If
35793 `grub_script_parsed' is 0, assume the parser encountered an error.
35794
35795 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
35796
35797 * configure.ac: Add support for EFI. Fix the typo
35798 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
35799
35800 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35801
35802 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
35803 foreign multibyte characters should be shown correctly.
35804
35805 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
35806
35807 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
35808 calculation.
35809 (read_config_file): Made it to close file before returning.
35810
35811 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
35812
35813 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
35814 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
35815 video/i386/pc/vbefill.c.
35816
35817 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
35818 video/i386/pc/vbefill.c.
35819
35820 * include/grub/video.h (grub_video_blit_format): New enum.
35821 (grub_video_mode_info): Added new member blit_format.
35822 (grub_video_get_blit_format): New function prototype.
35823
35824 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
35825 function prototype.
35826 (grub_video_vbe_map_rgb): Likewise.
35827 (grub_video_vbe_unmap_color): Likewise.
35828
35829 * include/grub/i386/pc/vbeblit.h: New file.
35830
35831 * include/grub/i386/pc/vbefill.h: New file.
35832
35833 * video/video.c (grub_video_get_blit_format): New function.
35834 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
35835 (grub_video_vbe_map_rgb): Likewise.
35836 (grub_video_vbe_unmap_color): Likewise.
35837
35838 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
35839 optimized fills.
35840 (grub_video_vbe_blit_render_target): Changed to use more optimized
35841 blits.
35842 (grub_video_vbe_setup): Added detection for optimized settings.
35843 (grub_video_vbe_create_render_target): Likewise.
35844
35845 * video/i386/pc/vbeblit.c: New file.
35846
35847 * video/i386/pc/vbefill.c: New file.
35848
35849 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
35850
35851 * font/manager.c (grub_font_get_glyph): Removed font fixup from
35852 here...
35853
35854 * util/unifont2pff.rb: ... and moved it to here. Improved argument
35855 parsing to support both hex and dec ranges. If filename was missing
35856 show usage information.
35857
35858 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
35859
35860 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
35861 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
35862
35863 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
35864 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
35865 (video_mod_SOURCES): Added.
35866 (video_mod_CFLAGS): Likewise.
35867 (video_mod_LDFLAGS): Likewise.
35868 (gfxterm_mod_SOURCES): Likewise.
35869 (gfxterm_mod_CFLAGS): Likewise.
35870 (gfxterm_mod_LDFLAGS): Likewise.
35871 (videotest_mod_SOURCES): Likewise.
35872 (videotest_mod_CFLAGS): Likewise.
35873 (videotest_mod_LDFLAGS): Likewise.
35874 (vesafb_mod_SOURCES): Removed.
35875 (vesafb_mod_CFLAGS): Likewise.
35876 (vesafb_mod_LDFLAGS): Likewise.
35877 (vga_mod_SOURCES): Likewise.
35878 (vga_mod_CFLAGS): Likewise.
35879 (vga_mod_LDFLAGS): Likewise.
35880
35881 * commands/videotest.c: New file.
35882
35883 * font/manager.c (fill_with_default_glyph): Modified to use
35884 grub_font_glyph.
35885 (grub_font_get_glyph): Likewise.
35886 (fontmanager): Renamed from this...
35887 (font_manager): ... to this.
35888
35889 * include/grub/font.h (grub_font_glyph): Added new structure.
35890 (grub_font_get_glyph): Modified to use grub_font_glyph.
35891
35892 * include/grub/misc.h (grub_abs): Added as inline function.
35893
35894 * include/grub/video.h: New file.
35895
35896 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
35897 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
35898 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
35899 (grub_vbe_get_controller_info): Renamed from this...
35900 (grub_vbe_bios_get_controller_info): ... to this.
35901 (grub_vbe_get_mode_info): Renamed from this...
35902 (grub_vbe_bios_get_mode_info): ... to this.
35903 (grub_vbe_set_mode): Renamed from this...
35904 (grub_vbe_bios_set_mode): ... to this.
35905 (grub_vbe_get_mode): Renamed from this...
35906 (grub_vbe_bios_get_mode): ... to this.
35907 (grub_vbe_set_memory_window): Renamed from this...
35908 (grub_vbe_bios_set_memory_window): ... to this.
35909 (grub_vbe_get_memory_window): Renamed from this...
35910 (grub_vbe_bios_get_memory_window): ... to this.
35911 (grub_vbe_set_scanline_length): Renamed from this...
35912 (grub_vbe_set_scanline_length): ... to this.
35913 (grub_vbe_get_scanline_length): Renamed from this...
35914 (grub_vbe_bios_get_scanline_length): ... to this.
35915 (grub_vbe_set_display_start): Renamed from this...
35916 (grub_vbe_bios_set_display_start): ... to this.
35917 (grub_vbe_get_display_start): Renamed from this...
35918 (grub_vbe_bios_get_display_start): ... to this.
35919 (grub_vbe_set_palette_data): Renamed from this...
35920 (grub_vbe_bios_set_palette_data): ... to this.
35921 (grub_vbe_set_pixel_rgb): Removed.
35922 (grub_vbe_set_pixel_index): Likewise.
35923
35924 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
35925 from this...
35926 (grub_vbe_bios_get_controller_info): ... to this.
35927 (grub_vbe_get_mode_info): Renamed from this...
35928 (grub_vbe_bios_get_mode_info): ... to this.
35929 (grub_vbe_set_mode): Renamed from this...
35930 (grub_vbe_bios_set_mode): ... to this.
35931 (grub_vbe_get_mode): Renamed from this...
35932 (grub_vbe_bios_get_mode): ... to this.
35933 (grub_vbe_set_memory_window): Renamed from this...
35934 (grub_vbe_bios_set_memory_window): ... to this.
35935 (grub_vbe_get_memory_window): Renamed from this...
35936 (grub_vbe_bios_get_memory_window): ... to this.
35937 (grub_vbe_set_scanline_length): Renamed from this...
35938 (grub_vbe_set_scanline_length): ... to this.
35939 (grub_vbe_get_scanline_length): Renamed from this...
35940 (grub_vbe_bios_get_scanline_length): ... to this.
35941 (grub_vbe_set_display_start): Renamed from this...
35942 (grub_vbe_bios_set_display_start): ... to this.
35943 (grub_vbe_get_display_start): Renamed from this...
35944 (grub_vbe_bios_get_display_start): ... to this.
35945 (grub_vbe_set_palette_data): Renamed from this...
35946 (grub_vbe_bios_set_palette_data): ... to this.
35947 (grub_vbe_bios_get_controller_info): Fixed problem with registers
35948 getting corrupted after calling it. Added more pushes and pops.
35949 (grub_vbe_bios_set_mode): Likewise.
35950 (grub_vbe_bios_get_mode): Likewise.
35951 (grub_vbe_bios_get_memory_window): Likewise.
35952 (grub_vbe_bios_set_scanline_length): Likewise.
35953 (grub_vbe_bios_get_scanline_length): Likewise.
35954 (grub_vbe_bios_get_display_start): Likewise.
35955 (grub_vbe_bios_set_palette_data): Likewise.
35956
35957 * normal/cmdline.c (cl_set_pos): Refresh the screen.
35958 (cl_insert): Likewise.
35959 (cl_delete): Likewise.
35960
35961 * term/gfxterm.c: New file.
35962
35963 * term/i386/pc/vesafb.c: Removed file.
35964
35965 * video/video.c: New file.
35966
35967 * video/i386/pc/vbe.c (real2pm): Added new function.
35968 (grub_video_vbe_draw_pixel): Likewise.
35969 (grub_video_vbe_get_video_ptr): Likewise.
35970 (grub_video_vbe_get_pixel): Likewise
35971 (grub_video_vbe_init): Likewise.
35972 (grub_video_vbe_fini): Likewise.
35973 (grub_video_vbe_setup): Likewise.
35974 (grub_video_vbe_get_info): Likewise.
35975 (grub_video_vbe_set_palette): Likewise.
35976 (grub_video_vbe_get_palette): Likewise.
35977 (grub_video_vbe_set_viewport): Likewise.
35978 (grub_video_vbe_get_viewport): Likewise.
35979 (grub_video_vbe_map_color): Likewise.
35980 (grub_video_vbe_map_rgb): Likewise.
35981 (grub_video_vbe_map_rgba): Likewise.
35982 (grub_video_vbe_unmap_color): Likewise.
35983 (grub_video_vbe_fill_rect): Likewise.
35984 (grub_video_vbe_blit_glyph): Likewise.
35985 (grub_video_vbe_blit_bitmap): Likewise.
35986 (grub_video_vbe_blit_render_target): Likewise.
35987 (grub_video_vbe_scroll): Likewise.
35988 (grub_video_vbe_swap_buffers): Likewise.
35989 (grub_video_vbe_create_render_target): Likewise.
35990 (grub_video_vbe_delete_render_target): Likewise.
35991 (grub_video_vbe_set_active_render_target): Likewise.
35992 (grub_vbe_set_pixel_rgb): Remove function.
35993 (grub_vbe_set_pixel_index): Likewise.
35994 (index_color_mode): Remove static variable.
35995 (active_mode): Likewise.
35996 (framebuffer): Likewise.
35997 (bytes_per_scan_line): Likewise.
35998 (grub_video_vbe_adapter): Added new static variable.
35999 (framebuffer): Likewise.
36000 (render_target): Likewise.
36001 (initial_mode): Likewise.
36002 (mode_in_use): Likewise.
36003 (mode_list): Likewise.
36004
36005 2006-03-10 Marco Gerards <marco@gnu.org>
36006
36007 * configure.ac (AC_INIT): Bumped to 1.93.
36008
36009 * DISTLIST: Added `include/grub/hfs.h'.
36010
36011 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36012
36013 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36014 18H, which might help the BIOS falling back to next boot media.
36015
36016 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36017
36018 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36019 Poe Chen <poe.poechen@gmail.com>.
36020
36021 2006-01-17 Marco Gerards <marco@gnu.org>
36022
36023 * include/grub/normal.h: Include <grub/script.h>.
36024 (grub_command_list): Removed struct.
36025 (grub_command_list_t): Removed type.
36026 (grub_menu_entry): Remove members `num' and `command_list'. Add
36027 members `commands' and `sourcecode'.
36028 * include/grub/script.h: Add inclusion guards.
36029 (grub_script_cmd_menuentry): New struct.
36030 (grub_script_execute_menuentry): New prototype.
36031 (grub_script_lexer_record_start): Likewise.
36032 (grub_script_lexer_record_stop): Likewise.
36033 * normal/execute.c (grub_script_execute_menuentry): New function.
36034 * normal/lexer.c (record, recording, recordpos, recordlen): New
36035 variables.
36036 (grub_script_lexer_record_start): New function.
36037 (grub_script_lexer_record_stop): Likewise.
36038 (recordchar): Likewise.
36039 (nextchar): Likewise.
36040 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36041 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36042 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36043 (current_menu): New variable.
36044 (free_menu): Mainly rewritten.
36045 (grub_normal_menu_addentry): New function.
36046 (read_config_file): Rewritten.
36047 * normal/menu.c (run_menu_entry): Mainly rewritten.
36048 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36049 the menu entry.
36050 (run): Mainly rewritten.
36051 * normal/parser.y (menu_entry): New variable.
36052 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36053 (menuentry): New rule.
36054 (command): Add `menuentry'.
36055 (if_statement): Allow additional returns before `fi'.
36056 * normal/script.c (grub_script_create_cmdmenu): New function.
36057
36058 2006-01-03 Marco Gerards <marco@gnu.org>
36059
36060 * INSTALL: GNU Bison is required.
36061 * configure.ac: Rewritten the test to detect Bison.
36062 * Makefile.in (YACC): New variable. Reported by Xun Sun
36063 <xun.sun.cn@gmail.com>.
36064
36065 2006-01-03 Marco Gerards <marco@gnu.org>
36066
36067 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36068 the HFS+ filesystem to filesystem blocks.
36069 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36070 GCC warning is silenced.
36071
36072 2006-01-03 Marco Gerards <marco@gnu.org>
36073
36074 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36075 read from disk from big endian to host byte order.
36076
36077 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36078
36079 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36080 documentation.
36081 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36082 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36083 embedded HFS+ filesystem.
36084 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36085 (grub_hfs_sblock): Move from here...
36086 * include/grub/hfs.h: To here... New file.
36087 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36088 documentation.
36089 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36090 New macros.
36091 (grub_hfsplus_volheader): Change type of member `magic' to
36092 `grub_uint16_t'.
36093 (grub_hfsplus_data): Add new member `embedded_offset'.
36094 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36095 returned block.
36096 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36097 Calculate the offset.
36098
36099 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36100
36101 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36102 Removed.
36103 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36104
36105 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36106
36107 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36108 ENV->NAME is NULL after allocating ENV->VALUE.
36109
36110 2005-12-25 Marco Gerards <marco@gnu.org>
36111
36112 * kern/env.c (grub_env_set): Rewritten the error handling code.
36113
36114 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36115
36116 * geninit.sh: Made more robust, and more portable.
36117
36118 2005-12-25 Marco Gerards <marco@gnu.org>
36119
36120 Add support for Apple HFS+ filesystems.
36121
36122 * fs/hfsplus.c: New file.
36123
36124 * DISTLIST: Added `fs/hfsplus.c'.
36125
36126 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36127 (hfsplus_mod_SOURCES): New variable.
36128 (hfsplus_mod_CFLAGS): Likewise.
36129 (hfsplus_mod_LDFLAGS): Likewise.
36130 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36131 (grub_setup_SOURCES): Likewise.
36132 (grub_mkdevicemap_SOURCES): Likewise.
36133 (grub_emu_SOURCES): Likewise.
36134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36135
36136 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36137
36138 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36139
36140 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36141
36142 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36143 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36144 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36145 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36146 normal/lexer.c, normal/parser.y, normal/script.c, and
36147 partmap/gpt.c.
36148 Removed kern/sparc64/cache.c.
36149
36150 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36151 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36152 grub_emu_init.c.
36153
36154 * configure.ac (AC_INIT): Bumped to 1.92.
36155
36156 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36157
36158 * kern/err.c (grub_error_push): Added new function to support error
36159 stacks.
36160 (grub_error_pop): Likewise.
36161 (grub_error_stack_items): New local variable to support error stacks.
36162 (grub_error_stack_pos): Likewise.
36163 (grub_error_stack_assert): Likewise.
36164 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36165 stack depth.
36166 (grub_print_error): Added support to print errors from error stack.
36167
36168 * include/grub/err.h (grub_error_push): Added function prototype.
36169 (grub_error_pop): Likewise.
36170
36171 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36172
36173 * configure.ac: Accept `powerpc64' as host_cpu.
36174 (amd64): Rename to `biarch32'.
36175
36176 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36177 non-cacheline-aligned addresses.
36178
36179 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36180 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36181 if `size' is non-zero.
36182
36183 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36184
36185 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36186 and `cd' to make sure the filename is not prefixed with a
36187 directory name.
36188 (pkgdata_MODULES): Add `gpt.mod'.
36189 (gpt_mod_SOURCES): New variable.
36190 (gpt_mod_CFLAGS): Likewise.
36191 (gpt_mod_LDFLAGS): Likewise.
36192
36193 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36194
36195 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36196 New macro.
36197
36198 * partmap/gpt.c: New file.
36199
36200 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36201 GPT partition map is detected.
36202
36203 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36204
36205 * commands/i386/pc/play.c: New file.
36206 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36207 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36208 macros.
36209
36210 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36211
36212 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36213 ((unused))' to silence gcc warning.
36214
36215 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36216
36217 * configure.ac: Correct `AC_PROG_YACC' test.
36218
36219 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36220
36221 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36222 check before installing files.
36223
36224 2005-11-22 Mike Small <smallm@panix.com>
36225
36226 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36227 number regex so multidigit numbers are recognized correctly.
36228
36229 2005-11-22 Mike Small <smallm@panix.com>
36230
36231 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36232 debugging message before attempting to claim memory.
36233 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36234 multiple addresses in case of failure.
36235
36236 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36237
36238 * term/tparm.c (get_space): Remove empty `if' statement.
36239
36240 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36241
36242 * kern/parser.c (check_varstate): Rename `state' to 's'.
36243
36244 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36245
36246 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36247 variable definitions to the beginning of each function. Sort stack
36248 variables by size.
36249 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36250 `buf' argument to `char *'.
36251
36252 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36253
36254 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36255 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36256 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36257 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36258 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36259 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36260 configfile.mod, search.mod, gzio.mod and test.mod.
36261 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36262 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36263 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36264 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36265 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36266 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36267 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36268 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36269 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36270 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36271 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36272 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36273 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36274 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36275 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36276 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36277 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36278 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36279 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36280 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36281 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36282 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36283 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36284
36285 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36286 `grep --include'.
36287 (pkgdata_MODULES): Add test.mod.
36288
36289 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36290
36291 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36292 appending to variables with "+=".
36293 (PModule): Use full pathname to generate *.lst filenames.
36294
36295 * Makefile.in: Fixed list rules moved from genmk.rb.
36296 (.DELETE_ON_ERROR): New special target.
36297 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36298
36299 * conf/i386-pc.rmk: Include conf/common.mk.
36300 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36301 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36302 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36303 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36304 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36305 configfile.mod, search.mod, gzio.mod and test.mod.
36306 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36307 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36308 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36309 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36310 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36311 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36312 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36313 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36314 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36315 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36316 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36317 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36318 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36319 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36320 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36321 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36322 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36323 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36324 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36325 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36326 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36327 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36328 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
36329 here...
36330 * conf/common.rmk: ... to here. New file.
36331
36332 * conf/common.mk: New file.
36333
36334 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
36335
36336 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
36337 (grub_script.tab.c): ... here.
36338
36339 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
36340 (grub_script.tab.c): ... here.
36341
36342 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
36343 (grub_script.tab.c): ... here.
36344
36345 * normal/command.c (grub_command_find): Fixed a memory leak of
36346 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
36347
36348 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36349
36350 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
36351 "@" which marks the start of a comment on ARM.
36352 (VARIABLE): Likewise.
36353
36354 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36355
36356 Add support for Linux/ADFS partition tables.
36357
36358 * partmap/acorn.c: New file.
36359
36360 * include/grub/acorn_filecore.h: Likewise.
36361
36362 * DISTLIST: Added `partmap/acorn.c' and
36363 `include/grub/acorn_filecore.h'.
36364
36365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36366 `partmap/acorn.c'.
36367 (pkgdata_MODULES): Add `acorn.mod'.
36368 (acorn_mod_SOURCES): New variable.
36369 (acorn_mod_CFLAGS): Likewise.
36370
36371 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36372 `partmap/acorn.c'.
36373 (pkgdata_MODULES): Add `acorn.mod'.
36374 (acorn_mod_SOURCES): New variable.
36375 (acorn_mod_CFLAGS): Likewise.
36376
36377 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
36378 (pkgdata_MODULES): Add `acorn.mod'.
36379 (acorn_mod_SOURCES): New variable.
36380 (acorn_mod_CFLAGS): Likewise.
36381 (acorn_mod_LDFLAGS): Likewise.
36382
36383 * include/types.h (grub_disk_addr_t): New typedef.
36384
36385 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
36386
36387 * geninit.sh: New file.
36388
36389 * geninitheader.sh: Likewise.
36390
36391 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
36392 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
36393 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
36394 * commands/configfile.c (grub_configfile_init)
36395 (grub_configfile_fini): Likewise.
36396 * commands/default.c (grub_default_init, grub_default_fini):
36397 Likewise.
36398 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
36399 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
36400 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
36401 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
36402 Likewise.
36403 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
36404 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
36405 Likewise.
36406 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
36407 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
36408 Likewise.
36409 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
36410 Likewise.
36411 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
36412 Likewise.
36413 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
36414 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
36415 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
36416 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
36417 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
36418 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
36419 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
36420 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
36421 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
36422 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
36423 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
36424 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
36425 * partmap/amiga.c (grub_amiga_partition_map_init)
36426 (grub_amiga_partition_map_fini): Likewise.
36427 * partmap/apple.c (grub_apple_partition_map_init)
36428 (grub_apple_partition_map_fini): Likewise.
36429 * partmap/pc.c (grub_pc_partition_map_init)
36430 (grub_pc_partition_map_fini): Likewise.
36431 * partmap/sun.c (grub_sun_partition_map_init,
36432 grub_sun_partition_map_fini): Likewise.
36433 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
36434 Likewise.
36435
36436 * util/grub-emu.c: Include <grub_modules_init.h>.
36437 (main): Don't initialize and de-initialize any modules directly,
36438 use `grub_init_all' and `grub_fini_all' instead.
36439
36440 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
36441 `grub_vesafb_mod_init'.
36442 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
36443 all users.
36444 * term/i386/pc/vga.c (grub_vga_init): Renamed to
36445 `grub_vga_mod_init'. Updated all users.
36446 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
36447
36448 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
36449 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
36450 rules.
36451
36452 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
36453 Generate a function to initialize the module in utilities.
36454 Updated all callers.
36455 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
36456 initialize the module in utilities. Updated all callers.
36457
36458 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36459
36460 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
36461 escape sequence and a literal ^L to clear the screen.
36462
36463 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
36464 when returning from Open Firmware.
36465
36466 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
36467
36468 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
36469 (grub_ofconsole_height): Likewise.
36470 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
36471 manually insert a '\n'.
36472 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
36473 `grub_ofconsole_height'. Return early if these are already set.
36474
36475 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
36476
36477 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
36478 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
36479 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
36480 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
36481 and `normal/script.c'.
36482 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36483 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36484 (test_mod_SOURCES): New variable.
36485 (test_mod_CFLAGS): Likewise.
36486 (test_mod_LDFLAGS): Likewise.
36487 (pkgdata_MODULES): Add `test.mod'.
36488 (grub_script.tab.c): New rule.
36489 (grub_script.tab.h): Likewise.
36490
36491 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
36492
36493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
36494 `commands/test.c', `normal/execute.c', `normal/lexer.c',
36495 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36496 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36497 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36498 (test_mod_SOURCES): New variable.
36499 (test_mod_CFLAGS): Likewise.
36500 (pkgdata_MODULES): Add `test.mod'.
36501 (grub_script.tab.c): New rule.
36502 (grub_script.tab.h): Likewise.
36503
36504 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
36505
36506 Add initial scripting support.
36507
36508 * commands/test.c: New file.
36509 * include/grub/script.h: Likewise.
36510 * normal/execute.c: Likewise.
36511 * normal/function.c: Likewise.
36512 * normal/lexer.c: Likewise.
36513 * normal/parser.y: Likewise.
36514 * normal/script.c: Likewise.
36515
36516 * configure.ac: Add `AC_PROG_YACC' test.
36517
36518 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
36519 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
36520 `normal/function.c' and `normal/script.c'.
36521 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
36522 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
36523 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
36524 variables.
36525 (pkgdata_MODULES): Add `test.mod'.
36526 (grub_script.tab.c): New rule.
36527 (grub_script.tab.h): Likewise.
36528
36529 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
36530
36531 * include/grub/normal.h (grub_test_init): New prototype.
36532 (grub_test_fini): Likewise.
36533
36534 * normal/command.c: Include <grub/script.h>.
36535 (grub_command_execute): Rewritten.
36536
36537 * util/grub-emu.c (main): Call `grub_test_init' and
36538 `grub_test_fini'.
36539
36540 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36541
36542 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
36543 to 0.
36544 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
36545 there are no pending characters.
36546
36547 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36548
36549 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
36550 `grub_strndup' to drop device arguments. Replace unnecessary
36551 `grub_strndup' with `grub_strdup'.
36552
36553 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
36554
36555 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
36556 `debug' environment variable has been set.
36557
36558 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
36559
36560 * Makefile.in (install-local): Use $(DATA).
36561 (uninstall): Likewise.
36562 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
36563 (sbin_UTILITIES): ... to here.
36564 (sbin_SCRIPTS): New variable.
36565 (grub_install_SOURCES): New variable.
36566 * util/powerpc/ieee1275/grub-install.in: New file.
36567 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
36568 variable.
36569 (add_segments): Call `grub_util_get_path'.
36570
36571 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36572
36573 From Timothy Baldwin:
36574 * commands/ls.c (grub_ls_list_files): Close FILE with
36575 grub_file_close.
36576 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
36577
36578 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
36579
36580 * include/grub/parser.h: New file.
36581
36582 * kern/parser.c: Likewise.
36583
36584 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
36585 (grub_setup_SOURCES): Likewise.
36586 (grub_probefs_SOURCES): Likewise.
36587 (grub_emu_SOURCES): Likewise.
36588 (kernel_img_HEADERS): Add `parser.h'.
36589
36590 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36591 (grub_emu_SOURCES): Add `kern/parser.c'.
36592 (grubof_SOURCES): Likewise.
36593
36594 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
36595 (grubof_SOURCES): Add `kern/parser.c'.
36596
36597 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
36598
36599 * kern/misc.c (grub_split_cmdline): Removed function.
36600
36601 * kern/rescue.c: Include <grub/parser.h>.
36602 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
36603 of `grub_split_cmdline'.
36604
36605 * normal/command.c: Include <grub/parser.h>.
36606 (grub_command_execute): Use `grub_parser_split_cmdline' instead
36607 of `grub_split_cmdline'.
36608
36609 * normal/completion.c: Include <grub/parser.h>.
36610 (cmdline_state): New variable.
36611 (iterate_dir): End the filename with a quote depending on the
36612 command line state.
36613 (get_state): new function.
36614 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
36615 split the arguments and determine the current argument. When the
36616 argument string is not quoted, escape all spaces.
36617
36618 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36619
36620 * normal/sparc64/setjmp.S: New file.
36621
36622 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36623
36624 * include/grub/sparc64/libgcc.h: New file.
36625 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
36626 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
36627 normal/sparc64/setjmp.c.
36628
36629 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
36630
36631 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
36632 * kern/sparc64/cache.S: New file.
36633 * kern/sparc64/cache.c: Removed.
36634 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
36635 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
36636 -mtune=ultrasparc.
36637 (COMMON_LDFLAGS): Add -melf64_sparc.
36638 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
36639 (grubof_SOURCES): Use cache.S instead of cache.c.
36640 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
36641 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
36642 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
36643 commented though.
36644 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
36645 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
36646 (linux_mod_CFLAGS): Commented out.
36647 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
36648 out because module isn't built.
36649 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
36650 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
36651 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
36652 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
36653 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
36654 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36655 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36656 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
36657 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
36658 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
36659 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36660 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36661 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
36662 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
36663
36664 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
36665
36666 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
36667 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
36668 longer, because HFS should not be used on PC.
36669
36670 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36671
36672 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
36673 consistently within the loop.
36674
36675 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
36676
36677 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
36678 directory can not be read.
36679
36680 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36681
36682 * configure.ac (AC_INIT): Increase the version number to 1.91.
36683
36684 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
36685 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
36686 term/i386/pc/serial.c.
36687
36688 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36689
36690 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
36691 file size must be permitted.
36692
36693 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
36694 between %ah and %al.
36695
36696 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36697
36698 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
36699 grub_uint64_t.
36700 Call the hook with a NUL-terminated filename.
36701 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
36702 grub_cpu_to_be32.
36703
36704 * kern/term.c (cursor_state): New variable.
36705 (grub_term_set_current): Reset the cursor state on a new
36706 terminal.
36707 (grub_setcursor): Rewritten to use CURSOR_STATE.
36708 (grub_getcursor): New function.
36709
36710 * include/grub/term.h (grub_getcursor): New prototype.
36711
36712 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
36713 integers on ARM. Reported by Timothy Baldwin
36714 <T.E.Baldwin99@members.leeds.ac.uk>.
36715
36716 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
36717
36718 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
36719 allocated.
36720 (grub_sfs_dir): Likewise.
36721
36722 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
36723
36724 Add support for the SFS filesystem.
36725
36726 * fs/sfs.c: New file.
36727
36728 * DISTLIST: Added `fs/sfs.c'.
36729
36730 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
36731 (grub_probefs_SOURCES): Likewise.
36732 (grub_emu_SOURCES): Likewise.
36733 (pkgdata_MODULES): Add `sfs.mod'.
36734 (sfs_mod_SOURCES): New variable.
36735 (sfs_mod_CFLAGS): Likewise.
36736 (sfs_mod_LDFLAGS): Likewise.
36737
36738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
36739 (pkgdata_MODULES): Add `sfs.mod'.
36740 (sfs_mod_SOURCES): New variable.
36741 (sfs_mod_CFLAGS): Likewise.
36742
36743 * util/grub-emu.c (main): Call `grub_sfs_init' and
36744 `grub_sfs_fini'.
36745
36746 * include/grub/fs.h (grub_sfs_init): New prototype.
36747 (grub_sfs_fini): Likewise.
36748
36749 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
36750
36751 Add support for the AFFS filesystem.
36752
36753 * fs/affs.c: New file.
36754
36755 * DISTLIST: Added `fs/affs.c'.
36756
36757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
36758 (grub_probefs_SOURCES): Likewise.
36759 (grub_emu_SOURCES): Likewise.
36760 (pkgdata_MODULES): Add `affs.mod'.
36761 (affs_mod_SOURCES): New variable.
36762 (affs_mod_CFLAGS): Likewise.
36763 (affs_mod_LDFLAGS): Likewise.
36764
36765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
36766 (pkgdata_MODULES): Add `affs.mod'.
36767 (affs_mod_SOURCES): New variable.
36768 (affs_mod_CFLAGS): Likewise.
36769
36770 * util/grub-emu.c (main): Call `grub_affs_init' and
36771 `grub_affs_fini'.
36772
36773 * include/grub/fs.h (grub_affs_init): New prototype.
36774 (grub_affs_fini): Likewise.
36775
36776 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36777
36778 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
36779
36780 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
36781
36782 * configure.ac: Accept `x86_64' as host_cpu. In that case add
36783 `-m32' to CFLAGS.
36784
36785 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
36786 linking.
36787
36788 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
36789 (COMMON_LDFLAGS): New variable.
36790 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
36791 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
36792 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
36793 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
36794 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
36795 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
36796 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
36797 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
36798 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
36799 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
36800 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
36801 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
36802 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
36803 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
36804 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
36805 variables.
36806 (normal_mod_ASFLAGS): Add `-m32'.
36807
36808 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
36809 (grub_host_size_t, grub_host_ssize_t): New types.
36810 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
36811 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
36812 `GRUB_HOST_SIZEOF_VOID_P'.
36813
36814 * include/grub/kernel.h (struct grub_module_header): Type of
36815 member offset changed to `grub_host_off_t'. Type of member size
36816 changed to `grub_host_size_t'.
36817 (struct grub_module_info): Type of member offset changed to
36818 `grub_host_off_t'. Type of member size changed to
36819 `grub_host_size_t'.
36820
36821 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
36822
36823 Make GRUB's kernel compliant to Multiboot Specification.
36824
36825 * kern/i386/pc/startup.S (multiboot_header): New label.
36826 (multiboot_entry): Likewise.
36827 (multiboot_trampoline): Likewise.
36828
36829 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36830 Increased to 0x4A0.
36831
36832 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
36833 put parentheses after a question mark.
36834 [!GRUB_UTIL] (my_mod): New variable.
36835
36836 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
36837
36838 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
36839
36840 Adds support for the XFS filesystem. Btrees are not supported
36841 yet.
36842
36843 * fs/xfs.c: New file.
36844
36845 * DISTLIST: Added `fs/xfs.c'.
36846
36847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
36848 (grub_probefs_SOURCES): Likewise.
36849 (grub_emu_SOURCES): Likewise.
36850 (pkgdata_MODULES): Add `xfs.mod'.
36851 (xfs_mod_SOURCES): New variable.
36852 (xfs_mod_CFLAGS): Likewise.
36853
36854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
36855 (pkgdata_MODULES): Add `xfs.mod'.
36856 (xfs_mod_SOURCES): New variable.
36857 (xfs_mod_CFLAGS): Likewise.
36858
36859 * util/grub-emu.c (main): Call `grub_xfs_init' and
36860 `grub_xfs_fini'.
36861
36862 * include/grub/fs.h (grub_xfs_init): New prototype.
36863 (grub_xfs_fini): Likewise.
36864
36865
36866 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
36867
36868 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
36869 color modes, allow greater than 16 colors to be configured as
36870 a default palette.
36871
36872 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
36873
36874 * normal/completion.c (complete_arguments): Add the qualifier
36875 const into OPTIONS.
36876
36877 From Omniflux <omniflux+lists@omniflux.com>:
36878 * include/grub/terminfo.h: New file.
36879 * include/grub/tparm.h: Likewise.
36880 * include/grub/i386/pc/serial.h: Likewise.
36881 * term/terminfo.c: Likewise.
36882 * term/tparm.c: Likewise.
36883 * term/i386/pc/serial.c: Likewise.
36884 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
36885 serial.mod.
36886 (terminfo_mod_SOURCES): New variable.
36887 (terminfo_mod_CFLAGS): Likewise.
36888 (serial_mod_SOURCES): Likewise.
36889 (serial_mod_CFLAGS): Likewise.
36890
36891 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
36892
36893 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
36894 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
36895 and kern/powerpc/ieee1275/cmain.c, respectively.
36896
36897 * boot/powerpc/ieee1275/crt0.S: Moved to ...
36898 * kern/powerpc/ieee1275/crt0.S: ... here.
36899
36900 * boot/powerpc/ieee1275/cmain.c: Moved to ...
36901 * kern/powerpc/ieee1275/cmain.c: ... here.
36902
36903 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
36904 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
36905 instead of boot/powerpc/ieee1275/crt0.S and
36906 boot/powerpc/ieee1275/cmain.c, respectively.
36907
36908 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
36909 sectors. It was not used anyway.
36910
36911 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36912
36913 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
36914 `unused parameter' warning.
36915
36916 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
36917
36918 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
36919 function.
36920 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
36921 getcharwidth.
36922
36923 2005-08-28 Marco Gerards <metgerards@student.han.nl>
36924
36925 * include/grub/normal.h (enum grub_completion_type): Added
36926 `GRUB_COMPLETION_TYPE_ARGUMENT'.
36927
36928 * normal/cmdline.c (print_completion): Handle
36929 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
36930 * normal/menu_entry.c (store_completion): Likewise.
36931
36932 * normal/completion.c (complete_arguments): New function.
36933 (grub_normal_do_completion): Call `complete_arguments' when the
36934 current words start with a dash.
36935
36936 2005-08-27 Marco Gerards <metgerards@student.han.nl>
36937
36938 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
36939 `gzio.mod' instead of `io.mod').
36940
36941 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
36942
36943 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
36944 (DISTDIRS): Added io and video.
36945 Rewrite the search routine to make an output consistently.
36946
36947 * DISTLIST: Added conf/sparc64-ieee1275.mk,
36948 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
36949 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
36950 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
36951 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
36952 util/powerpc/ieee1275/misc.c.
36953
36954 * include/grub/gzio.h: New file.
36955 * io/gzio.c: Likewise.
36956
36957 * kern/file.c (grub_file_close): Call grub_device_close only if
36958 FILE->DEVICE is not NULL.
36959
36960 * include/grub/mm.h [!NULL] (NULL): New macro.
36961
36962 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
36963
36964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
36965 (pkgdata_MODULES): Added gzio.mod.
36966 (gzio_mod_SOURCES): New variable.
36967 (gzio_mod_CFLAGS): Likewise.
36968
36969 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
36970 (pkgdata_MODULES): Added gzio.mod.
36971 (gzio_mod_SOURCES): New variable.
36972 (gzio_mod_CFLAGS): Likewise.
36973
36974 * commands/cat.c: Include grub/gzio.h.
36975 (grub_cmd_cat): Use grub_gzfile_open instead of
36976 grub_file_open.
36977
36978 * commands/cmp.c: Include grub/gzio.h.
36979 (grub_cmd_cmp): Use grub_gzfile_open instead of
36980 grub_file_open.
36981
36982 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
36983 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
36984 grub_file_open.
36985 (grub_rescue_cmd_module): Likewise.
36986
36987 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36988
36989 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
36990 kern/sparc64/ieee1275/init.c because it contains _start.
36991 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
36992
36993 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
36994
36995 * configure.ac: Add support for sparc64 host with ieee1275
36996 firmware.
36997 * configure: Generated from configure.ac.
36998 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
36999 instead of int.
37000 (grub_ofdisk_read): Likewise.
37001 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37002 pointers as (void *) to remove a warning.
37003 (grub_ofdisk_close): Likewise.
37004 (grub_ofdisk_read): Likewise.
37005 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37006 returns, so make it return void to remove a warning.
37007 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37008 Corresponding prototype change.
37009 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37010 values, and cast the pointers as (void *) to remove a warning.
37011 (grub_mm_dump): Likewise.
37012 * conf/sparc64-ieee1275.mk: New file.
37013 * conf/sparc64-ieee1275.rmk: Likewise.
37014 * include/grub/sparc64/setjmp.h: Likewise.
37015 * include/grub/sparc64/types.h: Likewise.
37016 * include/grub/sparc64/ieee1275/console.h: Likewise.
37017 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37018 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37019 * include/grub/sparc64/ieee1275/time.h: Likewise.
37020 * kern/sparc64/cache.c: Likewise.
37021 * kern/sparc64/dl.c: Likewise.
37022 * kern/sparc64/ieee1275/init.c: Likewise.
37023 * kern/sparc64/ieee1275/openfw.c: Likewise.
37024
37025 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37026
37027 * util/console.c (grub_ncurses_putchar): If C is greater than
37028 0x7f, set C to a question mark.
37029 (grub_ncurses_getcharwidth): New function.
37030 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37031 getcharwidth.
37032
37033 * normal/menu.c (print_entry): Made aware of Unicode. First,
37034 convert TITLE to UCS-4, and predict the cursor position by
37035 grub_getcharwidth.
37036
37037 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37038 const to SRC.
37039 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37040
37041 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37042
37043 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37044 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37045 grub_strcat.
37046
37047 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37048 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37049 grub_strcpy and grub_strlen. Take it into account that a space
37050 character is inserted as a delimiter.
37051
37052 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37053
37054 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37055 invalid magic in the error.
37056
37057 * commands/search.c: New file.
37058
37059 * util/grub-emu.c (main): Call grub_search_init and
37060 grub_search_fini.
37061
37062 * kern/rescue.c (grub_rescue_print_disks): Removed.
37063 (grub_rescue_print_devices): New function.
37064 (grub_rescue_cmd_ls): Use grub_device_iterate with
37065 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37066 grub_rescue_print_disks.
37067
37068 * kern/partition.c (grub_partition_iterate): Return the result of
37069 PARTMAP->ITERATE instead of GRUB_ERRNO.
37070
37071 * kern/device.c: Include grub/partition.h.
37072 (grub_device_iterate): New function.
37073
37074 * include/grub/partition.h (grub_partition_iterate): Return int
37075 instead of grub_err_t.
37076
37077 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37078 prototype.
37079 [GRUB_UTIL] (grub_search_fini): Likewise.
37080
37081 * include/grub/device.h (grub_device_iterate): New prototype.
37082
37083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37084 commands/search.c.
37085 (pkgdata_MODULES): Added search.mod.
37086 (search_mod_SOURCES): New variable.
37087 (search_mod_CFLAGS): Likewise.
37088
37089 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37090 (pkgdata_MODULES): Added search.mod.
37091 (search_mod_SOURCES): New variable.
37092 (search_mod_CFLAGS): Likewise.
37093
37094 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37095 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37096 All callers changed.
37097
37098 * DISTLIST: Added commands/search.c.
37099
37100 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37101
37102 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37103 conversion.
37104 (grub_getcharwidth): New function.
37105
37106 * kern/misc.c (grub_utf8_to_ucs4): New function.
37107
37108 * include/grub/term.h (struct grub_term): Added a new member
37109 "getcharwidth".
37110 (grub_getcharwidth): New prototype.
37111
37112 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37113
37114 * term/i386/pc/console.c (map_char): New function. Segregated from
37115 grub_console_putchar.
37116 (grub_console_putchar): Use map_char.
37117 (grub_console_getcharwidth): New function.
37118 (grub_console_term): Specified grub_console_getcharwidth as
37119 getcharwidth.
37120
37121 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37122 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37123
37124 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37125 GRUB_ERRNO.
37126 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37127 on grub_strtoul completely.
37128 (write_char): Declare local variables in the beginning of the
37129 function.
37130 (grub_vesafb_getcharwidth): New function.
37131 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37132 getcharwidth.
37133
37134 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37135
37136 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37137 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37138 commands/i386/pc/vbetest.c.
37139
37140 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37141 call grub_vbe_get_controller_info again, because the returned
37142 information is volatile.
37143 (grub_vbe_set_video_mode): Mostly rewritten.
37144 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37145 grub_vbe_status_t correctly.
37146 (grub_vbe_get_video_mode_info): Likewise.
37147 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37148 several if statements.
37149
37150 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37151 * commands/i386/pc/vbeinfo.c: ... this.
37152
37153 * commands/i386/pc/vbe_test.c: Renamed to ...
37154 * commands/i386/pc/vbetest.c: ... this.
37155
37156 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37157 ...
37158 (grub_cmd_vbeinfo): ... this. Save video modes before
37159 iterating. Skip a video mode, if it is not available, not enough
37160 information is given or it is monochrome. Show the memory
37161 model. Leave the interpretation of MODEVAR to grub_strtoul
37162 completely.
37163 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37164 (GRUB_MOD_FINI): Likewise.
37165
37166 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37167 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37168 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37169 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37170 grub_strtoul completely.
37171 (real2pm): Removed.
37172 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37173 (GRUB_MOD_FINI): Likewise.
37174
37175 * normal/misc.c: Include grub/mm.h.
37176
37177 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37178 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37179 (vbe_list_modes_mod_SOURCES): Removed.
37180 (vbe_list_modes_mod_CFLAGS): Likewise.
37181 (vbe_test_mod_SOURCES): Likewise.
37182 (vbe_test_mod_CFLAGS): Likewise.
37183 (vbeinfo_mod_SOURCES): New variable.
37184 (vbeinfo_mod_CFLAGS): Likewise.
37185 (vbetest_mod_SOURCES): Likewise.
37186 (vbetest_mod_CFLAGS): Likewise.
37187
37188 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37189
37190 * normal/misc.c: New file.
37191
37192 * DISTLIST: Added normal/misc.c.
37193
37194 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37195 DISK to HOOK. Call HOOK with DISK.
37196 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37197 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37198 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37199
37200 * normal/menu_entry.c (struct screen): Added a new member
37201 "completion_shown".
37202 (completion_buffer): New global variable.
37203 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37204 (store_completion): New function.
37205 (complete): Likewise.
37206 (clear_completions): Likewise.
37207 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37208 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37209 a tab, call complete.
37210
37211 * normal/completion.c (disk_dev): Removed.
37212 (print_simple_completion): Likewise.
37213 (print_partition_completion): Likewise.
37214 (print_func): New global variable.
37215 (add_completion): Do not take the arguments WHAT or PRINT any
37216 longer. Added a new argument TYPE. Instead of printing directly,
37217 call PRINT_FUNC if not NULL.
37218 All callers changed.
37219 (complete_device): Use a local variable DEV instead of
37220 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37221 (grub_normal_do_completion): Take a new argument HOOK. Do not
37222 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37223 empty string, return NULL instead.
37224 All callers changed.
37225
37226 * normal/cmdline.c (print_completion): New function.
37227
37228 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37229 to HOOK.
37230 All callers changed.
37231
37232 * kern/disk.c (grub_print_partinfo): Removed.
37233
37234 * include/grub/partition.h (struct grub_partition_map): Add a new
37235 argument DISK into HOOK of ITERATE.
37236 (grub_partition_iterate): Add a new argument DISK to HOOK.
37237
37238 * include/grub/normal.h (enum grub_completion_type): New enum.
37239 (grub_completion_type_t): New type.
37240 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37241 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37242 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37243 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37244 (grub_normal_do_completion): Added a new argument HOOK.
37245 (grub_normal_print_device_info): New prototype.
37246
37247 * include/grub/disk.h (grub_print_partinfo): Removed.
37248
37249 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37250 (normal_mod_SOURCES): Likewise.
37251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37252 (normal_mod_SOURCES): Likewise.
37253
37254 * commands/ls.c (grub_ls_list_disks): Use
37255 grub_normal_print_device_info instead of grub_print_partinfo. Free
37256 PNAME.
37257 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37258 duplicating the code.
37259
37260 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37261
37262 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37263 follow GCS more precisely.
37264 * commands/i386/pc/vbe_test.c: Likewise.
37265 * include/grub/i386/pc/vbe.h: Likewise.
37266 * term/i386/pc/vesafb.c: Likewise.
37267 * video/i386/pc/vbe.c: Likewise.
37268
37269 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37270
37271 * DISTLIST: Added term/i386/pc/vesafb.c
37272 DISTLIST: Added video/i386/pc/vbe.c
37273 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37274 DISTLIST: Added commands/i386/pc/vbe_test.c.
37275 * commands/i386/pc/vbe_list_modes.c: New file.
37276 * commands/i386/pc/vbe_test.c: Likewise.
37277 * term/i386/pc/vesafb.c: Likewise.
37278 * video/i386/pc/vbe.c: Likewise.
37279 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37280 (grub_vbe_probe) Added prototype.
37281 (grub_vbe_set_video_mode) Likewise.
37282 (grub_vbe_get_video_mode) Likewise.
37283 (grub_vbe_get_video_mode_info) Likewise.
37284 (grub_vbe_set_pixel_rgb) Likewise.
37285 (grub_vbe_set_pixel_index) Likewise.
37286 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37287 (pkgdata_MODULES): Added vesafb.mod.
37288 (pkgdata_MODULES): Added vbe_list_modes.mod.
37289 (pkgdata_MODULES): Added vbe_test.mod.
37290 (vbe_mod_SOURCES): Added.
37291 (vbe_mod_CFLAGS): Likewise.
37292 (vesafb_mod_SOURCES): Likewise.
37293 (vesafb_mod_CFLAGS): Likewise.
37294 (vbe_list_modes_mod_SOURCES): Likewise.
37295 (vbe_list_modes_mod_CFLAGS): Likewise.
37296 (vbe_test_mod_SOURCES): Likewise.
37297 (vbe_test_mod_CFLAGS): Likewise.
37298
37299 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37300
37301 * normal/command.c (grub_command_execute): If INTERACTIVE is
37302 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37303 CMDLINE. Disable the pager if INTERACTIVE is true.
37304 All callers are changed.
37305
37306 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37307 before reading a config file.
37308 * normal/main.c (read_config_file): Even if a command is not
37309 found, register it if it is within an entry.
37310
37311 * util/grub-emu.c: Include sys/types.h and unistd.h.
37312 (options): Added --hold.
37313 (struct arguments): Added a new member "hold".
37314 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37315 missing.
37316 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37317 cleared by a debugger, if it is not zero.
37318
37319 * include/grub/normal.h (grub_command_execute): Add an argument
37320 INTERACTIVE.
37321
37322 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37323
37324 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37325
37326 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
37327
37328 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
37329 program with another one, because the old one didn't detect a bug
37330 in gcc-3.4. Always use regparm 2, because the new test is still
37331 not enough for gcc-4.0. Someone must investigate a simple test
37332 case which detects a bug in gcc-4.0.
37333
37334 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
37335
37336 * DISTLIST: Added normal/completion.c.
37337
37338 * normal/completion.c: New file.
37339
37340 * term/i386/pc/console.c (grub_console_getwh): New function.
37341 (grub_console_term): Assign grub_console_getwh to getwh.
37342
37343 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
37344 function is defined in normal/completion.c as
37345 grub_normal_do_completion.
37346 (grub_cmdline_get): Use grub_normal_do_completion instead of
37347 grub_tab_complete.
37348
37349 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
37350 returns non-zero, otherwise return 0.
37351 (grub_partition_iterate): First, probe the partition map. Then,
37352 call ITERATE only for this partition map.
37353
37354 * kern/misc.c (grub_strncmp): Rewritten.
37355
37356 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
37357 returns non-zero. Otherwise return 0.
37358
37359 * include/grub/partition.h (grub_partition_map_iterate): Return
37360 int instead of void.
37361
37362 * include/grub/normal.h (grub_normal_do_completion): New prototype.
37363
37364 * include/grub/misc.h (grub_strncmp): Change the type of N to
37365 grub_size_t.
37366
37367 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
37368 of void.
37369
37370 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
37371 unsigned explicitly before comparing it with I.
37372
37373 * kern/main.c (grub_env_write_root): Add the attribute unused into
37374 VAR.
37375
37376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37377 normal/completion.c.
37378 (normal_mod_SOURCES): Likewise.
37379 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37380 (normal_mod_SOURCES): Likewise.
37381
37382 * normal/command.c (grub_iterate_commands): If ITERATE returns
37383 non-zero, return one immediately.
37384
37385 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
37386
37387 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
37388 * kern/i386/pc/startup.S: Updated Global Descriptor table's
37389 descriptions.
37390 (grub_vbe_get_controller_info): New function.
37391 (grub_vbe_get_mode_info): Likewise.
37392 (grub_vbe_set_mode): Likewise.
37393 (grub_vbe_get_mode): Likewise.
37394 (grub_vbe_set_memory_window): Likewise.
37395 (grub_vbe_get_memory_window): Likewise.
37396 (grub_vbe_set_scanline_length): Likewise.
37397 (grub_vbe_get_scanline_length): Likewise.
37398 (grub_vbe_set_display_start): Likewise.
37399 (grub_vbe_get_display_start): Likewise.
37400 (grub_vbe_set_palette_data): Likewise.
37401 * include/grub/i386/pc/vbe.h: New file.
37402
37403 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37404
37405 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37406 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
37407 * DISTLIST: Likewise.
37408 * kern/ieee1275/of.c: Moved to ...
37409 * kern/ieee1275/ieee1275.c: ... here.
37410
37411 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37412
37413 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
37414 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
37415 Pass 0 as `end' parameter to grub_strtoul().
37416
37417 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
37418
37419 * include/grub/powerpc/ieee1275/console.h: Do not include
37420 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
37421 ifdef.
37422 (grub_console_cur_color): Remove i386-specific prototype.
37423 (grub_console_real_putchar): Likewise.
37424 (grub_console_checkkey): Likewise.
37425 (grub_console_getkey): Likewise.
37426 (grub_console_getxy): Likewise.
37427 (grub_console_gotoxy): Likewise.
37428 (grub_console_cls): Likewise.
37429 (grub_console_setcursor): Likewise.
37430 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
37431 Include <grub/machine/console.h>.
37432 * term/ieee1275/ofconsole.c: Likewise.
37433
37434 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
37435
37436 * Makefile.in (LIBLZO): New variable.
37437
37438 * configure.ac: Check for LZO version 2.
37439
37440 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
37441 lzo/lzo1x.h instead of lzo1x.h.
37442
37443 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
37444 of -llzo.
37445
37446 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
37447 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
37448
37449 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
37450 copying the data from PARTITION to P.
37451
37452 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37453
37454 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
37455 negative, unload the module.
37456
37457 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
37458 map is "pc_partition_map" but not "pc".
37459 (usage): Fix the description. The options are --boot-image and
37460 --core-image but not --boot-file or --core-file.
37461 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
37462 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
37463 DEFAULT_DIRECTORY.
37464
37465 * util/i386/pc/grub-install.in: Do not specify --boot-file or
37466 --core-file. Specify INSTALL_DEVICE as an argument.
37467
37468 * util/console.c: Include config.h.
37469 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
37470 [HAVE_NCURSES_H]: Include ncurses.h.
37471 [HAVE_CURSES_H]: Include curses.h.
37472 [!A_NORMAL] (A_NORMAL): Defined as zero.
37473 [!A_STANDOUT] (A_STANDOUT): Likewise.
37474
37475 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
37476 -lncurses.
37477 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
37478
37479 * configure.ac: Check for curses libraries and headers.
37480
37481 * Makefile.in (LIBCURSES): New variable.
37482
37483 * genmk.rb (Script::rule): Set the executable bits.
37484
37485 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
37486 name of the PC partition map is "pc_partition_map" but not "pc".
37487
37488 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37489
37490 * util/i386/pc/grub-install.in (grub_probefs): New variable.
37491 (modules): Likewise.
37492 (usage): Added descriptions for --modules and --grub-probefs.
37493 Handle --modules and --grub-probefs. Save the arguments in MODULES
37494 and GRUB_PROBEFS, respectively.
37495 Auto-detect a filesystem module against GRUBDIR. If the result is
37496 empty and modules are not specified explicitly, abort the
37497 installation. Add the result to MODULES.
37498
37499 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
37500 disk/powerpc/ieee1275/ofdisk.c,
37501 include/grub/powerpc/ieee1275/init.h and
37502 term/powerpc/ieee1275/ofconsole.c.
37503 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
37504 term/ieee1275/ofconsole.c.
37505
37506 * include/grub/powerpc/ieee1275/console.h: Resurrected.
37507
37508 * COPYING: Upgraded to the latest version. Only the address of the
37509 FSF office has changed.
37510
37511 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
37512
37513 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
37514 kern/ieee1275.c with kern/ieee1275/of.c.
37515
37516 * kern/ieee1275.c: Moved to ...
37517 * kern/ieee1275/of.c: ... here.
37518
37519 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
37520
37521 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
37522 readability.
37523
37524 * config.guess: Updated to the latest version from gnulib.
37525 * config.sub: Likewise.
37526 * install.sh: Likewise.
37527 * mkinstalldirs: Likewise.
37528
37529 * include/grub/console.h: Removed. This file is arch-specific. Do
37530 not put this in include/grub.
37531
37532 * include/grub/i386/pc/console.h: Resurrected.
37533
37534 * util/console.c: Include grub/machine/console.h instead of
37535 grub/console.h.
37536 * util/grub-emu.c: Likewise.
37537
37538 2005-08-04 Marco Gerards <metgerards@student.han.nl>
37539
37540 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
37541 hardcoded value.
37542
37543 From Vincent Pelletier <subdino2004@yahoo.fr>
37544 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
37545 Redefined to use grub_getwh.
37546 (grub_term): New member named getwh.
37547 (grub_getwh): New prototype.
37548 * kern/term.c (grub_getwh): New function.
37549 * term/i386/pc/console.c (grub_console_getwh): New function.
37550 (grub_console_term): New member `getwh'.
37551 * term/i386/pc/vga.c (grub_vga_getwh): New function.
37552 (grub_vga_term): New member `getwh'.
37553 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
37554 grub_ssize_t.
37555 (grub_ofconsole_getw): New function.
37556 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
37557 (grub_ofconsole_term): New field named getwh and new initial
37558 value.
37559
37560 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
37561
37562 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
37563 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
37564 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
37565 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
37566 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
37567 of <grub/machine/ieee1275.h>.
37568 * commands/ieee1275/reboot.c: Likewise.
37569 * boot/powerpc/ieee1275/ieee1275.c: Move ...
37570 * kern/ieee1275.c: ... to here. All users updated. Change all
37571 parameter structs to use new type `grub_ieee1275_cell_t'.
37572 * term/powerpc/ieee1275/ofconsole.c: Move ...
37573 * term/ieee1275/ofconsole.c: ... to here. All users updated.
37574 * disk/powerpc/ieee1275/ofdisk.c: Move ...
37575 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
37576 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
37577 to return int.
37578 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
37579 Remove unused prototypes. All users updated.
37580 * include/grub/powerpc/ieee1275/console.h: Removed.
37581 * include/grub/powerpc/ieee1275/ieee1275.h: Define
37582 `grub_ieee1275_cell_t'.
37583 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
37584 Cast comparisons with -1 to the correct type.
37585 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
37586 type to match `grub_ieee1275_entry_fn'.
37587
37588 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
37589
37590 * DISTLIST: Added util/i386/pc/grub-probefs.c.
37591
37592 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
37593 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
37594 partmap/sun.c.
37595 (grub_probefs_SOURCES): New variable.
37596
37597 * util/i386/pc/grub-probefs.c: New file.
37598
37599 * util/i386/pc/grub-setup.c (main): Call
37600 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
37601 grub_hfs_init and grub_jfs_init to initialize the system. Call
37602 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
37603 grub_pc_partition_map_fini to finish the system.
37604
37605 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
37606
37607 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
37608 function.
37609 (grub_multiboot_load_elf32): Likewise.
37610 (grub_multiboot_is_elf64): Likewise.
37611 (grub_multiboot_load_elf64): Likewise.
37612 (grub_multiboot_load_elf): Likewise.
37613 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
37614 an ELF32 or ELF64 file.
37615 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
37616
37617 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
37618 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
37619 NULL before calling FS->LABEL.
37620 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
37621 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
37622 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
37623 before calling FS->LABEL.
37624
37625 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
37626
37627 * util/i386/pc/grub-install.in (datadir): New variable.
37628 (libdir): Removed.
37629 (pkgdatadir): New variable.
37630 (pkglibdir): Removed.
37631
37632 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
37633
37634 * DISTLIST: Added util/i386/pc/grub-install.in.
37635
37636 * util/i386/pc/grub-install.in: New file.
37637
37638 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
37639 (grub_install_SOURCES): Likewise.
37640
37641 * genmk.rb: Added support for scripts.
37642 (Script): New class.
37643 (scripts): New variable.
37644
37645 * Makefile.in (install-local): Install sbin_SCRIPTS by
37646 INSTALL_SCRIPT.
37647 (uninstall): Remove sbin_SCRIPTS.
37648
37649 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
37650 device, try to get a GRUB device by
37651 grub_util_biosdisk_get_grub_dev.
37652 Free DEST_DEV.
37653
37654 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
37655 description for --device-map.
37656
37657 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37658
37659 Change the semantics of variable hooks. They now return strings
37660 instead of error values.
37661
37662 * util/i386/pc/grub-setup.c: Include grub/env.h.
37663 (setup): Use grub_device_set_root instead of grub_env_set.
37664
37665 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
37666 grub_env_get instead of grub_device_set_root and
37667 grub_device_get_root, respectively.
37668
37669 * kern/main.c (grub_env_write_root): New function.
37670 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
37671 grub_env_set instead of grub_device_set_root.
37672
37673 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
37674 many variables.
37675 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
37676 rather than calling ENV->WRITE_HOOK afterwards.
37677 (grub_env_get): Return the result of ENV->READ_HOOK rather than
37678 passing a pointer of a pointer.
37679 (grub_register_variable_hook): Change the types of "read_hook" and
37680 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
37681 respectively.
37682 Allocate the default empty string on the heap, because this string
37683 may be freed later.
37684
37685 * kern/device.c: Include grub/env.h.
37686 (grub_device_set_root): Removed.
37687 (grub_device_get_root): Likewise.
37688 (grub_device_open): Use grub_env_get instead of
37689 grub_device_get_root.
37690
37691 * include/grub/env.h (grub_env_read_hook_t): New type.
37692 (grub_env_write_hook_t): Likewise.
37693 (grub_env_var): Change the types of "read_hook" and "write_hook"
37694 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
37695 (grub_register_variable_hook): Likewise.
37696
37697 * include/grub/device.h (grub_device_set_root): Removed.
37698 (grub_device_set_root): Likewise.
37699
37700 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
37701 make sure that DIRNAME terminates with '/', so that
37702 grub_fat_find_dir will fail if PATH is not a directory.
37703
37704 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
37705 from DIRNAME.
37706 Use the qualifier auto for print_files and print_files_long.
37707 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
37708 as a regular file.
37709 Put a newline only if there is no error.
37710 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
37711 used.
37712
37713 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
37714
37715 * kern/partition.c (grub_partition_probe): Initialize PART to
37716 NULL. Otherwise, when no partition map is registered, this returns
37717 a garbage.
37718
37719 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
37720
37721 * partmap/apple.c (apple_partition_map_iterate): Check if POS
37722 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
37723 valid.
37724
37725 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
37726
37727 * commands/ls.c (grub_ls_list_disks): Print the filesystem
37728 information on each device, if it does not have partitions. Print
37729 "Device" instead of "Disk", because this function is not specific
37730 to disk devices.
37731
37732 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
37733 static to ensure that it is put on the memory rather than a
37734 register.
37735
37736 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37737
37738 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
37739 (grub_cat_init): Likewise.
37740 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
37741 (options): Likewise.
37742 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
37743 (grub_configfile_init): Likewise.
37744 * font/manager.c (GRUB_MOD_INIT): Likewise.
37745 * commands/help.c (GRUB_MOD_INIT): Likewise.
37746 (grub_help_init): Likewise.
37747 * normal/command.c (grub_command_init): Likewise.
37748 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
37749 * disk/loopback.c (grub_loop_init): Likewise.
37750 (GRUB_MOD_INIT): Likewise.
37751 * commands/ls.c (grub_ls_init): Likewise.
37752 (GRUB_MOD_INIT): Likewise.
37753 (options): Likewise.
37754 * commands/boot.c (grub_boot_init): Likewise.
37755 (GRUB_MOD_INIT): Likewise.
37756 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
37757 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
37758 (GRUB_MOD_INIT): Likewise.
37759 * commands/cmp.c (grub_cmp_init): Likewise.
37760 (GRUB_MOD_INIT): Likewise.
37761
37762 * normal/arg.c: Use <> instead of "" to include header files.
37763 (SHORT_ARG_HELP): New macro.
37764 (SHORT_ARG_USAGE): Likewise.
37765 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
37766 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
37767 descriptions.
37768 (find_short): Check if C is 'h' or 'u' explicitly.
37769 (grub_arg_show_help): Use space characters instead of tabs. Treat
37770 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
37771 are shown with --help and --usage only if they are not used for
37772 the command itself.
37773 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
37774 'h' and 'u'.
37775
37776 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
37777 const into "longarg". Change the type of "shortarg" to int.
37778
37779 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37780
37781 * boot/i386/pc/boot.S (boot_drive_check): New label.
37782
37783 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
37784 macro.
37785
37786 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
37787 which do not pass a boot drive correctly. Copied from GRUB Legacy.
37788
37789 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37790
37791 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
37792 When turning off Gate A20, skip the check and return immediately,
37793 because this is not fatal usually.
37794
37795 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
37796
37797 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
37798 be 0x7C00 instead of 0x8000.
37799
37800 * boot/i386/pc/pxeboot.S: Rewritten.
37801
37802 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
37803 EXT_C.
37804 (gate_a20_check_state): Read a byte from 0x108000. Invert the
37805 result.
37806
37807 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
37808
37809 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
37810 robustness. This routine now supports a BIOS call and System
37811 Control Port A to modify the gate A20.
37812
37813 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37814 Increased to 0x440.
37815
37816 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
37817
37818 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
37819 device path and resulting ihandle.
37820 (grub_ofdisk_close): dprintf the ihandle being closed.
37821 (grub_ofdisk_read): dprintf function parameters.
37822 * kern/mm.c (grub_mm_init_region): Likewise.
37823 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
37824 (grub_linux_boot): dprintf the Linux entry point, initrd address and
37825 size, and boot arguments.
37826 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
37827 before loading into memory.
37828 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
37829 before loading into memory.
37830
37831 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
37832
37833 * kern/mm.c: Added much documentation.
37834 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
37835 8, set to 5 instead of 8.
37836
37837 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37838
37839 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
37840
37841 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
37842 (grub_mkdevicemap_SOURCES): New variable.
37843
37844 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
37845 lib/device.c of GRUB Legacy.
37846
37847 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
37848
37849 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
37850 instead of PATH is NULL.
37851
37852 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
37853
37854 * commands/cmp.c (BUFFER_SIZE): New macro.
37855 (grub_cmd_cmp): Close the right file at the right time. Compare
37856 only data just read. Don't report files of different size as
37857 identical. Dynamically allocate buffers. Move variable
37858 declarations at the beginning of function.
37859
37860 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
37861
37862 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
37863 reverse.
37864
37865 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
37866
37867 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
37868 when backspace is pressed at beginning of line.
37869
37870 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
37871
37872 * DISTLIST: Added genfslist.sh.
37873
37874 * normal/main.c (fs_module_list): New variable.
37875 (autoload_fs_module): New function.
37876 (read_fs_list): Likewise.
37877 (grub_normal_execute): Call read_fs_list.
37878
37879 * kern/fs.c (grub_fs_autoload_hook): New variable.
37880 (grub_fs_probe): Added support for auto-loading.
37881
37882 * include/grub/normal.h (struct grub_fs_module_list): New struct.
37883 (grub_fs_module_list_t): New type.
37884
37885 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
37886 (grub_fs_autoload_hook): New prototype.
37887
37888 * genfslist.sh: New file.
37889
37890 * genmk.rb: Added a rule to generate a filesystem list.
37891
37892 2005-06-30 Marco Gerards <metgerards@student.han.nl>
37893
37894 * configure.ac: Fix the test for cross-compiling.
37895
37896 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
37897 define GRUB_UTIL anymore.
37898
37899 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
37900 so this function works on other systems than just big endian.
37901 (load_modules): Likewise.
37902 (add_segments): Likewise.
37903
37904 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
37905
37906 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
37907 contains `l' modifier, get a long from va_arg().
37908
37909 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
37910
37911 * kern/mm.c (grub_free): If the next free block which is being
37912 merged is the first free block, set the first block to the block
37913 being freed.
37914 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
37915
37916 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37917
37918 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
37919 `grub_ieee1275_chosen'.
37920
37921 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
37922
37923 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
37924 (grub_ieee1275_chosen): New variable.
37925 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
37926 `chosen'.
37927 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
37928 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
37929 Rename first argument to `phandle' for consistency.
37930 (grub_ieee1275_get_property_length): Likewise.
37931 (grub_ieee1275_next_property): Likewise. Change type of first argument
37932 to grub_ieee1275_phandle_t.
37933 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
37934 Move export next to declaration.
37935 (grub_ieee1275_chosen): New variable.
37936 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
37937 Correct cosmetic typo.
37938 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
37939 `grub_ieee1275_chosen'.
37940 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
37941 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
37942 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
37943 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
37944 `grub_ieee1275_chosen'.
37945
37946 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
37947
37948 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
37949 /chosen/bootargs.
37950 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
37951 /chosen/bootargs as "variable=value" pairs.
37952
37953 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
37954
37955 * include/grub/misc.h (grub_dprintf): New macro.
37956 (grub_real_dprintf): New prototype.
37957 (grub_strword): Likewise.
37958 (grub_iswordseparator): Likewise.
37959 * kern/misc.c (grub_real_dprintf): New function.
37960 (grub_strword): Likewise.
37961 (grub_iswordseparator): Likewise.
37962
37963 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
37964
37965 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
37966 (roundup): Remove macro.
37967 (grub_ieee1275_flags): Make static.
37968 (grub_ieee1275_realmode): Remove.
37969 (grub_ieee1275_test_flag): New function.
37970 (grub_ieee1275_set_flag): Likewise.
37971 (find_options): Rename to `grub_ieee1275_find_options'; update
37972 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
37973 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
37974 (cmain): New prototype.
37975 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
37976 `grub_ieee1275_flags' directly.
37977 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
37978 machine/biosdisk.h.
37979 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
37980 Don't include grub/machine/init.h.
37981 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
37982 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
37983 Remove prototype.
37984 (grub_ieee1275_realmode): Likewise.
37985 (grub_ieee1275_flag): New enum.
37986 (grub_ieee1275_test_flag): New prototype.
37987 (grub_ieee1275_set_flag): New prototype.
37988 * include/grub/powerpc/ieee1275/init.h: Remove file.
37989 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
37990 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
37991 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
37992 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
37993 comment.
37994 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
37995 `grub_ieee1275_test_flag'.
37996 (grub_ieee1275_encode_devname): Likewise.
37997
37998 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
37999
38000 * include/grub/powerpc/ieee1275/ieee1275.h
38001 (grub_ieee1275_encode_devname): New prototype.
38002 (grub_ieee1275_get_filename): Likewise.
38003 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38004 function.
38005 (grub_set_prefix): Likewise.
38006 (grub_machine_init): Call grub_set_prefix.
38007 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38008 (grub_parse_type): New enum.
38009 (grub_ieee1275_get_devargs): New function.
38010 (grub_ieee1275_get_devname): Likewise.
38011 (grub_ieee1275_parse_args): Likewise.
38012 (grub_ieee1275_get_filename): Likewise.
38013 (grub_ieee1275_encode_devname): Likewise.
38014
38015 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38016
38017 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38018 `grub_loader_unset'.
38019
38020 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38021
38022 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38023 instead of grub_ieee1275_interpret.
38024 (grub_halt_init): New function.
38025 (grub_halt_fini): Likewise.
38026 (GRUB_MOD_INIT): Correct message grammar.
38027 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38028 instead of grub_ieee1275_interpret.
38029 (grub_reboot_init): New function.
38030 (grub_reboot_fini): Likewise.
38031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38032 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38033 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38034 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38035 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38036 function.
38037 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38038 Add prototype.
38039 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38040 prototype.
38041 (grub_halt): Likewise.
38042 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38043 (cmain): Remove __attribute__((unused)).
38044 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38045 (grub_heap_len): Likewise.
38046 (grub_machine_fini): New function.
38047 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38048 (grub_halt): Likewise.
38049 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38050 function.
38051 * util/powerpc/ieee1275/misc.c: New file.
38052
38053 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38054
38055 * DISTLIST: New file.
38056 * gendistlist.sh: Likewise.
38057
38058 * Makefile.in (COMMON_DISTFILES): Removed.
38059 (BOOT_DISTFILES): Likewise.
38060 (CONF_DISTFILES): Likewise.
38061 (DISK_DISTFILES): Likewise.
38062 (FS_DISTFILES): Likewise.
38063 (INCLUDE_DISTFILES): Likewise.
38064 (KERN_DISTFILES): Likewise.
38065 (LOADER_DISTFILES): Likewise.
38066 (TERM_DISTFILES): Likewise.
38067 (UTIL_DISTFILES): Likewise.
38068 (DISTFILES): Likewise.
38069 (uninstall): Uninstall files in $(pkgdata_DATA).
38070 (DISTLIST): New target.
38071 (distdir): Use the contents of the file DISTLIST to get a list of
38072 distributed files.
38073
38074 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38075
38076 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38077 descriptor. This is ported from GRUB Legacy.
38078
38079 * gencmdlist.sh: Added an extra semicolon to make it work with
38080 old sed versions. Reported by Robert Bihlmeyer
38081 <robbe@orcus.priv.at>.
38082
38083 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38084
38085 Automatic loading of commands is supported.
38086
38087 * normal/main.c (read_command_list): New function.
38088 (grub_normal_execute): Call read_command_list.
38089
38090 * normal/command.c (grub_register_command): Return zero or CMD.
38091 Allocate CMD->NAME from the heap.
38092 Initialize CMD->MODULE_NAME to zero.
38093 Find the same name as well. If the same command is found and it is
38094 a dummy command, overwrite members. If it is not a dummy command,
38095 return zero.
38096 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38097 (grub_command_find): If a dummy command is found, load a module
38098 and retry to find a command only once.
38099
38100 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38101 make sure that each command is loaded.
38102
38103 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38104 macro.
38105 (struct grub_command): Remove const from the member `name'.
38106 Add a new member `module_name'.
38107 (grub_register_command): Return grub_command_t.
38108
38109 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38110 sure that each command is loaded.
38111
38112 * genmk.rb (PModule::rule): Specify a module name without the
38113 suffix ".mod" to gencmdlist.sh.
38114
38115 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38116
38117 * gencmdlist.sh: New file.
38118
38119 * genmk.rb (PModule::rule): Generate a rule for a command list.
38120 Clean command.lst.
38121 Generate command.lst from $(COMMANDFILES).
38122
38123 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38124 (DATA): Added $(pkgdata_DATA).
38125 (install-local): Install files in $(pkgdata_DATA).
38126
38127 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38128
38129 * term/i386/pc/vga.c (debug_command): Removed.
38130 (GRUB_MOD_INIT): Do not register the command "debug".
38131
38132 From Hollis Blanchard:
38133 * commands/configfile.c: New file.
38134 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38135 commands/configfile.c.
38136 (pkgdata_MODULES): Added configfile.mod.
38137 (configfile_mod_SOURCES): New variable.
38138 (configfile_mod_CFLAGS): Likewise.
38139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38140 commands/configfile.c.
38141 (pkgdata_MODULES): Added configfile.mod.
38142 (configfile_mod_SOURCES): New variable.
38143 (configfile_mod_CFLAGS): Likewise.
38144 * util/grub-emu.c (main): Call grub_configfile_init and
38145 grub_configfile_fini.
38146 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38147 prototype.
38148 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38149
38150 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38151
38152 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38153 address.
38154
38155 * commands/help.c (grub_cmd_help): Do not print newlines after
38156 the last command in print_command_help.
38157
38158 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38159
38160 * commands/default.h: New file.
38161 * commands/timeout.h: Likewise.
38162 * normal/context.c: Likewise.
38163
38164 * util/misc.c: Do not include sys/times.h.
38165 Include sys/time.h and grub/machine/time.h.
38166 (grub_get_rtc): Rewritten with gettimeofday.
38167
38168 * util/grub-emu.c (main): Call grub_default_init and
38169 grub_timeout_init before grub_normal_init, and call
38170 grub_timeout_fini and grub_default_fini after grub_main.
38171
38172 * util/console.c (grub_ncurses_checkkey): Return the read
38173 character or -1.
38174
38175 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38176 timeouts.
38177
38178 * normal/main.c (read_config_file): Push MENU. If this fails,
38179 print an error and wait for a user input.
38180 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38181 If a menu is empty or an error occurs, pop MENU.
38182 (grub_normal_execute): Pop and free MENU after grub_menu_run
38183 returns.
38184
38185 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38186
38187 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38188 include time.h.
38189 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38190 without GRUB_UTIL.
38191 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38192 time.h.
38193 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38194 without GRUB_UTIL.
38195
38196 * include/grub/normal.h (struct grub_menu_list): New struct.
38197 (grub_menu_list_t): New type.
38198 (struct grub_context): New struct.
38199 (grub_context_t): New type.
38200 (grub_register_command): Got rid of EXPORT_FUNC.
38201 (grub_unregister_command): Likewise.
38202 (grub_context_get): New prototype.
38203 (grub_context_get_current_menu): Likewise.
38204 (grub_context_push_menu): Likewise.
38205 (grub_context_pop_menu): Likewise.
38206 [GRUB_UTIL] (grub_default_init): Likewise.
38207 [GRUB_UTIL] (grub_default_fini): Likewise.
38208 [GRUB_UTIL] (grub_timeout_init): Likewise.
38209 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38210
38211 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38212 commands/timeout.c and normal/context.c.
38213 (pkgdata_MODULES): Added default.mod and timeout.mod.
38214 (normal_mod_SOURCES): Added normal/context.c.
38215 (default_mod_SOURCES): New variable.
38216 (default_mod_CFLAGS): Likewise.
38217 (timeout_mod_SOURCES): Likewise.
38218 (timeout_mod_CFLAGS): Likewise.
38219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38220 conf/i386-pc.rmk.
38221 (pkgdata_MODULES): Added default.mod and timeout.mod.
38222 (normal_mod_SOURCES): Added normal/context.c.
38223 (default_mod_SOURCES): New variable.
38224 (default_mod_CFLAGS): Likewise.
38225 (timeout_mod_SOURCES): Likewise.
38226 (timeout_mod_CFLAGS): Likewise.
38227
38228 * Makefile.in (all-local): Added $(MKFILES).
38229
38230 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38231
38232 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38233 (grub_emu_SOURCES): Likewise.
38234 (pkgdata_MODULES): Add `sun.mod'.
38235 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38237 `partmap/sun.c'.
38238 (pkgdata_MODULES): Add `sun.mod'.
38239 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38240 * include/grub/partition.h (grub_sun_partition_map_init): New
38241 prototype.
38242 (grub_sun_partition_map_fini): Likewise.
38243 * partmap/sun.c: New file.
38244 * util/grub-emu.c (main): Initialize and de-initialize the sun
38245 partitionmap support.
38246
38247 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38248
38249 This implements an Emacs-like menu entry editor.
38250
38251 * normal/menu_entry.c: New file.
38252
38253 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38254 characters to ASCII.
38255 (saved_char): New variable.
38256 (grub_ncurses_checkkey): Rewritten completely.
38257 (grub_ncurses_getkey): Likewise.
38258 (grub_ncurses_init): Call raw instead of cbreak.
38259
38260 * normal/menu.c (print_entry): Do not put a space.
38261 (init_page): Renamed to ...
38262 (grub_menu_init_page): ... this. All callers changed.
38263 (edit_menu_entry): Removed.
38264 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38265
38266 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38267
38268 * kern/misc.c (grub_vprintf): Call grub_refresh.
38269
38270 * normal/menu.c (DISP_LEFT): Renamed to ...
38271 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38272 * normal/menu.c (DISP_UP): Renamed to ...
38273 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38274 * normal/menu.c (DISP_RIGHT): Renamed to ...
38275 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38276 * normal/menu.c (DISP_DOWN): Renamed to ...
38277 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38278 * normal/menu.c (DISP_HLINE): Renamed to ...
38279 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38280 * normal/menu.c (DISP_VLINE): Renamed to ...
38281 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38282 * normal/menu.c (DISP_UL): Renamed to ...
38283 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38284 * normal/menu.c (DISP_UR): Renamed to ...
38285 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38286 * normal/menu.c (DISP_LL): Renamed to ...
38287 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38288 * normal/menu.c (DISP_LR): Renamed to ...
38289 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38290 * normal/menu.c (TERM_WIDTH): Renamed to ...
38291 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38292 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38293 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38294 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38295 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38296 * normal/menu.c (TERM_MARGIN): Renamed to ...
38297 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38298 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38299 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38300 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38301 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38302 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38303 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38304 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38305 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38306 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38307 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38308 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38309 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38310 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38311 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38312 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38313 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38314 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38315 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38316 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38317 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38318 All callers changed.
38319
38320 * include/grub/normal.h: New prototype.
38321
38322 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38323 normal/menu_entry.c.
38324 (normal_mod_SOURCES): Likewise.
38325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38326 (normal_mod_SOURCES): Likewise.
38327
38328 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
38329
38330 * include/grub/normal.h (grub_halt_init): New prototype.
38331 (grub_halt_fini): Likewise.
38332 (grub_reboot_init): Likewise.
38333 (grub_reboot_fini): Likewise.
38334
38335 * util/grub-emu.c: Include signal.h.
38336 (main_env): New global variable.
38337 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
38338 catch C-c.
38339 (grub_machine_fini): New function.
38340 (main): Call grub_halt_init and grub_reboot_init before
38341 grub_main, and grub_reboot_fini and grub_halt_fini after it.
38342 Call setjmp with MAIN_ENV to go back afterwards.
38343 Call grub_machine_fini right before return.
38344
38345 * include/grub/util/misc.h: Include setjmp.h.
38346 (main_env): New prototype.
38347
38348 * include/grub/kernel.h (grub_machine_fini): New prototype.
38349 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
38350 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
38351
38352 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
38353 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
38354 * term/i386/pc/console.c (grub_console_fini): Likewise.
38355
38356 * util/i386/pc/misc.c: New file.
38357
38358 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38359 util/i386/pc/misc.c, commands/i386/pc/halt.c and
38360 commands/i386/pc/reboot.c.
38361
38362 2005-02-14 Guillem Jover <guillem@hadrons.org>
38363
38364 * include/grub/dl.h (grub_dl_check_header): New prototype.
38365 (grub_arch_dl_check_header): Change return type to grub_err_t,
38366 remove size parameter and export function. Update all callers.
38367 * kern/dl.c (grub_dl_check_header): New function.
38368 (grub_dl_load_core): Use `grub_dl_check_header' instead of
38369 `grub_arch_dl_check_header'. Check ELF type. Check if sections
38370 are inside the core.
38371 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
38372 independent ELF header checks.
38373 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38374 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
38375 `grub_dl_check_header' instead of explicit checks. Check for the
38376 ELF type.
38377 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
38378 `grub_dl_check_header' instead of explicit checks. Remove arch
38379 specific ELF header checks.
38380
38381 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
38382 argument SIZE.
38383
38384 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
38385
38386 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
38387 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
38388
38389 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
38390
38391 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
38392 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
38393 (part_map_iterate): Clear `grub_errno' and return 0 if
38394 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
38395 * partmap/amiga.c (amiga_partition_map_iterate): Return
38396 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
38397 * partmap/apple.c (apple_partition_map_iterate): Likewise.
38398
38399 2005-02-01 Guillem Jover <guillem@hadrons.org>
38400
38401 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
38402 help info.
38403
38404 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38405
38406 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
38407 Removed prototype.
38408 (grub_rescue_cmd_linux): New prototype.
38409 (grub_rescue_cmd_initrd): Likewise.
38410 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
38411 `bi_rec'.
38412 (grub_linux_release_mem): Release the memory for the initrd.
38413 (grub_load_linux): Renamed from this...
38414 (grub_rescue_cmd_linux): ...To this. Changed all callers.
38415 Changed `entry' not to be static. Loop over memory regions to
38416 find another one when the default fails.
38417 (grub_rescue_cmd_initrd): New function.
38418 (grub_linux_init): Remove function.
38419 (grub_linux_fini): Likewise.
38420 (GRUB_MOD_INIT): Register `initrd'.
38421 (GRUB_MOD_FINI): Unregister `initrd'.
38422 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
38423 Function removed.
38424 (grub_linux_normal_fini): Likewise.
38425 (GRUB_MOD_INIT): Register `initrd'.
38426 (GRUB_MOD_FINI): Unregister `initrd'.
38427
38428 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38429
38430 * commands/help.c: New file.
38431 * normal/arg.c (show_help): Renamed to...
38432 (grub_arg_show_help): ... this.
38433 * commands/i386/pc/halt.c: New file.
38434 * commands/i386/pc/reboot.c: Likewise.
38435 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
38436 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
38437 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
38438 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
38439 variables.
38440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38441 `commands/help.c'.
38442 (pkgdata_MODULES): Add `help.mod'.
38443 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
38444 * grub/i386/pc/init.h (grub_reboot): New prototype.
38445 (grub_halt): Likewise.
38446 * include/grub/normal.h (grub_arg_show_help): New prototype.
38447 (grub_help_init): Likewise.
38448 (grub_help_fini): Likewise.
38449 * util/grub-emu.c (main): Initialize and deinitialize the help
38450 command.
38451
38452 * normal/cmdline.c (grub_cmdline_get): Doc fix.
38453
38454 * normal/command.c (grub_command_init): Fixed the description of
38455 the `set' and `unset' commands.
38456
38457 2005-01-31 Marco Gerards <metgerards@student.han.nl>
38458
38459 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
38460 function.
38461 * commands/ieee1275/halt.c: New file.
38462 * commands/ieee1275/reboot.c: Likewise.
38463 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
38464 `__attribute__ ((unused))'. Some GCS related fixed.
38465 (grub_suspend_init) [GRUB_UTIL]: Function removed.
38466 (grub_suspend_fini): Likewise.
38467 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
38468 and `halt.mod'.
38469 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
38470 (halt_mod_CFLAGS): New variables.
38471 * include/grub/powerpc/ieee1275/ieee1275.h
38472 (grub_ieee1275_interpret): New prototype.
38473
38474 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
38475
38476 * include/grub/misc.h (memmove): New prototype.
38477 (memcpy): Likewise.
38478
38479 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
38480
38481 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
38482 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
38483
38484 2005-01-22 Marco Gerards <metgerards@student.han.nl>
38485
38486 * kern/misc.c (grub_strndup): Function rewritten.
38487
38488 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
38489
38490 * normal/menu.c (TERM_WIDTH): Macro redefined.
38491 (TERM_TOP_BORDER_Y): Likewise.
38492 (draw_border): Replaced while-loop by a for-loop. Make the number
38493 of lines consistent with the number of lines displayed in
38494 print_entries. Added a margin below the rectangle.
38495 (print_entry): Make the entry fit in the rectangle.
38496 (print_entries): Display the scroll arrows next to the right
38497 border.
38498
38499 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38500
38501 * fs/minix.c (grub_minix_find_file): Reserve more space for
38502 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
38503 `grub_strncpy' to copy `path' into it.
38504
38505 2005-01-21 Marco Gerards <metgerards@student.han.nl>
38506
38507 Add the loopback device, a device via which files can be accessed
38508 as devices.
38509
38510 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
38511 (pkgdata_MODULES): Add loopback.mod.
38512 (loopback_mod_SOURCES): New variable.
38513 (loopback_mod_CFLAGS): Likewise.
38514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38515 `disk/loopback.c'.
38516 (pkgdata_MODULES): Add loopback.mod.
38517 (loopback_mod_SOURCES): New variable.
38518 (loopback_mod_CFLAGS): Likewise.
38519 * disk/loopback.c: new file.
38520 * include/grub/normal.h (grub_loop_init): New prototype.
38521 (grub_loop_fini): New prototype.
38522 * util/grub-emu.c (main): Initialize and de-initialize loopback
38523 support.
38524 * include/grub/disk.h (grub_disk_dev_id): Add
38525 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
38526
38527 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
38528
38529 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
38530 function.
38531 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
38532 (suspend_mod_SOURCES): New variable.
38533 (suspend_mod_CFLAGS): Likewise.
38534 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
38535 New prototype.
38536 * commands/ieee1275/suspend.c: New file.
38537
38538 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38539
38540 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
38541 ((unused))' to `__attribute__ ((used))'.
38542 (GRUB_MOD_FINI): Likewise.
38543 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
38544 * genmk.rb (PModule): Assign space to common symbols when linking
38545 modules.
38546
38547 2005-01-20 Marco Gerards <metgerards@student.han.nl>
38548
38549 * include/grub/mm.h (grub_mm_init_region): Change the type of the
38550 `unsigned' arguments to `grub_size_t'.
38551 (grub_malloc): Likewise.
38552 (grub_realloc): Likewise.
38553 (grub_memalign): Likewise.
38554 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
38555 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
38556 * util/misc.c (grub_malloc): Likewise.
38557 (grub_realloc): Likewise.
38558 * kern/mm.c (get_header_from_pointer): Change the casts to
38559 `unsigned' into a cast to `grub_size_t'.
38560
38561 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
38562 point to `currnode' when `currnode' is changed.
38563
38564 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
38565 Schottelius <nico-linux@schottelius.org>.
38566
38567 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
38568
38569 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
38570 (note_path): Remove variable.
38571 (GRUB_IEEE1275_NOTE_NAME): New macro.
38572 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
38573 (grub_ieee1275_note_hdr): New structure.
38574 (grub_ieee1275_note_desc): Likewise.
38575 (grub_ieee1275_note): Likewise.
38576 (load_note): Remove `dir' argument. All callers updated. Remove
38577 `note_img' and `path'. Do not load a file from `note_path'.
38578 Initialize a struct grub_ieee1275_note and write that to `out'.
38579 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
38580
38581 2005-01-05 Marco Gerards <metgerards@student.han.nl>
38582
38583 * util/misc.c (grub_util_read_image): Revert last change. It
38584 called `grub_util_read_at', which seeks from the beginning of the
38585 file.
38586
38587 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
38588
38589 * TODO: Add note about endianness in grub-mkimage.
38590 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
38591 section.
38592 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
38593 (grub_mkimage_SOURCES): New target.
38594 * include/grub/kernel.h (grub_start_addr): Remove variable.
38595 (grub_end_addr): Likewise.
38596 (grub_total_module_size): Likewise.
38597 (grub_kernel_image_size): Likewise.
38598 (GRUB_MODULE_MAGIC): New constant.
38599 (grub_module_info): New structure.
38600 (grub_arch_modules_addr): New prototype.
38601 (grub_get_end_addr): Remove prototype.
38602 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
38603 * include/grub/powerpc/ieee1275/kernel.h: New file.
38604 * include/grub/util/misc.h (grub_util_get_fp_size): New
38605 prototype.
38606 (grub_util_read_at): Likewise.
38607 (grub_util_write_image_at): Likewise.
38608 * kern/main.c (grub_get_end_addr): Remove function.
38609 (grub_load_modules): Call grub_arch_modules_addr instead of using
38610 grub_end_addr. Look for a grub_module_info struct in memory. Use
38611 the grub_module_info fields instead of calling grub_get_end_addr
38612 as loop conditions. Move grub_add_unused_region code here.
38613 (grub_add_unused_region): Remove function.
38614 * kern/i386/pc/init.c: Include grub/cache.h.
38615 (grub_machine_init): Remove call to grub_get_end_addr. Remove
38616 one call to add_mem_region.
38617 (grub_arch_modules_addr): New function.
38618 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
38619 (grub_total_module_size): Likewise.
38620 Include grub/machine/kernel.h.
38621 (grub_arch_modules_addr): New function.
38622 * util/grub-emu.c (grub_end_addr): Remove variable.
38623 (grub_total_module_size): Likewise.
38624 (grub_arch_modules_addr): New function.
38625 * util/misc.c: Include unistd.h.
38626 (grub_util_get_fp_size): New function.
38627 (grub_util_read_at): Likewise.
38628 (grub_util_write_image_at): Likewise.
38629 (grub_util_read_image): Call grub_util_read_at.
38630 (grub_util_write_image): Call grub_util_write_image_at.
38631 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
38632 additional memory in kernel_img for a struct grub_module_info.
38633 Fill in that grub_module_info.
38634 * util/powerpc/ieee1275/grub-mkimage.c: New file.
38635
38636 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38637
38638 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
38639 New function.
38640 * include/grub/powerpc/ieee1275/ieee1275.h
38641 (grub_ieee1275_milliseconds): New prototype.
38642 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
38643 Change to 1000.
38644 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
38645 grub_ieee1275_milliseconds.
38646
38647 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
38648
38649 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
38650 variable.
38651 (find_options): New function.
38652 (cmain): Call find_options.
38653 * include/grub/powerpc/ieee1275/ieee1275.h
38654 (grub_ieee1275_realmode): New extern variable.
38655 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
38656 grub_map if grub_ieee1275_realmode is false.
38657
38658 2004-12-29 Marco Gerards <metgerards@student.han.nl>
38659
38660 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
38661 lines are inserted and make it work like readline. Reported by
38662 Vincent Pelletier <subdino2004@yahoo.fr>.
38663
38664 2004-12-28 Marco Gerards <metgerards@student.han.nl>
38665
38666 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
38667
38668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
38669 `kern/powerpc/cache.S'.
38670
38671 2004-12-27 Marco Gerards <metgerards@student.han.nl>
38672
38673 * genmk.rb: Handle the `Program' class in the main loop. Written
38674 by Johan Rydberg <jrydberg@gnu.org>.
38675 (Program): New class.
38676 (programs): New variable.
38677 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
38678 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
38679 instead of "grub/kernel.h". Include <grub/machine/init.h>.
38680 (help_arch): Function removed.
38681 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
38682 `powerpc/libgcc.h' and `loader.h'.
38683 (pkgdata_PROGRAMS): New variable.
38684 (sbin_UTILITIES): Variable removed.
38685 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
38686 (grubof_SOURCES): Variable re-defined so it only includes the
38687 core functionality.
38688 (grubof_CFLAGS): Remove `-DGRUBOF'.
38689 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
38690 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
38691 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
38692 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
38693 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
38694 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
38695 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
38696 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
38697 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
38698 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
38699 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38700 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
38701 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
38702 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
38703 (pc_mod_CFLAGS): New variables.
38704 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
38705 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
38706 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
38707 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
38708 Moved from here...
38709 * include/grub/i386/pc/init.h (grub_os_area_addr)
38710 (rub_os_area_size): ... to here.
38711 * include/grub/powerpc/ieee1275/ieee1275.h
38712 (grub_ieee1275_entry_fn): Export symbol.
38713 * include/grub/powerpc/ieee1275/init.h: New file.
38714 * include/grub/powerpc/libgcc.h: Likewise.
38715 * include/grub/cache.h: Likewise.
38716 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
38717 <hollis@penguinppc.org>.
38718 * kern/dl.c: Include <grub/cache.h>.
38719 (grub_dl_flush_cache): New function.
38720 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
38721 for this module.
38722 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
38723 (grub_console_init): Removed prototypes.
38724 (grub_machine_init): Don't initialize the modules anymore.
38725 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
38726 static.
38727 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
38728 Macro undef removed.
38729 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
38730 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
38731 relocation `R_PPC_REL32'. Return an error when the relocation is
38732 unknown.
38733 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
38734 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
38735 * util/misc.c (grub_arch_sync_caches): Likewise.
38736
38737 2004-12-19 Marco Gerards <metgerards@student.han.nl>
38738
38739 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
38740 `symlist.c', add `grubof_symlist.c'.
38741 (symlist.c): Variable removed.
38742 (grubof_HEADERS): Variable added.
38743 (grubof_symlist.c): New target.
38744 (kernel_syms.lst): Use `grubof_HEADERS' instead of
38745 `kernel_img_HEADERS'.
38746 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
38747 * kern/powerpc/dl.c: New file.
38748 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
38749 Function removed.
38750 (grub_arch_dl_relocate_symbols): Likewise.
38751 (grub_register_exported_symbols): Likewise.
38752
38753 2004-12-13 Marco Gerards <metgerards@student.han.nl>
38754
38755 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
38756 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
38757 to fail instead. Reported by Vincent Pelletier
38758 <subdino2004@yahoo.fr>.
38759
38760 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
38761 it is not allocated. Reported by Vincent Pelletier
38762 <subdino2004@yahoo.fr>.
38763
38764 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
38765 output so the output looks better.
38766
38767 2004-12-04 Marco Gerards <metgerards@student.han.nl>
38768
38769 Modulize the partition map support and add support for the amiga
38770 partition map.
38771
38772 * commands/ls.c: Include <grub/partition.h> instead of
38773 <grub/machine/partition.h>.
38774 * kern/disk.c: Likewise.
38775 * kern/rescue.c: Likewise.
38776 * loader/i386/pc/chainloader.c: Likewise.
38777 * normal/cmdline.c: Likewise.
38778 * kern/powerpc/ieee1275/init.c: Likewise.
38779 (grub_machine_init): Call `grub_pc_partition_map_init',
38780 `grub_amiga_partition_map_init' and
38781 `grub_apple_partition_map_init'.
38782 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
38783 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
38784 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
38785 `partition.h' and `pc_partition.h'.
38786 (grub_setup_SOURCES): Remove
38787 `disk/i386/pc/partition.c'. Add `kern/partition.c',
38788 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38789 (grub_emu_SOURCES): Likewise.
38790 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
38791 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
38792 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
38793 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38794 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
38795 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
38796 (grubof_SOURCES): Likewise.
38797 * disk/i386/pc/partition.c: File removed.
38798 * disk/powerpc/ieee1275/partition.c: Likewise.
38799 * include/grub/powerpc/ieee1275/partition.h: Likewise.
38800 * include/grub/i386/pc/partition.h: Likewise.
38801 * kern/partition.c: New file.
38802 * partmap/amiga.c: Likewise.
38803 * partmap/apple.c: Likewise.
38804 * partmap/pc.c: Likewise.
38805 * include/grub/partition.h: Likewise..
38806 * include/grub/pc_partition.h: Likewise.
38807 * util/grub-emu.c: Include <grub/partition.h> instead of
38808 <grub/machine/partition.h>.
38809 (main): Call `grub_pc_partition_map_init',
38810 `grub_amiga_partition_map_init' and
38811 `grub_apple_partition_map_init' and deinitialize afterwards.
38812 * util/i386/pc/biosdisk.c: Include `#include
38813 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38814 `<grub/machine/partition.h>'.
38815 * util/i386/pc/grub-setup.c: Likewise.
38816 * util/i386/pc/biosdisk.c: Likewise.
38817 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
38818 partition information in case of a PC partition.
38819 * util/i386/pc/grub-setup.c: Include `#include
38820 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
38821 `<grub/machine/partition.h>'.
38822 (setup): Only access the PC specific partition information in case
38823 of a PC partition.
38824
38825 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
38826
38827 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
38828 (grub_longjmp): Likewise.
38829 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
38830 20.
38831 * normal/powerpc/setjmp.S: New file.
38832 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
38833 `normal/powerpc/setjmp.S'.
38834 (grubof_CFLAGS): Add `-DGRUBOF'.
38835 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
38836 [GRUB_UTIL && !GRUBOF].
38837
38838 2004-11-16 Marco Gerards <metgerards@student.han.nl>
38839
38840 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
38841 property named `name'. Correctly handle the error returned by
38842 `grub_ieee1275_finddevice' if a device can not be opened.
38843
38844 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
38845
38846 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
38847 `actual' for negativity.
38848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
38849 kern/fshelp.c.
38850
38851 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38852
38853 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
38854 (PAGE_OFFSET): New macro.
38855 (CRTC_ADDR_PORT): Likewise.
38856 (CRTC_DATA_PORT): Likewise.
38857 (START_ADDR_HIGH_REGISTER): Likewise.
38858 (START_ADDR_LOW_REGISTER): Likewise.
38859 (GRAPHICS_ADDR_PORT): Likewise.
38860 (GRAPHICS_DATA_PORT): Likewise.
38861 (READ_MAP_REGISTER): Likewise.
38862 (INPUT_STATUS1_REGISTER): Likewise.
38863 (INPUT_STATUS1_VERTR_BIT): Likewise.
38864 (page): New variable.
38865 (wait_vretrace): New function.
38866 (set_read_map): Likewise.
38867 (set_start_address): Likewise.
38868 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
38869 the right page.
38870 (check_vga_mem): Take the page into account.
38871 (write_char): Likewise.
38872 (write_cursor): Likewise.
38873 (scroll_up): Likewise. Copy the page to the page that is not
38874 shown and switch between both pages.
38875 (grub_vga_putchar): Fix off by one error.
38876 (grub_vga_cls): Wait for the vertical retrace. Take the page into
38877 account.
38878
38879 2004-11-01 Marco Gerards <metgerards@student.han.nl>
38880
38881 Add support for iso9660 (including rockridge).
38882
38883 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38884 (iso9660_mod_SOURCES): New variable.
38885 (iso9660_mod_CFLAGS): Likewise.
38886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
38887 * include/grub/fs.h (grub_iso9660_init): New prototype.
38888 * util/grub-emu.c (main): Call `grub_iso9660_init'.
38889 * fs/iso9660.c: New file.
38890
38891 * include/grub/misc.h (grub_strncat): New prototype.
38892 * kern/misc.c (grub_strncat): New function.
38893
38894 * fs/hfs.c (grub_hfs_mount): Translate the error
38895 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
38896 * fs/jfs.c (grub_jfs_mount): Likewise.
38897 * fs/ufs.c (grub_ufs_mount): Likewise.
38898
38899 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
38900
38901 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
38902 which initialized BAT registers.
38903 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
38904 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38905 Move from here...
38906 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
38907 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
38908 ... to here.
38909 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
38910 (grub_mapclaim): Likewise.
38911 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
38912 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
38913 hand.
38914
38915 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
38916
38917 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
38918 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
38919 -ffreestanding and -msoft-float.
38920
38921 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
38922
38923 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
38924 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
38925 set in grub_ieee1275_flags.
38926
38927 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
38928
38929 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
38930 prototype.
38931 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
38932 grub_console_init first.
38933 Change the memory range used for grub_ieee1275_claim and
38934 grub_mm_init_region.
38935 Print an error message if the claim fails.
38936 Include <grub/misc.h>.
38937
38938 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
38939
38940 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
38941 Call grub_children_iterate for device nodes of type `scsi',
38942 `ide', or `ata'.
38943 (grub_ofdisk_open): Remove manual device alias resolution.
38944 Fix memory leak when device cannot be opened.
38945 * include/grub/powerpc/ieee1275/ieee1275.h
38946 (grub_children_iterate): New prototype.
38947 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
38948 New function.
38949 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38950 Return -1 if args.size was -1.
38951
38952 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38953
38954 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
38955 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
38956 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
38957 Open Firmware's memory for it; claim memory from _start to _end.
38958 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
38959 (_end): New extern.
38960 (_start): Zero BSS from __bss_start to _end.
38961 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38962 New extern.
38963 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
38964
38965 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
38966
38967 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
38968 -1 if args.base was -1.
38969
38970 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
38971
38972 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
38973 escape sequence instead of a literal ^L. Also call
38974 grub_ofconsole_gotoxy.
38975
38976 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
38977
38978 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
38979 void * arguments to grub_addr_t. All callers updated. Also make
38980 the `result' argument optional.
38981 (grub_ieee1275_release): change void * arguments to grub_addr_t.
38982 All callers updated.
38983
38984 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
38985
38986 * commands/ls.c (grub_ls_list_files): Use the string following the
38987 initial ')', if present, as the filesystem path.
38988 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
38989
38990 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
38991
38992 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
38993
38994 Make the source code of the menu interface more readable.
38995
38996 * normal/menu.c: Include grub/mm.h.
38997 (TERM_WIDTH): New macro.
38998 (TERM_HEIGHT): Likewise.
38999 (TERM_INFO_HEIGHT): Likewise.
39000 (TERM_MARGIN): Likewise.
39001 (TERM_SCROLL_WIDTH): Likewise.
39002 (TERM_TOP_BORDER_Y): Likewise.
39003 (TERM_LEFT_BORDER_X): Likewise.
39004 (TERM_BORDER_WIDTH): Likewise.
39005 (TERM_MESSAGE_HEIGHT): Likewise.
39006 (TERM_BORDER_HEIGHT): Likewise.
39007 (TERM_NUM_ENTRIES): Likewise.
39008 (TERM_FIRST_ENTRY_Y): Likewise.
39009 (TERM_ENTRY_WIDTH): Likewise.
39010 (TERM_CURSOR_X): Likewise.
39011 (draw_border): Use macros instead of magic numbers.
39012 (print_entry): Likewise.
39013 (print_entries): Likewise.
39014 (run_menu): Likewise. Also, handle the key 'e'.
39015 (run_menu_entry): Ignore empty command lines.
39016 (print_message): Added a new argument EDIT. If EDIT is true,
39017 print a different message.
39018 (init_page): Likewise.
39019 (edit_menu_entry): New function. Not implemented yet.
39020
39021 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39022
39023 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39024 can be loaded from normal mode.
39025
39026 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39027 `multiboot.mod'.
39028 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39029 (multiboot_mod_CFLAGS): New variables.
39030 * loader/i386/pc/linux_normal.c: New file.
39031 * loader/i386/pc/multiboot_normal.c: Likewise.
39032
39033 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39034 attribute `unused'.
39035
39036 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39037 `fdiro' to read the mode information from instead of `diro'.
39038
39039 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39040 looking up a symlink.
39041
39042 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39043 macro.
39044 * normal/command.c (grub_command_execute): Don't parse the
39045 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39046 flags of the command.
39047
39048 * normal/menu.c (grub_menu_run): Fix typo.
39049
39050 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39051
39052 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39053
39054 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39055 `y + 1' instead of `y - 1'.
39056
39057 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39058
39059 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39060
39061 From Hollis Blanchard <hollis@penguinppc.org>:
39062 * kern/misc.c (memmove): New alias for grub_memmove.
39063 (memcmp): New alias for grub_memcmp.
39064 (memset): New alias for grub_memset.
39065 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39066 Change "int handle" to "grub_ieee1275_phandle_t handle".
39067 * include/grub/powerpc/ieee1275/ieee1275.h
39068 (grub_ieee1275_get_property): Likewise.
39069
39070 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39071
39072 Added normal mode command `chainloader' as module chain.mod, which
39073 depends on normal.mod and _chain.mod.
39074
39075 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39076 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39077 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39078 Deleted prototype.
39079 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39080 but arguments parsing moved to ...
39081 (grub_chainloader_cmd): ... here. New function.
39082 * include/grub/i386/pc/chainloader.h: New file.
39083 * loader/i386/pc/chainloader_normal.c: Likewise.
39084
39085 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39086
39087 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39088 (grub_mkimage_LDFLAGS): Likewise.
39089 (grub_emu_SOURCES): Likewise.
39090 (kernel_img_HEADERS): Added fshelp.h.
39091 * fs/ext2.c: Include <grub/fshelp.h>.
39092 (FILETYPE_REG): New macro.
39093 (FILETYPE_INO_REG): Likewise.
39094 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39095 Changed all users.
39096 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39097 all users.
39098 (grub_fshelp_node): New struct.
39099 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39100 to a pointer.
39101 (grub_ext2_get_file_block): Removed function.
39102 (grub_ext2_read_block): New function.
39103 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39104 This function was written.
39105 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39106 (grub_ext2_find_file): Removed function.
39107 (grub_ext2_read_symlink): New function.
39108 (grub_ext2_iterate_dir): Likewise.
39109 (grub_ext2_open): Rewritten.
39110 (grub_ext2_dir): Rewritten.
39111 * include/grub/fshelp.h: New file.
39112 * fs/fshelp.c: Likewise.
39113
39114 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39115
39116 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39117 (print_message): Add a missing newline.
39118 (run_menu): Added timeout support.
39119 (run_menu_entry): New local function.
39120 (grub_menu_run): Added support for booting.
39121
39122 * kern/loader.c (grub_loader_is_loaded): New function.
39123
39124 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39125 (grub_get_rtc): Exported.
39126
39127 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39128 (grub_get_rtc): Exported.
39129
39130 * include/grub/normal.h (struct grub_command_list): Remove
39131 constant from the member `command'.
39132
39133 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39134
39135 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39136
39137 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39138
39139 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39140
39141 Add support for the JFS filesystem.
39142
39143 * fs/jfs.c: New file.
39144 * include/grub/fs.h (grub_jfs_init): New prototype.
39145 (grub_jfs_fini): New prototype.
39146 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39147 (grub_emu_SOURCES): Likewise.
39148 (pkgdata_MODULES): Add jfs.mod.
39149 (jfs_mod_SOURCES): New variable.
39150 (jfs_mod_CFLAGS): Likewise.
39151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39152 (grubof_SOURCES): Likewise.
39153 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39154
39155 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39156 endian to the host endian.
39157 (grub_fat_utf16_to_utf8): Move function from there...
39158 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39159 the endianness of the source string anymore.
39160 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39161
39162 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39163
39164 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39165 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39166 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39167 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39168
39169 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39170 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39171 for `node_found' and `it_dir'.
39172 (grub_hfs_dir): Add prototype for `dir_hook'.
39173
39174 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39175 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39176 and `indir32' to silence a gcc warning.
39177
39178 * include/grub/fs.h (grub_hfs_init): New prototype.
39179 (grub_hfs_fini): Likewise.
39180
39181
39182 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39183
39184 Each disk device has its own id now. This is useful to make use
39185 of multiple disk devices.
39186
39187 * include/grub/disk.h (grub_disk_dev_id): New enum.
39188 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39189 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39190
39191 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39192 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39193
39194 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39195 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39196
39197 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39198 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39199
39200 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39201 "id" which is used by the cache manager.
39202
39203 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39204 of just "GRUB".
39205
39206 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39207
39208 * fs/hfs.c: New file.
39209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39210 (grub_emu_SOURCES): Likewise.
39211 (pkgdata_MODULES): Add hfs.mod.
39212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39213 (grubof_SOURCES): Likewise.
39214 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39215
39216 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39217 * kern/misc.c (grub_strncasecmp): Add function.
39218
39219 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39220
39221 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39222 with parentheses.
39223
39224 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39225 (grub_ext2_dir): In case the directory entry type is unknown, read
39226 it from the inode.
39227
39228 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39229
39230 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39231 grub_load_linux instead of grub_rescue_cmd_linux as second
39232 argument of grub_rescue_register_command.
39233
39234 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39235
39236 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39237
39238 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39239 function.
39240 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39241 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39242 `loader/powerpc/ieee1275/linux.c',
39243 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39244 * include/grub/powerpc/ieee1275/ieee1275.h
39245 (grub_ieee1275_release): New prototype.
39246 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39247 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39248 normal, boot, linux and linux_normal.
39249 * loader/powerpc/ieee1275/linux.c: New file.
39250 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39251
39252 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39253
39254 * normal/arg.c (grub_arg_parse): Correct error handling after
39255 reallocating the argumentlist (check if `argl' is not null instead
39256 of checking if `args' is not null).
39257 * kern/mm.c (grub_realloc): Return the same pointer when using the
39258 same region, instead of returning the header address.
39259
39260 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39261
39262 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39263 one block instead of two when looking for the initial partition.
39264 (grub_partition_probe): Initialize the local variable `p' with 0.
39265 Use base 10 for the grub_strtoul call.
39266 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39267 need for one local variable.
39268 (grub_strtoul): Don't add the new value to `num', instead of that
39269 just assign it.
39270
39271 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39272
39273 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39274 (pxeboot_img_SOURCES): New variable.
39275 (pxeboot_img_ASFLAGS): Likewise.
39276 (pxeboot_img_LDFLAGS): Likewise.
39277 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39278 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39279 <lode_leroy@hotmail.com>.
39280
39281 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39282
39283 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39284 there was no input.
39285
39286 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39287
39288 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39289 the history buffer logic.
39290
39291 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39292
39293 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39294 (FILETYPE_INO_SYMLINK): New macros.
39295 (grub_ext2_find_file): Check if the node is a directory using the
39296 inode stat information instead of using the filetype in the
39297 dirent. Exclude the first character of an absolute symlink.
39298 (grub_ext2_dir): Mask out the filetype part of the mode member of
39299 the inode.
39300
39301 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39302
39303 Add support for UFS version 1 and 2. Add support for the minix
39304 filesystem version 1 and 2, both the variants with 14 and 30 long
39305 filenames.
39306
39307 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39308 fs/minix.c.
39309 (grub_emu_SOURCES): Likewise.
39310 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39311 (ufs_mod_SOURCES): New variable.
39312 (ufs_mod_CFLAGS): Likewise.
39313 (minix_mod_SOURCES): Likewise.
39314 (minix_mod_CFLAGS): Likewise.
39315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39316 fs/minix.c.
39317 (grubof_SOURCES): Likewise.
39318 * fs/ufs.c: New file.
39319 * fs/minix.c: New file.
39320 * include/grub/fs.h (grub_ufs_init): New prototype.
39321 (grub_ufs_fini): Likewise.
39322 (grub_minix_init): Likewise.
39323 (grub_minix_fini): Likewise.
39324 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39325 minix fs.
39326
39327 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
39328
39329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
39330 commands/ls.c, commands/terminal.c, commands/boot.c,
39331 commands/cmp.c and commands/cat.c.
39332 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
39333
39334 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
39335 "env.h"
39336
39337 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39338
39339 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
39340 and grub_, respectively. Because the conversion is trivial and
39341 mechanical, I omit the details here. Please refer to the CVS
39342 if you need more information.
39343
39344 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39345
39346 * include/pupa: Renamed to ...
39347 * include/grub: ... this.
39348 * util/i386/pc/pupa-mkimage.c: Renamed to ...
39349 * util/i386/pc/grub-mkimage.c: ... this.
39350 * util/i386/pc/pupa-setup.c: Renamed to ...
39351 * util/i386/pc/grub-setup.c: ... this.
39352 * util/pupa-emu.c: Renamed to ...
39353 * util/grub-emu.c: ... this.
39354
39355 2004-03-29 Marco Gerards <metgerards@student.han.nl>
39356
39357 Add support for the newworld apple macintosh (PPC). This has been
39358 tested on the powerbook 2000 only. It only adds support for
39359 generic ieee1275 functions, console and disk support. This should
39360 be easy to port to other architectures with support for Open
39361 Firmware.
39362
39363 * configure.ac: Accept the powerpc as host_cpu. In the case of
39364 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
39365 specific tests are only executed while building for the i386.
39366 Inverse test for crosscompile.
39367 * genmk.rb (Utility): Allow assembler files.
39368 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
39369 * conf/powerpc-ieee1275.rmk: New file.
39370 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
39371 * disk/powerpc/ieee1275/partition.c: Likewise.
39372 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
39373 * include/pupa/powerpc/ieee1275/console.h: Likewise.
39374 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
39375 * include/pupa/powerpc/ieee1275/time.h: Likewise.
39376 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
39377 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
39378 * include/pupa/powerpc/ieee1275/loader.h
39379 * include/pupa/powerpc/setjmp.h: Likewise.
39380 * include/pupa/powerpc/types.h: Likewise.
39381 * kern/powerpc/ieee1275/init.c: Likewise.
39382 * kern/powerpc/ieee1275/openfw.c: Likewise.
39383 * term/powerpc/ieee1275/ofconsole.c: Likewise.
39384
39385 These files were written by Johan Rydberg
39386 (jrydberg@night.trouble.net) and I only modified them slightly.
39387
39388 * boot/powerpc/ieee1275/cmain.c: New file.
39389 * boot/powerpc/ieee1275/crt0.S: Likewise.
39390 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
39391 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
39392
39393 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
39394
39395 * Makefile.in: Update copyright.
39396 * genmodsrc.sh: Likewise.
39397 * gensymlist.sh: Likewise.
39398 * term/i386/pc/vga.c: Indent correctly.
39399
39400 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
39401 bugreporting address.
39402 * util/i386/pc/pupa-setup.c (usage): Likewise,
39403 (main): Call pupa_ext2_init and pupa_ext2_fini.
39404
39405 * fs/fat.c (log2): Renamed to ...
39406 (fat_log2): ... this.
39407 All callers changed.
39408 * kern/misc.c (memcpy): Alias to pupa_memmove.
39409 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
39410 lvalue cast.
39411 * util/console.c (pupa_ncurses_fini): Return 0.
39412
39413 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
39414 Move fail label here.
39415 [__GNU__]: Don't warn when using stat.
39416 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
39417 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
39418 long int. Use strtol instead of strtoul.
39419
39420 2004-03-14 Marco Gerards <metgerards@student.han.nl>
39421
39422 * commands/boot.c: New file.
39423 * commands/cat.c: Likewise.
39424 * commands/cmp.c: Likewise.
39425 * commands/ls.c: Likewise.
39426 * commands/terminal.c: Likewise.
39427 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
39428 (pupa_register_command): Changed interface to match the new
39429 argument parser.
39430 (pupa_command_execute): Changed (almost rewritten) so it uses
39431 pupa_split_command. Added support for setting variables using the
39432 syntax `foo=bar'.
39433 (rescue_command): Changed to work with the new argument parser.
39434 (terminal_command): Moved from here to commands/terminal.c.
39435 (set_command): New function.
39436 (unset_command): New function.
39437 (insmod_command): New function.
39438 (rmmod_command): New function.
39439 (lsmod_command): New function.
39440 (pupa_command_init): Don't initialize the command terminal
39441 anymore. Initialize the commands set, unset, insmod, rmmod and
39442 lsmod.
39443 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
39444 (kernel_img_HEADERS): Add arg.h and env.h.
39445 (pupa_mkimage_LDFLAGS): Add kern/env.c.
39446 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
39447 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
39448 normal/arg.c.
39449 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
39450 terminal.mod.
39451 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
39452 (boot_mod_SOURCES): New variable.
39453 (terminal_mod_SOURCES): Likewise.
39454 (ls_mod_SOURCES): Likewise.
39455 (cmp_mod_SOURCES): Likewise.
39456 (cat_mod_SOURCES): Likewise.
39457
39458 * normal/arg.c: New file.
39459 * kern/env.c: Likewise.
39460 * include/pupa/arg.h: Likewise.
39461 * include/pupa/env.h: Likewise.
39462 * font/manager.c (font_command): Changed to match argument parsing
39463 interface changes.
39464 (PUPA_MOD_INIT): Likewise.
39465 * hello/hello.c (pupa_cmd_hello): Likewise.
39466 (PUPA_MOD_INIT): Likewise.
39467 * include/pupa/disk.h: Include <pupa/device.h>.
39468 (pupa_print_partinfo): New prototype.
39469 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
39470 (pupa_dl_get_prefix): Likewise.
39471 * include/pupa/misc.h: Include <pupa/err.h>.
39472 (pupa_isgraph): New prototype.
39473 (pupa_isdigit): Likewise.
39474 (pupa_split_cmdline): Likewise.
39475 * include/pupa/normal.h: Include <pupa/arg.h>.
39476 (pupa_command): Changed the prototype of the member `func' to
39477 match the argument parsing interface. Added member `options'.
39478 (pupa_register_command): Updated to match function.
39479 (pupa_arg_parse): New prototype.
39480 (pupa_hello_init) [PUPA_UTIL]: New prototype.
39481 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
39482 (pupa_ls_init) [PUPA_UTIL]: Likewise.
39483 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
39484 (pupa_cat_init) [PUPA_UTIL]: Likewise.
39485 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
39486 (pupa_boot_init) [PUPA_UTIL]: Likewise.
39487 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
39488 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
39489 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
39490 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
39491 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
39492 * kern/disk.c: Include <pupa/file.h>.
39493 (pupa_print_partinfo): New function.
39494 * kern/dl.c: Include <pupa/env.h>.
39495 (pupa_dl_dir): Variable removed.
39496 (pupa_dl_load): Use the environment variable `prefix' instead of
39497 the variable pupa_dl_dir.
39498 (pupa_dl_set_prefix): Function removed.
39499 (pupa_dl_get_prefix): Likewise.
39500 * kern/i386/pc/init.c: Include <pupa/env.h>.
39501 (pupa_machine_init): Use the environment variable `prefix' instead of
39502 using pupa_dl_set_prefix to set the prefix.
39503 * kern/main.c: Include <pupa/env.h>.
39504 (pupa_set_root_dev): Use the environment variable `prefix' instead of
39505 using pupa_dl_get_prefix to get the prefix.
39506 * kern/misc.c: Include <pupa/env.h>.
39507 (pupa_isdigit): New function.
39508 (pupa_isgraph): Likewise.
39509 (pupa_ftoa): Likewise.
39510 (pupa_vsprintf): Added support for printing values of the type
39511 `double'. Make it possible to format variable output when using
39512 formatting like `%1.2%f'.
39513 (pupa_split_cmdline): New function.
39514 * kern/rescue.c: Include <pupa/env.h>.
39515 (next_word): Removed function.
39516 (pupa_rescue_cmd_prefix): Likewise.
39517 (pupa_rescue_cmd_set): New function.
39518 (pupa_rescue_cmd_unset): New function.
39519 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
39520 split the command line instead of splitting it here. Added
39521 support for setting variables using the syntax `foo=bar'. Don't
39522 initialize the prefix command anymore. Initialized the set and
39523 unset commands.
39524 * normal/cmdline.c: Include <pupa/env.h>.
39525 (pupa_tab_complete): Added prototypes for print_simple_completion,
39526 print_partition_completion, add_completion, iterate_commands,
39527 iterate_dev, iterate_part and iterate_dir. Moved code to print
39528 partition information from here to kern/disk.c.
39529 (pupa_cmdline_run): Don't check if the function exists anymore.
39530 * normal/main.c: Include <pupa/env.h>.
39531 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
39532 instead of using pupa_dl_get_prefix to get the prefix.
39533 * term/i386/pc/vga.c: Include <pupa/arg.h>.
39534 (check_vga_mem): Cast pointers to `void *' to silence a gcc
39535 warning.
39536 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
39537 (pupa_vga_setcolor): Declare unused variables with `__attribute__
39538 ((unused))' to silence a gcc warning.
39539 (pupa_vga_setcolor): Likewise.
39540 (debug_command): Changed to match argument parsing
39541 interface changes.
39542 * util/pupa-emu.c: Include <pupa/env.h>.
39543 (options): Added 0's for unused fields to silence a gcc warning.
39544 (argp): Likewise.
39545 (main): Use the environment variable `prefix' instead of using
39546 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
39547 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
39548 and terminal.
39549
39550 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
39551 * util/misc.c: Include <malloc.h>.
39552 (pupa_malloc): Rewritten so errors are correctly reported.
39553 (pupa_realloc): Likewise.
39554 (pupa_memalign): Likewise.
39555 (pupa_mm_init_region): Declare unused variables with
39556 `__attribute__ ((unused))' to silence a gcc warning.
39557 * normal/i386/setjmp.S: Remove tab at the end of the file to
39558 silence a gcc warning.
39559 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
39560 variables with `__attribute__ ((unused))' to silence a gcc
39561 warning.
39562 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
39563 local variable i unsigned to silence a gcc warning.
39564
39565 * kern/term.c: Include <pupa/misc.h>.
39566 (pupa_more_lines): New variable.
39567 (pupa_more): Likewise.
39568 (pupa_putcode): When the pager is active pause at the end of every
39569 screen.
39570 (pupa_set_more): New function.
39571 * include/pupa/term.h (pupa_set_more): New prototype.
39572
39573
39574 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
39575
39576 Now this project is GRUB 2 rather than PUPA. The location of
39577 the CVS repository was moved to GRUB's.
39578
39579 * configure.ac: Use bug-grub as the reporting address.
39580 Use GRUB instead of PUPA.
39581 Change the version number to 1.90.
39582
39583 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
39584
39585 * genkernsyms.sh: Updated copyright information.
39586 * genmk.rb: Likewise.
39587 * genmodsrc.sh: Likewise.
39588 * gensymlist.sh: Likewise.
39589 * boot/i386/pc/boot.S: Likewise.
39590 * boot/i386/pc/diskboot.S: Likewise.
39591 * disk/i386/pc/biosdisk.c: Likewise.
39592 * disk/i386/pc/partition.c: Likewise.
39593 * font/manager.c: Likewise.
39594 * fs/ext2.c: Likewise.
39595 * fs/fat.c: Likewise.
39596 * include/pupa/boot.h: Likewise.
39597 * include/pupa/device.h: Likewise.
39598 * include/pupa/disk.h: Likewise.
39599 * include/pupa/dl.h: Likewise.
39600 * include/pupa/elf.h: Likewise.
39601 * include/pupa/err.h: Likewise.
39602 * include/pupa/file.h: Likewise.
39603 * include/pupa/font.h: Likewise.
39604 * include/pupa/fs.h: Likewise.
39605 * include/pupa/kernel.h: Likewise.
39606 * include/pupa/loader.h: Likewise.
39607 * include/pupa/misc.h: Likewise.
39608 * include/pupa/mm.h: Likewise.
39609 * include/pupa/net.h: Likewise.
39610 * include/pupa/normal.h: Likewise.
39611 * include/pupa/rescue.h: Likewise.
39612 * include/pupa/setjmp.h: Likewise.
39613 * include/pupa/symbol.h: Likewise.
39614 * include/pupa/term.h: Likewise.
39615 * include/pupa/types.h: Likewise.
39616 * include/pupa/i386/setjmp.h: Likewise.
39617 * include/pupa/i386/types.h: Likewise.
39618 * include/pupa/i386/pc/biosdisk.h: Likewise.
39619 * include/pupa/i386/pc/boot.h: Likewise.
39620 * include/pupa/i386/pc/console.h: Likewise.
39621 * include/pupa/i386/pc/init.h: Likewise.
39622 * include/pupa/i386/pc/kernel.h: Likewise.
39623 * include/pupa/i386/pc/linux.h: Likewise.
39624 * include/pupa/i386/pc/loader.h: Likewise.
39625 * include/pupa/i386/pc/memory.h: Likewise.
39626 * include/pupa/i386/pc/multiboot.h: Likewise.
39627 * include/pupa/i386/pc/partition.h: Likewise.
39628 * include/pupa/i386/pc/time.h: Likewise.
39629 * include/pupa/i386/pc/vga.h: Likewise.
39630 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
39631 * include/pupa/util/getroot.h: Likewise.
39632 * include/pupa/util/misc.h: Likewise.
39633 * include/pupa/util/resolve.h: Likewise.
39634 * kern/device.c: Likewise.
39635 * kern/disk.c: Likewise.
39636 * kern/dl.c: Likewise.
39637 * kern/err.c: Likewise.
39638 * kern/file.c: Likewise.
39639 * kern/fs.c: Likewise.
39640 * kern/loader.c: Likewise.
39641 * kern/main.c: Likewise.
39642 * kern/misc.c: Likewise.
39643 * kern/mm.c: Likewise.
39644 * kern/rescue.c: Likewise.
39645 * kern/term.c: Likewise.
39646 * kern/i386/dl.c: Likewise.
39647 * kern/i386/pc/init.c: Likewise.
39648 * kern/i386/pc/lzo1x.S: Likewise.
39649 * kern/i386/pc/startup.S: Likewise.
39650 * loader/i386/pc/chainloader.c: Likewise.
39651 * loader/i386/pc/linux.c: Likewise.
39652 * loader/i386/pc/multiboot.c: Likewise.
39653 * normal/cmdline.c: Likewise.
39654 * normal/command.c: Likewise.
39655 * normal/main.c: Likewise.
39656 * normal/menu.c: Likewise.
39657 * normal/i386/setjmp.S: Likewise.
39658 * term/i386/pc/console.c: Likewise.
39659 * term/i386/pc/vga.c: Likewise.
39660 * util/console.c: Likewise.
39661 * util/genmoddep.c: Likewise.
39662 * util/misc.c: Likewise.
39663 * util/pupa-emu.c: Likewise.
39664 * util/resolve.c: Likewise.
39665 * util/unifont2pff.rb: Likewise.
39666 * util/i386/pc/biosdisk.c: Likewise.
39667 * util/i386/pc/getroot.c: Likewise.
39668 * util/i386/pc/pupa-mkimage.c: Likewise.
39669 * util/i386/pc/pupa-setup.c: Likewise.
39670
39671 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
39672
39673 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
39674 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
39675 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
39676 reading and reset it after reading.
39677 (pupa_ext2_close): Return PUPA_ERR_NONE.
39678
39679 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
39680 Correct value.
39681 (struct linux_kernel_header): Add kernel_version and
39682 initrd_addr_max.
39683 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
39684 pupa_file_read succeeds.
39685 (pupa_rescue_cmd_initrd): Implement.
39686
39687 2003-12-03 Marco Gerards <metgerards@student.han.nl>
39688
39689 * fs/ext2.c (pupa_ext2_label): New function.
39690 (pupa_ext2_fs): Added label.
39691 * fs/fat.c (pupa_fat_label): New function.
39692 (pupa_fat_fs): Added label.
39693 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
39694
39695 * kern/misc.c (pupa_strndup): New function.
39696 * include/pupa/misc.h (pupa_strndup): New prototype.
39697
39698 * include/pupa/normal.h: Include <pupa/err.h>.
39699 (pupa_set_history): New prototype.
39700 (pupa_iterate_commands): New prototype.
39701 * normal/cmdline.c: Include <pupa/machine/partition.h>,
39702 <pupa/disk.h>, <pupa/file.h>.
39703 (hist_size): New variable.
39704 (hist_lines): Likewise.
39705 (hist_end): Likewise.
39706 (hist_used): Likewise.
39707 (pupa_set_history): New function.
39708 (pupa_history_get): Likewise.
39709 (pupa_history_add): Likewise.
39710 (pupa_history_replace): Likewise.
39711 (pupa_tab_complete): Likewise.
39712 (pupa_cmdline_run): Added tab completion and history buffer. Tab
39713 completion shows partitionnames while completing partitions, this
39714 feature was suggested by Jeff Bailey.
39715 * normal/command.c (pupa_iterate_commands): New function.
39716 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
39717 (pupa_normal_init): Initialize history buffer.
39718 (PUPA_MOD_INIT): Likewise.
39719 (pupa_normal_fini): Free the history buffer.
39720 (PUPA_MOD_FINI): Likewise.
39721
39722 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
39723 key.
39724
39725 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
39726 * configure.ac [i386]: Check for regparam bug.
39727 (NESTED_FUNC_ATTR) [! i386]: Defined.
39728
39729 2003-11-17 Marco Gerards <metgerards@student.han.nl>
39730
39731 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
39732 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
39733 (pupa_emu_SOURCES): New variable.
39734 (pupa_emu_LDFLAGS): Likewise.
39735 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
39736 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
39737 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
39738 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39739 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
39740 (pupa_jmp_buf): New typedef.
39741 (pupa_setjmp) [PUPA_UTIL]: New macro.
39742 (pupa_longjmp) [PUPA_UTIL]: Likewise.
39743 * include/pupa/term.h (struct pupa_term): New member `refresh'.
39744 (pupa_refresh): New prototype.
39745 * include/pupa/util/getroot.h: New file.
39746 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
39747 it.
39748 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
39749 (pupa_rescue_cmd_cat): Likewise.
39750 (pupa_rescue_cmd_ls): Likewise.
39751 (pupa_rescue_cmd_testload): Likewise.
39752 (pupa_rescue_cmd_lsmod): Likewise.
39753 * normal/cmdline.c (pupa_cmdline_get): Likewise.
39754 * normal/menu.c (run_menu): Likewise.
39755 * kern/term.c (pupa_cls): Likewise.
39756 (pupa_refresh): New function.
39757 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
39758 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
39759 * util/console.c: New file.
39760
39761 * util/i386/pc/getroot.c: New file.
39762 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
39763 (pupa_putchar): New function.
39764 (pupa_refresh): Likewise.
39765 (xgetcwd): Function moved to ...
39766 (strip_extra_slashes): Likewise.
39767 (get_prefix): Likewise.
39768 * util/i386/pc/getroot.c: ... here.
39769 (find_root_device): Function moved and renamed to...
39770 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
39771 Changed all callers.
39772 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
39773 and renamed to...
39774 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
39775 Changed all callers.
39776 * util/misc.c (pupa_memalign): New function.
39777 (pupa_mm_init_region): Likewise.
39778 (pupa_register_exported_symbols): Likewise.
39779 (pupa_putchar): Function removed.
39780 * util/pupa-emu.c: New file.
39781
39782 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
39783
39784 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
39785 (_multiboot_mod_SOURCES): New variable.
39786 (_multiboot_mod_CFLAGS): Likewise.
39787 * loader/i386/pc/multiboot.c: New file.
39788 * include/pupa/i386/pc/multiboot.h: Likewise.
39789 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
39790 (pupa_multiboot_real_boot): New function.
39791 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
39792 (pupa_multiboot_real_boot): New prototype.
39793 (pupa_rescue_cmd_multiboot): Likewise
39794 (pupa_rescue_cmd_module): Likewise.
39795
39796 * kern/loader.c (pupa_loader_set): Continue when
39797 pupa_loader_unload_func() fails.
39798 (pupa_loader_unset): New function.
39799 * include/pupa/loader.h (pupa_loader_unset): New prototype.
39800
39801 * kern/misc.c (pupa_stpcpy): New function.
39802 * include/pupa/misc.h (pupa_stpcpy): New prototype.
39803
39804 2003-11-12 Marco Gerards <metgerards@student.han.nl>
39805
39806 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
39807 for available extensions.
39808
39809 * include/pupa/i386/pc/time.h: New file.
39810 * kern/disk.c: Include <pupa/machine/time.h>.
39811 (PUPA_CACHE_TIMEOUT): New macro.
39812 (pupa_last_time): New variable.
39813 (pupa_disk_open): Flush the cache when there was a timeout.
39814 (pupa_disk_close): Reset the timer.
39815 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
39816 pupa_currticks.
39817 * util/misc.c: Include <sys/times.h>
39818 (pupa_get_rtc): New function.
39819
39820 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
39821
39822 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
39823 as blocks.
39824 (pupa_ext2_get_file_block): Use blocks member.
39825
39826 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
39827 first block. Return -1 instead of pupa_errno on error.
39828
39829 2003-10-27 Marco Gerards <metgerards@student.han.nl>
39830
39831 * README: In the pupa-mkimage example use _chain instead of chain
39832 and ext2 instead of fat.
39833 * TODO: Replace ext2fs with jfs as an example. Add an item for
39834 adding journal playback for ext2fs.
39835 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
39836 (pkgdata_MODULES): Added ext2.mod.
39837 (ext2_mod_SOURCES): New variable.
39838 (ext2_mod_CFLAGS): Likewise.
39839 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
39840 * include/pupa/misc.h (pupa_strncpy): New prototype.
39841 (pupa_strcat): Likewise.
39842 (pupa_strncmp): Likewise.
39843 * kern/misc.c (pupa_strcat): Enable function.
39844 (pupa_strncpy): New function.
39845 (pupa_strncmp): Likewise.
39846 * fs/ext2.c: New file.
39847
39848 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
39849 when the read failed before retrying.
39850 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
39851 (_FILE_OFFSET_BITS): Likewise.
39852 * configure.ac: Added AC_SYS_LARGEFILE.
39853
39854 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39855
39856 * genmk.rb (PModule#rule): Make sure to get only symbol names
39857 from the output of nm.
39858 Reported by Robert Millan <rmh.grub@aybabtu.com>.
39859
39860 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
39861
39862 I forgot to check in these changes for a long time. This adds
39863 incomplete support for VGA console, and this is still very
39864 buggy. Also, a lot of consideration is required for I18N,
39865 UNICODE, and VGA font issues. Therefore, assume that this is
39866 such that "better than nothing".
39867
39868 * font/manager.c: New file.
39869 * include/pupa/font.h: Likewise.
39870 * include/pupa/i386/pc/vga.h: Likewise.
39871 * term/i386/pc/vga.c: Likewise.
39872 * util/unifont2pff.rb: Likewise.
39873
39874 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
39875 (pkgdata_MODULES): Added vga.mod and font.mod.
39876 (vga_mod_SOURCES): New variables.
39877 (vga_mod_CFLAGS): Likewise.
39878 (font_mod_SOURCES): Likewise.
39879 (font_mod_CFLAGS): Likewise.
39880
39881 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
39882
39883 * include/pupa/term.h: Include pupa/err.h.
39884 (struct pupa_term): Added init and fini.
39885 Changed the argument of putchar to pupa_uint32_t.
39886
39887 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
39888 (pupa_console_real_putchar): New prototype.
39889 (pupa_console_putchar): Removed.
39890 (pupa_console_checkkey): Exported.
39891 (pupa_console_getkey): Likewise.
39892
39893 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
39894 characters.
39895
39896 * kern/term.c (pupa_term_set_current): Rewritten.
39897 (pupa_putchar): Likewise.
39898 (pupa_putcode): New function.
39899
39900 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
39901 (pupa_console_real_putchar): ... this.
39902 (pupa_vga_set_mode): New function.
39903 (pupa_vga_get_font): Likewise.
39904
39905 * normal/command.c: Include pupa/term.h.
39906 (terminal_command): New function.
39907 (pupa_command_init): Register the command "terminal".
39908
39909 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
39910 (DISP_UP): Likewise.
39911 (DISP_RIGHT): Likewise.
39912 (DISP_DOWN): Likewise.
39913 (DISP_HLINE): Likewise.
39914 (DISP_VLINE): Likewise.
39915 (DISP_UL): Likewise.
39916 (DISP_UR): Likewise.
39917 (DISP_LL): Likewise.
39918 (DISP_LR): Likewise.
39919
39920 * term/i386/pc/console.c (pupa_console_putchar): New function.
39921
39922 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
39923
39924 * util/resolve.c (pupa_util_resolve_dependencies): BUG
39925 FIX. Reverse the path_list.
39926
39927 * include/pupa/normal.h: Export pupa_register_command and
39928 pupa_unregister_command.
39929
39930 * hello/hello.c (pupa_cmd_hello): New module.
39931 * conf/i386-pc.rmk: Added hello.mod.
39932
39933 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
39934
39935 * kern/i386/pc/lzo1x.S: New file.
39936
39937 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
39938 (compress_kernel): New variable.
39939 (generate_image): Heavily modified to support compressing a
39940 large part of the core image.
39941
39942 * util/misc.c (pupa_util_read_image): Fix a file descriptor
39943 leak.
39944 (pupa_util_load_image): New function.
39945
39946 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
39947 (pupa_compressed_size): New variable.
39948 (codestart): Enable Gate A20 here.
39949 Decompress the compressed part of the core image.
39950 Rearrange the code to put functions and variables which are
39951 required for initialization in the non-compressed part.
39952 Include lzo1x.S.
39953
39954 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
39955 here.
39956
39957 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
39958
39959 * include/pupa/i386/pc/kernel.h
39960 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
39961 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
39962 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
39963 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
39964 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
39965
39966 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
39967
39968 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
39969 (Utility#rule): Likewise.
39970
39971 * configure.ac: Check if LZO is available.
39972
39973 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
39974
39975 * include/pupa/normal.h: New file.
39976 * include/pupa/setjmp.h: Likewise.
39977 * include/pupa/i386/setjmp.h: Likewise.
39978 * normal/cmdline.c: Likewise.
39979 * normal/command.c: Likewise.
39980 * normal/main.c: Likewise.
39981 * normal/menu.c: Likewise.
39982 * normal/i386/setjmp.S: Likewise.
39983
39984 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
39985 (pupa_rescue_cmd_initrd): Likewise.
39986
39987 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
39988 Likewise.
39989
39990 * kern/i386/pc/startup.S (translation_table): New variable.
39991 (translate_keycode): New function.
39992 (pupa_console_getkey): Call translate_keycode.
39993
39994 * kern/rescue.c (attempt_normal_mode): New function.
39995 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
39996 it failed, print a message.
39997
39998 * kern/mm.c (pupa_real_malloc): Print more information when a
39999 free magic is broken.
40000 (pupa_free): If the first free header is not free actually, set
40001 it to P.
40002
40003 * kern/main.c (pupa_load_normal_mode): Just load the module
40004 "normal".
40005 (pupa_main): Don't print the message
40006 "Entering into rescue mode..." here.
40007
40008 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40009 Declared.
40010 (pupa_rescue_cmd_initrd): Likewise.
40011 (pupa_rescue_cmd_initrd): Likewise.
40012
40013 * include/pupa/symbol.h (FUNCTION): Specify the type.
40014 (VARIABLE): Likewise.
40015
40016 * include/pupa/err.h (pupa_err_t): Added
40017 PUPA_ERR_UNKNOWN_COMMAND.
40018
40019 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40020 (pupa_dl_get_prefix): Likewise.
40021
40022 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40023 Added _chain.mod and _linux.mod instead of chain.mod and
40024 linux.mod.
40025 (chain_mod_SOURCES): Renamed to ...
40026 (_chain_mod_SOURCES): ... this.
40027 (chain_mod_CFLAGS): Renamed to ...
40028 (_chain_mod_CFLAGS): ... this.
40029 (linux_mod_SOURCES): Renamed to ...
40030 (_linux_mod_SOURCES): ... this.
40031 (linux_mod_CFLAGS): Renamed to ...
40032 (_linux_mod_CFLAGS): ... this.
40033 (normal_mod_SOURCES): New variable.
40034 (normal_mod_CFLAGS): Likewise.
40035 (normal_mod_ASFLAGS): Likewise.
40036
40037 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40038
40039 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40040 possible.
40041
40042 * kern/dl.c (pupa_dl_ref): Refer depending modules
40043 recursively.
40044 (pupa_dl_unref): Unrefer depending modules recursively.
40045 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40046 a module is unloaded before one depending on that module is
40047 unloaded.
40048 (pupa_dl_unload): Unload depending modules explicitly,
40049 if possible.
40050
40051 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40052
40053 * include/pupa/i386/pc/linux.h: New file.
40054 * loader/i386/pc/linux.c: Likewise.
40055
40056 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40057 Removed.
40058 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40059 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40060 of PUPA_CHAINLOADER_BOOT_SECTOR.
40061
40062 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40063 (pupa_linux_prot_size): New variable.
40064 (pupa_linux_tmp_addr): Likewise.
40065 (pupa_linux_real_addr): Likewise.
40066 (pupa_linux_boot_zimage): New function.
40067 (pupa_linux_boot_bzimage): Likewise.
40068
40069 * kern/i386/pc/init.c (struct mem_region): New structure.
40070 (MAX_REGIONS): New macro.
40071 (mem_regions): New variable.
40072 (num_regions): Likewise.
40073 (pupa_os_area_addr): Likewise.
40074 (pupa_os_area_size): Likewise.
40075 (pupa_lower_mem): Likewise.
40076 (pupa_upper_mem): Likewise.
40077 (add_mem_region): New function.
40078 (compact_mem_regions): Likewise.
40079 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40080 the size of the conventional memory and that of so-called upper
40081 memory (before the first memory hole).
40082 Instead of adding each found region to free memory, use
40083 add_mem_region and add them after removing overlaps.
40084 Also, add only 1/4 of the upper memory to free memory. The rest
40085 is used for loading OS images. Maybe this is ad hoc, but this
40086 makes it much easier to relocate OS images when booting.
40087
40088 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40089 (pupa_enter_rescue_mode): Don't register initrd and module.
40090
40091 * kern/mm.c: Include pupa/dl.h.
40092
40093 * kern/main.c: Include pupa/file.h and pupa/device.h.
40094
40095 * kern/loader.c (pupa_loader_load_module_func): Removed.
40096 (pupa_loader_load_module): Likewise.
40097
40098 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40099 ``.o''.
40100
40101 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40102 (pupa_linux_tmp_addr): Likewise.
40103 (pupa_linux_real_addr): Likewise.
40104 (pupa_linux_boot_zimage): Likewise.
40105 (pupa_linux_boot_bzimage): Likewise.
40106
40107 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40108 (pupa_upper_mem): Likewise.
40109 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40110 module is too dangerous.
40111
40112 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40113 (pupa_os_area_size): Likewise.
40114 (pupa_loader_set): Remove the first argument. Loader doesn't
40115 manage modules or initrd any longer.
40116 (pupa_loader_load_module): Removed.
40117
40118 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40119 (linux_mod_SOURCES): New variable.
40120 (linux_mod_CFLAGS): Likewise.
40121
40122 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40123
40124 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40125 the length of a blocklist correctly.
40126
40127 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40128 Use ioctl only if the OS file is a block device.
40129 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40130 not very useful for normal files.
40131
40132 * kern/main.c (pupa_set_root_dev): New function.
40133 (pupa_load_normal_mode): Likewise.
40134 (pupa_main): Call those above.
40135
40136 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40137 pupa_uint16_t.
40138
40139 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40140
40141 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40142
40143 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40144 (setup): Configure the installed partition information and the
40145 dl prefix.
40146
40147 * loader/i386/pc/chainloader.c (my_mod): New variable.
40148 (pupa_chainloader_unload): New function.
40149 (pupa_rescue_cmd_chainloader): Refer itself.
40150 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40151
40152 * kern/i386/pc/startup.S (install_partition): Removed.
40153 (version_string): Likewise.
40154 (config_file): Likewise.
40155 (pupa_install_dos_part): New variable.
40156 (pupa_install_bsd_part): Likewise.
40157 (pupa_prefix): Likewise.
40158 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40159
40160 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40161 and pupa/misc.h.
40162 (make_install_device): New function.
40163 (pupa_machine_init): Set the dl prefix.
40164
40165 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40166 (buf): Renamed to ...
40167 (linebuf): ... this.
40168 (pupa_rescue_cmd_prefix): New function.
40169 (pupa_rescue_cmd_insmod): Likewise.
40170 (pupa_rescue_cmd_rmmod): Likewise.
40171 (pupa_rescue_cmd_lsmod): Likewise.
40172 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40173 rmmod and lsmod.
40174
40175 * kern/mm.c (pupa_memalign): If failed even after invalidating
40176 disk caches, unload unneeded modules and retry.
40177
40178 * kern/misc.c (pupa_memmove): New function.
40179 (pupa_memcpy): Removed.
40180 (pupa_strcpy): New function.
40181 (pupa_itoa): Made static.
40182
40183 * kern/dl.c (pupa_dl_iterate): New function.
40184 (pupa_dl_ref): Likewise.
40185 (pupa_dl_unref): Likewise.
40186 (pupa_dl_unload): Return if succeeded or not.
40187 (pupa_dl_unload_unneeded): New function.
40188 (pupa_dl_unload_all): Likewise.
40189 (pupa_dl_init): Renamed to ...
40190 (pupa_dl_set_prefix): ... this.
40191 (pupa_dl_get_prefix): New function.
40192
40193 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40194 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40195 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40196 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40197 (pupa_install_dos_part): Declared.
40198 (pupa_install_bsd_part): Likewise.
40199 (pupa_prefix): Likewise.
40200 (pupa_boot_drive): Likewise.
40201
40202 * include/pupa/types.h: Fix a typo.
40203
40204 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40205 pupa_memmove.
40206 (pupa_memmove): Declared.
40207 (pupa_strcpy): Likewise.
40208
40209 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40210 pupa_mod_init takes one argument, its own module.
40211 (pupa_dl_unload_unneeded): Declared.
40212 (pupa_dl_unload_all): Likewise.
40213 (pupa_dl_ref): Likewise.
40214 (pupa_dl_unref): Likewise.
40215 (pupa_dl_iterate): Likewise.
40216 (pupa_dl_init): Renamed to ...
40217 (pupa_dl_set_prefix): ... this.
40218 (pupa_dl_get_prefix): Declared.
40219
40220 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40221 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40222 unloaded.
40223 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40224 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40225
40226 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40227 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40228
40229 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40230
40231 * util/i386/pc/pupa-setup.c (setup): Define the internal
40232 function find_first_partition_start at the top level, because GCC
40233 3.0.x cannot compile internal functions in deeper scopes
40234 correctly.
40235 (find_root_device): Use lstat instead of stat.
40236 Don't follow symbolic links.
40237 Fix the path-constructing code.
40238
40239 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40240 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40241 by a BLKGETSIZE ioctl first, because block devices don't fill
40242 the member st_mode of the structure stat on Linux.
40243 [__linux__] (linux_find_partition): Use a temporary buffer
40244 REAL_DEV for the working space. Copy it to DEV before returning.
40245 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40246 buffer cache consistent.
40247 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40248 strncmp. The previous value was merely wrong.
40249 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40250
40251 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40252 FAT size is 12. The previous value was merely wrong.
40253
40254 * kern/main.c (pupa_main): Don't split the starting message from
40255 newlines.
40256
40257 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40258 LF, because BIOS goes crazy about character attributes in this
40259 case.
40260
40261 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40262
40263 * include/i386/pc/util/biosdisk.h: New file.
40264 * util/i386/pc/biosdisk.c: Likewise.
40265 * util/i386/pc/pupa-setup.c: Likewise.
40266
40267 * Makefile.in (INCLUDE_DISTFILES): Added
40268 include/pupa/i386/pc/util/biosdisk.h.
40269 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40270 directory util/i386/pc.
40271 (install-local): Added a rule for sbin_UTILITIES.
40272 (uninstall): Likewise.
40273
40274 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40275
40276 * util/misc.c (xrealloc): New function.
40277 (pupa_malloc): Likewise.
40278 (pupa_free): Likewise.
40279 (pupa_realloc): Likewise.
40280 (pupa_stop): Likewise.
40281 (pupa_putchar): Likewise.
40282
40283 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40284
40285 * include/pupa/util/misc.h (xrealloc): Declared.
40286
40287 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40288 macro.
40289 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40290 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40291
40292 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40293 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40294
40295 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40296 way should be implemented.
40297 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40298
40299 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40300 the size of NAME for safety.
40301 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40302 0x88.
40303
40304 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40305 (pupa_setup_SOURCES): Likewise.
40306
40307 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40308
40309 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40310
40311 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40312 bunch of pushl's from pusha, because this destroys the return
40313 value.
40314
40315 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40316
40317 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40318 This means that any missing prototypes could be fatal. Also, you
40319 must take care when writing assembly code. See the comments at
40320 the beginning of startup.S, for more details.
40321
40322 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40323 compilation mechanism.
40324 (pupa_chainloader_real_boot): Likewise.
40325 (pupa_biosdisk_rw_int13_extensions): Likewise.
40326 (pupa_biosdisk_rw_standard): Likewise.
40327 (pupa_biosdisk_check_int13_extensions): Likewise.
40328 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
40329 (pupa_biosdisk_get_diskinfo_standard): Likewise.
40330 (pupa_get_memsize): Likewise.
40331 (pupa_get_mmap_entry): Likewise.
40332 (pupa_console_putchar): Likewise.
40333 (pupa_console_setcursor): Likewise.
40334 (pupa_getrtsecs): Use pushl instead of push.
40335
40336 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
40337 memory instead of the stack for a mmap entry, because some
40338 BIOSes may ignore the maximum size and overflow.
40339
40340 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
40341
40342 * genmk.rb (PModule#rule): Compile automatically generated
40343 sources with module-specific CFLAGS as well as other sources.
40344
40345 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40346
40347 * configure.ac: Check ld.
40348 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
40349 respectively, before checking endianness and sizes.
40350
40351 * Makefile.in (LD): New variable.
40352
40353 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40354
40355 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
40356
40357 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
40358
40359 * Changelog: New file.
40360